clarifai-web-grpc 11.7.6 → 11.8.0

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.
@@ -174,6 +174,7 @@ goog.exportSymbol('proto.clarifai.api.ListKeysRequest', null, global);
174
174
  goog.exportSymbol('proto.clarifai.api.ListKnowledgeGraphsRequest', null, global);
175
175
  goog.exportSymbol('proto.clarifai.api.ListLabelOrdersRequest', null, global);
176
176
  goog.exportSymbol('proto.clarifai.api.ListLogEntriesRequest', null, global);
177
+ goog.exportSymbol('proto.clarifai.api.ListMetricLabelsRequest', null, global);
177
178
  goog.exportSymbol('proto.clarifai.api.ListModelConceptsRequest', null, global);
178
179
  goog.exportSymbol('proto.clarifai.api.ListModelInputsRequest', null, global);
179
180
  goog.exportSymbol('proto.clarifai.api.ListModelReferencesRequest', null, global);
@@ -210,6 +211,7 @@ goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionEvaluationsRequest', nu
210
211
  goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionsRequest', null, global);
211
212
  goog.exportSymbol('proto.clarifai.api.ListWorkflowsRequest', null, global);
212
213
  goog.exportSymbol('proto.clarifai.api.ListWorkflowsRequest.SortByCase', null, global);
214
+ goog.exportSymbol('proto.clarifai.api.MetricsQueryResponse', null, global);
213
215
  goog.exportSymbol('proto.clarifai.api.ModelVersionPublishRequest', null, global);
214
216
  goog.exportSymbol('proto.clarifai.api.ModelVersionUnpublishRequest', null, global);
215
217
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationFilterResponse', null, global);
@@ -248,6 +250,7 @@ goog.exportSymbol('proto.clarifai.api.MultiKnowledgeGraphResponse', null, global
248
250
  goog.exportSymbol('proto.clarifai.api.MultiLabelOrderResponse', null, global);
249
251
  goog.exportSymbol('proto.clarifai.api.MultiListWorkflowVersionEvaluationDataResponse', null, global);
250
252
  goog.exportSymbol('proto.clarifai.api.MultiLogEntryResponse', null, global);
253
+ goog.exportSymbol('proto.clarifai.api.MultiMetricLabelsResponse', null, global);
251
254
  goog.exportSymbol('proto.clarifai.api.MultiModelCheckConsentResponse', null, global);
252
255
  goog.exportSymbol('proto.clarifai.api.MultiModelLanguageResponse', null, global);
253
256
  goog.exportSymbol('proto.clarifai.api.MultiModelReferenceResponse', null, global);
@@ -367,6 +370,7 @@ goog.exportSymbol('proto.clarifai.api.PostKeysRequest', null, global);
367
370
  goog.exportSymbol('proto.clarifai.api.PostKnowledgeGraphsRequest', null, global);
368
371
  goog.exportSymbol('proto.clarifai.api.PostLabelOrdersRequest', null, global);
369
372
  goog.exportSymbol('proto.clarifai.api.PostLogEntriesRequest', null, global);
373
+ goog.exportSymbol('proto.clarifai.api.PostMetricsQueryRequest', null, global);
370
374
  goog.exportSymbol('proto.clarifai.api.PostModelMigrationRequest', null, global);
371
375
  goog.exportSymbol('proto.clarifai.api.PostModelOutputsRequest', null, global);
372
376
  goog.exportSymbol('proto.clarifai.api.PostModelVersionEvaluationsRequest', null, global);
@@ -9273,6 +9277,90 @@ if (goog.DEBUG && !COMPILED) {
9273
9277
  */
9274
9278
  proto.clarifai.api.MultiSecretResponse.displayName = 'proto.clarifai.api.MultiSecretResponse';
9275
9279
  }
9280
+ /**
9281
+ * Generated by JsPbCodeGenerator.
9282
+ * @param {Array=} opt_data Optional initial data array, typically from a
9283
+ * server response, or constructed directly in Javascript. The array is used
9284
+ * in place and becomes part of the constructed object. It is not cloned.
9285
+ * If no data is provided, the constructed object will be empty, but still
9286
+ * valid.
9287
+ * @extends {jspb.Message}
9288
+ * @constructor
9289
+ */
9290
+ proto.clarifai.api.PostMetricsQueryRequest = function(opt_data) {
9291
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
9292
+ };
9293
+ goog.inherits(proto.clarifai.api.PostMetricsQueryRequest, jspb.Message);
9294
+ if (goog.DEBUG && !COMPILED) {
9295
+ /**
9296
+ * @public
9297
+ * @override
9298
+ */
9299
+ proto.clarifai.api.PostMetricsQueryRequest.displayName = 'proto.clarifai.api.PostMetricsQueryRequest';
9300
+ }
9301
+ /**
9302
+ * Generated by JsPbCodeGenerator.
9303
+ * @param {Array=} opt_data Optional initial data array, typically from a
9304
+ * server response, or constructed directly in Javascript. The array is used
9305
+ * in place and becomes part of the constructed object. It is not cloned.
9306
+ * If no data is provided, the constructed object will be empty, but still
9307
+ * valid.
9308
+ * @extends {jspb.Message}
9309
+ * @constructor
9310
+ */
9311
+ proto.clarifai.api.MetricsQueryResponse = function(opt_data) {
9312
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
9313
+ };
9314
+ goog.inherits(proto.clarifai.api.MetricsQueryResponse, jspb.Message);
9315
+ if (goog.DEBUG && !COMPILED) {
9316
+ /**
9317
+ * @public
9318
+ * @override
9319
+ */
9320
+ proto.clarifai.api.MetricsQueryResponse.displayName = 'proto.clarifai.api.MetricsQueryResponse';
9321
+ }
9322
+ /**
9323
+ * Generated by JsPbCodeGenerator.
9324
+ * @param {Array=} opt_data Optional initial data array, typically from a
9325
+ * server response, or constructed directly in Javascript. The array is used
9326
+ * in place and becomes part of the constructed object. It is not cloned.
9327
+ * If no data is provided, the constructed object will be empty, but still
9328
+ * valid.
9329
+ * @extends {jspb.Message}
9330
+ * @constructor
9331
+ */
9332
+ proto.clarifai.api.ListMetricLabelsRequest = function(opt_data) {
9333
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListMetricLabelsRequest.repeatedFields_, null);
9334
+ };
9335
+ goog.inherits(proto.clarifai.api.ListMetricLabelsRequest, jspb.Message);
9336
+ if (goog.DEBUG && !COMPILED) {
9337
+ /**
9338
+ * @public
9339
+ * @override
9340
+ */
9341
+ proto.clarifai.api.ListMetricLabelsRequest.displayName = 'proto.clarifai.api.ListMetricLabelsRequest';
9342
+ }
9343
+ /**
9344
+ * Generated by JsPbCodeGenerator.
9345
+ * @param {Array=} opt_data Optional initial data array, typically from a
9346
+ * server response, or constructed directly in Javascript. The array is used
9347
+ * in place and becomes part of the constructed object. It is not cloned.
9348
+ * If no data is provided, the constructed object will be empty, but still
9349
+ * valid.
9350
+ * @extends {jspb.Message}
9351
+ * @constructor
9352
+ */
9353
+ proto.clarifai.api.MultiMetricLabelsResponse = function(opt_data) {
9354
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiMetricLabelsResponse.repeatedFields_, null);
9355
+ };
9356
+ goog.inherits(proto.clarifai.api.MultiMetricLabelsResponse, jspb.Message);
9357
+ if (goog.DEBUG && !COMPILED) {
9358
+ /**
9359
+ * @public
9360
+ * @override
9361
+ */
9362
+ proto.clarifai.api.MultiMetricLabelsResponse.displayName = 'proto.clarifai.api.MultiMetricLabelsResponse';
9363
+ }
9276
9364
 
