clarifai-web-grpc 10.5.2 → 10.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -258,6 +258,7 @@ goog.exportSymbol('proto.clarifai.api.PatchAnnotationsSearchesRequest', null, gl
258
258
  goog.exportSymbol('proto.clarifai.api.PatchAnnotationsStatusRequest', null, global);
259
259
  goog.exportSymbol('proto.clarifai.api.PatchAnnotationsStatusResponse', null, global);
260
260
  goog.exportSymbol('proto.clarifai.api.PatchAppRequest', null, global);
261
+ goog.exportSymbol('proto.clarifai.api.PatchAppsDetailsRequest', null, global);
261
262
  goog.exportSymbol('proto.clarifai.api.PatchAppsIdsRequest', null, global);
262
263
  goog.exportSymbol('proto.clarifai.api.PatchAppsRequest', null, global);
263
264
  goog.exportSymbol('proto.clarifai.api.PatchCollaboratorsRequest', null, global);
@@ -357,6 +358,7 @@ goog.exportSymbol('proto.clarifai.api.PutUploadContentPartsRequest', null, globa
357
358
  goog.exportSymbol('proto.clarifai.api.ReviewApproveConfig', null, global);
358
359
  goog.exportSymbol('proto.clarifai.api.ReviewRejectConfig', null, global);
359
360
  goog.exportSymbol('proto.clarifai.api.ReviewRequestChangesConfig', null, global);
361
+ goog.exportSymbol('proto.clarifai.api.ReviewStartConfig', null, global);
360
362
  goog.exportSymbol('proto.clarifai.api.RunnerItem', null, global);
361
363
  goog.exportSymbol('proto.clarifai.api.RunnerItem.RequestCase', null, global);
362
364
  goog.exportSymbol('proto.clarifai.api.RunnerItemOutput', null, global);
@@ -782,6 +784,27 @@ if (goog.DEBUG && !COMPILED) {
782
784
  */
783
785
  proto.clarifai.api.PatchAppsRequest.displayName = 'proto.clarifai.api.PatchAppsRequest';
784
786
  }
787
+ /**
788
+ * Generated by JsPbCodeGenerator.
789
+ * @param {Array=} opt_data Optional initial data array, typically from a
790
+ * server response, or constructed directly in Javascript. The array is used
791
+ * in place and becomes part of the constructed object. It is not cloned.
792
+ * If no data is provided, the constructed object will be empty, but still
793
+ * valid.
794
+ * @extends {jspb.Message}
795
+ * @constructor
796
+ */
797
+ proto.clarifai.api.PatchAppsDetailsRequest = function (opt_data) {
798
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchAppsDetailsRequest.repeatedFields_, null);
799
+ };
800
+ goog.inherits(proto.clarifai.api.PatchAppsDetailsRequest, jspb.Message);
801
+ if (goog.DEBUG && !COMPILED) {
802
+ /**
803
+ * @public
804
+ * @override
805
+ */
806
+ proto.clarifai.api.PatchAppsDetailsRequest.displayName = 'proto.clarifai.api.PatchAppsDetailsRequest';
807
+ }
785
808
  /**
786
809
  * Generated by JsPbCodeGenerator.
787
810
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6599,6 +6622,27 @@ if (goog.DEBUG && !COMPILED) {
6599
6622
  */
6600
6623
  proto.clarifai.api.LabelSubmitConfig.displayName = 'proto.clarifai.api.LabelSubmitConfig';
6601
6624
  }
