clarifai-web-grpc 10.1.5 → 10.2.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.
@@ -99,6 +99,7 @@ goog.exportSymbol('proto.clarifai.api.GetLabelOrderRequest', null, global);
99
99
  goog.exportSymbol('proto.clarifai.api.GetModelRequest', null, global);
100
100
  goog.exportSymbol('proto.clarifai.api.GetModelTypeRequest', null, global);
101
101
  goog.exportSymbol('proto.clarifai.api.GetModelVersionEvaluationRequest', null, global);
102
+ goog.exportSymbol('proto.clarifai.api.GetModelVersionExportRequest', null, global);
102
103
  goog.exportSymbol('proto.clarifai.api.GetModelVersionInputExampleRequest', null, global);
103
104
  goog.exportSymbol('proto.clarifai.api.GetModelVersionMetricsRequest', null, global);
104
105
  goog.exportSymbol('proto.clarifai.api.GetModelVersionRequest', null, global);
@@ -107,6 +108,9 @@ goog.exportSymbol('proto.clarifai.api.GetModuleVersionRequest', null, global);
107
108
  goog.exportSymbol('proto.clarifai.api.GetModuleVersionUsageCountRequest', null, global);
108
109
  goog.exportSymbol('proto.clarifai.api.GetResourceCountsRequest', null, global);
109
110
  goog.exportSymbol('proto.clarifai.api.GetResourceCountsResponse', null, global);
111
+ goog.exportSymbol('proto.clarifai.api.GetResourcePriceRequest', null, global);
112
+ goog.exportSymbol('proto.clarifai.api.GetResourcePriceRequest.ResourceCase', null, global);
113
+ goog.exportSymbol('proto.clarifai.api.GetResourcePriceResponse', null, global);
110
114
  goog.exportSymbol('proto.clarifai.api.GetRunnerRequest', null, global);
111
115
  goog.exportSymbol('proto.clarifai.api.GetSearchRequest', null, global);
112
116
  goog.exportSymbol('proto.clarifai.api.GetStatusCodeRequest', null, global);
@@ -119,6 +123,7 @@ goog.exportSymbol('proto.clarifai.api.GetVideoManifestResponse', null, global);
119
123
  goog.exportSymbol('proto.clarifai.api.GetWorkflowRequest', null, global);
120
124
  goog.exportSymbol('proto.clarifai.api.GetWorkflowVersionRequest', null, global);
121
125
  goog.exportSymbol('proto.clarifai.api.IdUpdateSource', null, global);
126
+ goog.exportSymbol('proto.clarifai.api.LabelSubmitConfig', null, global);
122
127
  goog.exportSymbol('proto.clarifai.api.ListAnnotationFiltersRequest', null, global);
123
128
  goog.exportSymbol('proto.clarifai.api.ListAnnotationSearchMetricsRequest', null, global);
124
129
  goog.exportSymbol('proto.clarifai.api.ListAnnotationWorkersRequest', null, global);
@@ -228,6 +233,7 @@ goog.exportSymbol('proto.clarifai.api.MultiSearchResponse', null, global);
228
233
  goog.exportSymbol('proto.clarifai.api.MultiStatValueAggregateResponse', null, global);
229
234
  goog.exportSymbol('proto.clarifai.api.MultiStatValueResponse', null, global);
230
235
  goog.exportSymbol('proto.clarifai.api.MultiStatusCodeResponse', null, global);
236
+ goog.exportSymbol('proto.clarifai.api.MultiTaskAssignmentResponse', null, global);
231
237
  goog.exportSymbol('proto.clarifai.api.MultiTaskResponse', null, global);
232
238
  goog.exportSymbol('proto.clarifai.api.MultiTrainingTimeEstimateResponse', null, global);
233
239
  goog.exportSymbol('proto.clarifai.api.MultiTrendingMetricsViewResponse', null, global);
@@ -307,6 +313,10 @@ goog.exportSymbol('proto.clarifai.api.PostModelVersionsPublishRequest', null, gl
307
313
  goog.exportSymbol('proto.clarifai.api.PostModelVersionsRequest', null, global);
308
314
  goog.exportSymbol('proto.clarifai.api.PostModelVersionsTrainingTimeEstimateRequest', null, global);
309
315
  goog.exportSymbol('proto.clarifai.api.PostModelVersionsUnPublishRequest', null, global);
316
+ goog.exportSymbol('proto.clarifai.api.PostModelVersionsUploadConfig', null, global);
317
+ goog.exportSymbol('proto.clarifai.api.PostModelVersionsUploadRequest', null, global);
318
+ goog.exportSymbol('proto.clarifai.api.PostModelVersionsUploadRequest.UploadDataCase', null, global);
319
+ goog.exportSymbol('proto.clarifai.api.PostModelVersionsUploadResponse', null, global);
310
320
  goog.exportSymbol('proto.clarifai.api.PostModelsRequest', null, global);
311
321
  goog.exportSymbol('proto.clarifai.api.PostModelsSearchesRequest', null, global);
312
322
  goog.exportSymbol('proto.clarifai.api.PostModuleVersionsRequest', null, global);
@@ -329,7 +339,10 @@ goog.exportSymbol('proto.clarifai.api.PostWorkflowVersionsPublishRequest', null,
329
339
  goog.exportSymbol('proto.clarifai.api.PostWorkflowVersionsUnPublishRequest', null, global);
330
340
  goog.exportSymbol('proto.clarifai.api.PostWorkflowsRequest', null, global);
331
341
  goog.exportSymbol('proto.clarifai.api.PutDatasetVersionExportsRequest', null, global);
342
+ goog.exportSymbol('proto.clarifai.api.PutModelVersionExportsRequest', null, global);
332
343
  goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest', null, global);
344
+ goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase', null, global);
345
+ goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequestAction', null, global);
333
346
  goog.exportSymbol('proto.clarifai.api.PutUploadContentPartsRequest', null, global);
334
347
  goog.exportSymbol('proto.clarifai.api.RunnerItem', null, global);
335
348
  goog.exportSymbol('proto.clarifai.api.RunnerItemOutput', null, global);
@@ -354,6 +367,7 @@ goog.exportSymbol('proto.clarifai.api.SingleKeyResponse', null, global);
354
367
  goog.exportSymbol('proto.clarifai.api.SingleLabelOrderResponse', null, global);
355
368
  goog.exportSymbol('proto.clarifai.api.SingleModelResponse', null, global);
356
369
  goog.exportSymbol('proto.clarifai.api.SingleModelTypeResponse', null, global);
370
+ goog.exportSymbol('proto.clarifai.api.SingleModelVersionExportResponse', null, global);
357
371
  goog.exportSymbol('proto.clarifai.api.SingleModelVersionInputExampleResponse', null, global);
358
372
  goog.exportSymbol('proto.clarifai.api.SingleModelVersionResponse', null, global);
359
373
  goog.exportSymbol('proto.clarifai.api.SingleModuleResponse', null, global);
@@ -1002,6 +1016,48 @@ if (goog.DEBUG && !COMPILED) {
1002
1016
  */
1003
1017
  proto.clarifai.api.MultiCollaborationsResponse.displayName = 'proto.clarifai.api.MultiCollaborationsResponse';
1004
1018
  }
1019
+ /**
1020
+ * Generated by JsPbCodeGenerator.
1021
+ * @param {Array=} opt_data Optional initial data array, typically from a
1022
+ * server response, or constructed directly in Javascript. The array is used
1023
+ * in place and becomes part of the constructed object. It is not cloned.
1024
+ * If no data is provided, the constructed object will be empty, but still
1025
+ * valid.
1026
+ * @extends {jspb.Message}
1027
+ * @constructor
1028
+ */
1029
+ proto.clarifai.api.GetResourcePriceRequest = function(opt_data) {
1030
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_);
1031
+ };
1032
+ goog.inherits(proto.clarifai.api.GetResourcePriceRequest, jspb.Message);
1033
+ if (goog.DEBUG && !COMPILED) {
1034
+ /**
1035
+ * @public
1036
+ * @override
1037
+ */
1038
+ proto.clarifai.api.GetResourcePriceRequest.displayName = 'proto.clarifai.api.GetResourcePriceRequest';
1039
+ }
1040
+ /**
1041
+ * Generated by JsPbCodeGenerator.
1042
+ * @param {Array=} opt_data Optional initial data array, typically from a
1043
+ * server response, or constructed directly in Javascript. The array is used
1044
+ * in place and becomes part of the constructed object. It is not cloned.
1045
+ * If no data is provided, the constructed object will be empty, but still
1046
+ * valid.
1047
+ * @extends {jspb.Message}
1048
+ * @constructor
1049
+ */
1050
+ proto.clarifai.api.GetResourcePriceResponse = function(opt_data) {
1051
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1052
+ };
1053
+ goog.inherits(proto.clarifai.api.GetResourcePriceResponse, jspb.Message);
1054
+ if (goog.DEBUG && !COMPILED) {
1055
+ /**
1056
+ * @public
1057
+ * @override
1058
+ */
1059
+ proto.clarifai.api.GetResourcePriceResponse.displayName = 'proto.clarifai.api.GetResourcePriceResponse';
1060
+ }
1005
1061
  /**
1006
1062
  * Generated by JsPbCodeGenerator.
1007
1063
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3249,6 +3305,132 @@ if (goog.DEBUG && !COMPILED) {
3249
3305
  */
3250
3306
  proto.clarifai.api.PostModelVersionsRequest.displayName = 'proto.clarifai.api.PostModelVersionsRequest';
3251
3307
  }
3308
+ /**
3309
+ * Generated by JsPbCodeGenerator.
3310
+ * @param {Array=} opt_data Optional initial data array, typically from a
3311
+ * server response, or constructed directly in Javascript. The array is used
3312
+ * in place and becomes part of the constructed object. It is not cloned.
3313
+ * If no data is provided, the constructed object will be empty, but still
3314
+ * valid.
3315
+ * @extends {jspb.Message}
3316
+ * @constructor
3317
+ */
3318
+ proto.clarifai.api.PostModelVersionsUploadRequest = function(opt_data) {
3319
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.PostModelVersionsUploadRequest.oneofGroups_);
3320
+ };
3321
+ goog.inherits(proto.clarifai.api.PostModelVersionsUploadRequest, jspb.Message);
3322
+ if (goog.DEBUG && !COMPILED) {
3323
+ /**
3324
+ * @public
3325
+ * @override
3326
+ */
3327
+ proto.clarifai.api.PostModelVersionsUploadRequest.displayName = 'proto.clarifai.api.PostModelVersionsUploadRequest';
3328
+ }
3329
+ /**
3330
+ * Generated by JsPbCodeGenerator.
3331
+ * @param {Array=} opt_data Optional initial data array, typically from a
3332
+ * server response, or constructed directly in Javascript. The array is used
3333
+ * in place and becomes part of the constructed object. It is not cloned.
3334
+ * If no data is provided, the constructed object will be empty, but still
3335
+ * valid.
3336
+ * @extends {jspb.Message}
3337
+ * @constructor
3338
+ */
3339
+ proto.clarifai.api.PostModelVersionsUploadResponse = function(opt_data) {
3340
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3341
+ };
3342
+ goog.inherits(proto.clarifai.api.PostModelVersionsUploadResponse, jspb.Message);
3343
+ if (goog.DEBUG && !COMPILED) {
3344
+ /**
3345
+ * @public
3346
+ * @override
3347
+ */
3348
+ proto.clarifai.api.PostModelVersionsUploadResponse.displayName = 'proto.clarifai.api.PostModelVersionsUploadResponse';
3349
+ }
3350
+ /**
3351
+ * Generated by JsPbCodeGenerator.
3352
+ * @param {Array=} opt_data Optional initial data array, typically from a
3353
+ * server response, or constructed directly in Javascript. The array is used
3354
+ * in place and becomes part of the constructed object. It is not cloned.
3355
+ * If no data is provided, the constructed object will be empty, but still
3356
+ * valid.
3357
+ * @extends {jspb.Message}
3358
+ * @constructor
3359
+ */
3360
+ proto.clarifai.api.PostModelVersionsUploadConfig = function(opt_data) {
3361
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3362
+ };
3363
+ goog.inherits(proto.clarifai.api.PostModelVersionsUploadConfig, jspb.Message);
3364
+ if (goog.DEBUG && !COMPILED) {
3365
+ /**
3366
+ * @public
3367
+ * @override
3368
+ */
3369
+ proto.clarifai.api.PostModelVersionsUploadConfig.displayName = 'proto.clarifai.api.PostModelVersionsUploadConfig';
3370
+ }
3371
+ /**
3372
+ * Generated by JsPbCodeGenerator.
3373
+ * @param {Array=} opt_data Optional initial data array, typically from a
3374
+ * server response, or constructed directly in Javascript. The array is used
3375
+ * in place and becomes part of the constructed object. It is not cloned.
3376
+ * If no data is provided, the constructed object will be empty, but still
3377
+ * valid.
3378
+ * @extends {jspb.Message}
3379
+ * @constructor
3380
+ */
3381
+ proto.clarifai.api.PutModelVersionExportsRequest = function(opt_data) {
3382
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3383
+ };
3384
+ goog.inherits(proto.clarifai.api.PutModelVersionExportsRequest, jspb.Message);
3385
+ if (goog.DEBUG && !COMPILED) {
3386
+ /**
3387
+ * @public
3388
+ * @override
3389
+ */
3390
+ proto.clarifai.api.PutModelVersionExportsRequest.displayName = 'proto.clarifai.api.PutModelVersionExportsRequest';
3391
+ }
3392
+ /**
3393
+ * Generated by JsPbCodeGenerator.
3394
+ * @param {Array=} opt_data Optional initial data array, typically from a
3395
+ * server response, or constructed directly in Javascript. The array is used
3396
+ * in place and becomes part of the constructed object. It is not cloned.
3397
+ * If no data is provided, the constructed object will be empty, but still
3398
+ * valid.
3399
+ * @extends {jspb.Message}
3400
+ * @constructor
3401
+ */
3402
+ proto.clarifai.api.GetModelVersionExportRequest = function(opt_data) {
3403
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3404
+ };
3405
+ goog.inherits(proto.clarifai.api.GetModelVersionExportRequest, jspb.Message);
3406
+ if (goog.DEBUG && !COMPILED) {
3407
+ /**
3408
+ * @public
3409
+ * @override
3410
+ */
3411
+ proto.clarifai.api.GetModelVersionExportRequest.displayName = 'proto.clarifai.api.GetModelVersionExportRequest';
3412
+ }
3413
+ /**
3414
+ * Generated by JsPbCodeGenerator.
3415
+ * @param {Array=} opt_data Optional initial data array, typically from a
3416
+ * server response, or constructed directly in Javascript. The array is used
3417
+ * in place and becomes part of the constructed object. It is not cloned.
3418
+ * If no data is provided, the constructed object will be empty, but still
3419
+ * valid.
3420
+ * @extends {jspb.Message}
3421
+ * @constructor
3422
+ */
3423
+ proto.clarifai.api.SingleModelVersionExportResponse = function(opt_data) {
3424
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3425
+ };
3426
+ goog.inherits(proto.clarifai.api.SingleModelVersionExportResponse, jspb.Message);
3427
+ if (goog.DEBUG && !COMPILED) {
3428
+ /**
3429
+ * @public
3430
+ * @override
3431
+ */
3432
+ proto.clarifai.api.SingleModelVersionExportResponse.displayName = 'proto.clarifai.api.SingleModelVersionExportResponse';
3433
+ }
3252
3434
  /**
3253
3435
  * Generated by JsPbCodeGenerator.
3254
3436
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6452,7 +6634,7 @@ if (goog.DEBUG && !COMPILED) {
6452
6634
  * @constructor
6453
6635
  */
6454
6636
  proto.clarifai.api.PutTaskAssignmentsRequest = function(opt_data) {
6455
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
6637
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_);
6456
6638
  };
6457
6639
  goog.inherits(proto.clarifai.api.PutTaskAssignmentsRequest, jspb.Message);
