clarifai-web-grpc 10.3.2 → 10.3.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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 10.3.2
1
+ 10.3.3
@@ -4694,7 +4694,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4694
4694
  inputLevel: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
4695
4695
  consensusInfo: (f = msg.getConsensusInfo()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
4696
4696
  taskId: jspb.Message.getFieldWithDefault(msg, 19, ""),
4697
- workflowVersionId: jspb.Message.getFieldWithDefault(msg, 20, "")
4697
+ worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f)
4698
4698
  };
4699
4699
  if (includeInstance) {
4700
4700
  obj.$jspbMessageInstance = msg;
@@ -4788,9 +4788,10 @@ proto.clarifai.api.Annotation.deserializeBinaryFromReader = function (msg, reade
4788
4788
  var value = /** @type {string} */ (reader.readString());
4789
4789
  msg.setTaskId(value);
4790
4790
  break;
4791
- case 20:
4792
- var value = /** @type {string} */ (reader.readString());
4793
- msg.setWorkflowVersionId(value);
4791
+ case 21:
4792
+ var value = new proto.clarifai.api.Worker;
4793
+ reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
4794
+ msg.setWorker(value);
4794
4795
  break;
4795
4796
  default:
4796
4797
  reader.skipField();
@@ -4873,9 +4874,9 @@ proto.clarifai.api.Annotation.serializeBinaryToWriter = function (message, write
4873
4874
  if (f.length > 0) {
4874
4875
  writer.writeString(19, f);
4875
4876
  }
4876
- f = message.getWorkflowVersionId();
4877
- if (f.length > 0) {
4878
- writer.writeString(20, f);
4877
+ f = message.getWorker();
4878
+ if (f != null) {
4879
+ writer.writeMessage(21, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
4879
4880
  }
4880
4881
  };
4881
4882
  /**
@@ -5159,18 +5160,32 @@ proto.clarifai.api.Annotation.prototype.setTaskId = function (value) {
5159
5160
  return jspb.Message.setProto3StringField(this, 19, value);
5160
5161
  };
5161
5162
  /**
5162
- * optional string workflow_version_id = 20;
5163
- * @return {string}
5163
+ * optional Worker worker = 21;
5164
+ * @return {?proto.clarifai.api.Worker}
5164
5165
  */
5165
- proto.clarifai.api.Annotation.prototype.getWorkflowVersionId = function () {
5166
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
5166
+ proto.clarifai.api.Annotation.prototype.getWorker = function () {
5167
+ return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 21));
5167
5168
  };
5168
5169
  /**
5169
- * @param {string} value
5170
+ * @param {?proto.clarifai.api.Worker|undefined} value
5171
+ * @return {!proto.clarifai.api.Annotation} returns this
5172
+ */
5173
+ proto.clarifai.api.Annotation.prototype.setWorker = function (value) {
5174
+ return jspb.Message.setWrapperField(this, 21, value);
5175
+ };
5176
+ /**
5177
+ * Clears the message field making it undefined.
5170
5178
  * @return {!proto.clarifai.api.Annotation} returns this
5171
5179
  */
5172
- proto.clarifai.api.Annotation.prototype.setWorkflowVersionId = function (value) {
5173
- return jspb.Message.setProto3StringField(this, 20, value);
5180
+ proto.clarifai.api.Annotation.prototype.clearWorker = function () {
5181
+ return this.setWorker(undefined);
5182
+ };
5183
+ /**
5184
+ * Returns whether this field is set.
5185
+ * @return {boolean}
5186
+ */
5187
+ proto.clarifai.api.Annotation.prototype.hasWorker = function () {
5188
+ return jspb.Message.getField(this, 21) != null;
5174
5189
  };
5175
5190
  /**
5176
5191
  * Oneof group definitions for this message. Each group defines the field
@@ -4694,7 +4694,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
4694
4694
  inputLevel: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
4695
4695
  consensusInfo: (f = msg.getConsensusInfo()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
4696
4696
  taskId: jspb.Message.getFieldWithDefault(msg, 19, ""),
4697
- workflowVersionId: jspb.Message.getFieldWithDefault(msg, 20, "")
4697
+ worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f)
4698
4698
  };
4699
4699
  if (includeInstance) {
4700
4700
  obj.$jspbMessageInstance = msg;
@@ -4788,9 +4788,10 @@ proto.clarifai.api.Annotation.deserializeBinaryFromReader = function (msg, reade
4788
4788
  var value = /** @type {string} */ (reader.readString());
4789
4789
  msg.setTaskId(value);
4790
4790
  break;
4791
- case 20:
4792
- var value = /** @type {string} */ (reader.readString());
4793
- msg.setWorkflowVersionId(value);
4791
+ case 21:
4792
+ var value = new proto.clarifai.api.Worker;
4793
+ reader.readMessage(value, proto.clarifai.api.Worker.deserializeBinaryFromReader);
4794
+ msg.setWorker(value);
4794
4795
  break;
4795
4796
  default:
4796
4797
  reader.skipField();
@@ -4873,9 +4874,9 @@ proto.clarifai.api.Annotation.serializeBinaryToWriter = function (message, write
4873
4874
  if (f.length > 0) {
4874
4875
  writer.writeString(19, f);
4875
4876
  }
4876
- f = message.getWorkflowVersionId();
4877
- if (f.length > 0) {
4878
- writer.writeString(20, f);
4877
+ f = message.getWorker();
4878
+ if (f != null) {
4879
+ writer.writeMessage(21, f, proto.clarifai.api.Worker.serializeBinaryToWriter);
4879
4880
  }
4880
4881
  };
4881
4882
  /**
@@ -5159,18 +5160,32 @@ proto.clarifai.api.Annotation.prototype.setTaskId = function (value) {
5159
5160
  return jspb.Message.setProto3StringField(this, 19, value);
5160
5161
  };
5161
5162
  /**
5162
- * optional string workflow_version_id = 20;
5163
- * @return {string}
5163
+ * optional Worker worker = 21;
5164
+ * @return {?proto.clarifai.api.Worker}
5164
5165
  */
5165
- proto.clarifai.api.Annotation.prototype.getWorkflowVersionId = function () {
5166
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
5166
+ proto.clarifai.api.Annotation.prototype.getWorker = function () {
5167
+ return /** @type{?proto.clarifai.api.Worker} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 21));
5167
5168
  };
5168
5169
  /**
5169
- * @param {string} value
5170
+ * @param {?proto.clarifai.api.Worker|undefined} value
5171
+ * @return {!proto.clarifai.api.Annotation} returns this
5172
+ */
5173
+ proto.clarifai.api.Annotation.prototype.setWorker = function (value) {
5174
+ return jspb.Message.setWrapperField(this, 21, value);
5175
+ };
5176
+ /**
5177
+ * Clears the message field making it undefined.
5170
5178
  * @return {!proto.clarifai.api.Annotation} returns this
5171
5179
  */
5172
- proto.clarifai.api.Annotation.prototype.setWorkflowVersionId = function (value) {
5173
- return jspb.Message.setProto3StringField(this, 20, value);
5180
+ proto.clarifai.api.Annotation.prototype.clearWorker = function () {
5181
+ return this.setWorker(undefined);
5182
+ };
5183
+ /**
5184
+ * Returns whether this field is set.
5185
+ * @return {boolean}
5186
+ */
5187
+ proto.clarifai.api.Annotation.prototype.hasWorker = function () {
5188
+ return jspb.Message.getField(this, 21) != null;
5174
5189
  };
5175
5190
  /**
5176
5191
  * Oneof group definitions for this message. Each group defines the field
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "10.3.2",
3
+ "version": "10.3.3",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -65,8 +65,10 @@ export class Annotation extends jspb.Message {
65
65
  getTaskId(): string;
66
66
  setTaskId(value: string): Annotation;
67
67
 
68
- getWorkflowVersionId(): string;
69
- setWorkflowVersionId(value: string): Annotation;
68
+ getWorker(): Worker | undefined;
69
+ setWorker(value?: Worker): Annotation;
70
+ hasWorker(): boolean;
71
+ clearWorker(): Annotation;
70
72
 
71
73
  serializeBinary(): Uint8Array;
72
74
  toObject(includeInstance?: boolean): Annotation.AsObject;
@@ -92,7 +94,7 @@ export namespace Annotation {
92
94
  inputLevel: boolean,
93
95
  consensusInfo?: google_protobuf_struct_pb.Struct.AsObject,
94
96
  taskId: string,
95
- workflowVersionId: string,
97
+ worker?: Worker.AsObject,
96
98
  }
97
99
  }
98
100
 
@@ -4701,7 +4701,7 @@ proto.clarifai.api.Annotation.toObject = function(includeInstance, msg) {
4701
4701
  inputLevel: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
4702
4702
  consensusInfo: (f = msg.getConsensusInfo()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
4703
4703
  taskId: jspb.Message.getFieldWithDefault(msg, 19, ""),
4704
- workflowVersionId: jspb.Message.getFieldWithDefault(msg, 20, "")
4704
+ worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f)
4705
4705
  };
4706
4706
 
4707
4707
  if (includeInstance) {
@@ -4800,9 +4800,10 @@ proto.clarifai.api.Annotation.deserializeBinaryFromReader = function(msg, reader
4800
4800
  var value = /** @type {string} */ (reader.readString());
4801
4801
  msg.setTaskId(value);
4802
4802
  break;
4803
- case 20:
4804
- var value = /** @type {string} */ (reader.readString());
4805
- msg.setWorkflowVersionId(value);
4803
+ case 21:
4804
+ var value = new proto.clarifai.api.Worker;
4805
+ reader.readMessage(value,proto.clarifai.api.Worker.deserializeBinaryFromReader);
4806
+ msg.setWorker(value);
4806
4807
  break;
4807
4808
  default:
4808
4809
  reader.skipField();
@@ -4937,11 +4938,12 @@ proto.clarifai.api.Annotation.serializeBinaryToWriter = function(message, writer
4937
4938
  f
4938
4939
  );
4939
4940
  }
4940
- f = message.getWorkflowVersionId();
4941
- if (f.length > 0) {
4942
- writer.writeString(
4943
- 20,
4944
- f
4941
+ f = message.getWorker();
4942
+ if (f != null) {
4943
+ writer.writeMessage(
4944
+ 21,
4945
+ f,
4946
+ proto.clarifai.api.Worker.serializeBinaryToWriter
4945
4947
  );
4946
4948
  }
4947
4949
  };
@@ -5314,20 +5316,39 @@ proto.clarifai.api.Annotation.prototype.setTaskId = function(value) {
5314
5316
 
5315
5317
 
5316
5318
  /**
5317
- * optional string workflow_version_id = 20;
5318
- * @return {string}
5319
+ * optional Worker worker = 21;
5320
+ * @return {?proto.clarifai.api.Worker}
5319
5321
  */
5320
- proto.clarifai.api.Annotation.prototype.getWorkflowVersionId = function() {
5321
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
5322
+ proto.clarifai.api.Annotation.prototype.getWorker = function() {
5323
+ return /** @type{?proto.clarifai.api.Worker} */ (
5324
+ jspb.Message.getWrapperField(this, proto.clarifai.api.Worker, 21));
5322
5325
  };
5323
5326
 
5324
5327
 
5325
5328
  /**
5326
- * @param {string} value
5329
+ * @param {?proto.clarifai.api.Worker|undefined} value
5330
+ * @return {!proto.clarifai.api.Annotation} returns this
5331
+ */
5332
+ proto.clarifai.api.Annotation.prototype.setWorker = function(value) {
5333
+ return jspb.Message.setWrapperField(this, 21, value);
5334
+ };
5335
+
5336
+
5337
+ /**
5338
+ * Clears the message field making it undefined.
5327
5339
  * @return {!proto.clarifai.api.Annotation} returns this
5328
5340
  */
5329
- proto.clarifai.api.Annotation.prototype.setWorkflowVersionId = function(value) {
5330
- return jspb.Message.setProto3StringField(this, 20, value);
5341
+ proto.clarifai.api.Annotation.prototype.clearWorker = function() {
5342
+ return this.setWorker(undefined);
5343
+ };
5344
+
5345
+
5346
+ /**
5347
+ * Returns whether this field is set.
5348
+ * @return {boolean}
5349
+ */
5350
+ proto.clarifai.api.Annotation.prototype.hasWorker = function() {
5351
+ return jspb.Message.getField(this, 21) != null;
5331
5352
  };
5332
5353
 
5333
5354