6625
+ /**
6626
+ * Generated by JsPbCodeGenerator.
6627
+ * @param {Array=} opt_data Optional initial data array, typically from a
6628
+ * server response, or constructed directly in Javascript. The array is used
6629
+ * in place and becomes part of the constructed object. It is not cloned.
6630
+ * If no data is provided, the constructed object will be empty, but still
6631
+ * valid.
6632
+ * @extends {jspb.Message}
6633
+ * @constructor
6634
+ */
6635
+ proto.clarifai.api.ReviewStartConfig = function (opt_data) {
6636
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ReviewStartConfig.repeatedFields_, null);
6637
+ };
6638
+ goog.inherits(proto.clarifai.api.ReviewStartConfig, jspb.Message);
6639
+ if (goog.DEBUG && !COMPILED) {
6640
+ /**
6641
+ * @public
6642
+ * @override
6643
+ */
6644
+ proto.clarifai.api.ReviewStartConfig.displayName = 'proto.clarifai.api.ReviewStartConfig';
6645
+ }
6602
6646
  /**
6603
6647
  * Generated by JsPbCodeGenerator.
6604
6648
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -11786,6 +11830,196 @@ proto.clarifai.api.PatchAppsRequest.prototype.getReindex = function () {
11786
11830
  proto.clarifai.api.PatchAppsRequest.prototype.setReindex = function (value) {
11787
11831
  return jspb.Message.setProto3BooleanField(this, 5, value);
11788
11832
  };
11833
+ /**
11834
+ * List of repeated fields within this message type.
11835
+ * @private {!Array<number>}
11836
+ * @const
11837
+ */
11838
+ proto.clarifai.api.PatchAppsDetailsRequest.repeatedFields_ = [2];
11839
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11840
+ /**
11841
+ * Creates an object representation of this proto.
11842
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11843
+ * Optional fields that are not set will be set to undefined.
11844
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11845
+ * For the list of reserved names please see:
11846
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11847
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11848
+ * JSPB instance for transitional soy proto support:
11849
+ * http://goto/soy-param-migration
11850
+ * @return {!Object}
11851
+ */
11852
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.toObject = function (opt_includeInstance) {
11853
+ return proto.clarifai.api.PatchAppsDetailsRequest.toObject(opt_includeInstance, this);
11854
+ };
11855
+ /**
11856
+ * Static version of the {@see toObject} method.
11857
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11858
+ * the JSPB instance for transitional soy proto support:
11859
+ * http://goto/soy-param-migration
11860
+ * @param {!proto.clarifai.api.PatchAppsDetailsRequest} msg The msg instance to transform.
11861
+ * @return {!Object}
11862
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11863
+ */
11864
+ proto.clarifai.api.PatchAppsDetailsRequest.toObject = function (includeInstance, msg) {
11865
+ var f, obj = {
11866
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
11867
+ appsList: jspb.Message.toObjectList(msg.getAppsList(), proto_clarifai_api_resources_pb.App.toObject, includeInstance),
11868
+ action: jspb.Message.getFieldWithDefault(msg, 3, "")
11869
+ };
11870
+ if (includeInstance) {
11871
+ obj.$jspbMessageInstance = msg;
11872
+ }
11873
+ return obj;
11874
+ };
11875
+ }
11876
+ /**
11877
+ * Deserializes binary data (in protobuf wire format).
11878
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11879
+ * @return {!proto.clarifai.api.PatchAppsDetailsRequest}
11880
+ */
11881
+ proto.clarifai.api.PatchAppsDetailsRequest.deserializeBinary = function (bytes) {
11882
+ var reader = new jspb.BinaryReader(bytes);
11883
+ var msg = new proto.clarifai.api.PatchAppsDetailsRequest;
11884
+ return proto.clarifai.api.PatchAppsDetailsRequest.deserializeBinaryFromReader(msg, reader);
11885
+ };
11886
+ /**
11887
+ * Deserializes binary data (in protobuf wire format) from the
11888
+ * given reader into the given message object.
11889
+ * @param {!proto.clarifai.api.PatchAppsDetailsRequest} msg The message object to deserialize into.
11890
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11891
+ * @return {!proto.clarifai.api.PatchAppsDetailsRequest}
11892
+ */
11893
+ proto.clarifai.api.PatchAppsDetailsRequest.deserializeBinaryFromReader = function (msg, reader) {
11894
+ while (reader.nextField()) {
11895
+ if (reader.isEndGroup()) {
11896
+ break;
11897
+ }
11898
+ var field = reader.getFieldNumber();
11899
+ switch (field) {
11900
+ case 1:
11901
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
11902
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
11903
+ msg.setUserAppId(value);
11904
+ break;
11905
+ case 2:
11906
+ var value = new proto_clarifai_api_resources_pb.App;
11907
+ reader.readMessage(value, proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader);
11908
+ msg.addApps(value);
11909
+ break;
11910
+ case 3:
11911
+ var value = /** @type {string} */ (reader.readString());
11912
+ msg.setAction(value);
11913
+ break;
11914
+ default:
11915
+ reader.skipField();
11916
+ break;
11917
+ }
11918
+ }
11919
+ return msg;
11920
+ };
11921
+ /**
11922
+ * Serializes the message to binary data (in protobuf wire format).
11923
+ * @return {!Uint8Array}
11924
+ */
11925
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.serializeBinary = function () {
11926
+ var writer = new jspb.BinaryWriter();
11927
+ proto.clarifai.api.PatchAppsDetailsRequest.serializeBinaryToWriter(this, writer);
11928
+ return writer.getResultBuffer();
11929
+ };
11930
+ /**
11931
+ * Serializes the given message to binary data (in protobuf wire
11932
+ * format), writing to the given BinaryWriter.
11933
+ * @param {!proto.clarifai.api.PatchAppsDetailsRequest} message
11934
+ * @param {!jspb.BinaryWriter} writer
11935
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11936
+ */
11937
+ proto.clarifai.api.PatchAppsDetailsRequest.serializeBinaryToWriter = function (message, writer) {
11938
+ var f = undefined;
11939
+ f = message.getUserAppId();
11940
+ if (f != null) {
11941
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
11942
+ }
11943
+ f = message.getAppsList();
11944
+ if (f.length > 0) {
11945
+ writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.App.serializeBinaryToWriter);
11946
+ }
11947
+ f = message.getAction();
11948
+ if (f.length > 0) {
11949
+ writer.writeString(3, f);
11950
+ }
11951
+ };
11952
+ /**
11953
+ * optional UserAppIDSet user_app_id = 1;
11954
+ * @return {?proto.clarifai.api.UserAppIDSet}
11955
+ */
11956
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.getUserAppId = function () {
11957
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
11958
+ };
11959
+ /**
11960
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11961
+ * @return {!proto.clarifai.api.PatchAppsDetailsRequest} returns this
11962
+ */
11963
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.setUserAppId = function (value) {
11964
+ return jspb.Message.setWrapperField(this, 1, value);
11965
+ };
11966
+ /**
11967
+ * Clears the message field making it undefined.
11968
+ * @return {!proto.clarifai.api.PatchAppsDetailsRequest} returns this
11969
+ */
11970
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.clearUserAppId = function () {
11971
+ return this.setUserAppId(undefined);
11972
+ };
11973
+ /**
11974
+ * Returns whether this field is set.
11975
+ * @return {boolean}
11976
+ */
11977
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.hasUserAppId = function () {
11978
+ return jspb.Message.getField(this, 1) != null;
11979
+ };
11980
+ /**
11981
+ * repeated App apps = 2;
11982
+ * @return {!Array<!proto.clarifai.api.App>}
11983
+ */
11984
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.getAppsList = function () {
11985
+ return /** @type{!Array<!proto.clarifai.api.App>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.App, 2));
11986
+ };
11987
+ /**
11988
+ * @param {!Array<!proto.clarifai.api.App>} value
11989
+ * @return {!proto.clarifai.api.PatchAppsDetailsRequest} returns this
11990
+ */
11991
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.setAppsList = function (value) {
11992
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
11993
+ };
11994
+ /**
11995
+ * @param {!proto.clarifai.api.App=} opt_value
11996
+ * @param {number=} opt_index
11997
+ * @return {!proto.clarifai.api.App}
11998
+ */
11999
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.addApps = function (opt_value, opt_index) {
12000
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.App, opt_index);
12001
+ };
12002
+ /**
12003
+ * Clears the list making it empty but non-null.
12004
+ * @return {!proto.clarifai.api.PatchAppsDetailsRequest} returns this
12005
+ */
12006
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.clearAppsList = function () {
12007
+ return this.setAppsList([]);
12008
+ };
12009
+ /**
12010
+ * optional string action = 3;
12011
+ * @return {string}
12012
+ */
12013
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.getAction = function () {
12014
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12015
+ };
12016
+ /**
12017
+ * @param {string} value
12018
+ * @return {!proto.clarifai.api.PatchAppsDetailsRequest} returns this
12019
+ */
12020
+ proto.clarifai.api.PatchAppsDetailsRequest.prototype.setAction = function (value) {
12021
+ return jspb.Message.setProto3StringField(this, 3, value);
12022
+ };
11789
12023
  if (jspb.Message.GENERATE_TO_OBJECT) {
11790
12024
  /**
11791
12025
  * Creates an object representation of this proto.
@@ -63797,13 +64031,14 @@ proto.clarifai.api.MultiBulkOperationsResponse.prototype.clearBulkOperationList
63797
64031
  * @private {!Array<!Array<number>>}
63798
64032
  * @const
63799
64033
  */
63800
- proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_ = [[6, 7, 8, 9]];
64034
+ proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_ = [[6, 10, 7, 8, 9]];
63801
64035
  /**
63802
64036
  * @enum {number}
63803
64037
  */
63804
64038
  proto.clarifai.api.PutTaskAssignmentsRequest.ActionConfigCase = {
63805
64039
  ACTION_CONFIG_NOT_SET: 0,
63806
64040
  LABEL_SUBMIT_CONFIG: 6,
64041
+ REVIEW_START_CONFIG: 10,
63807
64042
  REVIEW_APPROVE_CONFIG: 7,
63808
64043
  REVIEW_REQUEST_CHANGES_CONFIG: 8,
63809
64044
  REVIEW_REJECT_CONFIG: 9
@@ -63846,6 +64081,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
63846
64081
  inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
63847
64082
  action: jspb.Message.getFieldWithDefault(msg, 4, 0),
63848
64083
  labelSubmitConfig: (f = msg.getLabelSubmitConfig()) && proto.clarifai.api.LabelSubmitConfig.toObject(includeInstance, f),
64084
+ reviewStartConfig: (f = msg.getReviewStartConfig()) && proto.clarifai.api.ReviewStartConfig.toObject(includeInstance, f),
63849
64085
  reviewApproveConfig: (f = msg.getReviewApproveConfig()) && proto.clarifai.api.ReviewApproveConfig.toObject(includeInstance, f),
63850
64086
  reviewRequestChangesConfig: (f = msg.getReviewRequestChangesConfig()) && proto.clarifai.api.ReviewRequestChangesConfig.toObject(includeInstance, f),
63851
64087
  reviewRejectConfig: (f = msg.getReviewRejectConfig()) && proto.clarifai.api.ReviewRejectConfig.toObject(includeInstance, f)
@@ -63902,6 +64138,11 @@ proto.clarifai.api.PutTaskAssignmentsRequest.deserializeBinaryFromReader = funct
63902
64138
  reader.readMessage(value, proto.clarifai.api.LabelSubmitConfig.deserializeBinaryFromReader);
63903
64139
  msg.setLabelSubmitConfig(value);
63904
64140
  break;
64141
+ case 10:
64142
+ var value = new proto.clarifai.api.ReviewStartConfig;
64143
+ reader.readMessage(value, proto.clarifai.api.ReviewStartConfig.deserializeBinaryFromReader);
64144
+ msg.setReviewStartConfig(value);
64145
+ break;
63905
64146
  case 7:
63906
64147
  var value = new proto.clarifai.api.ReviewApproveConfig;
63907
64148
  reader.readMessage(value, proto.clarifai.api.ReviewApproveConfig.deserializeBinaryFromReader);
@@ -63962,6 +64203,10 @@ proto.clarifai.api.PutTaskAssignmentsRequest.serializeBinaryToWriter = function
63962
64203
  if (f != null) {
63963
64204
  writer.writeMessage(6, f, proto.clarifai.api.LabelSubmitConfig.serializeBinaryToWriter);
63964
64205
  }
64206
+ f = message.getReviewStartConfig();
64207
+ if (f != null) {
64208
+ writer.writeMessage(10, f, proto.clarifai.api.ReviewStartConfig.serializeBinaryToWriter);
64209
+ }
63965
64210
  f = message.getReviewApproveConfig();
63966
64211
  if (f != null) {
63967
64212
  writer.writeMessage(7, f, proto.clarifai.api.ReviewApproveConfig.serializeBinaryToWriter);
@@ -64073,6 +64318,34 @@ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearLabelSubmitConfig =
64073
64318
  proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasLabelSubmitConfig = function () {
64074
64319
  return jspb.Message.getField(this, 6) != null;
64075
64320
  };
64321
+ /**
64322
+ * optional ReviewStartConfig review_start_config = 10;
64323
+ * @return {?proto.clarifai.api.ReviewStartConfig}
64324
+ */
64325
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getReviewStartConfig = function () {
64326
+ return /** @type{?proto.clarifai.api.ReviewStartConfig} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ReviewStartConfig, 10));
64327
+ };
64328
+ /**
64329
+ * @param {?proto.clarifai.api.ReviewStartConfig|undefined} value
64330
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
64331
+ */
64332
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setReviewStartConfig = function (value) {
64333
+ return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.PutTaskAssignmentsRequest.oneofGroups_[0], value);
64334
+ };
64335
+ /**
64336
+ * Clears the message field making it undefined.
64337
+ * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this
64338
+ */
64339
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearReviewStartConfig = function () {
64340
+ return this.setReviewStartConfig(undefined);
64341
+ };
64342
+ /**
64343
+ * Returns whether this field is set.
64344
+ * @return {boolean}
64345
+ */
64346
+ proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasReviewStartConfig = function () {
64347
+ return jspb.Message.getField(this, 10) != null;
64348
+ };
64076
64349
  /**
64077
64350
  * optional ReviewApproveConfig review_approve_config = 7;
64078
64351
  * @return {?proto.clarifai.api.ReviewApproveConfig}
@@ -64286,6 +64559,135 @@ proto.clarifai.api.LabelSubmitConfig.prototype.addTaskAssignments = function (op
64286
64559
  proto.clarifai.api.LabelSubmitConfig.prototype.clearTaskAssignmentsList = function () {
64287
64560
  return this.setTaskAssignmentsList([]);
64288
64561
  };
64562
+ /**
64563
+ * List of repeated fields within this message type.
64564
+ * @private {!Array<number>}
64565
+ * @const
64566
+ */
64567
+ proto.clarifai.api.ReviewStartConfig.repeatedFields_ = [1];
64568
+ if (jspb.Message.GENERATE_TO_OBJECT) {
64569
+ /**
64570
+ * Creates an object representation of this proto.
64571
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64572
+ * Optional fields that are not set will be set to undefined.
64573
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
64574
+ * For the list of reserved names please see:
64575
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
64576
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64577
+ * JSPB instance for transitional soy proto support:
64578
+ * http://goto/soy-param-migration
64579
+ * @return {!Object}
64580
+ */
64581
+ proto.clarifai.api.ReviewStartConfig.prototype.toObject = function (opt_includeInstance) {
64582
+ return proto.clarifai.api.ReviewStartConfig.toObject(opt_includeInstance, this);
64583
+ };
64584
+ /**
64585
+ * Static version of the {@see toObject} method.
64586
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64587
+ * the JSPB instance for transitional soy proto support:
64588
+ * http://goto/soy-param-migration
64589
+ * @param {!proto.clarifai.api.ReviewStartConfig} msg The msg instance to transform.
64590
+ * @return {!Object}
64591
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64592
+ */
64593
+ proto.clarifai.api.ReviewStartConfig.toObject = function (includeInstance, msg) {
64594
+ var f, obj = {
64595
+ workersList: jspb.Message.toObjectList(msg.getWorkersList(), proto_clarifai_api_resources_pb.Worker.toObject, includeInstance)
64596
+ };
64597
+ if (includeInstance) {
64598
+ obj.$jspbMessageInstance = msg;
64599
+ }
64600
+ return obj;
64601
+ };
64602
+ }
64603
+ /**
64604
+ * Deserializes binary data (in protobuf wire format).
64605
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
64606
+ * @return {!proto.clarifai.api.ReviewStartConfig}
64607
+ */
64608
+ proto.clarifai.api.ReviewStartConfig.deserializeBinary = function (bytes) {
64609
+ var reader = new jspb.BinaryReader(bytes);
64610
+ var msg = new proto.clarifai.api.ReviewStartConfig;
64611
+ return proto.clarifai.api.ReviewStartConfig.deserializeBinaryFromReader(msg, reader);
64612
+ };
64613
+ /**
64614
+ * Deserializes binary data (in protobuf wire format) from the
64615
+ * given reader into the given message object.
64616
+ * @param {!proto.clarifai.api.ReviewStartConfig} msg The message object to deserialize into.
64617
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
64618
+ * @return {!proto.clarifai.api.ReviewStartConfig}
64619
+ */
64620
+ proto.clarifai.api.ReviewStartConfig.deserializeBinaryFromReader = function (msg, reader) {
64621
+ while (reader.nextField()) {
64622
+ if (reader.isEndGroup()) {
64623
+ break;
64624
+ }
64625
+ var field = reader.getFieldNumber();
64626
+ switch (field) {
64627
+ case 1:
64628
+ var value = new proto_clarifai_api_resources_pb.Worker;
64629
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Worker.deserializeBinaryFromReader);
64630
+ msg.addWorkers(value);
64631
+ break;
64632
+ default:
64633
+ reader.skipField();
64634
+ break;
64635
+ }
64636
+ }
64637
+ return msg;
64638
+ };
64639
+ /**
64640
+ * Serializes the message to binary data (in protobuf wire format).
64641
+ * @return {!Uint8Array}
64642
+ */
64643
+ proto.clarifai.api.ReviewStartConfig.prototype.serializeBinary = function () {
64644
+ var writer = new jspb.BinaryWriter();
64645
+ proto.clarifai.api.ReviewStartConfig.serializeBinaryToWriter(this, writer);
64646
+ return writer.getResultBuffer();
64647
+ };
64648
+ /**
64649
+ * Serializes the given message to binary data (in protobuf wire
64650
+ * format), writing to the given BinaryWriter.
64651
+ * @param {!proto.clarifai.api.ReviewStartConfig} message
64652
+ * @param {!jspb.BinaryWriter} writer
64653
+ * @suppress {unusedLocalVariables} f is only used for nested messages
64654
+ */
64655
+ proto.clarifai.api.ReviewStartConfig.serializeBinaryToWriter = function (message, writer) {
64656
+ var f = undefined;
64657
+ f = message.getWorkersList();
64658
+ if (f.length > 0) {
64659
+ writer.writeRepeatedMessage(1, f, proto_clarifai_api_resources_pb.Worker.serializeBinaryToWriter);
64660
+ }
64661
+ };
64662
+ /**
64663
+ * repeated Worker workers = 1;
64664
+ * @return {!Array<!proto.clarifai.api.Worker>}
64665
+ */
64666
+ proto.clarifai.api.ReviewStartConfig.prototype.getWorkersList = function () {
64667
+ return /** @type{!Array<!proto.clarifai.api.Worker>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Worker, 1));
64668
+ };
64669
+ /**
64670
+ * @param {!Array<!proto.clarifai.api.Worker>} value
64671
+ * @return {!proto.clarifai.api.ReviewStartConfig} returns this
64672
+ */
64673
+ proto.clarifai.api.ReviewStartConfig.prototype.setWorkersList = function (value) {
64674
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
64675
+ };
64676
+ /**
64677
+ * @param {!proto.clarifai.api.Worker=} opt_value
64678
+ * @param {number=} opt_index
64679
+ * @return {!proto.clarifai.api.Worker}
64680
+ */
64681
+ proto.clarifai.api.ReviewStartConfig.prototype.addWorkers = function (opt_value, opt_index) {
64682
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.Worker, opt_index);
64683
+ };
64684
+ /**
64685
+ * Clears the list making it empty but non-null.
64686
+ * @return {!proto.clarifai.api.ReviewStartConfig} returns this
64687
+ */
64688
+ proto.clarifai.api.ReviewStartConfig.prototype.clearWorkersList = function () {
64689
+ return this.setWorkersList([]);
64690
+ };
64289
64691
  /**
64290
64692
  * List of repeated fields within this message type.
64291
64693
  * @private {!Array<number>}
@@ -68120,7 +68522,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
68120
68522
  var f, obj = {
68121
68523
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
68122
68524
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 2, ""),
68123
- runnerId: jspb.Message.getFieldWithDefault(msg, 3, "")
68525
+ runnerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
68526
+ computeClusterId: jspb.Message.getFieldWithDefault(msg, 4, "")
68124
68527
  };
68125
68528
  if (includeInstance) {
68126
68529
  obj.$jspbMessageInstance = msg;
@@ -68165,6 +68568,10 @@ proto.clarifai.api.GetRunnerRequest.deserializeBinaryFromReader = function (msg,
68165
68568
  var value = /** @type {string} */ (reader.readString());
68166
68569
  msg.setRunnerId(value);
68167
68570
  break;
68571
+ case 4:
68572
+ var value = /** @type {string} */ (reader.readString());
68573
+ msg.setComputeClusterId(value);
68574
+ break;
68168
68575
  default:
68169
68576
  reader.skipField();
68170
68577
  break;
@@ -68202,6 +68609,10 @@ proto.clarifai.api.GetRunnerRequest.serializeBinaryToWriter = function (message,
68202
68609
  if (f.length > 0) {
68203
68610
  writer.writeString(3, f);
68204
68611
  }
68612
+ f = message.getComputeClusterId();
68613
+ if (f.length > 0) {
68614
+ writer.writeString(4, f);
68615
+ }
68205
68616
  };
68206
68617
  /**
68207
68618
  * optional UserAppIDSet user_app_id = 1;
@@ -68259,6 +68670,20 @@ proto.clarifai.api.GetRunnerRequest.prototype.getRunnerId = function () {
68259
68670
  proto.clarifai.api.GetRunnerRequest.prototype.setRunnerId = function (value) {
68260
68671
  return jspb.Message.setProto3StringField(this, 3, value);
68261
68672
  };
68673
+ /**
68674
+ * optional string compute_cluster_id = 4;
68675
+ * @return {string}
68676
+ */
68677
+ proto.clarifai.api.GetRunnerRequest.prototype.getComputeClusterId = function () {
68678
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
68679
+ };
68680
+ /**
68681
+ * @param {string} value
68682
+ * @return {!proto.clarifai.api.GetRunnerRequest} returns this
68683
+ */
68684
+ proto.clarifai.api.GetRunnerRequest.prototype.setComputeClusterId = function (value) {
68685
+ return jspb.Message.setProto3StringField(this, 4, value);
68686
+ };
68262
68687
  if (jspb.Message.GENERATE_TO_OBJECT) {
68263
68688
  /**
68264
68689
  * Creates an object representation of this proto.
@@ -68289,7 +68714,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
68289
68714
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
68290
68715
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 2, ""),
68291
68716
  page: jspb.Message.getFieldWithDefault(msg, 3, 0),
68292
- perPage: jspb.Message.getFieldWithDefault(msg, 4, 0)
68717
+ perPage: jspb.Message.getFieldWithDefault(msg, 4, 0),
68718
+ computeClusterId: jspb.Message.getFieldWithDefault(msg, 5, "")
68293
68719
  };
68294
68720
  if (includeInstance) {
68295
68721
  obj.$jspbMessageInstance = msg;
@@ -68338,6 +68764,10 @@ proto.clarifai.api.ListRunnersRequest.deserializeBinaryFromReader = function (ms
68338
68764
  var value = /** @type {number} */ (reader.readUint32());
68339
68765
  msg.setPerPage(value);
68340
68766
  break;
68767
+ case 5:
68768
+ var value = /** @type {string} */ (reader.readString());
68769
+ msg.setComputeClusterId(value);
68770
+ break;
68341
68771
  default:
68342
68772
  reader.skipField();
68343
68773
  break;
@@ -68379,6 +68809,10 @@ proto.clarifai.api.ListRunnersRequest.serializeBinaryToWriter = function (messag
68379
68809
  if (f !== 0) {
68380
68810
  writer.writeUint32(4, f);
68381
68811
  }
68812
+ f = message.getComputeClusterId();
68813
+ if (f.length > 0) {
68814
+ writer.writeString(5, f);
68815
+ }
68382
68816
  };
68383
68817
  /**
68384
68818
  * optional UserAppIDSet user_app_id = 1;
@@ -68450,6 +68884,20 @@ proto.clarifai.api.ListRunnersRequest.prototype.getPerPage = function () {
68450
68884
  proto.clarifai.api.ListRunnersRequest.prototype.setPerPage = function (value) {
68451
68885
  return jspb.Message.setProto3IntField(this, 4, value);
68452
68886
  };
68887
+ /**
68888
+ * optional string compute_cluster_id = 5;
68889
+ * @return {string}
68890
+ */
68891
+ proto.clarifai.api.ListRunnersRequest.prototype.getComputeClusterId = function () {
68892
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
68893
+ };
68894
+ /**
68895
+ * @param {string} value
68896
+ * @return {!proto.clarifai.api.ListRunnersRequest} returns this
68897
+ */
68898
+ proto.clarifai.api.ListRunnersRequest.prototype.setComputeClusterId = function (value) {
68899
+ return jspb.Message.setProto3StringField(this, 5, value);
68900
+ };
68453
68901
  /**
68454
68902
  * List of repeated fields within this message type.
68455
68903
  * @private {!Array<number>}
@@ -68485,7 +68933,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
68485
68933
  var f, obj = {
68486
68934
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
68487
68935
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 2, ""),
68488
- runnersList: jspb.Message.toObjectList(msg.getRunnersList(), proto_clarifai_api_resources_pb.Runner.toObject, includeInstance)
68936
+ runnersList: jspb.Message.toObjectList(msg.getRunnersList(), proto_clarifai_api_resources_pb.Runner.toObject, includeInstance),
68937
+ computeClusterId: jspb.Message.getFieldWithDefault(msg, 4, "")
68489
68938
  };
68490
68939
  if (includeInstance) {
68491
68940
  obj.$jspbMessageInstance = msg;
@@ -68531,6 +68980,10 @@ proto.clarifai.api.PostRunnersRequest.deserializeBinaryFromReader = function (ms
68531
68980
  reader.readMessage(value, proto_clarifai_api_resources_pb.Runner.deserializeBinaryFromReader);
68532
68981
  msg.addRunners(value);
68533
68982
  break;
68983
+ case 4:
68984
+ var value = /** @type {string} */ (reader.readString());
68985
+ msg.setComputeClusterId(value);
68986
+ break;
68534
68987
  default:
68535
68988
  reader.skipField();
68536
68989
  break;
@@ -68568,6 +69021,10 @@ proto.clarifai.api.PostRunnersRequest.serializeBinaryToWriter = function (messag
68568
69021
  if (f.length > 0) {
68569
69022
  writer.writeRepeatedMessage(3, f, proto_clarifai_api_resources_pb.Runner.serializeBinaryToWriter);
68570
69023
  }
69024
+ f = message.getComputeClusterId();
69025
+ if (f.length > 0) {
69026
+ writer.writeString(4, f);
69027
+ }
68571
69028
  };
68572
69029
  /**
68573
69030
  * optional UserAppIDSet user_app_id = 1;
@@ -68640,6 +69097,20 @@ proto.clarifai.api.PostRunnersRequest.prototype.addRunners = function (opt_value
68640
69097
  proto.clarifai.api.PostRunnersRequest.prototype.clearRunnersList = function () {
68641
69098
  return this.setRunnersList([]);
68642
69099
  };
69100
+ /**
69101
+ * optional string compute_cluster_id = 4;
69102
+ * @return {string}
69103
+ */
69104
+ proto.clarifai.api.PostRunnersRequest.prototype.getComputeClusterId = function () {
69105
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
69106
+ };
69107
+ /**
69108
+ * @param {string} value
69109
+ * @return {!proto.clarifai.api.PostRunnersRequest} returns this
69110
+ */
69111
+ proto.clarifai.api.PostRunnersRequest.prototype.setComputeClusterId = function (value) {
69112
+ return jspb.Message.setProto3StringField(this, 4, value);
69113
+ };
68643
69114
  /**
68644
69115
  * List of repeated fields within this message type.
68645
69116
  * @private {!Array<number>}
@@ -68675,7 +69146,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
68675
69146
  var f, obj = {
68676
69147
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
68677
69148
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 2, ""),
68678
- idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
69149
+ idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
69150
+ computeClusterId: jspb.Message.getFieldWithDefault(msg, 4, "")
68679
69151
  };
68680
69152
  if (includeInstance) {
68681
69153
  obj.$jspbMessageInstance = msg;
@@ -68720,6 +69192,10 @@ proto.clarifai.api.DeleteRunnersRequest.deserializeBinaryFromReader = function (
68720
69192
  var value = /** @type {string} */ (reader.readString());
68721
69193
  msg.addIds(value);
68722
69194
  break;
69195
+ case 4:
69196
+ var value = /** @type {string} */ (reader.readString());
69197
+ msg.setComputeClusterId(value);
69198
+ break;
68723
69199
  default:
68724
69200
  reader.skipField();
68725
69201
  break;
@@ -68757,6 +69233,10 @@ proto.clarifai.api.DeleteRunnersRequest.serializeBinaryToWriter = function (mess
68757
69233
  if (f.length > 0) {
68758
69234
  writer.writeRepeatedString(3, f);
68759
69235
  }
69236
+ f = message.getComputeClusterId();
69237
+ if (f.length > 0) {
69238
+ writer.writeString(4, f);
69239
+ }
68760
69240
  };
68761
69241
  /**
68762
69242
  * optional UserAppIDSet user_app_id = 1;
@@ -68829,6 +69309,20 @@ proto.clarifai.api.DeleteRunnersRequest.prototype.addIds = function (value, opt_
68829
69309
  proto.clarifai.api.DeleteRunnersRequest.prototype.clearIdsList = function () {
68830
69310
  return this.setIdsList([]);
68831
69311
  };
69312
+ /**
69313
+ * optional string compute_cluster_id = 4;
69314
+ * @return {string}
69315
+ */
69316
+ proto.clarifai.api.DeleteRunnersRequest.prototype.getComputeClusterId = function () {
69317
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
69318
+ };
69319
+ /**
69320
+ * @param {string} value
69321
+ * @return {!proto.clarifai.api.DeleteRunnersRequest} returns this
69322
+ */
69323
+ proto.clarifai.api.DeleteRunnersRequest.prototype.setComputeClusterId = function (value) {
69324
+ return jspb.Message.setProto3StringField(this, 4, value);
69325
+ };
68832
69326
  if (jspb.Message.GENERATE_TO_OBJECT) {
68833
69327
  /**
68834
69328
  * Creates an object representation of this proto.
@@ -69185,7 +69679,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
69185
69679
  var f, obj = {
69186
69680
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
69187
69681
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 2, ""),
69188
- runnerId: jspb.Message.getFieldWithDefault(msg, 3, "")
69682
+ runnerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
69683
+ computeClusterId: jspb.Message.getFieldWithDefault(msg, 4, "")
69189
69684
  };
69190
69685
  if (includeInstance) {
69191
69686
  obj.$jspbMessageInstance = msg;
@@ -69230,6 +69725,10 @@ proto.clarifai.api.ListRunnerItemsRequest.deserializeBinaryFromReader = function
69230
69725
  var value = /** @type {string} */ (reader.readString());
69231
69726
  msg.setRunnerId(value);
69232
69727
  break;
69728
+ case 4:
69729
+ var value = /** @type {string} */ (reader.readString());
69730
+ msg.setComputeClusterId(value);
69731
+ break;
69233
69732
  default:
69234
69733
  reader.skipField();
69235
69734
  break;
@@ -69267,6 +69766,10 @@ proto.clarifai.api.ListRunnerItemsRequest.serializeBinaryToWriter = function (me
69267
69766
  if (f.length > 0) {
69268
69767
  writer.writeString(3, f);
69269
69768
  }
69769
+ f = message.getComputeClusterId();
69770
+ if (f.length > 0) {
69771
+ writer.writeString(4, f);
69772
+ }
69270
69773
  };
69271
69774
  /**
69272
69775
  * optional UserAppIDSet user_app_id = 1;
@@ -69324,6 +69827,20 @@ proto.clarifai.api.ListRunnerItemsRequest.prototype.getRunnerId = function () {
69324
69827
  proto.clarifai.api.ListRunnerItemsRequest.prototype.setRunnerId = function (value) {
69325
69828
  return jspb.Message.setProto3StringField(this, 3, value);
69326
69829
  };
69830
+ /**
69831
+ * optional string compute_cluster_id = 4;
69832
+ * @return {string}
69833
+ */
69834
+ proto.clarifai.api.ListRunnerItemsRequest.prototype.getComputeClusterId = function () {
69835
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
69836
+ };
69837
+ /**
69838
+ * @param {string} value
69839
+ * @return {!proto.clarifai.api.ListRunnerItemsRequest} returns this
69840
+ */
69841
+ proto.clarifai.api.ListRunnerItemsRequest.prototype.setComputeClusterId = function (value) {
69842
+ return jspb.Message.setProto3StringField(this, 4, value);
69843
+ };
69327
69844
  /**
69328
69845
  * List of repeated fields within this message type.
69329
69846
  * @private {!Array<number>}
@@ -69363,7 +69880,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
69363
69880
  runnerItemId: jspb.Message.getFieldWithDefault(msg, 4, ""),
69364
69881
  runnerItemOutputsList: jspb.Message.toObjectList(msg.getRunnerItemOutputsList(), proto.clarifai.api.RunnerItemOutput.toObject, includeInstance),
69365
69882
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
69366
- runnerReplicaId: jspb.Message.getFieldWithDefault(msg, 7, "")
69883
+ runnerReplicaId: jspb.Message.getFieldWithDefault(msg, 7, ""),
69884
+ computeClusterId: jspb.Message.getFieldWithDefault(msg, 8, "")
69367
69885
  };
69368
69886
  if (includeInstance) {
69369
69887
  obj.$jspbMessageInstance = msg;
@@ -69426,6 +69944,10 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.deserializeBinaryFromReader = fu
69426
69944
  var value = /** @type {string} */ (reader.readString());
69427
69945
  msg.setRunnerReplicaId(value);
69428
69946
  break;
69947
+ case 8:
69948
+ var value = /** @type {string} */ (reader.readString());
69949
+ msg.setComputeClusterId(value);
69950
+ break;
69429
69951
  default:
69430
69952
  reader.skipField();
69431
69953
  break;
@@ -69479,6 +70001,10 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.serializeBinaryToWriter = functi
69479
70001
  if (f.length > 0) {
69480
70002
  writer.writeString(7, f);
69481
70003
  }
70004
+ f = message.getComputeClusterId();
70005
+ if (f.length > 0) {
70006
+ writer.writeString(8, f);
70007
+ }
69482
70008
  };
69483
70009
  /**
69484
70010
  * optional UserAppIDSet user_app_id = 1;
@@ -69621,6 +70147,20 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getRunnerReplicaId = f
69621
70147
  proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRunnerReplicaId = function (value) {
69622
70148
  return jspb.Message.setProto3StringField(this, 7, value);
69623
70149
  };
70150
+ /**
70151
+ * optional string compute_cluster_id = 8;
70152
+ * @return {string}
70153
+ */
70154
+ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getComputeClusterId = function () {
70155
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
70156
+ };
70157
+ /**
70158
+ * @param {string} value
70159
+ * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this
70160
+ */
70161
+ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setComputeClusterId = function (value) {
70162
+ return jspb.Message.setProto3StringField(this, 8, value);
70163
+ };
69624
70164
  /**
69625
70165
  * List of repeated fields within this message type.
69626
70166
  * @private {!Array<number>}