@zilliz/milvus2-sdk-node 2.1.2 → 2.1.3
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/Collection.d.ts +23 -11
- package/dist/milvus/Collection.js +47 -32
- package/dist/milvus/Collection.js.map +1 -1
- package/dist/milvus/Data.d.ts +10 -5
- package/dist/milvus/Data.js +21 -16
- package/dist/milvus/Data.js.map +1 -1
- package/dist/milvus/MilvusIndex.d.ts +5 -1
- package/dist/milvus/MilvusIndex.js +10 -8
- package/dist/milvus/MilvusIndex.js.map +1 -1
- package/dist/milvus/Partition.d.ts +10 -6
- package/dist/milvus/Partition.js +15 -11
- package/dist/milvus/Partition.js.map +1 -1
- package/dist/milvus/User.d.ts +3 -3
- package/dist/milvus/User.js +4 -4
- package/dist/milvus/User.js.map +1 -1
- package/dist/milvus/index.js +1 -1
- package/dist/milvus/index.js.map +1 -1
- package/dist/milvus/types/Collection.d.ts +8 -8
- package/dist/milvus/types/Common.d.ts +3 -0
- package/dist/milvus/types/Data.d.ts +8 -8
- package/dist/milvus/types/Index.d.ts +7 -6
- package/dist/milvus/types/Partition.d.ts +5 -4
- package/dist/milvus/types/Search.d.ts +10 -10
- package/dist/milvus/types/User.d.ts +6 -3
- package/dist/proto/proto/common.proto +35 -12
- package/dist/proto/proto/google/protobuf/descriptor.proto +17 -5
- package/dist/proto/proto/milvus.proto +231 -68
- package/dist/sdk.json +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +3 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +2 -2
package/dist/milvus/User.js
CHANGED
|
@@ -178,7 +178,7 @@ var User = /** @class */ (function (_super) {
|
|
|
178
178
|
* #### Example
|
|
179
179
|
*
|
|
180
180
|
* ```
|
|
181
|
-
* milvusClient.userManager.
|
|
181
|
+
* milvusClient.userManager.deleteUser({
|
|
182
182
|
* username: NAME,
|
|
183
183
|
* });
|
|
184
184
|
* ```
|
|
@@ -194,7 +194,7 @@ var User = /** @class */ (function (_super) {
|
|
|
194
194
|
}
|
|
195
195
|
return [4 /*yield*/, utils_1.promisify(this.client, 'DeleteCredential', {
|
|
196
196
|
username: data.username,
|
|
197
|
-
})];
|
|
197
|
+
}, data.timeout)];
|
|
198
198
|
case 1:
|
|
199
199
|
promise = _a.sent();
|
|
200
200
|
return [2 /*return*/, promise];
|
|
@@ -217,12 +217,12 @@ var User = /** @class */ (function (_super) {
|
|
|
217
217
|
* milvusClient.userManager.listUsers();
|
|
218
218
|
* ```
|
|
219
219
|
*/
|
|
220
|
-
User.prototype.listUsers = function () {
|
|
220
|
+
User.prototype.listUsers = function (data) {
|
|
221
221
|
return __awaiter(this, void 0, void 0, function () {
|
|
222
222
|
var promise;
|
|
223
223
|
return __generator(this, function (_a) {
|
|
224
224
|
switch (_a.label) {
|
|
225
|
-
case 0: return [4 /*yield*/, utils_1.promisify(this.client, 'ListCredUsers', {})];
|
|
225
|
+
case 0: return [4 /*yield*/, utils_1.promisify(this.client, 'ListCredUsers', {}, data === null || data === void 0 ? void 0 : data.timeout)];
|
|
226
226
|
case 1:
|
|
227
227
|
promise = _a.sent();
|
|
228
228
|
return [2 /*return*/, promise];
|
package/dist/milvus/User.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../milvus/User.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../milvus/User.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAqC;AACrC,mCAAkC;AAClC,mDAAoD;AASpD,yCAAgD;AAEhD;;GAEG;AACH;IAA0B,wBAAM;IAAhC;;IAgJA,CAAC;IA/IC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,yBA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Q,EAAE;4BAClB,MAAM,IAAI,KAAK,CAAC,2BAAa,CAAC,oBAAoB,CAAC,CAAC;yBACrD;wBACe,qBAAM,iBAAS,CAC7B,IAAI,CAAC,MAAM,EACX,kBAAkB,EAClB;gCACE,QAAQ,EAAE,IAAI,CAAC,QAAQ;6BACxB,EACD,IAAI,CAAC,OAAO,CACb,EAAA;;wBAPK,OAAO,GAAG,SAOf;wBACD,sBAAO,OAAO,EAAC;;;;KAChB;IAED;;;;;;;;;;;;;;OAcG;IACG,wBAAS,GAAf,UAAgB,IAAmB;;;;;4BACjB,qBAAM,iBAAS,CAC7B,IAAI,CAAC,MAAM,EACX,eAAe,EACf,EAAE,EACF,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,CACd,EAAA;;wBALK,OAAO,GAAG,SAKf;wBACD,sBAAO,OAAO,EAAC;;;;KAChB;IACH,WAAC;AAAD,CAAC,AAhJD,CAA0B,eAAM,GAgJ/B;AAhJY,oBAAI"}
|
package/dist/milvus/index.js
CHANGED
|
@@ -163,7 +163,7 @@ var MilvusClient = /** @class */ (function () {
|
|
|
163
163
|
};
|
|
164
164
|
MilvusClient.prototype.closeConnection = function () {
|
|
165
165
|
this.client.close();
|
|
166
|
-
// closed -> 4, connected -> 0
|
|
166
|
+
// grpc client closed -> 4, connected -> 0
|
|
167
167
|
return this.client.getChannel().getConnectivityState(true);
|
|
168
168
|
};
|
|
169
169
|
return MilvusClient;
|
package/dist/milvus/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../milvus/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAwB;AACxB,8DAAkD;AAClD,yCAKuB;AACvB,2CAA0C;AAC1C,yCAAwC;AACxC,6CAAsC;AACtC,+BAA8B;AAC9B,+BAA8B;AAC9B,yDAAkC;AAClC,mDAAo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AU,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IACH,mBAAC;AAAD,CAAC,AA7GD,IA6GC;AA7GY,oCAAY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataType } from './Common';
|
|
1
|
+
import { DataType, GrpcTimeOut } from './Common';
|
|
2
2
|
export interface FieldType {
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
@@ -14,11 +14,11 @@ export declare enum ShowCollectionsType {
|
|
|
14
14
|
All = 0,
|
|
15
15
|
Loaded = 1
|
|
16
16
|
}
|
|
17
|
-
export interface ShowCollectionsReq {
|
|
17
|
+
export interface ShowCollectionsReq extends GrpcTimeOut {
|
|
18
18
|
type?: ShowCollectionsType;
|
|
19
19
|
collection_names?: string[];
|
|
20
20
|
}
|
|
21
|
-
export interface CreateCollectionReq {
|
|
21
|
+
export interface CreateCollectionReq extends GrpcTimeOut {
|
|
22
22
|
collection_name: string;
|
|
23
23
|
shards_num?: number;
|
|
24
24
|
description?: string;
|
|
@@ -32,7 +32,7 @@ export declare enum ConsistencyLevelEnum {
|
|
|
32
32
|
Eventually = 3,
|
|
33
33
|
Customized = 4
|
|
34
34
|
}
|
|
35
|
-
interface CollectionNameReq {
|
|
35
|
+
interface CollectionNameReq extends GrpcTimeOut {
|
|
36
36
|
/**
|
|
37
37
|
* @param collection_name collection name string
|
|
38
38
|
*/
|
|
@@ -53,20 +53,20 @@ export interface DropCollectionReq extends CollectionNameReq {
|
|
|
53
53
|
export interface CreateAliasReq extends CollectionNameReq {
|
|
54
54
|
alias: string;
|
|
55
55
|
}
|
|
56
|
-
export interface DropAliasReq {
|
|
56
|
+
export interface DropAliasReq extends GrpcTimeOut {
|
|
57
57
|
alias: string;
|
|
58
58
|
}
|
|
59
59
|
export interface AlterAliasReq extends CollectionNameReq {
|
|
60
60
|
alias: string;
|
|
61
61
|
}
|
|
62
|
-
export interface CompactReq {
|
|
62
|
+
export interface CompactReq extends GrpcTimeOut {
|
|
63
63
|
collection_name: string;
|
|
64
64
|
timetravel?: number | string;
|
|
65
65
|
}
|
|
66
|
-
export interface GetCompactionStateReq {
|
|
66
|
+
export interface GetCompactionStateReq extends GrpcTimeOut {
|
|
67
67
|
compactionID: number | string;
|
|
68
68
|
}
|
|
69
|
-
export interface GetCompactionPlansReq {
|
|
69
|
+
export interface GetCompactionPlansReq extends GrpcTimeOut {
|
|
70
70
|
compactionID: number | string;
|
|
71
71
|
}
|
|
72
72
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataType } from
|
|
2
|
-
export interface FlushReq {
|
|
1
|
+
import { DataType, GrpcTimeOut } from './Common';
|
|
2
|
+
export interface FlushReq extends GrpcTimeOut {
|
|
3
3
|
collection_names: string[];
|
|
4
4
|
}
|
|
5
5
|
export interface FieldData {
|
|
@@ -8,7 +8,7 @@ export interface FieldData {
|
|
|
8
8
|
dim?: number;
|
|
9
9
|
data: Number[];
|
|
10
10
|
}
|
|
11
|
-
export interface InsertReq {
|
|
11
|
+
export interface InsertReq extends GrpcTimeOut {
|
|
12
12
|
collection_name: string;
|
|
13
13
|
partition_name?: string;
|
|
14
14
|
fields_data: {
|
|
@@ -16,12 +16,12 @@ export interface InsertReq {
|
|
|
16
16
|
}[];
|
|
17
17
|
hash_keys?: Number[];
|
|
18
18
|
}
|
|
19
|
-
export interface DeleteEntitiesReq {
|
|
19
|
+
export interface DeleteEntitiesReq extends GrpcTimeOut {
|
|
20
20
|
collection_name: string;
|
|
21
21
|
expr: string;
|
|
22
22
|
partition_name?: string;
|
|
23
23
|
}
|
|
24
|
-
export interface CalcDistanceReq {
|
|
24
|
+
export interface CalcDistanceReq extends GrpcTimeOut {
|
|
25
25
|
op_left: any;
|
|
26
26
|
op_right: any;
|
|
27
27
|
params: {
|
|
@@ -29,14 +29,14 @@ export interface CalcDistanceReq {
|
|
|
29
29
|
value: string;
|
|
30
30
|
}[];
|
|
31
31
|
}
|
|
32
|
-
export interface GetFlushStateReq {
|
|
32
|
+
export interface GetFlushStateReq extends GrpcTimeOut {
|
|
33
33
|
segmentIDs: number[];
|
|
34
34
|
}
|
|
35
|
-
export interface LoadBalanceReq {
|
|
35
|
+
export interface LoadBalanceReq extends GrpcTimeOut {
|
|
36
36
|
src_nodeID: number;
|
|
37
37
|
dst_nodeIDs?: number[];
|
|
38
38
|
sealed_segmentIDs?: number[];
|
|
39
39
|
}
|
|
40
|
-
export interface GetQuerySegmentInfoReq {
|
|
40
|
+
export interface GetQuerySegmentInfoReq extends GrpcTimeOut {
|
|
41
41
|
collectionName: string;
|
|
42
42
|
}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
+
import { GrpcTimeOut } from './Common';
|
|
1
2
|
export interface CreateIndexParam {
|
|
2
3
|
index_type: string;
|
|
3
4
|
metric_type: string;
|
|
4
5
|
params: string;
|
|
5
6
|
}
|
|
6
|
-
export interface CreateIndexReq {
|
|
7
|
+
export interface CreateIndexReq extends GrpcTimeOut {
|
|
7
8
|
collection_name: string;
|
|
8
9
|
field_name: string;
|
|
9
10
|
index_name?: string;
|
|
10
11
|
extra_params?: CreateIndexParam;
|
|
11
12
|
}
|
|
12
|
-
export interface DescribeIndexReq {
|
|
13
|
+
export interface DescribeIndexReq extends GrpcTimeOut {
|
|
13
14
|
collection_name: string;
|
|
14
15
|
field_name?: string;
|
|
15
16
|
index_name?: string;
|
|
16
17
|
}
|
|
17
|
-
export interface GetIndexStateReq {
|
|
18
|
+
export interface GetIndexStateReq extends GrpcTimeOut {
|
|
18
19
|
collection_name: string;
|
|
19
20
|
field_name?: string;
|
|
20
21
|
index_name?: string;
|
|
21
22
|
}
|
|
22
|
-
export interface GetIndexBuildProgressReq {
|
|
23
|
+
export interface GetIndexBuildProgressReq extends GrpcTimeOut {
|
|
23
24
|
collection_name: string;
|
|
24
25
|
field_name?: string;
|
|
25
26
|
index_name?: string;
|
|
26
27
|
}
|
|
27
|
-
export interface DropIndexReq {
|
|
28
|
+
export interface DropIndexReq extends GrpcTimeOut {
|
|
28
29
|
collection_name: string;
|
|
29
|
-
field_name
|
|
30
|
+
field_name: string;
|
|
30
31
|
index_name?: string;
|
|
31
32
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { GrpcTimeOut } from './Common';
|
|
2
|
+
interface PartitionParent extends GrpcTimeOut {
|
|
2
3
|
collection_name: string;
|
|
3
4
|
partition_name: string;
|
|
4
5
|
}
|
|
@@ -10,14 +11,14 @@ export interface DropPartitionReq extends PartitionParent {
|
|
|
10
11
|
}
|
|
11
12
|
export interface GetPartitionStatisticsReq extends PartitionParent {
|
|
12
13
|
}
|
|
13
|
-
export interface ShowPartitionsReq {
|
|
14
|
+
export interface ShowPartitionsReq extends GrpcTimeOut {
|
|
14
15
|
collection_name: string;
|
|
15
16
|
}
|
|
16
|
-
export interface LoadPartitionsReq {
|
|
17
|
+
export interface LoadPartitionsReq extends GrpcTimeOut {
|
|
17
18
|
collection_name: string;
|
|
18
19
|
partition_names: string[];
|
|
19
20
|
}
|
|
20
|
-
export interface ReleasePartitionsReq {
|
|
21
|
+
export interface ReleasePartitionsReq extends GrpcTimeOut {
|
|
21
22
|
collection_name: string;
|
|
22
23
|
partition_names: string[];
|
|
23
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { DataType } from
|
|
3
|
-
import { ResStatus } from
|
|
2
|
+
import { DataType, GrpcTimeOut } from './Common';
|
|
3
|
+
import { ResStatus } from './Response';
|
|
4
4
|
export interface SearchParam {
|
|
5
5
|
anns_field: string;
|
|
6
6
|
topk: string;
|
|
@@ -8,7 +8,7 @@ export interface SearchParam {
|
|
|
8
8
|
params: string;
|
|
9
9
|
round_decimal?: number;
|
|
10
10
|
}
|
|
11
|
-
export interface SearchReq {
|
|
11
|
+
export interface SearchReq extends GrpcTimeOut {
|
|
12
12
|
collection_name: string;
|
|
13
13
|
partition_names?: string[];
|
|
14
14
|
expr?: string;
|
|
@@ -25,7 +25,7 @@ export interface SearchRes {
|
|
|
25
25
|
fields_data: {
|
|
26
26
|
type: string;
|
|
27
27
|
field_name: string;
|
|
28
|
-
field:
|
|
28
|
+
field: 'scalars';
|
|
29
29
|
scalars: {
|
|
30
30
|
[x: string]: any;
|
|
31
31
|
};
|
|
@@ -38,13 +38,13 @@ export interface SearchRes {
|
|
|
38
38
|
str_id?: {
|
|
39
39
|
data: string[];
|
|
40
40
|
};
|
|
41
|
-
id_field:
|
|
41
|
+
id_field: 'int_id' | 'str_id';
|
|
42
42
|
};
|
|
43
43
|
num_queries: number;
|
|
44
44
|
topks: number[];
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
export interface QueryReq {
|
|
47
|
+
export interface QueryReq extends GrpcTimeOut {
|
|
48
48
|
collection_name: string;
|
|
49
49
|
expr: string;
|
|
50
50
|
output_fields?: string[];
|
|
@@ -55,11 +55,11 @@ export interface QueryRes {
|
|
|
55
55
|
fields_data: {
|
|
56
56
|
type: DataType;
|
|
57
57
|
field_name: string;
|
|
58
|
-
field:
|
|
58
|
+
field: 'vectors' | 'scalars';
|
|
59
59
|
field_id: number;
|
|
60
60
|
vectors?: {
|
|
61
61
|
dim: string;
|
|
62
|
-
data:
|
|
62
|
+
data: 'float_vector' | 'binary_vector';
|
|
63
63
|
float_vector?: {
|
|
64
64
|
data: number[];
|
|
65
65
|
};
|
|
@@ -71,8 +71,8 @@ export interface QueryRes {
|
|
|
71
71
|
};
|
|
72
72
|
}[];
|
|
73
73
|
}
|
|
74
|
-
export interface GetMetricsRequest {
|
|
74
|
+
export interface GetMetricsRequest extends GrpcTimeOut {
|
|
75
75
|
request: {
|
|
76
|
-
metric_type:
|
|
76
|
+
metric_type: 'system_info' | 'system_statistics' | 'system_log';
|
|
77
77
|
};
|
|
78
78
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { GrpcTimeOut } from './Common';
|
|
2
|
+
export interface UpdateUserReq extends GrpcTimeOut {
|
|
2
3
|
username: string;
|
|
3
4
|
oldPassword: string;
|
|
4
5
|
newPassword: string;
|
|
5
6
|
}
|
|
6
|
-
export interface CreateUserReq {
|
|
7
|
+
export interface CreateUserReq extends GrpcTimeOut {
|
|
7
8
|
username: string;
|
|
8
9
|
password: string;
|
|
9
10
|
}
|
|
10
|
-
export interface DeleteUserReq {
|
|
11
|
+
export interface DeleteUserReq extends GrpcTimeOut {
|
|
11
12
|
username: string;
|
|
12
13
|
}
|
|
14
|
+
export interface ListUsersReq extends GrpcTimeOut {
|
|
15
|
+
}
|
|
@@ -57,6 +57,9 @@ enum ErrorCode {
|
|
|
57
57
|
ListPolicyFailure = 44;
|
|
58
58
|
NotShardLeader = 45;
|
|
59
59
|
NoReplicaAvailable = 46;
|
|
60
|
+
SegmentNotFound = 47;
|
|
61
|
+
ForceDeny = 48;
|
|
62
|
+
RateLimit = 49;
|
|
60
63
|
|
|
61
64
|
// internal error code.
|
|
62
65
|
DDRequestRace = 1000;
|
|
@@ -258,7 +261,7 @@ enum ConsistencyLevel {
|
|
|
258
261
|
Session = 1; // default in PyMilvus
|
|
259
262
|
Bounded = 2;
|
|
260
263
|
Eventually = 3;
|
|
261
|
-
Customized = 4; // Users pass their own `guarantee_timestamp`.
|
|
264
|
+
Customized = 4; // Users pass their own `guarantee_timestamp`. Deprecated
|
|
262
265
|
}
|
|
263
266
|
|
|
264
267
|
enum ImportState {
|
|
@@ -272,29 +275,49 @@ enum ImportState {
|
|
|
272
275
|
ImportAllocSegment = 10;
|
|
273
276
|
}
|
|
274
277
|
|
|
275
|
-
enum
|
|
278
|
+
enum ObjectType {
|
|
276
279
|
Collection = 0;
|
|
280
|
+
Global = 1;
|
|
281
|
+
User = 2;
|
|
277
282
|
}
|
|
278
283
|
|
|
279
|
-
enum
|
|
284
|
+
enum ObjectPrivilege {
|
|
280
285
|
PrivilegeAll = 0;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
286
|
+
PrivilegeCreateCollection = 1;
|
|
287
|
+
PrivilegeDropCollection = 2;
|
|
288
|
+
PrivilegeDescribeCollection = 3;
|
|
289
|
+
PrivilegeShowCollections = 4;
|
|
285
290
|
PrivilegeLoad = 5;
|
|
286
291
|
PrivilegeRelease = 6;
|
|
287
|
-
|
|
292
|
+
PrivilegeCompaction = 7;
|
|
288
293
|
PrivilegeInsert = 8;
|
|
289
294
|
PrivilegeDelete = 9;
|
|
295
|
+
|
|
296
|
+
PrivilegeGetStatistics = 10;
|
|
297
|
+
PrivilegeCreateIndex = 11;
|
|
298
|
+
PrivilegeIndexDetail = 12;
|
|
299
|
+
PrivilegeDropIndex = 13;
|
|
300
|
+
PrivilegeSearch = 14;
|
|
301
|
+
PrivilegeFlush = 15;
|
|
302
|
+
PrivilegeQuery = 16;
|
|
303
|
+
PrivilegeLoadBalance = 17;
|
|
304
|
+
PrivilegeImport = 18;
|
|
305
|
+
PrivilegeCreateOwnership = 19;
|
|
306
|
+
PrivilegeUpdateUser = 20;
|
|
307
|
+
PrivilegeDropOwnership = 21;
|
|
308
|
+
PrivilegeSelectOwnership = 22;
|
|
309
|
+
PrivilegeManageOwnership = 23;
|
|
310
|
+
PrivilegeSelectUser = 24;
|
|
311
|
+
PrivilegeDescribePartition = 25;
|
|
290
312
|
}
|
|
291
313
|
|
|
292
314
|
message PrivilegeExt {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
int32
|
|
315
|
+
ObjectType object_type = 1;
|
|
316
|
+
ObjectPrivilege object_privilege = 2;
|
|
317
|
+
int32 object_name_index = 3;
|
|
318
|
+
int32 object_name_indexs = 4;
|
|
296
319
|
}
|
|
297
320
|
|
|
298
321
|
extend google.protobuf.MessageOptions {
|
|
299
322
|
PrivilegeExt privilege_ext_obj = 1001;
|
|
300
|
-
}
|
|
323
|
+
}
|
|
@@ -502,6 +502,10 @@ message MessageOptions {
|
|
|
502
502
|
|
|
503
503
|
reserved 4, 5, 6;
|
|
504
504
|
|
|
505
|
+
// NOTE: Do not set the option in .proto files. Always use the maps syntax
|
|
506
|
+
// instead. The option should only be implicitly set by the proto compiler
|
|
507
|
+
// parser.
|
|
508
|
+
//
|
|
505
509
|
// Whether the message is an automatically generated map entry type for the
|
|
506
510
|
// maps field.
|
|
507
511
|
//
|
|
@@ -519,10 +523,6 @@ message MessageOptions {
|
|
|
519
523
|
// use a native map in the target language to hold the keys and values.
|
|
520
524
|
// The reflection APIs in such implementations still need to work as
|
|
521
525
|
// if the field is a repeated message field.
|
|
522
|
-
//
|
|
523
|
-
// NOTE: Do not set the option in .proto files. Always use the maps syntax
|
|
524
|
-
// instead. The option should only be implicitly set by the proto compiler
|
|
525
|
-
// parser.
|
|
526
526
|
optional bool map_entry = 7;
|
|
527
527
|
|
|
528
528
|
reserved 8; // javalite_serializable
|
|
@@ -916,8 +916,20 @@ message GeneratedCodeInfo {
|
|
|
916
916
|
optional int32 begin = 3;
|
|
917
917
|
|
|
918
918
|
// Identifies the ending offset in bytes in the generated code that
|
|
919
|
-
// relates to the identified
|
|
919
|
+
// relates to the identified object. The end offset should be one past
|
|
920
920
|
// the last relevant byte (so the length of the text = end - begin).
|
|
921
921
|
optional int32 end = 4;
|
|
922
|
+
|
|
923
|
+
// Represents the identified object's effect on the element in the original
|
|
924
|
+
// .proto file.
|
|
925
|
+
enum Semantic {
|
|
926
|
+
// There is no effect or the effect is indescribable.
|
|
927
|
+
NONE = 0;
|
|
928
|
+
// The element is set or otherwise mutated.
|
|
929
|
+
SET = 1;
|
|
930
|
+
// An alias to the element is returned.
|
|
931
|
+
ALIAS = 2;
|
|
932
|
+
}
|
|
933
|
+
optional Semantic semantic = 5;
|
|
922
934
|
}
|
|
923
935
|
}
|