clarifai-web-grpc 11.10.6 → 11.10.8

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/VERSION CHANGED
@@ -1 +1 @@
1
- 11.10.6
1
+ 11.10.8
@@ -47,7 +47,6 @@ goog.exportSymbol('proto.clarifai.api.Annotation', null, global);
47
47
  goog.exportSymbol('proto.clarifai.api.AnnotationDataType', null, global);
48
48
  goog.exportSymbol('proto.clarifai.api.AnnotationFilter', null, global);
49
49
  goog.exportSymbol('proto.clarifai.api.AnnotationFilterConfig', null, global);
50
- goog.exportSymbol('proto.clarifai.api.AnnotationSearchMetrics', null, global);
51
50
  goog.exportSymbol('proto.clarifai.api.AnnotationTrack', null, global);
52
51
  goog.exportSymbol('proto.clarifai.api.App', null, global);
53
52
  goog.exportSymbol('proto.clarifai.api.App.EmbeddingsStorage', null, global);
@@ -181,7 +180,6 @@ goog.exportSymbol('proto.clarifai.api.Key', null, global);
181
180
  goog.exportSymbol('proto.clarifai.api.KeypointEdge', null, global);
182
181
  goog.exportSymbol('proto.clarifai.api.KeypointInfo', null, global);
183
182
  goog.exportSymbol('proto.clarifai.api.KnowledgeGraph', null, global);
184
- goog.exportSymbol('proto.clarifai.api.LOPQEvalResult', null, global);
185
183
  goog.exportSymbol('proto.clarifai.api.LabelCount', null, global);
186
184
  goog.exportSymbol('proto.clarifai.api.LabelDistribution', null, global);
187
185
  goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global);
@@ -2551,27 +2549,6 @@ if (goog.DEBUG && !COMPILED) {
2551
2549
  */
2552
2550
  proto.clarifai.api.EvalTestSetEntry.displayName = 'proto.clarifai.api.EvalTestSetEntry';
2553
2551
  }
2554
- /**
2555
- * Generated by JsPbCodeGenerator.
2556
- * @param {Array=} opt_data Optional initial data array, typically from a
2557
- * server response, or constructed directly in Javascript. The array is used
2558
- * in place and becomes part of the constructed object. It is not cloned.
2559
- * If no data is provided, the constructed object will be empty, but still
2560
- * valid.
2561
- * @extends {jspb.Message}
2562
- * @constructor
2563
- */
2564
- proto.clarifai.api.LOPQEvalResult = function (opt_data) {
2565
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2566
- };
2567
- goog.inherits(proto.clarifai.api.LOPQEvalResult, jspb.Message);
2568
- if (goog.DEBUG && !COMPILED) {
2569
- /**
2570
- * @public
2571
- * @override
2572
- */
2573
- proto.clarifai.api.LOPQEvalResult.displayName = 'proto.clarifai.api.LOPQEvalResult';
2574
- }
2575
2552
  /**
2576
2553
  * Generated by JsPbCodeGenerator.
2577
2554
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2583,7 +2560,7 @@ if (goog.DEBUG && !COMPILED) {
2583
2560
  * @constructor
2584
2561
  */
2585
2562
  proto.clarifai.api.MetricsSummary = function (opt_data) {
2586
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricsSummary.repeatedFields_, null);
2563
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2587
2564
  };
2588
2565
  goog.inherits(proto.clarifai.api.MetricsSummary, jspb.Message);
