clarifai-web-grpc 10.3.3 → 10.4.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.
@@ -68,14 +68,14 @@ goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global);
68
68
  goog.exportSymbol('proto.clarifai.api.BuildInfo', null, global);
69
69
  goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global);
70
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);
71
+ goog.exportSymbol('proto.clarifai.api.CloudProvider', null, global);
73
72
  goog.exportSymbol('proto.clarifai.api.Cluster', null, global);
74
73
  goog.exportSymbol('proto.clarifai.api.Collaboration', null, global);
75
74
  goog.exportSymbol('proto.clarifai.api.Collaborator', null, global);
76
75
  goog.exportSymbol('proto.clarifai.api.Collector', null, global);
77
76
  goog.exportSymbol('proto.clarifai.api.CollectorSource', null, global);
78
77
  goog.exportSymbol('proto.clarifai.api.Color', null, global);
78
+ goog.exportSymbol('proto.clarifai.api.ComputeCluster', null, global);
79
79
  goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
80
80
  goog.exportSymbol('proto.clarifai.api.Concept', null, global);
81
81
  goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
@@ -83,6 +83,7 @@ goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
83
83
  goog.exportSymbol('proto.clarifai.api.ConceptLanguage', null, global);
84
84
  goog.exportSymbol('proto.clarifai.api.ConceptMappingJob', null, global);
85
85
  goog.exportSymbol('proto.clarifai.api.ConceptQuery', null, global);
86
+ goog.exportSymbol('proto.clarifai.api.ConceptQuery.SourceCase', null, global);
86
87
  goog.exportSymbol('proto.clarifai.api.ConceptRelation', null, global);
87
88
  goog.exportSymbol('proto.clarifai.api.ConceptTypeCount', null, global);
88
89
  goog.exportSymbol('proto.clarifai.api.ConfusionMatrix', null, global);
@@ -157,6 +158,7 @@ goog.exportSymbol('proto.clarifai.api.InputsExtractionJob', null, global);
157
158
  goog.exportSymbol('proto.clarifai.api.InputsExtractionJobProgress', null, global);
158
159
  goog.exportSymbol('proto.clarifai.api.InputsUpload', null, global);
159
160
  goog.exportSymbol('proto.clarifai.api.InstalledModuleVersion', null, global);
161
+ goog.exportSymbol('proto.clarifai.api.InstanceType', null, global);
160
162
  goog.exportSymbol('proto.clarifai.api.Key', null, global);
161
163
  goog.exportSymbol('proto.clarifai.api.KeypointEdge', null, global);
162
164
  goog.exportSymbol('proto.clarifai.api.KeypointInfo', null, global);
@@ -189,9 +191,10 @@ goog.exportSymbol('proto.clarifai.api.ModuleStar', null, global);
189
191
  goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global);
190
192
  goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global);
191
193
  goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global);
194
+ goog.exportSymbol('proto.clarifai.api.NodeCapacityType', null, global);
195
+ goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, global);
192
196
  goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
193
197
  goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
194
- goog.exportSymbol('proto.clarifai.api.Nodepool.CapacityType', null, global);
195
198
  goog.exportSymbol('proto.clarifai.api.Operation', null, global);
196
199
  goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
197
200
  goog.exportSymbol('proto.clarifai.api.Output', null, global);
@@ -216,7 +219,6 @@ goog.exportSymbol('proto.clarifai.api.Region', null, global);
216
219
  goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
217
220
  goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
218
221
  goog.exportSymbol('proto.clarifai.api.Runner', null, global);
219
- goog.exportSymbol('proto.clarifai.api.Runner.ObjectCase', null, global);
220
222
  goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
221
223
  goog.exportSymbol('proto.clarifai.api.RunnerSelector', null, global);
222
224
  goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
@@ -245,6 +247,7 @@ goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global
245
247
  goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, global);
246
248
  goog.exportSymbol('proto.clarifai.api.TaskReviewConsensusStrategyInfo', null, global);
247
249
  goog.exportSymbol('proto.clarifai.api.TaskReviewManualStrategyInfo', null, global);
250
+ goog.exportSymbol('proto.clarifai.api.TaskReviewMetrics', null, global);
248
251
  goog.exportSymbol('proto.clarifai.api.TaskStatusCountPerUser', null, global);
249
252
  goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
250
253
  goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
@@ -781,7 +784,7 @@ if (goog.DEBUG && !COMPILED) {
781
784
  * @constructor
782
785
  */
783
786
  proto.clarifai.api.ConceptQuery = function(opt_data) {
784
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_, null);
787
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_, proto.clarifai.api.ConceptQuery.oneofGroups_);
785
788
  };
786
789
  goog.inherits(proto.clarifai.api.ConceptQuery, jspb.Message);
787
790
  if (goog.DEBUG && !COMPILED) {
@@ -3458,6 +3461,27 @@ if (goog.DEBUG && !COMPILED) {
3458
3461
  */
3459
3462
  proto.clarifai.api.TaskWorkMetrics.displayName = 'proto.clarifai.api.TaskWorkMetrics';
3460
3463
  }
3464
+ /**
3465
+ * Generated by JsPbCodeGenerator.
3466
+ * @param {Array=} opt_data Optional initial data array, typically from a
3467
+ * server response, or constructed directly in Javascript. The array is used
3468
+ * in place and becomes part of the constructed object. It is not cloned.
3469
+ * If no data is provided, the constructed object will be empty, but still
3470
+ * valid.
3471
+ * @extends {jspb.Message}
3472
+ * @constructor
3473
+ */
3474
+ proto.clarifai.api.TaskReviewMetrics = function(opt_data) {
3475
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3476
+ };
3477
+ goog.inherits(proto.clarifai.api.TaskReviewMetrics, jspb.Message);
3478
+ if (goog.DEBUG && !COMPILED) {
3479
+ /**
3480
+ * @public
3481
+ * @override
3482
+ */
3483
+ proto.clarifai.api.TaskReviewMetrics.displayName = 'proto.clarifai.api.TaskReviewMetrics';
3484
+ }
3461
3485
  /**
3462
3486
  * Generated by JsPbCodeGenerator.
3463
3487
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4498,7 +4522,7 @@ if (goog.DEBUG && !COMPILED) {
4498
4522
  * @constructor
4499
4523
  */
4500
4524
  proto.clarifai.api.Runner = function(opt_data) {
4501
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, proto.clarifai.api.Runner.oneofGroups_);
4525
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, null);
4502
4526
  };
4503
4527
  goog.inherits(proto.clarifai.api.Runner, jspb.Message);
4504
4528
  if (goog.DEBUG && !COMPILED) {
@@ -4539,16 +4563,79 @@ if (goog.DEBUG && !COMPILED) {
4539
4563
  * @extends {jspb.Message}
4540
4564
  * @constructor
4541
4565
  */
4542
- proto.clarifai.api.CloudRegion = function(opt_data) {
4566
+ proto.clarifai.api.NodeCapacityType = function(opt_data) {
4567
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.NodeCapacityType.repeatedFields_, null);
4568
+ };
4569
+ goog.inherits(proto.clarifai.api.NodeCapacityType, jspb.Message);
4570
+ if (goog.DEBUG && !COMPILED) {
4571
+ /**
4572
+ * @public
4573
+ * @override
4574
+ */
4575
+ proto.clarifai.api.NodeCapacityType.displayName = 'proto.clarifai.api.NodeCapacityType';
4576
+ }
4577
+ /**
4578
+ * Generated by JsPbCodeGenerator.
4579
+ * @param {Array=} opt_data Optional initial data array, typically from a
4580
+ * server response, or constructed directly in Javascript. The array is used
4581
+ * in place and becomes part of the constructed object. It is not cloned.
4582
+ * If no data is provided, the constructed object will be empty, but still
4583
+ * valid.
4584
+ * @extends {jspb.Message}
4585
+ * @constructor
4586
+ */
4587
+ proto.clarifai.api.InstanceType = function(opt_data) {
4588
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4589
+ };
4590
+ goog.inherits(proto.clarifai.api.InstanceType, jspb.Message);
4591
+ if (goog.DEBUG && !COMPILED) {
4592
+ /**
4593
+ * @public
4594
+ * @override
4595
+ */
4596
+ proto.clarifai.api.InstanceType.displayName = 'proto.clarifai.api.InstanceType';
4597
+ }
4598
+ /**
4599
+ * Generated by JsPbCodeGenerator.
4600
+ * @param {Array=} opt_data Optional initial data array, typically from a
4601
+ * server response, or constructed directly in Javascript. The array is used
4602
+ * in place and becomes part of the constructed object. It is not cloned.
4603
+ * If no data is provided, the constructed object will be empty, but still
4604
+ * valid.
4605
+ * @extends {jspb.Message}
4606
+ * @constructor
4607
+ */
4608
+ proto.clarifai.api.CloudProvider = function(opt_data) {
4609
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4610
+ };
4611
+ goog.inherits(proto.clarifai.api.CloudProvider, jspb.Message);
4612
+ if (goog.DEBUG && !COMPILED) {
4613
+ /**
4614
+ * @public
4615
+ * @override
4616
+ */
4617
+ proto.clarifai.api.CloudProvider.displayName = 'proto.clarifai.api.CloudProvider';
4618
+ }
4619
+ /**
4620
+ * Generated by JsPbCodeGenerator.
4621
+ * @param {Array=} opt_data Optional initial data array, typically from a
4622
+ * server response, or constructed directly in Javascript. The array is used
4623
+ * in place and becomes part of the constructed object. It is not cloned.
4624
+ * If no data is provided, the constructed object will be empty, but still
4625
+ * valid.
4626
+ * @extends {jspb.Message}
4627
+ * @constructor
4628
+ */
4629
+ proto.clarifai.api.ComputeCluster = function(opt_data) {
4543
4630
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4544
4631
  };
4545
- goog.inherits(proto.clarifai.api.CloudRegion, jspb.Message);
4632
+ goog.inherits(proto.clarifai.api.ComputeCluster, jspb.Message);
4546
4633
  if (goog.DEBUG && !COMPILED) {
4547
4634
  /**
4548
4635
  * @public
4549
4636
  * @override
4550
4637
  */
4551
- proto.clarifai.api.CloudRegion.displayName = 'proto.clarifai.api.CloudRegion';
4638
+ proto.clarifai.api.ComputeCluster.displayName = 'proto.clarifai.api.ComputeCluster';
4552
4639
  }
4553
4640
  /**
4554
4641
  * Generated by JsPbCodeGenerator.
@@ -11506,6 +11593,32 @@ proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function() {
11506
11593
  */
11507
11594
  proto.clarifai.api.ConceptQuery.repeatedFields_ = [4];
11508
11595
 
11596
+ /**
11597
+ * Oneof group definitions for this message. Each group defines the field
11598
+ * numbers belonging to that group. When of these fields' value is set, all
11599
+ * other fields in the group are cleared. During deserialization, if multiple
11600
+ * fields are encountered for a group, only the last value seen will be kept.
11601
+ * @private {!Array<!Array<number>>}
11602
+ * @const
11603
+ */
11604
+ proto.clarifai.api.ConceptQuery.oneofGroups_ = [[5,6]];
11605
+
11606
+ /**
11607
+ * @enum {number}
11608
+ */
11609
+ proto.clarifai.api.ConceptQuery.SourceCase = {
11610
+ SOURCE_NOT_SET: 0,
11611
+ MODEL: 5,
11612
+ WORKFLOW: 6
11613
+ };
11614
+
11615
+ /**
11616
+ * @return {proto.clarifai.api.ConceptQuery.SourceCase}
11617
+ */
11618
+ proto.clarifai.api.ConceptQuery.prototype.getSourceCase = function() {
11619
+ return /** @type {proto.clarifai.api.ConceptQuery.SourceCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ConceptQuery.oneofGroups_[0]));
11620
+ };
11621
+
11509
11622
 
11510
11623
 
11511
11624
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -11540,7 +11653,9 @@ proto.clarifai.api.ConceptQuery.toObject = function(includeInstance, msg) {
11540
11653
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
11541
11654
  language: jspb.Message.getFieldWithDefault(msg, 2, ""),
11542
11655
  workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
11543
- useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
11656
+ useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
11657
+ model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
11658
+ workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f)
11544
11659
  };
11545
11660
 
11546
11661
  if (includeInstance) {
@@ -11595,6 +11710,16 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function(msg, read
11595
11710
  msg.addUseCases(values[i]);
11596
11711
  }
11597
11712
  break;
11713
+ case 5:
11714
+ var value = new proto.clarifai.api.Model;
11715
+ reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
11716
+ msg.setModel(value);
11717
+ break;
11718
+ case 6:
11719
+ var value = new proto.clarifai.api.Workflow;
11720
+ reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
11721
+ msg.setWorkflow(value);
11722
+ break;
11598
11723
  default:
11599
11724
  reader.skipField();
11600
11725
  break;
@@ -11652,6 +11777,22 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function(message, writ
11652
11777
  f
11653
11778
  );
11654
11779
  }
11780
+ f = message.getModel();
11781
+ if (f != null) {
11782
+ writer.writeMessage(
11783
+ 5,
11784
+ f,
11785
+ proto.clarifai.api.Model.serializeBinaryToWriter
11786
+ );
11787
+ }
11788
+ f = message.getWorkflow();
11789
+ if (f != null) {
11790
+ writer.writeMessage(
11791
+ 6,
11792
+ f,
11793
+ proto.clarifai.api.Workflow.serializeBinaryToWriter
11794
+ );
11795
+ }
11655
11796
  };
11656
11797
 
11657
11798
 
@@ -11746,6 +11887,80 @@ proto.clarifai.api.ConceptQuery.prototype.clearUseCasesList = function() {
11746
11887
  };
11747
11888
 
11748
11889
 
11890
+ /**
11891
+ * optional Model model = 5;
11892
+ * @return {?proto.clarifai.api.Model}
11893
+ */
11894
+ proto.clarifai.api.ConceptQuery.prototype.getModel = function() {
11895
+ return /** @type{?proto.clarifai.api.Model} */ (
11896
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 5));
11897
+ };
11898
+
11899
+
11900
+ /**
11901
+ * @param {?proto.clarifai.api.Model|undefined} value
11902
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
11903
+ */
11904
+ proto.clarifai.api.ConceptQuery.prototype.setModel = function(value) {
11905
+ return jspb.Message.setOneofWrapperField(this, 5, proto.clarifai.api.ConceptQuery.oneofGroups_[0], value);
11906
+ };
11907
+
11908
+
11909
+ /**
11910
+ * Clears the message field making it undefined.
11911
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
11912
+ */
11913
+ proto.clarifai.api.ConceptQuery.prototype.clearModel = function() {
11914
+ return this.setModel(undefined);
11915
+ };
11916
+
11917
+
11918
+ /**
11919
+ * Returns whether this field is set.
11920
+ * @return {boolean}
11921
+ */
11922
+ proto.clarifai.api.ConceptQuery.prototype.hasModel = function() {
11923
+ return jspb.Message.getField(this, 5) != null;
11924
+ };
11925
+
11926
+
11927
+ /**
11928
+ * optional Workflow workflow = 6;
11929
+ * @return {?proto.clarifai.api.Workflow}
11930
+ */
11931
+ proto.clarifai.api.ConceptQuery.prototype.getWorkflow = function() {
11932
+ return /** @type{?proto.clarifai.api.Workflow} */ (
11933
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 6));
11934
+ };
11935
+
11936
+
11937
+ /**
11938
+ * @param {?proto.clarifai.api.Workflow|undefined} value
11939
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
11940
+ */
11941
+ proto.clarifai.api.ConceptQuery.prototype.setWorkflow = function(value) {
11942
+ return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.ConceptQuery.oneofGroups_[0], value);
11943
+ };
11944
+
11945
+
11946
+ /**
11947
+ * Clears the message field making it undefined.
11948
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
11949
+ */
11950
+ proto.clarifai.api.ConceptQuery.prototype.clearWorkflow = function() {
11951
+ return this.setWorkflow(undefined);
11952
+ };
11953
+
11954
+
11955
+ /**
11956
+ * Returns whether this field is set.
11957
+ * @return {boolean}
11958
+ */
11959
+ proto.clarifai.api.ConceptQuery.prototype.hasWorkflow = function() {
11960
+ return jspb.Message.getField(this, 6) != null;
11961
+ };
11962
+
11963
+
11749
11964
 
