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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 9.10.4
1
+ 9.10.6
@@ -21031,7 +21031,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
21031
21031
  proto.clarifai.api.TrainInfo.toObject = function (includeInstance, msg) {
21032
21032
  var f, obj = {
21033
21033
  params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
21034
- dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f)
21034
+ dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f),
21035
+ resumeFromModel: (f = msg.getResumeFromModel()) && proto.clarifai.api.Model.toObject(includeInstance, f)
21035
21036
  };
21036
21037
  if (includeInstance) {
21037
21038
  obj.$jspbMessageInstance = msg;
@@ -21073,6 +21074,11 @@ proto.clarifai.api.TrainInfo.deserializeBinaryFromReader = function (msg, reader
21073
21074
  reader.readMessage(value, proto.clarifai.api.Dataset.deserializeBinaryFromReader);
21074
21075
  msg.setDataset(value);
21075
21076
  break;
21077
+ case 3:
21078
+ var value = new proto.clarifai.api.Model;
21079
+ reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
21080
+ msg.setResumeFromModel(value);
21081
+ break;
21076
21082
  default:
21077
21083
  reader.skipField();
21078
21084
  break;
@@ -21106,6 +21112,10 @@ proto.clarifai.api.TrainInfo.serializeBinaryToWriter = function (message, writer
21106
21112
  if (f != null) {
21107
21113
  writer.writeMessage(2, f, proto.clarifai.api.Dataset.serializeBinaryToWriter);
21108
21114
  }
21115
+ f = message.getResumeFromModel();
21116
+ if (f != null) {
21117
+ writer.writeMessage(3, f, proto.clarifai.api.Model.serializeBinaryToWriter);
21118
+ }
21109
21119
  };
21110
21120
  /**
21111
21121
  * optional google.protobuf.Struct params = 1;
@@ -21163,6 +21173,34 @@ proto.clarifai.api.TrainInfo.prototype.clearDataset = function () {
21163
21173
  proto.clarifai.api.TrainInfo.prototype.hasDataset = function () {
21164
21174
  return jspb.Message.getField(this, 2) != null;
21165
21175
  };
21176
+ /**
21177
+ * optional Model resume_from_model = 3;
21178
+ * @return {?proto.clarifai.api.Model}
21179
+ */
21180
+ proto.clarifai.api.TrainInfo.prototype.getResumeFromModel = function () {
21181
+ return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 3));
21182
+ };
21183
+ /**
21184
+ * @param {?proto.clarifai.api.Model|undefined} value
21185
+ * @return {!proto.clarifai.api.TrainInfo} returns this
21186
+ */
21187
+ proto.clarifai.api.TrainInfo.prototype.setResumeFromModel = function (value) {
21188
+ return jspb.Message.setWrapperField(this, 3, value);
21189
+ };
21190
+ /**
21191
+ * Clears the message field making it undefined.
21192
+ * @return {!proto.clarifai.api.TrainInfo} returns this
21193
+ */
21194
+ proto.clarifai.api.TrainInfo.prototype.clearResumeFromModel = function () {
21195
+ return this.setResumeFromModel(undefined);
21196
+ };
21197
+ /**
21198
+ * Returns whether this field is set.
21199
+ * @return {boolean}
21200
+ */
21201
+ proto.clarifai.api.TrainInfo.prototype.hasResumeFromModel = function () {
21202
+ return jspb.Message.getField(this, 3) != null;
21203
+ };
21166
21204
  if (jspb.Message.GENERATE_TO_OBJECT) {
21167
21205
  /**
21168
21206
  * Creates an object representation of this proto.
@@ -23051,7 +23089,8 @@ proto.clarifai.api.ModelTypeField.ModelTypeFieldType = {
23051
23089
  ARRAY_OF_MODEL_CONCEPTS: 18,
23052
23090
  DATASET: 19,
23053
23091
  DATASET_VERSION: 20,
23054
- ENCRYPTED_STRING: 21
23092
+ ENCRYPTED_STRING: 21,
23093
+ CHECKPOINT_MODEL: 22
23055
23094
  };
23056
23095
  /**
23057
23096
  * optional string path = 1;
@@ -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.
@@ -21031,7 +21031,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
21031
21031
  proto.clarifai.api.TrainInfo.toObject = function (includeInstance, msg) {
21032
21032
  var f, obj = {
21033
21033
  params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
21034
- dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f)
21034
+ dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f),
21035
+ resumeFromModel: (f = msg.getResumeFromModel()) && proto.clarifai.api.Model.toObject(includeInstance, f)
21035
21036
  };
21036
21037
  if (includeInstance) {
21037
21038
  obj.$jspbMessageInstance = msg;
@@ -21073,6 +21074,11 @@ proto.clarifai.api.TrainInfo.deserializeBinaryFromReader = function (msg, reader
21073
21074
  reader.readMessage(value, proto.clarifai.api.Dataset.deserializeBinaryFromReader);
21074
21075
  msg.setDataset(value);
21075
21076
  break;
21077
+ case 3:
21078
+ var value = new proto.clarifai.api.Model;
21079
+ reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
21080
+ msg.setResumeFromModel(value);
21081
+ break;
21076
21082
  default:
21077
21083
  reader.skipField();
21078
21084
  break;
@@ -21106,6 +21112,10 @@ proto.clarifai.api.TrainInfo.serializeBinaryToWriter = function (message, writer
21106
21112
  if (f != null) {
21107
21113
  writer.writeMessage(2, f, proto.clarifai.api.Dataset.serializeBinaryToWriter);
21108
21114
  }
21115
+ f = message.getResumeFromModel();
21116
+ if (f != null) {
21117
+ writer.writeMessage(3, f, proto.clarifai.api.Model.serializeBinaryToWriter);
21118
+ }
21109
21119
  };
21110
21120
  /**
21111
21121
  * optional google.protobuf.Struct params = 1;
@@ -21163,6 +21173,34 @@ proto.clarifai.api.TrainInfo.prototype.clearDataset = function () {
21163
21173
  proto.clarifai.api.TrainInfo.prototype.hasDataset = function () {
21164
21174
  return jspb.Message.getField(this, 2) != null;
21165
21175
  };
21176
+ /**
21177
+ * optional Model resume_from_model = 3;
21178
+ * @return {?proto.clarifai.api.Model}
21179
+ */
21180
+ proto.clarifai.api.TrainInfo.prototype.getResumeFromModel = function () {
21181
+ return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 3));
21182
+ };
21183
+ /**
21184
+ * @param {?proto.clarifai.api.Model|undefined} value
21185
+ * @return {!proto.clarifai.api.TrainInfo} returns this
21186
+ */
21187
+ proto.clarifai.api.TrainInfo.prototype.setResumeFromModel = function (value) {
21188
+ return jspb.Message.setWrapperField(this, 3, value);
21189
+ };
21190
+ /**
21191
+ * Clears the message field making it undefined.
21192
+ * @return {!proto.clarifai.api.TrainInfo} returns this
21193
+ */
21194
+ proto.clarifai.api.TrainInfo.prototype.clearResumeFromModel = function () {
21195
+ return this.setResumeFromModel(undefined);
21196
+ };
21197
+ /**
21198
+ * Returns whether this field is set.
21199
+ * @return {boolean}
21200
+ */
21201
+ proto.clarifai.api.TrainInfo.prototype.hasResumeFromModel = function () {
21202
+ return jspb.Message.getField(this, 3) != null;
21203
+ };
21166
21204
  if (jspb.Message.GENERATE_TO_OBJECT) {
21167
21205
  /**
21168
21206
  * Creates an object representation of this proto.
@@ -23051,7 +23089,8 @@ proto.clarifai.api.ModelTypeField.ModelTypeFieldType = {
23051
23089
  ARRAY_OF_MODEL_CONCEPTS: 18,
23052
23090
  DATASET: 19,
23053
23091
  DATASET_VERSION: 20,
23054
- ENCRYPTED_STRING: 21
23092
+ ENCRYPTED_STRING: 21,
23093
+ CHECKPOINT_MODEL: 22
23055
23094
  };
23056
23095
  /**
23057
23096
  * optional string path = 1;