clarifai-web-grpc 10.3.3 → 10.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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);
@@ -245,6 +248,7 @@ goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global
245
248
  goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, global);
246
249
  goog.exportSymbol('proto.clarifai.api.TaskReviewConsensusStrategyInfo', null, global);
247
250
  goog.exportSymbol('proto.clarifai.api.TaskReviewManualStrategyInfo', null, global);
251
+ goog.exportSymbol('proto.clarifai.api.TaskReviewMetrics', null, global);
248
252
  goog.exportSymbol('proto.clarifai.api.TaskStatusCountPerUser', null, global);
249
253
  goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
250
254
  goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
@@ -781,7 +785,7 @@ if (goog.DEBUG && !COMPILED) {
781
785
  * @constructor
782
786
  */
783
787
  proto.clarifai.api.ConceptQuery = function(opt_data) {
784
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_, null);
788
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_, proto.clarifai.api.ConceptQuery.oneofGroups_);
785
789
  };
786
790
  goog.inherits(proto.clarifai.api.ConceptQuery, jspb.Message);
787
791
  if (goog.DEBUG && !COMPILED) {
@@ -3458,6 +3462,27 @@ if (goog.DEBUG && !COMPILED) {
3458
3462
  */
3459
3463
  proto.clarifai.api.TaskWorkMetrics.displayName = 'proto.clarifai.api.TaskWorkMetrics';
3460
3464
  }
3465
+ /**
3466
+ * Generated by JsPbCodeGenerator.
3467
+ * @param {Array=} opt_data Optional initial data array, typically from a
3468
+ * server response, or constructed directly in Javascript. The array is used
3469
+ * in place and becomes part of the constructed object. It is not cloned.
3470
+ * If no data is provided, the constructed object will be empty, but still
3471
+ * valid.
3472
+ * @extends {jspb.Message}
3473
+ * @constructor
3474
+ */
3475
+ proto.clarifai.api.TaskReviewMetrics = function(opt_data) {
3476
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3477
+ };
3478
+ goog.inherits(proto.clarifai.api.TaskReviewMetrics, jspb.Message);
3479
+ if (goog.DEBUG && !COMPILED) {
3480
+ /**
3481
+ * @public
3482
+ * @override
3483
+ */
3484
+ proto.clarifai.api.TaskReviewMetrics.displayName = 'proto.clarifai.api.TaskReviewMetrics';
3485
+ }
3461
3486
  /**
3462
3487
  * Generated by JsPbCodeGenerator.
3463
3488
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4539,16 +4564,79 @@ if (goog.DEBUG && !COMPILED) {
4539
4564
  * @extends {jspb.Message}
4540
4565
  * @constructor
4541
4566
  */
4542
- proto.clarifai.api.CloudRegion = function(opt_data) {
4567
+ proto.clarifai.api.NodeCapacityType = function(opt_data) {
4568
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.NodeCapacityType.repeatedFields_, null);
4569
+ };
4570
+ goog.inherits(proto.clarifai.api.NodeCapacityType, jspb.Message);
4571
+ if (goog.DEBUG && !COMPILED) {
4572
+ /**
4573
+ * @public
4574
+ * @override
4575
+ */
4576
+ proto.clarifai.api.NodeCapacityType.displayName = 'proto.clarifai.api.NodeCapacityType';
4577
+ }
4578
+ /**
4579
+ * Generated by JsPbCodeGenerator.
4580
+ * @param {Array=} opt_data Optional initial data array, typically from a
4581
+ * server response, or constructed directly in Javascript. The array is used
4582
+ * in place and becomes part of the constructed object. It is not cloned.
4583
+ * If no data is provided, the constructed object will be empty, but still
4584
+ * valid.
4585
+ * @extends {jspb.Message}
4586
+ * @constructor
4587
+ */
4588
+ proto.clarifai.api.InstanceType = function(opt_data) {
4589
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4590
+ };
4591
+ goog.inherits(proto.clarifai.api.InstanceType, jspb.Message);
4592
+ if (goog.DEBUG && !COMPILED) {
4593
+ /**
4594
+ * @public
4595
+ * @override
4596
+ */
4597
+ proto.clarifai.api.InstanceType.displayName = 'proto.clarifai.api.InstanceType';
4598
+ }
4599
+ /**
4600
+ * Generated by JsPbCodeGenerator.
4601
+ * @param {Array=} opt_data Optional initial data array, typically from a
4602
+ * server response, or constructed directly in Javascript. The array is used
4603
+ * in place and becomes part of the constructed object. It is not cloned.
4604
+ * If no data is provided, the constructed object will be empty, but still
4605
+ * valid.
4606
+ * @extends {jspb.Message}
4607
+ * @constructor
4608
+ */
4609
+ proto.clarifai.api.CloudProvider = function(opt_data) {
4543
4610
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4544
4611
  };
4545
- goog.inherits(proto.clarifai.api.CloudRegion, jspb.Message);
4612
+ goog.inherits(proto.clarifai.api.CloudProvider, jspb.Message);
4546
4613
  if (goog.DEBUG && !COMPILED) {
4547
4614
  /**
4548
4615
  * @public
4549
4616
  * @override
4550
4617
  */
4551
- proto.clarifai.api.CloudRegion.displayName = 'proto.clarifai.api.CloudRegion';
4618
+ proto.clarifai.api.CloudProvider.displayName = 'proto.clarifai.api.CloudProvider';
4619
+ }
4620
+ /**
4621
+ * Generated by JsPbCodeGenerator.
4622
+ * @param {Array=} opt_data Optional initial data array, typically from a
4623
+ * server response, or constructed directly in Javascript. The array is used
4624
+ * in place and becomes part of the constructed object. It is not cloned.
4625
+ * If no data is provided, the constructed object will be empty, but still
4626
+ * valid.
4627
+ * @extends {jspb.Message}
4628
+ * @constructor
4629
+ */
4630
+ proto.clarifai.api.ComputeCluster = function(opt_data) {
4631
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4632
+ };
4633
+ goog.inherits(proto.clarifai.api.ComputeCluster, jspb.Message);
4634
+ if (goog.DEBUG && !COMPILED) {
4635
+ /**
4636
+ * @public
4637
+ * @override
4638
+ */
4639
+ proto.clarifai.api.ComputeCluster.displayName = 'proto.clarifai.api.ComputeCluster';
4552
4640
  }
4553
4641
  /**
4554
4642
  * Generated by JsPbCodeGenerator.
@@ -11506,6 +11594,32 @@ proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function() {
11506
11594
  */
11507
11595
  proto.clarifai.api.ConceptQuery.repeatedFields_ = [4];
11508
11596
 
11597
+ /**
11598
+ * Oneof group definitions for this message. Each group defines the field
11599
+ * numbers belonging to that group. When of these fields' value is set, all
11600
+ * other fields in the group are cleared. During deserialization, if multiple
11601
+ * fields are encountered for a group, only the last value seen will be kept.
11602
+ * @private {!Array<!Array<number>>}
11603
+ * @const
11604
+ */
11605
+ proto.clarifai.api.ConceptQuery.oneofGroups_ = [[5,6]];
11606
+
11607
+ /**
11608
+ * @enum {number}
11609
+ */
11610
+ proto.clarifai.api.ConceptQuery.SourceCase = {
11611
+ SOURCE_NOT_SET: 0,
11612
+ MODEL: 5,
11613
+ WORKFLOW: 6
11614
+ };
11615
+
11616
+ /**
11617
+ * @return {proto.clarifai.api.ConceptQuery.SourceCase}
11618
+ */
11619
+ proto.clarifai.api.ConceptQuery.prototype.getSourceCase = function() {
11620
+ return /** @type {proto.clarifai.api.ConceptQuery.SourceCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ConceptQuery.oneofGroups_[0]));
11621
+ };
11622
+
11509
11623
 
11510
11624
 
11511
11625
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -11540,7 +11654,9 @@ proto.clarifai.api.ConceptQuery.toObject = function(includeInstance, msg) {
11540
11654
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
11541
11655
  language: jspb.Message.getFieldWithDefault(msg, 2, ""),
11542
11656
  workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
11543
- useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
11657
+ useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
11658
+ model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
11659
+ workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f)
11544
11660
  };
11545
11661
 
11546
11662
  if (includeInstance) {
@@ -11595,6 +11711,16 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function(msg, read
11595
11711
  msg.addUseCases(values[i]);
11596
11712
  }
11597
11713
  break;
11714
+ case 5:
11715
+ var value = new proto.clarifai.api.Model;
11716
+ reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
11717
+ msg.setModel(value);
11718
+ break;
11719
+ case 6:
11720
+ var value = new proto.clarifai.api.Workflow;
11721
+ reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader);
11722
+ msg.setWorkflow(value);
11723
+ break;
11598
11724
  default:
11599
11725
  reader.skipField();
11600
11726
  break;
@@ -11652,6 +11778,22 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function(message, writ
11652
11778
  f
11653
11779
  );
11654
11780
  }
11781
+ f = message.getModel();
11782
+ if (f != null) {
11783
+ writer.writeMessage(
11784
+ 5,
11785
+ f,
11786
+ proto.clarifai.api.Model.serializeBinaryToWriter
11787
+ );
11788
+ }
11789
+ f = message.getWorkflow();
11790
+ if (f != null) {
11791
+ writer.writeMessage(
11792
+ 6,
11793
+ f,
11794
+ proto.clarifai.api.Workflow.serializeBinaryToWriter
11795
+ );
11796
+ }
11655
11797
  };
11656
11798
 
11657
11799
 
@@ -11746,6 +11888,80 @@ proto.clarifai.api.ConceptQuery.prototype.clearUseCasesList = function() {
11746
11888
  };
11747
11889
 
11748
11890
 
11891
+ /**
11892
+ * optional Model model = 5;
11893
+ * @return {?proto.clarifai.api.Model}
11894
+ */
11895
+ proto.clarifai.api.ConceptQuery.prototype.getModel = function() {
11896
+ return /** @type{?proto.clarifai.api.Model} */ (
11897
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 5));
11898
+ };
11899
+
11900
+
11901
+ /**
11902
+ * @param {?proto.clarifai.api.Model|undefined} value
11903
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
11904
+ */
11905
+ proto.clarifai.api.ConceptQuery.prototype.setModel = function(value) {
11906
+ return jspb.Message.setOneofWrapperField(this, 5, proto.clarifai.api.ConceptQuery.oneofGroups_[0], value);
11907
+ };
11908
+
11909
+
11910
+ /**
11911
+ * Clears the message field making it undefined.
11912
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
11913
+ */
11914
+ proto.clarifai.api.ConceptQuery.prototype.clearModel = function() {
11915
+ return this.setModel(undefined);
11916
+ };
11917
+
11918
+
11919
+ /**
11920
+ * Returns whether this field is set.
11921
+ * @return {boolean}
11922
+ */
11923
+ proto.clarifai.api.ConceptQuery.prototype.hasModel = function() {
11924
+ return jspb.Message.getField(this, 5) != null;
11925
+ };
11926
+
11927
+
11928
+ /**
11929
+ * optional Workflow workflow = 6;
11930
+ * @return {?proto.clarifai.api.Workflow}
11931
+ */
11932
+ proto.clarifai.api.ConceptQuery.prototype.getWorkflow = function() {
11933
+ return /** @type{?proto.clarifai.api.Workflow} */ (
11934
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 6));
11935
+ };
11936
+
11937
+
11938
+ /**
11939
+ * @param {?proto.clarifai.api.Workflow|undefined} value
11940
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
11941
+ */
11942
+ proto.clarifai.api.ConceptQuery.prototype.setWorkflow = function(value) {
11943
+ return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.ConceptQuery.oneofGroups_[0], value);
11944
+ };
11945
+
11946
+
11947
+ /**
11948
+ * Clears the message field making it undefined.
11949
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
11950
+ */
11951
+ proto.clarifai.api.ConceptQuery.prototype.clearWorkflow = function() {
11952
+ return this.setWorkflow(undefined);
11953
+ };
11954
+
11955
+
11956
+ /**
11957
+ * Returns whether this field is set.
11958
+ * @return {boolean}
11959
+ */
11960
+ proto.clarifai.api.ConceptQuery.prototype.hasWorkflow = function() {
11961
+ return jspb.Message.getField(this, 6) != null;
11962
+ };
11963
+
11964
+
11749
11965
 
