clarifai-web-grpc 11.10.7 → 11.10.9

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.
@@ -45,7 +45,6 @@ goog.exportSymbol('proto.clarifai.api.CancelInputsExtractionJobsRequest', null,
45
45
  goog.exportSymbol('proto.clarifai.api.ConceptExtraInfoRequest', null, global);
46
46
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationFiltersRequest', null, global);
47
47
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationRequest', null, global);
48
- goog.exportSymbol('proto.clarifai.api.DeleteAnnotationSearchMetricsRequest', null, global);
49
48
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationTracksRequest', null, global);
50
49
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationsRequest', null, global);
51
50
  goog.exportSymbol('proto.clarifai.api.DeleteAppRequest', null, global);
@@ -81,7 +80,6 @@ goog.exportSymbol('proto.clarifai.api.DeleteWorkflowVersionsRequest', null, glob
81
80
  goog.exportSymbol('proto.clarifai.api.DeleteWorkflowsRequest', null, global);
82
81
  goog.exportSymbol('proto.clarifai.api.GetAnnotationFilterRequest', null, global);
83
82
  goog.exportSymbol('proto.clarifai.api.GetAnnotationRequest', null, global);
84
- goog.exportSymbol('proto.clarifai.api.GetAnnotationSearchMetricsRequest', null, global);
85
83
  goog.exportSymbol('proto.clarifai.api.GetAppDuplicationRequest', null, global);
86
84
  goog.exportSymbol('proto.clarifai.api.GetAppRequest', null, global);
87
85
  goog.exportSymbol('proto.clarifai.api.GetBulkOperationRequest', null, global);
@@ -137,7 +135,6 @@ goog.exportSymbol('proto.clarifai.api.GetWorkflowVersionRequest', null, global);
137
135
  goog.exportSymbol('proto.clarifai.api.IdUpdateSource', null, global);
138
136
  goog.exportSymbol('proto.clarifai.api.LabelSubmitConfig', null, global);
139
137
  goog.exportSymbol('proto.clarifai.api.ListAnnotationFiltersRequest', null, global);
140
- goog.exportSymbol('proto.clarifai.api.ListAnnotationSearchMetricsRequest', null, global);
141
138
  goog.exportSymbol('proto.clarifai.api.ListAnnotationTracksRequest', null, global);
142
139
  goog.exportSymbol('proto.clarifai.api.ListAnnotationWorkersRequest', null, global);
143
140
  goog.exportSymbol('proto.clarifai.api.ListAnnotationsRequest', null, global);
@@ -214,7 +211,6 @@ goog.exportSymbol('proto.clarifai.api.ModelVersionPublishRequest', null, global)
214
211
  goog.exportSymbol('proto.clarifai.api.ModelVersionUnpublishRequest', null, global);
215
212
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationFilterResponse', null, global);
216
213
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationResponse', null, global);
217
- goog.exportSymbol('proto.clarifai.api.MultiAnnotationSearchMetricsResponse', null, global);
218
214
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationTrackResponse', null, global);
219
215
  goog.exportSymbol('proto.clarifai.api.MultiAppDuplicationsResponse', null, global);
220
216
  goog.exportSymbol('proto.clarifai.api.MultiAppResponse', null, global);
@@ -337,7 +333,6 @@ goog.exportSymbol('proto.clarifai.api.PatchWorkflowVersionEvaluationsRequest', n
337
333
  goog.exportSymbol('proto.clarifai.api.PatchWorkflowVersionsRequest', null, global);
338
334
  goog.exportSymbol('proto.clarifai.api.PatchWorkflowsRequest', null, global);
339
335
  goog.exportSymbol('proto.clarifai.api.PostAnnotationFiltersRequest', null, global);
340
- goog.exportSymbol('proto.clarifai.api.PostAnnotationSearchMetricsRequest', null, global);
341
336
  goog.exportSymbol('proto.clarifai.api.PostAnnotationTracksRequest', null, global);
342
337
  goog.exportSymbol('proto.clarifai.api.PostAnnotationsRequest', null, global);
343
338
  goog.exportSymbol('proto.clarifai.api.PostAnnotationsSearchesRequest', null, global);
@@ -4699,27 +4694,6 @@ if (goog.DEBUG && !COMPILED) {
4699
4694
  */
4700
4695
  proto.clarifai.api.PostAnnotationsSearchesRequest.displayName = 'proto.clarifai.api.PostAnnotationsSearchesRequest';
4701
4696
  }
4702
- /**
4703
- * Generated by JsPbCodeGenerator.
4704
- * @param {Array=} opt_data Optional initial data array, typically from a
4705
- * server response, or constructed directly in Javascript. The array is used
4706
- * in place and becomes part of the constructed object. It is not cloned.
4707
- * If no data is provided, the constructed object will be empty, but still
4708
- * valid.
4709
- * @extends {jspb.Message}
4710
- * @constructor
4711
- */
4712
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest = function (opt_data) {
4713
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4714
- };
4715
- goog.inherits(proto.clarifai.api.DeleteAnnotationSearchMetricsRequest, jspb.Message);
4716
- if (goog.DEBUG && !COMPILED) {
4717
- /**
4718
- * @public
4719
- * @override
4720
- */
4721
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.DeleteAnnotationSearchMetricsRequest';
4722
- }
4723
4697
  /**
4724
4698
  * Generated by JsPbCodeGenerator.
4725
4699
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4783,90 +4757,6 @@ if (goog.DEBUG && !COMPILED) {
4783
4757
  */
4784
4758
  proto.clarifai.api.MultiSearchResponse.displayName = 'proto.clarifai.api.MultiSearchResponse';
4785
4759
  }
4786
- /**
4787
- * Generated by JsPbCodeGenerator.
4788
- * @param {Array=} opt_data Optional initial data array, typically from a
4789
- * server response, or constructed directly in Javascript. The array is used
4790
- * in place and becomes part of the constructed object. It is not cloned.
4791
- * If no data is provided, the constructed object will be empty, but still
4792
- * valid.
4793
- * @extends {jspb.Message}
4794
- * @constructor
4795
- */
4796
- proto.clarifai.api.PostAnnotationSearchMetricsRequest = function (opt_data) {
4797
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4798
- };
4799
- goog.inherits(proto.clarifai.api.PostAnnotationSearchMetricsRequest, jspb.Message);
4800
- if (goog.DEBUG && !COMPILED) {
4801
- /**
4802
- * @public
4803
- * @override
4804
- */
4805
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.PostAnnotationSearchMetricsRequest';
4806
- }
4807
- /**
4808
- * Generated by JsPbCodeGenerator.
4809
- * @param {Array=} opt_data Optional initial data array, typically from a
4810
- * server response, or constructed directly in Javascript. The array is used
4811
- * in place and becomes part of the constructed object. It is not cloned.
4812
- * If no data is provided, the constructed object will be empty, but still
4813
- * valid.
4814
- * @extends {jspb.Message}
4815
- * @constructor
4816
- */
4817
- proto.clarifai.api.GetAnnotationSearchMetricsRequest = function (opt_data) {
4818
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4819
- };
4820
- goog.inherits(proto.clarifai.api.GetAnnotationSearchMetricsRequest, jspb.Message);
4821
- if (goog.DEBUG && !COMPILED) {
4822
- /**
4823
- * @public
4824
- * @override
4825
- */
4826
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.GetAnnotationSearchMetricsRequest';
4827
- }
4828
- /**
4829
- * Generated by JsPbCodeGenerator.
4830
- * @param {Array=} opt_data Optional initial data array, typically from a
4831
- * server response, or constructed directly in Javascript. The array is used
4832
- * in place and becomes part of the constructed object. It is not cloned.
4833
- * If no data is provided, the constructed object will be empty, but still
4834
- * valid.
4835
- * @extends {jspb.Message}
4836
- * @constructor
4837
- */
4838
- proto.clarifai.api.ListAnnotationSearchMetricsRequest = function (opt_data) {
4839
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4840
- };
4841
- goog.inherits(proto.clarifai.api.ListAnnotationSearchMetricsRequest, jspb.Message);
4842
- if (goog.DEBUG && !COMPILED) {
4843
- /**
4844
- * @public
4845
- * @override
4846
- */
4847
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.ListAnnotationSearchMetricsRequest';
4848
- }
4849
- /**
4850
- * Generated by JsPbCodeGenerator.
4851
- * @param {Array=} opt_data Optional initial data array, typically from a
4852
- * server response, or constructed directly in Javascript. The array is used
4853
- * in place and becomes part of the constructed object. It is not cloned.
4854
- * If no data is provided, the constructed object will be empty, but still
4855
- * valid.
4856
- * @extends {jspb.Message}
4857
- * @constructor
4858
- */
4859
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse = function (opt_data) {
4860
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAnnotationSearchMetricsResponse.repeatedFields_, null);
4861
- };
4862
- goog.inherits(proto.clarifai.api.MultiAnnotationSearchMetricsResponse, jspb.Message);
4863
- if (goog.DEBUG && !COMPILED) {
4864
- /**
4865
- * @public
4866
- * @override
4867
- */
4868
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.displayName = 'proto.clarifai.api.MultiAnnotationSearchMetricsResponse';
4869
- }
4870
4760
  /**
4871
4761
  * Generated by JsPbCodeGenerator.
4872
4762
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -49547,151 +49437,6 @@ proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.clearPagination = fu
49547
49437
  proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.hasPagination = function () {
49548
49438
  return jspb.Message.getField(this, 3) != null;
49549
49439
  };
49550
- if (jspb.Message.GENERATE_TO_OBJECT) {
49551
- /**
49552
- * Creates an object representation of this proto.
49553
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
49554
- * Optional fields that are not set will be set to undefined.
49555
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49556
- * For the list of reserved names please see:
49557
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
49558
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
49559
- * JSPB instance for transitional soy proto support:
49560
- * http://goto/soy-param-migration
49561
- * @return {!Object}
49562
- */
49563
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.toObject = function (opt_includeInstance) {
49564
- return proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this);
49565
- };
49566
- /**
49567
- * Static version of the {@see toObject} method.
49568
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
49569
- * the JSPB instance for transitional soy proto support:
49570
- * http://goto/soy-param-migration
49571
- * @param {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} msg The msg instance to transform.
49572
- * @return {!Object}
49573
- * @suppress {unusedLocalVariables} f is only used for nested messages
49574
- */
49575
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.toObject = function (includeInstance, msg) {
49576
- var f, obj = {
49577
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
49578
- id: jspb.Message.getFieldWithDefault(msg, 2, "")
49579
- };
49580
- if (includeInstance) {
49581
- obj.$jspbMessageInstance = msg;
49582
- }
49583
- return obj;
49584
- };
49585
- }
49586
- /**
49587
- * Deserializes binary data (in protobuf wire format).
49588
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
49589
- * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest}
49590
- */
49591
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinary = function (bytes) {
49592
- var reader = new jspb.BinaryReader(bytes);
49593
- var msg = new proto.clarifai.api.DeleteAnnotationSearchMetricsRequest;
49594
- return proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader);
49595
- };
49596
- /**
49597
- * Deserializes binary data (in protobuf wire format) from the
49598
- * given reader into the given message object.
49599
- * @param {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} msg The message object to deserialize into.
49600
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
49601
- * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest}
49602
- */
49603
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function (msg, reader) {
49604
- while (reader.nextField()) {
49605
- if (reader.isEndGroup()) {
49606
- break;
49607
- }
49608
- var field = reader.getFieldNumber();
49609
- switch (field) {
49610
- case 1:
49611
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
49612
- reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
49613
- msg.setUserAppId(value);
49614
- break;
49615
- case 2:
49616
- var value = /** @type {string} */ (reader.readString());
49617
- msg.setId(value);
49618
- break;
49619
- default:
49620
- reader.skipField();
49621
- break;
49622
- }
49623
- }
49624
- return msg;
49625
- };
49626
- /**
49627
- * Serializes the message to binary data (in protobuf wire format).
49628
- * @return {!Uint8Array}
49629
- */
49630
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.serializeBinary = function () {
49631
- var writer = new jspb.BinaryWriter();
49632
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer);
49633
- return writer.getResultBuffer();
49634
- };
49635
- /**
49636
- * Serializes the given message to binary data (in protobuf wire
49637
- * format), writing to the given BinaryWriter.
49638
- * @param {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} message
49639
- * @param {!jspb.BinaryWriter} writer
49640
- * @suppress {unusedLocalVariables} f is only used for nested messages
49641
- */
49642
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.serializeBinaryToWriter = function (message, writer) {
49643
- var f = undefined;
49644
- f = message.getUserAppId();
49645
- if (f != null) {
49646
- writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
49647
- }
49648
- f = message.getId();
49649
- if (f.length > 0) {
49650
- writer.writeString(2, f);
49651
- }
49652
- };
49653
- /**
49654
- * optional UserAppIDSet user_app_id = 1;
49655
- * @return {?proto.clarifai.api.UserAppIDSet}
49656
- */
49657
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.getUserAppId = function () {
49658
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
49659
- };
49660
- /**
49661
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
49662
- * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} returns this
49663
- */
49664
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.setUserAppId = function (value) {
49665
- return jspb.Message.setWrapperField(this, 1, value);
49666
- };
49667
- /**
49668
- * Clears the message field making it undefined.
49669
- * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} returns this
49670
- */
49671
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.clearUserAppId = function () {
49672
- return this.setUserAppId(undefined);
49673
- };
49674
- /**
49675
- * Returns whether this field is set.
49676
- * @return {boolean}
49677
- */
49678
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.hasUserAppId = function () {
49679
- return jspb.Message.getField(this, 1) != null;
49680
- };
49681
- /**
49682
- * optional string id = 2;
49683
- * @return {string}
49684
- */
49685
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.getId = function () {
49686
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
49687
- };
49688
- /**
49689
- * @param {string} value
49690
- * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} returns this
49691
- */
49692
- proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.setId = function (value) {
49693
- return jspb.Message.setProto3StringField(this, 2, value);
49694
- };
49695
49440
  /**
49696
49441
  * List of repeated fields within this message type.
49697
49442
  * @private {!Array<number>}
@@ -50386,722 +50131,6 @@ proto.clarifai.api.MultiSearchResponse.prototype.addHitCounts = function (opt_va
50386
50131
  proto.clarifai.api.MultiSearchResponse.prototype.clearHitCountsList = function () {
50387
50132
  return this.setHitCountsList([]);
50388
50133
  };
50389
- if (jspb.Message.GENERATE_TO_OBJECT) {
50390
- /**
50391
- * Creates an object representation of this proto.
50392
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
50393
- * Optional fields that are not set will be set to undefined.
50394
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50395
- * For the list of reserved names please see:
50396
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50397
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50398
- * JSPB instance for transitional soy proto support:
50399
- * http://goto/soy-param-migration
50400
- * @return {!Object}
50401
- */
50402
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.toObject = function (opt_includeInstance) {
50403
- return proto.clarifai.api.PostAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this);
50404
- };
50405
- /**
50406
- * Static version of the {@see toObject} method.
50407
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50408
- * the JSPB instance for transitional soy proto support:
50409
- * http://goto/soy-param-migration
50410
- * @param {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} msg The msg instance to transform.
50411
- * @return {!Object}
50412
- * @suppress {unusedLocalVariables} f is only used for nested messages
50413
- */
50414
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.toObject = function (includeInstance, msg) {
50415
- var f, obj = {
50416
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
50417
- id: jspb.Message.getFieldWithDefault(msg, 2, ""),
50418
- groundTruth: (f = msg.getGroundTruth()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f),
50419
- searchToEval: (f = msg.getSearchToEval()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f),
50420
- data: (f = msg.getData()) && proto_clarifai_api_resources_pb.Data.toObject(includeInstance, f),
50421
- evaluationType: jspb.Message.getFieldWithDefault(msg, 6, 0)
50422
- };
50423
- if (includeInstance) {
50424
- obj.$jspbMessageInstance = msg;
50425
- }
50426
- return obj;
50427
- };
50428
- }
50429
- /**
50430
- * Deserializes binary data (in protobuf wire format).
50431
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
50432
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest}
50433
- */
50434
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinary = function (bytes) {
50435
- var reader = new jspb.BinaryReader(bytes);
50436
- var msg = new proto.clarifai.api.PostAnnotationSearchMetricsRequest;
50437
- return proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader);
50438
- };
50439
- /**
50440
- * Deserializes binary data (in protobuf wire format) from the
50441
- * given reader into the given message object.
50442
- * @param {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} msg The message object to deserialize into.
50443
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50444
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest}
50445
- */
50446
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function (msg, reader) {
50447
- while (reader.nextField()) {
50448
- if (reader.isEndGroup()) {
50449
- break;
50450
- }
50451
- var field = reader.getFieldNumber();
50452
- switch (field) {
50453
- case 1:
50454
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
50455
- reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
50456
- msg.setUserAppId(value);
50457
- break;
50458
- case 2:
50459
- var value = /** @type {string} */ (reader.readString());
50460
- msg.setId(value);
50461
- break;
50462
- case 3:
50463
- var value = new proto_clarifai_api_resources_pb.Search;
50464
- reader.readMessage(value, proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader);
50465
- msg.setGroundTruth(value);
50466
- break;
50467
- case 4:
50468
- var value = new proto_clarifai_api_resources_pb.Search;
50469
- reader.readMessage(value, proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader);
50470
- msg.setSearchToEval(value);
50471
- break;
50472
- case 5:
50473
- var value = new proto_clarifai_api_resources_pb.Data;
50474
- reader.readMessage(value, proto_clarifai_api_resources_pb.Data.deserializeBinaryFromReader);
50475
- msg.setData(value);
50476
- break;
50477
- case 6:
50478
- var value = /** @type {!proto.clarifai.api.EvaluationType} */ (reader.readEnum());
50479
- msg.setEvaluationType(value);
50480
- break;
50481
- default:
50482
- reader.skipField();
50483
- break;
50484
- }
50485
- }
50486
- return msg;
50487
- };
50488
- /**
50489
- * Serializes the message to binary data (in protobuf wire format).
50490
- * @return {!Uint8Array}
50491
- */
50492
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.serializeBinary = function () {
50493
- var writer = new jspb.BinaryWriter();
50494
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer);
50495
- return writer.getResultBuffer();
50496
- };
50497
- /**
50498
- * Serializes the given message to binary data (in protobuf wire
50499
- * format), writing to the given BinaryWriter.
50500
- * @param {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} message
50501
- * @param {!jspb.BinaryWriter} writer
50502
- * @suppress {unusedLocalVariables} f is only used for nested messages
50503
- */
50504
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.serializeBinaryToWriter = function (message, writer) {
50505
- var f = undefined;
50506
- f = message.getUserAppId();
50507
- if (f != null) {
50508
- writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
50509
- }
50510
- f = message.getId();
50511
- if (f.length > 0) {
50512
- writer.writeString(2, f);
50513
- }
50514
- f = message.getGroundTruth();
50515
- if (f != null) {
50516
- writer.writeMessage(3, f, proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter);
50517
- }
50518
- f = message.getSearchToEval();
50519
- if (f != null) {
50520
- writer.writeMessage(4, f, proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter);
50521
- }
50522
- f = message.getData();
50523
- if (f != null) {
50524
- writer.writeMessage(5, f, proto_clarifai_api_resources_pb.Data.serializeBinaryToWriter);
50525
- }
50526
- f = message.getEvaluationType();
50527
- if (f !== 0.0) {
50528
- writer.writeEnum(6, f);
50529
- }
50530
- };
50531
- /**
50532
- * optional UserAppIDSet user_app_id = 1;
50533
- * @return {?proto.clarifai.api.UserAppIDSet}
50534
- */
50535
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getUserAppId = function () {
50536
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
50537
- };
50538
- /**
50539
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
50540
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this
50541
- */
50542
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setUserAppId = function (value) {
50543
- return jspb.Message.setWrapperField(this, 1, value);
50544
- };
50545
- /**
50546
- * Clears the message field making it undefined.
50547
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this
50548
- */
50549
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearUserAppId = function () {
50550
- return this.setUserAppId(undefined);
50551
- };
50552
- /**
50553
- * Returns whether this field is set.
50554
- * @return {boolean}
50555
- */
50556
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasUserAppId = function () {
50557
- return jspb.Message.getField(this, 1) != null;
50558
- };
50559
- /**
50560
- * optional string id = 2;
50561
- * @return {string}
50562
- */
50563
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getId = function () {
50564
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
50565
- };
50566
- /**
50567
- * @param {string} value
50568
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this
50569
- */
50570
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setId = function (value) {
50571
- return jspb.Message.setProto3StringField(this, 2, value);
50572
- };
50573
- /**
50574
- * optional Search ground_truth = 3;
50575
- * @return {?proto.clarifai.api.Search}
50576
- */
50577
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getGroundTruth = function () {
50578
- return /** @type{?proto.clarifai.api.Search} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 3));
50579
- };
50580
- /**
50581
- * @param {?proto.clarifai.api.Search|undefined} value
50582
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this
50583
- */
50584
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setGroundTruth = function (value) {
50585
- return jspb.Message.setWrapperField(this, 3, value);
50586
- };
50587
- /**
50588
- * Clears the message field making it undefined.
50589
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this
50590
- */
50591
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearGroundTruth = function () {
50592
- return this.setGroundTruth(undefined);
50593
- };
50594
- /**
50595
- * Returns whether this field is set.
50596
- * @return {boolean}
50597
- */
50598
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasGroundTruth = function () {
50599
- return jspb.Message.getField(this, 3) != null;
50600
- };
50601
- /**
50602
- * optional Search search_to_eval = 4;
50603
- * @return {?proto.clarifai.api.Search}
50604
- */
50605
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getSearchToEval = function () {
50606
- return /** @type{?proto.clarifai.api.Search} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 4));
50607
- };
50608
- /**
50609
- * @param {?proto.clarifai.api.Search|undefined} value
50610
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this
50611
- */
50612
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setSearchToEval = function (value) {
50613
- return jspb.Message.setWrapperField(this, 4, value);
50614
- };
50615
- /**
50616
- * Clears the message field making it undefined.
50617
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this
50618
- */
50619
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearSearchToEval = function () {
50620
- return this.setSearchToEval(undefined);
50621
- };
50622
- /**
50623
- * Returns whether this field is set.
50624
- * @return {boolean}
50625
- */
50626
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasSearchToEval = function () {
50627
- return jspb.Message.getField(this, 4) != null;
50628
- };
50629
- /**
50630
- * optional Data data = 5;
50631
- * @return {?proto.clarifai.api.Data}
50632
- */
50633
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getData = function () {
50634
- return /** @type{?proto.clarifai.api.Data} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Data, 5));
50635
- };
50636
- /**
50637
- * @param {?proto.clarifai.api.Data|undefined} value
50638
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this
50639
- */
50640
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setData = function (value) {
50641
- return jspb.Message.setWrapperField(this, 5, value);
50642
- };
50643
- /**
50644
- * Clears the message field making it undefined.
50645
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this
50646
- */
50647
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearData = function () {
50648
- return this.setData(undefined);
50649
- };
50650
- /**
50651
- * Returns whether this field is set.
50652
- * @return {boolean}
50653
- */
50654
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasData = function () {
50655
- return jspb.Message.getField(this, 5) != null;
50656
- };
50657
- /**
50658
- * optional EvaluationType evaluation_type = 6;
50659
- * @return {!proto.clarifai.api.EvaluationType}
50660
- */
50661
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getEvaluationType = function () {
50662
- return /** @type {!proto.clarifai.api.EvaluationType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
50663
- };
50664
- /**
50665
- * @param {!proto.clarifai.api.EvaluationType} value
50666
- * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this
50667
- */
50668
- proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setEvaluationType = function (value) {
50669
- return jspb.Message.setProto3EnumField(this, 6, value);
50670
- };
50671
- if (jspb.Message.GENERATE_TO_OBJECT) {
50672
- /**
50673
- * Creates an object representation of this proto.
50674
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
50675
- * Optional fields that are not set will be set to undefined.
50676
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50677
- * For the list of reserved names please see:
50678
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50679
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50680
- * JSPB instance for transitional soy proto support:
50681
- * http://goto/soy-param-migration
50682
- * @return {!Object}
50683
- */
50684
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.toObject = function (opt_includeInstance) {
50685
- return proto.clarifai.api.GetAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this);
50686
- };
50687
- /**
50688
- * Static version of the {@see toObject} method.
50689
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50690
- * the JSPB instance for transitional soy proto support:
50691
- * http://goto/soy-param-migration
50692
- * @param {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} msg The msg instance to transform.
50693
- * @return {!Object}
50694
- * @suppress {unusedLocalVariables} f is only used for nested messages
50695
- */
50696
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.toObject = function (includeInstance, msg) {
50697
- var f, obj = {
50698
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
50699
- id: jspb.Message.getFieldWithDefault(msg, 2, "")
50700
- };
50701
- if (includeInstance) {
50702
- obj.$jspbMessageInstance = msg;
50703
- }
50704
- return obj;
50705
- };
50706
- }
50707
- /**
50708
- * Deserializes binary data (in protobuf wire format).
50709
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
50710
- * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest}
50711
- */
50712
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinary = function (bytes) {
50713
- var reader = new jspb.BinaryReader(bytes);
50714
- var msg = new proto.clarifai.api.GetAnnotationSearchMetricsRequest;
50715
- return proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader);
50716
- };
50717
- /**
50718
- * Deserializes binary data (in protobuf wire format) from the
50719
- * given reader into the given message object.
50720
- * @param {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} msg The message object to deserialize into.
50721
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50722
- * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest}
50723
- */
50724
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function (msg, reader) {
50725
- while (reader.nextField()) {
50726
- if (reader.isEndGroup()) {
50727
- break;
50728
- }
50729
- var field = reader.getFieldNumber();
50730
- switch (field) {
50731
- case 1:
50732
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
50733
- reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
50734
- msg.setUserAppId(value);
50735
- break;
50736
- case 2:
50737
- var value = /** @type {string} */ (reader.readString());
50738
- msg.setId(value);
50739
- break;
50740
- default:
50741
- reader.skipField();
50742
- break;
50743
- }
50744
- }
50745
- return msg;
50746
- };
50747
- /**
50748
- * Serializes the message to binary data (in protobuf wire format).
50749
- * @return {!Uint8Array}
50750
- */
50751
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.serializeBinary = function () {
50752
- var writer = new jspb.BinaryWriter();
50753
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer);
50754
- return writer.getResultBuffer();
50755
- };
50756
- /**
50757
- * Serializes the given message to binary data (in protobuf wire
50758
- * format), writing to the given BinaryWriter.
50759
- * @param {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} message
50760
- * @param {!jspb.BinaryWriter} writer
50761
- * @suppress {unusedLocalVariables} f is only used for nested messages
50762
- */
50763
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.serializeBinaryToWriter = function (message, writer) {
50764
- var f = undefined;
50765
- f = message.getUserAppId();
50766
- if (f != null) {
50767
- writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
50768
- }
50769
- f = message.getId();
50770
- if (f.length > 0) {
50771
- writer.writeString(2, f);
50772
- }
50773
- };
50774
- /**
50775
- * optional UserAppIDSet user_app_id = 1;
50776
- * @return {?proto.clarifai.api.UserAppIDSet}
50777
- */
50778
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.getUserAppId = function () {
50779
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
50780
- };
50781
- /**
50782
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
50783
- * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} returns this
50784
- */
50785
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.setUserAppId = function (value) {
50786
- return jspb.Message.setWrapperField(this, 1, value);
50787
- };
50788
- /**
50789
- * Clears the message field making it undefined.
50790
- * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} returns this
50791
- */
50792
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.clearUserAppId = function () {
50793
- return this.setUserAppId(undefined);
50794
- };
50795
- /**
50796
- * Returns whether this field is set.
50797
- * @return {boolean}
50798
- */
50799
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.hasUserAppId = function () {
50800
- return jspb.Message.getField(this, 1) != null;
50801
- };
50802
- /**
50803
- * optional string id = 2;
50804
- * @return {string}
50805
- */
50806
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.getId = function () {
50807
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
50808
- };
50809
- /**
50810
- * @param {string} value
50811
- * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} returns this
50812
- */
50813
- proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.setId = function (value) {
50814
- return jspb.Message.setProto3StringField(this, 2, value);
50815
- };
50816
- if (jspb.Message.GENERATE_TO_OBJECT) {
50817
- /**
50818
- * Creates an object representation of this proto.
50819
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
50820
- * Optional fields that are not set will be set to undefined.
50821
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50822
- * For the list of reserved names please see:
50823
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50824
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50825
- * JSPB instance for transitional soy proto support:
50826
- * http://goto/soy-param-migration
50827
- * @return {!Object}
50828
- */
50829
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.toObject = function (opt_includeInstance) {
50830
- return proto.clarifai.api.ListAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this);
50831
- };
50832
- /**
50833
- * Static version of the {@see toObject} method.
50834
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50835
- * the JSPB instance for transitional soy proto support:
50836
- * http://goto/soy-param-migration
50837
- * @param {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} msg The msg instance to transform.
50838
- * @return {!Object}
50839
- * @suppress {unusedLocalVariables} f is only used for nested messages
50840
- */
50841
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.toObject = function (includeInstance, msg) {
50842
- var f, obj = {
50843
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f)
50844
- };
50845
- if (includeInstance) {
50846
- obj.$jspbMessageInstance = msg;
50847
- }
50848
- return obj;
50849
- };
50850
- }
50851
- /**
50852
- * Deserializes binary data (in protobuf wire format).
50853
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
50854
- * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest}
50855
- */
50856
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinary = function (bytes) {
50857
- var reader = new jspb.BinaryReader(bytes);
50858
- var msg = new proto.clarifai.api.ListAnnotationSearchMetricsRequest;
50859
- return proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader);
50860
- };
50861
- /**
50862
- * Deserializes binary data (in protobuf wire format) from the
50863
- * given reader into the given message object.
50864
- * @param {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} msg The message object to deserialize into.
50865
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50866
- * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest}
50867
- */
50868
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function (msg, reader) {
50869
- while (reader.nextField()) {
50870
- if (reader.isEndGroup()) {
50871
- break;
50872
- }
50873
- var field = reader.getFieldNumber();
50874
- switch (field) {
50875
- case 1:
50876
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
50877
- reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
50878
- msg.setUserAppId(value);
50879
- break;
50880
- default:
50881
- reader.skipField();
50882
- break;
50883
- }
50884
- }
50885
- return msg;
50886
- };
50887
- /**
50888
- * Serializes the message to binary data (in protobuf wire format).
50889
- * @return {!Uint8Array}
50890
- */
50891
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.serializeBinary = function () {
50892
- var writer = new jspb.BinaryWriter();
50893
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer);
50894
- return writer.getResultBuffer();
50895
- };
50896
- /**
50897
- * Serializes the given message to binary data (in protobuf wire
50898
- * format), writing to the given BinaryWriter.
50899
- * @param {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} message
50900
- * @param {!jspb.BinaryWriter} writer
50901
- * @suppress {unusedLocalVariables} f is only used for nested messages
50902
- */
50903
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.serializeBinaryToWriter = function (message, writer) {
50904
- var f = undefined;
50905
- f = message.getUserAppId();
50906
- if (f != null) {
50907
- writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
50908
- }
50909
- };
50910
- /**
50911
- * optional UserAppIDSet user_app_id = 1;
50912
- * @return {?proto.clarifai.api.UserAppIDSet}
50913
- */
50914
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.getUserAppId = function () {
50915
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
50916
- };
50917
- /**
50918
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
50919
- * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} returns this
50920
- */
50921
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.setUserAppId = function (value) {
50922
- return jspb.Message.setWrapperField(this, 1, value);
50923
- };
50924
- /**
50925
- * Clears the message field making it undefined.
50926
- * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} returns this
50927
- */
50928
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.clearUserAppId = function () {
50929
- return this.setUserAppId(undefined);
50930
- };
50931
- /**
50932
- * Returns whether this field is set.
50933
- * @return {boolean}
50934
- */
50935
- proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.hasUserAppId = function () {
50936
- return jspb.Message.getField(this, 1) != null;
50937
- };
50938
- /**
50939
- * List of repeated fields within this message type.
50940
- * @private {!Array<number>}
50941
- * @const
50942
- */
50943
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.repeatedFields_ = [2];
50944
- if (jspb.Message.GENERATE_TO_OBJECT) {
50945
- /**
50946
- * Creates an object representation of this proto.
50947
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
50948
- * Optional fields that are not set will be set to undefined.
50949
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50950
- * For the list of reserved names please see:
50951
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50952
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50953
- * JSPB instance for transitional soy proto support:
50954
- * http://goto/soy-param-migration
50955
- * @return {!Object}
50956
- */
50957
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.toObject = function (opt_includeInstance) {
50958
- return proto.clarifai.api.MultiAnnotationSearchMetricsResponse.toObject(opt_includeInstance, this);
50959
- };
50960
- /**
50961
- * Static version of the {@see toObject} method.
50962
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50963
- * the JSPB instance for transitional soy proto support:
50964
- * http://goto/soy-param-migration
50965
- * @param {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} msg The msg instance to transform.
50966
- * @return {!Object}
50967
- * @suppress {unusedLocalVariables} f is only used for nested messages
50968
- */
50969
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.toObject = function (includeInstance, msg) {
50970
- var f, obj = {
50971
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
50972
- annotationSearchMetricsList: jspb.Message.toObjectList(msg.getAnnotationSearchMetricsList(), proto_clarifai_api_resources_pb.AnnotationSearchMetrics.toObject, includeInstance)
50973
- };
50974
- if (includeInstance) {
50975
- obj.$jspbMessageInstance = msg;
50976
- }
50977
- return obj;
50978
- };
50979
- }
50980
- /**
50981
- * Deserializes binary data (in protobuf wire format).
50982
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
50983
- * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse}
50984
- */
50985
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.deserializeBinary = function (bytes) {
50986
- var reader = new jspb.BinaryReader(bytes);
50987
- var msg = new proto.clarifai.api.MultiAnnotationSearchMetricsResponse;
50988
- return proto.clarifai.api.MultiAnnotationSearchMetricsResponse.deserializeBinaryFromReader(msg, reader);
50989
- };
50990
- /**
50991
- * Deserializes binary data (in protobuf wire format) from the
50992
- * given reader into the given message object.
50993
- * @param {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} msg The message object to deserialize into.
50994
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50995
- * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse}
50996
- */
50997
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.deserializeBinaryFromReader = function (msg, reader) {
50998
- while (reader.nextField()) {
50999
- if (reader.isEndGroup()) {
51000
- break;
51001
- }
51002
- var field = reader.getFieldNumber();
51003
- switch (field) {
51004
- case 1:
51005
- var value = new proto_clarifai_api_status_status_pb.Status;
51006
- reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
51007
- msg.setStatus(value);
51008
- break;
51009
- case 2:
51010
- var value = new proto_clarifai_api_resources_pb.AnnotationSearchMetrics;
51011
- reader.readMessage(value, proto_clarifai_api_resources_pb.AnnotationSearchMetrics.deserializeBinaryFromReader);
51012
- msg.addAnnotationSearchMetrics(value);
51013
- break;
51014
- default:
51015
- reader.skipField();
51016
- break;
51017
- }
51018
- }
51019
- return msg;
51020
- };
51021
- /**
51022
- * Serializes the message to binary data (in protobuf wire format).
51023
- * @return {!Uint8Array}
51024
- */
51025
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.serializeBinary = function () {
51026
- var writer = new jspb.BinaryWriter();
51027
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.serializeBinaryToWriter(this, writer);
51028
- return writer.getResultBuffer();
51029
- };
51030
- /**
51031
- * Serializes the given message to binary data (in protobuf wire
51032
- * format), writing to the given BinaryWriter.
51033
- * @param {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} message
51034
- * @param {!jspb.BinaryWriter} writer
51035
- * @suppress {unusedLocalVariables} f is only used for nested messages
51036
- */
51037
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.serializeBinaryToWriter = function (message, writer) {
51038
- var f = undefined;
51039
- f = message.getStatus();
51040
- if (f != null) {
51041
- writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
51042
- }
51043
- f = message.getAnnotationSearchMetricsList();
51044
- if (f.length > 0) {
51045
- writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.AnnotationSearchMetrics.serializeBinaryToWriter);
51046
- }
51047
- };
51048
- /**
51049
- * optional status.Status status = 1;
51050
- * @return {?proto.clarifai.api.status.Status}
51051
- */
51052
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.getStatus = function () {
51053
- return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
51054
- };
51055
- /**
51056
- * @param {?proto.clarifai.api.status.Status|undefined} value
51057
- * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this
51058
- */
51059
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.setStatus = function (value) {
51060
- return jspb.Message.setWrapperField(this, 1, value);
51061
- };
51062
- /**
51063
- * Clears the message field making it undefined.
51064
- * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this
51065
- */
51066
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.clearStatus = function () {
51067
- return this.setStatus(undefined);
51068
- };
51069
- /**
51070
- * Returns whether this field is set.
51071
- * @return {boolean}
51072
- */
51073
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.hasStatus = function () {
51074
- return jspb.Message.getField(this, 1) != null;
51075
- };
51076
- /**
51077
- * repeated AnnotationSearchMetrics annotation_search_metrics = 2;
51078
- * @return {!Array<!proto.clarifai.api.AnnotationSearchMetrics>}
51079
- */
51080
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.getAnnotationSearchMetricsList = function () {
51081
- return /** @type{!Array<!proto.clarifai.api.AnnotationSearchMetrics>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationSearchMetrics, 2));
51082
- };
51083
- /**
51084
- * @param {!Array<!proto.clarifai.api.AnnotationSearchMetrics>} value
51085
- * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this
51086
- */
51087
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.setAnnotationSearchMetricsList = function (value) {
51088
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
51089
- };
51090
- /**
51091
- * @param {!proto.clarifai.api.AnnotationSearchMetrics=} opt_value
51092
- * @param {number=} opt_index
51093
- * @return {!proto.clarifai.api.AnnotationSearchMetrics}
51094
- */
51095
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.addAnnotationSearchMetrics = function (opt_value, opt_index) {
51096
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationSearchMetrics, opt_index);
51097
- };
51098
- /**
51099
- * Clears the list making it empty but non-null.
51100
- * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this
51101
- */
51102
- proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.clearAnnotationSearchMetricsList = function () {
51103
- return this.setAnnotationSearchMetricsList([]);
51104
- };
51105
50134
  if (jspb.Message.GENERATE_TO_OBJECT) {
51106
50135
  /**
51107
50136
  * Creates an object representation of this proto.