clarifai-web-grpc 10.2.1 → 10.3.0

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.
Files changed (35) hide show
  1. package/README.md +13 -11
  2. package/VERSION +1 -1
  3. package/dist/cjs/index.d.ts +2 -1
  4. package/dist/cjs/index.js +8 -2
  5. package/dist/cjs/proto/clarifai/api/resources_pb.js +2102 -4
  6. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +0 -42
  7. package/dist/cjs/proto/clarifai/api/service_pb.js +731 -416
  8. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +2 -0
  9. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -0
  10. package/dist/cjs/resources.d.ts +1 -0
  11. package/dist/cjs/resources.js +3 -0
  12. package/dist/esm/index.d.ts +2 -1
  13. package/dist/esm/index.js +6 -2
  14. package/dist/esm/proto/clarifai/api/resources_pb.js +2102 -4
  15. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +0 -42
  16. package/dist/esm/proto/clarifai/api/service_pb.js +731 -416
  17. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +2 -0
  18. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -0
  19. package/dist/esm/resources.d.ts +1 -0
  20. package/dist/esm/resources.js +1 -0
  21. package/examples/post-app.ts +27 -0
  22. package/examples/post-input.ts +42 -0
  23. package/index.ts +7 -2
  24. package/package.json +1 -1
  25. package/proto/clarifai/api/resources_pb.d.ts +347 -0
  26. package/proto/clarifai/api/resources_pb.js +2629 -4
  27. package/proto/clarifai/api/service_grpc_web_pb.d.ts +0 -12
  28. package/proto/clarifai/api/service_grpc_web_pb.js +0 -61
  29. package/proto/clarifai/api/service_pb.d.ts +106 -64
  30. package/proto/clarifai/api/service_pb.js +918 -510
  31. package/proto/clarifai/api/status/status_code_pb.d.ts +2 -0
  32. package/proto/clarifai/api/status/status_code_pb.js +2 -0
  33. package/proto/clarifai/auth/scope/scope_pb.d.ts +2 -0
  34. package/proto/clarifai/auth/scope/scope_pb.js +2 -0
  35. package/resources.ts +1 -0
@@ -108,9 +108,6 @@ goog.exportSymbol('proto.clarifai.api.GetModuleVersionRequest', null, global);
108
108
  goog.exportSymbol('proto.clarifai.api.GetModuleVersionUsageCountRequest', null, global);
109
109
  goog.exportSymbol('proto.clarifai.api.GetResourceCountsRequest', null, global);
110
110
  goog.exportSymbol('proto.clarifai.api.GetResourceCountsResponse', null, global);
111
- goog.exportSymbol('proto.clarifai.api.GetResourcePriceRequest', null, global);
112
- goog.exportSymbol('proto.clarifai.api.GetResourcePriceRequest.ResourceCase', null, global);
113
- goog.exportSymbol('proto.clarifai.api.GetResourcePriceResponse', null, global);
114
111
  goog.exportSymbol('proto.clarifai.api.GetRunnerRequest', null, global);
115
112
  goog.exportSymbol('proto.clarifai.api.GetSearchRequest', null, global);
116
113
  goog.exportSymbol('proto.clarifai.api.GetStatusCodeRequest', null, global);
@@ -344,6 +341,9 @@ goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest', null, global);
344
341
  goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase', null, global);
345
342
  goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequestAction', null, global);
346
343
  goog.exportSymbol('proto.clarifai.api.PutUploadContentPartsRequest', null, global);
344
+ goog.exportSymbol('proto.clarifai.api.ReviewApproveConfig', null, global);
345
+ goog.exportSymbol('proto.clarifai.api.ReviewRejectConfig', null, global);
346
+ goog.exportSymbol('proto.clarifai.api.ReviewRequestChangesConfig', null, global);
347
347
  goog.exportSymbol('proto.clarifai.api.RunnerItem', null, global);
348
348
  goog.exportSymbol('proto.clarifai.api.RunnerItemOutput', null, global);
349
349
  goog.exportSymbol('proto.clarifai.api.SingleAnnotationFilterResponse', null, global);
@@ -1016,48 +1016,6 @@ if (goog.DEBUG && !COMPILED) {
1016
1016
  */
1017
1017
  proto.clarifai.api.MultiCollaborationsResponse.displayName = 'proto.clarifai.api.MultiCollaborationsResponse';
1018
1018
  }
1019
- /**
1020
- * Generated by JsPbCodeGenerator.
1021
- * @param {Array=} opt_data Optional initial data array, typically from a
1022
- * server response, or constructed directly in Javascript. The array is used
1023
- * in place and becomes part of the constructed object. It is not cloned.
1024
- * If no data is provided, the constructed object will be empty, but still
1025
- * valid.
1026
- * @extends {jspb.Message}
1027
- * @constructor
1028
- */
1029
- proto.clarifai.api.GetResourcePriceRequest = function(opt_data) {
1030
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_);
1031
- };
1032
- goog.inherits(proto.clarifai.api.GetResourcePriceRequest, jspb.Message);
1033
- if (goog.DEBUG && !COMPILED) {
1034
- /**
1035
- * @public
1036
- * @override
1037
- */
1038
- proto.clarifai.api.GetResourcePriceRequest.displayName = 'proto.clarifai.api.GetResourcePriceRequest';
1039
- }
1040
- /**
1041
- * Generated by JsPbCodeGenerator.
1042
- * @param {Array=} opt_data Optional initial data array, typically from a
1043
- * server response, or constructed directly in Javascript. The array is used
1044
- * in place and becomes part of the constructed object. It is not cloned.
1045
- * If no data is provided, the constructed object will be empty, but still
1046
- * valid.
1047
- * @extends {jspb.Message}
1048
- * @constructor
1049
- */
1050
- proto.clarifai.api.GetResourcePriceResponse = function(opt_data) {
1051
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1052
- };
1053
- goog.inherits(proto.clarifai.api.GetResourcePriceResponse, jspb.Message);
1054
- if (goog.DEBUG && !COMPILED) {
1055
- /**
1056
- * @public
1057
- * @override
1058
- */
1059
- proto.clarifai.api.GetResourcePriceResponse.displayName = 'proto.clarifai.api.GetResourcePriceResponse';
1060
- }
1061
1019
  /**
1062
1020
  * Generated by JsPbCodeGenerator.
1063
1021
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6665,6 +6623,69 @@ if (goog.DEBUG && !COMPILED) {
6665
6623
  */
6666
6624
  proto.clarifai.api.LabelSubmitConfig.displayName = 'proto.clarifai.api.LabelSubmitConfig';
6667
6625
  }
