clarifai-web-grpc 10.3.3 → 10.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,14 +66,14 @@ goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global);
66
66
  goog.exportSymbol('proto.clarifai.api.BuildInfo', null, global);
67
67
  goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global);
68
68
  goog.exportSymbol('proto.clarifai.api.BulkOperation.InputSourceCase', null, global);
69
- goog.exportSymbol('proto.clarifai.api.CloudRegion', null, global);
70
- goog.exportSymbol('proto.clarifai.api.CloudRegion.Cloud', null, global);
69
+ goog.exportSymbol('proto.clarifai.api.CloudProvider', null, global);
71
70
  goog.exportSymbol('proto.clarifai.api.Cluster', null, global);
72
71
  goog.exportSymbol('proto.clarifai.api.Collaboration', null, global);
73
72
  goog.exportSymbol('proto.clarifai.api.Collaborator', null, global);
74
73
  goog.exportSymbol('proto.clarifai.api.Collector', null, global);
75
74
  goog.exportSymbol('proto.clarifai.api.CollectorSource', null, global);
76
75
  goog.exportSymbol('proto.clarifai.api.Color', null, global);
76
+ goog.exportSymbol('proto.clarifai.api.ComputeCluster', null, global);
77
77
  goog.exportSymbol('proto.clarifai.api.ComputeInfo', null, global);
78
78
  goog.exportSymbol('proto.clarifai.api.Concept', null, global);
79
79
  goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global);
@@ -81,6 +81,7 @@ goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global);
81
81
  goog.exportSymbol('proto.clarifai.api.ConceptLanguage', null, global);
82
82
  goog.exportSymbol('proto.clarifai.api.ConceptMappingJob', null, global);
83
83
  goog.exportSymbol('proto.clarifai.api.ConceptQuery', null, global);
84
+ goog.exportSymbol('proto.clarifai.api.ConceptQuery.SourceCase', null, global);
84
85
  goog.exportSymbol('proto.clarifai.api.ConceptRelation', null, global);
85
86
  goog.exportSymbol('proto.clarifai.api.ConceptTypeCount', null, global);
86
87
  goog.exportSymbol('proto.clarifai.api.ConfusionMatrix', null, global);
@@ -155,6 +156,7 @@ goog.exportSymbol('proto.clarifai.api.InputsExtractionJob', null, global);
155
156
  goog.exportSymbol('proto.clarifai.api.InputsExtractionJobProgress', null, global);
156
157
  goog.exportSymbol('proto.clarifai.api.InputsUpload', null, global);
157
158
  goog.exportSymbol('proto.clarifai.api.InstalledModuleVersion', null, global);
159
+ goog.exportSymbol('proto.clarifai.api.InstanceType', null, global);
158
160
  goog.exportSymbol('proto.clarifai.api.Key', null, global);
159
161
  goog.exportSymbol('proto.clarifai.api.KeypointEdge', null, global);
160
162
  goog.exportSymbol('proto.clarifai.api.KeypointInfo', null, global);
@@ -187,9 +189,10 @@ goog.exportSymbol('proto.clarifai.api.ModuleStar', null, global);
187
189
  goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global);
188
190
  goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global);
189
191
  goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global);
192
+ goog.exportSymbol('proto.clarifai.api.NodeCapacityType', null, global);
193
+ goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, global);
190
194
  goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
191
195
  goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
192
- goog.exportSymbol('proto.clarifai.api.Nodepool.CapacityType', null, global);
193
196
  goog.exportSymbol('proto.clarifai.api.Operation', null, global);
194
197
  goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
195
198
  goog.exportSymbol('proto.clarifai.api.Output', null, global);
@@ -214,7 +217,6 @@ goog.exportSymbol('proto.clarifai.api.Region', null, global);
214
217
  goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global);
215
218
  goog.exportSymbol('proto.clarifai.api.RoleType', null, global);
216
219
  goog.exportSymbol('proto.clarifai.api.Runner', null, global);
217
- goog.exportSymbol('proto.clarifai.api.Runner.ObjectCase', null, global);
218
220
  goog.exportSymbol('proto.clarifai.api.RunnerMethodType', null, global);
219
221
  goog.exportSymbol('proto.clarifai.api.RunnerSelector', null, global);
220
222
  goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global);
@@ -243,6 +245,7 @@ goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global
243
245
  goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, global);
244
246
  goog.exportSymbol('proto.clarifai.api.TaskReviewConsensusStrategyInfo', null, global);
245
247
  goog.exportSymbol('proto.clarifai.api.TaskReviewManualStrategyInfo', null, global);
248
+ goog.exportSymbol('proto.clarifai.api.TaskReviewMetrics', null, global);
246
249
  goog.exportSymbol('proto.clarifai.api.TaskStatusCountPerUser', null, global);
247
250
  goog.exportSymbol('proto.clarifai.api.TaskWorkMetrics', null, global);
248
251
  goog.exportSymbol('proto.clarifai.api.TaskWorker', null, global);
@@ -779,7 +782,7 @@ if (goog.DEBUG && !COMPILED) {
779
782
  * @constructor
780
783
  */
781
784
  proto.clarifai.api.ConceptQuery = function (opt_data) {
782
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_, null);
785
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ConceptQuery.repeatedFields_, proto.clarifai.api.ConceptQuery.oneofGroups_);
783
786
  };
784
787
  goog.inherits(proto.clarifai.api.ConceptQuery, jspb.Message);
785
788
  if (goog.DEBUG && !COMPILED) {
@@ -3456,6 +3459,27 @@ if (goog.DEBUG && !COMPILED) {
3456
3459
  */
3457
3460
  proto.clarifai.api.TaskWorkMetrics.displayName = 'proto.clarifai.api.TaskWorkMetrics';
3458
3461
  }
3462
+ /**
3463
+ * Generated by JsPbCodeGenerator.
3464
+ * @param {Array=} opt_data Optional initial data array, typically from a
3465
+ * server response, or constructed directly in Javascript. The array is used
3466
+ * in place and becomes part of the constructed object. It is not cloned.
3467
+ * If no data is provided, the constructed object will be empty, but still
3468
+ * valid.
3469
+ * @extends {jspb.Message}
3470
+ * @constructor
3471
+ */
3472
+ proto.clarifai.api.TaskReviewMetrics = function (opt_data) {
3473
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3474
+ };
3475
+ goog.inherits(proto.clarifai.api.TaskReviewMetrics, jspb.Message);
3476
+ if (goog.DEBUG && !COMPILED) {
3477
+ /**
3478
+ * @public
3479
+ * @override
3480
+ */
3481
+ proto.clarifai.api.TaskReviewMetrics.displayName = 'proto.clarifai.api.TaskReviewMetrics';
3482
+ }
3459
3483
  /**
3460
3484
  * Generated by JsPbCodeGenerator.
3461
3485
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4496,7 +4520,7 @@ if (goog.DEBUG && !COMPILED) {
4496
4520
  * @constructor
4497
4521
  */
4498
4522
  proto.clarifai.api.Runner = function (opt_data) {
4499
- jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, proto.clarifai.api.Runner.oneofGroups_);
4523
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, null);
4500
4524
  };
4501
4525
  goog.inherits(proto.clarifai.api.Runner, jspb.Message);
