clarifai-web-grpc 10.2.1 → 10.3.1

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.
Files changed (35) hide show
  1. package/README.md +13 -11
  2. package/VERSION +1 -1
  3. package/dist/cjs/index.d.ts +2 -1
  4. package/dist/cjs/index.js +8 -2
  5. package/dist/cjs/proto/clarifai/api/resources_pb.js +2720 -113
  6. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +38 -42
  7. package/dist/cjs/proto/clarifai/api/service_pb.js +1042 -445
  8. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +6 -0
  9. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -0
  10. package/dist/cjs/resources.d.ts +1 -0
  11. package/dist/cjs/resources.js +3 -0
  12. package/dist/esm/index.d.ts +2 -1
  13. package/dist/esm/index.js +6 -2
  14. package/dist/esm/proto/clarifai/api/resources_pb.js +2720 -113
  15. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +38 -42
  16. package/dist/esm/proto/clarifai/api/service_pb.js +1042 -445
  17. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +6 -0
  18. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -0
  19. package/dist/esm/resources.d.ts +1 -0
  20. package/dist/esm/resources.js +1 -0
  21. package/examples/post-app.ts +27 -0
  22. package/examples/post-input.ts +42 -0
  23. package/index.ts +7 -2
  24. package/package.json +1 -1
  25. package/proto/clarifai/api/resources_pb.d.ts +435 -0
  26. package/proto/clarifai/api/resources_pb.js +3370 -114
  27. package/proto/clarifai/api/service_grpc_web_pb.d.ts +10 -12
  28. package/proto/clarifai/api/service_grpc_web_pb.js +56 -61
  29. package/proto/clarifai/api/service_pb.d.ts +164 -72
  30. package/proto/clarifai/api/service_pb.js +1534 -767
  31. package/proto/clarifai/api/status/status_code_pb.d.ts +6 -0
  32. package/proto/clarifai/api/status/status_code_pb.js +6 -0
  33. package/proto/clarifai/auth/scope/scope_pb.d.ts +2 -0
  34. package/proto/clarifai/auth/scope/scope_pb.js +2 -0
  35. package/resources.ts +1 -0
@@ -56,21 +56,27 @@ goog.exportSymbol('proto.clarifai.api.AppDuplication', null, global);
56
56
  goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global);
57
57
  goog.exportSymbol('proto.clarifai.api.AppExtraInfo', null, global);
58
58
  goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
59
+ goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
59
60
  goog.exportSymbol('proto.clarifai.api.Audio', null, global);
60
61
  goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
62
+ goog.exportSymbol('proto.clarifai.api.AutoscaleConfig', null, global);
61
63
  goog.exportSymbol('proto.clarifai.api.AzureBlobCreds', null, global);
62
64
  goog.exportSymbol('proto.clarifai.api.BinaryMetrics', null, global);
63
65
  goog.exportSymbol('proto.clarifai.api.BookmarkOrigin', null, global);
64
66
  goog.exportSymbol('proto.clarifai.api.BookmarkOrigin.BookmarkType', null, global);
65
67
  goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global);
68
+ goog.exportSymbol('proto.clarifai.api.BuildInfo', null, global);
66
69
  goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global);
67
70
  goog.exportSymbol('proto.clarifai.api.BulkOperation.InputSourceCase', null, global);
71
+ goog.exportSymbol('proto.clarifai.api.CloudRegion', null, global);
72
+ goog.exportSymbol('proto.clarifai.api.CloudRegion.Cloud', null, global);
68
73
  goog.exportSymbol('proto.clarifai.api.Cluster', null, global);
69
74
  goog.exportSymbol('proto.clarifai.api.Collaboration', null, global);
70
75
  goog.exportSymbol('proto.clarifai.api.Collaborator', null, global);
71
76
  goog.exportSymbol('proto.clarifai.api.Collector', null, global);
72
77
  goog.exportSymbol('proto.clarifai.api.CollectorSource', null, global);
73
78
  goog.exportSymbol('proto.clarifai.api.Color', null, global);
79
+ goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
74
80
  goog.exportSymbol('proto.clarifai.api.Concept', null, global);
75
81
  goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
76
82
  goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
@@ -103,10 +109,14 @@ goog.exportSymbol('proto.clarifai.api.DatasetVersionMetrics', null, global);
103
109
  goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroup', null, global);
104
110
  goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroupType', null, global);
105
111
  goog.exportSymbol('proto.clarifai.api.DatasetVersionProcessingInfo', null, global);
112
+ goog.exportSymbol('proto.clarifai.api.DatasetVersionRequestOrigin', null, global);
106
113
  goog.exportSymbol('proto.clarifai.api.DeleteConcepts', null, global);
107
114
  goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global);
108
115
  goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global);
109
116
  goog.exportSymbol('proto.clarifai.api.DeleteMetadata', null, global);
117
+ goog.exportSymbol('proto.clarifai.api.Deployment', null, global);
118
+ goog.exportSymbol('proto.clarifai.api.Deployment.ObjectCase', null, global);
119
+ goog.exportSymbol('proto.clarifai.api.Deployment.SchedulingChoice', null, global);
110
120
  goog.exportSymbol('proto.clarifai.api.DetailConceptCount', null, global);
111
121
  goog.exportSymbol('proto.clarifai.api.DuplicateAnnotationsResults', null, global);
112
122
  goog.exportSymbol('proto.clarifai.api.EmailAddress', null, global);
@@ -180,6 +190,8 @@ goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global);
180
190
  goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global);
181
191
  goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global);
182
192
  goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
193
+ goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
194
+ goog.exportSymbol('proto.clarifai.api.Nodepool.CapacityType', null, global);
183
195
  goog.exportSymbol('proto.clarifai.api.Operation', null, global);
184
196
  goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
185
197
  goog.exportSymbol('proto.clarifai.api.Output', null, global);
@@ -195,6 +207,7 @@ goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global);
195
207
  goog.exportSymbol('proto.clarifai.api.Polygon', null, global);
196
208
  goog.exportSymbol('proto.clarifai.api.PrecisionRecallCurve', null, global);
197
209
  goog.exportSymbol('proto.clarifai.api.PretrainedModelConfig', null, global);
210
+ goog.exportSymbol('proto.clarifai.api.ProcessingInfo', null, global);
198
211
  goog.exportSymbol('proto.clarifai.api.Progress', null, global);
199
212
  goog.exportSymbol('proto.clarifai.api.Query', null, global);
200
213
  goog.exportSymbol('proto.clarifai.api.ROC', null, global);
@@ -203,6 +216,9 @@ goog.exportSymbol('proto.clarifai.api.Region', null, global);
203
216
  goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
204
217
  goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
205
218
  goog.exportSymbol('proto.clarifai.api.Runner', null, global);
219
+ goog.exportSymbol('proto.clarifai.api.Runner.ObjectCase', null, global);
220
+ goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
221
+ goog.exportSymbol('proto.clarifai.api.RunnerSelector', null, global);
206
222
  goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
207
223
  goog.exportSymbol('proto.clarifai.api.Search', null, global);
208
224
  goog.exportSymbol('proto.clarifai.api.Search.Metric', null, global);
@@ -376,6 +392,27 @@ if (goog.DEBUG && !COMPILED) {
376
392
  */
377
393
  proto.clarifai.api.AppQuery.displayName = 'proto.clarifai.api.AppQuery';
378
394
  }
395
+ /**
396
+ * Generated by JsPbCodeGenerator.
397
+ * @param {Array=} opt_data Optional initial data array, typically from a
398
+ * server response, or constructed directly in Javascript. The array is used
399
+ * in place and becomes part of the constructed object. It is not cloned.
400
+ * If no data is provided, the constructed object will be empty, but still
401
+ * valid.
402
+ * @extends {jspb.Message}
403
+ * @constructor
404
+ */
405
+ proto.clarifai.api.AppResourceCounts = function(opt_data) {
406
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
407
+ };
408
+ goog.inherits(proto.clarifai.api.AppResourceCounts, jspb.Message);
409
+ if (goog.DEBUG && !COMPILED) {
410
+ /**
411
+ * @public
412
+ * @override
413
+ */
414
+ proto.clarifai.api.AppResourceCounts.displayName = 'proto.clarifai.api.AppResourceCounts';
415
+ }
379
416
  /**
380
417
  * Generated by JsPbCodeGenerator.
381
418
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1993,6 +2030,27 @@ if (goog.DEBUG && !COMPILED) {
1993
2030
  */
1994
2031
  proto.clarifai.api.ModelVersion.displayName = 'proto.clarifai.api.ModelVersion';
1995
2032
  }
2033
+ /**
2034
+ * Generated by JsPbCodeGenerator.
2035
+ * @param {Array=} opt_data Optional initial data array, typically from a
2036
+ * server response, or constructed directly in Javascript. The array is used
2037
+ * in place and becomes part of the constructed object. It is not cloned.
2038
+ * If no data is provided, the constructed object will be empty, but still
2039
+ * valid.
2040
+ * @extends {jspb.Message}
2041
+ * @constructor
2042
+ */
2043
+ proto.clarifai.api.BuildInfo = function(opt_data) {
2044
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2045
+ };
2046
+ goog.inherits(proto.clarifai.api.BuildInfo, jspb.Message);
2047
+ if (goog.DEBUG && !COMPILED) {
2048
+ /**
2049
+ * @public
2050
+ * @override
2051
+ */
2052
+ proto.clarifai.api.BuildInfo.displayName = 'proto.clarifai.api.BuildInfo';
2053
+ }
1996
2054
  /**
1997
2055
  * Generated by JsPbCodeGenerator.
1998
2056
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4440,7 +4498,7 @@ if (goog.DEBUG && !COMPILED) {
4440
4498
  * @constructor
4441
4499
  */
4442
4500
  proto.clarifai.api.Runner = function(opt_data) {
4443
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, null);
4501
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, proto.clarifai.api.Runner.oneofGroups_);
4444
4502
  };
4445
4503
  goog.inherits(proto.clarifai.api.Runner, jspb.Message);
4446
4504
  if (goog.DEBUG && !COMPILED) {
@@ -4450,6 +4508,153 @@ if (goog.DEBUG && !COMPILED) {
4450
4508
  */
4451
4509
  proto.clarifai.api.Runner.displayName = 'proto.clarifai.api.Runner';
4452
4510
  }
4511
+ /**
4512
+ * Generated by JsPbCodeGenerator.
4513
+ * @param {Array=} opt_data Optional initial data array, typically from a
4514
+ * server response, or constructed directly in Javascript. The array is used
4515
+ * in place and becomes part of the constructed object. It is not cloned.
4516
+ * If no data is provided, the constructed object will be empty, but still
4517
+ * valid.
4518
+ * @extends {jspb.Message}
4519
+ * @constructor
4520
+ */
4521
+ proto.clarifai.api.Nodepool = function(opt_data) {
4522
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Nodepool.repeatedFields_, null);
4523
+ };
4524
+ goog.inherits(proto.clarifai.api.Nodepool, jspb.Message);
4525
+ if (goog.DEBUG && !COMPILED) {
4526
+ /**
4527
+ * @public
4528
+ * @override
4529
+ */
4530
+ proto.clarifai.api.Nodepool.displayName = 'proto.clarifai.api.Nodepool';
4531
+ }
4532
+ /**
4533
+ * Generated by JsPbCodeGenerator.
4534
+ * @param {Array=} opt_data Optional initial data array, typically from a
4535
+ * server response, or constructed directly in Javascript. The array is used
4536
+ * in place and becomes part of the constructed object. It is not cloned.
4537
+ * If no data is provided, the constructed object will be empty, but still
4538
+ * valid.
4539
+ * @extends {jspb.Message}
4540
+ * @constructor
4541
+ */
4542
+ proto.clarifai.api.CloudRegion = function(opt_data) {
4543
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4544
+ };
4545
+ goog.inherits(proto.clarifai.api.CloudRegion, jspb.Message);
4546
+ if (goog.DEBUG && !COMPILED) {
4547
+ /**
4548
+ * @public
4549
+ * @override
4550
+ */
4551
+ proto.clarifai.api.CloudRegion.displayName = 'proto.clarifai.api.CloudRegion';
4552
+ }
4553
+ /**
4554
+ * Generated by JsPbCodeGenerator.
4555
+ * @param {Array=} opt_data Optional initial data array, typically from a
4556
+ * server response, or constructed directly in Javascript. The array is used
4557
+ * in place and becomes part of the constructed object. It is not cloned.
4558
+ * If no data is provided, the constructed object will be empty, but still
4559
+ * valid.
4560
+ * @extends {jspb.Message}
4561
+ * @constructor
4562
+ */
4563
+ proto.clarifai.api.ComputeInfo = function(opt_data) {
4564
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ComputeInfo.repeatedFields_, null);
4565
+ };
4566
+ goog.inherits(proto.clarifai.api.ComputeInfo, jspb.Message);
4567
+ if (goog.DEBUG && !COMPILED) {
4568
+ /**
4569
+ * @public
4570
+ * @override
4571
+ */
4572
+ proto.clarifai.api.ComputeInfo.displayName = 'proto.clarifai.api.ComputeInfo';
4573
+ }
4574
+ /**
4575
+ * Generated by JsPbCodeGenerator.
4576
+ * @param {Array=} opt_data Optional initial data array, typically from a
4577
+ * server response, or constructed directly in Javascript. The array is used
4578
+ * in place and becomes part of the constructed object. It is not cloned.
4579
+ * If no data is provided, the constructed object will be empty, but still
4580
+ * valid.
4581
+ * @extends {jspb.Message}
4582
+ * @constructor
4583
+ */
4584
+ proto.clarifai.api.AutoscaleConfig = function(opt_data) {
4585
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4586
+ };
4587
+ goog.inherits(proto.clarifai.api.AutoscaleConfig, jspb.Message);
4588
+ if (goog.DEBUG && !COMPILED) {
4589
+ /**
4590
+ * @public
4591
+ * @override
4592
+ */
4593
+ proto.clarifai.api.AutoscaleConfig.displayName = 'proto.clarifai.api.AutoscaleConfig';
4594
+ }
4595
+ /**
4596
+ * Generated by JsPbCodeGenerator.
4597
+ * @param {Array=} opt_data Optional initial data array, typically from a
4598
+ * server response, or constructed directly in Javascript. The array is used
4599
+ * in place and becomes part of the constructed object. It is not cloned.
4600
+ * If no data is provided, the constructed object will be empty, but still
4601
+ * valid.
4602
+ * @extends {jspb.Message}
4603
+ * @constructor
4604
+ */
4605
+ proto.clarifai.api.Deployment = function(opt_data) {
4606
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Deployment.repeatedFields_, proto.clarifai.api.Deployment.oneofGroups_);
4607
+ };
4608
+ goog.inherits(proto.clarifai.api.Deployment, jspb.Message);
4609
+ if (goog.DEBUG && !COMPILED) {
4610
+ /**
4611
+ * @public
4612
+ * @override
4613
+ */
4614
+ proto.clarifai.api.Deployment.displayName = 'proto.clarifai.api.Deployment';
4615
+ }
4616
+ /**
4617
+ * Generated by JsPbCodeGenerator.
4618
+ * @param {Array=} opt_data Optional initial data array, typically from a
4619
+ * server response, or constructed directly in Javascript. The array is used
4620
+ * in place and becomes part of the constructed object. It is not cloned.
4621
+ * If no data is provided, the constructed object will be empty, but still
4622
+ * valid.
4623
+ * @extends {jspb.Message}
4624
+ * @constructor
4625
+ */
4626
+ proto.clarifai.api.RunnerSelector = function(opt_data) {
4627
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4628
+ };
4629
+ goog.inherits(proto.clarifai.api.RunnerSelector, jspb.Message);
4630
+ if (goog.DEBUG && !COMPILED) {
4631
+ /**
4632
+ * @public
4633
+ * @override
4634
+ */
4635
+ proto.clarifai.api.RunnerSelector.displayName = 'proto.clarifai.api.RunnerSelector';
4636
+ }
4637
+ /**
4638
+ * Generated by JsPbCodeGenerator.
4639
+ * @param {Array=} opt_data Optional initial data array, typically from a
4640
+ * server response, or constructed directly in Javascript. The array is used
4641
+ * in place and becomes part of the constructed object. It is not cloned.
4642
+ * If no data is provided, the constructed object will be empty, but still
4643
+ * valid.
4644
+ * @extends {jspb.Message}
4645
+ * @constructor
4646
+ */
4647
+ proto.clarifai.api.ProcessingInfo = function(opt_data) {
4648
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4649
+ };
4650
+ goog.inherits(proto.clarifai.api.ProcessingInfo, jspb.Message);
4651
+ if (goog.DEBUG && !COMPILED) {
4652
+ /**
4653
+ * @public
4654
+ * @override
4655
+ */
4656
+ proto.clarifai.api.ProcessingInfo.displayName = 'proto.clarifai.api.ProcessingInfo';
4657
+ }
4453
4658
 
4454
4659
 
4455
4660
 
