clarifai-web-grpc 11.3.0 → 11.3.3

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.
@@ -3652,6 +3652,9 @@ export class ListModelsRequest extends jspb.Message {
3652
3652
  getCreator(): string;
3653
3653
  setCreator(value: string): ListModelsRequest;
3654
3654
 
3655
+ getMinReplicas(): number;
3656
+ setMinReplicas(value: number): ListModelsRequest;
3657
+
3655
3658
  getSortByCase(): ListModelsRequest.SortByCase;
3656
3659
 
3657
3660
  serializeBinary(): Uint8Array;
@@ -3694,6 +3697,7 @@ export namespace ListModelsRequest {
3694
3697
  licenseType: proto_clarifai_api_resources_pb.LicenseType,
3695
3698
  source: number,
3696
3699
  creator: string,
3700
+ minReplicas: number,
3697
3701
  }
3698
3702
 
3699
3703
  export enum SortByCase {
@@ -4217,6 +4221,9 @@ export class SingleModelResponse extends jspb.Message {
4217
4221
  hasModel(): boolean;
4218
4222
  clearModel(): SingleModelResponse;
4219
4223
 
4224
+ getWorkflowCount(): number;
4225
+ setWorkflowCount(value: number): SingleModelResponse;
4226
+
4220
4227
  serializeBinary(): Uint8Array;
4221
4228
  toObject(includeInstance?: boolean): SingleModelResponse.AsObject;
4222
4229
  static toObject(includeInstance: boolean, msg: SingleModelResponse): SingleModelResponse.AsObject;
@@ -4229,6 +4236,7 @@ export namespace SingleModelResponse {
4229
4236
  export type AsObject = {
4230
4237
  status?: proto_clarifai_api_status_status_pb.Status.AsObject,
4231
4238
  model?: proto_clarifai_api_resources_pb.Model.AsObject,
4239
+ workflowCount: number,
4232
4240
  }
4233
4241
  }
4234
4242
 
@@ -4358,6 +4366,9 @@ export class ListModelVersionsRequest extends jspb.Message {
4358
4366
  getSortByCreatedAt(): boolean;
4359
4367
  setSortByCreatedAt(value: boolean): ListModelVersionsRequest;
4360
4368
 
4369
+ getMinReplicas(): number;
4370
+ setMinReplicas(value: number): ListModelVersionsRequest;
4371
+
4361
4372
  getSortByCase(): ListModelVersionsRequest.SortByCase;
4362
4373
 
4363
4374
  serializeBinary(): Uint8Array;
@@ -4381,6 +4392,7 @@ export namespace ListModelVersionsRequest {
4381
4392
  sortByNumInputs: boolean,
4382
4393
  sortByDescription: boolean,
4383
4394
  sortByCreatedAt: boolean,
4395
+ minReplicas: number,
4384
4396
  }
4385
4397
 
4386
4398
  export enum SortByCase {
@@ -10733,6 +10745,9 @@ export class ListNodepoolsRequest extends jspb.Message {
10733
10745
  getPerPage(): number;
10734
10746
  setPerPage(value: number): ListNodepoolsRequest;
10735
10747
 
10748
+ getActiveUsage(): boolean;
10749
+ setActiveUsage(value: boolean): ListNodepoolsRequest;
10750
+
10736
10751
  serializeBinary(): Uint8Array;
10737
10752
  toObject(includeInstance?: boolean): ListNodepoolsRequest.AsObject;
10738
10753
  static toObject(includeInstance: boolean, msg: ListNodepoolsRequest): ListNodepoolsRequest.AsObject;
@@ -10747,6 +10762,7 @@ export namespace ListNodepoolsRequest {
10747
10762
  computeClusterId: string,
10748
10763
  page: number,
10749
10764
  perPage: number,
10765
+ activeUsage: boolean,
10750
10766
  }
10751
10767
  }
10752
10768
 
@@ -36129,7 +36129,8 @@ proto.clarifai.api.ListModelsRequest.toObject = function(includeInstance, msg) {
36129
36129
  modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f,
36130
36130
  licenseType: jspb.Message.getFieldWithDefault(msg, 29, 0),
36131
36131
  source: jspb.Message.getFieldWithDefault(msg, 30, 0),
36132
- creator: jspb.Message.getFieldWithDefault(msg, 31, "")
36132
+ creator: jspb.Message.getFieldWithDefault(msg, 31, ""),
36133
+ minReplicas: jspb.Message.getFieldWithDefault(msg, 33, 0)
36133
36134
  };
36134
36135
 
36135
36136
  if (includeInstance) {
@@ -36287,6 +36288,10 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function(msg,
36287
36288
  var value = /** @type {string} */ (reader.readString());
36288
36289
  msg.setCreator(value);
36289
36290
  break;
36291
+ case 33:
36292
+ var value = /** @type {number} */ (reader.readUint32());
36293
+ msg.setMinReplicas(value);
36294
+ break;
36290
36295
  default:
36291
36296
  reader.skipField();
36292
36297
  break;
@@ -36527,6 +36532,13 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function(message,
36527
36532
  f
36528
36533
  );
36529
36534
  }
36535
+ f = message.getMinReplicas();
36536
+ if (f !== 0) {
36537
+ writer.writeUint32(
36538
+ 33,
36539
+ f
36540
+ );
36541
+ }
36530
36542
  };
36531
36543
 
36532
36544
 
@@ -37312,6 +37324,24 @@ proto.clarifai.api.ListModelsRequest.prototype.setCreator = function(value) {
37312
37324
  };
37313
37325
 
37314
37326
 
37327
+ /**
37328
+ * optional uint32 min_replicas = 33;
37329
+ * @return {number}
37330
+ */
37331
+ proto.clarifai.api.ListModelsRequest.prototype.getMinReplicas = function() {
37332
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 33, 0));
37333
+ };
37334
+
37335
+
37336
+ /**
37337
+ * @param {number} value
37338
+ * @return {!proto.clarifai.api.ListModelsRequest} returns this
37339
+ */
37340
+ proto.clarifai.api.ListModelsRequest.prototype.setMinReplicas = function(value) {
37341
+ return jspb.Message.setProto3IntField(this, 33, value);
37342
+ };
37343
+
37344
+
37315
37345
 
37316
37346
 
37317
37347
 
@@ -41268,7 +41298,8 @@ proto.clarifai.api.SingleModelResponse.prototype.toObject = function(opt_include
41268
41298
  proto.clarifai.api.SingleModelResponse.toObject = function(includeInstance, msg) {
41269
41299
  var f, obj = {
41270
41300
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
41271
- model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f)
41301
+ model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
41302
+ workflowCount: jspb.Message.getFieldWithDefault(msg, 4, 0)
41272
41303
  };
41273
41304
 
41274
41305
  if (includeInstance) {
@@ -41315,6 +41346,10 @@ proto.clarifai.api.SingleModelResponse.deserializeBinaryFromReader = function(ms
41315
41346
  reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader);
41316
41347
  msg.setModel(value);
41317
41348
  break;
41349
+ case 4:
41350
+ var value = /** @type {number} */ (reader.readInt32());
41351
+ msg.setWorkflowCount(value);
41352
+ break;
41318
41353
  default:
41319
41354
  reader.skipField();
41320
41355
  break;
@@ -41360,6 +41395,13 @@ proto.clarifai.api.SingleModelResponse.serializeBinaryToWriter = function(messag
41360
41395
  proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter
41361
41396
  );
41362
41397
  }
41398
+ f = message.getWorkflowCount();
41399
+ if (f !== 0) {
41400
+ writer.writeInt32(
41401
+ 4,
41402
+ f
41403
+ );
41404
+ }
41363
41405
  };
41364
41406
 
41365
41407
 
@@ -41437,6 +41479,24 @@ proto.clarifai.api.SingleModelResponse.prototype.hasModel = function() {
41437
41479
  };
41438
41480
 
41439
41481
 
41482
+ /**
41483
+ * optional int32 workflow_count = 4;
41484
+ * @return {number}
41485
+ */
41486
+ proto.clarifai.api.SingleModelResponse.prototype.getWorkflowCount = function() {
41487
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
41488
+ };
41489
+
41490
+
41491
+ /**
41492
+ * @param {number} value
41493
+ * @return {!proto.clarifai.api.SingleModelResponse} returns this
41494
+ */
41495
+ proto.clarifai.api.SingleModelResponse.prototype.setWorkflowCount = function(value) {
41496
+ return jspb.Message.setProto3IntField(this, 4, value);
41497
+ };
41498
+
41499
+
41440
41500
 
41441
41501
  /**
41442
41502
  * List of repeated fields within this message type.
@@ -42207,7 +42267,8 @@ proto.clarifai.api.ListModelVersionsRequest.toObject = function(includeInstance,
42207
42267
  sortByStatusCode: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
42208
42268
  sortByNumInputs: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
42209
42269
  sortByDescription: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
42210
- sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 11, false)
42270
+ sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
42271
+ minReplicas: jspb.Message.getFieldWithDefault(msg, 12, 0)
42211
42272
  };
42212
42273
 
42213
42274
  if (includeInstance) {
@@ -42289,6 +42350,10 @@ proto.clarifai.api.ListModelVersionsRequest.deserializeBinaryFromReader = functi
42289
42350
  var value = /** @type {boolean} */ (reader.readBool());
42290
42351
  msg.setSortByCreatedAt(value);
42291
42352
  break;
42353
+ case 12:
42354
+ var value = /** @type {number} */ (reader.readUint32());
42355
+ msg.setMinReplicas(value);
42356
+ break;
42292
42357
  default:
42293
42358
  reader.skipField();
42294
42359
  break;
@@ -42396,6 +42461,13 @@ proto.clarifai.api.ListModelVersionsRequest.serializeBinaryToWriter = function(m
42396
42461
  f
42397
42462
  );
42398
42463
  }
42464
+ f = message.getMinReplicas();
42465
+ if (f !== 0) {
42466
+ writer.writeUint32(
42467
+ 12,
42468
+ f
42469
+ );
42470
+ }
42399
42471
  };
42400
42472
 
42401
42473
 
@@ -42707,6 +42779,24 @@ proto.clarifai.api.ListModelVersionsRequest.prototype.hasSortByCreatedAt = funct
42707
42779
  };
