clarifai-web-grpc 10.10.0 → 10.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 10.10.0
1
+ 10.10.1
@@ -39643,7 +39643,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
39643
39643
  conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), proto.clarifai.api.TaskConcept.toObject, includeInstance),
39644
39644
  deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
39645
39645
  metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f),
39646
- priority: jspb.Message.getFieldWithDefault(msg, 23, 0)
39646
+ priority: jspb.Message.getFieldWithDefault(msg, 23, 0),
39647
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
39647
39648
  };
39648
39649
  if (includeInstance) {
39649
39650
  obj.$jspbMessageInstance = msg;
@@ -39774,6 +39775,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function (msg, reader) {
39774
39775
  var value = /** @type {!proto.clarifai.api.Task.TaskPriority} */ (reader.readEnum());
39775
39776
  msg.setPriority(value);
39776
39777
  break;
39778
+ case 24:
39779
+ var value = new google_protobuf_struct_pb.Struct;
39780
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
39781
+ msg.setMetadata(value);
39782
+ break;
39777
39783
  default:
39778
39784
  reader.skipField();
39779
39785
  break;
@@ -39887,6 +39893,10 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
39887
39893
  if (f !== 0.0) {
39888
39894
  writer.writeEnum(23, f);
39889
39895
  }
39896
+ f = message.getMetadata();
39897
+ if (f != null) {
39898
+ writer.writeMessage(24, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
39899
+ }
39890
39900
  };
39891
39901
  /**
39892
39902
  * @enum {number}
@@ -40384,6 +40394,34 @@ proto.clarifai.api.Task.prototype.getPriority = function () {
40384
40394
  proto.clarifai.api.Task.prototype.setPriority = function (value) {
40385
40395
  return jspb.Message.setProto3EnumField(this, 23, value);
40386
40396
  };
40397
+ /**
40398
+ * optional google.protobuf.Struct metadata = 24;
40399
+ * @return {?proto.google.protobuf.Struct}
40400
+ */
40401
+ proto.clarifai.api.Task.prototype.getMetadata = function () {
40402
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 24));
40403
+ };
40404
+ /**
40405
+ * @param {?proto.google.protobuf.Struct|undefined} value
40406
+ * @return {!proto.clarifai.api.Task} returns this
40407
+ */
40408
+ proto.clarifai.api.Task.prototype.setMetadata = function (value) {
40409
+ return jspb.Message.setWrapperField(this, 24, value);
40410
+ };
40411
+ /**
40412
+ * Clears the message field making it undefined.
40413
+ * @return {!proto.clarifai.api.Task} returns this
40414
+ */
40415
+ proto.clarifai.api.Task.prototype.clearMetadata = function () {
40416
+ return this.setMetadata(undefined);
40417
+ };
40418
+ /**
40419
+ * Returns whether this field is set.
40420
+ * @return {boolean}
40421
+ */
40422
+ proto.clarifai.api.Task.prototype.hasMetadata = function () {
40423
+ return jspb.Message.getField(this, 24) != null;
40424
+ };
40387
40425
  /**
40388
40426
  * List of repeated fields within this message type.
40389
40427
  * @private {!Array<number>}
@@ -39643,7 +39643,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
39643
39643
  conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), proto.clarifai.api.TaskConcept.toObject, includeInstance),
39644
39644
  deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
39645
39645
  metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f),
39646
- priority: jspb.Message.getFieldWithDefault(msg, 23, 0)
39646
+ priority: jspb.Message.getFieldWithDefault(msg, 23, 0),
39647
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
39647
39648
  };
39648
39649
  if (includeInstance) {
39649
39650
  obj.$jspbMessageInstance = msg;
@@ -39774,6 +39775,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function (msg, reader) {
39774
39775
  var value = /** @type {!proto.clarifai.api.Task.TaskPriority} */ (reader.readEnum());
39775
39776
  msg.setPriority(value);
39776
39777
  break;
39778
+ case 24:
39779
+ var value = new google_protobuf_struct_pb.Struct;
39780
+ reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
39781
+ msg.setMetadata(value);
39782
+ break;
39777
39783
  default:
39778
39784
  reader.skipField();
39779
39785
  break;
@@ -39887,6 +39893,10 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
39887
39893
  if (f !== 0.0) {
39888
39894
  writer.writeEnum(23, f);
39889
39895
  }
39896
+ f = message.getMetadata();
39897
+ if (f != null) {
39898
+ writer.writeMessage(24, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
39899
+ }
39890
39900
  };