@@ -6306,7 +6511,8 @@ proto.clarifai.api.AppExtraInfo.prototype.toObject = function(opt_includeInstanc
6306
6511
  */
6307
6512
  proto.clarifai.api.AppExtraInfo.toObject = function(includeInstance, msg) {
6308
6513
  var f, obj = {
6309
- searchRevisionMarker: jspb.Message.getFieldWithDefault(msg, 1, "")
6514
+ searchRevisionMarker: jspb.Message.getFieldWithDefault(msg, 1, ""),
6515
+ counts: (f = msg.getCounts()) && proto.clarifai.api.AppResourceCounts.toObject(includeInstance, f)
6310
6516
  };
6311
6517
 
6312
6518
  if (includeInstance) {
@@ -6347,6 +6553,11 @@ proto.clarifai.api.AppExtraInfo.deserializeBinaryFromReader = function(msg, read
6347
6553
  var value = /** @type {string} */ (reader.readString());
6348
6554
  msg.setSearchRevisionMarker(value);
6349
6555
  break;
6556
+ case 2:
6557
+ var value = new proto.clarifai.api.AppResourceCounts;
6558
+ reader.readMessage(value,proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader);
6559
+ msg.setCounts(value);
6560
+ break;
6350
6561
  default:
6351
6562
  reader.skipField();
6352
6563
  break;
@@ -6383,6 +6594,14 @@ proto.clarifai.api.AppExtraInfo.serializeBinaryToWriter = function(message, writ
6383
6594
  f
6384
6595
  );
6385
6596
  }
6597
+ f = message.getCounts();
6598
+ if (f != null) {
6599
+ writer.writeMessage(
6600
+ 2,
6601
+ f,
6602
+ proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter
6603
+ );
6604
+ }
6386
6605
  };
6387
6606
 
6388
6607
 
@@ -6404,6 +6623,43 @@ proto.clarifai.api.AppExtraInfo.prototype.setSearchRevisionMarker = function(val
6404
6623
  };
6405
6624
 
6406
6625
 
6626
+ /**
6627
+ * optional AppResourceCounts counts = 2;
6628
+ * @return {?proto.clarifai.api.AppResourceCounts}
6629
+ */
6630
+ proto.clarifai.api.AppExtraInfo.prototype.getCounts = function() {
6631
+ return /** @type{?proto.clarifai.api.AppResourceCounts} */ (
6632
+ jspb.Message.getWrapperField(this, proto.clarifai.api.AppResourceCounts, 2));
6633
+ };
6634
+
6635
+
6636
+ /**
6637
+ * @param {?proto.clarifai.api.AppResourceCounts|undefined} value
6638
+ * @return {!proto.clarifai.api.AppExtraInfo} returns this
6639
+ */
6640
+ proto.clarifai.api.AppExtraInfo.prototype.setCounts = function(value) {
6641
+ return jspb.Message.setWrapperField(this, 2, value);
6642
+ };
6643
+
6644
+
6645
+ /**
6646
+ * Clears the message field making it undefined.
6647
+ * @return {!proto.clarifai.api.AppExtraInfo} returns this
6648
+ */
6649
+ proto.clarifai.api.AppExtraInfo.prototype.clearCounts = function() {
6650
+ return this.setCounts(undefined);
6651
+ };
6652
+
6653
+
6654
+ /**
6655
+ * Returns whether this field is set.
6656
+ * @return {boolean}
6657
+ */
6658
+ proto.clarifai.api.AppExtraInfo.prototype.hasCounts = function() {
6659
+ return jspb.Message.getField(this, 2) != null;
6660
+ };
6661
+
6662
+
6407
6663
 
6408
6664
 
6409
6665
 
@@ -6535,6 +6791,256 @@ proto.clarifai.api.AppQuery.prototype.setName = function(value) {
6535
6791
 
6536
6792
 
6537
6793
 
6794
+
6795
+
6796
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6797
+ /**
6798
+ * Creates an object representation of this proto.
6799
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6800
+ * Optional fields that are not set will be set to undefined.
6801
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6802
+ * For the list of reserved names please see:
6803
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6804
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6805
+ * JSPB instance for transitional soy proto support:
6806
+ * http://goto/soy-param-migration
6807
+ * @return {!Object}
6808
+ */
6809
+ proto.clarifai.api.AppResourceCounts.prototype.toObject = function(opt_includeInstance) {
6810
+ return proto.clarifai.api.AppResourceCounts.toObject(opt_includeInstance, this);
6811
+ };
6812
+
6813
+
6814
+ /**
6815
+ * Static version of the {@see toObject} method.
6816
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6817
+ * the JSPB instance for transitional soy proto support:
6818
+ * http://goto/soy-param-migration
6819
+ * @param {!proto.clarifai.api.AppResourceCounts} msg The msg instance to transform.
6820
+ * @return {!Object}
6821
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6822
+ */
6823
+ proto.clarifai.api.AppResourceCounts.toObject = function(includeInstance, msg) {
6824
+ var f, obj = {
6825
+ datasets: jspb.Message.getFieldWithDefault(msg, 1, 0),
6826
+ models: jspb.Message.getFieldWithDefault(msg, 2, 0),
6827
+ workflows: jspb.Message.getFieldWithDefault(msg, 3, 0),
6828
+ modules: jspb.Message.getFieldWithDefault(msg, 4, 0),
6829
+ inputs: jspb.Message.getFieldWithDefault(msg, 5, 0)
6830
+ };
6831
+
6832
+ if (includeInstance) {
6833
+ obj.$jspbMessageInstance = msg;
6834
+ }
6835
+ return obj;
6836
+ };
6837
+ }
6838
+
6839
+
6840
+ /**
6841
+ * Deserializes binary data (in protobuf wire format).
6842
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6843
+ * @return {!proto.clarifai.api.AppResourceCounts}
6844
+ */
6845
+ proto.clarifai.api.AppResourceCounts.deserializeBinary = function(bytes) {
6846
+ var reader = new jspb.BinaryReader(bytes);
6847
+ var msg = new proto.clarifai.api.AppResourceCounts;
6848
+ return proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader(msg, reader);
6849
+ };
6850
+
6851
+
6852
+ /**
6853
+ * Deserializes binary data (in protobuf wire format) from the
6854
+ * given reader into the given message object.
6855
+ * @param {!proto.clarifai.api.AppResourceCounts} msg The message object to deserialize into.
6856
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6857
+ * @return {!proto.clarifai.api.AppResourceCounts}
6858
+ */
6859
+ proto.clarifai.api.AppResourceCounts.deserializeBinaryFromReader = function(msg, reader) {
6860
+ while (reader.nextField()) {
6861
+ if (reader.isEndGroup()) {
6862
+ break;
6863
+ }
6864
+ var field = reader.getFieldNumber();
6865
+ switch (field) {
6866
+ case 1:
6867
+ var value = /** @type {number} */ (reader.readInt64());
6868
+ msg.setDatasets(value);
6869
+ break;
6870
+ case 2:
6871
+ var value = /** @type {number} */ (reader.readInt64());
6872
+ msg.setModels(value);
6873
+ break;
6874
+ case 3:
6875
+ var value = /** @type {number} */ (reader.readInt64());
6876
+ msg.setWorkflows(value);
6877
+ break;
6878
+ case 4:
6879
+ var value = /** @type {number} */ (reader.readInt64());
6880
+ msg.setModules(value);
6881
+ break;
6882
+ case 5:
6883
+ var value = /** @type {number} */ (reader.readInt64());
6884
+ msg.setInputs(value);
6885
+ break;
6886
+ default:
6887
+ reader.skipField();
6888
+ break;
6889
+ }
6890
+ }
6891
+ return msg;
6892
+ };
6893
+
6894
+
6895
+ /**
6896
+ * Serializes the message to binary data (in protobuf wire format).
6897
+ * @return {!Uint8Array}
6898
+ */
6899
+ proto.clarifai.api.AppResourceCounts.prototype.serializeBinary = function() {
6900
+ var writer = new jspb.BinaryWriter();
6901
+ proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter(this, writer);
6902
+ return writer.getResultBuffer();
6903
+ };
6904
+
6905
+
6906
+ /**
6907
+ * Serializes the given message to binary data (in protobuf wire
6908
+ * format), writing to the given BinaryWriter.
6909
+ * @param {!proto.clarifai.api.AppResourceCounts} message
6910
+ * @param {!jspb.BinaryWriter} writer
6911
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6912
+ */
6913
+ proto.clarifai.api.AppResourceCounts.serializeBinaryToWriter = function(message, writer) {
6914
+ var f = undefined;
6915
+ f = message.getDatasets();
6916
+ if (f !== 0) {
6917
+ writer.writeInt64(
6918
+ 1,
6919
+ f
6920
+ );
6921
+ }
6922
+ f = message.getModels();
6923
+ if (f !== 0) {
6924
+ writer.writeInt64(
6925
+ 2,
6926
+ f
6927
+ );
6928
+ }
6929
+ f = message.getWorkflows();
6930
+ if (f !== 0) {
6931
+ writer.writeInt64(
6932
+ 3,
6933
+ f
6934
+ );
6935
+ }
6936
+ f = message.getModules();
6937
+ if (f !== 0) {
6938
+ writer.writeInt64(
6939
+ 4,
6940
+ f
6941
+ );
6942
+ }
6943
+ f = message.getInputs();
6944
+ if (f !== 0) {
6945
+ writer.writeInt64(
6946
+ 5,
6947
+ f
6948
+ );
6949
+ }
6950
+ };
6951
+
6952
+
6953
+ /**
6954
+ * optional int64 datasets = 1;
6955
+ * @return {number}
6956
+ */
6957
+ proto.clarifai.api.AppResourceCounts.prototype.getDatasets = function() {
6958
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6959
+ };
6960
+
6961
+
6962
+ /**
6963
+ * @param {number} value
6964
+ * @return {!proto.clarifai.api.AppResourceCounts} returns this
6965
+ */
6966
+ proto.clarifai.api.AppResourceCounts.prototype.setDatasets = function(value) {
6967
+ return jspb.Message.setProto3IntField(this, 1, value);
6968
+ };
6969
+
6970
+
6971
+ /**
6972
+ * optional int64 models = 2;
6973
+ * @return {number}
6974
+ */
6975
+ proto.clarifai.api.AppResourceCounts.prototype.getModels = function() {
6976
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6977
+ };
6978
+
6979
+
6980
+ /**
6981
+ * @param {number} value
6982
+ * @return {!proto.clarifai.api.AppResourceCounts} returns this
6983
+ */
6984
+ proto.clarifai.api.AppResourceCounts.prototype.setModels = function(value) {
6985
+ return jspb.Message.setProto3IntField(this, 2, value);
6986
+ };
6987
+
6988
+
6989
+ /**
6990
+ * optional int64 workflows = 3;
6991
+ * @return {number}
6992
+ */
6993
+ proto.clarifai.api.AppResourceCounts.prototype.getWorkflows = function() {
6994
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6995
+ };
6996
+
6997
+
6998
+ /**
6999
+ * @param {number} value
7000
+ * @return {!proto.clarifai.api.AppResourceCounts} returns this
7001
+ */
7002
+ proto.clarifai.api.AppResourceCounts.prototype.setWorkflows = function(value) {
7003
+ return jspb.Message.setProto3IntField(this, 3, value);
7004
+ };
7005
+
7006
+
7007
+ /**
7008
+ * optional int64 modules = 4;
7009
+ * @return {number}
7010
+ */
7011
+ proto.clarifai.api.AppResourceCounts.prototype.getModules = function() {
7012
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
7013
+ };
7014
+
7015
+
7016
+ /**
7017
+ * @param {number} value
7018
+ * @return {!proto.clarifai.api.AppResourceCounts} returns this
7019
+ */
7020
+ proto.clarifai.api.AppResourceCounts.prototype.setModules = function(value) {
7021
+ return jspb.Message.setProto3IntField(this, 4, value);
7022
+ };
7023
+
7024
+
7025
+ /**
7026
+ * optional int64 inputs = 5;
7027
+ * @return {number}
7028
+ */
7029
+ proto.clarifai.api.AppResourceCounts.prototype.getInputs = function() {
7030
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
7031
+ };
7032
+
7033
+
7034
+ /**
7035
+ * @param {number} value
7036
+ * @return {!proto.clarifai.api.AppResourceCounts} returns this
7037
+ */
7038
+ proto.clarifai.api.AppResourceCounts.prototype.setInputs = function(value) {
7039
+ return jspb.Message.setProto3IntField(this, 5, value);
7040
+ };
7041
+
7042
+
7043
+
6538
7044
  /**
6539
7045
  * List of repeated fields within this message type.
6540
7046
  * @private {!Array<number>}
@@ -19409,7 +19915,8 @@ proto.clarifai.api.DatasetVersion.toObject = function(includeInstance, msg) {
19409
19915
  exportInfo: (f = msg.getExportInfo()) && proto.clarifai.api.DatasetVersionExportInfo.toObject(includeInstance, f),
19410
19916
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
19411
19917
  visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
19412
- embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f
19918
+ embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
19919
+ requestOrigin: jspb.Message.getFieldWithDefault(msg, 20, 0)
19413
19920
  };
19414
19921
 
19415
19922
  if (includeInstance) {
@@ -19521,6 +20028,10 @@ proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader = function(msg, re
19521
20028
  var value = /** @type {string} */ (reader.readString());
19522
20029
  msg.addEmbedModelVersionIds(value);
19523
20030
  break;
20031
+ case 20:
20032
+ var value = /** @type {!proto.clarifai.api.DatasetVersionRequestOrigin} */ (reader.readEnum());
20033
+ msg.setRequestOrigin(value);
20034
+ break;
19524
20035
  default:
19525
20036
  reader.skipField();
19526
20037
  break;
@@ -19668,6 +20179,13 @@ proto.clarifai.api.DatasetVersion.serializeBinaryToWriter = function(message, wr
19668
20179
  f
19669
20180
  );
19670
20181
  }
20182
+ f = message.getRequestOrigin();
20183
+ if (f !== 0.0) {
20184
+ writer.writeEnum(
20185
+ 20,
20186
+ f
20187
+ );
20188
+ }
19671
20189
  };
19672
20190
 
19673
20191
 
@@ -20154,6 +20672,24 @@ proto.clarifai.api.DatasetVersion.prototype.clearEmbedModelVersionIdsList = func
20154
20672
  };
20155
20673
 
20156
20674
 
20675
+ /**
20676
+ * optional DatasetVersionRequestOrigin request_origin = 20;
20677
+ * @return {!proto.clarifai.api.DatasetVersionRequestOrigin}
20678
+ */
20679
+ proto.clarifai.api.DatasetVersion.prototype.getRequestOrigin = function() {
20680
+ return /** @type {!proto.clarifai.api.DatasetVersionRequestOrigin} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
20681
+ };
20682
+
20683
+
20684
+ /**
20685
+ * @param {!proto.clarifai.api.DatasetVersionRequestOrigin} value
20686
+ * @return {!proto.clarifai.api.DatasetVersion} returns this
20687
+ */
20688
+ proto.clarifai.api.DatasetVersion.prototype.setRequestOrigin = function(value) {
20689
+ return jspb.Message.setProto3EnumField(this, 20, value);
20690
+ };
20691
+
20692
+
20157
20693
 
20158
20694
 
20159
20695
 
@@ -29511,7 +30047,9 @@ proto.clarifai.api.ModelVersion.toObject = function(includeInstance, msg) {
29511
30047
  inputInfo: (f = msg.getInputInfo()) && proto.clarifai.api.InputInfo.toObject(includeInstance, f),
29512
30048
  trainInfo: (f = msg.getTrainInfo()) && proto.clarifai.api.TrainInfo.toObject(includeInstance, f),
29513
30049
  importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f),
29514
- trainLog: jspb.Message.getFieldWithDefault(msg, 23, "")
30050
+ trainLog: jspb.Message.getFieldWithDefault(msg, 23, ""),
30051
+ inferenceComputeInfo: (f = msg.getInferenceComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f),
30052
+ buildInfo: (f = msg.getBuildInfo()) && proto.clarifai.api.BuildInfo.toObject(includeInstance, f)
29515
30053
  };
29516
30054
 
29517
30055
  if (includeInstance) {
@@ -29640,6 +30178,16 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function(msg, read
29640
30178
  var value = /** @type {string} */ (reader.readString());
29641
30179
  msg.setTrainLog(value);
29642
30180
  break;
30181
+ case 24:
30182
+ var value = new proto.clarifai.api.ComputeInfo;
30183
+ reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
30184
+ msg.setInferenceComputeInfo(value);
30185
+ break;
30186
+ case 25:
30187
+ var value = new proto.clarifai.api.BuildInfo;
30188
+ reader.readMessage(value,proto.clarifai.api.BuildInfo.deserializeBinaryFromReader);
30189
+ msg.setBuildInfo(value);
30190
+ break;
29643
30191
  default:
29644
30192
  reader.skipField();
29645
30193
  break;
@@ -29821,6 +30369,22 @@ proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function(message, writ
29821
30369
  f
29822
30370
  );
29823
30371
  }
30372
+ f = message.getInferenceComputeInfo();
30373
+ if (f != null) {
30374
+ writer.writeMessage(
30375
+ 24,
30376
+ f,
30377
+ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
30378
+ );
30379
+ }
30380
+ f = message.getBuildInfo();
30381
+ if (f != null) {
30382
+ writer.writeMessage(
30383
+ 25,
30384
+ f,
30385
+ proto.clarifai.api.BuildInfo.serializeBinaryToWriter
30386
+ );
30387
+ }
29824
30388
  };
29825
30389
 
29826
30390
 
@@ -30412,6 +30976,270 @@ proto.clarifai.api.ModelVersion.prototype.setTrainLog = function(value) {
30412
30976
  };
30413
30977
 
30414
30978
 
