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.
@@ -172,6 +172,7 @@ goog.exportSymbol('proto.clarifai.api.ListKeysRequest', null, global);
172
172
  goog.exportSymbol('proto.clarifai.api.ListKnowledgeGraphsRequest', null, global);
173
173
  goog.exportSymbol('proto.clarifai.api.ListLabelOrdersRequest', null, global);
174
174
  goog.exportSymbol('proto.clarifai.api.ListLogEntriesRequest', null, global);
175
+ goog.exportSymbol('proto.clarifai.api.ListMetricLabelsRequest', null, global);
175
176
  goog.exportSymbol('proto.clarifai.api.ListModelConceptsRequest', null, global);
176
177
  goog.exportSymbol('proto.clarifai.api.ListModelInputsRequest', null, global);
177
178
  goog.exportSymbol('proto.clarifai.api.ListModelReferencesRequest', null, global);
@@ -208,6 +209,7 @@ goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionEvaluationsRequest', nu
208
209
  goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionsRequest', null, global);
209
210
  goog.exportSymbol('proto.clarifai.api.ListWorkflowsRequest', null, global);
210
211
  goog.exportSymbol('proto.clarifai.api.ListWorkflowsRequest.SortByCase', null, global);
212
+ goog.exportSymbol('proto.clarifai.api.MetricsQueryResponse', null, global);
211
213
  goog.exportSymbol('proto.clarifai.api.ModelVersionPublishRequest', null, global);
212
214
  goog.exportSymbol('proto.clarifai.api.ModelVersionUnpublishRequest', null, global);