2589
2566
  if (goog.DEBUG && !COMPILED) {
@@ -2887,27 +2864,6 @@ if (goog.DEBUG && !COMPILED) {
2887
2864
  */
2888
2865
  proto.clarifai.api.Rank.displayName = 'proto.clarifai.api.Rank';
2889
2866
  }
2890
- /**
2891
- * Generated by JsPbCodeGenerator.
2892
- * @param {Array=} opt_data Optional initial data array, typically from a
2893
- * server response, or constructed directly in Javascript. The array is used
2894
- * in place and becomes part of the constructed object. It is not cloned.
2895
- * If no data is provided, the constructed object will be empty, but still
2896
- * valid.
2897
- * @extends {jspb.Message}
2898
- * @constructor
2899
- */
2900
- proto.clarifai.api.AnnotationSearchMetrics = function (opt_data) {
2901
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2902
- };
2903
- goog.inherits(proto.clarifai.api.AnnotationSearchMetrics, jspb.Message);
2904
- if (goog.DEBUG && !COMPILED) {
2905
- /**
2906
- * @public
2907
- * @override
2908
- */
2909
- proto.clarifai.api.AnnotationSearchMetrics.displayName = 'proto.clarifai.api.AnnotationSearchMetrics';
2910
- }
2911
2867
  /**
2912
2868
  * Generated by JsPbCodeGenerator.
2913
2869
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -32320,234 +32276,6 @@ proto.clarifai.api.EvalTestSetEntry.prototype.clearGroundTruthAnnotation = funct
32320
32276
  proto.clarifai.api.EvalTestSetEntry.prototype.hasGroundTruthAnnotation = function () {
32321
32277
  return jspb.Message.getField(this, 8) != null;
32322
32278
  };
32323
- if (jspb.Message.GENERATE_TO_OBJECT) {
32324
- /**
32325
- * Creates an object representation of this proto.
32326
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
32327
- * Optional fields that are not set will be set to undefined.
32328
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32329
- * For the list of reserved names please see:
32330
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32331
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32332
- * JSPB instance for transitional soy proto support:
32333
- * http://goto/soy-param-migration
32334
- * @return {!Object}
32335
- */
32336
- proto.clarifai.api.LOPQEvalResult.prototype.toObject = function (opt_includeInstance) {
32337
- return proto.clarifai.api.LOPQEvalResult.toObject(opt_includeInstance, this);
32338
- };
32339
- /**
32340
- * Static version of the {@see toObject} method.
32341
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32342
- * the JSPB instance for transitional soy proto support:
32343
- * http://goto/soy-param-migration
32344
- * @param {!proto.clarifai.api.LOPQEvalResult} msg The msg instance to transform.
32345
- * @return {!Object}
32346
- * @suppress {unusedLocalVariables} f is only used for nested messages
32347
- */
32348
- proto.clarifai.api.LOPQEvalResult.toObject = function (includeInstance, msg) {
32349
- var f, obj = {
32350
- k: jspb.Message.getFieldWithDefault(msg, 1, 0),
32351
- recallVsBruteForce: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
32352
- kendallTauVsBruteForce: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
32353
- mostFrequentCodePercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
32354
- lopqNdcg: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
32355
- bruteForceNdcg: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0)
32356
- };
32357
- if (includeInstance) {
32358
- obj.$jspbMessageInstance = msg;
32359
- }
32360
- return obj;
32361
- };
32362
- }
32363
- /**
32364
- * Deserializes binary data (in protobuf wire format).
32365
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
32366
- * @return {!proto.clarifai.api.LOPQEvalResult}
32367
- */
32368
- proto.clarifai.api.LOPQEvalResult.deserializeBinary = function (bytes) {
32369
- var reader = new jspb.BinaryReader(bytes);
32370
- var msg = new proto.clarifai.api.LOPQEvalResult;
32371
- return proto.clarifai.api.LOPQEvalResult.deserializeBinaryFromReader(msg, reader);
32372
- };
32373
- /**
32374
- * Deserializes binary data (in protobuf wire format) from the
32375
- * given reader into the given message object.
32376
- * @param {!proto.clarifai.api.LOPQEvalResult} msg The message object to deserialize into.
32377
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32378
- * @return {!proto.clarifai.api.LOPQEvalResult}
32379
- */
32380
- proto.clarifai.api.LOPQEvalResult.deserializeBinaryFromReader = function (msg, reader) {
32381
- while (reader.nextField()) {
32382
- if (reader.isEndGroup()) {
32383
- break;
32384
- }
32385
- var field = reader.getFieldNumber();
32386
- switch (field) {
32387
- case 1:
32388
- var value = /** @type {number} */ (reader.readInt32());
32389
- msg.setK(value);
32390
- break;
32391
- case 2:
32392
- var value = /** @type {number} */ (reader.readFloat());
32393
- msg.setRecallVsBruteForce(value);
32394
- break;
32395
- case 3:
32396
- var value = /** @type {number} */ (reader.readFloat());
32397
- msg.setKendallTauVsBruteForce(value);
32398
- break;
32399
- case 4:
32400
- var value = /** @type {number} */ (reader.readFloat());
32401
- msg.setMostFrequentCodePercent(value);
32402
- break;
32403
- case 5:
32404
- var value = /** @type {number} */ (reader.readFloat());
32405
- msg.setLopqNdcg(value);
32406
- break;
32407
- case 6:
32408
- var value = /** @type {number} */ (reader.readFloat());
32409
- msg.setBruteForceNdcg(value);
32410
- break;
32411
- default:
32412
- reader.skipField();
32413
- break;
32414
- }
32415
- }
32416
- return msg;
32417
- };
32418
- /**
32419
- * Serializes the message to binary data (in protobuf wire format).
32420
- * @return {!Uint8Array}
32421
- */
32422
- proto.clarifai.api.LOPQEvalResult.prototype.serializeBinary = function () {
32423
- var writer = new jspb.BinaryWriter();
32424
- proto.clarifai.api.LOPQEvalResult.serializeBinaryToWriter(this, writer);
32425
- return writer.getResultBuffer();
32426
- };
32427
- /**
32428
- * Serializes the given message to binary data (in protobuf wire
32429
- * format), writing to the given BinaryWriter.
32430
- * @param {!proto.clarifai.api.LOPQEvalResult} message
32431
- * @param {!jspb.BinaryWriter} writer
32432
- * @suppress {unusedLocalVariables} f is only used for nested messages
32433
- */
32434
- proto.clarifai.api.LOPQEvalResult.serializeBinaryToWriter = function (message, writer) {
32435
- var f = undefined;
32436
- f = message.getK();
32437
- if (f !== 0) {
32438
- writer.writeInt32(1, f);
32439
- }
32440
- f = message.getRecallVsBruteForce();
32441
- if (f !== 0.0) {
32442
- writer.writeFloat(2, f);
32443
- }
32444
- f = message.getKendallTauVsBruteForce();
32445
- if (f !== 0.0) {
32446
- writer.writeFloat(3, f);
32447
- }
32448
- f = message.getMostFrequentCodePercent();
32449
- if (f !== 0.0) {
32450
- writer.writeFloat(4, f);
32451
- }
32452
- f = message.getLopqNdcg();
32453
- if (f !== 0.0) {
32454
- writer.writeFloat(5, f);
32455
- }
32456
- f = message.getBruteForceNdcg();
32457
- if (f !== 0.0) {
32458
- writer.writeFloat(6, f);
32459
- }
32460
- };
32461
- /**
32462
- * optional int32 k = 1;
32463
- * @return {number}
32464
- */
32465
- proto.clarifai.api.LOPQEvalResult.prototype.getK = function () {
32466
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
32467
- };
32468
- /**
32469
- * @param {number} value
32470
- * @return {!proto.clarifai.api.LOPQEvalResult} returns this
32471
- */
32472
- proto.clarifai.api.LOPQEvalResult.prototype.setK = function (value) {
32473
- return jspb.Message.setProto3IntField(this, 1, value);
32474
- };
32475
- /**
32476
- * optional float recall_vs_brute_force = 2;
32477
- * @return {number}
32478
- */
32479
- proto.clarifai.api.LOPQEvalResult.prototype.getRecallVsBruteForce = function () {
32480
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
32481
- };
32482
- /**
32483
- * @param {number} value
32484
- * @return {!proto.clarifai.api.LOPQEvalResult} returns this
32485
- */
32486
- proto.clarifai.api.LOPQEvalResult.prototype.setRecallVsBruteForce = function (value) {
32487
- return jspb.Message.setProto3FloatField(this, 2, value);
32488
- };
32489
- /**
32490
- * optional float kendall_tau_vs_brute_force = 3;
32491
- * @return {number}
32492
- */
32493
- proto.clarifai.api.LOPQEvalResult.prototype.getKendallTauVsBruteForce = function () {
32494
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
32495
- };
32496
- /**
32497
- * @param {number} value
32498
- * @return {!proto.clarifai.api.LOPQEvalResult} returns this
32499
- */
32500
- proto.clarifai.api.LOPQEvalResult.prototype.setKendallTauVsBruteForce = function (value) {
32501
- return jspb.Message.setProto3FloatField(this, 3, value);
32502
- };
32503
- /**
32504
- * optional float most_frequent_code_percent = 4;
32505
- * @return {number}
32506
- */
32507
- proto.clarifai.api.LOPQEvalResult.prototype.getMostFrequentCodePercent = function () {
32508
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
32509
- };
32510
- /**
32511
- * @param {number} value
32512
- * @return {!proto.clarifai.api.LOPQEvalResult} returns this
32513
- */
32514
- proto.clarifai.api.LOPQEvalResult.prototype.setMostFrequentCodePercent = function (value) {
32515
- return jspb.Message.setProto3FloatField(this, 4, value);
32516
- };
32517
- /**
32518
- * optional float lopq_ndcg = 5;
32519
- * @return {number}
32520
- */
32521
- proto.clarifai.api.LOPQEvalResult.prototype.getLopqNdcg = function () {
32522
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
32523
- };
32524
- /**
32525
- * @param {number} value
32526
- * @return {!proto.clarifai.api.LOPQEvalResult} returns this
32527
- */
32528
- proto.clarifai.api.LOPQEvalResult.prototype.setLopqNdcg = function (value) {
32529
- return jspb.Message.setProto3FloatField(this, 5, value);
32530
- };
32531
- /**
32532
- * optional float brute_force_ndcg = 6;
32533
- * @return {number}
32534
- */
32535
- proto.clarifai.api.LOPQEvalResult.prototype.getBruteForceNdcg = function () {
32536
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
32537
- };
32538
- /**
32539
- * @param {number} value
32540
- * @return {!proto.clarifai.api.LOPQEvalResult} returns this
32541
- */
32542
- proto.clarifai.api.LOPQEvalResult.prototype.setBruteForceNdcg = function (value) {
32543
- return jspb.Message.setProto3FloatField(this, 6, value);
32544
- };
32545
- /**
32546
- * List of repeated fields within this message type.
32547
- * @private {!Array<number>}
32548
- * @const
32549
- */
32550
- proto.clarifai.api.MetricsSummary.repeatedFields_ = [9];
32551
32279
  if (jspb.Message.GENERATE_TO_OBJECT) {
32552
32280
  /**
32553
32281
  * Creates an object representation of this proto.
@@ -32584,8 +32312,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
32584
32312
  macroAvgPrecision: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
32585
32313
  macroAvgRecall: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
32586
32314
  meanAvgPrecisionIou50: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
32587
- meanAvgPrecisionIouRange: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
32588
- lopqMetricsList: jspb.Message.toObjectList(msg.getLopqMetricsList(), proto.clarifai.api.LOPQEvalResult.toObject, includeInstance)
32315
+ meanAvgPrecisionIouRange: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0)
32589
32316
  };
32590
32317
  if (includeInstance) {
32591
32318
  obj.$jspbMessageInstance = msg;
@@ -32657,11 +32384,6 @@ proto.clarifai.api.MetricsSummary.deserializeBinaryFromReader = function (msg, r
32657
32384
  var value = /** @type {number} */ (reader.readFloat());
32658
32385
  msg.setMeanAvgPrecisionIouRange(value);
32659
32386
  break;
32660
- case 9:
32661
- var value = new proto.clarifai.api.LOPQEvalResult;
32662
- reader.readMessage(value, proto.clarifai.api.LOPQEvalResult.deserializeBinaryFromReader);
32663
- msg.addLopqMetrics(value);
32664
- break;
32665
32387
  default:
32666
32388
  reader.skipField();
32667
32389
  break;
@@ -32727,10 +32449,6 @@ proto.clarifai.api.MetricsSummary.serializeBinaryToWriter = function (message, w
32727
32449
  if (f !== 0.0) {
32728
32450
  writer.writeFloat(11, f);
32729
32451
  }
32730
- f = message.getLopqMetricsList();
32731
- if (f.length > 0) {
32732
- writer.writeRepeatedMessage(9, f, proto.clarifai.api.LOPQEvalResult.serializeBinaryToWriter);
32733
- }
32734
32452
  };
32735
32453
  /**
32736
32454
  * optional float top1_accuracy = 1;
@@ -32872,35 +32590,6 @@ proto.clarifai.api.MetricsSummary.prototype.getMeanAvgPrecisionIouRange = functi
32872
32590
  proto.clarifai.api.MetricsSummary.prototype.setMeanAvgPrecisionIouRange = function (value) {
32873
32591
  return jspb.Message.setProto3FloatField(this, 11, value);
32874
32592
  };
32875
- /**
32876
- * repeated LOPQEvalResult lopq_metrics = 9;
32877
- * @return {!Array<!proto.clarifai.api.LOPQEvalResult>}
32878
- */
32879
- proto.clarifai.api.MetricsSummary.prototype.getLopqMetricsList = function () {
32880
- return /** @type{!Array<!proto.clarifai.api.LOPQEvalResult>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.LOPQEvalResult, 9));
32881
- };
32882
- /**
32883
- * @param {!Array<!proto.clarifai.api.LOPQEvalResult>} value
32884
- * @return {!proto.clarifai.api.MetricsSummary} returns this
32885
- */
32886
- proto.clarifai.api.MetricsSummary.prototype.setLopqMetricsList = function (value) {
32887
- return jspb.Message.setRepeatedWrapperField(this, 9, value);
32888
- };
32889
- /**
32890
- * @param {!proto.clarifai.api.LOPQEvalResult=} opt_value
32891
- * @param {number=} opt_index
32892
- * @return {!proto.clarifai.api.LOPQEvalResult}
32893
- */
32894
- proto.clarifai.api.MetricsSummary.prototype.addLopqMetrics = function (opt_value, opt_index) {
32895
- return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.clarifai.api.LOPQEvalResult, opt_index);
32896
- };
32897
- /**
32898
- * Clears the list making it empty but non-null.
32899
- * @return {!proto.clarifai.api.MetricsSummary} returns this
32900
- */
32901
- proto.clarifai.api.MetricsSummary.prototype.clearLopqMetricsList = function () {
32902
- return this.setLopqMetricsList([]);
32903
- };
32904
32593
  /**
32905
32594
  * List of repeated fields within this message type.
32906
32595
  * @private {!Array<number>}
@@ -36426,303 +36115,6 @@ proto.clarifai.api.Rank.prototype.clearAnnotation = function () {
36426
36115
  proto.clarifai.api.Rank.prototype.hasAnnotation = function () {
36427
36116
  return jspb.Message.getField(this, 4) != null;
36428
36117
  };
36429
- if (jspb.Message.GENERATE_TO_OBJECT) {
36430
- /**
36431
- * Creates an object representation of this proto.
36432
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
36433
- * Optional fields that are not set will be set to undefined.
36434
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
36435
- * For the list of reserved names please see:
36436
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
36437
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
36438
- * JSPB instance for transitional soy proto support:
36439
- * http://goto/soy-param-migration
36440
- * @return {!Object}
36441
- */
36442
- proto.clarifai.api.AnnotationSearchMetrics.prototype.toObject = function (opt_includeInstance) {
36443
- return proto.clarifai.api.AnnotationSearchMetrics.toObject(opt_includeInstance, this);
36444
- };
36445
- /**
36446
- * Static version of the {@see toObject} method.
36447
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
36448
- * the JSPB instance for transitional soy proto support:
36449
- * http://goto/soy-param-migration
36450
- * @param {!proto.clarifai.api.AnnotationSearchMetrics} msg The msg instance to transform.
36451
- * @return {!Object}
36452
- * @suppress {unusedLocalVariables} f is only used for nested messages
36453
- */
36454
- proto.clarifai.api.AnnotationSearchMetrics.toObject = function (includeInstance, msg) {
36455
- var f, obj = {
36456
- groundTruth: (f = msg.getGroundTruth()) && proto.clarifai.api.Search.toObject(includeInstance, f),
36457
- searchToEval: (f = msg.getSearchToEval()) && proto.clarifai.api.Search.toObject(includeInstance, f),
36458
- metrics: (f = msg.getMetrics()) && proto.clarifai.api.EvalMetrics.toObject(includeInstance, f),
36459
- data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f),
36460
- activeConceptCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
36461
- visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f)
36462
- };
36463
- if (includeInstance) {
36464
- obj.$jspbMessageInstance = msg;
36465
- }
36466
- return obj;
36467
- };
36468
- }
36469
- /**
36470
- * Deserializes binary data (in protobuf wire format).
36471
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
36472
- * @return {!proto.clarifai.api.AnnotationSearchMetrics}
36473
- */
36474
- proto.clarifai.api.AnnotationSearchMetrics.deserializeBinary = function (bytes) {
36475
- var reader = new jspb.BinaryReader(bytes);
36476
- var msg = new proto.clarifai.api.AnnotationSearchMetrics;
36477
- return proto.clarifai.api.AnnotationSearchMetrics.deserializeBinaryFromReader(msg, reader);
36478
- };
36479
- /**
36480
- * Deserializes binary data (in protobuf wire format) from the
36481
- * given reader into the given message object.
36482
- * @param {!proto.clarifai.api.AnnotationSearchMetrics} msg The message object to deserialize into.
36483
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
36484
- * @return {!proto.clarifai.api.AnnotationSearchMetrics}
36485
- */
36486
- proto.clarifai.api.AnnotationSearchMetrics.deserializeBinaryFromReader = function (msg, reader) {
36487
- while (reader.nextField()) {
36488
- if (reader.isEndGroup()) {
36489
- break;
36490
- }
36491
- var field = reader.getFieldNumber();
36492
- switch (field) {
36493
- case 1:
36494
- var value = new proto.clarifai.api.Search;
36495
- reader.readMessage(value, proto.clarifai.api.Search.deserializeBinaryFromReader);
36496
- msg.setGroundTruth(value);
36497
- break;
36498
- case 2:
36499
- var value = new proto.clarifai.api.Search;
36500
- reader.readMessage(value, proto.clarifai.api.Search.deserializeBinaryFromReader);
36501
- msg.setSearchToEval(value);
36502
- break;
36503
- case 3:
36504
- var value = new proto.clarifai.api.EvalMetrics;
36505
- reader.readMessage(value, proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader);
36506
- msg.setMetrics(value);
36507
- break;
36508
- case 4:
36509
- var value = new proto.clarifai.api.Data;
36510
- reader.readMessage(value, proto.clarifai.api.Data.deserializeBinaryFromReader);
36511
- msg.setData(value);
36512
- break;
36513
- case 5:
36514
- var value = /** @type {number} */ (reader.readUint32());
36515
- msg.setActiveConceptCount(value);
36516
- break;
36517
- case 6:
36518
- var value = new proto.clarifai.api.Visibility;
36519
- reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
36520
- msg.setVisibility(value);
36521
- break;
36522
- default:
36523
- reader.skipField();
36524
- break;
36525
- }
36526
- }
36527
- return msg;
36528
- };
36529
- /**
36530
- * Serializes the message to binary data (in protobuf wire format).
36531
- * @return {!Uint8Array}
36532
- */
36533
- proto.clarifai.api.AnnotationSearchMetrics.prototype.serializeBinary = function () {
36534
- var writer = new jspb.BinaryWriter();
36535
- proto.clarifai.api.AnnotationSearchMetrics.serializeBinaryToWriter(this, writer);
36536
- return writer.getResultBuffer();
36537
- };
36538
- /**
36539
- * Serializes the given message to binary data (in protobuf wire
36540
- * format), writing to the given BinaryWriter.
36541
- * @param {!proto.clarifai.api.AnnotationSearchMetrics} message
36542
- * @param {!jspb.BinaryWriter} writer
36543
- * @suppress {unusedLocalVariables} f is only used for nested messages
36544
- */
36545
- proto.clarifai.api.AnnotationSearchMetrics.serializeBinaryToWriter = function (message, writer) {
36546
- var f = undefined;
36547
- f = message.getGroundTruth();
36548
- if (f != null) {
36549
- writer.writeMessage(1, f, proto.clarifai.api.Search.serializeBinaryToWriter);
36550
- }
36551
- f = message.getSearchToEval();
36552
- if (f != null) {
36553
- writer.writeMessage(2, f, proto.clarifai.api.Search.serializeBinaryToWriter);
36554
- }
36555
- f = message.getMetrics();
36556
- if (f != null) {
36557
- writer.writeMessage(3, f, proto.clarifai.api.EvalMetrics.serializeBinaryToWriter);
36558
- }
36559
- f = message.getData();
36560
- if (f != null) {
36561
- writer.writeMessage(4, f, proto.clarifai.api.Data.serializeBinaryToWriter);
36562
- }
36563
- f = message.getActiveConceptCount();
36564
- if (f !== 0) {
36565
- writer.writeUint32(5, f);
36566
- }
36567
- f = message.getVisibility();
36568
- if (f != null) {
36569
- writer.writeMessage(6, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
36570
- }
36571
- };
36572
- /**
36573
- * optional Search ground_truth = 1;
36574
- * @return {?proto.clarifai.api.Search}
36575
- */
36576
- proto.clarifai.api.AnnotationSearchMetrics.prototype.getGroundTruth = function () {
36577
- return /** @type{?proto.clarifai.api.Search} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 1));
36578
- };
36579
- /**
36580
- * @param {?proto.clarifai.api.Search|undefined} value
36581
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36582
- */
36583
- proto.clarifai.api.AnnotationSearchMetrics.prototype.setGroundTruth = function (value) {
36584
- return jspb.Message.setWrapperField(this, 1, value);
36585
- };
36586
- /**
36587
- * Clears the message field making it undefined.
36588
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36589
- */
36590
- proto.clarifai.api.AnnotationSearchMetrics.prototype.clearGroundTruth = function () {
36591
- return this.setGroundTruth(undefined);
36592
- };
36593
- /**
36594
- * Returns whether this field is set.
36595
- * @return {boolean}
36596
- */
36597
- proto.clarifai.api.AnnotationSearchMetrics.prototype.hasGroundTruth = function () {
36598
- return jspb.Message.getField(this, 1) != null;
36599
- };
36600
- /**
36601
- * optional Search search_to_eval = 2;
36602
- * @return {?proto.clarifai.api.Search}
36603
- */
36604
- proto.clarifai.api.AnnotationSearchMetrics.prototype.getSearchToEval = function () {
36605
- return /** @type{?proto.clarifai.api.Search} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 2));
36606
- };
36607
- /**
36608
- * @param {?proto.clarifai.api.Search|undefined} value
36609
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36610
- */
36611
- proto.clarifai.api.AnnotationSearchMetrics.prototype.setSearchToEval = function (value) {
36612
- return jspb.Message.setWrapperField(this, 2, value);
36613
- };
36614
- /**
36615
- * Clears the message field making it undefined.
36616
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36617
- */
36618
- proto.clarifai.api.AnnotationSearchMetrics.prototype.clearSearchToEval = function () {
36619
- return this.setSearchToEval(undefined);
36620
- };
36621
- /**
36622
- * Returns whether this field is set.
36623
- * @return {boolean}
36624
- */
36625
- proto.clarifai.api.AnnotationSearchMetrics.prototype.hasSearchToEval = function () {
36626
- return jspb.Message.getField(this, 2) != null;
36627
- };
36628
- /**
36629
- * optional EvalMetrics metrics = 3;
36630
- * @return {?proto.clarifai.api.EvalMetrics}
36631
- */
36632
- proto.clarifai.api.AnnotationSearchMetrics.prototype.getMetrics = function () {
36633
- return /** @type{?proto.clarifai.api.EvalMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.EvalMetrics, 3));
36634
- };
36635
- /**
36636
- * @param {?proto.clarifai.api.EvalMetrics|undefined} value
36637
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36638
- */
36639
- proto.clarifai.api.AnnotationSearchMetrics.prototype.setMetrics = function (value) {
36640
- return jspb.Message.setWrapperField(this, 3, value);
36641
- };
36642
- /**
36643
- * Clears the message field making it undefined.
36644
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36645
- */
36646
- proto.clarifai.api.AnnotationSearchMetrics.prototype.clearMetrics = function () {
36647
- return this.setMetrics(undefined);
36648
- };
36649
- /**
36650
- * Returns whether this field is set.
36651
- * @return {boolean}
36652
- */
36653
- proto.clarifai.api.AnnotationSearchMetrics.prototype.hasMetrics = function () {
36654
- return jspb.Message.getField(this, 3) != null;
36655
- };
36656
- /**
36657
- * optional Data data = 4;
36658
- * @return {?proto.clarifai.api.Data}
36659
- */
36660
- proto.clarifai.api.AnnotationSearchMetrics.prototype.getData = function () {
36661
- return /** @type{?proto.clarifai.api.Data} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 4));
36662
- };
36663
- /**
36664
- * @param {?proto.clarifai.api.Data|undefined} value
36665
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36666
- */
36667
- proto.clarifai.api.AnnotationSearchMetrics.prototype.setData = function (value) {
36668
- return jspb.Message.setWrapperField(this, 4, value);
36669
- };
36670
- /**
36671
- * Clears the message field making it undefined.
36672
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36673
- */
36674
- proto.clarifai.api.AnnotationSearchMetrics.prototype.clearData = function () {
36675
- return this.setData(undefined);
36676
- };
36677
- /**
36678
- * Returns whether this field is set.
36679
- * @return {boolean}
36680
- */
36681
- proto.clarifai.api.AnnotationSearchMetrics.prototype.hasData = function () {
36682
- return jspb.Message.getField(this, 4) != null;
36683
- };
36684
- /**
36685
- * optional uint32 active_concept_count = 5;
36686
- * @return {number}
36687
- */
36688
- proto.clarifai.api.AnnotationSearchMetrics.prototype.getActiveConceptCount = function () {
36689
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
36690
- };
36691
- /**
36692
- * @param {number} value
36693
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36694
- */
36695
- proto.clarifai.api.AnnotationSearchMetrics.prototype.setActiveConceptCount = function (value) {
36696
- return jspb.Message.setProto3IntField(this, 5, value);
36697
- };
36698
- /**
36699
- * optional Visibility visibility = 6;
36700
- * @return {?proto.clarifai.api.Visibility}
36701
- */
36702
- proto.clarifai.api.AnnotationSearchMetrics.prototype.getVisibility = function () {
36703
- return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 6));
36704
- };
36705
- /**
36706
- * @param {?proto.clarifai.api.Visibility|undefined} value
36707
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36708
- */
36709
- proto.clarifai.api.AnnotationSearchMetrics.prototype.setVisibility = function (value) {
36710
- return jspb.Message.setWrapperField(this, 6, value);
36711
- };
36712
- /**
36713
- * Clears the message field making it undefined.
36714
- * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this
36715
- */
36716
- proto.clarifai.api.AnnotationSearchMetrics.prototype.clearVisibility = function () {
36717
- return this.setVisibility(undefined);
36718
- };
36719
- /**
36720
- * Returns whether this field is set.
36721
- * @return {boolean}
36722
- */
36723
- proto.clarifai.api.AnnotationSearchMetrics.prototype.hasVisibility = function () {
36724
- return jspb.Message.getField(this, 6) != null;
36725
- };
36726
36118
  if (jspb.Message.GENERATE_TO_OBJECT) {
36727
36119
  /**
36728
36120
  * Creates an object representation of this proto.