30979
+ /**
30980
+ * optional ComputeInfo inference_compute_info = 24;
30981
+ * @return {?proto.clarifai.api.ComputeInfo}
30982
+ */
30983
+ proto.clarifai.api.ModelVersion.prototype.getInferenceComputeInfo = function() {
30984
+ return /** @type{?proto.clarifai.api.ComputeInfo} */ (
30985
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 24));
30986
+ };
30987
+
30988
+
30989
+ /**
30990
+ * @param {?proto.clarifai.api.ComputeInfo|undefined} value
30991
+ * @return {!proto.clarifai.api.ModelVersion} returns this
30992
+ */
30993
+ proto.clarifai.api.ModelVersion.prototype.setInferenceComputeInfo = function(value) {
30994
+ return jspb.Message.setWrapperField(this, 24, value);
30995
+ };
30996
+
30997
+
30998
+ /**
30999
+ * Clears the message field making it undefined.
31000
+ * @return {!proto.clarifai.api.ModelVersion} returns this
31001
+ */
31002
+ proto.clarifai.api.ModelVersion.prototype.clearInferenceComputeInfo = function() {
31003
+ return this.setInferenceComputeInfo(undefined);
31004
+ };
31005
+
31006
+
31007
+ /**
31008
+ * Returns whether this field is set.
31009
+ * @return {boolean}
31010
+ */
31011
+ proto.clarifai.api.ModelVersion.prototype.hasInferenceComputeInfo = function() {
31012
+ return jspb.Message.getField(this, 24) != null;
31013
+ };
31014
+
31015
+
31016
+ /**
31017
+ * optional BuildInfo build_info = 25;
31018
+ * @return {?proto.clarifai.api.BuildInfo}
31019
+ */
31020
+ proto.clarifai.api.ModelVersion.prototype.getBuildInfo = function() {
31021
+ return /** @type{?proto.clarifai.api.BuildInfo} */ (
31022
+ jspb.Message.getWrapperField(this, proto.clarifai.api.BuildInfo, 25));
31023
+ };
31024
+
31025
+
31026
+ /**
31027
+ * @param {?proto.clarifai.api.BuildInfo|undefined} value
31028
+ * @return {!proto.clarifai.api.ModelVersion} returns this
31029
+ */
31030
+ proto.clarifai.api.ModelVersion.prototype.setBuildInfo = function(value) {
31031
+ return jspb.Message.setWrapperField(this, 25, value);
31032
+ };
31033
+
31034
+
31035
+ /**
31036
+ * Clears the message field making it undefined.
31037
+ * @return {!proto.clarifai.api.ModelVersion} returns this
31038
+ */
31039
+ proto.clarifai.api.ModelVersion.prototype.clearBuildInfo = function() {
31040
+ return this.setBuildInfo(undefined);
31041
+ };
31042
+
31043
+
31044
+ /**
31045
+ * Returns whether this field is set.
31046
+ * @return {boolean}
31047
+ */
31048
+ proto.clarifai.api.ModelVersion.prototype.hasBuildInfo = function() {
31049
+ return jspb.Message.getField(this, 25) != null;
31050
+ };
31051
+
31052
+
31053
+
31054
+
31055
+
31056
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31057
+ /**
31058
+ * Creates an object representation of this proto.
31059
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31060
+ * Optional fields that are not set will be set to undefined.
31061
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31062
+ * For the list of reserved names please see:
31063
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31064
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31065
+ * JSPB instance for transitional soy proto support:
31066
+ * http://goto/soy-param-migration
31067
+ * @return {!Object}
31068
+ */
31069
+ proto.clarifai.api.BuildInfo.prototype.toObject = function(opt_includeInstance) {
31070
+ return proto.clarifai.api.BuildInfo.toObject(opt_includeInstance, this);
31071
+ };
31072
+
31073
+
31074
+ /**
31075
+ * Static version of the {@see toObject} method.
31076
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31077
+ * the JSPB instance for transitional soy proto support:
31078
+ * http://goto/soy-param-migration
31079
+ * @param {!proto.clarifai.api.BuildInfo} msg The msg instance to transform.
31080
+ * @return {!Object}
31081
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31082
+ */
31083
+ proto.clarifai.api.BuildInfo.toObject = function(includeInstance, msg) {
31084
+ var f, obj = {
31085
+ dockerImageName: jspb.Message.getFieldWithDefault(msg, 1, ""),
31086
+ dockerImageTag: jspb.Message.getFieldWithDefault(msg, 2, ""),
31087
+ dockerImageDigest: jspb.Message.getFieldWithDefault(msg, 3, "")
31088
+ };
31089
+
31090
+ if (includeInstance) {
31091
+ obj.$jspbMessageInstance = msg;
31092
+ }
31093
+ return obj;
31094
+ };
31095
+ }
31096
+
31097
+
31098
+ /**
31099
+ * Deserializes binary data (in protobuf wire format).
31100
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
31101
+ * @return {!proto.clarifai.api.BuildInfo}
31102
+ */
31103
+ proto.clarifai.api.BuildInfo.deserializeBinary = function(bytes) {
31104
+ var reader = new jspb.BinaryReader(bytes);
31105
+ var msg = new proto.clarifai.api.BuildInfo;
31106
+ return proto.clarifai.api.BuildInfo.deserializeBinaryFromReader(msg, reader);
31107
+ };
31108
+
31109
+
31110
+ /**
31111
+ * Deserializes binary data (in protobuf wire format) from the
31112
+ * given reader into the given message object.
31113
+ * @param {!proto.clarifai.api.BuildInfo} msg The message object to deserialize into.
31114
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31115
+ * @return {!proto.clarifai.api.BuildInfo}
31116
+ */
31117
+ proto.clarifai.api.BuildInfo.deserializeBinaryFromReader = function(msg, reader) {
31118
+ while (reader.nextField()) {
31119
+ if (reader.isEndGroup()) {
31120
+ break;
31121
+ }
31122
+ var field = reader.getFieldNumber();
31123
+ switch (field) {
31124
+ case 1:
31125
+ var value = /** @type {string} */ (reader.readString());
31126
+ msg.setDockerImageName(value);
31127
+ break;
31128
+ case 2:
31129
+ var value = /** @type {string} */ (reader.readString());
31130
+ msg.setDockerImageTag(value);
31131
+ break;
31132
+ case 3:
31133
+ var value = /** @type {string} */ (reader.readString());
31134
+ msg.setDockerImageDigest(value);
31135
+ break;
31136
+ default:
31137
+ reader.skipField();
31138
+ break;
31139
+ }
31140
+ }
31141
+ return msg;
31142
+ };
31143
+
31144
+
31145
+ /**
31146
+ * Serializes the message to binary data (in protobuf wire format).
31147
+ * @return {!Uint8Array}
31148
+ */
31149
+ proto.clarifai.api.BuildInfo.prototype.serializeBinary = function() {
31150
+ var writer = new jspb.BinaryWriter();
31151
+ proto.clarifai.api.BuildInfo.serializeBinaryToWriter(this, writer);
31152
+ return writer.getResultBuffer();
31153
+ };
31154
+
31155
+
31156
+ /**
31157
+ * Serializes the given message to binary data (in protobuf wire
31158
+ * format), writing to the given BinaryWriter.
31159
+ * @param {!proto.clarifai.api.BuildInfo} message
31160
+ * @param {!jspb.BinaryWriter} writer
31161
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31162
+ */
31163
+ proto.clarifai.api.BuildInfo.serializeBinaryToWriter = function(message, writer) {
31164
+ var f = undefined;
31165
+ f = message.getDockerImageName();
31166
+ if (f.length > 0) {
31167
+ writer.writeString(
31168
+ 1,
31169
+ f
31170
+ );
31171
+ }
31172
+ f = message.getDockerImageTag();
31173
+ if (f.length > 0) {
31174
+ writer.writeString(
31175
+ 2,
31176
+ f
31177
+ );
31178
+ }
31179
+ f = message.getDockerImageDigest();
31180
+ if (f.length > 0) {
31181
+ writer.writeString(
31182
+ 3,
31183
+ f
31184
+ );
31185
+ }
31186
+ };
31187
+
31188
+
31189
+ /**
31190
+ * optional string docker_image_name = 1;
31191
+ * @return {string}
31192
+ */
31193
+ proto.clarifai.api.BuildInfo.prototype.getDockerImageName = function() {
31194
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
31195
+ };
31196
+
31197
+
31198
+ /**
31199
+ * @param {string} value
31200
+ * @return {!proto.clarifai.api.BuildInfo} returns this
31201
+ */
31202
+ proto.clarifai.api.BuildInfo.prototype.setDockerImageName = function(value) {
31203
+ return jspb.Message.setProto3StringField(this, 1, value);
31204
+ };
31205
+
31206
+
31207
+ /**
31208
+ * optional string docker_image_tag = 2;
31209
+ * @return {string}
31210
+ */
31211
+ proto.clarifai.api.BuildInfo.prototype.getDockerImageTag = function() {
31212
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
31213
+ };
31214
+
31215
+
31216
+ /**
31217
+ * @param {string} value
31218
+ * @return {!proto.clarifai.api.BuildInfo} returns this
31219
+ */
31220
+ proto.clarifai.api.BuildInfo.prototype.setDockerImageTag = function(value) {
31221
+ return jspb.Message.setProto3StringField(this, 2, value);
31222
+ };
31223
+
31224
+
31225
+ /**
31226
+ * optional string docker_image_digest = 3;
31227
+ * @return {string}
31228
+ */
31229
+ proto.clarifai.api.BuildInfo.prototype.getDockerImageDigest = function() {
31230
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
31231
+ };
31232
+
31233
+
31234
+ /**
31235
+ * @param {string} value
31236
+ * @return {!proto.clarifai.api.BuildInfo} returns this
31237
+ */
31238
+ proto.clarifai.api.BuildInfo.prototype.setDockerImageDigest = function(value) {
31239
+ return jspb.Message.setProto3StringField(this, 3, value);
31240
+ };
31241
+
31242
+
30415
31243
 
30416
31244
 
30417
31245
 
@@ -33975,7 +34803,9 @@ proto.clarifai.api.EvalTestSetEntry.toObject = function(includeInstance, msg) {
33975
34803
  proto.clarifai.api.Concept.toObject, includeInstance),
33976
34804
  groundTruthConceptsList: jspb.Message.toObjectList(msg.getGroundTruthConceptsList(),
33977
34805
  proto.clarifai.api.Concept.toObject, includeInstance),
33978
- annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f)
34806
+ annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f),
34807
+ predictedAnnotation: (f = msg.getPredictedAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f),
34808
+ groundTruthAnnotation: (f = msg.getGroundTruthAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f)
33979
34809
  };
33980
34810
 
33981
34811
  if (includeInstance) {
@@ -34032,6 +34862,16 @@ proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader = function(msg,
34032
34862
  reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader);
34033
34863
  msg.setAnnotation(value);
34034
34864
  break;
34865
+ case 7:
34866
+ var value = new proto.clarifai.api.Annotation;
34867
+ reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader);
34868
+ msg.setPredictedAnnotation(value);
34869
+ break;
34870
+ case 8:
34871
+ var value = new proto.clarifai.api.Annotation;
34872
+ reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader);
34873
+ msg.setGroundTruthAnnotation(value);
34874
+ break;
34035
34875
  default:
34036
34876
  reader.skipField();
34037
34877
  break;
@@ -34093,6 +34933,22 @@ proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter = function(message,
34093
34933
  proto.clarifai.api.Annotation.serializeBinaryToWriter
34094
34934
  );
34095
34935
  }
34936
+ f = message.getPredictedAnnotation();
34937
+ if (f != null) {
34938
+ writer.writeMessage(
34939
+ 7,
34940
+ f,
34941
+ proto.clarifai.api.Annotation.serializeBinaryToWriter
34942
+ );
34943
+ }
34944
+ f = message.getGroundTruthAnnotation();
34945
+ if (f != null) {
34946
+ writer.writeMessage(
34947
+ 8,
34948
+ f,
34949
+ proto.clarifai.api.Annotation.serializeBinaryToWriter
34950
+ );
34951
+ }
34096
34952
  };
34097
34953
 
34098
34954
 
@@ -34246,6 +35102,80 @@ proto.clarifai.api.EvalTestSetEntry.prototype.hasAnnotation = function() {
34246
35102
  };
34247
35103
 
34248
35104
 
35105
+ /**
35106
+ * optional Annotation predicted_annotation = 7;
35107
+ * @return {?proto.clarifai.api.Annotation}
35108
+ */
35109
+ proto.clarifai.api.EvalTestSetEntry.prototype.getPredictedAnnotation = function() {
35110
+ return /** @type{?proto.clarifai.api.Annotation} */ (
35111
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 7));
35112
+ };
35113
+
35114
+
35115
+ /**
35116
+ * @param {?proto.clarifai.api.Annotation|undefined} value
35117
+ * @return {!proto.clarifai.api.EvalTestSetEntry} returns this
35118
+ */
35119
+ proto.clarifai.api.EvalTestSetEntry.prototype.setPredictedAnnotation = function(value) {
35120
+ return jspb.Message.setWrapperField(this, 7, value);
35121
+ };
35122
+
35123
+
35124
+ /**
35125
+ * Clears the message field making it undefined.
35126
+ * @return {!proto.clarifai.api.EvalTestSetEntry} returns this
35127
+ */
35128
+ proto.clarifai.api.EvalTestSetEntry.prototype.clearPredictedAnnotation = function() {
35129
+ return this.setPredictedAnnotation(undefined);
35130
+ };
35131
+
35132
+
35133
+ /**
35134
+ * Returns whether this field is set.
35135
+ * @return {boolean}
35136
+ */
35137
+ proto.clarifai.api.EvalTestSetEntry.prototype.hasPredictedAnnotation = function() {
35138
+ return jspb.Message.getField(this, 7) != null;
35139
+ };
35140
+
35141
+
35142
+ /**
35143
+ * optional Annotation ground_truth_annotation = 8;
35144
+ * @return {?proto.clarifai.api.Annotation}
35145
+ */
35146
+ proto.clarifai.api.EvalTestSetEntry.prototype.getGroundTruthAnnotation = function() {
35147
+ return /** @type{?proto.clarifai.api.Annotation} */ (
35148
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 8));
35149
+ };
35150
+
35151
+
35152
+ /**
35153
+ * @param {?proto.clarifai.api.Annotation|undefined} value
35154
+ * @return {!proto.clarifai.api.EvalTestSetEntry} returns this
35155
+ */
35156
+ proto.clarifai.api.EvalTestSetEntry.prototype.setGroundTruthAnnotation = function(value) {
35157
+ return jspb.Message.setWrapperField(this, 8, value);
35158
+ };
35159
+
35160
+
35161
+ /**
35162
+ * Clears the message field making it undefined.
35163
+ * @return {!proto.clarifai.api.EvalTestSetEntry} returns this
35164
+ */
35165
+ proto.clarifai.api.EvalTestSetEntry.prototype.clearGroundTruthAnnotation = function() {
35166
+ return this.setGroundTruthAnnotation(undefined);
35167
+ };
35168
+
35169
+
35170
+ /**
35171
+ * Returns whether this field is set.
35172
+ * @return {boolean}
35173
+ */
35174
+ proto.clarifai.api.EvalTestSetEntry.prototype.hasGroundTruthAnnotation = function() {
35175
+ return jspb.Message.getField(this, 8) != null;
35176
+ };
35177
+
35178
+
34249
35179
 
34250
35180
 
34251
35181
 
@@ -50431,7 +51361,8 @@ proto.clarifai.api.TaskStatusCountPerUser.toObject = function(includeInstance, m
50431
51361
  awaitingReview: jspb.Message.getFieldWithDefault(msg, 3, 0),
50432
51362
  success: jspb.Message.getFieldWithDefault(msg, 4, 0),
50433
51363
  reviewDenied: jspb.Message.getFieldWithDefault(msg, 5, 0),
50434
- awaitingConsensusReview: jspb.Message.getFieldWithDefault(msg, 6, 0)
51364
+ awaitingConsensusReview: jspb.Message.getFieldWithDefault(msg, 6, 0),
51365
+ worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f)
50435
51366
  };
50436
51367
 
50437
51368
  if (includeInstance) {
@@ -50492,6 +51423,11 @@ proto.clarifai.api.TaskStatusCountPerUser.deserializeBinaryFromReader = function
50492
51423
  var value = /** @type {number} */ (reader.readUint32());
50493
51424
  msg.setAwaitingConsensusReview(value);
50494
51425
  break;
51426
+ case 7:
51427
+ var value = new proto.clarifai.api.Worker;
51428
+ reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
51429
+ msg.setWorker(value);
51430
+ break;
50495
51431
  default:
50496
51432
  reader.skipField();
50497
51433
  break;
@@ -50563,6 +51499,14 @@ proto.clarifai.api.TaskStatusCountPerUser.serializeBinaryToWriter = function(mes
50563
51499
  f
50564
51500
  );
50565
51501
  }
51502
+ f = message.getWorker();
51503
+ if (f != null) {
51504
+ writer.writeMessage(
51505
+ 7,
51506
+ f,
51507
+ proto.clarifai.api.Worker.serializeBinaryToWriter
51508
+ );
51509
+ }
50566
51510
  };
50567
51511
 
50568
51512
 
@@ -50674,6 +51618,43 @@ proto.clarifai.api.TaskStatusCountPerUser.prototype.setAwaitingConsensusReview =
50674
51618
  };
50675
51619
 
50676
51620
 
51621
+ /**
51622
+ * optional Worker worker = 7;
51623
+ * @return {?proto.clarifai.api.Worker}
51624
+ */
51625
+ proto.clarifai.api.TaskStatusCountPerUser.prototype.getWorker = function() {
51626
+ return /** @type{?proto.clarifai.api.Worker} */ (
51627
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 7));
51628
+ };
51629
+
51630
+
51631
+ /**
51632
+ * @param {?proto.clarifai.api.Worker|undefined} value
51633
+ * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this
51634
+ */
51635
+ proto.clarifai.api.TaskStatusCountPerUser.prototype.setWorker = function(value) {
51636
+ return jspb.Message.setWrapperField(this, 7, value);
51637
+ };
51638
+
51639
+
51640
+ /**
51641
+ * Clears the message field making it undefined.
51642
+ * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this
51643
+ */
51644
+ proto.clarifai.api.TaskStatusCountPerUser.prototype.clearWorker = function() {
51645
+ return this.setWorker(undefined);
51646
+ };
51647
+
51648
+
51649
+ /**
51650
+ * Returns whether this field is set.
51651
+ * @return {boolean}
51652
+ */
51653
+ proto.clarifai.api.TaskStatusCountPerUser.prototype.hasWorker = function() {
51654
+ return jspb.Message.getField(this, 7) != null;
51655
+ };
51656
+
51657
+
50677
51658
 
50678
51659
 
50679
51660
 
@@ -64332,6 +65313,32 @@ proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function(value) {
64332
65313
  */
64333
65314
  proto.clarifai.api.Runner.repeatedFields_ = [7];
64334
65315
 
65316
+ /**
65317
+ * Oneof group definitions for this message. Each group defines the field
65318
+ * numbers belonging to that group. When of these fields' value is set, all
65319
+ * other fields in the group are cleared. During deserialization, if multiple
65320
+ * fields are encountered for a group, only the last value seen will be kept.
65321
+ * @private {!Array<!Array<number>>}
65322
+ * @const
65323
+ */
65324
+ proto.clarifai.api.Runner.oneofGroups_ = [[9,10]];
65325
+
65326
+ /**
65327
+ * @enum {number}
65328
+ */
65329
+ proto.clarifai.api.Runner.ObjectCase = {
65330
+ OBJECT_NOT_SET: 0,
65331
+ MODEL: 9,
65332
+ WORKFLOW: 10
65333
+ };
65334
+
65335
+ /**
65336
+ * @return {proto.clarifai.api.Runner.ObjectCase}
65337
+ */
65338
+ proto.clarifai.api.Runner.prototype.getObjectCase = function() {
65339
+ return /** @type {proto.clarifai.api.Runner.ObjectCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Runner.oneofGroups_[0]));
65340
+ };
65341
+
64335
65342
 
64336
65343
 
64337
65344
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -64369,7 +65376,11 @@ proto.clarifai.api.Runner.toObject = function(includeInstance, msg) {
64369
65376
  modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
64370
65377
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
64371
65378
  userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
64372
- labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
65379
+ labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
65380
+ model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
65381
+ workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
65382
+ nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
65383
+ computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
64373
65384
  };
64374
65385
 
64375
65386
  if (includeInstance) {
@@ -64437,6 +65448,26 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function(msg, reader) {
64437
65448
  var value = /** @type {string} */ (reader.readString());
64438
65449
  msg.addLabels(value);
64439
65450
  break;
65451
+ case 9:
65452
+ var value = new proto.clarifai.api.Model;
65453
+ reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
65454
+ msg.setModel(value);
65455
+ break;
65456
+ case 10:
65457
+ var value = new proto.clarifai.api.Workflow;
65458
+ reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
65459
+ msg.setWorkflow(value);
65460
+ break;
65461
+ case 12:
65462
+ var value = new proto.clarifai.api.Nodepool;
65463
+ reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
65464
+ msg.setNodepool(value);
65465
+ break;
65466
+ case 13:
65467
+ var value = new proto.clarifai.api.ComputeInfo;
65468
+ reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
65469
+ msg.setComputeInfo(value);
65470
+ break;
64440
65471
  default:
64441
65472
  reader.skipField();
64442
65473
  break;
@@ -64518,6 +65549,38 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) {
64518
65549
  f
64519
65550
  );
64520
65551
  }