213
215
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationFilterResponse', null, global);
@@ -246,6 +248,7 @@ goog.exportSymbol('proto.clarifai.api.MultiKnowledgeGraphResponse', null, global
246
248
  goog.exportSymbol('proto.clarifai.api.MultiLabelOrderResponse', null, global);
247
249
  goog.exportSymbol('proto.clarifai.api.MultiListWorkflowVersionEvaluationDataResponse', null, global);
248
250
  goog.exportSymbol('proto.clarifai.api.MultiLogEntryResponse', null, global);
251
+ goog.exportSymbol('proto.clarifai.api.MultiMetricLabelsResponse', null, global);
249
252
  goog.exportSymbol('proto.clarifai.api.MultiModelCheckConsentResponse', null, global);
250
253
  goog.exportSymbol('proto.clarifai.api.MultiModelLanguageResponse', null, global);
251
254
  goog.exportSymbol('proto.clarifai.api.MultiModelReferenceResponse', null, global);
@@ -365,6 +368,7 @@ goog.exportSymbol('proto.clarifai.api.PostKeysRequest', null, global);
365
368
  goog.exportSymbol('proto.clarifai.api.PostKnowledgeGraphsRequest', null, global);
366
369
  goog.exportSymbol('proto.clarifai.api.PostLabelOrdersRequest', null, global);
367
370
  goog.exportSymbol('proto.clarifai.api.PostLogEntriesRequest', null, global);
371
+ goog.exportSymbol('proto.clarifai.api.PostMetricsQueryRequest', null, global);
368
372
  goog.exportSymbol('proto.clarifai.api.PostModelMigrationRequest', null, global);
369
373
  goog.exportSymbol('proto.clarifai.api.PostModelOutputsRequest', null, global);
370
374
  goog.exportSymbol('proto.clarifai.api.PostModelVersionEvaluationsRequest', null, global);
@@ -9271,6 +9275,90 @@ if (goog.DEBUG && !COMPILED) {
9271
9275
  */
9272
9276
  proto.clarifai.api.MultiSecretResponse.displayName = 'proto.clarifai.api.MultiSecretResponse';
9273
9277
  }
9278
+ /**
9279
+ * Generated by JsPbCodeGenerator.
9280
+ * @param {Array=} opt_data Optional initial data array, typically from a
9281
+ * server response, or constructed directly in Javascript. The array is used
9282
+ * in place and becomes part of the constructed object. It is not cloned.
9283
+ * If no data is provided, the constructed object will be empty, but still
9284
+ * valid.
9285
+ * @extends {jspb.Message}
9286
+ * @constructor
9287
+ */
9288
+ proto.clarifai.api.PostMetricsQueryRequest = function (opt_data) {
9289
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
9290
+ };
9291
+ goog.inherits(proto.clarifai.api.PostMetricsQueryRequest, jspb.Message);
9292
+ if (goog.DEBUG && !COMPILED) {
9293
+ /**
9294
+ * @public
9295
+ * @override
9296
+ */
9297
+ proto.clarifai.api.PostMetricsQueryRequest.displayName = 'proto.clarifai.api.PostMetricsQueryRequest';
9298
+ }
9299
+ /**
9300
+ * Generated by JsPbCodeGenerator.
9301
+ * @param {Array=} opt_data Optional initial data array, typically from a
9302
+ * server response, or constructed directly in Javascript. The array is used
9303
+ * in place and becomes part of the constructed object. It is not cloned.
9304
+ * If no data is provided, the constructed object will be empty, but still
9305
+ * valid.
9306
+ * @extends {jspb.Message}
9307
+ * @constructor
9308
+ */
9309
+ proto.clarifai.api.MetricsQueryResponse = function (opt_data) {
9310
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
9311
+ };
9312
+ goog.inherits(proto.clarifai.api.MetricsQueryResponse, jspb.Message);
9313
+ if (goog.DEBUG && !COMPILED) {
9314
+ /**
9315
+ * @public
9316
+ * @override
9317
+ */
9318
+ proto.clarifai.api.MetricsQueryResponse.displayName = 'proto.clarifai.api.MetricsQueryResponse';
9319
+ }
9320
+ /**
9321
+ * Generated by JsPbCodeGenerator.
9322
+ * @param {Array=} opt_data Optional initial data array, typically from a
9323
+ * server response, or constructed directly in Javascript. The array is used
9324
+ * in place and becomes part of the constructed object. It is not cloned.
9325
+ * If no data is provided, the constructed object will be empty, but still
9326
+ * valid.
9327
+ * @extends {jspb.Message}
9328
+ * @constructor
9329
+ */
9330
+ proto.clarifai.api.ListMetricLabelsRequest = function (opt_data) {
9331
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListMetricLabelsRequest.repeatedFields_, null);
9332
+ };
9333
+ goog.inherits(proto.clarifai.api.ListMetricLabelsRequest, jspb.Message);
9334
+ if (goog.DEBUG && !COMPILED) {
9335
+ /**
9336
+ * @public
9337
+ * @override
9338
+ */
9339
+ proto.clarifai.api.ListMetricLabelsRequest.displayName = 'proto.clarifai.api.ListMetricLabelsRequest';
9340
+ }
9341
+ /**
9342
+ * Generated by JsPbCodeGenerator.
9343
+ * @param {Array=} opt_data Optional initial data array, typically from a
9344
+ * server response, or constructed directly in Javascript. The array is used
9345
+ * in place and becomes part of the constructed object. It is not cloned.
9346
+ * If no data is provided, the constructed object will be empty, but still
9347
+ * valid.
9348
+ * @extends {jspb.Message}
9349
+ * @constructor
9350
+ */
9351
+ proto.clarifai.api.MultiMetricLabelsResponse = function (opt_data) {
9352
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiMetricLabelsResponse.repeatedFields_, null);
9353
+ };
9354
+ goog.inherits(proto.clarifai.api.MultiMetricLabelsResponse, jspb.Message);
9355
+ if (goog.DEBUG && !COMPILED) {
9356
+ /**
9357
+ * @public
9358
+ * @override
9359
+ */
9360
+ proto.clarifai.api.MultiMetricLabelsResponse.displayName = 'proto.clarifai.api.MultiMetricLabelsResponse';
9361
+ }
9274
9362
  if (jspb.Message.GENERATE_TO_OBJECT) {
9275
9363
  /**
9276
9364
  * Creates an object representation of this proto.
@@ -89223,6 +89311,684 @@ proto.clarifai.api.MultiSecretResponse.prototype.addSecrets = function (opt_valu
89223
89311
  proto.clarifai.api.MultiSecretResponse.prototype.clearSecretsList = function () {
89224
89312
  return this.setSecretsList([]);
89225
89313
  };
89314
+ if (jspb.Message.GENERATE_TO_OBJECT) {
89315
+ /**
89316
+ * Creates an object representation of this proto.
89317
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
89318
+ * Optional fields that are not set will be set to undefined.
89319
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
89320
+ * For the list of reserved names please see:
89321
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
89322
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
89323
+ * JSPB instance for transitional soy proto support:
89324
+ * http://goto/soy-param-migration
89325
+ * @return {!Object}
89326
+ */
89327
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.toObject = function (opt_includeInstance) {
89328
+ return proto.clarifai.api.PostMetricsQueryRequest.toObject(opt_includeInstance, this);
89329
+ };
89330
+ /**
89331
+ * Static version of the {@see toObject} method.
89332
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
89333
+ * the JSPB instance for transitional soy proto support:
89334
+ * http://goto/soy-param-migration
89335
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} msg The msg instance to transform.
89336
+ * @return {!Object}
89337
+ * @suppress {unusedLocalVariables} f is only used for nested messages
89338
+ */
89339
+ proto.clarifai.api.PostMetricsQueryRequest.toObject = function (includeInstance, msg) {
89340
+ var f, obj = {
89341
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
89342
+ query: (f = msg.getQuery()) && proto_clarifai_api_resources_pb.MetricSearchQuery.toObject(includeInstance, f)
89343
+ };
89344
+ if (includeInstance) {
89345
+ obj.$jspbMessageInstance = msg;
89346
+ }
89347
+ return obj;
89348
+ };
89349
+ }
89350
+ /**
89351
+ * Deserializes binary data (in protobuf wire format).
89352
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
89353
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest}
89354
+ */
89355
+ proto.clarifai.api.PostMetricsQueryRequest.deserializeBinary = function (bytes) {
89356
+ var reader = new jspb.BinaryReader(bytes);
89357
+ var msg = new proto.clarifai.api.PostMetricsQueryRequest;
89358
+ return proto.clarifai.api.PostMetricsQueryRequest.deserializeBinaryFromReader(msg, reader);
89359
+ };
89360
+ /**
89361
+ * Deserializes binary data (in protobuf wire format) from the
89362
+ * given reader into the given message object.
89363
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} msg The message object to deserialize into.
89364
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
89365
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest}
89366
+ */
89367
+ proto.clarifai.api.PostMetricsQueryRequest.deserializeBinaryFromReader = function (msg, reader) {
89368
+ while (reader.nextField()) {
89369
+ if (reader.isEndGroup()) {
89370
+ break;
89371
+ }
89372
+ var field = reader.getFieldNumber();
89373
+ switch (field) {
89374
+ case 1:
89375
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
89376
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
89377
+ msg.setUserAppId(value);
89378
+ break;
89379
+ case 2:
89380
+ var value = new proto_clarifai_api_resources_pb.MetricSearchQuery;
89381
+ reader.readMessage(value, proto_clarifai_api_resources_pb.MetricSearchQuery.deserializeBinaryFromReader);
89382
+ msg.setQuery(value);
89383
+ break;
89384
+ default:
89385
+ reader.skipField();
89386
+ break;
89387
+ }
89388
+ }
89389
+ return msg;
89390
+ };
89391
+ /**
89392
+ * Serializes the message to binary data (in protobuf wire format).
89393
+ * @return {!Uint8Array}
89394
+ */
89395
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.serializeBinary = function () {
89396
+ var writer = new jspb.BinaryWriter();
89397
+ proto.clarifai.api.PostMetricsQueryRequest.serializeBinaryToWriter(this, writer);
89398
+ return writer.getResultBuffer();
89399
+ };
89400
+ /**
89401
+ * Serializes the given message to binary data (in protobuf wire
89402
+ * format), writing to the given BinaryWriter.
89403
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} message
89404
+ * @param {!jspb.BinaryWriter} writer
89405
+ * @suppress {unusedLocalVariables} f is only used for nested messages
89406
+ */
89407
+ proto.clarifai.api.PostMetricsQueryRequest.serializeBinaryToWriter = function (message, writer) {
89408
+ var f = undefined;
89409
+ f = message.getUserAppId();
89410
+ if (f != null) {
89411
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
89412
+ }
89413
+ f = message.getQuery();
89414
+ if (f != null) {
89415
+ writer.writeMessage(2, f, proto_clarifai_api_resources_pb.MetricSearchQuery.serializeBinaryToWriter);
89416
+ }
89417
+ };
89418
+ /**
89419
+ * optional UserAppIDSet user_app_id = 1;
89420
+ * @return {?proto.clarifai.api.UserAppIDSet}
89421
+ */
89422
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.getUserAppId = function () {
89423
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
89424
+ };
89425
+ /**
89426
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
89427
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest} returns this
89428
+ */
89429
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.setUserAppId = function (value) {
89430
+ return jspb.Message.setWrapperField(this, 1, value);
89431
+ };
89432
+ /**
89433
+ * Clears the message field making it undefined.
89434
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest} returns this
89435
+ */
89436
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.clearUserAppId = function () {
89437
+ return this.setUserAppId(undefined);
89438
+ };
89439
+ /**
89440
+ * Returns whether this field is set.
89441
+ * @return {boolean}
89442
+ */
89443
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.hasUserAppId = function () {
89444
+ return jspb.Message.getField(this, 1) != null;
89445
+ };
89446
+ /**
89447
+ * optional MetricSearchQuery query = 2;
89448
+ * @return {?proto.clarifai.api.MetricSearchQuery}
89449
+ */
89450
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.getQuery = function () {
89451
+ return /** @type{?proto.clarifai.api.MetricSearchQuery} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.MetricSearchQuery, 2));
89452
+ };
89453
+ /**
89454
+ * @param {?proto.clarifai.api.MetricSearchQuery|undefined} value
89455
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest} returns this
89456
+ */
89457
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.setQuery = function (value) {
89458
+ return jspb.Message.setWrapperField(this, 2, value);
89459
+ };
89460
+ /**
89461
+ * Clears the message field making it undefined.
89462
+ * @return {!proto.clarifai.api.PostMetricsQueryRequest} returns this
89463
+ */
89464
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.clearQuery = function () {
89465
+ return this.setQuery(undefined);
89466
+ };
89467
+ /**
89468
+ * Returns whether this field is set.
89469
+ * @return {boolean}
89470
+ */
89471
+ proto.clarifai.api.PostMetricsQueryRequest.prototype.hasQuery = function () {
89472
+ return jspb.Message.getField(this, 2) != null;
89473
+ };
89474
+ if (jspb.Message.GENERATE_TO_OBJECT) {
89475
+ /**
89476
+ * Creates an object representation of this proto.
89477
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
89478
+ * Optional fields that are not set will be set to undefined.
89479
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
89480
+ * For the list of reserved names please see:
89481
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
89482
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
89483
+ * JSPB instance for transitional soy proto support:
89484
+ * http://goto/soy-param-migration
89485
+ * @return {!Object}
89486
+ */
89487
+ proto.clarifai.api.MetricsQueryResponse.prototype.toObject = function (opt_includeInstance) {
89488
+ return proto.clarifai.api.MetricsQueryResponse.toObject(opt_includeInstance, this);
89489
+ };
89490
+ /**
89491
+ * Static version of the {@see toObject} method.
89492
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
89493
+ * the JSPB instance for transitional soy proto support:
89494
+ * http://goto/soy-param-migration
89495
+ * @param {!proto.clarifai.api.MetricsQueryResponse} msg The msg instance to transform.
89496
+ * @return {!Object}
89497
+ * @suppress {unusedLocalVariables} f is only used for nested messages
89498
+ */
89499
+ proto.clarifai.api.MetricsQueryResponse.toObject = function (includeInstance, msg) {
89500
+ var f, obj = {
89501
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
89502
+ data: (f = msg.getData()) && proto_clarifai_api_resources_pb.MetricData.toObject(includeInstance, f),
89503
+ resolution: jspb.Message.getFieldWithDefault(msg, 3, "")
89504
+ };
89505
+ if (includeInstance) {
89506
+ obj.$jspbMessageInstance = msg;
89507
+ }
89508
+ return obj;
89509
+ };
89510
+ }
89511
+ /**
89512
+ * Deserializes binary data (in protobuf wire format).
89513
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
89514
+ * @return {!proto.clarifai.api.MetricsQueryResponse}
89515
+ */
89516
+ proto.clarifai.api.MetricsQueryResponse.deserializeBinary = function (bytes) {
89517
+ var reader = new jspb.BinaryReader(bytes);
89518
+ var msg = new proto.clarifai.api.MetricsQueryResponse;
89519
+ return proto.clarifai.api.MetricsQueryResponse.deserializeBinaryFromReader(msg, reader);
89520
+ };
89521
+ /**
89522
+ * Deserializes binary data (in protobuf wire format) from the
89523
+ * given reader into the given message object.
89524
+ * @param {!proto.clarifai.api.MetricsQueryResponse} msg The message object to deserialize into.
89525
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
89526
+ * @return {!proto.clarifai.api.MetricsQueryResponse}
89527
+ */
89528
+ proto.clarifai.api.MetricsQueryResponse.deserializeBinaryFromReader = function (msg, reader) {
89529
+ while (reader.nextField()) {
89530
+ if (reader.isEndGroup()) {
89531
+ break;
89532
+ }
89533
+ var field = reader.getFieldNumber();
89534
+ switch (field) {
89535
+ case 1:
89536
+ var value = new proto_clarifai_api_status_status_pb.Status;
89537
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
89538
+ msg.setStatus(value);
89539
+ break;
89540
+ case 2:
89541
+ var value = new proto_clarifai_api_resources_pb.MetricData;
89542
+ reader.readMessage(value, proto_clarifai_api_resources_pb.MetricData.deserializeBinaryFromReader);
89543
+ msg.setData(value);
89544
+ break;
89545
+ case 3:
89546
+ var value = /** @type {string} */ (reader.readString());
89547
+ msg.setResolution(value);
89548
+ break;
89549
+ default:
89550
+ reader.skipField();
89551
+ break;
89552
+ }
89553
+ }
89554
+ return msg;
89555
+ };
89556
+ /**
89557
+ * Serializes the message to binary data (in protobuf wire format).
89558
+ * @return {!Uint8Array}
89559
+ */
89560
+ proto.clarifai.api.MetricsQueryResponse.prototype.serializeBinary = function () {
89561
+ var writer = new jspb.BinaryWriter();
89562
+ proto.clarifai.api.MetricsQueryResponse.serializeBinaryToWriter(this, writer);
89563
+ return writer.getResultBuffer();
89564
+ };
89565
+ /**
89566
+ * Serializes the given message to binary data (in protobuf wire
89567
+ * format), writing to the given BinaryWriter.
89568
+ * @param {!proto.clarifai.api.MetricsQueryResponse} message
89569
+ * @param {!jspb.BinaryWriter} writer
89570
+ * @suppress {unusedLocalVariables} f is only used for nested messages
89571
+ */
89572
+ proto.clarifai.api.MetricsQueryResponse.serializeBinaryToWriter = function (message, writer) {
89573
+ var f = undefined;
89574
+ f = message.getStatus();
89575
+ if (f != null) {
89576
+ writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
89577
+ }
89578
+ f = message.getData();
89579
+ if (f != null) {
89580
+ writer.writeMessage(2, f, proto_clarifai_api_resources_pb.MetricData.serializeBinaryToWriter);
89581
+ }
89582
+ f = message.getResolution();
89583
+ if (f.length > 0) {
89584
+ writer.writeString(3, f);
89585
+ }
89586
+ };
89587
+ /**
89588
+ * optional status.Status status = 1;
89589
+ * @return {?proto.clarifai.api.status.Status}
89590
+ */
89591
+ proto.clarifai.api.MetricsQueryResponse.prototype.getStatus = function () {
89592
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
89593
+ };
89594
+ /**
89595
+ * @param {?proto.clarifai.api.status.Status|undefined} value
89596
+ * @return {!proto.clarifai.api.MetricsQueryResponse} returns this
89597
+ */
89598
+ proto.clarifai.api.MetricsQueryResponse.prototype.setStatus = function (value) {
89599
+ return jspb.Message.setWrapperField(this, 1, value);
89600
+ };
89601
+ /**
89602
+ * Clears the message field making it undefined.
89603
+ * @return {!proto.clarifai.api.MetricsQueryResponse} returns this
89604
+ */
89605
+ proto.clarifai.api.MetricsQueryResponse.prototype.clearStatus = function () {
89606
+ return this.setStatus(undefined);
89607
+ };
89608
+ /**
89609
+ * Returns whether this field is set.
89610
+ * @return {boolean}
89611
+ */
89612
+ proto.clarifai.api.MetricsQueryResponse.prototype.hasStatus = function () {
89613
+ return jspb.Message.getField(this, 1) != null;
89614
+ };
89615
+ /**
89616
+ * optional MetricData data = 2;
89617
+ * @return {?proto.clarifai.api.MetricData}
89618
+ */
89619
+ proto.clarifai.api.MetricsQueryResponse.prototype.getData = function () {
89620
+ return /** @type{?proto.clarifai.api.MetricData} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.MetricData, 2));
89621
+ };
89622
+ /**
89623
+ * @param {?proto.clarifai.api.MetricData|undefined} value
89624
+ * @return {!proto.clarifai.api.MetricsQueryResponse} returns this
89625
+ */
89626
+ proto.clarifai.api.MetricsQueryResponse.prototype.setData = function (value) {
89627
+ return jspb.Message.setWrapperField(this, 2, value);
89628
+ };
89629
+ /**
89630
+ * Clears the message field making it undefined.
89631
+ * @return {!proto.clarifai.api.MetricsQueryResponse} returns this
89632
+ */
89633
+ proto.clarifai.api.MetricsQueryResponse.prototype.clearData = function () {
89634
+ return this.setData(undefined);
89635
+ };
89636
+ /**
89637
+ * Returns whether this field is set.
89638
+ * @return {boolean}
89639
+ */
89640
+ proto.clarifai.api.MetricsQueryResponse.prototype.hasData = function () {
89641
+ return jspb.Message.getField(this, 2) != null;
89642
+ };
89643
+ /**
89644
+ * optional string resolution = 3;
89645
+ * @return {string}
89646
+ */
89647
+ proto.clarifai.api.MetricsQueryResponse.prototype.getResolution = function () {
89648
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
89649
+ };
89650
+ /**
89651
+ * @param {string} value
89652
+ * @return {!proto.clarifai.api.MetricsQueryResponse} returns this
89653
+ */
89654
+ proto.clarifai.api.MetricsQueryResponse.prototype.setResolution = function (value) {
89655
+ return jspb.Message.setProto3StringField(this, 3, value);
89656
+ };
89657
+ /**
89658
+ * List of repeated fields within this message type.
89659
+ * @private {!Array<number>}
89660
+ * @const
89661
+ */
89662
+ proto.clarifai.api.ListMetricLabelsRequest.repeatedFields_ = [2];
89663
+ if (jspb.Message.GENERATE_TO_OBJECT) {
89664
+ /**
89665
+ * Creates an object representation of this proto.
89666
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
89667
+ * Optional fields that are not set will be set to undefined.
89668
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
89669
+ * For the list of reserved names please see:
89670
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
89671
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
89672
+ * JSPB instance for transitional soy proto support:
89673
+ * http://goto/soy-param-migration
89674
+ * @return {!Object}
89675
+ */
89676
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.toObject = function (opt_includeInstance) {
89677
+ return proto.clarifai.api.ListMetricLabelsRequest.toObject(opt_includeInstance, this);
89678
+ };
89679
+ /**
89680
+ * Static version of the {@see toObject} method.
89681
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
89682
+ * the JSPB instance for transitional soy proto support:
89683
+ * http://goto/soy-param-migration
89684
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} msg The msg instance to transform.
89685
+ * @return {!Object}
89686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
89687
+ */
89688
+ proto.clarifai.api.ListMetricLabelsRequest.toObject = function (includeInstance, msg) {
89689
+ var f, obj = {
89690
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
89691
+ metricTypesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
89692
+ };
89693
+ if (includeInstance) {
89694
+ obj.$jspbMessageInstance = msg;
89695
+ }
89696
+ return obj;
89697
+ };
89698
+ }
89699
+ /**
89700
+ * Deserializes binary data (in protobuf wire format).
89701
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
89702
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest}
89703
+ */
89704
+ proto.clarifai.api.ListMetricLabelsRequest.deserializeBinary = function (bytes) {
89705
+ var reader = new jspb.BinaryReader(bytes);
89706
+ var msg = new proto.clarifai.api.ListMetricLabelsRequest;
89707
+ return proto.clarifai.api.ListMetricLabelsRequest.deserializeBinaryFromReader(msg, reader);
89708
+ };
89709
+ /**
89710
+ * Deserializes binary data (in protobuf wire format) from the
89711
+ * given reader into the given message object.
89712
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} msg The message object to deserialize into.
89713
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
89714
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest}
89715
+ */
89716
+ proto.clarifai.api.ListMetricLabelsRequest.deserializeBinaryFromReader = function (msg, reader) {
89717
+ while (reader.nextField()) {
89718
+ if (reader.isEndGroup()) {
89719
+ break;
89720
+ }
89721
+ var field = reader.getFieldNumber();
89722
+ switch (field) {
89723
+ case 1:
89724
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
89725
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
89726
+ msg.setUserAppId(value);
89727
+ break;
89728
+ case 2:
89729
+ var values = /** @type {!Array<!proto.clarifai.api.MetricType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
89730
+ for (var i = 0; i < values.length; i++) {
89731
+ msg.addMetricTypes(values[i]);
89732
+ }
89733
+ break;
89734
+ default:
89735
+ reader.skipField();
89736
+ break;
89737
+ }
89738
+ }
89739
+ return msg;
89740
+ };
89741
+ /**
89742
+ * Serializes the message to binary data (in protobuf wire format).
89743
+ * @return {!Uint8Array}
89744
+ */
89745
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.serializeBinary = function () {
89746
+ var writer = new jspb.BinaryWriter();
89747
+ proto.clarifai.api.ListMetricLabelsRequest.serializeBinaryToWriter(this, writer);
89748
+ return writer.getResultBuffer();
89749
+ };
89750
+ /**
89751
+ * Serializes the given message to binary data (in protobuf wire
89752
+ * format), writing to the given BinaryWriter.
89753
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} message
89754
+ * @param {!jspb.BinaryWriter} writer
89755
+ * @suppress {unusedLocalVariables} f is only used for nested messages
89756
+ */
89757
+ proto.clarifai.api.ListMetricLabelsRequest.serializeBinaryToWriter = function (message, writer) {
89758
+ var f = undefined;
89759
+ f = message.getUserAppId();
89760
+ if (f != null) {
89761
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
89762
+ }
89763
+ f = message.getMetricTypesList();
89764
+ if (f.length > 0) {
89765
+ writer.writePackedEnum(2, f);
89766
+ }
89767
+ };
89768
+ /**
89769
+ * optional UserAppIDSet user_app_id = 1;
89770
+ * @return {?proto.clarifai.api.UserAppIDSet}
89771
+ */
89772
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.getUserAppId = function () {
89773
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
89774
+ };
89775
+ /**
89776
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
89777
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest} returns this
89778
+ */
89779
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.setUserAppId = function (value) {
89780
+ return jspb.Message.setWrapperField(this, 1, value);
89781
+ };
89782
+ /**
89783
+ * Clears the message field making it undefined.
89784
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest} returns this
89785
+ */
89786
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.clearUserAppId = function () {
89787
+ return this.setUserAppId(undefined);
89788
+ };
89789
+ /**
89790
+ * Returns whether this field is set.
89791
+ * @return {boolean}
89792
+ */
89793
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.hasUserAppId = function () {
89794
+ return jspb.Message.getField(this, 1) != null;
89795
+ };
89796
+ /**
89797
+ * repeated MetricType metric_types = 2;
89798
+ * @return {!Array<!proto.clarifai.api.MetricType>}
89799
+ */
89800
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.getMetricTypesList = function () {
89801
+ return /** @type {!Array<!proto.clarifai.api.MetricType>} */ (jspb.Message.getRepeatedField(this, 2));
89802
+ };
89803
+ /**
89804
+ * @param {!Array<!proto.clarifai.api.MetricType>} value
89805
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest} returns this
89806
+ */
89807
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.setMetricTypesList = function (value) {
89808
+ return jspb.Message.setField(this, 2, value || []);
89809
+ };
89810
+ /**
89811
+ * @param {!proto.clarifai.api.MetricType} value
89812
+ * @param {number=} opt_index
89813
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest} returns this
89814
+ */
89815
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.addMetricTypes = function (value, opt_index) {
89816
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
89817
+ };
89818
+ /**
89819
+ * Clears the list making it empty but non-null.
89820
+ * @return {!proto.clarifai.api.ListMetricLabelsRequest} returns this
89821
+ */
89822
+ proto.clarifai.api.ListMetricLabelsRequest.prototype.clearMetricTypesList = function () {
89823
+ return this.setMetricTypesList([]);
89824
+ };
89825
+ /**
89826
+ * List of repeated fields within this message type.
89827
+ * @private {!Array<number>}
89828
+ * @const
89829
+ */
89830
+ proto.clarifai.api.MultiMetricLabelsResponse.repeatedFields_ = [2];
89831
+ if (jspb.Message.GENERATE_TO_OBJECT) {
89832
+ /**
89833
+ * Creates an object representation of this proto.
89834
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
89835
+ * Optional fields that are not set will be set to undefined.
89836
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
89837
+ * For the list of reserved names please see:
89838
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
89839
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
89840
+ * JSPB instance for transitional soy proto support:
89841
+ * http://goto/soy-param-migration
89842
+ * @return {!Object}
89843
+ */
89844
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.toObject = function (opt_includeInstance) {
89845
+ return proto.clarifai.api.MultiMetricLabelsResponse.toObject(opt_includeInstance, this);
89846
+ };
89847
+ /**
89848
+ * Static version of the {@see toObject} method.
89849
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
89850
+ * the JSPB instance for transitional soy proto support:
89851
+ * http://goto/soy-param-migration
89852
+ * @param {!proto.clarifai.api.MultiMetricLabelsResponse} msg The msg instance to transform.
89853
+ * @return {!Object}
89854
+ * @suppress {unusedLocalVariables} f is only used for nested messages
89855
+ */
89856
+ proto.clarifai.api.MultiMetricLabelsResponse.toObject = function (includeInstance, msg) {
89857
+ var f, obj = {
89858
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
89859
+ metricTypeLabelsList: jspb.Message.toObjectList(msg.getMetricTypeLabelsList(), proto_clarifai_api_resources_pb.MetricTypeLabels.toObject, includeInstance)
89860
+ };
89861
+ if (includeInstance) {
89862
+ obj.$jspbMessageInstance = msg;
89863
+ }
89864
+ return obj;
89865
+ };
89866
+ }
89867
+ /**
89868
+ * Deserializes binary data (in protobuf wire format).
89869
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
89870
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse}
89871
+ */
89872
+ proto.clarifai.api.MultiMetricLabelsResponse.deserializeBinary = function (bytes) {
89873
+ var reader = new jspb.BinaryReader(bytes);
89874
+ var msg = new proto.clarifai.api.MultiMetricLabelsResponse;
89875
+ return proto.clarifai.api.MultiMetricLabelsResponse.deserializeBinaryFromReader(msg, reader);
89876
+ };
89877
+ /**
89878
+ * Deserializes binary data (in protobuf wire format) from the
89879
+ * given reader into the given message object.
89880
+ * @param {!proto.clarifai.api.MultiMetricLabelsResponse} msg The message object to deserialize into.
89881
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
89882
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse}
89883
+ */
89884
+ proto.clarifai.api.MultiMetricLabelsResponse.deserializeBinaryFromReader = function (msg, reader) {
89885
+ while (reader.nextField()) {
89886
+ if (reader.isEndGroup()) {
89887
+ break;
89888
+ }
89889
+ var field = reader.getFieldNumber();
89890
+ switch (field) {
89891
+ case 1:
89892
+ var value = new proto_clarifai_api_status_status_pb.Status;
89893
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
89894
+ msg.setStatus(value);
89895
+ break;
89896
+ case 2:
89897
+ var value = new proto_clarifai_api_resources_pb.MetricTypeLabels;
89898
+ reader.readMessage(value, proto_clarifai_api_resources_pb.MetricTypeLabels.deserializeBinaryFromReader);
89899
+ msg.addMetricTypeLabels(value);
89900
+ break;
89901
+ default:
89902
+ reader.skipField();
89903
+ break;
89904
+ }
89905
+ }
89906
+ return msg;
89907
+ };
89908
+ /**
89909
+ * Serializes the message to binary data (in protobuf wire format).
89910
+ * @return {!Uint8Array}
89911
+ */
89912
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.serializeBinary = function () {
89913
+ var writer = new jspb.BinaryWriter();
89914
+ proto.clarifai.api.MultiMetricLabelsResponse.serializeBinaryToWriter(this, writer);
89915
+ return writer.getResultBuffer();
89916
+ };
89917
+ /**
89918
+ * Serializes the given message to binary data (in protobuf wire
89919
+ * format), writing to the given BinaryWriter.
89920
+ * @param {!proto.clarifai.api.MultiMetricLabelsResponse} message
89921
+ * @param {!jspb.BinaryWriter} writer
89922
+ * @suppress {unusedLocalVariables} f is only used for nested messages
89923
+ */
89924
+ proto.clarifai.api.MultiMetricLabelsResponse.serializeBinaryToWriter = function (message, writer) {
89925
+ var f = undefined;
89926
+ f = message.getStatus();
89927
+ if (f != null) {
89928
+ writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
89929
+ }
89930
+ f = message.getMetricTypeLabelsList();
89931
+ if (f.length > 0) {
89932
+ writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.MetricTypeLabels.serializeBinaryToWriter);
89933
+ }
89934
+ };
89935
+ /**
89936
+ * optional status.Status status = 1;
89937
+ * @return {?proto.clarifai.api.status.Status}
89938
+ */
89939
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.getStatus = function () {
89940
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
89941
+ };
89942
+ /**
89943
+ * @param {?proto.clarifai.api.status.Status|undefined} value
89944
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse} returns this
89945
+ */
89946
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.setStatus = function (value) {
89947
+ return jspb.Message.setWrapperField(this, 1, value);
89948
+ };
89949
+ /**
89950
+ * Clears the message field making it undefined.
89951
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse} returns this
89952
+ */
89953
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.clearStatus = function () {
89954
+ return this.setStatus(undefined);
89955
+ };
89956
+ /**
89957
+ * Returns whether this field is set.
89958
+ * @return {boolean}
89959
+ */
89960
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.hasStatus = function () {
89961
+ return jspb.Message.getField(this, 1) != null;
89962
+ };
89963
+ /**
89964
+ * repeated MetricTypeLabels metric_type_labels = 2;
89965
+ * @return {!Array<!proto.clarifai.api.MetricTypeLabels>}
89966
+ */
89967
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.getMetricTypeLabelsList = function () {
89968
+ return /** @type{!Array<!proto.clarifai.api.MetricTypeLabels>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.MetricTypeLabels, 2));
89969
+ };
89970
+ /**
89971
+ * @param {!Array<!proto.clarifai.api.MetricTypeLabels>} value
89972
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse} returns this
89973
+ */
89974
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.setMetricTypeLabelsList = function (value) {
89975
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
89976
+ };
89977
+ /**
89978
+ * @param {!proto.clarifai.api.MetricTypeLabels=} opt_value
89979
+ * @param {number=} opt_index
89980
+ * @return {!proto.clarifai.api.MetricTypeLabels}
89981
+ */
89982
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.addMetricTypeLabels = function (opt_value, opt_index) {
89983
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.MetricTypeLabels, opt_index);
89984
+ };
89985
+ /**
89986
+ * Clears the list making it empty but non-null.
89987
+ * @return {!proto.clarifai.api.MultiMetricLabelsResponse} returns this
89988
+ */
89989
+ proto.clarifai.api.MultiMetricLabelsResponse.prototype.clearMetricTypeLabelsList = function () {
89990
+ return this.setMetricTypeLabelsList([]);
89991
+ };
89226
89992
  /**
89227
89993
  * @enum {number}
89228
89994
  */