clarifai-web-grpc 9.10.4 → 9.10.6

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.
@@ -8248,7 +8248,7 @@ proto.clarifai.api.PatchAnnotationsRequest.prototype.setDeleteIfEmptyData = func
8248
8248
  * @private {!Array<number>}
8249
8249
  * @const
8250
8250
  */
8251
- proto.clarifai.api.PatchAnnotationsStatusRequest.repeatedFields_ = [3];
8251
+ proto.clarifai.api.PatchAnnotationsStatusRequest.repeatedFields_ = [3, 6];
8252
8252
  if (jspb.Message.GENERATE_TO_OBJECT) {
8253
8253
  /**
8254
8254
  * Creates an object representation of this proto.
@@ -8277,10 +8277,11 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
8277
8277
  proto.clarifai.api.PatchAnnotationsStatusRequest.toObject = function (includeInstance, msg) {
8278
8278
  var f, obj = {
8279
8279
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
8280
- statusCode: jspb.Message.getFieldWithDefault(msg, 2, 0),
8281
8280
  userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
8282
8281
  taskId: jspb.Message.getFieldWithDefault(msg, 4, ""),
8283
- action: jspb.Message.getFieldWithDefault(msg, 5, "")
8282
+ statusCodesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
8283
+ action: jspb.Message.getFieldWithDefault(msg, 5, ""),
8284
+ statusCode: jspb.Message.getFieldWithDefault(msg, 2, 0)
8284
8285
  };
8285
8286
  if (includeInstance) {
8286
8287
  obj.$jspbMessageInstance = msg;
@@ -8317,10 +8318,6 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.deserializeBinaryFromReader = f
8317
8318
  reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
8318
8319
  msg.setUserAppId(value);
8319
8320
  break;
8320
- case 2:
8321
- var value = /** @type {!proto.clarifai.api.status.StatusCode} */ (reader.readEnum());
8322
- msg.setStatusCode(value);
8323
- break;
8324
8321
  case 3:
8325
8322
  var value = /** @type {string} */ (reader.readString());
8326
8323
  msg.addUserIds(value);
@@ -8329,10 +8326,20 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.deserializeBinaryFromReader = f
8329
8326
  var value = /** @type {string} */ (reader.readString());
8330
8327
  msg.setTaskId(value);
8331
8328
  break;
8329
+ case 6:
8330
+ var values = /** @type {!Array<!proto.clarifai.api.status.StatusCode>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
8331
+ for (var i = 0; i < values.length; i++) {
8332
+ msg.addStatusCodes(values[i]);
8333
+ }
8334
+ break;
8332
8335
  case 5:
8333
8336
  var value = /** @type {string} */ (reader.readString());
8334
8337
  msg.setAction(value);
8335
8338
  break;
8339
+ case 2:
8340
+ var value = /** @type {!proto.clarifai.api.status.StatusCode} */ (reader.readEnum());
8341
+ msg.setStatusCode(value);
8342
+ break;
8336
8343
  default:
8337
8344
  reader.skipField();
8338
8345
  break;
@@ -8362,10 +8369,6 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.serializeBinaryToWriter = funct
8362
8369
  if (f != null) {
8363
8370
  writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
8364
8371
  }
8365
- f = message.getStatusCode();
8366
- if (f !== 0.0) {
8367
- writer.writeEnum(2, f);
8368
- }
8369
8372
  f = message.getUserIdsList();
8370
8373
  if (f.length > 0) {
8371
8374
  writer.writeRepeatedString(3, f);
@@ -8374,10 +8377,18 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.serializeBinaryToWriter = funct
8374
8377
  if (f.length > 0) {
8375
8378
  writer.writeString(4, f);
8376
8379
  }
8380
+ f = message.getStatusCodesList();
8381
+ if (f.length > 0) {
8382
+ writer.writePackedEnum(6, f);
8383
+ }
8377
8384
  f = message.getAction();
8378
8385
  if (f.length > 0) {
8379
8386
  writer.writeString(5, f);
8380
8387
  }
8388
+ f = message.getStatusCode();
8389
+ if (f !== 0.0) {
8390
+ writer.writeEnum(2, f);
8391
+ }
8381
8392
  };
8382
8393
  /**
8383
8394
  * optional UserAppIDSet user_app_id = 1;
@@ -8407,20 +8418,6 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearUserAppId = func
8407
8418
  proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.hasUserAppId = function () {
8408
8419
  return jspb.Message.getField(this, 1) != null;
8409
8420
  };
8410
- /**
8411
- * optional status.StatusCode status_code = 2;
8412
- * @return {!proto.clarifai.api.status.StatusCode}
8413
- */
8414
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCode = function () {
8415
- return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8416
- };
8417
- /**
8418
- * @param {!proto.clarifai.api.status.StatusCode} value
8419
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
8420
- */
8421
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCode = function (value) {
8422
- return jspb.Message.setProto3EnumField(this, 2, value);
8423
- };
8424
8421
  /**
8425
8422
  * repeated string user_ids = 3;
8426
8423
  * @return {!Array<string>}
@@ -8464,6 +8461,35 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getTaskId = function
8464
8461
  proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setTaskId = function (value) {
8465
8462
  return jspb.Message.setProto3StringField(this, 4, value);
8466
8463
  };
8464
+ /**
8465
+ * repeated status.StatusCode status_codes = 6;
8466
+ * @return {!Array<!proto.clarifai.api.status.StatusCode>}
8467
+ */
8468
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCodesList = function () {
8469
+ return /** @type {!Array<!proto.clarifai.api.status.StatusCode>} */ (jspb.Message.getRepeatedField(this, 6));
8470
+ };
8471
+ /**
8472
+ * @param {!Array<!proto.clarifai.api.status.StatusCode>} value
8473
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
8474
+ */
8475
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCodesList = function (value) {
8476
+ return jspb.Message.setField(this, 6, value || []);
8477
+ };
8478
+ /**
8479
+ * @param {!proto.clarifai.api.status.StatusCode} value
8480
+ * @param {number=} opt_index
8481
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
8482
+ */
8483
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.addStatusCodes = function (value, opt_index) {
8484
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
8485
+ };
8486
+ /**
8487
+ * Clears the list making it empty but non-null.
8488
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
8489
+ */
8490
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearStatusCodesList = function () {
8491
+ return this.setStatusCodesList([]);
8492
+ };
8467
8493
  /**
8468
8494
  * optional string action = 5;
8469
8495
  * @return {string}
@@ -8478,6 +8504,20 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getAction = function
8478
8504
  proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setAction = function (value) {
8479
8505
  return jspb.Message.setProto3StringField(this, 5, value);
8480
8506
  };
8507
+ /**
8508
+ * optional status.StatusCode status_code = 2;
8509
+ * @return {!proto.clarifai.api.status.StatusCode}
8510
+ */
8511
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCode = function () {
8512
+ return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8513
+ };
8514
+ /**
8515
+ * @param {!proto.clarifai.api.status.StatusCode} value
8516
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
8517
+ */
8518
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCode = function (value) {
8519
+ return jspb.Message.setProto3EnumField(this, 2, value);
8520
+ };
8481
8521
  /**
8482
8522
  * List of repeated fields within this message type.
8483
8523
  * @private {!Array<number>}
@@ -10003,6 +10043,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
10003
10043
  sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
10004
10044
  featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
10005
10045
  starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
10046
+ templateOnly: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
10006
10047
  search: jspb.Message.getFieldWithDefault(msg, 15, ""),
10007
10048
  query: jspb.Message.getFieldWithDefault(msg, 8, ""),
10008
10049
  name: jspb.Message.getFieldWithDefault(msg, 4, ""),
@@ -10083,6 +10124,10 @@ proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader = function (msg,
10083
10124
  var value = /** @type {boolean} */ (reader.readBool());
10084
10125
  msg.setStarredOnly(value);
10085
10126
  break;
10127
+ case 16:
10128
+ var value = /** @type {boolean} */ (reader.readBool());
10129
+ msg.setTemplateOnly(value);
10130
+ break;
10086
10131
  case 15:
10087
10132
  var value = /** @type {string} */ (reader.readString());
10088
10133
  msg.setSearch(value);
@@ -10168,6 +10213,10 @@ proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter = function (message,
10168
10213
  if (f) {
10169
10214
  writer.writeBool(11, f);
10170
10215
  }
10216
+ f = message.getTemplateOnly();
10217
+ if (f) {
10218
+ writer.writeBool(16, f);
10219
+ }
10171
10220
  f = message.getSearch();
10172
10221
  if (f.length > 0) {
10173
10222
  writer.writeString(15, f);
@@ -10424,6 +10473,20 @@ proto.clarifai.api.ListAppsRequest.prototype.getStarredOnly = function () {
10424
10473
  proto.clarifai.api.ListAppsRequest.prototype.setStarredOnly = function (value) {
10425
10474
  return jspb.Message.setProto3BooleanField(this, 11, value);
10426
10475
  };
10476
+ /**
10477
+ * optional bool template_only = 16;
10478
+ * @return {boolean}
10479
+ */
10480
+ proto.clarifai.api.ListAppsRequest.prototype.getTemplateOnly = function () {
10481
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false));
10482
+ };
10483
+ /**
10484
+ * @param {boolean} value
10485
+ * @return {!proto.clarifai.api.ListAppsRequest} returns this
10486
+ */
10487
+ proto.clarifai.api.ListAppsRequest.prototype.setTemplateOnly = function (value) {
10488
+ return jspb.Message.setProto3BooleanField(this, 16, value);
10489
+ };
10427
10490
  /**
10428
10491
  * optional string search = 15;
10429
10492
  * @return {string}
@@ -12765,7 +12828,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
12765
12828
  proto.clarifai.api.MultiCollaboratorsResponse.toObject = function (includeInstance, msg) {
12766
12829
  var f, obj = {
12767
12830
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
12768
- collaboratorsList: jspb.Message.toObjectList(msg.getCollaboratorsList(), proto_clarifai_api_resources_pb.Collaborator.toObject, includeInstance)
12831
+ collaboratorsList: jspb.Message.toObjectList(msg.getCollaboratorsList(), proto_clarifai_api_resources_pb.Collaborator.toObject, includeInstance),
12832
+ appOwner: (f = msg.getAppOwner()) && proto_clarifai_api_resources_pb.User.toObject(includeInstance, f)
12769
12833
  };
12770
12834
  if (includeInstance) {
12771
12835
  obj.$jspbMessageInstance = msg;
@@ -12807,6 +12871,11 @@ proto.clarifai.api.MultiCollaboratorsResponse.deserializeBinaryFromReader = func
12807
12871
  reader.readMessage(value, proto_clarifai_api_resources_pb.Collaborator.deserializeBinaryFromReader);
12808
12872
  msg.addCollaborators(value);
12809
12873
  break;
12874
+ case 3:
12875
+ var value = new proto_clarifai_api_resources_pb.User;
12876
+ reader.readMessage(value, proto_clarifai_api_resources_pb.User.deserializeBinaryFromReader);
12877
+ msg.setAppOwner(value);
12878
+ break;
12810
12879
  default:
12811
12880
  reader.skipField();
12812
12881
  break;
@@ -12840,6 +12909,10 @@ proto.clarifai.api.MultiCollaboratorsResponse.serializeBinaryToWriter = function
12840
12909
  if (f.length > 0) {
12841
12910
  writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.Collaborator.serializeBinaryToWriter);
12842
12911
  }
12912
+ f = message.getAppOwner();
12913
+ if (f != null) {
12914
+ writer.writeMessage(3, f, proto_clarifai_api_resources_pb.User.serializeBinaryToWriter);
12915
+ }
12843
12916
  };
12844
12917
  /**
12845
12918
  * optional status.Status status = 1;
@@ -12898,6 +12971,34 @@ proto.clarifai.api.MultiCollaboratorsResponse.prototype.addCollaborators = funct
12898
12971
  proto.clarifai.api.MultiCollaboratorsResponse.prototype.clearCollaboratorsList = function () {
12899
12972
  return this.setCollaboratorsList([]);
12900
12973
  };
12974
+ /**
12975
+ * optional User app_owner = 3;
12976
+ * @return {?proto.clarifai.api.User}
12977
+ */
12978
+ proto.clarifai.api.MultiCollaboratorsResponse.prototype.getAppOwner = function () {
12979
+ return /** @type{?proto.clarifai.api.User} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.User, 3));
12980
+ };
12981
+ /**
12982
+ * @param {?proto.clarifai.api.User|undefined} value
12983
+ * @return {!proto.clarifai.api.MultiCollaboratorsResponse} returns this
12984
+ */
12985
+ proto.clarifai.api.MultiCollaboratorsResponse.prototype.setAppOwner = function (value) {
12986
+ return jspb.Message.setWrapperField(this, 3, value);
12987
+ };
12988
+ /**
12989
+ * Clears the message field making it undefined.
12990
+ * @return {!proto.clarifai.api.MultiCollaboratorsResponse} returns this
12991
+ */
12992
+ proto.clarifai.api.MultiCollaboratorsResponse.prototype.clearAppOwner = function () {
12993
+ return this.setAppOwner(undefined);
12994
+ };
12995
+ /**
12996
+ * Returns whether this field is set.
12997
+ * @return {boolean}
12998
+ */
12999
+ proto.clarifai.api.MultiCollaboratorsResponse.prototype.hasAppOwner = function () {
13000
+ return jspb.Message.getField(this, 3) != null;
13001
+ };
12901
13002
  if (jspb.Message.GENERATE_TO_OBJECT) {
12902
13003
  /**
12903
13004
  * Creates an object representation of this proto.
@@ -12927,7 +13028,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
12927
13028
  var f, obj = {
12928
13029
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
12929
13030
  page: jspb.Message.getFieldWithDefault(msg, 2, 0),
12930
- perPage: jspb.Message.getFieldWithDefault(msg, 3, 0)
13031
+ perPage: jspb.Message.getFieldWithDefault(msg, 3, 0),
13032
+ templateOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
12931
13033
  };
12932
13034
  if (includeInstance) {
12933
13035
  obj.$jspbMessageInstance = msg;
@@ -12972,6 +13074,10 @@ proto.clarifai.api.ListCollaborationsRequest.deserializeBinaryFromReader = funct
12972
13074
  var value = /** @type {number} */ (reader.readUint32());
12973
13075
  msg.setPerPage(value);
12974
13076
  break;
13077
+ case 4:
13078
+ var value = /** @type {boolean} */ (reader.readBool());
13079
+ msg.setTemplateOnly(value);
13080
+ break;
12975
13081
  default:
12976
13082
  reader.skipField();
12977
13083
  break;
@@ -13009,6 +13115,10 @@ proto.clarifai.api.ListCollaborationsRequest.serializeBinaryToWriter = function
13009
13115
  if (f !== 0) {
13010
13116
  writer.writeUint32(3, f);
13011
13117
  }
13118
+ f = message.getTemplateOnly();
13119
+ if (f) {
13120
+ writer.writeBool(4, f);
13121
+ }
13012
13122
  };
13013
13123
  /**
13014
13124
  * optional UserAppIDSet user_app_id = 1;
@@ -13066,6 +13176,20 @@ proto.clarifai.api.ListCollaborationsRequest.prototype.getPerPage = function ()
13066
13176
  proto.clarifai.api.ListCollaborationsRequest.prototype.setPerPage = function (value) {
13067
13177
  return jspb.Message.setProto3IntField(this, 3, value);
13068
13178
  };
13179
+ /**
13180
+ * optional bool template_only = 4;
13181
+ * @return {boolean}
13182
+ */
13183
+ proto.clarifai.api.ListCollaborationsRequest.prototype.getTemplateOnly = function () {
13184
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
13185
+ };
13186
+ /**
13187
+ * @param {boolean} value
13188
+ * @return {!proto.clarifai.api.ListCollaborationsRequest} returns this
13189
+ */
13190
+ proto.clarifai.api.ListCollaborationsRequest.prototype.setTemplateOnly = function (value) {
13191
+ return jspb.Message.setProto3BooleanField(this, 4, value);
13192
+ };
13069
13193
  /**
13070
13194
  * List of repeated fields within this message type.
13071
13195
  * @private {!Array<number>}
@@ -29243,7 +29367,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
29243
29367
  datasets: jspb.Message.getFieldWithDefault(msg, 2, 0),
29244
29368
  models: jspb.Message.getFieldWithDefault(msg, 3, 0),
29245
29369
  workflows: jspb.Message.getFieldWithDefault(msg, 4, 0),
29246
- modules: jspb.Message.getFieldWithDefault(msg, 5, 0)
29370
+ modules: jspb.Message.getFieldWithDefault(msg, 5, 0),
29371
+ inputs: jspb.Message.getFieldWithDefault(msg, 6, 0)
29247
29372
  };
29248
29373
  if (includeInstance) {
29249
29374
  obj.$jspbMessageInstance = msg;
@@ -29296,6 +29421,10 @@ proto.clarifai.api.GetResourceCountsResponse.deserializeBinaryFromReader = funct
29296
29421
  var value = /** @type {number} */ (reader.readInt64());
29297
29422
  msg.setModules(value);
29298
29423
  break;
29424
+ case 6:
29425
+ var value = /** @type {number} */ (reader.readInt64());
29426
+ msg.setInputs(value);
29427
+ break;
29299
29428
  default:
29300
29429
  reader.skipField();
29301
29430
  break;
@@ -29341,6 +29470,10 @@ proto.clarifai.api.GetResourceCountsResponse.serializeBinaryToWriter = function
29341
29470
  if (f !== 0) {
29342
29471
  writer.writeInt64(5, f);
29343
29472
  }
29473
+ f = message.getInputs();
29474
+ if (f !== 0) {
29475
+ writer.writeInt64(6, f);
29476
+ }
29344
29477
  };
29345
29478
  /**
29346
29479
  * optional status.Status status = 1;
@@ -29426,6 +29559,20 @@ proto.clarifai.api.GetResourceCountsResponse.prototype.getModules = function ()
29426
29559
  proto.clarifai.api.GetResourceCountsResponse.prototype.setModules = function (value) {
29427
29560
  return jspb.Message.setProto3IntField(this, 5, value);
29428
29561
  };
29562
+ /**
29563
+ * optional int64 inputs = 6;
29564
+ * @return {number}
29565
+ */
29566
+ proto.clarifai.api.GetResourceCountsResponse.prototype.getInputs = function () {
29567
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
29568
+ };
29569
+ /**
29570
+ * @param {number} value
29571
+ * @return {!proto.clarifai.api.GetResourceCountsResponse} returns this
29572
+ */
29573
+ proto.clarifai.api.GetResourceCountsResponse.prototype.setInputs = function (value) {
29574
+ return jspb.Message.setProto3IntField(this, 6, value);
29575
+ };
29429
29576
  /**
29430
29577
  * List of repeated fields within this message type.
29431
29578
  * @private {!Array<number>}
@@ -31,6 +31,7 @@ proto.clarifai.api.status.StatusCode = {
31
31
  TRY_AGAIN: 10030,
32
32
  NOT_IMPLEMENTED: 10040,
33
33
  MOVED: 10050,
34
+ TEAPOT: 10060,
34
35
  CONN_ACCOUNT_ISSUES: 11000,
35
36
  CONN_TOKEN_INVALID: 11001,
36
37
  CONN_CREDENTIALS_INVALID: 11002,
@@ -130,7 +130,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
130
130
  timeRemaining: jspb.Message.getFieldWithDefault(msg, 6, 0),
131
131
  reqId: jspb.Message.getFieldWithDefault(msg, 7, ""),
132
132
  internalDetails: jspb.Message.getFieldWithDefault(msg, 8, ""),
133
- redirectInfo: (f = msg.getRedirectInfo()) && proto.clarifai.api.status.RedirectInfo.toObject(includeInstance, f)
133
+ redirectInfo: (f = msg.getRedirectInfo()) && proto.clarifai.api.status.RedirectInfo.toObject(includeInstance, f),
134
+ developerNotes: jspb.Message.getFieldWithDefault(msg, 10, "")
134
135
  };
135
136
  if (includeInstance) {
136
137
  obj.$jspbMessageInstance = msg;
@@ -199,6 +200,10 @@ proto.clarifai.api.status.Status.deserializeBinaryFromReader = function (msg, re
199
200
  reader.readMessage(value, proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader);
200
201
  msg.setRedirectInfo(value);
201
202
  break;
203
+ case 10:
204
+ var value = /** @type {string} */ (reader.readString());
205
+ msg.setDeveloperNotes(value);
206
+ break;
202
207
  default:
203
208
  reader.skipField();
204
209
  break;
@@ -260,6 +265,10 @@ proto.clarifai.api.status.Status.serializeBinaryToWriter = function (message, wr
260
265
  if (f != null) {
261
266
  writer.writeMessage(9, f, proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter);
262
267
  }
268
+ f = message.getDeveloperNotes();
269
+ if (f.length > 0) {
270
+ writer.writeString(10, f);
271
+ }
263
272
  };
264
273
  /**
265
274
  * optional StatusCode code = 1;
@@ -416,6 +425,20 @@ proto.clarifai.api.status.Status.prototype.clearRedirectInfo = function () {
416
425
  proto.clarifai.api.status.Status.prototype.hasRedirectInfo = function () {
417
426
  return jspb.Message.getField(this, 9) != null;
418
427
  };
428
+ /**
429
+ * optional string developer_notes = 10;
430
+ * @return {string}
431
+ */
432
+ proto.clarifai.api.status.Status.prototype.getDeveloperNotes = function () {
433
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
434
+ };
435
+ /**
436
+ * @param {string} value
437
+ * @return {!proto.clarifai.api.status.Status} returns this
438
+ */
439
+ proto.clarifai.api.status.Status.prototype.setDeveloperNotes = function (value) {
440
+ return jspb.Message.setProto3StringField(this, 10, value);
441
+ };
419
442
  if (jspb.Message.GENERATE_TO_OBJECT) {
420
443
  /**
421
444
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "9.10.4",
3
+ "version": "9.10.6",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -2749,6 +2749,11 @@ export class TrainInfo extends jspb.Message {
2749
2749
  hasDataset(): boolean;
2750
2750
  clearDataset(): TrainInfo;
2751
2751
 
2752
+ getResumeFromModel(): Model | undefined;
2753
+ setResumeFromModel(value?: Model): TrainInfo;
2754
+ hasResumeFromModel(): boolean;
2755
+ clearResumeFromModel(): TrainInfo;
2756
+
2752
2757
  serializeBinary(): Uint8Array;
2753
2758
  toObject(includeInstance?: boolean): TrainInfo.AsObject;
2754
2759
  static toObject(includeInstance: boolean, msg: TrainInfo): TrainInfo.AsObject;
@@ -2761,6 +2766,7 @@ export namespace TrainInfo {
2761
2766
  export type AsObject = {
2762
2767
  params?: google_protobuf_struct_pb.Struct.AsObject,
2763
2768
  dataset?: Dataset.AsObject,
2769
+ resumeFromModel?: Model.AsObject,
2764
2770
  }
2765
2771
  }
2766
2772
 
@@ -3117,6 +3123,7 @@ export namespace ModelTypeField {
3117
3123
  DATASET = 19,
3118
3124
  DATASET_VERSION = 20,
3119
3125
  ENCRYPTED_STRING = 21,
3126
+ CHECKPOINT_MODEL = 22,
3120
3127
  }
3121
3128
  }
3122
3129
 
@@ -25655,7 +25655,8 @@ proto.clarifai.api.TrainInfo.prototype.toObject = function(opt_includeInstance)
25655
25655
  proto.clarifai.api.TrainInfo.toObject = function(includeInstance, msg) {
25656
25656
  var f, obj = {
25657
25657
  params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
25658
- dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f)
25658
+ dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f),
25659
+ resumeFromModel: (f = msg.getResumeFromModel()) && proto.clarifai.api.Model.toObject(includeInstance, f)
25659
25660
  };
25660
25661
 
25661
25662
  if (includeInstance) {
@@ -25702,6 +25703,11 @@ proto.clarifai.api.TrainInfo.deserializeBinaryFromReader = function(msg, reader)
25702
25703
  reader.readMessage(value,proto.clarifai.api.Dataset.deserializeBinaryFromReader);
25703
25704
  msg.setDataset(value);
25704
25705
  break;
25706
+ case 3:
25707
+ var value = new proto.clarifai.api.Model;
25708
+ reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader);
25709
+ msg.setResumeFromModel(value);
25710
+ break;
25705
25711
  default:
25706
25712
  reader.skipField();
25707
25713
  break;
@@ -25747,6 +25753,14 @@ proto.clarifai.api.TrainInfo.serializeBinaryToWriter = function(message, writer)
25747
25753
  proto.clarifai.api.Dataset.serializeBinaryToWriter
25748
25754
  );
25749
25755
  }
25756
+ f = message.getResumeFromModel();
25757
+ if (f != null) {
25758
+ writer.writeMessage(
25759
+ 3,
25760
+ f,
25761
+ proto.clarifai.api.Model.serializeBinaryToWriter
25762
+ );
25763
+ }
25750
25764
  };
25751
25765
 
25752
25766
 
@@ -25824,6 +25838,43 @@ proto.clarifai.api.TrainInfo.prototype.hasDataset = function() {
25824
25838
  };
25825
25839
 
25826
25840
 
25841
+ /**
25842
+ * optional Model resume_from_model = 3;
25843
+ * @return {?proto.clarifai.api.Model}
25844
+ */
25845
+ proto.clarifai.api.TrainInfo.prototype.getResumeFromModel = function() {
25846
+ return /** @type{?proto.clarifai.api.Model} */ (
25847
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 3));
25848
+ };
25849
+
25850
+
25851
+ /**
25852
+ * @param {?proto.clarifai.api.Model|undefined} value
25853
+ * @return {!proto.clarifai.api.TrainInfo} returns this
25854
+ */
25855
+ proto.clarifai.api.TrainInfo.prototype.setResumeFromModel = function(value) {
25856
+ return jspb.Message.setWrapperField(this, 3, value);
25857
+ };
25858
+
25859
+
25860
+ /**
25861
+ * Clears the message field making it undefined.
25862
+ * @return {!proto.clarifai.api.TrainInfo} returns this
25863
+ */
25864
+ proto.clarifai.api.TrainInfo.prototype.clearResumeFromModel = function() {
25865
+ return this.setResumeFromModel(undefined);
25866
+ };
25867
+
25868
+
25869
+ /**
25870
+ * Returns whether this field is set.
25871
+ * @return {boolean}
25872
+ */
25873
+ proto.clarifai.api.TrainInfo.prototype.hasResumeFromModel = function() {
25874
+ return jspb.Message.getField(this, 3) != null;
25875
+ };
25876
+
25877
+
25827
25878
 
25828
25879
 
25829
25880
 
@@ -28217,7 +28268,8 @@ proto.clarifai.api.ModelTypeField.ModelTypeFieldType = {
28217
28268
  ARRAY_OF_MODEL_CONCEPTS: 18,
28218
28269
  DATASET: 19,
28219
28270
  DATASET_VERSION: 20,
28220
- ENCRYPTED_STRING: 21
28271
+ ENCRYPTED_STRING: 21,
28272
+ CHECKPOINT_MODEL: 22
28221
28273
  };
28222
28274
 
28223
28275
  /**
@@ -198,9 +198,6 @@ export class PatchAnnotationsStatusRequest extends jspb.Message {
198
198
  hasUserAppId(): boolean;
199
199
  clearUserAppId(): PatchAnnotationsStatusRequest;
200
200
 
201
- getStatusCode(): proto_clarifai_api_status_status_code_pb.StatusCode;
202
- setStatusCode(value: proto_clarifai_api_status_status_code_pb.StatusCode): PatchAnnotationsStatusRequest;
203
-
204
201
  getUserIdsList(): Array<string>;
205
202
  setUserIdsList(value: Array<string>): PatchAnnotationsStatusRequest;
206
203
  clearUserIdsList(): PatchAnnotationsStatusRequest;
@@ -209,9 +206,17 @@ export class PatchAnnotationsStatusRequest extends jspb.Message {
209
206
  getTaskId(): string;
210
207
  setTaskId(value: string): PatchAnnotationsStatusRequest;
211
208
 
209
+ getStatusCodesList(): Array<proto_clarifai_api_status_status_code_pb.StatusCode>;
210
+ setStatusCodesList(value: Array<proto_clarifai_api_status_status_code_pb.StatusCode>): PatchAnnotationsStatusRequest;
211
+ clearStatusCodesList(): PatchAnnotationsStatusRequest;
212
+ addStatusCodes(value: proto_clarifai_api_status_status_code_pb.StatusCode, index?: number): PatchAnnotationsStatusRequest;
213
+
212
214
  getAction(): string;
213
215
  setAction(value: string): PatchAnnotationsStatusRequest;
214
216
 
217
+ getStatusCode(): proto_clarifai_api_status_status_code_pb.StatusCode;
218
+ setStatusCode(value: proto_clarifai_api_status_status_code_pb.StatusCode): PatchAnnotationsStatusRequest;
219
+
215
220
  serializeBinary(): Uint8Array;
216
221
  toObject(includeInstance?: boolean): PatchAnnotationsStatusRequest.AsObject;
217
222
  static toObject(includeInstance: boolean, msg: PatchAnnotationsStatusRequest): PatchAnnotationsStatusRequest.AsObject;
@@ -223,10 +228,11 @@ export class PatchAnnotationsStatusRequest extends jspb.Message {
223
228
  export namespace PatchAnnotationsStatusRequest {
224
229
  export type AsObject = {
225
230
  userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
226
- statusCode: proto_clarifai_api_status_status_code_pb.StatusCode,
227
231
  userIdsList: Array<string>,
228
232
  taskId: string,
233
+ statusCodesList: Array<proto_clarifai_api_status_status_code_pb.StatusCode>,
229
234
  action: string,
235
+ statusCode: proto_clarifai_api_status_status_code_pb.StatusCode,
230
236
  }
231
237
  }
232
238
 
@@ -500,6 +506,9 @@ export class ListAppsRequest extends jspb.Message {
500
506
  getStarredOnly(): boolean;
501
507
  setStarredOnly(value: boolean): ListAppsRequest;
502
508
 
509
+ getTemplateOnly(): boolean;
510
+ setTemplateOnly(value: boolean): ListAppsRequest;
511
+
503
512
  getSearch(): string;
504
513
  setSearch(value: string): ListAppsRequest;
505
514
 
@@ -535,6 +544,7 @@ export namespace ListAppsRequest {
535
544
  sortByStarCount: boolean,
536
545
  featuredOnly: boolean,
537
546
  starredOnly: boolean,
547
+ templateOnly: boolean,
538
548
  search: string,
539
549
  query: string,
540
550
  name: string,
@@ -921,6 +931,11 @@ export class MultiCollaboratorsResponse extends jspb.Message {
921
931
  clearCollaboratorsList(): MultiCollaboratorsResponse;
922
932
  addCollaborators(value?: proto_clarifai_api_resources_pb.Collaborator, index?: number): proto_clarifai_api_resources_pb.Collaborator;
923
933
 
934
+ getAppOwner(): proto_clarifai_api_resources_pb.User | undefined;
935
+ setAppOwner(value?: proto_clarifai_api_resources_pb.User): MultiCollaboratorsResponse;
936
+ hasAppOwner(): boolean;
937
+ clearAppOwner(): MultiCollaboratorsResponse;
938
+
924
939
  serializeBinary(): Uint8Array;
925
940
  toObject(includeInstance?: boolean): MultiCollaboratorsResponse.AsObject;
926
941
  static toObject(includeInstance: boolean, msg: MultiCollaboratorsResponse): MultiCollaboratorsResponse.AsObject;
@@ -933,6 +948,7 @@ export namespace MultiCollaboratorsResponse {
933
948
  export type AsObject = {
934
949
  status?: proto_clarifai_api_status_status_pb.Status.AsObject,
935
950
  collaboratorsList: Array<proto_clarifai_api_resources_pb.Collaborator.AsObject>,
951
+ appOwner?: proto_clarifai_api_resources_pb.User.AsObject,
936
952
  }
937
953
  }
938
954
 
@@ -948,6 +964,9 @@ export class ListCollaborationsRequest extends jspb.Message {
948
964
  getPerPage(): number;
949
965
  setPerPage(value: number): ListCollaborationsRequest;
950
966
 
967
+ getTemplateOnly(): boolean;
968
+ setTemplateOnly(value: boolean): ListCollaborationsRequest;
969
+
951
970
  serializeBinary(): Uint8Array;
952
971
  toObject(includeInstance?: boolean): ListCollaborationsRequest.AsObject;
953
972
  static toObject(includeInstance: boolean, msg: ListCollaborationsRequest): ListCollaborationsRequest.AsObject;
@@ -961,6 +980,7 @@ export namespace ListCollaborationsRequest {
961
980
  userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
962
981
  page: number,
963
982
  perPage: number,
983
+ templateOnly: boolean,
964
984
  }
965
985
  }
966
986
 
@@ -3579,6 +3599,9 @@ export class GetResourceCountsResponse extends jspb.Message {
3579
3599
  getModules(): number;
3580
3600
  setModules(value: number): GetResourceCountsResponse;
3581
3601
 
3602
+ getInputs(): number;
3603
+ setInputs(value: number): GetResourceCountsResponse;
3604
+
3582
3605
  serializeBinary(): Uint8Array;
3583
3606
  toObject(includeInstance?: boolean): GetResourceCountsResponse.AsObject;
3584
3607
  static toObject(includeInstance: boolean, msg: GetResourceCountsResponse): GetResourceCountsResponse.AsObject;
@@ -3594,6 +3617,7 @@ export namespace GetResourceCountsResponse {
3594
3617
  models: number,
3595
3618
  workflows: number,
3596
3619
  modules: number,
3620
+ inputs: number,
3597
3621
  }
3598
3622
  }
3599
3623