clarifai-web-grpc 12.0.2 → 12.0.3

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.
@@ -49,7 +49,7 @@ jobs:
49
49
  env:
50
50
  SLACK_ICON: "https://raw.githubusercontent.com/github/explore/2c7e603b797535e5ad8b4beb575ab3b7354666e1/topics/actions/actions.png"
51
51
  SLACK_USERNAME: "GitHub Alerts"
52
- SLACK_CHANNEL: "#grpc-client-repo-alerts"
52
+ SLACK_CHANNEL: "#human-ops"
53
53
  SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
54
54
  SLACK_COLOR: ${{ job.status }}
55
55
  SLACK_MESSAGE: "Publish failure"
package/VERSION CHANGED
@@ -1 +1 @@
1
- 12.0.2
1
+ 12.0.3
@@ -40,7 +40,6 @@ goog.object.extend(proto, google_protobuf_struct_pb);
40
40
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
41
41
  goog.object.extend(proto, google_protobuf_timestamp_pb);
42
42
  goog.exportSymbol('proto.clarifai.api.AutoAnnotationRequest', null, global);
43
- goog.exportSymbol('proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo', null, global);
44
43
  goog.exportSymbol('proto.clarifai.api.CancelBulkOperationRequest', null, global);
45
44
  goog.exportSymbol('proto.clarifai.api.CancelInputsAddJobRequest', null, global);
46
45
  goog.exportSymbol('proto.clarifai.api.CancelInputsExtractionJobsRequest', null, global);
@@ -7574,27 +7573,6 @@ if (goog.DEBUG && !COMPILED) {
7574
7573
  */
7575
7574
  proto.clarifai.api.AutoAnnotationRequest.displayName = 'proto.clarifai.api.AutoAnnotationRequest';
7576
7575
  }
7577
- /**
7578
- * Generated by JsPbCodeGenerator.
7579
- * @param {Array=} opt_data Optional initial data array, typically from a
7580
- * server response, or constructed directly in Javascript. The array is used
7581
- * in place and becomes part of the constructed object. It is not cloned.
7582
- * If no data is provided, the constructed object will be empty, but still
7583
- * valid.
7584
- * @extends {jspb.Message}
7585
- * @constructor
7586
- */
7587
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo = function (opt_data) {
7588
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7589
- };
7590
- goog.inherits(proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo, jspb.Message);
7591
- if (goog.DEBUG && !COMPILED) {
7592
- /**
7593
- * @public
7594
- * @override
7595
- */
7596
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.displayName = 'proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo';
7597
- }
7598
7576
  /**
7599
7577
  * Generated by JsPbCodeGenerator.
7600
7578
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -75659,7 +75637,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
75659
75637
  proto.clarifai.api.AutoAnnotationRequest.toObject = function (includeInstance, msg) {
75660
75638
  var f, obj = {
75661
75639
  postModelOutputsRequest: (f = msg.getPostModelOutputsRequest()) && proto.clarifai.api.PostModelOutputsRequest.toObject(includeInstance, f),
75662
- postAnnotationsInfo: (f = msg.getPostAnnotationsInfo()) && proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.toObject(includeInstance, f)
75640
+ task: (f = msg.getTask()) && proto_clarifai_api_resources_pb.Task.toObject(includeInstance, f),
75641
+ authorizationValue: jspb.Message.getFieldWithDefault(msg, 3, "")
75663
75642
  };
75664
75643
  if (includeInstance) {
75665
75644
  obj.$jspbMessageInstance = msg;
@@ -75697,9 +75676,13 @@ proto.clarifai.api.AutoAnnotationRequest.deserializeBinaryFromReader = function
75697
75676
  msg.setPostModelOutputsRequest(value);
75698
75677
  break;
75699
75678
  case 2:
75700
- var value = new proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo;
75701
- reader.readMessage(value, proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinaryFromReader);
75702
- msg.setPostAnnotationsInfo(value);
75679
+ var value = new proto_clarifai_api_resources_pb.Task;
75680
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader);
75681
+ msg.setTask(value);
75682
+ break;
75683
+ case 3:
75684
+ var value = /** @type {string} */ (reader.readString());
75685
+ msg.setAuthorizationValue(value);
75703
75686
  break;
75704
75687
  default:
75705
75688
  reader.skipField();