6626
+ /**
6627
+ * Generated by JsPbCodeGenerator.
6628
+ * @param {Array=} opt_data Optional initial data array, typically from a
6629
+ * server response, or constructed directly in Javascript. The array is used
6630
+ * in place and becomes part of the constructed object. It is not cloned.
6631
+ * If no data is provided, the constructed object will be empty, but still
6632
+ * valid.
6633
+ * @extends {jspb.Message}
6634
+ * @constructor
6635
+ */
6636
+ proto.clarifai.api.ReviewApproveConfig = function(opt_data) {
6637
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ReviewApproveConfig.repeatedFields_, null);
6638
+ };
6639
+ goog.inherits(proto.clarifai.api.ReviewApproveConfig, jspb.Message);
6640
+ if (goog.DEBUG && !COMPILED) {
6641
+ /**
6642
+ * @public
6643
+ * @override
6644
+ */
6645
+ proto.clarifai.api.ReviewApproveConfig.displayName = 'proto.clarifai.api.ReviewApproveConfig';
6646
+ }
6647
+ /**
6648
+ * Generated by JsPbCodeGenerator.
6649
+ * @param {Array=} opt_data Optional initial data array, typically from a
6650
+ * server response, or constructed directly in Javascript. The array is used
6651
+ * in place and becomes part of the constructed object. It is not cloned.
6652
+ * If no data is provided, the constructed object will be empty, but still
6653
+ * valid.
6654
+ * @extends {jspb.Message}
6655
+ * @constructor
6656
+ */
6657
+ proto.clarifai.api.ReviewRequestChangesConfig = function(opt_data) {
6658
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ReviewRequestChangesConfig.repeatedFields_, null);
6659
+ };
6660
+ goog.inherits(proto.clarifai.api.ReviewRequestChangesConfig, jspb.Message);
6661
+ if (goog.DEBUG && !COMPILED) {
6662
+ /**
6663
+ * @public
6664
+ * @override
6665
+ */
6666
+ proto.clarifai.api.ReviewRequestChangesConfig.displayName = 'proto.clarifai.api.ReviewRequestChangesConfig';
6667
+ }
6668
+ /**
6669
+ * Generated by JsPbCodeGenerator.
6670
+ * @param {Array=} opt_data Optional initial data array, typically from a
6671
+ * server response, or constructed directly in Javascript. The array is used
6672
+ * in place and becomes part of the constructed object. It is not cloned.
6673
+ * If no data is provided, the constructed object will be empty, but still
6674
+ * valid.
6675
+ * @extends {jspb.Message}
6676
+ * @constructor
6677
+ */
6678
+ proto.clarifai.api.ReviewRejectConfig = function(opt_data) {
6679
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ReviewRejectConfig.repeatedFields_, null);
6680
+ };
6681
+ goog.inherits(proto.clarifai.api.ReviewRejectConfig, jspb.Message);
6682
+ if (goog.DEBUG && !COMPILED) {
6683
+ /**
6684
+ * @public
6685
+ * @override
6686
+ */
6687
+ proto.clarifai.api.ReviewRejectConfig.displayName = 'proto.clarifai.api.ReviewRejectConfig';
6688
+ }
6668
6689
  /**
6669
6690
  * Generated by JsPbCodeGenerator.
6670
6691
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -15264,466 +15285,6 @@ proto.clarifai.api.MultiCollaborationsResponse.prototype.clearCollaborationsList
15264
15285
 
15265
15286
 
15266
15287
 
15267
- /**
15268
- * Oneof group definitions for this message. Each group defines the field
15269
- * numbers belonging to that group. When of these fields' value is set, all
15270
- * other fields in the group are cleared. During deserialization, if multiple
15271
- * fields are encountered for a group, only the last value seen will be kept.
15272
- * @private {!Array<!Array<number>>}
15273
- * @const
15274
- */
15275
- proto.clarifai.api.GetResourcePriceRequest.oneofGroups_ = [[2,3]];
15276
-
15277
- /**
15278
- * @enum {number}
15279
- */
15280
- proto.clarifai.api.GetResourcePriceRequest.ResourceCase = {
15281
- RESOURCE_NOT_SET: 0,
15282
- MODEL: 2,
15283
- WORKFLOW: 3
15284
- };
15285
-
15286
- /**
15287
- * @return {proto.clarifai.api.GetResourcePriceRequest.ResourceCase}
15288
- */
15289
- proto.clarifai.api.GetResourcePriceRequest.prototype.getResourceCase = function() {
15290
- return /** @type {proto.clarifai.api.GetResourcePriceRequest.ResourceCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_[0]));
15291
- };
15292
-
15293
-
15294
-
15295
- if (jspb.Message.GENERATE_TO_OBJECT) {
15296
- /**
15297
- * Creates an object representation of this proto.
15298
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
15299
- * Optional fields that are not set will be set to undefined.
15300
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15301
- * For the list of reserved names please see:
15302
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15303
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15304
- * JSPB instance for transitional soy proto support:
15305
- * http://goto/soy-param-migration
15306
- * @return {!Object}
15307
- */
15308
- proto.clarifai.api.GetResourcePriceRequest.prototype.toObject = function(opt_includeInstance) {
15309
- return proto.clarifai.api.GetResourcePriceRequest.toObject(opt_includeInstance, this);
15310
- };
15311
-
15312
-
15313
- /**
15314
- * Static version of the {@see toObject} method.
15315
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15316
- * the JSPB instance for transitional soy proto support:
15317
- * http://goto/soy-param-migration
15318
- * @param {!proto.clarifai.api.GetResourcePriceRequest} msg The msg instance to transform.
15319
- * @return {!Object}
15320
- * @suppress {unusedLocalVariables} f is only used for nested messages
15321
- */
15322
- proto.clarifai.api.GetResourcePriceRequest.toObject = function(includeInstance, msg) {
15323
- var f, obj = {
15324
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
15325
- model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
15326
- workflow: (f = msg.getWorkflow()) && proto_clarifai_api_resources_pb.Workflow.toObject(includeInstance, f)
15327
- };
15328
-
15329
- if (includeInstance) {
15330
- obj.$jspbMessageInstance = msg;
15331
- }
15332
- return obj;
15333
- };
15334
- }
15335
-
15336
-
15337
- /**
15338
- * Deserializes binary data (in protobuf wire format).
15339
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
15340
- * @return {!proto.clarifai.api.GetResourcePriceRequest}
15341
- */
15342
- proto.clarifai.api.GetResourcePriceRequest.deserializeBinary = function(bytes) {
15343
- var reader = new jspb.BinaryReader(bytes);
15344
- var msg = new proto.clarifai.api.GetResourcePriceRequest;
15345
- return proto.clarifai.api.GetResourcePriceRequest.deserializeBinaryFromReader(msg, reader);
15346
- };
15347
-
15348
-
15349
- /**
15350
- * Deserializes binary data (in protobuf wire format) from the
15351
- * given reader into the given message object.
15352
- * @param {!proto.clarifai.api.GetResourcePriceRequest} msg The message object to deserialize into.
15353
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15354
- * @return {!proto.clarifai.api.GetResourcePriceRequest}
15355
- */
15356
- proto.clarifai.api.GetResourcePriceRequest.deserializeBinaryFromReader = function(msg, reader) {
15357
- while (reader.nextField()) {
15358
- if (reader.isEndGroup()) {
15359
- break;
15360
- }
15361
- var field = reader.getFieldNumber();
15362
- switch (field) {
15363
- case 1:
15364
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
15365
- reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
15366
- msg.setUserAppId(value);
15367
- break;
15368
- case 2:
15369
- var value = new proto_clarifai_api_resources_pb.Model;
15370
- reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader);
15371
- msg.setModel(value);
15372
- break;
15373
- case 3:
15374
- var value = new proto_clarifai_api_resources_pb.Workflow;
15375
- reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader);
15376
- msg.setWorkflow(value);
15377
- break;
15378
- default:
15379
- reader.skipField();
15380
- break;
15381
- }
15382
- }
15383
- return msg;
15384
- };
15385
-
15386
-
15387
- /**
15388
- * Serializes the message to binary data (in protobuf wire format).
15389
- * @return {!Uint8Array}
15390
- */
15391
- proto.clarifai.api.GetResourcePriceRequest.prototype.serializeBinary = function() {
15392
- var writer = new jspb.BinaryWriter();
15393
- proto.clarifai.api.GetResourcePriceRequest.serializeBinaryToWriter(this, writer);
15394
- return writer.getResultBuffer();
15395
- };
15396
-
15397
-
15398
- /**
15399
- * Serializes the given message to binary data (in protobuf wire
15400
- * format), writing to the given BinaryWriter.
15401
- * @param {!proto.clarifai.api.GetResourcePriceRequest} message
15402
- * @param {!jspb.BinaryWriter} writer
15403
- * @suppress {unusedLocalVariables} f is only used for nested messages
15404
- */
15405
- proto.clarifai.api.GetResourcePriceRequest.serializeBinaryToWriter = function(message, writer) {
15406
- var f = undefined;
15407
- f = message.getUserAppId();
15408
- if (f != null) {
15409
- writer.writeMessage(
15410
- 1,
15411
- f,
15412
- proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
15413
- );
15414
- }
15415
- f = message.getModel();
15416
- if (f != null) {
15417
- writer.writeMessage(
15418
- 2,
15419
- f,
15420
- proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter
15421
- );
15422
- }
15423
- f = message.getWorkflow();
15424
- if (f != null) {
15425
- writer.writeMessage(
15426
- 3,
15427
- f,
15428
- proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter
15429
- );
15430
- }
15431
- };
15432
-
15433
-
15434
- /**
15435
- * optional UserAppIDSet user_app_id = 1;
15436
- * @return {?proto.clarifai.api.UserAppIDSet}
15437
- */
15438
- proto.clarifai.api.GetResourcePriceRequest.prototype.getUserAppId = function() {
15439
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
15440
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
15441
- };
15442
-
15443
-
15444
- /**
15445
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
15446
- * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15447
- */
15448
- proto.clarifai.api.GetResourcePriceRequest.prototype.setUserAppId = function(value) {
15449
- return jspb.Message.setWrapperField(this, 1, value);
15450
- };
15451
-
15452
-
15453
- /**
15454
- * Clears the message field making it undefined.
15455
- * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15456
- */
15457
- proto.clarifai.api.GetResourcePriceRequest.prototype.clearUserAppId = function() {
15458
- return this.setUserAppId(undefined);
15459
- };
15460
-
15461
-
15462
- /**
15463
- * Returns whether this field is set.
15464
- * @return {boolean}
15465
- */
15466
- proto.clarifai.api.GetResourcePriceRequest.prototype.hasUserAppId = function() {
15467
- return jspb.Message.getField(this, 1) != null;
15468
- };
15469
-
15470
-
15471
- /**
15472
- * optional Model model = 2;
15473
- * @return {?proto.clarifai.api.Model}
15474
- */
15475
- proto.clarifai.api.GetResourcePriceRequest.prototype.getModel = function() {
15476
- return /** @type{?proto.clarifai.api.Model} */ (
15477
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 2));
15478
- };
15479
-
15480
-
15481
- /**
15482
- * @param {?proto.clarifai.api.Model|undefined} value
15483
- * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15484
- */
15485
- proto.clarifai.api.GetResourcePriceRequest.prototype.setModel = function(value) {
15486
- return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_[0], value);
15487
- };
15488
-
15489
-
15490
- /**
15491
- * Clears the message field making it undefined.
15492
- * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15493
- */
15494
- proto.clarifai.api.GetResourcePriceRequest.prototype.clearModel = function() {
15495
- return this.setModel(undefined);
15496
- };
15497
-
15498
-
15499
- /**
15500
- * Returns whether this field is set.
15501
- * @return {boolean}
15502
- */
15503
- proto.clarifai.api.GetResourcePriceRequest.prototype.hasModel = function() {
15504
- return jspb.Message.getField(this, 2) != null;
15505
- };
15506
-
15507
-
15508
- /**
15509
- * optional Workflow workflow = 3;
15510
- * @return {?proto.clarifai.api.Workflow}
15511
- */
15512
- proto.clarifai.api.GetResourcePriceRequest.prototype.getWorkflow = function() {
15513
- return /** @type{?proto.clarifai.api.Workflow} */ (
15514
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 3));
15515
- };
15516
-
15517
-
15518
- /**
15519
- * @param {?proto.clarifai.api.Workflow|undefined} value
15520
- * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15521
- */
15522
- proto.clarifai.api.GetResourcePriceRequest.prototype.setWorkflow = function(value) {
15523
- return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.GetResourcePriceRequest.oneofGroups_[0], value);
15524
- };
15525
-
15526
-
15527
- /**
15528
- * Clears the message field making it undefined.
15529
- * @return {!proto.clarifai.api.GetResourcePriceRequest} returns this
15530
- */
15531
- proto.clarifai.api.GetResourcePriceRequest.prototype.clearWorkflow = function() {
15532
- return this.setWorkflow(undefined);
15533
- };
15534
-
15535
-
15536
- /**
15537
- * Returns whether this field is set.
15538
- * @return {boolean}
15539
- */
15540
- proto.clarifai.api.GetResourcePriceRequest.prototype.hasWorkflow = function() {
15541
- return jspb.Message.getField(this, 3) != null;
15542
- };
15543
-
15544
-
15545
-
15546
-
15547
-
15548
- if (jspb.Message.GENERATE_TO_OBJECT) {
15549
- /**
15550
- * Creates an object representation of this proto.
15551
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
15552
- * Optional fields that are not set will be set to undefined.
15553
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15554
- * For the list of reserved names please see:
15555
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15556
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15557
- * JSPB instance for transitional soy proto support:
15558
- * http://goto/soy-param-migration
15559
- * @return {!Object}
15560
- */
15561
- proto.clarifai.api.GetResourcePriceResponse.prototype.toObject = function(opt_includeInstance) {
15562
- return proto.clarifai.api.GetResourcePriceResponse.toObject(opt_includeInstance, this);
15563
- };
15564
-
15565
-
15566
- /**
15567
- * Static version of the {@see toObject} method.
15568
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15569
- * the JSPB instance for transitional soy proto support:
15570
- * http://goto/soy-param-migration
15571
- * @param {!proto.clarifai.api.GetResourcePriceResponse} msg The msg instance to transform.
15572
- * @return {!Object}
15573
- * @suppress {unusedLocalVariables} f is only used for nested messages
15574
- */
15575
- proto.clarifai.api.GetResourcePriceResponse.toObject = function(includeInstance, msg) {
15576
- var f, obj = {
15577
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
15578
- price: jspb.Message.getFieldWithDefault(msg, 2, 0)
15579
- };
15580
-
15581
- if (includeInstance) {
15582
- obj.$jspbMessageInstance = msg;
15583
- }
15584
- return obj;
15585
- };
15586
- }
15587
-
15588
-
15589
- /**
15590
- * Deserializes binary data (in protobuf wire format).
15591
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
15592
- * @return {!proto.clarifai.api.GetResourcePriceResponse}
15593
- */
15594
- proto.clarifai.api.GetResourcePriceResponse.deserializeBinary = function(bytes) {
15595
- var reader = new jspb.BinaryReader(bytes);
15596
- var msg = new proto.clarifai.api.GetResourcePriceResponse;
15597
- return proto.clarifai.api.GetResourcePriceResponse.deserializeBinaryFromReader(msg, reader);
15598
- };
15599
-
15600
-
15601
- /**
15602
- * Deserializes binary data (in protobuf wire format) from the
15603
- * given reader into the given message object.
15604
- * @param {!proto.clarifai.api.GetResourcePriceResponse} msg The message object to deserialize into.
15605
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15606
- * @return {!proto.clarifai.api.GetResourcePriceResponse}
15607
- */
15608
- proto.clarifai.api.GetResourcePriceResponse.deserializeBinaryFromReader = function(msg, reader) {
15609
- while (reader.nextField()) {
15610
- if (reader.isEndGroup()) {
15611
- break;
15612
- }
15613
- var field = reader.getFieldNumber();
15614
- switch (field) {
15615
- case 1:
15616
- var value = new proto_clarifai_api_status_status_pb.Status;
15617
- reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
15618
- msg.setStatus(value);
15619
- break;
15620
- case 2:
15621
- var value = /** @type {number} */ (reader.readInt64());
15622
- msg.setPrice(value);
15623
- break;
15624
- default:
15625
- reader.skipField();
15626
- break;
15627
- }
15628
- }
15629
- return msg;
15630
- };
15631
-
15632
-
15633
- /**
15634
- * Serializes the message to binary data (in protobuf wire format).
15635
- * @return {!Uint8Array}
15636
- */
15637
- proto.clarifai.api.GetResourcePriceResponse.prototype.serializeBinary = function() {
15638
- var writer = new jspb.BinaryWriter();
15639
- proto.clarifai.api.GetResourcePriceResponse.serializeBinaryToWriter(this, writer);
15640
- return writer.getResultBuffer();
15641
- };
15642
-
15643
-
15644
- /**
15645
- * Serializes the given message to binary data (in protobuf wire
15646
- * format), writing to the given BinaryWriter.
15647
- * @param {!proto.clarifai.api.GetResourcePriceResponse} message
15648
- * @param {!jspb.BinaryWriter} writer
15649
- * @suppress {unusedLocalVariables} f is only used for nested messages
15650
- */
15651
- proto.clarifai.api.GetResourcePriceResponse.serializeBinaryToWriter = function(message, writer) {
15652
- var f = undefined;
15653
- f = message.getStatus();
15654
- if (f != null) {
15655
- writer.writeMessage(
15656
- 1,
15657
- f,
15658
- proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
15659
- );
15660
- }
15661
- f = message.getPrice();
15662
- if (f !== 0) {
15663
- writer.writeInt64(
15664
- 2,
15665
- f
15666
- );
15667
- }
15668
- };
15669
-
15670
-
15671
- /**
15672
- * optional status.Status status = 1;
15673
- * @return {?proto.clarifai.api.status.Status}
15674
- */
15675
- proto.clarifai.api.GetResourcePriceResponse.prototype.getStatus = function() {
15676
- return /** @type{?proto.clarifai.api.status.Status} */ (
15677
- jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
15678
- };
15679
-
15680
-
15681
- /**
15682
- * @param {?proto.clarifai.api.status.Status|undefined} value
15683
- * @return {!proto.clarifai.api.GetResourcePriceResponse} returns this
15684
- */
15685
- proto.clarifai.api.GetResourcePriceResponse.prototype.setStatus = function(value) {
15686
- return jspb.Message.setWrapperField(this, 1, value);
15687
- };
15688
-
15689
-
15690
- /**
15691
- * Clears the message field making it undefined.
15692
- * @return {!proto.clarifai.api.GetResourcePriceResponse} returns this
15693
- */
15694
- proto.clarifai.api.GetResourcePriceResponse.prototype.clearStatus = function() {
15695
- return this.setStatus(undefined);
15696
- };
15697
-
15698
-
15699
- /**
15700
- * Returns whether this field is set.
15701
- * @return {boolean}
15702
- */
15703
- proto.clarifai.api.GetResourcePriceResponse.prototype.hasStatus = function() {
15704
- return jspb.Message.getField(this, 1) != null;
15705
- };
15706
-
15707
-
15708
- /**
15709
- * optional int64 price = 2;
15710
- * @return {number}
15711
- */
15712
- proto.clarifai.api.GetResourcePriceResponse.prototype.getPrice = function() {
15713
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
15714
- };
15715
-
15716
-
15717
- /**
15718
- * @param {number} value
15719
- * @return {!proto.clarifai.api.GetResourcePriceResponse} returns this
15720
- */
15721
- proto.clarifai.api.GetResourcePriceResponse.prototype.setPrice = function(value) {
15722
- return jspb.Message.setProto3IntField(this, 2, value);
15723
- };
15724
-
15725
-
15726
-
15727
15288
 
15728
15289
 
15729
15290
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -31609,7 +31170,8 @@ proto.clarifai.api.PostModelOutputsRequest.toObject = function(includeInstance,
31609
31170
  versionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
31610
31171
  inputsList: jspb.Message.toObjectList(msg.getInputsList(),
31611
31172
  proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
31612
- model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f)
31173
+ model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
31174
+ runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f)
31613
31175
  };