9277
9365
 
9278
9366
 
@@ -110345,6 +110433,860 @@ proto.clarifai.api.MultiSecretResponse.prototype.clearSecretsList = function() {
110345
110433
  };
110346
110434
 
110347
110435
 
110436
+
110437
+
110438
+
110439
+ if (jspb.Message.GENERATE_TO_OBJECT) {
110440
+ /**
110441
+ * Creates an object representation of this proto.
110442
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
110443
+ * Optional fields that are not set will be set to undefined.
110444
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
110445
+ * For the list of reserved names please see:
110446
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
110447
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
110448
+ * JSPB instance for transitional soy proto support:
110449
+ * http://goto/soy-param-migration
110450
+ * @return {!Object}
110451
+ */
110452
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.toObject = function(opt_includeInstance) {
110453
+ return proto.clarifai.api.PostMetricsQueryRequest.toObject(opt_includeInstance, this);
110454
+ };
110455
+
110456
+
110457
+ /**
110458
+ * Static version of the {@see toObject} method.
110459
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
110460
+ * the JSPB instance for transitional soy proto support:
110461
+ * http://goto/soy-param-migration
110462
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} msg The msg instance to transform.
110463
+ * @return {!Object}
110464
+ * @suppress {unusedLocalVariables} f is only used for nested messages
110465
+ */
110466
+ proto.clarifai.api.PostMetricsQueryRequest.toObject = function(includeInstance, msg) {
110467
+ var f, obj = {
110468
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
110469
+ query: (f = msg.getQuery()) && proto_clarifai_api_resources_pb.MetricSearchQuery.toObject(includeInstance, f)
110470
+ };
110471
+
110472
+ if (includeInstance) {
110473
+ obj.$jspbMessageInstance = msg;
110474
+ }
110475
+ return obj;
110476
+ };
110477
+ }
110478
+
110479
+
110480
+ /**
110481
+ * Deserializes binary data (in protobuf wire format).
110482
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
110483
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest}
110484
+ */
110485
+ proto.clarifai.api.PostMetricsQueryRequest.deserializeBinary = function(bytes) {
110486
+ var reader = new jspb.BinaryReader(bytes);
110487
+ var msg = new proto.clarifai.api.PostMetricsQueryRequest;
110488
+ return proto.clarifai.api.PostMetricsQueryRequest.deserializeBinaryFromReader(msg, reader);
110489
+ };
110490
+
110491
+
110492
+ /**
110493
+ * Deserializes binary data (in protobuf wire format) from the
110494
+ * given reader into the given message object.
110495
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} msg The message object to deserialize into.
110496
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
110497
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest}
110498
+ */
110499
+ proto.clarifai.api.PostMetricsQueryRequest.deserializeBinaryFromReader = function(msg, reader) {
110500
+ while (reader.nextField()) {
110501
+ if (reader.isEndGroup()) {
110502
+ break;
110503
+ }
110504
+ var field = reader.getFieldNumber();
110505
+ switch (field) {
110506
+ case 1:
110507
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
110508
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
110509
+ msg.setUserAppId(value);
110510
+ break;
110511
+ case 2:
110512
+ var value = new proto_clarifai_api_resources_pb.MetricSearchQuery;
110513
+ reader.readMessage(value,proto_clarifai_api_resources_pb.MetricSearchQuery.deserializeBinaryFromReader);
110514
+ msg.setQuery(value);
110515
+ break;
110516
+ default:
110517
+ reader.skipField();
110518
+ break;
110519
+ }
110520
+ }
110521
+ return msg;
110522
+ };
110523
+
110524
+
110525
+ /**
110526
+ * Serializes the message to binary data (in protobuf wire format).
110527
+ * @return {!Uint8Array}
110528
+ */
110529
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.serializeBinary = function() {
110530
+ var writer = new jspb.BinaryWriter();
110531
+ proto.clarifai.api.PostMetricsQueryRequest.serializeBinaryToWriter(this, writer);
110532
+ return writer.getResultBuffer();
110533
+ };
110534
+
110535
+
110536
+ /**
110537
+ * Serializes the given message to binary data (in protobuf wire
110538
+ * format), writing to the given BinaryWriter.
110539
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} message
110540
+ * @param {!jspb.BinaryWriter} writer
110541
+ * @suppress {unusedLocalVariables} f is only used for nested messages
110542
+ */
110543
+ proto.clarifai.api.PostMetricsQueryRequest.serializeBinaryToWriter = function(message, writer) {
110544
+ var f = undefined;
110545
+ f = message.getUserAppId();
110546
+ if (f != null) {
110547
+ writer.writeMessage(
110548
+ 1,
110549
+ f,
110550
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
110551
+ );
110552
+ }
110553
+ f = message.getQuery();
110554
+ if (f != null) {
110555
+ writer.writeMessage(
110556
+ 2,
110557
+ f,
110558
+ proto_clarifai_api_resources_pb.MetricSearchQuery.serializeBinaryToWriter
110559
+ );
110560
+ }
110561
+ };
110562
+
110563
+
110564
+ /**
110565
+ * optional UserAppIDSet user_app_id = 1;
110566
+ * @return {?proto.clarifai.api.UserAppIDSet}
110567
+ */
110568
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.getUserAppId = function() {
110569
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
110570
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
110571
+ };
110572
+
110573
+
110574
+ /**
110575
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
110576
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest} returns this
110577
+ */
110578
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.setUserAppId = function(value) {
110579
+ return jspb.Message.setWrapperField(this, 1, value);
110580
+ };
110581
+
110582
+
110583
+ /**
110584
+ * Clears the message field making it undefined.
110585
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest} returns this
110586
+ */
110587
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.clearUserAppId = function() {
110588
+ return this.setUserAppId(undefined);
110589
+ };
110590
+
110591
+
110592
+ /**
110593
+ * Returns whether this field is set.
110594
+ * @return {boolean}
110595
+ */
110596
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.hasUserAppId = function() {
110597
+ return jspb.Message.getField(this, 1) != null;
110598
+ };
110599
+
110600
+
110601
+ /**
110602
+ * optional MetricSearchQuery query = 2;
110603
+ * @return {?proto.clarifai.api.MetricSearchQuery}
110604
+ */
110605
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.getQuery = function() {
110606
+ return /** @type{?proto.clarifai.api.MetricSearchQuery} */ (
110607
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.MetricSearchQuery, 2));
110608
+ };
110609
+
110610
+
110611
+ /**
110612
+ * @param {?proto.clarifai.api.MetricSearchQuery|undefined} value
110613
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest} returns this
110614
+ */
110615
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.setQuery = function(value) {
110616
+ return jspb.Message.setWrapperField(this, 2, value);
110617
+ };
110618
+
110619
+
110620
+ /**
110621
+ * Clears the message field making it undefined.
110622
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest} returns this
110623
+ */
110624
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.clearQuery = function() {
110625
+ return this.setQuery(undefined);
110626
+ };
110627
+
110628
+
110629
+ /**
110630
+ * Returns whether this field is set.
110631
+ * @return {boolean}
110632
+ */
110633
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.hasQuery = function() {
110634
+ return jspb.Message.getField(this, 2) != null;
110635
+ };
110636
+
110637
+
110638
+
110639
+
110640
+
110641
+ if (jspb.Message.GENERATE_TO_OBJECT) {
110642
+ /**
110643
+ * Creates an object representation of this proto.
110644
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
110645
+ * Optional fields that are not set will be set to undefined.
110646
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
110647
+ * For the list of reserved names please see:
110648
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
110649
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
110650
+ * JSPB instance for transitional soy proto support:
110651
+ * http://goto/soy-param-migration
110652
+ * @return {!Object}
110653
+ */
110654
+ proto.clarifai.api.MetricsQueryResponse.prototype.toObject = function(opt_includeInstance) {
110655
+ return proto.clarifai.api.MetricsQueryResponse.toObject(opt_includeInstance, this);
110656
+ };
110657
+
110658
+
110659
+ /**
110660
+ * Static version of the {@see toObject} method.
110661
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
110662
+ * the JSPB instance for transitional soy proto support:
110663
+ * http://goto/soy-param-migration
110664
+ * @param {!proto.clarifai.api.MetricsQueryResponse} msg The msg instance to transform.
110665
+ * @return {!Object}
110666
+ * @suppress {unusedLocalVariables} f is only used for nested messages
110667
+ */
110668
+ proto.clarifai.api.MetricsQueryResponse.toObject = function(includeInstance, msg) {
110669
+ var f, obj = {
110670
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
110671
+ data: (f = msg.getData()) && proto_clarifai_api_resources_pb.MetricData.toObject(includeInstance, f),
110672
+ resolution: jspb.Message.getFieldWithDefault(msg, 3, "")
110673
+ };
110674
+
110675
+ if (includeInstance) {
110676
+ obj.$jspbMessageInstance = msg;
110677
+ }
110678
+ return obj;
110679
+ };
110680
+ }
110681
+
110682
+
110683
+ /**
110684
+ * Deserializes binary data (in protobuf wire format).
110685
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
110686
+ * @return {!proto.clarifai.api.MetricsQueryResponse}
110687
+ */
110688
+ proto.clarifai.api.MetricsQueryResponse.deserializeBinary = function(bytes) {
110689
+ var reader = new jspb.BinaryReader(bytes);
110690
+ var msg = new proto.clarifai.api.MetricsQueryResponse;
110691
+ return proto.clarifai.api.MetricsQueryResponse.deserializeBinaryFromReader(msg, reader);
110692
+ };
110693
+
110694
+
110695
+ /**
110696
+ * Deserializes binary data (in protobuf wire format) from the
110697
+ * given reader into the given message object.
110698
+ * @param {!proto.clarifai.api.MetricsQueryResponse} msg The message object to deserialize into.
110699
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
110700
+ * @return {!proto.clarifai.api.MetricsQueryResponse}
110701
+ */
110702
+ proto.clarifai.api.MetricsQueryResponse.deserializeBinaryFromReader = function(msg, reader) {
110703
+ while (reader.nextField()) {
110704
+ if (reader.isEndGroup()) {
110705
+ break;
110706
+ }
110707
+ var field = reader.getFieldNumber();
110708
+ switch (field) {
110709
+ case 1:
110710
+ var value = new proto_clarifai_api_status_status_pb.Status;
110711
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
110712
+ msg.setStatus(value);
110713
+ break;
110714
+ case 2:
110715
+ var value = new proto_clarifai_api_resources_pb.MetricData;
110716
+ reader.readMessage(value,proto_clarifai_api_resources_pb.MetricData.deserializeBinaryFromReader);
110717
+ msg.setData(value);
110718
+ break;
110719
+ case 3:
110720
+ var value = /** @type {string} */ (reader.readString());
110721
+ msg.setResolution(value);
110722
+ break;
110723
+ default:
110724
+ reader.skipField();
110725
+ break;
110726
+ }
110727
+ }
110728
+ return msg;
110729
+ };
110730
+
110731
+
110732
+ /**
110733
+ * Serializes the message to binary data (in protobuf wire format).
110734
+ * @return {!Uint8Array}
110735
+ */
110736
+ proto.clarifai.api.MetricsQueryResponse.prototype.serializeBinary = function() {
110737
+ var writer = new jspb.BinaryWriter();
110738
+ proto.clarifai.api.MetricsQueryResponse.serializeBinaryToWriter(this, writer);
110739
+ return writer.getResultBuffer();
110740
+ };
110741
+
110742
+
110743
+ /**
110744
+ * Serializes the given message to binary data (in protobuf wire
110745
+ * format), writing to the given BinaryWriter.
110746
+ * @param {!proto.clarifai.api.MetricsQueryResponse} message
110747
+ * @param {!jspb.BinaryWriter} writer
110748
+ * @suppress {unusedLocalVariables} f is only used for nested messages
110749
+ */
110750
+ proto.clarifai.api.MetricsQueryResponse.serializeBinaryToWriter = function(message, writer) {
110751
+ var f = undefined;
110752
+ f = message.getStatus();
110753
+ if (f != null) {
110754
+ writer.writeMessage(
110755
+ 1,
110756
+ f,
110757
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
110758
+ );
110759
+ }
110760
+ f = message.getData();
110761
+ if (f != null) {
110762
+ writer.writeMessage(
110763
+ 2,
110764
+ f,
110765
+ proto_clarifai_api_resources_pb.MetricData.serializeBinaryToWriter
110766
+ );
110767
+ }
110768
+ f = message.getResolution();
110769
+ if (f.length > 0) {
110770
+ writer.writeString(
110771
+ 3,
110772
+ f
110773
+ );
110774
+ }
110775
+ };
110776
+
110777
+
110778
+ /**
110779
+ * optional status.Status status = 1;
110780
+ * @return {?proto.clarifai.api.status.Status}
110781
+ */
110782
+ proto.clarifai.api.MetricsQueryResponse.prototype.getStatus = function() {
110783
+ return /** @type{?proto.clarifai.api.status.Status} */ (
110784
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
110785
+ };
110786
+
110787
+
110788
+ /**
110789
+ * @param {?proto.clarifai.api.status.Status|undefined} value
110790
+ * @return {!proto.clarifai.api.MetricsQueryResponse} returns this
110791
+ */
110792
+ proto.clarifai.api.MetricsQueryResponse.prototype.setStatus = function(value) {
110793
+ return jspb.Message.setWrapperField(this, 1, value);
110794
+ };
110795
+
110796
+
110797
+ /**
110798
+ * Clears the message field making it undefined.
110799
+ * @return {!proto.clarifai.api.MetricsQueryResponse} returns this
110800
+ */
110801
+ proto.clarifai.api.MetricsQueryResponse.prototype.clearStatus = function() {
110802
+ return this.setStatus(undefined);
110803
+ };
110804
+
110805
+
110806
+ /**
110807
+ * Returns whether this field is set.
110808
+ * @return {boolean}
110809
+ */
110810
+ proto.clarifai.api.MetricsQueryResponse.prototype.hasStatus = function() {
110811
+ return jspb.Message.getField(this, 1) != null;
110812
+ };
110813
+
110814
+
110815
+ /**
110816
+ * optional MetricData data = 2;
110817
+ * @return {?proto.clarifai.api.MetricData}
110818
+ */
110819
+ proto.clarifai.api.MetricsQueryResponse.prototype.getData = function() {
110820
+ return /** @type{?proto.clarifai.api.MetricData} */ (
110821
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.MetricData, 2));
110822
+ };
110823
+
110824
+
110825
+ /**
110826
+ * @param {?proto.clarifai.api.MetricData|undefined} value
110827
+ * @return {!proto.clarifai.api.MetricsQueryResponse} returns this
110828
+ */
110829
+ proto.clarifai.api.MetricsQueryResponse.prototype.setData = function(value) {
110830
+ return jspb.Message.setWrapperField(this, 2, value);
110831
+ };
110832
+
110833
+
110834
+ /**
110835
+ * Clears the message field making it undefined.
110836
+ * @return {!proto.clarifai.api.MetricsQueryResponse} returns this
110837
+ */
110838
+ proto.clarifai.api.MetricsQueryResponse.prototype.clearData = function() {
110839
+ return this.setData(undefined);
110840
+ };
110841
+
110842
+
110843
+ /**
110844
+ * Returns whether this field is set.
110845
+ * @return {boolean}
110846
+ */
110847
+ proto.clarifai.api.MetricsQueryResponse.prototype.hasData = function() {
110848
+ return jspb.Message.getField(this, 2) != null;
110849
+ };
110850
+
110851
+
110852
+ /**
110853
+ * optional string resolution = 3;
110854
+ * @return {string}
110855
+ */
110856
+ proto.clarifai.api.MetricsQueryResponse.prototype.getResolution = function() {
110857
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
110858
+ };
110859
+
110860
+
110861
+ /**
110862
+ * @param {string} value
110863
+ * @return {!proto.clarifai.api.MetricsQueryResponse} returns this
110864
+ */
110865
+ proto.clarifai.api.MetricsQueryResponse.prototype.setResolution = function(value) {
110866
+ return jspb.Message.setProto3StringField(this, 3, value);
110867
+ };
110868
+
110869
+
110870
+
110871
+ /**
110872
+ * List of repeated fields within this message type.
110873
+ * @private {!Array<number>}
110874
+ * @const
110875
+ */
110876
+ proto.clarifai.api.ListMetricLabelsRequest.repeatedFields_ = [2];
110877
+
110878
+
110879
+
110880
+ if (jspb.Message.GENERATE_TO_OBJECT) {
110881
+ /**
110882
+ * Creates an object representation of this proto.
110883
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
110884
+ * Optional fields that are not set will be set to undefined.
110885
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
110886
+ * For the list of reserved names please see:
110887
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
110888
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
110889
+ * JSPB instance for transitional soy proto support:
110890
+ * http://goto/soy-param-migration
110891
+ * @return {!Object}
110892
+ */
110893
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.toObject = function(opt_includeInstance) {
110894
+ return proto.clarifai.api.ListMetricLabelsRequest.toObject(opt_includeInstance, this);
110895
+ };
110896
+
110897
+
110898
+ /**
110899
+ * Static version of the {@see toObject} method.
110900
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
110901
+ * the JSPB instance for transitional soy proto support:
110902
+ * http://goto/soy-param-migration
110903
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} msg The msg instance to transform.
110904
+ * @return {!Object}
110905
+ * @suppress {unusedLocalVariables} f is only used for nested messages
110906
+ */
110907
+ proto.clarifai.api.ListMetricLabelsRequest.toObject = function(includeInstance, msg) {
110908
+ var f, obj = {
110909
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
110910
+ metricTypesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
110911
+ };
110912
+
110913
+ if (includeInstance) {
110914
+ obj.$jspbMessageInstance = msg;
110915
+ }
110916
+ return obj;
110917
+ };
110918
+ }
110919
+
110920
+
110921
+ /**
110922
+ * Deserializes binary data (in protobuf wire format).
110923
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
110924
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest}
110925
+ */
110926
+ proto.clarifai.api.ListMetricLabelsRequest.deserializeBinary = function(bytes) {
110927
+ var reader = new jspb.BinaryReader(bytes);
110928
+ var msg = new proto.clarifai.api.ListMetricLabelsRequest;
110929
+ return proto.clarifai.api.ListMetricLabelsRequest.deserializeBinaryFromReader(msg, reader);
110930
+ };
110931
+
110932
+
110933
+ /**
110934
+ * Deserializes binary data (in protobuf wire format) from the
110935
+ * given reader into the given message object.
110936
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} msg The message object to deserialize into.
110937
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
110938
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest}
110939
+ */
110940
+ proto.clarifai.api.ListMetricLabelsRequest.deserializeBinaryFromReader = function(msg, reader) {
110941
+ while (reader.nextField()) {
110942
+ if (reader.isEndGroup()) {
110943
+ break;
110944
+ }
110945
+ var field = reader.getFieldNumber();
110946
+ switch (field) {
110947
+ case 1:
110948
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
110949
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
110950
+ msg.setUserAppId(value);
110951
+ break;
110952
+ case 2:
110953
+ var values = /** @type {!Array<!proto.clarifai.api.MetricType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
110954
+ for (var i = 0; i < values.length; i++) {
110955
+ msg.addMetricTypes(values[i]);
110956
+ }
110957
+ break;
110958
+ default:
110959
+ reader.skipField();
110960
+ break;
110961
+ }
110962
+ }
110963
+ return msg;
110964
+ };
110965
+
110966
+
110967
+ /**
110968
+ * Serializes the message to binary data (in protobuf wire format).
110969
+ * @return {!Uint8Array}
110970
+ */
110971
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.serializeBinary = function() {
110972
+ var writer = new jspb.BinaryWriter();
110973
+ proto.clarifai.api.ListMetricLabelsRequest.serializeBinaryToWriter(this, writer);
110974
+ return writer.getResultBuffer();
110975
+ };
110976
+
110977
+
110978
+ /**
110979
+ * Serializes the given message to binary data (in protobuf wire
110980
+ * format), writing to the given BinaryWriter.
110981
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} message
110982
+ * @param {!jspb.BinaryWriter} writer
110983
+ * @suppress {unusedLocalVariables} f is only used for nested messages
110984
+ */
110985
+ proto.clarifai.api.ListMetricLabelsRequest.serializeBinaryToWriter = function(message, writer) {
110986
+ var f = undefined;
110987
+ f = message.getUserAppId();
110988
+ if (f != null) {
110989
+ writer.writeMessage(
110990
+ 1,
110991
+ f,
110992
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
110993
+ );
110994
+ }
110995
+ f = message.getMetricTypesList();
110996
+ if (f.length > 0) {
110997
+ writer.writePackedEnum(
110998
+ 2,
110999
+ f
111000
+ );
111001
+ }
111002
+ };
111003
+
111004
+
111005
+ /**
111006
+ * optional UserAppIDSet user_app_id = 1;
111007
+ * @return {?proto.clarifai.api.UserAppIDSet}
111008
+ */
111009
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.getUserAppId = function() {
111010
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
111011
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
111012
+ };
111013
+
111014
+
111015
+ /**
111016
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
111017
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest} returns this
111018
+ */
111019
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.setUserAppId = function(value) {
111020
+ return jspb.Message.setWrapperField(this, 1, value);
111021
+ };
111022
+
111023
+
111024
+ /**
111025
+ * Clears the message field making it undefined.
111026
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest} returns this
111027
+ */
111028
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.clearUserAppId = function() {
111029
+ return this.setUserAppId(undefined);
111030
+ };
111031
+
111032
+
111033
+ /**
111034
+ * Returns whether this field is set.
111035
+ * @return {boolean}
111036
+ */
111037
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.hasUserAppId = function() {
111038
+ return jspb.Message.getField(this, 1) != null;
111039
+ };
111040
+
111041
+
111042
+ /**
111043
+ * repeated MetricType metric_types = 2;
111044
+ * @return {!Array<!proto.clarifai.api.MetricType>}
111045
+ */
111046
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.getMetricTypesList = function() {
111047
+ return /** @type {!Array<!proto.clarifai.api.MetricType>} */ (jspb.Message.getRepeatedField(this, 2));
111048
+ };
111049
+
111050
+
111051
+ /**
111052
+ * @param {!Array<!proto.clarifai.api.MetricType>} value
111053
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest} returns this
111054
+ */
111055
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.setMetricTypesList = function(value) {
111056
+ return jspb.Message.setField(this, 2, value || []);
111057
+ };
111058
+
111059
+
111060
+ /**
111061
+ * @param {!proto.clarifai.api.MetricType} value
111062
+ * @param {number=} opt_index
111063
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest} returns this
111064
+ */
111065
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.addMetricTypes = function(value, opt_index) {
111066
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
111067
+ };
111068
+
111069
+
111070
+ /**
111071
+ * Clears the list making it empty but non-null.
111072
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest} returns this
111073
+ */
111074
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.clearMetricTypesList = function() {
111075
+ return this.setMetricTypesList([]);
111076
+ };
111077
+
111078
+
111079
+
111080
+ /**
111081
+ * List of repeated fields within this message type.
111082
+ * @private {!Array<number>}
111083
+ * @const
111084
+ */
111085
+ proto.clarifai.api.MultiMetricLabelsResponse.repeatedFields_ = [2];
111086
+
111087
+
111088
+
111089
+ if (jspb.Message.GENERATE_TO_OBJECT) {
111090
+ /**
111091
+ * Creates an object representation of this proto.
111092
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
111093
+ * Optional fields that are not set will be set to undefined.
111094
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
111095
+ * For the list of reserved names please see:
111096
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
111097
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
111098
+ * JSPB instance for transitional soy proto support:
111099
+ * http://goto/soy-param-migration
111100
+ * @return {!Object}
111101
+ */
111102
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.toObject = function(opt_includeInstance) {
111103
+ return proto.clarifai.api.MultiMetricLabelsResponse.toObject(opt_includeInstance, this);
111104
+ };
111105
+
111106
+
111107
+ /**
111108
+ * Static version of the {@see toObject} method.
111109
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
111110
+ * the JSPB instance for transitional soy proto support:
111111
+ * http://goto/soy-param-migration
111112
+ * @param {!proto.clarifai.api.MultiMetricLabelsResponse} msg The msg instance to transform.
111113
+ * @return {!Object}
111114
+ * @suppress {unusedLocalVariables} f is only used for nested messages
111115
+ */
111116
+ proto.clarifai.api.MultiMetricLabelsResponse.toObject = function(includeInstance, msg) {
111117
+ var f, obj = {
111118
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
111119
+ metricTypeLabelsList: jspb.Message.toObjectList(msg.getMetricTypeLabelsList(),
111120
+ proto_clarifai_api_resources_pb.MetricTypeLabels.toObject, includeInstance)
111121
+ };
111122
+
111123
+ if (includeInstance) {
111124
+ obj.$jspbMessageInstance = msg;
111125
+ }
111126
+ return obj;
111127
+ };
111128
+ }
111129
+
111130
+
111131
+ /**
111132
+ * Deserializes binary data (in protobuf wire format).
111133
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
111134
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse}
111135
+ */
111136
+ proto.clarifai.api.MultiMetricLabelsResponse.deserializeBinary = function(bytes) {
111137
+ var reader = new jspb.BinaryReader(bytes);
111138
+ var msg = new proto.clarifai.api.MultiMetricLabelsResponse;
111139
+ return proto.clarifai.api.MultiMetricLabelsResponse.deserializeBinaryFromReader(msg, reader);
111140
+ };
111141
+
111142
+
111143
+ /**
111144
+ * Deserializes binary data (in protobuf wire format) from the
111145
+ * given reader into the given message object.
111146
+ * @param {!proto.clarifai.api.MultiMetricLabelsResponse} msg The message object to deserialize into.
111147
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
111148
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse}
111149
+ */
111150
+ proto.clarifai.api.MultiMetricLabelsResponse.deserializeBinaryFromReader = function(msg, reader) {
111151
+ while (reader.nextField()) {
111152
+ if (reader.isEndGroup()) {
111153
+ break;
111154
+ }
111155
+ var field = reader.getFieldNumber();
111156
+ switch (field) {
111157
+ case 1:
111158
+ var value = new proto_clarifai_api_status_status_pb.Status;
111159
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
111160
+ msg.setStatus(value);
111161
+ break;
111162
+ case 2:
111163
+ var value = new proto_clarifai_api_resources_pb.MetricTypeLabels;
111164
+ reader.readMessage(value,proto_clarifai_api_resources_pb.MetricTypeLabels.deserializeBinaryFromReader);
111165
+ msg.addMetricTypeLabels(value);
111166
+ break;
111167
+ default:
111168
+ reader.skipField();
111169
+ break;
111170
+ }
111171
+ }
111172
+ return msg;
111173
+ };
111174
+
111175
+
111176
+ /**
111177
+ * Serializes the message to binary data (in protobuf wire format).
111178
+ * @return {!Uint8Array}
111179
+ */
111180
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.serializeBinary = function() {
111181
+ var writer = new jspb.BinaryWriter();
111182
+ proto.clarifai.api.MultiMetricLabelsResponse.serializeBinaryToWriter(this, writer);
111183
+ return writer.getResultBuffer();
111184
+ };
111185
+
111186
+
111187
+ /**
111188
+ * Serializes the given message to binary data (in protobuf wire
111189
+ * format), writing to the given BinaryWriter.
111190
+ * @param {!proto.clarifai.api.MultiMetricLabelsResponse} message
111191
+ * @param {!jspb.BinaryWriter} writer
111192
+ * @suppress {unusedLocalVariables} f is only used for nested messages
111193
+ */
111194
+ proto.clarifai.api.MultiMetricLabelsResponse.serializeBinaryToWriter = function(message, writer) {
111195
+ var f = undefined;
111196
+ f = message.getStatus();
111197
+ if (f != null) {
111198
+ writer.writeMessage(
111199
+ 1,
111200
+ f,
111201
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
111202
+ );
111203
+ }
111204
+ f = message.getMetricTypeLabelsList();
111205
+ if (f.length > 0) {
111206
+ writer.writeRepeatedMessage(
111207
+ 2,
111208
+ f,
111209
+ proto_clarifai_api_resources_pb.MetricTypeLabels.serializeBinaryToWriter
111210
+ );
111211
+ }
111212
+ };
111213
+
111214
+
111215
+ /**
111216
+ * optional status.Status status = 1;
111217
+ * @return {?proto.clarifai.api.status.Status}
111218
+ */
111219
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.getStatus = function() {
111220
+ return /** @type{?proto.clarifai.api.status.Status} */ (
111221
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
111222
+ };
111223
+
111224
+
111225
+ /**
111226
+ * @param {?proto.clarifai.api.status.Status|undefined} value
111227
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse} returns this
111228
+ */
111229
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.setStatus = function(value) {
111230
+ return jspb.Message.setWrapperField(this, 1, value);
111231
+ };
111232
+
111233
+
111234
+ /**
111235
+ * Clears the message field making it undefined.
111236
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse} returns this
111237
+ */
111238
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.clearStatus = function() {
111239
+ return this.setStatus(undefined);
111240
+ };
111241
+
111242
+
111243
+ /**
111244
+ * Returns whether this field is set.
111245
+ * @return {boolean}
111246
+ */
111247
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.hasStatus = function() {
111248
+ return jspb.Message.getField(this, 1) != null;
111249
+ };
111250
+
111251
+
111252
+ /**
111253
+ * repeated MetricTypeLabels metric_type_labels = 2;
111254
+ * @return {!Array<!proto.clarifai.api.MetricTypeLabels>}
111255
+ */
111256
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.getMetricTypeLabelsList = function() {
111257
+ return /** @type{!Array<!proto.clarifai.api.MetricTypeLabels>} */ (
111258
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.MetricTypeLabels, 2));
111259
+ };
111260
+
111261
+
111262
+ /**
111263
+ * @param {!Array<!proto.clarifai.api.MetricTypeLabels>} value
111264
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse} returns this
111265
+ */
111266
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.setMetricTypeLabelsList = function(value) {
111267
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
111268
+ };
111269
+
111270
+
111271
+ /**
111272
+ * @param {!proto.clarifai.api.MetricTypeLabels=} opt_value
111273
+ * @param {number=} opt_index
111274
+ * @return {!proto.clarifai.api.MetricTypeLabels}
111275
+ */
111276
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.addMetricTypeLabels = function(opt_value, opt_index) {
111277
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.MetricTypeLabels, opt_index);
111278
+ };
111279
+
111280
+
111281
+ /**
111282
+ * Clears the list making it empty but non-null.
111283
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse} returns this
111284
+ */
111285
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.clearMetricTypeLabelsList = function() {
111286
+ return this.setMetricTypeLabelsList([]);
111287
+ };
111288
+
111289
+
110348
111290
  /**
110349
111291
  * @enum {number}
110350
111292
  */