@@ -75730,179 +75713,15 @@ proto.clarifai.api.AutoAnnotationRequest.serializeBinaryToWriter = function (mes
75730
75713
  if (f != null) {
75731
75714
  writer.writeMessage(1, f, proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter);
75732
75715
  }
75733
- f = message.getPostAnnotationsInfo();
75734
- if (f != null) {
75735
- writer.writeMessage(2, f, proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.serializeBinaryToWriter);
75736
- }
75737
- };
75738
- if (jspb.Message.GENERATE_TO_OBJECT) {
75739
- /**
75740
- * Creates an object representation of this proto.
75741
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
75742
- * Optional fields that are not set will be set to undefined.
75743
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
75744
- * For the list of reserved names please see:
75745
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
75746
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
75747
- * JSPB instance for transitional soy proto support:
75748
- * http://goto/soy-param-migration
75749
- * @return {!Object}
75750
- */
75751
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.toObject = function (opt_includeInstance) {
75752
- return proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.toObject(opt_includeInstance, this);
75753
- };
75754
- /**
75755
- * Static version of the {@see toObject} method.
75756
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
75757
- * the JSPB instance for transitional soy proto support:
75758
- * http://goto/soy-param-migration
75759
- * @param {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} msg The msg instance to transform.
75760
- * @return {!Object}
75761
- * @suppress {unusedLocalVariables} f is only used for nested messages
75762
- */
75763
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.toObject = function (includeInstance, msg) {
75764
- var f, obj = {
75765
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
75766
- authorizationValue: jspb.Message.getFieldWithDefault(msg, 2, ""),
75767
- taskId: jspb.Message.getFieldWithDefault(msg, 3, "")
75768
- };
75769
- if (includeInstance) {
75770
- obj.$jspbMessageInstance = msg;
75771
- }
75772
- return obj;
75773
- };
75774
- }
75775
- /**
75776
- * Deserializes binary data (in protobuf wire format).
75777
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
75778
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo}
75779
- */
75780
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinary = function (bytes) {
75781
- var reader = new jspb.BinaryReader(bytes);
75782
- var msg = new proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo;
75783
- return proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinaryFromReader(msg, reader);
75784
- };
75785
- /**
75786
- * Deserializes binary data (in protobuf wire format) from the
75787
- * given reader into the given message object.
75788
- * @param {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} msg The message object to deserialize into.
75789
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
75790
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo}
75791
- */
75792
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinaryFromReader = function (msg, reader) {
75793
- while (reader.nextField()) {
75794
- if (reader.isEndGroup()) {
75795
- break;
75796
- }
75797
- var field = reader.getFieldNumber();
75798
- switch (field) {
75799
- case 1:
75800
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
75801
- reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
75802
- msg.setUserAppId(value);
75803
- break;
75804
- case 2:
75805
- var value = /** @type {string} */ (reader.readString());
75806
- msg.setAuthorizationValue(value);
75807
- break;
75808
- case 3:
75809
- var value = /** @type {string} */ (reader.readString());
75810
- msg.setTaskId(value);
75811
- break;
75812
- default:
75813
- reader.skipField();
75814
- break;
75815
- }
75816
- }
75817
- return msg;
75818
- };
75819
- /**
75820
- * Serializes the message to binary data (in protobuf wire format).
75821
- * @return {!Uint8Array}
75822
- */
75823
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.serializeBinary = function () {
75824
- var writer = new jspb.BinaryWriter();
75825
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.serializeBinaryToWriter(this, writer);
75826
- return writer.getResultBuffer();
75827
- };
75828
- /**
75829
- * Serializes the given message to binary data (in protobuf wire
75830
- * format), writing to the given BinaryWriter.
75831
- * @param {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} message
75832
- * @param {!jspb.BinaryWriter} writer
75833
- * @suppress {unusedLocalVariables} f is only used for nested messages
75834
- */
75835
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.serializeBinaryToWriter = function (message, writer) {
75836
- var f = undefined;
75837
- f = message.getUserAppId();
75716
+ f = message.getTask();
75838
75717
  if (f != null) {
75839
- writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
75718
+ writer.writeMessage(2, f, proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter);
75840
75719
  }
75841
75720
  f = message.getAuthorizationValue();
75842
- if (f.length > 0) {
75843
- writer.writeString(2, f);
75844
- }
75845
- f = message.getTaskId();
75846
75721
  if (f.length > 0) {
75847
75722
  writer.writeString(3, f);
75848
75723
  }
75849
75724
  };
75850
- /**
75851
- * optional UserAppIDSet user_app_id = 1;
75852
- * @return {?proto.clarifai.api.UserAppIDSet}
75853
- */
75854
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.getUserAppId = function () {
75855
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
75856
- };
75857
- /**
75858
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
75859
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
75860
- */
75861
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.setUserAppId = function (value) {
75862
- return jspb.Message.setWrapperField(this, 1, value);
75863
- };
75864
- /**
75865
- * Clears the message field making it undefined.
75866
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
75867
- */
75868
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.clearUserAppId = function () {
75869
- return this.setUserAppId(undefined);
75870
- };
75871
- /**
75872
- * Returns whether this field is set.
75873
- * @return {boolean}
75874
- */
75875
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.hasUserAppId = function () {
75876
- return jspb.Message.getField(this, 1) != null;
75877
- };
75878
- /**
75879
- * optional string authorization_value = 2;
75880
- * @return {string}
75881
- */
75882
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.getAuthorizationValue = function () {
75883
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
75884
- };
75885
- /**
75886
- * @param {string} value
75887
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
75888
- */
75889
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.setAuthorizationValue = function (value) {
75890
- return jspb.Message.setProto3StringField(this, 2, value);
75891
- };
75892
- /**
75893
- * optional string task_id = 3;
75894
- * @return {string}
75895
- */
75896
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.getTaskId = function () {
75897
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
75898
- };
75899
- /**
75900
- * @param {string} value
75901
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
75902
- */
75903
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.setTaskId = function (value) {
75904
- return jspb.Message.setProto3StringField(this, 3, value);
75905
- };
75906
75725
  /**
75907
75726
  * optional PostModelOutputsRequest post_model_outputs_request = 1;
75908
75727
  * @return {?proto.clarifai.api.PostModelOutputsRequest}
@@ -75932,33 +75751,47 @@ proto.clarifai.api.AutoAnnotationRequest.prototype.hasPostModelOutputsRequest =
75932
75751
  return jspb.Message.getField(this, 1) != null;
75933
75752
  };
75934
75753
  /**
75935
- * optional PostAnnotationsInfo post_annotations_info = 2;
75936
- * @return {?proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo}
75754
+ * optional Task task = 2;
75755
+ * @return {?proto.clarifai.api.Task}
75937
75756
  */
