clarifai-web-grpc 10.1.6 → 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.
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +725 -88
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +132 -6
- package/dist/cjs/proto/clarifai/api/service_pb.js +2035 -2
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +8 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +725 -88
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +132 -6
- package/dist/esm/proto/clarifai/api/service_pb.js +2035 -2
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +8 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +109 -15
- package/proto/clarifai/api/resources_pb.js +899 -109
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +39 -3
- package/proto/clarifai/api/service_grpc_web_pb.js +189 -6
- package/proto/clarifai/api/service_pb.d.ts +313 -0
- package/proto/clarifai/api/service_pb.js +2914 -416
- package/proto/clarifai/api/status/status_code_pb.d.ts +8 -0
- package/proto/clarifai/api/status/status_code_pb.js +8 -0
|
@@ -97,6 +97,7 @@ goog.exportSymbol('proto.clarifai.api.GetLabelOrderRequest', null, global);
|
|
|
97
97
|
goog.exportSymbol('proto.clarifai.api.GetModelRequest', null, global);
|
|
98
98
|
goog.exportSymbol('proto.clarifai.api.GetModelTypeRequest', null, global);
|
|
99
99
|
goog.exportSymbol('proto.clarifai.api.GetModelVersionEvaluationRequest', null, global);
|
|
100
|
+
goog.exportSymbol('proto.clarifai.api.GetModelVersionExportRequest', null, global);
|
|
100
101
|
goog.exportSymbol('proto.clarifai.api.GetModelVersionInputExampleRequest', null, global);
|
|
101
102
|
goog.exportSymbol('proto.clarifai.api.GetModelVersionMetricsRequest', null, global);
|
|
102
103
|
goog.exportSymbol('proto.clarifai.api.GetModelVersionRequest', null, global);
|
|
@@ -105,6 +106,9 @@ goog.exportSymbol('proto.clarifai.api.GetModuleVersionRequest', null, global);
|
|
|
105
106
|
goog.exportSymbol('proto.clarifai.api.GetModuleVersionUsageCountRequest', null, global);
|
|
106
107
|
goog.exportSymbol('proto.clarifai.api.GetResourceCountsRequest', null, global);
|
|
107
108
|
goog.exportSymbol('proto.clarifai.api.GetResourceCountsResponse', null, global);
|
|
109
|
+
goog.exportSymbol('proto.clarifai.api.GetResourcePriceRequest', null, global);
|
|
110
|
+
goog.exportSymbol('proto.clarifai.api.GetResourcePriceRequest.ResourceCase', null, global);
|
|
111
|
+
goog.exportSymbol('proto.clarifai.api.GetResourcePriceResponse', null, global);
|
|
108
112
|
goog.exportSymbol('proto.clarifai.api.GetRunnerRequest', null, global);
|
|
109
113
|
goog.exportSymbol('proto.clarifai.api.GetSearchRequest', null, global);
|
|
110
114
|
goog.exportSymbol('proto.clarifai.api.GetStatusCodeRequest', null, global);
|
|
@@ -117,6 +121,7 @@ goog.exportSymbol('proto.clarifai.api.GetVideoManifestResponse', null, global);
|
|
|
117
121
|
goog.exportSymbol('proto.clarifai.api.GetWorkflowRequest', null, global);
|
|
118
122
|
goog.exportSymbol('proto.clarifai.api.GetWorkflowVersionRequest', null, global);
|
|
119
123
|
goog.exportSymbol('proto.clarifai.api.IdUpdateSource', null, global);
|
|
124
|
+
goog.exportSymbol('proto.clarifai.api.LabelSubmitConfig', null, global);
|
|
120
125
|
goog.exportSymbol('proto.clarifai.api.ListAnnotationFiltersRequest', null, global);
|
|
121
126
|
goog.exportSymbol('proto.clarifai.api.ListAnnotationSearchMetricsRequest', null, global);
|
|
122
127
|
goog.exportSymbol('proto.clarifai.api.ListAnnotationWorkersRequest', null, global);
|
|
@@ -226,6 +231,7 @@ goog.exportSymbol('proto.clarifai.api.MultiSearchResponse', null, global);
|
|
|
226
231
|
goog.exportSymbol('proto.clarifai.api.MultiStatValueAggregateResponse', null, global);
|
|
227
232
|
goog.exportSymbol('proto.clarifai.api.MultiStatValueResponse', null, global);
|
|
228
233
|
goog.exportSymbol('proto.clarifai.api.MultiStatusCodeResponse', null, global);
|
|
234
|
+
goog.exportSymbol('proto.clarifai.api.MultiTaskAssignmentResponse', null, global);
|
|
229
235
|
goog.exportSymbol('proto.clarifai.api.MultiTaskResponse', null, global);
|
|
230
236
|
goog.exportSymbol('proto.clarifai.api.MultiTrainingTimeEstimateResponse', null, global);
|
|
231
237
|
goog.exportSymbol('proto.clarifai.api.MultiTrendingMetricsViewResponse', null, global);
|
|
@@ -305,6 +311,10 @@ goog.exportSymbol('proto.clarifai.api.PostModelVersionsPublishRequest', null, gl
|
|
|
305
311
|
goog.exportSymbol('proto.clarifai.api.PostModelVersionsRequest', null, global);
|
|
306
312
|
goog.exportSymbol('proto.clarifai.api.PostModelVersionsTrainingTimeEstimateRequest', null, global);
|
|
307
313
|
goog.exportSymbol('proto.clarifai.api.PostModelVersionsUnPublishRequest', null, global);
|
|
314
|
+
goog.exportSymbol('proto.clarifai.api.PostModelVersionsUploadConfig', null, global);
|
|
315
|
+
goog.exportSymbol('proto.clarifai.api.PostModelVersionsUploadRequest', null, global);
|
|
316
|
+
goog.exportSymbol('proto.clarifai.api.PostModelVersionsUploadRequest.UploadDataCase', null, global);
|
|
317
|
+
goog.exportSymbol('proto.clarifai.api.PostModelVersionsUploadResponse', null, global);
|
|
308
318
|
goog.exportSymbol('proto.clarifai.api.PostModelsRequest', null, global);
|
|
309
319
|
goog.exportSymbol('proto.clarifai.api.PostModelsSearchesRequest', null, global);
|
|
310
320
|
goog.exportSymbol('proto.clarifai.api.PostModuleVersionsRequest', null, global);
|
|
@@ -327,7 +337,10 @@ goog.exportSymbol('proto.clarifai.api.PostWorkflowVersionsPublishRequest', null,
|
|
|
327
337
|
goog.exportSymbol('proto.clarifai.api.PostWorkflowVersionsUnPublishRequest', null, global);
|
|
328
338
|
goog.exportSymbol('proto.clarifai.api.PostWorkflowsRequest', null, global);
|
|
329
339
|
goog.exportSymbol('proto.clarifai.api.PutDatasetVersionExportsRequest', null, global);
|
|
340
|
+
goog.exportSymbol('proto.clarifai.api.PutModelVersionExportsRequest', null, global);
|
|
330
341
|
goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest', null, global);
|
|
342
|
+
goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase', null, global);
|
|
343
|
+
goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequestAction', null, global);
|
|
331
344
|
goog.exportSymbol('proto.clarifai.api.PutUploadContentPartsRequest', null, global);
|
|
332
345
|
goog.exportSymbol('proto.clarifai.api.RunnerItem', null, global);
|
|
333
346
|
goog.exportSymbol('proto.clarifai.api.RunnerItemOutput', null, global);
|
|
@@ -352,6 +365,7 @@ goog.exportSymbol('proto.clarifai.api.SingleKeyResponse', null, global);
|
|
|
352
365
|
goog.exportSymbol('proto.clarifai.api.SingleLabelOrderResponse', null, global);
|
|
353
366
|
goog.exportSymbol('proto.clarifai.api.SingleModelResponse', null, global);
|
|
354
367
|
goog.exportSymbol('proto.clarifai.api.SingleModelTypeResponse', null, global);
|
|
368
|
+
goog.exportSymbol('proto.clarifai.api.SingleModelVersionExportResponse', null, global);
|
|
355
369
|
goog.exportSymbol('proto.clarifai.api.SingleModelVersionInputExampleResponse', null, global);
|
|
356
370
|
goog.exportSymbol('proto.clarifai.api.SingleModelVersionResponse', null, global);
|
|
357
371
|
goog.exportSymbol('proto.clarifai.api.SingleModuleResponse', null, global);
|
|
@@ -1000,6 +1014,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1000
1014
|
*/
|
|
1001
1015
|
proto.clarifai.api.MultiCollaborationsResponse.displayName = 'proto.clarifai.api.MultiCollaborationsResponse';
|
|
1002
1016
|
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Generated by JsPbCodeGenerator.
|
|
1019
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1020
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1021
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1022
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1023
|
+
* valid.
|
|
1024
|
+
* @extends {jspb.Message}
|
|
1025
|
+
* @constructor
|
|
1026
|
+
*/
|
|
1027
|
+
proto.clarifai.api.GetResourcePriceRequest = function (opt_data) {
|
|
1028
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_);
|
|
1029
|
+
};
|
|
1030
|
+
goog.inherits(proto.clarifai.api.GetResourcePriceRequest, jspb.Message);
|
|
1031
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1032
|
+
/**
|
|
1033
|
+
* @public
|
|
1034
|
+
* @override
|
|
1035
|
+
*/
|
|
1036
|
+
proto.clarifai.api.GetResourcePriceRequest.displayName = 'proto.clarifai.api.GetResourcePriceRequest';
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* Generated by JsPbCodeGenerator.
|
|
1040
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1041
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1042
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1043
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1044
|
+
* valid.
|
|
1045
|
+
* @extends {jspb.Message}
|
|
1046
|
+
* @constructor
|
|
1047
|
+
*/
|
|
1048
|
+
proto.clarifai.api.GetResourcePriceResponse = function (opt_data) {
|
|
1049
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1050
|
+
};
|
|
1051
|
+
goog.inherits(proto.clarifai.api.GetResourcePriceResponse, jspb.Message);
|
|
1052
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1053
|
+
/**
|
|
1054
|
+
* @public
|
|
1055
|
+
* @override
|
|
1056
|
+
*/
|
|
1057
|
+
proto.clarifai.api.GetResourcePriceResponse.displayName = 'proto.clarifai.api.GetResourcePriceResponse';
|
|
1058
|
+
}
|
|
1003
1059
|
/**
|
|
1004
1060
|
* Generated by JsPbCodeGenerator.
|
|
1005
1061
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3247,6 +3303,132 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3247
3303
|
*/
|
|
3248
3304
|
proto.clarifai.api.PostModelVersionsRequest.displayName = 'proto.clarifai.api.PostModelVersionsRequest';
|
|
3249
3305
|
}
|
|
3306
|
+
/**
|
|
3307
|
+
* Generated by JsPbCodeGenerator.
|
|
3308
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3309
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3310
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3311
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3312
|
+
* valid.
|
|
3313
|
+
* @extends {jspb.Message}
|
|
3314
|
+
* @constructor
|
|
3315
|
+
*/
|
|
3316
|
+
proto.clarifai.api.PostModelVersionsUploadRequest = function (opt_data) {
|
|
3317
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.PostModelVersionsUploadRequest.oneofGroups_);
|
|
3318
|
+
};
|
|
3319
|
+
goog.inherits(proto.clarifai.api.PostModelVersionsUploadRequest, jspb.Message);
|
|
3320
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3321
|
+
/**
|
|
3322
|
+
* @public
|
|
3323
|
+
* @override
|
|
3324
|
+
*/
|
|
3325
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.displayName = 'proto.clarifai.api.PostModelVersionsUploadRequest';
|
|
3326
|
+
}
|
|
3327
|
+
/**
|
|
3328
|
+
* Generated by JsPbCodeGenerator.
|
|
3329
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3330
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3331
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3332
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3333
|
+
* valid.
|
|
3334
|
+
* @extends {jspb.Message}
|
|
3335
|
+
* @constructor
|
|
3336
|
+
*/
|
|
3337
|
+
proto.clarifai.api.PostModelVersionsUploadResponse = function (opt_data) {
|
|
3338
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3339
|
+
};
|
|
3340
|
+
goog.inherits(proto.clarifai.api.PostModelVersionsUploadResponse, jspb.Message);
|
|
3341
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3342
|
+
/**
|
|
3343
|
+
* @public
|
|
3344
|
+
* @override
|
|
3345
|
+
*/
|
|
3346
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.displayName = 'proto.clarifai.api.PostModelVersionsUploadResponse';
|
|
3347
|
+
}
|
|
3348
|
+
/**
|
|
3349
|
+
* Generated by JsPbCodeGenerator.
|
|
3350
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3351
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3352
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3353
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3354
|
+
* valid.
|
|
3355
|
+
* @extends {jspb.Message}
|
|
3356
|
+
* @constructor
|
|
3357
|
+
*/
|
|
3358
|
+
proto.clarifai.api.PostModelVersionsUploadConfig = function (opt_data) {
|
|
3359
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3360
|
+
};
|
|
3361
|
+
goog.inherits(proto.clarifai.api.PostModelVersionsUploadConfig, jspb.Message);
|
|
3362
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3363
|
+
/**
|
|
3364
|
+
* @public
|
|
3365
|
+
* @override
|
|
3366
|
+
*/
|
|
3367
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.displayName = 'proto.clarifai.api.PostModelVersionsUploadConfig';
|
|
3368
|
+
}
|
|
3369
|
+
/**
|
|
3370
|
+
* Generated by JsPbCodeGenerator.
|
|
3371
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3372
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3373
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3374
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3375
|
+
* valid.
|
|
3376
|
+
* @extends {jspb.Message}
|
|
3377
|
+
* @constructor
|
|
3378
|
+
*/
|
|
3379
|
+
proto.clarifai.api.PutModelVersionExportsRequest = function (opt_data) {
|
|
3380
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3381
|
+
};
|
|
3382
|
+
goog.inherits(proto.clarifai.api.PutModelVersionExportsRequest, jspb.Message);
|
|
3383
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3384
|
+
/**
|
|
3385
|
+
* @public
|
|
3386
|
+
* @override
|
|
3387
|
+
*/
|
|
3388
|
+
proto.clarifai.api.PutModelVersionExportsRequest.displayName = 'proto.clarifai.api.PutModelVersionExportsRequest';
|
|
3389
|
+
}
|
|
3390
|
+
/**
|
|
3391
|
+
* Generated by JsPbCodeGenerator.
|
|
3392
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3393
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3394
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3395
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3396
|
+
* valid.
|
|
3397
|
+
* @extends {jspb.Message}
|
|
3398
|
+
* @constructor
|
|
3399
|
+
*/
|
|
3400
|
+
proto.clarifai.api.GetModelVersionExportRequest = function (opt_data) {
|
|
3401
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3402
|
+
};
|
|
3403
|
+
goog.inherits(proto.clarifai.api.GetModelVersionExportRequest, jspb.Message);
|
|
3404
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3405
|
+
/**
|
|
3406
|
+
* @public
|
|
3407
|
+
* @override
|
|
3408
|
+
*/
|
|
3409
|
+
proto.clarifai.api.GetModelVersionExportRequest.displayName = 'proto.clarifai.api.GetModelVersionExportRequest';
|
|
3410
|
+
}
|
|
3411
|
+
/**
|
|
3412
|
+
* Generated by JsPbCodeGenerator.
|
|
3413
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3414
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3415
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3416
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3417
|
+
* valid.
|
|
3418
|
+
* @extends {jspb.Message}
|
|
3419
|
+
* @constructor
|
|
3420
|
+
*/
|
|
3421
|
+
proto.clarifai.api.SingleModelVersionExportResponse = function (opt_data) {
|
|
3422
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3423
|
+
};
|
|
3424
|
+
goog.inherits(proto.clarifai.api.SingleModelVersionExportResponse, jspb.Message);
|
|
3425
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3426
|
+
/**
|
|
3427
|
+
* @public
|
|
3428
|
+
* @override
|
|
3429
|
+
*/
|
|
3430
|
+
proto.clarifai.api.SingleModelVersionExportResponse.displayName = 'proto.clarifai.api.SingleModelVersionExportResponse';
|
|
3431
|
+
}
|
|
3250
3432
|
/**
|
|
3251
3433
|
* Generated by JsPbCodeGenerator.
|
|
3252
3434
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -6450,7 +6632,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
6450
6632
|
* @constructor
|
|
6451
6633
|
*/
|
|
6452
6634
|
proto.clarifai.api.PutTaskAssignmentsRequest = function (opt_data) {
|
|
6453
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null,
|
|
6635
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_);
|
|
6454
6636
|
};
|
|
6455
6637
|
goog.inherits(proto.clarifai.api.PutTaskAssignmentsRequest, jspb.Message);
|
|
6456
6638
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -6460,6 +6642,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
6460
6642
|
*/
|
|
6461
6643
|
proto.clarifai.api.PutTaskAssignmentsRequest.displayName = 'proto.clarifai.api.PutTaskAssignmentsRequest';
|
|
6462
6644
|
}
|
|
6645
|
+
/**
|
|
6646
|
+
* Generated by JsPbCodeGenerator.
|
|
6647
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6648
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6649
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6650
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6651
|
+
* valid.
|
|
6652
|
+
* @extends {jspb.Message}
|
|
6653
|
+
* @constructor
|
|
6654
|
+
*/
|
|
6655
|
+
proto.clarifai.api.LabelSubmitConfig = function (opt_data) {
|
|
6656
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.LabelSubmitConfig.repeatedFields_, null);
|
|
6657
|
+
};
|
|
6658
|
+
goog.inherits(proto.clarifai.api.LabelSubmitConfig, jspb.Message);
|
|
6659
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6660
|
+
/**
|
|
6661
|
+
* @public
|
|
6662
|
+
* @override
|
|
6663
|
+
*/
|
|
6664
|
+
proto.clarifai.api.LabelSubmitConfig.displayName = 'proto.clarifai.api.LabelSubmitConfig';
|
|
6665
|
+
}
|
|
6666
|
+
/**
|
|
6667
|
+
* Generated by JsPbCodeGenerator.
|
|
6668
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
6669
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
6670
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
6671
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
6672
|
+
* valid.
|
|
6673
|
+
* @extends {jspb.Message}
|
|
6674
|
+
* @constructor
|
|
6675
|
+
*/
|
|
6676
|
+
proto.clarifai.api.MultiTaskAssignmentResponse = function (opt_data) {
|
|
6677
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiTaskAssignmentResponse.repeatedFields_, null);
|
|
6678
|
+
};
|
|
6679
|
+
goog.inherits(proto.clarifai.api.MultiTaskAssignmentResponse, jspb.Message);
|
|
6680
|
+
if (goog.DEBUG && !COMPILED) {
|
|
6681
|
+
/**
|
|
6682
|
+
* @public
|
|
6683
|
+
* @override
|
|
6684
|
+
*/
|
|
6685
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.displayName = 'proto.clarifai.api.MultiTaskAssignmentResponse';
|
|
6686
|
+
}
|
|
6463
6687
|
/**
|
|
6464
6688
|
* Generated by JsPbCodeGenerator.
|
|
6465
6689
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -13379,6 +13603,372 @@ proto.clarifai.api.MultiCollaborationsResponse.prototype.addCollaborations = fun
|
|
|
13379
13603
|
proto.clarifai.api.MultiCollaborationsResponse.prototype.clearCollaborationsList = function () {
|
|
13380
13604
|
return this.setCollaborationsList([]);
|
|
13381
13605
|
};
|
|
13606
|
+
/**
|
|
13607
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
13608
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
13609
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
13610
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
13611
|
+
* @private {!Array<!Array<number>>}
|
|
13612
|
+
* @const
|
|
13613
|
+
*/
|
|
13614
|
+
proto.clarifai.api.GetResourcePriceRequest.oneofGroups_ = [[2, 3]];
|
|
13615
|
+
/**
|
|
13616
|
+
* @enum {number}
|
|
13617
|
+
*/
|
|
13618
|
+
proto.clarifai.api.GetResourcePriceRequest.ResourceCase = {
|
|
13619
|
+
RESOURCE_NOT_SET: 0,
|
|
13620
|
+
MODEL: 2,
|
|
13621
|
+
WORKFLOW: 3
|
|
13622
|
+
};
|
|
13623
|
+
/**
|
|
13624
|
+
* @return {proto.clarifai.api.GetResourcePriceRequest.ResourceCase}
|
|
13625
|
+
*/
|
|
13626
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.getResourceCase = function () {
|
|
13627
|
+
return /** @type {proto.clarifai.api.GetResourcePriceRequest.ResourceCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_[0]));
|
|
13628
|
+
};
|
|
13629
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13630
|
+
/**
|
|
13631
|
+
* Creates an object representation of this proto.
|
|
13632
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13633
|
+
* Optional fields that are not set will be set to undefined.
|
|
13634
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13635
|
+
* For the list of reserved names please see:
|
|
13636
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13637
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13638
|
+
* JSPB instance for transitional soy proto support:
|
|
13639
|
+
* http://goto/soy-param-migration
|
|
13640
|
+
* @return {!Object}
|
|
13641
|
+
*/
|
|
13642
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.toObject = function (opt_includeInstance) {
|
|
13643
|
+
return proto.clarifai.api.GetResourcePriceRequest.toObject(opt_includeInstance, this);
|
|
13644
|
+
};
|
|
13645
|
+
/**
|
|
13646
|
+
* Static version of the {@see toObject} method.
|
|
13647
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13648
|
+
* the JSPB instance for transitional soy proto support:
|
|
13649
|
+
* http://goto/soy-param-migration
|
|
13650
|
+
* @param {!proto.clarifai.api.GetResourcePriceRequest} msg The msg instance to transform.
|
|
13651
|
+
* @return {!Object}
|
|
13652
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13653
|
+
*/
|
|
13654
|
+
proto.clarifai.api.GetResourcePriceRequest.toObject = function (includeInstance, msg) {
|
|
13655
|
+
var f, obj = {
|
|
13656
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
13657
|
+
model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
|
|
13658
|
+
workflow: (f = msg.getWorkflow()) && proto_clarifai_api_resources_pb.Workflow.toObject(includeInstance, f)
|
|
13659
|
+
};
|
|
13660
|
+
if (includeInstance) {
|
|
13661
|
+
obj.$jspbMessageInstance = msg;
|
|
13662
|
+
}
|
|
13663
|
+
return obj;
|
|
13664
|
+
};
|
|
13665
|
+
}
|
|
13666
|
+
/**
|
|
13667
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13668
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13669
|
+
* @return {!proto.clarifai.api.GetResourcePriceRequest}
|
|
13670
|
+
*/
|
|
13671
|
+
proto.clarifai.api.GetResourcePriceRequest.deserializeBinary = function (bytes) {
|
|
13672
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13673
|
+
var msg = new proto.clarifai.api.GetResourcePriceRequest;
|
|
13674
|
+
return proto.clarifai.api.GetResourcePriceRequest.deserializeBinaryFromReader(msg, reader);
|
|
13675
|
+
};
|
|
13676
|
+
/**
|
|
13677
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13678
|
+
* given reader into the given message object.
|
|
13679
|
+
* @param {!proto.clarifai.api.GetResourcePriceRequest} msg The message object to deserialize into.
|
|
13680
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13681
|
+
* @return {!proto.clarifai.api.GetResourcePriceRequest}
|
|
13682
|
+
*/
|
|
13683
|
+
proto.clarifai.api.GetResourcePriceRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
13684
|
+
while (reader.nextField()) {
|
|
13685
|
+
if (reader.isEndGroup()) {
|
|
13686
|
+
break;
|
|
13687
|
+
}
|
|
13688
|
+
var field = reader.getFieldNumber();
|
|
13689
|
+
switch (field) {
|
|
13690
|
+
case 1:
|
|
13691
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
13692
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
13693
|
+
msg.setUserAppId(value);
|
|
13694
|
+
break;
|
|
13695
|
+
case 2:
|
|
13696
|
+
var value = new proto_clarifai_api_resources_pb.Model;
|
|
13697
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader);
|
|
13698
|
+
msg.setModel(value);
|
|
13699
|
+
break;
|
|
13700
|
+
case 3:
|
|
13701
|
+
var value = new proto_clarifai_api_resources_pb.Workflow;
|
|
13702
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader);
|
|
13703
|
+
msg.setWorkflow(value);
|
|
13704
|
+
break;
|
|
13705
|
+
default:
|
|
13706
|
+
reader.skipField();
|
|
13707
|
+
break;
|
|
13708
|
+
}
|
|
13709
|
+
}
|
|
13710
|
+
return msg;
|
|
13711
|
+
};
|
|
13712
|
+
/**
|
|
13713
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13714
|
+
* @return {!Uint8Array}
|
|
13715
|
+
*/
|
|
13716
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.serializeBinary = function () {
|
|
13717
|
+
var writer = new jspb.BinaryWriter();
|
|
13718
|
+
proto.clarifai.api.GetResourcePriceRequest.serializeBinaryToWriter(this, writer);
|
|
13719
|
+
return writer.getResultBuffer();
|
|
13720
|
+
};
|
|
13721
|
+
/**
|
|
13722
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13723
|
+
* format), writing to the given BinaryWriter.
|
|
13724
|
+
* @param {!proto.clarifai.api.GetResourcePriceRequest} message
|
|
13725
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13726
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13727
|
+
*/
|
|
13728
|
+
proto.clarifai.api.GetResourcePriceRequest.serializeBinaryToWriter = function (message, writer) {
|
|
13729
|
+
var f = undefined;
|
|
13730
|
+
f = message.getUserAppId();
|
|
13731
|
+
if (f != null) {
|
|
13732
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
13733
|
+
}
|
|
13734
|
+
f = message.getModel();
|
|
13735
|
+
if (f != null) {
|
|
13736
|
+
writer.writeMessage(2, f, proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter);
|
|
13737
|
+
}
|
|
13738
|
+
f = message.getWorkflow();
|
|
13739
|
+
if (f != null) {
|
|
13740
|
+
writer.writeMessage(3, f, proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter);
|
|
13741
|
+
}
|
|
13742
|
+
};
|
|
13743
|
+
/**
|
|
13744
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
13745
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
13746
|
+
*/
|
|
13747
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.getUserAppId = function () {
|
|
13748
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
13749
|
+
};
|
|
13750
|
+
/**
|
|
13751
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
13752
|
+
* @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
|
|
13753
|
+
*/
|
|
13754
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.setUserAppId = function (value) {
|
|
13755
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
13756
|
+
};
|
|
13757
|
+
/**
|
|
13758
|
+
* Clears the message field making it undefined.
|
|
13759
|
+
* @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
|
|
13760
|
+
*/
|
|
13761
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.clearUserAppId = function () {
|
|
13762
|
+
return this.setUserAppId(undefined);
|
|
13763
|
+
};
|
|
13764
|
+
/**
|
|
13765
|
+
* Returns whether this field is set.
|
|
13766
|
+
* @return {boolean}
|
|
13767
|
+
*/
|
|
13768
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.hasUserAppId = function () {
|
|
13769
|
+
return jspb.Message.getField(this, 1) != null;
|
|
13770
|
+
};
|
|
13771
|
+
/**
|
|
13772
|
+
* optional Model model = 2;
|
|
13773
|
+
* @return {?proto.clarifai.api.Model}
|
|
13774
|
+
*/
|
|
13775
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.getModel = function () {
|
|
13776
|
+
return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 2));
|
|
13777
|
+
};
|
|
13778
|
+
/**
|
|
13779
|
+
* @param {?proto.clarifai.api.Model|undefined} value
|
|
13780
|
+
* @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
|
|
13781
|
+
*/
|
|
13782
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.setModel = function (value) {
|
|
13783
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_[0], value);
|
|
13784
|
+
};
|
|
13785
|
+
/**
|
|
13786
|
+
* Clears the message field making it undefined.
|
|
13787
|
+
* @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
|
|
13788
|
+
*/
|
|
13789
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.clearModel = function () {
|
|
13790
|
+
return this.setModel(undefined);
|
|
13791
|
+
};
|
|
13792
|
+
/**
|
|
13793
|
+
* Returns whether this field is set.
|
|
13794
|
+
* @return {boolean}
|
|
13795
|
+
*/
|
|
13796
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.hasModel = function () {
|
|
13797
|
+
return jspb.Message.getField(this, 2) != null;
|
|
13798
|
+
};
|
|
13799
|
+
/**
|
|
13800
|
+
* optional Workflow workflow = 3;
|
|
13801
|
+
* @return {?proto.clarifai.api.Workflow}
|
|
13802
|
+
*/
|
|
13803
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.getWorkflow = function () {
|
|
13804
|
+
return /** @type{?proto.clarifai.api.Workflow} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 3));
|
|
13805
|
+
};
|
|
13806
|
+
/**
|
|
13807
|
+
* @param {?proto.clarifai.api.Workflow|undefined} value
|
|
13808
|
+
* @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
|
|
13809
|
+
*/
|
|
13810
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.setWorkflow = function (value) {
|
|
13811
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_[0], value);
|
|
13812
|
+
};
|
|
13813
|
+
/**
|
|
13814
|
+
* Clears the message field making it undefined.
|
|
13815
|
+
* @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
|
|
13816
|
+
*/
|
|
13817
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.clearWorkflow = function () {
|
|
13818
|
+
return this.setWorkflow(undefined);
|
|
13819
|
+
};
|
|
13820
|
+
/**
|
|
13821
|
+
* Returns whether this field is set.
|
|
13822
|
+
* @return {boolean}
|
|
13823
|
+
*/
|
|
13824
|
+
proto.clarifai.api.GetResourcePriceRequest.prototype.hasWorkflow = function () {
|
|
13825
|
+
return jspb.Message.getField(this, 3) != null;
|
|
13826
|
+
};
|
|
13827
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13828
|
+
/**
|
|
13829
|
+
* Creates an object representation of this proto.
|
|
13830
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13831
|
+
* Optional fields that are not set will be set to undefined.
|
|
13832
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13833
|
+
* For the list of reserved names please see:
|
|
13834
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13835
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13836
|
+
* JSPB instance for transitional soy proto support:
|
|
13837
|
+
* http://goto/soy-param-migration
|
|
13838
|
+
* @return {!Object}
|
|
13839
|
+
*/
|
|
13840
|
+
proto.clarifai.api.GetResourcePriceResponse.prototype.toObject = function (opt_includeInstance) {
|
|
13841
|
+
return proto.clarifai.api.GetResourcePriceResponse.toObject(opt_includeInstance, this);
|
|
13842
|
+
};
|
|
13843
|
+
/**
|
|
13844
|
+
* Static version of the {@see toObject} method.
|
|
13845
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13846
|
+
* the JSPB instance for transitional soy proto support:
|
|
13847
|
+
* http://goto/soy-param-migration
|
|
13848
|
+
* @param {!proto.clarifai.api.GetResourcePriceResponse} msg The msg instance to transform.
|
|
13849
|
+
* @return {!Object}
|
|
13850
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13851
|
+
*/
|
|
13852
|
+
proto.clarifai.api.GetResourcePriceResponse.toObject = function (includeInstance, msg) {
|
|
13853
|
+
var f, obj = {
|
|
13854
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
13855
|
+
price: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
13856
|
+
};
|
|
13857
|
+
if (includeInstance) {
|
|
13858
|
+
obj.$jspbMessageInstance = msg;
|
|
13859
|
+
}
|
|
13860
|
+
return obj;
|
|
13861
|
+
};
|
|
13862
|
+
}
|
|
13863
|
+
/**
|
|
13864
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13865
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13866
|
+
* @return {!proto.clarifai.api.GetResourcePriceResponse}
|
|
13867
|
+
*/
|
|
13868
|
+
proto.clarifai.api.GetResourcePriceResponse.deserializeBinary = function (bytes) {
|
|
13869
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13870
|
+
var msg = new proto.clarifai.api.GetResourcePriceResponse;
|
|
13871
|
+
return proto.clarifai.api.GetResourcePriceResponse.deserializeBinaryFromReader(msg, reader);
|
|
13872
|
+
};
|
|
13873
|
+
/**
|
|
13874
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13875
|
+
* given reader into the given message object.
|
|
13876
|
+
* @param {!proto.clarifai.api.GetResourcePriceResponse} msg The message object to deserialize into.
|
|
13877
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13878
|
+
* @return {!proto.clarifai.api.GetResourcePriceResponse}
|
|
13879
|
+
*/
|
|
13880
|
+
proto.clarifai.api.GetResourcePriceResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
13881
|
+
while (reader.nextField()) {
|
|
13882
|
+
if (reader.isEndGroup()) {
|
|
13883
|
+
break;
|
|
13884
|
+
}
|
|
13885
|
+
var field = reader.getFieldNumber();
|
|
13886
|
+
switch (field) {
|
|
13887
|
+
case 1:
|
|
13888
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
13889
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
13890
|
+
msg.setStatus(value);
|
|
13891
|
+
break;
|
|
13892
|
+
case 2:
|
|
13893
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
13894
|
+
msg.setPrice(value);
|
|
13895
|
+
break;
|
|
13896
|
+
default:
|
|
13897
|
+
reader.skipField();
|
|
13898
|
+
break;
|
|
13899
|
+
}
|
|
13900
|
+
}
|
|
13901
|
+
return msg;
|
|
13902
|
+
};
|
|
13903
|
+
/**
|
|
13904
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13905
|
+
* @return {!Uint8Array}
|
|
13906
|
+
*/
|
|
13907
|
+
proto.clarifai.api.GetResourcePriceResponse.prototype.serializeBinary = function () {
|
|
13908
|
+
var writer = new jspb.BinaryWriter();
|
|
13909
|
+
proto.clarifai.api.GetResourcePriceResponse.serializeBinaryToWriter(this, writer);
|
|
13910
|
+
return writer.getResultBuffer();
|
|
13911
|
+
};
|
|
13912
|
+
/**
|
|
13913
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13914
|
+
* format), writing to the given BinaryWriter.
|
|
13915
|
+
* @param {!proto.clarifai.api.GetResourcePriceResponse} message
|
|
13916
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13917
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13918
|
+
*/
|
|
13919
|
+
proto.clarifai.api.GetResourcePriceResponse.serializeBinaryToWriter = function (message, writer) {
|
|
13920
|
+
var f = undefined;
|
|
13921
|
+
f = message.getStatus();
|
|
13922
|
+
if (f != null) {
|
|
13923
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
13924
|
+
}
|
|
13925
|
+
f = message.getPrice();
|
|
13926
|
+
if (f !== 0) {
|
|
13927
|
+
writer.writeInt64(2, f);
|
|
13928
|
+
}
|
|
13929
|
+
};
|
|
13930
|
+
/**
|
|
13931
|
+
* optional status.Status status = 1;
|
|
13932
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
13933
|
+
*/
|
|
13934
|
+
proto.clarifai.api.GetResourcePriceResponse.prototype.getStatus = function () {
|
|
13935
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
13936
|
+
};
|
|
13937
|
+
/**
|
|
13938
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
13939
|
+
* @return {!proto.clarifai.api.GetResourcePriceResponse} returns this
|
|
13940
|
+
*/
|
|
13941
|
+
proto.clarifai.api.GetResourcePriceResponse.prototype.setStatus = function (value) {
|
|
13942
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
13943
|
+
};
|
|
13944
|
+
/**
|
|
13945
|
+
* Clears the message field making it undefined.
|
|
13946
|
+
* @return {!proto.clarifai.api.GetResourcePriceResponse} returns this
|
|
13947
|
+
*/
|
|
13948
|
+
proto.clarifai.api.GetResourcePriceResponse.prototype.clearStatus = function () {
|
|
13949
|
+
return this.setStatus(undefined);
|
|
13950
|
+
};
|
|
13951
|
+
/**
|
|
13952
|
+
* Returns whether this field is set.
|
|
13953
|
+
* @return {boolean}
|
|
13954
|
+
*/
|
|
13955
|
+
proto.clarifai.api.GetResourcePriceResponse.prototype.hasStatus = function () {
|
|
13956
|
+
return jspb.Message.getField(this, 1) != null;
|
|
13957
|
+
};
|
|
13958
|
+
/**
|
|
13959
|
+
* optional int64 price = 2;
|
|
13960
|
+
* @return {number}
|
|
13961
|
+
*/
|
|
13962
|
+
proto.clarifai.api.GetResourcePriceResponse.prototype.getPrice = function () {
|
|
13963
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
13964
|
+
};
|
|
13965
|
+
/**
|
|
13966
|
+
* @param {number} value
|
|
13967
|
+
* @return {!proto.clarifai.api.GetResourcePriceResponse} returns this
|
|
13968
|
+
*/
|
|
13969
|
+
proto.clarifai.api.GetResourcePriceResponse.prototype.setPrice = function (value) {
|
|
13970
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
13971
|
+
};
|
|
13382
13972
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13383
13973
|
/**
|
|
13384
13974
|
* Creates an object representation of this proto.
|
|
@@ -33980,6 +34570,1059 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.clearEvalInfo = function (
|
|
|
33980
34570
|
proto.clarifai.api.PostModelVersionsRequest.prototype.hasEvalInfo = function () {
|
|
33981
34571
|
return jspb.Message.getField(this, 10) != null;
|
|
33982
34572
|
};
|
|
34573
|
+
/**
|
|
34574
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
34575
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
34576
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
34577
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
34578
|
+
* @private {!Array<!Array<number>>}
|
|
34579
|
+
* @const
|
|
34580
|
+
*/
|
|
34581
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.oneofGroups_ = [[1, 2]];
|
|
34582
|
+
/**
|
|
34583
|
+
* @enum {number}
|
|
34584
|
+
*/
|
|
34585
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.UploadDataCase = {
|
|
34586
|
+
UPLOAD_DATA_NOT_SET: 0,
|
|
34587
|
+
UPLOAD_CONFIG: 1,
|
|
34588
|
+
CONTENT_PART: 2
|
|
34589
|
+
};
|
|
34590
|
+
/**
|
|
34591
|
+
* @return {proto.clarifai.api.PostModelVersionsUploadRequest.UploadDataCase}
|
|
34592
|
+
*/
|
|
34593
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.getUploadDataCase = function () {
|
|
34594
|
+
return /** @type {proto.clarifai.api.PostModelVersionsUploadRequest.UploadDataCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.PostModelVersionsUploadRequest.oneofGroups_[0]));
|
|
34595
|
+
};
|
|
34596
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
34597
|
+
/**
|
|
34598
|
+
* Creates an object representation of this proto.
|
|
34599
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
34600
|
+
* Optional fields that are not set will be set to undefined.
|
|
34601
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
34602
|
+
* For the list of reserved names please see:
|
|
34603
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
34604
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
34605
|
+
* JSPB instance for transitional soy proto support:
|
|
34606
|
+
* http://goto/soy-param-migration
|
|
34607
|
+
* @return {!Object}
|
|
34608
|
+
*/
|
|
34609
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.toObject = function (opt_includeInstance) {
|
|
34610
|
+
return proto.clarifai.api.PostModelVersionsUploadRequest.toObject(opt_includeInstance, this);
|
|
34611
|
+
};
|
|
34612
|
+
/**
|
|
34613
|
+
* Static version of the {@see toObject} method.
|
|
34614
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
34615
|
+
* the JSPB instance for transitional soy proto support:
|
|
34616
|
+
* http://goto/soy-param-migration
|
|
34617
|
+
* @param {!proto.clarifai.api.PostModelVersionsUploadRequest} msg The msg instance to transform.
|
|
34618
|
+
* @return {!Object}
|
|
34619
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
34620
|
+
*/
|
|
34621
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.toObject = function (includeInstance, msg) {
|
|
34622
|
+
var f, obj = {
|
|
34623
|
+
uploadConfig: (f = msg.getUploadConfig()) && proto.clarifai.api.PostModelVersionsUploadConfig.toObject(includeInstance, f),
|
|
34624
|
+
contentPart: (f = msg.getContentPart()) && proto_clarifai_api_resources_pb.UploadContentPart.toObject(includeInstance, f)
|
|
34625
|
+
};
|
|
34626
|
+
if (includeInstance) {
|
|
34627
|
+
obj.$jspbMessageInstance = msg;
|
|
34628
|
+
}
|
|
34629
|
+
return obj;
|
|
34630
|
+
};
|
|
34631
|
+
}
|
|
34632
|
+
/**
|
|
34633
|
+
* Deserializes binary data (in protobuf wire format).
|
|
34634
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
34635
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadRequest}
|
|
34636
|
+
*/
|
|
34637
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.deserializeBinary = function (bytes) {
|
|
34638
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
34639
|
+
var msg = new proto.clarifai.api.PostModelVersionsUploadRequest;
|
|
34640
|
+
return proto.clarifai.api.PostModelVersionsUploadRequest.deserializeBinaryFromReader(msg, reader);
|
|
34641
|
+
};
|
|
34642
|
+
/**
|
|
34643
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
34644
|
+
* given reader into the given message object.
|
|
34645
|
+
* @param {!proto.clarifai.api.PostModelVersionsUploadRequest} msg The message object to deserialize into.
|
|
34646
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
34647
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadRequest}
|
|
34648
|
+
*/
|
|
34649
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
34650
|
+
while (reader.nextField()) {
|
|
34651
|
+
if (reader.isEndGroup()) {
|
|
34652
|
+
break;
|
|
34653
|
+
}
|
|
34654
|
+
var field = reader.getFieldNumber();
|
|
34655
|
+
switch (field) {
|
|
34656
|
+
case 1:
|
|
34657
|
+
var value = new proto.clarifai.api.PostModelVersionsUploadConfig;
|
|
34658
|
+
reader.readMessage(value, proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader);
|
|
34659
|
+
msg.setUploadConfig(value);
|
|
34660
|
+
break;
|
|
34661
|
+
case 2:
|
|
34662
|
+
var value = new proto_clarifai_api_resources_pb.UploadContentPart;
|
|
34663
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UploadContentPart.deserializeBinaryFromReader);
|
|
34664
|
+
msg.setContentPart(value);
|
|
34665
|
+
break;
|
|
34666
|
+
default:
|
|
34667
|
+
reader.skipField();
|
|
34668
|
+
break;
|
|
34669
|
+
}
|
|
34670
|
+
}
|
|
34671
|
+
return msg;
|
|
34672
|
+
};
|
|
34673
|
+
/**
|
|
34674
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
34675
|
+
* @return {!Uint8Array}
|
|
34676
|
+
*/
|
|
34677
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.serializeBinary = function () {
|
|
34678
|
+
var writer = new jspb.BinaryWriter();
|
|
34679
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.serializeBinaryToWriter(this, writer);
|
|
34680
|
+
return writer.getResultBuffer();
|
|
34681
|
+
};
|
|
34682
|
+
/**
|
|
34683
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
34684
|
+
* format), writing to the given BinaryWriter.
|
|
34685
|
+
* @param {!proto.clarifai.api.PostModelVersionsUploadRequest} message
|
|
34686
|
+
* @param {!jspb.BinaryWriter} writer
|
|
34687
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
34688
|
+
*/
|
|
34689
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.serializeBinaryToWriter = function (message, writer) {
|
|
34690
|
+
var f = undefined;
|
|
34691
|
+
f = message.getUploadConfig();
|
|
34692
|
+
if (f != null) {
|
|
34693
|
+
writer.writeMessage(1, f, proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter);
|
|
34694
|
+
}
|
|
34695
|
+
f = message.getContentPart();
|
|
34696
|
+
if (f != null) {
|
|
34697
|
+
writer.writeMessage(2, f, proto_clarifai_api_resources_pb.UploadContentPart.serializeBinaryToWriter);
|
|
34698
|
+
}
|
|
34699
|
+
};
|
|
34700
|
+
/**
|
|
34701
|
+
* optional PostModelVersionsUploadConfig upload_config = 1;
|
|
34702
|
+
* @return {?proto.clarifai.api.PostModelVersionsUploadConfig}
|
|
34703
|
+
*/
|
|
34704
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.getUploadConfig = function () {
|
|
34705
|
+
return /** @type{?proto.clarifai.api.PostModelVersionsUploadConfig} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.PostModelVersionsUploadConfig, 1));
|
|
34706
|
+
};
|
|
34707
|
+
/**
|
|
34708
|
+
* @param {?proto.clarifai.api.PostModelVersionsUploadConfig|undefined} value
|
|
34709
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadRequest} returns this
|
|
34710
|
+
*/
|
|
34711
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.setUploadConfig = function (value) {
|
|
34712
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.PostModelVersionsUploadRequest.oneofGroups_[0], value);
|
|
34713
|
+
};
|
|
34714
|
+
/**
|
|
34715
|
+
* Clears the message field making it undefined.
|
|
34716
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadRequest} returns this
|
|
34717
|
+
*/
|
|
34718
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.clearUploadConfig = function () {
|
|
34719
|
+
return this.setUploadConfig(undefined);
|
|
34720
|
+
};
|
|
34721
|
+
/**
|
|
34722
|
+
* Returns whether this field is set.
|
|
34723
|
+
* @return {boolean}
|
|
34724
|
+
*/
|
|
34725
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.hasUploadConfig = function () {
|
|
34726
|
+
return jspb.Message.getField(this, 1) != null;
|
|
34727
|
+
};
|
|
34728
|
+
/**
|
|
34729
|
+
* optional UploadContentPart content_part = 2;
|
|
34730
|
+
* @return {?proto.clarifai.api.UploadContentPart}
|
|
34731
|
+
*/
|
|
34732
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.getContentPart = function () {
|
|
34733
|
+
return /** @type{?proto.clarifai.api.UploadContentPart} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UploadContentPart, 2));
|
|
34734
|
+
};
|
|
34735
|
+
/**
|
|
34736
|
+
* @param {?proto.clarifai.api.UploadContentPart|undefined} value
|
|
34737
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadRequest} returns this
|
|
34738
|
+
*/
|
|
34739
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.setContentPart = function (value) {
|
|
34740
|
+
return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.PostModelVersionsUploadRequest.oneofGroups_[0], value);
|
|
34741
|
+
};
|
|
34742
|
+
/**
|
|
34743
|
+
* Clears the message field making it undefined.
|
|
34744
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadRequest} returns this
|
|
34745
|
+
*/
|
|
34746
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.clearContentPart = function () {
|
|
34747
|
+
return this.setContentPart(undefined);
|
|
34748
|
+
};
|
|
34749
|
+
/**
|
|
34750
|
+
* Returns whether this field is set.
|
|
34751
|
+
* @return {boolean}
|
|
34752
|
+
*/
|
|
34753
|
+
proto.clarifai.api.PostModelVersionsUploadRequest.prototype.hasContentPart = function () {
|
|
34754
|
+
return jspb.Message.getField(this, 2) != null;
|
|
34755
|
+
};
|
|
34756
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
34757
|
+
/**
|
|
34758
|
+
* Creates an object representation of this proto.
|
|
34759
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
34760
|
+
* Optional fields that are not set will be set to undefined.
|
|
34761
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
34762
|
+
* For the list of reserved names please see:
|
|
34763
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
34764
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
34765
|
+
* JSPB instance for transitional soy proto support:
|
|
34766
|
+
* http://goto/soy-param-migration
|
|
34767
|
+
* @return {!Object}
|
|
34768
|
+
*/
|
|
34769
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.prototype.toObject = function (opt_includeInstance) {
|
|
34770
|
+
return proto.clarifai.api.PostModelVersionsUploadResponse.toObject(opt_includeInstance, this);
|
|
34771
|
+
};
|
|
34772
|
+
/**
|
|
34773
|
+
* Static version of the {@see toObject} method.
|
|
34774
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
34775
|
+
* the JSPB instance for transitional soy proto support:
|
|
34776
|
+
* http://goto/soy-param-migration
|
|
34777
|
+
* @param {!proto.clarifai.api.PostModelVersionsUploadResponse} msg The msg instance to transform.
|
|
34778
|
+
* @return {!Object}
|
|
34779
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
34780
|
+
*/
|
|
34781
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.toObject = function (includeInstance, msg) {
|
|
34782
|
+
var f, obj = {
|
|
34783
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
34784
|
+
bytesRemaining: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
34785
|
+
modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
34786
|
+
};
|
|
34787
|
+
if (includeInstance) {
|
|
34788
|
+
obj.$jspbMessageInstance = msg;
|
|
34789
|
+
}
|
|
34790
|
+
return obj;
|
|
34791
|
+
};
|
|
34792
|
+
}
|
|
34793
|
+
/**
|
|
34794
|
+
* Deserializes binary data (in protobuf wire format).
|
|
34795
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
34796
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadResponse}
|
|
34797
|
+
*/
|
|
34798
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.deserializeBinary = function (bytes) {
|
|
34799
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
34800
|
+
var msg = new proto.clarifai.api.PostModelVersionsUploadResponse;
|
|
34801
|
+
return proto.clarifai.api.PostModelVersionsUploadResponse.deserializeBinaryFromReader(msg, reader);
|
|
34802
|
+
};
|
|
34803
|
+
/**
|
|
34804
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
34805
|
+
* given reader into the given message object.
|
|
34806
|
+
* @param {!proto.clarifai.api.PostModelVersionsUploadResponse} msg The message object to deserialize into.
|
|
34807
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
34808
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadResponse}
|
|
34809
|
+
*/
|
|
34810
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
34811
|
+
while (reader.nextField()) {
|
|
34812
|
+
if (reader.isEndGroup()) {
|
|
34813
|
+
break;
|
|
34814
|
+
}
|
|
34815
|
+
var field = reader.getFieldNumber();
|
|
34816
|
+
switch (field) {
|
|
34817
|
+
case 1:
|
|
34818
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
34819
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
34820
|
+
msg.setStatus(value);
|
|
34821
|
+
break;
|
|
34822
|
+
case 2:
|
|
34823
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
34824
|
+
msg.setBytesRemaining(value);
|
|
34825
|
+
break;
|
|
34826
|
+
case 3:
|
|
34827
|
+
var value = /** @type {string} */ (reader.readString());
|
|
34828
|
+
msg.setModelVersionId(value);
|
|
34829
|
+
break;
|
|
34830
|
+
default:
|
|
34831
|
+
reader.skipField();
|
|
34832
|
+
break;
|
|
34833
|
+
}
|
|
34834
|
+
}
|
|
34835
|
+
return msg;
|
|
34836
|
+
};
|
|
34837
|
+
/**
|
|
34838
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
34839
|
+
* @return {!Uint8Array}
|
|
34840
|
+
*/
|
|
34841
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.prototype.serializeBinary = function () {
|
|
34842
|
+
var writer = new jspb.BinaryWriter();
|
|
34843
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.serializeBinaryToWriter(this, writer);
|
|
34844
|
+
return writer.getResultBuffer();
|
|
34845
|
+
};
|
|
34846
|
+
/**
|
|
34847
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
34848
|
+
* format), writing to the given BinaryWriter.
|
|
34849
|
+
* @param {!proto.clarifai.api.PostModelVersionsUploadResponse} message
|
|
34850
|
+
* @param {!jspb.BinaryWriter} writer
|
|
34851
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
34852
|
+
*/
|
|
34853
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.serializeBinaryToWriter = function (message, writer) {
|
|
34854
|
+
var f = undefined;
|
|
34855
|
+
f = message.getStatus();
|
|
34856
|
+
if (f != null) {
|
|
34857
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
34858
|
+
}
|
|
34859
|
+
f = message.getBytesRemaining();
|
|
34860
|
+
if (f !== 0) {
|
|
34861
|
+
writer.writeUint64(2, f);
|
|
34862
|
+
}
|
|
34863
|
+
f = message.getModelVersionId();
|
|
34864
|
+
if (f.length > 0) {
|
|
34865
|
+
writer.writeString(3, f);
|
|
34866
|
+
}
|
|
34867
|
+
};
|
|
34868
|
+
/**
|
|
34869
|
+
* optional status.Status status = 1;
|
|
34870
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
34871
|
+
*/
|
|
34872
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.prototype.getStatus = function () {
|
|
34873
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
34874
|
+
};
|
|
34875
|
+
/**
|
|
34876
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
34877
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadResponse} returns this
|
|
34878
|
+
*/
|
|
34879
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.prototype.setStatus = function (value) {
|
|
34880
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
34881
|
+
};
|
|
34882
|
+
/**
|
|
34883
|
+
* Clears the message field making it undefined.
|
|
34884
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadResponse} returns this
|
|
34885
|
+
*/
|
|
34886
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.prototype.clearStatus = function () {
|
|
34887
|
+
return this.setStatus(undefined);
|
|
34888
|
+
};
|
|
34889
|
+
/**
|
|
34890
|
+
* Returns whether this field is set.
|
|
34891
|
+
* @return {boolean}
|
|
34892
|
+
*/
|
|
34893
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.prototype.hasStatus = function () {
|
|
34894
|
+
return jspb.Message.getField(this, 1) != null;
|
|
34895
|
+
};
|
|
34896
|
+
/**
|
|
34897
|
+
* optional uint64 bytes_remaining = 2;
|
|
34898
|
+
* @return {number}
|
|
34899
|
+
*/
|
|
34900
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.prototype.getBytesRemaining = function () {
|
|
34901
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
34902
|
+
};
|
|
34903
|
+
/**
|
|
34904
|
+
* @param {number} value
|
|
34905
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadResponse} returns this
|
|
34906
|
+
*/
|
|
34907
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.prototype.setBytesRemaining = function (value) {
|
|
34908
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
34909
|
+
};
|
|
34910
|
+
/**
|
|
34911
|
+
* optional string model_version_id = 3;
|
|
34912
|
+
* @return {string}
|
|
34913
|
+
*/
|
|
34914
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.prototype.getModelVersionId = function () {
|
|
34915
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
34916
|
+
};
|
|
34917
|
+
/**
|
|
34918
|
+
* @param {string} value
|
|
34919
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadResponse} returns this
|
|
34920
|
+
*/
|
|
34921
|
+
proto.clarifai.api.PostModelVersionsUploadResponse.prototype.setModelVersionId = function (value) {
|
|
34922
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
34923
|
+
};
|
|
34924
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
34925
|
+
/**
|
|
34926
|
+
* Creates an object representation of this proto.
|
|
34927
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
34928
|
+
* Optional fields that are not set will be set to undefined.
|
|
34929
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
34930
|
+
* For the list of reserved names please see:
|
|
34931
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
34932
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
34933
|
+
* JSPB instance for transitional soy proto support:
|
|
34934
|
+
* http://goto/soy-param-migration
|
|
34935
|
+
* @return {!Object}
|
|
34936
|
+
*/
|
|
34937
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.toObject = function (opt_includeInstance) {
|
|
34938
|
+
return proto.clarifai.api.PostModelVersionsUploadConfig.toObject(opt_includeInstance, this);
|
|
34939
|
+
};
|
|
34940
|
+
/**
|
|
34941
|
+
* Static version of the {@see toObject} method.
|
|
34942
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
34943
|
+
* the JSPB instance for transitional soy proto support:
|
|
34944
|
+
* http://goto/soy-param-migration
|
|
34945
|
+
* @param {!proto.clarifai.api.PostModelVersionsUploadConfig} msg The msg instance to transform.
|
|
34946
|
+
* @return {!Object}
|
|
34947
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
34948
|
+
*/
|
|
34949
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.toObject = function (includeInstance, msg) {
|
|
34950
|
+
var f, obj = {
|
|
34951
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
34952
|
+
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
34953
|
+
modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f),
|
|
34954
|
+
totalSize: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
34955
|
+
};
|
|
34956
|
+
if (includeInstance) {
|
|
34957
|
+
obj.$jspbMessageInstance = msg;
|
|
34958
|
+
}
|
|
34959
|
+
return obj;
|
|
34960
|
+
};
|
|
34961
|
+
}
|
|
34962
|
+
/**
|
|
34963
|
+
* Deserializes binary data (in protobuf wire format).
|
|
34964
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
34965
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig}
|
|
34966
|
+
*/
|
|
34967
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinary = function (bytes) {
|
|
34968
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
34969
|
+
var msg = new proto.clarifai.api.PostModelVersionsUploadConfig;
|
|
34970
|
+
return proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader(msg, reader);
|
|
34971
|
+
};
|
|
34972
|
+
/**
|
|
34973
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
34974
|
+
* given reader into the given message object.
|
|
34975
|
+
* @param {!proto.clarifai.api.PostModelVersionsUploadConfig} msg The message object to deserialize into.
|
|
34976
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
34977
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig}
|
|
34978
|
+
*/
|
|
34979
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.deserializeBinaryFromReader = function (msg, reader) {
|
|
34980
|
+
while (reader.nextField()) {
|
|
34981
|
+
if (reader.isEndGroup()) {
|
|
34982
|
+
break;
|
|
34983
|
+
}
|
|
34984
|
+
var field = reader.getFieldNumber();
|
|
34985
|
+
switch (field) {
|
|
34986
|
+
case 1:
|
|
34987
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
34988
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
34989
|
+
msg.setUserAppId(value);
|
|
34990
|
+
break;
|
|
34991
|
+
case 2:
|
|
34992
|
+
var value = /** @type {string} */ (reader.readString());
|
|
34993
|
+
msg.setModelId(value);
|
|
34994
|
+
break;
|
|
34995
|
+
case 3:
|
|
34996
|
+
var value = new proto_clarifai_api_resources_pb.ModelVersion;
|
|
34997
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader);
|
|
34998
|
+
msg.setModelVersion(value);
|
|
34999
|
+
break;
|
|
35000
|
+
case 4:
|
|
35001
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
35002
|
+
msg.setTotalSize(value);
|
|
35003
|
+
break;
|
|
35004
|
+
default:
|
|
35005
|
+
reader.skipField();
|
|
35006
|
+
break;
|
|
35007
|
+
}
|
|
35008
|
+
}
|
|
35009
|
+
return msg;
|
|
35010
|
+
};
|
|
35011
|
+
/**
|
|
35012
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
35013
|
+
* @return {!Uint8Array}
|
|
35014
|
+
*/
|
|
35015
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.serializeBinary = function () {
|
|
35016
|
+
var writer = new jspb.BinaryWriter();
|
|
35017
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter(this, writer);
|
|
35018
|
+
return writer.getResultBuffer();
|
|
35019
|
+
};
|
|
35020
|
+
/**
|
|
35021
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
35022
|
+
* format), writing to the given BinaryWriter.
|
|
35023
|
+
* @param {!proto.clarifai.api.PostModelVersionsUploadConfig} message
|
|
35024
|
+
* @param {!jspb.BinaryWriter} writer
|
|
35025
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35026
|
+
*/
|
|
35027
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.serializeBinaryToWriter = function (message, writer) {
|
|
35028
|
+
var f = undefined;
|
|
35029
|
+
f = message.getUserAppId();
|
|
35030
|
+
if (f != null) {
|
|
35031
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
35032
|
+
}
|
|
35033
|
+
f = message.getModelId();
|
|
35034
|
+
if (f.length > 0) {
|
|
35035
|
+
writer.writeString(2, f);
|
|
35036
|
+
}
|
|
35037
|
+
f = message.getModelVersion();
|
|
35038
|
+
if (f != null) {
|
|
35039
|
+
writer.writeMessage(3, f, proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter);
|
|
35040
|
+
}
|
|
35041
|
+
f = message.getTotalSize();
|
|
35042
|
+
if (f !== 0) {
|
|
35043
|
+
writer.writeUint64(4, f);
|
|
35044
|
+
}
|
|
35045
|
+
};
|
|
35046
|
+
/**
|
|
35047
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
35048
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
35049
|
+
*/
|
|
35050
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getUserAppId = function () {
|
|
35051
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
35052
|
+
};
|
|
35053
|
+
/**
|
|
35054
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
35055
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
|
|
35056
|
+
*/
|
|
35057
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setUserAppId = function (value) {
|
|
35058
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
35059
|
+
};
|
|
35060
|
+
/**
|
|
35061
|
+
* Clears the message field making it undefined.
|
|
35062
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
|
|
35063
|
+
*/
|
|
35064
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.clearUserAppId = function () {
|
|
35065
|
+
return this.setUserAppId(undefined);
|
|
35066
|
+
};
|
|
35067
|
+
/**
|
|
35068
|
+
* Returns whether this field is set.
|
|
35069
|
+
* @return {boolean}
|
|
35070
|
+
*/
|
|
35071
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.hasUserAppId = function () {
|
|
35072
|
+
return jspb.Message.getField(this, 1) != null;
|
|
35073
|
+
};
|
|
35074
|
+
/**
|
|
35075
|
+
* optional string model_id = 2;
|
|
35076
|
+
* @return {string}
|
|
35077
|
+
*/
|
|
35078
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getModelId = function () {
|
|
35079
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
35080
|
+
};
|
|
35081
|
+
/**
|
|
35082
|
+
* @param {string} value
|
|
35083
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
|
|
35084
|
+
*/
|
|
35085
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setModelId = function (value) {
|
|
35086
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
35087
|
+
};
|
|
35088
|
+
/**
|
|
35089
|
+
* optional ModelVersion model_version = 3;
|
|
35090
|
+
* @return {?proto.clarifai.api.ModelVersion}
|
|
35091
|
+
*/
|
|
35092
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getModelVersion = function () {
|
|
35093
|
+
return /** @type{?proto.clarifai.api.ModelVersion} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 3));
|
|
35094
|
+
};
|
|
35095
|
+
/**
|
|
35096
|
+
* @param {?proto.clarifai.api.ModelVersion|undefined} value
|
|
35097
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
|
|
35098
|
+
*/
|
|
35099
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setModelVersion = function (value) {
|
|
35100
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
35101
|
+
};
|
|
35102
|
+
/**
|
|
35103
|
+
* Clears the message field making it undefined.
|
|
35104
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
|
|
35105
|
+
*/
|
|
35106
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.clearModelVersion = function () {
|
|
35107
|
+
return this.setModelVersion(undefined);
|
|
35108
|
+
};
|
|
35109
|
+
/**
|
|
35110
|
+
* Returns whether this field is set.
|
|
35111
|
+
* @return {boolean}
|
|
35112
|
+
*/
|
|
35113
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.hasModelVersion = function () {
|
|
35114
|
+
return jspb.Message.getField(this, 3) != null;
|
|
35115
|
+
};
|
|
35116
|
+
/**
|
|
35117
|
+
* optional uint64 total_size = 4;
|
|
35118
|
+
* @return {number}
|
|
35119
|
+
*/
|
|
35120
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.getTotalSize = function () {
|
|
35121
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
35122
|
+
};
|
|
35123
|
+
/**
|
|
35124
|
+
* @param {number} value
|
|
35125
|
+
* @return {!proto.clarifai.api.PostModelVersionsUploadConfig} returns this
|
|
35126
|
+
*/
|
|
35127
|
+
proto.clarifai.api.PostModelVersionsUploadConfig.prototype.setTotalSize = function (value) {
|
|
35128
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
35129
|
+
};
|
|
35130
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35131
|
+
/**
|
|
35132
|
+
* Creates an object representation of this proto.
|
|
35133
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
35134
|
+
* Optional fields that are not set will be set to undefined.
|
|
35135
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
35136
|
+
* For the list of reserved names please see:
|
|
35137
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
35138
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
35139
|
+
* JSPB instance for transitional soy proto support:
|
|
35140
|
+
* http://goto/soy-param-migration
|
|
35141
|
+
* @return {!Object}
|
|
35142
|
+
*/
|
|
35143
|
+
proto.clarifai.api.PutModelVersionExportsRequest.prototype.toObject = function (opt_includeInstance) {
|
|
35144
|
+
return proto.clarifai.api.PutModelVersionExportsRequest.toObject(opt_includeInstance, this);
|
|
35145
|
+
};
|
|
35146
|
+
/**
|
|
35147
|
+
* Static version of the {@see toObject} method.
|
|
35148
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
35149
|
+
* the JSPB instance for transitional soy proto support:
|
|
35150
|
+
* http://goto/soy-param-migration
|
|
35151
|
+
* @param {!proto.clarifai.api.PutModelVersionExportsRequest} msg The msg instance to transform.
|
|
35152
|
+
* @return {!Object}
|
|
35153
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35154
|
+
*/
|
|
35155
|
+
proto.clarifai.api.PutModelVersionExportsRequest.toObject = function (includeInstance, msg) {
|
|
35156
|
+
var f, obj = {
|
|
35157
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
35158
|
+
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
35159
|
+
versionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
35160
|
+
};
|
|
35161
|
+
if (includeInstance) {
|
|
35162
|
+
obj.$jspbMessageInstance = msg;
|
|
35163
|
+
}
|
|
35164
|
+
return obj;
|
|
35165
|
+
};
|
|
35166
|
+
}
|
|
35167
|
+
/**
|
|
35168
|
+
* Deserializes binary data (in protobuf wire format).
|
|
35169
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
35170
|
+
* @return {!proto.clarifai.api.PutModelVersionExportsRequest}
|
|
35171
|
+
*/
|
|
35172
|
+
proto.clarifai.api.PutModelVersionExportsRequest.deserializeBinary = function (bytes) {
|
|
35173
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
35174
|
+
var msg = new proto.clarifai.api.PutModelVersionExportsRequest;
|
|
35175
|
+
return proto.clarifai.api.PutModelVersionExportsRequest.deserializeBinaryFromReader(msg, reader);
|
|
35176
|
+
};
|
|
35177
|
+
/**
|
|
35178
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
35179
|
+
* given reader into the given message object.
|
|
35180
|
+
* @param {!proto.clarifai.api.PutModelVersionExportsRequest} msg The message object to deserialize into.
|
|
35181
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
35182
|
+
* @return {!proto.clarifai.api.PutModelVersionExportsRequest}
|
|
35183
|
+
*/
|
|
35184
|
+
proto.clarifai.api.PutModelVersionExportsRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
35185
|
+
while (reader.nextField()) {
|
|
35186
|
+
if (reader.isEndGroup()) {
|
|
35187
|
+
break;
|
|
35188
|
+
}
|
|
35189
|
+
var field = reader.getFieldNumber();
|
|
35190
|
+
switch (field) {
|
|
35191
|
+
case 1:
|
|
35192
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
35193
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
35194
|
+
msg.setUserAppId(value);
|
|
35195
|
+
break;
|
|
35196
|
+
case 2:
|
|
35197
|
+
var value = /** @type {string} */ (reader.readString());
|
|
35198
|
+
msg.setModelId(value);
|
|
35199
|
+
break;
|
|
35200
|
+
case 3:
|
|
35201
|
+
var value = /** @type {string} */ (reader.readString());
|
|
35202
|
+
msg.setVersionId(value);
|
|
35203
|
+
break;
|
|
35204
|
+
default:
|
|
35205
|
+
reader.skipField();
|
|
35206
|
+
break;
|
|
35207
|
+
}
|
|
35208
|
+
}
|
|
35209
|
+
return msg;
|
|
35210
|
+
};
|
|
35211
|
+
/**
|
|
35212
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
35213
|
+
* @return {!Uint8Array}
|
|
35214
|
+
*/
|
|
35215
|
+
proto.clarifai.api.PutModelVersionExportsRequest.prototype.serializeBinary = function () {
|
|
35216
|
+
var writer = new jspb.BinaryWriter();
|
|
35217
|
+
proto.clarifai.api.PutModelVersionExportsRequest.serializeBinaryToWriter(this, writer);
|
|
35218
|
+
return writer.getResultBuffer();
|
|
35219
|
+
};
|
|
35220
|
+
/**
|
|
35221
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
35222
|
+
* format), writing to the given BinaryWriter.
|
|
35223
|
+
* @param {!proto.clarifai.api.PutModelVersionExportsRequest} message
|
|
35224
|
+
* @param {!jspb.BinaryWriter} writer
|
|
35225
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35226
|
+
*/
|
|
35227
|
+
proto.clarifai.api.PutModelVersionExportsRequest.serializeBinaryToWriter = function (message, writer) {
|
|
35228
|
+
var f = undefined;
|
|
35229
|
+
f = message.getUserAppId();
|
|
35230
|
+
if (f != null) {
|
|
35231
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
35232
|
+
}
|
|
35233
|
+
f = message.getModelId();
|
|
35234
|
+
if (f.length > 0) {
|
|
35235
|
+
writer.writeString(2, f);
|
|
35236
|
+
}
|
|
35237
|
+
f = message.getVersionId();
|
|
35238
|
+
if (f.length > 0) {
|
|
35239
|
+
writer.writeString(3, f);
|
|
35240
|
+
}
|
|
35241
|
+
};
|
|
35242
|
+
/**
|
|
35243
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
35244
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
35245
|
+
*/
|
|
35246
|
+
proto.clarifai.api.PutModelVersionExportsRequest.prototype.getUserAppId = function () {
|
|
35247
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
35248
|
+
};
|
|
35249
|
+
/**
|
|
35250
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
35251
|
+
* @return {!proto.clarifai.api.PutModelVersionExportsRequest} returns this
|
|
35252
|
+
*/
|
|
35253
|
+
proto.clarifai.api.PutModelVersionExportsRequest.prototype.setUserAppId = function (value) {
|
|
35254
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
35255
|
+
};
|
|
35256
|
+
/**
|
|
35257
|
+
* Clears the message field making it undefined.
|
|
35258
|
+
* @return {!proto.clarifai.api.PutModelVersionExportsRequest} returns this
|
|
35259
|
+
*/
|
|
35260
|
+
proto.clarifai.api.PutModelVersionExportsRequest.prototype.clearUserAppId = function () {
|
|
35261
|
+
return this.setUserAppId(undefined);
|
|
35262
|
+
};
|
|
35263
|
+
/**
|
|
35264
|
+
* Returns whether this field is set.
|
|
35265
|
+
* @return {boolean}
|
|
35266
|
+
*/
|
|
35267
|
+
proto.clarifai.api.PutModelVersionExportsRequest.prototype.hasUserAppId = function () {
|
|
35268
|
+
return jspb.Message.getField(this, 1) != null;
|
|
35269
|
+
};
|
|
35270
|
+
/**
|
|
35271
|
+
* optional string model_id = 2;
|
|
35272
|
+
* @return {string}
|
|
35273
|
+
*/
|
|
35274
|
+
proto.clarifai.api.PutModelVersionExportsRequest.prototype.getModelId = function () {
|
|
35275
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
35276
|
+
};
|
|
35277
|
+
/**
|
|
35278
|
+
* @param {string} value
|
|
35279
|
+
* @return {!proto.clarifai.api.PutModelVersionExportsRequest} returns this
|
|
35280
|
+
*/
|
|
35281
|
+
proto.clarifai.api.PutModelVersionExportsRequest.prototype.setModelId = function (value) {
|
|
35282
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
35283
|
+
};
|
|
35284
|
+
/**
|
|
35285
|
+
* optional string version_id = 3;
|
|
35286
|
+
* @return {string}
|
|
35287
|
+
*/
|
|
35288
|
+
proto.clarifai.api.PutModelVersionExportsRequest.prototype.getVersionId = function () {
|
|
35289
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
35290
|
+
};
|
|
35291
|
+
/**
|
|
35292
|
+
* @param {string} value
|
|
35293
|
+
* @return {!proto.clarifai.api.PutModelVersionExportsRequest} returns this
|
|
35294
|
+
*/
|
|
35295
|
+
proto.clarifai.api.PutModelVersionExportsRequest.prototype.setVersionId = function (value) {
|
|
35296
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
35297
|
+
};
|
|
35298
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35299
|
+
/**
|
|
35300
|
+
* Creates an object representation of this proto.
|
|
35301
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
35302
|
+
* Optional fields that are not set will be set to undefined.
|
|
35303
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
35304
|
+
* For the list of reserved names please see:
|
|
35305
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
35306
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
35307
|
+
* JSPB instance for transitional soy proto support:
|
|
35308
|
+
* http://goto/soy-param-migration
|
|
35309
|
+
* @return {!Object}
|
|
35310
|
+
*/
|
|
35311
|
+
proto.clarifai.api.GetModelVersionExportRequest.prototype.toObject = function (opt_includeInstance) {
|
|
35312
|
+
return proto.clarifai.api.GetModelVersionExportRequest.toObject(opt_includeInstance, this);
|
|
35313
|
+
};
|
|
35314
|
+
/**
|
|
35315
|
+
* Static version of the {@see toObject} method.
|
|
35316
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
35317
|
+
* the JSPB instance for transitional soy proto support:
|
|
35318
|
+
* http://goto/soy-param-migration
|
|
35319
|
+
* @param {!proto.clarifai.api.GetModelVersionExportRequest} msg The msg instance to transform.
|
|
35320
|
+
* @return {!Object}
|
|
35321
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35322
|
+
*/
|
|
35323
|
+
proto.clarifai.api.GetModelVersionExportRequest.toObject = function (includeInstance, msg) {
|
|
35324
|
+
var f, obj = {
|
|
35325
|
+
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
35326
|
+
modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
35327
|
+
versionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
35328
|
+
};
|
|
35329
|
+
if (includeInstance) {
|
|
35330
|
+
obj.$jspbMessageInstance = msg;
|
|
35331
|
+
}
|
|
35332
|
+
return obj;
|
|
35333
|
+
};
|
|
35334
|
+
}
|
|
35335
|
+
/**
|
|
35336
|
+
* Deserializes binary data (in protobuf wire format).
|
|
35337
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
35338
|
+
* @return {!proto.clarifai.api.GetModelVersionExportRequest}
|
|
35339
|
+
*/
|
|
35340
|
+
proto.clarifai.api.GetModelVersionExportRequest.deserializeBinary = function (bytes) {
|
|
35341
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
35342
|
+
var msg = new proto.clarifai.api.GetModelVersionExportRequest;
|
|
35343
|
+
return proto.clarifai.api.GetModelVersionExportRequest.deserializeBinaryFromReader(msg, reader);
|
|
35344
|
+
};
|
|
35345
|
+
/**
|
|
35346
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
35347
|
+
* given reader into the given message object.
|
|
35348
|
+
* @param {!proto.clarifai.api.GetModelVersionExportRequest} msg The message object to deserialize into.
|
|
35349
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
35350
|
+
* @return {!proto.clarifai.api.GetModelVersionExportRequest}
|
|
35351
|
+
*/
|
|
35352
|
+
proto.clarifai.api.GetModelVersionExportRequest.deserializeBinaryFromReader = function (msg, reader) {
|
|
35353
|
+
while (reader.nextField()) {
|
|
35354
|
+
if (reader.isEndGroup()) {
|
|
35355
|
+
break;
|
|
35356
|
+
}
|
|
35357
|
+
var field = reader.getFieldNumber();
|
|
35358
|
+
switch (field) {
|
|
35359
|
+
case 1:
|
|
35360
|
+
var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
|
|
35361
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
|
|
35362
|
+
msg.setUserAppId(value);
|
|
35363
|
+
break;
|
|
35364
|
+
case 2:
|
|
35365
|
+
var value = /** @type {string} */ (reader.readString());
|
|
35366
|
+
msg.setModelId(value);
|
|
35367
|
+
break;
|
|
35368
|
+
case 3:
|
|
35369
|
+
var value = /** @type {string} */ (reader.readString());
|
|
35370
|
+
msg.setVersionId(value);
|
|
35371
|
+
break;
|
|
35372
|
+
default:
|
|
35373
|
+
reader.skipField();
|
|
35374
|
+
break;
|
|
35375
|
+
}
|
|
35376
|
+
}
|
|
35377
|
+
return msg;
|
|
35378
|
+
};
|
|
35379
|
+
/**
|
|
35380
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
35381
|
+
* @return {!Uint8Array}
|
|
35382
|
+
*/
|
|
35383
|
+
proto.clarifai.api.GetModelVersionExportRequest.prototype.serializeBinary = function () {
|
|
35384
|
+
var writer = new jspb.BinaryWriter();
|
|
35385
|
+
proto.clarifai.api.GetModelVersionExportRequest.serializeBinaryToWriter(this, writer);
|
|
35386
|
+
return writer.getResultBuffer();
|
|
35387
|
+
};
|
|
35388
|
+
/**
|
|
35389
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
35390
|
+
* format), writing to the given BinaryWriter.
|
|
35391
|
+
* @param {!proto.clarifai.api.GetModelVersionExportRequest} message
|
|
35392
|
+
* @param {!jspb.BinaryWriter} writer
|
|
35393
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35394
|
+
*/
|
|
35395
|
+
proto.clarifai.api.GetModelVersionExportRequest.serializeBinaryToWriter = function (message, writer) {
|
|
35396
|
+
var f = undefined;
|
|
35397
|
+
f = message.getUserAppId();
|
|
35398
|
+
if (f != null) {
|
|
35399
|
+
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
35400
|
+
}
|
|
35401
|
+
f = message.getModelId();
|
|
35402
|
+
if (f.length > 0) {
|
|
35403
|
+
writer.writeString(2, f);
|
|
35404
|
+
}
|
|
35405
|
+
f = message.getVersionId();
|
|
35406
|
+
if (f.length > 0) {
|
|
35407
|
+
writer.writeString(3, f);
|
|
35408
|
+
}
|
|
35409
|
+
};
|
|
35410
|
+
/**
|
|
35411
|
+
* optional UserAppIDSet user_app_id = 1;
|
|
35412
|
+
* @return {?proto.clarifai.api.UserAppIDSet}
|
|
35413
|
+
*/
|
|
35414
|
+
proto.clarifai.api.GetModelVersionExportRequest.prototype.getUserAppId = function () {
|
|
35415
|
+
return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
|
|
35416
|
+
};
|
|
35417
|
+
/**
|
|
35418
|
+
* @param {?proto.clarifai.api.UserAppIDSet|undefined} value
|
|
35419
|
+
* @return {!proto.clarifai.api.GetModelVersionExportRequest} returns this
|
|
35420
|
+
*/
|
|
35421
|
+
proto.clarifai.api.GetModelVersionExportRequest.prototype.setUserAppId = function (value) {
|
|
35422
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
35423
|
+
};
|
|
35424
|
+
/**
|
|
35425
|
+
* Clears the message field making it undefined.
|
|
35426
|
+
* @return {!proto.clarifai.api.GetModelVersionExportRequest} returns this
|
|
35427
|
+
*/
|
|
35428
|
+
proto.clarifai.api.GetModelVersionExportRequest.prototype.clearUserAppId = function () {
|
|
35429
|
+
return this.setUserAppId(undefined);
|
|
35430
|
+
};
|
|
35431
|
+
/**
|
|
35432
|
+
* Returns whether this field is set.
|
|
35433
|
+
* @return {boolean}
|
|
35434
|
+
*/
|
|
35435
|
+
proto.clarifai.api.GetModelVersionExportRequest.prototype.hasUserAppId = function () {
|
|
35436
|
+
return jspb.Message.getField(this, 1) != null;
|
|
35437
|
+
};
|
|
35438
|
+
/**
|
|
35439
|
+
* optional string model_id = 2;
|
|
35440
|
+
* @return {string}
|
|
35441
|
+
*/
|
|
35442
|
+
proto.clarifai.api.GetModelVersionExportRequest.prototype.getModelId = function () {
|
|
35443
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
35444
|
+
};
|
|
35445
|
+
/**
|
|
35446
|
+
* @param {string} value
|
|
35447
|
+
* @return {!proto.clarifai.api.GetModelVersionExportRequest} returns this
|
|
35448
|
+
*/
|
|
35449
|
+
proto.clarifai.api.GetModelVersionExportRequest.prototype.setModelId = function (value) {
|
|
35450
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
35451
|
+
};
|
|
35452
|
+
/**
|
|
35453
|
+
* optional string version_id = 3;
|
|
35454
|
+
* @return {string}
|
|
35455
|
+
*/
|
|
35456
|
+
proto.clarifai.api.GetModelVersionExportRequest.prototype.getVersionId = function () {
|
|
35457
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
35458
|
+
};
|
|
35459
|
+
/**
|
|
35460
|
+
* @param {string} value
|
|
35461
|
+
* @return {!proto.clarifai.api.GetModelVersionExportRequest} returns this
|
|
35462
|
+
*/
|
|
35463
|
+
proto.clarifai.api.GetModelVersionExportRequest.prototype.setVersionId = function (value) {
|
|
35464
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
35465
|
+
};
|
|
35466
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
35467
|
+
/**
|
|
35468
|
+
* Creates an object representation of this proto.
|
|
35469
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
35470
|
+
* Optional fields that are not set will be set to undefined.
|
|
35471
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
35472
|
+
* For the list of reserved names please see:
|
|
35473
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
35474
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
35475
|
+
* JSPB instance for transitional soy proto support:
|
|
35476
|
+
* http://goto/soy-param-migration
|
|
35477
|
+
* @return {!Object}
|
|
35478
|
+
*/
|
|
35479
|
+
proto.clarifai.api.SingleModelVersionExportResponse.prototype.toObject = function (opt_includeInstance) {
|
|
35480
|
+
return proto.clarifai.api.SingleModelVersionExportResponse.toObject(opt_includeInstance, this);
|
|
35481
|
+
};
|
|
35482
|
+
/**
|
|
35483
|
+
* Static version of the {@see toObject} method.
|
|
35484
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
35485
|
+
* the JSPB instance for transitional soy proto support:
|
|
35486
|
+
* http://goto/soy-param-migration
|
|
35487
|
+
* @param {!proto.clarifai.api.SingleModelVersionExportResponse} msg The msg instance to transform.
|
|
35488
|
+
* @return {!Object}
|
|
35489
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35490
|
+
*/
|
|
35491
|
+
proto.clarifai.api.SingleModelVersionExportResponse.toObject = function (includeInstance, msg) {
|
|
35492
|
+
var f, obj = {
|
|
35493
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
35494
|
+
pb_export: (f = msg.getExport()) && proto_clarifai_api_resources_pb.ModelVersionExport.toObject(includeInstance, f)
|
|
35495
|
+
};
|
|
35496
|
+
if (includeInstance) {
|
|
35497
|
+
obj.$jspbMessageInstance = msg;
|
|
35498
|
+
}
|
|
35499
|
+
return obj;
|
|
35500
|
+
};
|
|
35501
|
+
}
|
|
35502
|
+
/**
|
|
35503
|
+
* Deserializes binary data (in protobuf wire format).
|
|
35504
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
35505
|
+
* @return {!proto.clarifai.api.SingleModelVersionExportResponse}
|
|
35506
|
+
*/
|
|
35507
|
+
proto.clarifai.api.SingleModelVersionExportResponse.deserializeBinary = function (bytes) {
|
|
35508
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
35509
|
+
var msg = new proto.clarifai.api.SingleModelVersionExportResponse;
|
|
35510
|
+
return proto.clarifai.api.SingleModelVersionExportResponse.deserializeBinaryFromReader(msg, reader);
|
|
35511
|
+
};
|
|
35512
|
+
/**
|
|
35513
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
35514
|
+
* given reader into the given message object.
|
|
35515
|
+
* @param {!proto.clarifai.api.SingleModelVersionExportResponse} msg The message object to deserialize into.
|
|
35516
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
35517
|
+
* @return {!proto.clarifai.api.SingleModelVersionExportResponse}
|
|
35518
|
+
*/
|
|
35519
|
+
proto.clarifai.api.SingleModelVersionExportResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
35520
|
+
while (reader.nextField()) {
|
|
35521
|
+
if (reader.isEndGroup()) {
|
|
35522
|
+
break;
|
|
35523
|
+
}
|
|
35524
|
+
var field = reader.getFieldNumber();
|
|
35525
|
+
switch (field) {
|
|
35526
|
+
case 1:
|
|
35527
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
35528
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
35529
|
+
msg.setStatus(value);
|
|
35530
|
+
break;
|
|
35531
|
+
case 2:
|
|
35532
|
+
var value = new proto_clarifai_api_resources_pb.ModelVersionExport;
|
|
35533
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.ModelVersionExport.deserializeBinaryFromReader);
|
|
35534
|
+
msg.setExport(value);
|
|
35535
|
+
break;
|
|
35536
|
+
default:
|
|
35537
|
+
reader.skipField();
|
|
35538
|
+
break;
|
|
35539
|
+
}
|
|
35540
|
+
}
|
|
35541
|
+
return msg;
|
|
35542
|
+
};
|
|
35543
|
+
/**
|
|
35544
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
35545
|
+
* @return {!Uint8Array}
|
|
35546
|
+
*/
|
|
35547
|
+
proto.clarifai.api.SingleModelVersionExportResponse.prototype.serializeBinary = function () {
|
|
35548
|
+
var writer = new jspb.BinaryWriter();
|
|
35549
|
+
proto.clarifai.api.SingleModelVersionExportResponse.serializeBinaryToWriter(this, writer);
|
|
35550
|
+
return writer.getResultBuffer();
|
|
35551
|
+
};
|
|
35552
|
+
/**
|
|
35553
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
35554
|
+
* format), writing to the given BinaryWriter.
|
|
35555
|
+
* @param {!proto.clarifai.api.SingleModelVersionExportResponse} message
|
|
35556
|
+
* @param {!jspb.BinaryWriter} writer
|
|
35557
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
35558
|
+
*/
|
|
35559
|
+
proto.clarifai.api.SingleModelVersionExportResponse.serializeBinaryToWriter = function (message, writer) {
|
|
35560
|
+
var f = undefined;
|
|
35561
|
+
f = message.getStatus();
|
|
35562
|
+
if (f != null) {
|
|
35563
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
35564
|
+
}
|
|
35565
|
+
f = message.getExport();
|
|
35566
|
+
if (f != null) {
|
|
35567
|
+
writer.writeMessage(2, f, proto_clarifai_api_resources_pb.ModelVersionExport.serializeBinaryToWriter);
|
|
35568
|
+
}
|
|
35569
|
+
};
|
|
35570
|
+
/**
|
|
35571
|
+
* optional status.Status status = 1;
|
|
35572
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
35573
|
+
*/
|
|
35574
|
+
proto.clarifai.api.SingleModelVersionExportResponse.prototype.getStatus = function () {
|
|
35575
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
35576
|
+
};
|
|
35577
|
+
/**
|
|
35578
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
35579
|
+
* @return {!proto.clarifai.api.SingleModelVersionExportResponse} returns this
|
|
35580
|
+
*/
|
|
35581
|
+
proto.clarifai.api.SingleModelVersionExportResponse.prototype.setStatus = function (value) {
|
|
35582
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
35583
|
+
};
|
|
35584
|
+
/**
|
|
35585
|
+
* Clears the message field making it undefined.
|
|
35586
|
+
* @return {!proto.clarifai.api.SingleModelVersionExportResponse} returns this
|
|
35587
|
+
*/
|
|
35588
|
+
proto.clarifai.api.SingleModelVersionExportResponse.prototype.clearStatus = function () {
|
|
35589
|
+
return this.setStatus(undefined);
|
|
35590
|
+
};
|
|
35591
|
+
/**
|
|
35592
|
+
* Returns whether this field is set.
|
|
35593
|
+
* @return {boolean}
|
|
35594
|
+
*/
|
|
35595
|
+
proto.clarifai.api.SingleModelVersionExportResponse.prototype.hasStatus = function () {
|
|
35596
|
+
return jspb.Message.getField(this, 1) != null;
|
|
35597
|
+
};
|
|
35598
|
+
/**
|
|
35599
|
+
* optional ModelVersionExport export = 2;
|
|
35600
|
+
* @return {?proto.clarifai.api.ModelVersionExport}
|
|
35601
|
+
*/
|
|
35602
|
+
proto.clarifai.api.SingleModelVersionExportResponse.prototype.getExport = function () {
|
|
35603
|
+
return /** @type{?proto.clarifai.api.ModelVersionExport} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelVersionExport, 2));
|
|
35604
|
+
};
|
|
35605
|
+
/**
|
|
35606
|
+
* @param {?proto.clarifai.api.ModelVersionExport|undefined} value
|
|
35607
|
+
* @return {!proto.clarifai.api.SingleModelVersionExportResponse} returns this
|
|
35608
|
+
*/
|
|
35609
|
+
proto.clarifai.api.SingleModelVersionExportResponse.prototype.setExport = function (value) {
|
|
35610
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
35611
|
+
};
|
|
35612
|
+
/**
|
|
35613
|
+
* Clears the message field making it undefined.
|
|
35614
|
+
* @return {!proto.clarifai.api.SingleModelVersionExportResponse} returns this
|
|
35615
|
+
*/
|
|
35616
|
+
proto.clarifai.api.SingleModelVersionExportResponse.prototype.clearExport = function () {
|
|
35617
|
+
return this.setExport(undefined);
|
|
35618
|
+
};
|
|
35619
|
+
/**
|
|
35620
|
+
* Returns whether this field is set.
|
|
35621
|
+
* @return {boolean}
|
|
35622
|
+
*/
|
|
35623
|
+
proto.clarifai.api.SingleModelVersionExportResponse.prototype.hasExport = function () {
|
|
35624
|
+
return jspb.Message.getField(this, 2) != null;
|
|
35625
|
+
};
|
|
33983
35626
|
/**
|
|
33984
35627
|
* List of repeated fields within this message type.
|
|
33985
35628
|
* @private {!Array<number>}
|
|
@@ -62205,6 +63848,28 @@ proto.clarifai.api.MultiBulkOperationsResponse.prototype.addBulkOperation = func
|
|
|
62205
63848
|
proto.clarifai.api.MultiBulkOperationsResponse.prototype.clearBulkOperationList = function () {
|
|
62206
63849
|
return this.setBulkOperationList([]);
|
|
62207
63850
|
};
|
|
63851
|
+
/**
|
|
63852
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
63853
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
63854
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
63855
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
63856
|
+
* @private {!Array<!Array<number>>}
|
|
63857
|
+
* @const
|
|
63858
|
+
*/
|
|
63859
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_ = [[6]];
|
|
63860
|
+
/**
|
|
63861
|
+
* @enum {number}
|
|
63862
|
+
*/
|
|
63863
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase = {
|
|
63864
|
+
ACTION_CONFIG_NOT_SET: 0,
|
|
63865
|
+
LABEL_SUBMIT_CONFIG: 6
|
|
63866
|
+
};
|
|
63867
|
+
/**
|
|
63868
|
+
* @return {proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase}
|
|
63869
|
+
*/
|
|
63870
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getActionConfigCase = function () {
|
|
63871
|
+
return /** @type {proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0]));
|
|
63872
|
+
};
|
|
62208
63873
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
62209
63874
|
/**
|
|
62210
63875
|
* Creates an object representation of this proto.
|
|
@@ -62234,7 +63899,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
62234
63899
|
var f, obj = {
|
|
62235
63900
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
62236
63901
|
taskId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
62237
|
-
inputId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
63902
|
+
inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
63903
|
+
action: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
63904
|
+
labelSubmitConfig: (f = msg.getLabelSubmitConfig()) && proto.clarifai.api.LabelSubmitConfig.toObject(includeInstance, f)
|
|
62238
63905
|
};
|
|
62239
63906
|
if (includeInstance) {
|
|
62240
63907
|
obj.$jspbMessageInstance = msg;
|
|
@@ -62279,6 +63946,15 @@ proto.clarifai.api.PutTaskAssignmentsRequest.deserializeBinaryFromReader = funct
|
|
|
62279
63946
|
var value = /** @type {string} */ (reader.readString());
|
|
62280
63947
|
msg.setInputId(value);
|
|
62281
63948
|
break;
|
|
63949
|
+
case 4:
|
|
63950
|
+
var value = /** @type {!proto.clarifai.api.PutTaskAssignmentsRequestAction} */ (reader.readEnum());
|
|
63951
|
+
msg.setAction(value);
|
|
63952
|
+
break;
|
|
63953
|
+
case 6:
|
|
63954
|
+
var value = new proto.clarifai.api.LabelSubmitConfig;
|
|
63955
|
+
reader.readMessage(value, proto.clarifai.api.LabelSubmitConfig.deserializeBinaryFromReader);
|
|
63956
|
+
msg.setLabelSubmitConfig(value);
|
|
63957
|
+
break;
|
|
62282
63958
|
default:
|
|
62283
63959
|
reader.skipField();
|
|
62284
63960
|
break;
|
|
@@ -62316,6 +63992,14 @@ proto.clarifai.api.PutTaskAssignmentsRequest.serializeBinaryToWriter = function
|
|
|
62316
63992
|
if (f.length > 0) {
|
|
62317
63993
|
writer.writeString(3, f);
|
|
62318
63994
|
}
|
|
63995
|
+
f = message.getAction();
|
|
63996
|
+
if (f !== 0.0) {
|
|
63997
|
+
writer.writeEnum(4, f);
|
|
63998
|
+
}
|
|
63999
|
+
f = message.getLabelSubmitConfig();
|
|
64000
|
+
if (f != null) {
|
|
64001
|
+
writer.writeMessage(6, f, proto.clarifai.api.LabelSubmitConfig.serializeBinaryToWriter);
|
|
64002
|
+
}
|
|
62319
64003
|
};
|
|
62320
64004
|
/**
|
|
62321
64005
|
* optional UserAppIDSet user_app_id = 1;
|
|
@@ -62373,6 +64057,344 @@ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getInputId = function ()
|
|
|
62373
64057
|
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setInputId = function (value) {
|
|
62374
64058
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
62375
64059
|
};
|
|
64060
|
+
/**
|
|
64061
|
+
* optional PutTaskAssignmentsRequestAction action = 4;
|
|
64062
|
+
* @return {!proto.clarifai.api.PutTaskAssignmentsRequestAction}
|
|
64063
|
+
*/
|
|
64064
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getAction = function () {
|
|
64065
|
+
return /** @type {!proto.clarifai.api.PutTaskAssignmentsRequestAction} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
64066
|
+
};
|
|
64067
|
+
/**
|
|
64068
|
+
* @param {!proto.clarifai.api.PutTaskAssignmentsRequestAction} value
|
|
64069
|
+
* @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
|
|
64070
|
+
*/
|
|
64071
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setAction = function (value) {
|
|
64072
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
64073
|
+
};
|
|
64074
|
+
/**
|
|
64075
|
+
* optional LabelSubmitConfig label_submit_config = 6;
|
|
64076
|
+
* @return {?proto.clarifai.api.LabelSubmitConfig}
|
|
64077
|
+
*/
|
|
64078
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getLabelSubmitConfig = function () {
|
|
64079
|
+
return /** @type{?proto.clarifai.api.LabelSubmitConfig} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.LabelSubmitConfig, 6));
|
|
64080
|
+
};
|
|
64081
|
+
/**
|
|
64082
|
+
* @param {?proto.clarifai.api.LabelSubmitConfig|undefined} value
|
|
64083
|
+
* @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
|
|
64084
|
+
*/
|
|
64085
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setLabelSubmitConfig = function (value) {
|
|
64086
|
+
return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
|
|
64087
|
+
};
|
|
64088
|
+
/**
|
|
64089
|
+
* Clears the message field making it undefined.
|
|
64090
|
+
* @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
|
|
64091
|
+
*/
|
|
64092
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearLabelSubmitConfig = function () {
|
|
64093
|
+
return this.setLabelSubmitConfig(undefined);
|
|
64094
|
+
};
|
|
64095
|
+
/**
|
|
64096
|
+
* Returns whether this field is set.
|
|
64097
|
+
* @return {boolean}
|
|
64098
|
+
*/
|
|
64099
|
+
proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasLabelSubmitConfig = function () {
|
|
64100
|
+
return jspb.Message.getField(this, 6) != null;
|
|
64101
|
+
};
|
|
64102
|
+
/**
|
|
64103
|
+
* List of repeated fields within this message type.
|
|
64104
|
+
* @private {!Array<number>}
|
|
64105
|
+
* @const
|
|
64106
|
+
*/
|
|
64107
|
+
proto.clarifai.api.LabelSubmitConfig.repeatedFields_ = [1];
|
|
64108
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
64109
|
+
/**
|
|
64110
|
+
* Creates an object representation of this proto.
|
|
64111
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
64112
|
+
* Optional fields that are not set will be set to undefined.
|
|
64113
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
64114
|
+
* For the list of reserved names please see:
|
|
64115
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
64116
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
64117
|
+
* JSPB instance for transitional soy proto support:
|
|
64118
|
+
* http://goto/soy-param-migration
|
|
64119
|
+
* @return {!Object}
|
|
64120
|
+
*/
|
|
64121
|
+
proto.clarifai.api.LabelSubmitConfig.prototype.toObject = function (opt_includeInstance) {
|
|
64122
|
+
return proto.clarifai.api.LabelSubmitConfig.toObject(opt_includeInstance, this);
|
|
64123
|
+
};
|
|
64124
|
+
/**
|
|
64125
|
+
* Static version of the {@see toObject} method.
|
|
64126
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
64127
|
+
* the JSPB instance for transitional soy proto support:
|
|
64128
|
+
* http://goto/soy-param-migration
|
|
64129
|
+
* @param {!proto.clarifai.api.LabelSubmitConfig} msg The msg instance to transform.
|
|
64130
|
+
* @return {!Object}
|
|
64131
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
64132
|
+
*/
|
|
64133
|
+
proto.clarifai.api.LabelSubmitConfig.toObject = function (includeInstance, msg) {
|
|
64134
|
+
var f, obj = {
|
|
64135
|
+
taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(), proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance)
|
|
64136
|
+
};
|
|
64137
|
+
if (includeInstance) {
|
|
64138
|
+
obj.$jspbMessageInstance = msg;
|
|
64139
|
+
}
|
|
64140
|
+
return obj;
|
|
64141
|
+
};
|
|
64142
|
+
}
|
|
64143
|
+
/**
|
|
64144
|
+
* Deserializes binary data (in protobuf wire format).
|
|
64145
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
64146
|
+
* @return {!proto.clarifai.api.LabelSubmitConfig}
|
|
64147
|
+
*/
|
|
64148
|
+
proto.clarifai.api.LabelSubmitConfig.deserializeBinary = function (bytes) {
|
|
64149
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
64150
|
+
var msg = new proto.clarifai.api.LabelSubmitConfig;
|
|
64151
|
+
return proto.clarifai.api.LabelSubmitConfig.deserializeBinaryFromReader(msg, reader);
|
|
64152
|
+
};
|
|
64153
|
+
/**
|
|
64154
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
64155
|
+
* given reader into the given message object.
|
|
64156
|
+
* @param {!proto.clarifai.api.LabelSubmitConfig} msg The message object to deserialize into.
|
|
64157
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
64158
|
+
* @return {!proto.clarifai.api.LabelSubmitConfig}
|
|
64159
|
+
*/
|
|
64160
|
+
proto.clarifai.api.LabelSubmitConfig.deserializeBinaryFromReader = function (msg, reader) {
|
|
64161
|
+
while (reader.nextField()) {
|
|
64162
|
+
if (reader.isEndGroup()) {
|
|
64163
|
+
break;
|
|
64164
|
+
}
|
|
64165
|
+
var field = reader.getFieldNumber();
|
|
64166
|
+
switch (field) {
|
|
64167
|
+
case 1:
|
|
64168
|
+
var value = new proto_clarifai_api_resources_pb.TaskAssignment;
|
|
64169
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
|
|
64170
|
+
msg.addTaskAssignments(value);
|
|
64171
|
+
break;
|
|
64172
|
+
default:
|
|
64173
|
+
reader.skipField();
|
|
64174
|
+
break;
|
|
64175
|
+
}
|
|
64176
|
+
}
|
|
64177
|
+
return msg;
|
|
64178
|
+
};
|
|
64179
|
+
/**
|
|
64180
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
64181
|
+
* @return {!Uint8Array}
|
|
64182
|
+
*/
|
|
64183
|
+
proto.clarifai.api.LabelSubmitConfig.prototype.serializeBinary = function () {
|
|
64184
|
+
var writer = new jspb.BinaryWriter();
|
|
64185
|
+
proto.clarifai.api.LabelSubmitConfig.serializeBinaryToWriter(this, writer);
|
|
64186
|
+
return writer.getResultBuffer();
|
|
64187
|
+
};
|
|
64188
|
+
/**
|
|
64189
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
64190
|
+
* format), writing to the given BinaryWriter.
|
|
64191
|
+
* @param {!proto.clarifai.api.LabelSubmitConfig} message
|
|
64192
|
+
* @param {!jspb.BinaryWriter} writer
|
|
64193
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
64194
|
+
*/
|
|
64195
|
+
proto.clarifai.api.LabelSubmitConfig.serializeBinaryToWriter = function (message, writer) {
|
|
64196
|
+
var f = undefined;
|
|
64197
|
+
f = message.getTaskAssignmentsList();
|
|
64198
|
+
if (f.length > 0) {
|
|
64199
|
+
writer.writeRepeatedMessage(1, f, proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter);
|
|
64200
|
+
}
|
|
64201
|
+
};
|
|
64202
|
+
/**
|
|
64203
|
+
* repeated TaskAssignment task_assignments = 1;
|
|
64204
|
+
* @return {!Array<!proto.clarifai.api.TaskAssignment>}
|
|
64205
|
+
*/
|
|
64206
|
+
proto.clarifai.api.LabelSubmitConfig.prototype.getTaskAssignmentsList = function () {
|
|
64207
|
+
return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
|
|
64208
|
+
};
|
|
64209
|
+
/**
|
|
64210
|
+
* @param {!Array<!proto.clarifai.api.TaskAssignment>} value
|
|
64211
|
+
* @return {!proto.clarifai.api.LabelSubmitConfig} returns this
|
|
64212
|
+
*/
|
|
64213
|
+
proto.clarifai.api.LabelSubmitConfig.prototype.setTaskAssignmentsList = function (value) {
|
|
64214
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
64215
|
+
};
|
|
64216
|
+
/**
|
|
64217
|
+
* @param {!proto.clarifai.api.TaskAssignment=} opt_value
|
|
64218
|
+
* @param {number=} opt_index
|
|
64219
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
64220
|
+
*/
|
|
64221
|
+
proto.clarifai.api.LabelSubmitConfig.prototype.addTaskAssignments = function (opt_value, opt_index) {
|
|
64222
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
|
|
64223
|
+
};
|
|
64224
|
+
/**
|
|
64225
|
+
* Clears the list making it empty but non-null.
|
|
64226
|
+
* @return {!proto.clarifai.api.LabelSubmitConfig} returns this
|
|
64227
|
+
*/
|
|
64228
|
+
proto.clarifai.api.LabelSubmitConfig.prototype.clearTaskAssignmentsList = function () {
|
|
64229
|
+
return this.setTaskAssignmentsList([]);
|
|
64230
|
+
};
|
|
64231
|
+
/**
|
|
64232
|
+
* List of repeated fields within this message type.
|
|
64233
|
+
* @private {!Array<number>}
|
|
64234
|
+
* @const
|
|
64235
|
+
*/
|
|
64236
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.repeatedFields_ = [2];
|
|
64237
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
64238
|
+
/**
|
|
64239
|
+
* Creates an object representation of this proto.
|
|
64240
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
64241
|
+
* Optional fields that are not set will be set to undefined.
|
|
64242
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
64243
|
+
* For the list of reserved names please see:
|
|
64244
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
64245
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
64246
|
+
* JSPB instance for transitional soy proto support:
|
|
64247
|
+
* http://goto/soy-param-migration
|
|
64248
|
+
* @return {!Object}
|
|
64249
|
+
*/
|
|
64250
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.prototype.toObject = function (opt_includeInstance) {
|
|
64251
|
+
return proto.clarifai.api.MultiTaskAssignmentResponse.toObject(opt_includeInstance, this);
|
|
64252
|
+
};
|
|
64253
|
+
/**
|
|
64254
|
+
* Static version of the {@see toObject} method.
|
|
64255
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
64256
|
+
* the JSPB instance for transitional soy proto support:
|
|
64257
|
+
* http://goto/soy-param-migration
|
|
64258
|
+
* @param {!proto.clarifai.api.MultiTaskAssignmentResponse} msg The msg instance to transform.
|
|
64259
|
+
* @return {!Object}
|
|
64260
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
64261
|
+
*/
|
|
64262
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.toObject = function (includeInstance, msg) {
|
|
64263
|
+
var f, obj = {
|
|
64264
|
+
status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
|
|
64265
|
+
taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(), proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance)
|
|
64266
|
+
};
|
|
64267
|
+
if (includeInstance) {
|
|
64268
|
+
obj.$jspbMessageInstance = msg;
|
|
64269
|
+
}
|
|
64270
|
+
return obj;
|
|
64271
|
+
};
|
|
64272
|
+
}
|
|
64273
|
+
/**
|
|
64274
|
+
* Deserializes binary data (in protobuf wire format).
|
|
64275
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
64276
|
+
* @return {!proto.clarifai.api.MultiTaskAssignmentResponse}
|
|
64277
|
+
*/
|
|
64278
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.deserializeBinary = function (bytes) {
|
|
64279
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
64280
|
+
var msg = new proto.clarifai.api.MultiTaskAssignmentResponse;
|
|
64281
|
+
return proto.clarifai.api.MultiTaskAssignmentResponse.deserializeBinaryFromReader(msg, reader);
|
|
64282
|
+
};
|
|
64283
|
+
/**
|
|
64284
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
64285
|
+
* given reader into the given message object.
|
|
64286
|
+
* @param {!proto.clarifai.api.MultiTaskAssignmentResponse} msg The message object to deserialize into.
|
|
64287
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
64288
|
+
* @return {!proto.clarifai.api.MultiTaskAssignmentResponse}
|
|
64289
|
+
*/
|
|
64290
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.deserializeBinaryFromReader = function (msg, reader) {
|
|
64291
|
+
while (reader.nextField()) {
|
|
64292
|
+
if (reader.isEndGroup()) {
|
|
64293
|
+
break;
|
|
64294
|
+
}
|
|
64295
|
+
var field = reader.getFieldNumber();
|
|
64296
|
+
switch (field) {
|
|
64297
|
+
case 1:
|
|
64298
|
+
var value = new proto_clarifai_api_status_status_pb.Status;
|
|
64299
|
+
reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
|
|
64300
|
+
msg.setStatus(value);
|
|
64301
|
+
break;
|
|
64302
|
+
case 2:
|
|
64303
|
+
var value = new proto_clarifai_api_resources_pb.TaskAssignment;
|
|
64304
|
+
reader.readMessage(value, proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
|
|
64305
|
+
msg.addTaskAssignments(value);
|
|
64306
|
+
break;
|
|
64307
|
+
default:
|
|
64308
|
+
reader.skipField();
|
|
64309
|
+
break;
|
|
64310
|
+
}
|
|
64311
|
+
}
|
|
64312
|
+
return msg;
|
|
64313
|
+
};
|
|
64314
|
+
/**
|
|
64315
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
64316
|
+
* @return {!Uint8Array}
|
|
64317
|
+
*/
|
|
64318
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.prototype.serializeBinary = function () {
|
|
64319
|
+
var writer = new jspb.BinaryWriter();
|
|
64320
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.serializeBinaryToWriter(this, writer);
|
|
64321
|
+
return writer.getResultBuffer();
|
|
64322
|
+
};
|
|
64323
|
+
/**
|
|
64324
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
64325
|
+
* format), writing to the given BinaryWriter.
|
|
64326
|
+
* @param {!proto.clarifai.api.MultiTaskAssignmentResponse} message
|
|
64327
|
+
* @param {!jspb.BinaryWriter} writer
|
|
64328
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
64329
|
+
*/
|
|
64330
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.serializeBinaryToWriter = function (message, writer) {
|
|
64331
|
+
var f = undefined;
|
|
64332
|
+
f = message.getStatus();
|
|
64333
|
+
if (f != null) {
|
|
64334
|
+
writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
|
|
64335
|
+
}
|
|
64336
|
+
f = message.getTaskAssignmentsList();
|
|
64337
|
+
if (f.length > 0) {
|
|
64338
|
+
writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter);
|
|
64339
|
+
}
|
|
64340
|
+
};
|
|
64341
|
+
/**
|
|
64342
|
+
* optional status.Status status = 1;
|
|
64343
|
+
* @return {?proto.clarifai.api.status.Status}
|
|
64344
|
+
*/
|
|
64345
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.prototype.getStatus = function () {
|
|
64346
|
+
return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
|
|
64347
|
+
};
|
|
64348
|
+
/**
|
|
64349
|
+
* @param {?proto.clarifai.api.status.Status|undefined} value
|
|
64350
|
+
* @return {!proto.clarifai.api.MultiTaskAssignmentResponse} returns this
|
|
64351
|
+
*/
|
|
64352
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.prototype.setStatus = function (value) {
|
|
64353
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
64354
|
+
};
|
|
64355
|
+
/**
|
|
64356
|
+
* Clears the message field making it undefined.
|
|
64357
|
+
* @return {!proto.clarifai.api.MultiTaskAssignmentResponse} returns this
|
|
64358
|
+
*/
|
|
64359
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.prototype.clearStatus = function () {
|
|
64360
|
+
return this.setStatus(undefined);
|
|
64361
|
+
};
|
|
64362
|
+
/**
|
|
64363
|
+
* Returns whether this field is set.
|
|
64364
|
+
* @return {boolean}
|
|
64365
|
+
*/
|
|
64366
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.prototype.hasStatus = function () {
|
|
64367
|
+
return jspb.Message.getField(this, 1) != null;
|
|
64368
|
+
};
|
|
64369
|
+
/**
|
|
64370
|
+
* repeated TaskAssignment task_assignments = 2;
|
|
64371
|
+
* @return {!Array<!proto.clarifai.api.TaskAssignment>}
|
|
64372
|
+
*/
|
|
64373
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.prototype.getTaskAssignmentsList = function () {
|
|
64374
|
+
return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 2));
|
|
64375
|
+
};
|
|
64376
|
+
/**
|
|
64377
|
+
* @param {!Array<!proto.clarifai.api.TaskAssignment>} value
|
|
64378
|
+
* @return {!proto.clarifai.api.MultiTaskAssignmentResponse} returns this
|
|
64379
|
+
*/
|
|
64380
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.prototype.setTaskAssignmentsList = function (value) {
|
|
64381
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
64382
|
+
};
|
|
64383
|
+
/**
|
|
64384
|
+
* @param {!proto.clarifai.api.TaskAssignment=} opt_value
|
|
64385
|
+
* @param {number=} opt_index
|
|
64386
|
+
* @return {!proto.clarifai.api.TaskAssignment}
|
|
64387
|
+
*/
|
|
64388
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.prototype.addTaskAssignments = function (opt_value, opt_index) {
|
|
64389
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
|
|
64390
|
+
};
|
|
64391
|
+
/**
|
|
64392
|
+
* Clears the list making it empty but non-null.
|
|
64393
|
+
* @return {!proto.clarifai.api.MultiTaskAssignmentResponse} returns this
|
|
64394
|
+
*/
|
|
64395
|
+
proto.clarifai.api.MultiTaskAssignmentResponse.prototype.clearTaskAssignmentsList = function () {
|
|
64396
|
+
return this.setTaskAssignmentsList([]);
|
|
64397
|
+
};
|
|
62376
64398
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
62377
64399
|
/**
|
|
62378
64400
|
* Creates an object representation of this proto.
|
|
@@ -67853,4 +69875,15 @@ proto.clarifai.api.OrganizationInvitationStatus = {
|
|
|
67853
69875
|
DECLINED: 4,
|
|
67854
69876
|
EXPIRED: 5
|
|
67855
69877
|
};
|
|
69878
|
+
/**
|
|
69879
|
+
* @enum {number}
|
|
69880
|
+
*/
|
|
69881
|
+
proto.clarifai.api.PutTaskAssignmentsRequestAction = {
|
|
69882
|
+
PUT_TASK_ASSIGNMENTS_REQUEST_ACTION_NOT_SET: 0,
|
|
69883
|
+
LABEL_START: 1,
|
|
69884
|
+
LABEL_SUBMIT: 2,
|
|
69885
|
+
REVIEW_START: 10,
|
|
69886
|
+
REVIEW_APPROVE: 11,
|
|
69887
|
+
REVIEW_REQUEST_CHANGES: 12
|
|
69888
|
+
};
|
|
67856
69889
|
goog.object.extend(exports, proto.clarifai.api);
|