clarifai-web-grpc 10.2.1 → 10.3.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.
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 +2720 -113
  6. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +38 -42
  7. package/dist/cjs/proto/clarifai/api/service_pb.js +1042 -445
  8. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +6 -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 +2720 -113
  15. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +38 -42
  16. package/dist/esm/proto/clarifai/api/service_pb.js +1042 -445
  17. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +6 -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 +435 -0
  26. package/proto/clarifai/api/resources_pb.js +3370 -114
  27. package/proto/clarifai/api/service_grpc_web_pb.d.ts +10 -12
  28. package/proto/clarifai/api/service_grpc_web_pb.js +56 -61
  29. package/proto/clarifai/api/service_pb.d.ts +164 -72
  30. package/proto/clarifai/api/service_pb.js +1534 -767
  31. package/proto/clarifai/api/status/status_code_pb.d.ts +6 -0
  32. package/proto/clarifai/api/status/status_code_pb.js +6 -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
@@ -106,9 +106,6 @@ goog.exportSymbol('proto.clarifai.api.GetModuleVersionRequest', null, global);
106
106
  goog.exportSymbol('proto.clarifai.api.GetModuleVersionUsageCountRequest', null, global);
107
107
  goog.exportSymbol('proto.clarifai.api.GetResourceCountsRequest', null, global);
108
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);
112
109
  goog.exportSymbol('proto.clarifai.api.GetRunnerRequest', null, global);
113
110
  goog.exportSymbol('proto.clarifai.api.GetSearchRequest', null, global);
114
111
  goog.exportSymbol('proto.clarifai.api.GetStatusCodeRequest', null, global);
@@ -342,8 +339,13 @@ goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest', null, global);
342
339
  goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase', null, global);
343
340
  goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequestAction', null, global);
344
341
  goog.exportSymbol('proto.clarifai.api.PutUploadContentPartsRequest', null, global);
342
+ goog.exportSymbol('proto.clarifai.api.ReviewApproveConfig', null, global);
343
+ goog.exportSymbol('proto.clarifai.api.ReviewRejectConfig', null, global);
344
+ goog.exportSymbol('proto.clarifai.api.ReviewRequestChangesConfig', null, global);
345
345
  goog.exportSymbol('proto.clarifai.api.RunnerItem', null, global);
346
+ goog.exportSymbol('proto.clarifai.api.RunnerItem.RequestCase', null, global);
346
347
  goog.exportSymbol('proto.clarifai.api.RunnerItemOutput', null, global);
348
+ goog.exportSymbol('proto.clarifai.api.RunnerItemOutput.ResponseCase', null, global);
347
349
  goog.exportSymbol('proto.clarifai.api.SingleAnnotationFilterResponse', null, global);
348
350
  goog.exportSymbol('proto.clarifai.api.SingleAnnotationResponse', null, global);
349
351
  goog.exportSymbol('proto.clarifai.api.SingleAppDuplicationResponse', null, global);
@@ -1014,48 +1016,6 @@ if (goog.DEBUG && !COMPILED) {
1014
1016
  */
1015
1017
  proto.clarifai.api.MultiCollaborationsResponse.displayName = 'proto.clarifai.api.MultiCollaborationsResponse';
1016
1018
  }
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
- }
1059
1019
  /**
1060
1020
  * Generated by JsPbCodeGenerator.
1061
1021
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2285,7 +2245,7 @@ if (goog.DEBUG && !COMPILED) {
2285
2245
  * @constructor
2286
2246
  */
2287
2247
  proto.clarifai.api.ListDatasetVersionsRequest = function (opt_data) {
2288
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2248
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListDatasetVersionsRequest.repeatedFields_, null);
2289
2249
  };
2290
2250
  goog.inherits(proto.clarifai.api.ListDatasetVersionsRequest, jspb.Message);
2291
2251
  if (goog.DEBUG && !COMPILED) {
@@ -6663,6 +6623,69 @@ if (goog.DEBUG && !COMPILED) {
6663
6623
  */
6664
6624
  proto.clarifai.api.LabelSubmitConfig.displayName = 'proto.clarifai.api.LabelSubmitConfig';
6665
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
+ }
6666
6689
  /**
6667
6690
  * Generated by JsPbCodeGenerator.
6668
6691
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -7283,7 +7306,7 @@ if (goog.DEBUG && !COMPILED) {
7283
7306
  * @constructor
7284
7307
  */
7285
7308
  proto.clarifai.api.RunnerItem = function (opt_data) {
7286
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7309
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.RunnerItem.oneofGroups_);
7287
7310
  };
7288
7311
  goog.inherits(proto.clarifai.api.RunnerItem, jspb.Message);
