clarifai-web-grpc 10.3.2 → 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) {
4543
4589
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4544
4590
  };
4545
- goog.inherits(proto.clarifai.api.CloudRegion, jspb.Message);
4591
+ goog.inherits(proto.clarifai.api.InstanceType, jspb.Message);
4546
4592
  if (goog.DEBUG && !COMPILED) {
4547
4593
  /**
4548
4594
  * @public
4549
4595
  * @override
4550
4596
  */
4551
- proto.clarifai.api.CloudRegion.displayName = 'proto.clarifai.api.CloudRegion';
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) {
4610
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4611
+ };
4612
+ goog.inherits(proto.clarifai.api.CloudProvider, jspb.Message);
4613
+ if (goog.DEBUG && !COMPILED) {
4614
+ /**
4615
+ * @public
4616
+ * @override
4617
+ */
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.
@@ -4701,7 +4789,7 @@ proto.clarifai.api.Annotation.toObject = function(includeInstance, msg) {
4701
4789
  inputLevel: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
4702
4790
  consensusInfo: (f = msg.getConsensusInfo()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
4703
4791
  taskId: jspb.Message.getFieldWithDefault(msg, 19, ""),
4704
- workflowVersionId: jspb.Message.getFieldWithDefault(msg, 20, "")
4792
+ worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f)
4705
4793
  };
4706
4794
 
4707
4795
  if (includeInstance) {
@@ -4800,9 +4888,10 @@ proto.clarifai.api.Annotation.deserializeBinaryFromReader = function(msg, reader
4800
4888
  var value = /** @type {string} */ (reader.readString());
4801
4889
  msg.setTaskId(value);
4802
4890
  break;
4803
- case 20:
4804
- var value = /** @type {string} */ (reader.readString());
4805
- msg.setWorkflowVersionId(value);
4891
+ case 21:
4892
+ var value = new proto.clarifai.api.Worker;
4893
+ reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
4894
+ msg.setWorker(value);
4806
4895
  break;
4807
4896
  default:
4808
4897
  reader.skipField();
@@ -4937,11 +5026,12 @@ proto.clarifai.api.Annotation.serializeBinaryToWriter = function(message, writer
4937
5026
  f
4938
5027
  );
4939
5028
  }
4940
- f = message.getWorkflowVersionId();
4941
- if (f.length > 0) {
4942
- writer.writeString(
4943
- 20,
4944
- f
5029
+ f = message.getWorker();
5030
+ if (f != null) {
5031
+ writer.writeMessage(
5032
+ 21,
5033
+ f,
5034
+ proto.clarifai.api.Worker.serializeBinaryToWriter
4945
5035
  );
4946
5036
  }
4947
5037
  };
@@ -5314,20 +5404,39 @@ proto.clarifai.api.Annotation.prototype.setTaskId = function(value) {
5314
5404
 
5315
5405
 
5316
5406
  /**
5317
- * optional string workflow_version_id = 20;
5318
- * @return {string}
5407
+ * optional Worker worker = 21;
5408
+ * @return {?proto.clarifai.api.Worker}
5319
5409
  */
5320
- proto.clarifai.api.Annotation.prototype.getWorkflowVersionId = function() {
5321
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
5410
+ proto.clarifai.api.Annotation.prototype.getWorker = function() {
5411
+ return /** @type{?proto.clarifai.api.Worker} */ (
5412
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 21));
5322
5413
  };
5323
5414
 
5324
5415
 
5325
5416
  /**
5326
- * @param {string} value
5417
+ * @param {?proto.clarifai.api.Worker|undefined} value
5418
+ * @return {!proto.clarifai.api.Annotation} returns this
5419
+ */
5420
+ proto.clarifai.api.Annotation.prototype.setWorker = function(value) {
5421
+ return jspb.Message.setWrapperField(this, 21, value);
5422
+ };
5423
+
5424
+
5425
+ /**
5426
+ * Clears the message field making it undefined.
5327
5427
  * @return {!proto.clarifai.api.Annotation} returns this
5328
5428
  */
5329
- proto.clarifai.api.Annotation.prototype.setWorkflowVersionId = function(value) {
5330
- return jspb.Message.setProto3StringField(this, 20, value);
5429
+ proto.clarifai.api.Annotation.prototype.clearWorker = function() {
5430
+ return this.setWorker(undefined);
5431
+ };
5432
+
5433
+
5434
+ /**
5435
+ * Returns whether this field is set.
5436
+ * @return {boolean}
5437
+ */
5438
+ proto.clarifai.api.Annotation.prototype.hasWorker = function() {
5439
+ return jspb.Message.getField(this, 21) != null;
5331
5440
  };
5332
5441
 
5333
5442
 
@@ -11485,6 +11594,32 @@ proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function() {
11485
11594
  */
11486
11595
  proto.clarifai.api.ConceptQuery.repeatedFields_ = [4];
11487
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
+
11488
11623
 
11489
11624
 
11490
11625
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -11519,7 +11654,9 @@ proto.clarifai.api.ConceptQuery.toObject = function(includeInstance, msg) {
11519
11654
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
11520
11655
  language: jspb.Message.getFieldWithDefault(msg, 2, ""),
11521
11656
  workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
11522
- 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)
11523
11660
  };
11524
11661
 
11525
11662
  if (includeInstance) {
@@ -11574,6 +11711,16 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function(msg, read
11574
11711
  msg.addUseCases(values[i]);
11575
11712
  }
11576
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;
11577
11724
  default:
11578
11725
  reader.skipField();
11579
11726
  break;
@@ -11631,6 +11778,22 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function(message, writ
11631
11778
  f
11632
11779
  );
11633
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
+ }
11634
11797
  };
11635
11798
 
11636
11799
 
@@ -11725,6 +11888,80 @@ proto.clarifai.api.ConceptQuery.prototype.clearUseCasesList = function() {
11725
11888
  };
11726
11889
 
11727
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
+
11728
11965
 
11729
11966
 
11730
11967
 
@@ -52320,7 +52557,8 @@ proto.clarifai.api.TaskMetrics.prototype.toObject = function(opt_includeInstance
52320
52557
  */
52321
52558
  proto.clarifai.api.TaskMetrics.toObject = function(includeInstance, msg) {
52322
52559
  var f, obj = {
52323
- 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)
52324
52562
  };
52325
52563
 
52326
52564
  if (includeInstance) {
@@ -52362,6 +52600,11 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function(msg, reade
52362
52600
  reader.readMessage(value,proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader);
52363
52601
  msg.setWork(value);
52364
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;
52365
52608
  default:
52366
52609
  reader.skipField();
52367
52610
  break;
@@ -52399,6 +52642,14 @@ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function(message, write
52399
52642
  proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter
52400
52643
  );
52401
52644
  }
52645
+ f = message.getReview();
52646
+ if (f != null) {
52647
+ writer.writeMessage(
52648
+ 3,
52649
+ f,
52650
+ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter
52651
+ );
52652
+ }
52402
52653
  };
52403
52654
 
52404
52655
 
@@ -52439,6 +52690,43 @@ proto.clarifai.api.TaskMetrics.prototype.hasWork = function() {
52439
52690
  };
52440
52691
 
52441
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
+
52442
52730
 
52443
52731
 
52444
52732
 
@@ -52602,6 +52890,166 @@ proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = functio
52602
52890
 
52603
52891
 
52604
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
+
52605
53053
  if (jspb.Message.GENERATE_TO_OBJECT) {
52606
53054
  /**
52607
53055
  * Creates an object representation of this proto.
@@ -65940,7 +66388,7 @@ proto.clarifai.api.Runner.prototype.hasComputeInfo = function() {
65940
66388
  * @private {!Array<number>}
65941
66389
  * @const
65942
66390
  */
65943
- proto.clarifai.api.Nodepool.repeatedFields_ = [4,8];
66391
+ proto.clarifai.api.Nodepool.repeatedFields_ = [8];
65944
66392
 
65945
66393
 
65946
66394
 
@@ -65974,12 +66422,18 @@ proto.clarifai.api.Nodepool.prototype.toObject = function(opt_includeInstance) {
65974
66422
  proto.clarifai.api.Nodepool.toObject = function(includeInstance, msg) {
65975
66423
  var f, obj = {
65976
66424
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
65977
- userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
65978
- cloudRegion: (f = msg.getCloudRegion()) && proto.clarifai.api.CloudRegion.toObject(includeInstance, f),
65979
- capacityTypesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
65980
- instanceTypesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
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),
65981
66433
  minInstances: jspb.Message.getFieldWithDefault(msg, 9, 0),
65982
- 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)
65983
66437
  };
65984
66438
 
65985
66439
  if (includeInstance) {
@@ -66022,21 +66476,35 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function(msg, reader)
66022
66476
  break;
66023
66477
  case 2:
66024
66478
  var value = /** @type {string} */ (reader.readString());
66025
- msg.setUserId(value);
66479
+ msg.setDescription(value);
66026
66480
  break;
66027
66481
  case 3:
66028
- var value = new proto.clarifai.api.CloudRegion;
66029
- reader.readMessage(value,proto.clarifai.api.CloudRegion.deserializeBinaryFromReader);
66030
- 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);
66031
66485
  break;
66032
66486
  case 4:
66033
- var values = /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
66034
- for (var i = 0; i < values.length; i++) {
66035
- msg.addCapacityTypes(values[i]);
66036
- }
66487
+ var value = new google_protobuf_timestamp_pb.Timestamp;
66488
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
66489
+ msg.setModifiedAt(value);
66037
66490
  break;
66038
- case 8:
66491
+ case 5:
66039
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);
66040
66508
  msg.addInstanceTypes(value);
66041
66509
  break;
66042
66510
  case 9:
@@ -66047,6 +66515,16 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function(msg, reader)
66047
66515
  var value = /** @type {number} */ (reader.readUint32());
66048
66516
  msg.setMaxInstances(value);
66049
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;
66050
66528
  default:
66051
66529
  reader.skipField();
66052
66530
  break;
@@ -66083,33 +66561,58 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function(message, writer)
66083
66561
  f
66084
66562
  );
66085
66563
  }
66086
- f = message.getUserId();
66564
+ f = message.getDescription();
66087
66565
  if (f.length > 0) {
66088
66566
  writer.writeString(
66089
66567
  2,
66090
66568
  f
66091
66569
  );
66092
66570
  }
66093
- f = message.getCloudRegion();
66571
+ f = message.getCreatedAt();
66094
66572
  if (f != null) {
66095
66573
  writer.writeMessage(
66096
66574
  3,
66097
66575
  f,
66098
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter
66576
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
66099
66577
  );
66100
66578
  }
66101
- f = message.getCapacityTypesList();
66102
- if (f.length > 0) {
66103
- writer.writePackedEnum(
66579
+ f = message.getModifiedAt();
66580
+ if (f != null) {
66581
+ writer.writeMessage(
66104
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,
66105
66591
  f
66106
66592
  );
66107
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
+ }
66108
66610
  f = message.getInstanceTypesList();
66109
66611
  if (f.length > 0) {
66110
- writer.writeRepeatedString(
66612
+ writer.writeRepeatedMessage(
66111
66613
  8,
66112
- f
66614
+ f,
66615
+ proto.clarifai.api.InstanceType.serializeBinaryToWriter
66113
66616
  );
66114
66617
  }
66115
66618
  f = message.getMinInstances();
@@ -66126,18 +66629,25 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function(message, writer)
66126
66629
  f
66127
66630
  );
66128
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
+ }
66129
66648
  };
66130
66649
 
66131
66650
 
66132
- /**
66133
- * @enum {number}
66134
- */
66135
- proto.clarifai.api.Nodepool.CapacityType = {
66136
- UKNOWN_CAPACITY_TYPE: 0,
66137
- ONDEMAND_TYPE: 1,
66138
- SPOT_TYPE: 2
66139
- };
66140
-
66141
66651
  /**
66142
66652
  * optional string id = 1;
66143
66653
  * @return {string}
@@ -66157,10 +66667,10 @@ proto.clarifai.api.Nodepool.prototype.setId = function(value) {
66157
66667
 
66158
66668
 
66159
66669
  /**
66160
- * optional string user_id = 2;
66670
+ * optional string description = 2;
66161
66671
  * @return {string}
66162
66672
  */
66163
- proto.clarifai.api.Nodepool.prototype.getUserId = function() {
66673
+ proto.clarifai.api.Nodepool.prototype.getDescription = function() {
66164
66674
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
66165
66675
  };
66166
66676
 
@@ -66169,26 +66679,26 @@ proto.clarifai.api.Nodepool.prototype.getUserId = function() {
66169
66679
  * @param {string} value
66170
66680
  * @return {!proto.clarifai.api.Nodepool} returns this
66171
66681
  */
66172
- proto.clarifai.api.Nodepool.prototype.setUserId = function(value) {
66682
+ proto.clarifai.api.Nodepool.prototype.setDescription = function(value) {
66173
66683
  return jspb.Message.setProto3StringField(this, 2, value);
66174
66684
  };
66175
66685
 
66176
66686
 
66177
66687
  /**
66178
- * optional CloudRegion cloud_region = 3;
66179
- * @return {?proto.clarifai.api.CloudRegion}
66688
+ * optional google.protobuf.Timestamp created_at = 3;
66689
+ * @return {?proto.google.protobuf.Timestamp}
66180
66690
  */
66181
- proto.clarifai.api.Nodepool.prototype.getCloudRegion = function() {
66182
- return /** @type{?proto.clarifai.api.CloudRegion} */ (
66183
- jspb.Message.getWrapperField(this, proto.clarifai.api.CloudRegion, 3));
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));
66184
66694
  };
66185
66695
 
66186
66696
 
66187
66697
  /**
66188
- * @param {?proto.clarifai.api.CloudRegion|undefined} value
66698
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
66189
66699
  * @return {!proto.clarifai.api.Nodepool} returns this
66190
66700
  */
66191
- proto.clarifai.api.Nodepool.prototype.setCloudRegion = function(value) {
66701
+ proto.clarifai.api.Nodepool.prototype.setCreatedAt = function(value) {
66192
66702
  return jspb.Message.setWrapperField(this, 3, value);
66193
66703
  };
66194
66704
 
@@ -66197,8 +66707,8 @@ proto.clarifai.api.Nodepool.prototype.setCloudRegion = function(value) {
66197
66707
  * Clears the message field making it undefined.
66198
66708
  * @return {!proto.clarifai.api.Nodepool} returns this
66199
66709
  */
66200
- proto.clarifai.api.Nodepool.prototype.clearCloudRegion = function() {
66201
- return this.setCloudRegion(undefined);
66710
+ proto.clarifai.api.Nodepool.prototype.clearCreatedAt = function() {
66711
+ return this.setCreatedAt(undefined);
66202
66712
  };
66203
66713
 
66204
66714
 
@@ -66206,73 +66716,166 @@ proto.clarifai.api.Nodepool.prototype.clearCloudRegion = function() {
66206
66716
  * Returns whether this field is set.
66207
66717
  * @return {boolean}
66208
66718
  */
66209
- proto.clarifai.api.Nodepool.prototype.hasCloudRegion = function() {
66719
+ proto.clarifai.api.Nodepool.prototype.hasCreatedAt = function() {
66210
66720
  return jspb.Message.getField(this, 3) != null;
66211
66721
  };
66212
66722
 
66213
66723
 
66214
66724
  /**
66215
- * repeated CapacityType capacity_types = 4;
66216
- * @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}
66217
66764
  */
66218
- proto.clarifai.api.Nodepool.prototype.getCapacityTypesList = function() {
66219
- 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, ""));
66220
66767
  };
66221
66768
 
66222
66769
 
66223
66770
  /**
66224
- * @param {!Array<!proto.clarifai.api.Nodepool.CapacityType>} value
66771
+ * @param {string} value
66225
66772
  * @return {!proto.clarifai.api.Nodepool} returns this
66226
66773
  */
66227
- proto.clarifai.api.Nodepool.prototype.setCapacityTypesList = function(value) {
66228
- return jspb.Message.setField(this, 4, value || []);
66774
+ proto.clarifai.api.Nodepool.prototype.setUserId = function(value) {
66775
+ return jspb.Message.setProto3StringField(this, 5, value);
66229
66776
  };
66230
66777
 
66231
66778
 
66232
66779
  /**
66233
- * @param {!proto.clarifai.api.Nodepool.CapacityType} value
66234
- * @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.
66235
66800
  * @return {!proto.clarifai.api.Nodepool} returns this
66236
66801
  */
66237
- proto.clarifai.api.Nodepool.prototype.addCapacityTypes = function(value, opt_index) {
66238
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
66802
+ proto.clarifai.api.Nodepool.prototype.clearComputeCluster = function() {
66803
+ return this.setComputeCluster(undefined);
66239
66804
  };
66240
66805
 
66241
66806
 
66242
66807
  /**
66243
- * 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.
66244
66837
  * @return {!proto.clarifai.api.Nodepool} returns this
66245
66838
  */
66246
- proto.clarifai.api.Nodepool.prototype.clearCapacityTypesList = function() {
66247
- return this.setCapacityTypesList([]);
66839
+ proto.clarifai.api.Nodepool.prototype.clearNodeCapacityType = function() {
66840
+ return this.setNodeCapacityType(undefined);
66248
66841
  };
66249
66842
 
66250
66843
 
66251
66844
  /**
66252
- * repeated string instance_types = 8;
66253
- * @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>}
66254
66856
  */
66255
66857
  proto.clarifai.api.Nodepool.prototype.getInstanceTypesList = function() {
66256
- 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));
66257
66860
  };
66258
66861
 
66259
66862
 
66260
66863
  /**
66261
- * @param {!Array<string>} value
66864
+ * @param {!Array<!proto.clarifai.api.InstanceType>} value
66262
66865
  * @return {!proto.clarifai.api.Nodepool} returns this
66263
- */
66866
+ */
66264
66867
  proto.clarifai.api.Nodepool.prototype.setInstanceTypesList = function(value) {
66265
- return jspb.Message.setField(this, 8, value || []);
66868
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
66266
66869
  };
66267
66870
 
66268
66871
 
66269
66872
  /**
66270
- * @param {string} value
66873
+ * @param {!proto.clarifai.api.InstanceType=} opt_value
66271
66874
  * @param {number=} opt_index
66272
- * @return {!proto.clarifai.api.Nodepool} returns this
66875
+ * @return {!proto.clarifai.api.InstanceType}
66273
66876
  */
66274
- proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function(value, opt_index) {
66275
- 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);
66276
66879
  };
66277
66880
 
66278
66881
 
@@ -66321,6 +66924,618 @@ proto.clarifai.api.Nodepool.prototype.setMaxInstances = function(value) {
66321
66924
  };
66322
66925
 
66323
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
+
67379
+
67380
+
67381
+
67382
+ if (jspb.Message.GENERATE_TO_OBJECT) {
67383
+ /**
67384
+ * Creates an object representation of this proto.
67385
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
67386
+ * Optional fields that are not set will be set to undefined.
67387
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
67388
+ * For the list of reserved names please see:
67389
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
67390
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
67391
+ * JSPB instance for transitional soy proto support:
67392
+ * http://goto/soy-param-migration
67393
+ * @return {!Object}
67394
+ */
67395
+ proto.clarifai.api.CloudProvider.prototype.toObject = function(opt_includeInstance) {
67396
+ return proto.clarifai.api.CloudProvider.toObject(opt_includeInstance, this);
67397
+ };
67398
+
67399
+
67400
+ /**
67401
+ * Static version of the {@see toObject} method.
67402
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
67403
+ * the JSPB instance for transitional soy proto support:
67404
+ * http://goto/soy-param-migration
67405
+ * @param {!proto.clarifai.api.CloudProvider} msg The msg instance to transform.
67406
+ * @return {!Object}
67407
+ * @suppress {unusedLocalVariables} f is only used for nested messages
67408
+ */
67409
+ proto.clarifai.api.CloudProvider.toObject = function(includeInstance, msg) {
67410
+ var f, obj = {
67411
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
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
+
66324
67539
 
66325
67540
 
66326
67541
 
@@ -66337,8 +67552,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
66337
67552
  * http://goto/soy-param-migration
66338
67553
  * @return {!Object}
66339
67554
  */
66340
- proto.clarifai.api.CloudRegion.prototype.toObject = function(opt_includeInstance) {
66341
- return proto.clarifai.api.CloudRegion.toObject(opt_includeInstance, this);
67555
+ proto.clarifai.api.ComputeCluster.prototype.toObject = function(opt_includeInstance) {
67556
+ return proto.clarifai.api.ComputeCluster.toObject(opt_includeInstance, this);
66342
67557
  };
66343
67558
 
66344
67559
 
@@ -66347,14 +67562,15 @@ proto.clarifai.api.CloudRegion.prototype.toObject = function(opt_includeInstance
66347
67562
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
66348
67563
  * the JSPB instance for transitional soy proto support:
66349
67564
  * http://goto/soy-param-migration
66350
- * @param {!proto.clarifai.api.CloudRegion} msg The msg instance to transform.
67565
+ * @param {!proto.clarifai.api.ComputeCluster} msg The msg instance to transform.
66351
67566
  * @return {!Object}
66352
67567
  * @suppress {unusedLocalVariables} f is only used for nested messages
66353
67568
  */
66354
- proto.clarifai.api.CloudRegion.toObject = function(includeInstance, msg) {
67569
+ proto.clarifai.api.ComputeCluster.toObject = function(includeInstance, msg) {
66355
67570
  var f, obj = {
66356
67571
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
66357
- cloud: jspb.Message.getFieldWithDefault(msg, 3, 0),
67572
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
67573
+ cloudProvider: (f = msg.getCloudProvider()) && proto.clarifai.api.CloudProvider.toObject(includeInstance, f),
66358
67574
  region: jspb.Message.getFieldWithDefault(msg, 4, "")
66359
67575
  };
66360
67576
 
@@ -66369,23 +67585,23 @@ proto.clarifai.api.CloudRegion.toObject = function(includeInstance, msg) {
66369
67585
  /**
66370
67586
  * Deserializes binary data (in protobuf wire format).
66371
67587
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
66372
- * @return {!proto.clarifai.api.CloudRegion}
67588
+ * @return {!proto.clarifai.api.ComputeCluster}
66373
67589
  */
66374
- proto.clarifai.api.CloudRegion.deserializeBinary = function(bytes) {
67590
+ proto.clarifai.api.ComputeCluster.deserializeBinary = function(bytes) {
66375
67591
  var reader = new jspb.BinaryReader(bytes);
66376
- var msg = new proto.clarifai.api.CloudRegion;
66377
- 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);
66378
67594
  };
66379
67595
 
66380
67596
 
66381
67597
  /**
66382
67598
  * Deserializes binary data (in protobuf wire format) from the
66383
67599
  * given reader into the given message object.
66384
- * @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.
66385
67601
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
66386
- * @return {!proto.clarifai.api.CloudRegion}
67602
+ * @return {!proto.clarifai.api.ComputeCluster}
66387
67603
  */
66388
- proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reader) {
67604
+ proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader = function(msg, reader) {
66389
67605
  while (reader.nextField()) {
66390
67606
  if (reader.isEndGroup()) {
66391
67607
  break;
@@ -66396,9 +67612,14 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reade
66396
67612
  var value = /** @type {string} */ (reader.readString());
66397
67613
  msg.setId(value);
66398
67614
  break;
67615
+ case 2:
67616
+ var value = /** @type {string} */ (reader.readString());
67617
+ msg.setDescription(value);
67618
+ break;
66399
67619
  case 3:
66400
- var value = /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (reader.readEnum());
66401
- msg.setCloud(value);
67620
+ var value = new proto.clarifai.api.CloudProvider;
67621
+ reader.readMessage(value,proto.clarifai.api.CloudProvider.deserializeBinaryFromReader);
67622
+ msg.setCloudProvider(value);
66402
67623
  break;
66403
67624
  case 4:
66404
67625
  var value = /** @type {string} */ (reader.readString());
@@ -66417,9 +67638,9 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function(msg, reade
66417
67638
  * Serializes the message to binary data (in protobuf wire format).
66418
67639
  * @return {!Uint8Array}
66419
67640
  */
66420
- proto.clarifai.api.CloudRegion.prototype.serializeBinary = function() {
67641
+ proto.clarifai.api.ComputeCluster.prototype.serializeBinary = function() {
66421
67642
  var writer = new jspb.BinaryWriter();
66422
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter(this, writer);
67643
+ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter(this, writer);
66423
67644
  return writer.getResultBuffer();
66424
67645
  };
66425
67646
 
@@ -66427,11 +67648,11 @@ proto.clarifai.api.CloudRegion.prototype.serializeBinary = function() {
66427
67648
  /**
66428
67649
  * Serializes the given message to binary data (in protobuf wire
66429
67650
  * format), writing to the given BinaryWriter.
66430
- * @param {!proto.clarifai.api.CloudRegion} message
67651
+ * @param {!proto.clarifai.api.ComputeCluster} message
66431
67652
  * @param {!jspb.BinaryWriter} writer
66432
67653
  * @suppress {unusedLocalVariables} f is only used for nested messages
66433
67654
  */
66434
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, writer) {
67655
+ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter = function(message, writer) {
66435
67656
  var f = undefined;
66436
67657
  f = message.getId();
66437
67658
  if (f.length > 0) {
@@ -66440,13 +67661,21 @@ proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, write
66440
67661
  f
66441
67662
  );
66442
67663
  }
66443
- f = message.getCloud();
66444
- if (f !== 0.0) {
66445
- writer.writeEnum(
66446
- 3,
67664
+ f = message.getDescription();
67665
+ if (f.length > 0) {
67666
+ writer.writeString(
67667
+ 2,
66447
67668
  f
66448
67669
  );
66449
67670
  }
67671
+ f = message.getCloudProvider();
67672
+ if (f != null) {
67673
+ writer.writeMessage(
67674
+ 3,
67675
+ f,
67676
+ proto.clarifai.api.CloudProvider.serializeBinaryToWriter
67677
+ );
67678
+ }
66450
67679
  f = message.getRegion();
66451
67680
  if (f.length > 0) {
66452
67681
  writer.writeString(
@@ -66458,50 +67687,75 @@ proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function(message, write
66458
67687
 
66459
67688
 
66460
67689
  /**
66461
- * @enum {number}
67690
+ * optional string id = 1;
67691
+ * @return {string}
66462
67692
  */
66463
- proto.clarifai.api.CloudRegion.Cloud = {
66464
- UNKOWN_CLOUD: 0,
66465
- SELF_HOSTED: 1,
66466
- AWS: 2,
66467
- GCP: 3,
66468
- AZURE: 4,
66469
- LAMBDA: 5
67693
+ proto.clarifai.api.ComputeCluster.prototype.getId = function() {
67694
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
66470
67695
  };
66471
67696
 
67697
+
66472
67698
  /**
66473
- * 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;
66474
67709
  * @return {string}
66475
67710
  */
66476
- proto.clarifai.api.CloudRegion.prototype.getId = function() {
66477
- 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, ""));
66478
67713
  };
66479
67714
 
66480
67715
 
66481
67716
  /**
66482
67717
  * @param {string} value
66483
- * @return {!proto.clarifai.api.CloudRegion} returns this
67718
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
66484
67719
  */
66485
- proto.clarifai.api.CloudRegion.prototype.setId = function(value) {
66486
- return jspb.Message.setProto3StringField(this, 1, value);
67720
+ proto.clarifai.api.ComputeCluster.prototype.setDescription = function(value) {
67721
+ return jspb.Message.setProto3StringField(this, 2, value);
66487
67722
  };
66488
67723
 
66489
67724
 
66490
67725
  /**
66491
- * optional Cloud cloud = 3;
66492
- * @return {!proto.clarifai.api.CloudRegion.Cloud}
67726
+ * optional CloudProvider cloud_provider = 3;
67727
+ * @return {?proto.clarifai.api.CloudProvider}
66493
67728
  */
66494
- proto.clarifai.api.CloudRegion.prototype.getCloud = function() {
66495
- 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));
66496
67732
  };
66497
67733
 
66498
67734
 
66499
67735
  /**
66500
- * @param {!proto.clarifai.api.CloudRegion.Cloud} value
66501
- * @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
66502
67747
  */
66503
- proto.clarifai.api.CloudRegion.prototype.setCloud = function(value) {
66504
- 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;
66505
67759
  };
66506
67760
 
66507
67761
 
@@ -66509,16 +67763,16 @@ proto.clarifai.api.CloudRegion.prototype.setCloud = function(value) {
66509
67763
  * optional string region = 4;
66510
67764
  * @return {string}
66511
67765
  */
66512
- proto.clarifai.api.CloudRegion.prototype.getRegion = function() {
67766
+ proto.clarifai.api.ComputeCluster.prototype.getRegion = function() {
66513
67767
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
66514
67768
  };
66515
67769
 
66516
67770
 
66517
67771
  /**
66518
67772
  * @param {string} value
66519
- * @return {!proto.clarifai.api.CloudRegion} returns this
67773
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
66520
67774
  */
66521
- proto.clarifai.api.CloudRegion.prototype.setRegion = function(value) {
67775
+ proto.clarifai.api.ComputeCluster.prototype.setRegion = function(value) {
66522
67776
  return jspb.Message.setProto3StringField(this, 4, value);
66523
67777
  };
66524
67778
 
@@ -67151,7 +68405,9 @@ proto.clarifai.api.Deployment.toObject = function(includeInstance, msg) {
67151
68405
  proto.clarifai.api.Nodepool.toObject, includeInstance),
67152
68406
  model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
67153
68407
  workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
67154
- 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)
67155
68411
  };
67156
68412
 
67157
68413
  if (includeInstance) {
@@ -67220,6 +68476,16 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function(msg, reader
67220
68476
  var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
67221
68477
  msg.setSchedulingChoice(value);
67222
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;
67223
68489
  default:
67224
68490
  reader.skipField();
67225
68491
  break;
@@ -67302,6 +68568,22 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function(message, writer
67302
68568
  f
67303
68569
  );
67304
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
+ }
67305
68587
  };
67306
68588
 
67307
68589
 
@@ -67523,6 +68805,80 @@ proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function(value) {
67523
68805
  };
67524
68806
 
67525
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
+
67526
68882
 
67527
68883
 
67528
68884