42708
42780
 
42709
42781
 
42782
+ /**
42783
+ * optional uint32 min_replicas = 12;
42784
+ * @return {number}
42785
+ */
42786
+ proto.clarifai.api.ListModelVersionsRequest.prototype.getMinReplicas = function() {
42787
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
42788
+ };
42789
+
42790
+
42791
+ /**
42792
+ * @param {number} value
42793
+ * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this
42794
+ */
42795
+ proto.clarifai.api.ListModelVersionsRequest.prototype.setMinReplicas = function(value) {
42796
+ return jspb.Message.setProto3IntField(this, 12, value);
42797
+ };
42798
+
42799
+
42710
42800
 
42711
42801
 
42712
42802
 
@@ -92397,7 +92487,8 @@ proto.clarifai.api.ListNodepoolsRequest.toObject = function(includeInstance, msg
92397
92487
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
92398
92488
  computeClusterId: jspb.Message.getFieldWithDefault(msg, 2, ""),
92399
92489
  page: jspb.Message.getFieldWithDefault(msg, 3, 0),
92400
- perPage: jspb.Message.getFieldWithDefault(msg, 4, 0)
92490
+ perPage: jspb.Message.getFieldWithDefault(msg, 4, 0),
92491
+ activeUsage: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
92401
92492
  };