7289
7312
  if (goog.DEBUG && !COMPILED) {
@@ -7304,7 +7327,7 @@ if (goog.DEBUG && !COMPILED) {
7304
7327
  * @constructor
7305
7328
  */
7306
7329
  proto.clarifai.api.RunnerItemOutput = function (opt_data) {
7307
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7330
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.RunnerItemOutput.oneofGroups_);
7308
7331
  };
7309
7332
  goog.inherits(proto.clarifai.api.RunnerItemOutput, jspb.Message);
7310
7333
  if (goog.DEBUG && !COMPILED) {
@@ -7680,7 +7703,7 @@ proto.clarifai.api.GetAnnotationRequest.prototype.setInputId = function (value)
7680
7703
  * @private {!Array<number>}
7681
7704
  * @const
7682
7705
  */
7683
- proto.clarifai.api.ListAnnotationsRequest.repeatedFields_ = [2, 3, 9, 10, 5];
7706
+ proto.clarifai.api.ListAnnotationsRequest.repeatedFields_ = [2, 3, 9, 10, 13, 5];
7684
7707
  if (jspb.Message.GENERATE_TO_OBJECT) {
7685
7708
  /**
7686
7709
  * Creates an object representation of this proto.
@@ -7713,6 +7736,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
7713
7736
  inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
7714
7737
  userIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
7715
7738
  modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
7739
+ workflowVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f,
7716
7740
  statusesList: jspb.Message.toObjectList(msg.getStatusesList(), proto_clarifai_api_status_status_pb.Status.toObject, includeInstance),
7717
7741
  listAllAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
7718
7742
  returnModelOutput: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
@@ -7771,6 +7795,10 @@ proto.clarifai.api.ListAnnotationsRequest.deserializeBinaryFromReader = function
7771
7795
  var value = /** @type {string} */ (reader.readString());
7772
7796
  msg.addModelVersionIds(value);
7773
7797
  break;
7798
+ case 13:
7799
+ var value = /** @type {string} */ (reader.readString());
7800
+ msg.addWorkflowVersionIds(value);
7801
+ break;
7774
7802
  case 5:
7775
7803
  var value = new proto_clarifai_api_status_status_pb.Status;
7776
7804
  reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
@@ -7841,6 +7869,10 @@ proto.clarifai.api.ListAnnotationsRequest.serializeBinaryToWriter = function (me
7841
7869
  if (f.length > 0) {
7842
7870
  writer.writeRepeatedString(10, f);
7843
7871
  }
7872
+ f = message.getWorkflowVersionIdsList();
7873
+ if (f.length > 0) {
7874
+ writer.writeRepeatedString(13, f);
7875
+ }
7844
7876
  f = message.getStatusesList();
7845
7877
  if (f.length > 0) {
7846
7878
  writer.writeRepeatedMessage(5, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
@@ -8010,6 +8042,35 @@ proto.clarifai.api.ListAnnotationsRequest.prototype.addModelVersionIds = functio
8010
8042
  proto.clarifai.api.ListAnnotationsRequest.prototype.clearModelVersionIdsList = function () {
8011
8043
  return this.setModelVersionIdsList([]);
8012
8044
  };
8045
+ /**
8046
+ * repeated string workflow_version_ids = 13;
8047
+ * @return {!Array<string>}
8048
+ */
8049
+ proto.clarifai.api.ListAnnotationsRequest.prototype.getWorkflowVersionIdsList = function () {
8050
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 13));
8051
+ };
8052
+ /**
8053
+ * @param {!Array<string>} value
8054
+ * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this
8055
+ */
8056
+ proto.clarifai.api.ListAnnotationsRequest.prototype.setWorkflowVersionIdsList = function (value) {
8057
+ return jspb.Message.setField(this, 13, value || []);
8058
+ };
8059
+ /**
8060
+ * @param {string} value
8061
+ * @param {number=} opt_index
8062
+ * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this
8063
+ */
8064
+ proto.clarifai.api.ListAnnotationsRequest.prototype.addWorkflowVersionIds = function (value, opt_index) {
8065
+ return jspb.Message.addToRepeatedField(this, 13, value, opt_index);
8066
+ };
8067
+ /**
8068
+ * Clears the list making it empty but non-null.
8069
+ * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this
8070
+ */
8071
+ proto.clarifai.api.ListAnnotationsRequest.prototype.clearWorkflowVersionIdsList = function () {
8072
+ return this.setWorkflowVersionIdsList([]);
8073
+ };
8013
8074
  /**
8014
8075
  * repeated status.Status statuses = 5;
8015
8076
  * @return {!Array<!proto.clarifai.api.status.Status>}
@@ -13603,372 +13664,6 @@ proto.clarifai.api.MultiCollaborationsResponse.prototype.addCollaborations = fun
13603
13664
  proto.clarifai.api.MultiCollaborationsResponse.prototype.clearCollaborationsList = function () {
13604
13665
  return this.setCollaborationsList([]);
13605
13666
  };
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
- };
13972
13667
  if (jspb.Message.GENERATE_TO_OBJECT) {
13973
13668
  /**
13974
13669
  * Creates an object representation of this proto.
@@ -24355,6 +24050,12 @@ proto.clarifai.api.SingleDatasetInputResponse.prototype.clearDatasetInput = func
24355
24050
  proto.clarifai.api.SingleDatasetInputResponse.prototype.hasDatasetInput = function () {
24356
24051
  return jspb.Message.getField(this, 2) != null;
24357
24052
  };
24053
+ /**
24054
+ * List of repeated fields within this message type.
24055
+ * @private {!Array<number>}
24056
+ * @const
24057
+ */
24058
+ proto.clarifai.api.ListDatasetVersionsRequest.repeatedFields_ = [5];
24358
24059
  if (jspb.Message.GENERATE_TO_OBJECT) {
24359
24060
  /**
24360
24061
  * Creates an object representation of this proto.
@@ -24385,7 +24086,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
24385
24086
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
24386
24087
  datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""),
24387
24088
  page: jspb.Message.getFieldWithDefault(msg, 3, 0),
24388
- perPage: jspb.Message.getFieldWithDefault(msg, 4, 0)
24089
+ perPage: jspb.Message.getFieldWithDefault(msg, 4, 0),
24090
+ requestOriginsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
24389
24091
  };
24390
24092
  if (includeInstance) {
24391
24093
  obj.$jspbMessageInstance = msg;
@@ -24434,6 +24136,12 @@ proto.clarifai.api.ListDatasetVersionsRequest.deserializeBinaryFromReader = func
24434
24136
  var value = /** @type {number} */ (reader.readUint32());
24435
24137
  msg.setPerPage(value);
24436
24138
  break;
24139
+ case 5:
24140
+ var values = /** @type {!Array<!proto.clarifai.api.DatasetVersionRequestOrigin>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
24141
+ for (var i = 0; i < values.length; i++) {
24142
+ msg.addRequestOrigins(values[i]);
24143
+ }
24144
+ break;
24437
24145
  default:
24438
24146
  reader.skipField();
24439
24147
  break;
@@ -24475,6 +24183,10 @@ proto.clarifai.api.ListDatasetVersionsRequest.serializeBinaryToWriter = function
24475
24183
  if (f !== 0) {
24476
24184
  writer.writeUint32(4, f);
24477
24185
  }
24186
+ f = message.getRequestOriginsList();
24187
+ if (f.length > 0) {
24188
+ writer.writePackedEnum(5, f);
24189
+ }
24478
24190
  };
24479
24191
  /**
24480
24192
  * optional UserAppIDSet user_app_id = 1;
@@ -24546,6 +24258,35 @@ proto.clarifai.api.ListDatasetVersionsRequest.prototype.getPerPage = function ()
24546
24258
  proto.clarifai.api.ListDatasetVersionsRequest.prototype.setPerPage = function (value) {
24547
24259
  return jspb.Message.setProto3IntField(this, 4, value);
24548
24260
  };
24261
+ /**
24262
+ * repeated DatasetVersionRequestOrigin request_origins = 5;
24263
+ * @return {!Array<!proto.clarifai.api.DatasetVersionRequestOrigin>}
24264
+ */
24265
+ proto.clarifai.api.ListDatasetVersionsRequest.prototype.getRequestOriginsList = function () {
24266
+ return /** @type {!Array<!proto.clarifai.api.DatasetVersionRequestOrigin>} */ (jspb.Message.getRepeatedField(this, 5));
24267
+ };
24268
+ /**
24269
+ * @param {!Array<!proto.clarifai.api.DatasetVersionRequestOrigin>} value
24270
+ * @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this
24271
+ */
24272
+ proto.clarifai.api.ListDatasetVersionsRequest.prototype.setRequestOriginsList = function (value) {
24273
+ return jspb.Message.setField(this, 5, value || []);
24274
+ };
24275
+ /**
24276
+ * @param {!proto.clarifai.api.DatasetVersionRequestOrigin} value
24277
+ * @param {number=} opt_index
24278
+ * @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this
24279
+ */
24280
+ proto.clarifai.api.ListDatasetVersionsRequest.prototype.addRequestOrigins = function (value, opt_index) {
24281
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
24282
+ };
24283
+ /**
24284
+ * Clears the list making it empty but non-null.
24285
+ * @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this
24286
+ */
24287
+ proto.clarifai.api.ListDatasetVersionsRequest.prototype.clearRequestOriginsList = function () {
24288
+ return this.setRequestOriginsList([]);
24289
+ };
24549
24290
  if (jspb.Message.GENERATE_TO_OBJECT) {
24550
24291
  /**
24551
24292
  * Creates an object representation of this proto.
@@ -26554,7 +26295,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
26554
26295
  modelId: jspb.Message.getFieldWithDefault(msg, 2, ""),
26555
26296
  versionId: jspb.Message.getFieldWithDefault(msg, 3, ""),
26556
26297
  inputsList: jspb.Message.toObjectList(msg.getInputsList(), proto_clarifai_api_resources_pb.Input.toObject, includeInstance),
26557
- model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f)
26298
+ model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f),
26299
+ runnerSelector: (f = msg.getRunnerSelector()) && proto_clarifai_api_resources_pb.RunnerSelector.toObject(includeInstance, f)
26558
26300
  };
26559
26301
  if (includeInstance) {
26560
26302
  obj.$jspbMessageInstance = msg;
@@ -26609,6 +26351,11 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio
26609
26351
  reader.readMessage(value, proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader);
26610
26352
  msg.setModel(value);
26611
26353
  break;
26354
+ case 6:
26355
+ var value = new proto_clarifai_api_resources_pb.RunnerSelector;
26356
+ reader.readMessage(value, proto_clarifai_api_resources_pb.RunnerSelector.deserializeBinaryFromReader);
26357
+ msg.setRunnerSelector(value);
26358
+ break;
26612
26359
  default:
26613
26360
  reader.skipField();
26614
26361
  break;
@@ -26654,6 +26401,10 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function (m
26654
26401
  if (f != null) {
26655
26402
  writer.writeMessage(5, f, proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter);
26656
26403
  }
26404
+ f = message.getRunnerSelector();
26405
+ if (f != null) {
26406
+ writer.writeMessage(6, f, proto_clarifai_api_resources_pb.RunnerSelector.serializeBinaryToWriter);
26407
+ }
26657
26408
  };
26658
26409
  /**
26659
26410
  * optional UserAppIDSet user_app_id = 1;
@@ -26768,6 +26519,34 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.clearModel = function () {
26768
26519
  proto.clarifai.api.PostModelOutputsRequest.prototype.hasModel = function () {
26769
26520
  return jspb.Message.getField(this, 5) != null;
26770
26521
  };
26522
+ /**
26523
+ * optional RunnerSelector runner_selector = 6;
26524
+ * @return {?proto.clarifai.api.RunnerSelector}
26525
+ */
26526
+ proto.clarifai.api.PostModelOutputsRequest.prototype.getRunnerSelector = function () {
26527
+ return /** @type{?proto.clarifai.api.RunnerSelector} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.RunnerSelector, 6));
26528
+ };
26529
+ /**
26530
+ * @param {?proto.clarifai.api.RunnerSelector|undefined} value
26531
+ * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
26532
+ */
26533
+ proto.clarifai.api.PostModelOutputsRequest.prototype.setRunnerSelector = function (value) {
26534
+ return jspb.Message.setWrapperField(this, 6, value);
26535
+ };
26536
+ /**
26537
+ * Clears the message field making it undefined.
26538
+ * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this
26539
+ */
26540
+ proto.clarifai.api.PostModelOutputsRequest.prototype.clearRunnerSelector = function () {
26541
+ return this.setRunnerSelector(undefined);
26542
+ };
26543
+ /**
26544
+ * Returns whether this field is set.
26545
+ * @return {boolean}
26546
+ */
26547
+ proto.clarifai.api.PostModelOutputsRequest.prototype.hasRunnerSelector = function () {
26548
+ return jspb.Message.getField(this, 6) != null;
26549
+ };
26771
26550
  if (jspb.Message.GENERATE_TO_OBJECT) {
26772
26551
  /**
26773
26552
  * Creates an object representation of this proto.
@@ -54353,7 +54132,7 @@ proto.clarifai.api.SingleTaskResponse.prototype.hasTask = function () {
54353
54132
  * @private {!Array<number>}
54354
54133
  * @const
54355
54134
  */
54356
- proto.clarifai.api.GetTaskCountRequest.repeatedFields_ = [3];
54135
+ proto.clarifai.api.GetTaskCountRequest.repeatedFields_ = [3, 4, 5];
54357
54136
  if (jspb.Message.GENERATE_TO_OBJECT) {
54358
54137
  /**
54359
54138
  * Creates an object representation of this proto.
@@ -54383,7 +54162,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
54383
54162
  var f, obj = {
54384
54163
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
54385
54164
  taskId: jspb.Message.getFieldWithDefault(msg, 2, ""),
54386
- userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
54165
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
54166
+ modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
54167
+ workflowVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
54387
54168
  };
54388
54169
  if (includeInstance) {
54389
54170
  obj.$jspbMessageInstance = msg;
@@ -54428,6 +54209,14 @@ proto.clarifai.api.GetTaskCountRequest.deserializeBinaryFromReader = function (m
54428
54209
  var value = /** @type {string} */ (reader.readString());
54429
54210
  msg.addUserIds(value);
54430
54211
  break;
54212
+ case 4:
54213
+ var value = /** @type {string} */ (reader.readString());
54214
+ msg.addModelVersionIds(value);
54215
+ break;
54216
+ case 5:
54217
+ var value = /** @type {string} */ (reader.readString());
54218
+ msg.addWorkflowVersionIds(value);
54219
+ break;
54431
54220
  default:
54432
54221
  reader.skipField();
54433
54222
  break;
@@ -54465,6 +54254,14 @@ proto.clarifai.api.GetTaskCountRequest.serializeBinaryToWriter = function (messa
54465
54254
  if (f.length > 0) {
54466
54255
  writer.writeRepeatedString(3, f);
54467
54256
  }
54257
+ f = message.getModelVersionIdsList();
54258
+ if (f.length > 0) {
54259
+ writer.writeRepeatedString(4, f);
54260
+ }
54261
+ f = message.getWorkflowVersionIdsList();
54262
+ if (f.length > 0) {
54263
+ writer.writeRepeatedString(5, f);
54264
+ }
54468
54265
  };
54469
54266
  /**
54470
54267
  * optional UserAppIDSet user_app_id = 1;
@@ -54537,6 +54334,64 @@ proto.clarifai.api.GetTaskCountRequest.prototype.addUserIds = function (value, o
54537
54334
  proto.clarifai.api.GetTaskCountRequest.prototype.clearUserIdsList = function () {
54538
54335
  return this.setUserIdsList([]);
54539
54336
  };
54337
+ /**
54338
+ * repeated string model_version_ids = 4;
54339
+ * @return {!Array<string>}
54340
+ */
54341
+ proto.clarifai.api.GetTaskCountRequest.prototype.getModelVersionIdsList = function () {
54342
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
54343
+ };
54344
+ /**
54345
+ * @param {!Array<string>} value
54346
+ * @return {!proto.clarifai.api.GetTaskCountRequest} returns this
54347
+ */
54348
+ proto.clarifai.api.GetTaskCountRequest.prototype.setModelVersionIdsList = function (value) {
54349
+ return jspb.Message.setField(this, 4, value || []);
54350
+ };
54351
+ /**
54352
+ * @param {string} value
54353
+ * @param {number=} opt_index
54354
+ * @return {!proto.clarifai.api.GetTaskCountRequest} returns this
54355
+ */
54356
+ proto.clarifai.api.GetTaskCountRequest.prototype.addModelVersionIds = function (value, opt_index) {
54357
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
54358
+ };
54359
+ /**
54360
+ * Clears the list making it empty but non-null.
54361
+ * @return {!proto.clarifai.api.GetTaskCountRequest} returns this
54362
+ */
54363
+ proto.clarifai.api.GetTaskCountRequest.prototype.clearModelVersionIdsList = function () {
54364
+ return this.setModelVersionIdsList([]);
54365
+ };
54366
+ /**
54367
+ * repeated string workflow_version_ids = 5;
54368
+ * @return {!Array<string>}
54369
+ */
54370
+ proto.clarifai.api.GetTaskCountRequest.prototype.getWorkflowVersionIdsList = function () {
54371
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
54372
+ };
54373
+ /**
54374
+ * @param {!Array<string>} value
54375
+ * @return {!proto.clarifai.api.GetTaskCountRequest} returns this
54376
+ */
54377
+ proto.clarifai.api.GetTaskCountRequest.prototype.setWorkflowVersionIdsList = function (value) {
54378
+ return jspb.Message.setField(this, 5, value || []);
54379
+ };
54380
+ /**
54381
+ * @param {string} value
54382
+ * @param {number=} opt_index
54383
+ * @return {!proto.clarifai.api.GetTaskCountRequest} returns this
54384
+ */
54385
+ proto.clarifai.api.GetTaskCountRequest.prototype.addWorkflowVersionIds = function (value, opt_index) {
54386
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
54387
+ };
54388
+ /**
54389
+ * Clears the list making it empty but non-null.
54390
+ * @return {!proto.clarifai.api.GetTaskCountRequest} returns this
54391
+ */
54392
+ proto.clarifai.api.GetTaskCountRequest.prototype.clearWorkflowVersionIdsList = function () {
54393
+ return this.setWorkflowVersionIdsList([]);
54394
+ };
54540
54395
  /**
54541
54396
  * List of repeated fields within this message type.
54542
54397
  * @private {!Array<number>}
@@ -63856,13 +63711,16 @@ proto.clarifai.api.MultiBulkOperationsResponse.prototype.clearBulkOperationList
63856
63711
  * @private {!Array<!Array<number>>}
63857
63712
  * @const
63858
63713
  */
63859
- proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_ = [[6]];
63714
+ proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_ = [[6, 7, 8, 9]];
63860
63715
  /**
63861
63716
  * @enum {number}
63862
63717
  */
63863
63718
  proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase = {
63864
63719
  ACTION_CONFIG_NOT_SET: 0,
63865
- LABEL_SUBMIT_CONFIG: 6
63720
+ LABEL_SUBMIT_CONFIG: 6,
63721
+ REVIEW_APPROVE_CONFIG: 7,
63722
+ REVIEW_REQUEST_CHANGES_CONFIG: 8,
63723
+ REVIEW_REJECT_CONFIG: 9
63866
63724
  };
63867
63725
  /**
63868
63726
  * @return {proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase}
@@ -63901,7 +63759,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
63901
63759
  taskId: jspb.Message.getFieldWithDefault(msg, 2, ""),
63902
63760
  inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
63903
63761
  action: jspb.Message.getFieldWithDefault(msg, 4, 0),
63904
- labelSubmitConfig: (f = msg.getLabelSubmitConfig()) && proto.clarifai.api.LabelSubmitConfig.toObject(includeInstance, f)
63762
+ labelSubmitConfig: (f = msg.getLabelSubmitConfig()) && proto.clarifai.api.LabelSubmitConfig.toObject(includeInstance, f),
63763
+ reviewApproveConfig: (f = msg.getReviewApproveConfig()) && proto.clarifai.api.ReviewApproveConfig.toObject(includeInstance, f),
63764
+ reviewRequestChangesConfig: (f = msg.getReviewRequestChangesConfig()) && proto.clarifai.api.ReviewRequestChangesConfig.toObject(includeInstance, f),
63765
+ reviewRejectConfig: (f = msg.getReviewRejectConfig()) && proto.clarifai.api.ReviewRejectConfig.toObject(includeInstance, f)
63905
63766
  };
63906
63767
  if (includeInstance) {
63907
63768
  obj.$jspbMessageInstance = msg;
@@ -63955,6 +63816,21 @@ proto.clarifai.api.PutTaskAssignmentsRequest.deserializeBinaryFromReader = funct
63955
63816
  reader.readMessage(value, proto.clarifai.api.LabelSubmitConfig.deserializeBinaryFromReader);
63956
63817
  msg.setLabelSubmitConfig(value);
63957
63818
  break;
63819
+ case 7:
63820
+ var value = new proto.clarifai.api.ReviewApproveConfig;
63821
+ reader.readMessage(value, proto.clarifai.api.ReviewApproveConfig.deserializeBinaryFromReader);
63822
+ msg.setReviewApproveConfig(value);
63823
+ break;
63824
+ case 8:
63825
+ var value = new proto.clarifai.api.ReviewRequestChangesConfig;
63826
+ reader.readMessage(value, proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinaryFromReader);
63827
+ msg.setReviewRequestChangesConfig(value);
63828
+ break;
63829
+ case 9:
63830
+ var value = new proto.clarifai.api.ReviewRejectConfig;
63831
+ reader.readMessage(value, proto.clarifai.api.ReviewRejectConfig.deserializeBinaryFromReader);
63832
+ msg.setReviewRejectConfig(value);
63833
+ break;
63958
63834
  default:
63959
63835
  reader.skipField();
63960
63836
  break;
@@ -64000,6 +63876,18 @@ proto.clarifai.api.PutTaskAssignmentsRequest.serializeBinaryToWriter = function
64000
63876
  if (f != null) {
64001
63877
  writer.writeMessage(6, f, proto.clarifai.api.LabelSubmitConfig.serializeBinaryToWriter);
64002
63878
  }
63879
+ f = message.getReviewApproveConfig();
63880
+ if (f != null) {
63881
+ writer.writeMessage(7, f, proto.clarifai.api.ReviewApproveConfig.serializeBinaryToWriter);
63882
+ }
63883
+ f = message.getReviewRequestChangesConfig();
63884
+ if (f != null) {
63885
+ writer.writeMessage(8, f, proto.clarifai.api.ReviewRequestChangesConfig.serializeBinaryToWriter);
63886
+ }
63887
+ f = message.getReviewRejectConfig();
63888
+ if (f != null) {
63889
+ writer.writeMessage(9, f, proto.clarifai.api.ReviewRejectConfig.serializeBinaryToWriter);
63890
+ }
64003
63891
  };
64004
63892
  /**
64005
63893
  * optional UserAppIDSet user_app_id = 1;
@@ -64099,6 +63987,90 @@ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearLabelSubmitConfig =
64099
63987
  proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasLabelSubmitConfig = function () {
64100
63988
  return jspb.Message.getField(this, 6) != null;
64101
63989
  };
63990
+ /**
63991
+ * optional ReviewApproveConfig review_approve_config = 7;
63992
+ * @return {?proto.clarifai.api.ReviewApproveConfig}
63993
+ */
63994
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getReviewApproveConfig = function () {
63995
+ return /** @type{?proto.clarifai.api.ReviewApproveConfig} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ReviewApproveConfig, 7));
63996
+ };
63997
+ /**
63998
+ * @param {?proto.clarifai.api.ReviewApproveConfig|undefined} value
63999
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
64000
+ */
64001
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setReviewApproveConfig = function (value) {
64002
+ return jspb.Message.setOneofWrapperField(this, 7, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
64003
+ };
64004
+ /**
64005
+ * Clears the message field making it undefined.
64006
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
64007
+ */
64008
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearReviewApproveConfig = function () {
64009
+ return this.setReviewApproveConfig(undefined);
64010
+ };
64011
+ /**
64012
+ * Returns whether this field is set.
64013
+ * @return {boolean}
64014
+ */
64015
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasReviewApproveConfig = function () {
64016
+ return jspb.Message.getField(this, 7) != null;
64017
+ };
64018
+ /**
64019
+ * optional ReviewRequestChangesConfig review_request_changes_config = 8;
64020
+ * @return {?proto.clarifai.api.ReviewRequestChangesConfig}
64021
+ */
64022
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getReviewRequestChangesConfig = function () {
64023
+ return /** @type{?proto.clarifai.api.ReviewRequestChangesConfig} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ReviewRequestChangesConfig, 8));
64024
+ };
64025
+ /**
64026
+ * @param {?proto.clarifai.api.ReviewRequestChangesConfig|undefined} value
64027
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
64028
+ */
64029
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setReviewRequestChangesConfig = function (value) {
64030
+ return jspb.Message.setOneofWrapperField(this, 8, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
64031
+ };
64032
+ /**
64033
+ * Clears the message field making it undefined.
64034
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
64035
+ */
64036
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearReviewRequestChangesConfig = function () {
64037
+ return this.setReviewRequestChangesConfig(undefined);
64038
+ };
64039
+ /**
64040
+ * Returns whether this field is set.
64041
+ * @return {boolean}
64042
+ */
64043
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasReviewRequestChangesConfig = function () {
64044
+ return jspb.Message.getField(this, 8) != null;
64045
+ };
64046
+ /**
64047
+ * optional ReviewRejectConfig review_reject_config = 9;
64048
+ * @return {?proto.clarifai.api.ReviewRejectConfig}
64049
+ */
64050
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getReviewRejectConfig = function () {
64051
+ return /** @type{?proto.clarifai.api.ReviewRejectConfig} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ReviewRejectConfig, 9));
64052
+ };
64053
+ /**
64054
+ * @param {?proto.clarifai.api.ReviewRejectConfig|undefined} value
64055
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
64056
+ */
64057
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setReviewRejectConfig = function (value) {
64058
+ return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
64059
+ };
64060
+ /**
64061
+ * Clears the message field making it undefined.
64062
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
64063
+ */
64064
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearReviewRejectConfig = function () {
64065
+ return this.setReviewRejectConfig(undefined);
64066
+ };
64067
+ /**
64068
+ * Returns whether this field is set.
64069
+ * @return {boolean}
64070
+ */
64071
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasReviewRejectConfig = function () {
64072
+ return jspb.Message.getField(this, 9) != null;
64073
+ };
64102
64074
  /**
64103
64075
  * List of repeated fields within this message type.
64104
64076
  * @private {!Array<number>}
@@ -64228,6 +64200,510 @@ proto.clarifai.api.LabelSubmitConfig.prototype.addTaskAssignments = function (op
64228
64200
  proto.clarifai.api.LabelSubmitConfig.prototype.clearTaskAssignmentsList = function () {
64229
64201
  return this.setTaskAssignmentsList([]);
64230
64202
  };
64203
+ /**
64204
+ * List of repeated fields within this message type.
64205
+ * @private {!Array<number>}
64206
+ * @const
64207
+ */
64208
+ proto.clarifai.api.ReviewApproveConfig.repeatedFields_ = [1, 2];
64209
+ if (jspb.Message.GENERATE_TO_OBJECT) {
64210
+ /**
64211
+ * Creates an object representation of this proto.
64212
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64213
+ * Optional fields that are not set will be set to undefined.
64214
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
64215
+ * For the list of reserved names please see:
64216
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
64217
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64218
+ * JSPB instance for transitional soy proto support:
64219
+ * http://goto/soy-param-migration
64220
+ * @return {!Object}
64221
+ */
64222
+ proto.clarifai.api.ReviewApproveConfig.prototype.toObject = function (opt_includeInstance) {
64223
+ return proto.clarifai.api.ReviewApproveConfig.toObject(opt_includeInstance, this);
64224
+ };
64225
+ /**
64226
+ * Static version of the {@see toObject} method.
64227
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64228
+ * the JSPB instance for transitional soy proto support:
64229
+ * http://goto/soy-param-migration
64230
+ * @param {!proto.clarifai.api.ReviewApproveConfig} msg The msg instance to transform.
64231
+ * @return {!Object}
64232
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64233
+ */
64234
+ proto.clarifai.api.ReviewApproveConfig.toObject = function (includeInstance, msg) {
64235
+ var f, obj = {
64236
+ taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(), proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance),
64237
+ workersList: jspb.Message.toObjectList(msg.getWorkersList(), proto_clarifai_api_resources_pb.Worker.toObject, includeInstance)
64238
+ };
64239
+ if (includeInstance) {
64240
+ obj.$jspbMessageInstance = msg;
64241
+ }
64242
+ return obj;
64243
+ };
64244
+ }
64245
+ /**
64246
+ * Deserializes binary data (in protobuf wire format).
64247
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
64248
+ * @return {!proto.clarifai.api.ReviewApproveConfig}
64249
+ */
64250
+ proto.clarifai.api.ReviewApproveConfig.deserializeBinary = function (bytes) {
64251
+ var reader = new jspb.BinaryReader(bytes);
64252
+ var msg = new proto.clarifai.api.ReviewApproveConfig;
64253
+ return proto.clarifai.api.ReviewApproveConfig.deserializeBinaryFromReader(msg, reader);
64254
+ };
64255
+ /**
64256
+ * Deserializes binary data (in protobuf wire format) from the
64257
+ * given reader into the given message object.
64258
+ * @param {!proto.clarifai.api.ReviewApproveConfig} msg The message object to deserialize into.
64259
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
64260
+ * @return {!proto.clarifai.api.ReviewApproveConfig}
64261
+ */
64262
+ proto.clarifai.api.ReviewApproveConfig.deserializeBinaryFromReader = function (msg, reader) {
64263
+ while (reader.nextField()) {
64264
+ if (reader.isEndGroup()) {
64265
+ break;
64266
+ }
64267
+ var field = reader.getFieldNumber();
64268
+ switch (field) {
64269
+ case 1:
64270
+ var value = new proto_clarifai_api_resources_pb.TaskAssignment;
64271
+ reader.readMessage(value, proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
64272
+ msg.addTaskAssignments(value);
64273
+ break;
64274
+ case 2:
64275
+ var value = new proto_clarifai_api_resources_pb.Worker;
64276
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
64277
+ msg.addWorkers(value);
64278
+ break;
64279
+ default:
64280
+ reader.skipField();
64281
+ break;
64282
+ }
64283
+ }
64284
+ return msg;
64285
+ };
64286
+ /**
64287
+ * Serializes the message to binary data (in protobuf wire format).
64288
+ * @return {!Uint8Array}
64289
+ */
64290
+ proto.clarifai.api.ReviewApproveConfig.prototype.serializeBinary = function () {
64291
+ var writer = new jspb.BinaryWriter();
64292
+ proto.clarifai.api.ReviewApproveConfig.serializeBinaryToWriter(this, writer);
64293
+ return writer.getResultBuffer();
64294
+ };
64295
+ /**
64296
+ * Serializes the given message to binary data (in protobuf wire
64297
+ * format), writing to the given BinaryWriter.
64298
+ * @param {!proto.clarifai.api.ReviewApproveConfig} message
64299
+ * @param {!jspb.BinaryWriter} writer
64300
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64301
+ */
64302
+ proto.clarifai.api.ReviewApproveConfig.serializeBinaryToWriter = function (message, writer) {
64303
+ var f = undefined;
64304
+ f = message.getTaskAssignmentsList();
64305
+ if (f.length > 0) {
64306
+ writer.writeRepeatedMessage(1, f, proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter);
64307
+ }
64308
+ f = message.getWorkersList();
64309
+ if (f.length > 0) {
64310
+ writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter);
64311
+ }
64312
+ };
64313
+ /**
64314
+ * repeated TaskAssignment task_assignments = 1;
64315
+ * @return {!Array<!proto.clarifai.api.TaskAssignment>}
64316
+ */
64317
+ proto.clarifai.api.ReviewApproveConfig.prototype.getTaskAssignmentsList = function () {
64318
+ return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
64319
+ };
64320
+ /**
64321
+ * @param {!Array<!proto.clarifai.api.TaskAssignment>} value
64322
+ * @return {!proto.clarifai.api.ReviewApproveConfig} returns this
64323
+ */
64324
+ proto.clarifai.api.ReviewApproveConfig.prototype.setTaskAssignmentsList = function (value) {
64325
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
64326
+ };
64327
+ /**
64328
+ * @param {!proto.clarifai.api.TaskAssignment=} opt_value
64329
+ * @param {number=} opt_index
64330
+ * @return {!proto.clarifai.api.TaskAssignment}
64331
+ */
64332
+ proto.clarifai.api.ReviewApproveConfig.prototype.addTaskAssignments = function (opt_value, opt_index) {
64333
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
64334
+ };
64335
+ /**
64336
+ * Clears the list making it empty but non-null.
64337
+ * @return {!proto.clarifai.api.ReviewApproveConfig} returns this
64338
+ */
64339
+ proto.clarifai.api.ReviewApproveConfig.prototype.clearTaskAssignmentsList = function () {
64340
+ return this.setTaskAssignmentsList([]);
64341
+ };
64342
+ /**
64343
+ * repeated Worker workers = 2;
64344
+ * @return {!Array<!proto.clarifai.api.Worker>}
64345
+ */
64346
+ proto.clarifai.api.ReviewApproveConfig.prototype.getWorkersList = function () {
64347
+ return /** @type{!Array<!proto.clarifai.api.Worker>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Worker, 2));
64348
+ };
64349
+ /**
64350
+ * @param {!Array<!proto.clarifai.api.Worker>} value
64351
+ * @return {!proto.clarifai.api.ReviewApproveConfig} returns this
64352
+ */
64353
+ proto.clarifai.api.ReviewApproveConfig.prototype.setWorkersList = function (value) {
64354
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
64355
+ };
64356
+ /**
64357
+ * @param {!proto.clarifai.api.Worker=} opt_value
64358
+ * @param {number=} opt_index
64359
+ * @return {!proto.clarifai.api.Worker}
64360
+ */
64361
+ proto.clarifai.api.ReviewApproveConfig.prototype.addWorkers = function (opt_value, opt_index) {
64362
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Worker, opt_index);
64363
+ };
64364
+ /**
64365
+ * Clears the list making it empty but non-null.
64366
+ * @return {!proto.clarifai.api.ReviewApproveConfig} returns this
64367
+ */
64368
+ proto.clarifai.api.ReviewApproveConfig.prototype.clearWorkersList = function () {
64369
+ return this.setWorkersList([]);
64370
+ };
64371
+ /**
64372
+ * List of repeated fields within this message type.
64373
+ * @private {!Array<number>}
64374
+ * @const
64375
+ */
64376
+ proto.clarifai.api.ReviewRequestChangesConfig.repeatedFields_ = [1, 2];
64377
+ if (jspb.Message.GENERATE_TO_OBJECT) {
64378
+ /**
64379
+ * Creates an object representation of this proto.
64380
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64381
+ * Optional fields that are not set will be set to undefined.
64382
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
64383
+ * For the list of reserved names please see:
64384
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
64385
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64386
+ * JSPB instance for transitional soy proto support:
64387
+ * http://goto/soy-param-migration
64388
+ * @return {!Object}
64389
+ */
64390
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.toObject = function (opt_includeInstance) {
64391
+ return proto.clarifai.api.ReviewRequestChangesConfig.toObject(opt_includeInstance, this);
64392
+ };
64393
+ /**
64394
+ * Static version of the {@see toObject} method.
64395
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64396
+ * the JSPB instance for transitional soy proto support:
64397
+ * http://goto/soy-param-migration
64398
+ * @param {!proto.clarifai.api.ReviewRequestChangesConfig} msg The msg instance to transform.
64399
+ * @return {!Object}
64400
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64401
+ */
64402
+ proto.clarifai.api.ReviewRequestChangesConfig.toObject = function (includeInstance, msg) {
64403
+ var f, obj = {
64404
+ taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(), proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance),
64405
+ workersList: jspb.Message.toObjectList(msg.getWorkersList(), proto_clarifai_api_resources_pb.Worker.toObject, includeInstance)
64406
+ };
64407
+ if (includeInstance) {
64408
+ obj.$jspbMessageInstance = msg;
64409
+ }
64410
+ return obj;
64411
+ };
64412
+ }
64413
+ /**
64414
+ * Deserializes binary data (in protobuf wire format).
64415
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
64416
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig}
64417
+ */
64418
+ proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinary = function (bytes) {
64419
+ var reader = new jspb.BinaryReader(bytes);
64420
+ var msg = new proto.clarifai.api.ReviewRequestChangesConfig;
64421
+ return proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinaryFromReader(msg, reader);
64422
+ };
64423
+ /**
64424
+ * Deserializes binary data (in protobuf wire format) from the
64425
+ * given reader into the given message object.
64426
+ * @param {!proto.clarifai.api.ReviewRequestChangesConfig} msg The message object to deserialize into.
64427
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
64428
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig}
64429
+ */
64430
+ proto.clarifai.api.ReviewRequestChangesConfig.deserializeBinaryFromReader = function (msg, reader) {
64431
+ while (reader.nextField()) {
64432
+ if (reader.isEndGroup()) {
64433
+ break;
64434
+ }
64435
+ var field = reader.getFieldNumber();
64436
+ switch (field) {
64437
+ case 1:
64438
+ var value = new proto_clarifai_api_resources_pb.TaskAssignment;
64439
+ reader.readMessage(value, proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
64440
+ msg.addTaskAssignments(value);
64441
+ break;
64442
+ case 2:
64443
+ var value = new proto_clarifai_api_resources_pb.Worker;
64444
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
64445
+ msg.addWorkers(value);
64446
+ break;
64447
+ default:
64448
+ reader.skipField();
64449
+ break;
64450
+ }
64451
+ }
64452
+ return msg;
64453
+ };
64454
+ /**
64455
+ * Serializes the message to binary data (in protobuf wire format).
64456
+ * @return {!Uint8Array}
64457
+ */
64458
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.serializeBinary = function () {
64459
+ var writer = new jspb.BinaryWriter();
64460
+ proto.clarifai.api.ReviewRequestChangesConfig.serializeBinaryToWriter(this, writer);
64461
+ return writer.getResultBuffer();
64462
+ };
64463
+ /**
64464
+ * Serializes the given message to binary data (in protobuf wire
64465
+ * format), writing to the given BinaryWriter.
64466
+ * @param {!proto.clarifai.api.ReviewRequestChangesConfig} message
64467
+ * @param {!jspb.BinaryWriter} writer
64468
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64469
+ */
64470
+ proto.clarifai.api.ReviewRequestChangesConfig.serializeBinaryToWriter = function (message, writer) {
64471
+ var f = undefined;
64472
+ f = message.getTaskAssignmentsList();
64473
+ if (f.length > 0) {
64474
+ writer.writeRepeatedMessage(1, f, proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter);
64475
+ }
64476
+ f = message.getWorkersList();
64477
+ if (f.length > 0) {
64478
+ writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter);
64479
+ }
64480
+ };
64481
+ /**
64482
+ * repeated TaskAssignment task_assignments = 1;
64483
+ * @return {!Array<!proto.clarifai.api.TaskAssignment>}
64484
+ */
64485
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.getTaskAssignmentsList = function () {
64486
+ return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
64487
+ };
64488
+ /**
64489
+ * @param {!Array<!proto.clarifai.api.TaskAssignment>} value
64490
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
64491
+ */
64492
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.setTaskAssignmentsList = function (value) {
64493
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
64494
+ };
64495
+ /**
64496
+ * @param {!proto.clarifai.api.TaskAssignment=} opt_value
64497
+ * @param {number=} opt_index
64498
+ * @return {!proto.clarifai.api.TaskAssignment}
64499
+ */
64500
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.addTaskAssignments = function (opt_value, opt_index) {
64501
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
64502
+ };
64503
+ /**
64504
+ * Clears the list making it empty but non-null.
64505
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
64506
+ */
64507
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.clearTaskAssignmentsList = function () {
64508
+ return this.setTaskAssignmentsList([]);
64509
+ };
64510
+ /**
64511
+ * repeated Worker workers = 2;
64512
+ * @return {!Array<!proto.clarifai.api.Worker>}
64513
+ */
64514
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.getWorkersList = function () {
64515
+ return /** @type{!Array<!proto.clarifai.api.Worker>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Worker, 2));
64516
+ };
64517
+ /**
64518
+ * @param {!Array<!proto.clarifai.api.Worker>} value
64519
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
64520
+ */
64521
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.setWorkersList = function (value) {
64522
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
64523
+ };
64524
+ /**
64525
+ * @param {!proto.clarifai.api.Worker=} opt_value
64526
+ * @param {number=} opt_index
64527
+ * @return {!proto.clarifai.api.Worker}
64528
+ */
64529
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.addWorkers = function (opt_value, opt_index) {
64530
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Worker, opt_index);
64531
+ };
64532
+ /**
64533
+ * Clears the list making it empty but non-null.
64534
+ * @return {!proto.clarifai.api.ReviewRequestChangesConfig} returns this
64535
+ */
64536
+ proto.clarifai.api.ReviewRequestChangesConfig.prototype.clearWorkersList = function () {
64537
+ return this.setWorkersList([]);
64538
+ };
64539
+ /**
64540
+ * List of repeated fields within this message type.
64541
+ * @private {!Array<number>}
64542
+ * @const
64543
+ */
64544
+ proto.clarifai.api.ReviewRejectConfig.repeatedFields_ = [1, 2];
64545
+ if (jspb.Message.GENERATE_TO_OBJECT) {
64546
+ /**
64547
+ * Creates an object representation of this proto.
64548
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64549
+ * Optional fields that are not set will be set to undefined.
64550
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
64551
+ * For the list of reserved names please see:
64552
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
64553
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64554
+ * JSPB instance for transitional soy proto support:
64555
+ * http://goto/soy-param-migration
64556
+ * @return {!Object}
64557
+ */
64558
+ proto.clarifai.api.ReviewRejectConfig.prototype.toObject = function (opt_includeInstance) {
64559
+ return proto.clarifai.api.ReviewRejectConfig.toObject(opt_includeInstance, this);
64560
+ };
64561
+ /**
64562
+ * Static version of the {@see toObject} method.
64563
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64564
+ * the JSPB instance for transitional soy proto support:
64565
+ * http://goto/soy-param-migration
64566
+ * @param {!proto.clarifai.api.ReviewRejectConfig} msg The msg instance to transform.
64567
+ * @return {!Object}
64568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64569
+ */
64570
+ proto.clarifai.api.ReviewRejectConfig.toObject = function (includeInstance, msg) {
64571
+ var f, obj = {
64572
+ taskAssignmentsList: jspb.Message.toObjectList(msg.getTaskAssignmentsList(), proto_clarifai_api_resources_pb.TaskAssignment.toObject, includeInstance),
64573
+ workersList: jspb.Message.toObjectList(msg.getWorkersList(), proto_clarifai_api_resources_pb.Worker.toObject, includeInstance)
64574
+ };
64575
+ if (includeInstance) {
64576
+ obj.$jspbMessageInstance = msg;
64577
+ }
64578
+ return obj;
64579
+ };
64580
+ }
64581
+ /**
64582
+ * Deserializes binary data (in protobuf wire format).
64583
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
64584
+ * @return {!proto.clarifai.api.ReviewRejectConfig}
64585
+ */
64586
+ proto.clarifai.api.ReviewRejectConfig.deserializeBinary = function (bytes) {
64587
+ var reader = new jspb.BinaryReader(bytes);
64588
+ var msg = new proto.clarifai.api.ReviewRejectConfig;
64589
+ return proto.clarifai.api.ReviewRejectConfig.deserializeBinaryFromReader(msg, reader);
64590
+ };
64591
+ /**
64592
+ * Deserializes binary data (in protobuf wire format) from the
64593
+ * given reader into the given message object.
64594
+ * @param {!proto.clarifai.api.ReviewRejectConfig} msg The message object to deserialize into.
64595
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
64596
+ * @return {!proto.clarifai.api.ReviewRejectConfig}
64597
+ */
64598
+ proto.clarifai.api.ReviewRejectConfig.deserializeBinaryFromReader = function (msg, reader) {
64599
+ while (reader.nextField()) {
64600
+ if (reader.isEndGroup()) {
64601
+ break;
64602
+ }
64603
+ var field = reader.getFieldNumber();
64604
+ switch (field) {
64605
+ case 1:
64606
+ var value = new proto_clarifai_api_resources_pb.TaskAssignment;
64607
+ reader.readMessage(value, proto_clarifai_api_resources_pb.TaskAssignment.deserializeBinaryFromReader);
64608
+ msg.addTaskAssignments(value);
64609
+ break;
64610
+ case 2:
64611
+ var value = new proto_clarifai_api_resources_pb.Worker;
64612
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
64613
+ msg.addWorkers(value);
64614
+ break;
64615
+ default:
64616
+ reader.skipField();
64617
+ break;
64618
+ }
64619
+ }
64620
+ return msg;
64621
+ };
64622
+ /**
64623
+ * Serializes the message to binary data (in protobuf wire format).
64624
+ * @return {!Uint8Array}
64625
+ */
64626
+ proto.clarifai.api.ReviewRejectConfig.prototype.serializeBinary = function () {
64627
+ var writer = new jspb.BinaryWriter();
64628
+ proto.clarifai.api.ReviewRejectConfig.serializeBinaryToWriter(this, writer);
64629
+ return writer.getResultBuffer();
64630
+ };
64631
+ /**
64632
+ * Serializes the given message to binary data (in protobuf wire
64633
+ * format), writing to the given BinaryWriter.
64634
+ * @param {!proto.clarifai.api.ReviewRejectConfig} message
64635
+ * @param {!jspb.BinaryWriter} writer
64636
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64637
+ */
64638
+ proto.clarifai.api.ReviewRejectConfig.serializeBinaryToWriter = function (message, writer) {
64639
+ var f = undefined;
64640
+ f = message.getTaskAssignmentsList();
64641
+ if (f.length > 0) {
64642
+ writer.writeRepeatedMessage(1, f, proto_clarifai_api_resources_pb.TaskAssignment.serializeBinaryToWriter);
64643
+ }
64644
+ f = message.getWorkersList();
64645
+ if (f.length > 0) {
64646
+ writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter);
64647
+ }
64648
+ };
64649
+ /**
64650
+ * repeated TaskAssignment task_assignments = 1;
64651
+ * @return {!Array<!proto.clarifai.api.TaskAssignment>}
64652
+ */
64653
+ proto.clarifai.api.ReviewRejectConfig.prototype.getTaskAssignmentsList = function () {
64654
+ return /** @type{!Array<!proto.clarifai.api.TaskAssignment>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskAssignment, 1));
64655
+ };
64656
+ /**
64657
+ * @param {!Array<!proto.clarifai.api.TaskAssignment>} value
64658
+ * @return {!proto.clarifai.api.ReviewRejectConfig} returns this
64659
+ */
64660
+ proto.clarifai.api.ReviewRejectConfig.prototype.setTaskAssignmentsList = function (value) {
64661
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
64662
+ };
64663
+ /**
64664
+ * @param {!proto.clarifai.api.TaskAssignment=} opt_value
64665
+ * @param {number=} opt_index
64666
+ * @return {!proto.clarifai.api.TaskAssignment}
64667
+ */
64668
+ proto.clarifai.api.ReviewRejectConfig.prototype.addTaskAssignments = function (opt_value, opt_index) {
64669
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.TaskAssignment, opt_index);
64670
+ };
64671
+ /**
64672
+ * Clears the list making it empty but non-null.
64673
+ * @return {!proto.clarifai.api.ReviewRejectConfig} returns this
64674
+ */
64675
+ proto.clarifai.api.ReviewRejectConfig.prototype.clearTaskAssignmentsList = function () {
64676
+ return this.setTaskAssignmentsList([]);
64677
+ };
64678
+ /**
64679
+ * repeated Worker workers = 2;
64680
+ * @return {!Array<!proto.clarifai.api.Worker>}
64681
+ */
64682
+ proto.clarifai.api.ReviewRejectConfig.prototype.getWorkersList = function () {
64683
+ return /** @type{!Array<!proto.clarifai.api.Worker>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Worker, 2));
64684
+ };
64685
+ /**
64686
+ * @param {!Array<!proto.clarifai.api.Worker>} value
64687
+ * @return {!proto.clarifai.api.ReviewRejectConfig} returns this
64688
+ */
64689
+ proto.clarifai.api.ReviewRejectConfig.prototype.setWorkersList = function (value) {
64690
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
64691
+ };
64692
+ /**
64693
+ * @param {!proto.clarifai.api.Worker=} opt_value
64694
+ * @param {number=} opt_index
64695
+ * @return {!proto.clarifai.api.Worker}
64696
+ */
64697
+ proto.clarifai.api.ReviewRejectConfig.prototype.addWorkers = function (opt_value, opt_index) {
64698
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Worker, opt_index);
64699
+ };
64700
+ /**
64701
+ * Clears the list making it empty but non-null.
64702
+ * @return {!proto.clarifai.api.ReviewRejectConfig} returns this
64703
+ */
64704
+ proto.clarifai.api.ReviewRejectConfig.prototype.clearWorkersList = function () {
64705
+ return this.setWorkersList([]);
64706
+ };
64231
64707
  /**
64232
64708
  * List of repeated fields within this message type.
64233
64709
  * @private {!Array<number>}
@@ -68682,8 +69158,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
68682
69158
  var f, obj = {
68683
69159
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
68684
69160
  runnerId: jspb.Message.getFieldWithDefault(msg, 2, ""),
68685
- itemId: jspb.Message.getFieldWithDefault(msg, 3, ""),
68686
- runnerItemOutputsList: jspb.Message.toObjectList(msg.getRunnerItemOutputsList(), proto.clarifai.api.RunnerItemOutput.toObject, includeInstance)
69161
+ runnerItemId: jspb.Message.getFieldWithDefault(msg, 3, ""),
69162
+ runnerItemOutputsList: jspb.Message.toObjectList(msg.getRunnerItemOutputsList(), proto.clarifai.api.RunnerItemOutput.toObject, includeInstance),
69163
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f)
68687
69164
  };
68688
69165
  if (includeInstance) {
68689
69166
  obj.$jspbMessageInstance = msg;
@@ -68726,13 +69203,18 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.deserializeBinaryFromReader = fu
68726
69203
  break;
68727
69204
  case 3:
68728
69205
  var value = /** @type {string} */ (reader.readString());
68729
- msg.setItemId(value);
69206
+ msg.setRunnerItemId(value);
68730
69207
  break;
68731
69208
  case 4:
68732
69209
  var value = new proto.clarifai.api.RunnerItemOutput;
68733
69210
  reader.readMessage(value, proto.clarifai.api.RunnerItemOutput.deserializeBinaryFromReader);
68734
69211
  msg.addRunnerItemOutputs(value);
68735
69212
  break;
69213
+ case 5:
69214
+ var value = new proto_clarifai_api_status_status_pb.Status;
69215
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
69216
+ msg.setStatus(value);
69217
+ break;
68736
69218
  default:
68737
69219
  reader.skipField();
68738
69220
  break;
@@ -68766,7 +69248,7 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.serializeBinaryToWriter = functi
68766
69248
  if (f.length > 0) {
68767
69249
  writer.writeString(2, f);
68768
69250
  }
68769
- f = message.getItemId();
69251
+ f = message.getRunnerItemId();
68770
69252
  if (f.length > 0) {
68771
69253
  writer.writeString(3, f);
68772
69254
  }
@@ -68774,6 +69256,10 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.serializeBinaryToWriter = functi
68774
69256
  if (f.length > 0) {
68775
69257
  writer.writeRepeatedMessage(4, f, proto.clarifai.api.RunnerItemOutput.serializeBinaryToWriter);
68776
69258
  }
69259
+ f = message.getStatus();
69260
+ if (f != null) {
69261
+ writer.writeMessage(5, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
69262
+ }
68777
69263
  };
68778
69264
  /**
68779
69265
  * optional UserAppIDSet user_app_id = 1;
@@ -68818,17 +69304,17 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRunnerId = function
68818
69304
  return jspb.Message.setProto3StringField(this, 2, value);
68819
69305
  };
68820
69306
  /**
68821
- * optional string item_id = 3;
69307
+ * optional string runner_item_id = 3;
68822
69308
  * @return {string}
68823
69309
  */
68824
- proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getItemId = function () {
69310
+ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getRunnerItemId = function () {
68825
69311
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
68826
69312
  };
68827
69313
  /**
68828
69314
  * @param {string} value
68829
69315
  * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this
68830
69316
  */
68831
- proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setItemId = function (value) {
69317
+ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRunnerItemId = function (value) {
68832
69318
  return jspb.Message.setProto3StringField(this, 3, value);
68833
69319
  };
68834
69320
  /**
@@ -68860,6 +69346,34 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.addRunnerItemOutputs =
68860
69346
  proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.clearRunnerItemOutputsList = function () {
68861
69347
  return this.setRunnerItemOutputsList([]);
68862
69348
  };
69349
+ /**
69350
+ * optional status.Status status = 5;
69351
+ * @return {?proto.clarifai.api.status.Status}
69352
+ */
69353
+ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getStatus = function () {
69354
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 5));
69355
+ };
69356
+ /**
69357
+ * @param {?proto.clarifai.api.status.Status|undefined} value
69358
+ * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this
69359
+ */
69360
+ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setStatus = function (value) {
69361
+ return jspb.Message.setWrapperField(this, 5, value);
69362
+ };
69363
+ /**
69364
+ * Clears the message field making it undefined.
69365
+ * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this
69366
+ */
69367
+ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.clearStatus = function () {
69368
+ return this.setStatus(undefined);
69369
+ };
69370
+ /**
69371
+ * Returns whether this field is set.
69372
+ * @return {boolean}
69373
+ */
69374
+ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.hasStatus = function () {
69375
+ return jspb.Message.getField(this, 5) != null;
69376
+ };
68863
69377
  /**
68864
69378
  * List of repeated fields within this message type.
68865
69379
  * @private {!Array<number>}
@@ -68894,7 +69408,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
68894
69408
  proto.clarifai.api.MultiRunnerItemResponse.toObject = function (includeInstance, msg) {
68895
69409
  var f, obj = {
68896
69410
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
68897
- itemsList: jspb.Message.toObjectList(msg.getItemsList(), proto.clarifai.api.RunnerItem.toObject, includeInstance)
69411
+ runnerItemsList: jspb.Message.toObjectList(msg.getRunnerItemsList(), proto.clarifai.api.RunnerItem.toObject, includeInstance)
68898
69412
  };
68899
69413
  if (includeInstance) {
68900
69414
  obj.$jspbMessageInstance = msg;
@@ -68934,7 +69448,7 @@ proto.clarifai.api.MultiRunnerItemResponse.deserializeBinaryFromReader = functio
68934
69448
  case 2:
68935
69449
  var value = new proto.clarifai.api.RunnerItem;
68936
69450
  reader.readMessage(value, proto.clarifai.api.RunnerItem.deserializeBinaryFromReader);
68937
- msg.addItems(value);
69451
+ msg.addRunnerItems(value);
68938
69452
  break;
68939
69453
  default:
68940
69454
  reader.skipField();
@@ -68965,7 +69479,7 @@ proto.clarifai.api.MultiRunnerItemResponse.serializeBinaryToWriter = function (m
68965
69479
  if (f != null) {
68966
69480
  writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
68967
69481
  }
68968
- f = message.getItemsList();
69482
+ f = message.getRunnerItemsList();
68969
69483
  if (f.length > 0) {
68970
69484
  writer.writeRepeatedMessage(2, f, proto.clarifai.api.RunnerItem.serializeBinaryToWriter);
68971
69485
  }
@@ -68999,17 +69513,17 @@ proto.clarifai.api.MultiRunnerItemResponse.prototype.hasStatus = function () {
68999
69513
  return jspb.Message.getField(this, 1) != null;
69000
69514
  };
69001
69515
  /**
69002
- * repeated RunnerItem items = 2;
69516
+ * repeated RunnerItem runner_items = 2;
69003
69517
  * @return {!Array<!proto.clarifai.api.RunnerItem>}
69004
69518
  */
69005
- proto.clarifai.api.MultiRunnerItemResponse.prototype.getItemsList = function () {
69519
+ proto.clarifai.api.MultiRunnerItemResponse.prototype.getRunnerItemsList = function () {
69006
69520
  return /** @type{!Array<!proto.clarifai.api.RunnerItem>} */ (jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.RunnerItem, 2));
69007
69521
  };
69008
69522
  /**
69009
69523
  * @param {!Array<!proto.clarifai.api.RunnerItem>} value
69010
69524
  * @return {!proto.clarifai.api.MultiRunnerItemResponse} returns this
69011
69525
  */
69012
- proto.clarifai.api.MultiRunnerItemResponse.prototype.setItemsList = function (value) {
69526
+ proto.clarifai.api.MultiRunnerItemResponse.prototype.setRunnerItemsList = function (value) {
69013
69527
  return jspb.Message.setRepeatedWrapperField(this, 2, value);
69014
69528
  };
69015
69529
  /**
@@ -69017,15 +69531,37 @@ proto.clarifai.api.MultiRunnerItemResponse.prototype.setItemsList = function (va
69017
69531
  * @param {number=} opt_index
69018
69532
  * @return {!proto.clarifai.api.RunnerItem}
69019
69533
  */
69020
- proto.clarifai.api.MultiRunnerItemResponse.prototype.addItems = function (opt_value, opt_index) {
69534
+ proto.clarifai.api.MultiRunnerItemResponse.prototype.addRunnerItems = function (opt_value, opt_index) {
69021
69535
  return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.RunnerItem, opt_index);
69022
69536
  };
69023
69537
  /**
69024
69538
  * Clears the list making it empty but non-null.
69025
69539
  * @return {!proto.clarifai.api.MultiRunnerItemResponse} returns this
69026
69540
  */
69027
- proto.clarifai.api.MultiRunnerItemResponse.prototype.clearItemsList = function () {
69028
- return this.setItemsList([]);
69541
+ proto.clarifai.api.MultiRunnerItemResponse.prototype.clearRunnerItemsList = function () {
69542
+ return this.setRunnerItemsList([]);
69543
+ };
69544
+ /**
69545
+ * Oneof group definitions for this message. Each group defines the field
69546
+ * numbers belonging to that group. When of these fields' value is set, all
69547
+ * other fields in the group are cleared. During deserialization, if multiple
69548
+ * fields are encountered for a group, only the last value seen will be kept.
69549
+ * @private {!Array<!Array<number>>}
69550
+ * @const
69551
+ */
69552
+ proto.clarifai.api.RunnerItem.oneofGroups_ = [[4]];
69553
+ /**
69554
+ * @enum {number}
69555
+ */
69556
+ proto.clarifai.api.RunnerItem.RequestCase = {
69557
+ REQUEST_NOT_SET: 0,
69558
+ POST_MODEL_OUTPUTS_REQUEST: 4
69559
+ };
69560
+ /**
69561
+ * @return {proto.clarifai.api.RunnerItem.RequestCase}
69562
+ */
69563
+ proto.clarifai.api.RunnerItem.prototype.getRequestCase = function () {
69564
+ return /** @type {proto.clarifai.api.RunnerItem.RequestCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.RunnerItem.oneofGroups_[0]));
69029
69565
  };
69030
69566
  if (jspb.Message.GENERATE_TO_OBJECT) {
69031
69567
  /**
@@ -69056,6 +69592,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
69056
69592
  var f, obj = {
69057
69593
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
69058
69594
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
69595
+ processingInfo: (f = msg.getProcessingInfo()) && proto_clarifai_api_resources_pb.ProcessingInfo.toObject(includeInstance, f),
69059
69596
  postModelOutputsRequest: (f = msg.getPostModelOutputsRequest()) && proto.clarifai.api.PostModelOutputsRequest.toObject(includeInstance, f)
69060
69597
  };
69061
69598
  if (includeInstance) {
@@ -69097,6 +69634,11 @@ proto.clarifai.api.RunnerItem.deserializeBinaryFromReader = function (msg, reade
69097
69634
  msg.setDescription(value);
69098
69635
  break;
69099
69636
  case 3:
69637
+ var value = new proto_clarifai_api_resources_pb.ProcessingInfo;
69638
+ reader.readMessage(value, proto_clarifai_api_resources_pb.ProcessingInfo.deserializeBinaryFromReader);
69639
+ msg.setProcessingInfo(value);
69640
+ break;
69641
+ case 4:
69100
69642
  var value = new proto.clarifai.api.PostModelOutputsRequest;
69101
69643
  reader.readMessage(value, proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader);
69102
69644
  msg.setPostModelOutputsRequest(value);
@@ -69134,9 +69676,13 @@ proto.clarifai.api.RunnerItem.serializeBinaryToWriter = function (message, write
69134
69676
  if (f.length > 0) {
69135
69677
  writer.writeString(2, f);
69136
69678
  }
69679
+ f = message.getProcessingInfo();
69680
+ if (f != null) {
69681
+ writer.writeMessage(3, f, proto_clarifai_api_resources_pb.ProcessingInfo.serializeBinaryToWriter);
69682
+ }
69137
69683
  f = message.getPostModelOutputsRequest();
69138
69684
  if (f != null) {
69139
- writer.writeMessage(3, f, proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter);
69685
+ writer.writeMessage(4, f, proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter);
69140
69686
  }
69141
69687
  };
69142
69688
  /**
@@ -69168,18 +69714,46 @@ proto.clarifai.api.RunnerItem.prototype.setDescription = function (value) {
69168
69714
  return jspb.Message.setProto3StringField(this, 2, value);
69169
69715
  };
69170
69716
  /**
69171
- * optional PostModelOutputsRequest post_model_outputs_request = 3;
69717
+ * optional ProcessingInfo processing_info = 3;
69718
+ * @return {?proto.clarifai.api.ProcessingInfo}
69719
+ */
69720
+ proto.clarifai.api.RunnerItem.prototype.getProcessingInfo = function () {
69721
+ return /** @type{?proto.clarifai.api.ProcessingInfo} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ProcessingInfo, 3));
69722
+ };
69723
+ /**
69724
+ * @param {?proto.clarifai.api.ProcessingInfo|undefined} value
69725
+ * @return {!proto.clarifai.api.RunnerItem} returns this
69726
+ */
69727
+ proto.clarifai.api.RunnerItem.prototype.setProcessingInfo = function (value) {
69728
+ return jspb.Message.setWrapperField(this, 3, value);
69729
+ };
69730
+ /**
69731
+ * Clears the message field making it undefined.
69732
+ * @return {!proto.clarifai.api.RunnerItem} returns this
69733
+ */
69734
+ proto.clarifai.api.RunnerItem.prototype.clearProcessingInfo = function () {
69735
+ return this.setProcessingInfo(undefined);
69736
+ };
69737
+ /**
69738
+ * Returns whether this field is set.
69739
+ * @return {boolean}
69740
+ */
69741
+ proto.clarifai.api.RunnerItem.prototype.hasProcessingInfo = function () {
69742
+ return jspb.Message.getField(this, 3) != null;
69743
+ };
69744
+ /**
69745
+ * optional PostModelOutputsRequest post_model_outputs_request = 4;
69172
69746
  * @return {?proto.clarifai.api.PostModelOutputsRequest}
69173
69747
  */
69174
69748
  proto.clarifai.api.RunnerItem.prototype.getPostModelOutputsRequest = function () {
69175
- return /** @type{?proto.clarifai.api.PostModelOutputsRequest} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.PostModelOutputsRequest, 3));
69749
+ return /** @type{?proto.clarifai.api.PostModelOutputsRequest} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.PostModelOutputsRequest, 4));
69176
69750
  };
69177
69751
  /**
69178
69752
  * @param {?proto.clarifai.api.PostModelOutputsRequest|undefined} value
69179
69753
  * @return {!proto.clarifai.api.RunnerItem} returns this
69180
69754
  */
69181
69755
  proto.clarifai.api.RunnerItem.prototype.setPostModelOutputsRequest = function (value) {
69182
- return jspb.Message.setWrapperField(this, 3, value);
69756
+ return jspb.Message.setOneofWrapperField(this, 4, proto.clarifai.api.RunnerItem.oneofGroups_[0], value);
69183
69757
  };
69184
69758
  /**
69185
69759
  * Clears the message field making it undefined.
@@ -69193,7 +69767,29 @@ proto.clarifai.api.RunnerItem.prototype.clearPostModelOutputsRequest = function
69193
69767
  * @return {boolean}
69194
69768
  */
69195
69769
  proto.clarifai.api.RunnerItem.prototype.hasPostModelOutputsRequest = function () {
69196
- return jspb.Message.getField(this, 3) != null;
69770
+ return jspb.Message.getField(this, 4) != null;
69771
+ };
69772
+ /**
69773
+ * Oneof group definitions for this message. Each group defines the field
69774
+ * numbers belonging to that group. When of these fields' value is set, all
69775
+ * other fields in the group are cleared. During deserialization, if multiple
69776
+ * fields are encountered for a group, only the last value seen will be kept.
69777
+ * @private {!Array<!Array<number>>}
69778
+ * @const
69779
+ */
69780
+ proto.clarifai.api.RunnerItemOutput.oneofGroups_ = [[1]];
69781
+ /**
69782
+ * @enum {number}
69783
+ */
69784
+ proto.clarifai.api.RunnerItemOutput.ResponseCase = {
69785
+ RESPONSE_NOT_SET: 0,
69786
+ MULTI_OUTPUT_RESPONSE: 1
69787
+ };
69788
+ /**
69789
+ * @return {proto.clarifai.api.RunnerItemOutput.ResponseCase}
69790
+ */
69791
+ proto.clarifai.api.RunnerItemOutput.prototype.getResponseCase = function () {
69792
+ return /** @type {proto.clarifai.api.RunnerItemOutput.ResponseCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.RunnerItemOutput.oneofGroups_[0]));
69197
69793
  };
69198
69794
  if (jspb.Message.GENERATE_TO_OBJECT) {
69199
69795
  /**
@@ -69301,7 +69897,7 @@ proto.clarifai.api.RunnerItemOutput.prototype.getMultiOutputResponse = function
69301
69897
  * @return {!proto.clarifai.api.RunnerItemOutput} returns this
69302
69898
  */
69303
69899
  proto.clarifai.api.RunnerItemOutput.prototype.setMultiOutputResponse = function (value) {
69304
- return jspb.Message.setWrapperField(this, 1, value);
69900
+ return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.RunnerItemOutput.oneofGroups_[0], value);
69305
69901
  };
69306
69902
  /**
69307
69903
  * Clears the message field making it undefined.
@@ -69884,6 +70480,7 @@ proto.clarifai.api.PutTaskAssignmentsRequestAction = {
69884
70480
  LABEL_SUBMIT: 2,
69885
70481
  REVIEW_START: 10,
69886
70482
  REVIEW_APPROVE: 11,
69887
- REVIEW_REQUEST_CHANGES: 12
70483
+ REVIEW_REQUEST_CHANGES: 12,
70484
+ REVIEW_REJECT: 13
69888
70485
  };
69889
70486
  goog.object.extend(exports, proto.clarifai.api);