clarifai-web-grpc 11.3.1 → 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.
@@ -30306,7 +30306,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
30306
30306
  modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f,
30307
30307
  licenseType: jspb.Message.getFieldWithDefault(msg, 29, 0),
30308
30308
  source: jspb.Message.getFieldWithDefault(msg, 30, 0),
30309
- creator: jspb.Message.getFieldWithDefault(msg, 31, "")
30309
+ creator: jspb.Message.getFieldWithDefault(msg, 31, ""),
30310
+ minReplicas: jspb.Message.getFieldWithDefault(msg, 33, 0)
30310
30311
  };
30311
30312
  if (includeInstance) {
30312
30313
  obj.$jspbMessageInstance = msg;
@@ -30459,6 +30460,10 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function (msg
30459
30460
  var value = /** @type {string} */ (reader.readString());
30460
30461
  msg.setCreator(value);
30461
30462
  break;
30463
+ case 33:
30464
+ var value = /** @type {number} */ (reader.readUint32());
30465
+ msg.setMinReplicas(value);
30466
+ break;
30462
30467
  default:
30463
30468
  reader.skipField();
30464
30469
  break;
@@ -30604,6 +30609,10 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function (message
30604
30609
  if (f.length > 0) {
30605
30610
  writer.writeString(31, f);
30606
30611
  }
30612
+ f = message.getMinReplicas();
30613
+ if (f !== 0) {
30614
+ writer.writeUint32(33, f);
30615
+ }
30607
30616
  };
30608
30617
  /**
30609
30618
  * optional UserAppIDSet user_app_id = 1;
@@ -31214,6 +31223,20 @@ proto.clarifai.api.ListModelsRequest.prototype.getCreator = function () {
31214
31223
  proto.clarifai.api.ListModelsRequest.prototype.setCreator = function (value) {
31215
31224
  return jspb.Message.setProto3StringField(this, 31, value);
31216
31225
  };
31226
+ /**
31227
+ * optional uint32 min_replicas = 33;
31228
+ * @return {number}
31229
+ */
31230
+ proto.clarifai.api.ListModelsRequest.prototype.getMinReplicas = function () {
31231
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 33, 0));
31232
+ };
31233
+ /**
31234
+ * @param {number} value
31235
+ * @return {!proto.clarifai.api.ListModelsRequest} returns this
31236
+ */
31237
+ proto.clarifai.api.ListModelsRequest.prototype.setMinReplicas = function (value) {
31238
+ return jspb.Message.setProto3IntField(this, 33, value);
31239
+ };
31217
31240
  if (jspb.Message.GENERATE_TO_OBJECT) {
31218
31241
  /**
31219
31242
  * Creates an object representation of this proto.
@@ -34360,7 +34383,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
34360
34383
  proto.clarifai.api.SingleModelResponse.toObject = function (includeInstance, msg) {
34361
34384
  var f, obj = {
34362
34385
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
34363
- model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f)
34386
+ model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
34387
+ workflowCount: jspb.Message.getFieldWithDefault(msg, 4, 0)
34364
34388
  };
34365
34389
  if (includeInstance) {
34366
34390
  obj.$jspbMessageInstance = msg;
@@ -34402,6 +34426,10 @@ proto.clarifai.api.SingleModelResponse.deserializeBinaryFromReader = function (m
34402
34426
  reader.readMessage(value, proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader);
34403
34427
  msg.setModel(value);
34404
34428
  break;
34429
+ case 4:
34430
+ var value = /** @type {number} */ (reader.readInt32());
34431
+ msg.setWorkflowCount(value);
34432
+ break;
34405
34433
  default:
34406
34434
  reader.skipField();
34407
34435
  break;
@@ -34435,6 +34463,10 @@ proto.clarifai.api.SingleModelResponse.serializeBinaryToWriter = function (messa
34435
34463
  if (f != null) {
34436
34464
  writer.writeMessage(2, f, proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter);
34437
34465
  }
34466
+ f = message.getWorkflowCount();
34467
+ if (f !== 0) {
34468
+ writer.writeInt32(4, f);
34469
+ }
34438
34470
  };
34439
34471
  /**
34440
34472
  * optional status.Status status = 1;
@@ -34492,6 +34524,20 @@ proto.clarifai.api.SingleModelResponse.prototype.clearModel = function () {
34492
34524
  proto.clarifai.api.SingleModelResponse.prototype.hasModel = function () {
34493
34525
  return jspb.Message.getField(this, 2) != null;
34494
34526
  };
34527
+ /**
34528
+ * optional int32 workflow_count = 4;
34529
+ * @return {number}
34530
+ */
34531
+ proto.clarifai.api.SingleModelResponse.prototype.getWorkflowCount = function () {
34532
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
34533
+ };
34534
+ /**
34535
+ * @param {number} value
34536
+ * @return {!proto.clarifai.api.SingleModelResponse} returns this
34537
+ */
34538
+ proto.clarifai.api.SingleModelResponse.prototype.setWorkflowCount = function (value) {
34539
+ return jspb.Message.setProto3IntField(this, 4, value);
34540
+ };
34495
34541
  /**
34496
34542
  * List of repeated fields within this message type.
34497
34543
  * @private {!Array<number>}
@@ -35108,7 +35154,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
35108
35154
  sortByStatusCode: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
35109
35155
  sortByNumInputs: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
35110
35156
  sortByDescription: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
35111
- sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 11, false)
35157
+ sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
35158
+ minReplicas: jspb.Message.getFieldWithDefault(msg, 12, 0)
35112
35159
  };
35113
35160
  if (includeInstance) {
35114
35161
  obj.$jspbMessageInstance = msg;
@@ -35185,6 +35232,10 @@ proto.clarifai.api.ListModelVersionsRequest.deserializeBinaryFromReader = functi
35185
35232
  var value = /** @type {boolean} */ (reader.readBool());
35186
35233
  msg.setSortByCreatedAt(value);
35187
35234
  break;
35235
+ case 12:
35236
+ var value = /** @type {number} */ (reader.readUint32());
35237
+ msg.setMinReplicas(value);
35238
+ break;
35188
35239
  default:
35189
35240
  reader.skipField();
35190
35241
  break;
@@ -35254,6 +35305,10 @@ proto.clarifai.api.ListModelVersionsRequest.serializeBinaryToWriter = function (
35254
35305
  if (f != null) {
35255
35306
  writer.writeBool(11, f);
35256
35307
  }
35308
+ f = message.getMinReplicas();
35309
+ if (f !== 0) {
35310
+ writer.writeUint32(12, f);
35311
+ }
35257
35312
  };
35258
35313
  /**
35259
35314
  * optional UserAppIDSet user_app_id = 1;
@@ -35494,6 +35549,20 @@ proto.clarifai.api.ListModelVersionsRequest.prototype.clearSortByCreatedAt = fun
35494
35549
  proto.clarifai.api.ListModelVersionsRequest.prototype.hasSortByCreatedAt = function () {
35495
35550
  return jspb.Message.getField(this, 11) != null;
35496
35551
  };
35552
+ /**
35553
+ * optional uint32 min_replicas = 12;
35554
+ * @return {number}
35555
+ */
35556
+ proto.clarifai.api.ListModelVersionsRequest.prototype.getMinReplicas = function () {
35557
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
35558
+ };
35559
+ /**
35560
+ * @param {number} value
35561
+ * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this
35562
+ */
35563
+ proto.clarifai.api.ListModelVersionsRequest.prototype.setMinReplicas = function (value) {
35564
+ return jspb.Message.setProto3IntField(this, 12, value);
35565
+ };
35497
35566
  if (jspb.Message.GENERATE_TO_OBJECT) {
35498
35567
  /**
35499
35568
  * Creates an object representation of this proto.