hyperspace-sdk-ts 3.0.8 → 3.0.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/README.md +38 -0
- package/dist/client.d.ts +7 -1
- package/dist/client.js +7 -1
- package/dist/proto/hyperspace_pb.js +1179 -75
- package/package.json +2 -2
|
@@ -26,6 +26,7 @@ goog.exportSymbol('proto.hyperspace.BatchSearchRequest', null, global);
|
|
|
26
26
|
goog.exportSymbol('proto.hyperspace.BatchSearchResponse', null, global);
|
|
27
27
|
goog.exportSymbol('proto.hyperspace.CollectionStatsRequest', null, global);
|
|
28
28
|
goog.exportSymbol('proto.hyperspace.CollectionStatsResponse', null, global);
|
|
29
|
+
goog.exportSymbol('proto.hyperspace.CollectionSummary', null, global);
|
|
29
30
|
goog.exportSymbol('proto.hyperspace.ConfigUpdate', null, global);
|
|
30
31
|
goog.exportSymbol('proto.hyperspace.CreateCollectionOp', null, global);
|
|
31
32
|
goog.exportSymbol('proto.hyperspace.CreateCollectionRequest', null, global);
|
|
@@ -54,6 +55,9 @@ goog.exportSymbol('proto.hyperspace.GetNeighborsResponse', null, global);
|
|
|
54
55
|
goog.exportSymbol('proto.hyperspace.GetNodeRequest', null, global);
|
|
55
56
|
goog.exportSymbol('proto.hyperspace.GraphCluster', null, global);
|
|
56
57
|
goog.exportSymbol('proto.hyperspace.GraphNode', null, global);
|
|
58
|
+
goog.exportSymbol('proto.hyperspace.InBall', null, global);
|
|
59
|
+
goog.exportSymbol('proto.hyperspace.InBox', null, global);
|
|
60
|
+
goog.exportSymbol('proto.hyperspace.InCone', null, global);
|
|
57
61
|
goog.exportSymbol('proto.hyperspace.InsertOp', null, global);
|
|
58
62
|
goog.exportSymbol('proto.hyperspace.InsertRequest', null, global);
|
|
59
63
|
goog.exportSymbol('proto.hyperspace.InsertResponse', null, global);
|
|
@@ -281,6 +285,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
281
285
|
*/
|
|
282
286
|
proto.hyperspace.DeleteCollectionRequest.displayName = 'proto.hyperspace.DeleteCollectionRequest';
|
|
283
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Generated by JsPbCodeGenerator.
|
|
290
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
291
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
292
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
293
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
294
|
+
* valid.
|
|
295
|
+
* @extends {jspb.Message}
|
|
296
|
+
* @constructor
|
|
297
|
+
*/
|
|
298
|
+
proto.hyperspace.CollectionSummary = function(opt_data) {
|
|
299
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
300
|
+
};
|
|
301
|
+
goog.inherits(proto.hyperspace.CollectionSummary, jspb.Message);
|
|
302
|
+
if (goog.DEBUG && !COMPILED) {
|
|
303
|
+
/**
|
|
304
|
+
* @public
|
|
305
|
+
* @override
|
|
306
|
+
*/
|
|
307
|
+
proto.hyperspace.CollectionSummary.displayName = 'proto.hyperspace.CollectionSummary';
|
|
308
|
+
}
|
|
284
309
|
/**
|
|
285
310
|
* Generated by JsPbCodeGenerator.
|
|
286
311
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -722,6 +747,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
722
747
|
*/
|
|
723
748
|
proto.hyperspace.Range.displayName = 'proto.hyperspace.Range';
|
|
724
749
|
}
|
|
750
|
+
/**
|
|
751
|
+
* Generated by JsPbCodeGenerator.
|
|
752
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
753
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
754
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
755
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
756
|
+
* valid.
|
|
757
|
+
* @extends {jspb.Message}
|
|
758
|
+
* @constructor
|
|
759
|
+
*/
|
|
760
|
+
proto.hyperspace.InCone = function(opt_data) {
|
|
761
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.hyperspace.InCone.repeatedFields_, null);
|
|
762
|
+
};
|
|
763
|
+
goog.inherits(proto.hyperspace.InCone, jspb.Message);
|
|
764
|
+
if (goog.DEBUG && !COMPILED) {
|
|
765
|
+
/**
|
|
766
|
+
* @public
|
|
767
|
+
* @override
|
|
768
|
+
*/
|
|
769
|
+
proto.hyperspace.InCone.displayName = 'proto.hyperspace.InCone';
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Generated by JsPbCodeGenerator.
|
|
773
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
774
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
775
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
776
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
777
|
+
* valid.
|
|
778
|
+
* @extends {jspb.Message}
|
|
779
|
+
* @constructor
|
|
780
|
+
*/
|
|
781
|
+
proto.hyperspace.InBox = function(opt_data) {
|
|
782
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.hyperspace.InBox.repeatedFields_, null);
|
|
783
|
+
};
|
|
784
|
+
goog.inherits(proto.hyperspace.InBox, jspb.Message);
|
|
785
|
+
if (goog.DEBUG && !COMPILED) {
|
|
786
|
+
/**
|
|
787
|
+
* @public
|
|
788
|
+
* @override
|
|
789
|
+
*/
|
|
790
|
+
proto.hyperspace.InBox.displayName = 'proto.hyperspace.InBox';
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Generated by JsPbCodeGenerator.
|
|
794
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
795
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
796
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
797
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
798
|
+
* valid.
|
|
799
|
+
* @extends {jspb.Message}
|
|
800
|
+
* @constructor
|
|
801
|
+
*/
|
|
802
|
+
proto.hyperspace.InBall = function(opt_data) {
|
|
803
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.hyperspace.InBall.repeatedFields_, null);
|
|
804
|
+
};
|
|
805
|
+
goog.inherits(proto.hyperspace.InBall, jspb.Message);
|
|
806
|
+
if (goog.DEBUG && !COMPILED) {
|
|
807
|
+
/**
|
|
808
|
+
* @public
|
|
809
|
+
* @override
|
|
810
|
+
*/
|
|
811
|
+
proto.hyperspace.InBall.displayName = 'proto.hyperspace.InBall';
|
|
812
|
+
}
|
|
725
813
|
/**
|
|
726
814
|
* Generated by JsPbCodeGenerator.
|
|
727
815
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3084,13 +3172,6 @@ proto.hyperspace.DeleteCollectionRequest.prototype.setName = function(value) {
|
|
|
3084
3172
|
|
|
3085
3173
|
|
|
3086
3174
|
|
|
3087
|
-
/**
|
|
3088
|
-
* List of repeated fields within this message type.
|
|
3089
|
-
* @private {!Array<number>}
|
|
3090
|
-
* @const
|
|
3091
|
-
*/
|
|
3092
|
-
proto.hyperspace.ListCollectionsResponse.repeatedFields_ = [1];
|
|
3093
|
-
|
|
3094
3175
|
|
|
3095
3176
|
|
|
3096
3177
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3106,8 +3187,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3106
3187
|
* http://goto/soy-param-migration
|
|
3107
3188
|
* @return {!Object}
|
|
3108
3189
|
*/
|
|
3109
|
-
proto.hyperspace.
|
|
3110
|
-
return proto.hyperspace.
|
|
3190
|
+
proto.hyperspace.CollectionSummary.prototype.toObject = function(opt_includeInstance) {
|
|
3191
|
+
return proto.hyperspace.CollectionSummary.toObject(opt_includeInstance, this);
|
|
3111
3192
|
};
|
|
3112
3193
|
|
|
3113
3194
|
|
|
@@ -3116,13 +3197,16 @@ proto.hyperspace.ListCollectionsResponse.prototype.toObject = function(opt_inclu
|
|
|
3116
3197
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3117
3198
|
* the JSPB instance for transitional soy proto support:
|
|
3118
3199
|
* http://goto/soy-param-migration
|
|
3119
|
-
* @param {!proto.hyperspace.
|
|
3200
|
+
* @param {!proto.hyperspace.CollectionSummary} msg The msg instance to transform.
|
|
3120
3201
|
* @return {!Object}
|
|
3121
3202
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3122
3203
|
*/
|
|
3123
|
-
proto.hyperspace.
|
|
3204
|
+
proto.hyperspace.CollectionSummary.toObject = function(includeInstance, msg) {
|
|
3124
3205
|
var f, obj = {
|
|
3125
|
-
|
|
3206
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3207
|
+
count: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
3208
|
+
dimension: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
3209
|
+
metric: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
3126
3210
|
};
|
|
3127
3211
|
|
|
3128
3212
|
if (includeInstance) {
|
|
@@ -3136,23 +3220,23 @@ proto.hyperspace.ListCollectionsResponse.toObject = function(includeInstance, ms
|
|
|
3136
3220
|
/**
|
|
3137
3221
|
* Deserializes binary data (in protobuf wire format).
|
|
3138
3222
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3139
|
-
* @return {!proto.hyperspace.
|
|
3223
|
+
* @return {!proto.hyperspace.CollectionSummary}
|
|
3140
3224
|
*/
|
|
3141
|
-
proto.hyperspace.
|
|
3225
|
+
proto.hyperspace.CollectionSummary.deserializeBinary = function(bytes) {
|
|
3142
3226
|
var reader = new jspb.BinaryReader(bytes);
|
|
3143
|
-
var msg = new proto.hyperspace.
|
|
3144
|
-
return proto.hyperspace.
|
|
3227
|
+
var msg = new proto.hyperspace.CollectionSummary;
|
|
3228
|
+
return proto.hyperspace.CollectionSummary.deserializeBinaryFromReader(msg, reader);
|
|
3145
3229
|
};
|
|
3146
3230
|
|
|
3147
3231
|
|
|
3148
3232
|
/**
|
|
3149
3233
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3150
3234
|
* given reader into the given message object.
|
|
3151
|
-
* @param {!proto.hyperspace.
|
|
3235
|
+
* @param {!proto.hyperspace.CollectionSummary} msg The message object to deserialize into.
|
|
3152
3236
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3153
|
-
* @return {!proto.hyperspace.
|
|
3237
|
+
* @return {!proto.hyperspace.CollectionSummary}
|
|
3154
3238
|
*/
|
|
3155
|
-
proto.hyperspace.
|
|
3239
|
+
proto.hyperspace.CollectionSummary.deserializeBinaryFromReader = function(msg, reader) {
|
|
3156
3240
|
while (reader.nextField()) {
|
|
3157
3241
|
if (reader.isEndGroup()) {
|
|
3158
3242
|
break;
|
|
@@ -3161,7 +3245,19 @@ proto.hyperspace.ListCollectionsResponse.deserializeBinaryFromReader = function(
|
|
|
3161
3245
|
switch (field) {
|
|
3162
3246
|
case 1:
|
|
3163
3247
|
var value = /** @type {string} */ (reader.readString());
|
|
3164
|
-
msg.
|
|
3248
|
+
msg.setName(value);
|
|
3249
|
+
break;
|
|
3250
|
+
case 2:
|
|
3251
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
3252
|
+
msg.setCount(value);
|
|
3253
|
+
break;
|
|
3254
|
+
case 3:
|
|
3255
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
3256
|
+
msg.setDimension(value);
|
|
3257
|
+
break;
|
|
3258
|
+
case 4:
|
|
3259
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3260
|
+
msg.setMetric(value);
|
|
3165
3261
|
break;
|
|
3166
3262
|
default:
|
|
3167
3263
|
reader.skipField();
|
|
@@ -3176,9 +3272,9 @@ proto.hyperspace.ListCollectionsResponse.deserializeBinaryFromReader = function(
|
|
|
3176
3272
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3177
3273
|
* @return {!Uint8Array}
|
|
3178
3274
|
*/
|
|
3179
|
-
proto.hyperspace.
|
|
3275
|
+
proto.hyperspace.CollectionSummary.prototype.serializeBinary = function() {
|
|
3180
3276
|
var writer = new jspb.BinaryWriter();
|
|
3181
|
-
proto.hyperspace.
|
|
3277
|
+
proto.hyperspace.CollectionSummary.serializeBinaryToWriter(this, writer);
|
|
3182
3278
|
return writer.getResultBuffer();
|
|
3183
3279
|
};
|
|
3184
3280
|
|
|
@@ -3186,60 +3282,123 @@ proto.hyperspace.ListCollectionsResponse.prototype.serializeBinary = function()
|
|
|
3186
3282
|
/**
|
|
3187
3283
|
* Serializes the given message to binary data (in protobuf wire
|
|
3188
3284
|
* format), writing to the given BinaryWriter.
|
|
3189
|
-
* @param {!proto.hyperspace.
|
|
3285
|
+
* @param {!proto.hyperspace.CollectionSummary} message
|
|
3190
3286
|
* @param {!jspb.BinaryWriter} writer
|
|
3191
3287
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3192
3288
|
*/
|
|
3193
|
-
proto.hyperspace.
|
|
3289
|
+
proto.hyperspace.CollectionSummary.serializeBinaryToWriter = function(message, writer) {
|
|
3194
3290
|
var f = undefined;
|
|
3195
|
-
f = message.
|
|
3291
|
+
f = message.getName();
|
|
3196
3292
|
if (f.length > 0) {
|
|
3197
|
-
writer.
|
|
3293
|
+
writer.writeString(
|
|
3198
3294
|
1,
|
|
3199
3295
|
f
|
|
3200
3296
|
);
|
|
3201
3297
|
}
|
|
3298
|
+
f = message.getCount();
|
|
3299
|
+
if (f !== 0) {
|
|
3300
|
+
writer.writeUint64(
|
|
3301
|
+
2,
|
|
3302
|
+
f
|
|
3303
|
+
);
|
|
3304
|
+
}
|
|
3305
|
+
f = message.getDimension();
|
|
3306
|
+
if (f !== 0) {
|
|
3307
|
+
writer.writeUint32(
|
|
3308
|
+
3,
|
|
3309
|
+
f
|
|
3310
|
+
);
|
|
3311
|
+
}
|
|
3312
|
+
f = message.getMetric();
|
|
3313
|
+
if (f.length > 0) {
|
|
3314
|
+
writer.writeString(
|
|
3315
|
+
4,
|
|
3316
|
+
f
|
|
3317
|
+
);
|
|
3318
|
+
}
|
|
3202
3319
|
};
|
|
3203
3320
|
|
|
3204
3321
|
|
|
3205
3322
|
/**
|
|
3206
|
-
*
|
|
3207
|
-
* @return {
|
|
3323
|
+
* optional string name = 1;
|
|
3324
|
+
* @return {string}
|
|
3208
3325
|
*/
|
|
3209
|
-
proto.hyperspace.
|
|
3210
|
-
return /** @type {
|
|
3326
|
+
proto.hyperspace.CollectionSummary.prototype.getName = function() {
|
|
3327
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3211
3328
|
};
|
|
3212
3329
|
|
|
3213
3330
|
|
|
3214
3331
|
/**
|
|
3215
|
-
* @param {
|
|
3216
|
-
* @return {!proto.hyperspace.
|
|
3332
|
+
* @param {string} value
|
|
3333
|
+
* @return {!proto.hyperspace.CollectionSummary} returns this
|
|
3217
3334
|
*/
|
|
3218
|
-
proto.hyperspace.
|
|
3219
|
-
return jspb.Message.
|
|
3335
|
+
proto.hyperspace.CollectionSummary.prototype.setName = function(value) {
|
|
3336
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3220
3337
|
};
|
|
3221
3338
|
|
|
3222
3339
|
|
|
3223
3340
|
/**
|
|
3224
|
-
*
|
|
3225
|
-
* @
|
|
3226
|
-
* @return {!proto.hyperspace.ListCollectionsResponse} returns this
|
|
3341
|
+
* optional uint64 count = 2;
|
|
3342
|
+
* @return {number}
|
|
3227
3343
|
*/
|
|
3228
|
-
proto.hyperspace.
|
|
3229
|
-
return jspb.Message.
|
|
3344
|
+
proto.hyperspace.CollectionSummary.prototype.getCount = function() {
|
|
3345
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3230
3346
|
};
|
|
3231
3347
|
|
|
3232
3348
|
|
|
3233
3349
|
/**
|
|
3234
|
-
*
|
|
3235
|
-
* @return {!proto.hyperspace.
|
|
3350
|
+
* @param {number} value
|
|
3351
|
+
* @return {!proto.hyperspace.CollectionSummary} returns this
|
|
3236
3352
|
*/
|
|
3237
|
-
proto.hyperspace.
|
|
3238
|
-
return
|
|
3353
|
+
proto.hyperspace.CollectionSummary.prototype.setCount = function(value) {
|
|
3354
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
3355
|
+
};
|
|
3356
|
+
|
|
3357
|
+
|
|
3358
|
+
/**
|
|
3359
|
+
* optional uint32 dimension = 3;
|
|
3360
|
+
* @return {number}
|
|
3361
|
+
*/
|
|
3362
|
+
proto.hyperspace.CollectionSummary.prototype.getDimension = function() {
|
|
3363
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
3364
|
+
};
|
|
3365
|
+
|
|
3366
|
+
|
|
3367
|
+
/**
|
|
3368
|
+
* @param {number} value
|
|
3369
|
+
* @return {!proto.hyperspace.CollectionSummary} returns this
|
|
3370
|
+
*/
|
|
3371
|
+
proto.hyperspace.CollectionSummary.prototype.setDimension = function(value) {
|
|
3372
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
3373
|
+
};
|
|
3374
|
+
|
|
3375
|
+
|
|
3376
|
+
/**
|
|
3377
|
+
* optional string metric = 4;
|
|
3378
|
+
* @return {string}
|
|
3379
|
+
*/
|
|
3380
|
+
proto.hyperspace.CollectionSummary.prototype.getMetric = function() {
|
|
3381
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3382
|
+
};
|
|
3383
|
+
|
|
3384
|
+
|
|
3385
|
+
/**
|
|
3386
|
+
* @param {string} value
|
|
3387
|
+
* @return {!proto.hyperspace.CollectionSummary} returns this
|
|
3388
|
+
*/
|
|
3389
|
+
proto.hyperspace.CollectionSummary.prototype.setMetric = function(value) {
|
|
3390
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3239
3391
|
};
|
|
3240
3392
|
|
|
3241
3393
|
|
|
3242
3394
|
|
|
3395
|
+
/**
|
|
3396
|
+
* List of repeated fields within this message type.
|
|
3397
|
+
* @private {!Array<number>}
|
|
3398
|
+
* @const
|
|
3399
|
+
*/
|
|
3400
|
+
proto.hyperspace.ListCollectionsResponse.repeatedFields_ = [1];
|
|
3401
|
+
|
|
3243
3402
|
|
|
3244
3403
|
|
|
3245
3404
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3255,8 +3414,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3255
3414
|
* http://goto/soy-param-migration
|
|
3256
3415
|
* @return {!Object}
|
|
3257
3416
|
*/
|
|
3258
|
-
proto.hyperspace.
|
|
3259
|
-
return proto.hyperspace.
|
|
3417
|
+
proto.hyperspace.ListCollectionsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3418
|
+
return proto.hyperspace.ListCollectionsResponse.toObject(opt_includeInstance, this);
|
|
3260
3419
|
};
|
|
3261
3420
|
|
|
3262
3421
|
|
|
@@ -3265,13 +3424,14 @@ proto.hyperspace.CollectionStatsRequest.prototype.toObject = function(opt_includ
|
|
|
3265
3424
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3266
3425
|
* the JSPB instance for transitional soy proto support:
|
|
3267
3426
|
* http://goto/soy-param-migration
|
|
3268
|
-
* @param {!proto.hyperspace.
|
|
3427
|
+
* @param {!proto.hyperspace.ListCollectionsResponse} msg The msg instance to transform.
|
|
3269
3428
|
* @return {!Object}
|
|
3270
3429
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3271
3430
|
*/
|
|
3272
|
-
proto.hyperspace.
|
|
3431
|
+
proto.hyperspace.ListCollectionsResponse.toObject = function(includeInstance, msg) {
|
|
3273
3432
|
var f, obj = {
|
|
3274
|
-
|
|
3433
|
+
collectionsList: jspb.Message.toObjectList(msg.getCollectionsList(),
|
|
3434
|
+
proto.hyperspace.CollectionSummary.toObject, includeInstance)
|
|
3275
3435
|
};
|
|
3276
3436
|
|
|
3277
3437
|
if (includeInstance) {
|
|
@@ -3285,23 +3445,23 @@ proto.hyperspace.CollectionStatsRequest.toObject = function(includeInstance, msg
|
|
|
3285
3445
|
/**
|
|
3286
3446
|
* Deserializes binary data (in protobuf wire format).
|
|
3287
3447
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3288
|
-
* @return {!proto.hyperspace.
|
|
3448
|
+
* @return {!proto.hyperspace.ListCollectionsResponse}
|
|
3289
3449
|
*/
|
|
3290
|
-
proto.hyperspace.
|
|
3450
|
+
proto.hyperspace.ListCollectionsResponse.deserializeBinary = function(bytes) {
|
|
3291
3451
|
var reader = new jspb.BinaryReader(bytes);
|
|
3292
|
-
var msg = new proto.hyperspace.
|
|
3293
|
-
return proto.hyperspace.
|
|
3452
|
+
var msg = new proto.hyperspace.ListCollectionsResponse;
|
|
3453
|
+
return proto.hyperspace.ListCollectionsResponse.deserializeBinaryFromReader(msg, reader);
|
|
3294
3454
|
};
|
|
3295
3455
|
|
|
3296
3456
|
|
|
3297
3457
|
/**
|
|
3298
3458
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3299
3459
|
* given reader into the given message object.
|
|
3300
|
-
* @param {!proto.hyperspace.
|
|
3460
|
+
* @param {!proto.hyperspace.ListCollectionsResponse} msg The message object to deserialize into.
|
|
3301
3461
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3302
|
-
* @return {!proto.hyperspace.
|
|
3462
|
+
* @return {!proto.hyperspace.ListCollectionsResponse}
|
|
3303
3463
|
*/
|
|
3304
|
-
proto.hyperspace.
|
|
3464
|
+
proto.hyperspace.ListCollectionsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3305
3465
|
while (reader.nextField()) {
|
|
3306
3466
|
if (reader.isEndGroup()) {
|
|
3307
3467
|
break;
|
|
@@ -3309,8 +3469,9 @@ proto.hyperspace.CollectionStatsRequest.deserializeBinaryFromReader = function(m
|
|
|
3309
3469
|
var field = reader.getFieldNumber();
|
|
3310
3470
|
switch (field) {
|
|
3311
3471
|
case 1:
|
|
3312
|
-
var value =
|
|
3313
|
-
|
|
3472
|
+
var value = new proto.hyperspace.CollectionSummary;
|
|
3473
|
+
reader.readMessage(value,proto.hyperspace.CollectionSummary.deserializeBinaryFromReader);
|
|
3474
|
+
msg.addCollections(value);
|
|
3314
3475
|
break;
|
|
3315
3476
|
default:
|
|
3316
3477
|
reader.skipField();
|
|
@@ -3325,9 +3486,9 @@ proto.hyperspace.CollectionStatsRequest.deserializeBinaryFromReader = function(m
|
|
|
3325
3486
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3326
3487
|
* @return {!Uint8Array}
|
|
3327
3488
|
*/
|
|
3328
|
-
proto.hyperspace.
|
|
3489
|
+
proto.hyperspace.ListCollectionsResponse.prototype.serializeBinary = function() {
|
|
3329
3490
|
var writer = new jspb.BinaryWriter();
|
|
3330
|
-
proto.hyperspace.
|
|
3491
|
+
proto.hyperspace.ListCollectionsResponse.serializeBinaryToWriter(this, writer);
|
|
3331
3492
|
return writer.getResultBuffer();
|
|
3332
3493
|
};
|
|
3333
3494
|
|
|
@@ -3335,37 +3496,188 @@ proto.hyperspace.CollectionStatsRequest.prototype.serializeBinary = function() {
|
|
|
3335
3496
|
/**
|
|
3336
3497
|
* Serializes the given message to binary data (in protobuf wire
|
|
3337
3498
|
* format), writing to the given BinaryWriter.
|
|
3338
|
-
* @param {!proto.hyperspace.
|
|
3499
|
+
* @param {!proto.hyperspace.ListCollectionsResponse} message
|
|
3339
3500
|
* @param {!jspb.BinaryWriter} writer
|
|
3340
3501
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3341
3502
|
*/
|
|
3342
|
-
proto.hyperspace.
|
|
3503
|
+
proto.hyperspace.ListCollectionsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3343
3504
|
var f = undefined;
|
|
3344
|
-
f = message.
|
|
3505
|
+
f = message.getCollectionsList();
|
|
3345
3506
|
if (f.length > 0) {
|
|
3346
|
-
writer.
|
|
3507
|
+
writer.writeRepeatedMessage(
|
|
3347
3508
|
1,
|
|
3348
|
-
f
|
|
3509
|
+
f,
|
|
3510
|
+
proto.hyperspace.CollectionSummary.serializeBinaryToWriter
|
|
3349
3511
|
);
|
|
3350
3512
|
}
|
|
3351
3513
|
};
|
|
3352
3514
|
|
|
3353
3515
|
|
|
3354
3516
|
/**
|
|
3355
|
-
*
|
|
3356
|
-
* @return {
|
|
3517
|
+
* repeated CollectionSummary collections = 1;
|
|
3518
|
+
* @return {!Array<!proto.hyperspace.CollectionSummary>}
|
|
3357
3519
|
*/
|
|
3358
|
-
proto.hyperspace.
|
|
3359
|
-
return /** @type
|
|
3520
|
+
proto.hyperspace.ListCollectionsResponse.prototype.getCollectionsList = function() {
|
|
3521
|
+
return /** @type{!Array<!proto.hyperspace.CollectionSummary>} */ (
|
|
3522
|
+
jspb.Message.getRepeatedWrapperField(this, proto.hyperspace.CollectionSummary, 1));
|
|
3360
3523
|
};
|
|
3361
3524
|
|
|
3362
3525
|
|
|
3363
3526
|
/**
|
|
3364
|
-
* @param {
|
|
3365
|
-
* @return {!proto.hyperspace.
|
|
3527
|
+
* @param {!Array<!proto.hyperspace.CollectionSummary>} value
|
|
3528
|
+
* @return {!proto.hyperspace.ListCollectionsResponse} returns this
|
|
3529
|
+
*/
|
|
3530
|
+
proto.hyperspace.ListCollectionsResponse.prototype.setCollectionsList = function(value) {
|
|
3531
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
3532
|
+
};
|
|
3533
|
+
|
|
3534
|
+
|
|
3535
|
+
/**
|
|
3536
|
+
* @param {!proto.hyperspace.CollectionSummary=} opt_value
|
|
3537
|
+
* @param {number=} opt_index
|
|
3538
|
+
* @return {!proto.hyperspace.CollectionSummary}
|
|
3366
3539
|
*/
|
|
3367
|
-
proto.hyperspace.
|
|
3368
|
-
return jspb.Message.
|
|
3540
|
+
proto.hyperspace.ListCollectionsResponse.prototype.addCollections = function(opt_value, opt_index) {
|
|
3541
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.hyperspace.CollectionSummary, opt_index);
|
|
3542
|
+
};
|
|
3543
|
+
|
|
3544
|
+
|
|
3545
|
+
/**
|
|
3546
|
+
* Clears the list making it empty but non-null.
|
|
3547
|
+
* @return {!proto.hyperspace.ListCollectionsResponse} returns this
|
|
3548
|
+
*/
|
|
3549
|
+
proto.hyperspace.ListCollectionsResponse.prototype.clearCollectionsList = function() {
|
|
3550
|
+
return this.setCollectionsList([]);
|
|
3551
|
+
};
|
|
3552
|
+
|
|
3553
|
+
|
|
3554
|
+
|
|
3555
|
+
|
|
3556
|
+
|
|
3557
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3558
|
+
/**
|
|
3559
|
+
* Creates an object representation of this proto.
|
|
3560
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3561
|
+
* Optional fields that are not set will be set to undefined.
|
|
3562
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3563
|
+
* For the list of reserved names please see:
|
|
3564
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3565
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3566
|
+
* JSPB instance for transitional soy proto support:
|
|
3567
|
+
* http://goto/soy-param-migration
|
|
3568
|
+
* @return {!Object}
|
|
3569
|
+
*/
|
|
3570
|
+
proto.hyperspace.CollectionStatsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3571
|
+
return proto.hyperspace.CollectionStatsRequest.toObject(opt_includeInstance, this);
|
|
3572
|
+
};
|
|
3573
|
+
|
|
3574
|
+
|
|
3575
|
+
/**
|
|
3576
|
+
* Static version of the {@see toObject} method.
|
|
3577
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3578
|
+
* the JSPB instance for transitional soy proto support:
|
|
3579
|
+
* http://goto/soy-param-migration
|
|
3580
|
+
* @param {!proto.hyperspace.CollectionStatsRequest} msg The msg instance to transform.
|
|
3581
|
+
* @return {!Object}
|
|
3582
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3583
|
+
*/
|
|
3584
|
+
proto.hyperspace.CollectionStatsRequest.toObject = function(includeInstance, msg) {
|
|
3585
|
+
var f, obj = {
|
|
3586
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
3587
|
+
};
|
|
3588
|
+
|
|
3589
|
+
if (includeInstance) {
|
|
3590
|
+
obj.$jspbMessageInstance = msg;
|
|
3591
|
+
}
|
|
3592
|
+
return obj;
|
|
3593
|
+
};
|
|
3594
|
+
}
|
|
3595
|
+
|
|
3596
|
+
|
|
3597
|
+
/**
|
|
3598
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3599
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3600
|
+
* @return {!proto.hyperspace.CollectionStatsRequest}
|
|
3601
|
+
*/
|
|
3602
|
+
proto.hyperspace.CollectionStatsRequest.deserializeBinary = function(bytes) {
|
|
3603
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3604
|
+
var msg = new proto.hyperspace.CollectionStatsRequest;
|
|
3605
|
+
return proto.hyperspace.CollectionStatsRequest.deserializeBinaryFromReader(msg, reader);
|
|
3606
|
+
};
|
|
3607
|
+
|
|
3608
|
+
|
|
3609
|
+
/**
|
|
3610
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3611
|
+
* given reader into the given message object.
|
|
3612
|
+
* @param {!proto.hyperspace.CollectionStatsRequest} msg The message object to deserialize into.
|
|
3613
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3614
|
+
* @return {!proto.hyperspace.CollectionStatsRequest}
|
|
3615
|
+
*/
|
|
3616
|
+
proto.hyperspace.CollectionStatsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3617
|
+
while (reader.nextField()) {
|
|
3618
|
+
if (reader.isEndGroup()) {
|
|
3619
|
+
break;
|
|
3620
|
+
}
|
|
3621
|
+
var field = reader.getFieldNumber();
|
|
3622
|
+
switch (field) {
|
|
3623
|
+
case 1:
|
|
3624
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3625
|
+
msg.setName(value);
|
|
3626
|
+
break;
|
|
3627
|
+
default:
|
|
3628
|
+
reader.skipField();
|
|
3629
|
+
break;
|
|
3630
|
+
}
|
|
3631
|
+
}
|
|
3632
|
+
return msg;
|
|
3633
|
+
};
|
|
3634
|
+
|
|
3635
|
+
|
|
3636
|
+
/**
|
|
3637
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3638
|
+
* @return {!Uint8Array}
|
|
3639
|
+
*/
|
|
3640
|
+
proto.hyperspace.CollectionStatsRequest.prototype.serializeBinary = function() {
|
|
3641
|
+
var writer = new jspb.BinaryWriter();
|
|
3642
|
+
proto.hyperspace.CollectionStatsRequest.serializeBinaryToWriter(this, writer);
|
|
3643
|
+
return writer.getResultBuffer();
|
|
3644
|
+
};
|
|
3645
|
+
|
|
3646
|
+
|
|
3647
|
+
/**
|
|
3648
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3649
|
+
* format), writing to the given BinaryWriter.
|
|
3650
|
+
* @param {!proto.hyperspace.CollectionStatsRequest} message
|
|
3651
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3652
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3653
|
+
*/
|
|
3654
|
+
proto.hyperspace.CollectionStatsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3655
|
+
var f = undefined;
|
|
3656
|
+
f = message.getName();
|
|
3657
|
+
if (f.length > 0) {
|
|
3658
|
+
writer.writeString(
|
|
3659
|
+
1,
|
|
3660
|
+
f
|
|
3661
|
+
);
|
|
3662
|
+
}
|
|
3663
|
+
};
|
|
3664
|
+
|
|
3665
|
+
|
|
3666
|
+
/**
|
|
3667
|
+
* optional string name = 1;
|
|
3668
|
+
* @return {string}
|
|
3669
|
+
*/
|
|
3670
|
+
proto.hyperspace.CollectionStatsRequest.prototype.getName = function() {
|
|
3671
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3672
|
+
};
|
|
3673
|
+
|
|
3674
|
+
|
|
3675
|
+
/**
|
|
3676
|
+
* @param {string} value
|
|
3677
|
+
* @return {!proto.hyperspace.CollectionStatsRequest} returns this
|
|
3678
|
+
*/
|
|
3679
|
+
proto.hyperspace.CollectionStatsRequest.prototype.setName = function(value) {
|
|
3680
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3369
3681
|
};
|
|
3370
3682
|
|
|
3371
3683
|
|
|
@@ -7025,7 +7337,7 @@ proto.hyperspace.SearchRequest.prototype.setUseWasserstein = function(value) {
|
|
|
7025
7337
|
* @private {!Array<!Array<number>>}
|
|
7026
7338
|
* @const
|
|
7027
7339
|
*/
|
|
7028
|
-
proto.hyperspace.Filter.oneofGroups_ = [[1,2]];
|
|
7340
|
+
proto.hyperspace.Filter.oneofGroups_ = [[1,2,3,4,5]];
|
|
7029
7341
|
|
|
7030
7342
|
/**
|
|
7031
7343
|
* @enum {number}
|
|
@@ -7033,7 +7345,10 @@ proto.hyperspace.Filter.oneofGroups_ = [[1,2]];
|
|
|
7033
7345
|
proto.hyperspace.Filter.ConditionCase = {
|
|
7034
7346
|
CONDITION_NOT_SET: 0,
|
|
7035
7347
|
MATCH: 1,
|
|
7036
|
-
RANGE: 2
|
|
7348
|
+
RANGE: 2,
|
|
7349
|
+
IN_CONE: 3,
|
|
7350
|
+
IN_BOX: 4,
|
|
7351
|
+
IN_BALL: 5
|
|
7037
7352
|
};
|
|
7038
7353
|
|
|
7039
7354
|
/**
|
|
@@ -7075,7 +7390,10 @@ proto.hyperspace.Filter.prototype.toObject = function(opt_includeInstance) {
|
|
|
7075
7390
|
proto.hyperspace.Filter.toObject = function(includeInstance, msg) {
|
|
7076
7391
|
var f, obj = {
|
|
7077
7392
|
match: (f = msg.getMatch()) && proto.hyperspace.Match.toObject(includeInstance, f),
|
|
7078
|
-
range: (f = msg.getRange()) && proto.hyperspace.Range.toObject(includeInstance, f)
|
|
7393
|
+
range: (f = msg.getRange()) && proto.hyperspace.Range.toObject(includeInstance, f),
|
|
7394
|
+
inCone: (f = msg.getInCone()) && proto.hyperspace.InCone.toObject(includeInstance, f),
|
|
7395
|
+
inBox: (f = msg.getInBox()) && proto.hyperspace.InBox.toObject(includeInstance, f),
|
|
7396
|
+
inBall: (f = msg.getInBall()) && proto.hyperspace.InBall.toObject(includeInstance, f)
|
|
7079
7397
|
};
|
|
7080
7398
|
|
|
7081
7399
|
if (includeInstance) {
|
|
@@ -7122,6 +7440,21 @@ proto.hyperspace.Filter.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
7122
7440
|
reader.readMessage(value,proto.hyperspace.Range.deserializeBinaryFromReader);
|
|
7123
7441
|
msg.setRange(value);
|
|
7124
7442
|
break;
|
|
7443
|
+
case 3:
|
|
7444
|
+
var value = new proto.hyperspace.InCone;
|
|
7445
|
+
reader.readMessage(value,proto.hyperspace.InCone.deserializeBinaryFromReader);
|
|
7446
|
+
msg.setInCone(value);
|
|
7447
|
+
break;
|
|
7448
|
+
case 4:
|
|
7449
|
+
var value = new proto.hyperspace.InBox;
|
|
7450
|
+
reader.readMessage(value,proto.hyperspace.InBox.deserializeBinaryFromReader);
|
|
7451
|
+
msg.setInBox(value);
|
|
7452
|
+
break;
|
|
7453
|
+
case 5:
|
|
7454
|
+
var value = new proto.hyperspace.InBall;
|
|
7455
|
+
reader.readMessage(value,proto.hyperspace.InBall.deserializeBinaryFromReader);
|
|
7456
|
+
msg.setInBall(value);
|
|
7457
|
+
break;
|
|
7125
7458
|
default:
|
|
7126
7459
|
reader.skipField();
|
|
7127
7460
|
break;
|
|
@@ -7167,6 +7500,30 @@ proto.hyperspace.Filter.serializeBinaryToWriter = function(message, writer) {
|
|
|
7167
7500
|
proto.hyperspace.Range.serializeBinaryToWriter
|
|
7168
7501
|
);
|
|
7169
7502
|
}
|
|
7503
|
+
f = message.getInCone();
|
|
7504
|
+
if (f != null) {
|
|
7505
|
+
writer.writeMessage(
|
|
7506
|
+
3,
|
|
7507
|
+
f,
|
|
7508
|
+
proto.hyperspace.InCone.serializeBinaryToWriter
|
|
7509
|
+
);
|
|
7510
|
+
}
|
|
7511
|
+
f = message.getInBox();
|
|
7512
|
+
if (f != null) {
|
|
7513
|
+
writer.writeMessage(
|
|
7514
|
+
4,
|
|
7515
|
+
f,
|
|
7516
|
+
proto.hyperspace.InBox.serializeBinaryToWriter
|
|
7517
|
+
);
|
|
7518
|
+
}
|
|
7519
|
+
f = message.getInBall();
|
|
7520
|
+
if (f != null) {
|
|
7521
|
+
writer.writeMessage(
|
|
7522
|
+
5,
|
|
7523
|
+
f,
|
|
7524
|
+
proto.hyperspace.InBall.serializeBinaryToWriter
|
|
7525
|
+
);
|
|
7526
|
+
}
|
|
7170
7527
|
};
|
|
7171
7528
|
|
|
7172
7529
|
|
|
@@ -7244,6 +7601,117 @@ proto.hyperspace.Filter.prototype.hasRange = function() {
|
|
|
7244
7601
|
};
|
|
7245
7602
|
|
|
7246
7603
|
|
|
7604
|
+
/**
|
|
7605
|
+
* optional InCone in_cone = 3;
|
|
7606
|
+
* @return {?proto.hyperspace.InCone}
|
|
7607
|
+
*/
|
|
7608
|
+
proto.hyperspace.Filter.prototype.getInCone = function() {
|
|
7609
|
+
return /** @type{?proto.hyperspace.InCone} */ (
|
|
7610
|
+
jspb.Message.getWrapperField(this, proto.hyperspace.InCone, 3));
|
|
7611
|
+
};
|
|
7612
|
+
|
|
7613
|
+
|
|
7614
|
+
/**
|
|
7615
|
+
* @param {?proto.hyperspace.InCone|undefined} value
|
|
7616
|
+
* @return {!proto.hyperspace.Filter} returns this
|
|
7617
|
+
*/
|
|
7618
|
+
proto.hyperspace.Filter.prototype.setInCone = function(value) {
|
|
7619
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.hyperspace.Filter.oneofGroups_[0], value);
|
|
7620
|
+
};
|
|
7621
|
+
|
|
7622
|
+
|
|
7623
|
+
/**
|
|
7624
|
+
* Clears the message field making it undefined.
|
|
7625
|
+
* @return {!proto.hyperspace.Filter} returns this
|
|
7626
|
+
*/
|
|
7627
|
+
proto.hyperspace.Filter.prototype.clearInCone = function() {
|
|
7628
|
+
return this.setInCone(undefined);
|
|
7629
|
+
};
|
|
7630
|
+
|
|
7631
|
+
|
|
7632
|
+
/**
|
|
7633
|
+
* Returns whether this field is set.
|
|
7634
|
+
* @return {boolean}
|
|
7635
|
+
*/
|
|
7636
|
+
proto.hyperspace.Filter.prototype.hasInCone = function() {
|
|
7637
|
+
return jspb.Message.getField(this, 3) != null;
|
|
7638
|
+
};
|
|
7639
|
+
|
|
7640
|
+
|
|
7641
|
+
/**
|
|
7642
|
+
* optional InBox in_box = 4;
|
|
7643
|
+
* @return {?proto.hyperspace.InBox}
|
|
7644
|
+
*/
|
|
7645
|
+
proto.hyperspace.Filter.prototype.getInBox = function() {
|
|
7646
|
+
return /** @type{?proto.hyperspace.InBox} */ (
|
|
7647
|
+
jspb.Message.getWrapperField(this, proto.hyperspace.InBox, 4));
|
|
7648
|
+
};
|
|
7649
|
+
|
|
7650
|
+
|
|
7651
|
+
/**
|
|
7652
|
+
* @param {?proto.hyperspace.InBox|undefined} value
|
|
7653
|
+
* @return {!proto.hyperspace.Filter} returns this
|
|
7654
|
+
*/
|
|
7655
|
+
proto.hyperspace.Filter.prototype.setInBox = function(value) {
|
|
7656
|
+
return jspb.Message.setOneofWrapperField(this, 4, proto.hyperspace.Filter.oneofGroups_[0], value);
|
|
7657
|
+
};
|
|
7658
|
+
|
|
7659
|
+
|
|
7660
|
+
/**
|
|
7661
|
+
* Clears the message field making it undefined.
|
|
7662
|
+
* @return {!proto.hyperspace.Filter} returns this
|
|
7663
|
+
*/
|
|
7664
|
+
proto.hyperspace.Filter.prototype.clearInBox = function() {
|
|
7665
|
+
return this.setInBox(undefined);
|
|
7666
|
+
};
|
|
7667
|
+
|
|
7668
|
+
|
|
7669
|
+
/**
|
|
7670
|
+
* Returns whether this field is set.
|
|
7671
|
+
* @return {boolean}
|
|
7672
|
+
*/
|
|
7673
|
+
proto.hyperspace.Filter.prototype.hasInBox = function() {
|
|
7674
|
+
return jspb.Message.getField(this, 4) != null;
|
|
7675
|
+
};
|
|
7676
|
+
|
|
7677
|
+
|
|
7678
|
+
/**
|
|
7679
|
+
* optional InBall in_ball = 5;
|
|
7680
|
+
* @return {?proto.hyperspace.InBall}
|
|
7681
|
+
*/
|
|
7682
|
+
proto.hyperspace.Filter.prototype.getInBall = function() {
|
|
7683
|
+
return /** @type{?proto.hyperspace.InBall} */ (
|
|
7684
|
+
jspb.Message.getWrapperField(this, proto.hyperspace.InBall, 5));
|
|
7685
|
+
};
|
|
7686
|
+
|
|
7687
|
+
|
|
7688
|
+
/**
|
|
7689
|
+
* @param {?proto.hyperspace.InBall|undefined} value
|
|
7690
|
+
* @return {!proto.hyperspace.Filter} returns this
|
|
7691
|
+
*/
|
|
7692
|
+
proto.hyperspace.Filter.prototype.setInBall = function(value) {
|
|
7693
|
+
return jspb.Message.setOneofWrapperField(this, 5, proto.hyperspace.Filter.oneofGroups_[0], value);
|
|
7694
|
+
};
|
|
7695
|
+
|
|
7696
|
+
|
|
7697
|
+
/**
|
|
7698
|
+
* Clears the message field making it undefined.
|
|
7699
|
+
* @return {!proto.hyperspace.Filter} returns this
|
|
7700
|
+
*/
|
|
7701
|
+
proto.hyperspace.Filter.prototype.clearInBall = function() {
|
|
7702
|
+
return this.setInBall(undefined);
|
|
7703
|
+
};
|
|
7704
|
+
|
|
7705
|
+
|
|
7706
|
+
/**
|
|
7707
|
+
* Returns whether this field is set.
|
|
7708
|
+
* @return {boolean}
|
|
7709
|
+
*/
|
|
7710
|
+
proto.hyperspace.Filter.prototype.hasInBall = function() {
|
|
7711
|
+
return jspb.Message.getField(this, 5) != null;
|
|
7712
|
+
};
|
|
7713
|
+
|
|
7714
|
+
|
|
7247
7715
|
|
|
7248
7716
|
|
|
7249
7717
|
|
|
@@ -7727,6 +8195,642 @@ proto.hyperspace.Range.prototype.hasLteF64 = function() {
|
|
|
7727
8195
|
|
|
7728
8196
|
|
|
7729
8197
|
|
|
8198
|
+
/**
|
|
8199
|
+
* List of repeated fields within this message type.
|
|
8200
|
+
* @private {!Array<number>}
|
|
8201
|
+
* @const
|
|
8202
|
+
*/
|
|
8203
|
+
proto.hyperspace.InCone.repeatedFields_ = [1,2];
|
|
8204
|
+
|
|
8205
|
+
|
|
8206
|
+
|
|
8207
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8208
|
+
/**
|
|
8209
|
+
* Creates an object representation of this proto.
|
|
8210
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8211
|
+
* Optional fields that are not set will be set to undefined.
|
|
8212
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8213
|
+
* For the list of reserved names please see:
|
|
8214
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8215
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8216
|
+
* JSPB instance for transitional soy proto support:
|
|
8217
|
+
* http://goto/soy-param-migration
|
|
8218
|
+
* @return {!Object}
|
|
8219
|
+
*/
|
|
8220
|
+
proto.hyperspace.InCone.prototype.toObject = function(opt_includeInstance) {
|
|
8221
|
+
return proto.hyperspace.InCone.toObject(opt_includeInstance, this);
|
|
8222
|
+
};
|
|
8223
|
+
|
|
8224
|
+
|
|
8225
|
+
/**
|
|
8226
|
+
* Static version of the {@see toObject} method.
|
|
8227
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8228
|
+
* the JSPB instance for transitional soy proto support:
|
|
8229
|
+
* http://goto/soy-param-migration
|
|
8230
|
+
* @param {!proto.hyperspace.InCone} msg The msg instance to transform.
|
|
8231
|
+
* @return {!Object}
|
|
8232
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8233
|
+
*/
|
|
8234
|
+
proto.hyperspace.InCone.toObject = function(includeInstance, msg) {
|
|
8235
|
+
var f, obj = {
|
|
8236
|
+
axesList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f,
|
|
8237
|
+
aperturesList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f,
|
|
8238
|
+
cen: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
|
8239
|
+
};
|
|
8240
|
+
|
|
8241
|
+
if (includeInstance) {
|
|
8242
|
+
obj.$jspbMessageInstance = msg;
|
|
8243
|
+
}
|
|
8244
|
+
return obj;
|
|
8245
|
+
};
|
|
8246
|
+
}
|
|
8247
|
+
|
|
8248
|
+
|
|
8249
|
+
/**
|
|
8250
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8251
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8252
|
+
* @return {!proto.hyperspace.InCone}
|
|
8253
|
+
*/
|
|
8254
|
+
proto.hyperspace.InCone.deserializeBinary = function(bytes) {
|
|
8255
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8256
|
+
var msg = new proto.hyperspace.InCone;
|
|
8257
|
+
return proto.hyperspace.InCone.deserializeBinaryFromReader(msg, reader);
|
|
8258
|
+
};
|
|
8259
|
+
|
|
8260
|
+
|
|
8261
|
+
/**
|
|
8262
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8263
|
+
* given reader into the given message object.
|
|
8264
|
+
* @param {!proto.hyperspace.InCone} msg The message object to deserialize into.
|
|
8265
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8266
|
+
* @return {!proto.hyperspace.InCone}
|
|
8267
|
+
*/
|
|
8268
|
+
proto.hyperspace.InCone.deserializeBinaryFromReader = function(msg, reader) {
|
|
8269
|
+
while (reader.nextField()) {
|
|
8270
|
+
if (reader.isEndGroup()) {
|
|
8271
|
+
break;
|
|
8272
|
+
}
|
|
8273
|
+
var field = reader.getFieldNumber();
|
|
8274
|
+
switch (field) {
|
|
8275
|
+
case 1:
|
|
8276
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
|
|
8277
|
+
for (var i = 0; i < values.length; i++) {
|
|
8278
|
+
msg.addAxes(values[i]);
|
|
8279
|
+
}
|
|
8280
|
+
break;
|
|
8281
|
+
case 2:
|
|
8282
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
|
|
8283
|
+
for (var i = 0; i < values.length; i++) {
|
|
8284
|
+
msg.addApertures(values[i]);
|
|
8285
|
+
}
|
|
8286
|
+
break;
|
|
8287
|
+
case 3:
|
|
8288
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
8289
|
+
msg.setCen(value);
|
|
8290
|
+
break;
|
|
8291
|
+
default:
|
|
8292
|
+
reader.skipField();
|
|
8293
|
+
break;
|
|
8294
|
+
}
|
|
8295
|
+
}
|
|
8296
|
+
return msg;
|
|
8297
|
+
};
|
|
8298
|
+
|
|
8299
|
+
|
|
8300
|
+
/**
|
|
8301
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8302
|
+
* @return {!Uint8Array}
|
|
8303
|
+
*/
|
|
8304
|
+
proto.hyperspace.InCone.prototype.serializeBinary = function() {
|
|
8305
|
+
var writer = new jspb.BinaryWriter();
|
|
8306
|
+
proto.hyperspace.InCone.serializeBinaryToWriter(this, writer);
|
|
8307
|
+
return writer.getResultBuffer();
|
|
8308
|
+
};
|
|
8309
|
+
|
|
8310
|
+
|
|
8311
|
+
/**
|
|
8312
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8313
|
+
* format), writing to the given BinaryWriter.
|
|
8314
|
+
* @param {!proto.hyperspace.InCone} message
|
|
8315
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8316
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8317
|
+
*/
|
|
8318
|
+
proto.hyperspace.InCone.serializeBinaryToWriter = function(message, writer) {
|
|
8319
|
+
var f = undefined;
|
|
8320
|
+
f = message.getAxesList();
|
|
8321
|
+
if (f.length > 0) {
|
|
8322
|
+
writer.writePackedDouble(
|
|
8323
|
+
1,
|
|
8324
|
+
f
|
|
8325
|
+
);
|
|
8326
|
+
}
|
|
8327
|
+
f = message.getAperturesList();
|
|
8328
|
+
if (f.length > 0) {
|
|
8329
|
+
writer.writePackedDouble(
|
|
8330
|
+
2,
|
|
8331
|
+
f
|
|
8332
|
+
);
|
|
8333
|
+
}
|
|
8334
|
+
f = message.getCen();
|
|
8335
|
+
if (f !== 0.0) {
|
|
8336
|
+
writer.writeDouble(
|
|
8337
|
+
3,
|
|
8338
|
+
f
|
|
8339
|
+
);
|
|
8340
|
+
}
|
|
8341
|
+
};
|
|
8342
|
+
|
|
8343
|
+
|
|
8344
|
+
/**
|
|
8345
|
+
* repeated double axes = 1;
|
|
8346
|
+
* @return {!Array<number>}
|
|
8347
|
+
*/
|
|
8348
|
+
proto.hyperspace.InCone.prototype.getAxesList = function() {
|
|
8349
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 1));
|
|
8350
|
+
};
|
|
8351
|
+
|
|
8352
|
+
|
|
8353
|
+
/**
|
|
8354
|
+
* @param {!Array<number>} value
|
|
8355
|
+
* @return {!proto.hyperspace.InCone} returns this
|
|
8356
|
+
*/
|
|
8357
|
+
proto.hyperspace.InCone.prototype.setAxesList = function(value) {
|
|
8358
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
8359
|
+
};
|
|
8360
|
+
|
|
8361
|
+
|
|
8362
|
+
/**
|
|
8363
|
+
* @param {number} value
|
|
8364
|
+
* @param {number=} opt_index
|
|
8365
|
+
* @return {!proto.hyperspace.InCone} returns this
|
|
8366
|
+
*/
|
|
8367
|
+
proto.hyperspace.InCone.prototype.addAxes = function(value, opt_index) {
|
|
8368
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
8369
|
+
};
|
|
8370
|
+
|
|
8371
|
+
|
|
8372
|
+
/**
|
|
8373
|
+
* Clears the list making it empty but non-null.
|
|
8374
|
+
* @return {!proto.hyperspace.InCone} returns this
|
|
8375
|
+
*/
|
|
8376
|
+
proto.hyperspace.InCone.prototype.clearAxesList = function() {
|
|
8377
|
+
return this.setAxesList([]);
|
|
8378
|
+
};
|
|
8379
|
+
|
|
8380
|
+
|
|
8381
|
+
/**
|
|
8382
|
+
* repeated double apertures = 2;
|
|
8383
|
+
* @return {!Array<number>}
|
|
8384
|
+
*/
|
|
8385
|
+
proto.hyperspace.InCone.prototype.getAperturesList = function() {
|
|
8386
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 2));
|
|
8387
|
+
};
|
|
8388
|
+
|
|
8389
|
+
|
|
8390
|
+
/**
|
|
8391
|
+
* @param {!Array<number>} value
|
|
8392
|
+
* @return {!proto.hyperspace.InCone} returns this
|
|
8393
|
+
*/
|
|
8394
|
+
proto.hyperspace.InCone.prototype.setAperturesList = function(value) {
|
|
8395
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
8396
|
+
};
|
|
8397
|
+
|
|
8398
|
+
|
|
8399
|
+
/**
|
|
8400
|
+
* @param {number} value
|
|
8401
|
+
* @param {number=} opt_index
|
|
8402
|
+
* @return {!proto.hyperspace.InCone} returns this
|
|
8403
|
+
*/
|
|
8404
|
+
proto.hyperspace.InCone.prototype.addApertures = function(value, opt_index) {
|
|
8405
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
8406
|
+
};
|
|
8407
|
+
|
|
8408
|
+
|
|
8409
|
+
/**
|
|
8410
|
+
* Clears the list making it empty but non-null.
|
|
8411
|
+
* @return {!proto.hyperspace.InCone} returns this
|
|
8412
|
+
*/
|
|
8413
|
+
proto.hyperspace.InCone.prototype.clearAperturesList = function() {
|
|
8414
|
+
return this.setAperturesList([]);
|
|
8415
|
+
};
|
|
8416
|
+
|
|
8417
|
+
|
|
8418
|
+
/**
|
|
8419
|
+
* optional double cen = 3;
|
|
8420
|
+
* @return {number}
|
|
8421
|
+
*/
|
|
8422
|
+
proto.hyperspace.InCone.prototype.getCen = function() {
|
|
8423
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
8424
|
+
};
|
|
8425
|
+
|
|
8426
|
+
|
|
8427
|
+
/**
|
|
8428
|
+
* @param {number} value
|
|
8429
|
+
* @return {!proto.hyperspace.InCone} returns this
|
|
8430
|
+
*/
|
|
8431
|
+
proto.hyperspace.InCone.prototype.setCen = function(value) {
|
|
8432
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
8433
|
+
};
|
|
8434
|
+
|
|
8435
|
+
|
|
8436
|
+
|
|
8437
|
+
/**
|
|
8438
|
+
* List of repeated fields within this message type.
|
|
8439
|
+
* @private {!Array<number>}
|
|
8440
|
+
* @const
|
|
8441
|
+
*/
|
|
8442
|
+
proto.hyperspace.InBox.repeatedFields_ = [1,2];
|
|
8443
|
+
|
|
8444
|
+
|
|
8445
|
+
|
|
8446
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8447
|
+
/**
|
|
8448
|
+
* Creates an object representation of this proto.
|
|
8449
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8450
|
+
* Optional fields that are not set will be set to undefined.
|
|
8451
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8452
|
+
* For the list of reserved names please see:
|
|
8453
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8454
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8455
|
+
* JSPB instance for transitional soy proto support:
|
|
8456
|
+
* http://goto/soy-param-migration
|
|
8457
|
+
* @return {!Object}
|
|
8458
|
+
*/
|
|
8459
|
+
proto.hyperspace.InBox.prototype.toObject = function(opt_includeInstance) {
|
|
8460
|
+
return proto.hyperspace.InBox.toObject(opt_includeInstance, this);
|
|
8461
|
+
};
|
|
8462
|
+
|
|
8463
|
+
|
|
8464
|
+
/**
|
|
8465
|
+
* Static version of the {@see toObject} method.
|
|
8466
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8467
|
+
* the JSPB instance for transitional soy proto support:
|
|
8468
|
+
* http://goto/soy-param-migration
|
|
8469
|
+
* @param {!proto.hyperspace.InBox} msg The msg instance to transform.
|
|
8470
|
+
* @return {!Object}
|
|
8471
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8472
|
+
*/
|
|
8473
|
+
proto.hyperspace.InBox.toObject = function(includeInstance, msg) {
|
|
8474
|
+
var f, obj = {
|
|
8475
|
+
minBoundsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f,
|
|
8476
|
+
maxBoundsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f
|
|
8477
|
+
};
|
|
8478
|
+
|
|
8479
|
+
if (includeInstance) {
|
|
8480
|
+
obj.$jspbMessageInstance = msg;
|
|
8481
|
+
}
|
|
8482
|
+
return obj;
|
|
8483
|
+
};
|
|
8484
|
+
}
|
|
8485
|
+
|
|
8486
|
+
|
|
8487
|
+
/**
|
|
8488
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8489
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8490
|
+
* @return {!proto.hyperspace.InBox}
|
|
8491
|
+
*/
|
|
8492
|
+
proto.hyperspace.InBox.deserializeBinary = function(bytes) {
|
|
8493
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8494
|
+
var msg = new proto.hyperspace.InBox;
|
|
8495
|
+
return proto.hyperspace.InBox.deserializeBinaryFromReader(msg, reader);
|
|
8496
|
+
};
|
|
8497
|
+
|
|
8498
|
+
|
|
8499
|
+
/**
|
|
8500
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8501
|
+
* given reader into the given message object.
|
|
8502
|
+
* @param {!proto.hyperspace.InBox} msg The message object to deserialize into.
|
|
8503
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8504
|
+
* @return {!proto.hyperspace.InBox}
|
|
8505
|
+
*/
|
|
8506
|
+
proto.hyperspace.InBox.deserializeBinaryFromReader = function(msg, reader) {
|
|
8507
|
+
while (reader.nextField()) {
|
|
8508
|
+
if (reader.isEndGroup()) {
|
|
8509
|
+
break;
|
|
8510
|
+
}
|
|
8511
|
+
var field = reader.getFieldNumber();
|
|
8512
|
+
switch (field) {
|
|
8513
|
+
case 1:
|
|
8514
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
|
|
8515
|
+
for (var i = 0; i < values.length; i++) {
|
|
8516
|
+
msg.addMinBounds(values[i]);
|
|
8517
|
+
}
|
|
8518
|
+
break;
|
|
8519
|
+
case 2:
|
|
8520
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
|
|
8521
|
+
for (var i = 0; i < values.length; i++) {
|
|
8522
|
+
msg.addMaxBounds(values[i]);
|
|
8523
|
+
}
|
|
8524
|
+
break;
|
|
8525
|
+
default:
|
|
8526
|
+
reader.skipField();
|
|
8527
|
+
break;
|
|
8528
|
+
}
|
|
8529
|
+
}
|
|
8530
|
+
return msg;
|
|
8531
|
+
};
|
|
8532
|
+
|
|
8533
|
+
|
|
8534
|
+
/**
|
|
8535
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8536
|
+
* @return {!Uint8Array}
|
|
8537
|
+
*/
|
|
8538
|
+
proto.hyperspace.InBox.prototype.serializeBinary = function() {
|
|
8539
|
+
var writer = new jspb.BinaryWriter();
|
|
8540
|
+
proto.hyperspace.InBox.serializeBinaryToWriter(this, writer);
|
|
8541
|
+
return writer.getResultBuffer();
|
|
8542
|
+
};
|
|
8543
|
+
|
|
8544
|
+
|
|
8545
|
+
/**
|
|
8546
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8547
|
+
* format), writing to the given BinaryWriter.
|
|
8548
|
+
* @param {!proto.hyperspace.InBox} message
|
|
8549
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8550
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8551
|
+
*/
|
|
8552
|
+
proto.hyperspace.InBox.serializeBinaryToWriter = function(message, writer) {
|
|
8553
|
+
var f = undefined;
|
|
8554
|
+
f = message.getMinBoundsList();
|
|
8555
|
+
if (f.length > 0) {
|
|
8556
|
+
writer.writePackedDouble(
|
|
8557
|
+
1,
|
|
8558
|
+
f
|
|
8559
|
+
);
|
|
8560
|
+
}
|
|
8561
|
+
f = message.getMaxBoundsList();
|
|
8562
|
+
if (f.length > 0) {
|
|
8563
|
+
writer.writePackedDouble(
|
|
8564
|
+
2,
|
|
8565
|
+
f
|
|
8566
|
+
);
|
|
8567
|
+
}
|
|
8568
|
+
};
|
|
8569
|
+
|
|
8570
|
+
|
|
8571
|
+
/**
|
|
8572
|
+
* repeated double min_bounds = 1;
|
|
8573
|
+
* @return {!Array<number>}
|
|
8574
|
+
*/
|
|
8575
|
+
proto.hyperspace.InBox.prototype.getMinBoundsList = function() {
|
|
8576
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 1));
|
|
8577
|
+
};
|
|
8578
|
+
|
|
8579
|
+
|
|
8580
|
+
/**
|
|
8581
|
+
* @param {!Array<number>} value
|
|
8582
|
+
* @return {!proto.hyperspace.InBox} returns this
|
|
8583
|
+
*/
|
|
8584
|
+
proto.hyperspace.InBox.prototype.setMinBoundsList = function(value) {
|
|
8585
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
8586
|
+
};
|
|
8587
|
+
|
|
8588
|
+
|
|
8589
|
+
/**
|
|
8590
|
+
* @param {number} value
|
|
8591
|
+
* @param {number=} opt_index
|
|
8592
|
+
* @return {!proto.hyperspace.InBox} returns this
|
|
8593
|
+
*/
|
|
8594
|
+
proto.hyperspace.InBox.prototype.addMinBounds = function(value, opt_index) {
|
|
8595
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
8596
|
+
};
|
|
8597
|
+
|
|
8598
|
+
|
|
8599
|
+
/**
|
|
8600
|
+
* Clears the list making it empty but non-null.
|
|
8601
|
+
* @return {!proto.hyperspace.InBox} returns this
|
|
8602
|
+
*/
|
|
8603
|
+
proto.hyperspace.InBox.prototype.clearMinBoundsList = function() {
|
|
8604
|
+
return this.setMinBoundsList([]);
|
|
8605
|
+
};
|
|
8606
|
+
|
|
8607
|
+
|
|
8608
|
+
/**
|
|
8609
|
+
* repeated double max_bounds = 2;
|
|
8610
|
+
* @return {!Array<number>}
|
|
8611
|
+
*/
|
|
8612
|
+
proto.hyperspace.InBox.prototype.getMaxBoundsList = function() {
|
|
8613
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 2));
|
|
8614
|
+
};
|
|
8615
|
+
|
|
8616
|
+
|
|
8617
|
+
/**
|
|
8618
|
+
* @param {!Array<number>} value
|
|
8619
|
+
* @return {!proto.hyperspace.InBox} returns this
|
|
8620
|
+
*/
|
|
8621
|
+
proto.hyperspace.InBox.prototype.setMaxBoundsList = function(value) {
|
|
8622
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
8623
|
+
};
|
|
8624
|
+
|
|
8625
|
+
|
|
8626
|
+
/**
|
|
8627
|
+
* @param {number} value
|
|
8628
|
+
* @param {number=} opt_index
|
|
8629
|
+
* @return {!proto.hyperspace.InBox} returns this
|
|
8630
|
+
*/
|
|
8631
|
+
proto.hyperspace.InBox.prototype.addMaxBounds = function(value, opt_index) {
|
|
8632
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
8633
|
+
};
|
|
8634
|
+
|
|
8635
|
+
|
|
8636
|
+
/**
|
|
8637
|
+
* Clears the list making it empty but non-null.
|
|
8638
|
+
* @return {!proto.hyperspace.InBox} returns this
|
|
8639
|
+
*/
|
|
8640
|
+
proto.hyperspace.InBox.prototype.clearMaxBoundsList = function() {
|
|
8641
|
+
return this.setMaxBoundsList([]);
|
|
8642
|
+
};
|
|
8643
|
+
|
|
8644
|
+
|
|
8645
|
+
|
|
8646
|
+
/**
|
|
8647
|
+
* List of repeated fields within this message type.
|
|
8648
|
+
* @private {!Array<number>}
|
|
8649
|
+
* @const
|
|
8650
|
+
*/
|
|
8651
|
+
proto.hyperspace.InBall.repeatedFields_ = [1];
|
|
8652
|
+
|
|
8653
|
+
|
|
8654
|
+
|
|
8655
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8656
|
+
/**
|
|
8657
|
+
* Creates an object representation of this proto.
|
|
8658
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8659
|
+
* Optional fields that are not set will be set to undefined.
|
|
8660
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8661
|
+
* For the list of reserved names please see:
|
|
8662
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8663
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8664
|
+
* JSPB instance for transitional soy proto support:
|
|
8665
|
+
* http://goto/soy-param-migration
|
|
8666
|
+
* @return {!Object}
|
|
8667
|
+
*/
|
|
8668
|
+
proto.hyperspace.InBall.prototype.toObject = function(opt_includeInstance) {
|
|
8669
|
+
return proto.hyperspace.InBall.toObject(opt_includeInstance, this);
|
|
8670
|
+
};
|
|
8671
|
+
|
|
8672
|
+
|
|
8673
|
+
/**
|
|
8674
|
+
* Static version of the {@see toObject} method.
|
|
8675
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8676
|
+
* the JSPB instance for transitional soy proto support:
|
|
8677
|
+
* http://goto/soy-param-migration
|
|
8678
|
+
* @param {!proto.hyperspace.InBall} msg The msg instance to transform.
|
|
8679
|
+
* @return {!Object}
|
|
8680
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8681
|
+
*/
|
|
8682
|
+
proto.hyperspace.InBall.toObject = function(includeInstance, msg) {
|
|
8683
|
+
var f, obj = {
|
|
8684
|
+
centerList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f,
|
|
8685
|
+
radius: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
8686
|
+
};
|
|
8687
|
+
|
|
8688
|
+
if (includeInstance) {
|
|
8689
|
+
obj.$jspbMessageInstance = msg;
|
|
8690
|
+
}
|
|
8691
|
+
return obj;
|
|
8692
|
+
};
|
|
8693
|
+
}
|
|
8694
|
+
|
|
8695
|
+
|
|
8696
|
+
/**
|
|
8697
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8698
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8699
|
+
* @return {!proto.hyperspace.InBall}
|
|
8700
|
+
*/
|
|
8701
|
+
proto.hyperspace.InBall.deserializeBinary = function(bytes) {
|
|
8702
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8703
|
+
var msg = new proto.hyperspace.InBall;
|
|
8704
|
+
return proto.hyperspace.InBall.deserializeBinaryFromReader(msg, reader);
|
|
8705
|
+
};
|
|
8706
|
+
|
|
8707
|
+
|
|
8708
|
+
/**
|
|
8709
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8710
|
+
* given reader into the given message object.
|
|
8711
|
+
* @param {!proto.hyperspace.InBall} msg The message object to deserialize into.
|
|
8712
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8713
|
+
* @return {!proto.hyperspace.InBall}
|
|
8714
|
+
*/
|
|
8715
|
+
proto.hyperspace.InBall.deserializeBinaryFromReader = function(msg, reader) {
|
|
8716
|
+
while (reader.nextField()) {
|
|
8717
|
+
if (reader.isEndGroup()) {
|
|
8718
|
+
break;
|
|
8719
|
+
}
|
|
8720
|
+
var field = reader.getFieldNumber();
|
|
8721
|
+
switch (field) {
|
|
8722
|
+
case 1:
|
|
8723
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
|
|
8724
|
+
for (var i = 0; i < values.length; i++) {
|
|
8725
|
+
msg.addCenter(values[i]);
|
|
8726
|
+
}
|
|
8727
|
+
break;
|
|
8728
|
+
case 2:
|
|
8729
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
8730
|
+
msg.setRadius(value);
|
|
8731
|
+
break;
|
|
8732
|
+
default:
|
|
8733
|
+
reader.skipField();
|
|
8734
|
+
break;
|
|
8735
|
+
}
|
|
8736
|
+
}
|
|
8737
|
+
return msg;
|
|
8738
|
+
};
|
|
8739
|
+
|
|
8740
|
+
|
|
8741
|
+
/**
|
|
8742
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8743
|
+
* @return {!Uint8Array}
|
|
8744
|
+
*/
|
|
8745
|
+
proto.hyperspace.InBall.prototype.serializeBinary = function() {
|
|
8746
|
+
var writer = new jspb.BinaryWriter();
|
|
8747
|
+
proto.hyperspace.InBall.serializeBinaryToWriter(this, writer);
|
|
8748
|
+
return writer.getResultBuffer();
|
|
8749
|
+
};
|
|
8750
|
+
|
|
8751
|
+
|
|
8752
|
+
/**
|
|
8753
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8754
|
+
* format), writing to the given BinaryWriter.
|
|
8755
|
+
* @param {!proto.hyperspace.InBall} message
|
|
8756
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8757
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8758
|
+
*/
|
|
8759
|
+
proto.hyperspace.InBall.serializeBinaryToWriter = function(message, writer) {
|
|
8760
|
+
var f = undefined;
|
|
8761
|
+
f = message.getCenterList();
|
|
8762
|
+
if (f.length > 0) {
|
|
8763
|
+
writer.writePackedDouble(
|
|
8764
|
+
1,
|
|
8765
|
+
f
|
|
8766
|
+
);
|
|
8767
|
+
}
|
|
8768
|
+
f = message.getRadius();
|
|
8769
|
+
if (f !== 0.0) {
|
|
8770
|
+
writer.writeDouble(
|
|
8771
|
+
2,
|
|
8772
|
+
f
|
|
8773
|
+
);
|
|
8774
|
+
}
|
|
8775
|
+
};
|
|
8776
|
+
|
|
8777
|
+
|
|
8778
|
+
/**
|
|
8779
|
+
* repeated double center = 1;
|
|
8780
|
+
* @return {!Array<number>}
|
|
8781
|
+
*/
|
|
8782
|
+
proto.hyperspace.InBall.prototype.getCenterList = function() {
|
|
8783
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 1));
|
|
8784
|
+
};
|
|
8785
|
+
|
|
8786
|
+
|
|
8787
|
+
/**
|
|
8788
|
+
* @param {!Array<number>} value
|
|
8789
|
+
* @return {!proto.hyperspace.InBall} returns this
|
|
8790
|
+
*/
|
|
8791
|
+
proto.hyperspace.InBall.prototype.setCenterList = function(value) {
|
|
8792
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
8793
|
+
};
|
|
8794
|
+
|
|
8795
|
+
|
|
8796
|
+
/**
|
|
8797
|
+
* @param {number} value
|
|
8798
|
+
* @param {number=} opt_index
|
|
8799
|
+
* @return {!proto.hyperspace.InBall} returns this
|
|
8800
|
+
*/
|
|
8801
|
+
proto.hyperspace.InBall.prototype.addCenter = function(value, opt_index) {
|
|
8802
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
8803
|
+
};
|
|
8804
|
+
|
|
8805
|
+
|
|
8806
|
+
/**
|
|
8807
|
+
* Clears the list making it empty but non-null.
|
|
8808
|
+
* @return {!proto.hyperspace.InBall} returns this
|
|
8809
|
+
*/
|
|
8810
|
+
proto.hyperspace.InBall.prototype.clearCenterList = function() {
|
|
8811
|
+
return this.setCenterList([]);
|
|
8812
|
+
};
|
|
8813
|
+
|
|
8814
|
+
|
|
8815
|
+
/**
|
|
8816
|
+
* optional double radius = 2;
|
|
8817
|
+
* @return {number}
|
|
8818
|
+
*/
|
|
8819
|
+
proto.hyperspace.InBall.prototype.getRadius = function() {
|
|
8820
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
8821
|
+
};
|
|
8822
|
+
|
|
8823
|
+
|
|
8824
|
+
/**
|
|
8825
|
+
* @param {number} value
|
|
8826
|
+
* @return {!proto.hyperspace.InBall} returns this
|
|
8827
|
+
*/
|
|
8828
|
+
proto.hyperspace.InBall.prototype.setRadius = function(value) {
|
|
8829
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
8830
|
+
};
|
|
8831
|
+
|
|
8832
|
+
|
|
8833
|
+
|
|
7730
8834
|
/**
|
|
7731
8835
|
* List of repeated fields within this message type.
|
|
7732
8836
|
* @private {!Array<number>}
|