11750
11965
 
11751
11966
 
@@ -41282,6 +41497,7 @@ proto.clarifai.api.User.toObject = function(includeInstance, msg) {
41282
41497
  jobTitle: jspb.Message.getFieldWithDefault(msg, 19, ""),
41283
41498
  jobRole: jspb.Message.getFieldWithDefault(msg, 20, ""),
41284
41499
  intention: jspb.Message.getFieldWithDefault(msg, 24, ""),
41500
+ referralSource: jspb.Message.getFieldWithDefault(msg, 25, ""),
41285
41501
  billType: jspb.Message.getFieldWithDefault(msg, 7, ""),
41286
41502
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
41287
41503
  dateGdprConsent: (f = msg.getDateGdprConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
@@ -41365,6 +41581,10 @@ proto.clarifai.api.User.deserializeBinaryFromReader = function(msg, reader) {
41365
41581
  var value = /** @type {string} */ (reader.readString());
41366
41582
  msg.setIntention(value);
41367
41583
  break;
41584
+ case 25:
41585
+ var value = /** @type {string} */ (reader.readString());
41586
+ msg.setReferralSource(value);
41587
+ break;
41368
41588
  case 7:
41369
41589
  var value = /** @type {string} */ (reader.readString());
41370
41590
  msg.setBillType(value);
@@ -41515,6 +41735,13 @@ proto.clarifai.api.User.serializeBinaryToWriter = function(message, writer) {
41515
41735
  f
41516
41736
  );
41517
41737
  }
41738
+ f = message.getReferralSource();
41739
+ if (f.length > 0) {
41740
+ writer.writeString(
41741
+ 25,
41742
+ f
41743
+ );
41744
+ }
41518
41745
  f = message.getBillType();
41519
41746
  if (f.length > 0) {
41520
41747
  writer.writeString(
@@ -41769,6 +41996,24 @@ proto.clarifai.api.User.prototype.setIntention = function(value) {
41769
41996
  };
41770
41997
 
41771
41998
 
41999
+ /**
42000
+ * optional string referral_source = 25;
42001
+ * @return {string}
42002
+ */
42003
+ proto.clarifai.api.User.prototype.getReferralSource = function() {
42004
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
42005
+ };
42006
+
42007
+
42008
+ /**
42009
+ * @param {string} value
42010
+ * @return {!proto.clarifai.api.User} returns this
42011
+ */
42012
+ proto.clarifai.api.User.prototype.setReferralSource = function(value) {
42013
+ return jspb.Message.setProto3StringField(this, 25, value);
42014
+ };
42015
+
42016
+
41772
42017
  /**
41773
42018
  * optional string bill_type = 7;
41774
42019
  * @return {string}
@@ -52341,7 +52586,8 @@ proto.clarifai.api.TaskMetrics.prototype.toObject = function(opt_includeInstance
52341
52586
  */
52342
52587
  proto.clarifai.api.TaskMetrics.toObject = function(includeInstance, msg) {
52343
52588
  var f, obj = {
52344
- work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f)
52589
+ work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f),
52590
+ review: (f = msg.getReview()) && proto.clarifai.api.TaskReviewMetrics.toObject(includeInstance, f)
52345
52591
  };
52346
52592
 
52347
52593
  if (includeInstance) {
@@ -52383,6 +52629,11 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function(msg, reade
52383
52629
  reader.readMessage(value,proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader);
52384
52630
  msg.setWork(value);
52385
52631
  break;
52632
+ case 3:
52633
+ var value = new proto.clarifai.api.TaskReviewMetrics;
52634
+ reader.readMessage(value,proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader);
52635
+ msg.setReview(value);
52636
+ break;
52386
52637
  default:
52387
52638
  reader.skipField();
52388
52639
  break;
@@ -52420,6 +52671,14 @@ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function(message, write
52420
52671
  proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter
52421
52672
  );
52422
52673
  }
52674
+ f = message.getReview();
52675
+ if (f != null) {
52676
+ writer.writeMessage(
52677
+ 3,
52678
+ f,
52679
+ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter
52680
+ );
52681
+ }
52423
52682
  };
52424
52683
 
52425
52684
 
@@ -52460,6 +52719,43 @@ proto.clarifai.api.TaskMetrics.prototype.hasWork = function() {
52460
52719
  };
52461
52720
 
52462
52721
 
52722
+ /**
52723
+ * optional TaskReviewMetrics review = 3;
52724
+ * @return {?proto.clarifai.api.TaskReviewMetrics}
52725
+ */
52726
+ proto.clarifai.api.TaskMetrics.prototype.getReview = function() {
52727
+ return /** @type{?proto.clarifai.api.TaskReviewMetrics} */ (
52728
+ jspb.Message.getWrapperField(this, proto.clarifai.api.TaskReviewMetrics, 3));
52729
+ };
52730
+
52731
+
52732
+ /**
52733
+ * @param {?proto.clarifai.api.TaskReviewMetrics|undefined} value
52734
+ * @return {!proto.clarifai.api.TaskMetrics} returns this
52735
+ */
52736
+ proto.clarifai.api.TaskMetrics.prototype.setReview = function(value) {
52737
+ return jspb.Message.setWrapperField(this, 3, value);
52738
+ };
52739
+
52740
+
52741
+ /**
52742
+ * Clears the message field making it undefined.
52743
+ * @return {!proto.clarifai.api.TaskMetrics} returns this
52744
+ */
52745
+ proto.clarifai.api.TaskMetrics.prototype.clearReview = function() {
52746
+ return this.setReview(undefined);
52747
+ };
52748
+
52749
+
52750
+ /**
52751
+ * Returns whether this field is set.
52752
+ * @return {boolean}
52753
+ */
52754
+ proto.clarifai.api.TaskMetrics.prototype.hasReview = function() {
52755
+ return jspb.Message.getField(this, 3) != null;
52756
+ };
52757
+
52758
+
52463
52759
 
52464
52760
 
52465
52761
 
@@ -52623,6 +52919,166 @@ proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = functio
52623
52919
 
52624
52920
 
52625
52921
 
52922
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52923
+ /**
52924
+ * Creates an object representation of this proto.
52925
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
52926
+ * Optional fields that are not set will be set to undefined.
52927
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
52928
+ * For the list of reserved names please see:
52929
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
52930
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52931
+ * JSPB instance for transitional soy proto support:
52932
+ * http://goto/soy-param-migration
52933
+ * @return {!Object}
52934
+ */
52935
+ proto.clarifai.api.TaskReviewMetrics.prototype.toObject = function(opt_includeInstance) {
52936
+ return proto.clarifai.api.TaskReviewMetrics.toObject(opt_includeInstance, this);
52937
+ };
52938
+
52939
+
52940
+ /**
52941
+ * Static version of the {@see toObject} method.
52942
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
52943
+ * the JSPB instance for transitional soy proto support:
52944
+ * http://goto/soy-param-migration
52945
+ * @param {!proto.clarifai.api.TaskReviewMetrics} msg The msg instance to transform.
52946
+ * @return {!Object}
52947
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52948
+ */
52949
+ proto.clarifai.api.TaskReviewMetrics.toObject = function(includeInstance, msg) {
52950
+ var f, obj = {
52951
+ inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
52952
+ inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
52953
+ };
52954
+
52955
+ if (includeInstance) {
52956
+ obj.$jspbMessageInstance = msg;
52957
+ }
52958
+ return obj;
52959
+ };
52960
+ }
52961
+
52962
+
52963
+ /**
52964
+ * Deserializes binary data (in protobuf wire format).
52965
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
52966
+ * @return {!proto.clarifai.api.TaskReviewMetrics}
52967
+ */
52968
+ proto.clarifai.api.TaskReviewMetrics.deserializeBinary = function(bytes) {
52969
+ var reader = new jspb.BinaryReader(bytes);
52970
+ var msg = new proto.clarifai.api.TaskReviewMetrics;
52971
+ return proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader(msg, reader);
52972
+ };
52973
+
52974
+
52975
+ /**
52976
+ * Deserializes binary data (in protobuf wire format) from the
52977
+ * given reader into the given message object.
52978
+ * @param {!proto.clarifai.api.TaskReviewMetrics} msg The message object to deserialize into.
52979
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
52980
+ * @return {!proto.clarifai.api.TaskReviewMetrics}
52981
+ */
52982
+ proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function(msg, reader) {
52983
+ while (reader.nextField()) {
52984
+ if (reader.isEndGroup()) {
52985
+ break;
52986
+ }
52987
+ var field = reader.getFieldNumber();
52988
+ switch (field) {
52989
+ case 1:
52990
+ var value = /** @type {number} */ (reader.readUint64());
52991
+ msg.setInputsCountEstimated(value);
52992
+ break;
52993
+ case 2:
52994
+ var value = /** @type {number} */ (reader.readUint32());
52995
+ msg.setInputsPercentEstimated(value);
52996
+ break;
52997
+ default:
52998
+ reader.skipField();
52999
+ break;
53000
+ }
53001
+ }
53002
+ return msg;
53003
+ };
53004
+
53005
+
53006
+ /**
53007
+ * Serializes the message to binary data (in protobuf wire format).
53008
+ * @return {!Uint8Array}
53009
+ */
53010
+ proto.clarifai.api.TaskReviewMetrics.prototype.serializeBinary = function() {
53011
+ var writer = new jspb.BinaryWriter();
53012
+ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter(this, writer);
53013
+ return writer.getResultBuffer();
53014
+ };
53015
+
53016
+
53017
+ /**
53018
+ * Serializes the given message to binary data (in protobuf wire
53019
+ * format), writing to the given BinaryWriter.
53020
+ * @param {!proto.clarifai.api.TaskReviewMetrics} message
53021
+ * @param {!jspb.BinaryWriter} writer
53022
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53023
+ */
53024
+ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function(message, writer) {
53025
+ var f = undefined;
53026
+ f = message.getInputsCountEstimated();
53027
+ if (f !== 0) {
53028
+ writer.writeUint64(
53029
+ 1,
53030
+ f
53031
+ );
53032
+ }
53033
+ f = message.getInputsPercentEstimated();
53034
+ if (f !== 0) {
53035
+ writer.writeUint32(
53036
+ 2,
53037
+ f
53038
+ );
53039
+ }
53040
+ };
53041
+
53042
+
53043
+ /**
53044
+ * optional uint64 inputs_count_estimated = 1;
53045
+ * @return {number}
53046
+ */
53047
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimated = function() {
53048
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
53049
+ };
53050
+
53051
+
53052
+ /**
53053
+ * @param {number} value
53054
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
53055
+ */
53056
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = function(value) {
53057
+ return jspb.Message.setProto3IntField(this, 1, value);
53058
+ };
53059
+
53060
+
53061
+ /**
53062
+ * optional uint32 inputs_percent_estimated = 2;
53063
+ * @return {number}
53064
+ */
53065
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = function() {
53066
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
53067
+ };
53068
+
53069
+
53070
+ /**
53071
+ * @param {number} value
53072
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
53073
+ */
53074
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function(value) {
53075
+ return jspb.Message.setProto3IntField(this, 2, value);
53076
+ };
53077
+
53078
+
53079
+
53080
+
53081
+
52626
53082
  if (jspb.Message.GENERATE_TO_OBJECT) {
52627
53083
  /**
52628
53084
  * Creates an object representation of this proto.
@@ -65334,32 +65790,6 @@ proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function(value) {
65334
65790
  */
65335
65791
  proto.clarifai.api.Runner.repeatedFields_ = [7];
65336
65792
 
65337
- /**
65338
- * Oneof group definitions for this message. Each group defines the field
65339
- * numbers belonging to that group. When of these fields' value is set, all
65340
- * other fields in the group are cleared. During deserialization, if multiple
65341
- * fields are encountered for a group, only the last value seen will be kept.
65342
- * @private {!Array<!Array<number>>}
65343
- * @const
65344
- */
65345
- proto.clarifai.api.Runner.oneofGroups_ = [[9,10]];
65346
-
65347
- /**
65348
- * @enum {number}
65349
- */
65350
- proto.clarifai.api.Runner.ObjectCase = {
65351
- OBJECT_NOT_SET: 0,
65352
- MODEL: 9,
65353
- WORKFLOW: 10
65354
- };
65355
-
65356
- /**
65357
- * @return {proto.clarifai.api.Runner.ObjectCase}
65358
- */
65359
- proto.clarifai.api.Runner.prototype.getObjectCase = function() {
65360
- return /** @type {proto.clarifai.api.Runner.ObjectCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Runner.oneofGroups_[0]));
65361
- };
65362
-
65363
65793
 
65364
65794
 
65365
65795
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -65398,8 +65828,7 @@ proto.clarifai.api.Runner.toObject = function(includeInstance, msg) {
65398
65828
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
65399
65829
  userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
65400
65830
  labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
65401
- model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
65402
- workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
65831
+ worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
65403
65832
  nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
65404
65833
  computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
65405
65834
  };
@@ -65469,22 +65898,17 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function(msg, reader) {
65469
65898
  var value = /** @type {string} */ (reader.readString());
65470
65899
  msg.addLabels(value);
65471
65900
  break;
65472
- case 9:
65473
- var value = new proto.clarifai.api.Model;
65474
- reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
65475
- msg.setModel(value);
65476
- break;
65477
- case 10:
65478
- var value = new proto.clarifai.api.Workflow;
65479
- reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
65480
- msg.setWorkflow(value);
65901
+ case 8:
65902
+ var value = new proto.clarifai.api.Worker;
65903
+ reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
65904
+ msg.setWorker(value);
65481
65905
  break;
65482
- case 12:
65906
+ case 9:
65483
65907
  var value = new proto.clarifai.api.Nodepool;
65484
65908
  reader.readMessage(value,proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
65485
65909
  msg.setNodepool(value);
65486
65910
  break;
65487
- case 13:
65911
+ case 10:
65488
65912
  var value = new proto.clarifai.api.ComputeInfo;
65489
65913
  reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
65490
65914
  msg.setComputeInfo(value);
@@ -65570,26 +65994,18 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) {
65570
65994
  f
65571
65995
  );
65572
65996
  }
65573
- f = message.getModel();
65574
- if (f != null) {
65575
- writer.writeMessage(
65576
- 9,
65577
- f,
65578
- proto.clarifai.api.Model.serializeBinaryToWriter
65579
- );
65580
- }
65581
- f = message.getWorkflow();
65997
+ f = message.getWorker();
65582
65998
  if (f != null) {
65583
65999
  writer.writeMessage(
65584
- 10,
66000
+ 8,
65585
66001
  f,
65586
- proto.clarifai.api.Workflow.serializeBinaryToWriter
66002
+ proto.clarifai.api.Worker.serializeBinaryToWriter
65587
66003
  );
65588
66004
  }
65589
66005
  f = message.getNodepool();
65590
66006
  if (f != null) {
65591
66007
  writer.writeMessage(
65592
- 12,
66008
+ 9,
65593
66009
  f,
65594
66010
  proto.clarifai.api.Nodepool.serializeBinaryToWriter
65595
66011
  );
@@ -65597,7 +66013,7 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) {
65597
66013
  f = message.getComputeInfo();
65598
66014
  if (f != null) {
65599
66015
  writer.writeMessage(
65600
- 13,
66016
+ 10,
65601
66017
  f,
65602
66018
  proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
65603
66019
  );
@@ -65808,58 +66224,21 @@ proto.clarifai.api.Runner.prototype.clearLabelsList = function() {
65808
66224
 
65809
66225
 
65810
66226
  /**
65811
- * optional Model model = 9;
65812
- * @return {?proto.clarifai.api.Model}
65813
- */
65814
- proto.clarifai.api.Runner.prototype.getModel = function() {
65815
- return /** @type{?proto.clarifai.api.Model} */ (
65816
- jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 9));
65817
- };
65818
-
65819
-
65820
- /**
65821
- * @param {?proto.clarifai.api.Model|undefined} value
65822
- * @return {!proto.clarifai.api.Runner} returns this
65823
- */
65824
- proto.clarifai.api.Runner.prototype.setModel = function(value) {
65825
- return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.Runner.oneofGroups_[0], value);
65826
- };
65827
-
65828
-
65829
- /**
65830
- * Clears the message field making it undefined.
65831
- * @return {!proto.clarifai.api.Runner} returns this
65832
- */
65833
- proto.clarifai.api.Runner.prototype.clearModel = function() {
65834
- return this.setModel(undefined);
65835
- };
65836
-
65837
-
65838
- /**
65839
- * Returns whether this field is set.
65840
- * @return {boolean}
65841
- */
65842
- proto.clarifai.api.Runner.prototype.hasModel = function() {
65843
- return jspb.Message.getField(this, 9) != null;
65844
- };
65845
-
65846
-
65847
- /**
65848
- * optional Workflow workflow = 10;
65849
- * @return {?proto.clarifai.api.Workflow}
66227
+ * optional Worker worker = 8;
66228
+ * @return {?proto.clarifai.api.Worker}
65850
66229
  */
65851
- proto.clarifai.api.Runner.prototype.getWorkflow = function() {
65852
- return /** @type{?proto.clarifai.api.Workflow} */ (
65853
- jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 10));
66230
+ proto.clarifai.api.Runner.prototype.getWorker = function() {
66231
+ return /** @type{?proto.clarifai.api.Worker} */ (
66232
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 8));
65854
66233
  };
65855
66234
 
65856
66235
 
65857
66236
  /**
65858
- * @param {?proto.clarifai.api.Workflow|undefined} value
66237
+ * @param {?proto.clarifai.api.Worker|undefined} value
65859
66238
  * @return {!proto.clarifai.api.Runner} returns this
65860
66239
  */
65861
- proto.clarifai.api.Runner.prototype.setWorkflow = function(value) {
65862
- return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.Runner.oneofGroups_[0], value);
66240
+ proto.clarifai.api.Runner.prototype.setWorker = function(value) {
66241
+ return jspb.Message.setWrapperField(this, 8, value);
65863
66242
  };
65864
66243
 
65865
66244
 
@@ -65867,8 +66246,8 @@ proto.clarifai.api.Runner.prototype.setWorkflow = function(value) {
65867
66246
  * Clears the message field making it undefined.
65868
66247
  * @return {!proto.clarifai.api.Runner} returns this
65869
66248
  */
65870
- proto.clarifai.api.Runner.prototype.clearWorkflow = function() {
65871
- return this.setWorkflow(undefined);
66249
+ proto.clarifai.api.Runner.prototype.clearWorker = function() {
66250
+ return this.setWorker(undefined);
65872
66251
  };
65873
66252
 
65874
66253
 
@@ -65876,18 +66255,18 @@ proto.clarifai.api.Runner.prototype.clearWorkflow = function() {
65876
66255
  * Returns whether this field is set.
65877
66256
  * @return {boolean}
65878
66257
  */
65879
- proto.clarifai.api.Runner.prototype.hasWorkflow = function() {
65880
- return jspb.Message.getField(this, 10) != null;
66258
+ proto.clarifai.api.Runner.prototype.hasWorker = function() {
66259
+ return jspb.Message.getField(this, 8) != null;
65881
66260
  };
65882
66261
 
65883
66262
 
65884
66263
  /**
65885
- * optional Nodepool nodepool = 12;
66264
+ * optional Nodepool nodepool = 9;
65886
66265
  * @return {?proto.clarifai.api.Nodepool}
65887
66266
  */
65888
66267
  proto.clarifai.api.Runner.prototype.getNodepool = function() {
65889
66268
  return /** @type{?proto.clarifai.api.Nodepool} */ (
65890
- jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 12));
66269
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 9));
65891
66270
  };
65892
66271
 
65893
66272
 
@@ -65896,7 +66275,7 @@ proto.clarifai.api.Runner.prototype.getNodepool = function() {
65896
66275
  * @return {!proto.clarifai.api.Runner} returns this
65897
66276
  */
65898
66277
  proto.clarifai.api.Runner.prototype.setNodepool = function(value) {
65899
- return jspb.Message.setWrapperField(this, 12, value);
66278
+ return jspb.Message.setWrapperField(this, 9, value);
65900
66279
  };
65901
66280
 
65902
66281
 
@@ -65914,17 +66293,17 @@ proto.clarifai.api.Runner.prototype.clearNodepool = function() {
65914
66293
  * @return {boolean}
65915
66294
  */
65916
66295
  proto.clarifai.api.Runner.prototype.hasNodepool = function() {
65917
- return jspb.Message.getField(this, 12) != null;
66296
+ return jspb.Message.getField(this, 9) != null;
65918
66297
  };
65919
66298
 
65920
66299
 
65921
66300
  /**
65922
- * optional ComputeInfo compute_info = 13;
66301
+ * optional ComputeInfo compute_info = 10;
65923
66302
  * @return {?proto.clarifai.api.ComputeInfo}
65924
66303
  */
65925
66304
  proto.clarifai.api.Runner.prototype.getComputeInfo = function() {
65926
66305
  return /** @type{?proto.clarifai.api.ComputeInfo} */ (
65927
- jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 13));
66306
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 10));
65928
66307
  };
65929
66308
 
65930
66309
 
@@ -65933,7 +66312,7 @@ proto.clarifai.api.Runner.prototype.getComputeInfo = function() {
65933
66312
  * @return {!proto.clarifai.api.Runner} returns this
65934
66313
  */
65935
66314
  proto.clarifai.api.Runner.prototype.setComputeInfo = function(value) {
65936
- return jspb.Message.setWrapperField(this, 13, value);
66315
+ return jspb.Message.setWrapperField(this, 10, value);
65937
66316
  };
65938
66317
 
65939
66318
 
@@ -65951,7 +66330,7 @@ proto.clarifai.api.Runner.prototype.clearComputeInfo = function() {
65951
66330
  * @return {boolean}
65952
66331
  */
65953
66332
  proto.clarifai.api.Runner.prototype.hasComputeInfo = function() {
65954
- return jspb.Message.getField(this, 13) != null;
66333
+ return jspb.Message.getField(this, 10) != null;
65955
66334
  };
65956
66335
 
65957
66336
 
@@ -65961,7 +66340,7 @@ proto.clarifai.api.Runner.prototype.hasComputeInfo = function() {
65961
66340
  * @private {!Array<number>}
65962
66341
  * @const
65963
66342
  */
65964
- proto.clarifai.api.Nodepool.repeatedFields_ = [4,8];
66343
+ proto.clarifai.api.Nodepool.repeatedFields_ = [8];
65965
66344
 
65966
66345
 
65967
66346
 
@@ -65995,12 +66374,18 @@ proto.clarifai.api.Nodepool.prototype.toObject = function(opt_includeInstance) {
65995
66374
  proto.clarifai.api.Nodepool.toObject = function(includeInstance, msg) {
65996
66375
  var f, obj = {
65997
66376
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
65998
- userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
65999
- cloudRegion: (f = msg.getCloudRegion()) && proto.clarifai.api.CloudRegion.toObject(includeInstance, f),
66000
- capacityTypesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
66001
- instanceTypesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
66377
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
66378
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
66379
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
66380
+ userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
66381
+ computeCluster: (f = msg.getComputeCluster()) && proto.clarifai.api.ComputeCluster.toObject(includeInstance, f),
66382
+ nodeCapacityType: (f = msg.getNodeCapacityType()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
66383
+ instanceTypesList: jspb.Message.toObjectList(msg.getInstanceTypesList(),
66384
+ proto.clarifai.api.InstanceType.toObject, includeInstance),
66002
66385
  minInstances: jspb.Message.getFieldWithDefault(msg, 9, 0),
66003
- maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0)
66386
+ maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0),
66387
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
66388
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
66004
66389
  };
66005
66390
 
66006
66391
  if (includeInstance) {
@@ -66043,21 +66428,35 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function(msg, reader)
66043
66428
  break;
66044
66429
  case 2:
66045
66430
  var value = /** @type {string} */ (reader.readString());
66046
- msg.setUserId(value);
66431
+ msg.setDescription(value);
66047
66432
  break;
66048
66433
  case 3:
66049
- var value = new proto.clarifai.api.CloudRegion;
66050
- reader.readMessage(value,proto.clarifai.api.CloudRegion.deserializeBinaryFromReader);
66051
- msg.setCloudRegion(value);
66434
+ var value = new google_protobuf_timestamp_pb.Timestamp;
66435
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
66436
+ msg.setCreatedAt(value);
66052
66437
  break;
66053
66438
  case 4:
66054
- var values = /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
66055
- for (var i = 0; i < values.length; i++) {
66056
- msg.addCapacityTypes(values[i]);
66057
- }
66439
+ var value = new google_protobuf_timestamp_pb.Timestamp;
66440
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
66441
+ msg.setModifiedAt(value);
66058
66442
  break;
66059
- case 8:
66443
+ case 5:
66060
66444
  var value = /** @type {string} */ (reader.readString());
66445
+ msg.setUserId(value);
66446
+ break;
66447
+ case 6:
66448
+ var value = new proto.clarifai.api.ComputeCluster;
66449
+ reader.readMessage(value,proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader);
66450
+ msg.setComputeCluster(value);
66451
+ break;
66452
+ case 7:
66453
+ var value = new proto.clarifai.api.NodeCapacityType;
66454
+ reader.readMessage(value,proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader);
66455
+ msg.setNodeCapacityType(value);
66456
+ break;
66457
+ case 8:
66458
+ var value = new proto.clarifai.api.InstanceType;
66459
+ reader.readMessage(value,proto.clarifai.api.InstanceType.deserializeBinaryFromReader);
66061
66460
  msg.addInstanceTypes(value);
66062
66461
  break;
66063
66462
  case 9:
@@ -66068,6 +66467,16 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function(msg, reader)
66068
66467
  var value = /** @type {number} */ (reader.readUint32());
66069
66468
  msg.setMaxInstances(value);
66070
66469
  break;
66470
+ case 11:
66471
+ var value = new proto.clarifai.api.Visibility;
66472
+ reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader);
66473
+ msg.setVisibility(value);
66474
+ break;
66475
+ case 12:
66476
+ var value = new google_protobuf_struct_pb.Struct;
66477
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
66478
+ msg.setMetadata(value);
66479
+ break;
66071
66480
  default:
66072
66481
  reader.skipField();
66073
66482
  break;
@@ -66104,33 +66513,58 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function(message, writer)
66104
66513
  f
66105
66514
  );
66106
66515
  }
66107
- f = message.getUserId();
66516
+ f = message.getDescription();
66108
66517
  if (f.length > 0) {
66109
66518
  writer.writeString(
66110
66519
  2,
66111
66520
  f
66112
66521
  );
66113
66522
  }
66114
- f = message.getCloudRegion();
66523
+ f = message.getCreatedAt();
66115
66524
  if (f != null) {
66116
66525
  writer.writeMessage(
66117
66526
  3,
66118
66527
  f,
66119
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter
66528
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
66120
66529
  );
66121
66530
  }
66122
- f = message.getCapacityTypesList();
66123
- if (f.length > 0) {
66124
- writer.writePackedEnum(
66531
+ f = message.getModifiedAt();
66532
+ if (f != null) {
66533
+ writer.writeMessage(
66125
66534
  4,
66535
+ f,
66536
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
66537
+ );
66538
+ }
66539
+ f = message.getUserId();
66540
+ if (f.length > 0) {
66541
+ writer.writeString(
66542
+ 5,
66126
66543
  f
66127
66544
  );
66128
66545
  }
66546
+ f = message.getComputeCluster();
66547
+ if (f != null) {
66548
+ writer.writeMessage(
66549
+ 6,
66550
+ f,
66551
+ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter
66552
+ );
66553
+ }
66554
+ f = message.getNodeCapacityType();
66555
+ if (f != null) {
66556
+ writer.writeMessage(
66557
+ 7,
66558
+ f,
66559
+ proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter
66560
+ );
66561
+ }
66129
66562
  f = message.getInstanceTypesList();
66130
66563
  if (f.length > 0) {
66131
- writer.writeRepeatedString(
66564
+ writer.writeRepeatedMessage(
66132
66565
  8,
66133
- f
66566
+ f,
66567
+ proto.clarifai.api.InstanceType.serializeBinaryToWriter
66134
66568
  );
66135
66569
  }
66136
66570
  f = message.getMinInstances();
@@ -66147,18 +66581,25 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function(message, writer)
66147
66581
  f
66148
66582
  );
66149
66583
  }
66584
+ f = message.getVisibility();
66585
+ if (f != null) {
66586
+ writer.writeMessage(
66587
+ 11,
66588
+ f,
66589
+ proto.clarifai.api.Visibility.serializeBinaryToWriter
66590
+ );
66591
+ }
66592
+ f = message.getMetadata();
66593
+ if (f != null) {
66594
+ writer.writeMessage(
66595
+ 12,
66596
+ f,
66597
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
66598
+ );
66599
+ }
66150
66600
  };
66151
66601
 
66152
66602
 
66153
- /**
66154
- * @enum {number}
66155
- */
66156
- proto.clarifai.api.Nodepool.CapacityType = {
66157
- UKNOWN_CAPACITY_TYPE: 0,
66158
- ONDEMAND_TYPE: 1,
66159
- SPOT_TYPE: 2
66160
- };
66161
-
66162
66603
  /**
66163
66604
  * optional string id = 1;
66164
66605
  * @return {string}
@@ -66178,10 +66619,10 @@ proto.clarifai.api.Nodepool.prototype.setId = function(value) {
66178
66619
 
66179
66620
 
66180
66621
  /**
66181
- * optional string user_id = 2;
66622
+ * optional string description = 2;
66182
66623
  * @return {string}
66183
66624
  */
66184
- proto.clarifai.api.Nodepool.prototype.getUserId = function() {
66625
+ proto.clarifai.api.Nodepool.prototype.getDescription = function() {
66185
66626
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
66186
66627
  };
66187
66628
 
@@ -66190,26 +66631,26 @@ proto.clarifai.api.Nodepool.prototype.getUserId = function() {
66190
66631
  * @param {string} value
66191
66632
  * @return {!proto.clarifai.api.Nodepool} returns this
66192
66633
  */
66193
- proto.clarifai.api.Nodepool.prototype.setUserId = function(value) {
66634
+ proto.clarifai.api.Nodepool.prototype.setDescription = function(value) {
66194
66635
  return jspb.Message.setProto3StringField(this, 2, value);
66195
66636
  };
66196
66637
 
66197
66638
 
66198
66639
  /**
66199
- * optional CloudRegion cloud_region = 3;
66200
- * @return {?proto.clarifai.api.CloudRegion}
66640
+ * optional google.protobuf.Timestamp created_at = 3;
66641
+ * @return {?proto.google.protobuf.Timestamp}
66201
66642
  */
66202
- proto.clarifai.api.Nodepool.prototype.getCloudRegion = function() {
66203
- return /** @type{?proto.clarifai.api.CloudRegion} */ (
66204
- jspb.Message.getWrapperField(this, proto.clarifai.api.CloudRegion, 3));
66643
+ proto.clarifai.api.Nodepool.prototype.getCreatedAt = function() {
66644
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
66645
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
66205
66646
  };
66206
66647
 
66207
66648
 
66208
66649
  /**
66209
- * @param {?proto.clarifai.api.CloudRegion|undefined} value
66650
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
66210
66651
  * @return {!proto.clarifai.api.Nodepool} returns this
66211
66652
  */
66212
- proto.clarifai.api.Nodepool.prototype.setCloudRegion = function(value) {
66653
+ proto.clarifai.api.Nodepool.prototype.setCreatedAt = function(value) {
66213
66654
  return jspb.Message.setWrapperField(this, 3, value);
66214
66655
  };
66215
66656
 
@@ -66218,8 +66659,8 @@ proto.clarifai.api.Nodepool.prototype.setCloudRegion = function(value) {
66218
66659
  * Clears the message field making it undefined.
66219
66660
  * @return {!proto.clarifai.api.Nodepool} returns this
66220
66661
  */
66221
- proto.clarifai.api.Nodepool.prototype.clearCloudRegion = function() {
66222
- return this.setCloudRegion(undefined);
66662
+ proto.clarifai.api.Nodepool.prototype.clearCreatedAt = function() {
66663
+ return this.setCreatedAt(undefined);
66223
66664
  };
66224
66665
 
66225
66666
 
@@ -66227,73 +66668,166 @@ proto.clarifai.api.Nodepool.prototype.clearCloudRegion = function() {
66227
66668
  * Returns whether this field is set.
66228
66669
  * @return {boolean}
66229
66670
  */
66230
- proto.clarifai.api.Nodepool.prototype.hasCloudRegion = function() {
66671
+ proto.clarifai.api.Nodepool.prototype.hasCreatedAt = function() {
66231
66672
  return jspb.Message.getField(this, 3) != null;
66232
66673
  };
66233
66674
 
66234
66675
 
66235
66676
  /**
66236
- * repeated CapacityType capacity_types = 4;
66237
- * @return {!Array<!proto.clarifai.api.Nodepool.CapacityType>}
66677
+ * optional google.protobuf.Timestamp modified_at = 4;
66678
+ * @return {?proto.google.protobuf.Timestamp}
66238
66679
  */
66239
- proto.clarifai.api.Nodepool.prototype.getCapacityTypesList = function() {
66240
- return /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (jspb.Message.getRepeatedField(this, 4));
66680
+ proto.clarifai.api.Nodepool.prototype.getModifiedAt = function() {
66681
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
66682
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
66241
66683
  };
66242
66684
 
66243
66685
 
66244
66686
  /**
66245
- * @param {!Array<!proto.clarifai.api.Nodepool.CapacityType>} value
66687
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
66688
+ * @return {!proto.clarifai.api.Nodepool} returns this
66689
+ */
66690
+ proto.clarifai.api.Nodepool.prototype.setModifiedAt = function(value) {
66691
+ return jspb.Message.setWrapperField(this, 4, value);
66692
+ };
66693
+
66694
+
66695
+ /**
66696
+ * Clears the message field making it undefined.
66246
66697
  * @return {!proto.clarifai.api.Nodepool} returns this
66247
66698
  */
66248
- proto.clarifai.api.Nodepool.prototype.setCapacityTypesList = function(value) {
66249
- return jspb.Message.setField(this, 4, value || []);
66699
+ proto.clarifai.api.Nodepool.prototype.clearModifiedAt = function() {
66700
+ return this.setModifiedAt(undefined);
66250
66701
  };
66251
66702
 
66252
66703
 
66253
66704
  /**
66254
- * @param {!proto.clarifai.api.Nodepool.CapacityType} value
66255
- * @param {number=} opt_index
66705
+ * Returns whether this field is set.
66706
+ * @return {boolean}
66707
+ */
66708
+ proto.clarifai.api.Nodepool.prototype.hasModifiedAt = function() {
66709
+ return jspb.Message.getField(this, 4) != null;
66710
+ };
66711
+
66712
+
66713
+ /**
66714
+ * optional string user_id = 5;
66715
+ * @return {string}
66716
+ */
66717
+ proto.clarifai.api.Nodepool.prototype.getUserId = function() {
66718
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
66719
+ };
66720
+
66721
+
66722
+ /**
66723
+ * @param {string} value
66256
66724
  * @return {!proto.clarifai.api.Nodepool} returns this
66257
66725
  */
66258
- proto.clarifai.api.Nodepool.prototype.addCapacityTypes = function(value, opt_index) {
66259
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
66726
+ proto.clarifai.api.Nodepool.prototype.setUserId = function(value) {
66727
+ return jspb.Message.setProto3StringField(this, 5, value);
66260
66728
  };
66261
66729
 
66262
66730
 
66263
66731
  /**
66264
- * Clears the list making it empty but non-null.
66732
+ * optional ComputeCluster compute_cluster = 6;
66733
+ * @return {?proto.clarifai.api.ComputeCluster}
66734
+ */
66735
+ proto.clarifai.api.Nodepool.prototype.getComputeCluster = function() {
66736
+ return /** @type{?proto.clarifai.api.ComputeCluster} */ (
66737
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeCluster, 6));
66738
+ };
66739
+
66740
+
66741
+ /**
66742
+ * @param {?proto.clarifai.api.ComputeCluster|undefined} value
66743
+ * @return {!proto.clarifai.api.Nodepool} returns this
66744
+ */
66745
+ proto.clarifai.api.Nodepool.prototype.setComputeCluster = function(value) {
66746
+ return jspb.Message.setWrapperField(this, 6, value);
66747
+ };
66748
+
66749
+
66750
+ /**
66751
+ * Clears the message field making it undefined.
66265
66752
  * @return {!proto.clarifai.api.Nodepool} returns this
66266
66753
  */
66267
- proto.clarifai.api.Nodepool.prototype.clearCapacityTypesList = function() {
66268
- return this.setCapacityTypesList([]);
66754
+ proto.clarifai.api.Nodepool.prototype.clearComputeCluster = function() {
66755
+ return this.setComputeCluster(undefined);
66269
66756
  };
66270
66757
 
66271
66758
 
66272
66759
  /**
66273
- * repeated string instance_types = 8;
66274
- * @return {!Array<string>}
66760
+ * Returns whether this field is set.
66761
+ * @return {boolean}
66275
66762
  */
66276
- proto.clarifai.api.Nodepool.prototype.getInstanceTypesList = function() {
66277
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
66763
+ proto.clarifai.api.Nodepool.prototype.hasComputeCluster = function() {
66764
+ return jspb.Message.getField(this, 6) != null;
66278
66765
  };
66279
66766
 
66280
66767
 
66281
66768
  /**
66282
- * @param {!Array<string>} value
66769
+ * optional NodeCapacityType node_capacity_type = 7;
66770
+ * @return {?proto.clarifai.api.NodeCapacityType}
66771
+ */
66772
+ proto.clarifai.api.Nodepool.prototype.getNodeCapacityType = function() {
66773
+ return /** @type{?proto.clarifai.api.NodeCapacityType} */ (
66774
+ jspb.Message.getWrapperField(this, proto.clarifai.api.NodeCapacityType, 7));
66775
+ };
66776
+
66777
+
66778
+ /**
66779
+ * @param {?proto.clarifai.api.NodeCapacityType|undefined} value
66283
66780
  * @return {!proto.clarifai.api.Nodepool} returns this
66781
+ */
66782
+ proto.clarifai.api.Nodepool.prototype.setNodeCapacityType = function(value) {
66783
+ return jspb.Message.setWrapperField(this, 7, value);
66784
+ };
66785
+
66786
+
66787
+ /**
66788
+ * Clears the message field making it undefined.
66789
+ * @return {!proto.clarifai.api.Nodepool} returns this
66790
+ */
66791
+ proto.clarifai.api.Nodepool.prototype.clearNodeCapacityType = function() {
66792
+ return this.setNodeCapacityType(undefined);
66793
+ };
66794
+
66795
+
66796
+ /**
66797
+ * Returns whether this field is set.
66798
+ * @return {boolean}
66799
+ */
66800
+ proto.clarifai.api.Nodepool.prototype.hasNodeCapacityType = function() {
66801
+ return jspb.Message.getField(this, 7) != null;
66802
+ };
66803
+
66804
+
66805
+ /**
66806
+ * repeated InstanceType instance_types = 8;
66807
+ * @return {!Array<!proto.clarifai.api.InstanceType>}
66284
66808
  */
66809
+ proto.clarifai.api.Nodepool.prototype.getInstanceTypesList = function() {
66810
+ return /** @type{!Array<!proto.clarifai.api.InstanceType>} */ (
66811
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.InstanceType, 8));
66812
+ };
66813
+
66814
+
66815
+ /**
66816
+ * @param {!Array<!proto.clarifai.api.InstanceType>} value
66817
+ * @return {!proto.clarifai.api.Nodepool} returns this
66818
+ */
66285
66819
  proto.clarifai.api.Nodepool.prototype.setInstanceTypesList = function(value) {
66286
- return jspb.Message.setField(this, 8, value || []);
66820
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
66287
66821
  };
66288
66822
 
66289
66823
 
66290
66824
  /**
66291
- * @param {string} value
66825
+ * @param {!proto.clarifai.api.InstanceType=} opt_value
66292
66826
  * @param {number=} opt_index
66293
- * @return {!proto.clarifai.api.Nodepool} returns this
66827
+ * @return {!proto.clarifai.api.InstanceType}
66294
66828
  */
66295
- proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function(value, opt_index) {
66296
- return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
66829
+ proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function(opt_value, opt_index) {
66830
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.InstanceType, opt_index);
66297
66831
  };
66298
66832
 
66299
66833
 
@@ -66342,6 +66876,618 @@ proto.clarifai.api.Nodepool.prototype.setMaxInstances = function(value) {
66342
66876
  };
66343
66877
 
66344
66878
 
66879
+ /**
66880
+ * optional Visibility visibility = 11;
66881
+ * @return {?proto.clarifai.api.Visibility}
66882
+ */
66883
+ proto.clarifai.api.Nodepool.prototype.getVisibility = function() {
66884
+ return /** @type{?proto.clarifai.api.Visibility} */ (
66885
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 11));
66886
+ };
66887
+
66888
+
66889
+ /**
66890
+ * @param {?proto.clarifai.api.Visibility|undefined} value
66891
+ * @return {!proto.clarifai.api.Nodepool} returns this
66892
+ */
66893
+ proto.clarifai.api.Nodepool.prototype.setVisibility = function(value) {
66894
+ return jspb.Message.setWrapperField(this, 11, value);
66895
+ };
66896
+
66897
+
66898
+ /**
66899
+ * Clears the message field making it undefined.
66900
+ * @return {!proto.clarifai.api.Nodepool} returns this
66901
+ */
66902
+ proto.clarifai.api.Nodepool.prototype.clearVisibility = function() {
66903
+ return this.setVisibility(undefined);
66904
+ };
66905
+
66906
+
66907
+ /**
66908
+ * Returns whether this field is set.
66909
+ * @return {boolean}
66910
+ */
66911
+ proto.clarifai.api.Nodepool.prototype.hasVisibility = function() {
66912
+ return jspb.Message.getField(this, 11) != null;
66913
+ };
66914
+
66915
+
66916
+ /**
66917
+ * optional google.protobuf.Struct metadata = 12;
66918
+ * @return {?proto.google.protobuf.Struct}
66919
+ */
66920
+ proto.clarifai.api.Nodepool.prototype.getMetadata = function() {
66921
+ return /** @type{?proto.google.protobuf.Struct} */ (
66922
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 12));
66923
+ };
66924
+
66925
+
66926
+ /**
66927
+ * @param {?proto.google.protobuf.Struct|undefined} value
66928
+ * @return {!proto.clarifai.api.Nodepool} returns this
66929
+ */
66930
+ proto.clarifai.api.Nodepool.prototype.setMetadata = function(value) {
66931
+ return jspb.Message.setWrapperField(this, 12, value);
66932
+ };
66933
+
66934
+
66935
+ /**
66936
+ * Clears the message field making it undefined.
66937
+ * @return {!proto.clarifai.api.Nodepool} returns this
66938
+ */
66939
+ proto.clarifai.api.Nodepool.prototype.clearMetadata = function() {
66940
+ return this.setMetadata(undefined);
66941
+ };
66942
+
66943
+
66944
+ /**
66945
+ * Returns whether this field is set.
66946
+ * @return {boolean}
66947
+ */
66948
+ proto.clarifai.api.Nodepool.prototype.hasMetadata = function() {
66949
+ return jspb.Message.getField(this, 12) != null;
66950
+ };
66951
+
66952
+
66953
+
66954
+ /**
66955
+ * List of repeated fields within this message type.
66956
+ * @private {!Array<number>}
66957
+ * @const
66958
+ */
66959
+ proto.clarifai.api.NodeCapacityType.repeatedFields_ = [1];
66960
+
66961
+
66962
+
66963
+ if (jspb.Message.GENERATE_TO_OBJECT) {
66964
+ /**
66965
+ * Creates an object representation of this proto.
66966
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
66967
+ * Optional fields that are not set will be set to undefined.
66968
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
66969
+ * For the list of reserved names please see:
66970
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
66971
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
66972
+ * JSPB instance for transitional soy proto support:
66973
+ * http://goto/soy-param-migration
66974
+ * @return {!Object}
66975
+ */
66976
+ proto.clarifai.api.NodeCapacityType.prototype.toObject = function(opt_includeInstance) {
66977
+ return proto.clarifai.api.NodeCapacityType.toObject(opt_includeInstance, this);
66978
+ };
66979
+
66980
+
66981
+ /**
66982
+ * Static version of the {@see toObject} method.
66983
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
66984
+ * the JSPB instance for transitional soy proto support:
66985
+ * http://goto/soy-param-migration
66986
+ * @param {!proto.clarifai.api.NodeCapacityType} msg The msg instance to transform.
66987
+ * @return {!Object}
66988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
66989
+ */
66990
+ proto.clarifai.api.NodeCapacityType.toObject = function(includeInstance, msg) {
66991
+ var f, obj = {
66992
+ capacityTypesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
66993
+ };
66994
+
66995
+ if (includeInstance) {
66996
+ obj.$jspbMessageInstance = msg;
66997
+ }
66998
+ return obj;
66999
+ };
67000
+ }
67001
+
67002
+
67003
+ /**
67004
+ * Deserializes binary data (in protobuf wire format).
67005
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
67006
+ * @return {!proto.clarifai.api.NodeCapacityType}
67007
+ */
67008
+ proto.clarifai.api.NodeCapacityType.deserializeBinary = function(bytes) {
67009
+ var reader = new jspb.BinaryReader(bytes);
67010
+ var msg = new proto.clarifai.api.NodeCapacityType;
67011
+ return proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader(msg, reader);
67012
+ };
67013
+
67014
+
67015
+ /**
67016
+ * Deserializes binary data (in protobuf wire format) from the
67017
+ * given reader into the given message object.
67018
+ * @param {!proto.clarifai.api.NodeCapacityType} msg The message object to deserialize into.
67019
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
67020
+ * @return {!proto.clarifai.api.NodeCapacityType}
67021
+ */
67022
+ proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader = function(msg, reader) {
67023
+ while (reader.nextField()) {
67024
+ if (reader.isEndGroup()) {
67025
+ break;
67026
+ }
67027
+ var field = reader.getFieldNumber();
67028
+ switch (field) {
67029
+ case 1:
67030
+ var values = /** @type {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
67031
+ for (var i = 0; i < values.length; i++) {
67032
+ msg.addCapacityTypes(values[i]);
67033
+ }
67034
+ break;
67035
+ default:
67036
+ reader.skipField();
67037
+ break;
67038
+ }
67039
+ }
67040
+ return msg;
67041
+ };
67042
+
67043
+
67044
+ /**
67045
+ * Serializes the message to binary data (in protobuf wire format).
67046
+ * @return {!Uint8Array}
67047
+ */
67048
+ proto.clarifai.api.NodeCapacityType.prototype.serializeBinary = function() {
67049
+ var writer = new jspb.BinaryWriter();
67050
+ proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter(this, writer);
67051
+ return writer.getResultBuffer();
67052
+ };
67053
+
67054
+
67055
+ /**
67056
+ * Serializes the given message to binary data (in protobuf wire
67057
+ * format), writing to the given BinaryWriter.
67058
+ * @param {!proto.clarifai.api.NodeCapacityType} message
67059
+ * @param {!jspb.BinaryWriter} writer
67060
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67061
+ */
67062
+ proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter = function(message, writer) {
67063
+ var f = undefined;
67064
+ f = message.getCapacityTypesList();
67065
+ if (f.length > 0) {
67066
+ writer.writePackedEnum(
67067
+ 1,
67068
+ f
67069
+ );
67070
+ }
67071
+ };
67072
+
67073
+
67074
+ /**
67075
+ * @enum {number}
67076
+ */
67077
+ proto.clarifai.api.NodeCapacityType.CapacityType = {
67078
+ UKNOWN_CAPACITY_TYPE: 0,
67079
+ ON_DEMAND_TYPE: 1,
67080
+ SPOT_TYPE: 2
67081
+ };
67082
+
67083
+ /**
67084
+ * repeated CapacityType capacity_types = 1;
67085
+ * @return {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>}
67086
+ */
67087
+ proto.clarifai.api.NodeCapacityType.prototype.getCapacityTypesList = function() {
67088
+ return /** @type {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} */ (jspb.Message.getRepeatedField(this, 1));
67089
+ };
67090
+
67091
+
67092
+ /**
67093
+ * @param {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} value
67094
+ * @return {!proto.clarifai.api.NodeCapacityType} returns this
67095
+ */
67096
+ proto.clarifai.api.NodeCapacityType.prototype.setCapacityTypesList = function(value) {
67097
+ return jspb.Message.setField(this, 1, value || []);
67098
+ };
67099
+
67100
+
67101
+ /**
67102
+ * @param {!proto.clarifai.api.NodeCapacityType.CapacityType} value
67103
+ * @param {number=} opt_index
67104
+ * @return {!proto.clarifai.api.NodeCapacityType} returns this
67105
+ */
67106
+ proto.clarifai.api.NodeCapacityType.prototype.addCapacityTypes = function(value, opt_index) {
67107
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
67108
+ };
67109
+
67110
+
67111
+ /**
67112
+ * Clears the list making it empty but non-null.
67113
+ * @return {!proto.clarifai.api.NodeCapacityType} returns this
67114
+ */
67115
+ proto.clarifai.api.NodeCapacityType.prototype.clearCapacityTypesList = function() {
67116
+ return this.setCapacityTypesList([]);
67117
+ };
67118
+
67119
+
67120
+
67121
+
67122
+
67123
+ if (jspb.Message.GENERATE_TO_OBJECT) {
67124
+ /**
67125
+ * Creates an object representation of this proto.
67126
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67127
+ * Optional fields that are not set will be set to undefined.
67128
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
67129
+ * For the list of reserved names please see:
67130
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
67131
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
67132
+ * JSPB instance for transitional soy proto support:
67133
+ * http://goto/soy-param-migration
67134
+ * @return {!Object}
67135
+ */
67136
+ proto.clarifai.api.InstanceType.prototype.toObject = function(opt_includeInstance) {
67137
+ return proto.clarifai.api.InstanceType.toObject(opt_includeInstance, this);
67138
+ };
67139
+
67140
+
67141
+ /**
67142
+ * Static version of the {@see toObject} method.
67143
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
67144
+ * the JSPB instance for transitional soy proto support:
67145
+ * http://goto/soy-param-migration
67146
+ * @param {!proto.clarifai.api.InstanceType} msg The msg instance to transform.
67147
+ * @return {!Object}
67148
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67149
+ */
67150
+ proto.clarifai.api.InstanceType.toObject = function(includeInstance, msg) {
67151
+ var f, obj = {
67152
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
67153
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
67154
+ computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
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.InstanceType}
67169
+ */
67170
+ proto.clarifai.api.InstanceType.deserializeBinary = function(bytes) {
67171
+ var reader = new jspb.BinaryReader(bytes);
67172
+ var msg = new proto.clarifai.api.InstanceType;
67173
+ return proto.clarifai.api.InstanceType.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.InstanceType} msg The message object to deserialize into.
67181
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
67182
+ * @return {!proto.clarifai.api.InstanceType}
67183
+ */
67184
+ proto.clarifai.api.InstanceType.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.setDescription(value);
67198
+ break;
67199
+ case 3:
67200
+ var value = new proto.clarifai.api.ComputeInfo;
67201
+ reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
67202
+ msg.setComputeInfo(value);
67203
+ break;
67204
+ default:
67205
+ reader.skipField();
67206
+ break;
67207
+ }
67208
+ }
67209
+ return msg;
67210
+ };
67211
+
67212
+
67213
+ /**
67214
+ * Serializes the message to binary data (in protobuf wire format).
67215
+ * @return {!Uint8Array}
67216
+ */
67217
+ proto.clarifai.api.InstanceType.prototype.serializeBinary = function() {
67218
+ var writer = new jspb.BinaryWriter();
67219
+ proto.clarifai.api.InstanceType.serializeBinaryToWriter(this, writer);
67220
+ return writer.getResultBuffer();
67221
+ };
67222
+
67223
+
67224
+ /**
67225
+ * Serializes the given message to binary data (in protobuf wire
67226
+ * format), writing to the given BinaryWriter.
67227
+ * @param {!proto.clarifai.api.InstanceType} message
67228
+ * @param {!jspb.BinaryWriter} writer
67229
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67230
+ */
67231
+ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function(message, writer) {
67232
+ var f = undefined;
67233
+ f = message.getId();
67234
+ if (f.length > 0) {
67235
+ writer.writeString(
67236
+ 1,
67237
+ f
67238
+ );
67239
+ }
67240
+ f = message.getDescription();
67241
+ if (f.length > 0) {
67242
+ writer.writeString(
67243
+ 2,
67244
+ f
67245
+ );
67246
+ }
67247
+ f = message.getComputeInfo();
67248
+ if (f != null) {
67249
+ writer.writeMessage(
67250
+ 3,
67251
+ f,
67252
+ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
67253
+ );
67254
+ }
67255
+ };
67256
+
67257
+
67258
+ /**
67259
+ * optional string id = 1;
67260
+ * @return {string}
67261
+ */
67262
+ proto.clarifai.api.InstanceType.prototype.getId = function() {
67263
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
67264
+ };
67265
+
67266
+
67267
+ /**
67268
+ * @param {string} value
67269
+ * @return {!proto.clarifai.api.InstanceType} returns this
67270
+ */
67271
+ proto.clarifai.api.InstanceType.prototype.setId = function(value) {
67272
+ return jspb.Message.setProto3StringField(this, 1, value);
67273
+ };
67274
+
67275
+
67276
+ /**
67277
+ * optional string description = 2;
67278
+ * @return {string}
67279
+ */
67280
+ proto.clarifai.api.InstanceType.prototype.getDescription = function() {
67281
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
67282
+ };
67283
+
67284
+
67285
+ /**
67286
+ * @param {string} value
67287
+ * @return {!proto.clarifai.api.InstanceType} returns this
67288
+ */
67289
+ proto.clarifai.api.InstanceType.prototype.setDescription = function(value) {
67290
+ return jspb.Message.setProto3StringField(this, 2, value);
67291
+ };
67292
+
67293
+
67294
+ /**
67295
+ * optional ComputeInfo compute_info = 3;
67296
+ * @return {?proto.clarifai.api.ComputeInfo}
67297
+ */
67298
+ proto.clarifai.api.InstanceType.prototype.getComputeInfo = function() {
67299
+ return /** @type{?proto.clarifai.api.ComputeInfo} */ (
67300
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 3));
67301
+ };
67302
+
67303
+
67304
+ /**
67305
+ * @param {?proto.clarifai.api.ComputeInfo|undefined} value
67306
+ * @return {!proto.clarifai.api.InstanceType} returns this
67307
+ */
67308
+ proto.clarifai.api.InstanceType.prototype.setComputeInfo = function(value) {
67309
+ return jspb.Message.setWrapperField(this, 3, value);
67310
+ };
67311
+
67312
+
67313
+ /**
67314
+ * Clears the message field making it undefined.
67315
+ * @return {!proto.clarifai.api.InstanceType} returns this
67316
+ */
67317
+ proto.clarifai.api.InstanceType.prototype.clearComputeInfo = function() {
67318
+ return this.setComputeInfo(undefined);
67319
+ };
67320
+
67321
+
67322
+ /**
67323
+ * Returns whether this field is set.
67324
+ * @return {boolean}
67325
+ */
67326
+ proto.clarifai.api.InstanceType.prototype.hasComputeInfo = function() {
67327
+ return jspb.Message.getField(this, 3) != null;
67328
+ };
67329
+
67330
+
67331
+
67332
+
67333
+
67334
+ if (jspb.Message.GENERATE_TO_OBJECT) {
67335
+ /**
67336
+ * Creates an object representation of this proto.
67337
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67338
+ * Optional fields that are not set will be set to undefined.
67339
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
67340
+ * For the list of reserved names please see:
67341
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
67342
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
67343
+ * JSPB instance for transitional soy proto support:
67344
+ * http://goto/soy-param-migration
67345
+ * @return {!Object}
67346
+ */
67347
+ proto.clarifai.api.CloudProvider.prototype.toObject = function(opt_includeInstance) {
67348
+ return proto.clarifai.api.CloudProvider.toObject(opt_includeInstance, this);
67349
+ };
67350
+
67351
+
67352
+ /**
67353
+ * Static version of the {@see toObject} method.
67354
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
67355
+ * the JSPB instance for transitional soy proto support:
67356
+ * http://goto/soy-param-migration
67357
+ * @param {!proto.clarifai.api.CloudProvider} msg The msg instance to transform.
67358
+ * @return {!Object}
67359
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67360
+ */
67361
+ proto.clarifai.api.CloudProvider.toObject = function(includeInstance, msg) {
67362
+ var f, obj = {
67363
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
67364
+ name: jspb.Message.getFieldWithDefault(msg, 2, "")
67365
+ };
67366
+
67367
+ if (includeInstance) {
67368
+ obj.$jspbMessageInstance = msg;
67369
+ }
67370
+ return obj;
67371
+ };
67372
+ }
67373
+
67374
+
67375
+ /**
67376
+ * Deserializes binary data (in protobuf wire format).
67377
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
67378
+ * @return {!proto.clarifai.api.CloudProvider}
67379
+ */
67380
+ proto.clarifai.api.CloudProvider.deserializeBinary = function(bytes) {
67381
+ var reader = new jspb.BinaryReader(bytes);
67382
+ var msg = new proto.clarifai.api.CloudProvider;
67383
+ return proto.clarifai.api.CloudProvider.deserializeBinaryFromReader(msg, reader);
67384
+ };
67385
+
67386
+
67387
+ /**
67388
+ * Deserializes binary data (in protobuf wire format) from the
67389
+ * given reader into the given message object.
67390
+ * @param {!proto.clarifai.api.CloudProvider} msg The message object to deserialize into.
67391
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
67392
+ * @return {!proto.clarifai.api.CloudProvider}
67393
+ */
67394
+ proto.clarifai.api.CloudProvider.deserializeBinaryFromReader = function(msg, reader) {
67395
+ while (reader.nextField()) {
67396
+ if (reader.isEndGroup()) {
67397
+ break;
67398
+ }
67399
+ var field = reader.getFieldNumber();
67400
+ switch (field) {
67401
+ case 1:
67402
+ var value = /** @type {string} */ (reader.readString());
67403
+ msg.setId(value);
67404
+ break;
67405
+ case 2:
67406
+ var value = /** @type {string} */ (reader.readString());
67407
+ msg.setName(value);
67408
+ break;
67409
+ default:
67410
+ reader.skipField();
67411
+ break;
67412
+ }
67413
+ }
67414
+ return msg;
67415
+ };
67416
+
67417
+
67418
+ /**
67419
+ * Serializes the message to binary data (in protobuf wire format).
67420
+ * @return {!Uint8Array}
67421
+ */
67422
+ proto.clarifai.api.CloudProvider.prototype.serializeBinary = function() {
67423
+ var writer = new jspb.BinaryWriter();
67424
+ proto.clarifai.api.CloudProvider.serializeBinaryToWriter(this, writer);
67425
+ return writer.getResultBuffer();
67426
+ };
67427
+
67428
+
67429
+ /**
67430
+ * Serializes the given message to binary data (in protobuf wire
67431
+ * format), writing to the given BinaryWriter.
67432
+ * @param {!proto.clarifai.api.CloudProvider} message
67433
+ * @param {!jspb.BinaryWriter} writer
67434
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67435
+ */
67436
+ proto.clarifai.api.CloudProvider.serializeBinaryToWriter = function(message, writer) {
67437
+ var f = undefined;
67438
+ f = message.getId();
67439
+ if (f.length > 0) {
67440
+ writer.writeString(
67441
+ 1,
67442
+ f
67443
+ );
67444
+ }
67445
+ f = message.getName();
67446
+ if (f.length > 0) {
67447
+ writer.writeString(
67448
+ 2,
67449
+ f
67450
+ );
67451
+ }
67452
+ };
67453
+
67454
+
67455
+ /**
67456
+ * optional string id = 1;
67457
+ * @return {string}
67458
+ */
67459
+ proto.clarifai.api.CloudProvider.prototype.getId = function() {
67460
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
67461
+ };
67462
+
67463
+
67464
+ /**
67465
+ * @param {string} value
67466
+ * @return {!proto.clarifai.api.CloudProvider} returns this
67467
+ */
67468
+ proto.clarifai.api.CloudProvider.prototype.setId = function(value) {
67469
+ return jspb.Message.setProto3StringField(this, 1, value);
67470
+ };
67471
+
67472
+
67473
+ /**
67474
+ * optional string name = 2;
67475
+ * @return {string}
67476
+ */
67477
+ proto.clarifai.api.CloudProvider.prototype.getName = function() {
67478
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
67479
+ };
67480
+
67481
+
67482
+ /**
67483
+ * @param {string} value
67484
+ * @return {!proto.clarifai.api.CloudProvider} returns this
67485
+ */
67486
+ proto.clarifai.api.CloudProvider.prototype.setName = function(value) {
67487
+ return jspb.Message.setProto3StringField(this, 2, value);
67488
+ };
67489
+
67490
+
66345
67491
 
66346
67492
 
66347
67493
 
@@ -66358,8 +67504,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
66358
67504
  * http://goto/soy-param-migration
66359
67505
  * @return {!Object}
66360
67506
  */
66361
- proto.clarifai.api.CloudRegion.prototype.toObject = function(opt_includeInstance) {
66362
- return proto.clarifai.api.CloudRegion.toObject(opt_includeInstance, this);
67507
+ proto.clarifai.api.ComputeCluster.prototype.toObject = function(opt_includeInstance) {
67508
+ return proto.clarifai.api.ComputeCluster.toObject(opt_includeInstance, this);
66363
67509
  };
66364
67510
 
66365
67511
 
@@ -66368,15 +67514,19 @@ proto.clarifai.api.CloudRegion.prototype.toObject = function(opt_includeInstance
66368
67514
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
66369
67515
  * the JSPB instance for transitional soy proto support:
66370
67516
  * http://goto/soy-param-migration
66371
- * @param {!proto.clarifai.api.CloudRegion} msg The msg instance to transform.
67517
+ * @param {!proto.clarifai.api.ComputeCluster} msg The msg instance to transform.
66372
67518
  * @return {!Object}
66373
67519
  * @suppress {unusedLocalVariables} f is only used for nested messages
66374
67520
  */
66375
- proto.clarifai.api.CloudRegion.toObject = function(includeInstance, msg) {
67521
+ proto.clarifai.api.ComputeCluster.toObject = function(includeInstance, msg) {
66376
67522
  var f, obj = {
66377
67523
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
66378
- cloud: jspb.Message.getFieldWithDefault(msg, 3, 0),
66379
- region: jspb.Message.getFieldWithDefault(msg, 4, "")
67524
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
67525
+ cloudProvider: (f = msg.getCloudProvider()) && proto.clarifai.api.CloudProvider.toObject(includeInstance, f),
67526
+ region: jspb.Message.getFieldWithDefault(msg, 4, ""),
67527
+ userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
67528
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
67529
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
66380
67530
  };
66381
67531
 
66382
67532
  if (includeInstance) {
@@ -66390,23 +67540,23 @@ proto.clarifai.api.CloudRegion.toObject = function(includeInstance, msg) {
66390
67540
  /**
66391
67541
  * Deserializes binary data (in protobuf wire format).
66392
67542
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
66393
- * @return {!proto.clarifai.api.CloudRegion}
67543
+ * @return {!proto.clarifai.api.ComputeCluster}
66394
67544
  */
66395
- proto.clarifai.api.CloudRegion.deserializeBinary = function(bytes) {
67545
+ proto.clarifai.api.ComputeCluster.deserializeBinary = function(bytes) {
66396
67546
  var reader = new jspb.BinaryReader(bytes);
66397
- var msg = new proto.clarifai.api.CloudRegion;
66398
- return proto.clarifai.api.CloudRegion.deserializeBinaryFromReader(msg, reader);
67547
+ var msg = new proto.clarifai.api.ComputeCluster;
67548
+ return proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader(msg, reader);
66399
67549
  };
66400
67550
 
66401
67551
 
66402
67552
  /**
66403
67553
  * Deserializes binary data (in protobuf wire format) from the
66404
67554
  * given reader into the given message object.
66405
- * @param {!proto.clarifai.api.CloudRegion} msg The message object to deserialize into.
67555
+ * @param {!proto.clarifai.api.ComputeCluster} msg The message object to deserialize into.
66406
67556
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
66407
- * @return {!proto.clarifai.api.CloudRegion}
67557
+ * @return {!proto.clarifai.api.ComputeCluster}
66408
67558
  */
66409
- proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reader) {
67559
+ proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader = function(msg, reader) {
66410
67560
  while (reader.nextField()) {
66411
67561
  if (reader.isEndGroup()) {
66412
67562
  break;
@@ -66417,14 +67567,33 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reade
66417
67567
  var value = /** @type {string} */ (reader.readString());
66418
67568
  msg.setId(value);
66419
67569
  break;
67570
+ case 2:
67571
+ var value = /** @type {string} */ (reader.readString());
67572
+ msg.setDescription(value);
67573
+ break;
66420
67574
  case 3:
66421
- var value = /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (reader.readEnum());
66422
- msg.setCloud(value);
67575
+ var value = new proto.clarifai.api.CloudProvider;
67576
+ reader.readMessage(value,proto.clarifai.api.CloudProvider.deserializeBinaryFromReader);
67577
+ msg.setCloudProvider(value);
66423
67578
  break;
66424
67579
  case 4:
66425
67580
  var value = /** @type {string} */ (reader.readString());
66426
67581
  msg.setRegion(value);
66427
67582
  break;
67583
+ case 5:
67584
+ var value = /** @type {string} */ (reader.readString());
67585
+ msg.setUserId(value);
67586
+ break;
67587
+ case 6:
67588
+ var value = new google_protobuf_timestamp_pb.Timestamp;
67589
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
67590
+ msg.setCreatedAt(value);
67591
+ break;
67592
+ case 7:
67593
+ var value = new google_protobuf_timestamp_pb.Timestamp;
67594
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
67595
+ msg.setModifiedAt(value);
67596
+ break;
66428
67597
  default:
66429
67598
  reader.skipField();
66430
67599
  break;
@@ -66438,9 +67607,9 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reade
66438
67607
  * Serializes the message to binary data (in protobuf wire format).
66439
67608
  * @return {!Uint8Array}
66440
67609
  */
66441
- proto.clarifai.api.CloudRegion.prototype.serializeBinary = function() {
67610
+ proto.clarifai.api.ComputeCluster.prototype.serializeBinary = function() {
66442
67611
  var writer = new jspb.BinaryWriter();
66443
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter(this, writer);
67612
+ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter(this, writer);
66444
67613
  return writer.getResultBuffer();
66445
67614
  };
66446
67615
 
@@ -66448,11 +67617,11 @@ proto.clarifai.api.CloudRegion.prototype.serializeBinary = function() {
66448
67617
  /**
66449
67618
  * Serializes the given message to binary data (in protobuf wire
66450
67619
  * format), writing to the given BinaryWriter.
66451
- * @param {!proto.clarifai.api.CloudRegion} message
67620
+ * @param {!proto.clarifai.api.ComputeCluster} message
66452
67621
  * @param {!jspb.BinaryWriter} writer
66453
67622
  * @suppress {unusedLocalVariables} f is only used for nested messages
66454
67623
  */
66455
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, writer) {
67624
+ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter = function(message, writer) {
66456
67625
  var f = undefined;
66457
67626
  f = message.getId();
66458
67627
  if (f.length > 0) {
@@ -66461,13 +67630,21 @@ proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, write
66461
67630
  f
66462
67631
  );
66463
67632
  }
66464
- f = message.getCloud();
66465
- if (f !== 0.0) {
66466
- writer.writeEnum(
66467
- 3,
67633
+ f = message.getDescription();
67634
+ if (f.length > 0) {
67635
+ writer.writeString(
67636
+ 2,
66468
67637
  f
66469
67638
  );
66470
67639
  }
67640
+ f = message.getCloudProvider();
67641
+ if (f != null) {
67642
+ writer.writeMessage(
67643
+ 3,
67644
+ f,
67645
+ proto.clarifai.api.CloudProvider.serializeBinaryToWriter
67646
+ );
67647
+ }
66471
67648
  f = message.getRegion();
66472
67649
  if (f.length > 0) {
66473
67650
  writer.writeString(
@@ -66475,54 +67652,102 @@ proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, write
66475
67652
  f
66476
67653
  );
66477
67654
  }
67655
+ f = message.getUserId();
67656
+ if (f.length > 0) {
67657
+ writer.writeString(
67658
+ 5,
67659
+ f
67660
+ );
67661
+ }
67662
+ f = message.getCreatedAt();
67663
+ if (f != null) {
67664
+ writer.writeMessage(
67665
+ 6,
67666
+ f,
67667
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
67668
+ );
67669
+ }
67670
+ f = message.getModifiedAt();
67671
+ if (f != null) {
67672
+ writer.writeMessage(
67673
+ 7,
67674
+ f,
67675
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
67676
+ );
67677
+ }
66478
67678
  };
66479
67679
 
66480
67680
 
66481
67681
  /**
66482
- * @enum {number}
67682
+ * optional string id = 1;
67683
+ * @return {string}
66483
67684
  */
66484
- proto.clarifai.api.CloudRegion.Cloud = {
66485
- UNKOWN_CLOUD: 0,
66486
- SELF_HOSTED: 1,
66487
- AWS: 2,
66488
- GCP: 3,
66489
- AZURE: 4,
66490
- LAMBDA: 5
67685
+ proto.clarifai.api.ComputeCluster.prototype.getId = function() {
67686
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
66491
67687
  };
66492
67688
 
67689
+
66493
67690
  /**
66494
- * optional string id = 1;
67691
+ * @param {string} value
67692
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
67693
+ */
67694
+ proto.clarifai.api.ComputeCluster.prototype.setId = function(value) {
67695
+ return jspb.Message.setProto3StringField(this, 1, value);
67696
+ };
67697
+
67698
+
67699
+ /**
67700
+ * optional string description = 2;
66495
67701
  * @return {string}
66496
67702
  */
66497
- proto.clarifai.api.CloudRegion.prototype.getId = function() {
66498
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
67703
+ proto.clarifai.api.ComputeCluster.prototype.getDescription = function() {
67704
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
66499
67705
  };
66500
67706
 
66501
67707
 
66502
67708
  /**
66503
67709
  * @param {string} value
66504
- * @return {!proto.clarifai.api.CloudRegion} returns this
67710
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
66505
67711
  */
66506
- proto.clarifai.api.CloudRegion.prototype.setId = function(value) {
66507
- return jspb.Message.setProto3StringField(this, 1, value);
67712
+ proto.clarifai.api.ComputeCluster.prototype.setDescription = function(value) {
67713
+ return jspb.Message.setProto3StringField(this, 2, value);
66508
67714
  };
66509
67715
 
66510
67716
 
66511
67717
  /**
66512
- * optional Cloud cloud = 3;
66513
- * @return {!proto.clarifai.api.CloudRegion.Cloud}
67718
+ * optional CloudProvider cloud_provider = 3;
67719
+ * @return {?proto.clarifai.api.CloudProvider}
66514
67720
  */
66515
- proto.clarifai.api.CloudRegion.prototype.getCloud = function() {
66516
- return /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
67721
+ proto.clarifai.api.ComputeCluster.prototype.getCloudProvider = function() {
67722
+ return /** @type{?proto.clarifai.api.CloudProvider} */ (
67723
+ jspb.Message.getWrapperField(this, proto.clarifai.api.CloudProvider, 3));
67724
+ };
67725
+
67726
+
67727
+ /**
67728
+ * @param {?proto.clarifai.api.CloudProvider|undefined} value
67729
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
67730
+ */
67731
+ proto.clarifai.api.ComputeCluster.prototype.setCloudProvider = function(value) {
67732
+ return jspb.Message.setWrapperField(this, 3, value);
66517
67733
  };
66518
67734
 
66519
67735
 
66520
67736
  /**
66521
- * @param {!proto.clarifai.api.CloudRegion.Cloud} value
66522
- * @return {!proto.clarifai.api.CloudRegion} returns this
67737
+ * Clears the message field making it undefined.
67738
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
66523
67739
  */
66524
- proto.clarifai.api.CloudRegion.prototype.setCloud = function(value) {
66525
- return jspb.Message.setProto3EnumField(this, 3, value);
67740
+ proto.clarifai.api.ComputeCluster.prototype.clearCloudProvider = function() {
67741
+ return this.setCloudProvider(undefined);
67742
+ };
67743
+
67744
+
67745
+ /**
67746
+ * Returns whether this field is set.
67747
+ * @return {boolean}
67748
+ */
67749
+ proto.clarifai.api.ComputeCluster.prototype.hasCloudProvider = function() {
67750
+ return jspb.Message.getField(this, 3) != null;
66526
67751
  };
66527
67752
 
66528
67753
 
@@ -66530,20 +67755,112 @@ proto.clarifai.api.CloudRegion.prototype.setCloud = function(value) {
66530
67755
  * optional string region = 4;
66531
67756
  * @return {string}
66532
67757
  */
66533
- proto.clarifai.api.CloudRegion.prototype.getRegion = function() {
67758
+ proto.clarifai.api.ComputeCluster.prototype.getRegion = function() {
66534
67759
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
66535
67760
  };
66536
67761
 
66537
67762
 
66538
67763
  /**
66539
67764
  * @param {string} value
66540
- * @return {!proto.clarifai.api.CloudRegion} returns this
67765
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
66541
67766
  */
66542
- proto.clarifai.api.CloudRegion.prototype.setRegion = function(value) {
67767
+ proto.clarifai.api.ComputeCluster.prototype.setRegion = function(value) {
66543
67768
  return jspb.Message.setProto3StringField(this, 4, value);
66544
67769
  };
66545
67770
 
66546
67771
 
67772
+ /**
67773
+ * optional string user_id = 5;
67774
+ * @return {string}
67775
+ */
67776
+ proto.clarifai.api.ComputeCluster.prototype.getUserId = function() {
67777
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
67778
+ };
67779
+
67780
+
67781
+ /**
67782
+ * @param {string} value
67783
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
67784
+ */
67785
+ proto.clarifai.api.ComputeCluster.prototype.setUserId = function(value) {
67786
+ return jspb.Message.setProto3StringField(this, 5, value);
67787
+ };
67788
+
67789
+
67790
+ /**
67791
+ * optional google.protobuf.Timestamp created_at = 6;
67792
+ * @return {?proto.google.protobuf.Timestamp}
67793
+ */
67794
+ proto.clarifai.api.ComputeCluster.prototype.getCreatedAt = function() {
67795
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
67796
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
67797
+ };
67798
+
67799
+
67800
+ /**
67801
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
67802
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
67803
+ */
67804
+ proto.clarifai.api.ComputeCluster.prototype.setCreatedAt = function(value) {
67805
+ return jspb.Message.setWrapperField(this, 6, value);
67806
+ };
67807
+
67808
+
67809
+ /**
67810
+ * Clears the message field making it undefined.
67811
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
67812
+ */
67813
+ proto.clarifai.api.ComputeCluster.prototype.clearCreatedAt = function() {
67814
+ return this.setCreatedAt(undefined);
67815
+ };
67816
+
67817
+
67818
+ /**
67819
+ * Returns whether this field is set.
67820
+ * @return {boolean}
67821
+ */
67822
+ proto.clarifai.api.ComputeCluster.prototype.hasCreatedAt = function() {
67823
+ return jspb.Message.getField(this, 6) != null;
67824
+ };
67825
+
67826
+
67827
+ /**
67828
+ * optional google.protobuf.Timestamp modified_at = 7;
67829
+ * @return {?proto.google.protobuf.Timestamp}
67830
+ */
67831
+ proto.clarifai.api.ComputeCluster.prototype.getModifiedAt = function() {
67832
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
67833
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
67834
+ };
67835
+
67836
+
67837
+ /**
67838
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
67839
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
67840
+ */
67841
+ proto.clarifai.api.ComputeCluster.prototype.setModifiedAt = function(value) {
67842
+ return jspb.Message.setWrapperField(this, 7, value);
67843
+ };
67844
+
67845
+
67846
+ /**
67847
+ * Clears the message field making it undefined.
67848
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
67849
+ */
67850
+ proto.clarifai.api.ComputeCluster.prototype.clearModifiedAt = function() {
67851
+ return this.setModifiedAt(undefined);
67852
+ };
67853
+
67854
+
67855
+ /**
67856
+ * Returns whether this field is set.
67857
+ * @return {boolean}
67858
+ */
67859
+ proto.clarifai.api.ComputeCluster.prototype.hasModifiedAt = function() {
67860
+ return jspb.Message.getField(this, 7) != null;
67861
+ };
67862
+
67863
+
66547
67864
 
66548
67865
  /**
66549
67866
  * List of repeated fields within this message type.
@@ -67172,7 +68489,9 @@ proto.clarifai.api.Deployment.toObject = function(includeInstance, msg) {
67172
68489
  proto.clarifai.api.Nodepool.toObject, includeInstance),
67173
68490
  model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
67174
68491
  workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
67175
- schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0)
68492
+ schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0),
68493
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
68494
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
67176
68495
  };
67177
68496
 
67178
68497
  if (includeInstance) {
@@ -67241,6 +68560,16 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function(msg, reader
67241
68560
  var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
67242
68561
  msg.setSchedulingChoice(value);
67243
68562
  break;
68563
+ case 8:
68564
+ var value = new proto.clarifai.api.Visibility;
68565
+ reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader);
68566
+ msg.setVisibility(value);
68567
+ break;
68568
+ case 9:
68569
+ var value = new google_protobuf_struct_pb.Struct;
68570
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
68571
+ msg.setMetadata(value);
68572
+ break;
67244
68573
  default:
67245
68574
  reader.skipField();
67246
68575
  break;
@@ -67323,6 +68652,22 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function(message, writer
67323
68652
  f
67324
68653
  );
67325
68654
  }
68655
+ f = message.getVisibility();
68656
+ if (f != null) {
68657
+ writer.writeMessage(
68658
+ 8,
68659
+ f,
68660
+ proto.clarifai.api.Visibility.serializeBinaryToWriter
68661
+ );
68662
+ }
68663
+ f = message.getMetadata();
68664
+ if (f != null) {
68665
+ writer.writeMessage(
68666
+ 9,
68667
+ f,
68668
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
68669
+ );
68670
+ }
67326
68671
  };
67327
68672
 
67328
68673
 
@@ -67544,6 +68889,80 @@ proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function(value) {
67544
68889
  };
67545
68890
 
67546
68891
 
68892
+ /**
68893
+ * optional Visibility visibility = 8;
68894
+ * @return {?proto.clarifai.api.Visibility}
68895
+ */
68896
+ proto.clarifai.api.Deployment.prototype.getVisibility = function() {
68897
+ return /** @type{?proto.clarifai.api.Visibility} */ (
68898
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 8));
68899
+ };
68900
+
68901
+
68902
+ /**
68903
+ * @param {?proto.clarifai.api.Visibility|undefined} value
68904
+ * @return {!proto.clarifai.api.Deployment} returns this
68905
+ */
68906
+ proto.clarifai.api.Deployment.prototype.setVisibility = function(value) {
68907
+ return jspb.Message.setWrapperField(this, 8, value);
68908
+ };
68909
+
68910
+
68911
+ /**
68912
+ * Clears the message field making it undefined.
68913
+ * @return {!proto.clarifai.api.Deployment} returns this
68914
+ */
68915
+ proto.clarifai.api.Deployment.prototype.clearVisibility = function() {
68916
+ return this.setVisibility(undefined);
68917
+ };
68918
+
68919
+
68920
+ /**
68921
+ * Returns whether this field is set.
68922
+ * @return {boolean}
68923
+ */
68924
+ proto.clarifai.api.Deployment.prototype.hasVisibility = function() {
68925
+ return jspb.Message.getField(this, 8) != null;
68926
+ };
68927
+
68928
+
68929
+ /**
68930
+ * optional google.protobuf.Struct metadata = 9;
68931
+ * @return {?proto.google.protobuf.Struct}
68932
+ */
68933
+ proto.clarifai.api.Deployment.prototype.getMetadata = function() {
68934
+ return /** @type{?proto.google.protobuf.Struct} */ (
68935
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 9));
68936
+ };
68937
+
68938
+
68939
+ /**
68940
+ * @param {?proto.google.protobuf.Struct|undefined} value
68941
+ * @return {!proto.clarifai.api.Deployment} returns this
68942
+ */
68943
+ proto.clarifai.api.Deployment.prototype.setMetadata = function(value) {
68944
+ return jspb.Message.setWrapperField(this, 9, value);
68945
+ };
68946
+
68947
+
68948
+ /**
68949
+ * Clears the message field making it undefined.
68950
+ * @return {!proto.clarifai.api.Deployment} returns this
68951
+ */
68952
+ proto.clarifai.api.Deployment.prototype.clearMetadata = function() {
68953
+ return this.setMetadata(undefined);
68954
+ };
68955
+
68956
+
68957
+ /**
68958
+ * Returns whether this field is set.
68959
+ * @return {boolean}
68960
+ */
68961
+ proto.clarifai.api.Deployment.prototype.hasMetadata = function() {
68962
+ return jspb.Message.getField(this, 9) != null;
68963
+ };
68964
+
68965
+
67547
68966
 
67548
68967
 
67549
68968