65552
+ f = message.getModel();
65553
+ if (f != null) {
65554
+ writer.writeMessage(
65555
+ 9,
65556
+ f,
65557
+ proto.clarifai.api.Model.serializeBinaryToWriter
65558
+ );
65559
+ }
65560
+ f = message.getWorkflow();
65561
+ if (f != null) {
65562
+ writer.writeMessage(
65563
+ 10,
65564
+ f,
65565
+ proto.clarifai.api.Workflow.serializeBinaryToWriter
65566
+ );
65567
+ }
65568
+ f = message.getNodepool();
65569
+ if (f != null) {
65570
+ writer.writeMessage(
65571
+ 12,
65572
+ f,
65573
+ proto.clarifai.api.Nodepool.serializeBinaryToWriter
65574
+ );
65575
+ }
65576
+ f = message.getComputeInfo();
65577
+ if (f != null) {
65578
+ writer.writeMessage(
65579
+ 13,
65580
+ f,
65581
+ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
65582
+ );
65583
+ }
64521
65584
  };
64522
65585
 
64523
65586
 
@@ -64724,175 +65787,2368 @@ proto.clarifai.api.Runner.prototype.clearLabelsList = function() {
64724
65787
 
64725
65788
 
64726
65789
  /**
64727
- * @enum {number}
65790
+ * optional Model model = 9;
65791
+ * @return {?proto.clarifai.api.Model}
64728
65792
  */
64729
- proto.clarifai.api.WorkflowModelUseCase = {
64730
- WORKFLOW_MODEL_USE_CASE_NOT_SET: 0,
64731
- CLASSIFICATION: 1,
64732
- DETECTION: 2
65793
+ proto.clarifai.api.Runner.prototype.getModel = function() {
65794
+ return /** @type{?proto.clarifai.api.Model} */ (
65795
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 9));
64733
65796
  };
64734
65797
 
65798
+
64735
65799
  /**
64736
- * @enum {number}
65800
+ * @param {?proto.clarifai.api.Model|undefined} value
65801
+ * @return {!proto.clarifai.api.Runner} returns this
65802
+ */
65803
+ proto.clarifai.api.Runner.prototype.setModel = function(value) {
65804
+ return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.Runner.oneofGroups_[0], value);
65805
+ };
65806
+
65807
+
65808
+ /**
65809
+ * Clears the message field making it undefined.
65810
+ * @return {!proto.clarifai.api.Runner} returns this
64737
65811
  */