4502
4526
  if (goog.DEBUG && !COMPILED) {
@@ -4537,16 +4561,79 @@ if (goog.DEBUG && !COMPILED) {
4537
4561
  * @extends {jspb.Message}
4538
4562
  * @constructor
4539
4563
  */
4540
- proto.clarifai.api.CloudRegion = function (opt_data) {
4564
+ proto.clarifai.api.NodeCapacityType = function (opt_data) {
4565
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.NodeCapacityType.repeatedFields_, null);
4566
+ };
4567
+ goog.inherits(proto.clarifai.api.NodeCapacityType, jspb.Message);
4568
+ if (goog.DEBUG && !COMPILED) {
4569
+ /**
4570
+ * @public
4571
+ * @override
4572
+ */
4573
+ proto.clarifai.api.NodeCapacityType.displayName = 'proto.clarifai.api.NodeCapacityType';
4574
+ }
4575
+ /**
4576
+ * Generated by JsPbCodeGenerator.
4577
+ * @param {Array=} opt_data Optional initial data array, typically from a
4578
+ * server response, or constructed directly in Javascript. The array is used
4579
+ * in place and becomes part of the constructed object. It is not cloned.
4580
+ * If no data is provided, the constructed object will be empty, but still
4581
+ * valid.
4582
+ * @extends {jspb.Message}
4583
+ * @constructor
4584
+ */
4585
+ proto.clarifai.api.InstanceType = function (opt_data) {
4586
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4587
+ };
4588
+ goog.inherits(proto.clarifai.api.InstanceType, jspb.Message);
4589
+ if (goog.DEBUG && !COMPILED) {
4590
+ /**
4591
+ * @public
4592
+ * @override
4593
+ */
4594
+ proto.clarifai.api.InstanceType.displayName = 'proto.clarifai.api.InstanceType';
4595
+ }
4596
+ /**
4597
+ * Generated by JsPbCodeGenerator.
4598
+ * @param {Array=} opt_data Optional initial data array, typically from a
4599
+ * server response, or constructed directly in Javascript. The array is used
4600
+ * in place and becomes part of the constructed object. It is not cloned.
4601
+ * If no data is provided, the constructed object will be empty, but still
4602
+ * valid.
4603
+ * @extends {jspb.Message}
4604
+ * @constructor
4605
+ */
4606
+ proto.clarifai.api.CloudProvider = function (opt_data) {
4607
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4608
+ };
4609
+ goog.inherits(proto.clarifai.api.CloudProvider, jspb.Message);
4610
+ if (goog.DEBUG && !COMPILED) {
4611
+ /**
4612
+ * @public
4613
+ * @override
4614
+ */
4615
+ proto.clarifai.api.CloudProvider.displayName = 'proto.clarifai.api.CloudProvider';
4616
+ }
4617
+ /**
4618
+ * Generated by JsPbCodeGenerator.
4619
+ * @param {Array=} opt_data Optional initial data array, typically from a
4620
+ * server response, or constructed directly in Javascript. The array is used
4621
+ * in place and becomes part of the constructed object. It is not cloned.
4622
+ * If no data is provided, the constructed object will be empty, but still
4623
+ * valid.
4624
+ * @extends {jspb.Message}
4625
+ * @constructor
4626
+ */
4627
+ proto.clarifai.api.ComputeCluster = function (opt_data) {
4541
4628
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4542
4629
  };
4543
- goog.inherits(proto.clarifai.api.CloudRegion, jspb.Message);
4630
+ goog.inherits(proto.clarifai.api.ComputeCluster, jspb.Message);
4544
4631
  if (goog.DEBUG && !COMPILED) {
4545
4632
  /**
4546
4633
  * @public
4547
4634
  * @override
4548
4635
  */
4549
- proto.clarifai.api.CloudRegion.displayName = 'proto.clarifai.api.CloudRegion';
4636
+ proto.clarifai.api.ComputeCluster.displayName = 'proto.clarifai.api.ComputeCluster';
4550
4637
  }
4551
4638
  /**
4552
4639
  * Generated by JsPbCodeGenerator.
@@ -10033,6 +10120,29 @@ proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function () {
10033
10120
  * @const
10034
10121
  */
10035
10122
  proto.clarifai.api.ConceptQuery.repeatedFields_ = [4];
10123
+ /**
10124
+ * Oneof group definitions for this message. Each group defines the field
10125
+ * numbers belonging to that group. When of these fields' value is set, all
10126
+ * other fields in the group are cleared. During deserialization, if multiple
10127
+ * fields are encountered for a group, only the last value seen will be kept.
10128
+ * @private {!Array<!Array<number>>}
10129
+ * @const
10130
+ */
10131
+ proto.clarifai.api.ConceptQuery.oneofGroups_ = [[5, 6]];
10132
+ /**
10133
+ * @enum {number}
10134
+ */
10135
+ proto.clarifai.api.ConceptQuery.SourceCase = {
10136
+ SOURCE_NOT_SET: 0,
10137
+ MODEL: 5,
10138
+ WORKFLOW: 6
10139
+ };
10140
+ /**
10141
+ * @return {proto.clarifai.api.ConceptQuery.SourceCase}
10142
+ */
10143
+ proto.clarifai.api.ConceptQuery.prototype.getSourceCase = function () {
10144
+ return /** @type {proto.clarifai.api.ConceptQuery.SourceCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.ConceptQuery.oneofGroups_[0]));
10145
+ };
10036
10146
  if (jspb.Message.GENERATE_TO_OBJECT) {
10037
10147
  /**
10038
10148
  * Creates an object representation of this proto.
@@ -10063,7 +10173,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
10063
10173
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
10064
10174
  language: jspb.Message.getFieldWithDefault(msg, 2, ""),
10065
10175
  workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
10066
- useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
10176
+ useCasesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
10177
+ model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
10178
+ workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f)
10067
10179
  };
10068
10180
  if (includeInstance) {
10069
10181
  obj.$jspbMessageInstance = msg;
@@ -10113,6 +10225,16 @@ proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function (msg, rea
10113
10225
  msg.addUseCases(values[i]);
10114
10226
  }
10115
10227
  break;
10228
+ case 5:
10229
+ var value = new proto.clarifai.api.Model;
10230
+ reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
10231
+ msg.setModel(value);
10232
+ break;
10233
+ case 6:
10234
+ var value = new proto.clarifai.api.Workflow;
10235
+ reader.readMessage(value, proto.clarifai.api.Workflow.deserializeBinaryFromReader);
10236
+ msg.setWorkflow(value);
10237
+ break;
10116
10238
  default:
10117
10239
  reader.skipField();
10118
10240
  break;
@@ -10154,6 +10276,14 @@ proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function (message, wri
10154
10276
  if (f.length > 0) {
10155
10277
  writer.writePackedEnum(4, f);
10156
10278
  }
10279
+ f = message.getModel();
10280
+ if (f != null) {
10281
+ writer.writeMessage(5, f, proto.clarifai.api.Model.serializeBinaryToWriter);
10282
+ }
10283
+ f = message.getWorkflow();
10284
+ if (f != null) {
10285
+ writer.writeMessage(6, f, proto.clarifai.api.Workflow.serializeBinaryToWriter);
10286
+ }
10157
10287
  };
10158
10288
  /**
10159
10289
  * optional string name = 1;
@@ -10226,6 +10356,62 @@ proto.clarifai.api.ConceptQuery.prototype.addUseCases = function (value, opt_ind
10226
10356
  proto.clarifai.api.ConceptQuery.prototype.clearUseCasesList = function () {
10227
10357
  return this.setUseCasesList([]);
10228
10358
  };
10359
+ /**
10360
+ * optional Model model = 5;
10361
+ * @return {?proto.clarifai.api.Model}
10362
+ */
10363
+ proto.clarifai.api.ConceptQuery.prototype.getModel = function () {
10364
+ return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 5));
10365
+ };
10366
+ /**
10367
+ * @param {?proto.clarifai.api.Model|undefined} value
10368
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
10369
+ */
10370
+ proto.clarifai.api.ConceptQuery.prototype.setModel = function (value) {
10371
+ return jspb.Message.setOneofWrapperField(this, 5, proto.clarifai.api.ConceptQuery.oneofGroups_[0], value);
10372
+ };
10373
+ /**
10374
+ * Clears the message field making it undefined.
10375
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
10376
+ */
10377
+ proto.clarifai.api.ConceptQuery.prototype.clearModel = function () {
10378
+ return this.setModel(undefined);
10379
+ };
10380
+ /**
10381
+ * Returns whether this field is set.
10382
+ * @return {boolean}
10383
+ */
10384
+ proto.clarifai.api.ConceptQuery.prototype.hasModel = function () {
10385
+ return jspb.Message.getField(this, 5) != null;
10386
+ };
10387
+ /**
10388
+ * optional Workflow workflow = 6;
10389
+ * @return {?proto.clarifai.api.Workflow}
10390
+ */
10391
+ proto.clarifai.api.ConceptQuery.prototype.getWorkflow = function () {
10392
+ return /** @type{?proto.clarifai.api.Workflow} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 6));
10393
+ };
10394
+ /**
10395
+ * @param {?proto.clarifai.api.Workflow|undefined} value
10396
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
10397
+ */
10398
+ proto.clarifai.api.ConceptQuery.prototype.setWorkflow = function (value) {
10399
+ return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.ConceptQuery.oneofGroups_[0], value);
10400
+ };
10401
+ /**
10402
+ * Clears the message field making it undefined.
10403
+ * @return {!proto.clarifai.api.ConceptQuery} returns this
10404
+ */
10405
+ proto.clarifai.api.ConceptQuery.prototype.clearWorkflow = function () {
10406
+ return this.setWorkflow(undefined);
10407
+ };
10408
+ /**
10409
+ * Returns whether this field is set.
10410
+ * @return {boolean}
10411
+ */
10412
+ proto.clarifai.api.ConceptQuery.prototype.hasWorkflow = function () {
10413
+ return jspb.Message.getField(this, 6) != null;
10414
+ };
10229
10415
  if (jspb.Message.GENERATE_TO_OBJECT) {
10230
10416
  /**
10231
10417
  * Creates an object representation of this proto.
@@ -33353,6 +33539,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
33353
33539
  jobTitle: jspb.Message.getFieldWithDefault(msg, 19, ""),
33354
33540
  jobRole: jspb.Message.getFieldWithDefault(msg, 20, ""),
33355
33541
  intention: jspb.Message.getFieldWithDefault(msg, 24, ""),
33542
+ referralSource: jspb.Message.getFieldWithDefault(msg, 25, ""),
33356
33543
  billType: jspb.Message.getFieldWithDefault(msg, 7, ""),
33357
33544
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
33358
33545
  dateGdprConsent: (f = msg.getDateGdprConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
@@ -33430,6 +33617,10 @@ proto.clarifai.api.User.deserializeBinaryFromReader = function (msg, reader) {
33430
33617
  var value = /** @type {string} */ (reader.readString());
33431
33618
  msg.setIntention(value);
33432
33619
  break;
33620
+ case 25:
33621
+ var value = /** @type {string} */ (reader.readString());
33622
+ msg.setReferralSource(value);
33623
+ break;
33433
33624
  case 7:
33434
33625
  var value = /** @type {string} */ (reader.readString());
33435
33626
  msg.setBillType(value);
@@ -33552,6 +33743,10 @@ proto.clarifai.api.User.serializeBinaryToWriter = function (message, writer) {
33552
33743
  if (f.length > 0) {
33553
33744
  writer.writeString(24, f);
33554
33745
  }
33746
+ f = message.getReferralSource();
33747
+ if (f.length > 0) {
33748
+ writer.writeString(25, f);
33749
+ }
33555
33750
  f = message.getBillType();
33556
33751
  if (f.length > 0) {
33557
33752
  writer.writeString(7, f);
@@ -33721,6 +33916,20 @@ proto.clarifai.api.User.prototype.getIntention = function () {
33721
33916
  proto.clarifai.api.User.prototype.setIntention = function (value) {
33722
33917
  return jspb.Message.setProto3StringField(this, 24, value);
33723
33918
  };
33919
+ /**
33920
+ * optional string referral_source = 25;
33921
+ * @return {string}
33922
+ */
33923
+ proto.clarifai.api.User.prototype.getReferralSource = function () {
33924
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
33925
+ };
33926
+ /**
33927
+ * @param {string} value
33928
+ * @return {!proto.clarifai.api.User} returns this
33929
+ */
33930
+ proto.clarifai.api.User.prototype.setReferralSource = function (value) {
33931
+ return jspb.Message.setProto3StringField(this, 25, value);
33932
+ };
33724
33933
  /**
33725
33934
  * optional string bill_type = 7;
33726
33935
  * @return {string}
@@ -41986,7 +42195,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
41986
42195
  */
41987
42196
  proto.clarifai.api.TaskMetrics.toObject = function (includeInstance, msg) {
41988
42197
  var f, obj = {
41989
- work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f)
42198
+ work: (f = msg.getWork()) && proto.clarifai.api.TaskWorkMetrics.toObject(includeInstance, f),
42199
+ review: (f = msg.getReview()) && proto.clarifai.api.TaskReviewMetrics.toObject(includeInstance, f)
41990
42200
  };
41991
42201
  if (includeInstance) {
41992
42202
  obj.$jspbMessageInstance = msg;
@@ -42023,6 +42233,11 @@ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function (msg, read
42023
42233
  reader.readMessage(value, proto.clarifai.api.TaskWorkMetrics.deserializeBinaryFromReader);
42024
42234
  msg.setWork(value);
42025
42235
  break;
42236
+ case 3:
42237
+ var value = new proto.clarifai.api.TaskReviewMetrics;
42238
+ reader.readMessage(value, proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader);
42239
+ msg.setReview(value);
42240
+ break;
42026
42241
  default:
42027
42242
  reader.skipField();
42028
42243
  break;
@@ -42052,6 +42267,10 @@ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function (message, writ
42052
42267
  if (f != null) {
42053
42268
  writer.writeMessage(2, f, proto.clarifai.api.TaskWorkMetrics.serializeBinaryToWriter);
42054
42269
  }
42270
+ f = message.getReview();
42271
+ if (f != null) {
42272
+ writer.writeMessage(3, f, proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter);
42273
+ }
42055
42274
  };
42056
42275
  /**
42057
42276
  * optional TaskWorkMetrics work = 2;
@@ -42081,6 +42300,34 @@ proto.clarifai.api.TaskMetrics.prototype.clearWork = function () {
42081
42300
  proto.clarifai.api.TaskMetrics.prototype.hasWork = function () {
42082
42301
  return jspb.Message.getField(this, 2) != null;
42083
42302
  };
42303
+ /**
42304
+ * optional TaskReviewMetrics review = 3;
42305
+ * @return {?proto.clarifai.api.TaskReviewMetrics}
42306
+ */
42307
+ proto.clarifai.api.TaskMetrics.prototype.getReview = function () {
42308
+ return /** @type{?proto.clarifai.api.TaskReviewMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TaskReviewMetrics, 3));
42309
+ };
42310
+ /**
42311
+ * @param {?proto.clarifai.api.TaskReviewMetrics|undefined} value
42312
+ * @return {!proto.clarifai.api.TaskMetrics} returns this
42313
+ */
42314
+ proto.clarifai.api.TaskMetrics.prototype.setReview = function (value) {
42315
+ return jspb.Message.setWrapperField(this, 3, value);
42316
+ };
42317
+ /**
42318
+ * Clears the message field making it undefined.
42319
+ * @return {!proto.clarifai.api.TaskMetrics} returns this
42320
+ */
42321
+ proto.clarifai.api.TaskMetrics.prototype.clearReview = function () {
42322
+ return this.setReview(undefined);
42323
+ };
42324
+ /**
42325
+ * Returns whether this field is set.
42326
+ * @return {boolean}
42327
+ */
42328
+ proto.clarifai.api.TaskMetrics.prototype.hasReview = function () {
42329
+ return jspb.Message.getField(this, 3) != null;
42330
+ };
42084
42331
  if (jspb.Message.GENERATE_TO_OBJECT) {
42085
42332
  /**
42086
42333
  * Creates an object representation of this proto.
@@ -42211,6 +42458,136 @@ proto.clarifai.api.TaskWorkMetrics.prototype.getInputsPercentEstimated = functio
42211
42458
  proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = function (value) {
42212
42459
  return jspb.Message.setProto3IntField(this, 2, value);
42213
42460
  };
42461
+ if (jspb.Message.GENERATE_TO_OBJECT) {
42462
+ /**
42463
+ * Creates an object representation of this proto.
42464
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
42465
+ * Optional fields that are not set will be set to undefined.
42466
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42467
+ * For the list of reserved names please see:
42468
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42469
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42470
+ * JSPB instance for transitional soy proto support:
42471
+ * http://goto/soy-param-migration
42472
+ * @return {!Object}
42473
+ */
42474
+ proto.clarifai.api.TaskReviewMetrics.prototype.toObject = function (opt_includeInstance) {
42475
+ return proto.clarifai.api.TaskReviewMetrics.toObject(opt_includeInstance, this);
42476
+ };
42477
+ /**
42478
+ * Static version of the {@see toObject} method.
42479
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42480
+ * the JSPB instance for transitional soy proto support:
42481
+ * http://goto/soy-param-migration
42482
+ * @param {!proto.clarifai.api.TaskReviewMetrics} msg The msg instance to transform.
42483
+ * @return {!Object}
42484
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42485
+ */
42486
+ proto.clarifai.api.TaskReviewMetrics.toObject = function (includeInstance, msg) {
42487
+ var f, obj = {
42488
+ inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
42489
+ inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
42490
+ };
42491
+ if (includeInstance) {
42492
+ obj.$jspbMessageInstance = msg;
42493
+ }
42494
+ return obj;
42495
+ };
42496
+ }
42497
+ /**
42498
+ * Deserializes binary data (in protobuf wire format).
42499
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
42500
+ * @return {!proto.clarifai.api.TaskReviewMetrics}
42501
+ */
42502
+ proto.clarifai.api.TaskReviewMetrics.deserializeBinary = function (bytes) {
42503
+ var reader = new jspb.BinaryReader(bytes);
42504
+ var msg = new proto.clarifai.api.TaskReviewMetrics;
42505
+ return proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader(msg, reader);
42506
+ };
42507
+ /**
42508
+ * Deserializes binary data (in protobuf wire format) from the
42509
+ * given reader into the given message object.
42510
+ * @param {!proto.clarifai.api.TaskReviewMetrics} msg The message object to deserialize into.
42511
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42512
+ * @return {!proto.clarifai.api.TaskReviewMetrics}
42513
+ */
42514
+ proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function (msg, reader) {
42515
+ while (reader.nextField()) {
42516
+ if (reader.isEndGroup()) {
42517
+ break;
42518
+ }
42519
+ var field = reader.getFieldNumber();
42520
+ switch (field) {
42521
+ case 1:
42522
+ var value = /** @type {number} */ (reader.readUint64());
42523
+ msg.setInputsCountEstimated(value);
42524
+ break;
42525
+ case 2:
42526
+ var value = /** @type {number} */ (reader.readUint32());
42527
+ msg.setInputsPercentEstimated(value);
42528
+ break;
42529
+ default:
42530
+ reader.skipField();
42531
+ break;
42532
+ }
42533
+ }
42534
+ return msg;
42535
+ };
42536
+ /**
42537
+ * Serializes the message to binary data (in protobuf wire format).
42538
+ * @return {!Uint8Array}
42539
+ */
42540
+ proto.clarifai.api.TaskReviewMetrics.prototype.serializeBinary = function () {
42541
+ var writer = new jspb.BinaryWriter();
42542
+ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter(this, writer);
42543
+ return writer.getResultBuffer();
42544
+ };
42545
+ /**
42546
+ * Serializes the given message to binary data (in protobuf wire
42547
+ * format), writing to the given BinaryWriter.
42548
+ * @param {!proto.clarifai.api.TaskReviewMetrics} message
42549
+ * @param {!jspb.BinaryWriter} writer
42550
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42551
+ */
42552
+ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function (message, writer) {
42553
+ var f = undefined;
42554
+ f = message.getInputsCountEstimated();
42555
+ if (f !== 0) {
42556
+ writer.writeUint64(1, f);
42557
+ }
42558
+ f = message.getInputsPercentEstimated();
42559
+ if (f !== 0) {
42560
+ writer.writeUint32(2, f);
42561
+ }
42562
+ };
42563
+ /**
42564
+ * optional uint64 inputs_count_estimated = 1;
42565
+ * @return {number}
42566
+ */
42567
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimated = function () {
42568
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
42569
+ };
42570
+ /**
42571
+ * @param {number} value
42572
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
42573
+ */
42574
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = function (value) {
42575
+ return jspb.Message.setProto3IntField(this, 1, value);
42576
+ };
42577
+ /**
42578
+ * optional uint32 inputs_percent_estimated = 2;
42579
+ * @return {number}
42580
+ */
42581
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsPercentEstimated = function () {
42582
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
42583
+ };
42584
+ /**
42585
+ * @param {number} value
42586
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
42587
+ */
42588
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsPercentEstimated = function (value) {
42589
+ return jspb.Message.setProto3IntField(this, 2, value);
42590
+ };
42214
42591
  if (jspb.Message.GENERATE_TO_OBJECT) {
42215
42592
  /**
42216
42593
  * Creates an object representation of this proto.
@@ -52255,29 +52632,6 @@ proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function (value) {
52255
52632
  * @const
52256
52633
  */
52257
52634
  proto.clarifai.api.Runner.repeatedFields_ = [7];
52258
- /**
52259
- * Oneof group definitions for this message. Each group defines the field
52260
- * numbers belonging to that group. When of these fields' value is set, all
52261
- * other fields in the group are cleared. During deserialization, if multiple
52262
- * fields are encountered for a group, only the last value seen will be kept.
52263
- * @private {!Array<!Array<number>>}
52264
- * @const
52265
- */
52266
- proto.clarifai.api.Runner.oneofGroups_ = [[9, 10]];
52267
- /**
52268
- * @enum {number}
52269
- */
52270
- proto.clarifai.api.Runner.ObjectCase = {
52271
- OBJECT_NOT_SET: 0,
52272
- MODEL: 9,
52273
- WORKFLOW: 10
52274
- };
52275
- /**
52276
- * @return {proto.clarifai.api.Runner.ObjectCase}
52277
- */
52278
- proto.clarifai.api.Runner.prototype.getObjectCase = function () {
52279
- return /** @type {proto.clarifai.api.Runner.ObjectCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.Runner.oneofGroups_[0]));
52280
- };
52281
52635
  if (jspb.Message.GENERATE_TO_OBJECT) {
52282
52636
  /**
52283
52637
  * Creates an object representation of this proto.
@@ -52312,8 +52666,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
52312
52666
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
52313
52667
  userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
52314
52668
  labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
52315
- model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
52316
- workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
52669
+ worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
52317
52670
  nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
52318
52671
  computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
52319
52672
  };
@@ -52378,22 +52731,17 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function (msg, reader) {
52378
52731
  var value = /** @type {string} */ (reader.readString());
52379
52732
  msg.addLabels(value);
52380
52733
  break;
52381
- case 9:
52382
- var value = new proto.clarifai.api.Model;
52383
- reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
52384
- msg.setModel(value);
52385
- break;
52386
- case 10:
52387
- var value = new proto.clarifai.api.Workflow;
52388
- reader.readMessage(value, proto.clarifai.api.Workflow.deserializeBinaryFromReader);
52389
- msg.setWorkflow(value);
52734
+ case 8:
52735
+ var value = new proto.clarifai.api.Worker;
52736
+ reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
52737
+ msg.setWorker(value);
52390
52738
  break;
52391
- case 12:
52739
+ case 9:
52392
52740
  var value = new proto.clarifai.api.Nodepool;
52393
52741
  reader.readMessage(value, proto.clarifai.api.Nodepool.deserializeBinaryFromReader);
52394
52742
  msg.setNodepool(value);
52395
52743
  break;
52396
- case 13:
52744
+ case 10:
52397
52745
  var value = new proto.clarifai.api.ComputeInfo;
52398
52746
  reader.readMessage(value, proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
52399
52747
  msg.setComputeInfo(value);
@@ -52451,21 +52799,17 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function (message, writer) {
52451
52799
  if (f.length > 0) {
52452
52800
  writer.writeRepeatedString(7, f);
52453
52801
  }
52454
- f = message.getModel();
52455
- if (f != null) {
52456
- writer.writeMessage(9, f, proto.clarifai.api.Model.serializeBinaryToWriter);
52457
- }
52458
- f = message.getWorkflow();
52802
+ f = message.getWorker();
52459
52803
  if (f != null) {
52460
- writer.writeMessage(10, f, proto.clarifai.api.Workflow.serializeBinaryToWriter);
52804
+ writer.writeMessage(8, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
52461
52805
  }
52462
52806
  f = message.getNodepool();
52463
52807
  if (f != null) {
52464
- writer.writeMessage(12, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
52808
+ writer.writeMessage(9, f, proto.clarifai.api.Nodepool.serializeBinaryToWriter);
52465
52809
  }
52466
52810
  f = message.getComputeInfo();
52467
52811
  if (f != null) {
52468
- writer.writeMessage(13, f, proto.clarifai.api.ComputeInfo.serializeBinaryToWriter);
52812
+ writer.writeMessage(10, f, proto.clarifai.api.ComputeInfo.serializeBinaryToWriter);
52469
52813
  }
52470
52814
  };
52471
52815
  /**
@@ -52624,74 +52968,46 @@ proto.clarifai.api.Runner.prototype.clearLabelsList = function () {
52624
52968
  return this.setLabelsList([]);
52625
52969
  };
52626
52970
  /**
52627
- * optional Model model = 9;
52628
- * @return {?proto.clarifai.api.Model}
52629
- */
52630
- proto.clarifai.api.Runner.prototype.getModel = function () {
52631
- return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 9));
52632
- };
52633
- /**
52634
- * @param {?proto.clarifai.api.Model|undefined} value
52635
- * @return {!proto.clarifai.api.Runner} returns this
52636
- */
52637
- proto.clarifai.api.Runner.prototype.setModel = function (value) {
52638
- return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.Runner.oneofGroups_[0], value);
52639
- };
52640
- /**
52641
- * Clears the message field making it undefined.
52642
- * @return {!proto.clarifai.api.Runner} returns this
52643
- */
52644
- proto.clarifai.api.Runner.prototype.clearModel = function () {
52645
- return this.setModel(undefined);
52646
- };
52647
- /**
52648
- * Returns whether this field is set.
52649
- * @return {boolean}
52650
- */
52651
- proto.clarifai.api.Runner.prototype.hasModel = function () {
52652
- return jspb.Message.getField(this, 9) != null;
52653
- };
52654
- /**
52655
- * optional Workflow workflow = 10;
52656
- * @return {?proto.clarifai.api.Workflow}
52971
+ * optional Worker worker = 8;
52972
+ * @return {?proto.clarifai.api.Worker}
52657
52973
  */
52658
- proto.clarifai.api.Runner.prototype.getWorkflow = function () {
52659
- return /** @type{?proto.clarifai.api.Workflow} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 10));
52974
+ proto.clarifai.api.Runner.prototype.getWorker = function () {
52975
+ return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 8));
52660
52976
  };
52661
52977
  /**
52662
- * @param {?proto.clarifai.api.Workflow|undefined} value
52978
+ * @param {?proto.clarifai.api.Worker|undefined} value
52663
52979
  * @return {!proto.clarifai.api.Runner} returns this
52664
52980
  */
52665
- proto.clarifai.api.Runner.prototype.setWorkflow = function (value) {
52666
- return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.Runner.oneofGroups_[0], value);
52981
+ proto.clarifai.api.Runner.prototype.setWorker = function (value) {
52982
+ return jspb.Message.setWrapperField(this, 8, value);
52667
52983
  };
52668
52984
  /**
52669
52985
  * Clears the message field making it undefined.
52670
52986
  * @return {!proto.clarifai.api.Runner} returns this
52671
52987
  */
52672
- proto.clarifai.api.Runner.prototype.clearWorkflow = function () {
52673
- return this.setWorkflow(undefined);
52988
+ proto.clarifai.api.Runner.prototype.clearWorker = function () {
52989
+ return this.setWorker(undefined);
52674
52990
  };
52675
52991
  /**
52676
52992
  * Returns whether this field is set.
52677
52993
  * @return {boolean}
52678
52994
  */
52679
- proto.clarifai.api.Runner.prototype.hasWorkflow = function () {
52680
- return jspb.Message.getField(this, 10) != null;
52995
+ proto.clarifai.api.Runner.prototype.hasWorker = function () {
52996
+ return jspb.Message.getField(this, 8) != null;
52681
52997
  };
52682
52998
  /**
52683
- * optional Nodepool nodepool = 12;
52999
+ * optional Nodepool nodepool = 9;
52684
53000
  * @return {?proto.clarifai.api.Nodepool}
52685
53001
  */
52686
53002
  proto.clarifai.api.Runner.prototype.getNodepool = function () {
52687
- return /** @type{?proto.clarifai.api.Nodepool} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 12));
53003
+ return /** @type{?proto.clarifai.api.Nodepool} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Nodepool, 9));
52688
53004
  };
52689
53005
  /**
52690
53006
  * @param {?proto.clarifai.api.Nodepool|undefined} value
52691
53007
  * @return {!proto.clarifai.api.Runner} returns this
52692
53008
  */
52693
53009
  proto.clarifai.api.Runner.prototype.setNodepool = function (value) {
52694
- return jspb.Message.setWrapperField(this, 12, value);
53010
+ return jspb.Message.setWrapperField(this, 9, value);
52695
53011
  };
52696
53012
  /**
52697
53013
  * Clears the message field making it undefined.
@@ -52705,21 +53021,21 @@ proto.clarifai.api.Runner.prototype.clearNodepool = function () {
52705
53021
  * @return {boolean}
52706
53022
  */
52707
53023
  proto.clarifai.api.Runner.prototype.hasNodepool = function () {
52708
- return jspb.Message.getField(this, 12) != null;
53024
+ return jspb.Message.getField(this, 9) != null;
52709
53025
  };
52710
53026
  /**
52711
- * optional ComputeInfo compute_info = 13;
53027
+ * optional ComputeInfo compute_info = 10;
52712
53028
  * @return {?proto.clarifai.api.ComputeInfo}
52713
53029
  */
52714
53030
  proto.clarifai.api.Runner.prototype.getComputeInfo = function () {
52715
- return /** @type{?proto.clarifai.api.ComputeInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 13));
53031
+ return /** @type{?proto.clarifai.api.ComputeInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 10));
52716
53032
  };
52717
53033
  /**
52718
53034
  * @param {?proto.clarifai.api.ComputeInfo|undefined} value
52719
53035
  * @return {!proto.clarifai.api.Runner} returns this
52720
53036
  */
52721
53037
  proto.clarifai.api.Runner.prototype.setComputeInfo = function (value) {
52722
- return jspb.Message.setWrapperField(this, 13, value);
53038
+ return jspb.Message.setWrapperField(this, 10, value);
52723
53039
  };
52724
53040
  /**
52725
53041
  * Clears the message field making it undefined.
@@ -52733,14 +53049,14 @@ proto.clarifai.api.Runner.prototype.clearComputeInfo = function () {
52733
53049
  * @return {boolean}
52734
53050
  */
52735
53051
  proto.clarifai.api.Runner.prototype.hasComputeInfo = function () {
52736
- return jspb.Message.getField(this, 13) != null;
53052
+ return jspb.Message.getField(this, 10) != null;
52737
53053
  };
52738
53054
  /**
52739
53055
  * List of repeated fields within this message type.
52740
53056
  * @private {!Array<number>}
52741
53057
  * @const
52742
53058
  */
52743
- proto.clarifai.api.Nodepool.repeatedFields_ = [4, 8];
53059
+ proto.clarifai.api.Nodepool.repeatedFields_ = [8];
52744
53060
  if (jspb.Message.GENERATE_TO_OBJECT) {
52745
53061
  /**
52746
53062
  * Creates an object representation of this proto.
@@ -52769,12 +53085,17 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
52769
53085
  proto.clarifai.api.Nodepool.toObject = function (includeInstance, msg) {
52770
53086
  var f, obj = {
52771
53087
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
52772
- userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
52773
- cloudRegion: (f = msg.getCloudRegion()) && proto.clarifai.api.CloudRegion.toObject(includeInstance, f),
52774
- capacityTypesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
52775
- instanceTypesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
53088
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
53089
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
53090
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
53091
+ userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
53092
+ computeCluster: (f = msg.getComputeCluster()) && proto.clarifai.api.ComputeCluster.toObject(includeInstance, f),
53093
+ nodeCapacityType: (f = msg.getNodeCapacityType()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
53094
+ instanceTypesList: jspb.Message.toObjectList(msg.getInstanceTypesList(), proto.clarifai.api.InstanceType.toObject, includeInstance),
52776
53095
  minInstances: jspb.Message.getFieldWithDefault(msg, 9, 0),
52777
- maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0)
53096
+ maxInstances: jspb.Message.getFieldWithDefault(msg, 10, 0),
53097
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
53098
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
52778
53099
  };
52779
53100
  if (includeInstance) {
52780
53101
  obj.$jspbMessageInstance = msg;
@@ -52812,21 +53133,35 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function (msg, reader)
52812
53133
  break;
52813
53134
  case 2:
52814
53135
  var value = /** @type {string} */ (reader.readString());
52815
- msg.setUserId(value);
53136
+ msg.setDescription(value);
52816
53137
  break;
52817
53138
  case 3:
52818
- var value = new proto.clarifai.api.CloudRegion;
52819
- reader.readMessage(value, proto.clarifai.api.CloudRegion.deserializeBinaryFromReader);
52820
- msg.setCloudRegion(value);
53139
+ var value = new google_protobuf_timestamp_pb.Timestamp;
53140
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
53141
+ msg.setCreatedAt(value);
52821
53142
  break;
52822
53143
  case 4:
52823
- var values = /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
52824
- for (var i = 0; i < values.length; i++) {
52825
- msg.addCapacityTypes(values[i]);
52826
- }
53144
+ var value = new google_protobuf_timestamp_pb.Timestamp;
53145
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
53146
+ msg.setModifiedAt(value);
52827
53147
  break;
52828
- case 8:
53148
+ case 5:
52829
53149
  var value = /** @type {string} */ (reader.readString());
53150
+ msg.setUserId(value);
53151
+ break;
53152
+ case 6:
53153
+ var value = new proto.clarifai.api.ComputeCluster;
53154
+ reader.readMessage(value, proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader);
53155
+ msg.setComputeCluster(value);
53156
+ break;
53157
+ case 7:
53158
+ var value = new proto.clarifai.api.NodeCapacityType;
53159
+ reader.readMessage(value, proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader);
53160
+ msg.setNodeCapacityType(value);
53161
+ break;
53162
+ case 8:
53163
+ var value = new proto.clarifai.api.InstanceType;
53164
+ reader.readMessage(value, proto.clarifai.api.InstanceType.deserializeBinaryFromReader);
52830
53165
  msg.addInstanceTypes(value);
52831
53166
  break;
52832
53167
  case 9:
@@ -52837,6 +53172,16 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function (msg, reader)
52837
53172
  var value = /** @type {number} */ (reader.readUint32());
52838
53173
  msg.setMaxInstances(value);
52839
53174
  break;
53175
+ case 11:
53176
+ var value = new proto.clarifai.api.Visibility;
53177
+ reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
53178
+ msg.setVisibility(value);
53179
+ break;
53180
+ case 12:
53181
+ var value = new google_protobuf_struct_pb.Struct;
53182
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
53183
+ msg.setMetadata(value);
53184
+ break;
52840
53185
  default:
52841
53186
  reader.skipField();
52842
53187
  break;
@@ -52866,21 +53211,33 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function (message, writer)
52866
53211
  if (f.length > 0) {
52867
53212
  writer.writeString(1, f);
52868
53213
  }
52869
- f = message.getUserId();
53214
+ f = message.getDescription();
52870
53215
  if (f.length > 0) {
52871
53216
  writer.writeString(2, f);
52872
53217
  }
52873
- f = message.getCloudRegion();
53218
+ f = message.getCreatedAt();
52874
53219
  if (f != null) {
52875
- writer.writeMessage(3, f, proto.clarifai.api.CloudRegion.serializeBinaryToWriter);
53220
+ writer.writeMessage(3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
52876
53221
  }
52877
- f = message.getCapacityTypesList();
53222
+ f = message.getModifiedAt();
53223
+ if (f != null) {
53224
+ writer.writeMessage(4, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
53225
+ }
53226
+ f = message.getUserId();
52878
53227
  if (f.length > 0) {
52879
- writer.writePackedEnum(4, f);
53228
+ writer.writeString(5, f);
53229
+ }
53230
+ f = message.getComputeCluster();
53231
+ if (f != null) {
53232
+ writer.writeMessage(6, f, proto.clarifai.api.ComputeCluster.serializeBinaryToWriter);
53233
+ }
53234
+ f = message.getNodeCapacityType();
53235
+ if (f != null) {
53236
+ writer.writeMessage(7, f, proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter);
52880
53237
  }
52881
53238
  f = message.getInstanceTypesList();
52882
53239
  if (f.length > 0) {
52883
- writer.writeRepeatedString(8, f);
53240
+ writer.writeRepeatedMessage(8, f, proto.clarifai.api.InstanceType.serializeBinaryToWriter);
52884
53241
  }
52885
53242
  f = message.getMinInstances();
52886
53243
  if (f !== 0) {
@@ -52890,14 +53247,14 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function (message, writer)
52890
53247
  if (f !== 0) {
52891
53248
  writer.writeUint32(10, f);
52892
53249
  }
52893
- };
52894
- /**
52895
- * @enum {number}
52896
- */
52897
- proto.clarifai.api.Nodepool.CapacityType = {
52898
- UKNOWN_CAPACITY_TYPE: 0,
52899
- ONDEMAND_TYPE: 1,
52900
- SPOT_TYPE: 2
53250
+ f = message.getVisibility();
53251
+ if (f != null) {
53252
+ writer.writeMessage(11, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
53253
+ }
53254
+ f = message.getMetadata();
53255
+ if (f != null) {
53256
+ writer.writeMessage(12, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
53257
+ }
52901
53258
  };
52902
53259
  /**
52903
53260
  * optional string id = 1;
@@ -52914,97 +53271,166 @@ proto.clarifai.api.Nodepool.prototype.setId = function (value) {
52914
53271
  return jspb.Message.setProto3StringField(this, 1, value);
52915
53272
  };
52916
53273
  /**
52917
- * optional string user_id = 2;
53274
+ * optional string description = 2;
52918
53275
  * @return {string}
52919
53276
  */
52920
- proto.clarifai.api.Nodepool.prototype.getUserId = function () {
53277
+ proto.clarifai.api.Nodepool.prototype.getDescription = function () {
52921
53278
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
52922
53279
  };
52923
53280
  /**
52924
53281
  * @param {string} value
52925
53282
  * @return {!proto.clarifai.api.Nodepool} returns this
52926
53283
  */
52927
- proto.clarifai.api.Nodepool.prototype.setUserId = function (value) {
53284
+ proto.clarifai.api.Nodepool.prototype.setDescription = function (value) {
52928
53285
  return jspb.Message.setProto3StringField(this, 2, value);
52929
53286
  };
52930
53287
  /**
52931
- * optional CloudRegion cloud_region = 3;
52932
- * @return {?proto.clarifai.api.CloudRegion}
53288
+ * optional google.protobuf.Timestamp created_at = 3;
53289
+ * @return {?proto.google.protobuf.Timestamp}
52933
53290
  */
52934
- proto.clarifai.api.Nodepool.prototype.getCloudRegion = function () {
52935
- return /** @type{?proto.clarifai.api.CloudRegion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.CloudRegion, 3));
53291
+ proto.clarifai.api.Nodepool.prototype.getCreatedAt = function () {
53292
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
52936
53293
  };
52937
53294
  /**
52938
- * @param {?proto.clarifai.api.CloudRegion|undefined} value
53295
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
52939
53296
  * @return {!proto.clarifai.api.Nodepool} returns this
52940
53297
  */
52941
- proto.clarifai.api.Nodepool.prototype.setCloudRegion = function (value) {
53298
+ proto.clarifai.api.Nodepool.prototype.setCreatedAt = function (value) {
52942
53299
  return jspb.Message.setWrapperField(this, 3, value);
52943
53300
  };
52944
53301
  /**
52945
53302
  * Clears the message field making it undefined.
52946
53303
  * @return {!proto.clarifai.api.Nodepool} returns this
52947
53304
  */
52948
- proto.clarifai.api.Nodepool.prototype.clearCloudRegion = function () {
52949
- return this.setCloudRegion(undefined);
53305
+ proto.clarifai.api.Nodepool.prototype.clearCreatedAt = function () {
53306
+ return this.setCreatedAt(undefined);
52950
53307
  };
52951
53308
  /**
52952
53309
  * Returns whether this field is set.
52953
53310
  * @return {boolean}
52954
53311
  */
52955
- proto.clarifai.api.Nodepool.prototype.hasCloudRegion = function () {
53312
+ proto.clarifai.api.Nodepool.prototype.hasCreatedAt = function () {
52956
53313
  return jspb.Message.getField(this, 3) != null;
52957
53314
  };
52958
53315
  /**
52959
- * repeated CapacityType capacity_types = 4;
52960
- * @return {!Array<!proto.clarifai.api.Nodepool.CapacityType>}
53316
+ * optional google.protobuf.Timestamp modified_at = 4;
53317
+ * @return {?proto.google.protobuf.Timestamp}
52961
53318
  */
52962
- proto.clarifai.api.Nodepool.prototype.getCapacityTypesList = function () {
52963
- return /** @type {!Array<!proto.clarifai.api.Nodepool.CapacityType>} */ (jspb.Message.getRepeatedField(this, 4));
53319
+ proto.clarifai.api.Nodepool.prototype.getModifiedAt = function () {
53320
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
52964
53321
  };
52965
53322
  /**
52966
- * @param {!Array<!proto.clarifai.api.Nodepool.CapacityType>} value
53323
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
53324
+ * @return {!proto.clarifai.api.Nodepool} returns this
53325
+ */
53326
+ proto.clarifai.api.Nodepool.prototype.setModifiedAt = function (value) {
53327
+ return jspb.Message.setWrapperField(this, 4, value);
53328
+ };
53329
+ /**
53330
+ * Clears the message field making it undefined.
52967
53331
  * @return {!proto.clarifai.api.Nodepool} returns this
52968
53332
  */
52969
- proto.clarifai.api.Nodepool.prototype.setCapacityTypesList = function (value) {
52970
- return jspb.Message.setField(this, 4, value || []);
53333
+ proto.clarifai.api.Nodepool.prototype.clearModifiedAt = function () {
53334
+ return this.setModifiedAt(undefined);
52971
53335
  };
52972
53336
  /**
52973
- * @param {!proto.clarifai.api.Nodepool.CapacityType} value
52974
- * @param {number=} opt_index
53337
+ * Returns whether this field is set.
53338
+ * @return {boolean}
53339
+ */
53340
+ proto.clarifai.api.Nodepool.prototype.hasModifiedAt = function () {
53341
+ return jspb.Message.getField(this, 4) != null;
53342
+ };
53343
+ /**
53344
+ * optional string user_id = 5;
53345
+ * @return {string}
53346
+ */
53347
+ proto.clarifai.api.Nodepool.prototype.getUserId = function () {
53348
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
53349
+ };
53350
+ /**
53351
+ * @param {string} value
52975
53352
  * @return {!proto.clarifai.api.Nodepool} returns this
52976
53353
  */
52977
- proto.clarifai.api.Nodepool.prototype.addCapacityTypes = function (value, opt_index) {
52978
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
53354
+ proto.clarifai.api.Nodepool.prototype.setUserId = function (value) {
53355
+ return jspb.Message.setProto3StringField(this, 5, value);
52979
53356
  };
52980
53357
  /**
52981
- * Clears the list making it empty but non-null.
53358
+ * optional ComputeCluster compute_cluster = 6;
53359
+ * @return {?proto.clarifai.api.ComputeCluster}
53360
+ */
53361
+ proto.clarifai.api.Nodepool.prototype.getComputeCluster = function () {
53362
+ return /** @type{?proto.clarifai.api.ComputeCluster} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeCluster, 6));
53363
+ };
53364
+ /**
53365
+ * @param {?proto.clarifai.api.ComputeCluster|undefined} value
53366
+ * @return {!proto.clarifai.api.Nodepool} returns this
53367
+ */
53368
+ proto.clarifai.api.Nodepool.prototype.setComputeCluster = function (value) {
53369
+ return jspb.Message.setWrapperField(this, 6, value);
53370
+ };
53371
+ /**
53372
+ * Clears the message field making it undefined.
52982
53373
  * @return {!proto.clarifai.api.Nodepool} returns this
52983
53374
  */
52984
- proto.clarifai.api.Nodepool.prototype.clearCapacityTypesList = function () {
52985
- return this.setCapacityTypesList([]);
53375
+ proto.clarifai.api.Nodepool.prototype.clearComputeCluster = function () {
53376
+ return this.setComputeCluster(undefined);
52986
53377
  };
52987
53378
  /**
52988
- * repeated string instance_types = 8;
52989
- * @return {!Array<string>}
53379
+ * Returns whether this field is set.
53380
+ * @return {boolean}
52990
53381
  */
52991
- proto.clarifai.api.Nodepool.prototype.getInstanceTypesList = function () {
52992
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
53382
+ proto.clarifai.api.Nodepool.prototype.hasComputeCluster = function () {
53383
+ return jspb.Message.getField(this, 6) != null;
52993
53384
  };
52994
53385
  /**
52995
- * @param {!Array<string>} value
53386
+ * optional NodeCapacityType node_capacity_type = 7;
53387
+ * @return {?proto.clarifai.api.NodeCapacityType}
53388
+ */
53389
+ proto.clarifai.api.Nodepool.prototype.getNodeCapacityType = function () {
53390
+ return /** @type{?proto.clarifai.api.NodeCapacityType} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.NodeCapacityType, 7));
53391
+ };
53392
+ /**
53393
+ * @param {?proto.clarifai.api.NodeCapacityType|undefined} value
52996
53394
  * @return {!proto.clarifai.api.Nodepool} returns this
53395
+ */
53396
+ proto.clarifai.api.Nodepool.prototype.setNodeCapacityType = function (value) {
53397
+ return jspb.Message.setWrapperField(this, 7, value);
53398
+ };
53399
+ /**
53400
+ * Clears the message field making it undefined.
53401
+ * @return {!proto.clarifai.api.Nodepool} returns this
53402
+ */
53403
+ proto.clarifai.api.Nodepool.prototype.clearNodeCapacityType = function () {
53404
+ return this.setNodeCapacityType(undefined);
53405
+ };
53406
+ /**
53407
+ * Returns whether this field is set.
53408
+ * @return {boolean}
53409
+ */
53410
+ proto.clarifai.api.Nodepool.prototype.hasNodeCapacityType = function () {
53411
+ return jspb.Message.getField(this, 7) != null;
53412
+ };
53413
+ /**
53414
+ * repeated InstanceType instance_types = 8;
53415
+ * @return {!Array<!proto.clarifai.api.InstanceType>}
52997
53416
  */
53417
+ proto.clarifai.api.Nodepool.prototype.getInstanceTypesList = function () {
53418
+ return /** @type{!Array<!proto.clarifai.api.InstanceType>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.InstanceType, 8));
53419
+ };
53420
+ /**
53421
+ * @param {!Array<!proto.clarifai.api.InstanceType>} value
53422
+ * @return {!proto.clarifai.api.Nodepool} returns this
53423
+ */
52998
53424
  proto.clarifai.api.Nodepool.prototype.setInstanceTypesList = function (value) {
52999
- return jspb.Message.setField(this, 8, value || []);
53425
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
53000
53426
  };
53001
53427
  /**
53002
- * @param {string} value
53428
+ * @param {!proto.clarifai.api.InstanceType=} opt_value
53003
53429
  * @param {number=} opt_index
53004
- * @return {!proto.clarifai.api.Nodepool} returns this
53430
+ * @return {!proto.clarifai.api.InstanceType}
53005
53431
  */
53006
- proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function (value, opt_index) {
53007
- return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
53432
+ proto.clarifai.api.Nodepool.prototype.addInstanceTypes = function (opt_value, opt_index) {
53433
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.InstanceType, opt_index);
53008
53434
  };
53009
53435
  /**
53010
53436
  * Clears the list making it empty but non-null.
@@ -53041,6 +53467,68 @@ proto.clarifai.api.Nodepool.prototype.getMaxInstances = function () {
53041
53467
  proto.clarifai.api.Nodepool.prototype.setMaxInstances = function (value) {
53042
53468
  return jspb.Message.setProto3IntField(this, 10, value);
53043
53469
  };
53470
+ /**
53471
+ * optional Visibility visibility = 11;
53472
+ * @return {?proto.clarifai.api.Visibility}
53473
+ */
53474
+ proto.clarifai.api.Nodepool.prototype.getVisibility = function () {
53475
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 11));
53476
+ };
53477
+ /**
53478
+ * @param {?proto.clarifai.api.Visibility|undefined} value
53479
+ * @return {!proto.clarifai.api.Nodepool} returns this
53480
+ */
53481
+ proto.clarifai.api.Nodepool.prototype.setVisibility = function (value) {
53482
+ return jspb.Message.setWrapperField(this, 11, value);
53483
+ };
53484
+ /**
53485
+ * Clears the message field making it undefined.
53486
+ * @return {!proto.clarifai.api.Nodepool} returns this
53487
+ */
53488
+ proto.clarifai.api.Nodepool.prototype.clearVisibility = function () {
53489
+ return this.setVisibility(undefined);
53490
+ };
53491
+ /**
53492
+ * Returns whether this field is set.
53493
+ * @return {boolean}
53494
+ */
53495
+ proto.clarifai.api.Nodepool.prototype.hasVisibility = function () {
53496
+ return jspb.Message.getField(this, 11) != null;
53497
+ };
53498
+ /**
53499
+ * optional google.protobuf.Struct metadata = 12;
53500
+ * @return {?proto.google.protobuf.Struct}
53501
+ */
53502
+ proto.clarifai.api.Nodepool.prototype.getMetadata = function () {
53503
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 12));
53504
+ };
53505
+ /**
53506
+ * @param {?proto.google.protobuf.Struct|undefined} value
53507
+ * @return {!proto.clarifai.api.Nodepool} returns this
53508
+ */
53509
+ proto.clarifai.api.Nodepool.prototype.setMetadata = function (value) {
53510
+ return jspb.Message.setWrapperField(this, 12, value);
53511
+ };
53512
+ /**
53513
+ * Clears the message field making it undefined.
53514
+ * @return {!proto.clarifai.api.Nodepool} returns this
53515
+ */
53516
+ proto.clarifai.api.Nodepool.prototype.clearMetadata = function () {
53517
+ return this.setMetadata(undefined);
53518
+ };
53519
+ /**
53520
+ * Returns whether this field is set.
53521
+ * @return {boolean}
53522
+ */
53523
+ proto.clarifai.api.Nodepool.prototype.hasMetadata = function () {
53524
+ return jspb.Message.getField(this, 12) != null;
53525
+ };
53526
+ /**
53527
+ * List of repeated fields within this message type.
53528
+ * @private {!Array<number>}
53529
+ * @const
53530
+ */
53531
+ proto.clarifai.api.NodeCapacityType.repeatedFields_ = [1];
53044
53532
  if (jspb.Message.GENERATE_TO_OBJECT) {
53045
53533
  /**
53046
53534
  * Creates an object representation of this proto.
@@ -53054,23 +53542,155 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
53054
53542
  * http://goto/soy-param-migration
53055
53543
  * @return {!Object}
53056
53544
  */
53057
- proto.clarifai.api.CloudRegion.prototype.toObject = function (opt_includeInstance) {
53058
- return proto.clarifai.api.CloudRegion.toObject(opt_includeInstance, this);
53545
+ proto.clarifai.api.NodeCapacityType.prototype.toObject = function (opt_includeInstance) {
53546
+ return proto.clarifai.api.NodeCapacityType.toObject(opt_includeInstance, this);
53059
53547
  };
53060
53548
  /**
53061
53549
  * Static version of the {@see toObject} method.
53062
53550
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
53063
53551
  * the JSPB instance for transitional soy proto support:
53064
53552
  * http://goto/soy-param-migration
53065
- * @param {!proto.clarifai.api.CloudRegion} msg The msg instance to transform.
53553
+ * @param {!proto.clarifai.api.NodeCapacityType} msg The msg instance to transform.
53066
53554
  * @return {!Object}
53067
53555
  * @suppress {unusedLocalVariables} f is only used for nested messages
53068
53556
  */
53069
- proto.clarifai.api.CloudRegion.toObject = function (includeInstance, msg) {
53557
+ proto.clarifai.api.NodeCapacityType.toObject = function (includeInstance, msg) {
53558
+ var f, obj = {
53559
+ capacityTypesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
53560
+ };
53561
+ if (includeInstance) {
53562
+ obj.$jspbMessageInstance = msg;
53563
+ }
53564
+ return obj;
53565
+ };
53566
+ }
53567
+ /**
53568
+ * Deserializes binary data (in protobuf wire format).
53569
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
53570
+ * @return {!proto.clarifai.api.NodeCapacityType}
53571
+ */
53572
+ proto.clarifai.api.NodeCapacityType.deserializeBinary = function (bytes) {
53573
+ var reader = new jspb.BinaryReader(bytes);
53574
+ var msg = new proto.clarifai.api.NodeCapacityType;
53575
+ return proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader(msg, reader);
53576
+ };
53577
+ /**
53578
+ * Deserializes binary data (in protobuf wire format) from the
53579
+ * given reader into the given message object.
53580
+ * @param {!proto.clarifai.api.NodeCapacityType} msg The message object to deserialize into.
53581
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
53582
+ * @return {!proto.clarifai.api.NodeCapacityType}
53583
+ */
53584
+ proto.clarifai.api.NodeCapacityType.deserializeBinaryFromReader = function (msg, reader) {
53585
+ while (reader.nextField()) {
53586
+ if (reader.isEndGroup()) {
53587
+ break;
53588
+ }
53589
+ var field = reader.getFieldNumber();
53590
+ switch (field) {
53591
+ case 1:
53592
+ var values = /** @type {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
53593
+ for (var i = 0; i < values.length; i++) {
53594
+ msg.addCapacityTypes(values[i]);
53595
+ }
53596
+ break;
53597
+ default:
53598
+ reader.skipField();
53599
+ break;
53600
+ }
53601
+ }
53602
+ return msg;
53603
+ };
53604
+ /**
53605
+ * Serializes the message to binary data (in protobuf wire format).
53606
+ * @return {!Uint8Array}
53607
+ */
53608
+ proto.clarifai.api.NodeCapacityType.prototype.serializeBinary = function () {
53609
+ var writer = new jspb.BinaryWriter();
53610
+ proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter(this, writer);
53611
+ return writer.getResultBuffer();
53612
+ };
53613
+ /**
53614
+ * Serializes the given message to binary data (in protobuf wire
53615
+ * format), writing to the given BinaryWriter.
53616
+ * @param {!proto.clarifai.api.NodeCapacityType} message
53617
+ * @param {!jspb.BinaryWriter} writer
53618
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53619
+ */
53620
+ proto.clarifai.api.NodeCapacityType.serializeBinaryToWriter = function (message, writer) {
53621
+ var f = undefined;
53622
+ f = message.getCapacityTypesList();
53623
+ if (f.length > 0) {
53624
+ writer.writePackedEnum(1, f);
53625
+ }
53626
+ };
53627
+ /**
53628
+ * @enum {number}
53629
+ */
53630
+ proto.clarifai.api.NodeCapacityType.CapacityType = {
53631
+ UKNOWN_CAPACITY_TYPE: 0,
53632
+ ON_DEMAND_TYPE: 1,
53633
+ SPOT_TYPE: 2
53634
+ };
53635
+ /**
53636
+ * repeated CapacityType capacity_types = 1;
53637
+ * @return {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>}
53638
+ */
53639
+ proto.clarifai.api.NodeCapacityType.prototype.getCapacityTypesList = function () {
53640
+ return /** @type {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} */ (jspb.Message.getRepeatedField(this, 1));
53641
+ };
53642
+ /**
53643
+ * @param {!Array<!proto.clarifai.api.NodeCapacityType.CapacityType>} value
53644
+ * @return {!proto.clarifai.api.NodeCapacityType} returns this
53645
+ */
53646
+ proto.clarifai.api.NodeCapacityType.prototype.setCapacityTypesList = function (value) {
53647
+ return jspb.Message.setField(this, 1, value || []);
53648
+ };
53649
+ /**
53650
+ * @param {!proto.clarifai.api.NodeCapacityType.CapacityType} value
53651
+ * @param {number=} opt_index
53652
+ * @return {!proto.clarifai.api.NodeCapacityType} returns this
53653
+ */
53654
+ proto.clarifai.api.NodeCapacityType.prototype.addCapacityTypes = function (value, opt_index) {
53655
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
53656
+ };
53657
+ /**
53658
+ * Clears the list making it empty but non-null.
53659
+ * @return {!proto.clarifai.api.NodeCapacityType} returns this
53660
+ */
53661
+ proto.clarifai.api.NodeCapacityType.prototype.clearCapacityTypesList = function () {
53662
+ return this.setCapacityTypesList([]);
53663
+ };
53664
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53665
+ /**
53666
+ * Creates an object representation of this proto.
53667
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53668
+ * Optional fields that are not set will be set to undefined.
53669
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
53670
+ * For the list of reserved names please see:
53671
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
53672
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
53673
+ * JSPB instance for transitional soy proto support:
53674
+ * http://goto/soy-param-migration
53675
+ * @return {!Object}
53676
+ */
53677
+ proto.clarifai.api.InstanceType.prototype.toObject = function (opt_includeInstance) {
53678
+ return proto.clarifai.api.InstanceType.toObject(opt_includeInstance, this);
53679
+ };
53680
+ /**
53681
+ * Static version of the {@see toObject} method.
53682
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
53683
+ * the JSPB instance for transitional soy proto support:
53684
+ * http://goto/soy-param-migration
53685
+ * @param {!proto.clarifai.api.InstanceType} msg The msg instance to transform.
53686
+ * @return {!Object}
53687
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53688
+ */
53689
+ proto.clarifai.api.InstanceType.toObject = function (includeInstance, msg) {
53070
53690
  var f, obj = {
53071
53691
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
53072
- cloud: jspb.Message.getFieldWithDefault(msg, 3, 0),
53073
- region: jspb.Message.getFieldWithDefault(msg, 4, "")
53692
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
53693
+ computeInfo: (f = msg.getComputeInfo()) && proto.clarifai.api.ComputeInfo.toObject(includeInstance, f)
53074
53694
  };
53075
53695
  if (includeInstance) {
53076
53696
  obj.$jspbMessageInstance = msg;
@@ -53081,21 +53701,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
53081
53701
  /**
53082
53702
  * Deserializes binary data (in protobuf wire format).
53083
53703
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
53084
- * @return {!proto.clarifai.api.CloudRegion}
53704
+ * @return {!proto.clarifai.api.InstanceType}
53085
53705
  */
53086
- proto.clarifai.api.CloudRegion.deserializeBinary = function (bytes) {
53706
+ proto.clarifai.api.InstanceType.deserializeBinary = function (bytes) {
53087
53707
  var reader = new jspb.BinaryReader(bytes);
53088
- var msg = new proto.clarifai.api.CloudRegion;
53089
- return proto.clarifai.api.CloudRegion.deserializeBinaryFromReader(msg, reader);
53708
+ var msg = new proto.clarifai.api.InstanceType;
53709
+ return proto.clarifai.api.InstanceType.deserializeBinaryFromReader(msg, reader);
53090
53710
  };
53091
53711
  /**
53092
53712
  * Deserializes binary data (in protobuf wire format) from the
53093
53713
  * given reader into the given message object.
53094
- * @param {!proto.clarifai.api.CloudRegion} msg The message object to deserialize into.
53714
+ * @param {!proto.clarifai.api.InstanceType} msg The message object to deserialize into.
53095
53715
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
53096
- * @return {!proto.clarifai.api.CloudRegion}
53716
+ * @return {!proto.clarifai.api.InstanceType}
53097
53717
  */
53098
- proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function (msg, reader) {
53718
+ proto.clarifai.api.InstanceType.deserializeBinaryFromReader = function (msg, reader) {
53099
53719
  while (reader.nextField()) {
53100
53720
  if (reader.isEndGroup()) {
53101
53721
  break;
@@ -53106,14 +53726,335 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function (msg, read
53106
53726
  var value = /** @type {string} */ (reader.readString());
53107
53727
  msg.setId(value);
53108
53728
  break;
53729
+ case 2:
53730
+ var value = /** @type {string} */ (reader.readString());
53731
+ msg.setDescription(value);
53732
+ break;
53109
53733
  case 3:
53110
- var value = /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (reader.readEnum());
53111
- msg.setCloud(value);
53734
+ var value = new proto.clarifai.api.ComputeInfo;
53735
+ reader.readMessage(value, proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader);
53736
+ msg.setComputeInfo(value);
53737
+ break;
53738
+ default:
53739
+ reader.skipField();
53740
+ break;
53741
+ }
53742
+ }
53743
+ return msg;
53744
+ };
53745
+ /**
53746
+ * Serializes the message to binary data (in protobuf wire format).
53747
+ * @return {!Uint8Array}
53748
+ */
53749
+ proto.clarifai.api.InstanceType.prototype.serializeBinary = function () {
53750
+ var writer = new jspb.BinaryWriter();
53751
+ proto.clarifai.api.InstanceType.serializeBinaryToWriter(this, writer);
53752
+ return writer.getResultBuffer();
53753
+ };
53754
+ /**
53755
+ * Serializes the given message to binary data (in protobuf wire
53756
+ * format), writing to the given BinaryWriter.
53757
+ * @param {!proto.clarifai.api.InstanceType} message
53758
+ * @param {!jspb.BinaryWriter} writer
53759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53760
+ */
53761
+ proto.clarifai.api.InstanceType.serializeBinaryToWriter = function (message, writer) {
53762
+ var f = undefined;
53763
+ f = message.getId();
53764
+ if (f.length > 0) {
53765
+ writer.writeString(1, f);
53766
+ }
53767
+ f = message.getDescription();
53768
+ if (f.length > 0) {
53769
+ writer.writeString(2, f);
53770
+ }
53771
+ f = message.getComputeInfo();
53772
+ if (f != null) {
53773
+ writer.writeMessage(3, f, proto.clarifai.api.ComputeInfo.serializeBinaryToWriter);
53774
+ }
53775
+ };
53776
+ /**
53777
+ * optional string id = 1;
53778
+ * @return {string}
53779
+ */
53780
+ proto.clarifai.api.InstanceType.prototype.getId = function () {
53781
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
53782
+ };
53783
+ /**
53784
+ * @param {string} value
53785
+ * @return {!proto.clarifai.api.InstanceType} returns this
53786
+ */
53787
+ proto.clarifai.api.InstanceType.prototype.setId = function (value) {
53788
+ return jspb.Message.setProto3StringField(this, 1, value);
53789
+ };
53790
+ /**
53791
+ * optional string description = 2;
53792
+ * @return {string}
53793
+ */
53794
+ proto.clarifai.api.InstanceType.prototype.getDescription = function () {
53795
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
53796
+ };
53797
+ /**
53798
+ * @param {string} value
53799
+ * @return {!proto.clarifai.api.InstanceType} returns this
53800
+ */
53801
+ proto.clarifai.api.InstanceType.prototype.setDescription = function (value) {
53802
+ return jspb.Message.setProto3StringField(this, 2, value);
53803
+ };
53804
+ /**
53805
+ * optional ComputeInfo compute_info = 3;
53806
+ * @return {?proto.clarifai.api.ComputeInfo}
53807
+ */
53808
+ proto.clarifai.api.InstanceType.prototype.getComputeInfo = function () {
53809
+ return /** @type{?proto.clarifai.api.ComputeInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ComputeInfo, 3));
53810
+ };
53811
+ /**
53812
+ * @param {?proto.clarifai.api.ComputeInfo|undefined} value
53813
+ * @return {!proto.clarifai.api.InstanceType} returns this
53814
+ */
53815
+ proto.clarifai.api.InstanceType.prototype.setComputeInfo = function (value) {
53816
+ return jspb.Message.setWrapperField(this, 3, value);
53817
+ };
53818
+ /**
53819
+ * Clears the message field making it undefined.
53820
+ * @return {!proto.clarifai.api.InstanceType} returns this
53821
+ */
53822
+ proto.clarifai.api.InstanceType.prototype.clearComputeInfo = function () {
53823
+ return this.setComputeInfo(undefined);
53824
+ };
53825
+ /**
53826
+ * Returns whether this field is set.
53827
+ * @return {boolean}
53828
+ */
53829
+ proto.clarifai.api.InstanceType.prototype.hasComputeInfo = function () {
53830
+ return jspb.Message.getField(this, 3) != null;
53831
+ };
53832
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53833
+ /**
53834
+ * Creates an object representation of this proto.
53835
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53836
+ * Optional fields that are not set will be set to undefined.
53837
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
53838
+ * For the list of reserved names please see:
53839
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
53840
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
53841
+ * JSPB instance for transitional soy proto support:
53842
+ * http://goto/soy-param-migration
53843
+ * @return {!Object}
53844
+ */
53845
+ proto.clarifai.api.CloudProvider.prototype.toObject = function (opt_includeInstance) {
53846
+ return proto.clarifai.api.CloudProvider.toObject(opt_includeInstance, this);
53847
+ };
53848
+ /**
53849
+ * Static version of the {@see toObject} method.
53850
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
53851
+ * the JSPB instance for transitional soy proto support:
53852
+ * http://goto/soy-param-migration
53853
+ * @param {!proto.clarifai.api.CloudProvider} msg The msg instance to transform.
53854
+ * @return {!Object}
53855
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53856
+ */
53857
+ proto.clarifai.api.CloudProvider.toObject = function (includeInstance, msg) {
53858
+ var f, obj = {
53859
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
53860
+ name: jspb.Message.getFieldWithDefault(msg, 2, "")
53861
+ };
53862
+ if (includeInstance) {
53863
+ obj.$jspbMessageInstance = msg;
53864
+ }
53865
+ return obj;
53866
+ };
53867
+ }
53868
+ /**
53869
+ * Deserializes binary data (in protobuf wire format).
53870
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
53871
+ * @return {!proto.clarifai.api.CloudProvider}
53872
+ */
53873
+ proto.clarifai.api.CloudProvider.deserializeBinary = function (bytes) {
53874
+ var reader = new jspb.BinaryReader(bytes);
53875
+ var msg = new proto.clarifai.api.CloudProvider;
53876
+ return proto.clarifai.api.CloudProvider.deserializeBinaryFromReader(msg, reader);
53877
+ };
53878
+ /**
53879
+ * Deserializes binary data (in protobuf wire format) from the
53880
+ * given reader into the given message object.
53881
+ * @param {!proto.clarifai.api.CloudProvider} msg The message object to deserialize into.
53882
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
53883
+ * @return {!proto.clarifai.api.CloudProvider}
53884
+ */
53885
+ proto.clarifai.api.CloudProvider.deserializeBinaryFromReader = function (msg, reader) {
53886
+ while (reader.nextField()) {
53887
+ if (reader.isEndGroup()) {
53888
+ break;
53889
+ }
53890
+ var field = reader.getFieldNumber();
53891
+ switch (field) {
53892
+ case 1:
53893
+ var value = /** @type {string} */ (reader.readString());
53894
+ msg.setId(value);
53895
+ break;
53896
+ case 2:
53897
+ var value = /** @type {string} */ (reader.readString());
53898
+ msg.setName(value);
53899
+ break;
53900
+ default:
53901
+ reader.skipField();
53902
+ break;
53903
+ }
53904
+ }
53905
+ return msg;
53906
+ };
53907
+ /**
53908
+ * Serializes the message to binary data (in protobuf wire format).
53909
+ * @return {!Uint8Array}
53910
+ */
53911
+ proto.clarifai.api.CloudProvider.prototype.serializeBinary = function () {
53912
+ var writer = new jspb.BinaryWriter();
53913
+ proto.clarifai.api.CloudProvider.serializeBinaryToWriter(this, writer);
53914
+ return writer.getResultBuffer();
53915
+ };
53916
+ /**
53917
+ * Serializes the given message to binary data (in protobuf wire
53918
+ * format), writing to the given BinaryWriter.
53919
+ * @param {!proto.clarifai.api.CloudProvider} message
53920
+ * @param {!jspb.BinaryWriter} writer
53921
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53922
+ */
53923
+ proto.clarifai.api.CloudProvider.serializeBinaryToWriter = function (message, writer) {
53924
+ var f = undefined;
53925
+ f = message.getId();
53926
+ if (f.length > 0) {
53927
+ writer.writeString(1, f);
53928
+ }
53929
+ f = message.getName();
53930
+ if (f.length > 0) {
53931
+ writer.writeString(2, f);
53932
+ }
53933
+ };
53934
+ /**
53935
+ * optional string id = 1;
53936
+ * @return {string}
53937
+ */
53938
+ proto.clarifai.api.CloudProvider.prototype.getId = function () {
53939
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
53940
+ };
53941
+ /**
53942
+ * @param {string} value
53943
+ * @return {!proto.clarifai.api.CloudProvider} returns this
53944
+ */
53945
+ proto.clarifai.api.CloudProvider.prototype.setId = function (value) {
53946
+ return jspb.Message.setProto3StringField(this, 1, value);
53947
+ };
53948
+ /**
53949
+ * optional string name = 2;
53950
+ * @return {string}
53951
+ */
53952
+ proto.clarifai.api.CloudProvider.prototype.getName = function () {
53953
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
53954
+ };
53955
+ /**
53956
+ * @param {string} value
53957
+ * @return {!proto.clarifai.api.CloudProvider} returns this
53958
+ */
53959
+ proto.clarifai.api.CloudProvider.prototype.setName = function (value) {
53960
+ return jspb.Message.setProto3StringField(this, 2, value);
53961
+ };
53962
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53963
+ /**
53964
+ * Creates an object representation of this proto.
53965
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53966
+ * Optional fields that are not set will be set to undefined.
53967
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
53968
+ * For the list of reserved names please see:
53969
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
53970
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
53971
+ * JSPB instance for transitional soy proto support:
53972
+ * http://goto/soy-param-migration
53973
+ * @return {!Object}
53974
+ */
53975
+ proto.clarifai.api.ComputeCluster.prototype.toObject = function (opt_includeInstance) {
53976
+ return proto.clarifai.api.ComputeCluster.toObject(opt_includeInstance, this);
53977
+ };
53978
+ /**
53979
+ * Static version of the {@see toObject} method.
53980
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
53981
+ * the JSPB instance for transitional soy proto support:
53982
+ * http://goto/soy-param-migration
53983
+ * @param {!proto.clarifai.api.ComputeCluster} msg The msg instance to transform.
53984
+ * @return {!Object}
53985
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53986
+ */
53987
+ proto.clarifai.api.ComputeCluster.toObject = function (includeInstance, msg) {
53988
+ var f, obj = {
53989
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
53990
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
53991
+ cloudProvider: (f = msg.getCloudProvider()) && proto.clarifai.api.CloudProvider.toObject(includeInstance, f),
53992
+ region: jspb.Message.getFieldWithDefault(msg, 4, ""),
53993
+ userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
53994
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
53995
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
53996
+ };
53997
+ if (includeInstance) {
53998
+ obj.$jspbMessageInstance = msg;
53999
+ }
54000
+ return obj;
54001
+ };
54002
+ }
54003
+ /**
54004
+ * Deserializes binary data (in protobuf wire format).
54005
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
54006
+ * @return {!proto.clarifai.api.ComputeCluster}
54007
+ */
54008
+ proto.clarifai.api.ComputeCluster.deserializeBinary = function (bytes) {
54009
+ var reader = new jspb.BinaryReader(bytes);
54010
+ var msg = new proto.clarifai.api.ComputeCluster;
54011
+ return proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader(msg, reader);
54012
+ };
54013
+ /**
54014
+ * Deserializes binary data (in protobuf wire format) from the
54015
+ * given reader into the given message object.
54016
+ * @param {!proto.clarifai.api.ComputeCluster} msg The message object to deserialize into.
54017
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
54018
+ * @return {!proto.clarifai.api.ComputeCluster}
54019
+ */
54020
+ proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader = function (msg, reader) {
54021
+ while (reader.nextField()) {
54022
+ if (reader.isEndGroup()) {
54023
+ break;
54024
+ }
54025
+ var field = reader.getFieldNumber();
54026
+ switch (field) {
54027
+ case 1:
54028
+ var value = /** @type {string} */ (reader.readString());
54029
+ msg.setId(value);
54030
+ break;
54031
+ case 2:
54032
+ var value = /** @type {string} */ (reader.readString());
54033
+ msg.setDescription(value);
54034
+ break;
54035
+ case 3:
54036
+ var value = new proto.clarifai.api.CloudProvider;
54037
+ reader.readMessage(value, proto.clarifai.api.CloudProvider.deserializeBinaryFromReader);
54038
+ msg.setCloudProvider(value);
53112
54039
  break;
53113
54040
  case 4:
53114
54041
  var value = /** @type {string} */ (reader.readString());
53115
54042
  msg.setRegion(value);
53116
54043
  break;
54044
+ case 5:
54045
+ var value = /** @type {string} */ (reader.readString());
54046
+ msg.setUserId(value);
54047
+ break;
54048
+ case 6:
54049
+ var value = new google_protobuf_timestamp_pb.Timestamp;
54050
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
54051
+ msg.setCreatedAt(value);
54052
+ break;
54053
+ case 7:
54054
+ var value = new google_protobuf_timestamp_pb.Timestamp;
54055
+ reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
54056
+ msg.setModifiedAt(value);
54057
+ break;
53117
54058
  default:
53118
54059
  reader.skipField();
53119
54060
  break;
@@ -53125,86 +54066,189 @@ proto.clarifai.api.CloudRegion.deserializeBinaryFromReader = function (msg, read
53125
54066
  * Serializes the message to binary data (in protobuf wire format).
53126
54067
  * @return {!Uint8Array}
53127
54068
  */
53128
- proto.clarifai.api.CloudRegion.prototype.serializeBinary = function () {
54069
+ proto.clarifai.api.ComputeCluster.prototype.serializeBinary = function () {
53129
54070
  var writer = new jspb.BinaryWriter();
53130
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter(this, writer);
54071
+ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter(this, writer);
53131
54072
  return writer.getResultBuffer();
53132
54073
  };
53133
54074
  /**
53134
54075
  * Serializes the given message to binary data (in protobuf wire
53135
54076
  * format), writing to the given BinaryWriter.
53136
- * @param {!proto.clarifai.api.CloudRegion} message
54077
+ * @param {!proto.clarifai.api.ComputeCluster} message
53137
54078
  * @param {!jspb.BinaryWriter} writer
53138
54079
  * @suppress {unusedLocalVariables} f is only used for nested messages
53139
54080
  */
53140
- proto.clarifai.api.CloudRegion.serializeBinaryToWriter = function (message, writer) {
54081
+ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter = function (message, writer) {
53141
54082
  var f = undefined;
53142
54083
  f = message.getId();
53143
54084
  if (f.length > 0) {
53144
54085
  writer.writeString(1, f);
53145
54086
  }
53146
- f = message.getCloud();
53147
- if (f !== 0.0) {
53148
- writer.writeEnum(3, f);
54087
+ f = message.getDescription();
54088
+ if (f.length > 0) {
54089
+ writer.writeString(2, f);
54090
+ }
54091
+ f = message.getCloudProvider();
54092
+ if (f != null) {
54093
+ writer.writeMessage(3, f, proto.clarifai.api.CloudProvider.serializeBinaryToWriter);
53149
54094
  }
53150
54095
  f = message.getRegion();
53151
54096
  if (f.length > 0) {
53152
54097
  writer.writeString(4, f);
53153
54098
  }
53154
- };
53155
- /**
53156
- * @enum {number}
53157
- */
53158
- proto.clarifai.api.CloudRegion.Cloud = {
53159
- UNKOWN_CLOUD: 0,
53160
- SELF_HOSTED: 1,
53161
- AWS: 2,
53162
- GCP: 3,
53163
- AZURE: 4,
53164
- LAMBDA: 5
54099
+ f = message.getUserId();
54100
+ if (f.length > 0) {
54101
+ writer.writeString(5, f);
54102
+ }
54103
+ f = message.getCreatedAt();
54104
+ if (f != null) {
54105
+ writer.writeMessage(6, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
54106
+ }
54107
+ f = message.getModifiedAt();
54108
+ if (f != null) {
54109
+ writer.writeMessage(7, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
54110
+ }
53165
54111
  };
53166
54112
  /**
53167
54113
  * optional string id = 1;
53168
54114
  * @return {string}
53169
54115
  */
53170
- proto.clarifai.api.CloudRegion.prototype.getId = function () {
54116
+ proto.clarifai.api.ComputeCluster.prototype.getId = function () {
53171
54117
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
53172
54118
  };
53173
54119
  /**
53174
54120
  * @param {string} value
53175
- * @return {!proto.clarifai.api.CloudRegion} returns this
54121
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
53176
54122
  */
53177
- proto.clarifai.api.CloudRegion.prototype.setId = function (value) {
54123
+ proto.clarifai.api.ComputeCluster.prototype.setId = function (value) {
53178
54124
  return jspb.Message.setProto3StringField(this, 1, value);
53179
54125
  };
53180
54126
  /**
53181
- * optional Cloud cloud = 3;
53182
- * @return {!proto.clarifai.api.CloudRegion.Cloud}
54127
+ * optional string description = 2;
54128
+ * @return {string}
54129
+ */
54130
+ proto.clarifai.api.ComputeCluster.prototype.getDescription = function () {
54131
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
54132
+ };
54133
+ /**
54134
+ * @param {string} value
54135
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
53183
54136
  */
53184
- proto.clarifai.api.CloudRegion.prototype.getCloud = function () {
53185
- return /** @type {!proto.clarifai.api.CloudRegion.Cloud} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
54137
+ proto.clarifai.api.ComputeCluster.prototype.setDescription = function (value) {
54138
+ return jspb.Message.setProto3StringField(this, 2, value);
53186
54139
  };
53187
54140
  /**
53188
- * @param {!proto.clarifai.api.CloudRegion.Cloud} value
53189
- * @return {!proto.clarifai.api.CloudRegion} returns this
54141
+ * optional CloudProvider cloud_provider = 3;
54142
+ * @return {?proto.clarifai.api.CloudProvider}
53190
54143
  */
53191
- proto.clarifai.api.CloudRegion.prototype.setCloud = function (value) {
53192
- return jspb.Message.setProto3EnumField(this, 3, value);
54144
+ proto.clarifai.api.ComputeCluster.prototype.getCloudProvider = function () {
54145
+ return /** @type{?proto.clarifai.api.CloudProvider} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.CloudProvider, 3));
54146
+ };
54147
+ /**
54148
+ * @param {?proto.clarifai.api.CloudProvider|undefined} value
54149
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54150
+ */
54151
+ proto.clarifai.api.ComputeCluster.prototype.setCloudProvider = function (value) {
54152
+ return jspb.Message.setWrapperField(this, 3, value);
54153
+ };
54154
+ /**
54155
+ * Clears the message field making it undefined.
54156
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54157
+ */
54158
+ proto.clarifai.api.ComputeCluster.prototype.clearCloudProvider = function () {
54159
+ return this.setCloudProvider(undefined);
54160
+ };
54161
+ /**
54162
+ * Returns whether this field is set.
54163
+ * @return {boolean}
54164
+ */
54165
+ proto.clarifai.api.ComputeCluster.prototype.hasCloudProvider = function () {
54166
+ return jspb.Message.getField(this, 3) != null;
53193
54167
  };
53194
54168
  /**
53195
54169
  * optional string region = 4;
53196
54170
  * @return {string}
53197
54171
  */
53198
- proto.clarifai.api.CloudRegion.prototype.getRegion = function () {
54172
+ proto.clarifai.api.ComputeCluster.prototype.getRegion = function () {
53199
54173
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
53200
54174
  };
53201
54175
  /**
53202
54176
  * @param {string} value
53203
- * @return {!proto.clarifai.api.CloudRegion} returns this
54177
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
53204
54178
  */
53205
- proto.clarifai.api.CloudRegion.prototype.setRegion = function (value) {
54179
+ proto.clarifai.api.ComputeCluster.prototype.setRegion = function (value) {
53206
54180
  return jspb.Message.setProto3StringField(this, 4, value);
53207
54181
  };
54182
+ /**
54183
+ * optional string user_id = 5;
54184
+ * @return {string}
54185
+ */
54186
+ proto.clarifai.api.ComputeCluster.prototype.getUserId = function () {
54187
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
54188
+ };
54189
+ /**
54190
+ * @param {string} value
54191
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54192
+ */
54193
+ proto.clarifai.api.ComputeCluster.prototype.setUserId = function (value) {
54194
+ return jspb.Message.setProto3StringField(this, 5, value);
54195
+ };
54196
+ /**
54197
+ * optional google.protobuf.Timestamp created_at = 6;
54198
+ * @return {?proto.google.protobuf.Timestamp}
54199
+ */
54200
+ proto.clarifai.api.ComputeCluster.prototype.getCreatedAt = function () {
54201
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
54202
+ };
54203
+ /**
54204
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
54205
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54206
+ */
54207
+ proto.clarifai.api.ComputeCluster.prototype.setCreatedAt = function (value) {
54208
+ return jspb.Message.setWrapperField(this, 6, value);
54209
+ };
54210
+ /**
54211
+ * Clears the message field making it undefined.
54212
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54213
+ */
54214
+ proto.clarifai.api.ComputeCluster.prototype.clearCreatedAt = function () {
54215
+ return this.setCreatedAt(undefined);
54216
+ };
54217
+ /**
54218
+ * Returns whether this field is set.
54219
+ * @return {boolean}
54220
+ */
54221
+ proto.clarifai.api.ComputeCluster.prototype.hasCreatedAt = function () {
54222
+ return jspb.Message.getField(this, 6) != null;
54223
+ };
54224
+ /**
54225
+ * optional google.protobuf.Timestamp modified_at = 7;
54226
+ * @return {?proto.google.protobuf.Timestamp}
54227
+ */
54228
+ proto.clarifai.api.ComputeCluster.prototype.getModifiedAt = function () {
54229
+ return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
54230
+ };
54231
+ /**
54232
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
54233
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54234
+ */
54235
+ proto.clarifai.api.ComputeCluster.prototype.setModifiedAt = function (value) {
54236
+ return jspb.Message.setWrapperField(this, 7, value);
54237
+ };
54238
+ /**
54239
+ * Clears the message field making it undefined.
54240
+ * @return {!proto.clarifai.api.ComputeCluster} returns this
54241
+ */
54242
+ proto.clarifai.api.ComputeCluster.prototype.clearModifiedAt = function () {
54243
+ return this.setModifiedAt(undefined);
54244
+ };
54245
+ /**
54246
+ * Returns whether this field is set.
54247
+ * @return {boolean}
54248
+ */
54249
+ proto.clarifai.api.ComputeCluster.prototype.hasModifiedAt = function () {
54250
+ return jspb.Message.getField(this, 7) != null;
54251
+ };
53208
54252
  /**
53209
54253
  * List of repeated fields within this message type.
53210
54254
  * @private {!Array<number>}
@@ -53709,7 +54753,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
53709
54753
  nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto.clarifai.api.Nodepool.toObject, includeInstance),
53710
54754
  model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
53711
54755
  workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
53712
- schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0)
54756
+ schedulingChoice: jspb.Message.getFieldWithDefault(msg, 7, 0),
54757
+ visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f),
54758
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
53713
54759
  };
53714
54760
  if (includeInstance) {
53715
54761
  obj.$jspbMessageInstance = msg;
@@ -53773,6 +54819,16 @@ proto.clarifai.api.Deployment.deserializeBinaryFromReader = function (msg, reade
53773
54819
  var value = /** @type {!proto.clarifai.api.Deployment.SchedulingChoice} */ (reader.readEnum());
53774
54820
  msg.setSchedulingChoice(value);
53775
54821
  break;
54822
+ case 8:
54823
+ var value = new proto.clarifai.api.Visibility;
54824
+ reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
54825
+ msg.setVisibility(value);
54826
+ break;
54827
+ case 9:
54828
+ var value = new google_protobuf_struct_pb.Struct;
54829
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
54830
+ msg.setMetadata(value);
54831
+ break;
53776
54832
  default:
53777
54833
  reader.skipField();
53778
54834
  break;
@@ -53826,6 +54882,14 @@ proto.clarifai.api.Deployment.serializeBinaryToWriter = function (message, write
53826
54882
  if (f !== 0.0) {
53827
54883
  writer.writeEnum(7, f);
53828
54884
  }
54885
+ f = message.getVisibility();
54886
+ if (f != null) {
54887
+ writer.writeMessage(8, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
54888
+ }
54889
+ f = message.getMetadata();
54890
+ if (f != null) {
54891
+ writer.writeMessage(9, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
54892
+ }
53829
54893
  };
53830
54894
  /**
53831
54895
  * @enum {number}
@@ -53996,6 +55060,62 @@ proto.clarifai.api.Deployment.prototype.getSchedulingChoice = function () {
53996
55060
  proto.clarifai.api.Deployment.prototype.setSchedulingChoice = function (value) {
53997
55061
  return jspb.Message.setProto3EnumField(this, 7, value);
53998
55062
  };
55063
+ /**
55064
+ * optional Visibility visibility = 8;
55065
+ * @return {?proto.clarifai.api.Visibility}
55066
+ */
55067
+ proto.clarifai.api.Deployment.prototype.getVisibility = function () {
55068
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 8));
55069
+ };
55070
+ /**
55071
+ * @param {?proto.clarifai.api.Visibility|undefined} value
55072
+ * @return {!proto.clarifai.api.Deployment} returns this
55073
+ */
55074
+ proto.clarifai.api.Deployment.prototype.setVisibility = function (value) {
55075
+ return jspb.Message.setWrapperField(this, 8, value);
55076
+ };
55077
+ /**
55078
+ * Clears the message field making it undefined.
55079
+ * @return {!proto.clarifai.api.Deployment} returns this
55080
+ */
55081
+ proto.clarifai.api.Deployment.prototype.clearVisibility = function () {
55082
+ return this.setVisibility(undefined);
55083
+ };
55084
+ /**
55085
+ * Returns whether this field is set.
55086
+ * @return {boolean}
55087
+ */
55088
+ proto.clarifai.api.Deployment.prototype.hasVisibility = function () {
55089
+ return jspb.Message.getField(this, 8) != null;
55090
+ };
55091
+ /**
55092
+ * optional google.protobuf.Struct metadata = 9;
55093
+ * @return {?proto.google.protobuf.Struct}
55094
+ */
55095
+ proto.clarifai.api.Deployment.prototype.getMetadata = function () {
55096
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 9));
55097
+ };
55098
+ /**
55099
+ * @param {?proto.google.protobuf.Struct|undefined} value
55100
+ * @return {!proto.clarifai.api.Deployment} returns this
55101
+ */
55102
+ proto.clarifai.api.Deployment.prototype.setMetadata = function (value) {
55103
+ return jspb.Message.setWrapperField(this, 9, value);
55104
+ };
55105
+ /**
55106
+ * Clears the message field making it undefined.
55107
+ * @return {!proto.clarifai.api.Deployment} returns this
55108
+ */
55109
+ proto.clarifai.api.Deployment.prototype.clearMetadata = function () {
55110
+ return this.setMetadata(undefined);
55111
+ };
55112
+ /**
55113
+ * Returns whether this field is set.
55114
+ * @return {boolean}
55115
+ */
55116
+ proto.clarifai.api.Deployment.prototype.hasMetadata = function () {
55117
+ return jspb.Message.getField(this, 9) != null;
55118
+ };
53999
55119
  if (jspb.Message.GENERATE_TO_OBJECT) {
54000
55120
  /**
54001
55121
  * Creates an object representation of this proto.