75938
- proto.clarifai.api.AutoAnnotationRequest.prototype.getPostAnnotationsInfo = function () {
75939
- return /** @type{?proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo, 2));
75757
+ proto.clarifai.api.AutoAnnotationRequest.prototype.getTask = function () {
75758
+ return /** @type{?proto.clarifai.api.Task} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Task, 2));
75940
75759
  };
75941
75760
  /**
75942
- * @param {?proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo|undefined} value
75761
+ * @param {?proto.clarifai.api.Task|undefined} value
75943
75762
  * @return {!proto.clarifai.api.AutoAnnotationRequest} returns this
75944
75763
  */
75945
- proto.clarifai.api.AutoAnnotationRequest.prototype.setPostAnnotationsInfo = function (value) {
75764
+ proto.clarifai.api.AutoAnnotationRequest.prototype.setTask = function (value) {
75946
75765
  return jspb.Message.setWrapperField(this, 2, value);
75947
75766
  };
75948
75767
  /**
75949
75768
  * Clears the message field making it undefined.
75950
75769
  * @return {!proto.clarifai.api.AutoAnnotationRequest} returns this
75951
75770
  */
75952
- proto.clarifai.api.AutoAnnotationRequest.prototype.clearPostAnnotationsInfo = function () {
75953
- return this.setPostAnnotationsInfo(undefined);
75771
+ proto.clarifai.api.AutoAnnotationRequest.prototype.clearTask = function () {
75772
+ return this.setTask(undefined);
75954
75773
  };
75955
75774
  /**
75956
75775
  * Returns whether this field is set.
75957
75776
  * @return {boolean}
75958
75777
  */
75959
- proto.clarifai.api.AutoAnnotationRequest.prototype.hasPostAnnotationsInfo = function () {
75778
+ proto.clarifai.api.AutoAnnotationRequest.prototype.hasTask = function () {
75960
75779
  return jspb.Message.getField(this, 2) != null;
75961
75780
  };
75781
+ /**
75782
+ * optional string authorization_value = 3;
75783
+ * @return {string}
75784
+ */
75785
+ proto.clarifai.api.AutoAnnotationRequest.prototype.getAuthorizationValue = function () {
75786
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
75787
+ };
75788
+ /**
75789
+ * @param {string} value
75790
+ * @return {!proto.clarifai.api.AutoAnnotationRequest} returns this
75791
+ */
75792
+ proto.clarifai.api.AutoAnnotationRequest.prototype.setAuthorizationValue = function (value) {
75793
+ return jspb.Message.setProto3StringField(this, 3, value);
75794
+ };
75962
75795
  /**
75963
75796
  * Oneof group definitions for this message. Each group defines the field
75964
75797
  * numbers belonging to that group. When of these fields' value is set, all
@@ -40,7 +40,6 @@ goog.object.extend(proto, google_protobuf_struct_pb);
40
40
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
41
41
  goog.object.extend(proto, google_protobuf_timestamp_pb);
42
42
  goog.exportSymbol('proto.clarifai.api.AutoAnnotationRequest', null, global);
43
- goog.exportSymbol('proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo', null, global);
44
43
  goog.exportSymbol('proto.clarifai.api.CancelBulkOperationRequest', null, global);
45
44
  goog.exportSymbol('proto.clarifai.api.CancelInputsAddJobRequest', null, global);
46
45
  goog.exportSymbol('proto.clarifai.api.CancelInputsExtractionJobsRequest', null, global);
@@ -7574,27 +7573,6 @@ if (goog.DEBUG && !COMPILED) {
7574
7573
  */
7575
7574
  proto.clarifai.api.AutoAnnotationRequest.displayName = 'proto.clarifai.api.AutoAnnotationRequest';
7576
7575
  }
7577
- /**
7578
- * Generated by JsPbCodeGenerator.
7579
- * @param {Array=} opt_data Optional initial data array, typically from a
7580
- * server response, or constructed directly in Javascript. The array is used
7581
- * in place and becomes part of the constructed object. It is not cloned.
7582
- * If no data is provided, the constructed object will be empty, but still
7583
- * valid.
7584
- * @extends {jspb.Message}
7585
- * @constructor
7586
- */
7587
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo = function (opt_data) {
7588
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7589
- };
7590
- goog.inherits(proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo, jspb.Message);
7591
- if (goog.DEBUG && !COMPILED) {
7592
- /**
7593
- * @public
7594
- * @override
7595
- */
7596
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.displayName = 'proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo';
7597
- }
7598
7576
  /**
7599
7577
  * Generated by JsPbCodeGenerator.
7600
7578
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -75659,7 +75637,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
75659
75637
  proto.clarifai.api.AutoAnnotationRequest.toObject = function (includeInstance, msg) {
75660
75638
  var f, obj = {
75661
75639
  postModelOutputsRequest: (f = msg.getPostModelOutputsRequest()) && proto.clarifai.api.PostModelOutputsRequest.toObject(includeInstance, f),
75662
- postAnnotationsInfo: (f = msg.getPostAnnotationsInfo()) && proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.toObject(includeInstance, f)
75640
+ task: (f = msg.getTask()) && proto_clarifai_api_resources_pb.Task.toObject(includeInstance, f),
75641
+ authorizationValue: jspb.Message.getFieldWithDefault(msg, 3, "")
75663
75642
  };
75664
75643
  if (includeInstance) {
75665
75644
  obj.$jspbMessageInstance = msg;
@@ -75697,9 +75676,13 @@ proto.clarifai.api.AutoAnnotationRequest.deserializeBinaryFromReader = function
75697
75676
  msg.setPostModelOutputsRequest(value);
75698
75677
  break;
75699
75678
  case 2:
75700
- var value = new proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo;
75701
- reader.readMessage(value, proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinaryFromReader);
75702
- msg.setPostAnnotationsInfo(value);
75679
+ var value = new proto_clarifai_api_resources_pb.Task;
75680
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader);
75681
+ msg.setTask(value);
75682
+ break;
75683
+ case 3:
75684
+ var value = /** @type {string} */ (reader.readString());
75685
+ msg.setAuthorizationValue(value);
75703
75686
  break;
75704
75687
  default:
75705
75688
  reader.skipField();
@@ -75730,179 +75713,15 @@ proto.clarifai.api.AutoAnnotationRequest.serializeBinaryToWriter = function (mes
75730
75713
  if (f != null) {
75731
75714
  writer.writeMessage(1, f, proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter);
75732
75715
  }
75733
- f = message.getPostAnnotationsInfo();
75734
- if (f != null) {
75735
- writer.writeMessage(2, f, proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.serializeBinaryToWriter);
75736
- }
75737
- };
75738
- if (jspb.Message.GENERATE_TO_OBJECT) {
75739
- /**
75740
- * Creates an object representation of this proto.
75741
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
75742
- * Optional fields that are not set will be set to undefined.
75743
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
75744
- * For the list of reserved names please see:
75745
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
75746
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
75747
- * JSPB instance for transitional soy proto support:
75748
- * http://goto/soy-param-migration
75749
- * @return {!Object}
75750
- */
75751
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.toObject = function (opt_includeInstance) {
75752
- return proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.toObject(opt_includeInstance, this);
75753
- };
75754
- /**
75755
- * Static version of the {@see toObject} method.
75756
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
75757
- * the JSPB instance for transitional soy proto support:
75758
- * http://goto/soy-param-migration
75759
- * @param {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} msg The msg instance to transform.
75760
- * @return {!Object}
75761
- * @suppress {unusedLocalVariables} f is only used for nested messages
75762
- */
75763
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.toObject = function (includeInstance, msg) {
75764
- var f, obj = {
75765
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
75766
- authorizationValue: jspb.Message.getFieldWithDefault(msg, 2, ""),
75767
- taskId: jspb.Message.getFieldWithDefault(msg, 3, "")
75768
- };
75769
- if (includeInstance) {
75770
- obj.$jspbMessageInstance = msg;
75771
- }
75772
- return obj;
75773
- };
75774
- }
75775
- /**
75776
- * Deserializes binary data (in protobuf wire format).
75777
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
75778
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo}
75779
- */
75780
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinary = function (bytes) {
75781
- var reader = new jspb.BinaryReader(bytes);
75782
- var msg = new proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo;
75783
- return proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinaryFromReader(msg, reader);
75784
- };
75785
- /**
75786
- * Deserializes binary data (in protobuf wire format) from the
75787
- * given reader into the given message object.
75788
- * @param {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} msg The message object to deserialize into.
75789
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
75790
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo}
75791
- */
75792
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinaryFromReader = function (msg, reader) {
75793
- while (reader.nextField()) {
75794
- if (reader.isEndGroup()) {
75795
- break;
75796
- }
75797
- var field = reader.getFieldNumber();
75798
- switch (field) {
75799
- case 1:
75800
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
75801
- reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
75802
- msg.setUserAppId(value);
75803
- break;
75804
- case 2:
75805
- var value = /** @type {string} */ (reader.readString());
75806
- msg.setAuthorizationValue(value);
75807
- break;
75808
- case 3:
75809
- var value = /** @type {string} */ (reader.readString());
75810
- msg.setTaskId(value);
75811
- break;
75812
- default:
75813
- reader.skipField();
75814
- break;
75815
- }
75816
- }
75817
- return msg;
75818
- };
75819
- /**
75820
- * Serializes the message to binary data (in protobuf wire format).
75821
- * @return {!Uint8Array}
75822
- */
75823
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.serializeBinary = function () {
75824
- var writer = new jspb.BinaryWriter();
75825
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.serializeBinaryToWriter(this, writer);
75826
- return writer.getResultBuffer();
75827
- };
75828
- /**
75829
- * Serializes the given message to binary data (in protobuf wire
75830
- * format), writing to the given BinaryWriter.
75831
- * @param {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} message
75832
- * @param {!jspb.BinaryWriter} writer
75833
- * @suppress {unusedLocalVariables} f is only used for nested messages
75834
- */
75835
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.serializeBinaryToWriter = function (message, writer) {
75836
- var f = undefined;
75837
- f = message.getUserAppId();
75716
+ f = message.getTask();
75838
75717
  if (f != null) {
75839
- writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
75718
+ writer.writeMessage(2, f, proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter);
75840
75719
  }
75841
75720
  f = message.getAuthorizationValue();
75842
- if (f.length > 0) {
75843
- writer.writeString(2, f);
75844
- }
75845
- f = message.getTaskId();
75846
75721
  if (f.length > 0) {
75847
75722
  writer.writeString(3, f);
75848
75723
  }
75849
75724
  };
75850
- /**
75851
- * optional UserAppIDSet user_app_id = 1;
75852
- * @return {?proto.clarifai.api.UserAppIDSet}
75853
- */
75854
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.getUserAppId = function () {
75855
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
75856
- };
75857
- /**
75858
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
75859
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
75860
- */
75861
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.setUserAppId = function (value) {
75862
- return jspb.Message.setWrapperField(this, 1, value);
75863
- };
75864
- /**
75865
- * Clears the message field making it undefined.
75866
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
75867
- */
75868
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.clearUserAppId = function () {
75869
- return this.setUserAppId(undefined);
75870
- };
75871
- /**
75872
- * Returns whether this field is set.
75873
- * @return {boolean}
75874
- */
75875
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.hasUserAppId = function () {
75876
- return jspb.Message.getField(this, 1) != null;
75877
- };
75878
- /**
75879
- * optional string authorization_value = 2;
75880
- * @return {string}
75881
- */
75882
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.getAuthorizationValue = function () {
75883
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
75884
- };
75885
- /**
75886
- * @param {string} value
75887
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
75888
- */
75889
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.setAuthorizationValue = function (value) {
75890
- return jspb.Message.setProto3StringField(this, 2, value);
75891
- };
75892
- /**
75893
- * optional string task_id = 3;
75894
- * @return {string}
75895
- */
75896
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.getTaskId = function () {
75897
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
75898
- };
75899
- /**
75900
- * @param {string} value
75901
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
75902
- */
75903
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.setTaskId = function (value) {
75904
- return jspb.Message.setProto3StringField(this, 3, value);
75905
- };
75906
75725
  /**
75907
75726
  * optional PostModelOutputsRequest post_model_outputs_request = 1;
75908
75727
  * @return {?proto.clarifai.api.PostModelOutputsRequest}
@@ -75932,33 +75751,47 @@ proto.clarifai.api.AutoAnnotationRequest.prototype.hasPostModelOutputsRequest =
75932
75751
  return jspb.Message.getField(this, 1) != null;
75933
75752
  };
75934
75753
  /**
75935
- * optional PostAnnotationsInfo post_annotations_info = 2;
75936
- * @return {?proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo}
75754
+ * optional Task task = 2;
75755
+ * @return {?proto.clarifai.api.Task}
75937
75756
  */
75938
- proto.clarifai.api.AutoAnnotationRequest.prototype.getPostAnnotationsInfo = function () {
75939
- return /** @type{?proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo, 2));
75757
+ proto.clarifai.api.AutoAnnotationRequest.prototype.getTask = function () {
75758
+ return /** @type{?proto.clarifai.api.Task} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Task, 2));
75940
75759
  };
75941
75760
  /**
75942
- * @param {?proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo|undefined} value
75761
+ * @param {?proto.clarifai.api.Task|undefined} value
75943
75762
  * @return {!proto.clarifai.api.AutoAnnotationRequest} returns this
75944
75763
  */
75945
- proto.clarifai.api.AutoAnnotationRequest.prototype.setPostAnnotationsInfo = function (value) {
75764
+ proto.clarifai.api.AutoAnnotationRequest.prototype.setTask = function (value) {
75946
75765
  return jspb.Message.setWrapperField(this, 2, value);
75947
75766
  };
75948
75767
  /**
75949
75768
  * Clears the message field making it undefined.
75950
75769
  * @return {!proto.clarifai.api.AutoAnnotationRequest} returns this
75951
75770
  */
75952
- proto.clarifai.api.AutoAnnotationRequest.prototype.clearPostAnnotationsInfo = function () {
75953
- return this.setPostAnnotationsInfo(undefined);
75771
+ proto.clarifai.api.AutoAnnotationRequest.prototype.clearTask = function () {
75772
+ return this.setTask(undefined);
75954
75773
  };
75955
75774
  /**
75956
75775
  * Returns whether this field is set.
75957
75776
  * @return {boolean}
75958
75777
  */
75959
- proto.clarifai.api.AutoAnnotationRequest.prototype.hasPostAnnotationsInfo = function () {
75778
+ proto.clarifai.api.AutoAnnotationRequest.prototype.hasTask = function () {
75960
75779
  return jspb.Message.getField(this, 2) != null;
75961
75780
  };
75781
+ /**
75782
+ * optional string authorization_value = 3;
75783
+ * @return {string}
75784
+ */
75785
+ proto.clarifai.api.AutoAnnotationRequest.prototype.getAuthorizationValue = function () {
75786
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
75787
+ };
75788
+ /**
75789
+ * @param {string} value
75790
+ * @return {!proto.clarifai.api.AutoAnnotationRequest} returns this
75791
+ */
75792
+ proto.clarifai.api.AutoAnnotationRequest.prototype.setAuthorizationValue = function (value) {
75793
+ return jspb.Message.setProto3StringField(this, 3, value);
75794
+ };
75962
75795
  /**
75963
75796
  * Oneof group definitions for this message. Each group defines the field
75964
75797
  * numbers belonging to that group. When of these fields' value is set, all
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "12.0.2",
3
+ "version": "12.0.3",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -10605,10 +10605,13 @@ export class AutoAnnotationRequest extends jspb.Message {
10605
10605
  hasPostModelOutputsRequest(): boolean;
10606
10606
  clearPostModelOutputsRequest(): AutoAnnotationRequest;
10607
10607
 
10608
- getPostAnnotationsInfo(): AutoAnnotationRequest.PostAnnotationsInfo | undefined;
10609
- setPostAnnotationsInfo(value?: AutoAnnotationRequest.PostAnnotationsInfo): AutoAnnotationRequest;
10610
- hasPostAnnotationsInfo(): boolean;
10611
- clearPostAnnotationsInfo(): AutoAnnotationRequest;
10608
+ getTask(): proto_clarifai_api_resources_pb.Task | undefined;
10609
+ setTask(value?: proto_clarifai_api_resources_pb.Task): AutoAnnotationRequest;
10610
+ hasTask(): boolean;
10611
+ clearTask(): AutoAnnotationRequest;
10612
+
10613
+ getAuthorizationValue(): string;
10614
+ setAuthorizationValue(value: string): AutoAnnotationRequest;
10612
10615
 
10613
10616
  serializeBinary(): Uint8Array;
10614
10617
  toObject(includeInstance?: boolean): AutoAnnotationRequest.AsObject;
@@ -10621,37 +10624,9 @@ export class AutoAnnotationRequest extends jspb.Message {
10621
10624
  export namespace AutoAnnotationRequest {
10622
10625
  export type AsObject = {
10623
10626
  postModelOutputsRequest?: PostModelOutputsRequest.AsObject,
10624
- postAnnotationsInfo?: AutoAnnotationRequest.PostAnnotationsInfo.AsObject,
10625
- }
10626
-
10627
- export class PostAnnotationsInfo extends jspb.Message {
10628
- getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
10629
- setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAnnotationsInfo;
10630
- hasUserAppId(): boolean;
10631
- clearUserAppId(): PostAnnotationsInfo;
10632
-
10633
- getAuthorizationValue(): string;
10634
- setAuthorizationValue(value: string): PostAnnotationsInfo;
10635
-
10636
- getTaskId(): string;
10637
- setTaskId(value: string): PostAnnotationsInfo;
10638
-
10639
- serializeBinary(): Uint8Array;
10640
- toObject(includeInstance?: boolean): PostAnnotationsInfo.AsObject;
10641
- static toObject(includeInstance: boolean, msg: PostAnnotationsInfo): PostAnnotationsInfo.AsObject;
10642
- static serializeBinaryToWriter(message: PostAnnotationsInfo, writer: jspb.BinaryWriter): void;
10643
- static deserializeBinary(bytes: Uint8Array): PostAnnotationsInfo;
10644
- static deserializeBinaryFromReader(message: PostAnnotationsInfo, reader: jspb.BinaryReader): PostAnnotationsInfo;
10645
- }
10646
-
10647
- export namespace PostAnnotationsInfo {
10648
- export type AsObject = {
10649
- userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
10650
- authorizationValue: string,
10651
- taskId: string,
10652
- }
10627
+ task?: proto_clarifai_api_resources_pb.Task.AsObject,
10628
+ authorizationValue: string,
10653
10629
  }
10654
-
10655
10630
  }
10656
10631
 
10657
10632
  export class RunnerItemOutput extends jspb.Message {
@@ -42,7 +42,6 @@ goog.object.extend(proto, google_protobuf_struct_pb);
42
42
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
43
43
  goog.object.extend(proto, google_protobuf_timestamp_pb);
44
44
  goog.exportSymbol('proto.clarifai.api.AutoAnnotationRequest', null, global);
45
- goog.exportSymbol('proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo', null, global);
46
45
  goog.exportSymbol('proto.clarifai.api.CancelBulkOperationRequest', null, global);
47
46
  goog.exportSymbol('proto.clarifai.api.CancelInputsAddJobRequest', null, global);
48
47
  goog.exportSymbol('proto.clarifai.api.CancelInputsExtractionJobsRequest', null, global);
@@ -7576,27 +7575,6 @@ if (goog.DEBUG && !COMPILED) {
7576
7575
  */
7577
7576
  proto.clarifai.api.AutoAnnotationRequest.displayName = 'proto.clarifai.api.AutoAnnotationRequest';
7578
7577
  }
7579
- /**
7580
- * Generated by JsPbCodeGenerator.
7581
- * @param {Array=} opt_data Optional initial data array, typically from a
7582
- * server response, or constructed directly in Javascript. The array is used
7583
- * in place and becomes part of the constructed object. It is not cloned.
7584
- * If no data is provided, the constructed object will be empty, but still
7585
- * valid.
7586
- * @extends {jspb.Message}
7587
- * @constructor
7588
- */
7589
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo = function(opt_data) {
7590
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7591
- };
7592
- goog.inherits(proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo, jspb.Message);
7593
- if (goog.DEBUG && !COMPILED) {
7594
- /**
7595
- * @public
7596
- * @override
7597
- */
7598
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.displayName = 'proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo';
7599
- }
7600
7578
  /**
7601
7579
  * Generated by JsPbCodeGenerator.
7602
7580
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -93111,7 +93089,8 @@ proto.clarifai.api.AutoAnnotationRequest.prototype.toObject = function(opt_inclu
93111
93089
  proto.clarifai.api.AutoAnnotationRequest.toObject = function(includeInstance, msg) {
93112
93090
  var f, obj = {
93113
93091
  postModelOutputsRequest: (f = msg.getPostModelOutputsRequest()) && proto.clarifai.api.PostModelOutputsRequest.toObject(includeInstance, f),
93114
- postAnnotationsInfo: (f = msg.getPostAnnotationsInfo()) && proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.toObject(includeInstance, f)
93092
+ task: (f = msg.getTask()) && proto_clarifai_api_resources_pb.Task.toObject(includeInstance, f),
93093
+ authorizationValue: jspb.Message.getFieldWithDefault(msg, 3, "")
93115
93094
  };
93116
93095
 
93117
93096
  if (includeInstance) {
@@ -93154,9 +93133,13 @@ proto.clarifai.api.AutoAnnotationRequest.deserializeBinaryFromReader = function(
93154
93133
  msg.setPostModelOutputsRequest(value);
93155
93134
  break;
93156
93135
  case 2:
93157
- var value = new proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo;
93158
- reader.readMessage(value,proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinaryFromReader);
93159
- msg.setPostAnnotationsInfo(value);
93136
+ var value = new proto_clarifai_api_resources_pb.Task;
93137
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader);
93138
+ msg.setTask(value);
93139
+ break;
93140
+ case 3:
93141
+ var value = /** @type {string} */ (reader.readString());
93142
+ msg.setAuthorizationValue(value);
93160
93143
  break;
93161
93144
  default:
93162
93145
  reader.skipField();
@@ -93195,146 +93178,15 @@ proto.clarifai.api.AutoAnnotationRequest.serializeBinaryToWriter = function(mess
93195
93178
  proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter
93196
93179
  );
93197
93180
  }
93198
- f = message.getPostAnnotationsInfo();
93181
+ f = message.getTask();
93199
93182
  if (f != null) {
93200
93183
  writer.writeMessage(
93201
93184
  2,
93202
93185
  f,
93203
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.serializeBinaryToWriter
93204
- );
93205
- }
93206
- };
93207
-
93208
-
93209
-
93210
-
93211
-
93212
- if (jspb.Message.GENERATE_TO_OBJECT) {
93213
- /**
93214
- * Creates an object representation of this proto.
93215
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
93216
- * Optional fields that are not set will be set to undefined.
93217
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
93218
- * For the list of reserved names please see:
93219
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
93220
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
93221
- * JSPB instance for transitional soy proto support:
93222
- * http://goto/soy-param-migration
93223
- * @return {!Object}
93224
- */
93225
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.toObject = function(opt_includeInstance) {
93226
- return proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.toObject(opt_includeInstance, this);
93227
- };
93228
-
93229
-
93230
- /**
93231
- * Static version of the {@see toObject} method.
93232
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
93233
- * the JSPB instance for transitional soy proto support:
93234
- * http://goto/soy-param-migration
93235
- * @param {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} msg The msg instance to transform.
93236
- * @return {!Object}
93237
- * @suppress {unusedLocalVariables} f is only used for nested messages
93238
- */
93239
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.toObject = function(includeInstance, msg) {
93240
- var f, obj = {
93241
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
93242
- authorizationValue: jspb.Message.getFieldWithDefault(msg, 2, ""),
93243
- taskId: jspb.Message.getFieldWithDefault(msg, 3, "")
93244
- };
93245
-
93246
- if (includeInstance) {
93247
- obj.$jspbMessageInstance = msg;
93248
- }
93249
- return obj;
93250
- };
93251
- }
93252
-
93253
-
93254
- /**
93255
- * Deserializes binary data (in protobuf wire format).
93256
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
93257
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo}
93258
- */
93259
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinary = function(bytes) {
93260
- var reader = new jspb.BinaryReader(bytes);
93261
- var msg = new proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo;
93262
- return proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinaryFromReader(msg, reader);
93263
- };
93264
-
93265
-
93266
- /**
93267
- * Deserializes binary data (in protobuf wire format) from the
93268
- * given reader into the given message object.
93269
- * @param {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} msg The message object to deserialize into.
93270
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
93271
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo}
93272
- */
93273
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.deserializeBinaryFromReader = function(msg, reader) {
93274
- while (reader.nextField()) {
93275
- if (reader.isEndGroup()) {
93276
- break;
93277
- }
93278
- var field = reader.getFieldNumber();
93279
- switch (field) {
93280
- case 1:
93281
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
93282
- reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
93283
- msg.setUserAppId(value);
93284
- break;
93285
- case 2:
93286
- var value = /** @type {string} */ (reader.readString());
93287
- msg.setAuthorizationValue(value);
93288
- break;
93289
- case 3:
93290
- var value = /** @type {string} */ (reader.readString());
93291
- msg.setTaskId(value);
93292
- break;
93293
- default:
93294
- reader.skipField();
93295
- break;
93296
- }
93297
- }
93298
- return msg;
93299
- };
93300
-
93301
-
93302
- /**
93303
- * Serializes the message to binary data (in protobuf wire format).
93304
- * @return {!Uint8Array}
93305
- */
93306
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.serializeBinary = function() {
93307
- var writer = new jspb.BinaryWriter();
93308
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.serializeBinaryToWriter(this, writer);
93309
- return writer.getResultBuffer();
93310
- };
93311
-
93312
-
93313
- /**
93314
- * Serializes the given message to binary data (in protobuf wire
93315
- * format), writing to the given BinaryWriter.
93316
- * @param {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} message
93317
- * @param {!jspb.BinaryWriter} writer
93318
- * @suppress {unusedLocalVariables} f is only used for nested messages
93319
- */
93320
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.serializeBinaryToWriter = function(message, writer) {
93321
- var f = undefined;
93322
- f = message.getUserAppId();
93323
- if (f != null) {
93324
- writer.writeMessage(
93325
- 1,
93326
- f,
93327
- proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
93186
+ proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter
93328
93187
  );
93329
93188
  }
93330
93189
  f = message.getAuthorizationValue();
93331
- if (f.length > 0) {
93332
- writer.writeString(
93333
- 2,
93334
- f
93335
- );
93336
- }
93337
- f = message.getTaskId();
93338
93190
  if (f.length > 0) {
93339
93191
  writer.writeString(
93340
93192
  3,
@@ -93344,79 +93196,6 @@ proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.serializeBinaryToWr
93344
93196
  };
93345
93197
 
93346
93198
 
93347
- /**
93348
- * optional UserAppIDSet user_app_id = 1;
93349
- * @return {?proto.clarifai.api.UserAppIDSet}
93350
- */
93351
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.getUserAppId = function() {
93352
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
93353
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
93354
- };
93355
-
93356
-
93357
- /**
93358
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
93359
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
93360
- */
93361
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.setUserAppId = function(value) {
93362
- return jspb.Message.setWrapperField(this, 1, value);
93363
- };
93364
-
93365
-
93366
- /**
93367
- * Clears the message field making it undefined.
93368
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
93369
- */
93370
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.clearUserAppId = function() {
93371
- return this.setUserAppId(undefined);
93372
- };
93373
-
93374
-
93375
- /**
93376
- * Returns whether this field is set.
93377
- * @return {boolean}
93378
- */
93379
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.hasUserAppId = function() {
93380
- return jspb.Message.getField(this, 1) != null;
93381
- };
93382
-
93383
-
93384
- /**
93385
- * optional string authorization_value = 2;
93386
- * @return {string}
93387
- */
93388
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.getAuthorizationValue = function() {
93389
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
93390
- };
93391
-
93392
-
93393
- /**
93394
- * @param {string} value
93395
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
93396
- */
93397
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.setAuthorizationValue = function(value) {
93398
- return jspb.Message.setProto3StringField(this, 2, value);
93399
- };
93400
-
93401
-
93402
- /**
93403
- * optional string task_id = 3;
93404
- * @return {string}
93405
- */
93406
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.getTaskId = function() {
93407
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
93408
- };
93409
-
93410
-
93411
- /**
93412
- * @param {string} value
93413
- * @return {!proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} returns this
93414
- */
93415
- proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo.prototype.setTaskId = function(value) {
93416
- return jspb.Message.setProto3StringField(this, 3, value);
93417
- };
93418
-
93419
-
93420
93199
  /**
93421
93200
  * optional PostModelOutputsRequest post_model_outputs_request = 1;
93422
93201
  * @return {?proto.clarifai.api.PostModelOutputsRequest}
@@ -93455,20 +93234,20 @@ proto.clarifai.api.AutoAnnotationRequest.prototype.hasPostModelOutputsRequest =
93455
93234
 
93456
93235
 
93457
93236
  /**
93458
- * optional PostAnnotationsInfo post_annotations_info = 2;
93459
- * @return {?proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo}
93237
+ * optional Task task = 2;
93238
+ * @return {?proto.clarifai.api.Task}
93460
93239
  */
93461
- proto.clarifai.api.AutoAnnotationRequest.prototype.getPostAnnotationsInfo = function() {
93462
- return /** @type{?proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo} */ (
93463
- jspb.Message.getWrapperField(this, proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo, 2));
93240
+ proto.clarifai.api.AutoAnnotationRequest.prototype.getTask = function() {
93241
+ return /** @type{?proto.clarifai.api.Task} */ (
93242
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Task, 2));
93464
93243
  };
93465
93244
 
93466
93245
 
93467
93246
  /**
93468
- * @param {?proto.clarifai.api.AutoAnnotationRequest.PostAnnotationsInfo|undefined} value
93247
+ * @param {?proto.clarifai.api.Task|undefined} value
93469
93248
  * @return {!proto.clarifai.api.AutoAnnotationRequest} returns this
93470
93249
  */
93471
- proto.clarifai.api.AutoAnnotationRequest.prototype.setPostAnnotationsInfo = function(value) {
93250
+ proto.clarifai.api.AutoAnnotationRequest.prototype.setTask = function(value) {
93472
93251
  return jspb.Message.setWrapperField(this, 2, value);
93473
93252
  };
93474
93253
 
@@ -93477,8 +93256,8 @@ proto.clarifai.api.AutoAnnotationRequest.prototype.setPostAnnotationsInfo = func
93477
93256
  * Clears the message field making it undefined.
93478
93257
  * @return {!proto.clarifai.api.AutoAnnotationRequest} returns this
93479
93258
  */
93480
- proto.clarifai.api.AutoAnnotationRequest.prototype.clearPostAnnotationsInfo = function() {
93481
- return this.setPostAnnotationsInfo(undefined);
93259
+ proto.clarifai.api.AutoAnnotationRequest.prototype.clearTask = function() {
93260
+ return this.setTask(undefined);
93482
93261
  };
93483
93262
 
93484
93263
 
@@ -93486,11 +93265,29 @@ proto.clarifai.api.AutoAnnotationRequest.prototype.clearPostAnnotationsInfo = fu
93486
93265
  * Returns whether this field is set.
93487
93266
  * @return {boolean}
93488
93267
  */
93489
- proto.clarifai.api.AutoAnnotationRequest.prototype.hasPostAnnotationsInfo = function() {
93268
+ proto.clarifai.api.AutoAnnotationRequest.prototype.hasTask = function() {
93490
93269
  return jspb.Message.getField(this, 2) != null;
93491
93270
  };
93492
93271
 
93493
93272
 
93273
+ /**
93274
+ * optional string authorization_value = 3;
93275
+ * @return {string}
93276
+ */
93277
+ proto.clarifai.api.AutoAnnotationRequest.prototype.getAuthorizationValue = function() {
93278
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
93279
+ };
93280
+
93281
+
93282
+ /**
93283
+ * @param {string} value
93284
+ * @return {!proto.clarifai.api.AutoAnnotationRequest} returns this
93285
+ */
93286
+ proto.clarifai.api.AutoAnnotationRequest.prototype.setAuthorizationValue = function(value) {
93287
+ return jspb.Message.setProto3StringField(this, 3, value);
93288
+ };
93289
+
93290
+
93494
93291
 
93495
93292
  /**
93496
93293
  * Oneof group definitions for this message. Each group defines the field