11750
11966
 
11751
11967
 
@@ -52341,7 +52557,8 @@ proto.clarifai.api.TaskMetrics.prototype.toObject = function(opt_includeInstance
52341
52557
  */
52342
52558
  proto.clarifai.api.TaskMetrics.toObject = function(includeInstance, msg) {
52343
52559
  var f, obj = {
52344
- work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f)
52560
+ work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f),
52561
+ review: (f = msg.getReview()) && proto.clarifai.api.TaskReviewMetrics.toObject(includeInstance, f)
52345
52562
  };
52346
52563
 
52347
52564
  if (includeInstance) {
@@ -52383,6 +52600,11 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function(msg, reade
52383
52600
  reader.readMessage(value,proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader);
52384
52601
  msg.setWork(value);
52385
52602
  break;
52603
+ case 3:
52604
+ var value = new proto.clarifai.api.TaskReviewMetrics;
52605
+ reader.readMessage(value,proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader);
52606
+ msg.setReview(value);
52607
+ break;
52386
52608
  default:
52387
52609
  reader.skipField();
52388
52610
  break;
@@ -52420,6 +52642,14 @@ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function(message, write
52420
52642
  proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter
52421
52643
  );
52422
52644
  }
52645
+ f = message.getReview();
52646
+ if (f != null) {
52647
+ writer.writeMessage(
52648
+ 3,
52649
+ f,
52650
+ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter
52651
+ );
52652
+ }
52423
52653
  };
52424
52654
 
52425
52655
 
@@ -52460,6 +52690,43 @@ proto.clarifai.api.TaskMetrics.prototype.hasWork = function() {
52460
52690
  };
52461
52691
 
52462
52692
 
52693
+ /**
52694
+ * optional TaskReviewMetrics review = 3;
52695
+ * @return {?proto.clarifai.api.TaskReviewMetrics}
52696
+ */
52697
+ proto.clarifai.api.TaskMetrics.prototype.getReview = function() {
52698
+ return /** @type{?proto.clarifai.api.TaskReviewMetrics} */ (
52699
+ jspb.Message.getWrapperField(this, proto.clarifai.api.TaskReviewMetrics, 3));
52700
+ };
52701
+
52702
+
52703
+ /**
52704
+ * @param {?proto.clarifai.api.TaskReviewMetrics|undefined} value
52705
+ * @return {!proto.clarifai.api.TaskMetrics} returns this
52706
+ */
52707
+ proto.clarifai.api.TaskMetrics.prototype.setReview = function(value) {
52708
+ return jspb.Message.setWrapperField(this, 3, value);
52709
+ };
52710
+
52711
+
52712
+ /**
52713
+ * Clears the message field making it undefined.
52714
+ * @return {!proto.clarifai.api.TaskMetrics} returns this
52715
+ */
52716
+ proto.clarifai.api.TaskMetrics.prototype.clearReview = function() {
52717
+ return this.setReview(undefined);
52718
+ };
52719
+
52720
+
52721
+ /**
52722
+ * Returns whether this field is set.
52723
+ * @return {boolean}
52724
+ */
52725
+ proto.clarifai.api.TaskMetrics.prototype.hasReview = function() {
52726
+ return jspb.Message.getField(this, 3) != null;
52727
+ };
52728
+
52729
+
52463
52730
 
52464
52731
 
52465
52732
 
@@ -52623,6 +52890,166 @@ proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = functio
52623
52890
 
52624
52891
 
52625
52892
 