31614
31176
 
31615
31177
  if (includeInstance) {
@@ -31669,6 +31231,11 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio
31669
31231
  reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader);
31670
31232
  msg.setModel(value);
31671
31233
  break;
31234
+ case 6:
31235
+ var value = new proto_clarifai_api_resources_pb.RunnerSelector;
31236
+ reader.readMessage(value,proto_clarifai_api_resources_pb.RunnerSelector.deserializeBinaryFromReader);
31237
+ msg.setRunnerSelector(value);
31238
+ break;
31672
31239
  default:
31673
31240
  reader.skipField();
31674
31241
  break;
@@ -31736,6 +31303,14 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function(me
31736
31303
  proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter
31737
31304
  );
31738
31305
  }
31306
+ f = message.getRunnerSelector();
31307
+ if (f != null) {
31308
+ writer.writeMessage(
31309
+ 6,
31310
+ f,
31311
+ proto_clarifai_api_resources_pb.RunnerSelector.serializeBinaryToWriter
31312
+ );
31313
+ }
31739
31314
  };
31740
31315
 
31741
31316
 
@@ -31887,6 +31462,43 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.hasModel = function() {
31887
31462
  };
31888
31463
 
31889
31464
 
31465
+ /**
31466
+ * optional RunnerSelector runner_selector = 6;
31467
+ * @return {?proto.clarifai.api.RunnerSelector}
31468
+ */
31469
+ proto.clarifai.api.PostModelOutputsRequest.prototype.getRunnerSelector = function() {
31470
+ return /** @type{?proto.clarifai.api.RunnerSelector} */ (
31471
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.RunnerSelector, 6));
31472
+ };
31473
+
31474
+
31475
+ /**
31476
+ * @param {?proto.clarifai.api.RunnerSelector|undefined} value
31477
+ * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
31478
+ */
31479
+ proto.clarifai.api.PostModelOutputsRequest.prototype.setRunnerSelector = function(value) {
31480
+ return jspb.Message.setWrapperField(this, 6, value);
31481
+ };
31482
+
31483
+
31484
+ /**
31485
+ * Clears the message field making it undefined.
31486
+ * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
31487
+ */
31488
+ proto.clarifai.api.PostModelOutputsRequest.prototype.clearRunnerSelector = function() {
31489
+ return this.setRunnerSelector(undefined);
31490
+ };
31491
+
31492
+
31493
+ /**
31494
+ * Returns whether this field is set.
31495
+ * @return {boolean}
31496
+ */
31497
+ proto.clarifai.api.PostModelOutputsRequest.prototype.hasRunnerSelector = function() {
31498
+ return jspb.Message.getField(this, 6) != null;
31499
+ };
31500
+
31501
+
31890
31502
 