92402
92493
 
92403
92494
  if (includeInstance) {
@@ -92451,6 +92542,10 @@ proto.clarifai.api.ListNodepoolsRequest.deserializeBinaryFromReader = function(m
92451
92542
  var value = /** @type {number} */ (reader.readUint32());
92452
92543
  msg.setPerPage(value);
92453
92544
  break;
92545
+ case 5:
92546
+ var value = /** @type {boolean} */ (reader.readBool());
92547
+ msg.setActiveUsage(value);
92548
+ break;
92454
92549
  default:
92455
92550
  reader.skipField();
92456
92551
  break;
@@ -92509,6 +92604,13 @@ proto.clarifai.api.ListNodepoolsRequest.serializeBinaryToWriter = function(messa
92509
92604
  f
92510
92605
  );
92511
92606
  }
92607
+ f = message.getActiveUsage();
92608
+ if (f) {
92609
+ writer.writeBool(
92610
+ 5,
92611
+ f
92612
+ );
92613
+ }
92512
92614
  };
92513
92615
 
92514
92616
 
@@ -92603,6 +92705,24 @@ proto.clarifai.api.ListNodepoolsRequest.prototype.setPerPage = function(value) {
92603
92705
  };
92604
92706
 
92605
92707
 
92708
+ /**
92709
+ * optional bool active_usage = 5;
92710
+ * @return {boolean}
92711
+ */
92712
+ proto.clarifai.api.ListNodepoolsRequest.prototype.getActiveUsage = function() {
92713
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
92714
+ };
92715
+
92716
+
92717
+ /**
92718
+ * @param {boolean} value
92719
+ * @return {!proto.clarifai.api.ListNodepoolsRequest} returns this
92720
+ */
92721
+ proto.clarifai.api.ListNodepoolsRequest.prototype.setActiveUsage = function(value) {
92722
+ return jspb.Message.setProto3BooleanField(this, 5, value);
92723
+ };
92724
+
92725
+
92606
92726
 
92607
92727
  /**
92608
92728
  * List of repeated fields within this message type.