52893
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52894
+ /**
52895
+ * Creates an object representation of this proto.
52896
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
52897
+ * Optional fields that are not set will be set to undefined.
52898
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
52899
+ * For the list of reserved names please see:
52900
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
52901
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52902
+ * JSPB instance for transitional soy proto support:
52903
+ * http://goto/soy-param-migration
52904
+ * @return {!Object}
52905
+ */
52906
+ proto.clarifai.api.TaskReviewMetrics.prototype.toObject = function(opt_includeInstance) {
52907
+ return proto.clarifai.api.TaskReviewMetrics.toObject(opt_includeInstance, this);
52908
+ };
52909
+
52910
+
52911
+ /**
52912
+ * Static version of the {@see toObject} method.
52913
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
52914
+ * the JSPB instance for transitional soy proto support:
52915
+ * http://goto/soy-param-migration
52916
+ * @param {!proto.clarifai.api.TaskReviewMetrics} msg The msg instance to transform.
52917
+ * @return {!Object}
52918
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52919
+ */
52920
+ proto.clarifai.api.TaskReviewMetrics.toObject = function(includeInstance, msg) {
52921
+ var f, obj = {
52922
+ inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
52923
+ inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
52924
+ };
52925
+
52926
+ if (includeInstance) {
52927
+ obj.$jspbMessageInstance = msg;
52928
+ }
52929
+ return obj;
52930
+ };
52931
+ }
52932
+
52933
+
52934
+ /**
52935
+ * Deserializes binary data (in protobuf wire format).
52936
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
52937
+ * @return {!proto.clarifai.api.TaskReviewMetrics}
52938
+ */
52939
+ proto.clarifai.api.TaskReviewMetrics.deserializeBinary = function(bytes) {
52940
+ var reader = new jspb.BinaryReader(bytes);
52941
+ var msg = new proto.clarifai.api.TaskReviewMetrics;
52942
+ return proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader(msg, reader);
52943
+ };
52944
+
52945
+
52946
+ /**
52947
+ * Deserializes binary data (in protobuf wire format) from the
52948
+ * given reader into the given message object.
52949
+ * @param {!proto.clarifai.api.TaskReviewMetrics} msg The message object to deserialize into.
52950
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
52951
+ * @return {!proto.clarifai.api.TaskReviewMetrics}
52952
+ */
52953
+ proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function(msg, reader) {
52954
+ while (reader.nextField()) {
52955
+ if (reader.isEndGroup()) {
52956
+ break;
52957
+ }
52958
+ var field = reader.getFieldNumber();
52959
+ switch (field) {
52960
+ case 1:
52961
+ var value = /** @type {number} */ (reader.readUint64());
52962
+ msg.setInputsCountEstimated(value);
52963
+ break;
52964
+ case 2:
52965
+ var value = /** @type {number} */ (reader.readUint32());
52966
+ msg.setInputsPercentEstimated(value);
52967
+ break;
52968
+ default:
52969
+ reader.skipField();
52970
+ break;
52971
+ }
52972
+ }
52973
+ return msg;
52974
+ };
52975
+
52976
+
52977
+ /**
52978
+ * Serializes the message to binary data (in protobuf wire format).
52979
+ * @return {!Uint8Array}
52980
+ */
52981
+ proto.clarifai.api.TaskReviewMetrics.prototype.serializeBinary = function() {
52982
+ var writer = new jspb.BinaryWriter();
52983
+ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter(this, writer);
52984
+ return writer.getResultBuffer();
52985
+ };
52986
+
52987
+
52988
+ /**
52989
+ * Serializes the given message to binary data (in protobuf wire
52990
+ * format), writing to the given BinaryWriter.
52991
+ * @param {!proto.clarifai.api.TaskReviewMetrics} message
52992
+ * @param {!jspb.BinaryWriter} writer
52993
+ * @suppress {unusedLocalVariables} f is only used for nested messages
52994
+ */
52995
+ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function(message, writer) {
52996
+ var f = undefined;
52997
+ f = message.getInputsCountEstimated();
52998
+ if (f !== 0) {
52999
+ writer.writeUint64(
53000
+ 1,
53001
+ f
53002
+ );
53003
+ }
53004
+ f = message.getInputsPercentEstimated();
53005
+ if (f !== 0) {
53006
+ writer.writeUint32(
53007
+ 2,
53008
+ f
53009
+ );
53010
+ }
53011
+ };
53012
+
53013
+
53014
+ /**
53015
+ * optional uint64 inputs_count_estimated = 1;
53016
+ * @return {number}
53017
+ */
53018
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimated = function() {
53019
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
53020
+ };
53021
+
53022
+
53023
+ /**
53024
+ * @param {number} value
53025
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
53026
+ */
53027
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = function(value) {
53028
+ return jspb.Message.setProto3IntField(this, 1, value);
53029
+ };
53030
+
53031
+
53032
+ /**
53033
+ * optional uint32 inputs_percent_estimated = 2;
53034
+ * @return {number}
53035
+ */
53036
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = function() {
53037
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
53038
+ };
53039
+
53040
+
53041
+ /**
53042
+ * @param {number} value
53043
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
53044
+ */
53045
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function(value) {
53046
+ return jspb.Message.setProto3IntField(this, 2, value);
53047
+ };
53048
+
53049
+
53050
+
53051
+
53052
+
52626
53053
  if (jspb.Message.GENERATE_TO_OBJECT) {
52627
53054
  /**
52628
53055
  * Creates an object representation of this proto.
@@ -65961,7 +66388,7 @@ proto.clarifai.api.Runner.prototype.hasComputeInfo = function() {
65961
66388
  * @private {!Array<number>}
65962
66389
  * @const
65963
66390
  */
65964
- proto.clarifai.api.Nodepool.repeatedFields_ = [4,8];
66391
+ proto.clarifai.api.Nodepool.repeatedFields_ = [8];
65965
66392
 
65966
66393
 
65967
66394
 
@@ -65995,12 +66422,18 @@ proto.clarifai.api.Nodepool.prototype.toObject = function(opt_includeInstance) {
65995
66422
  proto.clarifai.api.Nodepool.toObject = function(includeInstance, msg) {
65996
66423
  var f, obj = {
65997
66424
  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,
66425
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
66426
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
66427
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
66428
+ userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
66429
+ computeCluster: (f = msg.getComputeCluster()) && proto.clarifai.api.ComputeCluster.toObject(includeInstance, f),
66430
+ nodeCapacityType: (f = msg.getNodeCapacityType()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
66431
+ instanceTypesList: jspb.Message.toObjectList(msg.getInstanceTypesList(),
66432
+ proto.clarifai.api.InstanceType.toObject, includeInstance),
66002
66433
  minInstances: jspb.Message.getFieldWithDefault(msg, 9, 0),
66003
- maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0)
66434
+ maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0),
66435
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
66436
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
66004
66437
  };
66005
66438
 
66006
66439
  if (includeInstance) {
@@ -66043,21 +66476,35 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function(msg, reader)
66043
66476
  break;
66044
66477
  case 2:
66045
66478
  var value = /** @type {string} */ (reader.readString());
66046
- msg.setUserId(value);
66479
+ msg.setDescription(value);
66047
66480
  break;
66048
66481
  case 3:
66049
- var value = new proto.clarifai.api.CloudRegion;
66050
- reader.readMessage(value,proto.clarifai.api.CloudRegion.deserializeBinaryFromReader);
66051
- msg.setCloudRegion(value);
66482
+ var value = new google_protobuf_timestamp_pb.Timestamp;
66483
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
66484
+ msg.setCreatedAt(value);
66052
66485
  break;
66053
66486
  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
- }
66487
+ var value = new google_protobuf_timestamp_pb.Timestamp;
66488
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
66489
+ msg.setModifiedAt(value);
66058
66490
  break;
66059
- case 8:
66491
+ case 5:
66060
66492
  var value = /** @type {string} */ (reader.readString());
66493
+ msg.setUserId(value);
66494
+ break;
66495
+ case 6:
66496
+ var value = new proto.clarifai.api.ComputeCluster;
66497
+ reader.readMessage(value,proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader);
66498
+ msg.setComputeCluster(value);
66499
+ break;
66500
+ case 7:
66501
+ var value = new proto.clarifai.api.NodeCapacityType;
66502
+ reader.readMessage(value,proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader);
66503
+ msg.setNodeCapacityType(value);
66504
+ break;
66505
+ case 8:
66506
+ var value = new proto.clarifai.api.InstanceType;
66507
+ reader.readMessage(value,proto.clarifai.api.InstanceType.deserializeBinaryFromReader);
66061
66508
  msg.addInstanceTypes(value);
66062
66509
  break;
66063
66510
  case 9:
@@ -66068,6 +66515,16 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function(msg, reader)
66068
66515
  var value = /** @type {number} */ (reader.readUint32());
66069
66516
  msg.setMaxInstances(value);
66070
66517
  break;
66518
+ case 11:
66519
+ var value = new proto.clarifai.api.Visibility;
66520
+ reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader);
66521
+ msg.setVisibility(value);
66522
+ break;
66523
+ case 12:
66524
+ var value = new google_protobuf_struct_pb.Struct;
66525
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
66526
+ msg.setMetadata(value);
66527
+ break;
66071
66528
  default:
66072
66529
  reader.skipField();
66073
66530
  break;
@@ -66104,33 +66561,58 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function(message, writer)
66104
66561
  f
66105
66562
  );
66106
66563
  }
66107
- f = message.getUserId();
66564
+ f = message.getDescription();
66108
66565
  if (f.length > 0) {
66109
66566
  writer.writeString(
66110
66567
  2,
66111
66568
  f
66112
66569
  );
66113
66570
  }
66114
- f = message.getCloudRegion();
66571
+ f = message.getCreatedAt();
66115
66572
  if (f != null) {
66116
66573
  writer.writeMessage(
66117
66574
  3,
66118
66575
  f,
66119
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter
66576
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
66120
66577
  );
66121
66578
  }
66122
- f = message.getCapacityTypesList();
66123
- if (f.length > 0) {
66124
- writer.writePackedEnum(
66579
+ f = message.getModifiedAt();
66580
+ if (f != null) {
66581
+ writer.writeMessage(
66125
66582
  4,
66583
+ f,
66584
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
66585
+ );
66586
+ }
66587
+ f = message.getUserId();
66588
+ if (f.length > 0) {
66589
+ writer.writeString(
66590
+ 5,
66126
66591
  f
66127
66592
  );
66128
66593
  }
66594
+ f = message.getComputeCluster();
66595
+ if (f != null) {
66596
+ writer.writeMessage(
66597
+ 6,
66598
+ f,
66599
+ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter
66600
+ );
66601
+ }
66602
+ f = message.getNodeCapacityType();
66603
+ if (f != null) {
66604
+ writer.writeMessage(
66605
+ 7,
66606
+ f,
66607
+ proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter
66608
+ );
66609
+ }
66129
66610
  f = message.getInstanceTypesList();
66130
66611
  if (f.length > 0) {
66131
- writer.writeRepeatedString(
66612
+ writer.writeRepeatedMessage(
66132
66613
  8,
66133
- f
66614
+ f,
66615
+ proto.clarifai.api.InstanceType.serializeBinaryToWriter
66134
66616
  );
66135
66617
  }
66136
66618
  f = message.getMinInstances();
@@ -66147,18 +66629,25 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function(message, writer)
66147
66629
  f
66148
66630
  );
66149
66631
  }
66632
+ f = message.getVisibility();
66633
+ if (f != null) {
66634
+ writer.writeMessage(
66635
+ 11,
66636
+ f,
66637
+ proto.clarifai.api.Visibility.serializeBinaryToWriter
66638
+ );
66639
+ }
66640
+ f = message.getMetadata();
66641
+ if (f != null) {
66642
+ writer.writeMessage(
66643
+ 12,
66644
+ f,
66645
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
66646
+ );
66647
+ }
66150
66648
  };
66151
66649
 
66152
66650
 
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
66651
  /**
66163
66652
  * optional string id = 1;
66164
66653
  * @return {string}
@@ -66178,10 +66667,10 @@ proto.clarifai.api.Nodepool.prototype.setId = function(value) {
66178
66667
 
66179
66668
 
66180
66669
  /**
66181
- * optional string user_id = 2;
66670
+ * optional string description = 2;
66182
66671
  * @return {string}
66183
66672
  */