31891
31503
 
31892
31504
 
@@ -78745,14 +78357,17 @@ proto.clarifai.api.MultiBulkOperationsResponse.prototype.clearBulkOperationList
78745
78357
  * @private {!Array<!Array<number>>}
78746
78358
  * @const
78747
78359
  */
78748
- proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_ = [[6]];
78360
+ proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_ = [[6,7,8,9]];
78749
78361
 
78750
78362
  /**
78751
78363
  * @enum {number}
78752
78364
  */
78753
78365
  proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase = {
78754
78366
  ACTION_CONFIG_NOT_SET: 0,
78755
- LABEL_SUBMIT_CONFIG: 6
78367
+ LABEL_SUBMIT_CONFIG: 6,
78368
+ REVIEW_APPROVE_CONFIG: 7,
78369
+ REVIEW_REQUEST_CHANGES_CONFIG: 8,
78370
+ REVIEW_REJECT_CONFIG: 9
78756
78371
  };
78757
78372
 
78758
78373
  /**
@@ -78797,7 +78412,10 @@ proto.clarifai.api.PutTaskAssignmentsRequest.toObject = function(includeInstance
78797
78412
  taskId: jspb.Message.getFieldWithDefault(msg, 2, ""),
78798
78413
  inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
78799
78414
  action: jspb.Message.getFieldWithDefault(msg, 4, 0),
78800
- labelSubmitConfig: (f = msg.getLabelSubmitConfig()) && proto.clarifai.api.LabelSubmitConfig.toObject(includeInstance, f)
78415
+ labelSubmitConfig: (f = msg.getLabelSubmitConfig()) && proto.clarifai.api.LabelSubmitConfig.toObject(includeInstance, f),
78416
+ reviewApproveConfig: (f = msg.getReviewApproveConfig()) && proto.clarifai.api.ReviewApproveConfig.toObject(includeInstance, f),
78417
+ reviewRequestChangesConfig: (f = msg.getReviewRequestChangesConfig()) && proto.clarifai.api.ReviewRequestChangesConfig.toObject(includeInstance, f),
78418
+ reviewRejectConfig: (f = msg.getReviewRejectConfig()) && proto.clarifai.api.ReviewRejectConfig.toObject(includeInstance, f)
78801
78419
  };
78802
78420
 
78803
78421
  if (includeInstance) {
@@ -78856,6 +78474,21 @@ proto.clarifai.api.PutTaskAssignmentsRequest.deserializeBinaryFromReader = funct
78856
78474
  reader.readMessage(value,proto.clarifai.api.LabelSubmitConfig.deserializeBinaryFromReader);
78857
78475
  msg.setLabelSubmitConfig(value);
78858
78476
  break;
78477
+ case 7:
78478
+ var value = new proto.clarifai.api.ReviewApproveConfig;
78479
+ reader.readMessage(value,proto.clarifai.api.ReviewApproveConfig.deserializeBinaryFromReader);
78480
+ msg.setReviewApproveConfig(value);
78481
+ break;
78482
+ case 8:
78483
+ var value = new proto.clarifai.api.ReviewRequestChangesConfig;
78484
+ reader.readMessage(value,proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinaryFromReader);
78485
+ msg.setReviewRequestChangesConfig(value);
78486
+ break;
78487
+ case 9:
78488
+ var value = new proto.clarifai.api.ReviewRejectConfig;
78489
+ reader.readMessage(value,proto.clarifai.api.ReviewRejectConfig.deserializeBinaryFromReader);
78490
+ msg.setReviewRejectConfig(value);
78491
+ break;
78859
78492
  default:
78860
78493
  reader.skipField();
78861
78494
  break;
@@ -78922,6 +78555,30 @@ proto.clarifai.api.PutTaskAssignmentsRequest.serializeBinaryToWriter = function(
78922
78555
  proto.clarifai.api.LabelSubmitConfig.serializeBinaryToWriter
78923
78556
  );
78924
78557
  }
78558
+ f = message.getReviewApproveConfig();
78559
+ if (f != null) {
78560
+ writer.writeMessage(
78561
+ 7,
78562
+ f,
78563
+ proto.clarifai.api.ReviewApproveConfig.serializeBinaryToWriter
78564
+ );
78565
+ }
78566
+ f = message.getReviewRequestChangesConfig();
78567
+ if (f != null) {
78568
+ writer.writeMessage(
78569
+ 8,
78570
+ f,
78571
+ proto.clarifai.api.ReviewRequestChangesConfig.serializeBinaryToWriter
78572
+ );
78573
+ }
78574
+ f = message.getReviewRejectConfig();
78575
+ if (f != null) {
78576
+ writer.writeMessage(
78577
+ 9,
78578
+ f,
78579
+ proto.clarifai.api.ReviewRejectConfig.serializeBinaryToWriter
78580
+ );
78581
+ }
78925
78582
  };
78926
78583
 
78927
78584
 
@@ -79053,6 +78710,117 @@ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasLabelSubmitConfig = fu
79053
78710
  };
79054
78711
 
79055
78712
 
78713
+ /**
78714
+ * optional ReviewApproveConfig review_approve_config = 7;
78715
+ * @return {?proto.clarifai.api.ReviewApproveConfig}
78716
+ */
78717
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getReviewApproveConfig = function() {
78718
+ return /** @type{?proto.clarifai.api.ReviewApproveConfig} */ (
78719
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ReviewApproveConfig, 7));
78720
+ };
78721
+
78722
+
78723
+ /**
78724
+ * @param {?proto.clarifai.api.ReviewApproveConfig|undefined} value
78725
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
78726
+ */
78727
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setReviewApproveConfig = function(value) {
78728
+ return jspb.Message.setOneofWrapperField(this, 7, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
78729
+ };
78730
+
78731
+
78732
+ /**
78733
+ * Clears the message field making it undefined.
78734
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
78735
+ */
78736
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearReviewApproveConfig = function() {
78737
+ return this.setReviewApproveConfig(undefined);
78738
+ };
78739
+
78740
+
78741
+ /**
78742
+ * Returns whether this field is set.
78743
+ * @return {boolean}
78744
+ */
78745
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasReviewApproveConfig = function() {
78746
+ return jspb.Message.getField(this, 7) != null;
78747
+ };
78748
+
78749
+
78750
+ /**
78751
+ * optional ReviewRequestChangesConfig review_request_changes_config = 8;
78752
+ * @return {?proto.clarifai.api.ReviewRequestChangesConfig}
78753
+ */
78754
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getReviewRequestChangesConfig = function() {
78755
+ return /** @type{?proto.clarifai.api.ReviewRequestChangesConfig} */ (
78756
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ReviewRequestChangesConfig, 8));
78757
+ };
78758
+
78759
+
78760
+ /**
78761
+ * @param {?proto.clarifai.api.ReviewRequestChangesConfig|undefined} value
78762
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
78763
+ */
78764
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setReviewRequestChangesConfig = function(value) {
78765
+ return jspb.Message.setOneofWrapperField(this, 8, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
78766
+ };
78767
+
78768
+
78769
+ /**
78770
+ * Clears the message field making it undefined.
78771
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
78772
+ */
78773
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearReviewRequestChangesConfig = function() {
78774
+ return this.setReviewRequestChangesConfig(undefined);
78775
+ };
78776
+
78777
+
78778
+ /**
78779
+ * Returns whether this field is set.
78780
+ * @return {boolean}
78781
+ */
78782
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasReviewRequestChangesConfig = function() {
78783
+ return jspb.Message.getField(this, 8) != null;
78784
+ };
78785
+
78786
+
78787
+ /**
78788
+ * optional ReviewRejectConfig review_reject_config = 9;
78789
+ * @return {?proto.clarifai.api.ReviewRejectConfig}
78790
+ */
78791
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getReviewRejectConfig = function() {
78792
+ return /** @type{?proto.clarifai.api.ReviewRejectConfig} */ (
78793
+ jspb.Message.getWrapperField(this, proto.clarifai.api.ReviewRejectConfig, 9));
78794
+ };
78795
+
78796
+
78797
+ /**
78798
+ * @param {?proto.clarifai.api.ReviewRejectConfig|undefined} value
78799
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
78800
+ */
78801
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setReviewRejectConfig = function(value) {
78802
+ return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
78803
+ };
78804
+
78805
+
78806
+ /**
78807
+ * Clears the message field making it undefined.
78808
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
78809
+ */
78810
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearReviewRejectConfig = function() {
78811
+ return this.setReviewRejectConfig(undefined);
78812
+ };
78813
+
78814
+
78815
+ /**
78816
+ * Returns whether this field is set.
78817
+ * @return {boolean}
78818
+ */
78819
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasReviewRejectConfig = function() {
78820
+ return jspb.Message.getField(this, 9) != null;
78821
+ };
78822
+
78823
+
79056
78824
 
79057
78825
  /**
79058
78826
  * List of repeated fields within this message type.
@@ -79214,6 +78982,645 @@ proto.clarifai.api.LabelSubmitConfig.prototype.clearTaskAssignmentsList = functi
79214
78982
 
79215
78983
 
79216
78984
 
78985
+ /**
78986
+ * List of repeated fields within this message type.
78987
+ * @private {!Array<number>}
78988
+ * @const
78989
+ */
78990
+ proto.clarifai.api.ReviewApproveConfig.repeatedFields_ = [1,2];
78991
+
78992
+
78993
+
78994
+ if (jspb.Message.GENERATE_TO_OBJECT) {
78995
+ /**
78996
+ * Creates an object representation of this proto.
78997
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
78998
+ * Optional fields that are not set will be set to undefined.
78999
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
79000
+ * For the list of reserved names please see:
79001
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
79002
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
79003
+ * JSPB instance for transitional soy proto support:
79004
+ * http://goto/soy-param-migration
79005
+ * @return {!Object}
79006
+ */
79007
+ proto.clarifai.api.ReviewApproveConfig.prototype.toObject = function(opt_includeInstance) {
79008
+ return proto.clarifai.api.ReviewApproveConfig.toObject(opt_includeInstance, this);
79009
+ };
79010
+
79011
+
79012
+ /**
79013
+ * Static version of the {@see toObject} method.
79014
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
79015
+ * the JSPB instance for transitional soy proto support:
79016
+ * http://goto/soy-param-migration
79017
+ * @param {!proto.clarifai.api.ReviewApproveConfig} msg The msg instance to transform.
79018
+ * @return {!Object}
79019
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79020
+ */
79021
+ proto.clarifai.api.ReviewApproveConfig.toObject = function(includeInstance, msg) {
79022
+ var f, obj = {
79023
+ taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(),
79024
+ proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance),
79025
+ workersList: jspb.Message.toObjectList(msg.getWorkersList(),
79026
+ proto_clarifai_api_resources_pb.Worker.toObject, includeInstance)
79027
+ };
79028
+
79029
+ if (includeInstance) {
79030
+ obj.$jspbMessageInstance = msg;
79031
+ }
79032
+ return obj;
79033
+ };
79034
+ }
79035
+
79036
+
79037
+ /**
79038
+ * Deserializes binary data (in protobuf wire format).
79039
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
79040
+ * @return {!proto.clarifai.api.ReviewApproveConfig}
79041
+ */
79042
+ proto.clarifai.api.ReviewApproveConfig.deserializeBinary = function(bytes) {
79043
+ var reader = new jspb.BinaryReader(bytes);
79044
+ var msg = new proto.clarifai.api.ReviewApproveConfig;
79045
+ return proto.clarifai.api.ReviewApproveConfig.deserializeBinaryFromReader(msg, reader);
79046
+ };
79047
+
79048
+
79049
+ /**
79050
+ * Deserializes binary data (in protobuf wire format) from the
79051
+ * given reader into the given message object.
79052
+ * @param {!proto.clarifai.api.ReviewApproveConfig} msg The message object to deserialize into.
79053
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
79054
+ * @return {!proto.clarifai.api.ReviewApproveConfig}
79055
+ */
79056
+ proto.clarifai.api.ReviewApproveConfig.deserializeBinaryFromReader = function(msg, reader) {
79057
+ while (reader.nextField()) {
79058
+ if (reader.isEndGroup()) {
79059
+ break;
79060
+ }
79061
+ var field = reader.getFieldNumber();
79062
+ switch (field) {
79063
+ case 1:
79064
+ var value = new proto_clarifai_api_resources_pb.TaskAssignment;
79065
+ reader.readMessage(value,proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
79066
+ msg.addTaskAssignments(value);
79067
+ break;
79068
+ case 2:
79069
+ var value = new proto_clarifai_api_resources_pb.Worker;
79070
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
79071
+ msg.addWorkers(value);
79072
+ break;
79073
+ default:
79074
+ reader.skipField();
79075
+ break;
79076
+ }
79077
+ }
79078
+ return msg;
79079
+ };
79080
+
79081
+
79082
+ /**
79083
+ * Serializes the message to binary data (in protobuf wire format).
79084
+ * @return {!Uint8Array}
79085
+ */
79086
+ proto.clarifai.api.ReviewApproveConfig.prototype.serializeBinary = function() {
79087
+ var writer = new jspb.BinaryWriter();
79088
+ proto.clarifai.api.ReviewApproveConfig.serializeBinaryToWriter(this, writer);
79089
+ return writer.getResultBuffer();
79090
+ };
79091
+
79092
+
79093
+ /**
79094
+ * Serializes the given message to binary data (in protobuf wire
79095
+ * format), writing to the given BinaryWriter.
79096
+ * @param {!proto.clarifai.api.ReviewApproveConfig} message
79097
+ * @param {!jspb.BinaryWriter} writer
79098
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79099
+ */
79100
+ proto.clarifai.api.ReviewApproveConfig.serializeBinaryToWriter = function(message, writer) {
79101
+ var f = undefined;
79102
+ f = message.getTaskAssignmentsList();
79103
+ if (f.length > 0) {
79104
+ writer.writeRepeatedMessage(
79105
+ 1,
79106
+ f,
79107
+ proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter
79108
+ );
79109
+ }
79110
+ f = message.getWorkersList();
79111
+ if (f.length > 0) {
79112
+ writer.writeRepeatedMessage(
79113
+ 2,
79114
+ f,
79115
+ proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter
79116
+ );
79117
+ }
79118
+ };
79119
+
79120
+
79121
+ /**
79122
+ * repeated TaskAssignment task_assignments = 1;
79123
+ * @return {!Array<!proto.clarifai.api.TaskAssignment>}
79124
+ */
79125
+ proto.clarifai.api.ReviewApproveConfig.prototype.getTaskAssignmentsList = function() {
79126
+ return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (
79127
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
79128
+ };
79129
+
79130
+
79131
+ /**
79132
+ * @param {!Array<!proto.clarifai.api.TaskAssignment>} value
79133
+ * @return {!proto.clarifai.api.ReviewApproveConfig} returns this
79134
+ */
79135
+ proto.clarifai.api.ReviewApproveConfig.prototype.setTaskAssignmentsList = function(value) {
79136
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
79137
+ };
79138
+
79139
+
79140
+ /**
79141
+ * @param {!proto.clarifai.api.TaskAssignment=} opt_value
79142
+ * @param {number=} opt_index
79143
+ * @return {!proto.clarifai.api.TaskAssignment}
79144
+ */
79145
+ proto.clarifai.api.ReviewApproveConfig.prototype.addTaskAssignments = function(opt_value, opt_index) {
79146
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
79147
+ };
79148
+
79149
+
79150
+ /**
79151
+ * Clears the list making it empty but non-null.
79152
+ * @return {!proto.clarifai.api.ReviewApproveConfig} returns this
79153
+ */
79154
+ proto.clarifai.api.ReviewApproveConfig.prototype.clearTaskAssignmentsList = function() {
79155
+ return this.setTaskAssignmentsList([]);
79156
+ };
79157
+
79158
+
79159
+ /**
79160
+ * repeated Worker workers = 2;
79161
+ * @return {!Array<!proto.clarifai.api.Worker>}
79162
+ */
79163
+ proto.clarifai.api.ReviewApproveConfig.prototype.getWorkersList = function() {
79164
+ return /** @type{!Array<!proto.clarifai.api.Worker>} */ (
79165
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Worker, 2));
79166
+ };
79167
+
79168
+
79169
+ /**
79170
+ * @param {!Array<!proto.clarifai.api.Worker>} value
79171
+ * @return {!proto.clarifai.api.ReviewApproveConfig} returns this
79172
+ */
79173
+ proto.clarifai.api.ReviewApproveConfig.prototype.setWorkersList = function(value) {
79174
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
79175
+ };
79176
+
79177
+
79178
+ /**
79179
+ * @param {!proto.clarifai.api.Worker=} opt_value
79180
+ * @param {number=} opt_index
79181
+ * @return {!proto.clarifai.api.Worker}
79182
+ */
79183
+ proto.clarifai.api.ReviewApproveConfig.prototype.addWorkers = function(opt_value, opt_index) {
79184
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Worker, opt_index);
79185
+ };
79186
+
79187
+
79188
+ /**
79189
+ * Clears the list making it empty but non-null.
79190
+ * @return {!proto.clarifai.api.ReviewApproveConfig} returns this
79191
+ */
79192
+ proto.clarifai.api.ReviewApproveConfig.prototype.clearWorkersList = function() {
79193
+ return this.setWorkersList([]);
79194
+ };
79195
+
79196
+
79197
+
79198
+ /**
79199
+ * List of repeated fields within this message type.
79200
+ * @private {!Array<number>}
79201
+ * @const
79202
+ */
79203
+ proto.clarifai.api.ReviewRequestChangesConfig.repeatedFields_ = [1,2];
79204
+
79205
+
79206
+
79207
+ if (jspb.Message.GENERATE_TO_OBJECT) {
79208
+ /**
79209
+ * Creates an object representation of this proto.
79210
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
79211
+ * Optional fields that are not set will be set to undefined.
79212
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
79213
+ * For the list of reserved names please see:
79214
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
79215
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
79216
+ * JSPB instance for transitional soy proto support:
79217
+ * http://goto/soy-param-migration
79218
+ * @return {!Object}
79219
+ */
79220
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.toObject = function(opt_includeInstance) {
79221
+ return proto.clarifai.api.ReviewRequestChangesConfig.toObject(opt_includeInstance, this);
79222
+ };
79223
+
79224
+
79225
+ /**
79226
+ * Static version of the {@see toObject} method.
79227
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
79228
+ * the JSPB instance for transitional soy proto support:
79229
+ * http://goto/soy-param-migration
79230
+ * @param {!proto.clarifai.api.ReviewRequestChangesConfig} msg The msg instance to transform.
79231
+ * @return {!Object}
79232
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79233
+ */
79234
+ proto.clarifai.api.ReviewRequestChangesConfig.toObject = function(includeInstance, msg) {
79235
+ var f, obj = {
79236
+ taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(),
79237
+ proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance),
79238
+ workersList: jspb.Message.toObjectList(msg.getWorkersList(),
79239
+ proto_clarifai_api_resources_pb.Worker.toObject, includeInstance)
79240
+ };
79241
+
79242
+ if (includeInstance) {
79243
+ obj.$jspbMessageInstance = msg;
79244
+ }
79245
+ return obj;
79246
+ };
79247
+ }
79248
+
79249
+
79250
+ /**
79251
+ * Deserializes binary data (in protobuf wire format).
79252
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
79253
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig}
79254
+ */
79255
+ proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinary = function(bytes) {
79256
+ var reader = new jspb.BinaryReader(bytes);
79257
+ var msg = new proto.clarifai.api.ReviewRequestChangesConfig;
79258
+ return proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinaryFromReader(msg, reader);
79259
+ };
79260
+
79261
+
79262
+ /**
79263
+ * Deserializes binary data (in protobuf wire format) from the
79264
+ * given reader into the given message object.
79265
+ * @param {!proto.clarifai.api.ReviewRequestChangesConfig} msg The message object to deserialize into.
79266
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
79267
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig}
79268
+ */
79269
+ proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinaryFromReader = function(msg, reader) {
79270
+ while (reader.nextField()) {
79271
+ if (reader.isEndGroup()) {
79272
+ break;
79273
+ }
79274
+ var field = reader.getFieldNumber();
79275
+ switch (field) {
79276
+ case 1:
79277
+ var value = new proto_clarifai_api_resources_pb.TaskAssignment;
79278
+ reader.readMessage(value,proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
79279
+ msg.addTaskAssignments(value);
79280
+ break;
79281
+ case 2:
79282
+ var value = new proto_clarifai_api_resources_pb.Worker;
79283
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
79284
+ msg.addWorkers(value);
79285
+ break;
79286
+ default:
79287
+ reader.skipField();
79288
+ break;
79289
+ }
79290
+ }
79291
+ return msg;
79292
+ };
79293
+
79294
+
79295
+ /**
79296
+ * Serializes the message to binary data (in protobuf wire format).
79297
+ * @return {!Uint8Array}
79298
+ */
79299
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.serializeBinary = function() {
79300
+ var writer = new jspb.BinaryWriter();
79301
+ proto.clarifai.api.ReviewRequestChangesConfig.serializeBinaryToWriter(this, writer);
79302
+ return writer.getResultBuffer();
79303
+ };
79304
+
79305
+
79306
+ /**
79307
+ * Serializes the given message to binary data (in protobuf wire
79308
+ * format), writing to the given BinaryWriter.
79309
+ * @param {!proto.clarifai.api.ReviewRequestChangesConfig} message
79310
+ * @param {!jspb.BinaryWriter} writer
79311
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79312
+ */
79313
+ proto.clarifai.api.ReviewRequestChangesConfig.serializeBinaryToWriter = function(message, writer) {
79314
+ var f = undefined;
79315
+ f = message.getTaskAssignmentsList();
79316
+ if (f.length > 0) {
79317
+ writer.writeRepeatedMessage(
79318
+ 1,
79319
+ f,
79320
+ proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter
79321
+ );
79322
+ }
79323
+ f = message.getWorkersList();
79324
+ if (f.length > 0) {
79325
+ writer.writeRepeatedMessage(
79326
+ 2,
79327
+ f,
79328
+ proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter
79329
+ );
79330
+ }
79331
+ };
79332
+
79333
+
79334
+ /**
79335
+ * repeated TaskAssignment task_assignments = 1;
79336
+ * @return {!Array<!proto.clarifai.api.TaskAssignment>}
79337
+ */
79338
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.getTaskAssignmentsList = function() {
79339
+ return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (
79340
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
79341
+ };
79342
+
79343
+
79344
+ /**
79345
+ * @param {!Array<!proto.clarifai.api.TaskAssignment>} value
79346
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
79347
+ */
79348
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.setTaskAssignmentsList = function(value) {
79349
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
79350
+ };
79351
+
79352
+
79353
+ /**
79354
+ * @param {!proto.clarifai.api.TaskAssignment=} opt_value
79355
+ * @param {number=} opt_index
79356
+ * @return {!proto.clarifai.api.TaskAssignment}
79357
+ */
79358
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.addTaskAssignments = function(opt_value, opt_index) {
79359
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
79360
+ };
79361
+
79362
+
79363
+ /**
79364
+ * Clears the list making it empty but non-null.
79365
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
79366
+ */
79367
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.clearTaskAssignmentsList = function() {
79368
+ return this.setTaskAssignmentsList([]);
79369
+ };
79370
+
79371
+
79372
+ /**
79373
+ * repeated Worker workers = 2;
79374
+ * @return {!Array<!proto.clarifai.api.Worker>}
79375
+ */
79376
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.getWorkersList = function() {
79377
+ return /** @type{!Array<!proto.clarifai.api.Worker>} */ (
79378
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Worker, 2));
79379
+ };
79380
+
79381
+
79382
+ /**
79383
+ * @param {!Array<!proto.clarifai.api.Worker>} value
79384
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
79385
+ */
79386
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.setWorkersList = function(value) {
79387
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
79388
+ };
79389
+
79390
+
79391
+ /**
79392
+ * @param {!proto.clarifai.api.Worker=} opt_value
79393
+ * @param {number=} opt_index
79394
+ * @return {!proto.clarifai.api.Worker}
79395
+ */
79396
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.addWorkers = function(opt_value, opt_index) {
79397
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Worker, opt_index);
79398
+ };
79399
+
79400
+
79401
+ /**
79402
+ * Clears the list making it empty but non-null.
79403
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
79404
+ */
79405
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.clearWorkersList = function() {
79406
+ return this.setWorkersList([]);
79407
+ };
79408
+
79409
+
79410
+
79411
+ /**
79412
+ * List of repeated fields within this message type.
79413
+ * @private {!Array<number>}
79414
+ * @const
79415
+ */
79416
+ proto.clarifai.api.ReviewRejectConfig.repeatedFields_ = [1,2];
79417
+
79418
+
79419
+
79420
+ if (jspb.Message.GENERATE_TO_OBJECT) {
79421
+ /**
79422
+ * Creates an object representation of this proto.
79423
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
79424
+ * Optional fields that are not set will be set to undefined.
79425
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
79426
+ * For the list of reserved names please see:
79427
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
79428
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
79429
+ * JSPB instance for transitional soy proto support:
79430
+ * http://goto/soy-param-migration
79431
+ * @return {!Object}
79432
+ */
79433
+ proto.clarifai.api.ReviewRejectConfig.prototype.toObject = function(opt_includeInstance) {
79434
+ return proto.clarifai.api.ReviewRejectConfig.toObject(opt_includeInstance, this);
79435
+ };
79436
+
79437
+
79438
+ /**
79439
+ * Static version of the {@see toObject} method.
79440
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
79441
+ * the JSPB instance for transitional soy proto support:
79442
+ * http://goto/soy-param-migration
79443
+ * @param {!proto.clarifai.api.ReviewRejectConfig} msg The msg instance to transform.
79444
+ * @return {!Object}
79445
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79446
+ */
79447
+ proto.clarifai.api.ReviewRejectConfig.toObject = function(includeInstance, msg) {
79448
+ var f, obj = {
79449
+ taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(),
79450
+ proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance),
79451
+ workersList: jspb.Message.toObjectList(msg.getWorkersList(),
79452
+ proto_clarifai_api_resources_pb.Worker.toObject, includeInstance)
79453
+ };
79454
+
79455
+ if (includeInstance) {
79456
+ obj.$jspbMessageInstance = msg;
79457
+ }
79458
+ return obj;
79459
+ };
79460
+ }
79461
+
79462
+
79463
+ /**
79464
+ * Deserializes binary data (in protobuf wire format).
79465
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
79466
+ * @return {!proto.clarifai.api.ReviewRejectConfig}
79467
+ */
79468
+ proto.clarifai.api.ReviewRejectConfig.deserializeBinary = function(bytes) {
79469
+ var reader = new jspb.BinaryReader(bytes);
79470
+ var msg = new proto.clarifai.api.ReviewRejectConfig;
79471
+ return proto.clarifai.api.ReviewRejectConfig.deserializeBinaryFromReader(msg, reader);
79472
+ };
79473
+
79474
+
79475
+ /**
79476
+ * Deserializes binary data (in protobuf wire format) from the
79477
+ * given reader into the given message object.
79478
+ * @param {!proto.clarifai.api.ReviewRejectConfig} msg The message object to deserialize into.
79479
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
79480
+ * @return {!proto.clarifai.api.ReviewRejectConfig}
79481
+ */
79482
+ proto.clarifai.api.ReviewRejectConfig.deserializeBinaryFromReader = function(msg, reader) {
79483
+ while (reader.nextField()) {
79484
+ if (reader.isEndGroup()) {
79485
+ break;
79486
+ }
79487
+ var field = reader.getFieldNumber();
79488
+ switch (field) {
79489
+ case 1:
79490
+ var value = new proto_clarifai_api_resources_pb.TaskAssignment;
79491
+ reader.readMessage(value,proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
79492
+ msg.addTaskAssignments(value);
79493
+ break;
79494
+ case 2:
79495
+ var value = new proto_clarifai_api_resources_pb.Worker;
79496
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
79497
+ msg.addWorkers(value);
79498
+ break;
79499
+ default:
79500
+ reader.skipField();
79501
+ break;
79502
+ }
79503
+ }
79504
+ return msg;
79505
+ };
79506
+
79507
+
79508
+ /**
79509
+ * Serializes the message to binary data (in protobuf wire format).
79510
+ * @return {!Uint8Array}
79511
+ */
79512
+ proto.clarifai.api.ReviewRejectConfig.prototype.serializeBinary = function() {
79513
+ var writer = new jspb.BinaryWriter();
79514
+ proto.clarifai.api.ReviewRejectConfig.serializeBinaryToWriter(this, writer);
79515
+ return writer.getResultBuffer();
79516
+ };
79517
+
79518
+
79519
+ /**
79520
+ * Serializes the given message to binary data (in protobuf wire
79521
+ * format), writing to the given BinaryWriter.
79522
+ * @param {!proto.clarifai.api.ReviewRejectConfig} message
79523
+ * @param {!jspb.BinaryWriter} writer
79524
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79525
+ */
79526
+ proto.clarifai.api.ReviewRejectConfig.serializeBinaryToWriter = function(message, writer) {
79527
+ var f = undefined;
79528
+ f = message.getTaskAssignmentsList();
79529
+ if (f.length > 0) {
79530
+ writer.writeRepeatedMessage(
79531
+ 1,
79532
+ f,
79533
+ proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter
79534
+ );
79535
+ }
79536
+ f = message.getWorkersList();
79537
+ if (f.length > 0) {
79538
+ writer.writeRepeatedMessage(
79539
+ 2,
79540
+ f,
79541
+ proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter
79542
+ );
79543
+ }
79544
+ };
79545
+
79546
+
79547
+ /**
79548
+ * repeated TaskAssignment task_assignments = 1;
79549
+ * @return {!Array<!proto.clarifai.api.TaskAssignment>}
79550
+ */
79551
+ proto.clarifai.api.ReviewRejectConfig.prototype.getTaskAssignmentsList = function() {
79552
+ return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (
79553
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
79554
+ };
79555
+
79556
+
79557
+ /**
79558
+ * @param {!Array<!proto.clarifai.api.TaskAssignment>} value
79559
+ * @return {!proto.clarifai.api.ReviewRejectConfig} returns this
79560
+ */
79561
+ proto.clarifai.api.ReviewRejectConfig.prototype.setTaskAssignmentsList = function(value) {
79562
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
79563
+ };
79564
+
79565
+
79566
+ /**
79567
+ * @param {!proto.clarifai.api.TaskAssignment=} opt_value
79568
+ * @param {number=} opt_index
79569
+ * @return {!proto.clarifai.api.TaskAssignment}
79570
+ */
79571
+ proto.clarifai.api.ReviewRejectConfig.prototype.addTaskAssignments = function(opt_value, opt_index) {
79572
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
79573
+ };
79574
+
79575
+
79576
+ /**
79577
+ * Clears the list making it empty but non-null.
79578
+ * @return {!proto.clarifai.api.ReviewRejectConfig} returns this
79579
+ */
79580
+ proto.clarifai.api.ReviewRejectConfig.prototype.clearTaskAssignmentsList = function() {
79581
+ return this.setTaskAssignmentsList([]);
79582
+ };
79583
+
79584
+
79585
+ /**
79586
+ * repeated Worker workers = 2;
79587
+ * @return {!Array<!proto.clarifai.api.Worker>}
79588
+ */
79589
+ proto.clarifai.api.ReviewRejectConfig.prototype.getWorkersList = function() {
79590
+ return /** @type{!Array<!proto.clarifai.api.Worker>} */ (
79591
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Worker, 2));
79592
+ };
79593
+
79594
+
79595
+ /**
79596
+ * @param {!Array<!proto.clarifai.api.Worker>} value
79597
+ * @return {!proto.clarifai.api.ReviewRejectConfig} returns this
79598
+ */
79599
+ proto.clarifai.api.ReviewRejectConfig.prototype.setWorkersList = function(value) {
79600
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
79601
+ };
79602
+
79603
+
79604
+ /**
79605
+ * @param {!proto.clarifai.api.Worker=} opt_value
79606
+ * @param {number=} opt_index
79607
+ * @return {!proto.clarifai.api.Worker}
79608
+ */
79609
+ proto.clarifai.api.ReviewRejectConfig.prototype.addWorkers = function(opt_value, opt_index) {
79610
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Worker, opt_index);
79611
+ };
79612
+
79613
+
79614
+ /**
79615
+ * Clears the list making it empty but non-null.
79616
+ * @return {!proto.clarifai.api.ReviewRejectConfig} returns this
79617
+ */
79618
+ proto.clarifai.api.ReviewRejectConfig.prototype.clearWorkersList = function() {
79619
+ return this.setWorkersList([]);
79620
+ };
79621
+
79622
+
79623
+
79217
79624
  /**
79218
79625
  * List of repeated fields within this message type.
79219
79626
  * @private {!Array<number>}
@@ -86330,7 +86737,8 @@ proto.clarifai.api.PutTaskAssignmentsRequestAction = {
86330
86737
  LABEL_SUBMIT: 2,
86331
86738
  REVIEW_START: 10,
86332
86739
  REVIEW_APPROVE: 11,
86333
- REVIEW_REQUEST_CHANGES: 12
86740
+ REVIEW_REQUEST_CHANGES: 12,
86741
+ REVIEW_REJECT: 13
86334
86742
  };
86335
86743
 
86336
86744
  goog.object.extend(exports, proto.clarifai.api);