6458
6640
  if (goog.DEBUG && !COMPILED) {
@@ -6462,6 +6644,48 @@ if (goog.DEBUG && !COMPILED) {
6462
6644
  */
6463
6645
  proto.clarifai.api.PutTaskAssignmentsRequest.displayName = 'proto.clarifai.api.PutTaskAssignmentsRequest';
6464
6646
  }
6647
+ /**
6648
+ * Generated by JsPbCodeGenerator.
6649
+ * @param {Array=} opt_data Optional initial data array, typically from a
6650
+ * server response, or constructed directly in Javascript. The array is used
6651
+ * in place and becomes part of the constructed object. It is not cloned.
6652
+ * If no data is provided, the constructed object will be empty, but still
6653
+ * valid.
6654
+ * @extends {jspb.Message}
6655
+ * @constructor
6656
+ */
6657
+ proto.clarifai.api.LabelSubmitConfig = function(opt_data) {
6658
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.LabelSubmitConfig.repeatedFields_, null);
6659
+ };
6660
+ goog.inherits(proto.clarifai.api.LabelSubmitConfig, jspb.Message);
6661
+ if (goog.DEBUG && !COMPILED) {
6662
+ /**
6663
+ * @public
6664
+ * @override
6665
+ */
6666
+ proto.clarifai.api.LabelSubmitConfig.displayName = 'proto.clarifai.api.LabelSubmitConfig';
6667
+ }
6668
+ /**
6669
+ * Generated by JsPbCodeGenerator.
6670
+ * @param {Array=} opt_data Optional initial data array, typically from a
6671
+ * server response, or constructed directly in Javascript. The array is used
6672
+ * in place and becomes part of the constructed object. It is not cloned.
6673
+ * If no data is provided, the constructed object will be empty, but still
6674
+ * valid.
6675
+ * @extends {jspb.Message}
6676
+ * @constructor
6677
+ */
6678
+ proto.clarifai.api.MultiTaskAssignmentResponse = function(opt_data) {
6679
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiTaskAssignmentResponse.repeatedFields_, null);
6680
+ };
6681
+ goog.inherits(proto.clarifai.api.MultiTaskAssignmentResponse, jspb.Message);
6682
+ if (goog.DEBUG && !COMPILED) {
6683
+ /**
6684
+ * @public
6685
+ * @override
6686
+ */
6687
+ proto.clarifai.api.MultiTaskAssignmentResponse.displayName = 'proto.clarifai.api.MultiTaskAssignmentResponse';
6688
+ }
6465
6689
  /**
6466
6690
  * Generated by JsPbCodeGenerator.
6467
6691
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -15040,6 +15264,32 @@ proto.clarifai.api.MultiCollaborationsResponse.prototype.clearCollaborationsList
15040
15264
 
15041
15265
 
15042
15266
 
15267
+ /**
15268
+ * Oneof group definitions for this message. Each group defines the field
15269
+ * numbers belonging to that group. When of these fields' value is set, all
15270
+ * other fields in the group are cleared. During deserialization, if multiple
15271
+ * fields are encountered for a group, only the last value seen will be kept.
15272
+ * @private {!Array<!Array<number>>}
15273
+ * @const
15274
+ */
15275
+ proto.clarifai.api.GetResourcePriceRequest.oneofGroups_ = [[2,3]];
15276
+
15277
+ /**
15278
+ * @enum {number}
15279
+ */
15280
+ proto.clarifai.api.GetResourcePriceRequest.ResourceCase = {
15281
+ RESOURCE_NOT_SET: 0,
15282
+ MODEL: 2,
15283
+ WORKFLOW: 3
15284
+ };
15285
+
15286
+ /**
15287
+ * @return {proto.clarifai.api.GetResourcePriceRequest.ResourceCase}
15288
+ */
15289
+ proto.clarifai.api.GetResourcePriceRequest.prototype.getResourceCase = function() {
15290
+ return /** @type {proto.clarifai.api.GetResourcePriceRequest.ResourceCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_[0]));
15291
+ };
15292
+
15043
15293
 
15044
15294
 
15045
15295
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -15055,8 +15305,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
15055
15305
  * http://goto/soy-param-migration
15056
15306
  * @return {!Object}
15057
15307
  */
15058
- proto.clarifai.api.GetStatusCodeRequest.prototype.toObject = function(opt_includeInstance) {
15059
- return proto.clarifai.api.GetStatusCodeRequest.toObject(opt_includeInstance, this);
15308
+ proto.clarifai.api.GetResourcePriceRequest.prototype.toObject = function(opt_includeInstance) {
15309
+ return proto.clarifai.api.GetResourcePriceRequest.toObject(opt_includeInstance, this);
15060
15310
  };
15061
15311
 
15062
15312
 
@@ -15065,13 +15315,15 @@ proto.clarifai.api.GetStatusCodeRequest.prototype.toObject = function(opt_includ
15065
15315
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15066
15316
  * the JSPB instance for transitional soy proto support:
15067
15317
  * http://goto/soy-param-migration
15068
- * @param {!proto.clarifai.api.GetStatusCodeRequest} msg The msg instance to transform.
15318
+ * @param {!proto.clarifai.api.GetResourcePriceRequest} msg The msg instance to transform.
15069
15319
  * @return {!Object}
15070
15320
  * @suppress {unusedLocalVariables} f is only used for nested messages
15071
15321
  */
15072
- proto.clarifai.api.GetStatusCodeRequest.toObject = function(includeInstance, msg) {
15322
+ proto.clarifai.api.GetResourcePriceRequest.toObject = function(includeInstance, msg) {
15073
15323
  var f, obj = {
15074
- statusCodeId: jspb.Message.getFieldWithDefault(msg, 1, "")
15324
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
15325
+ model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
15326
+ workflow: (f = msg.getWorkflow()) && proto_clarifai_api_resources_pb.Workflow.toObject(includeInstance, f)
15075
15327
  };
15076
15328
 
15077
15329
  if (includeInstance) {
@@ -15085,23 +15337,23 @@ proto.clarifai.api.GetStatusCodeRequest.toObject = function(includeInstance, msg
15085
15337
  /**
15086
15338
  * Deserializes binary data (in protobuf wire format).
15087
15339
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
15088
- * @return {!proto.clarifai.api.GetStatusCodeRequest}
15340
+ * @return {!proto.clarifai.api.GetResourcePriceRequest}
15089
15341
  */
15090
- proto.clarifai.api.GetStatusCodeRequest.deserializeBinary = function(bytes) {
15342
+ proto.clarifai.api.GetResourcePriceRequest.deserializeBinary = function(bytes) {
15091
15343
  var reader = new jspb.BinaryReader(bytes);
15092
- var msg = new proto.clarifai.api.GetStatusCodeRequest;
15093
- return proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader(msg, reader);
15344
+ var msg = new proto.clarifai.api.GetResourcePriceRequest;
15345
+ return proto.clarifai.api.GetResourcePriceRequest.deserializeBinaryFromReader(msg, reader);
15094
15346
  };
15095
15347
 
15096
15348
 
15097
15349
  /**
15098
15350
  * Deserializes binary data (in protobuf wire format) from the
15099
15351
  * given reader into the given message object.
15100
- * @param {!proto.clarifai.api.GetStatusCodeRequest} msg The message object to deserialize into.
15352
+ * @param {!proto.clarifai.api.GetResourcePriceRequest} msg The message object to deserialize into.
15101
15353
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15102
- * @return {!proto.clarifai.api.GetStatusCodeRequest}
15354
+ * @return {!proto.clarifai.api.GetResourcePriceRequest}
15103
15355
  */
15104
- proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
15356
+ proto.clarifai.api.GetResourcePriceRequest.deserializeBinaryFromReader = function(msg, reader) {
15105
15357
  while (reader.nextField()) {
15106
15358
  if (reader.isEndGroup()) {
15107
15359
  break;
@@ -15109,8 +15361,19 @@ proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(m
15109
15361
  var field = reader.getFieldNumber();
15110
15362
  switch (field) {
15111
15363
  case 1:
15112
- var value = /** @type {string} */ (reader.readString());
15113
- msg.setStatusCodeId(value);
15364
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
15365
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
15366
+ msg.setUserAppId(value);
15367
+ break;
15368
+ case 2:
15369
+ var value = new proto_clarifai_api_resources_pb.Model;
15370
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader);
15371
+ msg.setModel(value);
15372
+ break;
15373
+ case 3:
15374
+ var value = new proto_clarifai_api_resources_pb.Workflow;
15375
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader);
15376
+ msg.setWorkflow(value);
15114
15377
  break;
15115
15378
  default:
15116
15379
  reader.skipField();
@@ -15125,9 +15388,9 @@ proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(m
15125
15388
  * Serializes the message to binary data (in protobuf wire format).
15126
15389
  * @return {!Uint8Array}
15127
15390
  */
15128
- proto.clarifai.api.GetStatusCodeRequest.prototype.serializeBinary = function() {
15391
+ proto.clarifai.api.GetResourcePriceRequest.prototype.serializeBinary = function() {
15129
15392
  var writer = new jspb.BinaryWriter();
15130
- proto.clarifai.api.GetStatusCodeRequest.serializeBinaryToWriter(this, writer);
15393
+ proto.clarifai.api.GetResourcePriceRequest.serializeBinaryToWriter(this, writer);
15131
15394
  return writer.getResultBuffer();
15132
15395
  };
15133
15396
 
@@ -15135,138 +15398,147 @@ proto.clarifai.api.GetStatusCodeRequest.prototype.serializeBinary = function() {
15135
15398
  /**
15136
15399
  * Serializes the given message to binary data (in protobuf wire
15137
15400
  * format), writing to the given BinaryWriter.
15138
- * @param {!proto.clarifai.api.GetStatusCodeRequest} message
15401
+ * @param {!proto.clarifai.api.GetResourcePriceRequest} message
15139
15402
  * @param {!jspb.BinaryWriter} writer
15140
15403
  * @suppress {unusedLocalVariables} f is only used for nested messages
15141
15404
  */
15142
- proto.clarifai.api.GetStatusCodeRequest.serializeBinaryToWriter = function(message, writer) {
15405
+ proto.clarifai.api.GetResourcePriceRequest.serializeBinaryToWriter = function(message, writer) {
15143
15406
  var f = undefined;
15144
- f = message.getStatusCodeId();
15145
- if (f.length > 0) {
15146
- writer.writeString(
15407
+ f = message.getUserAppId();
15408
+ if (f != null) {
15409
+ writer.writeMessage(
15147
15410
  1,
15148
- f
15411
+ f,
15412
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
15413
+ );
15414
+ }
15415
+ f = message.getModel();
15416
+ if (f != null) {
15417
+ writer.writeMessage(
15418
+ 2,
15419
+ f,
15420
+ proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter
15421
+ );
15422
+ }
15423
+ f = message.getWorkflow();
15424
+ if (f != null) {
15425
+ writer.writeMessage(
15426
+ 3,
15427
+ f,
15428
+ proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter
15149
15429
  );
15150
15430
  }
15151
15431
  };
15152
15432
 
15153
15433
 
15154
15434
  /**
15155
- * optional string status_code_id = 1;
15156
- * @return {string}
15435
+ * optional UserAppIDSet user_app_id = 1;
15436
+ * @return {?proto.clarifai.api.UserAppIDSet}
15157
15437
  */
15158
- proto.clarifai.api.GetStatusCodeRequest.prototype.getStatusCodeId = function() {
15159
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15438
+ proto.clarifai.api.GetResourcePriceRequest.prototype.getUserAppId = function() {
15439
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
15440
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
15160
15441
  };
15161
15442
 
15162
15443
 
15163
15444
  /**
15164
- * @param {string} value
15165
- * @return {!proto.clarifai.api.GetStatusCodeRequest} returns this
15166
- */
15167
- proto.clarifai.api.GetStatusCodeRequest.prototype.setStatusCodeId = function(value) {
15168
- return jspb.Message.setProto3StringField(this, 1, value);
15445
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
15446
+ * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15447
+ */
15448
+ proto.clarifai.api.GetResourcePriceRequest.prototype.setUserAppId = function(value) {
15449
+ return jspb.Message.setWrapperField(this, 1, value);
15169
15450
  };
15170
15451
 
15171
15452
 
15453
+ /**
15454
+ * Clears the message field making it undefined.
15455
+ * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15456
+ */
15457
+ proto.clarifai.api.GetResourcePriceRequest.prototype.clearUserAppId = function() {
15458
+ return this.setUserAppId(undefined);
15459
+ };
15172
15460
 
15173
15461
 
15174
-
15175
- if (jspb.Message.GENERATE_TO_OBJECT) {
15176
15462
  /**
15177
- * Creates an object representation of this proto.
15178
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
15179
- * Optional fields that are not set will be set to undefined.
15180
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15181
- * For the list of reserved names please see:
15182
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15183
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15184
- * JSPB instance for transitional soy proto support:
15185
- * http://goto/soy-param-migration
15186
- * @return {!Object}
15463
+ * Returns whether this field is set.
15464
+ * @return {boolean}
15187
15465
  */
15188
- proto.clarifai.api.ListStatusCodesRequest.prototype.toObject = function(opt_includeInstance) {
15189
- return proto.clarifai.api.ListStatusCodesRequest.toObject(opt_includeInstance, this);
15466
+ proto.clarifai.api.GetResourcePriceRequest.prototype.hasUserAppId = function() {
15467
+ return jspb.Message.getField(this, 1) != null;
15190
15468
  };
15191
15469
 
15192
15470
 
15193
15471
  /**
15194
- * Static version of the {@see toObject} method.
15195
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15196
- * the JSPB instance for transitional soy proto support:
15197
- * http://goto/soy-param-migration
15198
- * @param {!proto.clarifai.api.ListStatusCodesRequest} msg The msg instance to transform.
15199
- * @return {!Object}
15200
- * @suppress {unusedLocalVariables} f is only used for nested messages
15472
+ * optional Model model = 2;
15473
+ * @return {?proto.clarifai.api.Model}
15201
15474
  */
15202
- proto.clarifai.api.ListStatusCodesRequest.toObject = function(includeInstance, msg) {
15203
- var f, obj = {
15475
+ proto.clarifai.api.GetResourcePriceRequest.prototype.getModel = function() {
15476
+ return /** @type{?proto.clarifai.api.Model} */ (
15477
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 2));
15478
+ };
15204
15479
 
15205
- };
15206
15480
 
15207
- if (includeInstance) {
15208
- obj.$jspbMessageInstance = msg;
15209
- }
15210
- return obj;
15481
+ /**
15482
+ * @param {?proto.clarifai.api.Model|undefined} value
15483
+ * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15484
+ */
15485
+ proto.clarifai.api.GetResourcePriceRequest.prototype.setModel = function(value) {
15486
+ return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_[0], value);
15211
15487
  };
15212
- }
15213
15488
 
15214
15489
 
15215
15490
  /**
15216
- * Deserializes binary data (in protobuf wire format).
15217
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
15218
- * @return {!proto.clarifai.api.ListStatusCodesRequest}
15491
+ * Clears the message field making it undefined.
15492
+ * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15219
15493
  */
15220
- proto.clarifai.api.ListStatusCodesRequest.deserializeBinary = function(bytes) {
15221
- var reader = new jspb.BinaryReader(bytes);
15222
- var msg = new proto.clarifai.api.ListStatusCodesRequest;
15223
- return proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader(msg, reader);
15494
+ proto.clarifai.api.GetResourcePriceRequest.prototype.clearModel = function() {
15495
+ return this.setModel(undefined);
15224
15496
  };
15225
15497
 
15226
15498
 
15227
15499
  /**
15228
- * Deserializes binary data (in protobuf wire format) from the
15229
- * given reader into the given message object.
15230
- * @param {!proto.clarifai.api.ListStatusCodesRequest} msg The message object to deserialize into.
15231
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15232
- * @return {!proto.clarifai.api.ListStatusCodesRequest}
15500
+ * Returns whether this field is set.
15501
+ * @return {boolean}
15233
15502
  */
15234
- proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader = function(msg, reader) {
15235
- while (reader.nextField()) {
15236
- if (reader.isEndGroup()) {
15237
- break;
15238
- }
15239
- var field = reader.getFieldNumber();
15240
- switch (field) {
15241
- default:
15242
- reader.skipField();
15243
- break;
15244
- }
15245
- }
15246
- return msg;
15503
+ proto.clarifai.api.GetResourcePriceRequest.prototype.hasModel = function() {
15504
+ return jspb.Message.getField(this, 2) != null;
15247
15505
  };
15248
15506
 
15249
15507
 
15250
15508
  /**
15251
- * Serializes the message to binary data (in protobuf wire format).
15252
- * @return {!Uint8Array}
15509
+ * optional Workflow workflow = 3;
15510
+ * @return {?proto.clarifai.api.Workflow}
15253
15511
  */
15254
- proto.clarifai.api.ListStatusCodesRequest.prototype.serializeBinary = function() {
15255
- var writer = new jspb.BinaryWriter();
15256
- proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter(this, writer);
15257
- return writer.getResultBuffer();
15512
+ proto.clarifai.api.GetResourcePriceRequest.prototype.getWorkflow = function() {
15513
+ return /** @type{?proto.clarifai.api.Workflow} */ (
15514
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 3));
15258
15515
  };
15259
15516
 
15260
15517
 
15261
15518
  /**
15262
- * Serializes the given message to binary data (in protobuf wire
15263
- * format), writing to the given BinaryWriter.
15264
- * @param {!proto.clarifai.api.ListStatusCodesRequest} message
15265
- * @param {!jspb.BinaryWriter} writer
15266
- * @suppress {unusedLocalVariables} f is only used for nested messages
15519
+ * @param {?proto.clarifai.api.Workflow|undefined} value
15520
+ * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15521
+ */
15522
+ proto.clarifai.api.GetResourcePriceRequest.prototype.setWorkflow = function(value) {
15523
+ return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_[0], value);
15524
+ };
15525
+
15526
+
15527
+ /**
15528
+ * Clears the message field making it undefined.
15529
+ * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15267
15530
  */
15268
- proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter = function(message, writer) {
15269
- var f = undefined;
15531
+ proto.clarifai.api.GetResourcePriceRequest.prototype.clearWorkflow = function() {
15532
+ return this.setWorkflow(undefined);
15533
+ };
15534
+
15535
+
15536
+ /**
15537
+ * Returns whether this field is set.
15538
+ * @return {boolean}
15539
+ */
15540
+ proto.clarifai.api.GetResourcePriceRequest.prototype.hasWorkflow = function() {
15541
+ return jspb.Message.getField(this, 3) != null;
15270
15542
  };
15271
15543
 
15272
15544
 
@@ -15286,8 +15558,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
15286
15558
  * http://goto/soy-param-migration
15287
15559
  * @return {!Object}
15288
15560
  */
15289
- proto.clarifai.api.SingleStatusCodeResponse.prototype.toObject = function(opt_includeInstance) {
15290
- return proto.clarifai.api.SingleStatusCodeResponse.toObject(opt_includeInstance, this);
15561
+ proto.clarifai.api.GetResourcePriceResponse.prototype.toObject = function(opt_includeInstance) {
15562
+ return proto.clarifai.api.GetResourcePriceResponse.toObject(opt_includeInstance, this);
15291
15563
  };
15292
15564
 
15293
15565
 
@@ -15296,13 +15568,14 @@ proto.clarifai.api.SingleStatusCodeResponse.prototype.toObject = function(opt_in
15296
15568
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15297
15569
  * the JSPB instance for transitional soy proto support:
15298
15570
  * http://goto/soy-param-migration
15299
- * @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The msg instance to transform.
15571
+ * @param {!proto.clarifai.api.GetResourcePriceResponse} msg The msg instance to transform.
15300
15572
  * @return {!Object}
15301
15573
  * @suppress {unusedLocalVariables} f is only used for nested messages
15302
15574
  */
15303
- proto.clarifai.api.SingleStatusCodeResponse.toObject = function(includeInstance, msg) {
15575
+ proto.clarifai.api.GetResourcePriceResponse.toObject = function(includeInstance, msg) {
15304
15576
  var f, obj = {
15305
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
15577
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
15578
+ price: jspb.Message.getFieldWithDefault(msg, 2, 0)
15306
15579
  };
15307
15580
 
15308
15581
  if (includeInstance) {
@@ -15316,23 +15589,23 @@ proto.clarifai.api.SingleStatusCodeResponse.toObject = function(includeInstance,
15316
15589
  /**
15317
15590
  * Deserializes binary data (in protobuf wire format).
15318
15591
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
15319
- * @return {!proto.clarifai.api.SingleStatusCodeResponse}
15592
+ * @return {!proto.clarifai.api.GetResourcePriceResponse}
15320
15593
  */
15321
- proto.clarifai.api.SingleStatusCodeResponse.deserializeBinary = function(bytes) {
15594
+ proto.clarifai.api.GetResourcePriceResponse.deserializeBinary = function(bytes) {
15322
15595
  var reader = new jspb.BinaryReader(bytes);
15323
- var msg = new proto.clarifai.api.SingleStatusCodeResponse;
15324
- return proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader(msg, reader);
15596
+ var msg = new proto.clarifai.api.GetResourcePriceResponse;
15597
+ return proto.clarifai.api.GetResourcePriceResponse.deserializeBinaryFromReader(msg, reader);
15325
15598
  };
15326
15599
 
15327
15600
 
15328
15601
  /**
15329
15602
  * Deserializes binary data (in protobuf wire format) from the
15330
15603
  * given reader into the given message object.
15331
- * @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The message object to deserialize into.
15604
+ * @param {!proto.clarifai.api.GetResourcePriceResponse} msg The message object to deserialize into.
15332
15605
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15333
- * @return {!proto.clarifai.api.SingleStatusCodeResponse}
15606
+ * @return {!proto.clarifai.api.GetResourcePriceResponse}
15334
15607
  */
15335
- proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
15608
+ proto.clarifai.api.GetResourcePriceResponse.deserializeBinaryFromReader = function(msg, reader) {
15336
15609
  while (reader.nextField()) {
15337
15610
  if (reader.isEndGroup()) {
15338
15611
  break;
@@ -15344,6 +15617,10 @@ proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader = functi
15344
15617
  reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
15345
15618
  msg.setStatus(value);
15346
15619
  break;
15620
+ case 2:
15621
+ var value = /** @type {number} */ (reader.readInt64());
15622
+ msg.setPrice(value);
15623
+ break;
15347
15624
  default:
15348
15625
  reader.skipField();
15349
15626
  break;
@@ -15357,9 +15634,9 @@ proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader = functi
15357
15634
  * Serializes the message to binary data (in protobuf wire format).
15358
15635
  * @return {!Uint8Array}
15359
15636
  */
15360
- proto.clarifai.api.SingleStatusCodeResponse.prototype.serializeBinary = function() {
15637
+ proto.clarifai.api.GetResourcePriceResponse.prototype.serializeBinary = function() {
15361
15638
  var writer = new jspb.BinaryWriter();
15362
- proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter(this, writer);
15639
+ proto.clarifai.api.GetResourcePriceResponse.serializeBinaryToWriter(this, writer);
15363
15640
  return writer.getResultBuffer();
15364
15641
  };
15365
15642
 
@@ -15367,11 +15644,11 @@ proto.clarifai.api.SingleStatusCodeResponse.prototype.serializeBinary = function
15367
15644
  /**
15368
15645
  * Serializes the given message to binary data (in protobuf wire
15369
15646
  * format), writing to the given BinaryWriter.
15370
- * @param {!proto.clarifai.api.SingleStatusCodeResponse} message
15647
+ * @param {!proto.clarifai.api.GetResourcePriceResponse} message
15371
15648
  * @param {!jspb.BinaryWriter} writer
15372
15649
  * @suppress {unusedLocalVariables} f is only used for nested messages
15373
15650
  */
15374
- proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter = function(message, writer) {
15651
+ proto.clarifai.api.GetResourcePriceResponse.serializeBinaryToWriter = function(message, writer) {
15375
15652
  var f = undefined;
15376
15653
  f = message.getStatus();
15377
15654
  if (f != null) {
@@ -15381,6 +15658,13 @@ proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter = function(m
15381
15658
  proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
15382
15659
  );
15383
15660
  }
15661
+ f = message.getPrice();
15662
+ if (f !== 0) {
15663
+ writer.writeInt64(
15664
+ 2,
15665
+ f
15666
+ );
15667
+ }
15384
15668
  };
15385
15669
 
15386
15670
 
@@ -15388,7 +15672,7 @@ proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter = function(m
15388
15672
  * optional status.Status status = 1;
15389
15673
  * @return {?proto.clarifai.api.status.Status}
15390
15674
  */
15391
- proto.clarifai.api.SingleStatusCodeResponse.prototype.getStatus = function() {
15675
+ proto.clarifai.api.GetResourcePriceResponse.prototype.getStatus = function() {
15392
15676
  return /** @type{?proto.clarifai.api.status.Status} */ (
15393
15677
  jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
15394
15678
  };
@@ -15396,18 +15680,18 @@ proto.clarifai.api.SingleStatusCodeResponse.prototype.getStatus = function() {
15396
15680
 
15397
15681
  /**
15398
15682
  * @param {?proto.clarifai.api.status.Status|undefined} value
15399
- * @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this
15683
+ * @return {!proto.clarifai.api.GetResourcePriceResponse} returns this
15400
15684
  */
15401
- proto.clarifai.api.SingleStatusCodeResponse.prototype.setStatus = function(value) {
15685
+ proto.clarifai.api.GetResourcePriceResponse.prototype.setStatus = function(value) {
15402
15686
  return jspb.Message.setWrapperField(this, 1, value);
15403
15687
  };
15404
15688
 
15405
15689
 
15406
15690
  /**
15407
15691
  * Clears the message field making it undefined.
15408
- * @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this
15692
+ * @return {!proto.clarifai.api.GetResourcePriceResponse} returns this
15409
15693
  */
15410
- proto.clarifai.api.SingleStatusCodeResponse.prototype.clearStatus = function() {
15694
+ proto.clarifai.api.GetResourcePriceResponse.prototype.clearStatus = function() {
15411
15695
  return this.setStatus(undefined);
15412
15696
  };
15413
15697
 
@@ -15416,18 +15700,29 @@ proto.clarifai.api.SingleStatusCodeResponse.prototype.clearStatus = function() {
15416
15700
  * Returns whether this field is set.
15417
15701
  * @return {boolean}
15418
15702
  */
15419
- proto.clarifai.api.SingleStatusCodeResponse.prototype.hasStatus = function() {
15703
+ proto.clarifai.api.GetResourcePriceResponse.prototype.hasStatus = function() {
15420
15704
  return jspb.Message.getField(this, 1) != null;
15421
15705
  };
15422
15706
 
15423
15707
 
15708
+ /**
15709
+ * optional int64 price = 2;
15710
+ * @return {number}
15711
+ */
15712
+ proto.clarifai.api.GetResourcePriceResponse.prototype.getPrice = function() {
15713
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15714
+ };
15715
+
15424
15716
 
15425
15717
  /**
15426
- * List of repeated fields within this message type.
15427
- * @private {!Array<number>}
15428
- * @const
15718
+ * @param {number} value
15719
+ * @return {!proto.clarifai.api.GetResourcePriceResponse} returns this
15429
15720
  */
15430
- proto.clarifai.api.MultiStatusCodeResponse.repeatedFields_ = [2];
15721
+ proto.clarifai.api.GetResourcePriceResponse.prototype.setPrice = function(value) {
15722
+ return jspb.Message.setProto3IntField(this, 2, value);
15723
+ };
15724
+
15725
+
15431
15726
 
15432
15727
 
15433
15728
 
@@ -15444,8 +15739,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
15444
15739
  * http://goto/soy-param-migration
15445
15740
  * @return {!Object}
15446
15741
  */
15447
- proto.clarifai.api.MultiStatusCodeResponse.prototype.toObject = function(opt_includeInstance) {
15448
- return proto.clarifai.api.MultiStatusCodeResponse.toObject(opt_includeInstance, this);
15742
+ proto.clarifai.api.GetStatusCodeRequest.prototype.toObject = function(opt_includeInstance) {
15743
+ return proto.clarifai.api.GetStatusCodeRequest.toObject(opt_includeInstance, this);
15449
15744
  };
15450
15745
 
15451
15746
 
@@ -15454,15 +15749,13 @@ proto.clarifai.api.MultiStatusCodeResponse.prototype.toObject = function(opt_inc
15454
15749
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15455
15750
  * the JSPB instance for transitional soy proto support:
15456
15751
  * http://goto/soy-param-migration
15457
- * @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The msg instance to transform.
15752
+ * @param {!proto.clarifai.api.GetStatusCodeRequest} msg The msg instance to transform.
15458
15753
  * @return {!Object}
15459
15754
  * @suppress {unusedLocalVariables} f is only used for nested messages
15460
15755
  */
15461
- proto.clarifai.api.MultiStatusCodeResponse.toObject = function(includeInstance, msg) {
15756
+ proto.clarifai.api.GetStatusCodeRequest.toObject = function(includeInstance, msg) {
15462
15757
  var f, obj = {
15463
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
15464
- statusesList: jspb.Message.toObjectList(msg.getStatusesList(),
15465
- proto_clarifai_api_status_status_pb.Status.toObject, includeInstance)
15758
+ statusCodeId: jspb.Message.getFieldWithDefault(msg, 1, "")
15466
15759
  };
15467
15760
 
15468
15761
  if (includeInstance) {
@@ -15476,23 +15769,23 @@ proto.clarifai.api.MultiStatusCodeResponse.toObject = function(includeInstance,
15476
15769
  /**
15477
15770
  * Deserializes binary data (in protobuf wire format).
15478
15771
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
15479
- * @return {!proto.clarifai.api.MultiStatusCodeResponse}
15772
+ * @return {!proto.clarifai.api.GetStatusCodeRequest}
15480
15773
  */
15481
- proto.clarifai.api.MultiStatusCodeResponse.deserializeBinary = function(bytes) {
15774
+ proto.clarifai.api.GetStatusCodeRequest.deserializeBinary = function(bytes) {
15482
15775
  var reader = new jspb.BinaryReader(bytes);
15483
- var msg = new proto.clarifai.api.MultiStatusCodeResponse;
15484
- return proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader(msg, reader);
15776
+ var msg = new proto.clarifai.api.GetStatusCodeRequest;
15777
+ return proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader(msg, reader);
15485
15778
  };
15486
15779
 
15487
15780
 
15488
15781
  /**
15489
15782
  * Deserializes binary data (in protobuf wire format) from the
15490
15783
  * given reader into the given message object.
15491
- * @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The message object to deserialize into.
15784
+ * @param {!proto.clarifai.api.GetStatusCodeRequest} msg The message object to deserialize into.
15492
15785
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15493
- * @return {!proto.clarifai.api.MultiStatusCodeResponse}
15786
+ * @return {!proto.clarifai.api.GetStatusCodeRequest}
15494
15787
  */
15495
- proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
15788
+ proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
15496
15789
  while (reader.nextField()) {
15497
15790
  if (reader.isEndGroup()) {
15498
15791
  break;
@@ -15500,14 +15793,8 @@ proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader = functio
15500
15793
  var field = reader.getFieldNumber();
15501
15794
  switch (field) {
15502
15795
  case 1:
15503
- var value = new proto_clarifai_api_status_status_pb.Status;
15504
- reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
15505
- msg.setStatus(value);
15506
- break;
15507
- case 2:
15508
- var value = new proto_clarifai_api_status_status_pb.Status;
15509
- reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
15510
- msg.addStatuses(value);
15796
+ var value = /** @type {string} */ (reader.readString());
15797
+ msg.setStatusCodeId(value);
15511
15798
  break;
15512
15799
  default:
15513
15800
  reader.skipField();
@@ -15522,9 +15809,9 @@ proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader = functio
15522
15809
  * Serializes the message to binary data (in protobuf wire format).
15523
15810
  * @return {!Uint8Array}
15524
15811
  */
15525
- proto.clarifai.api.MultiStatusCodeResponse.prototype.serializeBinary = function() {
15812
+ proto.clarifai.api.GetStatusCodeRequest.prototype.serializeBinary = function() {
15526
15813
  var writer = new jspb.BinaryWriter();
15527
- proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter(this, writer);
15814
+ proto.clarifai.api.GetStatusCodeRequest.serializeBinaryToWriter(this, writer);
15528
15815
  return writer.getResultBuffer();
15529
15816
  };
15530
15817
 
@@ -15532,57 +15819,454 @@ proto.clarifai.api.MultiStatusCodeResponse.prototype.serializeBinary = function(
15532
15819
  /**
15533
15820
  * Serializes the given message to binary data (in protobuf wire
15534
15821
  * format), writing to the given BinaryWriter.
15535
- * @param {!proto.clarifai.api.MultiStatusCodeResponse} message
15822
+ * @param {!proto.clarifai.api.GetStatusCodeRequest} message
15536
15823
  * @param {!jspb.BinaryWriter} writer
15537
15824
  * @suppress {unusedLocalVariables} f is only used for nested messages
15538
15825
  */
15539
- proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter = function(message, writer) {
15826
+ proto.clarifai.api.GetStatusCodeRequest.serializeBinaryToWriter = function(message, writer) {
15540
15827
  var f = undefined;
15541
- f = message.getStatus();
15542
- if (f != null) {
15543
- writer.writeMessage(
15544
- 1,
15545
- f,
15546
- proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
15547
- );
15548
- }
15549
- f = message.getStatusesList();
15828
+ f = message.getStatusCodeId();
15550
15829
  if (f.length > 0) {
15551
- writer.writeRepeatedMessage(
15552
- 2,
15553
- f,
15554
- proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
15830
+ writer.writeString(
15831
+ 1,
15832
+ f
15555
15833
  );
15556
15834
  }
15557
15835
  };
15558
15836
 
15559
15837
 
15560
15838
  /**
15561
- * optional status.Status status = 1;
15562
- * @return {?proto.clarifai.api.status.Status}
15839
+ * optional string status_code_id = 1;
15840
+ * @return {string}
15563
15841
  */
15564
- proto.clarifai.api.MultiStatusCodeResponse.prototype.getStatus = function() {
15565
- return /** @type{?proto.clarifai.api.status.Status} */ (
15566
- jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
15842
+ proto.clarifai.api.GetStatusCodeRequest.prototype.getStatusCodeId = function() {
15843
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15567
15844
  };
15568
15845
 
15569
15846
 
15570
15847
  /**
15571
- * @param {?proto.clarifai.api.status.Status|undefined} value
15572
- * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
15573
- */
15574
- proto.clarifai.api.MultiStatusCodeResponse.prototype.setStatus = function(value) {
15575
- return jspb.Message.setWrapperField(this, 1, value);
15848
+ * @param {string} value
15849
+ * @return {!proto.clarifai.api.GetStatusCodeRequest} returns this
15850
+ */
15851
+ proto.clarifai.api.GetStatusCodeRequest.prototype.setStatusCodeId = function(value) {
15852
+ return jspb.Message.setProto3StringField(this, 1, value);
15576
15853
  };
15577
15854
 
15578
15855
 
15579
- /**
15580
- * Clears the message field making it undefined.
15581
- * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
15582
- */
15583
- proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatus = function() {
15584
- return this.setStatus(undefined);
15585
- };
15856
+
15857
+
15858
+
15859
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15860
+ /**
15861
+ * Creates an object representation of this proto.
15862
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15863
+ * Optional fields that are not set will be set to undefined.
15864
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15865
+ * For the list of reserved names please see:
15866
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15867
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15868
+ * JSPB instance for transitional soy proto support:
15869
+ * http://goto/soy-param-migration
15870
+ * @return {!Object}
15871
+ */
15872
+ proto.clarifai.api.ListStatusCodesRequest.prototype.toObject = function(opt_includeInstance) {
15873
+ return proto.clarifai.api.ListStatusCodesRequest.toObject(opt_includeInstance, this);
15874
+ };
15875
+
15876
+
15877
+ /**
15878
+ * Static version of the {@see toObject} method.
15879
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15880
+ * the JSPB instance for transitional soy proto support:
15881
+ * http://goto/soy-param-migration
15882
+ * @param {!proto.clarifai.api.ListStatusCodesRequest} msg The msg instance to transform.
15883
+ * @return {!Object}
15884
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15885
+ */
15886
+ proto.clarifai.api.ListStatusCodesRequest.toObject = function(includeInstance, msg) {
15887
+ var f, obj = {
15888
+
15889
+ };
15890
+
15891
+ if (includeInstance) {
15892
+ obj.$jspbMessageInstance = msg;
15893
+ }
15894
+ return obj;
15895
+ };
15896
+ }
15897
+
15898
+
15899
+ /**
15900
+ * Deserializes binary data (in protobuf wire format).
15901
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15902
+ * @return {!proto.clarifai.api.ListStatusCodesRequest}
15903
+ */
15904
+ proto.clarifai.api.ListStatusCodesRequest.deserializeBinary = function(bytes) {
15905
+ var reader = new jspb.BinaryReader(bytes);
15906
+ var msg = new proto.clarifai.api.ListStatusCodesRequest;
15907
+ return proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader(msg, reader);
15908
+ };
15909
+
15910
+
15911
+ /**
15912
+ * Deserializes binary data (in protobuf wire format) from the
15913
+ * given reader into the given message object.
15914
+ * @param {!proto.clarifai.api.ListStatusCodesRequest} msg The message object to deserialize into.
15915
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15916
+ * @return {!proto.clarifai.api.ListStatusCodesRequest}
15917
+ */
15918
+ proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader = function(msg, reader) {
15919
+ while (reader.nextField()) {
15920
+ if (reader.isEndGroup()) {
15921
+ break;
15922
+ }
15923
+ var field = reader.getFieldNumber();
15924
+ switch (field) {
15925
+ default:
15926
+ reader.skipField();
15927
+ break;
15928
+ }
15929
+ }
15930
+ return msg;
15931
+ };
15932
+
15933
+
15934
+ /**
15935
+ * Serializes the message to binary data (in protobuf wire format).
15936
+ * @return {!Uint8Array}
15937
+ */
15938
+ proto.clarifai.api.ListStatusCodesRequest.prototype.serializeBinary = function() {
15939
+ var writer = new jspb.BinaryWriter();
15940
+ proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter(this, writer);
15941
+ return writer.getResultBuffer();
15942
+ };
15943
+
15944
+
15945
+ /**
15946
+ * Serializes the given message to binary data (in protobuf wire
15947
+ * format), writing to the given BinaryWriter.
15948
+ * @param {!proto.clarifai.api.ListStatusCodesRequest} message
15949
+ * @param {!jspb.BinaryWriter} writer
15950
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15951
+ */
15952
+ proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter = function(message, writer) {
15953
+ var f = undefined;
15954
+ };
15955
+
15956
+
15957
+
15958
+
15959
+
15960
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15961
+ /**
15962
+ * Creates an object representation of this proto.
15963
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15964
+ * Optional fields that are not set will be set to undefined.
15965
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15966
+ * For the list of reserved names please see:
15967
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15968
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15969
+ * JSPB instance for transitional soy proto support:
15970
+ * http://goto/soy-param-migration
15971
+ * @return {!Object}
15972
+ */
15973
+ proto.clarifai.api.SingleStatusCodeResponse.prototype.toObject = function(opt_includeInstance) {
15974
+ return proto.clarifai.api.SingleStatusCodeResponse.toObject(opt_includeInstance, this);
15975
+ };
15976
+
15977
+
15978
+ /**
15979
+ * Static version of the {@see toObject} method.
15980
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15981
+ * the JSPB instance for transitional soy proto support:
15982
+ * http://goto/soy-param-migration
15983
+ * @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The msg instance to transform.
15984
+ * @return {!Object}
15985
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15986
+ */
15987
+ proto.clarifai.api.SingleStatusCodeResponse.toObject = function(includeInstance, msg) {
15988
+ var f, obj = {
15989
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
15990
+ };
15991
+
15992
+ if (includeInstance) {
15993
+ obj.$jspbMessageInstance = msg;
15994
+ }
15995
+ return obj;
15996
+ };
15997
+ }
15998
+
15999
+
16000
+ /**
16001
+ * Deserializes binary data (in protobuf wire format).
16002
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16003
+ * @return {!proto.clarifai.api.SingleStatusCodeResponse}
16004
+ */
16005
+ proto.clarifai.api.SingleStatusCodeResponse.deserializeBinary = function(bytes) {
16006
+ var reader = new jspb.BinaryReader(bytes);
16007
+ var msg = new proto.clarifai.api.SingleStatusCodeResponse;
16008
+ return proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader(msg, reader);
16009
+ };
16010
+
16011
+
16012
+ /**
16013
+ * Deserializes binary data (in protobuf wire format) from the
16014
+ * given reader into the given message object.
16015
+ * @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The message object to deserialize into.
16016
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16017
+ * @return {!proto.clarifai.api.SingleStatusCodeResponse}
16018
+ */
16019
+ proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
16020
+ while (reader.nextField()) {
16021
+ if (reader.isEndGroup()) {
16022
+ break;
16023
+ }
16024
+ var field = reader.getFieldNumber();
16025
+ switch (field) {
16026
+ case 1:
16027
+ var value = new proto_clarifai_api_status_status_pb.Status;
16028
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
16029
+ msg.setStatus(value);
16030
+ break;
16031
+ default:
16032
+ reader.skipField();
16033
+ break;
16034
+ }
16035
+ }
16036
+ return msg;
16037
+ };
16038
+
16039
+
16040
+ /**
16041
+ * Serializes the message to binary data (in protobuf wire format).
16042
+ * @return {!Uint8Array}
16043
+ */
16044
+ proto.clarifai.api.SingleStatusCodeResponse.prototype.serializeBinary = function() {
16045
+ var writer = new jspb.BinaryWriter();
16046
+ proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter(this, writer);
16047
+ return writer.getResultBuffer();
16048
+ };
16049
+
16050
+
16051
+ /**
16052
+ * Serializes the given message to binary data (in protobuf wire
16053
+ * format), writing to the given BinaryWriter.
16054
+ * @param {!proto.clarifai.api.SingleStatusCodeResponse} message
16055
+ * @param {!jspb.BinaryWriter} writer
16056
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16057
+ */
16058
+ proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter = function(message, writer) {
16059
+ var f = undefined;
16060
+ f = message.getStatus();
16061
+ if (f != null) {
16062
+ writer.writeMessage(
16063
+ 1,
16064
+ f,
16065
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
16066
+ );
16067
+ }
16068
+ };
16069
+
16070
+
16071
+ /**
16072
+ * optional status.Status status = 1;
16073
+ * @return {?proto.clarifai.api.status.Status}
16074
+ */
16075
+ proto.clarifai.api.SingleStatusCodeResponse.prototype.getStatus = function() {
16076
+ return /** @type{?proto.clarifai.api.status.Status} */ (
16077
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
16078
+ };
16079
+
16080
+
16081
+ /**
16082
+ * @param {?proto.clarifai.api.status.Status|undefined} value
16083
+ * @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this
16084
+ */
16085
+ proto.clarifai.api.SingleStatusCodeResponse.prototype.setStatus = function(value) {
16086
+ return jspb.Message.setWrapperField(this, 1, value);
16087
+ };
16088
+
16089
+
16090
+ /**
16091
+ * Clears the message field making it undefined.
16092
+ * @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this
16093
+ */
16094
+ proto.clarifai.api.SingleStatusCodeResponse.prototype.clearStatus = function() {
16095
+ return this.setStatus(undefined);
16096
+ };
16097
+
16098
+
16099
+ /**
16100
+ * Returns whether this field is set.
16101
+ * @return {boolean}
16102
+ */
16103
+ proto.clarifai.api.SingleStatusCodeResponse.prototype.hasStatus = function() {
16104
+ return jspb.Message.getField(this, 1) != null;
16105
+ };
16106
+
16107
+
16108
+
16109
+ /**
16110
+ * List of repeated fields within this message type.
16111
+ * @private {!Array<number>}
16112
+ * @const
16113
+ */
16114
+ proto.clarifai.api.MultiStatusCodeResponse.repeatedFields_ = [2];
16115
+
16116
+
16117
+
16118
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16119
+ /**
16120
+ * Creates an object representation of this proto.
16121
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16122
+ * Optional fields that are not set will be set to undefined.
16123
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16124
+ * For the list of reserved names please see:
16125
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16126
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16127
+ * JSPB instance for transitional soy proto support:
16128
+ * http://goto/soy-param-migration
16129
+ * @return {!Object}
16130
+ */
16131
+ proto.clarifai.api.MultiStatusCodeResponse.prototype.toObject = function(opt_includeInstance) {
16132
+ return proto.clarifai.api.MultiStatusCodeResponse.toObject(opt_includeInstance, this);
16133
+ };
16134
+
16135
+
16136
+ /**
16137
+ * Static version of the {@see toObject} method.
16138
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16139
+ * the JSPB instance for transitional soy proto support:
16140
+ * http://goto/soy-param-migration
16141
+ * @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The msg instance to transform.
16142
+ * @return {!Object}
16143
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16144
+ */
16145
+ proto.clarifai.api.MultiStatusCodeResponse.toObject = function(includeInstance, msg) {
16146
+ var f, obj = {
16147
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
16148
+ statusesList: jspb.Message.toObjectList(msg.getStatusesList(),
16149
+ proto_clarifai_api_status_status_pb.Status.toObject, includeInstance)
16150
+ };
16151
+
16152
+ if (includeInstance) {
16153
+ obj.$jspbMessageInstance = msg;
16154
+ }
16155
+ return obj;
16156
+ };
16157
+ }
16158
+
16159
+
16160
+ /**
16161
+ * Deserializes binary data (in protobuf wire format).
16162
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16163
+ * @return {!proto.clarifai.api.MultiStatusCodeResponse}
16164
+ */
16165
+ proto.clarifai.api.MultiStatusCodeResponse.deserializeBinary = function(bytes) {
16166
+ var reader = new jspb.BinaryReader(bytes);
16167
+ var msg = new proto.clarifai.api.MultiStatusCodeResponse;
16168
+ return proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader(msg, reader);
16169
+ };
16170
+
16171
+
16172
+ /**
16173
+ * Deserializes binary data (in protobuf wire format) from the
16174
+ * given reader into the given message object.
16175
+ * @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The message object to deserialize into.
16176
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16177
+ * @return {!proto.clarifai.api.MultiStatusCodeResponse}
16178
+ */
16179
+ proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
16180
+ while (reader.nextField()) {
16181
+ if (reader.isEndGroup()) {
16182
+ break;
16183
+ }
16184
+ var field = reader.getFieldNumber();
16185
+ switch (field) {
16186
+ case 1:
16187
+ var value = new proto_clarifai_api_status_status_pb.Status;
16188
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
16189
+ msg.setStatus(value);
16190
+ break;
16191
+ case 2:
16192
+ var value = new proto_clarifai_api_status_status_pb.Status;
16193
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
16194
+ msg.addStatuses(value);
16195
+ break;
16196
+ default:
16197
+ reader.skipField();
16198
+ break;
16199
+ }
16200
+ }
16201
+ return msg;
16202
+ };
16203
+
16204
+
16205
+ /**
16206
+ * Serializes the message to binary data (in protobuf wire format).
16207
+ * @return {!Uint8Array}
16208
+ */
16209
+ proto.clarifai.api.MultiStatusCodeResponse.prototype.serializeBinary = function() {
16210
+ var writer = new jspb.BinaryWriter();
16211
+ proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter(this, writer);
16212
+ return writer.getResultBuffer();
16213
+ };
16214
+
16215
+
16216
+ /**
16217
+ * Serializes the given message to binary data (in protobuf wire
16218
+ * format), writing to the given BinaryWriter.
16219
+ * @param {!proto.clarifai.api.MultiStatusCodeResponse} message
16220
+ * @param {!jspb.BinaryWriter} writer
16221
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16222
+ */
16223
+ proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter = function(message, writer) {
16224
+ var f = undefined;
16225
+ f = message.getStatus();
16226
+ if (f != null) {
16227
+ writer.writeMessage(
16228
+ 1,
16229
+ f,
16230
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
16231
+ );
16232
+ }
16233
+ f = message.getStatusesList();
16234
+ if (f.length > 0) {
16235
+ writer.writeRepeatedMessage(
16236
+ 2,
16237
+ f,
16238
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
16239
+ );
16240
+ }
16241
+ };
16242
+
16243
+
16244
+ /**
16245
+ * optional status.Status status = 1;
16246
+ * @return {?proto.clarifai.api.status.Status}
16247
+ */
16248
+ proto.clarifai.api.MultiStatusCodeResponse.prototype.getStatus = function() {
16249
+ return /** @type{?proto.clarifai.api.status.Status} */ (
16250
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
16251
+ };
16252
+
16253
+
16254
+ /**
16255
+ * @param {?proto.clarifai.api.status.Status|undefined} value
16256
+ * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
16257
+ */
16258
+ proto.clarifai.api.MultiStatusCodeResponse.prototype.setStatus = function(value) {
16259
+ return jspb.Message.setWrapperField(this, 1, value);
16260
+ };
16261
+
16262
+
16263
+ /**
16264
+ * Clears the message field making it undefined.
16265
+ * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this
16266
+ */
16267
+ proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatus = function() {
16268
+ return this.setStatus(undefined);
16269
+ };
15586
16270
 
15587
16271
 
15588
16272
  /**
@@ -40273,17 +40957,1191 @@ proto.clarifai.api.DeleteModelVersionRequest.prototype.getUserAppId = function()
40273
40957
  * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
40274
40958
  * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this
40275
40959
  */
40276
- proto.clarifai.api.DeleteModelVersionRequest.prototype.setUserAppId = function(value) {
40960
+ proto.clarifai.api.DeleteModelVersionRequest.prototype.setUserAppId = function(value) {
40961
+ return jspb.Message.setWrapperField(this, 1, value);
40962
+ };
40963
+
40964
+
40965
+ /**
40966
+ * Clears the message field making it undefined.
40967
+ * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this
40968
+ */
40969
+ proto.clarifai.api.DeleteModelVersionRequest.prototype.clearUserAppId = function() {
40970
+ return this.setUserAppId(undefined);
40971
+ };
40972
+
40973
+
40974
+ /**
40975
+ * Returns whether this field is set.
40976
+ * @return {boolean}
40977
+ */
40978
+ proto.clarifai.api.DeleteModelVersionRequest.prototype.hasUserAppId = function() {
40979
+ return jspb.Message.getField(this, 1) != null;
40980
+ };
40981
+
40982
+
40983
+ /**
40984
+ * optional string model_id = 3;
40985
+ * @return {string}
40986
+ */
40987
+ proto.clarifai.api.DeleteModelVersionRequest.prototype.getModelId = function() {
40988
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
40989
+ };
40990
+
40991
+
40992
+ /**
40993
+ * @param {string} value
40994
+ * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this
40995
+ */
40996
+ proto.clarifai.api.DeleteModelVersionRequest.prototype.setModelId = function(value) {
40997
+ return jspb.Message.setProto3StringField(this, 3, value);
40998
+ };
40999
+
41000
+
41001
+ /**
41002
+ * optional string version_id = 4;
41003
+ * @return {string}
41004
+ */
41005
+ proto.clarifai.api.DeleteModelVersionRequest.prototype.getVersionId = function() {
41006
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
41007
+ };
41008
+
41009
+
41010
+ /**
41011
+ * @param {string} value
41012
+ * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this
41013
+ */
41014
+ proto.clarifai.api.DeleteModelVersionRequest.prototype.setVersionId = function(value) {
41015
+ return jspb.Message.setProto3StringField(this, 4, value);
41016
+ };
41017
+
41018
+
41019
+
41020
+
41021
+
41022
+ if (jspb.Message.GENERATE_TO_OBJECT) {
41023
+ /**
41024
+ * Creates an object representation of this proto.
41025
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
41026
+ * Optional fields that are not set will be set to undefined.
41027
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
41028
+ * For the list of reserved names please see:
41029
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
41030
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
41031
+ * JSPB instance for transitional soy proto support:
41032
+ * http://goto/soy-param-migration
41033
+ * @return {!Object}
41034
+ */
41035
+ proto.clarifai.api.SingleModelVersionResponse.prototype.toObject = function(opt_includeInstance) {
41036
+ return proto.clarifai.api.SingleModelVersionResponse.toObject(opt_includeInstance, this);
41037
+ };
41038
+
41039
+
41040
+ /**
41041
+ * Static version of the {@see toObject} method.
41042
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41043
+ * the JSPB instance for transitional soy proto support:
41044
+ * http://goto/soy-param-migration
41045
+ * @param {!proto.clarifai.api.SingleModelVersionResponse} msg The msg instance to transform.
41046
+ * @return {!Object}
41047
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41048
+ */
41049
+ proto.clarifai.api.SingleModelVersionResponse.toObject = function(includeInstance, msg) {
41050
+ var f, obj = {
41051
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
41052
+ modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f)
41053
+ };
41054
+
41055
+ if (includeInstance) {
41056
+ obj.$jspbMessageInstance = msg;
41057
+ }
41058
+ return obj;
41059
+ };
41060
+ }
41061
+
41062
+
41063
+ /**
41064
+ * Deserializes binary data (in protobuf wire format).
41065
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
41066
+ * @return {!proto.clarifai.api.SingleModelVersionResponse}
41067
+ */
41068
+ proto.clarifai.api.SingleModelVersionResponse.deserializeBinary = function(bytes) {
41069
+ var reader = new jspb.BinaryReader(bytes);
41070
+ var msg = new proto.clarifai.api.SingleModelVersionResponse;
41071
+ return proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader(msg, reader);
41072
+ };
41073
+
41074
+
41075
+ /**
41076
+ * Deserializes binary data (in protobuf wire format) from the
41077
+ * given reader into the given message object.
41078
+ * @param {!proto.clarifai.api.SingleModelVersionResponse} msg The message object to deserialize into.
41079
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
41080
+ * @return {!proto.clarifai.api.SingleModelVersionResponse}
41081
+ */
41082
+ proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader = function(msg, reader) {
41083
+ while (reader.nextField()) {
41084
+ if (reader.isEndGroup()) {
41085
+ break;
41086
+ }
41087
+ var field = reader.getFieldNumber();
41088
+ switch (field) {
41089
+ case 1:
41090
+ var value = new proto_clarifai_api_status_status_pb.Status;
41091
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
41092
+ msg.setStatus(value);
41093
+ break;
41094
+ case 2:
41095
+ var value = new proto_clarifai_api_resources_pb.ModelVersion;
41096
+ reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader);
41097
+ msg.setModelVersion(value);
41098
+ break;
41099
+ default:
41100
+ reader.skipField();
41101
+ break;
41102
+ }
41103
+ }
41104
+ return msg;
41105
+ };
41106
+
41107
+
41108
+ /**
41109
+ * Serializes the message to binary data (in protobuf wire format).
41110
+ * @return {!Uint8Array}
41111
+ */
41112
+ proto.clarifai.api.SingleModelVersionResponse.prototype.serializeBinary = function() {
41113
+ var writer = new jspb.BinaryWriter();
41114
+ proto.clarifai.api.SingleModelVersionResponse.serializeBinaryToWriter(this, writer);
41115
+ return writer.getResultBuffer();
41116
+ };
41117
+
41118
+
41119
+ /**
41120
+ * Serializes the given message to binary data (in protobuf wire
41121
+ * format), writing to the given BinaryWriter.
41122
+ * @param {!proto.clarifai.api.SingleModelVersionResponse} message
41123
+ * @param {!jspb.BinaryWriter} writer
41124
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41125
+ */
41126
+ proto.clarifai.api.SingleModelVersionResponse.serializeBinaryToWriter = function(message, writer) {
41127
+ var f = undefined;
41128
+ f = message.getStatus();
41129
+ if (f != null) {
41130
+ writer.writeMessage(
41131
+ 1,
41132
+ f,
41133
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
41134
+ );
41135
+ }
41136
+ f = message.getModelVersion();
41137
+ if (f != null) {
41138
+ writer.writeMessage(
41139
+ 2,
41140
+ f,
41141
+ proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter
41142
+ );
41143
+ }
41144
+ };
41145
+
41146
+
41147
+ /**
41148
+ * optional status.Status status = 1;
41149
+ * @return {?proto.clarifai.api.status.Status}
41150
+ */
41151
+ proto.clarifai.api.SingleModelVersionResponse.prototype.getStatus = function() {
41152
+ return /** @type{?proto.clarifai.api.status.Status} */ (
41153
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
41154
+ };
41155
+
41156
+
41157
+ /**
41158
+ * @param {?proto.clarifai.api.status.Status|undefined} value
41159
+ * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this
41160
+ */
41161
+ proto.clarifai.api.SingleModelVersionResponse.prototype.setStatus = function(value) {
41162
+ return jspb.Message.setWrapperField(this, 1, value);
41163
+ };
41164
+
41165
+
41166
+ /**
41167
+ * Clears the message field making it undefined.
41168
+ * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this
41169
+ */
41170
+ proto.clarifai.api.SingleModelVersionResponse.prototype.clearStatus = function() {
41171
+ return this.setStatus(undefined);
41172
+ };
41173
+
41174
+
41175
+ /**
41176
+ * Returns whether this field is set.
41177
+ * @return {boolean}
41178
+ */
41179
+ proto.clarifai.api.SingleModelVersionResponse.prototype.hasStatus = function() {
41180
+ return jspb.Message.getField(this, 1) != null;
41181
+ };
41182
+
41183
+
41184
+ /**
41185
+ * optional ModelVersion model_version = 2;
41186
+ * @return {?proto.clarifai.api.ModelVersion}
41187
+ */
41188
+ proto.clarifai.api.SingleModelVersionResponse.prototype.getModelVersion = function() {
41189
+ return /** @type{?proto.clarifai.api.ModelVersion} */ (
41190
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 2));
41191
+ };
41192
+
41193
+
41194
+ /**
41195
+ * @param {?proto.clarifai.api.ModelVersion|undefined} value
41196
+ * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this
41197
+ */
41198
+ proto.clarifai.api.SingleModelVersionResponse.prototype.setModelVersion = function(value) {
41199
+ return jspb.Message.setWrapperField(this, 2, value);
41200
+ };
41201
+
41202
+
41203
+ /**
41204
+ * Clears the message field making it undefined.
41205
+ * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this
41206
+ */
41207
+ proto.clarifai.api.SingleModelVersionResponse.prototype.clearModelVersion = function() {
41208
+ return this.setModelVersion(undefined);
41209
+ };
41210
+
41211
+
41212
+ /**
41213
+ * Returns whether this field is set.
41214
+ * @return {boolean}
41215
+ */
41216
+ proto.clarifai.api.SingleModelVersionResponse.prototype.hasModelVersion = function() {
41217
+ return jspb.Message.getField(this, 2) != null;
41218
+ };
41219
+
41220
+
41221
+
41222
+ /**
41223
+ * List of repeated fields within this message type.
41224
+ * @private {!Array<number>}
41225
+ * @const
41226
+ */
41227
+ proto.clarifai.api.MultiModelVersionResponse.repeatedFields_ = [2];
41228
+
41229
+
41230
+
41231
+ if (jspb.Message.GENERATE_TO_OBJECT) {
41232
+ /**
41233
+ * Creates an object representation of this proto.
41234
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
41235
+ * Optional fields that are not set will be set to undefined.
41236
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
41237
+ * For the list of reserved names please see:
41238
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
41239
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
41240
+ * JSPB instance for transitional soy proto support:
41241
+ * http://goto/soy-param-migration
41242
+ * @return {!Object}
41243
+ */
41244
+ proto.clarifai.api.MultiModelVersionResponse.prototype.toObject = function(opt_includeInstance) {
41245
+ return proto.clarifai.api.MultiModelVersionResponse.toObject(opt_includeInstance, this);
41246
+ };
41247
+
41248
+
41249
+ /**
41250
+ * Static version of the {@see toObject} method.
41251
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41252
+ * the JSPB instance for transitional soy proto support:
41253
+ * http://goto/soy-param-migration
41254
+ * @param {!proto.clarifai.api.MultiModelVersionResponse} msg The msg instance to transform.
41255
+ * @return {!Object}
41256
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41257
+ */
41258
+ proto.clarifai.api.MultiModelVersionResponse.toObject = function(includeInstance, msg) {
41259
+ var f, obj = {
41260
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
41261
+ modelVersionsList: jspb.Message.toObjectList(msg.getModelVersionsList(),
41262
+ proto_clarifai_api_resources_pb.ModelVersion.toObject, includeInstance)
41263
+ };
41264
+
41265
+ if (includeInstance) {
41266
+ obj.$jspbMessageInstance = msg;
41267
+ }
41268
+ return obj;
41269
+ };
41270
+ }
41271
+
41272
+
41273
+ /**
41274
+ * Deserializes binary data (in protobuf wire format).
41275
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
41276
+ * @return {!proto.clarifai.api.MultiModelVersionResponse}
41277
+ */
41278
+ proto.clarifai.api.MultiModelVersionResponse.deserializeBinary = function(bytes) {
41279
+ var reader = new jspb.BinaryReader(bytes);
41280
+ var msg = new proto.clarifai.api.MultiModelVersionResponse;
41281
+ return proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader(msg, reader);
41282
+ };
41283
+
41284
+
41285
+ /**
41286
+ * Deserializes binary data (in protobuf wire format) from the
41287
+ * given reader into the given message object.
41288
+ * @param {!proto.clarifai.api.MultiModelVersionResponse} msg The message object to deserialize into.
41289
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
41290
+ * @return {!proto.clarifai.api.MultiModelVersionResponse}
41291
+ */
41292
+ proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader = function(msg, reader) {
41293
+ while (reader.nextField()) {
41294
+ if (reader.isEndGroup()) {
41295
+ break;
41296
+ }
41297
+ var field = reader.getFieldNumber();
41298
+ switch (field) {
41299
+ case 1:
41300
+ var value = new proto_clarifai_api_status_status_pb.Status;
41301
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
41302
+ msg.setStatus(value);
41303
+ break;
41304
+ case 2:
41305
+ var value = new proto_clarifai_api_resources_pb.ModelVersion;
41306
+ reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader);
41307
+ msg.addModelVersions(value);
41308
+ break;
41309
+ default:
41310
+ reader.skipField();
41311
+ break;
41312
+ }
41313
+ }
41314
+ return msg;
41315
+ };
41316
+
41317
+
41318
+ /**
41319
+ * Serializes the message to binary data (in protobuf wire format).
41320
+ * @return {!Uint8Array}
41321
+ */
41322
+ proto.clarifai.api.MultiModelVersionResponse.prototype.serializeBinary = function() {
41323
+ var writer = new jspb.BinaryWriter();
41324
+ proto.clarifai.api.MultiModelVersionResponse.serializeBinaryToWriter(this, writer);
41325
+ return writer.getResultBuffer();
41326
+ };
41327
+
41328
+
41329
+ /**
41330
+ * Serializes the given message to binary data (in protobuf wire
41331
+ * format), writing to the given BinaryWriter.
41332
+ * @param {!proto.clarifai.api.MultiModelVersionResponse} message
41333
+ * @param {!jspb.BinaryWriter} writer
41334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41335
+ */
41336
+ proto.clarifai.api.MultiModelVersionResponse.serializeBinaryToWriter = function(message, writer) {
41337
+ var f = undefined;
41338
+ f = message.getStatus();
41339
+ if (f != null) {
41340
+ writer.writeMessage(
41341
+ 1,
41342
+ f,
41343
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
41344
+ );
41345
+ }
41346
+ f = message.getModelVersionsList();
41347
+ if (f.length > 0) {
41348
+ writer.writeRepeatedMessage(
41349
+ 2,
41350
+ f,
41351
+ proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter
41352
+ );
41353
+ }
41354
+ };
41355
+
41356
+
41357
+ /**
41358
+ * optional status.Status status = 1;
41359
+ * @return {?proto.clarifai.api.status.Status}
41360
+ */
41361
+ proto.clarifai.api.MultiModelVersionResponse.prototype.getStatus = function() {
41362
+ return /** @type{?proto.clarifai.api.status.Status} */ (
41363
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
41364
+ };
41365
+
41366
+
41367
+ /**
41368
+ * @param {?proto.clarifai.api.status.Status|undefined} value
41369
+ * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this
41370
+ */
41371
+ proto.clarifai.api.MultiModelVersionResponse.prototype.setStatus = function(value) {
41372
+ return jspb.Message.setWrapperField(this, 1, value);
41373
+ };
41374
+
41375
+
41376
+ /**
41377
+ * Clears the message field making it undefined.
41378
+ * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this
41379
+ */
41380
+ proto.clarifai.api.MultiModelVersionResponse.prototype.clearStatus = function() {
41381
+ return this.setStatus(undefined);
41382
+ };
41383
+
41384
+
41385
+ /**
41386
+ * Returns whether this field is set.
41387
+ * @return {boolean}
41388
+ */
41389
+ proto.clarifai.api.MultiModelVersionResponse.prototype.hasStatus = function() {
41390
+ return jspb.Message.getField(this, 1) != null;
41391
+ };
41392
+
41393
+
41394
+ /**
41395
+ * repeated ModelVersion model_versions = 2;
41396
+ * @return {!Array<!proto.clarifai.api.ModelVersion>}
41397
+ */
41398
+ proto.clarifai.api.MultiModelVersionResponse.prototype.getModelVersionsList = function() {
41399
+ return /** @type{!Array<!proto.clarifai.api.ModelVersion>} */ (
41400
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 2));
41401
+ };
41402
+
41403
+
41404
+ /**
41405
+ * @param {!Array<!proto.clarifai.api.ModelVersion>} value
41406
+ * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this
41407
+ */
41408
+ proto.clarifai.api.MultiModelVersionResponse.prototype.setModelVersionsList = function(value) {
41409
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
41410
+ };
41411
+
41412
+
41413
+ /**
41414
+ * @param {!proto.clarifai.api.ModelVersion=} opt_value
41415
+ * @param {number=} opt_index
41416
+ * @return {!proto.clarifai.api.ModelVersion}
41417
+ */
41418
+ proto.clarifai.api.MultiModelVersionResponse.prototype.addModelVersions = function(opt_value, opt_index) {
41419
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModelVersion, opt_index);
41420
+ };
41421
+
41422
+
41423
+ /**
41424
+ * Clears the list making it empty but non-null.
41425
+ * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this
41426
+ */
41427
+ proto.clarifai.api.MultiModelVersionResponse.prototype.clearModelVersionsList = function() {
41428
+ return this.setModelVersionsList([]);
41429
+ };
41430
+
41431
+
41432
+
41433
+ /**
41434
+ * List of repeated fields within this message type.
41435
+ * @private {!Array<number>}
41436
+ * @const
41437
+ */
41438
+ proto.clarifai.api.PostModelVersionsRequest.repeatedFields_ = [3];
41439
+
41440
+
41441
+
41442
+ if (jspb.Message.GENERATE_TO_OBJECT) {
41443
+ /**
41444
+ * Creates an object representation of this proto.
41445
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
41446
+ * Optional fields that are not set will be set to undefined.
41447
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
41448
+ * For the list of reserved names please see:
41449
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
41450
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
41451
+ * JSPB instance for transitional soy proto support:
41452
+ * http://goto/soy-param-migration
41453
+ * @return {!Object}
41454
+ */
41455
+ proto.clarifai.api.PostModelVersionsRequest.prototype.toObject = function(opt_includeInstance) {
41456
+ return proto.clarifai.api.PostModelVersionsRequest.toObject(opt_includeInstance, this);
41457
+ };
41458
+
41459
+
41460
+ /**
41461
+ * Static version of the {@see toObject} method.
41462
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41463
+ * the JSPB instance for transitional soy proto support:
41464
+ * http://goto/soy-param-migration
41465
+ * @param {!proto.clarifai.api.PostModelVersionsRequest} msg The msg instance to transform.
41466
+ * @return {!Object}
41467
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41468
+ */
41469
+ proto.clarifai.api.PostModelVersionsRequest.toObject = function(includeInstance, msg) {
41470
+ var f, obj = {
41471
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
41472
+ modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
41473
+ modelVersionsList: jspb.Message.toObjectList(msg.getModelVersionsList(),
41474
+ proto_clarifai_api_resources_pb.ModelVersion.toObject, includeInstance),
41475
+ description: jspb.Message.getFieldWithDefault(msg, 8, ""),
41476
+ evalInfo: (f = msg.getEvalInfo()) && proto_clarifai_api_resources_pb.EvalInfo.toObject(includeInstance, f)
41477
+ };
41478
+
41479
+ if (includeInstance) {
41480
+ obj.$jspbMessageInstance = msg;
41481
+ }
41482
+ return obj;
41483
+ };
41484
+ }
41485
+
41486
+
41487
+ /**
41488
+ * Deserializes binary data (in protobuf wire format).
41489
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
41490
+ * @return {!proto.clarifai.api.PostModelVersionsRequest}
41491
+ */
41492
+ proto.clarifai.api.PostModelVersionsRequest.deserializeBinary = function(bytes) {
41493
+ var reader = new jspb.BinaryReader(bytes);
41494
+ var msg = new proto.clarifai.api.PostModelVersionsRequest;
41495
+ return proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader(msg, reader);
41496
+ };
41497
+
41498
+
41499
+ /**
41500
+ * Deserializes binary data (in protobuf wire format) from the
41501
+ * given reader into the given message object.
41502
+ * @param {!proto.clarifai.api.PostModelVersionsRequest} msg The message object to deserialize into.
41503
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
41504
+ * @return {!proto.clarifai.api.PostModelVersionsRequest}
41505
+ */
41506
+ proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader = function(msg, reader) {
41507
+ while (reader.nextField()) {
41508
+ if (reader.isEndGroup()) {
41509
+ break;
41510
+ }
41511
+ var field = reader.getFieldNumber();
41512
+ switch (field) {
41513
+ case 1:
41514
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
41515
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
41516
+ msg.setUserAppId(value);
41517
+ break;
41518
+ case 2:
41519
+ var value = /** @type {string} */ (reader.readString());
41520
+ msg.setModelId(value);
41521
+ break;
41522
+ case 3:
41523
+ var value = new proto_clarifai_api_resources_pb.ModelVersion;
41524
+ reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader);
41525
+ msg.addModelVersions(value);
41526
+ break;
41527
+ case 8:
41528
+ var value = /** @type {string} */ (reader.readString());
41529
+ msg.setDescription(value);
41530
+ break;
41531
+ case 10:
41532
+ var value = new proto_clarifai_api_resources_pb.EvalInfo;
41533
+ reader.readMessage(value,proto_clarifai_api_resources_pb.EvalInfo.deserializeBinaryFromReader);
41534
+ msg.setEvalInfo(value);
41535
+ break;
41536
+ default:
41537
+ reader.skipField();
41538
+ break;
41539
+ }
41540
+ }
41541
+ return msg;
41542
+ };
41543
+
41544
+
41545
+ /**
41546
+ * Serializes the message to binary data (in protobuf wire format).
41547
+ * @return {!Uint8Array}
41548
+ */
41549
+ proto.clarifai.api.PostModelVersionsRequest.prototype.serializeBinary = function() {
41550
+ var writer = new jspb.BinaryWriter();
41551
+ proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter(this, writer);
41552
+ return writer.getResultBuffer();
41553
+ };
41554
+
41555
+
41556
+ /**
41557
+ * Serializes the given message to binary data (in protobuf wire
41558
+ * format), writing to the given BinaryWriter.
41559
+ * @param {!proto.clarifai.api.PostModelVersionsRequest} message
41560
+ * @param {!jspb.BinaryWriter} writer
41561
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41562
+ */
41563
+ proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter = function(message, writer) {
41564
+ var f = undefined;
41565
+ f = message.getUserAppId();
41566
+ if (f != null) {
41567
+ writer.writeMessage(
41568
+ 1,
41569
+ f,
41570
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
41571
+ );
41572
+ }
41573
+ f = message.getModelId();
41574
+ if (f.length > 0) {
41575
+ writer.writeString(
41576
+ 2,
41577
+ f
41578
+ );
41579
+ }
41580
+ f = message.getModelVersionsList();
41581
+ if (f.length > 0) {
41582
+ writer.writeRepeatedMessage(
41583
+ 3,
41584
+ f,
41585
+ proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter
41586
+ );
41587
+ }
41588
+ f = message.getDescription();
41589
+ if (f.length > 0) {
41590
+ writer.writeString(
41591
+ 8,
41592
+ f
41593
+ );
41594
+ }
41595
+ f = message.getEvalInfo();
41596
+ if (f != null) {
41597
+ writer.writeMessage(
41598
+ 10,
41599
+ f,
41600
+ proto_clarifai_api_resources_pb.EvalInfo.serializeBinaryToWriter
41601
+ );
41602
+ }
41603
+ };
41604
+
41605
+
41606
+ /**
41607
+ * optional UserAppIDSet user_app_id = 1;
41608
+ * @return {?proto.clarifai.api.UserAppIDSet}
41609
+ */
41610
+ proto.clarifai.api.PostModelVersionsRequest.prototype.getUserAppId = function() {
41611
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
41612
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
41613
+ };
41614
+
41615
+
41616
+ /**
41617
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
41618
+ * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
41619
+ */
41620
+ proto.clarifai.api.PostModelVersionsRequest.prototype.setUserAppId = function(value) {
41621
+ return jspb.Message.setWrapperField(this, 1, value);
41622
+ };
41623
+
41624
+
41625
+ /**
41626
+ * Clears the message field making it undefined.
41627
+ * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
41628
+ */
41629
+ proto.clarifai.api.PostModelVersionsRequest.prototype.clearUserAppId = function() {
41630
+ return this.setUserAppId(undefined);
41631
+ };
41632
+
41633
+
41634
+ /**
41635
+ * Returns whether this field is set.
41636
+ * @return {boolean}
41637
+ */
41638
+ proto.clarifai.api.PostModelVersionsRequest.prototype.hasUserAppId = function() {
41639
+ return jspb.Message.getField(this, 1) != null;
41640
+ };
41641
+
41642
+
41643
+ /**
41644
+ * optional string model_id = 2;
41645
+ * @return {string}
41646
+ */
41647
+ proto.clarifai.api.PostModelVersionsRequest.prototype.getModelId = function() {
41648
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
41649
+ };
41650
+
41651
+
41652
+ /**
41653
+ * @param {string} value
41654
+ * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
41655
+ */
41656
+ proto.clarifai.api.PostModelVersionsRequest.prototype.setModelId = function(value) {
41657
+ return jspb.Message.setProto3StringField(this, 2, value);
41658
+ };
41659
+
41660
+
41661
+ /**
41662
+ * repeated ModelVersion model_versions = 3;
41663
+ * @return {!Array<!proto.clarifai.api.ModelVersion>}
41664
+ */
41665
+ proto.clarifai.api.PostModelVersionsRequest.prototype.getModelVersionsList = function() {
41666
+ return /** @type{!Array<!proto.clarifai.api.ModelVersion>} */ (
41667
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 3));
41668
+ };
41669
+
41670
+
41671
+ /**
41672
+ * @param {!Array<!proto.clarifai.api.ModelVersion>} value
41673
+ * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
41674
+ */
41675
+ proto.clarifai.api.PostModelVersionsRequest.prototype.setModelVersionsList = function(value) {
41676
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
41677
+ };
41678
+
41679
+
41680
+ /**
41681
+ * @param {!proto.clarifai.api.ModelVersion=} opt_value
41682
+ * @param {number=} opt_index
41683
+ * @return {!proto.clarifai.api.ModelVersion}
41684
+ */
41685
+ proto.clarifai.api.PostModelVersionsRequest.prototype.addModelVersions = function(opt_value, opt_index) {
41686
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelVersion, opt_index);
41687
+ };
41688
+
41689
+
41690
+ /**
41691
+ * Clears the list making it empty but non-null.
41692
+ * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
41693
+ */
41694
+ proto.clarifai.api.PostModelVersionsRequest.prototype.clearModelVersionsList = function() {
41695
+ return this.setModelVersionsList([]);
41696
+ };
41697
+
41698
+
41699
+ /**
41700
+ * optional string description = 8;
41701
+ * @return {string}
41702
+ */
41703
+ proto.clarifai.api.PostModelVersionsRequest.prototype.getDescription = function() {
41704
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
41705
+ };
41706
+
41707
+
41708
+ /**
41709
+ * @param {string} value
41710
+ * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
41711
+ */
41712
+ proto.clarifai.api.PostModelVersionsRequest.prototype.setDescription = function(value) {
41713
+ return jspb.Message.setProto3StringField(this, 8, value);
41714
+ };
41715
+
41716
+
41717
+ /**
41718
+ * optional EvalInfo eval_info = 10;
41719
+ * @return {?proto.clarifai.api.EvalInfo}
41720
+ */
41721
+ proto.clarifai.api.PostModelVersionsRequest.prototype.getEvalInfo = function() {
41722
+ return /** @type{?proto.clarifai.api.EvalInfo} */ (
41723
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.EvalInfo, 10));
41724
+ };
41725
+
41726
+
41727
+ /**
41728
+ * @param {?proto.clarifai.api.EvalInfo|undefined} value
41729
+ * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
41730
+ */
41731
+ proto.clarifai.api.PostModelVersionsRequest.prototype.setEvalInfo = function(value) {
41732
+ return jspb.Message.setWrapperField(this, 10, value);
41733
+ };
41734
+
41735
+
41736
+ /**
41737
+ * Clears the message field making it undefined.
41738
+ * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
41739
+ */
41740
+ proto.clarifai.api.PostModelVersionsRequest.prototype.clearEvalInfo = function() {
41741
+ return this.setEvalInfo(undefined);
41742
+ };
41743
+
41744
+
41745
+ /**
41746
+ * Returns whether this field is set.
41747
+ * @return {boolean}
41748
+ */
41749
+ proto.clarifai.api.PostModelVersionsRequest.prototype.hasEvalInfo = function() {
41750
+ return jspb.Message.getField(this, 10) != null;
41751
+ };
41752
+
41753
+
41754
+
41755
+ /**
41756
+ * Oneof group definitions for this message. Each group defines the field
41757
+ * numbers belonging to that group. When of these fields' value is set, all
41758
+ * other fields in the group are cleared. During deserialization, if multiple
41759
+ * fields are encountered for a group, only the last value seen will be kept.
41760
+ * @private {!Array<!Array<number>>}
41761
+ * @const
41762
+ */
41763
+ proto.clarifai.api.PostModelVersionsUploadRequest.oneofGroups_ = [[1,2]];
41764
+
41765
+ /**
41766
+ * @enum {number}
41767
+ */
41768
+ proto.clarifai.api.PostModelVersionsUploadRequest.UploadDataCase = {
41769
+ UPLOAD_DATA_NOT_SET: 0,
41770
+ UPLOAD_CONFIG: 1,
41771
+ CONTENT_PART: 2
41772
+ };
41773
+
41774
+ /**
41775
+ * @return {proto.clarifai.api.PostModelVersionsUploadRequest.UploadDataCase}
41776
+ */
41777
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.getUploadDataCase = function() {
41778
+ return /** @type {proto.clarifai.api.PostModelVersionsUploadRequest.UploadDataCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.PostModelVersionsUploadRequest.oneofGroups_[0]));
41779
+ };
41780
+
41781
+
41782
+
41783
+ if (jspb.Message.GENERATE_TO_OBJECT) {
41784
+ /**
41785
+ * Creates an object representation of this proto.
41786
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
41787
+ * Optional fields that are not set will be set to undefined.
41788
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
41789
+ * For the list of reserved names please see:
41790
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
41791
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
41792
+ * JSPB instance for transitional soy proto support:
41793
+ * http://goto/soy-param-migration
41794
+ * @return {!Object}
41795
+ */
41796
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.toObject = function(opt_includeInstance) {
41797
+ return proto.clarifai.api.PostModelVersionsUploadRequest.toObject(opt_includeInstance, this);
41798
+ };
41799
+
41800
+
41801
+ /**
41802
+ * Static version of the {@see toObject} method.
41803
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41804
+ * the JSPB instance for transitional soy proto support:
41805
+ * http://goto/soy-param-migration
41806
+ * @param {!proto.clarifai.api.PostModelVersionsUploadRequest} msg The msg instance to transform.
41807
+ * @return {!Object}
41808
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41809
+ */
41810
+ proto.clarifai.api.PostModelVersionsUploadRequest.toObject = function(includeInstance, msg) {
41811
+ var f, obj = {
41812
+ uploadConfig: (f = msg.getUploadConfig()) && proto.clarifai.api.PostModelVersionsUploadConfig.toObject(includeInstance, f),
41813
+ contentPart: (f = msg.getContentPart()) && proto_clarifai_api_resources_pb.UploadContentPart.toObject(includeInstance, f)
41814
+ };
41815
+
41816
+ if (includeInstance) {
41817
+ obj.$jspbMessageInstance = msg;
41818
+ }
41819
+ return obj;
41820
+ };
41821
+ }
41822
+
41823
+
41824
+ /**
41825
+ * Deserializes binary data (in protobuf wire format).
41826
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
41827
+ * @return {!proto.clarifai.api.PostModelVersionsUploadRequest}
41828
+ */
41829
+ proto.clarifai.api.PostModelVersionsUploadRequest.deserializeBinary = function(bytes) {
41830
+ var reader = new jspb.BinaryReader(bytes);
41831
+ var msg = new proto.clarifai.api.PostModelVersionsUploadRequest;
41832
+ return proto.clarifai.api.PostModelVersionsUploadRequest.deserializeBinaryFromReader(msg, reader);
41833
+ };
41834
+
41835
+
41836
+ /**
41837
+ * Deserializes binary data (in protobuf wire format) from the
41838
+ * given reader into the given message object.
41839
+ * @param {!proto.clarifai.api.PostModelVersionsUploadRequest} msg The message object to deserialize into.
41840
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
41841
+ * @return {!proto.clarifai.api.PostModelVersionsUploadRequest}
41842
+ */
41843
+ proto.clarifai.api.PostModelVersionsUploadRequest.deserializeBinaryFromReader = function(msg, reader) {
41844
+ while (reader.nextField()) {
41845
+ if (reader.isEndGroup()) {
41846
+ break;
41847
+ }
41848
+ var field = reader.getFieldNumber();
41849
+ switch (field) {
41850
+ case 1:
41851
+ var value = new proto.clarifai.api.PostModelVersionsUploadConfig;
41852
+ reader.readMessage(value,proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader);
41853
+ msg.setUploadConfig(value);
41854
+ break;
41855
+ case 2:
41856
+ var value = new proto_clarifai_api_resources_pb.UploadContentPart;
41857
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UploadContentPart.deserializeBinaryFromReader);
41858
+ msg.setContentPart(value);
41859
+ break;
41860
+ default:
41861
+ reader.skipField();
41862
+ break;
41863
+ }
41864
+ }
41865
+ return msg;
41866
+ };
41867
+
41868
+
41869
+ /**
41870
+ * Serializes the message to binary data (in protobuf wire format).
41871
+ * @return {!Uint8Array}
41872
+ */
41873
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.serializeBinary = function() {
41874
+ var writer = new jspb.BinaryWriter();
41875
+ proto.clarifai.api.PostModelVersionsUploadRequest.serializeBinaryToWriter(this, writer);
41876
+ return writer.getResultBuffer();
41877
+ };
41878
+
41879
+
41880
+ /**
41881
+ * Serializes the given message to binary data (in protobuf wire
41882
+ * format), writing to the given BinaryWriter.
41883
+ * @param {!proto.clarifai.api.PostModelVersionsUploadRequest} message
41884
+ * @param {!jspb.BinaryWriter} writer
41885
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41886
+ */
41887
+ proto.clarifai.api.PostModelVersionsUploadRequest.serializeBinaryToWriter = function(message, writer) {
41888
+ var f = undefined;
41889
+ f = message.getUploadConfig();
41890
+ if (f != null) {
41891
+ writer.writeMessage(
41892
+ 1,
41893
+ f,
41894
+ proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter
41895
+ );
41896
+ }
41897
+ f = message.getContentPart();
41898
+ if (f != null) {
41899
+ writer.writeMessage(
41900
+ 2,
41901
+ f,
41902
+ proto_clarifai_api_resources_pb.UploadContentPart.serializeBinaryToWriter
41903
+ );
41904
+ }
41905
+ };
41906
+
41907
+
41908
+ /**
41909
+ * optional PostModelVersionsUploadConfig upload_config = 1;
41910
+ * @return {?proto.clarifai.api.PostModelVersionsUploadConfig}
41911
+ */
41912
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.getUploadConfig = function() {
41913
+ return /** @type{?proto.clarifai.api.PostModelVersionsUploadConfig} */ (
41914
+ jspb.Message.getWrapperField(this, proto.clarifai.api.PostModelVersionsUploadConfig, 1));
41915
+ };
41916
+
41917
+
41918
+ /**
41919
+ * @param {?proto.clarifai.api.PostModelVersionsUploadConfig|undefined} value
41920
+ * @return {!proto.clarifai.api.PostModelVersionsUploadRequest} returns this
41921
+ */
41922
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.setUploadConfig = function(value) {
41923
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.PostModelVersionsUploadRequest.oneofGroups_[0], value);
41924
+ };
41925
+
41926
+
41927
+ /**
41928
+ * Clears the message field making it undefined.
41929
+ * @return {!proto.clarifai.api.PostModelVersionsUploadRequest} returns this
41930
+ */
41931
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.clearUploadConfig = function() {
41932
+ return this.setUploadConfig(undefined);
41933
+ };
41934
+
41935
+
41936
+ /**
41937
+ * Returns whether this field is set.
41938
+ * @return {boolean}
41939
+ */
41940
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.hasUploadConfig = function() {
41941
+ return jspb.Message.getField(this, 1) != null;
41942
+ };
41943
+
41944
+
41945
+ /**
41946
+ * optional UploadContentPart content_part = 2;
41947
+ * @return {?proto.clarifai.api.UploadContentPart}
41948
+ */
41949
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.getContentPart = function() {
41950
+ return /** @type{?proto.clarifai.api.UploadContentPart} */ (
41951
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UploadContentPart, 2));
41952
+ };
41953
+
41954
+
41955
+ /**
41956
+ * @param {?proto.clarifai.api.UploadContentPart|undefined} value
41957
+ * @return {!proto.clarifai.api.PostModelVersionsUploadRequest} returns this
41958
+ */
41959
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.setContentPart = function(value) {
41960
+ return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.PostModelVersionsUploadRequest.oneofGroups_[0], value);
41961
+ };
41962
+
41963
+
41964
+ /**
41965
+ * Clears the message field making it undefined.
41966
+ * @return {!proto.clarifai.api.PostModelVersionsUploadRequest} returns this
41967
+ */
41968
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.clearContentPart = function() {
41969
+ return this.setContentPart(undefined);
41970
+ };
41971
+
41972
+
41973
+ /**
41974
+ * Returns whether this field is set.
41975
+ * @return {boolean}
41976
+ */
41977
+ proto.clarifai.api.PostModelVersionsUploadRequest.prototype.hasContentPart = function() {
41978
+ return jspb.Message.getField(this, 2) != null;
41979
+ };
41980
+
41981
+
41982
+
41983
+
41984
+
41985
+ if (jspb.Message.GENERATE_TO_OBJECT) {
41986
+ /**
41987
+ * Creates an object representation of this proto.
41988
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
41989
+ * Optional fields that are not set will be set to undefined.
41990
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
41991
+ * For the list of reserved names please see:
41992
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
41993
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
41994
+ * JSPB instance for transitional soy proto support:
41995
+ * http://goto/soy-param-migration
41996
+ * @return {!Object}
41997
+ */
41998
+ proto.clarifai.api.PostModelVersionsUploadResponse.prototype.toObject = function(opt_includeInstance) {
41999
+ return proto.clarifai.api.PostModelVersionsUploadResponse.toObject(opt_includeInstance, this);
42000
+ };
42001
+
42002
+
42003
+ /**
42004
+ * Static version of the {@see toObject} method.
42005
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42006
+ * the JSPB instance for transitional soy proto support:
42007
+ * http://goto/soy-param-migration
42008
+ * @param {!proto.clarifai.api.PostModelVersionsUploadResponse} msg The msg instance to transform.
42009
+ * @return {!Object}
42010
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42011
+ */
42012
+ proto.clarifai.api.PostModelVersionsUploadResponse.toObject = function(includeInstance, msg) {
42013
+ var f, obj = {
42014
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
42015
+ bytesRemaining: jspb.Message.getFieldWithDefault(msg, 2, 0),
42016
+ modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, "")
42017
+ };
42018
+
42019
+ if (includeInstance) {
42020
+ obj.$jspbMessageInstance = msg;
42021
+ }
42022
+ return obj;
42023
+ };
42024
+ }
42025
+
42026
+
42027
+ /**
42028
+ * Deserializes binary data (in protobuf wire format).
42029
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
42030
+ * @return {!proto.clarifai.api.PostModelVersionsUploadResponse}
42031
+ */
42032
+ proto.clarifai.api.PostModelVersionsUploadResponse.deserializeBinary = function(bytes) {
42033
+ var reader = new jspb.BinaryReader(bytes);
42034
+ var msg = new proto.clarifai.api.PostModelVersionsUploadResponse;
42035
+ return proto.clarifai.api.PostModelVersionsUploadResponse.deserializeBinaryFromReader(msg, reader);
42036
+ };
42037
+
42038
+
42039
+ /**
42040
+ * Deserializes binary data (in protobuf wire format) from the
42041
+ * given reader into the given message object.
42042
+ * @param {!proto.clarifai.api.PostModelVersionsUploadResponse} msg The message object to deserialize into.
42043
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42044
+ * @return {!proto.clarifai.api.PostModelVersionsUploadResponse}
42045
+ */
42046
+ proto.clarifai.api.PostModelVersionsUploadResponse.deserializeBinaryFromReader = function(msg, reader) {
42047
+ while (reader.nextField()) {
42048
+ if (reader.isEndGroup()) {
42049
+ break;
42050
+ }
42051
+ var field = reader.getFieldNumber();
42052
+ switch (field) {
42053
+ case 1:
42054
+ var value = new proto_clarifai_api_status_status_pb.Status;
42055
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
42056
+ msg.setStatus(value);
42057
+ break;
42058
+ case 2:
42059
+ var value = /** @type {number} */ (reader.readUint64());
42060
+ msg.setBytesRemaining(value);
42061
+ break;
42062
+ case 3:
42063
+ var value = /** @type {string} */ (reader.readString());
42064
+ msg.setModelVersionId(value);
42065
+ break;
42066
+ default:
42067
+ reader.skipField();
42068
+ break;
42069
+ }
42070
+ }
42071
+ return msg;
42072
+ };
42073
+
42074
+
42075
+ /**
42076
+ * Serializes the message to binary data (in protobuf wire format).
42077
+ * @return {!Uint8Array}
42078
+ */
42079
+ proto.clarifai.api.PostModelVersionsUploadResponse.prototype.serializeBinary = function() {
42080
+ var writer = new jspb.BinaryWriter();
42081
+ proto.clarifai.api.PostModelVersionsUploadResponse.serializeBinaryToWriter(this, writer);
42082
+ return writer.getResultBuffer();
42083
+ };
42084
+
42085
+
42086
+ /**
42087
+ * Serializes the given message to binary data (in protobuf wire
42088
+ * format), writing to the given BinaryWriter.
42089
+ * @param {!proto.clarifai.api.PostModelVersionsUploadResponse} message
42090
+ * @param {!jspb.BinaryWriter} writer
42091
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42092
+ */
42093
+ proto.clarifai.api.PostModelVersionsUploadResponse.serializeBinaryToWriter = function(message, writer) {
42094
+ var f = undefined;
42095
+ f = message.getStatus();
42096
+ if (f != null) {
42097
+ writer.writeMessage(
42098
+ 1,
42099
+ f,
42100
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
42101
+ );
42102
+ }
42103
+ f = message.getBytesRemaining();
42104
+ if (f !== 0) {
42105
+ writer.writeUint64(
42106
+ 2,
42107
+ f
42108
+ );
42109
+ }
42110
+ f = message.getModelVersionId();
42111
+ if (f.length > 0) {
42112
+ writer.writeString(
42113
+ 3,
42114
+ f
42115
+ );
42116
+ }
42117
+ };
42118
+
42119
+
42120
+ /**
42121
+ * optional status.Status status = 1;
42122
+ * @return {?proto.clarifai.api.status.Status}
42123
+ */
42124
+ proto.clarifai.api.PostModelVersionsUploadResponse.prototype.getStatus = function() {
42125
+ return /** @type{?proto.clarifai.api.status.Status} */ (
42126
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
42127
+ };
42128
+
42129
+
42130
+ /**
42131
+ * @param {?proto.clarifai.api.status.Status|undefined} value
42132
+ * @return {!proto.clarifai.api.PostModelVersionsUploadResponse} returns this
42133
+ */
42134
+ proto.clarifai.api.PostModelVersionsUploadResponse.prototype.setStatus = function(value) {
40277
42135
  return jspb.Message.setWrapperField(this, 1, value);
40278
42136
  };
40279
42137
 
40280
42138
 
40281
42139
  /**
40282
42140
  * Clears the message field making it undefined.
40283
- * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this
42141
+ * @return {!proto.clarifai.api.PostModelVersionsUploadResponse} returns this
40284
42142
  */
40285
- proto.clarifai.api.DeleteModelVersionRequest.prototype.clearUserAppId = function() {
40286
- return this.setUserAppId(undefined);
42143
+ proto.clarifai.api.PostModelVersionsUploadResponse.prototype.clearStatus = function() {
42144
+ return this.setStatus(undefined);
40287
42145
  };
40288
42146
 
40289
42147
 
@@ -40291,44 +42149,44 @@ proto.clarifai.api.DeleteModelVersionRequest.prototype.clearUserAppId = function
40291
42149
  * Returns whether this field is set.
40292
42150
  * @return {boolean}
40293
42151
  */
40294
- proto.clarifai.api.DeleteModelVersionRequest.prototype.hasUserAppId = function() {
42152
+ proto.clarifai.api.PostModelVersionsUploadResponse.prototype.hasStatus = function() {
40295
42153
  return jspb.Message.getField(this, 1) != null;
40296
42154
  };
40297
42155
 
40298
42156
 
40299
42157
  /**
40300
- * optional string model_id = 3;
40301
- * @return {string}
42158
+ * optional uint64 bytes_remaining = 2;
42159
+ * @return {number}
40302
42160
  */
40303
- proto.clarifai.api.DeleteModelVersionRequest.prototype.getModelId = function() {
40304
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
42161
+ proto.clarifai.api.PostModelVersionsUploadResponse.prototype.getBytesRemaining = function() {
42162
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
40305
42163
  };
40306
42164
 
40307
42165
 
40308
42166
  /**
40309
- * @param {string} value
40310
- * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this
42167
+ * @param {number} value
42168
+ * @return {!proto.clarifai.api.PostModelVersionsUploadResponse} returns this
40311
42169
  */
40312
- proto.clarifai.api.DeleteModelVersionRequest.prototype.setModelId = function(value) {
40313
- return jspb.Message.setProto3StringField(this, 3, value);
42170
+ proto.clarifai.api.PostModelVersionsUploadResponse.prototype.setBytesRemaining = function(value) {
42171
+ return jspb.Message.setProto3IntField(this, 2, value);
40314
42172
  };
40315
42173
 
40316
42174
 
40317
42175
  /**
40318
- * optional string version_id = 4;
42176
+ * optional string model_version_id = 3;
40319
42177
  * @return {string}
40320
42178
  */
40321
- proto.clarifai.api.DeleteModelVersionRequest.prototype.getVersionId = function() {
40322
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
42179
+ proto.clarifai.api.PostModelVersionsUploadResponse.prototype.getModelVersionId = function() {
42180
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
40323
42181
  };
40324
42182
 
40325
42183
 
40326
42184
  /**
40327
42185
  * @param {string} value
40328
- * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this
42186
+ * @return {!proto.clarifai.api.PostModelVersionsUploadResponse} returns this
40329
42187
  */
40330
- proto.clarifai.api.DeleteModelVersionRequest.prototype.setVersionId = function(value) {
40331
- return jspb.Message.setProto3StringField(this, 4, value);
42188
+ proto.clarifai.api.PostModelVersionsUploadResponse.prototype.setModelVersionId = function(value) {
42189
+ return jspb.Message.setProto3StringField(this, 3, value);
40332
42190
  };
40333
42191
 
40334
42192
 
@@ -40348,8 +42206,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
40348
42206
  * http://goto/soy-param-migration
40349
42207
  * @return {!Object}
40350
42208
  */
40351
- proto.clarifai.api.SingleModelVersionResponse.prototype.toObject = function(opt_includeInstance) {
40352
- return proto.clarifai.api.SingleModelVersionResponse.toObject(opt_includeInstance, this);
42209
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.toObject = function(opt_includeInstance) {
42210
+ return proto.clarifai.api.PostModelVersionsUploadConfig.toObject(opt_includeInstance, this);
40353
42211
  };
40354
42212
 
40355
42213
 
@@ -40358,14 +42216,16 @@ proto.clarifai.api.SingleModelVersionResponse.prototype.toObject = function(opt_
40358
42216
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40359
42217
  * the JSPB instance for transitional soy proto support:
40360
42218
  * http://goto/soy-param-migration
40361
- * @param {!proto.clarifai.api.SingleModelVersionResponse} msg The msg instance to transform.
42219
+ * @param {!proto.clarifai.api.PostModelVersionsUploadConfig} msg The msg instance to transform.
40362
42220
  * @return {!Object}
40363
42221
  * @suppress {unusedLocalVariables} f is only used for nested messages
40364
42222
  */
40365
- proto.clarifai.api.SingleModelVersionResponse.toObject = function(includeInstance, msg) {
42223
+ proto.clarifai.api.PostModelVersionsUploadConfig.toObject = function(includeInstance, msg) {
40366
42224
  var f, obj = {
40367
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
40368
- modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f)
42225
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
42226
+ modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
42227
+ modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f),
42228
+ totalSize: jspb.Message.getFieldWithDefault(msg, 4, 0)
40369
42229
  };
40370
42230
 
40371
42231
  if (includeInstance) {
@@ -40379,23 +42239,23 @@ proto.clarifai.api.SingleModelVersionResponse.toObject = function(includeInstanc
40379
42239
  /**
40380
42240
  * Deserializes binary data (in protobuf wire format).
40381
42241
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
40382
- * @return {!proto.clarifai.api.SingleModelVersionResponse}
42242
+ * @return {!proto.clarifai.api.PostModelVersionsUploadConfig}
40383
42243
  */
40384
- proto.clarifai.api.SingleModelVersionResponse.deserializeBinary = function(bytes) {
42244
+ proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinary = function(bytes) {
40385
42245
  var reader = new jspb.BinaryReader(bytes);
40386
- var msg = new proto.clarifai.api.SingleModelVersionResponse;
40387
- return proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader(msg, reader);
42246
+ var msg = new proto.clarifai.api.PostModelVersionsUploadConfig;
42247
+ return proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader(msg, reader);
40388
42248
  };
40389
42249
 
40390
42250
 
40391
42251
  /**
40392
42252
  * Deserializes binary data (in protobuf wire format) from the
40393
42253
  * given reader into the given message object.
40394
- * @param {!proto.clarifai.api.SingleModelVersionResponse} msg The message object to deserialize into.
42254
+ * @param {!proto.clarifai.api.PostModelVersionsUploadConfig} msg The message object to deserialize into.
40395
42255
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40396
- * @return {!proto.clarifai.api.SingleModelVersionResponse}
42256
+ * @return {!proto.clarifai.api.PostModelVersionsUploadConfig}
40397
42257
  */
40398
- proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader = function(msg, reader) {
42258
+ proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader = function(msg, reader) {
40399
42259
  while (reader.nextField()) {
40400
42260
  if (reader.isEndGroup()) {
40401
42261
  break;
@@ -40403,15 +42263,23 @@ proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader = func
40403
42263
  var field = reader.getFieldNumber();
40404
42264
  switch (field) {
40405
42265
  case 1:
40406
- var value = new proto_clarifai_api_status_status_pb.Status;
40407
- reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
40408
- msg.setStatus(value);
42266
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
42267
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
42268
+ msg.setUserAppId(value);
40409
42269
  break;
40410
42270
  case 2:
42271
+ var value = /** @type {string} */ (reader.readString());
42272
+ msg.setModelId(value);
42273
+ break;
42274
+ case 3:
40411
42275
  var value = new proto_clarifai_api_resources_pb.ModelVersion;
40412
42276
  reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader);
40413
42277
  msg.setModelVersion(value);
40414
42278
  break;
42279
+ case 4:
42280
+ var value = /** @type {number} */ (reader.readUint64());
42281
+ msg.setTotalSize(value);
42282
+ break;
40415
42283
  default:
40416
42284
  reader.skipField();
40417
42285
  break;
@@ -40425,9 +42293,9 @@ proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader = func
40425
42293
  * Serializes the message to binary data (in protobuf wire format).
40426
42294
  * @return {!Uint8Array}
40427
42295
  */
40428
- proto.clarifai.api.SingleModelVersionResponse.prototype.serializeBinary = function() {
42296
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.serializeBinary = function() {
40429
42297
  var writer = new jspb.BinaryWriter();
40430
- proto.clarifai.api.SingleModelVersionResponse.serializeBinaryToWriter(this, writer);
42298
+ proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter(this, writer);
40431
42299
  return writer.getResultBuffer();
40432
42300
  };
40433
42301
 
@@ -40435,56 +42303,70 @@ proto.clarifai.api.SingleModelVersionResponse.prototype.serializeBinary = functi
40435
42303
  /**
40436
42304
  * Serializes the given message to binary data (in protobuf wire
40437
42305
  * format), writing to the given BinaryWriter.
40438
- * @param {!proto.clarifai.api.SingleModelVersionResponse} message
42306
+ * @param {!proto.clarifai.api.PostModelVersionsUploadConfig} message
40439
42307
  * @param {!jspb.BinaryWriter} writer
40440
42308
  * @suppress {unusedLocalVariables} f is only used for nested messages
40441
42309
  */
40442
- proto.clarifai.api.SingleModelVersionResponse.serializeBinaryToWriter = function(message, writer) {
42310
+ proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter = function(message, writer) {
40443
42311
  var f = undefined;
40444
- f = message.getStatus();
42312
+ f = message.getUserAppId();
40445
42313
  if (f != null) {
40446
42314
  writer.writeMessage(
40447
42315
  1,
40448
42316
  f,
40449
- proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
42317
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
42318
+ );
42319
+ }
42320
+ f = message.getModelId();
42321
+ if (f.length > 0) {
42322
+ writer.writeString(
42323
+ 2,
42324
+ f
40450
42325
  );
40451
42326
  }
40452
42327
  f = message.getModelVersion();
40453
42328
  if (f != null) {
40454
42329
  writer.writeMessage(
40455
- 2,
42330
+ 3,
40456
42331
  f,
40457
42332
  proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter
40458
42333
  );
40459
42334
  }
42335
+ f = message.getTotalSize();
42336
+ if (f !== 0) {
42337
+ writer.writeUint64(
42338
+ 4,
42339
+ f
42340
+ );
42341
+ }
40460
42342
  };
40461
42343
 
40462
42344
 
40463
42345
  /**
40464
- * optional status.Status status = 1;
40465
- * @return {?proto.clarifai.api.status.Status}
42346
+ * optional UserAppIDSet user_app_id = 1;
42347
+ * @return {?proto.clarifai.api.UserAppIDSet}
40466
42348
  */
40467
- proto.clarifai.api.SingleModelVersionResponse.prototype.getStatus = function() {
40468
- return /** @type{?proto.clarifai.api.status.Status} */ (
40469
- jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
42349
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getUserAppId = function() {
42350
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
42351
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
40470
42352
  };
40471
42353
 
40472
42354
 
40473
42355
  /**
40474
- * @param {?proto.clarifai.api.status.Status|undefined} value
40475
- * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this
42356
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
42357
+ * @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
40476
42358
  */
40477
- proto.clarifai.api.SingleModelVersionResponse.prototype.setStatus = function(value) {
42359
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setUserAppId = function(value) {
40478
42360
  return jspb.Message.setWrapperField(this, 1, value);
40479
42361
  };
40480
42362
 
40481
42363
 
40482
42364
  /**
40483
42365
  * Clears the message field making it undefined.
40484
- * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this
42366
+ * @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
40485
42367
  */
40486
- proto.clarifai.api.SingleModelVersionResponse.prototype.clearStatus = function() {
40487
- return this.setStatus(undefined);
42368
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.clearUserAppId = function() {
42369
+ return this.setUserAppId(undefined);
40488
42370
  };
40489
42371
 
40490
42372
 
@@ -40492,35 +42374,53 @@ proto.clarifai.api.SingleModelVersionResponse.prototype.clearStatus = function()
40492
42374
  * Returns whether this field is set.
40493
42375
  * @return {boolean}
40494
42376
  */
40495
- proto.clarifai.api.SingleModelVersionResponse.prototype.hasStatus = function() {
42377
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.hasUserAppId = function() {
40496
42378
  return jspb.Message.getField(this, 1) != null;
40497
42379
  };
40498
42380
 
40499
42381
 
40500
42382
  /**
40501
- * optional ModelVersion model_version = 2;
42383
+ * optional string model_id = 2;
42384
+ * @return {string}
42385
+ */
42386
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getModelId = function() {
42387
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
42388
+ };
42389
+
42390
+
42391
+ /**
42392
+ * @param {string} value
42393
+ * @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
42394
+ */
42395
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setModelId = function(value) {
42396
+ return jspb.Message.setProto3StringField(this, 2, value);
42397
+ };
42398
+
42399
+
42400
+ /**
42401
+ * optional ModelVersion model_version = 3;
40502
42402
  * @return {?proto.clarifai.api.ModelVersion}
40503
42403
  */
40504
- proto.clarifai.api.SingleModelVersionResponse.prototype.getModelVersion = function() {
42404
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getModelVersion = function() {
40505
42405
  return /** @type{?proto.clarifai.api.ModelVersion} */ (
40506
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 2));
42406
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 3));
40507
42407
  };
40508
42408
 
40509
42409
 
40510
42410
  /**
40511
42411
  * @param {?proto.clarifai.api.ModelVersion|undefined} value
40512
- * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this
42412
+ * @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
40513
42413
  */
40514
- proto.clarifai.api.SingleModelVersionResponse.prototype.setModelVersion = function(value) {
40515
- return jspb.Message.setWrapperField(this, 2, value);
42414
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setModelVersion = function(value) {
42415
+ return jspb.Message.setWrapperField(this, 3, value);
40516
42416
  };
40517
42417
 
40518
42418
 
40519
42419
  /**
40520
42420
  * Clears the message field making it undefined.
40521
- * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this
42421
+ * @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
40522
42422
  */
40523
- proto.clarifai.api.SingleModelVersionResponse.prototype.clearModelVersion = function() {
42423
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.clearModelVersion = function() {
40524
42424
  return this.setModelVersion(undefined);
40525
42425
  };
40526
42426
 
@@ -40529,18 +42429,29 @@ proto.clarifai.api.SingleModelVersionResponse.prototype.clearModelVersion = func
40529
42429
  * Returns whether this field is set.
40530
42430
  * @return {boolean}
40531
42431
  */
40532
- proto.clarifai.api.SingleModelVersionResponse.prototype.hasModelVersion = function() {
40533
- return jspb.Message.getField(this, 2) != null;
42432
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.hasModelVersion = function() {
42433
+ return jspb.Message.getField(this, 3) != null;
40534
42434
  };
40535
42435
 
40536
42436
 
42437
+ /**
42438
+ * optional uint64 total_size = 4;
42439
+ * @return {number}
42440
+ */
42441
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getTotalSize = function() {
42442
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
42443
+ };
42444
+
40537
42445
 
40538
42446
  /**
40539
- * List of repeated fields within this message type.
40540
- * @private {!Array<number>}
40541
- * @const
42447
+ * @param {number} value
42448
+ * @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
40542
42449
  */
40543
- proto.clarifai.api.MultiModelVersionResponse.repeatedFields_ = [2];
42450
+ proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setTotalSize = function(value) {
42451
+ return jspb.Message.setProto3IntField(this, 4, value);
42452
+ };
42453
+
42454
+
40544
42455
 
40545
42456
 
40546
42457
 
@@ -40557,8 +42468,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
40557
42468
  * http://goto/soy-param-migration
40558
42469
  * @return {!Object}
40559
42470
  */
40560
- proto.clarifai.api.MultiModelVersionResponse.prototype.toObject = function(opt_includeInstance) {
40561
- return proto.clarifai.api.MultiModelVersionResponse.toObject(opt_includeInstance, this);
42471
+ proto.clarifai.api.PutModelVersionExportsRequest.prototype.toObject = function(opt_includeInstance) {
42472
+ return proto.clarifai.api.PutModelVersionExportsRequest.toObject(opt_includeInstance, this);
40562
42473
  };
40563
42474
 
40564
42475
 
@@ -40567,15 +42478,15 @@ proto.clarifai.api.MultiModelVersionResponse.prototype.toObject = function(opt_i
40567
42478
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40568
42479
  * the JSPB instance for transitional soy proto support:
40569
42480
  * http://goto/soy-param-migration
40570
- * @param {!proto.clarifai.api.MultiModelVersionResponse} msg The msg instance to transform.
42481
+ * @param {!proto.clarifai.api.PutModelVersionExportsRequest} msg The msg instance to transform.
40571
42482
  * @return {!Object}
40572
42483
  * @suppress {unusedLocalVariables} f is only used for nested messages
40573
42484
  */
40574
- proto.clarifai.api.MultiModelVersionResponse.toObject = function(includeInstance, msg) {
42485
+ proto.clarifai.api.PutModelVersionExportsRequest.toObject = function(includeInstance, msg) {
40575
42486
  var f, obj = {
40576
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
40577
- modelVersionsList: jspb.Message.toObjectList(msg.getModelVersionsList(),
40578
- proto_clarifai_api_resources_pb.ModelVersion.toObject, includeInstance)
42487
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
42488
+ modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
42489
+ versionId: jspb.Message.getFieldWithDefault(msg, 3, "")
40579
42490
  };
40580
42491
 
40581
42492
  if (includeInstance) {
@@ -40589,23 +42500,23 @@ proto.clarifai.api.MultiModelVersionResponse.toObject = function(includeInstance
40589
42500
  /**
40590
42501
  * Deserializes binary data (in protobuf wire format).
40591
42502
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
40592
- * @return {!proto.clarifai.api.MultiModelVersionResponse}
42503
+ * @return {!proto.clarifai.api.PutModelVersionExportsRequest}
40593
42504
  */
40594
- proto.clarifai.api.MultiModelVersionResponse.deserializeBinary = function(bytes) {
42505
+ proto.clarifai.api.PutModelVersionExportsRequest.deserializeBinary = function(bytes) {
40595
42506
  var reader = new jspb.BinaryReader(bytes);
40596
- var msg = new proto.clarifai.api.MultiModelVersionResponse;
40597
- return proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader(msg, reader);
42507
+ var msg = new proto.clarifai.api.PutModelVersionExportsRequest;
42508
+ return proto.clarifai.api.PutModelVersionExportsRequest.deserializeBinaryFromReader(msg, reader);
40598
42509
  };
40599
42510
 
40600
42511
 
40601
42512
  /**
40602
42513
  * Deserializes binary data (in protobuf wire format) from the
40603
42514
  * given reader into the given message object.
40604
- * @param {!proto.clarifai.api.MultiModelVersionResponse} msg The message object to deserialize into.
42515
+ * @param {!proto.clarifai.api.PutModelVersionExportsRequest} msg The message object to deserialize into.
40605
42516
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40606
- * @return {!proto.clarifai.api.MultiModelVersionResponse}
42517
+ * @return {!proto.clarifai.api.PutModelVersionExportsRequest}
40607
42518
  */
40608
- proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader = function(msg, reader) {
42519
+ proto.clarifai.api.PutModelVersionExportsRequest.deserializeBinaryFromReader = function(msg, reader) {
40609
42520
  while (reader.nextField()) {
40610
42521
  if (reader.isEndGroup()) {
40611
42522
  break;
@@ -40613,14 +42524,17 @@ proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader = funct
40613
42524
  var field = reader.getFieldNumber();
40614
42525
  switch (field) {
40615
42526
  case 1:
40616
- var value = new proto_clarifai_api_status_status_pb.Status;
40617
- reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
40618
- msg.setStatus(value);
42527
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
42528
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
42529
+ msg.setUserAppId(value);
40619
42530
  break;
40620
42531
  case 2:
40621
- var value = new proto_clarifai_api_resources_pb.ModelVersion;
40622
- reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader);
40623
- msg.addModelVersions(value);
42532
+ var value = /** @type {string} */ (reader.readString());
42533
+ msg.setModelId(value);
42534
+ break;
42535
+ case 3:
42536
+ var value = /** @type {string} */ (reader.readString());
42537
+ msg.setVersionId(value);
40624
42538
  break;
40625
42539
  default:
40626
42540
  reader.skipField();
@@ -40635,9 +42549,9 @@ proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader = funct
40635
42549
  * Serializes the message to binary data (in protobuf wire format).
40636
42550
  * @return {!Uint8Array}
40637
42551
  */
40638
- proto.clarifai.api.MultiModelVersionResponse.prototype.serializeBinary = function() {
42552
+ proto.clarifai.api.PutModelVersionExportsRequest.prototype.serializeBinary = function() {
40639
42553
  var writer = new jspb.BinaryWriter();
40640
- proto.clarifai.api.MultiModelVersionResponse.serializeBinaryToWriter(this, writer);
42554
+ proto.clarifai.api.PutModelVersionExportsRequest.serializeBinaryToWriter(this, writer);
40641
42555
  return writer.getResultBuffer();
40642
42556
  };
40643
42557
 
@@ -40645,56 +42559,62 @@ proto.clarifai.api.MultiModelVersionResponse.prototype.serializeBinary = functio
40645
42559
  /**
40646
42560
  * Serializes the given message to binary data (in protobuf wire
40647
42561
  * format), writing to the given BinaryWriter.
40648
- * @param {!proto.clarifai.api.MultiModelVersionResponse} message
42562
+ * @param {!proto.clarifai.api.PutModelVersionExportsRequest} message
40649
42563
  * @param {!jspb.BinaryWriter} writer
40650
42564
  * @suppress {unusedLocalVariables} f is only used for nested messages
40651
42565
  */
40652
- proto.clarifai.api.MultiModelVersionResponse.serializeBinaryToWriter = function(message, writer) {
42566
+ proto.clarifai.api.PutModelVersionExportsRequest.serializeBinaryToWriter = function(message, writer) {
40653
42567
  var f = undefined;
40654
- f = message.getStatus();
42568
+ f = message.getUserAppId();
40655
42569
  if (f != null) {
40656
42570
  writer.writeMessage(
40657
42571
  1,
40658
42572
  f,
40659
- proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
42573
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
40660
42574
  );
40661
42575
  }
40662
- f = message.getModelVersionsList();
42576
+ f = message.getModelId();
40663
42577
  if (f.length > 0) {
40664
- writer.writeRepeatedMessage(
42578
+ writer.writeString(
40665
42579
  2,
40666
- f,
40667
- proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter
42580
+ f
42581
+ );
42582
+ }
42583
+ f = message.getVersionId();
42584
+ if (f.length > 0) {
42585
+ writer.writeString(
42586
+ 3,
42587
+ f
40668
42588
  );
40669
42589
  }
40670
42590
  };
40671
42591
 
40672
42592
 
40673
42593
  /**
40674
- * optional status.Status status = 1;
40675
- * @return {?proto.clarifai.api.status.Status}
42594
+ * optional UserAppIDSet user_app_id = 1;
42595
+ * @return {?proto.clarifai.api.UserAppIDSet}
40676
42596
  */
40677
- proto.clarifai.api.MultiModelVersionResponse.prototype.getStatus = function() {
40678
- return /** @type{?proto.clarifai.api.status.Status} */ (
40679
- jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
42597
+ proto.clarifai.api.PutModelVersionExportsRequest.prototype.getUserAppId = function() {
42598
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
42599
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
40680
42600
  };
40681
42601
 
40682
42602
 
40683
42603
  /**
40684
- * @param {?proto.clarifai.api.status.Status|undefined} value
40685
- * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this
42604
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
42605
+ * @return {!proto.clarifai.api.PutModelVersionExportsRequest} returns this
40686
42606
  */
40687
- proto.clarifai.api.MultiModelVersionResponse.prototype.setStatus = function(value) {
42607
+ proto.clarifai.api.PutModelVersionExportsRequest.prototype.setUserAppId = function(value) {
40688
42608
  return jspb.Message.setWrapperField(this, 1, value);
40689
42609
  };
40690
42610
 
40691
42611
 
40692
42612
  /**
40693
42613
  * Clears the message field making it undefined.
40694
- * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this
42614
+ * @return {!proto.clarifai.api.PutModelVersionExportsRequest} returns this
40695
42615
  */
40696
- proto.clarifai.api.MultiModelVersionResponse.prototype.clearStatus = function() {
40697
- return this.setStatus(undefined);
42616
+ proto.clarifai.api.PutModelVersionExportsRequest.prototype.clearUserAppId = function() {
42617
+ return this.setUserAppId(undefined);
40698
42618
  };
40699
42619
 
40700
42620
 
@@ -40702,57 +42622,48 @@ proto.clarifai.api.MultiModelVersionResponse.prototype.clearStatus = function()
40702
42622
  * Returns whether this field is set.
40703
42623
  * @return {boolean}
40704
42624
  */
40705
- proto.clarifai.api.MultiModelVersionResponse.prototype.hasStatus = function() {
42625
+ proto.clarifai.api.PutModelVersionExportsRequest.prototype.hasUserAppId = function() {
40706
42626
  return jspb.Message.getField(this, 1) != null;
40707
42627
  };
40708
42628
 
40709
42629
 
40710
42630
  /**
40711
- * repeated ModelVersion model_versions = 2;
40712
- * @return {!Array<!proto.clarifai.api.ModelVersion>}
42631
+ * optional string model_id = 2;
42632
+ * @return {string}
40713
42633
  */
40714
- proto.clarifai.api.MultiModelVersionResponse.prototype.getModelVersionsList = function() {
40715
- return /** @type{!Array<!proto.clarifai.api.ModelVersion>} */ (
40716
- jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 2));
42634
+ proto.clarifai.api.PutModelVersionExportsRequest.prototype.getModelId = function() {
42635
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
40717
42636
  };
40718
42637
 
40719
42638
 
40720
42639
  /**
40721
- * @param {!Array<!proto.clarifai.api.ModelVersion>} value
40722
- * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this
40723
- */
40724
- proto.clarifai.api.MultiModelVersionResponse.prototype.setModelVersionsList = function(value) {
40725
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
42640
+ * @param {string} value
42641
+ * @return {!proto.clarifai.api.PutModelVersionExportsRequest} returns this
42642
+ */
42643
+ proto.clarifai.api.PutModelVersionExportsRequest.prototype.setModelId = function(value) {
42644
+ return jspb.Message.setProto3StringField(this, 2, value);
40726
42645
  };
40727
42646
 
40728
42647
 
40729
42648
  /**
40730
- * @param {!proto.clarifai.api.ModelVersion=} opt_value
40731
- * @param {number=} opt_index
40732
- * @return {!proto.clarifai.api.ModelVersion}
42649
+ * optional string version_id = 3;
42650
+ * @return {string}
40733
42651
  */
40734
- proto.clarifai.api.MultiModelVersionResponse.prototype.addModelVersions = function(opt_value, opt_index) {
40735
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModelVersion, opt_index);
42652
+ proto.clarifai.api.PutModelVersionExportsRequest.prototype.getVersionId = function() {
42653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
40736
42654
  };
40737
42655
 
40738
42656
 
40739
42657
  /**
40740
- * Clears the list making it empty but non-null.
40741
- * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this
42658
+ * @param {string} value
42659
+ * @return {!proto.clarifai.api.PutModelVersionExportsRequest} returns this
40742
42660
  */
40743
- proto.clarifai.api.MultiModelVersionResponse.prototype.clearModelVersionsList = function() {
40744
- return this.setModelVersionsList([]);
42661
+ proto.clarifai.api.PutModelVersionExportsRequest.prototype.setVersionId = function(value) {
42662
+ return jspb.Message.setProto3StringField(this, 3, value);
40745
42663
  };
40746
42664
 
40747
42665
 
40748
42666
 
40749
- /**
40750
- * List of repeated fields within this message type.
40751
- * @private {!Array<number>}
40752
- * @const
40753
- */
40754
- proto.clarifai.api.PostModelVersionsRequest.repeatedFields_ = [3];
40755
-
40756
42667
 
40757
42668
 
40758
42669
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -40768,8 +42679,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
40768
42679
  * http://goto/soy-param-migration
40769
42680
  * @return {!Object}
40770
42681
  */
40771
- proto.clarifai.api.PostModelVersionsRequest.prototype.toObject = function(opt_includeInstance) {
40772
- return proto.clarifai.api.PostModelVersionsRequest.toObject(opt_includeInstance, this);
42682
+ proto.clarifai.api.GetModelVersionExportRequest.prototype.toObject = function(opt_includeInstance) {
42683
+ return proto.clarifai.api.GetModelVersionExportRequest.toObject(opt_includeInstance, this);
40773
42684
  };
40774
42685
 
40775
42686
 
@@ -40778,18 +42689,15 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.toObject = function(opt_in
40778
42689
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40779
42690
  * the JSPB instance for transitional soy proto support:
40780
42691
  * http://goto/soy-param-migration
40781
- * @param {!proto.clarifai.api.PostModelVersionsRequest} msg The msg instance to transform.
42692
+ * @param {!proto.clarifai.api.GetModelVersionExportRequest} msg The msg instance to transform.
40782
42693
  * @return {!Object}
40783
42694
  * @suppress {unusedLocalVariables} f is only used for nested messages
40784
42695
  */
40785
- proto.clarifai.api.PostModelVersionsRequest.toObject = function(includeInstance, msg) {
42696
+ proto.clarifai.api.GetModelVersionExportRequest.toObject = function(includeInstance, msg) {
40786
42697
  var f, obj = {
40787
42698
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
40788
42699
  modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
40789
- modelVersionsList: jspb.Message.toObjectList(msg.getModelVersionsList(),
40790
- proto_clarifai_api_resources_pb.ModelVersion.toObject, includeInstance),
40791
- description: jspb.Message.getFieldWithDefault(msg, 8, ""),
40792
- evalInfo: (f = msg.getEvalInfo()) && proto_clarifai_api_resources_pb.EvalInfo.toObject(includeInstance, f)
42700
+ versionId: jspb.Message.getFieldWithDefault(msg, 3, "")
40793
42701
  };
40794
42702
 
40795
42703
  if (includeInstance) {
@@ -40803,23 +42711,23 @@ proto.clarifai.api.PostModelVersionsRequest.toObject = function(includeInstance,
40803
42711
  /**
40804
42712
  * Deserializes binary data (in protobuf wire format).
40805
42713
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
40806
- * @return {!proto.clarifai.api.PostModelVersionsRequest}
42714
+ * @return {!proto.clarifai.api.GetModelVersionExportRequest}
40807
42715
  */
40808
- proto.clarifai.api.PostModelVersionsRequest.deserializeBinary = function(bytes) {
42716
+ proto.clarifai.api.GetModelVersionExportRequest.deserializeBinary = function(bytes) {
40809
42717
  var reader = new jspb.BinaryReader(bytes);
40810
- var msg = new proto.clarifai.api.PostModelVersionsRequest;
40811
- return proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader(msg, reader);
42718
+ var msg = new proto.clarifai.api.GetModelVersionExportRequest;
42719
+ return proto.clarifai.api.GetModelVersionExportRequest.deserializeBinaryFromReader(msg, reader);
40812
42720
  };
40813
42721
 
40814
42722
 
40815
42723
  /**
40816
42724
  * Deserializes binary data (in protobuf wire format) from the
40817
42725
  * given reader into the given message object.
40818
- * @param {!proto.clarifai.api.PostModelVersionsRequest} msg The message object to deserialize into.
42726
+ * @param {!proto.clarifai.api.GetModelVersionExportRequest} msg The message object to deserialize into.
40819
42727
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40820
- * @return {!proto.clarifai.api.PostModelVersionsRequest}
42728
+ * @return {!proto.clarifai.api.GetModelVersionExportRequest}
40821
42729
  */
40822
- proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader = function(msg, reader) {
42730
+ proto.clarifai.api.GetModelVersionExportRequest.deserializeBinaryFromReader = function(msg, reader) {
40823
42731
  while (reader.nextField()) {
40824
42732
  if (reader.isEndGroup()) {
40825
42733
  break;
@@ -40836,18 +42744,8 @@ proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader = functi
40836
42744
  msg.setModelId(value);
40837
42745
  break;
40838
42746
  case 3:
40839
- var value = new proto_clarifai_api_resources_pb.ModelVersion;
40840
- reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader);
40841
- msg.addModelVersions(value);
40842
- break;
40843
- case 8:
40844
42747
  var value = /** @type {string} */ (reader.readString());
40845
- msg.setDescription(value);
40846
- break;
40847
- case 10:
40848
- var value = new proto_clarifai_api_resources_pb.EvalInfo;
40849
- reader.readMessage(value,proto_clarifai_api_resources_pb.EvalInfo.deserializeBinaryFromReader);
40850
- msg.setEvalInfo(value);
42748
+ msg.setVersionId(value);
40851
42749
  break;
40852
42750
  default:
40853
42751
  reader.skipField();
@@ -40862,9 +42760,9 @@ proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader = functi
40862
42760
  * Serializes the message to binary data (in protobuf wire format).
40863
42761
  * @return {!Uint8Array}
40864
42762
  */
40865
- proto.clarifai.api.PostModelVersionsRequest.prototype.serializeBinary = function() {
42763
+ proto.clarifai.api.GetModelVersionExportRequest.prototype.serializeBinary = function() {
40866
42764
  var writer = new jspb.BinaryWriter();
40867
- proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter(this, writer);
42765
+ proto.clarifai.api.GetModelVersionExportRequest.serializeBinaryToWriter(this, writer);
40868
42766
  return writer.getResultBuffer();
40869
42767
  };
40870
42768
 
@@ -40872,11 +42770,11 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.serializeBinary = function
40872
42770
  /**
40873
42771
  * Serializes the given message to binary data (in protobuf wire
40874
42772
  * format), writing to the given BinaryWriter.
40875
- * @param {!proto.clarifai.api.PostModelVersionsRequest} message
42773
+ * @param {!proto.clarifai.api.GetModelVersionExportRequest} message
40876
42774
  * @param {!jspb.BinaryWriter} writer
40877
42775
  * @suppress {unusedLocalVariables} f is only used for nested messages
40878
42776
  */
40879
- proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter = function(message, writer) {
42777
+ proto.clarifai.api.GetModelVersionExportRequest.serializeBinaryToWriter = function(message, writer) {
40880
42778
  var f = undefined;
40881
42779
  f = message.getUserAppId();
40882
42780
  if (f != null) {
@@ -40893,29 +42791,13 @@ proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter = function(m
40893
42791
  f
40894
42792
  );
40895
42793
  }
40896
- f = message.getModelVersionsList();
40897
- if (f.length > 0) {
40898
- writer.writeRepeatedMessage(
40899
- 3,
40900
- f,
40901
- proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter
40902
- );
40903
- }
40904
- f = message.getDescription();
42794
+ f = message.getVersionId();
40905
42795
  if (f.length > 0) {
40906
42796
  writer.writeString(
40907
- 8,
42797
+ 3,
40908
42798
  f
40909
42799
  );
40910
42800
  }
40911
- f = message.getEvalInfo();
40912
- if (f != null) {
40913
- writer.writeMessage(
40914
- 10,
40915
- f,
40916
- proto_clarifai_api_resources_pb.EvalInfo.serializeBinaryToWriter
40917
- );
40918
- }
40919
42801
  };
40920
42802
 
40921
42803
 
@@ -40923,7 +42805,7 @@ proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter = function(m
40923
42805
  * optional UserAppIDSet user_app_id = 1;
40924
42806
  * @return {?proto.clarifai.api.UserAppIDSet}
40925
42807
  */
40926
- proto.clarifai.api.PostModelVersionsRequest.prototype.getUserAppId = function() {
42808
+ proto.clarifai.api.GetModelVersionExportRequest.prototype.getUserAppId = function() {
40927
42809
  return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
40928
42810
  jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
40929
42811
  };
@@ -40931,18 +42813,18 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.getUserAppId = function()
40931
42813
 
40932
42814
  /**
40933
42815
  * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
40934
- * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
42816
+ * @return {!proto.clarifai.api.GetModelVersionExportRequest} returns this
40935
42817
  */
40936
- proto.clarifai.api.PostModelVersionsRequest.prototype.setUserAppId = function(value) {
42818
+ proto.clarifai.api.GetModelVersionExportRequest.prototype.setUserAppId = function(value) {
40937
42819
  return jspb.Message.setWrapperField(this, 1, value);
40938
42820
  };
40939
42821
 
40940
42822
 
40941
42823
  /**
40942
42824
  * Clears the message field making it undefined.
40943
- * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
42825
+ * @return {!proto.clarifai.api.GetModelVersionExportRequest} returns this
40944
42826
  */
40945
- proto.clarifai.api.PostModelVersionsRequest.prototype.clearUserAppId = function() {
42827
+ proto.clarifai.api.GetModelVersionExportRequest.prototype.clearUserAppId = function() {
40946
42828
  return this.setUserAppId(undefined);
40947
42829
  };
40948
42830
 
@@ -40951,7 +42833,7 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.clearUserAppId = function(
40951
42833
  * Returns whether this field is set.
40952
42834
  * @return {boolean}
40953
42835
  */
40954
- proto.clarifai.api.PostModelVersionsRequest.prototype.hasUserAppId = function() {
42836
+ proto.clarifai.api.GetModelVersionExportRequest.prototype.hasUserAppId = function() {
40955
42837
  return jspb.Message.getField(this, 1) != null;
40956
42838
  };
40957
42839
 
@@ -40960,101 +42842,191 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.hasUserAppId = function()
40960
42842
  * optional string model_id = 2;
40961
42843
  * @return {string}
40962
42844
  */
40963
- proto.clarifai.api.PostModelVersionsRequest.prototype.getModelId = function() {
42845
+ proto.clarifai.api.GetModelVersionExportRequest.prototype.getModelId = function() {
40964
42846
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
40965
42847
  };
40966
42848
 
40967
42849
 
40968
42850
  /**
40969
42851
  * @param {string} value
40970
- * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
42852
+ * @return {!proto.clarifai.api.GetModelVersionExportRequest} returns this
40971
42853
  */
40972
- proto.clarifai.api.PostModelVersionsRequest.prototype.setModelId = function(value) {
42854
+ proto.clarifai.api.GetModelVersionExportRequest.prototype.setModelId = function(value) {
40973
42855
  return jspb.Message.setProto3StringField(this, 2, value);
40974
42856
  };
40975
42857
 
40976
42858
 
40977
42859
  /**
40978
- * repeated ModelVersion model_versions = 3;
40979
- * @return {!Array<!proto.clarifai.api.ModelVersion>}
42860
+ * optional string version_id = 3;
42861
+ * @return {string}
40980
42862
  */
40981
- proto.clarifai.api.PostModelVersionsRequest.prototype.getModelVersionsList = function() {
40982
- return /** @type{!Array<!proto.clarifai.api.ModelVersion>} */ (
40983
- jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 3));
42863
+ proto.clarifai.api.GetModelVersionExportRequest.prototype.getVersionId = function() {
42864
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
40984
42865
  };
40985
42866
 
40986
42867
 
40987
42868
  /**
40988
- * @param {!Array<!proto.clarifai.api.ModelVersion>} value
40989
- * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
40990
- */
40991
- proto.clarifai.api.PostModelVersionsRequest.prototype.setModelVersionsList = function(value) {
40992
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
42869
+ * @param {string} value
42870
+ * @return {!proto.clarifai.api.GetModelVersionExportRequest} returns this
42871
+ */
42872
+ proto.clarifai.api.GetModelVersionExportRequest.prototype.setVersionId = function(value) {
42873
+ return jspb.Message.setProto3StringField(this, 3, value);
40993
42874
  };
40994
42875
 
40995
42876
 
42877
+
42878
+
42879
+
42880
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40996
42881
  /**
40997
- * @param {!proto.clarifai.api.ModelVersion=} opt_value
40998
- * @param {number=} opt_index
40999
- * @return {!proto.clarifai.api.ModelVersion}
42882
+ * Creates an object representation of this proto.
42883
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
42884
+ * Optional fields that are not set will be set to undefined.
42885
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42886
+ * For the list of reserved names please see:
42887
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42888
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42889
+ * JSPB instance for transitional soy proto support:
42890
+ * http://goto/soy-param-migration
42891
+ * @return {!Object}
41000
42892
  */
41001
- proto.clarifai.api.PostModelVersionsRequest.prototype.addModelVersions = function(opt_value, opt_index) {
41002
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelVersion, opt_index);
42893
+ proto.clarifai.api.SingleModelVersionExportResponse.prototype.toObject = function(opt_includeInstance) {
42894
+ return proto.clarifai.api.SingleModelVersionExportResponse.toObject(opt_includeInstance, this);
41003
42895
  };
41004
42896
 
41005
42897
 
41006
42898
  /**
41007
- * Clears the list making it empty but non-null.
41008
- * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
42899
+ * Static version of the {@see toObject} method.
42900
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42901
+ * the JSPB instance for transitional soy proto support:
42902
+ * http://goto/soy-param-migration
42903
+ * @param {!proto.clarifai.api.SingleModelVersionExportResponse} msg The msg instance to transform.
42904
+ * @return {!Object}
42905
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41009
42906
  */
41010
- proto.clarifai.api.PostModelVersionsRequest.prototype.clearModelVersionsList = function() {
41011
- return this.setModelVersionsList([]);
42907
+ proto.clarifai.api.SingleModelVersionExportResponse.toObject = function(includeInstance, msg) {
42908
+ var f, obj = {
42909
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
42910
+ pb_export: (f = msg.getExport()) && proto_clarifai_api_resources_pb.ModelVersionExport.toObject(includeInstance, f)
42911
+ };
42912
+
42913
+ if (includeInstance) {
42914
+ obj.$jspbMessageInstance = msg;
42915
+ }
42916
+ return obj;
41012
42917
  };
42918
+ }
41013
42919
 
41014
42920
 
41015
42921
  /**
41016
- * optional string description = 8;
41017
- * @return {string}
42922
+ * Deserializes binary data (in protobuf wire format).
42923
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
42924
+ * @return {!proto.clarifai.api.SingleModelVersionExportResponse}
41018
42925
  */
41019
- proto.clarifai.api.PostModelVersionsRequest.prototype.getDescription = function() {
41020
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
42926
+ proto.clarifai.api.SingleModelVersionExportResponse.deserializeBinary = function(bytes) {
42927
+ var reader = new jspb.BinaryReader(bytes);
42928
+ var msg = new proto.clarifai.api.SingleModelVersionExportResponse;
42929
+ return proto.clarifai.api.SingleModelVersionExportResponse.deserializeBinaryFromReader(msg, reader);
41021
42930
  };
41022
42931
 
41023
42932
 
41024
42933
  /**
41025
- * @param {string} value
41026
- * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
42934
+ * Deserializes binary data (in protobuf wire format) from the
42935
+ * given reader into the given message object.
42936
+ * @param {!proto.clarifai.api.SingleModelVersionExportResponse} msg The message object to deserialize into.
42937
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42938
+ * @return {!proto.clarifai.api.SingleModelVersionExportResponse}
41027
42939
  */
41028
- proto.clarifai.api.PostModelVersionsRequest.prototype.setDescription = function(value) {
41029
- return jspb.Message.setProto3StringField(this, 8, value);
42940
+ proto.clarifai.api.SingleModelVersionExportResponse.deserializeBinaryFromReader = function(msg, reader) {
42941
+ while (reader.nextField()) {
42942
+ if (reader.isEndGroup()) {
42943
+ break;
42944
+ }
42945
+ var field = reader.getFieldNumber();
42946
+ switch (field) {
42947
+ case 1:
42948
+ var value = new proto_clarifai_api_status_status_pb.Status;
42949
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
42950
+ msg.setStatus(value);
42951
+ break;
42952
+ case 2:
42953
+ var value = new proto_clarifai_api_resources_pb.ModelVersionExport;
42954
+ reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersionExport.deserializeBinaryFromReader);
42955
+ msg.setExport(value);
42956
+ break;
42957
+ default:
42958
+ reader.skipField();
42959
+ break;
42960
+ }
42961
+ }
42962
+ return msg;
41030
42963
  };
41031
42964
 
41032
42965
 
41033
42966
  /**
41034
- * optional EvalInfo eval_info = 10;
41035
- * @return {?proto.clarifai.api.EvalInfo}
42967
+ * Serializes the message to binary data (in protobuf wire format).
42968
+ * @return {!Uint8Array}
41036
42969
  */
41037
- proto.clarifai.api.PostModelVersionsRequest.prototype.getEvalInfo = function() {
41038
- return /** @type{?proto.clarifai.api.EvalInfo} */ (
41039
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.EvalInfo, 10));
42970
+ proto.clarifai.api.SingleModelVersionExportResponse.prototype.serializeBinary = function() {
42971
+ var writer = new jspb.BinaryWriter();
42972
+ proto.clarifai.api.SingleModelVersionExportResponse.serializeBinaryToWriter(this, writer);
42973
+ return writer.getResultBuffer();
41040
42974
  };
41041
42975
 
41042
42976
 
41043
42977
  /**
41044
- * @param {?proto.clarifai.api.EvalInfo|undefined} value
41045
- * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
42978
+ * Serializes the given message to binary data (in protobuf wire
42979
+ * format), writing to the given BinaryWriter.
42980
+ * @param {!proto.clarifai.api.SingleModelVersionExportResponse} message
42981
+ * @param {!jspb.BinaryWriter} writer
42982
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42983
+ */
42984
+ proto.clarifai.api.SingleModelVersionExportResponse.serializeBinaryToWriter = function(message, writer) {
42985
+ var f = undefined;
42986
+ f = message.getStatus();
42987
+ if (f != null) {
42988
+ writer.writeMessage(
42989
+ 1,
42990
+ f,
42991
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
42992
+ );
42993
+ }
42994
+ f = message.getExport();
42995
+ if (f != null) {
42996
+ writer.writeMessage(
42997
+ 2,
42998
+ f,
42999
+ proto_clarifai_api_resources_pb.ModelVersionExport.serializeBinaryToWriter
43000
+ );
43001
+ }
43002
+ };
43003
+
43004
+
43005
+ /**
43006
+ * optional status.Status status = 1;
43007
+ * @return {?proto.clarifai.api.status.Status}
43008
+ */
43009
+ proto.clarifai.api.SingleModelVersionExportResponse.prototype.getStatus = function() {
43010
+ return /** @type{?proto.clarifai.api.status.Status} */ (
43011
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
43012
+ };
43013
+
43014
+
43015
+ /**
43016
+ * @param {?proto.clarifai.api.status.Status|undefined} value
43017
+ * @return {!proto.clarifai.api.SingleModelVersionExportResponse} returns this
41046
43018
  */
41047
- proto.clarifai.api.PostModelVersionsRequest.prototype.setEvalInfo = function(value) {
41048
- return jspb.Message.setWrapperField(this, 10, value);
43019
+ proto.clarifai.api.SingleModelVersionExportResponse.prototype.setStatus = function(value) {
43020
+ return jspb.Message.setWrapperField(this, 1, value);
41049
43021
  };
41050
43022
 
41051
43023
 
41052
43024
  /**
41053
43025
  * Clears the message field making it undefined.
41054
- * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this
43026
+ * @return {!proto.clarifai.api.SingleModelVersionExportResponse} returns this
41055
43027
  */
41056
- proto.clarifai.api.PostModelVersionsRequest.prototype.clearEvalInfo = function() {
41057
- return this.setEvalInfo(undefined);
43028
+ proto.clarifai.api.SingleModelVersionExportResponse.prototype.clearStatus = function() {
43029
+ return this.setStatus(undefined);
41058
43030
  };
41059
43031
 
41060
43032
 
@@ -41062,8 +43034,45 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.clearEvalInfo = function()
41062
43034
  * Returns whether this field is set.
41063
43035
  * @return {boolean}
41064
43036
  */
41065
- proto.clarifai.api.PostModelVersionsRequest.prototype.hasEvalInfo = function() {
41066
- return jspb.Message.getField(this, 10) != null;
43037
+ proto.clarifai.api.SingleModelVersionExportResponse.prototype.hasStatus = function() {
43038
+ return jspb.Message.getField(this, 1) != null;
43039
+ };
43040
+
43041
+
43042
+ /**
43043
+ * optional ModelVersionExport export = 2;
43044
+ * @return {?proto.clarifai.api.ModelVersionExport}
43045
+ */
43046
+ proto.clarifai.api.SingleModelVersionExportResponse.prototype.getExport = function() {
43047
+ return /** @type{?proto.clarifai.api.ModelVersionExport} */ (
43048
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelVersionExport, 2));
43049
+ };
43050
+
43051
+
43052
+ /**
43053
+ * @param {?proto.clarifai.api.ModelVersionExport|undefined} value
43054
+ * @return {!proto.clarifai.api.SingleModelVersionExportResponse} returns this
43055
+ */
43056
+ proto.clarifai.api.SingleModelVersionExportResponse.prototype.setExport = function(value) {
43057
+ return jspb.Message.setWrapperField(this, 2, value);
43058
+ };
43059
+
43060
+
43061
+ /**
43062
+ * Clears the message field making it undefined.
43063
+ * @return {!proto.clarifai.api.SingleModelVersionExportResponse} returns this
43064
+ */
43065
+ proto.clarifai.api.SingleModelVersionExportResponse.prototype.clearExport = function() {
43066
+ return this.setExport(undefined);
43067
+ };
43068
+
43069
+
43070
+ /**
43071
+ * Returns whether this field is set.
43072
+ * @return {boolean}
43073
+ */
43074
+ proto.clarifai.api.SingleModelVersionExportResponse.prototype.hasExport = function() {
43075
+ return jspb.Message.getField(this, 2) != null;
41067
43076
  };
41068
43077
 
41069
43078
 
@@ -76728,6 +78737,31 @@ proto.clarifai.api.MultiBulkOperationsResponse.prototype.clearBulkOperationList
76728
78737
 
76729
78738
 
76730
78739
 
78740
+ /**
78741
+ * Oneof group definitions for this message. Each group defines the field
78742
+ * numbers belonging to that group. When of these fields' value is set, all
78743
+ * other fields in the group are cleared. During deserialization, if multiple
78744
+ * fields are encountered for a group, only the last value seen will be kept.
78745
+ * @private {!Array<!Array<number>>}
78746
+ * @const
78747
+ */
78748
+ proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_ = [[6]];
78749
+
78750
+ /**
78751
+ * @enum {number}
78752
+ */
78753
+ proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase = {
78754
+ ACTION_CONFIG_NOT_SET: 0,
78755
+ LABEL_SUBMIT_CONFIG: 6
78756
+ };
78757
+
78758
+ /**
78759
+ * @return {proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase}
78760
+ */
78761
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getActionConfigCase = function() {
78762
+ return /** @type {proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0]));
78763
+ };
78764
+
76731
78765
 
76732
78766
 
76733
78767
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -76761,7 +78795,9 @@ proto.clarifai.api.PutTaskAssignmentsRequest.toObject = function(includeInstance
76761
78795
  var f, obj = {
76762
78796
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
76763
78797
  taskId: jspb.Message.getFieldWithDefault(msg, 2, ""),
76764
- inputId: jspb.Message.getFieldWithDefault(msg, 3, "")
78798
+ inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
78799
+ action: jspb.Message.getFieldWithDefault(msg, 4, 0),
78800
+ labelSubmitConfig: (f = msg.getLabelSubmitConfig()) && proto.clarifai.api.LabelSubmitConfig.toObject(includeInstance, f)
76765
78801
  };
76766
78802
 
76767
78803
  if (includeInstance) {
@@ -76811,6 +78847,15 @@ proto.clarifai.api.PutTaskAssignmentsRequest.deserializeBinaryFromReader = funct
76811
78847
  var value = /** @type {string} */ (reader.readString());
76812
78848
  msg.setInputId(value);
76813
78849
  break;
78850
+ case 4:
78851
+ var value = /** @type {!proto.clarifai.api.PutTaskAssignmentsRequestAction} */ (reader.readEnum());
78852
+ msg.setAction(value);
78853
+ break;
78854
+ case 6:
78855
+ var value = new proto.clarifai.api.LabelSubmitConfig;
78856
+ reader.readMessage(value,proto.clarifai.api.LabelSubmitConfig.deserializeBinaryFromReader);
78857
+ msg.setLabelSubmitConfig(value);
78858
+ break;
76814
78859
  default:
76815
78860
  reader.skipField();
76816
78861
  break;
@@ -76862,6 +78907,21 @@ proto.clarifai.api.PutTaskAssignmentsRequest.serializeBinaryToWriter = function(
76862
78907
  f
76863
78908
  );
76864
78909
  }
78910
+ f = message.getAction();
78911
+ if (f !== 0.0) {
78912
+ writer.writeEnum(
78913
+ 4,
78914
+ f
78915
+ );
78916
+ }
78917
+ f = message.getLabelSubmitConfig();
78918
+ if (f != null) {
78919
+ writer.writeMessage(
78920
+ 6,
78921
+ f,
78922
+ proto.clarifai.api.LabelSubmitConfig.serializeBinaryToWriter
78923
+ );
78924
+ }
76865
78925
  };
76866
78926
 
76867
78927
 
@@ -76938,6 +78998,432 @@ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setInputId = function(val
76938
78998
  };
76939
78999
 
76940
79000
 
79001
+ /**
79002
+ * optional PutTaskAssignmentsRequestAction action = 4;
79003
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequestAction}
79004
+ */
79005
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getAction = function() {
79006
+ return /** @type {!proto.clarifai.api.PutTaskAssignmentsRequestAction} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
79007
+ };
79008
+
79009
+
79010
+ /**
79011
+ * @param {!proto.clarifai.api.PutTaskAssignmentsRequestAction} value
79012
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
79013
+ */
79014
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setAction = function(value) {
79015
+ return jspb.Message.setProto3EnumField(this, 4, value);
79016
+ };
79017
+
79018
+
79019
+ /**
79020
+ * optional LabelSubmitConfig label_submit_config = 6;
79021
+ * @return {?proto.clarifai.api.LabelSubmitConfig}
79022
+ */
79023
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getLabelSubmitConfig = function() {
79024
+ return /** @type{?proto.clarifai.api.LabelSubmitConfig} */ (
79025
+ jspb.Message.getWrapperField(this, proto.clarifai.api.LabelSubmitConfig, 6));
79026
+ };
79027
+
79028
+
79029
+ /**
79030
+ * @param {?proto.clarifai.api.LabelSubmitConfig|undefined} value
79031
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
79032
+ */
79033
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setLabelSubmitConfig = function(value) {
79034
+ return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
79035
+ };
79036
+
79037
+
79038
+ /**
79039
+ * Clears the message field making it undefined.
79040
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
79041
+ */
79042
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearLabelSubmitConfig = function() {
79043
+ return this.setLabelSubmitConfig(undefined);
79044
+ };
79045
+
79046
+
79047
+ /**
79048
+ * Returns whether this field is set.
79049
+ * @return {boolean}
79050
+ */
79051
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasLabelSubmitConfig = function() {
79052
+ return jspb.Message.getField(this, 6) != null;
79053
+ };
79054
+
79055
+
79056
+
79057
+ /**
79058
+ * List of repeated fields within this message type.
79059
+ * @private {!Array<number>}
79060
+ * @const
79061
+ */
79062
+ proto.clarifai.api.LabelSubmitConfig.repeatedFields_ = [1];
79063
+
79064
+
79065
+
79066
+ if (jspb.Message.GENERATE_TO_OBJECT) {
79067
+ /**
79068
+ * Creates an object representation of this proto.
79069
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
79070
+ * Optional fields that are not set will be set to undefined.
79071
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
79072
+ * For the list of reserved names please see:
79073
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
79074
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
79075
+ * JSPB instance for transitional soy proto support:
79076
+ * http://goto/soy-param-migration
79077
+ * @return {!Object}
79078
+ */
79079
+ proto.clarifai.api.LabelSubmitConfig.prototype.toObject = function(opt_includeInstance) {
79080
+ return proto.clarifai.api.LabelSubmitConfig.toObject(opt_includeInstance, this);
79081
+ };
79082
+
79083
+
79084
+ /**
79085
+ * Static version of the {@see toObject} method.
79086
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
79087
+ * the JSPB instance for transitional soy proto support:
79088
+ * http://goto/soy-param-migration
79089
+ * @param {!proto.clarifai.api.LabelSubmitConfig} msg The msg instance to transform.
79090
+ * @return {!Object}
79091
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79092
+ */
79093
+ proto.clarifai.api.LabelSubmitConfig.toObject = function(includeInstance, msg) {
79094
+ var f, obj = {
79095
+ taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(),
79096
+ proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance)
79097
+ };
79098
+
79099
+ if (includeInstance) {
79100
+ obj.$jspbMessageInstance = msg;
79101
+ }
79102
+ return obj;
79103
+ };
79104
+ }
79105
+
79106
+
79107
+ /**
79108
+ * Deserializes binary data (in protobuf wire format).
79109
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
79110
+ * @return {!proto.clarifai.api.LabelSubmitConfig}
79111
+ */
79112
+ proto.clarifai.api.LabelSubmitConfig.deserializeBinary = function(bytes) {
79113
+ var reader = new jspb.BinaryReader(bytes);
79114
+ var msg = new proto.clarifai.api.LabelSubmitConfig;
79115
+ return proto.clarifai.api.LabelSubmitConfig.deserializeBinaryFromReader(msg, reader);
79116
+ };
79117
+
79118
+
79119
+ /**
79120
+ * Deserializes binary data (in protobuf wire format) from the
79121
+ * given reader into the given message object.
79122
+ * @param {!proto.clarifai.api.LabelSubmitConfig} msg The message object to deserialize into.
79123
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
79124
+ * @return {!proto.clarifai.api.LabelSubmitConfig}
79125
+ */
79126
+ proto.clarifai.api.LabelSubmitConfig.deserializeBinaryFromReader = function(msg, reader) {
79127
+ while (reader.nextField()) {
79128
+ if (reader.isEndGroup()) {
79129
+ break;
79130
+ }
79131
+ var field = reader.getFieldNumber();
79132
+ switch (field) {
79133
+ case 1:
79134
+ var value = new proto_clarifai_api_resources_pb.TaskAssignment;
79135
+ reader.readMessage(value,proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
79136
+ msg.addTaskAssignments(value);
79137
+ break;
79138
+ default:
79139
+ reader.skipField();
79140
+ break;
79141
+ }
79142
+ }
79143
+ return msg;
79144
+ };
79145
+
79146
+
79147
+ /**
79148
+ * Serializes the message to binary data (in protobuf wire format).
79149
+ * @return {!Uint8Array}
79150
+ */
79151
+ proto.clarifai.api.LabelSubmitConfig.prototype.serializeBinary = function() {
79152
+ var writer = new jspb.BinaryWriter();
79153
+ proto.clarifai.api.LabelSubmitConfig.serializeBinaryToWriter(this, writer);
79154
+ return writer.getResultBuffer();
79155
+ };
79156
+
79157
+
79158
+ /**
79159
+ * Serializes the given message to binary data (in protobuf wire
79160
+ * format), writing to the given BinaryWriter.
79161
+ * @param {!proto.clarifai.api.LabelSubmitConfig} message
79162
+ * @param {!jspb.BinaryWriter} writer
79163
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79164
+ */
79165
+ proto.clarifai.api.LabelSubmitConfig.serializeBinaryToWriter = function(message, writer) {
79166
+ var f = undefined;
79167
+ f = message.getTaskAssignmentsList();
79168
+ if (f.length > 0) {
79169
+ writer.writeRepeatedMessage(
79170
+ 1,
79171
+ f,
79172
+ proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter
79173
+ );
79174
+ }
79175
+ };
79176
+
79177
+
79178
+ /**
79179
+ * repeated TaskAssignment task_assignments = 1;
79180
+ * @return {!Array<!proto.clarifai.api.TaskAssignment>}
79181
+ */
79182
+ proto.clarifai.api.LabelSubmitConfig.prototype.getTaskAssignmentsList = function() {
79183
+ return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (
79184
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
79185
+ };
79186
+
79187
+
79188
+ /**
79189
+ * @param {!Array<!proto.clarifai.api.TaskAssignment>} value
79190
+ * @return {!proto.clarifai.api.LabelSubmitConfig} returns this
79191
+ */
79192
+ proto.clarifai.api.LabelSubmitConfig.prototype.setTaskAssignmentsList = function(value) {
79193
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
79194
+ };
79195
+
79196
+
79197
+ /**
79198
+ * @param {!proto.clarifai.api.TaskAssignment=} opt_value
79199
+ * @param {number=} opt_index
79200
+ * @return {!proto.clarifai.api.TaskAssignment}
79201
+ */
79202
+ proto.clarifai.api.LabelSubmitConfig.prototype.addTaskAssignments = function(opt_value, opt_index) {
79203
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
79204
+ };
79205
+
79206
+
79207
+ /**
79208
+ * Clears the list making it empty but non-null.
79209
+ * @return {!proto.clarifai.api.LabelSubmitConfig} returns this
79210
+ */
79211
+ proto.clarifai.api.LabelSubmitConfig.prototype.clearTaskAssignmentsList = function() {
79212
+ return this.setTaskAssignmentsList([]);
79213
+ };
79214
+
79215
+
79216
+
79217
+ /**
79218
+ * List of repeated fields within this message type.
79219
+ * @private {!Array<number>}
79220
+ * @const
79221
+ */
79222
+ proto.clarifai.api.MultiTaskAssignmentResponse.repeatedFields_ = [2];
79223
+
79224
+
79225
+
79226
+ if (jspb.Message.GENERATE_TO_OBJECT) {
79227
+ /**
79228
+ * Creates an object representation of this proto.
79229
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
79230
+ * Optional fields that are not set will be set to undefined.
79231
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
79232
+ * For the list of reserved names please see:
79233
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
79234
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
79235
+ * JSPB instance for transitional soy proto support:
79236
+ * http://goto/soy-param-migration
79237
+ * @return {!Object}
79238
+ */
79239
+ proto.clarifai.api.MultiTaskAssignmentResponse.prototype.toObject = function(opt_includeInstance) {
79240
+ return proto.clarifai.api.MultiTaskAssignmentResponse.toObject(opt_includeInstance, this);
79241
+ };
79242
+
79243
+
79244
+ /**
79245
+ * Static version of the {@see toObject} method.
79246
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
79247
+ * the JSPB instance for transitional soy proto support:
79248
+ * http://goto/soy-param-migration
79249
+ * @param {!proto.clarifai.api.MultiTaskAssignmentResponse} msg The msg instance to transform.
79250
+ * @return {!Object}
79251
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79252
+ */
79253
+ proto.clarifai.api.MultiTaskAssignmentResponse.toObject = function(includeInstance, msg) {
79254
+ var f, obj = {
79255
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
79256
+ taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(),
79257
+ proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance)
79258
+ };
79259
+
79260
+ if (includeInstance) {
79261
+ obj.$jspbMessageInstance = msg;
79262
+ }
79263
+ return obj;
79264
+ };
79265
+ }
79266
+
79267
+
79268
+ /**
79269
+ * Deserializes binary data (in protobuf wire format).
79270
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
79271
+ * @return {!proto.clarifai.api.MultiTaskAssignmentResponse}
79272
+ */
79273
+ proto.clarifai.api.MultiTaskAssignmentResponse.deserializeBinary = function(bytes) {
79274
+ var reader = new jspb.BinaryReader(bytes);
79275
+ var msg = new proto.clarifai.api.MultiTaskAssignmentResponse;
79276
+ return proto.clarifai.api.MultiTaskAssignmentResponse.deserializeBinaryFromReader(msg, reader);
79277
+ };
79278
+
79279
+
79280
+ /**
79281
+ * Deserializes binary data (in protobuf wire format) from the
79282
+ * given reader into the given message object.
79283
+ * @param {!proto.clarifai.api.MultiTaskAssignmentResponse} msg The message object to deserialize into.
79284
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
79285
+ * @return {!proto.clarifai.api.MultiTaskAssignmentResponse}
79286
+ */
79287
+ proto.clarifai.api.MultiTaskAssignmentResponse.deserializeBinaryFromReader = function(msg, reader) {
79288
+ while (reader.nextField()) {
79289
+ if (reader.isEndGroup()) {
79290
+ break;
79291
+ }
79292
+ var field = reader.getFieldNumber();
79293
+ switch (field) {
79294
+ case 1:
79295
+ var value = new proto_clarifai_api_status_status_pb.Status;
79296
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
79297
+ msg.setStatus(value);
79298
+ break;
79299
+ case 2:
79300
+ var value = new proto_clarifai_api_resources_pb.TaskAssignment;
79301
+ reader.readMessage(value,proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
79302
+ msg.addTaskAssignments(value);
79303
+ break;
79304
+ default:
79305
+ reader.skipField();
79306
+ break;
79307
+ }
79308
+ }
79309
+ return msg;
79310
+ };
79311
+
79312
+
79313
+ /**
79314
+ * Serializes the message to binary data (in protobuf wire format).
79315
+ * @return {!Uint8Array}
79316
+ */
79317
+ proto.clarifai.api.MultiTaskAssignmentResponse.prototype.serializeBinary = function() {
79318
+ var writer = new jspb.BinaryWriter();
79319
+ proto.clarifai.api.MultiTaskAssignmentResponse.serializeBinaryToWriter(this, writer);
79320
+ return writer.getResultBuffer();
79321
+ };
79322
+
79323
+
79324
+ /**
79325
+ * Serializes the given message to binary data (in protobuf wire
79326
+ * format), writing to the given BinaryWriter.
79327
+ * @param {!proto.clarifai.api.MultiTaskAssignmentResponse} message
79328
+ * @param {!jspb.BinaryWriter} writer
79329
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79330
+ */
79331
+ proto.clarifai.api.MultiTaskAssignmentResponse.serializeBinaryToWriter = function(message, writer) {
79332
+ var f = undefined;
79333
+ f = message.getStatus();
79334
+ if (f != null) {
79335
+ writer.writeMessage(
79336
+ 1,
79337
+ f,
79338
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
79339
+ );
79340
+ }
79341
+ f = message.getTaskAssignmentsList();
79342
+ if (f.length > 0) {
79343
+ writer.writeRepeatedMessage(
79344
+ 2,
79345
+ f,
79346
+ proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter
79347
+ );
79348
+ }
79349
+ };
79350
+
79351
+
79352
+ /**
79353
+ * optional status.Status status = 1;
79354
+ * @return {?proto.clarifai.api.status.Status}
79355
+ */
79356
+ proto.clarifai.api.MultiTaskAssignmentResponse.prototype.getStatus = function() {
79357
+ return /** @type{?proto.clarifai.api.status.Status} */ (
79358
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
79359
+ };
79360
+
79361
+
79362
+ /**
79363
+ * @param {?proto.clarifai.api.status.Status|undefined} value
79364
+ * @return {!proto.clarifai.api.MultiTaskAssignmentResponse} returns this
79365
+ */
79366
+ proto.clarifai.api.MultiTaskAssignmentResponse.prototype.setStatus = function(value) {
79367
+ return jspb.Message.setWrapperField(this, 1, value);
79368
+ };
79369
+
79370
+
79371
+ /**
79372
+ * Clears the message field making it undefined.
79373
+ * @return {!proto.clarifai.api.MultiTaskAssignmentResponse} returns this
79374
+ */
79375
+ proto.clarifai.api.MultiTaskAssignmentResponse.prototype.clearStatus = function() {
79376
+ return this.setStatus(undefined);
79377
+ };
79378
+
79379
+
79380
+ /**
79381
+ * Returns whether this field is set.
79382
+ * @return {boolean}
79383
+ */
79384
+ proto.clarifai.api.MultiTaskAssignmentResponse.prototype.hasStatus = function() {
79385
+ return jspb.Message.getField(this, 1) != null;
79386
+ };
79387
+
79388
+
79389
+ /**
79390
+ * repeated TaskAssignment task_assignments = 2;
79391
+ * @return {!Array<!proto.clarifai.api.TaskAssignment>}
79392
+ */
79393
+ proto.clarifai.api.MultiTaskAssignmentResponse.prototype.getTaskAssignmentsList = function() {
79394
+ return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (
79395
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 2));
79396
+ };
79397
+
79398
+
79399
+ /**
79400
+ * @param {!Array<!proto.clarifai.api.TaskAssignment>} value
79401
+ * @return {!proto.clarifai.api.MultiTaskAssignmentResponse} returns this
79402
+ */
79403
+ proto.clarifai.api.MultiTaskAssignmentResponse.prototype.setTaskAssignmentsList = function(value) {
79404
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
79405
+ };
79406
+
79407
+
79408
+ /**
79409
+ * @param {!proto.clarifai.api.TaskAssignment=} opt_value
79410
+ * @param {number=} opt_index
79411
+ * @return {!proto.clarifai.api.TaskAssignment}
79412
+ */
79413
+ proto.clarifai.api.MultiTaskAssignmentResponse.prototype.addTaskAssignments = function(opt_value, opt_index) {
79414
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
79415
+ };
79416
+
79417
+
79418
+ /**
79419
+ * Clears the list making it empty but non-null.
79420
+ * @return {!proto.clarifai.api.MultiTaskAssignmentResponse} returns this
79421
+ */
79422
+ proto.clarifai.api.MultiTaskAssignmentResponse.prototype.clearTaskAssignmentsList = function() {
79423
+ return this.setTaskAssignmentsList([]);
79424
+ };
79425
+
79426
+
76941
79427
 
76942
79428
 
76943
79429
 
@@ -83835,4 +86321,16 @@ proto.clarifai.api.OrganizationInvitationStatus = {
83835
86321
  EXPIRED: 5
83836
86322
  };
83837
86323
 
86324
+ /**
86325
+ * @enum {number}
86326
+ */
86327
+ proto.clarifai.api.PutTaskAssignmentsRequestAction = {
86328
+ PUT_TASK_ASSIGNMENTS_REQUEST_ACTION_NOT_SET: 0,
86329
+ LABEL_START: 1,
86330
+ LABEL_SUBMIT: 2,
86331
+ REVIEW_START: 10,
86332
+ REVIEW_APPROVE: 11,
86333
+ REVIEW_REQUEST_CHANGES: 12
86334
+ };
86335
+
83838
86336
  goog.object.extend(exports, proto.clarifai.api);