66184
- proto.clarifai.api.Nodepool.prototype.getUserId = function() {
66673
+ proto.clarifai.api.Nodepool.prototype.getDescription = function() {
66185
66674
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
66186
66675
  };
66187
66676
 
@@ -66190,26 +66679,26 @@ proto.clarifai.api.Nodepool.prototype.getUserId = function() {
66190
66679
  * @param {string} value
66191
66680
  * @return {!proto.clarifai.api.Nodepool} returns this
66192
66681
  */
66193
- proto.clarifai.api.Nodepool.prototype.setUserId = function(value) {
66682
+ proto.clarifai.api.Nodepool.prototype.setDescription = function(value) {
66194
66683
  return jspb.Message.setProto3StringField(this, 2, value);
66195
66684
  };
66196
66685
 
66197
66686
 
66198
66687
  /**
66199
- * optional CloudRegion cloud_region = 3;
66200
- * @return {?proto.clarifai.api.CloudRegion}
66688
+ * optional google.protobuf.Timestamp created_at = 3;
66689
+ * @return {?proto.google.protobuf.Timestamp}
66201
66690
  */
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));
66691
+ proto.clarifai.api.Nodepool.prototype.getCreatedAt = function() {
66692
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
66693
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
66205
66694
  };
66206
66695
 
66207
66696
 
66208
66697
  /**
66209
- * @param {?proto.clarifai.api.CloudRegion|undefined} value
66698
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
66210
66699
  * @return {!proto.clarifai.api.Nodepool} returns this
66211
66700
  */
66212
- proto.clarifai.api.Nodepool.prototype.setCloudRegion = function(value) {
66701
+ proto.clarifai.api.Nodepool.prototype.setCreatedAt = function(value) {
66213
66702
  return jspb.Message.setWrapperField(this, 3, value);
66214
66703
  };
66215
66704
 
@@ -66218,8 +66707,8 @@ proto.clarifai.api.Nodepool.prototype.setCloudRegion = function(value) {
66218
66707
  * Clears the message field making it undefined.
66219
66708
  * @return {!proto.clarifai.api.Nodepool} returns this
66220
66709
  */
66221
- proto.clarifai.api.Nodepool.prototype.clearCloudRegion = function() {
66222
- return this.setCloudRegion(undefined);
66710
+ proto.clarifai.api.Nodepool.prototype.clearCreatedAt = function() {
66711
+ return this.setCreatedAt(undefined);
66223
66712
  };
66224
66713
 
66225
66714
 
@@ -66227,73 +66716,166 @@ proto.clarifai.api.Nodepool.prototype.clearCloudRegion = function() {
66227
66716
  * Returns whether this field is set.
66228
66717
  * @return {boolean}
66229
66718
  */
66230
- proto.clarifai.api.Nodepool.prototype.hasCloudRegion = function() {
66719
+ proto.clarifai.api.Nodepool.prototype.hasCreatedAt = function() {
66231
66720
  return jspb.Message.getField(this, 3) != null;
66232
66721
  };
66233
66722
 
66234
66723
 
66235
66724
  /**
66236
- * repeated CapacityType capacity_types = 4;
66237
- * @return {!Array<!proto.clarifai.api.Nodepool.CapacityType>}
66725
+ * optional google.protobuf.Timestamp modified_at = 4;
66726
+ * @return {?proto.google.protobuf.Timestamp}
66727
+ */
66728
+ proto.clarifai.api.Nodepool.prototype.getModifiedAt = function() {
66729
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
66730
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
66731
+ };
66732
+
66733
+
66734
+ /**
66735
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
66736
+ * @return {!proto.clarifai.api.Nodepool} returns this
66737
+ */
66738
+ proto.clarifai.api.Nodepool.prototype.setModifiedAt = function(value) {
66739
+ return jspb.Message.setWrapperField(this, 4, value);
66740
+ };
66741
+
66742
+
66743
+ /**
66744
+ * Clears the message field making it undefined.
66745
+ * @return {!proto.clarifai.api.Nodepool} returns this
66746
+ */
66747
+ proto.clarifai.api.Nodepool.prototype.clearModifiedAt = function() {
66748
+ return this.setModifiedAt(undefined);
66749
+ };
66750
+
66751
+
66752
+ /**
66753
+ * Returns whether this field is set.
66754
+ * @return {boolean}
66755
+ */
66756
+ proto.clarifai.api.Nodepool.prototype.hasModifiedAt = function() {
66757
+ return jspb.Message.getField(this, 4) != null;
66758
+ };
66759
+
66760
+
66761
+ /**
66762
+ * optional string user_id = 5;
66763
+ * @return {string}
66238
66764
  */
66239
- proto.clarifai.api.Nodepool.prototype.getCapacityTypesList = function() {
66240
- return /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (jspb.Message.getRepeatedField(this, 4));
66765
+ proto.clarifai.api.Nodepool.prototype.getUserId = function() {
66766
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
66241
66767
  };
66242
66768
 
66243
66769
 
66244
66770
  /**
66245
- * @param {!Array<!proto.clarifai.api.Nodepool.CapacityType>} value
66771
+ * @param {string} value
66246
66772
  * @return {!proto.clarifai.api.Nodepool} returns this
66247
66773
  */
66248
- proto.clarifai.api.Nodepool.prototype.setCapacityTypesList = function(value) {
66249
- return jspb.Message.setField(this, 4, value || []);
66774
+ proto.clarifai.api.Nodepool.prototype.setUserId = function(value) {
66775
+ return jspb.Message.setProto3StringField(this, 5, value);
66250
66776
  };
66251
66777
 
66252
66778
 
66253
66779
  /**
66254
- * @param {!proto.clarifai.api.Nodepool.CapacityType} value
66255
- * @param {number=} opt_index
66780
+ * optional ComputeCluster compute_cluster = 6;
66781
+ * @return {?proto.clarifai.api.ComputeCluster}
66782
+ */
66783
+ proto.clarifai.api.Nodepool.prototype.getComputeCluster = function() {
66784
+ return /** @type{?proto.clarifai.api.ComputeCluster} */ (
66785
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeCluster, 6));
66786
+ };
66787
+
66788
+
66789
+ /**
66790
+ * @param {?proto.clarifai.api.ComputeCluster|undefined} value
66791
+ * @return {!proto.clarifai.api.Nodepool} returns this
66792
+ */
66793
+ proto.clarifai.api.Nodepool.prototype.setComputeCluster = function(value) {
66794
+ return jspb.Message.setWrapperField(this, 6, value);
66795
+ };
66796
+
66797
+
66798
+ /**
66799
+ * Clears the message field making it undefined.
66256
66800
  * @return {!proto.clarifai.api.Nodepool} returns this
66257
66801
  */
66258
- proto.clarifai.api.Nodepool.prototype.addCapacityTypes = function(value, opt_index) {
66259
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
66802
+ proto.clarifai.api.Nodepool.prototype.clearComputeCluster = function() {
66803
+ return this.setComputeCluster(undefined);
66260
66804
  };
66261
66805
 
66262
66806
 
66263
66807
  /**
66264
- * Clears the list making it empty but non-null.
66808
+ * Returns whether this field is set.
66809
+ * @return {boolean}
66810
+ */
66811
+ proto.clarifai.api.Nodepool.prototype.hasComputeCluster = function() {
66812
+ return jspb.Message.getField(this, 6) != null;
66813
+ };
66814
+
66815
+
66816
+ /**
66817
+ * optional NodeCapacityType node_capacity_type = 7;
66818
+ * @return {?proto.clarifai.api.NodeCapacityType}
66819
+ */
66820
+ proto.clarifai.api.Nodepool.prototype.getNodeCapacityType = function() {
66821
+ return /** @type{?proto.clarifai.api.NodeCapacityType} */ (
66822
+ jspb.Message.getWrapperField(this, proto.clarifai.api.NodeCapacityType, 7));
66823
+ };
66824
+
66825
+
66826
+ /**
66827
+ * @param {?proto.clarifai.api.NodeCapacityType|undefined} value
66828
+ * @return {!proto.clarifai.api.Nodepool} returns this
66829
+ */
66830
+ proto.clarifai.api.Nodepool.prototype.setNodeCapacityType = function(value) {
66831
+ return jspb.Message.setWrapperField(this, 7, value);
66832
+ };
66833
+
66834
+
66835
+ /**
66836
+ * Clears the message field making it undefined.
66265
66837
  * @return {!proto.clarifai.api.Nodepool} returns this
66266
66838
  */
66267
- proto.clarifai.api.Nodepool.prototype.clearCapacityTypesList = function() {
66268
- return this.setCapacityTypesList([]);
66839
+ proto.clarifai.api.Nodepool.prototype.clearNodeCapacityType = function() {
66840
+ return this.setNodeCapacityType(undefined);
66269
66841
  };
66270
66842
 
66271
66843
 
66272
66844
  /**
66273
- * repeated string instance_types = 8;
66274
- * @return {!Array<string>}
66845
+ * Returns whether this field is set.
66846
+ * @return {boolean}
66847
+ */
66848
+ proto.clarifai.api.Nodepool.prototype.hasNodeCapacityType = function() {
66849
+ return jspb.Message.getField(this, 7) != null;
66850
+ };
66851
+
66852
+
66853
+ /**
66854
+ * repeated InstanceType instance_types = 8;
66855
+ * @return {!Array<!proto.clarifai.api.InstanceType>}
66275
66856
  */
66276
66857
  proto.clarifai.api.Nodepool.prototype.getInstanceTypesList = function() {
66277
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
66858
+ return /** @type{!Array<!proto.clarifai.api.InstanceType>} */ (
66859
+ jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.InstanceType, 8));
66278
66860
  };
66279
66861
 
66280
66862
 
66281
66863
  /**
66282
- * @param {!Array<string>} value
66864
+ * @param {!Array<!proto.clarifai.api.InstanceType>} value
66283
66865
  * @return {!proto.clarifai.api.Nodepool} returns this
66284
- */
66866
+ */
66285
66867
  proto.clarifai.api.Nodepool.prototype.setInstanceTypesList = function(value) {
66286
- return jspb.Message.setField(this, 8, value || []);
66868
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
66287
66869
  };
66288
66870
 
66289
66871
 
66290
66872
  /**
66291
- * @param {string} value
66873
+ * @param {!proto.clarifai.api.InstanceType=} opt_value
66292
66874
  * @param {number=} opt_index
66293
- * @return {!proto.clarifai.api.Nodepool} returns this
66875
+ * @return {!proto.clarifai.api.InstanceType}
66294
66876
  */
66295
- proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function(value, opt_index) {
66296
- return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
66877
+ proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function(opt_value, opt_index) {
66878
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.InstanceType, opt_index);
66297
66879
  };
66298
66880
 
66299
66881
 
@@ -66342,6 +66924,458 @@ proto.clarifai.api.Nodepool.prototype.setMaxInstances = function(value) {
66342
66924
  };
66343
66925
 
66344
66926
 
66927
+ /**
66928
+ * optional Visibility visibility = 11;
66929
+ * @return {?proto.clarifai.api.Visibility}
66930
+ */
66931
+ proto.clarifai.api.Nodepool.prototype.getVisibility = function() {
66932
+ return /** @type{?proto.clarifai.api.Visibility} */ (
66933
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 11));
66934
+ };
66935
+
66936
+
66937
+ /**
66938
+ * @param {?proto.clarifai.api.Visibility|undefined} value
66939
+ * @return {!proto.clarifai.api.Nodepool} returns this
66940
+ */
66941
+ proto.clarifai.api.Nodepool.prototype.setVisibility = function(value) {
66942
+ return jspb.Message.setWrapperField(this, 11, value);
66943
+ };
66944
+
66945
+
66946
+ /**
66947
+ * Clears the message field making it undefined.
66948
+ * @return {!proto.clarifai.api.Nodepool} returns this
66949
+ */
66950
+ proto.clarifai.api.Nodepool.prototype.clearVisibility = function() {
66951
+ return this.setVisibility(undefined);
66952
+ };
66953
+
66954
+
66955
+ /**
66956
+ * Returns whether this field is set.
66957
+ * @return {boolean}
66958
+ */
66959
+ proto.clarifai.api.Nodepool.prototype.hasVisibility = function() {
66960
+ return jspb.Message.getField(this, 11) != null;
66961
+ };
66962
+
66963
+
66964
+ /**
66965
+ * optional google.protobuf.Struct metadata = 12;
66966
+ * @return {?proto.google.protobuf.Struct}
66967
+ */
66968
+ proto.clarifai.api.Nodepool.prototype.getMetadata = function() {
66969
+ return /** @type{?proto.google.protobuf.Struct} */ (
66970
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 12));
66971
+ };
66972
+
66973
+
66974
+ /**
66975
+ * @param {?proto.google.protobuf.Struct|undefined} value
66976
+ * @return {!proto.clarifai.api.Nodepool} returns this
66977
+ */
66978
+ proto.clarifai.api.Nodepool.prototype.setMetadata = function(value) {
66979
+ return jspb.Message.setWrapperField(this, 12, value);
66980
+ };
66981
+
66982
+
66983
+ /**
66984
+ * Clears the message field making it undefined.
66985
+ * @return {!proto.clarifai.api.Nodepool} returns this
66986
+ */
66987
+ proto.clarifai.api.Nodepool.prototype.clearMetadata = function() {
66988
+ return this.setMetadata(undefined);
66989
+ };
66990
+
66991
+
66992
+ /**
66993
+ * Returns whether this field is set.
66994
+ * @return {boolean}
66995
+ */
66996
+ proto.clarifai.api.Nodepool.prototype.hasMetadata = function() {
66997
+ return jspb.Message.getField(this, 12) != null;
66998
+ };
66999
+
67000
+
67001
+
67002
+ /**
67003
+ * List of repeated fields within this message type.
67004
+ * @private {!Array<number>}
67005
+ * @const
67006
+ */
67007
+ proto.clarifai.api.NodeCapacityType.repeatedFields_ = [1];
67008
+
67009
+
67010
+
67011
+ if (jspb.Message.GENERATE_TO_OBJECT) {
67012
+ /**
67013
+ * Creates an object representation of this proto.
67014
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67015
+ * Optional fields that are not set will be set to undefined.
67016
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
67017
+ * For the list of reserved names please see:
67018
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
67019
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
67020
+ * JSPB instance for transitional soy proto support:
67021
+ * http://goto/soy-param-migration
67022
+ * @return {!Object}
67023
+ */
67024
+ proto.clarifai.api.NodeCapacityType.prototype.toObject = function(opt_includeInstance) {
67025
+ return proto.clarifai.api.NodeCapacityType.toObject(opt_includeInstance, this);
67026
+ };
67027
+
67028
+
67029
+ /**
67030
+ * Static version of the {@see toObject} method.
67031
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
67032
+ * the JSPB instance for transitional soy proto support:
67033
+ * http://goto/soy-param-migration
67034
+ * @param {!proto.clarifai.api.NodeCapacityType} msg The msg instance to transform.
67035
+ * @return {!Object}
67036
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67037
+ */
67038
+ proto.clarifai.api.NodeCapacityType.toObject = function(includeInstance, msg) {
67039
+ var f, obj = {
67040
+ capacityTypesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
67041
+ };
67042
+
67043
+ if (includeInstance) {
67044
+ obj.$jspbMessageInstance = msg;
67045
+ }
67046
+ return obj;
67047
+ };
67048
+ }
67049
+
67050
+
67051
+ /**
67052
+ * Deserializes binary data (in protobuf wire format).
67053
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
67054
+ * @return {!proto.clarifai.api.NodeCapacityType}
67055
+ */
67056
+ proto.clarifai.api.NodeCapacityType.deserializeBinary = function(bytes) {
67057
+ var reader = new jspb.BinaryReader(bytes);
67058
+ var msg = new proto.clarifai.api.NodeCapacityType;
67059
+ return proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader(msg, reader);
67060
+ };
67061
+
67062
+
67063
+ /**
67064
+ * Deserializes binary data (in protobuf wire format) from the
67065
+ * given reader into the given message object.
67066
+ * @param {!proto.clarifai.api.NodeCapacityType} msg The message object to deserialize into.
67067
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
67068
+ * @return {!proto.clarifai.api.NodeCapacityType}
67069
+ */
67070
+ proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader = function(msg, reader) {
67071
+ while (reader.nextField()) {
67072
+ if (reader.isEndGroup()) {
67073
+ break;
67074
+ }
67075
+ var field = reader.getFieldNumber();
67076
+ switch (field) {
67077
+ case 1:
67078
+ var values = /** @type {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
67079
+ for (var i = 0; i < values.length; i++) {
67080
+ msg.addCapacityTypes(values[i]);
67081
+ }
67082
+ break;
67083
+ default:
67084
+ reader.skipField();
67085
+ break;
67086
+ }
67087
+ }
67088
+ return msg;
67089
+ };
67090
+
67091
+
67092
+ /**
67093
+ * Serializes the message to binary data (in protobuf wire format).
67094
+ * @return {!Uint8Array}
67095
+ */
67096
+ proto.clarifai.api.NodeCapacityType.prototype.serializeBinary = function() {
67097
+ var writer = new jspb.BinaryWriter();
67098
+ proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter(this, writer);
67099
+ return writer.getResultBuffer();
67100
+ };
67101
+
67102
+
67103
+ /**
67104
+ * Serializes the given message to binary data (in protobuf wire
67105
+ * format), writing to the given BinaryWriter.
67106
+ * @param {!proto.clarifai.api.NodeCapacityType} message
67107
+ * @param {!jspb.BinaryWriter} writer
67108
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67109
+ */
67110
+ proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter = function(message, writer) {
67111
+ var f = undefined;
67112
+ f = message.getCapacityTypesList();
67113
+ if (f.length > 0) {
67114
+ writer.writePackedEnum(
67115
+ 1,
67116
+ f
67117
+ );
67118
+ }
67119
+ };
67120
+
67121
+
67122
+ /**
67123
+ * @enum {number}
67124
+ */
67125
+ proto.clarifai.api.NodeCapacityType.CapacityType = {
67126
+ UKNOWN_CAPACITY_TYPE: 0,
67127
+ ON_DEMAND_TYPE: 1,
67128
+ SPOT_TYPE: 2
67129
+ };
67130
+
67131
+ /**
67132
+ * repeated CapacityType capacity_types = 1;
67133
+ * @return {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>}
67134
+ */
67135
+ proto.clarifai.api.NodeCapacityType.prototype.getCapacityTypesList = function() {
67136
+ return /** @type {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} */ (jspb.Message.getRepeatedField(this, 1));
67137
+ };
67138
+
67139
+
67140
+ /**
67141
+ * @param {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} value
67142
+ * @return {!proto.clarifai.api.NodeCapacityType} returns this
67143
+ */
67144
+ proto.clarifai.api.NodeCapacityType.prototype.setCapacityTypesList = function(value) {
67145
+ return jspb.Message.setField(this, 1, value || []);
67146
+ };
67147
+
67148
+
67149
+ /**
67150
+ * @param {!proto.clarifai.api.NodeCapacityType.CapacityType} value
67151
+ * @param {number=} opt_index
67152
+ * @return {!proto.clarifai.api.NodeCapacityType} returns this
67153
+ */
67154
+ proto.clarifai.api.NodeCapacityType.prototype.addCapacityTypes = function(value, opt_index) {
67155
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
67156
+ };
67157
+
67158
+
67159
+ /**
67160
+ * Clears the list making it empty but non-null.
67161
+ * @return {!proto.clarifai.api.NodeCapacityType} returns this
67162
+ */
67163
+ proto.clarifai.api.NodeCapacityType.prototype.clearCapacityTypesList = function() {
67164
+ return this.setCapacityTypesList([]);
67165
+ };
67166
+
67167
+
67168
+
67169
+
67170
+
67171
+ if (jspb.Message.GENERATE_TO_OBJECT) {
67172
+ /**
67173
+ * Creates an object representation of this proto.
67174
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67175
+ * Optional fields that are not set will be set to undefined.
67176
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
67177
+ * For the list of reserved names please see:
67178
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
67179
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
67180
+ * JSPB instance for transitional soy proto support:
67181
+ * http://goto/soy-param-migration
67182
+ * @return {!Object}
67183
+ */
67184
+ proto.clarifai.api.InstanceType.prototype.toObject = function(opt_includeInstance) {
67185
+ return proto.clarifai.api.InstanceType.toObject(opt_includeInstance, this);
67186
+ };
67187
+
67188
+
67189
+ /**
67190
+ * Static version of the {@see toObject} method.
67191
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
67192
+ * the JSPB instance for transitional soy proto support:
67193
+ * http://goto/soy-param-migration
67194
+ * @param {!proto.clarifai.api.InstanceType} msg The msg instance to transform.
67195
+ * @return {!Object}
67196
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67197
+ */
67198
+ proto.clarifai.api.InstanceType.toObject = function(includeInstance, msg) {
67199
+ var f, obj = {
67200
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
67201
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
67202
+ computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
67203
+ };
67204
+
67205
+ if (includeInstance) {
67206
+ obj.$jspbMessageInstance = msg;
67207
+ }
67208
+ return obj;
67209
+ };
67210
+ }
67211
+
67212
+
67213
+ /**
67214
+ * Deserializes binary data (in protobuf wire format).
67215
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
67216
+ * @return {!proto.clarifai.api.InstanceType}
67217
+ */
67218
+ proto.clarifai.api.InstanceType.deserializeBinary = function(bytes) {
67219
+ var reader = new jspb.BinaryReader(bytes);
67220
+ var msg = new proto.clarifai.api.InstanceType;
67221
+ return proto.clarifai.api.InstanceType.deserializeBinaryFromReader(msg, reader);
67222
+ };
67223
+
67224
+
67225
+ /**
67226
+ * Deserializes binary data (in protobuf wire format) from the
67227
+ * given reader into the given message object.
67228
+ * @param {!proto.clarifai.api.InstanceType} msg The message object to deserialize into.
67229
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
67230
+ * @return {!proto.clarifai.api.InstanceType}
67231
+ */
67232
+ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function(msg, reader) {
67233
+ while (reader.nextField()) {
67234
+ if (reader.isEndGroup()) {
67235
+ break;
67236
+ }
67237
+ var field = reader.getFieldNumber();
67238
+ switch (field) {
67239
+ case 1:
67240
+ var value = /** @type {string} */ (reader.readString());
67241
+ msg.setId(value);
67242
+ break;
67243
+ case 2:
67244
+ var value = /** @type {string} */ (reader.readString());
67245
+ msg.setDescription(value);
67246
+ break;
67247
+ case 3:
67248
+ var value = new proto.clarifai.api.ComputeInfo;
67249
+ reader.readMessage(value,proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
67250
+ msg.setComputeInfo(value);
67251
+ break;
67252
+ default:
67253
+ reader.skipField();
67254
+ break;
67255
+ }
67256
+ }
67257
+ return msg;
67258
+ };
67259
+
67260
+
67261
+ /**
67262
+ * Serializes the message to binary data (in protobuf wire format).
67263
+ * @return {!Uint8Array}
67264
+ */
67265
+ proto.clarifai.api.InstanceType.prototype.serializeBinary = function() {
67266
+ var writer = new jspb.BinaryWriter();
67267
+ proto.clarifai.api.InstanceType.serializeBinaryToWriter(this, writer);
67268
+ return writer.getResultBuffer();
67269
+ };
67270
+
67271
+
67272
+ /**
67273
+ * Serializes the given message to binary data (in protobuf wire
67274
+ * format), writing to the given BinaryWriter.
67275
+ * @param {!proto.clarifai.api.InstanceType} message
67276
+ * @param {!jspb.BinaryWriter} writer
67277
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67278
+ */
67279
+ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function(message, writer) {
67280
+ var f = undefined;
67281
+ f = message.getId();
67282
+ if (f.length > 0) {
67283
+ writer.writeString(
67284
+ 1,
67285
+ f
67286
+ );
67287
+ }
67288
+ f = message.getDescription();
67289
+ if (f.length > 0) {
67290
+ writer.writeString(
67291
+ 2,
67292
+ f
67293
+ );
67294
+ }
67295
+ f = message.getComputeInfo();
67296
+ if (f != null) {
67297
+ writer.writeMessage(
67298
+ 3,
67299
+ f,
67300
+ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter
67301
+ );
67302
+ }
67303
+ };
67304
+
67305
+
67306
+ /**
67307
+ * optional string id = 1;
67308
+ * @return {string}
67309
+ */
67310
+ proto.clarifai.api.InstanceType.prototype.getId = function() {
67311
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
67312
+ };
67313
+
67314
+
67315
+ /**
67316
+ * @param {string} value
67317
+ * @return {!proto.clarifai.api.InstanceType} returns this
67318
+ */
67319
+ proto.clarifai.api.InstanceType.prototype.setId = function(value) {
67320
+ return jspb.Message.setProto3StringField(this, 1, value);
67321
+ };
67322
+
67323
+
67324
+ /**
67325
+ * optional string description = 2;
67326
+ * @return {string}
67327
+ */
67328
+ proto.clarifai.api.InstanceType.prototype.getDescription = function() {
67329
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
67330
+ };
67331
+
67332
+
67333
+ /**
67334
+ * @param {string} value
67335
+ * @return {!proto.clarifai.api.InstanceType} returns this
67336
+ */
67337
+ proto.clarifai.api.InstanceType.prototype.setDescription = function(value) {
67338
+ return jspb.Message.setProto3StringField(this, 2, value);
67339
+ };
67340
+
67341
+
67342
+ /**
67343
+ * optional ComputeInfo compute_info = 3;
67344
+ * @return {?proto.clarifai.api.ComputeInfo}
67345
+ */
67346
+ proto.clarifai.api.InstanceType.prototype.getComputeInfo = function() {
67347
+ return /** @type{?proto.clarifai.api.ComputeInfo} */ (
67348
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 3));
67349
+ };
67350
+
67351
+
67352
+ /**
67353
+ * @param {?proto.clarifai.api.ComputeInfo|undefined} value
67354
+ * @return {!proto.clarifai.api.InstanceType} returns this
67355
+ */
67356
+ proto.clarifai.api.InstanceType.prototype.setComputeInfo = function(value) {
67357
+ return jspb.Message.setWrapperField(this, 3, value);
67358
+ };
67359
+
67360
+
67361
+ /**
67362
+ * Clears the message field making it undefined.
67363
+ * @return {!proto.clarifai.api.InstanceType} returns this
67364
+ */
67365
+ proto.clarifai.api.InstanceType.prototype.clearComputeInfo = function() {
67366
+ return this.setComputeInfo(undefined);
67367
+ };
67368
+
67369
+
67370
+ /**
67371
+ * Returns whether this field is set.
67372
+ * @return {boolean}
67373
+ */
67374
+ proto.clarifai.api.InstanceType.prototype.hasComputeInfo = function() {
67375
+ return jspb.Message.getField(this, 3) != null;
67376
+ };
67377
+
67378
+
66345
67379
 
66346
67380
 
66347
67381
 
@@ -66358,8 +67392,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
66358
67392
  * http://goto/soy-param-migration
66359
67393
  * @return {!Object}
66360
67394
  */
66361
- proto.clarifai.api.CloudRegion.prototype.toObject = function(opt_includeInstance) {
66362
- return proto.clarifai.api.CloudRegion.toObject(opt_includeInstance, this);
67395
+ proto.clarifai.api.CloudProvider.prototype.toObject = function(opt_includeInstance) {
67396
+ return proto.clarifai.api.CloudProvider.toObject(opt_includeInstance, this);
66363
67397
  };
66364
67398
 
66365
67399
 
@@ -66368,14 +67402,175 @@ proto.clarifai.api.CloudRegion.prototype.toObject = function(opt_includeInstance
66368
67402
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
66369
67403
  * the JSPB instance for transitional soy proto support:
66370
67404
  * http://goto/soy-param-migration
66371
- * @param {!proto.clarifai.api.CloudRegion} msg The msg instance to transform.
67405
+ * @param {!proto.clarifai.api.CloudProvider} msg The msg instance to transform.
66372
67406
  * @return {!Object}
66373
67407
  * @suppress {unusedLocalVariables} f is only used for nested messages
66374
67408
  */
66375
- proto.clarifai.api.CloudRegion.toObject = function(includeInstance, msg) {
67409
+ proto.clarifai.api.CloudProvider.toObject = function(includeInstance, msg) {
66376
67410
  var f, obj = {
66377
67411
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
66378
- cloud: jspb.Message.getFieldWithDefault(msg, 3, 0),
67412
+ name: jspb.Message.getFieldWithDefault(msg, 2, "")
67413
+ };
67414
+
67415
+ if (includeInstance) {
67416
+ obj.$jspbMessageInstance = msg;
67417
+ }
67418
+ return obj;
67419
+ };
67420
+ }
67421
+
67422
+
67423
+ /**
67424
+ * Deserializes binary data (in protobuf wire format).
67425
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
67426
+ * @return {!proto.clarifai.api.CloudProvider}
67427
+ */
67428
+ proto.clarifai.api.CloudProvider.deserializeBinary = function(bytes) {
67429
+ var reader = new jspb.BinaryReader(bytes);
67430
+ var msg = new proto.clarifai.api.CloudProvider;
67431
+ return proto.clarifai.api.CloudProvider.deserializeBinaryFromReader(msg, reader);
67432
+ };
67433
+
67434
+
67435
+ /**
67436
+ * Deserializes binary data (in protobuf wire format) from the
67437
+ * given reader into the given message object.
67438
+ * @param {!proto.clarifai.api.CloudProvider} msg The message object to deserialize into.
67439
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
67440
+ * @return {!proto.clarifai.api.CloudProvider}
67441
+ */
67442
+ proto.clarifai.api.CloudProvider.deserializeBinaryFromReader = function(msg, reader) {
67443
+ while (reader.nextField()) {
67444
+ if (reader.isEndGroup()) {
67445
+ break;
67446
+ }
67447
+ var field = reader.getFieldNumber();
67448
+ switch (field) {
67449
+ case 1:
67450
+ var value = /** @type {string} */ (reader.readString());
67451
+ msg.setId(value);
67452
+ break;
67453
+ case 2:
67454
+ var value = /** @type {string} */ (reader.readString());
67455
+ msg.setName(value);
67456
+ break;
67457
+ default:
67458
+ reader.skipField();
67459
+ break;
67460
+ }
67461
+ }
67462
+ return msg;
67463
+ };
67464
+
67465
+
67466
+ /**
67467
+ * Serializes the message to binary data (in protobuf wire format).
67468
+ * @return {!Uint8Array}
67469
+ */
67470
+ proto.clarifai.api.CloudProvider.prototype.serializeBinary = function() {
67471
+ var writer = new jspb.BinaryWriter();
67472
+ proto.clarifai.api.CloudProvider.serializeBinaryToWriter(this, writer);
67473
+ return writer.getResultBuffer();
67474
+ };
67475
+
67476
+
67477
+ /**
67478
+ * Serializes the given message to binary data (in protobuf wire
67479
+ * format), writing to the given BinaryWriter.
67480
+ * @param {!proto.clarifai.api.CloudProvider} message
67481
+ * @param {!jspb.BinaryWriter} writer
67482
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67483
+ */
67484
+ proto.clarifai.api.CloudProvider.serializeBinaryToWriter = function(message, writer) {
67485
+ var f = undefined;
67486
+ f = message.getId();
67487
+ if (f.length > 0) {
67488
+ writer.writeString(
67489
+ 1,
67490
+ f
67491
+ );
67492
+ }
67493
+ f = message.getName();
67494
+ if (f.length > 0) {
67495
+ writer.writeString(
67496
+ 2,
67497
+ f
67498
+ );
67499
+ }
67500
+ };
67501
+
67502
+
67503
+ /**
67504
+ * optional string id = 1;
67505
+ * @return {string}
67506
+ */
67507
+ proto.clarifai.api.CloudProvider.prototype.getId = function() {
67508
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
67509
+ };
67510
+
67511
+
67512
+ /**
67513
+ * @param {string} value
67514
+ * @return {!proto.clarifai.api.CloudProvider} returns this
67515
+ */
67516
+ proto.clarifai.api.CloudProvider.prototype.setId = function(value) {
67517
+ return jspb.Message.setProto3StringField(this, 1, value);
67518
+ };
67519
+
67520
+
67521
+ /**
67522
+ * optional string name = 2;
67523
+ * @return {string}
67524
+ */
67525
+ proto.clarifai.api.CloudProvider.prototype.getName = function() {
67526
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
67527
+ };
67528
+
67529
+
67530
+ /**
67531
+ * @param {string} value
67532
+ * @return {!proto.clarifai.api.CloudProvider} returns this
67533
+ */
67534
+ proto.clarifai.api.CloudProvider.prototype.setName = function(value) {
67535
+ return jspb.Message.setProto3StringField(this, 2, value);
67536
+ };
67537
+
67538
+
67539
+
67540
+
67541
+
67542
+ if (jspb.Message.GENERATE_TO_OBJECT) {
67543
+ /**
67544
+ * Creates an object representation of this proto.
67545
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67546
+ * Optional fields that are not set will be set to undefined.
67547
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
67548
+ * For the list of reserved names please see:
67549
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
67550
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
67551
+ * JSPB instance for transitional soy proto support:
67552
+ * http://goto/soy-param-migration
67553
+ * @return {!Object}
67554
+ */
67555
+ proto.clarifai.api.ComputeCluster.prototype.toObject = function(opt_includeInstance) {
67556
+ return proto.clarifai.api.ComputeCluster.toObject(opt_includeInstance, this);
67557
+ };
67558
+
67559
+
67560
+ /**
67561
+ * Static version of the {@see toObject} method.
67562
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
67563
+ * the JSPB instance for transitional soy proto support:
67564
+ * http://goto/soy-param-migration
67565
+ * @param {!proto.clarifai.api.ComputeCluster} msg The msg instance to transform.
67566
+ * @return {!Object}
67567
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67568
+ */
67569
+ proto.clarifai.api.ComputeCluster.toObject = function(includeInstance, msg) {
67570
+ var f, obj = {
67571
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
67572
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
67573
+ cloudProvider: (f = msg.getCloudProvider()) && proto.clarifai.api.CloudProvider.toObject(includeInstance, f),
66379
67574
  region: jspb.Message.getFieldWithDefault(msg, 4, "")
66380
67575
  };
66381
67576
 
@@ -66390,23 +67585,23 @@ proto.clarifai.api.CloudRegion.toObject = function(includeInstance, msg) {
66390
67585
  /**
66391
67586
  * Deserializes binary data (in protobuf wire format).
66392
67587
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
66393
- * @return {!proto.clarifai.api.CloudRegion}
67588
+ * @return {!proto.clarifai.api.ComputeCluster}
66394
67589
  */
66395
- proto.clarifai.api.CloudRegion.deserializeBinary = function(bytes) {
67590
+ proto.clarifai.api.ComputeCluster.deserializeBinary = function(bytes) {
66396
67591
  var reader = new jspb.BinaryReader(bytes);
66397
- var msg = new proto.clarifai.api.CloudRegion;
66398
- return proto.clarifai.api.CloudRegion.deserializeBinaryFromReader(msg, reader);
67592
+ var msg = new proto.clarifai.api.ComputeCluster;
67593
+ return proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader(msg, reader);
66399
67594
  };
66400
67595
 
66401
67596
 
66402
67597
  /**
66403
67598
  * Deserializes binary data (in protobuf wire format) from the
66404
67599
  * given reader into the given message object.
66405
- * @param {!proto.clarifai.api.CloudRegion} msg The message object to deserialize into.
67600
+ * @param {!proto.clarifai.api.ComputeCluster} msg The message object to deserialize into.
66406
67601
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
66407
- * @return {!proto.clarifai.api.CloudRegion}
67602
+ * @return {!proto.clarifai.api.ComputeCluster}
66408
67603
  */
66409
- proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reader) {
67604
+ proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader = function(msg, reader) {
66410
67605
  while (reader.nextField()) {
66411
67606
  if (reader.isEndGroup()) {
66412
67607
  break;
@@ -66417,9 +67612,14 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reade
66417
67612
  var value = /** @type {string} */ (reader.readString());
66418
67613
  msg.setId(value);
66419
67614
  break;
67615
+ case 2:
67616
+ var value = /** @type {string} */ (reader.readString());
67617
+ msg.setDescription(value);
67618
+ break;
66420
67619
  case 3:
66421
- var value = /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (reader.readEnum());
66422
- msg.setCloud(value);
67620
+ var value = new proto.clarifai.api.CloudProvider;
67621
+ reader.readMessage(value,proto.clarifai.api.CloudProvider.deserializeBinaryFromReader);
67622
+ msg.setCloudProvider(value);
66423
67623
  break;
66424
67624
  case 4:
66425
67625
  var value = /** @type {string} */ (reader.readString());
@@ -66438,9 +67638,9 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reade
66438
67638
  * Serializes the message to binary data (in protobuf wire format).
66439
67639
  * @return {!Uint8Array}
66440
67640
  */
66441
- proto.clarifai.api.CloudRegion.prototype.serializeBinary = function() {
67641
+ proto.clarifai.api.ComputeCluster.prototype.serializeBinary = function() {
66442
67642
  var writer = new jspb.BinaryWriter();
66443
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter(this, writer);
67643
+ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter(this, writer);
66444
67644
  return writer.getResultBuffer();
66445
67645
  };
66446
67646
 
@@ -66448,11 +67648,11 @@ proto.clarifai.api.CloudRegion.prototype.serializeBinary = function() {
66448
67648
  /**
66449
67649
  * Serializes the given message to binary data (in protobuf wire
66450
67650
  * format), writing to the given BinaryWriter.
66451
- * @param {!proto.clarifai.api.CloudRegion} message
67651
+ * @param {!proto.clarifai.api.ComputeCluster} message
66452
67652
  * @param {!jspb.BinaryWriter} writer
66453
67653
  * @suppress {unusedLocalVariables} f is only used for nested messages
66454
67654
  */
66455
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, writer) {
67655
+ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter = function(message, writer) {
66456
67656
  var f = undefined;
66457
67657
  f = message.getId();
66458
67658
  if (f.length > 0) {
@@ -66461,13 +67661,21 @@ proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, write
66461
67661
  f
66462
67662
  );
66463
67663
  }
66464
- f = message.getCloud();
66465
- if (f !== 0.0) {
66466
- writer.writeEnum(
66467
- 3,
67664
+ f = message.getDescription();
67665
+ if (f.length > 0) {
67666
+ writer.writeString(
67667
+ 2,
66468
67668
  f
66469
67669
  );
66470
67670
  }
67671
+ f = message.getCloudProvider();
67672
+ if (f != null) {
67673
+ writer.writeMessage(
67674
+ 3,
67675
+ f,
67676
+ proto.clarifai.api.CloudProvider.serializeBinaryToWriter
67677
+ );
67678
+ }
66471
67679
  f = message.getRegion();
66472
67680
  if (f.length > 0) {
66473
67681
  writer.writeString(
@@ -66479,50 +67687,75 @@ proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, write
66479
67687
 
66480
67688
 
66481
67689
  /**
66482
- * @enum {number}
67690
+ * optional string id = 1;
67691
+ * @return {string}
66483
67692
  */
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
67693
+ proto.clarifai.api.ComputeCluster.prototype.getId = function() {
67694
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
66491
67695
  };
66492
67696
 
67697
+
66493
67698
  /**
66494
- * optional string id = 1;
67699
+ * @param {string} value
67700
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
67701
+ */
67702
+ proto.clarifai.api.ComputeCluster.prototype.setId = function(value) {
67703
+ return jspb.Message.setProto3StringField(this, 1, value);
67704
+ };
67705
+
67706
+
67707
+ /**
67708
+ * optional string description = 2;
66495
67709
  * @return {string}
66496
67710
  */
66497
- proto.clarifai.api.CloudRegion.prototype.getId = function() {
66498
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
67711
+ proto.clarifai.api.ComputeCluster.prototype.getDescription = function() {
67712
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
66499
67713
  };
66500
67714
 
66501
67715
 
66502
67716
  /**
66503
67717
  * @param {string} value
66504
- * @return {!proto.clarifai.api.CloudRegion} returns this
67718
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
66505
67719
  */
66506
- proto.clarifai.api.CloudRegion.prototype.setId = function(value) {
66507
- return jspb.Message.setProto3StringField(this, 1, value);
67720
+ proto.clarifai.api.ComputeCluster.prototype.setDescription = function(value) {
67721
+ return jspb.Message.setProto3StringField(this, 2, value);
66508
67722
  };
66509
67723
 
66510
67724
 
66511
67725
  /**
66512
- * optional Cloud cloud = 3;
66513
- * @return {!proto.clarifai.api.CloudRegion.Cloud}
67726
+ * optional CloudProvider cloud_provider = 3;
67727
+ * @return {?proto.clarifai.api.CloudProvider}
66514
67728
  */
66515
- proto.clarifai.api.CloudRegion.prototype.getCloud = function() {
66516
- return /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
67729
+ proto.clarifai.api.ComputeCluster.prototype.getCloudProvider = function() {
67730
+ return /** @type{?proto.clarifai.api.CloudProvider} */ (
67731
+ jspb.Message.getWrapperField(this, proto.clarifai.api.CloudProvider, 3));
66517
67732
  };
66518
67733
 
66519
67734
 
66520
67735
  /**
66521
- * @param {!proto.clarifai.api.CloudRegion.Cloud} value
66522
- * @return {!proto.clarifai.api.CloudRegion} returns this
67736
+ * @param {?proto.clarifai.api.CloudProvider|undefined} value
67737
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
67738
+ */
67739
+ proto.clarifai.api.ComputeCluster.prototype.setCloudProvider = function(value) {
67740
+ return jspb.Message.setWrapperField(this, 3, value);
67741
+ };
67742
+
67743
+
67744
+ /**
67745
+ * Clears the message field making it undefined.
67746
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
66523
67747
  */
66524
- proto.clarifai.api.CloudRegion.prototype.setCloud = function(value) {
66525
- return jspb.Message.setProto3EnumField(this, 3, value);
67748
+ proto.clarifai.api.ComputeCluster.prototype.clearCloudProvider = function() {
67749
+ return this.setCloudProvider(undefined);
67750
+ };
67751
+
67752
+
67753
+ /**
67754
+ * Returns whether this field is set.
67755
+ * @return {boolean}
67756
+ */
67757
+ proto.clarifai.api.ComputeCluster.prototype.hasCloudProvider = function() {
67758
+ return jspb.Message.getField(this, 3) != null;
66526
67759
  };
66527
67760
 
66528
67761
 
@@ -66530,16 +67763,16 @@ proto.clarifai.api.CloudRegion.prototype.setCloud = function(value) {
66530
67763
  * optional string region = 4;
66531
67764
  * @return {string}
66532
67765
  */
66533
- proto.clarifai.api.CloudRegion.prototype.getRegion = function() {
67766
+ proto.clarifai.api.ComputeCluster.prototype.getRegion = function() {
66534
67767
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
66535
67768
  };
66536
67769
 
66537
67770
 
66538
67771
  /**
66539
67772
  * @param {string} value
66540
- * @return {!proto.clarifai.api.CloudRegion} returns this
67773
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
66541
67774
  */
66542
- proto.clarifai.api.CloudRegion.prototype.setRegion = function(value) {
67775
+ proto.clarifai.api.ComputeCluster.prototype.setRegion = function(value) {
66543
67776
  return jspb.Message.setProto3StringField(this, 4, value);
66544
67777
  };
66545
67778
 
@@ -67172,7 +68405,9 @@ proto.clarifai.api.Deployment.toObject = function(includeInstance, msg) {
67172
68405
  proto.clarifai.api.Nodepool.toObject, includeInstance),
67173
68406
  model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
67174
68407
  workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
67175
- schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0)
68408
+ schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0),
68409
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
68410
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
67176
68411
  };
67177
68412
 
67178
68413
  if (includeInstance) {
@@ -67241,6 +68476,16 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function(msg, reader
67241
68476
  var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
67242
68477
  msg.setSchedulingChoice(value);
67243
68478
  break;
68479
+ case 8:
68480
+ var value = new proto.clarifai.api.Visibility;
68481
+ reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader);
68482
+ msg.setVisibility(value);
68483
+ break;
68484
+ case 9:
68485
+ var value = new google_protobuf_struct_pb.Struct;
68486
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
68487
+ msg.setMetadata(value);
68488
+ break;
67244
68489
  default:
67245
68490
  reader.skipField();
67246
68491
  break;
@@ -67323,6 +68568,22 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function(message, writer
67323
68568
  f
67324
68569
  );
67325
68570
  }
68571
+ f = message.getVisibility();
68572
+ if (f != null) {
68573
+ writer.writeMessage(
68574
+ 8,
68575
+ f,
68576
+ proto.clarifai.api.Visibility.serializeBinaryToWriter
68577
+ );
68578
+ }
68579
+ f = message.getMetadata();
68580
+ if (f != null) {
68581
+ writer.writeMessage(
68582
+ 9,
68583
+ f,
68584
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
68585
+ );
68586
+ }
67326
68587
  };
67327
68588
 
67328
68589
 
@@ -67544,6 +68805,80 @@ proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function(value) {
67544
68805
  };
67545
68806
 
67546
68807
 
68808
+ /**
68809
+ * optional Visibility visibility = 8;
68810
+ * @return {?proto.clarifai.api.Visibility}
68811
+ */
68812
+ proto.clarifai.api.Deployment.prototype.getVisibility = function() {
68813
+ return /** @type{?proto.clarifai.api.Visibility} */ (
68814
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 8));
68815
+ };
68816
+
68817
+
68818
+ /**
68819
+ * @param {?proto.clarifai.api.Visibility|undefined} value
68820
+ * @return {!proto.clarifai.api.Deployment} returns this
68821
+ */
68822
+ proto.clarifai.api.Deployment.prototype.setVisibility = function(value) {
68823
+ return jspb.Message.setWrapperField(this, 8, value);
68824
+ };
68825
+
68826
+
68827
+ /**
68828
+ * Clears the message field making it undefined.
68829
+ * @return {!proto.clarifai.api.Deployment} returns this
68830
+ */
68831
+ proto.clarifai.api.Deployment.prototype.clearVisibility = function() {
68832
+ return this.setVisibility(undefined);
68833
+ };
68834
+
68835
+
68836
+ /**
68837
+ * Returns whether this field is set.
68838
+ * @return {boolean}
68839
+ */
68840
+ proto.clarifai.api.Deployment.prototype.hasVisibility = function() {
68841
+ return jspb.Message.getField(this, 8) != null;
68842
+ };
68843
+
68844
+
68845
+ /**
68846
+ * optional google.protobuf.Struct metadata = 9;
68847
+ * @return {?proto.google.protobuf.Struct}
68848
+ */
68849
+ proto.clarifai.api.Deployment.prototype.getMetadata = function() {
68850
+ return /** @type{?proto.google.protobuf.Struct} */ (
68851
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 9));
68852
+ };
68853
+
68854
+
68855
+ /**
68856
+ * @param {?proto.google.protobuf.Struct|undefined} value
68857
+ * @return {!proto.clarifai.api.Deployment} returns this
68858
+ */
68859
+ proto.clarifai.api.Deployment.prototype.setMetadata = function(value) {
68860
+ return jspb.Message.setWrapperField(this, 9, value);
68861
+ };
68862
+
68863
+
68864
+ /**
68865
+ * Clears the message field making it undefined.
68866
+ * @return {!proto.clarifai.api.Deployment} returns this
68867
+ */
68868
+ proto.clarifai.api.Deployment.prototype.clearMetadata = function() {
68869
+ return this.setMetadata(undefined);
68870
+ };
68871
+
68872
+
68873
+ /**
68874
+ * Returns whether this field is set.
68875
+ * @return {boolean}
68876
+ */
68877
+ proto.clarifai.api.Deployment.prototype.hasMetadata = function() {
68878
+ return jspb.Message.getField(this, 9) != null;
68879
+ };
68880
+
68881
+
67547
68882
 
67548
68883
 
67549
68884