clarifai-web-grpc 11.6.5 → 11.7.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.
@@ -50,6 +50,7 @@ goog.exportSymbol('proto.clarifai.api.AnnotationDataType', null, global);
50
50
  goog.exportSymbol('proto.clarifai.api.AnnotationFilter', null, global);
51
51
  goog.exportSymbol('proto.clarifai.api.AnnotationFilterConfig', null, global);
52
52
  goog.exportSymbol('proto.clarifai.api.AnnotationSearchMetrics', null, global);
53
+ goog.exportSymbol('proto.clarifai.api.AnnotationTrack', null, global);
53
54
  goog.exportSymbol('proto.clarifai.api.App', null, global);
54
55
  goog.exportSymbol('proto.clarifai.api.App.EmbeddingsStorage', null, global);
55
56
  goog.exportSymbol('proto.clarifai.api.AppCopyProgress', null, global);
@@ -191,6 +192,20 @@ goog.exportSymbol('proto.clarifai.api.LogEntry', null, global);
191
192
  goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global);
192
193
  goog.exportSymbol('proto.clarifai.api.Mask', null, global);
193
194
  goog.exportSymbol('proto.clarifai.api.MethodSignature', null, global);
195
+ goog.exportSymbol('proto.clarifai.api.MetricAggregate', null, global);
196
+ goog.exportSymbol('proto.clarifai.api.MetricAggregate.Operator', null, global);
197
+ goog.exportSymbol('proto.clarifai.api.MetricData', null, global);
198
+ goog.exportSymbol('proto.clarifai.api.MetricData.DataCase', null, global);
199
+ goog.exportSymbol('proto.clarifai.api.MetricData.Label', null, global);
200
+ goog.exportSymbol('proto.clarifai.api.MetricData.MatrixData', null, global);
201
+ goog.exportSymbol('proto.clarifai.api.MetricData.MatrixData.TimeSeries', null, global);
202
+ goog.exportSymbol('proto.clarifai.api.MetricData.MetricSample', null, global);
203
+ goog.exportSymbol('proto.clarifai.api.MetricFilter', null, global);
204
+ goog.exportSymbol('proto.clarifai.api.MetricFilter.MultiValues', null, global);
205
+ goog.exportSymbol('proto.clarifai.api.MetricFilter.ValueCase', null, global);
206
+ goog.exportSymbol('proto.clarifai.api.MetricLabel', null, global);
207
+ goog.exportSymbol('proto.clarifai.api.MetricSearchQuery', null, global);
208
+ goog.exportSymbol('proto.clarifai.api.MetricType', null, global);
194
209
  goog.exportSymbol('proto.clarifai.api.MetricValue', null, global);
195
210
  goog.exportSymbol('proto.clarifai.api.MetricValue.MetricValueCase', null, global);
196
211
  goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global);
@@ -365,6 +380,27 @@ if (goog.DEBUG && !COMPILED) {
365
380
  */
366
381
  proto.clarifai.api.Annotation.displayName = 'proto.clarifai.api.Annotation';
367
382
  }
383
+ /**
384
+ * Generated by JsPbCodeGenerator.
385
+ * @param {Array=} opt_data Optional initial data array, typically from a
386
+ * server response, or constructed directly in Javascript. The array is used
387
+ * in place and becomes part of the constructed object. It is not cloned.
388
+ * If no data is provided, the constructed object will be empty, but still
389
+ * valid.
390
+ * @extends {jspb.Message}
391
+ * @constructor
392
+ */
393
+ proto.clarifai.api.AnnotationTrack = function(opt_data) {
394
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
395
+ };
396
+ goog.inherits(proto.clarifai.api.AnnotationTrack, jspb.Message);
397
+ if (goog.DEBUG && !COMPILED) {
398
+ /**
399
+ * @public
400
+ * @override
401
+ */
402
+ proto.clarifai.api.AnnotationTrack.displayName = 'proto.clarifai.api.AnnotationTrack';
403
+ }
368
404
  /**
369
405
  * Generated by JsPbCodeGenerator.
370
406
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5531,6 +5567,195 @@ if (goog.DEBUG && !COMPILED) {
5531
5567
  */
5532
5568
  proto.clarifai.api.Secret.displayName = 'proto.clarifai.api.Secret';
5533
5569
  }
5570
+ /**
5571
+ * Generated by JsPbCodeGenerator.
5572
+ * @param {Array=} opt_data Optional initial data array, typically from a
5573
+ * server response, or constructed directly in Javascript. The array is used
5574
+ * in place and becomes part of the constructed object. It is not cloned.
5575
+ * If no data is provided, the constructed object will be empty, but still
5576
+ * valid.
5577
+ * @extends {jspb.Message}
5578
+ * @constructor
5579
+ */
5580
+ proto.clarifai.api.MetricData = function(opt_data) {
5581
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.MetricData.oneofGroups_);
5582
+ };
5583
+ goog.inherits(proto.clarifai.api.MetricData, jspb.Message);
5584
+ if (goog.DEBUG && !COMPILED) {
5585
+ /**
5586
+ * @public
5587
+ * @override
5588
+ */
5589
+ proto.clarifai.api.MetricData.displayName = 'proto.clarifai.api.MetricData';
5590
+ }
5591
+ /**
5592
+ * Generated by JsPbCodeGenerator.
5593
+ * @param {Array=} opt_data Optional initial data array, typically from a
5594
+ * server response, or constructed directly in Javascript. The array is used
5595
+ * in place and becomes part of the constructed object. It is not cloned.
5596
+ * If no data is provided, the constructed object will be empty, but still
5597
+ * valid.
5598
+ * @extends {jspb.Message}
5599
+ * @constructor
5600
+ */
5601
+ proto.clarifai.api.MetricData.Label = function(opt_data) {
5602
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5603
+ };
5604
+ goog.inherits(proto.clarifai.api.MetricData.Label, jspb.Message);
5605
+ if (goog.DEBUG && !COMPILED) {
5606
+ /**
5607
+ * @public
5608
+ * @override
5609
+ */
5610
+ proto.clarifai.api.MetricData.Label.displayName = 'proto.clarifai.api.MetricData.Label';
5611
+ }
5612
+ /**
5613
+ * Generated by JsPbCodeGenerator.
5614
+ * @param {Array=} opt_data Optional initial data array, typically from a
5615
+ * server response, or constructed directly in Javascript. The array is used
5616
+ * in place and becomes part of the constructed object. It is not cloned.
5617
+ * If no data is provided, the constructed object will be empty, but still
5618
+ * valid.
5619
+ * @extends {jspb.Message}
5620
+ * @constructor
5621
+ */
5622
+ proto.clarifai.api.MetricData.MetricSample = function(opt_data) {
5623
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5624
+ };
5625
+ goog.inherits(proto.clarifai.api.MetricData.MetricSample, jspb.Message);
5626
+ if (goog.DEBUG && !COMPILED) {
5627
+ /**
5628
+ * @public
5629
+ * @override
5630
+ */
5631
+ proto.clarifai.api.MetricData.MetricSample.displayName = 'proto.clarifai.api.MetricData.MetricSample';
5632
+ }
5633
+ /**
5634
+ * Generated by JsPbCodeGenerator.
5635
+ * @param {Array=} opt_data Optional initial data array, typically from a
5636
+ * server response, or constructed directly in Javascript. The array is used
5637
+ * in place and becomes part of the constructed object. It is not cloned.
5638
+ * If no data is provided, the constructed object will be empty, but still
5639
+ * valid.
5640
+ * @extends {jspb.Message}
5641
+ * @constructor
5642
+ */
5643
+ proto.clarifai.api.MetricData.MatrixData = function(opt_data) {
5644
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricData.MatrixData.repeatedFields_, null);
5645
+ };
5646
+ goog.inherits(proto.clarifai.api.MetricData.MatrixData, jspb.Message);
5647
+ if (goog.DEBUG && !COMPILED) {
5648
+ /**
5649
+ * @public
5650
+ * @override
5651
+ */
5652
+ proto.clarifai.api.MetricData.MatrixData.displayName = 'proto.clarifai.api.MetricData.MatrixData';
5653
+ }
5654
+ /**
5655
+ * Generated by JsPbCodeGenerator.
5656
+ * @param {Array=} opt_data Optional initial data array, typically from a
5657
+ * server response, or constructed directly in Javascript. The array is used
5658
+ * in place and becomes part of the constructed object. It is not cloned.
5659
+ * If no data is provided, the constructed object will be empty, but still
5660
+ * valid.
5661
+ * @extends {jspb.Message}
5662
+ * @constructor
5663
+ */
5664
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries = function(opt_data) {
5665
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricData.MatrixData.TimeSeries.repeatedFields_, null);
5666
+ };
5667
+ goog.inherits(proto.clarifai.api.MetricData.MatrixData.TimeSeries, jspb.Message);
5668
+ if (goog.DEBUG && !COMPILED) {
5669
+ /**
5670
+ * @public
5671
+ * @override
5672
+ */
5673
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.displayName = 'proto.clarifai.api.MetricData.MatrixData.TimeSeries';
5674
+ }
5675
+ /**
5676
+ * Generated by JsPbCodeGenerator.
5677
+ * @param {Array=} opt_data Optional initial data array, typically from a
5678
+ * server response, or constructed directly in Javascript. The array is used
5679
+ * in place and becomes part of the constructed object. It is not cloned.
5680
+ * If no data is provided, the constructed object will be empty, but still
5681
+ * valid.
5682
+ * @extends {jspb.Message}
5683
+ * @constructor
5684
+ */
5685
+ proto.clarifai.api.MetricAggregate = function(opt_data) {
5686
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricAggregate.repeatedFields_, null);
5687
+ };
5688
+ goog.inherits(proto.clarifai.api.MetricAggregate, jspb.Message);
5689
+ if (goog.DEBUG && !COMPILED) {
5690
+ /**
5691
+ * @public
5692
+ * @override
5693
+ */
5694
+ proto.clarifai.api.MetricAggregate.displayName = 'proto.clarifai.api.MetricAggregate';
5695
+ }
5696
+ /**
5697
+ * Generated by JsPbCodeGenerator.
5698
+ * @param {Array=} opt_data Optional initial data array, typically from a
5699
+ * server response, or constructed directly in Javascript. The array is used
5700
+ * in place and becomes part of the constructed object. It is not cloned.
5701
+ * If no data is provided, the constructed object will be empty, but still
5702
+ * valid.
5703
+ * @extends {jspb.Message}
5704
+ * @constructor
5705
+ */
5706
+ proto.clarifai.api.MetricFilter = function(opt_data) {
5707
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.MetricFilter.oneofGroups_);
5708
+ };
5709
+ goog.inherits(proto.clarifai.api.MetricFilter, jspb.Message);
5710
+ if (goog.DEBUG && !COMPILED) {
5711
+ /**
5712
+ * @public
5713
+ * @override
5714
+ */
5715
+ proto.clarifai.api.MetricFilter.displayName = 'proto.clarifai.api.MetricFilter';
5716
+ }
5717
+ /**
5718
+ * Generated by JsPbCodeGenerator.
5719
+ * @param {Array=} opt_data Optional initial data array, typically from a
5720
+ * server response, or constructed directly in Javascript. The array is used
5721
+ * in place and becomes part of the constructed object. It is not cloned.
5722
+ * If no data is provided, the constructed object will be empty, but still
5723
+ * valid.
5724
+ * @extends {jspb.Message}
5725
+ * @constructor
5726
+ */
5727
+ proto.clarifai.api.MetricFilter.MultiValues = function(opt_data) {
5728
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricFilter.MultiValues.repeatedFields_, null);
5729
+ };
5730
+ goog.inherits(proto.clarifai.api.MetricFilter.MultiValues, jspb.Message);
5731
+ if (goog.DEBUG && !COMPILED) {
5732
+ /**
5733
+ * @public
5734
+ * @override
5735
+ */
5736
+ proto.clarifai.api.MetricFilter.MultiValues.displayName = 'proto.clarifai.api.MetricFilter.MultiValues';
5737
+ }
5738
+ /**
5739
+ * Generated by JsPbCodeGenerator.
5740
+ * @param {Array=} opt_data Optional initial data array, typically from a
5741
+ * server response, or constructed directly in Javascript. The array is used
5742
+ * in place and becomes part of the constructed object. It is not cloned.
5743
+ * If no data is provided, the constructed object will be empty, but still
5744
+ * valid.
5745
+ * @extends {jspb.Message}
5746
+ * @constructor
5747
+ */
5748
+ proto.clarifai.api.MetricSearchQuery = function(opt_data) {
5749
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MetricSearchQuery.repeatedFields_, null);
5750
+ };
5751
+ goog.inherits(proto.clarifai.api.MetricSearchQuery, jspb.Message);
5752
+ if (goog.DEBUG && !COMPILED) {
5753
+ /**
5754
+ * @public
5755
+ * @override
5756
+ */
5757
+ proto.clarifai.api.MetricSearchQuery.displayName = 'proto.clarifai.api.MetricSearchQuery';
5758
+ }
5534
5759
 
5535
5760
 
5536
5761
 