64738
- proto.clarifai.api.DatasetVersionMetricsGroupType = {
64739
- DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET: 0,
64740
- INPUT_TYPE: 2,
64741
- CONCEPT_ID: 10,
64742
- CONCEPTS_COUNT: 11,
64743
- BOUNDING_BOXES_COUNT: 20,
64744
- POLYGONS_COUNT: 21,
64745
- POINTS_COUNT: 22,
64746
- MASKS_COUNT: 23,
64747
- PIXELS_COUNT: 30,
64748
- ASPECT_RATIO: 31
65812
+ proto.clarifai.api.Runner.prototype.clearModel = function() {
65813
+ return this.setModel(undefined);
64749
65814
  };
64750
65815
 
65816
+
64751
65817
  /**
64752
- * @enum {number}
65818
+ * Returns whether this field is set.
65819
+ * @return {boolean}
64753
65820
  */
64754
- proto.clarifai.api.DatasetVersionExportFormat = {
64755
- DATASET_VERSION_EXPORT_FORMAT_NOT_SET: 0,
64756
- CLARIFAI_DATA_PROTOBUF: 1,
64757
- CLARIFAI_DATA_JSON: 3,
64758
- COCO: 2
65821
+ proto.clarifai.api.Runner.prototype.hasModel = function() {
65822
+ return jspb.Message.getField(this, 9) != null;
64759
65823
  };
64760
65824
 
65825
+
64761
65826
  /**
64762
- * @enum {number}
65827
+ * optional Workflow workflow = 10;
65828
+ * @return {?proto.clarifai.api.Workflow}
64763
65829
  */
64764
- proto.clarifai.api.ExpirationAction = {
64765
- EXPIRATION_ACTION_NOT_SET: 0,
64766
- DELAY: 1,
64767
- EXPIRY: 2
65830
+ proto.clarifai.api.Runner.prototype.getWorkflow = function() {
65831
+ return /** @type{?proto.clarifai.api.Workflow} */ (
65832
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 10));
64768
65833
  };
64769
65834
 
65835
+
64770
65836
  /**
64771
- * @enum {number}
65837
+ * @param {?proto.clarifai.api.Workflow|undefined} value
65838
+ * @return {!proto.clarifai.api.Runner} returns this
65839
+ */
65840
+ proto.clarifai.api.Runner.prototype.setWorkflow = function(value) {
65841
+ return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.Runner.oneofGroups_[0], value);
65842
+ };
65843
+
65844
+
65845
+ /**
65846
+ * Clears the message field making it undefined.
65847
+ * @return {!proto.clarifai.api.Runner} returns this
64772
65848
  */
64773
- proto.clarifai.api.LicenseScope = {
64774
- LICENSE_SCOPE_NOT_SET: 0,
64775
- PREDICT: 1,
64776
- TRAIN: 2,
64777
- SEARCH: 3
65849
+ proto.clarifai.api.Runner.prototype.clearWorkflow = function() {
65850
+ return this.setWorkflow(undefined);
64778
65851
  };
64779
65852
 
65853
+
64780
65854
  /**
64781
- * @enum {number}
65855
+ * Returns whether this field is set.
65856
+ * @return {boolean}
64782
65857
  */
64783
- proto.clarifai.api.DataType = {
64784
- UNDEFINED: 0,
64785
- STRING: 1,
64786
- UINT8: 2,
64787
- INT32: 3,
64788
- INT64: 4,
64789
- FP32: 5
65858
+ proto.clarifai.api.Runner.prototype.hasWorkflow = function() {
65859
+ return jspb.Message.getField(this, 10) != null;
64790
65860
  };
64791
65861
 
65862
+
64792
65863
  /**
64793
- * @enum {number}
65864
+ * optional Nodepool nodepool = 12;
65865
+ * @return {?proto.clarifai.api.Nodepool}
64794
65866
  */
64795
- proto.clarifai.api.ValueComparator = {
64796
- CONCEPT_THRESHOLD_NOT_SET: 0,
64797
- GREATER_THAN: 1,
64798
- GREATER_THAN_OR_EQUAL: 2,
64799
- LESS_THAN: 3,
64800
- LESS_THAN_OR_EQUAL: 4,
64801
- EQUAL: 5
65867
+ proto.clarifai.api.Runner.prototype.getNodepool = function() {
65868
+ return /** @type{?proto.clarifai.api.Nodepool} */ (
65869
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 12));
64802
65870
  };
64803
65871
 
65872
+
64804
65873
  /**
64805
- * @enum {number}
65874
+ * @param {?proto.clarifai.api.Nodepool|undefined} value
65875
+ * @return {!proto.clarifai.api.Runner} returns this
65876
+ */
65877
+ proto.clarifai.api.Runner.prototype.setNodepool = function(value) {
65878
+ return jspb.Message.setWrapperField(this, 12, value);
65879
+ };
65880
+
65881
+
65882
+ /**
65883
+ * Clears the message field making it undefined.
65884
+ * @return {!proto.clarifai.api.Runner} returns this
64806
65885
  */
64807
- proto.clarifai.api.EvaluationType = {
64808
- UNDEFINED: 0,
64809
- CLASSIFICATION: 1,
64810
- DETECTION: 2,
64811
- SEGMENTATION: 3,
64812
- CLUSTERING: 4,
64813
- TRACKER: 5,
64814
- GENERATION: 6
65886
+ proto.clarifai.api.Runner.prototype.clearNodepool = function() {
65887
+ return this.setNodepool(undefined);
64815
65888
  };
64816
65889
 
65890
+
64817
65891
  /**
64818
- * @enum {number}
65892
+ * Returns whether this field is set.
65893
+ * @return {boolean}
64819
65894
  */
64820
- proto.clarifai.api.APIEventType = {
64821
- API_EVENT_TYPE_NOT_SET: 0,
64822
- ON_PREM_PREDICT: 1,
64823
- ON_PREM_TRAIN: 2,
64824
- ON_PREM_SEARCH: 3
65895
+ proto.clarifai.api.Runner.prototype.hasNodepool = function() {
65896
+ return jspb.Message.getField(this, 12) != null;
64825
65897
  };
64826
65898
 
65899
+
64827
65900
  /**
64828
- * @enum {number}
65901
+ * optional ComputeInfo compute_info = 13;
65902
+ * @return {?proto.clarifai.api.ComputeInfo}
64829
65903
  */
64830
- proto.clarifai.api.UsageIntervalType = {
64831
- UNDEF: 0,
64832
- DAY: 1,
64833
- MONTH: 2,
64834
- YEAR: 3
65904
+ proto.clarifai.api.Runner.prototype.getComputeInfo = function() {
65905
+ return /** @type{?proto.clarifai.api.ComputeInfo} */ (
65906
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 13));
65907
+ };
65908
+
65909
+
65910
+ /**
65911
+ * @param {?proto.clarifai.api.ComputeInfo|undefined} value
65912
+ * @return {!proto.clarifai.api.Runner} returns this
65913
+ */
65914
+ proto.clarifai.api.Runner.prototype.setComputeInfo = function(value) {
65915
+ return jspb.Message.setWrapperField(this, 13, value);
64835
65916
  };
64836
65917
 
65918
+
64837
65919
  /**
64838
- * @enum {number}
65920
+ * Clears the message field making it undefined.
65921
+ * @return {!proto.clarifai.api.Runner} returns this
64839
65922
  */
64840
- proto.clarifai.api.AnnotationDataType = {
64841
- ANNOTATION_DATA_TYPE_NOT_SET: 0,
64842
- TAG: 1,
64843
- BOUNDING_BOX: 2,
64844
- POLYGON: 4,
64845
- POINT: 8,
64846
- SPAN: 16,
64847
- MASK: 32
65923
+ proto.clarifai.api.Runner.prototype.clearComputeInfo = function() {
65924
+ return this.setComputeInfo(undefined);
64848
65925
  };
64849
65926
 
65927
+
64850
65928
  /**
64851
- * @enum {number}
65929
+ * Returns whether this field is set.
65930
+ * @return {boolean}
64852
65931
  */
64853
- proto.clarifai.api.RoleType = {
64854
- TEAM: 0,
64855
- ORG: 1
65932
+ proto.clarifai.api.Runner.prototype.hasComputeInfo = function() {
65933
+ return jspb.Message.getField(this, 13) != null;
64856
65934
  };
64857
65935
 
65936
+
65937
+
64858
65938
  /**
64859
- * @enum {number}
65939
+ * List of repeated fields within this message type.
65940
+ * @private {!Array<number>}
65941
+ * @const
64860
65942
  */
64861
- proto.clarifai.api.StatValueAggType = {
64862
- SUM: 0,
64863
- AVG: 1
65943
+ proto.clarifai.api.Nodepool.repeatedFields_ = [4,8];
65944
+
65945
+
65946
+
65947
+ if (jspb.Message.GENERATE_TO_OBJECT) {
65948
+ /**
65949
+ * Creates an object representation of this proto.
65950
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
65951
+ * Optional fields that are not set will be set to undefined.
65952
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
65953
+ * For the list of reserved names please see:
65954
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
65955
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
65956
+ * JSPB instance for transitional soy proto support:
65957
+ * http://goto/soy-param-migration
65958
+ * @return {!Object}
65959
+ */
65960
+ proto.clarifai.api.Nodepool.prototype.toObject = function(opt_includeInstance) {
65961
+ return proto.clarifai.api.Nodepool.toObject(opt_includeInstance, this);
64864
65962
  };
64865
65963
 
65964
+
64866
65965
  /**
64867
- * @enum {number}
65966
+ * Static version of the {@see toObject} method.
65967
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
65968
+ * the JSPB instance for transitional soy proto support:
65969
+ * http://goto/soy-param-migration
65970
+ * @param {!proto.clarifai.api.Nodepool} msg The msg instance to transform.
65971
+ * @return {!Object}
65972
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64868
65973
  */
64869
- proto.clarifai.api.StatTimeAggType = {
64870
- NO_TIME_AGG: 0,
64871
- YEAR: 1,
64872
- MONTH: 2,
64873
- WEEK: 3,
64874
- DAY: 4,
64875
- HOUR: 5,
64876
- MINUTE: 6
65974
+ proto.clarifai.api.Nodepool.toObject = function(includeInstance, msg) {
65975
+ var f, obj = {
65976
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
65977
+ userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
65978
+ cloudRegion: (f = msg.getCloudRegion()) && proto.clarifai.api.CloudRegion.toObject(includeInstance, f),
65979
+ capacityTypesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
65980
+ instanceTypesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
65981
+ minInstances: jspb.Message.getFieldWithDefault(msg, 9, 0),
65982
+ maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0)
65983
+ };
65984
+
65985
+ if (includeInstance) {
65986
+ obj.$jspbMessageInstance = msg;
65987
+ }
65988
+ return obj;
64877
65989
  };
65990
+ }
65991
+
64878
65992
 
64879
65993
  /**
64880
- * @enum {number}
65994
+ * Deserializes binary data (in protobuf wire format).
65995
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
65996
+ * @return {!proto.clarifai.api.Nodepool}
64881
65997
  */
64882
- proto.clarifai.api.ValidationErrorType = {
64883
- VALIDATION_ERROR_TYPE_NOT_SET: 0,
64884
- RESTRICTED: 1,
64885
- DATABASE: 2,
64886
- FORMAT: 3
65998
+ proto.clarifai.api.Nodepool.deserializeBinary = function(bytes) {
65999
+ var reader = new jspb.BinaryReader(bytes);
66000
+ var msg = new proto.clarifai.api.Nodepool;
66001
+ return proto.clarifai.api.Nodepool.deserializeBinaryFromReader(msg, reader);
66002
+ };
66003
+
66004
+
66005
+ /**
66006
+ * Deserializes binary data (in protobuf wire format) from the
66007
+ * given reader into the given message object.
66008
+ * @param {!proto.clarifai.api.Nodepool} msg The message object to deserialize into.
66009
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
66010
+ * @return {!proto.clarifai.api.Nodepool}
66011
+ */
66012
+ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function(msg, reader) {
66013
+ while (reader.nextField()) {
66014
+ if (reader.isEndGroup()) {
66015
+ break;
66016
+ }
66017
+ var field = reader.getFieldNumber();
66018
+ switch (field) {
66019
+ case 1:
66020
+ var value = /** @type {string} */ (reader.readString());
66021
+ msg.setId(value);
66022
+ break;
66023
+ case 2:
66024
+ var value = /** @type {string} */ (reader.readString());
66025
+ msg.setUserId(value);
66026
+ break;
66027
+ case 3:
66028
+ var value = new proto.clarifai.api.CloudRegion;
66029
+ reader.readMessage(value,proto.clarifai.api.CloudRegion.deserializeBinaryFromReader);
66030
+ msg.setCloudRegion(value);
66031
+ break;
66032
+ case 4:
66033
+ var values = /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
66034
+ for (var i = 0; i < values.length; i++) {
66035
+ msg.addCapacityTypes(values[i]);
66036
+ }
66037
+ break;
66038
+ case 8:
66039
+ var value = /** @type {string} */ (reader.readString());
66040
+ msg.addInstanceTypes(value);
66041
+ break;
66042
+ case 9:
66043
+ var value = /** @type {number} */ (reader.readUint32());
66044
+ msg.setMinInstances(value);
66045
+ break;
66046
+ case 10:
66047
+ var value = /** @type {number} */ (reader.readUint32());
66048
+ msg.setMaxInstances(value);
66049
+ break;
66050
+ default:
66051
+ reader.skipField();
66052
+ break;
66053
+ }
66054
+ }
66055
+ return msg;
66056
+ };
66057
+
66058
+
66059
+ /**
66060
+ * Serializes the message to binary data (in protobuf wire format).
66061
+ * @return {!Uint8Array}
66062
+ */
66063
+ proto.clarifai.api.Nodepool.prototype.serializeBinary = function() {
66064
+ var writer = new jspb.BinaryWriter();
66065
+ proto.clarifai.api.Nodepool.serializeBinaryToWriter(this, writer);
66066
+ return writer.getResultBuffer();
66067
+ };
66068
+
66069
+
66070
+ /**
66071
+ * Serializes the given message to binary data (in protobuf wire
66072
+ * format), writing to the given BinaryWriter.
66073
+ * @param {!proto.clarifai.api.Nodepool} message
66074
+ * @param {!jspb.BinaryWriter} writer
66075
+ * @suppress {unusedLocalVariables} f is only used for nested messages
66076
+ */
66077
+ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function(message, writer) {
66078
+ var f = undefined;
66079
+ f = message.getId();
66080
+ if (f.length > 0) {
66081
+ writer.writeString(
66082
+ 1,
66083
+ f
66084
+ );
66085
+ }
66086
+ f = message.getUserId();
66087
+ if (f.length > 0) {
66088
+ writer.writeString(
66089
+ 2,
66090
+ f
66091
+ );
66092
+ }
66093
+ f = message.getCloudRegion();
66094
+ if (f != null) {
66095
+ writer.writeMessage(
66096
+ 3,
66097
+ f,
66098
+ proto.clarifai.api.CloudRegion.serializeBinaryToWriter
66099
+ );
66100
+ }
66101
+ f = message.getCapacityTypesList();
66102
+ if (f.length > 0) {
66103
+ writer.writePackedEnum(
66104
+ 4,
66105
+ f
66106
+ );
66107
+ }
66108
+ f = message.getInstanceTypesList();
66109
+ if (f.length > 0) {
66110
+ writer.writeRepeatedString(
66111
+ 8,
66112
+ f
66113
+ );
66114
+ }
66115
+ f = message.getMinInstances();
66116
+ if (f !== 0) {
66117
+ writer.writeUint32(
66118
+ 9,
66119
+ f
66120
+ );
66121
+ }
66122
+ f = message.getMaxInstances();
66123
+ if (f !== 0) {
66124
+ writer.writeUint32(
66125
+ 10,
66126
+ f
66127
+ );
66128
+ }
64887
66129
  };
64888
66130
 
66131
+
64889
66132
  /**
64890
66133
  * @enum {number}
64891
66134
  */
64892
- proto.clarifai.api.InputIDConflictResolution = {
64893
- INPUT_ID_CONFLICT_RESOLUTION_NOT_SET: 0,
64894
- SKIP: 1,
64895
- SUFFIX: 2
66135
+ proto.clarifai.api.Nodepool.CapacityType = {
66136
+ UKNOWN_CAPACITY_TYPE: 0,
66137
+ ONDEMAND_TYPE: 1,
66138
+ SPOT_TYPE: 2
66139
+ };
66140
+
66141
+ /**
66142
+ * optional string id = 1;
66143
+ * @return {string}
66144
+ */
66145
+ proto.clarifai.api.Nodepool.prototype.getId = function() {
66146
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
66147
+ };
66148
+
66149
+
66150
+ /**
66151
+ * @param {string} value
66152
+ * @return {!proto.clarifai.api.Nodepool} returns this
66153
+ */
66154
+ proto.clarifai.api.Nodepool.prototype.setId = function(value) {
66155
+ return jspb.Message.setProto3StringField(this, 1, value);
66156
+ };
66157
+
66158
+
66159
+ /**
66160
+ * optional string user_id = 2;
66161
+ * @return {string}
66162
+ */
66163
+ proto.clarifai.api.Nodepool.prototype.getUserId = function() {
66164
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
66165
+ };
66166
+
66167
+
66168
+ /**
66169
+ * @param {string} value
66170
+ * @return {!proto.clarifai.api.Nodepool} returns this
66171
+ */
66172
+ proto.clarifai.api.Nodepool.prototype.setUserId = function(value) {
66173
+ return jspb.Message.setProto3StringField(this, 2, value);
66174
+ };
66175
+
66176
+
66177
+ /**
66178
+ * optional CloudRegion cloud_region = 3;
66179
+ * @return {?proto.clarifai.api.CloudRegion}
66180
+ */
66181
+ proto.clarifai.api.Nodepool.prototype.getCloudRegion = function() {
66182
+ return /** @type{?proto.clarifai.api.CloudRegion} */ (
66183
+ jspb.Message.getWrapperField(this, proto.clarifai.api.CloudRegion, 3));
66184
+ };
66185
+
66186
+
66187
+ /**
66188
+ * @param {?proto.clarifai.api.CloudRegion|undefined} value
66189
+ * @return {!proto.clarifai.api.Nodepool} returns this
66190
+ */
66191
+ proto.clarifai.api.Nodepool.prototype.setCloudRegion = function(value) {
66192
+ return jspb.Message.setWrapperField(this, 3, value);
66193
+ };
66194
+
66195
+
66196
+ /**
66197
+ * Clears the message field making it undefined.
66198
+ * @return {!proto.clarifai.api.Nodepool} returns this
66199
+ */
66200
+ proto.clarifai.api.Nodepool.prototype.clearCloudRegion = function() {
66201
+ return this.setCloudRegion(undefined);
66202
+ };
66203
+
66204
+
66205
+ /**
66206
+ * Returns whether this field is set.
66207
+ * @return {boolean}
66208
+ */
66209
+ proto.clarifai.api.Nodepool.prototype.hasCloudRegion = function() {
66210
+ return jspb.Message.getField(this, 3) != null;
66211
+ };
66212
+
66213
+
66214
+ /**
66215
+ * repeated CapacityType capacity_types = 4;
66216
+ * @return {!Array<!proto.clarifai.api.Nodepool.CapacityType>}
66217
+ */
66218
+ proto.clarifai.api.Nodepool.prototype.getCapacityTypesList = function() {
66219
+ return /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (jspb.Message.getRepeatedField(this, 4));
66220
+ };
66221
+
66222
+
66223
+ /**
66224
+ * @param {!Array<!proto.clarifai.api.Nodepool.CapacityType>} value
66225
+ * @return {!proto.clarifai.api.Nodepool} returns this
66226
+ */
66227
+ proto.clarifai.api.Nodepool.prototype.setCapacityTypesList = function(value) {
66228
+ return jspb.Message.setField(this, 4, value || []);
66229
+ };
66230
+
66231
+
66232
+ /**
66233
+ * @param {!proto.clarifai.api.Nodepool.CapacityType} value
66234
+ * @param {number=} opt_index
66235
+ * @return {!proto.clarifai.api.Nodepool} returns this
66236
+ */
66237
+ proto.clarifai.api.Nodepool.prototype.addCapacityTypes = function(value, opt_index) {
66238
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
66239
+ };
66240
+
66241
+
66242
+ /**
66243
+ * Clears the list making it empty but non-null.
66244
+ * @return {!proto.clarifai.api.Nodepool} returns this
66245
+ */
66246
+ proto.clarifai.api.Nodepool.prototype.clearCapacityTypesList = function() {
66247
+ return this.setCapacityTypesList([]);
66248
+ };
66249
+
66250
+
66251
+ /**
66252
+ * repeated string instance_types = 8;
66253
+ * @return {!Array<string>}
66254
+ */
66255
+ proto.clarifai.api.Nodepool.prototype.getInstanceTypesList = function() {
66256
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
66257
+ };
66258
+
66259
+
66260
+ /**
66261
+ * @param {!Array<string>} value
66262
+ * @return {!proto.clarifai.api.Nodepool} returns this
66263
+ */
66264
+ proto.clarifai.api.Nodepool.prototype.setInstanceTypesList = function(value) {
66265
+ return jspb.Message.setField(this, 8, value || []);
66266
+ };
66267
+
66268
+
66269
+ /**
66270
+ * @param {string} value
66271
+ * @param {number=} opt_index
66272
+ * @return {!proto.clarifai.api.Nodepool} returns this
66273
+ */
66274
+ proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function(value, opt_index) {
66275
+ return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
66276
+ };
66277
+
66278
+
66279
+ /**
66280
+ * Clears the list making it empty but non-null.
66281
+ * @return {!proto.clarifai.api.Nodepool} returns this
66282
+ */
66283
+ proto.clarifai.api.Nodepool.prototype.clearInstanceTypesList = function() {
66284
+ return this.setInstanceTypesList([]);
66285
+ };
66286
+
66287
+
66288
+ /**
66289
+ * optional uint32 min_instances = 9;
66290
+ * @return {number}
66291
+ */
66292
+ proto.clarifai.api.Nodepool.prototype.getMinInstances = function() {
66293
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
66294
+ };
66295
+
66296
+
66297
+ /**
66298
+ * @param {number} value
66299
+ * @return {!proto.clarifai.api.Nodepool} returns this
66300
+ */
66301
+ proto.clarifai.api.Nodepool.prototype.setMinInstances = function(value) {
66302
+ return jspb.Message.setProto3IntField(this, 9, value);
66303
+ };
66304
+
66305
+
66306
+ /**
66307
+ * optional uint32 max_instances = 10;
66308
+ * @return {number}
66309
+ */
66310
+ proto.clarifai.api.Nodepool.prototype.getMaxInstances = function() {
66311
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
66312
+ };
66313
+
66314
+
66315
+ /**
66316
+ * @param {number} value
66317
+ * @return {!proto.clarifai.api.Nodepool} returns this
66318
+ */
66319
+ proto.clarifai.api.Nodepool.prototype.setMaxInstances = function(value) {
66320
+ return jspb.Message.setProto3IntField(this, 10, value);
66321
+ };
66322
+
66323
+
66324
+
66325
+
66326
+
66327
+ if (jspb.Message.GENERATE_TO_OBJECT) {
66328
+ /**
66329
+ * Creates an object representation of this proto.
66330
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
66331
+ * Optional fields that are not set will be set to undefined.
66332
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
66333
+ * For the list of reserved names please see:
66334
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
66335
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
66336
+ * JSPB instance for transitional soy proto support:
66337
+ * http://goto/soy-param-migration
66338
+ * @return {!Object}
66339
+ */
66340
+ proto.clarifai.api.CloudRegion.prototype.toObject = function(opt_includeInstance) {
66341
+ return proto.clarifai.api.CloudRegion.toObject(opt_includeInstance, this);
66342
+ };
66343
+
66344
+
66345
+ /**
66346
+ * Static version of the {@see toObject} method.
66347
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
66348
+ * the JSPB instance for transitional soy proto support:
66349
+ * http://goto/soy-param-migration
66350
+ * @param {!proto.clarifai.api.CloudRegion} msg The msg instance to transform.
66351
+ * @return {!Object}
66352
+ * @suppress {unusedLocalVariables} f is only used for nested messages
66353
+ */
66354
+ proto.clarifai.api.CloudRegion.toObject = function(includeInstance, msg) {
66355
+ var f, obj = {
66356
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
66357
+ cloud: jspb.Message.getFieldWithDefault(msg, 3, 0),
66358
+ region: jspb.Message.getFieldWithDefault(msg, 4, "")
66359
+ };
66360
+
66361
+ if (includeInstance) {
66362
+ obj.$jspbMessageInstance = msg;
66363
+ }
66364
+ return obj;
66365
+ };
66366
+ }
66367
+
66368
+
66369
+ /**
66370
+ * Deserializes binary data (in protobuf wire format).
66371
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
66372
+ * @return {!proto.clarifai.api.CloudRegion}
66373
+ */
66374
+ proto.clarifai.api.CloudRegion.deserializeBinary = function(bytes) {
66375
+ var reader = new jspb.BinaryReader(bytes);
66376
+ var msg = new proto.clarifai.api.CloudRegion;
66377
+ return proto.clarifai.api.CloudRegion.deserializeBinaryFromReader(msg, reader);
66378
+ };
66379
+
66380
+
66381
+ /**
66382
+ * Deserializes binary data (in protobuf wire format) from the
66383
+ * given reader into the given message object.
66384
+ * @param {!proto.clarifai.api.CloudRegion} msg The message object to deserialize into.
66385
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
66386
+ * @return {!proto.clarifai.api.CloudRegion}
66387
+ */
66388
+ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reader) {
66389
+ while (reader.nextField()) {
66390
+ if (reader.isEndGroup()) {
66391
+ break;
66392
+ }
66393
+ var field = reader.getFieldNumber();
66394
+ switch (field) {
66395
+ case 1:
66396
+ var value = /** @type {string} */ (reader.readString());
66397
+ msg.setId(value);
66398
+ break;
66399
+ case 3:
66400
+ var value = /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (reader.readEnum());
66401
+ msg.setCloud(value);
66402
+ break;
66403
+ case 4:
66404
+ var value = /** @type {string} */ (reader.readString());
66405
+ msg.setRegion(value);
66406
+ break;
66407
+ default:
66408
+ reader.skipField();
66409
+ break;
66410
+ }
66411
+ }
66412
+ return msg;
66413
+ };
66414
+
66415
+
66416
+ /**
66417
+ * Serializes the message to binary data (in protobuf wire format).
66418
+ * @return {!Uint8Array}
66419
+ */
66420
+ proto.clarifai.api.CloudRegion.prototype.serializeBinary = function() {
66421
+ var writer = new jspb.BinaryWriter();
66422
+ proto.clarifai.api.CloudRegion.serializeBinaryToWriter(this, writer);
66423
+ return writer.getResultBuffer();
66424
+ };
66425
+
66426
+
66427
+ /**
66428
+ * Serializes the given message to binary data (in protobuf wire
66429
+ * format), writing to the given BinaryWriter.
66430
+ * @param {!proto.clarifai.api.CloudRegion} message
66431
+ * @param {!jspb.BinaryWriter} writer
66432
+ * @suppress {unusedLocalVariables} f is only used for nested messages
66433
+ */
66434
+ proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, writer) {
66435
+ var f = undefined;
66436
+ f = message.getId();
66437
+ if (f.length > 0) {
66438
+ writer.writeString(
66439
+ 1,
66440
+ f
66441
+ );
66442
+ }
66443
+ f = message.getCloud();
66444
+ if (f !== 0.0) {
66445
+ writer.writeEnum(
66446
+ 3,
66447
+ f
66448
+ );
66449
+ }
66450
+ f = message.getRegion();
66451
+ if (f.length > 0) {
66452
+ writer.writeString(
66453
+ 4,
66454
+ f
66455
+ );
66456
+ }
66457
+ };
66458
+
66459
+
66460
+ /**
66461
+ * @enum {number}
66462
+ */
66463
+ proto.clarifai.api.CloudRegion.Cloud = {
66464
+ UNKOWN_CLOUD: 0,
66465
+ SELF_HOSTED: 1,
66466
+ AWS: 2,
66467
+ GCP: 3,
66468
+ AZURE: 4,
66469
+ LAMBDA: 5
66470
+ };
66471
+
66472
+ /**
66473
+ * optional string id = 1;
66474
+ * @return {string}
66475
+ */
66476
+ proto.clarifai.api.CloudRegion.prototype.getId = function() {
66477
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
66478
+ };
66479
+
66480
+
66481
+ /**
66482
+ * @param {string} value
66483
+ * @return {!proto.clarifai.api.CloudRegion} returns this
66484
+ */
66485
+ proto.clarifai.api.CloudRegion.prototype.setId = function(value) {
66486
+ return jspb.Message.setProto3StringField(this, 1, value);
66487
+ };
66488
+
66489
+
66490
+ /**
66491
+ * optional Cloud cloud = 3;
66492
+ * @return {!proto.clarifai.api.CloudRegion.Cloud}
66493
+ */
66494
+ proto.clarifai.api.CloudRegion.prototype.getCloud = function() {
66495
+ return /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
66496
+ };
66497
+
66498
+
66499
+ /**
66500
+ * @param {!proto.clarifai.api.CloudRegion.Cloud} value
66501
+ * @return {!proto.clarifai.api.CloudRegion} returns this
66502
+ */
66503
+ proto.clarifai.api.CloudRegion.prototype.setCloud = function(value) {
66504
+ return jspb.Message.setProto3EnumField(this, 3, value);
66505
+ };
66506
+
66507
+
66508
+ /**
66509
+ * optional string region = 4;
66510
+ * @return {string}
66511
+ */
66512
+ proto.clarifai.api.CloudRegion.prototype.getRegion = function() {
66513
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
66514
+ };
66515
+
66516
+
66517
+ /**
66518
+ * @param {string} value
66519
+ * @return {!proto.clarifai.api.CloudRegion} returns this
66520
+ */
66521
+ proto.clarifai.api.CloudRegion.prototype.setRegion = function(value) {
66522
+ return jspb.Message.setProto3StringField(this, 4, value);
66523
+ };
66524
+
66525
+
66526
+
66527
+ /**
66528
+ * List of repeated fields within this message type.
66529
+ * @private {!Array<number>}
66530
+ * @const
66531
+ */
66532
+ proto.clarifai.api.ComputeInfo.repeatedFields_ = [5];
66533
+
66534
+
66535
+
66536
+ if (jspb.Message.GENERATE_TO_OBJECT) {
66537
+ /**
66538
+ * Creates an object representation of this proto.
66539
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
66540
+ * Optional fields that are not set will be set to undefined.
66541
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
66542
+ * For the list of reserved names please see:
66543
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
66544
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
66545
+ * JSPB instance for transitional soy proto support:
66546
+ * http://goto/soy-param-migration
66547
+ * @return {!Object}
66548
+ */
66549
+ proto.clarifai.api.ComputeInfo.prototype.toObject = function(opt_includeInstance) {
66550
+ return proto.clarifai.api.ComputeInfo.toObject(opt_includeInstance, this);
66551
+ };
66552
+
66553
+
66554
+ /**
66555
+ * Static version of the {@see toObject} method.
66556
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
66557
+ * the JSPB instance for transitional soy proto support:
66558
+ * http://goto/soy-param-migration
66559
+ * @param {!proto.clarifai.api.ComputeInfo} msg The msg instance to transform.
66560
+ * @return {!Object}
66561
+ * @suppress {unusedLocalVariables} f is only used for nested messages
66562
+ */
66563
+ proto.clarifai.api.ComputeInfo.toObject = function(includeInstance, msg) {
66564
+ var f, obj = {
66565
+ numCpus: jspb.Message.getFieldWithDefault(msg, 1, 0),
66566
+ cpuMemory: jspb.Message.getFieldWithDefault(msg, 2, ""),
66567
+ numAccelerators: jspb.Message.getFieldWithDefault(msg, 3, 0),
66568
+ acceleratorMemory: jspb.Message.getFieldWithDefault(msg, 4, ""),
66569
+ acceleratorTypeList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
66570
+ };
66571
+
66572
+ if (includeInstance) {
66573
+ obj.$jspbMessageInstance = msg;
66574
+ }
66575
+ return obj;
66576
+ };
66577
+ }
66578
+
66579
+
66580
+ /**
66581
+ * Deserializes binary data (in protobuf wire format).
66582
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
66583
+ * @return {!proto.clarifai.api.ComputeInfo}
66584
+ */
66585
+ proto.clarifai.api.ComputeInfo.deserializeBinary = function(bytes) {
66586
+ var reader = new jspb.BinaryReader(bytes);
66587
+ var msg = new proto.clarifai.api.ComputeInfo;
66588
+ return proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader(msg, reader);
66589
+ };
66590
+
66591
+
66592
+ /**
66593
+ * Deserializes binary data (in protobuf wire format) from the
66594
+ * given reader into the given message object.
66595
+ * @param {!proto.clarifai.api.ComputeInfo} msg The message object to deserialize into.
66596
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
66597
+ * @return {!proto.clarifai.api.ComputeInfo}
66598
+ */
66599
+ proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader = function(msg, reader) {
66600
+ while (reader.nextField()) {
66601
+ if (reader.isEndGroup()) {
66602
+ break;
66603
+ }
66604
+ var field = reader.getFieldNumber();
66605
+ switch (field) {
66606
+ case 1:
66607
+ var value = /** @type {number} */ (reader.readUint32());
66608
+ msg.setNumCpus(value);
66609
+ break;
66610
+ case 2:
66611
+ var value = /** @type {string} */ (reader.readString());
66612
+ msg.setCpuMemory(value);
66613
+ break;
66614
+ case 3:
66615
+ var value = /** @type {number} */ (reader.readUint32());
66616
+ msg.setNumAccelerators(value);
66617
+ break;
66618
+ case 4:
66619
+ var value = /** @type {string} */ (reader.readString());
66620
+ msg.setAcceleratorMemory(value);
66621
+ break;
66622
+ case 5:
66623
+ var value = /** @type {string} */ (reader.readString());
66624
+ msg.addAcceleratorType(value);
66625
+ break;
66626
+ default:
66627
+ reader.skipField();
66628
+ break;
66629
+ }
66630
+ }
66631
+ return msg;
66632
+ };
66633
+
66634
+
66635
+ /**
66636
+ * Serializes the message to binary data (in protobuf wire format).
66637
+ * @return {!Uint8Array}
66638
+ */
66639
+ proto.clarifai.api.ComputeInfo.prototype.serializeBinary = function() {
66640
+ var writer = new jspb.BinaryWriter();
66641
+ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter(this, writer);
66642
+ return writer.getResultBuffer();
66643
+ };
66644
+
66645
+
66646
+ /**
66647
+ * Serializes the given message to binary data (in protobuf wire
66648
+ * format), writing to the given BinaryWriter.
66649
+ * @param {!proto.clarifai.api.ComputeInfo} message
66650
+ * @param {!jspb.BinaryWriter} writer
66651
+ * @suppress {unusedLocalVariables} f is only used for nested messages
66652
+ */
66653
+ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function(message, writer) {
66654
+ var f = undefined;
66655
+ f = message.getNumCpus();
66656
+ if (f !== 0) {
66657
+ writer.writeUint32(
66658
+ 1,
66659
+ f
66660
+ );
66661
+ }
66662
+ f = message.getCpuMemory();
66663
+ if (f.length > 0) {
66664
+ writer.writeString(
66665
+ 2,
66666
+ f
66667
+ );
66668
+ }
66669
+ f = message.getNumAccelerators();
66670
+ if (f !== 0) {
66671
+ writer.writeUint32(
66672
+ 3,
66673
+ f
66674
+ );
66675
+ }
66676
+ f = message.getAcceleratorMemory();
66677
+ if (f.length > 0) {
66678
+ writer.writeString(
66679
+ 4,
66680
+ f
66681
+ );
66682
+ }
66683
+ f = message.getAcceleratorTypeList();
66684
+ if (f.length > 0) {
66685
+ writer.writeRepeatedString(
66686
+ 5,
66687
+ f
66688
+ );
66689
+ }
66690
+ };
66691
+
66692
+
66693
+ /**
66694
+ * optional uint32 num_cpus = 1;
66695
+ * @return {number}
66696
+ */
66697
+ proto.clarifai.api.ComputeInfo.prototype.getNumCpus = function() {
66698
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
66699
+ };
66700
+
66701
+
66702
+ /**
66703
+ * @param {number} value
66704
+ * @return {!proto.clarifai.api.ComputeInfo} returns this
66705
+ */
66706
+ proto.clarifai.api.ComputeInfo.prototype.setNumCpus = function(value) {
66707
+ return jspb.Message.setProto3IntField(this, 1, value);
66708
+ };
66709
+
66710
+
66711
+ /**
66712
+ * optional string cpu_memory = 2;
66713
+ * @return {string}
66714
+ */
66715
+ proto.clarifai.api.ComputeInfo.prototype.getCpuMemory = function() {
66716
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
66717
+ };
66718
+
66719
+
66720
+ /**
66721
+ * @param {string} value
66722
+ * @return {!proto.clarifai.api.ComputeInfo} returns this
66723
+ */
66724
+ proto.clarifai.api.ComputeInfo.prototype.setCpuMemory = function(value) {
66725
+ return jspb.Message.setProto3StringField(this, 2, value);
66726
+ };
66727
+
66728
+
66729
+ /**
66730
+ * optional uint32 num_accelerators = 3;
66731
+ * @return {number}
66732
+ */
66733
+ proto.clarifai.api.ComputeInfo.prototype.getNumAccelerators = function() {
66734
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
66735
+ };
66736
+
66737
+
66738
+ /**
66739
+ * @param {number} value
66740
+ * @return {!proto.clarifai.api.ComputeInfo} returns this
66741
+ */
66742
+ proto.clarifai.api.ComputeInfo.prototype.setNumAccelerators = function(value) {
66743
+ return jspb.Message.setProto3IntField(this, 3, value);
66744
+ };
66745
+
66746
+
66747
+ /**
66748
+ * optional string accelerator_memory = 4;
66749
+ * @return {string}
66750
+ */
66751
+ proto.clarifai.api.ComputeInfo.prototype.getAcceleratorMemory = function() {
66752
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
66753
+ };
66754
+
66755
+
66756
+ /**
66757
+ * @param {string} value
66758
+ * @return {!proto.clarifai.api.ComputeInfo} returns this
66759
+ */
66760
+ proto.clarifai.api.ComputeInfo.prototype.setAcceleratorMemory = function(value) {
66761
+ return jspb.Message.setProto3StringField(this, 4, value);
66762
+ };
66763
+
66764
+
66765
+ /**
66766
+ * repeated string accelerator_type = 5;
66767
+ * @return {!Array<string>}
66768
+ */
66769
+ proto.clarifai.api.ComputeInfo.prototype.getAcceleratorTypeList = function() {
66770
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
66771
+ };
66772
+
66773
+
66774
+ /**
66775
+ * @param {!Array<string>} value
66776
+ * @return {!proto.clarifai.api.ComputeInfo} returns this
66777
+ */
66778
+ proto.clarifai.api.ComputeInfo.prototype.setAcceleratorTypeList = function(value) {
66779
+ return jspb.Message.setField(this, 5, value || []);
66780
+ };
66781
+
66782
+
66783
+ /**
66784
+ * @param {string} value
66785
+ * @param {number=} opt_index
66786
+ * @return {!proto.clarifai.api.ComputeInfo} returns this
66787
+ */
66788
+ proto.clarifai.api.ComputeInfo.prototype.addAcceleratorType = function(value, opt_index) {
66789
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
66790
+ };
66791
+
66792
+
66793
+ /**
66794
+ * Clears the list making it empty but non-null.
66795
+ * @return {!proto.clarifai.api.ComputeInfo} returns this
66796
+ */
66797
+ proto.clarifai.api.ComputeInfo.prototype.clearAcceleratorTypeList = function() {
66798
+ return this.setAcceleratorTypeList([]);
66799
+ };
66800
+
66801
+
66802
+
66803
+
66804
+
66805
+ if (jspb.Message.GENERATE_TO_OBJECT) {
66806
+ /**
66807
+ * Creates an object representation of this proto.
66808
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
66809
+ * Optional fields that are not set will be set to undefined.
66810
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
66811
+ * For the list of reserved names please see:
66812
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
66813
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
66814
+ * JSPB instance for transitional soy proto support:
66815
+ * http://goto/soy-param-migration
66816
+ * @return {!Object}
66817
+ */
66818
+ proto.clarifai.api.AutoscaleConfig.prototype.toObject = function(opt_includeInstance) {
66819
+ return proto.clarifai.api.AutoscaleConfig.toObject(opt_includeInstance, this);
66820
+ };
66821
+
66822
+
66823
+ /**
66824
+ * Static version of the {@see toObject} method.
66825
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
66826
+ * the JSPB instance for transitional soy proto support:
66827
+ * http://goto/soy-param-migration
66828
+ * @param {!proto.clarifai.api.AutoscaleConfig} msg The msg instance to transform.
66829
+ * @return {!Object}
66830
+ * @suppress {unusedLocalVariables} f is only used for nested messages
66831
+ */
66832
+ proto.clarifai.api.AutoscaleConfig.toObject = function(includeInstance, msg) {
66833
+ var f, obj = {
66834
+ minReplicas: jspb.Message.getFieldWithDefault(msg, 1, 0),
66835
+ maxReplicas: jspb.Message.getFieldWithDefault(msg, 2, 0),
66836
+ trafficHistorySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0),
66837
+ scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
66838
+ scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
66839
+ enablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
66840
+ };
66841
+
66842
+ if (includeInstance) {
66843
+ obj.$jspbMessageInstance = msg;
66844
+ }
66845
+ return obj;
66846
+ };
66847
+ }
66848
+
66849
+
66850
+ /**
66851
+ * Deserializes binary data (in protobuf wire format).
66852
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
66853
+ * @return {!proto.clarifai.api.AutoscaleConfig}
66854
+ */
66855
+ proto.clarifai.api.AutoscaleConfig.deserializeBinary = function(bytes) {
66856
+ var reader = new jspb.BinaryReader(bytes);
66857
+ var msg = new proto.clarifai.api.AutoscaleConfig;
66858
+ return proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader(msg, reader);
66859
+ };
66860
+
66861
+
66862
+ /**
66863
+ * Deserializes binary data (in protobuf wire format) from the
66864
+ * given reader into the given message object.
66865
+ * @param {!proto.clarifai.api.AutoscaleConfig} msg The message object to deserialize into.
66866
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
66867
+ * @return {!proto.clarifai.api.AutoscaleConfig}
66868
+ */
66869
+ proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function(msg, reader) {
66870
+ while (reader.nextField()) {
66871
+ if (reader.isEndGroup()) {
66872
+ break;
66873
+ }
66874
+ var field = reader.getFieldNumber();
66875
+ switch (field) {
66876
+ case 1:
66877
+ var value = /** @type {number} */ (reader.readUint32());
66878
+ msg.setMinReplicas(value);
66879
+ break;
66880
+ case 2:
66881
+ var value = /** @type {number} */ (reader.readUint32());
66882
+ msg.setMaxReplicas(value);
66883
+ break;
66884
+ case 3:
66885
+ var value = /** @type {number} */ (reader.readUint32());
66886
+ msg.setTrafficHistorySeconds(value);
66887
+ break;
66888
+ case 4:
66889
+ var value = /** @type {number} */ (reader.readUint32());
66890
+ msg.setScaleDownDelaySeconds(value);
66891
+ break;
66892
+ case 5:
66893
+ var value = /** @type {number} */ (reader.readUint32());
66894
+ msg.setScaleUpDelaySeconds(value);
66895
+ break;
66896
+ case 6:
66897
+ var value = /** @type {boolean} */ (reader.readBool());
66898
+ msg.setEnablePacking(value);
66899
+ break;
66900
+ default:
66901
+ reader.skipField();
66902
+ break;
66903
+ }
66904
+ }
66905
+ return msg;
66906
+ };
66907
+
66908
+
66909
+ /**
66910
+ * Serializes the message to binary data (in protobuf wire format).
66911
+ * @return {!Uint8Array}
66912
+ */
66913
+ proto.clarifai.api.AutoscaleConfig.prototype.serializeBinary = function() {
66914
+ var writer = new jspb.BinaryWriter();
66915
+ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter(this, writer);
66916
+ return writer.getResultBuffer();
66917
+ };
66918
+
66919
+
66920
+ /**
66921
+ * Serializes the given message to binary data (in protobuf wire
66922
+ * format), writing to the given BinaryWriter.
66923
+ * @param {!proto.clarifai.api.AutoscaleConfig} message
66924
+ * @param {!jspb.BinaryWriter} writer
66925
+ * @suppress {unusedLocalVariables} f is only used for nested messages
66926
+ */
66927
+ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function(message, writer) {
66928
+ var f = undefined;
66929
+ f = message.getMinReplicas();
66930
+ if (f !== 0) {
66931
+ writer.writeUint32(
66932
+ 1,
66933
+ f
66934
+ );
66935
+ }
66936
+ f = message.getMaxReplicas();
66937
+ if (f !== 0) {
66938
+ writer.writeUint32(
66939
+ 2,
66940
+ f
66941
+ );
66942
+ }
66943
+ f = message.getTrafficHistorySeconds();
66944
+ if (f !== 0) {
66945
+ writer.writeUint32(
66946
+ 3,
66947
+ f
66948
+ );
66949
+ }
66950
+ f = message.getScaleDownDelaySeconds();
66951
+ if (f !== 0) {
66952
+ writer.writeUint32(
66953
+ 4,
66954
+ f
66955
+ );
66956
+ }
66957
+ f = message.getScaleUpDelaySeconds();
66958
+ if (f !== 0) {
66959
+ writer.writeUint32(
66960
+ 5,
66961
+ f
66962
+ );
66963
+ }
66964
+ f = message.getEnablePacking();
66965
+ if (f) {
66966
+ writer.writeBool(
66967
+ 6,
66968
+ f
66969
+ );
66970
+ }
66971
+ };
66972
+
66973
+
66974
+ /**
66975
+ * optional uint32 min_replicas = 1;
66976
+ * @return {number}
66977
+ */
66978
+ proto.clarifai.api.AutoscaleConfig.prototype.getMinReplicas = function() {
66979
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
66980
+ };
66981
+
66982
+
66983
+ /**
66984
+ * @param {number} value
66985
+ * @return {!proto.clarifai.api.AutoscaleConfig} returns this
66986
+ */
66987
+ proto.clarifai.api.AutoscaleConfig.prototype.setMinReplicas = function(value) {
66988
+ return jspb.Message.setProto3IntField(this, 1, value);
66989
+ };
66990
+
66991
+
66992
+ /**
66993
+ * optional uint32 max_replicas = 2;
66994
+ * @return {number}
66995
+ */
66996
+ proto.clarifai.api.AutoscaleConfig.prototype.getMaxReplicas = function() {
66997
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
66998
+ };
66999
+
67000
+
67001
+ /**
67002
+ * @param {number} value
67003
+ * @return {!proto.clarifai.api.AutoscaleConfig} returns this
67004
+ */
67005
+ proto.clarifai.api.AutoscaleConfig.prototype.setMaxReplicas = function(value) {
67006
+ return jspb.Message.setProto3IntField(this, 2, value);
67007
+ };
67008
+
67009
+
67010
+ /**
67011
+ * optional uint32 traffic_history_seconds = 3;
67012
+ * @return {number}
67013
+ */
67014
+ proto.clarifai.api.AutoscaleConfig.prototype.getTrafficHistorySeconds = function() {
67015
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
67016
+ };
67017
+
67018
+
67019
+ /**
67020
+ * @param {number} value
67021
+ * @return {!proto.clarifai.api.AutoscaleConfig} returns this
67022
+ */
67023
+ proto.clarifai.api.AutoscaleConfig.prototype.setTrafficHistorySeconds = function(value) {
67024
+ return jspb.Message.setProto3IntField(this, 3, value);
67025
+ };
67026
+
67027
+
67028
+ /**
67029
+ * optional uint32 scale_down_delay_seconds = 4;
67030
+ * @return {number}
67031
+ */
67032
+ proto.clarifai.api.AutoscaleConfig.prototype.getScaleDownDelaySeconds = function() {
67033
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
67034
+ };
67035
+
67036
+
67037
+ /**
67038
+ * @param {number} value
67039
+ * @return {!proto.clarifai.api.AutoscaleConfig} returns this
67040
+ */
67041
+ proto.clarifai.api.AutoscaleConfig.prototype.setScaleDownDelaySeconds = function(value) {
67042
+ return jspb.Message.setProto3IntField(this, 4, value);
67043
+ };
67044
+
67045
+
67046
+ /**
67047
+ * optional uint32 scale_up_delay_seconds = 5;
67048
+ * @return {number}
67049
+ */
67050
+ proto.clarifai.api.AutoscaleConfig.prototype.getScaleUpDelaySeconds = function() {
67051
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
67052
+ };
67053
+
67054
+
67055
+ /**
67056
+ * @param {number} value
67057
+ * @return {!proto.clarifai.api.AutoscaleConfig} returns this
67058
+ */
67059
+ proto.clarifai.api.AutoscaleConfig.prototype.setScaleUpDelaySeconds = function(value) {
67060
+ return jspb.Message.setProto3IntField(this, 5, value);
67061
+ };
67062
+
67063
+
67064
+ /**
67065
+ * optional bool enable_packing = 6;
67066
+ * @return {boolean}
67067
+ */
67068
+ proto.clarifai.api.AutoscaleConfig.prototype.getEnablePacking = function() {
67069
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
67070
+ };
67071
+
67072
+
67073
+ /**
67074
+ * @param {boolean} value
67075
+ * @return {!proto.clarifai.api.AutoscaleConfig} returns this
67076
+ */
67077
+ proto.clarifai.api.AutoscaleConfig.prototype.setEnablePacking = function(value) {
67078
+ return jspb.Message.setProto3BooleanField(this, 6, value);
67079
+ };
67080
+
67081
+
67082
+
67083
+ /**
67084
+ * List of repeated fields within this message type.
67085
+ * @private {!Array<number>}
67086
+ * @const
67087
+ */
67088
+ proto.clarifai.api.Deployment.repeatedFields_ = [4];
67089
+
67090
+ /**
67091
+ * Oneof group definitions for this message. Each group defines the field
67092
+ * numbers belonging to that group. When of these fields' value is set, all
67093
+ * other fields in the group are cleared. During deserialization, if multiple
67094
+ * fields are encountered for a group, only the last value seen will be kept.
67095
+ * @private {!Array<!Array<number>>}
67096
+ * @const
67097
+ */
67098
+ proto.clarifai.api.Deployment.oneofGroups_ = [[5,6]];
67099
+
67100
+ /**
67101
+ * @enum {number}
67102
+ */
67103
+ proto.clarifai.api.Deployment.ObjectCase = {
67104
+ OBJECT_NOT_SET: 0,
67105
+ MODEL: 5,
67106
+ WORKFLOW: 6
67107
+ };
67108
+
67109
+ /**
67110
+ * @return {proto.clarifai.api.Deployment.ObjectCase}
67111
+ */
67112
+ proto.clarifai.api.Deployment.prototype.getObjectCase = function() {
67113
+ return /** @type {proto.clarifai.api.Deployment.ObjectCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Deployment.oneofGroups_[0]));
67114
+ };
67115
+
67116
+
67117
+
67118
+ if (jspb.Message.GENERATE_TO_OBJECT) {
67119
+ /**
67120
+ * Creates an object representation of this proto.
67121
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67122
+ * Optional fields that are not set will be set to undefined.
67123
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
67124
+ * For the list of reserved names please see:
67125
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
67126
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
67127
+ * JSPB instance for transitional soy proto support:
67128
+ * http://goto/soy-param-migration
67129
+ * @return {!Object}
67130
+ */
67131
+ proto.clarifai.api.Deployment.prototype.toObject = function(opt_includeInstance) {
67132
+ return proto.clarifai.api.Deployment.toObject(opt_includeInstance, this);
67133
+ };
67134
+
67135
+
67136
+ /**
67137
+ * Static version of the {@see toObject} method.
67138
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
67139
+ * the JSPB instance for transitional soy proto support:
67140
+ * http://goto/soy-param-migration
67141
+ * @param {!proto.clarifai.api.Deployment} msg The msg instance to transform.
67142
+ * @return {!Object}
67143
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67144
+ */
67145
+ proto.clarifai.api.Deployment.toObject = function(includeInstance, msg) {
67146
+ var f, obj = {
67147
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
67148
+ userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
67149
+ autoscaleConfig: (f = msg.getAutoscaleConfig()) && proto.clarifai.api.AutoscaleConfig.toObject(includeInstance, f),
67150
+ nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(),
67151
+ proto.clarifai.api.Nodepool.toObject, includeInstance),
67152
+ model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
67153
+ workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
67154
+ schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0)
67155
+ };
67156
+
67157
+ if (includeInstance) {
67158
+ obj.$jspbMessageInstance = msg;
67159
+ }
67160
+ return obj;
67161
+ };
67162
+ }
67163
+
67164
+
67165
+ /**
67166
+ * Deserializes binary data (in protobuf wire format).
67167
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
67168
+ * @return {!proto.clarifai.api.Deployment}
67169
+ */
67170
+ proto.clarifai.api.Deployment.deserializeBinary = function(bytes) {
67171
+ var reader = new jspb.BinaryReader(bytes);
67172
+ var msg = new proto.clarifai.api.Deployment;
67173
+ return proto.clarifai.api.Deployment.deserializeBinaryFromReader(msg, reader);
67174
+ };
67175
+
67176
+
67177
+ /**
67178
+ * Deserializes binary data (in protobuf wire format) from the
67179
+ * given reader into the given message object.
67180
+ * @param {!proto.clarifai.api.Deployment} msg The message object to deserialize into.
67181
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
67182
+ * @return {!proto.clarifai.api.Deployment}
67183
+ */
67184
+ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function(msg, reader) {
67185
+ while (reader.nextField()) {
67186
+ if (reader.isEndGroup()) {
67187
+ break;
67188
+ }
67189
+ var field = reader.getFieldNumber();
67190
+ switch (field) {
67191
+ case 1:
67192
+ var value = /** @type {string} */ (reader.readString());
67193
+ msg.setId(value);
67194
+ break;
67195
+ case 2:
67196
+ var value = /** @type {string} */ (reader.readString());
67197
+ msg.setUserId(value);
67198
+ break;
67199
+ case 3:
67200
+ var value = new proto.clarifai.api.AutoscaleConfig;
67201
+ reader.readMessage(value,proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader);
67202
+ msg.setAutoscaleConfig(value);
67203
+ break;
67204
+ case 4:
67205
+ var value = new proto.clarifai.api.Nodepool;
67206
+ reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
67207
+ msg.addNodepools(value);
67208
+ break;
67209
+ case 5:
67210
+ var value = new proto.clarifai.api.Model;
67211
+ reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
67212
+ msg.setModel(value);
67213
+ break;
67214
+ case 6:
67215
+ var value = new proto.clarifai.api.Workflow;
67216
+ reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
67217
+ msg.setWorkflow(value);
67218
+ break;
67219
+ case 7:
67220
+ var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
67221
+ msg.setSchedulingChoice(value);
67222
+ break;
67223
+ default:
67224
+ reader.skipField();
67225
+ break;
67226
+ }
67227
+ }
67228
+ return msg;
67229
+ };
67230
+
67231
+
67232
+ /**
67233
+ * Serializes the message to binary data (in protobuf wire format).
67234
+ * @return {!Uint8Array}
67235
+ */
67236
+ proto.clarifai.api.Deployment.prototype.serializeBinary = function() {
67237
+ var writer = new jspb.BinaryWriter();
67238
+ proto.clarifai.api.Deployment.serializeBinaryToWriter(this, writer);
67239
+ return writer.getResultBuffer();
67240
+ };
67241
+
67242
+
67243
+ /**
67244
+ * Serializes the given message to binary data (in protobuf wire
67245
+ * format), writing to the given BinaryWriter.
67246
+ * @param {!proto.clarifai.api.Deployment} message
67247
+ * @param {!jspb.BinaryWriter} writer
67248
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67249
+ */
67250
+ proto.clarifai.api.Deployment.serializeBinaryToWriter = function(message, writer) {
67251
+ var f = undefined;
67252
+ f = message.getId();
67253
+ if (f.length > 0) {
67254
+ writer.writeString(
67255
+ 1,
67256
+ f
67257
+ );
67258
+ }
67259
+ f = message.getUserId();
67260
+ if (f.length > 0) {
67261
+ writer.writeString(
67262
+ 2,
67263
+ f
67264
+ );
67265
+ }
67266
+ f = message.getAutoscaleConfig();
67267
+ if (f != null) {
67268
+ writer.writeMessage(
67269
+ 3,
67270
+ f,
67271
+ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter
67272
+ );
67273
+ }
67274
+ f = message.getNodepoolsList();
67275
+ if (f.length > 0) {
67276
+ writer.writeRepeatedMessage(
67277
+ 4,
67278
+ f,
67279
+ proto.clarifai.api.Nodepool.serializeBinaryToWriter
67280
+ );
67281
+ }
67282
+ f = message.getModel();
67283
+ if (f != null) {
67284
+ writer.writeMessage(
67285
+ 5,
67286
+ f,
67287
+ proto.clarifai.api.Model.serializeBinaryToWriter
67288
+ );
67289
+ }
67290
+ f = message.getWorkflow();
67291
+ if (f != null) {
67292
+ writer.writeMessage(
67293
+ 6,
67294
+ f,
67295
+ proto.clarifai.api.Workflow.serializeBinaryToWriter
67296
+ );
67297
+ }
67298
+ f = message.getSchedulingChoice();
67299
+ if (f !== 0.0) {
67300
+ writer.writeEnum(
67301
+ 7,
67302
+ f
67303
+ );
67304
+ }
67305
+ };
67306
+
67307
+
67308
+ /**
67309
+ * @enum {number}
67310
+ */
67311
+ proto.clarifai.api.Deployment.SchedulingChoice = {
67312
+ UNKNOWN_SCHEDULING_CHOICE: 0,
67313
+ FAIL: 1,
67314
+ RANDOM: 2,
67315
+ PRICE: 3,
67316
+ PERFORMANCE: 4,
67317
+ NETWORK: 5,
67318
+ UTILIZATION: 6,
67319
+ PREFER_SPOT: 7,
67320
+ PREFER_ONDEMAND: 8
67321
+ };
67322
+
67323
+ /**
67324
+ * optional string id = 1;
67325
+ * @return {string}
67326
+ */
67327
+ proto.clarifai.api.Deployment.prototype.getId = function() {
67328
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
67329
+ };
67330
+
67331
+
67332
+ /**
67333
+ * @param {string} value
67334
+ * @return {!proto.clarifai.api.Deployment} returns this
67335
+ */
67336
+ proto.clarifai.api.Deployment.prototype.setId = function(value) {
67337
+ return jspb.Message.setProto3StringField(this, 1, value);
67338
+ };
67339
+
67340
+
67341
+ /**
67342
+ * optional string user_id = 2;
67343
+ * @return {string}
67344
+ */
67345
+ proto.clarifai.api.Deployment.prototype.getUserId = function() {
67346
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
67347
+ };
67348
+
67349
+
67350
+ /**
67351
+ * @param {string} value
67352
+ * @return {!proto.clarifai.api.Deployment} returns this
67353
+ */
67354
+ proto.clarifai.api.Deployment.prototype.setUserId = function(value) {
67355
+ return jspb.Message.setProto3StringField(this, 2, value);
67356
+ };
67357
+
67358
+
67359
+ /**
67360
+ * optional AutoscaleConfig autoscale_config = 3;
67361
+ * @return {?proto.clarifai.api.AutoscaleConfig}
67362
+ */
67363
+ proto.clarifai.api.Deployment.prototype.getAutoscaleConfig = function() {
67364
+ return /** @type{?proto.clarifai.api.AutoscaleConfig} */ (
67365
+ jspb.Message.getWrapperField(this, proto.clarifai.api.AutoscaleConfig, 3));
67366
+ };
67367
+
67368
+
67369
+ /**
67370
+ * @param {?proto.clarifai.api.AutoscaleConfig|undefined} value
67371
+ * @return {!proto.clarifai.api.Deployment} returns this
67372
+ */
67373
+ proto.clarifai.api.Deployment.prototype.setAutoscaleConfig = function(value) {
67374
+ return jspb.Message.setWrapperField(this, 3, value);
67375
+ };
67376
+
67377
+
67378
+ /**
67379
+ * Clears the message field making it undefined.
67380
+ * @return {!proto.clarifai.api.Deployment} returns this
67381
+ */
67382
+ proto.clarifai.api.Deployment.prototype.clearAutoscaleConfig = function() {
67383
+ return this.setAutoscaleConfig(undefined);
67384
+ };
67385
+
67386
+
67387
+ /**
67388
+ * Returns whether this field is set.
67389
+ * @return {boolean}
67390
+ */
67391
+ proto.clarifai.api.Deployment.prototype.hasAutoscaleConfig = function() {
67392
+ return jspb.Message.getField(this, 3) != null;
67393
+ };
67394
+
67395
+
67396
+ /**
67397
+ * repeated Nodepool nodepools = 4;
67398
+ * @return {!Array<!proto.clarifai.api.Nodepool>}
67399
+ */
67400
+ proto.clarifai.api.Deployment.prototype.getNodepoolsList = function() {
67401
+ return /** @type{!Array<!proto.clarifai.api.Nodepool>} */ (
67402
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Nodepool, 4));
67403
+ };
67404
+
67405
+
67406
+ /**
67407
+ * @param {!Array<!proto.clarifai.api.Nodepool>} value
67408
+ * @return {!proto.clarifai.api.Deployment} returns this
67409
+ */
67410
+ proto.clarifai.api.Deployment.prototype.setNodepoolsList = function(value) {
67411
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
67412
+ };
67413
+
67414
+
67415
+ /**
67416
+ * @param {!proto.clarifai.api.Nodepool=} opt_value
67417
+ * @param {number=} opt_index
67418
+ * @return {!proto.clarifai.api.Nodepool}
67419
+ */
67420
+ proto.clarifai.api.Deployment.prototype.addNodepools = function(opt_value, opt_index) {
67421
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Nodepool, opt_index);
67422
+ };
67423
+
67424
+
67425
+ /**
67426
+ * Clears the list making it empty but non-null.
67427
+ * @return {!proto.clarifai.api.Deployment} returns this
67428
+ */
67429
+ proto.clarifai.api.Deployment.prototype.clearNodepoolsList = function() {
67430
+ return this.setNodepoolsList([]);
67431
+ };
67432
+
67433
+
67434
+ /**
67435
+ * optional Model model = 5;
67436
+ * @return {?proto.clarifai.api.Model}
67437
+ */
67438
+ proto.clarifai.api.Deployment.prototype.getModel = function() {
67439
+ return /** @type{?proto.clarifai.api.Model} */ (
67440
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 5));
67441
+ };
67442
+
67443
+
67444
+ /**
67445
+ * @param {?proto.clarifai.api.Model|undefined} value
67446
+ * @return {!proto.clarifai.api.Deployment} returns this
67447
+ */
67448
+ proto.clarifai.api.Deployment.prototype.setModel = function(value) {
67449
+ return jspb.Message.setOneofWrapperField(this, 5, proto.clarifai.api.Deployment.oneofGroups_[0], value);
67450
+ };
67451
+
67452
+
67453
+ /**
67454
+ * Clears the message field making it undefined.
67455
+ * @return {!proto.clarifai.api.Deployment} returns this
67456
+ */
67457
+ proto.clarifai.api.Deployment.prototype.clearModel = function() {
67458
+ return this.setModel(undefined);
67459
+ };
67460
+
67461
+
67462
+ /**
67463
+ * Returns whether this field is set.
67464
+ * @return {boolean}
67465
+ */
67466
+ proto.clarifai.api.Deployment.prototype.hasModel = function() {
67467
+ return jspb.Message.getField(this, 5) != null;
67468
+ };
67469
+
67470
+
67471
+ /**
67472
+ * optional Workflow workflow = 6;
67473
+ * @return {?proto.clarifai.api.Workflow}
67474
+ */
67475
+ proto.clarifai.api.Deployment.prototype.getWorkflow = function() {
67476
+ return /** @type{?proto.clarifai.api.Workflow} */ (
67477
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 6));
67478
+ };
67479
+
67480
+
67481
+ /**
67482
+ * @param {?proto.clarifai.api.Workflow|undefined} value
67483
+ * @return {!proto.clarifai.api.Deployment} returns this
67484
+ */
67485
+ proto.clarifai.api.Deployment.prototype.setWorkflow = function(value) {
67486
+ return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.Deployment.oneofGroups_[0], value);
67487
+ };
67488
+
67489
+
67490
+ /**
67491
+ * Clears the message field making it undefined.
67492
+ * @return {!proto.clarifai.api.Deployment} returns this
67493
+ */
67494
+ proto.clarifai.api.Deployment.prototype.clearWorkflow = function() {
67495
+ return this.setWorkflow(undefined);
67496
+ };
67497
+
67498
+
67499
+ /**
67500
+ * Returns whether this field is set.
67501
+ * @return {boolean}
67502
+ */
67503
+ proto.clarifai.api.Deployment.prototype.hasWorkflow = function() {
67504
+ return jspb.Message.getField(this, 6) != null;
67505
+ };
67506
+
67507
+
67508
+ /**
67509
+ * optional SchedulingChoice scheduling_choice = 7;
67510
+ * @return {!proto.clarifai.api.Deployment.SchedulingChoice}
67511
+ */
67512
+ proto.clarifai.api.Deployment.prototype.getSchedulingChoice = function() {
67513
+ return /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
67514
+ };
67515
+
67516
+
67517
+ /**
67518
+ * @param {!proto.clarifai.api.Deployment.SchedulingChoice} value
67519
+ * @return {!proto.clarifai.api.Deployment} returns this
67520
+ */
67521
+ proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function(value) {
67522
+ return jspb.Message.setProto3EnumField(this, 7, value);
67523
+ };
67524
+
67525
+
67526
+
67527
+
67528
+
67529
+ if (jspb.Message.GENERATE_TO_OBJECT) {
67530
+ /**
67531
+ * Creates an object representation of this proto.
67532
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67533
+ * Optional fields that are not set will be set to undefined.
67534
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
67535
+ * For the list of reserved names please see:
67536
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
67537
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
67538
+ * JSPB instance for transitional soy proto support:
67539
+ * http://goto/soy-param-migration
67540
+ * @return {!Object}
67541
+ */
67542
+ proto.clarifai.api.RunnerSelector.prototype.toObject = function(opt_includeInstance) {
67543
+ return proto.clarifai.api.RunnerSelector.toObject(opt_includeInstance, this);
67544
+ };
67545
+
67546
+
67547
+ /**
67548
+ * Static version of the {@see toObject} method.
67549
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
67550
+ * the JSPB instance for transitional soy proto support:
67551
+ * http://goto/soy-param-migration
67552
+ * @param {!proto.clarifai.api.RunnerSelector} msg The msg instance to transform.
67553
+ * @return {!Object}
67554
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67555
+ */
67556
+ proto.clarifai.api.RunnerSelector.toObject = function(includeInstance, msg) {
67557
+ var f, obj = {
67558
+ nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
67559
+ runner: (f = msg.getRunner()) && proto.clarifai.api.Runner.toObject(includeInstance, f),
67560
+ deployment: (f = msg.getDeployment()) && proto.clarifai.api.Deployment.toObject(includeInstance, f)
67561
+ };
67562
+
67563
+ if (includeInstance) {
67564
+ obj.$jspbMessageInstance = msg;
67565
+ }
67566
+ return obj;
67567
+ };
67568
+ }
67569
+
67570
+
67571
+ /**
67572
+ * Deserializes binary data (in protobuf wire format).
67573
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
67574
+ * @return {!proto.clarifai.api.RunnerSelector}
67575
+ */
67576
+ proto.clarifai.api.RunnerSelector.deserializeBinary = function(bytes) {
67577
+ var reader = new jspb.BinaryReader(bytes);
67578
+ var msg = new proto.clarifai.api.RunnerSelector;
67579
+ return proto.clarifai.api.RunnerSelector.deserializeBinaryFromReader(msg, reader);
67580
+ };
67581
+
67582
+
67583
+ /**
67584
+ * Deserializes binary data (in protobuf wire format) from the
67585
+ * given reader into the given message object.
67586
+ * @param {!proto.clarifai.api.RunnerSelector} msg The message object to deserialize into.
67587
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
67588
+ * @return {!proto.clarifai.api.RunnerSelector}
67589
+ */
67590
+ proto.clarifai.api.RunnerSelector.deserializeBinaryFromReader = function(msg, reader) {
67591
+ while (reader.nextField()) {
67592
+ if (reader.isEndGroup()) {
67593
+ break;
67594
+ }
67595
+ var field = reader.getFieldNumber();
67596
+ switch (field) {
67597
+ case 1:
67598
+ var value = new proto.clarifai.api.Nodepool;
67599
+ reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
67600
+ msg.setNodepool(value);
67601
+ break;
67602
+ case 2:
67603
+ var value = new proto.clarifai.api.Runner;
67604
+ reader.readMessage(value,proto.clarifai.api.Runner.deserializeBinaryFromReader);
67605
+ msg.setRunner(value);
67606
+ break;
67607
+ case 3:
67608
+ var value = new proto.clarifai.api.Deployment;
67609
+ reader.readMessage(value,proto.clarifai.api.Deployment.deserializeBinaryFromReader);
67610
+ msg.setDeployment(value);
67611
+ break;
67612
+ default:
67613
+ reader.skipField();
67614
+ break;
67615
+ }
67616
+ }
67617
+ return msg;
67618
+ };
67619
+
67620
+
67621
+ /**
67622
+ * Serializes the message to binary data (in protobuf wire format).
67623
+ * @return {!Uint8Array}
67624
+ */
67625
+ proto.clarifai.api.RunnerSelector.prototype.serializeBinary = function() {
67626
+ var writer = new jspb.BinaryWriter();
67627
+ proto.clarifai.api.RunnerSelector.serializeBinaryToWriter(this, writer);
67628
+ return writer.getResultBuffer();
67629
+ };
67630
+
67631
+
67632
+ /**
67633
+ * Serializes the given message to binary data (in protobuf wire
67634
+ * format), writing to the given BinaryWriter.
67635
+ * @param {!proto.clarifai.api.RunnerSelector} message
67636
+ * @param {!jspb.BinaryWriter} writer
67637
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67638
+ */
67639
+ proto.clarifai.api.RunnerSelector.serializeBinaryToWriter = function(message, writer) {
67640
+ var f = undefined;
67641
+ f = message.getNodepool();
67642
+ if (f != null) {
67643
+ writer.writeMessage(
67644
+ 1,
67645
+ f,
67646
+ proto.clarifai.api.Nodepool.serializeBinaryToWriter
67647
+ );
67648
+ }
67649
+ f = message.getRunner();
67650
+ if (f != null) {
67651
+ writer.writeMessage(
67652
+ 2,
67653
+ f,
67654
+ proto.clarifai.api.Runner.serializeBinaryToWriter
67655
+ );
67656
+ }
67657
+ f = message.getDeployment();
67658
+ if (f != null) {
67659
+ writer.writeMessage(
67660
+ 3,
67661
+ f,
67662
+ proto.clarifai.api.Deployment.serializeBinaryToWriter
67663
+ );
67664
+ }
67665
+ };
67666
+
67667
+
67668
+ /**
67669
+ * optional Nodepool nodepool = 1;
67670
+ * @return {?proto.clarifai.api.Nodepool}
67671
+ */
67672
+ proto.clarifai.api.RunnerSelector.prototype.getNodepool = function() {
67673
+ return /** @type{?proto.clarifai.api.Nodepool} */ (
67674
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 1));
67675
+ };
67676
+
67677
+
67678
+ /**
67679
+ * @param {?proto.clarifai.api.Nodepool|undefined} value
67680
+ * @return {!proto.clarifai.api.RunnerSelector} returns this
67681
+ */
67682
+ proto.clarifai.api.RunnerSelector.prototype.setNodepool = function(value) {
67683
+ return jspb.Message.setWrapperField(this, 1, value);
67684
+ };
67685
+
67686
+
67687
+ /**
67688
+ * Clears the message field making it undefined.
67689
+ * @return {!proto.clarifai.api.RunnerSelector} returns this
67690
+ */
67691
+ proto.clarifai.api.RunnerSelector.prototype.clearNodepool = function() {
67692
+ return this.setNodepool(undefined);
67693
+ };
67694
+
67695
+
67696
+ /**
67697
+ * Returns whether this field is set.
67698
+ * @return {boolean}
67699
+ */
67700
+ proto.clarifai.api.RunnerSelector.prototype.hasNodepool = function() {
67701
+ return jspb.Message.getField(this, 1) != null;
67702
+ };
67703
+
67704
+
67705
+ /**
67706
+ * optional Runner runner = 2;
67707
+ * @return {?proto.clarifai.api.Runner}
67708
+ */
67709
+ proto.clarifai.api.RunnerSelector.prototype.getRunner = function() {
67710
+ return /** @type{?proto.clarifai.api.Runner} */ (
67711
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Runner, 2));
67712
+ };
67713
+
67714
+
67715
+ /**
67716
+ * @param {?proto.clarifai.api.Runner|undefined} value
67717
+ * @return {!proto.clarifai.api.RunnerSelector} returns this
67718
+ */
67719
+ proto.clarifai.api.RunnerSelector.prototype.setRunner = function(value) {
67720
+ return jspb.Message.setWrapperField(this, 2, value);
67721
+ };
67722
+
67723
+
67724
+ /**
67725
+ * Clears the message field making it undefined.
67726
+ * @return {!proto.clarifai.api.RunnerSelector} returns this
67727
+ */
67728
+ proto.clarifai.api.RunnerSelector.prototype.clearRunner = function() {
67729
+ return this.setRunner(undefined);
67730
+ };
67731
+
67732
+
67733
+ /**
67734
+ * Returns whether this field is set.
67735
+ * @return {boolean}
67736
+ */
67737
+ proto.clarifai.api.RunnerSelector.prototype.hasRunner = function() {
67738
+ return jspb.Message.getField(this, 2) != null;
67739
+ };
67740
+
67741
+
67742
+ /**
67743
+ * optional Deployment deployment = 3;
67744
+ * @return {?proto.clarifai.api.Deployment}
67745
+ */
67746
+ proto.clarifai.api.RunnerSelector.prototype.getDeployment = function() {
67747
+ return /** @type{?proto.clarifai.api.Deployment} */ (
67748
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Deployment, 3));
67749
+ };
67750
+
67751
+
67752
+ /**
67753
+ * @param {?proto.clarifai.api.Deployment|undefined} value
67754
+ * @return {!proto.clarifai.api.RunnerSelector} returns this
67755
+ */
67756
+ proto.clarifai.api.RunnerSelector.prototype.setDeployment = function(value) {
67757
+ return jspb.Message.setWrapperField(this, 3, value);
67758
+ };
67759
+
67760
+
67761
+ /**
67762
+ * Clears the message field making it undefined.
67763
+ * @return {!proto.clarifai.api.RunnerSelector} returns this
67764
+ */
67765
+ proto.clarifai.api.RunnerSelector.prototype.clearDeployment = function() {
67766
+ return this.setDeployment(undefined);
67767
+ };
67768
+
67769
+
67770
+ /**
67771
+ * Returns whether this field is set.
67772
+ * @return {boolean}
67773
+ */
67774
+ proto.clarifai.api.RunnerSelector.prototype.hasDeployment = function() {
67775
+ return jspb.Message.getField(this, 3) != null;
67776
+ };
67777
+
67778
+
67779
+
67780
+
67781
+
67782
+ if (jspb.Message.GENERATE_TO_OBJECT) {
67783
+ /**
67784
+ * Creates an object representation of this proto.
67785
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67786
+ * Optional fields that are not set will be set to undefined.
67787
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
67788
+ * For the list of reserved names please see:
67789
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
67790
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
67791
+ * JSPB instance for transitional soy proto support:
67792
+ * http://goto/soy-param-migration
67793
+ * @return {!Object}
67794
+ */
67795
+ proto.clarifai.api.ProcessingInfo.prototype.toObject = function(opt_includeInstance) {
67796
+ return proto.clarifai.api.ProcessingInfo.toObject(opt_includeInstance, this);
67797
+ };
67798
+
67799
+
67800
+ /**
67801
+ * Static version of the {@see toObject} method.
67802
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
67803
+ * the JSPB instance for transitional soy proto support:
67804
+ * http://goto/soy-param-migration
67805
+ * @param {!proto.clarifai.api.ProcessingInfo} msg The msg instance to transform.
67806
+ * @return {!Object}
67807
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67808
+ */
67809
+ proto.clarifai.api.ProcessingInfo.toObject = function(includeInstance, msg) {
67810
+ var f, obj = {
67811
+ runnerMethodType: jspb.Message.getFieldWithDefault(msg, 1, 0),
67812
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
67813
+ };
67814
+
67815
+ if (includeInstance) {
67816
+ obj.$jspbMessageInstance = msg;
67817
+ }
67818
+ return obj;
67819
+ };
67820
+ }
67821
+
67822
+
67823
+ /**
67824
+ * Deserializes binary data (in protobuf wire format).
67825
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
67826
+ * @return {!proto.clarifai.api.ProcessingInfo}
67827
+ */
67828
+ proto.clarifai.api.ProcessingInfo.deserializeBinary = function(bytes) {
67829
+ var reader = new jspb.BinaryReader(bytes);
67830
+ var msg = new proto.clarifai.api.ProcessingInfo;
67831
+ return proto.clarifai.api.ProcessingInfo.deserializeBinaryFromReader(msg, reader);
67832
+ };
67833
+
67834
+
67835
+ /**
67836
+ * Deserializes binary data (in protobuf wire format) from the
67837
+ * given reader into the given message object.
67838
+ * @param {!proto.clarifai.api.ProcessingInfo} msg The message object to deserialize into.
67839
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
67840
+ * @return {!proto.clarifai.api.ProcessingInfo}
67841
+ */
67842
+ proto.clarifai.api.ProcessingInfo.deserializeBinaryFromReader = function(msg, reader) {
67843
+ while (reader.nextField()) {
67844
+ if (reader.isEndGroup()) {
67845
+ break;
67846
+ }
67847
+ var field = reader.getFieldNumber();
67848
+ switch (field) {
67849
+ case 1:
67850
+ var value = /** @type {!proto.clarifai.api.RunnerMethodType} */ (reader.readEnum());
67851
+ msg.setRunnerMethodType(value);
67852
+ break;
67853
+ case 2:
67854
+ var value = new proto_clarifai_api_status_status_pb.Status;
67855
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
67856
+ msg.setStatus(value);
67857
+ break;
67858
+ default:
67859
+ reader.skipField();
67860
+ break;
67861
+ }
67862
+ }
67863
+ return msg;
67864
+ };
67865
+
67866
+
67867
+ /**
67868
+ * Serializes the message to binary data (in protobuf wire format).
67869
+ * @return {!Uint8Array}
67870
+ */
67871
+ proto.clarifai.api.ProcessingInfo.prototype.serializeBinary = function() {
67872
+ var writer = new jspb.BinaryWriter();
67873
+ proto.clarifai.api.ProcessingInfo.serializeBinaryToWriter(this, writer);
67874
+ return writer.getResultBuffer();
67875
+ };
67876
+
67877
+
67878
+ /**
67879
+ * Serializes the given message to binary data (in protobuf wire
67880
+ * format), writing to the given BinaryWriter.
67881
+ * @param {!proto.clarifai.api.ProcessingInfo} message
67882
+ * @param {!jspb.BinaryWriter} writer
67883
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67884
+ */
67885
+ proto.clarifai.api.ProcessingInfo.serializeBinaryToWriter = function(message, writer) {
67886
+ var f = undefined;
67887
+ f = message.getRunnerMethodType();
67888
+ if (f !== 0.0) {
67889
+ writer.writeEnum(
67890
+ 1,
67891
+ f
67892
+ );
67893
+ }
67894
+ f = message.getStatus();
67895
+ if (f != null) {
67896
+ writer.writeMessage(
67897
+ 2,
67898
+ f,
67899
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
67900
+ );
67901
+ }
67902
+ };
67903
+
67904
+
67905
+ /**
67906
+ * optional RunnerMethodType runner_method_type = 1;
67907
+ * @return {!proto.clarifai.api.RunnerMethodType}
67908
+ */
67909
+ proto.clarifai.api.ProcessingInfo.prototype.getRunnerMethodType = function() {
67910
+ return /** @type {!proto.clarifai.api.RunnerMethodType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
67911
+ };
67912
+
67913
+
67914
+ /**
67915
+ * @param {!proto.clarifai.api.RunnerMethodType} value
67916
+ * @return {!proto.clarifai.api.ProcessingInfo} returns this
67917
+ */
67918
+ proto.clarifai.api.ProcessingInfo.prototype.setRunnerMethodType = function(value) {
67919
+ return jspb.Message.setProto3EnumField(this, 1, value);
67920
+ };
67921
+
67922
+
67923
+ /**
67924
+ * optional status.Status status = 2;
67925
+ * @return {?proto.clarifai.api.status.Status}
67926
+ */
67927
+ proto.clarifai.api.ProcessingInfo.prototype.getStatus = function() {
67928
+ return /** @type{?proto.clarifai.api.status.Status} */ (
67929
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2));
67930
+ };
67931
+
67932
+
67933
+ /**
67934
+ * @param {?proto.clarifai.api.status.Status|undefined} value
67935
+ * @return {!proto.clarifai.api.ProcessingInfo} returns this
67936
+ */
67937
+ proto.clarifai.api.ProcessingInfo.prototype.setStatus = function(value) {
67938
+ return jspb.Message.setWrapperField(this, 2, value);
67939
+ };
67940
+
67941
+
67942
+ /**
67943
+ * Clears the message field making it undefined.
67944
+ * @return {!proto.clarifai.api.ProcessingInfo} returns this
67945
+ */
67946
+ proto.clarifai.api.ProcessingInfo.prototype.clearStatus = function() {
67947
+ return this.setStatus(undefined);
67948
+ };
67949
+
67950
+
67951
+ /**
67952
+ * Returns whether this field is set.
67953
+ * @return {boolean}
67954
+ */
67955
+ proto.clarifai.api.ProcessingInfo.prototype.hasStatus = function() {
67956
+ return jspb.Message.getField(this, 2) != null;
67957
+ };
67958
+
67959
+
67960
+ /**
67961
+ * @enum {number}
67962
+ */
67963
+ proto.clarifai.api.WorkflowModelUseCase = {
67964
+ WORKFLOW_MODEL_USE_CASE_NOT_SET: 0,
67965
+ CLASSIFICATION: 1,
67966
+ DETECTION: 2
67967
+ };
67968
+
67969
+ /**
67970
+ * @enum {number}
67971
+ */
67972
+ proto.clarifai.api.DatasetVersionRequestOrigin = {
67973
+ DATASET_VERSION_REQUEST_ORIGIN_NOT_SET: 0,
67974
+ MANUAL: 1,
67975
+ TRAINING: 2,
67976
+ EVAL_GROUND_TRUTH: 3,
67977
+ EVAL_PREDICTIONS: 4
67978
+ };
67979
+
67980
+ /**
67981
+ * @enum {number}
67982
+ */
67983
+ proto.clarifai.api.DatasetVersionMetricsGroupType = {
67984
+ DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET: 0,
67985
+ INPUT_TYPE: 2,
67986
+ CONCEPT_ID: 10,
67987
+ CONCEPTS_COUNT: 11,
67988
+ BOUNDING_BOXES_COUNT: 20,
67989
+ POLYGONS_COUNT: 21,
67990
+ POINTS_COUNT: 22,
67991
+ MASKS_COUNT: 23,
67992
+ PIXELS_COUNT: 30,
67993
+ ASPECT_RATIO: 31
67994
+ };
67995
+
67996
+ /**
67997
+ * @enum {number}
67998
+ */
67999
+ proto.clarifai.api.DatasetVersionExportFormat = {
68000
+ DATASET_VERSION_EXPORT_FORMAT_NOT_SET: 0,
68001
+ CLARIFAI_DATA_PROTOBUF: 1,
68002
+ CLARIFAI_DATA_JSON: 3,
68003
+ COCO: 2
68004
+ };
68005
+
68006
+ /**
68007
+ * @enum {number}
68008
+ */
68009
+ proto.clarifai.api.ExpirationAction = {
68010
+ EXPIRATION_ACTION_NOT_SET: 0,
68011
+ DELAY: 1,
68012
+ EXPIRY: 2
68013
+ };
68014
+
68015
+ /**
68016
+ * @enum {number}
68017
+ */
68018
+ proto.clarifai.api.LicenseScope = {
68019
+ LICENSE_SCOPE_NOT_SET: 0,
68020
+ PREDICT: 1,
68021
+ TRAIN: 2,
68022
+ SEARCH: 3
68023
+ };
68024
+
68025
+ /**
68026
+ * @enum {number}
68027
+ */
68028
+ proto.clarifai.api.DataType = {
68029
+ UNDEFINED: 0,
68030
+ STRING: 1,
68031
+ UINT8: 2,
68032
+ INT32: 3,
68033
+ INT64: 4,
68034
+ FP32: 5
68035
+ };
68036
+
68037
+ /**
68038
+ * @enum {number}
68039
+ */
68040
+ proto.clarifai.api.ValueComparator = {
68041
+ CONCEPT_THRESHOLD_NOT_SET: 0,
68042
+ GREATER_THAN: 1,
68043
+ GREATER_THAN_OR_EQUAL: 2,
68044
+ LESS_THAN: 3,
68045
+ LESS_THAN_OR_EQUAL: 4,
68046
+ EQUAL: 5
68047
+ };
68048
+
68049
+ /**
68050
+ * @enum {number}
68051
+ */
68052
+ proto.clarifai.api.EvaluationType = {
68053
+ UNDEFINED: 0,
68054
+ CLASSIFICATION: 1,
68055
+ DETECTION: 2,
68056
+ SEGMENTATION: 3,
68057
+ CLUSTERING: 4,
68058
+ TRACKER: 5,
68059
+ GENERATION: 6
68060
+ };
68061
+
68062
+ /**
68063
+ * @enum {number}
68064
+ */
68065
+ proto.clarifai.api.APIEventType = {
68066
+ API_EVENT_TYPE_NOT_SET: 0,
68067
+ ON_PREM_PREDICT: 1,
68068
+ ON_PREM_TRAIN: 2,
68069
+ ON_PREM_SEARCH: 3
68070
+ };
68071
+
68072
+ /**
68073
+ * @enum {number}
68074
+ */
68075
+ proto.clarifai.api.UsageIntervalType = {
68076
+ UNDEF: 0,
68077
+ DAY: 1,
68078
+ MONTH: 2,
68079
+ YEAR: 3
68080
+ };
68081
+
68082
+ /**
68083
+ * @enum {number}
68084
+ */
68085
+ proto.clarifai.api.AnnotationDataType = {
68086
+ ANNOTATION_DATA_TYPE_NOT_SET: 0,
68087
+ TAG: 1,
68088
+ BOUNDING_BOX: 2,
68089
+ POLYGON: 4,
68090
+ POINT: 8,
68091
+ SPAN: 16,
68092
+ MASK: 32
68093
+ };
68094
+
68095
+ /**
68096
+ * @enum {number}
68097
+ */
68098
+ proto.clarifai.api.RoleType = {
68099
+ TEAM: 0,
68100
+ ORG: 1
68101
+ };
68102
+
68103
+ /**
68104
+ * @enum {number}
68105
+ */
68106
+ proto.clarifai.api.StatValueAggType = {
68107
+ SUM: 0,
68108
+ AVG: 1
68109
+ };
68110
+
68111
+ /**
68112
+ * @enum {number}
68113
+ */
68114
+ proto.clarifai.api.StatTimeAggType = {
68115
+ NO_TIME_AGG: 0,
68116
+ YEAR: 1,
68117
+ MONTH: 2,
68118
+ WEEK: 3,
68119
+ DAY: 4,
68120
+ HOUR: 5,
68121
+ MINUTE: 6
68122
+ };
68123
+
68124
+ /**
68125
+ * @enum {number}
68126
+ */
68127
+ proto.clarifai.api.ValidationErrorType = {
68128
+ VALIDATION_ERROR_TYPE_NOT_SET: 0,
68129
+ RESTRICTED: 1,
68130
+ DATABASE: 2,
68131
+ FORMAT: 3
68132
+ };
68133
+
68134
+ /**
68135
+ * @enum {number}
68136
+ */
68137
+ proto.clarifai.api.InputIDConflictResolution = {
68138
+ INPUT_ID_CONFLICT_RESOLUTION_NOT_SET: 0,
68139
+ SKIP: 1,
68140
+ SUFFIX: 2
68141
+ };
68142
+
68143
+ /**
68144
+ * @enum {number}
68145
+ */
68146
+ proto.clarifai.api.RunnerMethodType = {
68147
+ UNKNOWN: 0,
68148
+ UNARY_UNARY: 1,
68149
+ UNARY_STREAMING: 2,
68150
+ STREAMING_UNARY: 3,
68151
+ STREAMING_STREAMING: 4
64896
68152
  };
64897
68153
 
64898
68154
  goog.object.extend(exports, proto.clarifai.api);