39891
39901
  /**
39892
39902
  * @enum {number}
@@ -40384,6 +40394,34 @@ proto.clarifai.api.Task.prototype.getPriority = function () {
40384
40394
  proto.clarifai.api.Task.prototype.setPriority = function (value) {
40385
40395
  return jspb.Message.setProto3EnumField(this, 23, value);
40386
40396
  };
40397
+ /**
40398
+ * optional google.protobuf.Struct metadata = 24;
40399
+ * @return {?proto.google.protobuf.Struct}
40400
+ */
40401
+ proto.clarifai.api.Task.prototype.getMetadata = function () {
40402
+ return /** @type{?proto.google.protobuf.Struct} */ (jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 24));
40403
+ };
40404
+ /**
40405
+ * @param {?proto.google.protobuf.Struct|undefined} value
40406
+ * @return {!proto.clarifai.api.Task} returns this
40407
+ */
40408
+ proto.clarifai.api.Task.prototype.setMetadata = function (value) {
40409
+ return jspb.Message.setWrapperField(this, 24, value);
40410
+ };
40411
+ /**
40412
+ * Clears the message field making it undefined.
40413
+ * @return {!proto.clarifai.api.Task} returns this
40414
+ */
40415
+ proto.clarifai.api.Task.prototype.clearMetadata = function () {
40416
+ return this.setMetadata(undefined);
40417
+ };
40418
+ /**
40419
+ * Returns whether this field is set.
40420
+ * @return {boolean}
40421
+ */
40422
+ proto.clarifai.api.Task.prototype.hasMetadata = function () {
40423
+ return jspb.Message.getField(this, 24) != null;
40424
+ };
40387
40425
  /**
40388
40426
  * List of repeated fields within this message type.
40389
40427
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "10.10.0",
3
+ "version": "10.10.1",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -5826,6 +5826,11 @@ export class Task extends jspb.Message {
5826
5826
  getPriority(): Task.TaskPriority;
5827
5827
  setPriority(value: Task.TaskPriority): Task;
5828
5828
 
5829
+ getMetadata(): google_protobuf_struct_pb.Struct | undefined;
5830
+ setMetadata(value?: google_protobuf_struct_pb.Struct): Task;
5831
+ hasMetadata(): boolean;
5832
+ clearMetadata(): Task;
5833
+
5829
5834
  serializeBinary(): Uint8Array;
5830
5835
  toObject(includeInstance?: boolean): Task.AsObject;
5831
5836
  static toObject(includeInstance: boolean, msg: Task): Task.AsObject;
@@ -5858,6 +5863,7 @@ export namespace Task {
5858
5863
  deletePreviousAnnotations: boolean,
5859
5864
  metrics?: TaskMetrics.AsObject,
5860
5865
  priority: Task.TaskPriority,
5866
+ metadata?: google_protobuf_struct_pb.Struct.AsObject,
5861
5867
  }
5862
5868
 
5863
5869
  export enum TaskType {
@@ -49305,7 +49305,8 @@ proto.clarifai.api.Task.toObject = function(includeInstance, msg) {
49305
49305
  proto.clarifai.api.TaskConcept.toObject, includeInstance),
49306
49306
  deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
49307
49307
  metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f),
49308
- priority: jspb.Message.getFieldWithDefault(msg, 23, 0)
49308
+ priority: jspb.Message.getFieldWithDefault(msg, 23, 0),
49309
+ metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
49309
49310
  };
49310
49311
 
49311
49312
  if (includeInstance) {
@@ -49441,6 +49442,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) {
49441
49442
  var value = /** @type {!proto.clarifai.api.Task.TaskPriority} */ (reader.readEnum());
49442
49443
  msg.setPriority(value);
49443
49444
  break;
49445
+ case 24:
49446
+ var value = new google_protobuf_struct_pb.Struct;
49447
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
49448
+ msg.setMetadata(value);
49449
+ break;
49444
49450
  default:
49445
49451
  reader.skipField();
49446
49452
  break;
@@ -49635,6 +49641,14 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
49635
49641
  f
49636
49642
  );
49637
49643
  }
49644
+ f = message.getMetadata();
49645
+ if (f != null) {
49646
+ writer.writeMessage(
49647
+ 24,
49648
+ f,
49649
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
49650
+ );
49651
+ }
49638
49652
  };
49639
49653
 
49640
49654
 
@@ -50283,6 +50297,43 @@ proto.clarifai.api.Task.prototype.setPriority = function(value) {
50283
50297
  };
50284
50298
 
50285
50299
 
50300
+ /**
50301
+ * optional google.protobuf.Struct metadata = 24;
50302
+ * @return {?proto.google.protobuf.Struct}
50303
+ */
50304
+ proto.clarifai.api.Task.prototype.getMetadata = function() {
50305
+ return /** @type{?proto.google.protobuf.Struct} */ (
50306
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 24));
50307
+ };
50308
+
50309
+
50310
+ /**
50311
+ * @param {?proto.google.protobuf.Struct|undefined} value
50312
+ * @return {!proto.clarifai.api.Task} returns this
50313
+ */
50314
+ proto.clarifai.api.Task.prototype.setMetadata = function(value) {
50315
+ return jspb.Message.setWrapperField(this, 24, value);
50316
+ };
50317
+
50318
+
50319
+ /**
50320
+ * Clears the message field making it undefined.
50321
+ * @return {!proto.clarifai.api.Task} returns this
50322
+ */
50323
+ proto.clarifai.api.Task.prototype.clearMetadata = function() {
50324
+ return this.setMetadata(undefined);
50325
+ };
50326
+
50327
+
50328
+ /**
50329
+ * Returns whether this field is set.
50330
+ * @return {boolean}
50331
+ */
50332
+ proto.clarifai.api.Task.prototype.hasMetadata = function() {
50333
+ return jspb.Message.getField(this, 24) != null;
50334
+ };
50335
+
50336
+
50286
50337
 
50287
50338
  /**
50288
50339
  * List of repeated fields within this message type.