@@ -6229,33 +6454,6 @@ proto.clarifai.api.Annotation.prototype.hasWorker = function() {
6229
6454
 
6230
6455
 
6231
6456
 
6232
- /**
6233
- * Oneof group definitions for this message. Each group defines the field
6234
- * numbers belonging to that group. When of these fields' value is set, all
6235
- * other fields in the group are cleared. During deserialization, if multiple
6236
- * fields are encountered for a group, only the last value seen will be kept.
6237
- * @private {!Array<!Array<number>>}
6238
- * @const
6239
- */
6240
- proto.clarifai.api.Worker.oneofGroups_ = [[1,2,3]];
6241
-
6242
- /**
6243
- * @enum {number}
6244
- */
6245
- proto.clarifai.api.Worker.WorkerCase = {
6246
- WORKER_NOT_SET: 0,
6247
- USER: 1,
6248
- MODEL: 2,
6249
- WORKFLOW: 3
6250
- };
6251
-
6252
- /**
6253
- * @return {proto.clarifai.api.Worker.WorkerCase}
6254
- */
6255
- proto.clarifai.api.Worker.prototype.getWorkerCase = function() {
6256
- return /** @type {proto.clarifai.api.Worker.WorkerCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Worker.oneofGroups_[0]));
6257
- };
6258
-
6259
6457
 
6260
6458
 
6261
6459
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -6271,8 +6469,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6271
6469
  * http://goto/soy-param-migration
6272
6470
  * @return {!Object}
6273
6471
  */
6274
- proto.clarifai.api.Worker.prototype.toObject = function(opt_includeInstance) {
6275
- return proto.clarifai.api.Worker.toObject(opt_includeInstance, this);
6472
+ proto.clarifai.api.AnnotationTrack.prototype.toObject = function(opt_includeInstance) {
6473
+ return proto.clarifai.api.AnnotationTrack.toObject(opt_includeInstance, this);
6276
6474
  };
6277
6475
 
6278
6476
 
@@ -6281,15 +6479,23 @@ proto.clarifai.api.Worker.prototype.toObject = function(opt_includeInstance) {
6281
6479
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6282
6480
  * the JSPB instance for transitional soy proto support:
6283
6481
  * http://goto/soy-param-migration
6284
- * @param {!proto.clarifai.api.Worker} msg The msg instance to transform.
6482
+ * @param {!proto.clarifai.api.AnnotationTrack} msg The msg instance to transform.
6285
6483
  * @return {!Object}
6286
6484
  * @suppress {unusedLocalVariables} f is only used for nested messages
6287
6485
  */
6288
- proto.clarifai.api.Worker.toObject = function(includeInstance, msg) {
6486
+ proto.clarifai.api.AnnotationTrack.toObject = function(includeInstance, msg) {
6289
6487
  var f, obj = {
6290
- user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f),
6291
- model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
6292
- workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f)
6488
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
6489
+ appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
6490
+ inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
6491
+ concept: (f = msg.getConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f),
6492
+ userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
6493
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
6494
+ startFrame: jspb.Message.getFieldWithDefault(msg, 7, 0),
6495
+ endFrame: jspb.Message.getFieldWithDefault(msg, 8, 0),
6496
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
6497
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
6498
+ frameRate: jspb.Message.getFieldWithDefault(msg, 11, 0)
6293
6499
  };
6294
6500
 
6295
6501
  if (includeInstance) {
@@ -6303,23 +6509,23 @@ proto.clarifai.api.Worker.toObject = function(includeInstance, msg) {
6303
6509
  /**
6304
6510
  * Deserializes binary data (in protobuf wire format).
6305
6511
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
6306
- * @return {!proto.clarifai.api.Worker}
6512
+ * @return {!proto.clarifai.api.AnnotationTrack}
6307
6513
  */
6308
- proto.clarifai.api.Worker.deserializeBinary = function(bytes) {
6514
+ proto.clarifai.api.AnnotationTrack.deserializeBinary = function(bytes) {
6309
6515
  var reader = new jspb.BinaryReader(bytes);
6310
- var msg = new proto.clarifai.api.Worker;
6311
- return proto.clarifai.api.Worker.deserializeBinaryFromReader(msg, reader);
6516
+ var msg = new proto.clarifai.api.AnnotationTrack;
6517
+ return proto.clarifai.api.AnnotationTrack.deserializeBinaryFromReader(msg, reader);
6312
6518
  };
6313
6519
 
6314
6520
 
6315
6521
  /**
6316
6522
  * Deserializes binary data (in protobuf wire format) from the
6317
6523
  * given reader into the given message object.
6318
- * @param {!proto.clarifai.api.Worker} msg The message object to deserialize into.
6524
+ * @param {!proto.clarifai.api.AnnotationTrack} msg The message object to deserialize into.
6319
6525
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6320
- * @return {!proto.clarifai.api.Worker}
6526
+ * @return {!proto.clarifai.api.AnnotationTrack}
6321
6527
  */
6322
- proto.clarifai.api.Worker.deserializeBinaryFromReader = function(msg, reader) {
6528
+ proto.clarifai.api.AnnotationTrack.deserializeBinaryFromReader = function(msg, reader) {
6323
6529
  while (reader.nextField()) {
6324
6530
  if (reader.isEndGroup()) {
6325
6531
  break;
@@ -6327,19 +6533,52 @@ proto.clarifai.api.Worker.deserializeBinaryFromReader = function(msg, reader) {
6327
6533
  var field = reader.getFieldNumber();
6328
6534
  switch (field) {
6329
6535
  case 1:
6330
- var value = new proto.clarifai.api.User;
6331
- reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader);
6332
- msg.setUser(value);
6536
+ var value = /** @type {string} */ (reader.readString());
6537
+ msg.setId(value);
6333
6538
  break;
6334
6539
  case 2:
6335
- var value = new proto.clarifai.api.Model;
6336
- reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
6337
- msg.setModel(value);
6540
+ var value = /** @type {string} */ (reader.readString());
6541
+ msg.setAppId(value);
6338
6542
  break;
6339
6543
  case 3:
6340
- var value = new proto.clarifai.api.Workflow;
6341
- reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
6342
- msg.setWorkflow(value);
6544
+ var value = /** @type {string} */ (reader.readString());
6545
+ msg.setInputId(value);
6546
+ break;
6547
+ case 4:
6548
+ var value = new proto.clarifai.api.Concept;
6549
+ reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader);
6550
+ msg.setConcept(value);
6551
+ break;
6552
+ case 5:
6553
+ var value = /** @type {string} */ (reader.readString());
6554
+ msg.setUserId(value);
6555
+ break;
6556
+ case 6:
6557
+ var value = new proto_clarifai_api_status_status_pb.Status;
6558
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
6559
+ msg.setStatus(value);
6560
+ break;
6561
+ case 7:
6562
+ var value = /** @type {number} */ (reader.readUint32());
6563
+ msg.setStartFrame(value);
6564
+ break;
6565
+ case 8:
6566
+ var value = /** @type {number} */ (reader.readUint32());
6567
+ msg.setEndFrame(value);
6568
+ break;
6569
+ case 9:
6570
+ var value = new google_protobuf_timestamp_pb.Timestamp;
6571
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
6572
+ msg.setCreatedAt(value);
6573
+ break;
6574
+ case 10:
6575
+ var value = new google_protobuf_timestamp_pb.Timestamp;
6576
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
6577
+ msg.setModifiedAt(value);
6578
+ break;
6579
+ case 11:
6580
+ var value = /** @type {number} */ (reader.readUint32());
6581
+ msg.setFrameRate(value);
6343
6582
  break;
6344
6583
  default:
6345
6584
  reader.skipField();
@@ -6354,9 +6593,9 @@ proto.clarifai.api.Worker.deserializeBinaryFromReader = function(msg, reader) {
6354
6593
  * Serializes the message to binary data (in protobuf wire format).
6355
6594
  * @return {!Uint8Array}
6356
6595
  */
6357
- proto.clarifai.api.Worker.prototype.serializeBinary = function() {
6596
+ proto.clarifai.api.AnnotationTrack.prototype.serializeBinary = function() {
6358
6597
  var writer = new jspb.BinaryWriter();
6359
- proto.clarifai.api.Worker.serializeBinaryToWriter(this, writer);
6598
+ proto.clarifai.api.AnnotationTrack.serializeBinaryToWriter(this, writer);
6360
6599
  return writer.getResultBuffer();
6361
6600
  };
6362
6601
 
@@ -6364,101 +6603,175 @@ proto.clarifai.api.Worker.prototype.serializeBinary = function() {
6364
6603
  /**
6365
6604
  * Serializes the given message to binary data (in protobuf wire
6366
6605
  * format), writing to the given BinaryWriter.
6367
- * @param {!proto.clarifai.api.Worker} message
6606
+ * @param {!proto.clarifai.api.AnnotationTrack} message
6368
6607
  * @param {!jspb.BinaryWriter} writer
6369
6608
  * @suppress {unusedLocalVariables} f is only used for nested messages
6370
6609
  */
6371
- proto.clarifai.api.Worker.serializeBinaryToWriter = function(message, writer) {
6610
+ proto.clarifai.api.AnnotationTrack.serializeBinaryToWriter = function(message, writer) {
6372
6611
  var f = undefined;
6373
- f = message.getUser();
6612
+ f = message.getId();
6613
+ if (f.length > 0) {
6614
+ writer.writeString(
6615
+ 1,
6616
+ f
6617
+ );
6618
+ }
6619
+ f = message.getAppId();
6620
+ if (f.length > 0) {
6621
+ writer.writeString(
6622
+ 2,
6623
+ f
6624
+ );
6625
+ }
6626
+ f = message.getInputId();
6627
+ if (f.length > 0) {
6628
+ writer.writeString(
6629
+ 3,
6630
+ f
6631
+ );
6632
+ }
6633
+ f = message.getConcept();
6374
6634
  if (f != null) {
6375
6635
  writer.writeMessage(
6376
- 1,
6636
+ 4,
6377
6637
  f,
6378
- proto.clarifai.api.User.serializeBinaryToWriter
6638
+ proto.clarifai.api.Concept.serializeBinaryToWriter
6379
6639
  );
6380
6640
  }
6381
- f = message.getModel();
6641
+ f = message.getUserId();
6642
+ if (f.length > 0) {
6643
+ writer.writeString(
6644
+ 5,
6645
+ f
6646
+ );
6647
+ }
6648
+ f = message.getStatus();
6382
6649
  if (f != null) {
6383
6650
  writer.writeMessage(
6384
- 2,
6651
+ 6,
6385
6652
  f,
6386
- proto.clarifai.api.Model.serializeBinaryToWriter
6653
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
6387
6654
  );
6388
6655
  }
6389
- f = message.getWorkflow();
6656
+ f = message.getStartFrame();
6657
+ if (f !== 0) {
6658
+ writer.writeUint32(
6659
+ 7,
6660
+ f
6661
+ );
6662
+ }
6663
+ f = message.getEndFrame();
6664
+ if (f !== 0) {
6665
+ writer.writeUint32(
6666
+ 8,
6667
+ f
6668
+ );
6669
+ }
6670
+ f = message.getCreatedAt();
6390
6671
  if (f != null) {
6391
6672
  writer.writeMessage(
6392
- 3,
6673
+ 9,
6393
6674
  f,
6394
- proto.clarifai.api.Workflow.serializeBinaryToWriter
6675
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
6676
+ );
6677
+ }
6678
+ f = message.getModifiedAt();
6679
+ if (f != null) {
6680
+ writer.writeMessage(
6681
+ 10,
6682
+ f,
6683
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
6684
+ );
6685
+ }
6686
+ f = message.getFrameRate();
6687
+ if (f !== 0) {
6688
+ writer.writeUint32(
6689
+ 11,
6690
+ f
6395
6691
  );
6396
6692
  }
6397
6693
  };
6398
6694
 
6399
6695
 
6400
6696
  /**
6401
- * optional User user = 1;
6402
- * @return {?proto.clarifai.api.User}
6697
+ * optional string id = 1;
6698
+ * @return {string}
6403
6699
  */
6404
- proto.clarifai.api.Worker.prototype.getUser = function() {
6405
- return /** @type{?proto.clarifai.api.User} */ (
6406
- jspb.Message.getWrapperField(this, proto.clarifai.api.User, 1));
6700
+ proto.clarifai.api.AnnotationTrack.prototype.getId = function() {
6701
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6407
6702
  };
6408
6703
 
6409
6704
 
6410
6705
  /**
6411
- * @param {?proto.clarifai.api.User|undefined} value
6412
- * @return {!proto.clarifai.api.Worker} returns this
6413
- */
6414
- proto.clarifai.api.Worker.prototype.setUser = function(value) {
6415
- return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.Worker.oneofGroups_[0], value);
6706
+ * @param {string} value
6707
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6708
+ */
6709
+ proto.clarifai.api.AnnotationTrack.prototype.setId = function(value) {
6710
+ return jspb.Message.setProto3StringField(this, 1, value);
6416
6711
  };
6417
6712
 
6418
6713
 
6419
6714
  /**
6420
- * Clears the message field making it undefined.
6421
- * @return {!proto.clarifai.api.Worker} returns this
6715
+ * optional string app_id = 2;
6716
+ * @return {string}
6422
6717
  */
6423
- proto.clarifai.api.Worker.prototype.clearUser = function() {
6424
- return this.setUser(undefined);
6718
+ proto.clarifai.api.AnnotationTrack.prototype.getAppId = function() {
6719
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6425
6720
  };
6426
6721
 
6427
6722
 
6428
6723
  /**
6429
- * Returns whether this field is set.
6430
- * @return {boolean}
6724
+ * @param {string} value
6725
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6431
6726
  */
6432
- proto.clarifai.api.Worker.prototype.hasUser = function() {
6433
- return jspb.Message.getField(this, 1) != null;
6727
+ proto.clarifai.api.AnnotationTrack.prototype.setAppId = function(value) {
6728
+ return jspb.Message.setProto3StringField(this, 2, value);
6434
6729
  };
6435
6730
 
6436
6731
 
6437
6732
  /**
6438
- * optional Model model = 2;
6439
- * @return {?proto.clarifai.api.Model}
6733
+ * optional string input_id = 3;
6734
+ * @return {string}
6440
6735
  */
6441
- proto.clarifai.api.Worker.prototype.getModel = function() {
6442
- return /** @type{?proto.clarifai.api.Model} */ (
6443
- jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 2));
6736
+ proto.clarifai.api.AnnotationTrack.prototype.getInputId = function() {
6737
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6444
6738
  };
6445
6739
 
6446
6740
 
6447
6741
  /**
6448
- * @param {?proto.clarifai.api.Model|undefined} value
6449
- * @return {!proto.clarifai.api.Worker} returns this
6742
+ * @param {string} value
6743
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6744
+ */
6745
+ proto.clarifai.api.AnnotationTrack.prototype.setInputId = function(value) {
6746
+ return jspb.Message.setProto3StringField(this, 3, value);
6747
+ };
6748
+
6749
+
6750
+ /**
6751
+ * optional Concept concept = 4;
6752
+ * @return {?proto.clarifai.api.Concept}
6753
+ */
6754
+ proto.clarifai.api.AnnotationTrack.prototype.getConcept = function() {
6755
+ return /** @type{?proto.clarifai.api.Concept} */ (
6756
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 4));
6757
+ };
6758
+
6759
+
6760
+ /**
6761
+ * @param {?proto.clarifai.api.Concept|undefined} value
6762
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6450
6763
  */
6451
- proto.clarifai.api.Worker.prototype.setModel = function(value) {
6452
- return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.Worker.oneofGroups_[0], value);
6764
+ proto.clarifai.api.AnnotationTrack.prototype.setConcept = function(value) {
6765
+ return jspb.Message.setWrapperField(this, 4, value);
6453
6766
  };
6454
6767
 
6455
6768
 
6456
6769
  /**
6457
6770
  * Clears the message field making it undefined.
6458
- * @return {!proto.clarifai.api.Worker} returns this
6771
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6459
6772
  */
6460
- proto.clarifai.api.Worker.prototype.clearModel = function() {
6461
- return this.setModel(undefined);
6773
+ proto.clarifai.api.AnnotationTrack.prototype.clearConcept = function() {
6774
+ return this.setConcept(undefined);
6462
6775
  };
6463
6776
 
6464
6777
 
@@ -6466,36 +6779,54 @@ proto.clarifai.api.Worker.prototype.clearModel = function() {
6466
6779
  * Returns whether this field is set.
6467
6780
  * @return {boolean}
6468
6781
  */
6469
- proto.clarifai.api.Worker.prototype.hasModel = function() {
6470
- return jspb.Message.getField(this, 2) != null;
6782
+ proto.clarifai.api.AnnotationTrack.prototype.hasConcept = function() {
6783
+ return jspb.Message.getField(this, 4) != null;
6471
6784
  };
6472
6785
 
6473
6786
 
6474
6787
  /**
6475
- * optional Workflow workflow = 3;
6476
- * @return {?proto.clarifai.api.Workflow}
6788
+ * optional string user_id = 5;
6789
+ * @return {string}
6477
6790
  */
6478
- proto.clarifai.api.Worker.prototype.getWorkflow = function() {
6479
- return /** @type{?proto.clarifai.api.Workflow} */ (
6480
- jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 3));
6791
+ proto.clarifai.api.AnnotationTrack.prototype.getUserId = function() {
6792
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
6481
6793
  };
6482
6794
 
6483
6795
 
6484
6796
  /**
6485
- * @param {?proto.clarifai.api.Workflow|undefined} value
6486
- * @return {!proto.clarifai.api.Worker} returns this
6797
+ * @param {string} value
6798
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6799
+ */
6800
+ proto.clarifai.api.AnnotationTrack.prototype.setUserId = function(value) {
6801
+ return jspb.Message.setProto3StringField(this, 5, value);
6802
+ };
6803
+
6804
+
6805
+ /**
6806
+ * optional status.Status status = 6;
6807
+ * @return {?proto.clarifai.api.status.Status}
6808
+ */
6809
+ proto.clarifai.api.AnnotationTrack.prototype.getStatus = function() {
6810
+ return /** @type{?proto.clarifai.api.status.Status} */ (
6811
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 6));
6812
+ };
6813
+
6814
+
6815
+ /**
6816
+ * @param {?proto.clarifai.api.status.Status|undefined} value
6817
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6487
6818
  */
6488
- proto.clarifai.api.Worker.prototype.setWorkflow = function(value) {
6489
- return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.Worker.oneofGroups_[0], value);
6819
+ proto.clarifai.api.AnnotationTrack.prototype.setStatus = function(value) {
6820
+ return jspb.Message.setWrapperField(this, 6, value);
6490
6821
  };
6491
6822
 
6492
6823
 
6493
6824
  /**
6494
6825
  * Clears the message field making it undefined.
6495
- * @return {!proto.clarifai.api.Worker} returns this
6826
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6496
6827
  */
6497
- proto.clarifai.api.Worker.prototype.clearWorkflow = function() {
6498
- return this.setWorkflow(undefined);
6828
+ proto.clarifai.api.AnnotationTrack.prototype.clearStatus = function() {
6829
+ return this.setStatus(undefined);
6499
6830
  };
6500
6831
 
6501
6832
 
@@ -6503,88 +6834,496 @@ proto.clarifai.api.Worker.prototype.clearWorkflow = function() {
6503
6834
  * Returns whether this field is set.
6504
6835
  * @return {boolean}
6505
6836
  */
6506
- proto.clarifai.api.Worker.prototype.hasWorkflow = function() {
6507
- return jspb.Message.getField(this, 3) != null;
6837
+ proto.clarifai.api.AnnotationTrack.prototype.hasStatus = function() {
6838
+ return jspb.Message.getField(this, 6) != null;
6508
6839
  };
6509
6840
 
6510
6841
 
6511
-
6512
-
6513
-
6514
- if (jspb.Message.GENERATE_TO_OBJECT) {
6515
6842
  /**
6516
- * Creates an object representation of this proto.
6517
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
6518
- * Optional fields that are not set will be set to undefined.
6519
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6520
- * For the list of reserved names please see:
6521
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6522
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6523
- * JSPB instance for transitional soy proto support:
6524
- * http://goto/soy-param-migration
6525
- * @return {!Object}
6843
+ * optional uint32 start_frame = 7;
6844
+ * @return {number}
6526
6845
  */
6527
- proto.clarifai.api.App.prototype.toObject = function(opt_includeInstance) {
6528
- return proto.clarifai.api.App.toObject(opt_includeInstance, this);
6846
+ proto.clarifai.api.AnnotationTrack.prototype.getStartFrame = function() {
6847
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
6529
6848
  };
6530
6849
 
6531
6850
 
6532
6851
  /**
6533
- * Static version of the {@see toObject} method.
6534
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6535
- * the JSPB instance for transitional soy proto support:
6536
- * http://goto/soy-param-migration
6537
- * @param {!proto.clarifai.api.App} msg The msg instance to transform.
6538
- * @return {!Object}
6539
- * @suppress {unusedLocalVariables} f is only used for nested messages
6852
+ * @param {number} value
6853
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6540
6854
  */
6541
- proto.clarifai.api.App.toObject = function(includeInstance, msg) {
6542
- var f, obj = {
6543
- id: jspb.Message.getFieldWithDefault(msg, 1, ""),
6544
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
6545
- defaultLanguage: jspb.Message.getFieldWithDefault(msg, 3, ""),
6546
- defaultWorkflowId: jspb.Message.getFieldWithDefault(msg, 4, ""),
6547
- defaultWorkflow: (f = msg.getDefaultWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
6548
- userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
6549
- createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
6550
- modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
6551
- legalConsentStatus: jspb.Message.getFieldWithDefault(msg, 7, 0),
6552
- metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
6553
- description: jspb.Message.getFieldWithDefault(msg, 14, ""),
6554
- sampleMs: jspb.Message.getFieldWithDefault(msg, 15, 0),
6555
- visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
6556
- dataTierId: jspb.Message.getFieldWithDefault(msg, 18, ""),
6557
- isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 19, false),
6558
- starCount: jspb.Message.getFieldWithDefault(msg, 20, 0),
6559
- notes: jspb.Message.getFieldWithDefault(msg, 21, ""),
6560
- image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f),
6561
- isTemplate: (f = msg.getIsTemplate()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
6562
- extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.AppExtraInfo.toObject(includeInstance, f),
6563
- embeddingsStorage: jspb.Message.getFieldWithDefault(msg, 26, 0)
6564
- };
6565
-
6566
- if (includeInstance) {
6567
- obj.$jspbMessageInstance = msg;
6568
- }
6569
- return obj;
6855
+ proto.clarifai.api.AnnotationTrack.prototype.setStartFrame = function(value) {
6856
+ return jspb.Message.setProto3IntField(this, 7, value);
6570
6857
  };
6571
- }
6572
6858
 
6573
6859
 
6574
6860
  /**
6575
- * Deserializes binary data (in protobuf wire format).
6576
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
6577
- * @return {!proto.clarifai.api.App}
6861
+ * optional uint32 end_frame = 8;
6862
+ * @return {number}
6578
6863
  */
6579
- proto.clarifai.api.App.deserializeBinary = function(bytes) {
6580
- var reader = new jspb.BinaryReader(bytes);
6581
- var msg = new proto.clarifai.api.App;
6582
- return proto.clarifai.api.App.deserializeBinaryFromReader(msg, reader);
6864
+ proto.clarifai.api.AnnotationTrack.prototype.getEndFrame = function() {
6865
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
6583
6866
  };
6584
6867
 
6585
6868
 
6586
6869
  /**
6587
- * Deserializes binary data (in protobuf wire format) from the
6870
+ * @param {number} value
6871
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6872
+ */
6873
+ proto.clarifai.api.AnnotationTrack.prototype.setEndFrame = function(value) {
6874
+ return jspb.Message.setProto3IntField(this, 8, value);
6875
+ };
6876
+
6877
+
6878
+ /**
6879
+ * optional google.protobuf.Timestamp created_at = 9;
6880
+ * @return {?proto.google.protobuf.Timestamp}
6881
+ */
6882
+ proto.clarifai.api.AnnotationTrack.prototype.getCreatedAt = function() {
6883
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
6884
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
6885
+ };
6886
+
6887
+
6888
+ /**
6889
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
6890
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6891
+ */
6892
+ proto.clarifai.api.AnnotationTrack.prototype.setCreatedAt = function(value) {
6893
+ return jspb.Message.setWrapperField(this, 9, value);
6894
+ };
6895
+
6896
+
6897
+ /**
6898
+ * Clears the message field making it undefined.
6899
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6900
+ */
6901
+ proto.clarifai.api.AnnotationTrack.prototype.clearCreatedAt = function() {
6902
+ return this.setCreatedAt(undefined);
6903
+ };
6904
+
6905
+
6906
+ /**
6907
+ * Returns whether this field is set.
6908
+ * @return {boolean}
6909
+ */
6910
+ proto.clarifai.api.AnnotationTrack.prototype.hasCreatedAt = function() {
6911
+ return jspb.Message.getField(this, 9) != null;
6912
+ };
6913
+
6914
+
6915
+ /**
6916
+ * optional google.protobuf.Timestamp modified_at = 10;
6917
+ * @return {?proto.google.protobuf.Timestamp}
6918
+ */
6919
+ proto.clarifai.api.AnnotationTrack.prototype.getModifiedAt = function() {
6920
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
6921
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
6922
+ };
6923
+
6924
+
6925
+ /**
6926
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
6927
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6928
+ */
6929
+ proto.clarifai.api.AnnotationTrack.prototype.setModifiedAt = function(value) {
6930
+ return jspb.Message.setWrapperField(this, 10, value);
6931
+ };
6932
+
6933
+
6934
+ /**
6935
+ * Clears the message field making it undefined.
6936
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6937
+ */
6938
+ proto.clarifai.api.AnnotationTrack.prototype.clearModifiedAt = function() {
6939
+ return this.setModifiedAt(undefined);
6940
+ };
6941
+
6942
+
6943
+ /**
6944
+ * Returns whether this field is set.
6945
+ * @return {boolean}
6946
+ */
6947
+ proto.clarifai.api.AnnotationTrack.prototype.hasModifiedAt = function() {
6948
+ return jspb.Message.getField(this, 10) != null;
6949
+ };
6950
+
6951
+
6952
+ /**
6953
+ * optional uint32 frame_rate = 11;
6954
+ * @return {number}
6955
+ */
6956
+ proto.clarifai.api.AnnotationTrack.prototype.getFrameRate = function() {
6957
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
6958
+ };
6959
+
6960
+
6961
+ /**
6962
+ * @param {number} value
6963
+ * @return {!proto.clarifai.api.AnnotationTrack} returns this
6964
+ */
6965
+ proto.clarifai.api.AnnotationTrack.prototype.setFrameRate = function(value) {
6966
+ return jspb.Message.setProto3IntField(this, 11, value);
6967
+ };
6968
+
6969
+
6970
+
6971
+ /**
6972
+ * Oneof group definitions for this message. Each group defines the field
6973
+ * numbers belonging to that group. When of these fields' value is set, all
6974
+ * other fields in the group are cleared. During deserialization, if multiple
6975
+ * fields are encountered for a group, only the last value seen will be kept.
6976
+ * @private {!Array<!Array<number>>}
6977
+ * @const
6978
+ */
6979
+ proto.clarifai.api.Worker.oneofGroups_ = [[1,2,3]];
6980
+
6981
+ /**
6982
+ * @enum {number}
6983
+ */
6984
+ proto.clarifai.api.Worker.WorkerCase = {
6985
+ WORKER_NOT_SET: 0,
6986
+ USER: 1,
6987
+ MODEL: 2,
6988
+ WORKFLOW: 3
6989
+ };
6990
+
6991
+ /**
6992
+ * @return {proto.clarifai.api.Worker.WorkerCase}
6993
+ */
6994
+ proto.clarifai.api.Worker.prototype.getWorkerCase = function() {
6995
+ return /** @type {proto.clarifai.api.Worker.WorkerCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Worker.oneofGroups_[0]));
6996
+ };
6997
+
6998
+
6999
+
7000
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7001
+ /**
7002
+ * Creates an object representation of this proto.
7003
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7004
+ * Optional fields that are not set will be set to undefined.
7005
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7006
+ * For the list of reserved names please see:
7007
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7008
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7009
+ * JSPB instance for transitional soy proto support:
7010
+ * http://goto/soy-param-migration
7011
+ * @return {!Object}
7012
+ */
7013
+ proto.clarifai.api.Worker.prototype.toObject = function(opt_includeInstance) {
7014
+ return proto.clarifai.api.Worker.toObject(opt_includeInstance, this);
7015
+ };
7016
+
7017
+
7018
+ /**
7019
+ * Static version of the {@see toObject} method.
7020
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7021
+ * the JSPB instance for transitional soy proto support:
7022
+ * http://goto/soy-param-migration
7023
+ * @param {!proto.clarifai.api.Worker} msg The msg instance to transform.
7024
+ * @return {!Object}
7025
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7026
+ */
7027
+ proto.clarifai.api.Worker.toObject = function(includeInstance, msg) {
7028
+ var f, obj = {
7029
+ user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f),
7030
+ model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
7031
+ workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f)
7032
+ };
7033
+
7034
+ if (includeInstance) {
7035
+ obj.$jspbMessageInstance = msg;
7036
+ }
7037
+ return obj;
7038
+ };
7039
+ }
7040
+
7041
+
7042
+ /**
7043
+ * Deserializes binary data (in protobuf wire format).
7044
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7045
+ * @return {!proto.clarifai.api.Worker}
7046
+ */
7047
+ proto.clarifai.api.Worker.deserializeBinary = function(bytes) {
7048
+ var reader = new jspb.BinaryReader(bytes);
7049
+ var msg = new proto.clarifai.api.Worker;
7050
+ return proto.clarifai.api.Worker.deserializeBinaryFromReader(msg, reader);
7051
+ };
7052
+
7053
+
7054
+ /**
7055
+ * Deserializes binary data (in protobuf wire format) from the
7056
+ * given reader into the given message object.
7057
+ * @param {!proto.clarifai.api.Worker} msg The message object to deserialize into.
7058
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7059
+ * @return {!proto.clarifai.api.Worker}
7060
+ */
7061
+ proto.clarifai.api.Worker.deserializeBinaryFromReader = function(msg, reader) {
7062
+ while (reader.nextField()) {
7063
+ if (reader.isEndGroup()) {
7064
+ break;
7065
+ }
7066
+ var field = reader.getFieldNumber();
7067
+ switch (field) {
7068
+ case 1:
7069
+ var value = new proto.clarifai.api.User;
7070
+ reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader);
7071
+ msg.setUser(value);
7072
+ break;
7073
+ case 2:
7074
+ var value = new proto.clarifai.api.Model;
7075
+ reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
7076
+ msg.setModel(value);
7077
+ break;
7078
+ case 3:
7079
+ var value = new proto.clarifai.api.Workflow;
7080
+ reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
7081
+ msg.setWorkflow(value);
7082
+ break;
7083
+ default:
7084
+ reader.skipField();
7085
+ break;
7086
+ }
7087
+ }
7088
+ return msg;
7089
+ };
7090
+
7091
+
7092
+ /**
7093
+ * Serializes the message to binary data (in protobuf wire format).
7094
+ * @return {!Uint8Array}
7095
+ */
7096
+ proto.clarifai.api.Worker.prototype.serializeBinary = function() {
7097
+ var writer = new jspb.BinaryWriter();
7098
+ proto.clarifai.api.Worker.serializeBinaryToWriter(this, writer);
7099
+ return writer.getResultBuffer();
7100
+ };
7101
+
7102
+
7103
+ /**
7104
+ * Serializes the given message to binary data (in protobuf wire
7105
+ * format), writing to the given BinaryWriter.
7106
+ * @param {!proto.clarifai.api.Worker} message
7107
+ * @param {!jspb.BinaryWriter} writer
7108
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7109
+ */
7110
+ proto.clarifai.api.Worker.serializeBinaryToWriter = function(message, writer) {
7111
+ var f = undefined;
7112
+ f = message.getUser();
7113
+ if (f != null) {
7114
+ writer.writeMessage(
7115
+ 1,
7116
+ f,
7117
+ proto.clarifai.api.User.serializeBinaryToWriter
7118
+ );
7119
+ }
7120
+ f = message.getModel();
7121
+ if (f != null) {
7122
+ writer.writeMessage(
7123
+ 2,
7124
+ f,
7125
+ proto.clarifai.api.Model.serializeBinaryToWriter
7126
+ );
7127
+ }
7128
+ f = message.getWorkflow();
7129
+ if (f != null) {
7130
+ writer.writeMessage(
7131
+ 3,
7132
+ f,
7133
+ proto.clarifai.api.Workflow.serializeBinaryToWriter
7134
+ );
7135
+ }
7136
+ };
7137
+
7138
+
7139
+ /**
7140
+ * optional User user = 1;
7141
+ * @return {?proto.clarifai.api.User}
7142
+ */
7143
+ proto.clarifai.api.Worker.prototype.getUser = function() {
7144
+ return /** @type{?proto.clarifai.api.User} */ (
7145
+ jspb.Message.getWrapperField(this, proto.clarifai.api.User, 1));
7146
+ };
7147
+
7148
+
7149
+ /**
7150
+ * @param {?proto.clarifai.api.User|undefined} value
7151
+ * @return {!proto.clarifai.api.Worker} returns this
7152
+ */
7153
+ proto.clarifai.api.Worker.prototype.setUser = function(value) {
7154
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.Worker.oneofGroups_[0], value);
7155
+ };
7156
+
7157
+
7158
+ /**
7159
+ * Clears the message field making it undefined.
7160
+ * @return {!proto.clarifai.api.Worker} returns this
7161
+ */
7162
+ proto.clarifai.api.Worker.prototype.clearUser = function() {
7163
+ return this.setUser(undefined);
7164
+ };
7165
+
7166
+
7167
+ /**
7168
+ * Returns whether this field is set.
7169
+ * @return {boolean}
7170
+ */
7171
+ proto.clarifai.api.Worker.prototype.hasUser = function() {
7172
+ return jspb.Message.getField(this, 1) != null;
7173
+ };
7174
+
7175
+
7176
+ /**
7177
+ * optional Model model = 2;
7178
+ * @return {?proto.clarifai.api.Model}
7179
+ */
7180
+ proto.clarifai.api.Worker.prototype.getModel = function() {
7181
+ return /** @type{?proto.clarifai.api.Model} */ (
7182
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 2));
7183
+ };
7184
+
7185
+
7186
+ /**
7187
+ * @param {?proto.clarifai.api.Model|undefined} value
7188
+ * @return {!proto.clarifai.api.Worker} returns this
7189
+ */
7190
+ proto.clarifai.api.Worker.prototype.setModel = function(value) {
7191
+ return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.Worker.oneofGroups_[0], value);
7192
+ };
7193
+
7194
+
7195
+ /**
7196
+ * Clears the message field making it undefined.
7197
+ * @return {!proto.clarifai.api.Worker} returns this
7198
+ */
7199
+ proto.clarifai.api.Worker.prototype.clearModel = function() {
7200
+ return this.setModel(undefined);
7201
+ };
7202
+
7203
+
7204
+ /**
7205
+ * Returns whether this field is set.
7206
+ * @return {boolean}
7207
+ */
7208
+ proto.clarifai.api.Worker.prototype.hasModel = function() {
7209
+ return jspb.Message.getField(this, 2) != null;
7210
+ };
7211
+
7212
+
7213
+ /**
7214
+ * optional Workflow workflow = 3;
7215
+ * @return {?proto.clarifai.api.Workflow}
7216
+ */
7217
+ proto.clarifai.api.Worker.prototype.getWorkflow = function() {
7218
+ return /** @type{?proto.clarifai.api.Workflow} */ (
7219
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 3));
7220
+ };
7221
+
7222
+
7223
+ /**
7224
+ * @param {?proto.clarifai.api.Workflow|undefined} value
7225
+ * @return {!proto.clarifai.api.Worker} returns this
7226
+ */
7227
+ proto.clarifai.api.Worker.prototype.setWorkflow = function(value) {
7228
+ return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.Worker.oneofGroups_[0], value);
7229
+ };
7230
+
7231
+
7232
+ /**
7233
+ * Clears the message field making it undefined.
7234
+ * @return {!proto.clarifai.api.Worker} returns this
7235
+ */
7236
+ proto.clarifai.api.Worker.prototype.clearWorkflow = function() {
7237
+ return this.setWorkflow(undefined);
7238
+ };
7239
+
7240
+
7241
+ /**
7242
+ * Returns whether this field is set.
7243
+ * @return {boolean}
7244
+ */
7245
+ proto.clarifai.api.Worker.prototype.hasWorkflow = function() {
7246
+ return jspb.Message.getField(this, 3) != null;
7247
+ };
7248
+
7249
+
7250
+
7251
+
7252
+
7253
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7254
+ /**
7255
+ * Creates an object representation of this proto.
7256
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7257
+ * Optional fields that are not set will be set to undefined.
7258
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7259
+ * For the list of reserved names please see:
7260
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7261
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7262
+ * JSPB instance for transitional soy proto support:
7263
+ * http://goto/soy-param-migration
7264
+ * @return {!Object}
7265
+ */
7266
+ proto.clarifai.api.App.prototype.toObject = function(opt_includeInstance) {
7267
+ return proto.clarifai.api.App.toObject(opt_includeInstance, this);
7268
+ };
7269
+
7270
+
7271
+ /**
7272
+ * Static version of the {@see toObject} method.
7273
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7274
+ * the JSPB instance for transitional soy proto support:
7275
+ * http://goto/soy-param-migration
7276
+ * @param {!proto.clarifai.api.App} msg The msg instance to transform.
7277
+ * @return {!Object}
7278
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7279
+ */
7280
+ proto.clarifai.api.App.toObject = function(includeInstance, msg) {
7281
+ var f, obj = {
7282
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
7283
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
7284
+ defaultLanguage: jspb.Message.getFieldWithDefault(msg, 3, ""),
7285
+ defaultWorkflowId: jspb.Message.getFieldWithDefault(msg, 4, ""),
7286
+ defaultWorkflow: (f = msg.getDefaultWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
7287
+ userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
7288
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
7289
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
7290
+ legalConsentStatus: jspb.Message.getFieldWithDefault(msg, 7, 0),
7291
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
7292
+ description: jspb.Message.getFieldWithDefault(msg, 14, ""),
7293
+ sampleMs: jspb.Message.getFieldWithDefault(msg, 15, 0),
7294
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
7295
+ dataTierId: jspb.Message.getFieldWithDefault(msg, 18, ""),
7296
+ isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 19, false),
7297
+ starCount: jspb.Message.getFieldWithDefault(msg, 20, 0),
7298
+ notes: jspb.Message.getFieldWithDefault(msg, 21, ""),
7299
+ image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f),
7300
+ isTemplate: (f = msg.getIsTemplate()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
7301
+ extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.AppExtraInfo.toObject(includeInstance, f),
7302
+ embeddingsStorage: jspb.Message.getFieldWithDefault(msg, 26, 0)
7303
+ };
7304
+
7305
+ if (includeInstance) {
7306
+ obj.$jspbMessageInstance = msg;
7307
+ }
7308
+ return obj;
7309
+ };
7310
+ }
7311
+
7312
+
7313
+ /**
7314
+ * Deserializes binary data (in protobuf wire format).
7315
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7316
+ * @return {!proto.clarifai.api.App}
7317
+ */
7318
+ proto.clarifai.api.App.deserializeBinary = function(bytes) {
7319
+ var reader = new jspb.BinaryReader(bytes);
7320
+ var msg = new proto.clarifai.api.App;
7321
+ return proto.clarifai.api.App.deserializeBinaryFromReader(msg, reader);
7322
+ };
7323
+
7324
+
7325
+ /**
7326
+ * Deserializes binary data (in protobuf wire format) from the
6588
7327
  * given reader into the given message object.
6589
7328
  * @param {!proto.clarifai.api.App} msg The message object to deserialize into.
6590
7329
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
@@ -30955,7 +31694,8 @@ proto.clarifai.api.ModelTypeField.ModelTypeFieldType = {
30955
31694
  DATASET: 19,
30956
31695
  DATASET_VERSION: 20,
30957
31696
  ENCRYPTED_STRING: 21,
30958
- CHECKPOINT_MODEL: 22
31697
+ CHECKPOINT_MODEL: 22,
31698
+ ARRAY_OF_SECRETS: 23
30959
31699
  };
30960
31700
 
30961
31701
  /**
@@ -77357,6 +78097,7 @@ proto.clarifai.api.ComputeSourceMetadata.toObject = function(includeInstance, ms
77357
78097
  modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
77358
78098
  modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
77359
78099
  workflowId: jspb.Message.getFieldWithDefault(msg, 4, ""),
78100
+ computeClusterUserId: jspb.Message.getFieldWithDefault(msg, 14, ""),
77360
78101
  computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
77361
78102
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
77362
78103
  runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
@@ -77418,6 +78159,10 @@ proto.clarifai.api.ComputeSourceMetadata.deserializeBinaryFromReader = function(
77418
78159
  var value = /** @type {string} */ (reader.readString());
77419
78160
  msg.setWorkflowId(value);
77420
78161
  break;
78162
+ case 14:
78163
+ var value = /** @type {string} */ (reader.readString());
78164
+ msg.setComputeClusterUserId(value);
78165
+ break;
77421
78166
  case 6:
77422
78167
  var value = /** @type {string} */ (reader.readString());
77423
78168
  msg.setComputeClusterId(value);
@@ -77508,6 +78253,13 @@ proto.clarifai.api.ComputeSourceMetadata.serializeBinaryToWriter = function(mess
77508
78253
  f
77509
78254
  );
77510
78255
  }
78256
+ f = message.getComputeClusterUserId();
78257
+ if (f.length > 0) {
78258
+ writer.writeString(
78259
+ 14,
78260
+ f
78261
+ );
78262
+ }
77511
78263
  f = message.getComputeClusterId();
77512
78264
  if (f.length > 0) {
77513
78265
  writer.writeString(
@@ -77658,6 +78410,24 @@ proto.clarifai.api.ComputeSourceMetadata.prototype.setWorkflowId = function(valu
77658
78410
  };
77659
78411
 
77660
78412
 
78413
+ /**
78414
+ * optional string compute_cluster_user_id = 14;
78415
+ * @return {string}
78416
+ */
78417
+ proto.clarifai.api.ComputeSourceMetadata.prototype.getComputeClusterUserId = function() {
78418
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
78419
+ };
78420
+
78421
+
78422
+ /**
78423
+ * @param {string} value
78424
+ * @return {!proto.clarifai.api.ComputeSourceMetadata} returns this
78425
+ */
78426
+ proto.clarifai.api.ComputeSourceMetadata.prototype.setComputeClusterUserId = function(value) {
78427
+ return jspb.Message.setProto3StringField(this, 14, value);
78428
+ };
78429
+
78430
+
77661
78431
  /**
77662
78432
  * optional string compute_cluster_id = 6;
77663
78433
  * @return {string}
@@ -83861,14 +84631,12 @@ proto.clarifai.api.Secret.prototype.toObject = function(opt_includeInstance) {
83861
84631
  proto.clarifai.api.Secret.toObject = function(includeInstance, msg) {
83862
84632
  var f, obj = {
83863
84633
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
83864
- appId: jspb.Message.getFieldWithDefault(msg, 2, ""),
83865
- name: jspb.Message.getFieldWithDefault(msg, 3, ""),
84634
+ userId: jspb.Message.getFieldWithDefault(msg, 11, ""),
83866
84635
  value: jspb.Message.getFieldWithDefault(msg, 4, ""),
83867
84636
  version: jspb.Message.getFieldWithDefault(msg, 5, 0),
83868
84637
  description: jspb.Message.getFieldWithDefault(msg, 6, ""),
83869
84638
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
83870
84639
  modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
83871
- visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
83872
84640
  expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
83873
84641
  };
83874
84642
 
@@ -83910,13 +84678,9 @@ proto.clarifai.api.Secret.deserializeBinaryFromReader = function(msg, reader) {
83910
84678
  var value = /** @type {string} */ (reader.readString());
83911
84679
  msg.setId(value);
83912
84680
  break;
83913
- case 2:
83914
- var value = /** @type {string} */ (reader.readString());
83915
- msg.setAppId(value);
83916
- break;
83917
- case 3:
84681
+ case 11:
83918
84682
  var value = /** @type {string} */ (reader.readString());
83919
- msg.setName(value);
84683
+ msg.setUserId(value);
83920
84684
  break;
83921
84685
  case 4:
83922
84686
  var value = /** @type {string} */ (reader.readString());
@@ -83940,11 +84704,6 @@ proto.clarifai.api.Secret.deserializeBinaryFromReader = function(msg, reader) {
83940
84704
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
83941
84705
  msg.setModifiedAt(value);
83942
84706
  break;
83943
- case 9:
83944
- var value = new proto.clarifai.api.Visibility;
83945
- reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader);
83946
- msg.setVisibility(value);
83947
- break;
83948
84707
  case 10:
83949
84708
  var value = new google_protobuf_timestamp_pb.Timestamp;
83950
84709
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
@@ -83986,17 +84745,10 @@ proto.clarifai.api.Secret.serializeBinaryToWriter = function(message, writer) {
83986
84745
  f
83987
84746
  );
83988
84747
  }
83989
- f = message.getAppId();
83990
- if (f.length > 0) {
83991
- writer.writeString(
83992
- 2,
83993
- f
83994
- );
83995
- }
83996
- f = message.getName();
84748
+ f = message.getUserId();
83997
84749
  if (f.length > 0) {
83998
84750
  writer.writeString(
83999
- 3,
84751
+ 11,
84000
84752
  f
84001
84753
  );
84002
84754
  }
@@ -84037,14 +84789,6 @@ proto.clarifai.api.Secret.serializeBinaryToWriter = function(message, writer) {
84037
84789
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
84038
84790
  );
84039
84791
  }
84040
- f = message.getVisibility();
84041
- if (f != null) {
84042
- writer.writeMessage(
84043
- 9,
84044
- f,
84045
- proto.clarifai.api.Visibility.serializeBinaryToWriter
84046
- );
84047
- }
84048
84792
  f = message.getExpiresAt();
84049
84793
  if (f != null) {
84050
84794
  writer.writeMessage(
@@ -84075,29 +84819,11 @@ proto.clarifai.api.Secret.prototype.setId = function(value) {
84075
84819
 
84076
84820
 
84077
84821
  /**
84078
- * optional string app_id = 2;
84079
- * @return {string}
84080
- */
84081
- proto.clarifai.api.Secret.prototype.getAppId = function() {
84082
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
84083
- };
84084
-
84085
-
84086
- /**
84087
- * @param {string} value
84088
- * @return {!proto.clarifai.api.Secret} returns this
84089
- */
84090
- proto.clarifai.api.Secret.prototype.setAppId = function(value) {
84091
- return jspb.Message.setProto3StringField(this, 2, value);
84092
- };
84093
-
84094
-
84095
- /**
84096
- * optional string name = 3;
84822
+ * optional string user_id = 11;
84097
84823
  * @return {string}
84098
84824
  */
84099
- proto.clarifai.api.Secret.prototype.getName = function() {
84100
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
84825
+ proto.clarifai.api.Secret.prototype.getUserId = function() {
84826
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
84101
84827
  };
84102
84828
 
84103
84829
 
@@ -84105,8 +84831,8 @@ proto.clarifai.api.Secret.prototype.getName = function() {
84105
84831
  * @param {string} value
84106
84832
  * @return {!proto.clarifai.api.Secret} returns this
84107
84833
  */
84108
- proto.clarifai.api.Secret.prototype.setName = function(value) {
84109
- return jspb.Message.setProto3StringField(this, 3, value);
84834
+ proto.clarifai.api.Secret.prototype.setUserId = function(value) {
84835
+ return jspb.Message.setProto3StringField(this, 11, value);
84110
84836
  };
84111
84837
 
84112
84838
 
@@ -84239,21 +84965,21 @@ proto.clarifai.api.Secret.prototype.hasModifiedAt = function() {
84239
84965
 
84240
84966
 
84241
84967
  /**
84242
- * optional Visibility visibility = 9;
84243
- * @return {?proto.clarifai.api.Visibility}
84968
+ * optional google.protobuf.Timestamp expires_at = 10;
84969
+ * @return {?proto.google.protobuf.Timestamp}
84244
84970
  */
84245
- proto.clarifai.api.Secret.prototype.getVisibility = function() {
84246
- return /** @type{?proto.clarifai.api.Visibility} */ (
84247
- jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 9));
84971
+ proto.clarifai.api.Secret.prototype.getExpiresAt = function() {
84972
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
84973
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
84248
84974
  };
84249
84975
 
84250
84976
 
84251
84977
  /**
84252
- * @param {?proto.clarifai.api.Visibility|undefined} value
84978
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
84253
84979
  * @return {!proto.clarifai.api.Secret} returns this
84254
84980
  */
84255
- proto.clarifai.api.Secret.prototype.setVisibility = function(value) {
84256
- return jspb.Message.setWrapperField(this, 9, value);
84981
+ proto.clarifai.api.Secret.prototype.setExpiresAt = function(value) {
84982
+ return jspb.Message.setWrapperField(this, 10, value);
84257
84983
  };
84258
84984
 
84259
84985
 
@@ -84261,8 +84987,8 @@ proto.clarifai.api.Secret.prototype.setVisibility = function(value) {
84261
84987
  * Clears the message field making it undefined.
84262
84988
  * @return {!proto.clarifai.api.Secret} returns this
84263
84989
  */
84264
- proto.clarifai.api.Secret.prototype.clearVisibility = function() {
84265
- return this.setVisibility(undefined);
84990
+ proto.clarifai.api.Secret.prototype.clearExpiresAt = function() {
84991
+ return this.setExpiresAt(undefined);
84266
84992
  };
84267
84993
 
84268
84994
 
@@ -84270,268 +84996,2108 @@ proto.clarifai.api.Secret.prototype.clearVisibility = function() {
84270
84996
  * Returns whether this field is set.
84271
84997
  * @return {boolean}
84272
84998
  */
84273
- proto.clarifai.api.Secret.prototype.hasVisibility = function() {
84274
- return jspb.Message.getField(this, 9) != null;
84999
+ proto.clarifai.api.Secret.prototype.hasExpiresAt = function() {
85000
+ return jspb.Message.getField(this, 10) != null;
84275
85001
  };
84276
85002
 
84277
85003
 
85004
+
84278
85005
  /**
84279
- * optional google.protobuf.Timestamp expires_at = 10;
84280
- * @return {?proto.google.protobuf.Timestamp}
85006
+ * Oneof group definitions for this message. Each group defines the field
85007
+ * numbers belonging to that group. When of these fields' value is set, all
85008
+ * other fields in the group are cleared. During deserialization, if multiple
85009
+ * fields are encountered for a group, only the last value seen will be kept.
85010
+ * @private {!Array<!Array<number>>}
85011
+ * @const
84281
85012
  */
84282
- proto.clarifai.api.Secret.prototype.getExpiresAt = function() {
84283
- return /** @type{?proto.google.protobuf.Timestamp} */ (
84284
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
84285
- };
85013
+ proto.clarifai.api.MetricData.oneofGroups_ = [[1]];
84286
85014
 
85015
+ /**
85016
+ * @enum {number}
85017
+ */
85018
+ proto.clarifai.api.MetricData.DataCase = {
85019
+ DATA_NOT_SET: 0,
85020
+ MATRIX_DATA: 1
85021
+ };
84287
85022
 
84288
85023
  /**
84289
- * @param {?proto.google.protobuf.Timestamp|undefined} value
84290
- * @return {!proto.clarifai.api.Secret} returns this
84291
- */
84292
- proto.clarifai.api.Secret.prototype.setExpiresAt = function(value) {
84293
- return jspb.Message.setWrapperField(this, 10, value);
85024
+ * @return {proto.clarifai.api.MetricData.DataCase}
85025
+ */
85026
+ proto.clarifai.api.MetricData.prototype.getDataCase = function() {
85027
+ return /** @type {proto.clarifai.api.MetricData.DataCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.MetricData.oneofGroups_[0]));
84294
85028
  };
84295
85029
 
84296
85030
 
85031
+
85032
+ if (jspb.Message.GENERATE_TO_OBJECT) {
84297
85033
  /**
84298
- * Clears the message field making it undefined.
84299
- * @return {!proto.clarifai.api.Secret} returns this
85034
+ * Creates an object representation of this proto.
85035
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
85036
+ * Optional fields that are not set will be set to undefined.
85037
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
85038
+ * For the list of reserved names please see:
85039
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
85040
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
85041
+ * JSPB instance for transitional soy proto support:
85042
+ * http://goto/soy-param-migration
85043
+ * @return {!Object}
84300
85044
  */
84301
- proto.clarifai.api.Secret.prototype.clearExpiresAt = function() {
84302
- return this.setExpiresAt(undefined);
85045
+ proto.clarifai.api.MetricData.prototype.toObject = function(opt_includeInstance) {
85046
+ return proto.clarifai.api.MetricData.toObject(opt_includeInstance, this);
84303
85047
  };
84304
85048
 
84305
85049
 
84306
85050
  /**
84307
- * Returns whether this field is set.
84308
- * @return {boolean}
85051
+ * Static version of the {@see toObject} method.
85052
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
85053
+ * the JSPB instance for transitional soy proto support:
85054
+ * http://goto/soy-param-migration
85055
+ * @param {!proto.clarifai.api.MetricData} msg The msg instance to transform.
85056
+ * @return {!Object}
85057
+ * @suppress {unusedLocalVariables} f is only used for nested messages
84309
85058
  */
84310
- proto.clarifai.api.Secret.prototype.hasExpiresAt = function() {
84311
- return jspb.Message.getField(this, 10) != null;
85059
+ proto.clarifai.api.MetricData.toObject = function(includeInstance, msg) {
85060
+ var f, obj = {
85061
+ matrixData: (f = msg.getMatrixData()) && proto.clarifai.api.MetricData.MatrixData.toObject(includeInstance, f)
85062
+ };
85063
+
85064
+ if (includeInstance) {
85065
+ obj.$jspbMessageInstance = msg;
85066
+ }
85067
+ return obj;
84312
85068
  };
85069
+ }
84313
85070
 
84314
85071
 
84315
85072
  /**
84316
- * @enum {number}
85073
+ * Deserializes binary data (in protobuf wire format).
85074
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
85075
+ * @return {!proto.clarifai.api.MetricData}
84317
85076
  */
84318
- proto.clarifai.api.WorkflowModelUseCase = {
84319
- WORKFLOW_MODEL_USE_CASE_NOT_SET: 0,
84320
- CLASSIFICATION: 1,
84321
- DETECTION: 2
85077
+ proto.clarifai.api.MetricData.deserializeBinary = function(bytes) {
85078
+ var reader = new jspb.BinaryReader(bytes);
85079
+ var msg = new proto.clarifai.api.MetricData;
85080
+ return proto.clarifai.api.MetricData.deserializeBinaryFromReader(msg, reader);
84322
85081
  };
84323
85082
 
85083
+
84324
85084
  /**
84325
- * @enum {number}
85085
+ * Deserializes binary data (in protobuf wire format) from the
85086
+ * given reader into the given message object.
85087
+ * @param {!proto.clarifai.api.MetricData} msg The message object to deserialize into.
85088
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
85089
+ * @return {!proto.clarifai.api.MetricData}
84326
85090
  */
84327
- proto.clarifai.api.DatasetVersionRequestOrigin = {
84328
- DATASET_VERSION_REQUEST_ORIGIN_NOT_SET: 0,
84329
- MANUAL: 1,
84330
- TRAINING: 2,
84331
- EVAL_GROUND_TRUTH: 3,
84332
- EVAL_PREDICTIONS: 4
85091
+ proto.clarifai.api.MetricData.deserializeBinaryFromReader = function(msg, reader) {
85092
+ while (reader.nextField()) {
85093
+ if (reader.isEndGroup()) {
85094
+ break;
85095
+ }
85096
+ var field = reader.getFieldNumber();
85097
+ switch (field) {
85098
+ case 1:
85099
+ var value = new proto.clarifai.api.MetricData.MatrixData;
85100
+ reader.readMessage(value,proto.clarifai.api.MetricData.MatrixData.deserializeBinaryFromReader);
85101
+ msg.setMatrixData(value);
85102
+ break;
85103
+ default:
85104
+ reader.skipField();
85105
+ break;
85106
+ }
85107
+ }
85108
+ return msg;
84333
85109
  };
84334
85110
 
85111
+
84335
85112
  /**
84336
- * @enum {number}
85113
+ * Serializes the message to binary data (in protobuf wire format).
85114
+ * @return {!Uint8Array}
84337
85115
  */
84338
- proto.clarifai.api.DatasetVersionMetricsGroupType = {
84339
- DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET: 0,
84340
- INPUT_TYPE: 2,
84341
- CONCEPT_ID: 10,
84342
- CONCEPTS_COUNT: 11,
84343
- BOUNDING_BOXES_COUNT: 20,
84344
- POLYGONS_COUNT: 21,
84345
- POINTS_COUNT: 22,
84346
- MASKS_COUNT: 23,
84347
- PIXELS_COUNT: 30,
84348
- ASPECT_RATIO: 31
85116
+ proto.clarifai.api.MetricData.prototype.serializeBinary = function() {
85117
+ var writer = new jspb.BinaryWriter();
85118
+ proto.clarifai.api.MetricData.serializeBinaryToWriter(this, writer);
85119
+ return writer.getResultBuffer();
84349
85120
  };
84350
85121
 
85122
+
84351
85123
  /**
84352
- * @enum {number}
85124
+ * Serializes the given message to binary data (in protobuf wire
85125
+ * format), writing to the given BinaryWriter.
85126
+ * @param {!proto.clarifai.api.MetricData} message
85127
+ * @param {!jspb.BinaryWriter} writer
85128
+ * @suppress {unusedLocalVariables} f is only used for nested messages
84353
85129
  */
84354
- proto.clarifai.api.DatasetVersionExportFormat = {
84355
- DATASET_VERSION_EXPORT_FORMAT_NOT_SET: 0,
84356
- CLARIFAI_DATA_PROTOBUF: 1,
84357
- CLARIFAI_DATA_JSON: 3,
84358
- COCO: 2
85130
+ proto.clarifai.api.MetricData.serializeBinaryToWriter = function(message, writer) {
85131
+ var f = undefined;
85132
+ f = message.getMatrixData();
85133
+ if (f != null) {
85134
+ writer.writeMessage(
85135
+ 1,
85136
+ f,
85137
+ proto.clarifai.api.MetricData.MatrixData.serializeBinaryToWriter
85138
+ );
85139
+ }
84359
85140
  };
84360
85141
 
85142
+
85143
+
85144
+
85145
+
85146
+ if (jspb.Message.GENERATE_TO_OBJECT) {
84361
85147
  /**
84362
- * @enum {number}
85148
+ * Creates an object representation of this proto.
85149
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
85150
+ * Optional fields that are not set will be set to undefined.
85151
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
85152
+ * For the list of reserved names please see:
85153
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
85154
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
85155
+ * JSPB instance for transitional soy proto support:
85156
+ * http://goto/soy-param-migration
85157
+ * @return {!Object}
84363
85158
  */
84364
- proto.clarifai.api.ExpirationAction = {
84365
- EXPIRATION_ACTION_NOT_SET: 0,
84366
- DELAY: 1,
84367
- EXPIRY: 2
85159
+ proto.clarifai.api.MetricData.Label.prototype.toObject = function(opt_includeInstance) {
85160
+ return proto.clarifai.api.MetricData.Label.toObject(opt_includeInstance, this);
84368
85161
  };
84369
85162
 
85163
+
84370
85164
  /**
84371
- * @enum {number}
85165
+ * Static version of the {@see toObject} method.
85166
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
85167
+ * the JSPB instance for transitional soy proto support:
85168
+ * http://goto/soy-param-migration
85169
+ * @param {!proto.clarifai.api.MetricData.Label} msg The msg instance to transform.
85170
+ * @return {!Object}
85171
+ * @suppress {unusedLocalVariables} f is only used for nested messages
84372
85172
  */
84373
- proto.clarifai.api.LicenseScope = {
84374
- LICENSE_SCOPE_NOT_SET: 0,
84375
- PREDICT: 1,
84376
- TRAIN: 2,
84377
- SEARCH: 3
85173
+ proto.clarifai.api.MetricData.Label.toObject = function(includeInstance, msg) {
85174
+ var f, obj = {
85175
+ name: jspb.Message.getFieldWithDefault(msg, 1, 0),
85176
+ value: jspb.Message.getFieldWithDefault(msg, 2, "")
85177
+ };
85178
+
85179
+ if (includeInstance) {
85180
+ obj.$jspbMessageInstance = msg;
85181
+ }
85182
+ return obj;
84378
85183
  };
85184
+ }
85185
+
84379
85186
 
84380
85187
  /**
84381
- * @enum {number}
85188
+ * Deserializes binary data (in protobuf wire format).
85189
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
85190
+ * @return {!proto.clarifai.api.MetricData.Label}
84382
85191
  */
84383
- proto.clarifai.api.LicenseType = {
84384
- UNKNOWN_LICENSE_TYPE: 0,
84385
- FIRST_PARTY: 1,
84386
- OPEN_SOURCE: 2,
84387
- CLOSED_SOURCE: 3
85192
+ proto.clarifai.api.MetricData.Label.deserializeBinary = function(bytes) {
85193
+ var reader = new jspb.BinaryReader(bytes);
85194
+ var msg = new proto.clarifai.api.MetricData.Label;
85195
+ return proto.clarifai.api.MetricData.Label.deserializeBinaryFromReader(msg, reader);
84388
85196
  };
84389
85197
 
85198
+
84390
85199
  /**
84391
- * @enum {number}
85200
+ * Deserializes binary data (in protobuf wire format) from the
85201
+ * given reader into the given message object.
85202
+ * @param {!proto.clarifai.api.MetricData.Label} msg The message object to deserialize into.
85203
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
85204
+ * @return {!proto.clarifai.api.MetricData.Label}
84392
85205
  */
84393
- proto.clarifai.api.DeployRestriction = {
84394
- USAGE_RESTRICTION_NOT_SET: 0,
84395
- NO_LIMITS: 1,
84396
- SHARED_COMPUTE_ONLY: 2,
84397
- DEDICATED_COMPUTE_ONLY: 3
85206
+ proto.clarifai.api.MetricData.Label.deserializeBinaryFromReader = function(msg, reader) {
85207
+ while (reader.nextField()) {
85208
+ if (reader.isEndGroup()) {
85209
+ break;
85210
+ }
85211
+ var field = reader.getFieldNumber();
85212
+ switch (field) {
85213
+ case 1:
85214
+ var value = /** @type {!proto.clarifai.api.MetricLabel} */ (reader.readEnum());
85215
+ msg.setName(value);
85216
+ break;
85217
+ case 2:
85218
+ var value = /** @type {string} */ (reader.readString());
85219
+ msg.setValue(value);
85220
+ break;
85221
+ default:
85222
+ reader.skipField();
85223
+ break;
85224
+ }
85225
+ }
85226
+ return msg;
84398
85227
  };
84399
85228
 
85229
+
84400
85230
  /**
84401
- * @enum {number}
85231
+ * Serializes the message to binary data (in protobuf wire format).
85232
+ * @return {!Uint8Array}
84402
85233
  */
84403
- proto.clarifai.api.DataType = {
84404
- UNDEFINED: 0,
84405
- STRING: 1,
84406
- UINT8: 2,
84407
- INT32: 3,
84408
- INT64: 4,
84409
- FP32: 5
85234
+ proto.clarifai.api.MetricData.Label.prototype.serializeBinary = function() {
85235
+ var writer = new jspb.BinaryWriter();
85236
+ proto.clarifai.api.MetricData.Label.serializeBinaryToWriter(this, writer);
85237
+ return writer.getResultBuffer();
84410
85238
  };
84411
85239
 
85240
+
84412
85241
  /**
84413
- * @enum {number}
85242
+ * Serializes the given message to binary data (in protobuf wire
85243
+ * format), writing to the given BinaryWriter.
85244
+ * @param {!proto.clarifai.api.MetricData.Label} message
85245
+ * @param {!jspb.BinaryWriter} writer
85246
+ * @suppress {unusedLocalVariables} f is only used for nested messages
84414
85247
  */
84415
- proto.clarifai.api.ValueComparator = {
84416
- CONCEPT_THRESHOLD_NOT_SET: 0,
84417
- GREATER_THAN: 1,
84418
- GREATER_THAN_OR_EQUAL: 2,
84419
- LESS_THAN: 3,
84420
- LESS_THAN_OR_EQUAL: 4,
84421
- EQUAL: 5
85248
+ proto.clarifai.api.MetricData.Label.serializeBinaryToWriter = function(message, writer) {
85249
+ var f = undefined;
85250
+ f = message.getName();
85251
+ if (f !== 0.0) {
85252
+ writer.writeEnum(
85253
+ 1,
85254
+ f
85255
+ );
85256
+ }
85257
+ f = message.getValue();
85258
+ if (f.length > 0) {
85259
+ writer.writeString(
85260
+ 2,
85261
+ f
85262
+ );
85263
+ }
84422
85264
  };
84423
85265
 
85266
+
84424
85267
  /**
84425
- * @enum {number}
85268
+ * optional MetricLabel name = 1;
85269
+ * @return {!proto.clarifai.api.MetricLabel}
84426
85270
  */
84427
- proto.clarifai.api.EvaluationType = {
84428
- UNDEFINED: 0,
84429
- CLASSIFICATION: 1,
84430
- DETECTION: 2,
84431
- SEGMENTATION: 3,
84432
- CLUSTERING: 4,
84433
- TRACKER: 5,
84434
- GENERATION: 6
85271
+ proto.clarifai.api.MetricData.Label.prototype.getName = function() {
85272
+ return /** @type {!proto.clarifai.api.MetricLabel} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
84435
85273
  };
84436
85274
 
85275
+
84437
85276
  /**
84438
- * @enum {number}
85277
+ * @param {!proto.clarifai.api.MetricLabel} value
85278
+ * @return {!proto.clarifai.api.MetricData.Label} returns this
84439
85279
  */
84440
- proto.clarifai.api.APIEventType = {
84441
- API_EVENT_TYPE_NOT_SET: 0,
84442
- ON_PREM_PREDICT: 1,
84443
- ON_PREM_TRAIN: 2,
84444
- ON_PREM_SEARCH: 3
85280
+ proto.clarifai.api.MetricData.Label.prototype.setName = function(value) {
85281
+ return jspb.Message.setProto3EnumField(this, 1, value);
84445
85282
  };
84446
85283
 
85284
+
84447
85285
  /**
84448
- * @enum {number}
85286
+ * optional string value = 2;
85287
+ * @return {string}
84449
85288
  */
84450
- proto.clarifai.api.UsageIntervalType = {
84451
- UNDEF: 0,
84452
- DAY: 1,
84453
- MONTH: 2,
84454
- YEAR: 3
85289
+ proto.clarifai.api.MetricData.Label.prototype.getValue = function() {
85290
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
84455
85291
  };
84456
85292
 
85293
+
84457
85294
  /**
84458
- * @enum {number}
85295
+ * @param {string} value
85296
+ * @return {!proto.clarifai.api.MetricData.Label} returns this
84459
85297
  */
84460
- proto.clarifai.api.AnnotationDataType = {
84461
- ANNOTATION_DATA_TYPE_NOT_SET: 0,
84462
- TAG: 1,
84463
- BOUNDING_BOX: 2,
84464
- POLYGON: 4,
84465
- POINT: 8,
84466
- SPAN: 16,
84467
- MASK: 32
85298
+ proto.clarifai.api.MetricData.Label.prototype.setValue = function(value) {
85299
+ return jspb.Message.setProto3StringField(this, 2, value);
84468
85300
  };
84469
85301
 
85302
+
85303
+
85304
+
85305
+
85306
+ if (jspb.Message.GENERATE_TO_OBJECT) {
84470
85307
  /**
84471
- * @enum {number}
85308
+ * Creates an object representation of this proto.
85309
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
85310
+ * Optional fields that are not set will be set to undefined.
85311
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
85312
+ * For the list of reserved names please see:
85313
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
85314
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
85315
+ * JSPB instance for transitional soy proto support:
85316
+ * http://goto/soy-param-migration
85317
+ * @return {!Object}
84472
85318
  */
84473
- proto.clarifai.api.RoleType = {
84474
- TEAM: 0,
84475
- ORG: 1
85319
+ proto.clarifai.api.MetricData.MetricSample.prototype.toObject = function(opt_includeInstance) {
85320
+ return proto.clarifai.api.MetricData.MetricSample.toObject(opt_includeInstance, this);
84476
85321
  };
84477
85322
 
85323
+
84478
85324
  /**
84479
- * @enum {number}
85325
+ * Static version of the {@see toObject} method.
85326
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
85327
+ * the JSPB instance for transitional soy proto support:
85328
+ * http://goto/soy-param-migration
85329
+ * @param {!proto.clarifai.api.MetricData.MetricSample} msg The msg instance to transform.
85330
+ * @return {!Object}
85331
+ * @suppress {unusedLocalVariables} f is only used for nested messages
84480
85332
  */
84481
- proto.clarifai.api.StatValueAggType = {
84482
- SUM: 0,
84483
- AVG: 1
85333
+ proto.clarifai.api.MetricData.MetricSample.toObject = function(includeInstance, msg) {
85334
+ var f, obj = {
85335
+ timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
85336
+ value: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
85337
+ };
85338
+
85339
+ if (includeInstance) {
85340
+ obj.$jspbMessageInstance = msg;
85341
+ }
85342
+ return obj;
84484
85343
  };
85344
+ }
85345
+
84485
85346
 
84486
85347
  /**
84487
- * @enum {number}
85348
+ * Deserializes binary data (in protobuf wire format).
85349
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
85350
+ * @return {!proto.clarifai.api.MetricData.MetricSample}
84488
85351
  */
84489
- proto.clarifai.api.StatTimeAggType = {
84490
- NO_TIME_AGG: 0,
84491
- YEAR: 1,
84492
- MONTH: 2,
84493
- WEEK: 3,
84494
- DAY: 4,
84495
- HOUR: 5,
84496
- MINUTE: 6
85352
+ proto.clarifai.api.MetricData.MetricSample.deserializeBinary = function(bytes) {
85353
+ var reader = new jspb.BinaryReader(bytes);
85354
+ var msg = new proto.clarifai.api.MetricData.MetricSample;
85355
+ return proto.clarifai.api.MetricData.MetricSample.deserializeBinaryFromReader(msg, reader);
84497
85356
  };
84498
85357
 
85358
+
84499
85359
  /**
84500
- * @enum {number}
85360
+ * Deserializes binary data (in protobuf wire format) from the
85361
+ * given reader into the given message object.
85362
+ * @param {!proto.clarifai.api.MetricData.MetricSample} msg The message object to deserialize into.
85363
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
85364
+ * @return {!proto.clarifai.api.MetricData.MetricSample}
84501
85365
  */
84502
- proto.clarifai.api.ValidationErrorType = {
84503
- VALIDATION_ERROR_TYPE_NOT_SET: 0,
84504
- RESTRICTED: 1,
84505
- DATABASE: 2,
84506
- FORMAT: 3
85366
+ proto.clarifai.api.MetricData.MetricSample.deserializeBinaryFromReader = function(msg, reader) {
85367
+ while (reader.nextField()) {
85368
+ if (reader.isEndGroup()) {
85369
+ break;
85370
+ }
85371
+ var field = reader.getFieldNumber();
85372
+ switch (field) {
85373
+ case 1:
85374
+ var value = new google_protobuf_timestamp_pb.Timestamp;
85375
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
85376
+ msg.setTimestamp(value);
85377
+ break;
85378
+ case 2:
85379
+ var value = /** @type {number} */ (reader.readDouble());
85380
+ msg.setValue(value);
85381
+ break;
85382
+ default:
85383
+ reader.skipField();
85384
+ break;
85385
+ }
85386
+ }
85387
+ return msg;
84507
85388
  };
84508
85389
 
85390
+
84509
85391
  /**
84510
- * @enum {number}
85392
+ * Serializes the message to binary data (in protobuf wire format).
85393
+ * @return {!Uint8Array}
84511
85394
  */
84512
- proto.clarifai.api.InputIDConflictResolution = {
84513
- INPUT_ID_CONFLICT_RESOLUTION_NOT_SET: 0,
84514
- SKIP: 1,
84515
- SUFFIX: 2
85395
+ proto.clarifai.api.MetricData.MetricSample.prototype.serializeBinary = function() {
85396
+ var writer = new jspb.BinaryWriter();
85397
+ proto.clarifai.api.MetricData.MetricSample.serializeBinaryToWriter(this, writer);
85398
+ return writer.getResultBuffer();
84516
85399
  };
84517
85400
 
85401
+
84518
85402
  /**
84519
- * @enum {number}
85403
+ * Serializes the given message to binary data (in protobuf wire
85404
+ * format), writing to the given BinaryWriter.
85405
+ * @param {!proto.clarifai.api.MetricData.MetricSample} message
85406
+ * @param {!jspb.BinaryWriter} writer
85407
+ * @suppress {unusedLocalVariables} f is only used for nested messages
84520
85408
  */
84521
- proto.clarifai.api.RunnerMethodType = {
84522
- UNKNOWN: 0,
84523
- UNARY_UNARY: 1,
84524
- UNARY_STREAMING: 2,
84525
- STREAMING_UNARY: 3,
84526
- STREAMING_STREAMING: 4
85409
+ proto.clarifai.api.MetricData.MetricSample.serializeBinaryToWriter = function(message, writer) {
85410
+ var f = undefined;
85411
+ f = message.getTimestamp();
85412
+ if (f != null) {
85413
+ writer.writeMessage(
85414
+ 1,
85415
+ f,
85416
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
85417
+ );
85418
+ }
85419
+ f = message.getValue();
85420
+ if (f !== 0.0) {
85421
+ writer.writeDouble(
85422
+ 2,
85423
+ f
85424
+ );
85425
+ }
84527
85426
  };
84528
85427
 
85428
+
84529
85429
  /**
84530
- * @enum {number}
85430
+ * optional google.protobuf.Timestamp timestamp = 1;
85431
+ * @return {?proto.google.protobuf.Timestamp}
84531
85432
  */
84532
- proto.clarifai.api.EventType = {
84533
- EVENT_TYPE_NOT_SET: 0,
84534
- ORGANIZATION_MEMBER_ADD: 100,
85433
+ proto.clarifai.api.MetricData.MetricSample.prototype.getTimestamp = function() {
85434
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
85435
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
85436
+ };
85437
+
85438
+
85439
+ /**
85440
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
85441
+ * @return {!proto.clarifai.api.MetricData.MetricSample} returns this
85442
+ */
85443
+ proto.clarifai.api.MetricData.MetricSample.prototype.setTimestamp = function(value) {
85444
+ return jspb.Message.setWrapperField(this, 1, value);
85445
+ };
85446
+
85447
+
85448
+ /**
85449
+ * Clears the message field making it undefined.
85450
+ * @return {!proto.clarifai.api.MetricData.MetricSample} returns this
85451
+ */
85452
+ proto.clarifai.api.MetricData.MetricSample.prototype.clearTimestamp = function() {
85453
+ return this.setTimestamp(undefined);
85454
+ };
85455
+
85456
+
85457
+ /**
85458
+ * Returns whether this field is set.
85459
+ * @return {boolean}
85460
+ */
85461
+ proto.clarifai.api.MetricData.MetricSample.prototype.hasTimestamp = function() {
85462
+ return jspb.Message.getField(this, 1) != null;
85463
+ };
85464
+
85465
+
85466
+ /**
85467
+ * optional double value = 2;
85468
+ * @return {number}
85469
+ */
85470
+ proto.clarifai.api.MetricData.MetricSample.prototype.getValue = function() {
85471
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
85472
+ };
85473
+
85474
+
85475
+ /**
85476
+ * @param {number} value
85477
+ * @return {!proto.clarifai.api.MetricData.MetricSample} returns this
85478
+ */
85479
+ proto.clarifai.api.MetricData.MetricSample.prototype.setValue = function(value) {
85480
+ return jspb.Message.setProto3FloatField(this, 2, value);
85481
+ };
85482
+
85483
+
85484
+
85485
+ /**
85486
+ * List of repeated fields within this message type.
85487
+ * @private {!Array<number>}
85488
+ * @const
85489
+ */
85490
+ proto.clarifai.api.MetricData.MatrixData.repeatedFields_ = [1];
85491
+
85492
+
85493
+
85494
+ if (jspb.Message.GENERATE_TO_OBJECT) {
85495
+ /**
85496
+ * Creates an object representation of this proto.
85497
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
85498
+ * Optional fields that are not set will be set to undefined.
85499
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
85500
+ * For the list of reserved names please see:
85501
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
85502
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
85503
+ * JSPB instance for transitional soy proto support:
85504
+ * http://goto/soy-param-migration
85505
+ * @return {!Object}
85506
+ */
85507
+ proto.clarifai.api.MetricData.MatrixData.prototype.toObject = function(opt_includeInstance) {
85508
+ return proto.clarifai.api.MetricData.MatrixData.toObject(opt_includeInstance, this);
85509
+ };
85510
+
85511
+
85512
+ /**
85513
+ * Static version of the {@see toObject} method.
85514
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
85515
+ * the JSPB instance for transitional soy proto support:
85516
+ * http://goto/soy-param-migration
85517
+ * @param {!proto.clarifai.api.MetricData.MatrixData} msg The msg instance to transform.
85518
+ * @return {!Object}
85519
+ * @suppress {unusedLocalVariables} f is only used for nested messages
85520
+ */
85521
+ proto.clarifai.api.MetricData.MatrixData.toObject = function(includeInstance, msg) {
85522
+ var f, obj = {
85523
+ seriesList: jspb.Message.toObjectList(msg.getSeriesList(),
85524
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.toObject, includeInstance)
85525
+ };
85526
+
85527
+ if (includeInstance) {
85528
+ obj.$jspbMessageInstance = msg;
85529
+ }
85530
+ return obj;
85531
+ };
85532
+ }
85533
+
85534
+
85535
+ /**
85536
+ * Deserializes binary data (in protobuf wire format).
85537
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
85538
+ * @return {!proto.clarifai.api.MetricData.MatrixData}
85539
+ */
85540
+ proto.clarifai.api.MetricData.MatrixData.deserializeBinary = function(bytes) {
85541
+ var reader = new jspb.BinaryReader(bytes);
85542
+ var msg = new proto.clarifai.api.MetricData.MatrixData;
85543
+ return proto.clarifai.api.MetricData.MatrixData.deserializeBinaryFromReader(msg, reader);
85544
+ };
85545
+
85546
+
85547
+ /**
85548
+ * Deserializes binary data (in protobuf wire format) from the
85549
+ * given reader into the given message object.
85550
+ * @param {!proto.clarifai.api.MetricData.MatrixData} msg The message object to deserialize into.
85551
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
85552
+ * @return {!proto.clarifai.api.MetricData.MatrixData}
85553
+ */
85554
+ proto.clarifai.api.MetricData.MatrixData.deserializeBinaryFromReader = function(msg, reader) {
85555
+ while (reader.nextField()) {
85556
+ if (reader.isEndGroup()) {
85557
+ break;
85558
+ }
85559
+ var field = reader.getFieldNumber();
85560
+ switch (field) {
85561
+ case 1:
85562
+ var value = new proto.clarifai.api.MetricData.MatrixData.TimeSeries;
85563
+ reader.readMessage(value,proto.clarifai.api.MetricData.MatrixData.TimeSeries.deserializeBinaryFromReader);
85564
+ msg.addSeries(value);
85565
+ break;
85566
+ default:
85567
+ reader.skipField();
85568
+ break;
85569
+ }
85570
+ }
85571
+ return msg;
85572
+ };
85573
+
85574
+
85575
+ /**
85576
+ * Serializes the message to binary data (in protobuf wire format).
85577
+ * @return {!Uint8Array}
85578
+ */
85579
+ proto.clarifai.api.MetricData.MatrixData.prototype.serializeBinary = function() {
85580
+ var writer = new jspb.BinaryWriter();
85581
+ proto.clarifai.api.MetricData.MatrixData.serializeBinaryToWriter(this, writer);
85582
+ return writer.getResultBuffer();
85583
+ };
85584
+
85585
+
85586
+ /**
85587
+ * Serializes the given message to binary data (in protobuf wire
85588
+ * format), writing to the given BinaryWriter.
85589
+ * @param {!proto.clarifai.api.MetricData.MatrixData} message
85590
+ * @param {!jspb.BinaryWriter} writer
85591
+ * @suppress {unusedLocalVariables} f is only used for nested messages
85592
+ */
85593
+ proto.clarifai.api.MetricData.MatrixData.serializeBinaryToWriter = function(message, writer) {
85594
+ var f = undefined;
85595
+ f = message.getSeriesList();
85596
+ if (f.length > 0) {
85597
+ writer.writeRepeatedMessage(
85598
+ 1,
85599
+ f,
85600
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.serializeBinaryToWriter
85601
+ );
85602
+ }
85603
+ };
85604
+
85605
+
85606
+
85607
+ /**
85608
+ * List of repeated fields within this message type.
85609
+ * @private {!Array<number>}
85610
+ * @const
85611
+ */
85612
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.repeatedFields_ = [1,2];
85613
+
85614
+
85615
+
85616
+ if (jspb.Message.GENERATE_TO_OBJECT) {
85617
+ /**
85618
+ * Creates an object representation of this proto.
85619
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
85620
+ * Optional fields that are not set will be set to undefined.
85621
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
85622
+ * For the list of reserved names please see:
85623
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
85624
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
85625
+ * JSPB instance for transitional soy proto support:
85626
+ * http://goto/soy-param-migration
85627
+ * @return {!Object}
85628
+ */
85629
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.toObject = function(opt_includeInstance) {
85630
+ return proto.clarifai.api.MetricData.MatrixData.TimeSeries.toObject(opt_includeInstance, this);
85631
+ };
85632
+
85633
+
85634
+ /**
85635
+ * Static version of the {@see toObject} method.
85636
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
85637
+ * the JSPB instance for transitional soy proto support:
85638
+ * http://goto/soy-param-migration
85639
+ * @param {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} msg The msg instance to transform.
85640
+ * @return {!Object}
85641
+ * @suppress {unusedLocalVariables} f is only used for nested messages
85642
+ */
85643
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.toObject = function(includeInstance, msg) {
85644
+ var f, obj = {
85645
+ labelsList: jspb.Message.toObjectList(msg.getLabelsList(),
85646
+ proto.clarifai.api.MetricData.Label.toObject, includeInstance),
85647
+ valueList: jspb.Message.toObjectList(msg.getValueList(),
85648
+ proto.clarifai.api.MetricData.MetricSample.toObject, includeInstance)
85649
+ };
85650
+
85651
+ if (includeInstance) {
85652
+ obj.$jspbMessageInstance = msg;
85653
+ }
85654
+ return obj;
85655
+ };
85656
+ }
85657
+
85658
+
85659
+ /**
85660
+ * Deserializes binary data (in protobuf wire format).
85661
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
85662
+ * @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries}
85663
+ */
85664
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.deserializeBinary = function(bytes) {
85665
+ var reader = new jspb.BinaryReader(bytes);
85666
+ var msg = new proto.clarifai.api.MetricData.MatrixData.TimeSeries;
85667
+ return proto.clarifai.api.MetricData.MatrixData.TimeSeries.deserializeBinaryFromReader(msg, reader);
85668
+ };
85669
+
85670
+
85671
+ /**
85672
+ * Deserializes binary data (in protobuf wire format) from the
85673
+ * given reader into the given message object.
85674
+ * @param {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} msg The message object to deserialize into.
85675
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
85676
+ * @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries}
85677
+ */
85678
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.deserializeBinaryFromReader = function(msg, reader) {
85679
+ while (reader.nextField()) {
85680
+ if (reader.isEndGroup()) {
85681
+ break;
85682
+ }
85683
+ var field = reader.getFieldNumber();
85684
+ switch (field) {
85685
+ case 1:
85686
+ var value = new proto.clarifai.api.MetricData.Label;
85687
+ reader.readMessage(value,proto.clarifai.api.MetricData.Label.deserializeBinaryFromReader);
85688
+ msg.addLabels(value);
85689
+ break;
85690
+ case 2:
85691
+ var value = new proto.clarifai.api.MetricData.MetricSample;
85692
+ reader.readMessage(value,proto.clarifai.api.MetricData.MetricSample.deserializeBinaryFromReader);
85693
+ msg.addValue(value);
85694
+ break;
85695
+ default:
85696
+ reader.skipField();
85697
+ break;
85698
+ }
85699
+ }
85700
+ return msg;
85701
+ };
85702
+
85703
+
85704
+ /**
85705
+ * Serializes the message to binary data (in protobuf wire format).
85706
+ * @return {!Uint8Array}
85707
+ */
85708
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.serializeBinary = function() {
85709
+ var writer = new jspb.BinaryWriter();
85710
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.serializeBinaryToWriter(this, writer);
85711
+ return writer.getResultBuffer();
85712
+ };
85713
+
85714
+
85715
+ /**
85716
+ * Serializes the given message to binary data (in protobuf wire
85717
+ * format), writing to the given BinaryWriter.
85718
+ * @param {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} message
85719
+ * @param {!jspb.BinaryWriter} writer
85720
+ * @suppress {unusedLocalVariables} f is only used for nested messages
85721
+ */
85722
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.serializeBinaryToWriter = function(message, writer) {
85723
+ var f = undefined;
85724
+ f = message.getLabelsList();
85725
+ if (f.length > 0) {
85726
+ writer.writeRepeatedMessage(
85727
+ 1,
85728
+ f,
85729
+ proto.clarifai.api.MetricData.Label.serializeBinaryToWriter
85730
+ );
85731
+ }
85732
+ f = message.getValueList();
85733
+ if (f.length > 0) {
85734
+ writer.writeRepeatedMessage(
85735
+ 2,
85736
+ f,
85737
+ proto.clarifai.api.MetricData.MetricSample.serializeBinaryToWriter
85738
+ );
85739
+ }
85740
+ };
85741
+
85742
+
85743
+ /**
85744
+ * repeated Label labels = 1;
85745
+ * @return {!Array<!proto.clarifai.api.MetricData.Label>}
85746
+ */
85747
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.getLabelsList = function() {
85748
+ return /** @type{!Array<!proto.clarifai.api.MetricData.Label>} */ (
85749
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MetricData.Label, 1));
85750
+ };
85751
+
85752
+
85753
+ /**
85754
+ * @param {!Array<!proto.clarifai.api.MetricData.Label>} value
85755
+ * @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} returns this
85756
+ */
85757
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.setLabelsList = function(value) {
85758
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
85759
+ };
85760
+
85761
+
85762
+ /**
85763
+ * @param {!proto.clarifai.api.MetricData.Label=} opt_value
85764
+ * @param {number=} opt_index
85765
+ * @return {!proto.clarifai.api.MetricData.Label}
85766
+ */
85767
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.addLabels = function(opt_value, opt_index) {
85768
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.MetricData.Label, opt_index);
85769
+ };
85770
+
85771
+
85772
+ /**
85773
+ * Clears the list making it empty but non-null.
85774
+ * @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} returns this
85775
+ */
85776
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.clearLabelsList = function() {
85777
+ return this.setLabelsList([]);
85778
+ };
85779
+
85780
+
85781
+ /**
85782
+ * repeated MetricSample value = 2;
85783
+ * @return {!Array<!proto.clarifai.api.MetricData.MetricSample>}
85784
+ */
85785
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.getValueList = function() {
85786
+ return /** @type{!Array<!proto.clarifai.api.MetricData.MetricSample>} */ (
85787
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MetricData.MetricSample, 2));
85788
+ };
85789
+
85790
+
85791
+ /**
85792
+ * @param {!Array<!proto.clarifai.api.MetricData.MetricSample>} value
85793
+ * @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} returns this
85794
+ */
85795
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.setValueList = function(value) {
85796
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
85797
+ };
85798
+
85799
+
85800
+ /**
85801
+ * @param {!proto.clarifai.api.MetricData.MetricSample=} opt_value
85802
+ * @param {number=} opt_index
85803
+ * @return {!proto.clarifai.api.MetricData.MetricSample}
85804
+ */
85805
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.addValue = function(opt_value, opt_index) {
85806
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.MetricData.MetricSample, opt_index);
85807
+ };
85808
+
85809
+
85810
+ /**
85811
+ * Clears the list making it empty but non-null.
85812
+ * @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries} returns this
85813
+ */
85814
+ proto.clarifai.api.MetricData.MatrixData.TimeSeries.prototype.clearValueList = function() {
85815
+ return this.setValueList([]);
85816
+ };
85817
+
85818
+
85819
+ /**
85820
+ * repeated TimeSeries series = 1;
85821
+ * @return {!Array<!proto.clarifai.api.MetricData.MatrixData.TimeSeries>}
85822
+ */
85823
+ proto.clarifai.api.MetricData.MatrixData.prototype.getSeriesList = function() {
85824
+ return /** @type{!Array<!proto.clarifai.api.MetricData.MatrixData.TimeSeries>} */ (
85825
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MetricData.MatrixData.TimeSeries, 1));
85826
+ };
85827
+
85828
+
85829
+ /**
85830
+ * @param {!Array<!proto.clarifai.api.MetricData.MatrixData.TimeSeries>} value
85831
+ * @return {!proto.clarifai.api.MetricData.MatrixData} returns this
85832
+ */
85833
+ proto.clarifai.api.MetricData.MatrixData.prototype.setSeriesList = function(value) {
85834
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
85835
+ };
85836
+
85837
+
85838
+ /**
85839
+ * @param {!proto.clarifai.api.MetricData.MatrixData.TimeSeries=} opt_value
85840
+ * @param {number=} opt_index
85841
+ * @return {!proto.clarifai.api.MetricData.MatrixData.TimeSeries}
85842
+ */
85843
+ proto.clarifai.api.MetricData.MatrixData.prototype.addSeries = function(opt_value, opt_index) {
85844
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.MetricData.MatrixData.TimeSeries, opt_index);
85845
+ };
85846
+
85847
+
85848
+ /**
85849
+ * Clears the list making it empty but non-null.
85850
+ * @return {!proto.clarifai.api.MetricData.MatrixData} returns this
85851
+ */
85852
+ proto.clarifai.api.MetricData.MatrixData.prototype.clearSeriesList = function() {
85853
+ return this.setSeriesList([]);
85854
+ };
85855
+
85856
+
85857
+ /**
85858
+ * optional MatrixData matrix_data = 1;
85859
+ * @return {?proto.clarifai.api.MetricData.MatrixData}
85860
+ */
85861
+ proto.clarifai.api.MetricData.prototype.getMatrixData = function() {
85862
+ return /** @type{?proto.clarifai.api.MetricData.MatrixData} */ (
85863
+ jspb.Message.getWrapperField(this, proto.clarifai.api.MetricData.MatrixData, 1));
85864
+ };
85865
+
85866
+
85867
+ /**
85868
+ * @param {?proto.clarifai.api.MetricData.MatrixData|undefined} value
85869
+ * @return {!proto.clarifai.api.MetricData} returns this
85870
+ */
85871
+ proto.clarifai.api.MetricData.prototype.setMatrixData = function(value) {
85872
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.MetricData.oneofGroups_[0], value);
85873
+ };
85874
+
85875
+
85876
+ /**
85877
+ * Clears the message field making it undefined.
85878
+ * @return {!proto.clarifai.api.MetricData} returns this
85879
+ */
85880
+ proto.clarifai.api.MetricData.prototype.clearMatrixData = function() {
85881
+ return this.setMatrixData(undefined);
85882
+ };
85883
+
85884
+
85885
+ /**
85886
+ * Returns whether this field is set.
85887
+ * @return {boolean}
85888
+ */
85889
+ proto.clarifai.api.MetricData.prototype.hasMatrixData = function() {
85890
+ return jspb.Message.getField(this, 1) != null;
85891
+ };
85892
+
85893
+
85894
+
85895
+ /**
85896
+ * List of repeated fields within this message type.
85897
+ * @private {!Array<number>}
85898
+ * @const
85899
+ */
85900
+ proto.clarifai.api.MetricAggregate.repeatedFields_ = [2];
85901
+
85902
+
85903
+
85904
+ if (jspb.Message.GENERATE_TO_OBJECT) {
85905
+ /**
85906
+ * Creates an object representation of this proto.
85907
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
85908
+ * Optional fields that are not set will be set to undefined.
85909
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
85910
+ * For the list of reserved names please see:
85911
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
85912
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
85913
+ * JSPB instance for transitional soy proto support:
85914
+ * http://goto/soy-param-migration
85915
+ * @return {!Object}
85916
+ */
85917
+ proto.clarifai.api.MetricAggregate.prototype.toObject = function(opt_includeInstance) {
85918
+ return proto.clarifai.api.MetricAggregate.toObject(opt_includeInstance, this);
85919
+ };
85920
+
85921
+
85922
+ /**
85923
+ * Static version of the {@see toObject} method.
85924
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
85925
+ * the JSPB instance for transitional soy proto support:
85926
+ * http://goto/soy-param-migration
85927
+ * @param {!proto.clarifai.api.MetricAggregate} msg The msg instance to transform.
85928
+ * @return {!Object}
85929
+ * @suppress {unusedLocalVariables} f is only used for nested messages
85930
+ */
85931
+ proto.clarifai.api.MetricAggregate.toObject = function(includeInstance, msg) {
85932
+ var f, obj = {
85933
+ operator: jspb.Message.getFieldWithDefault(msg, 1, 0),
85934
+ labelsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
85935
+ };
85936
+
85937
+ if (includeInstance) {
85938
+ obj.$jspbMessageInstance = msg;
85939
+ }
85940
+ return obj;
85941
+ };
85942
+ }
85943
+
85944
+
85945
+ /**
85946
+ * Deserializes binary data (in protobuf wire format).
85947
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
85948
+ * @return {!proto.clarifai.api.MetricAggregate}
85949
+ */
85950
+ proto.clarifai.api.MetricAggregate.deserializeBinary = function(bytes) {
85951
+ var reader = new jspb.BinaryReader(bytes);
85952
+ var msg = new proto.clarifai.api.MetricAggregate;
85953
+ return proto.clarifai.api.MetricAggregate.deserializeBinaryFromReader(msg, reader);
85954
+ };
85955
+
85956
+
85957
+ /**
85958
+ * Deserializes binary data (in protobuf wire format) from the
85959
+ * given reader into the given message object.
85960
+ * @param {!proto.clarifai.api.MetricAggregate} msg The message object to deserialize into.
85961
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
85962
+ * @return {!proto.clarifai.api.MetricAggregate}
85963
+ */
85964
+ proto.clarifai.api.MetricAggregate.deserializeBinaryFromReader = function(msg, reader) {
85965
+ while (reader.nextField()) {
85966
+ if (reader.isEndGroup()) {
85967
+ break;
85968
+ }
85969
+ var field = reader.getFieldNumber();
85970
+ switch (field) {
85971
+ case 1:
85972
+ var value = /** @type {!proto.clarifai.api.MetricAggregate.Operator} */ (reader.readEnum());
85973
+ msg.setOperator(value);
85974
+ break;
85975
+ case 2:
85976
+ var values = /** @type {!Array<!proto.clarifai.api.MetricLabel>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
85977
+ for (var i = 0; i < values.length; i++) {
85978
+ msg.addLabels(values[i]);
85979
+ }
85980
+ break;
85981
+ default:
85982
+ reader.skipField();
85983
+ break;
85984
+ }
85985
+ }
85986
+ return msg;
85987
+ };
85988
+
85989
+
85990
+ /**
85991
+ * Serializes the message to binary data (in protobuf wire format).
85992
+ * @return {!Uint8Array}
85993
+ */
85994
+ proto.clarifai.api.MetricAggregate.prototype.serializeBinary = function() {
85995
+ var writer = new jspb.BinaryWriter();
85996
+ proto.clarifai.api.MetricAggregate.serializeBinaryToWriter(this, writer);
85997
+ return writer.getResultBuffer();
85998
+ };
85999
+
86000
+
86001
+ /**
86002
+ * Serializes the given message to binary data (in protobuf wire
86003
+ * format), writing to the given BinaryWriter.
86004
+ * @param {!proto.clarifai.api.MetricAggregate} message
86005
+ * @param {!jspb.BinaryWriter} writer
86006
+ * @suppress {unusedLocalVariables} f is only used for nested messages
86007
+ */
86008
+ proto.clarifai.api.MetricAggregate.serializeBinaryToWriter = function(message, writer) {
86009
+ var f = undefined;
86010
+ f = message.getOperator();
86011
+ if (f !== 0.0) {
86012
+ writer.writeEnum(
86013
+ 1,
86014
+ f
86015
+ );
86016
+ }
86017
+ f = message.getLabelsList();
86018
+ if (f.length > 0) {
86019
+ writer.writePackedEnum(
86020
+ 2,
86021
+ f
86022
+ );
86023
+ }
86024
+ };
86025
+
86026
+
86027
+ /**
86028
+ * @enum {number}
86029
+ */
86030
+ proto.clarifai.api.MetricAggregate.Operator = {
86031
+ OPERATOR_NOT_SET: 0,
86032
+ AVG: 1,
86033
+ SUM: 2,
86034
+ MAX: 3,
86035
+ MIN: 4,
86036
+ P95: 5,
86037
+ P99: 6,
86038
+ P50: 7,
86039
+ COUNT: 8
86040
+ };
86041
+
86042
+ /**
86043
+ * optional Operator operator = 1;
86044
+ * @return {!proto.clarifai.api.MetricAggregate.Operator}
86045
+ */
86046
+ proto.clarifai.api.MetricAggregate.prototype.getOperator = function() {
86047
+ return /** @type {!proto.clarifai.api.MetricAggregate.Operator} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
86048
+ };
86049
+
86050
+
86051
+ /**
86052
+ * @param {!proto.clarifai.api.MetricAggregate.Operator} value
86053
+ * @return {!proto.clarifai.api.MetricAggregate} returns this
86054
+ */
86055
+ proto.clarifai.api.MetricAggregate.prototype.setOperator = function(value) {
86056
+ return jspb.Message.setProto3EnumField(this, 1, value);
86057
+ };
86058
+
86059
+
86060
+ /**
86061
+ * repeated MetricLabel labels = 2;
86062
+ * @return {!Array<!proto.clarifai.api.MetricLabel>}
86063
+ */
86064
+ proto.clarifai.api.MetricAggregate.prototype.getLabelsList = function() {
86065
+ return /** @type {!Array<!proto.clarifai.api.MetricLabel>} */ (jspb.Message.getRepeatedField(this, 2));
86066
+ };
86067
+
86068
+
86069
+ /**
86070
+ * @param {!Array<!proto.clarifai.api.MetricLabel>} value
86071
+ * @return {!proto.clarifai.api.MetricAggregate} returns this
86072
+ */
86073
+ proto.clarifai.api.MetricAggregate.prototype.setLabelsList = function(value) {
86074
+ return jspb.Message.setField(this, 2, value || []);
86075
+ };
86076
+
86077
+
86078
+ /**
86079
+ * @param {!proto.clarifai.api.MetricLabel} value
86080
+ * @param {number=} opt_index
86081
+ * @return {!proto.clarifai.api.MetricAggregate} returns this
86082
+ */
86083
+ proto.clarifai.api.MetricAggregate.prototype.addLabels = function(value, opt_index) {
86084
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
86085
+ };
86086
+
86087
+
86088
+ /**
86089
+ * Clears the list making it empty but non-null.
86090
+ * @return {!proto.clarifai.api.MetricAggregate} returns this
86091
+ */
86092
+ proto.clarifai.api.MetricAggregate.prototype.clearLabelsList = function() {
86093
+ return this.setLabelsList([]);
86094
+ };
86095
+
86096
+
86097
+
86098
+ /**
86099
+ * Oneof group definitions for this message. Each group defines the field
86100
+ * numbers belonging to that group. When of these fields' value is set, all
86101
+ * other fields in the group are cleared. During deserialization, if multiple
86102
+ * fields are encountered for a group, only the last value seen will be kept.
86103
+ * @private {!Array<!Array<number>>}
86104
+ * @const
86105
+ */
86106
+ proto.clarifai.api.MetricFilter.oneofGroups_ = [[2,3]];
86107
+
86108
+ /**
86109
+ * @enum {number}
86110
+ */
86111
+ proto.clarifai.api.MetricFilter.ValueCase = {
86112
+ VALUE_NOT_SET: 0,
86113
+ EQUALS: 2,
86114
+ IN: 3
86115
+ };
86116
+
86117
+ /**
86118
+ * @return {proto.clarifai.api.MetricFilter.ValueCase}
86119
+ */
86120
+ proto.clarifai.api.MetricFilter.prototype.getValueCase = function() {
86121
+ return /** @type {proto.clarifai.api.MetricFilter.ValueCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.MetricFilter.oneofGroups_[0]));
86122
+ };
86123
+
86124
+
86125
+
86126
+ if (jspb.Message.GENERATE_TO_OBJECT) {
86127
+ /**
86128
+ * Creates an object representation of this proto.
86129
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
86130
+ * Optional fields that are not set will be set to undefined.
86131
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
86132
+ * For the list of reserved names please see:
86133
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
86134
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
86135
+ * JSPB instance for transitional soy proto support:
86136
+ * http://goto/soy-param-migration
86137
+ * @return {!Object}
86138
+ */
86139
+ proto.clarifai.api.MetricFilter.prototype.toObject = function(opt_includeInstance) {
86140
+ return proto.clarifai.api.MetricFilter.toObject(opt_includeInstance, this);
86141
+ };
86142
+
86143
+
86144
+ /**
86145
+ * Static version of the {@see toObject} method.
86146
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
86147
+ * the JSPB instance for transitional soy proto support:
86148
+ * http://goto/soy-param-migration
86149
+ * @param {!proto.clarifai.api.MetricFilter} msg The msg instance to transform.
86150
+ * @return {!Object}
86151
+ * @suppress {unusedLocalVariables} f is only used for nested messages
86152
+ */
86153
+ proto.clarifai.api.MetricFilter.toObject = function(includeInstance, msg) {
86154
+ var f, obj = {
86155
+ label: jspb.Message.getFieldWithDefault(msg, 1, 0),
86156
+ equals: jspb.Message.getFieldWithDefault(msg, 2, ""),
86157
+ pb_in: (f = msg.getIn()) && proto.clarifai.api.MetricFilter.MultiValues.toObject(includeInstance, f)
86158
+ };
86159
+
86160
+ if (includeInstance) {
86161
+ obj.$jspbMessageInstance = msg;
86162
+ }
86163
+ return obj;
86164
+ };
86165
+ }
86166
+
86167
+
86168
+ /**
86169
+ * Deserializes binary data (in protobuf wire format).
86170
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
86171
+ * @return {!proto.clarifai.api.MetricFilter}
86172
+ */
86173
+ proto.clarifai.api.MetricFilter.deserializeBinary = function(bytes) {
86174
+ var reader = new jspb.BinaryReader(bytes);
86175
+ var msg = new proto.clarifai.api.MetricFilter;
86176
+ return proto.clarifai.api.MetricFilter.deserializeBinaryFromReader(msg, reader);
86177
+ };
86178
+
86179
+
86180
+ /**
86181
+ * Deserializes binary data (in protobuf wire format) from the
86182
+ * given reader into the given message object.
86183
+ * @param {!proto.clarifai.api.MetricFilter} msg The message object to deserialize into.
86184
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
86185
+ * @return {!proto.clarifai.api.MetricFilter}
86186
+ */
86187
+ proto.clarifai.api.MetricFilter.deserializeBinaryFromReader = function(msg, reader) {
86188
+ while (reader.nextField()) {
86189
+ if (reader.isEndGroup()) {
86190
+ break;
86191
+ }
86192
+ var field = reader.getFieldNumber();
86193
+ switch (field) {
86194
+ case 1:
86195
+ var value = /** @type {!proto.clarifai.api.MetricLabel} */ (reader.readEnum());
86196
+ msg.setLabel(value);
86197
+ break;
86198
+ case 2:
86199
+ var value = /** @type {string} */ (reader.readString());
86200
+ msg.setEquals(value);
86201
+ break;
86202
+ case 3:
86203
+ var value = new proto.clarifai.api.MetricFilter.MultiValues;
86204
+ reader.readMessage(value,proto.clarifai.api.MetricFilter.MultiValues.deserializeBinaryFromReader);
86205
+ msg.setIn(value);
86206
+ break;
86207
+ default:
86208
+ reader.skipField();
86209
+ break;
86210
+ }
86211
+ }
86212
+ return msg;
86213
+ };
86214
+
86215
+
86216
+ /**
86217
+ * Serializes the message to binary data (in protobuf wire format).
86218
+ * @return {!Uint8Array}
86219
+ */
86220
+ proto.clarifai.api.MetricFilter.prototype.serializeBinary = function() {
86221
+ var writer = new jspb.BinaryWriter();
86222
+ proto.clarifai.api.MetricFilter.serializeBinaryToWriter(this, writer);
86223
+ return writer.getResultBuffer();
86224
+ };
86225
+
86226
+
86227
+ /**
86228
+ * Serializes the given message to binary data (in protobuf wire
86229
+ * format), writing to the given BinaryWriter.
86230
+ * @param {!proto.clarifai.api.MetricFilter} message
86231
+ * @param {!jspb.BinaryWriter} writer
86232
+ * @suppress {unusedLocalVariables} f is only used for nested messages
86233
+ */
86234
+ proto.clarifai.api.MetricFilter.serializeBinaryToWriter = function(message, writer) {
86235
+ var f = undefined;
86236
+ f = message.getLabel();
86237
+ if (f !== 0.0) {
86238
+ writer.writeEnum(
86239
+ 1,
86240
+ f
86241
+ );
86242
+ }
86243
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
86244
+ if (f != null) {
86245
+ writer.writeString(
86246
+ 2,
86247
+ f
86248
+ );
86249
+ }
86250
+ f = message.getIn();
86251
+ if (f != null) {
86252
+ writer.writeMessage(
86253
+ 3,
86254
+ f,
86255
+ proto.clarifai.api.MetricFilter.MultiValues.serializeBinaryToWriter
86256
+ );
86257
+ }
86258
+ };
86259
+
86260
+
86261
+
86262
+ /**
86263
+ * List of repeated fields within this message type.
86264
+ * @private {!Array<number>}
86265
+ * @const
86266
+ */
86267
+ proto.clarifai.api.MetricFilter.MultiValues.repeatedFields_ = [1];
86268
+
86269
+
86270
+
86271
+ if (jspb.Message.GENERATE_TO_OBJECT) {
86272
+ /**
86273
+ * Creates an object representation of this proto.
86274
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
86275
+ * Optional fields that are not set will be set to undefined.
86276
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
86277
+ * For the list of reserved names please see:
86278
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
86279
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
86280
+ * JSPB instance for transitional soy proto support:
86281
+ * http://goto/soy-param-migration
86282
+ * @return {!Object}
86283
+ */
86284
+ proto.clarifai.api.MetricFilter.MultiValues.prototype.toObject = function(opt_includeInstance) {
86285
+ return proto.clarifai.api.MetricFilter.MultiValues.toObject(opt_includeInstance, this);
86286
+ };
86287
+
86288
+
86289
+ /**
86290
+ * Static version of the {@see toObject} method.
86291
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
86292
+ * the JSPB instance for transitional soy proto support:
86293
+ * http://goto/soy-param-migration
86294
+ * @param {!proto.clarifai.api.MetricFilter.MultiValues} msg The msg instance to transform.
86295
+ * @return {!Object}
86296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
86297
+ */
86298
+ proto.clarifai.api.MetricFilter.MultiValues.toObject = function(includeInstance, msg) {
86299
+ var f, obj = {
86300
+ inList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
86301
+ };
86302
+
86303
+ if (includeInstance) {
86304
+ obj.$jspbMessageInstance = msg;
86305
+ }
86306
+ return obj;
86307
+ };
86308
+ }
86309
+
86310
+
86311
+ /**
86312
+ * Deserializes binary data (in protobuf wire format).
86313
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
86314
+ * @return {!proto.clarifai.api.MetricFilter.MultiValues}
86315
+ */
86316
+ proto.clarifai.api.MetricFilter.MultiValues.deserializeBinary = function(bytes) {
86317
+ var reader = new jspb.BinaryReader(bytes);
86318
+ var msg = new proto.clarifai.api.MetricFilter.MultiValues;
86319
+ return proto.clarifai.api.MetricFilter.MultiValues.deserializeBinaryFromReader(msg, reader);
86320
+ };
86321
+
86322
+
86323
+ /**
86324
+ * Deserializes binary data (in protobuf wire format) from the
86325
+ * given reader into the given message object.
86326
+ * @param {!proto.clarifai.api.MetricFilter.MultiValues} msg The message object to deserialize into.
86327
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
86328
+ * @return {!proto.clarifai.api.MetricFilter.MultiValues}
86329
+ */
86330
+ proto.clarifai.api.MetricFilter.MultiValues.deserializeBinaryFromReader = function(msg, reader) {
86331
+ while (reader.nextField()) {
86332
+ if (reader.isEndGroup()) {
86333
+ break;
86334
+ }
86335
+ var field = reader.getFieldNumber();
86336
+ switch (field) {
86337
+ case 1:
86338
+ var value = /** @type {string} */ (reader.readString());
86339
+ msg.addIn(value);
86340
+ break;
86341
+ default:
86342
+ reader.skipField();
86343
+ break;
86344
+ }
86345
+ }
86346
+ return msg;
86347
+ };
86348
+
86349
+
86350
+ /**
86351
+ * Serializes the message to binary data (in protobuf wire format).
86352
+ * @return {!Uint8Array}
86353
+ */
86354
+ proto.clarifai.api.MetricFilter.MultiValues.prototype.serializeBinary = function() {
86355
+ var writer = new jspb.BinaryWriter();
86356
+ proto.clarifai.api.MetricFilter.MultiValues.serializeBinaryToWriter(this, writer);
86357
+ return writer.getResultBuffer();
86358
+ };
86359
+
86360
+
86361
+ /**
86362
+ * Serializes the given message to binary data (in protobuf wire
86363
+ * format), writing to the given BinaryWriter.
86364
+ * @param {!proto.clarifai.api.MetricFilter.MultiValues} message
86365
+ * @param {!jspb.BinaryWriter} writer
86366
+ * @suppress {unusedLocalVariables} f is only used for nested messages
86367
+ */
86368
+ proto.clarifai.api.MetricFilter.MultiValues.serializeBinaryToWriter = function(message, writer) {
86369
+ var f = undefined;
86370
+ f = message.getInList();
86371
+ if (f.length > 0) {
86372
+ writer.writeRepeatedString(
86373
+ 1,
86374
+ f
86375
+ );
86376
+ }
86377
+ };
86378
+
86379
+
86380
+ /**
86381
+ * repeated string in = 1;
86382
+ * @return {!Array<string>}
86383
+ */
86384
+ proto.clarifai.api.MetricFilter.MultiValues.prototype.getInList = function() {
86385
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
86386
+ };
86387
+
86388
+
86389
+ /**
86390
+ * @param {!Array<string>} value
86391
+ * @return {!proto.clarifai.api.MetricFilter.MultiValues} returns this
86392
+ */
86393
+ proto.clarifai.api.MetricFilter.MultiValues.prototype.setInList = function(value) {
86394
+ return jspb.Message.setField(this, 1, value || []);
86395
+ };
86396
+
86397
+
86398
+ /**
86399
+ * @param {string} value
86400
+ * @param {number=} opt_index
86401
+ * @return {!proto.clarifai.api.MetricFilter.MultiValues} returns this
86402
+ */
86403
+ proto.clarifai.api.MetricFilter.MultiValues.prototype.addIn = function(value, opt_index) {
86404
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
86405
+ };
86406
+
86407
+
86408
+ /**
86409
+ * Clears the list making it empty but non-null.
86410
+ * @return {!proto.clarifai.api.MetricFilter.MultiValues} returns this
86411
+ */
86412
+ proto.clarifai.api.MetricFilter.MultiValues.prototype.clearInList = function() {
86413
+ return this.setInList([]);
86414
+ };
86415
+
86416
+
86417
+ /**
86418
+ * optional MetricLabel label = 1;
86419
+ * @return {!proto.clarifai.api.MetricLabel}
86420
+ */
86421
+ proto.clarifai.api.MetricFilter.prototype.getLabel = function() {
86422
+ return /** @type {!proto.clarifai.api.MetricLabel} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
86423
+ };
86424
+
86425
+
86426
+ /**
86427
+ * @param {!proto.clarifai.api.MetricLabel} value
86428
+ * @return {!proto.clarifai.api.MetricFilter} returns this
86429
+ */
86430
+ proto.clarifai.api.MetricFilter.prototype.setLabel = function(value) {
86431
+ return jspb.Message.setProto3EnumField(this, 1, value);
86432
+ };
86433
+
86434
+
86435
+ /**
86436
+ * optional string equals = 2;
86437
+ * @return {string}
86438
+ */
86439
+ proto.clarifai.api.MetricFilter.prototype.getEquals = function() {
86440
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
86441
+ };
86442
+
86443
+
86444
+ /**
86445
+ * @param {string} value
86446
+ * @return {!proto.clarifai.api.MetricFilter} returns this
86447
+ */
86448
+ proto.clarifai.api.MetricFilter.prototype.setEquals = function(value) {
86449
+ return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricFilter.oneofGroups_[0], value);
86450
+ };
86451
+
86452
+
86453
+ /**
86454
+ * Clears the field making it undefined.
86455
+ * @return {!proto.clarifai.api.MetricFilter} returns this
86456
+ */
86457
+ proto.clarifai.api.MetricFilter.prototype.clearEquals = function() {
86458
+ return jspb.Message.setOneofField(this, 2, proto.clarifai.api.MetricFilter.oneofGroups_[0], undefined);
86459
+ };
86460
+
86461
+
86462
+ /**
86463
+ * Returns whether this field is set.
86464
+ * @return {boolean}
86465
+ */
86466
+ proto.clarifai.api.MetricFilter.prototype.hasEquals = function() {
86467
+ return jspb.Message.getField(this, 2) != null;
86468
+ };
86469
+
86470
+
86471
+ /**
86472
+ * optional MultiValues in = 3;
86473
+ * @return {?proto.clarifai.api.MetricFilter.MultiValues}
86474
+ */
86475
+ proto.clarifai.api.MetricFilter.prototype.getIn = function() {
86476
+ return /** @type{?proto.clarifai.api.MetricFilter.MultiValues} */ (
86477
+ jspb.Message.getWrapperField(this, proto.clarifai.api.MetricFilter.MultiValues, 3));
86478
+ };
86479
+
86480
+
86481
+ /**
86482
+ * @param {?proto.clarifai.api.MetricFilter.MultiValues|undefined} value
86483
+ * @return {!proto.clarifai.api.MetricFilter} returns this
86484
+ */
86485
+ proto.clarifai.api.MetricFilter.prototype.setIn = function(value) {
86486
+ return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.MetricFilter.oneofGroups_[0], value);
86487
+ };
86488
+
86489
+
86490
+ /**
86491
+ * Clears the message field making it undefined.
86492
+ * @return {!proto.clarifai.api.MetricFilter} returns this
86493
+ */
86494
+ proto.clarifai.api.MetricFilter.prototype.clearIn = function() {
86495
+ return this.setIn(undefined);
86496
+ };
86497
+
86498
+
86499
+ /**
86500
+ * Returns whether this field is set.
86501
+ * @return {boolean}
86502
+ */
86503
+ proto.clarifai.api.MetricFilter.prototype.hasIn = function() {
86504
+ return jspb.Message.getField(this, 3) != null;
86505
+ };
86506
+
86507
+
86508
+
86509
+ /**
86510
+ * List of repeated fields within this message type.
86511
+ * @private {!Array<number>}
86512
+ * @const
86513
+ */
86514
+ proto.clarifai.api.MetricSearchQuery.repeatedFields_ = [5];
86515
+
86516
+
86517
+
86518
+ if (jspb.Message.GENERATE_TO_OBJECT) {
86519
+ /**
86520
+ * Creates an object representation of this proto.
86521
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
86522
+ * Optional fields that are not set will be set to undefined.
86523
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
86524
+ * For the list of reserved names please see:
86525
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
86526
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
86527
+ * JSPB instance for transitional soy proto support:
86528
+ * http://goto/soy-param-migration
86529
+ * @return {!Object}
86530
+ */
86531
+ proto.clarifai.api.MetricSearchQuery.prototype.toObject = function(opt_includeInstance) {
86532
+ return proto.clarifai.api.MetricSearchQuery.toObject(opt_includeInstance, this);
86533
+ };
86534
+
86535
+
86536
+ /**
86537
+ * Static version of the {@see toObject} method.
86538
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
86539
+ * the JSPB instance for transitional soy proto support:
86540
+ * http://goto/soy-param-migration
86541
+ * @param {!proto.clarifai.api.MetricSearchQuery} msg The msg instance to transform.
86542
+ * @return {!Object}
86543
+ * @suppress {unusedLocalVariables} f is only used for nested messages
86544
+ */
86545
+ proto.clarifai.api.MetricSearchQuery.toObject = function(includeInstance, msg) {
86546
+ var f, obj = {
86547
+ metricType: jspb.Message.getFieldWithDefault(msg, 1, 0),
86548
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
86549
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
86550
+ resolution: jspb.Message.getFieldWithDefault(msg, 4, ""),
86551
+ filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
86552
+ proto.clarifai.api.MetricFilter.toObject, includeInstance),
86553
+ aggregate: (f = msg.getAggregate()) && proto.clarifai.api.MetricAggregate.toObject(includeInstance, f)
86554
+ };
86555
+
86556
+ if (includeInstance) {
86557
+ obj.$jspbMessageInstance = msg;
86558
+ }
86559
+ return obj;
86560
+ };
86561
+ }
86562
+
86563
+
86564
+ /**
86565
+ * Deserializes binary data (in protobuf wire format).
86566
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
86567
+ * @return {!proto.clarifai.api.MetricSearchQuery}
86568
+ */
86569
+ proto.clarifai.api.MetricSearchQuery.deserializeBinary = function(bytes) {
86570
+ var reader = new jspb.BinaryReader(bytes);
86571
+ var msg = new proto.clarifai.api.MetricSearchQuery;
86572
+ return proto.clarifai.api.MetricSearchQuery.deserializeBinaryFromReader(msg, reader);
86573
+ };
86574
+
86575
+
86576
+ /**
86577
+ * Deserializes binary data (in protobuf wire format) from the
86578
+ * given reader into the given message object.
86579
+ * @param {!proto.clarifai.api.MetricSearchQuery} msg The message object to deserialize into.
86580
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
86581
+ * @return {!proto.clarifai.api.MetricSearchQuery}
86582
+ */
86583
+ proto.clarifai.api.MetricSearchQuery.deserializeBinaryFromReader = function(msg, reader) {
86584
+ while (reader.nextField()) {
86585
+ if (reader.isEndGroup()) {
86586
+ break;
86587
+ }
86588
+ var field = reader.getFieldNumber();
86589
+ switch (field) {
86590
+ case 1:
86591
+ var value = /** @type {!proto.clarifai.api.MetricType} */ (reader.readEnum());
86592
+ msg.setMetricType(value);
86593
+ break;
86594
+ case 2:
86595
+ var value = new google_protobuf_timestamp_pb.Timestamp;
86596
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
86597
+ msg.setStartTime(value);
86598
+ break;
86599
+ case 3:
86600
+ var value = new google_protobuf_timestamp_pb.Timestamp;
86601
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
86602
+ msg.setEndTime(value);
86603
+ break;
86604
+ case 4:
86605
+ var value = /** @type {string} */ (reader.readString());
86606
+ msg.setResolution(value);
86607
+ break;
86608
+ case 5:
86609
+ var value = new proto.clarifai.api.MetricFilter;
86610
+ reader.readMessage(value,proto.clarifai.api.MetricFilter.deserializeBinaryFromReader);
86611
+ msg.addFilters(value);
86612
+ break;
86613
+ case 6:
86614
+ var value = new proto.clarifai.api.MetricAggregate;
86615
+ reader.readMessage(value,proto.clarifai.api.MetricAggregate.deserializeBinaryFromReader);
86616
+ msg.setAggregate(value);
86617
+ break;
86618
+ default:
86619
+ reader.skipField();
86620
+ break;
86621
+ }
86622
+ }
86623
+ return msg;
86624
+ };
86625
+
86626
+
86627
+ /**
86628
+ * Serializes the message to binary data (in protobuf wire format).
86629
+ * @return {!Uint8Array}
86630
+ */
86631
+ proto.clarifai.api.MetricSearchQuery.prototype.serializeBinary = function() {
86632
+ var writer = new jspb.BinaryWriter();
86633
+ proto.clarifai.api.MetricSearchQuery.serializeBinaryToWriter(this, writer);
86634
+ return writer.getResultBuffer();
86635
+ };
86636
+
86637
+
86638
+ /**
86639
+ * Serializes the given message to binary data (in protobuf wire
86640
+ * format), writing to the given BinaryWriter.
86641
+ * @param {!proto.clarifai.api.MetricSearchQuery} message
86642
+ * @param {!jspb.BinaryWriter} writer
86643
+ * @suppress {unusedLocalVariables} f is only used for nested messages
86644
+ */
86645
+ proto.clarifai.api.MetricSearchQuery.serializeBinaryToWriter = function(message, writer) {
86646
+ var f = undefined;
86647
+ f = message.getMetricType();
86648
+ if (f !== 0.0) {
86649
+ writer.writeEnum(
86650
+ 1,
86651
+ f
86652
+ );
86653
+ }
86654
+ f = message.getStartTime();
86655
+ if (f != null) {
86656
+ writer.writeMessage(
86657
+ 2,
86658
+ f,
86659
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
86660
+ );
86661
+ }
86662
+ f = message.getEndTime();
86663
+ if (f != null) {
86664
+ writer.writeMessage(
86665
+ 3,
86666
+ f,
86667
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
86668
+ );
86669
+ }
86670
+ f = message.getResolution();
86671
+ if (f.length > 0) {
86672
+ writer.writeString(
86673
+ 4,
86674
+ f
86675
+ );
86676
+ }
86677
+ f = message.getFiltersList();
86678
+ if (f.length > 0) {
86679
+ writer.writeRepeatedMessage(
86680
+ 5,
86681
+ f,
86682
+ proto.clarifai.api.MetricFilter.serializeBinaryToWriter
86683
+ );
86684
+ }
86685
+ f = message.getAggregate();
86686
+ if (f != null) {
86687
+ writer.writeMessage(
86688
+ 6,
86689
+ f,
86690
+ proto.clarifai.api.MetricAggregate.serializeBinaryToWriter
86691
+ );
86692
+ }
86693
+ };
86694
+
86695
+
86696
+ /**
86697
+ * optional MetricType metric_type = 1;
86698
+ * @return {!proto.clarifai.api.MetricType}
86699
+ */
86700
+ proto.clarifai.api.MetricSearchQuery.prototype.getMetricType = function() {
86701
+ return /** @type {!proto.clarifai.api.MetricType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
86702
+ };
86703
+
86704
+
86705
+ /**
86706
+ * @param {!proto.clarifai.api.MetricType} value
86707
+ * @return {!proto.clarifai.api.MetricSearchQuery} returns this
86708
+ */
86709
+ proto.clarifai.api.MetricSearchQuery.prototype.setMetricType = function(value) {
86710
+ return jspb.Message.setProto3EnumField(this, 1, value);
86711
+ };
86712
+
86713
+
86714
+ /**
86715
+ * optional google.protobuf.Timestamp start_time = 2;
86716
+ * @return {?proto.google.protobuf.Timestamp}
86717
+ */
86718
+ proto.clarifai.api.MetricSearchQuery.prototype.getStartTime = function() {
86719
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
86720
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
86721
+ };
86722
+
86723
+
86724
+ /**
86725
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
86726
+ * @return {!proto.clarifai.api.MetricSearchQuery} returns this
86727
+ */
86728
+ proto.clarifai.api.MetricSearchQuery.prototype.setStartTime = function(value) {
86729
+ return jspb.Message.setWrapperField(this, 2, value);
86730
+ };
86731
+
86732
+
86733
+ /**
86734
+ * Clears the message field making it undefined.
86735
+ * @return {!proto.clarifai.api.MetricSearchQuery} returns this
86736
+ */
86737
+ proto.clarifai.api.MetricSearchQuery.prototype.clearStartTime = function() {
86738
+ return this.setStartTime(undefined);
86739
+ };
86740
+
86741
+
86742
+ /**
86743
+ * Returns whether this field is set.
86744
+ * @return {boolean}
86745
+ */
86746
+ proto.clarifai.api.MetricSearchQuery.prototype.hasStartTime = function() {
86747
+ return jspb.Message.getField(this, 2) != null;
86748
+ };
86749
+
86750
+
86751
+ /**
86752
+ * optional google.protobuf.Timestamp end_time = 3;
86753
+ * @return {?proto.google.protobuf.Timestamp}
86754
+ */
86755
+ proto.clarifai.api.MetricSearchQuery.prototype.getEndTime = function() {
86756
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
86757
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
86758
+ };
86759
+
86760
+
86761
+ /**
86762
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
86763
+ * @return {!proto.clarifai.api.MetricSearchQuery} returns this
86764
+ */
86765
+ proto.clarifai.api.MetricSearchQuery.prototype.setEndTime = function(value) {
86766
+ return jspb.Message.setWrapperField(this, 3, value);
86767
+ };
86768
+
86769
+
86770
+ /**
86771
+ * Clears the message field making it undefined.
86772
+ * @return {!proto.clarifai.api.MetricSearchQuery} returns this
86773
+ */
86774
+ proto.clarifai.api.MetricSearchQuery.prototype.clearEndTime = function() {
86775
+ return this.setEndTime(undefined);
86776
+ };
86777
+
86778
+
86779
+ /**
86780
+ * Returns whether this field is set.
86781
+ * @return {boolean}
86782
+ */
86783
+ proto.clarifai.api.MetricSearchQuery.prototype.hasEndTime = function() {
86784
+ return jspb.Message.getField(this, 3) != null;
86785
+ };
86786
+
86787
+
86788
+ /**
86789
+ * optional string resolution = 4;
86790
+ * @return {string}
86791
+ */
86792
+ proto.clarifai.api.MetricSearchQuery.prototype.getResolution = function() {
86793
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
86794
+ };
86795
+
86796
+
86797
+ /**
86798
+ * @param {string} value
86799
+ * @return {!proto.clarifai.api.MetricSearchQuery} returns this
86800
+ */
86801
+ proto.clarifai.api.MetricSearchQuery.prototype.setResolution = function(value) {
86802
+ return jspb.Message.setProto3StringField(this, 4, value);
86803
+ };
86804
+
86805
+
86806
+ /**
86807
+ * repeated MetricFilter filters = 5;
86808
+ * @return {!Array<!proto.clarifai.api.MetricFilter>}
86809
+ */
86810
+ proto.clarifai.api.MetricSearchQuery.prototype.getFiltersList = function() {
86811
+ return /** @type{!Array<!proto.clarifai.api.MetricFilter>} */ (
86812
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.MetricFilter, 5));
86813
+ };
86814
+
86815
+
86816
+ /**
86817
+ * @param {!Array<!proto.clarifai.api.MetricFilter>} value
86818
+ * @return {!proto.clarifai.api.MetricSearchQuery} returns this
86819
+ */
86820
+ proto.clarifai.api.MetricSearchQuery.prototype.setFiltersList = function(value) {
86821
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
86822
+ };
86823
+
86824
+
86825
+ /**
86826
+ * @param {!proto.clarifai.api.MetricFilter=} opt_value
86827
+ * @param {number=} opt_index
86828
+ * @return {!proto.clarifai.api.MetricFilter}
86829
+ */
86830
+ proto.clarifai.api.MetricSearchQuery.prototype.addFilters = function(opt_value, opt_index) {
86831
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.MetricFilter, opt_index);
86832
+ };
86833
+
86834
+
86835
+ /**
86836
+ * Clears the list making it empty but non-null.
86837
+ * @return {!proto.clarifai.api.MetricSearchQuery} returns this
86838
+ */
86839
+ proto.clarifai.api.MetricSearchQuery.prototype.clearFiltersList = function() {
86840
+ return this.setFiltersList([]);
86841
+ };
86842
+
86843
+
86844
+ /**
86845
+ * optional MetricAggregate aggregate = 6;
86846
+ * @return {?proto.clarifai.api.MetricAggregate}
86847
+ */
86848
+ proto.clarifai.api.MetricSearchQuery.prototype.getAggregate = function() {
86849
+ return /** @type{?proto.clarifai.api.MetricAggregate} */ (
86850
+ jspb.Message.getWrapperField(this, proto.clarifai.api.MetricAggregate, 6));
86851
+ };
86852
+
86853
+
86854
+ /**
86855
+ * @param {?proto.clarifai.api.MetricAggregate|undefined} value
86856
+ * @return {!proto.clarifai.api.MetricSearchQuery} returns this
86857
+ */
86858
+ proto.clarifai.api.MetricSearchQuery.prototype.setAggregate = function(value) {
86859
+ return jspb.Message.setWrapperField(this, 6, value);
86860
+ };
86861
+
86862
+
86863
+ /**
86864
+ * Clears the message field making it undefined.
86865
+ * @return {!proto.clarifai.api.MetricSearchQuery} returns this
86866
+ */
86867
+ proto.clarifai.api.MetricSearchQuery.prototype.clearAggregate = function() {
86868
+ return this.setAggregate(undefined);
86869
+ };
86870
+
86871
+
86872
+ /**
86873
+ * Returns whether this field is set.
86874
+ * @return {boolean}
86875
+ */
86876
+ proto.clarifai.api.MetricSearchQuery.prototype.hasAggregate = function() {
86877
+ return jspb.Message.getField(this, 6) != null;
86878
+ };
86879
+
86880
+
86881
+ /**
86882
+ * @enum {number}
86883
+ */
86884
+ proto.clarifai.api.WorkflowModelUseCase = {
86885
+ WORKFLOW_MODEL_USE_CASE_NOT_SET: 0,
86886
+ CLASSIFICATION: 1,
86887
+ DETECTION: 2
86888
+ };
86889
+
86890
+ /**
86891
+ * @enum {number}
86892
+ */
86893
+ proto.clarifai.api.DatasetVersionRequestOrigin = {
86894
+ DATASET_VERSION_REQUEST_ORIGIN_NOT_SET: 0,
86895
+ MANUAL: 1,
86896
+ TRAINING: 2,
86897
+ EVAL_GROUND_TRUTH: 3,
86898
+ EVAL_PREDICTIONS: 4
86899
+ };
86900
+
86901
+ /**
86902
+ * @enum {number}
86903
+ */
86904
+ proto.clarifai.api.DatasetVersionMetricsGroupType = {
86905
+ DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET: 0,
86906
+ INPUT_TYPE: 2,
86907
+ CONCEPT_ID: 10,
86908
+ CONCEPTS_COUNT: 11,
86909
+ BOUNDING_BOXES_COUNT: 20,
86910
+ POLYGONS_COUNT: 21,
86911
+ POINTS_COUNT: 22,
86912
+ MASKS_COUNT: 23,
86913
+ PIXELS_COUNT: 30,
86914
+ ASPECT_RATIO: 31
86915
+ };
86916
+
86917
+ /**
86918
+ * @enum {number}
86919
+ */
86920
+ proto.clarifai.api.DatasetVersionExportFormat = {
86921
+ DATASET_VERSION_EXPORT_FORMAT_NOT_SET: 0,
86922
+ CLARIFAI_DATA_PROTOBUF: 1,
86923
+ CLARIFAI_DATA_JSON: 3,
86924
+ COCO: 2
86925
+ };
86926
+
86927
+ /**
86928
+ * @enum {number}
86929
+ */
86930
+ proto.clarifai.api.ExpirationAction = {
86931
+ EXPIRATION_ACTION_NOT_SET: 0,
86932
+ DELAY: 1,
86933
+ EXPIRY: 2
86934
+ };
86935
+
86936
+ /**
86937
+ * @enum {number}
86938
+ */
86939
+ proto.clarifai.api.LicenseScope = {
86940
+ LICENSE_SCOPE_NOT_SET: 0,
86941
+ PREDICT: 1,
86942
+ TRAIN: 2,
86943
+ SEARCH: 3
86944
+ };
86945
+
86946
+ /**
86947
+ * @enum {number}
86948
+ */
86949
+ proto.clarifai.api.LicenseType = {
86950
+ UNKNOWN_LICENSE_TYPE: 0,
86951
+ FIRST_PARTY: 1,
86952
+ OPEN_SOURCE: 2,
86953
+ CLOSED_SOURCE: 3
86954
+ };
86955
+
86956
+ /**
86957
+ * @enum {number}
86958
+ */
86959
+ proto.clarifai.api.DeployRestriction = {
86960
+ USAGE_RESTRICTION_NOT_SET: 0,
86961
+ NO_LIMITS: 1,
86962
+ SHARED_COMPUTE_ONLY: 2,
86963
+ DEDICATED_COMPUTE_ONLY: 3
86964
+ };
86965
+
86966
+ /**
86967
+ * @enum {number}
86968
+ */
86969
+ proto.clarifai.api.DataType = {
86970
+ UNDEFINED: 0,
86971
+ STRING: 1,
86972
+ UINT8: 2,
86973
+ INT32: 3,
86974
+ INT64: 4,
86975
+ FP32: 5
86976
+ };
86977
+
86978
+ /**
86979
+ * @enum {number}
86980
+ */
86981
+ proto.clarifai.api.ValueComparator = {
86982
+ CONCEPT_THRESHOLD_NOT_SET: 0,
86983
+ GREATER_THAN: 1,
86984
+ GREATER_THAN_OR_EQUAL: 2,
86985
+ LESS_THAN: 3,
86986
+ LESS_THAN_OR_EQUAL: 4,
86987
+ EQUAL: 5
86988
+ };
86989
+
86990
+ /**
86991
+ * @enum {number}
86992
+ */
86993
+ proto.clarifai.api.EvaluationType = {
86994
+ UNDEFINED: 0,
86995
+ CLASSIFICATION: 1,
86996
+ DETECTION: 2,
86997
+ SEGMENTATION: 3,
86998
+ CLUSTERING: 4,
86999
+ TRACKER: 5,
87000
+ GENERATION: 6
87001
+ };
87002
+
87003
+ /**
87004
+ * @enum {number}
87005
+ */
87006
+ proto.clarifai.api.APIEventType = {
87007
+ API_EVENT_TYPE_NOT_SET: 0,
87008
+ ON_PREM_PREDICT: 1,
87009
+ ON_PREM_TRAIN: 2,
87010
+ ON_PREM_SEARCH: 3
87011
+ };
87012
+
87013
+ /**
87014
+ * @enum {number}
87015
+ */
87016
+ proto.clarifai.api.UsageIntervalType = {
87017
+ UNDEF: 0,
87018
+ DAY: 1,
87019
+ MONTH: 2,
87020
+ YEAR: 3
87021
+ };
87022
+
87023
+ /**
87024
+ * @enum {number}
87025
+ */
87026
+ proto.clarifai.api.AnnotationDataType = {
87027
+ ANNOTATION_DATA_TYPE_NOT_SET: 0,
87028
+ TAG: 1,
87029
+ BOUNDING_BOX: 2,
87030
+ POLYGON: 4,
87031
+ POINT: 8,
87032
+ SPAN: 16,
87033
+ MASK: 32
87034
+ };
87035
+
87036
+ /**
87037
+ * @enum {number}
87038
+ */
87039
+ proto.clarifai.api.RoleType = {
87040
+ TEAM: 0,
87041
+ ORG: 1
87042
+ };
87043
+
87044
+ /**
87045
+ * @enum {number}
87046
+ */
87047
+ proto.clarifai.api.StatValueAggType = {
87048
+ SUM: 0,
87049
+ AVG: 1
87050
+ };
87051
+
87052
+ /**
87053
+ * @enum {number}
87054
+ */
87055
+ proto.clarifai.api.StatTimeAggType = {
87056
+ NO_TIME_AGG: 0,
87057
+ YEAR: 1,
87058
+ MONTH: 2,
87059
+ WEEK: 3,
87060
+ DAY: 4,
87061
+ HOUR: 5,
87062
+ MINUTE: 6
87063
+ };
87064
+
87065
+ /**
87066
+ * @enum {number}
87067
+ */
87068
+ proto.clarifai.api.ValidationErrorType = {
87069
+ VALIDATION_ERROR_TYPE_NOT_SET: 0,
87070
+ RESTRICTED: 1,
87071
+ DATABASE: 2,
87072
+ FORMAT: 3
87073
+ };
87074
+
87075
+ /**
87076
+ * @enum {number}
87077
+ */
87078
+ proto.clarifai.api.InputIDConflictResolution = {
87079
+ INPUT_ID_CONFLICT_RESOLUTION_NOT_SET: 0,
87080
+ SKIP: 1,
87081
+ SUFFIX: 2
87082
+ };
87083
+
87084
+ /**
87085
+ * @enum {number}
87086
+ */
87087
+ proto.clarifai.api.RunnerMethodType = {
87088
+ UNKNOWN: 0,
87089
+ UNARY_UNARY: 1,
87090
+ UNARY_STREAMING: 2,
87091
+ STREAMING_UNARY: 3,
87092
+ STREAMING_STREAMING: 4
87093
+ };
87094
+
87095
+ /**
87096
+ * @enum {number}
87097
+ */
87098
+ proto.clarifai.api.EventType = {
87099
+ EVENT_TYPE_NOT_SET: 0,
87100
+ ORGANIZATION_MEMBER_ADD: 100,
84535
87101
  ORGANIZATION_MEMBER_CHANGE: 101,
84536
87102
  ORGANIZATION_MEMBER_REMOVE: 102,
84537
87103
  ORGANIZATION_MEMBER_INVITATION_CREATE: 103,
@@ -84580,4 +87146,25 @@ proto.clarifai.api.EventType = {
84580
87146
  DEPLOYMENT_DELETE: 1102
84581
87147
  };
84582
87148
 
87149
+ /**
87150
+ * @enum {number}
87151
+ */
87152
+ proto.clarifai.api.MetricType = {
87153
+ METRIC_TYPE_NOT_SET: 0,
87154
+ MODEL_REQUEST_COUNT: 1,
87155
+ MODEL_LATENCY: 2
87156
+ };
87157
+
87158
+ /**
87159
+ * @enum {number}
87160
+ */
87161
+ proto.clarifai.api.MetricLabel = {
87162
+ METRIC_LABEL_NOT_SET: 0,
87163
+ APP_ID: 1,
87164
+ MODEL_ID: 2,
87165
+ MODEL_VERSION_ID: 3,
87166
+ CALLER_USER_ID: 4,
87167
+ WORKFLOW_ID: 5
87168
+ };
87169
+
84583
87170
  goog.object.extend(exports, proto.clarifai.api);