clarifai-web-grpc 10.1.4 → 10.1.5

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.1.4
1
+ 10.1.5
@@ -219,6 +219,7 @@ goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
219
219
  goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
220
220
  goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
221
221
  goog.exportSymbol('proto.clarifai.api.TaskInputSource.TaskInputSourceType', null, global);
222
+ goog.exportSymbol('proto.clarifai.api.TaskMetrics', null, global);
222
223
  goog.exportSymbol('proto.clarifai.api.TaskReview', null, global);
223
224
  goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global);
224
225
  goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, global);
@@ -3310,6 +3311,27 @@ if (goog.DEBUG && !COMPILED) {
3310
3311
  */
3311
3312
  proto.clarifai.api.TaskConcept.displayName = 'proto.clarifai.api.TaskConcept';
3312
3313
  }
3314
+ /**
3315
+ * Generated by JsPbCodeGenerator.
3316
+ * @param {Array=} opt_data Optional initial data array, typically from a
3317
+ * server response, or constructed directly in Javascript. The array is used
3318
+ * in place and becomes part of the constructed object. It is not cloned.
3319
+ * If no data is provided, the constructed object will be empty, but still
3320
+ * valid.
3321
+ * @extends {jspb.Message}
3322
+ * @constructor
3323
+ */
3324
+ proto.clarifai.api.TaskMetrics = function (opt_data) {
3325
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3326
+ };
3327
+ goog.inherits(proto.clarifai.api.TaskMetrics, jspb.Message);
3328
+ if (goog.DEBUG && !COMPILED) {
3329
+ /**
3330
+ * @public
3331
+ * @override
3332
+ */
3333
+ proto.clarifai.api.TaskMetrics.displayName = 'proto.clarifai.api.TaskMetrics';
3334
+ }
3313
3335
  /**
3314
3336
  * Generated by JsPbCodeGenerator.
3315
3337
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -37741,7 +37763,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
37741
37763
  userId: jspb.Message.getFieldWithDefault(msg, 17, ""),
37742
37764
  labelOrderId: jspb.Message.getFieldWithDefault(msg, 18, ""),
37743
37765
  conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), proto.clarifai.api.TaskConcept.toObject, includeInstance),
37744
- deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false)
37766
+ deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
37767
+ metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f)
37745
37768
  };
37746
37769
  if (includeInstance) {
37747
37770
  obj.$jspbMessageInstance = msg;
@@ -37863,6 +37886,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function (msg, reader) {
37863
37886
  var value = /** @type {boolean} */ (reader.readBool());
37864
37887
  msg.setDeletePreviousAnnotations(value);
37865
37888
  break;
37889
+ case 21:
37890
+ var value = new proto.clarifai.api.TaskMetrics;
37891
+ reader.readMessage(value, proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader);
37892
+ msg.setMetrics(value);
37893
+ break;
37866
37894
  default:
37867
37895
  reader.skipField();
37868
37896
  break;
@@ -37968,6 +37996,10 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
37968
37996
  if (f) {
37969
37997
  writer.writeBool(20, f);
37970
37998
  }
37999
+ f = message.getMetrics();
38000
+ if (f != null) {
38001
+ writer.writeMessage(21, f, proto.clarifai.api.TaskMetrics.serializeBinaryToWriter);
38002
+ }
37971
38003
  };
37972
38004
  /**
37973
38005
  * @enum {number}
@@ -38414,6 +38446,34 @@ proto.clarifai.api.Task.prototype.getDeletePreviousAnnotations = function () {
38414
38446
  proto.clarifai.api.Task.prototype.setDeletePreviousAnnotations = function (value) {
38415
38447
  return jspb.Message.setProto3BooleanField(this, 20, value);
38416
38448
  };
38449
+ /**
38450
+ * optional TaskMetrics metrics = 21;
38451
+ * @return {?proto.clarifai.api.TaskMetrics}
38452
+ */
38453
+ proto.clarifai.api.Task.prototype.getMetrics = function () {
38454
+ return /** @type{?proto.clarifai.api.TaskMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TaskMetrics, 21));
38455
+ };
38456
+ /**
38457
+ * @param {?proto.clarifai.api.TaskMetrics|undefined} value
38458
+ * @return {!proto.clarifai.api.Task} returns this
38459
+ */
38460
+ proto.clarifai.api.Task.prototype.setMetrics = function (value) {
38461
+ return jspb.Message.setWrapperField(this, 21, value);
38462
+ };
38463
+ /**
38464
+ * Clears the message field making it undefined.
38465
+ * @return {!proto.clarifai.api.Task} returns this
38466
+ */
38467
+ proto.clarifai.api.Task.prototype.clearMetrics = function () {
38468
+ return this.setMetrics(undefined);
38469
+ };
38470
+ /**
38471
+ * Returns whether this field is set.
38472
+ * @return {boolean}
38473
+ */
38474
+ proto.clarifai.api.Task.prototype.hasMetrics = function () {
38475
+ return jspb.Message.getField(this, 21) != null;
38476
+ };
38417
38477
  /**
38418
38478
  * List of repeated fields within this message type.
38419
38479
  * @private {!Array<number>}
@@ -40584,6 +40644,113 @@ proto.clarifai.api.TaskConcept.prototype.clearAutoAnnotationConfig = function ()
40584
40644
  proto.clarifai.api.TaskConcept.prototype.hasAutoAnnotationConfig = function () {
40585
40645
  return jspb.Message.getField(this, 2) != null;
40586
40646
  };
40647
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40648
+ /**
40649
+ * Creates an object representation of this proto.
40650
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40651
+ * Optional fields that are not set will be set to undefined.
40652
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40653
+ * For the list of reserved names please see:
40654
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40655
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40656
+ * JSPB instance for transitional soy proto support:
40657
+ * http://goto/soy-param-migration
40658
+ * @return {!Object}
40659
+ */
40660
+ proto.clarifai.api.TaskMetrics.prototype.toObject = function (opt_includeInstance) {
40661
+ return proto.clarifai.api.TaskMetrics.toObject(opt_includeInstance, this);
40662
+ };
40663
+ /**
40664
+ * Static version of the {@see toObject} method.
40665
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40666
+ * the JSPB instance for transitional soy proto support:
40667
+ * http://goto/soy-param-migration
40668
+ * @param {!proto.clarifai.api.TaskMetrics} msg The msg instance to transform.
40669
+ * @return {!Object}
40670
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40671
+ */
40672
+ proto.clarifai.api.TaskMetrics.toObject = function (includeInstance, msg) {
40673
+ var f, obj = {
40674
+ estimatedLabeledInputsCount: jspb.Message.getFieldWithDefault(msg, 1, 0)
40675
+ };
40676
+ if (includeInstance) {
40677
+ obj.$jspbMessageInstance = msg;
40678
+ }
40679
+ return obj;
40680
+ };
40681
+ }
40682
+ /**
40683
+ * Deserializes binary data (in protobuf wire format).
40684
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40685
+ * @return {!proto.clarifai.api.TaskMetrics}
40686
+ */
40687
+ proto.clarifai.api.TaskMetrics.deserializeBinary = function (bytes) {
40688
+ var reader = new jspb.BinaryReader(bytes);
40689
+ var msg = new proto.clarifai.api.TaskMetrics;
40690
+ return proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader(msg, reader);
40691
+ };
40692
+ /**
40693
+ * Deserializes binary data (in protobuf wire format) from the
40694
+ * given reader into the given message object.
40695
+ * @param {!proto.clarifai.api.TaskMetrics} msg The message object to deserialize into.
40696
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40697
+ * @return {!proto.clarifai.api.TaskMetrics}
40698
+ */
40699
+ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function (msg, reader) {
40700
+ while (reader.nextField()) {
40701
+ if (reader.isEndGroup()) {
40702
+ break;
40703
+ }
40704
+ var field = reader.getFieldNumber();
40705
+ switch (field) {
40706
+ case 1:
40707
+ var value = /** @type {number} */ (reader.readUint64());
40708
+ msg.setEstimatedLabeledInputsCount(value);
40709
+ break;
40710
+ default:
40711
+ reader.skipField();
40712
+ break;
40713
+ }
40714
+ }
40715
+ return msg;
40716
+ };
40717
+ /**
40718
+ * Serializes the message to binary data (in protobuf wire format).
40719
+ * @return {!Uint8Array}
40720
+ */
40721
+ proto.clarifai.api.TaskMetrics.prototype.serializeBinary = function () {
40722
+ var writer = new jspb.BinaryWriter();
40723
+ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter(this, writer);
40724
+ return writer.getResultBuffer();
40725
+ };
40726
+ /**
40727
+ * Serializes the given message to binary data (in protobuf wire
40728
+ * format), writing to the given BinaryWriter.
40729
+ * @param {!proto.clarifai.api.TaskMetrics} message
40730
+ * @param {!jspb.BinaryWriter} writer
40731
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40732
+ */
40733
+ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function (message, writer) {
40734
+ var f = undefined;
40735
+ f = message.getEstimatedLabeledInputsCount();
40736
+ if (f !== 0) {
40737
+ writer.writeUint64(1, f);
40738
+ }
40739
+ };
40740
+ /**
40741
+ * optional uint64 estimated_labeled_inputs_count = 1;
40742
+ * @return {number}
40743
+ */
40744
+ proto.clarifai.api.TaskMetrics.prototype.getEstimatedLabeledInputsCount = function () {
40745
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
40746
+ };
40747
+ /**
40748
+ * @param {number} value
40749
+ * @return {!proto.clarifai.api.TaskMetrics} returns this
40750
+ */
40751
+ proto.clarifai.api.TaskMetrics.prototype.setEstimatedLabeledInputsCount = function (value) {
40752
+ return jspb.Message.setProto3IntField(this, 1, value);
40753
+ };
40587
40754
  if (jspb.Message.GENERATE_TO_OBJECT) {
40588
40755
  /**
40589
40756
  * Creates an object representation of this proto.
@@ -51013,7 +51180,8 @@ proto.clarifai.api.EvaluationType = {
51013
51180
  DETECTION: 2,
51014
51181
  SEGMENTATION: 3,
51015
51182
  CLUSTERING: 4,
51016
- TRACKER: 5
51183
+ TRACKER: 5,
51184
+ GENERATION: 6
51017
51185
  };
51018
51186
  /**
51019
51187
  * @enum {number}
@@ -356,6 +356,7 @@ proto.clarifai.api.status.StatusCode = {
356
356
  INTERNAL_SERVER_ISSUE: 98004,
357
357
  INTERNAL_FETCHING_ISSUE: 98005,
358
358
  INTERNAL_DATABASE_ISSUE: 98006,
359
+ INTERNAL_CONTEXT_CANCELED: 98008,
359
360
  INTERNAL_UNEXPECTED_TIMEOUT: 98009,
360
361
  INTERNAL_UNEXPECTED_V1: 98010,
361
362
  INTERNAL_UNEXPECTED_PANIC: 98011,
@@ -219,6 +219,7 @@ goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
219
219
  goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
220
220
  goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
221
221
  goog.exportSymbol('proto.clarifai.api.TaskInputSource.TaskInputSourceType', null, global);
222
+ goog.exportSymbol('proto.clarifai.api.TaskMetrics', null, global);
222
223
  goog.exportSymbol('proto.clarifai.api.TaskReview', null, global);
223
224
  goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global);
224
225
  goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, global);
@@ -3310,6 +3311,27 @@ if (goog.DEBUG && !COMPILED) {
3310
3311
  */
3311
3312
  proto.clarifai.api.TaskConcept.displayName = 'proto.clarifai.api.TaskConcept';
3312
3313
  }
3314
+ /**
3315
+ * Generated by JsPbCodeGenerator.
3316
+ * @param {Array=} opt_data Optional initial data array, typically from a
3317
+ * server response, or constructed directly in Javascript. The array is used
3318
+ * in place and becomes part of the constructed object. It is not cloned.
3319
+ * If no data is provided, the constructed object will be empty, but still
3320
+ * valid.
3321
+ * @extends {jspb.Message}
3322
+ * @constructor
3323
+ */
3324
+ proto.clarifai.api.TaskMetrics = function (opt_data) {
3325
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3326
+ };
3327
+ goog.inherits(proto.clarifai.api.TaskMetrics, jspb.Message);
3328
+ if (goog.DEBUG && !COMPILED) {
3329
+ /**
3330
+ * @public
3331
+ * @override
3332
+ */
3333
+ proto.clarifai.api.TaskMetrics.displayName = 'proto.clarifai.api.TaskMetrics';
3334
+ }
3313
3335
  /**
3314
3336
  * Generated by JsPbCodeGenerator.
3315
3337
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -37741,7 +37763,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
37741
37763
  userId: jspb.Message.getFieldWithDefault(msg, 17, ""),
37742
37764
  labelOrderId: jspb.Message.getFieldWithDefault(msg, 18, ""),
37743
37765
  conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), proto.clarifai.api.TaskConcept.toObject, includeInstance),
37744
- deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false)
37766
+ deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
37767
+ metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f)
37745
37768
  };
37746
37769
  if (includeInstance) {
37747
37770
  obj.$jspbMessageInstance = msg;
@@ -37863,6 +37886,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function (msg, reader) {
37863
37886
  var value = /** @type {boolean} */ (reader.readBool());
37864
37887
  msg.setDeletePreviousAnnotations(value);
37865
37888
  break;
37889
+ case 21:
37890
+ var value = new proto.clarifai.api.TaskMetrics;
37891
+ reader.readMessage(value, proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader);
37892
+ msg.setMetrics(value);
37893
+ break;
37866
37894
  default:
37867
37895
  reader.skipField();
37868
37896
  break;
@@ -37968,6 +37996,10 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function (message, writer) {
37968
37996
  if (f) {
37969
37997
  writer.writeBool(20, f);
37970
37998
  }
37999
+ f = message.getMetrics();
38000
+ if (f != null) {
38001
+ writer.writeMessage(21, f, proto.clarifai.api.TaskMetrics.serializeBinaryToWriter);
38002
+ }
37971
38003
  };
37972
38004
  /**
37973
38005
  * @enum {number}
@@ -38414,6 +38446,34 @@ proto.clarifai.api.Task.prototype.getDeletePreviousAnnotations = function () {
38414
38446
  proto.clarifai.api.Task.prototype.setDeletePreviousAnnotations = function (value) {
38415
38447
  return jspb.Message.setProto3BooleanField(this, 20, value);
38416
38448
  };
38449
+ /**
38450
+ * optional TaskMetrics metrics = 21;
38451
+ * @return {?proto.clarifai.api.TaskMetrics}
38452
+ */
38453
+ proto.clarifai.api.Task.prototype.getMetrics = function () {
38454
+ return /** @type{?proto.clarifai.api.TaskMetrics} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.TaskMetrics, 21));
38455
+ };
38456
+ /**
38457
+ * @param {?proto.clarifai.api.TaskMetrics|undefined} value
38458
+ * @return {!proto.clarifai.api.Task} returns this
38459
+ */
38460
+ proto.clarifai.api.Task.prototype.setMetrics = function (value) {
38461
+ return jspb.Message.setWrapperField(this, 21, value);
38462
+ };
38463
+ /**
38464
+ * Clears the message field making it undefined.
38465
+ * @return {!proto.clarifai.api.Task} returns this
38466
+ */
38467
+ proto.clarifai.api.Task.prototype.clearMetrics = function () {
38468
+ return this.setMetrics(undefined);
38469
+ };
38470
+ /**
38471
+ * Returns whether this field is set.
38472
+ * @return {boolean}
38473
+ */
38474
+ proto.clarifai.api.Task.prototype.hasMetrics = function () {
38475
+ return jspb.Message.getField(this, 21) != null;
38476
+ };
38417
38477
  /**
38418
38478
  * List of repeated fields within this message type.
38419
38479
  * @private {!Array<number>}
@@ -40584,6 +40644,113 @@ proto.clarifai.api.TaskConcept.prototype.clearAutoAnnotationConfig = function ()
40584
40644
  proto.clarifai.api.TaskConcept.prototype.hasAutoAnnotationConfig = function () {
40585
40645
  return jspb.Message.getField(this, 2) != null;
40586
40646
  };
40647
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40648
+ /**
40649
+ * Creates an object representation of this proto.
40650
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40651
+ * Optional fields that are not set will be set to undefined.
40652
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40653
+ * For the list of reserved names please see:
40654
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40655
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40656
+ * JSPB instance for transitional soy proto support:
40657
+ * http://goto/soy-param-migration
40658
+ * @return {!Object}
40659
+ */
40660
+ proto.clarifai.api.TaskMetrics.prototype.toObject = function (opt_includeInstance) {
40661
+ return proto.clarifai.api.TaskMetrics.toObject(opt_includeInstance, this);
40662
+ };
40663
+ /**
40664
+ * Static version of the {@see toObject} method.
40665
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40666
+ * the JSPB instance for transitional soy proto support:
40667
+ * http://goto/soy-param-migration
40668
+ * @param {!proto.clarifai.api.TaskMetrics} msg The msg instance to transform.
40669
+ * @return {!Object}
40670
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40671
+ */
40672
+ proto.clarifai.api.TaskMetrics.toObject = function (includeInstance, msg) {
40673
+ var f, obj = {
40674
+ estimatedLabeledInputsCount: jspb.Message.getFieldWithDefault(msg, 1, 0)
40675
+ };
40676
+ if (includeInstance) {
40677
+ obj.$jspbMessageInstance = msg;
40678
+ }
40679
+ return obj;
40680
+ };
40681
+ }
40682
+ /**
40683
+ * Deserializes binary data (in protobuf wire format).
40684
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40685
+ * @return {!proto.clarifai.api.TaskMetrics}
40686
+ */
40687
+ proto.clarifai.api.TaskMetrics.deserializeBinary = function (bytes) {
40688
+ var reader = new jspb.BinaryReader(bytes);
40689
+ var msg = new proto.clarifai.api.TaskMetrics;
40690
+ return proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader(msg, reader);
40691
+ };
40692
+ /**
40693
+ * Deserializes binary data (in protobuf wire format) from the
40694
+ * given reader into the given message object.
40695
+ * @param {!proto.clarifai.api.TaskMetrics} msg The message object to deserialize into.
40696
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40697
+ * @return {!proto.clarifai.api.TaskMetrics}
40698
+ */
40699
+ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function (msg, reader) {
40700
+ while (reader.nextField()) {
40701
+ if (reader.isEndGroup()) {
40702
+ break;
40703
+ }
40704
+ var field = reader.getFieldNumber();
40705
+ switch (field) {
40706
+ case 1:
40707
+ var value = /** @type {number} */ (reader.readUint64());
40708
+ msg.setEstimatedLabeledInputsCount(value);
40709
+ break;
40710
+ default:
40711
+ reader.skipField();
40712
+ break;
40713
+ }
40714
+ }
40715
+ return msg;
40716
+ };
40717
+ /**
40718
+ * Serializes the message to binary data (in protobuf wire format).
40719
+ * @return {!Uint8Array}
40720
+ */
40721
+ proto.clarifai.api.TaskMetrics.prototype.serializeBinary = function () {
40722
+ var writer = new jspb.BinaryWriter();
40723
+ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter(this, writer);
40724
+ return writer.getResultBuffer();
40725
+ };
40726
+ /**
40727
+ * Serializes the given message to binary data (in protobuf wire
40728
+ * format), writing to the given BinaryWriter.
40729
+ * @param {!proto.clarifai.api.TaskMetrics} message
40730
+ * @param {!jspb.BinaryWriter} writer
40731
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40732
+ */
40733
+ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function (message, writer) {
40734
+ var f = undefined;
40735
+ f = message.getEstimatedLabeledInputsCount();
40736
+ if (f !== 0) {
40737
+ writer.writeUint64(1, f);
40738
+ }
40739
+ };
40740
+ /**
40741
+ * optional uint64 estimated_labeled_inputs_count = 1;
40742
+ * @return {number}
40743
+ */
40744
+ proto.clarifai.api.TaskMetrics.prototype.getEstimatedLabeledInputsCount = function () {
40745
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
40746
+ };
40747
+ /**
40748
+ * @param {number} value
40749
+ * @return {!proto.clarifai.api.TaskMetrics} returns this
40750
+ */
40751
+ proto.clarifai.api.TaskMetrics.prototype.setEstimatedLabeledInputsCount = function (value) {
40752
+ return jspb.Message.setProto3IntField(this, 1, value);
40753
+ };
40587
40754
  if (jspb.Message.GENERATE_TO_OBJECT) {
40588
40755
  /**
40589
40756
  * Creates an object representation of this proto.
@@ -51013,7 +51180,8 @@ proto.clarifai.api.EvaluationType = {
51013
51180
  DETECTION: 2,
51014
51181
  SEGMENTATION: 3,
51015
51182
  CLUSTERING: 4,
51016
- TRACKER: 5
51183
+ TRACKER: 5,
51184
+ GENERATION: 6
51017
51185
  };
51018
51186
  /**
51019
51187
  * @enum {number}
@@ -356,6 +356,7 @@ proto.clarifai.api.status.StatusCode = {
356
356
  INTERNAL_SERVER_ISSUE: 98004,
357
357
  INTERNAL_FETCHING_ISSUE: 98005,
358
358
  INTERNAL_DATABASE_ISSUE: 98006,
359
+ INTERNAL_CONTEXT_CANCELED: 98008,
359
360
  INTERNAL_UNEXPECTED_TIMEOUT: 98009,
360
361
  INTERNAL_UNEXPECTED_V1: 98010,
361
362
  INTERNAL_UNEXPECTED_PANIC: 98011,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "10.1.4",
3
+ "version": "10.1.5",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -5576,6 +5576,11 @@ export class Task extends jspb.Message {
5576
5576
  getDeletePreviousAnnotations(): boolean;
5577
5577
  setDeletePreviousAnnotations(value: boolean): Task;
5578
5578
 
5579
+ getMetrics(): TaskMetrics | undefined;
5580
+ setMetrics(value?: TaskMetrics): Task;
5581
+ hasMetrics(): boolean;
5582
+ clearMetrics(): Task;
5583
+
5579
5584
  serializeBinary(): Uint8Array;
5580
5585
  toObject(includeInstance?: boolean): Task.AsObject;
5581
5586
  static toObject(includeInstance: boolean, msg: Task): Task.AsObject;
@@ -5606,6 +5611,7 @@ export namespace Task {
5606
5611
  labelOrderId: string,
5607
5612
  conceptsList: Array<TaskConcept.AsObject>,
5608
5613
  deletePreviousAnnotations: boolean,
5614
+ metrics?: TaskMetrics.AsObject,
5609
5615
  }
5610
5616
 
5611
5617
  export enum TaskType {
@@ -6001,6 +6007,24 @@ export namespace TaskConcept {
6001
6007
  }
6002
6008
  }
6003
6009
 
6010
+ export class TaskMetrics extends jspb.Message {
6011
+ getEstimatedLabeledInputsCount(): number;
6012
+ setEstimatedLabeledInputsCount(value: number): TaskMetrics;
6013
+
6014
+ serializeBinary(): Uint8Array;
6015
+ toObject(includeInstance?: boolean): TaskMetrics.AsObject;
6016
+ static toObject(includeInstance: boolean, msg: TaskMetrics): TaskMetrics.AsObject;
6017
+ static serializeBinaryToWriter(message: TaskMetrics, writer: jspb.BinaryWriter): void;
6018
+ static deserializeBinary(bytes: Uint8Array): TaskMetrics;
6019
+ static deserializeBinaryFromReader(message: TaskMetrics, reader: jspb.BinaryReader): TaskMetrics;
6020
+ }
6021
+
6022
+ export namespace TaskMetrics {
6023
+ export type AsObject = {
6024
+ estimatedLabeledInputsCount: number,
6025
+ }
6026
+ }
6027
+
6004
6028
  export class Collector extends jspb.Message {
6005
6029
  getId(): string;
6006
6030
  setId(value: string): Collector;
@@ -7792,6 +7816,7 @@ export enum EvaluationType {
7792
7816
  SEGMENTATION = 3,
7793
7817
  CLUSTERING = 4,
7794
7818
  TRACKER = 5,
7819
+ GENERATION = 6,
7795
7820
  }
7796
7821
  export enum APIEventType {
7797
7822
  API_EVENT_TYPE_NOT_SET = 0,
@@ -221,6 +221,7 @@ goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global);
221
221
  goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global);
222
222
  goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global);
223
223
  goog.exportSymbol('proto.clarifai.api.TaskInputSource.TaskInputSourceType', null, global);
224
+ goog.exportSymbol('proto.clarifai.api.TaskMetrics', null, global);
224
225
  goog.exportSymbol('proto.clarifai.api.TaskReview', null, global);
225
226
  goog.exportSymbol('proto.clarifai.api.TaskReview.StrategyInfoCase', null, global);
226
227
  goog.exportSymbol('proto.clarifai.api.TaskReview.TaskReviewStrategy', null, global);
@@ -3312,6 +3313,27 @@ if (goog.DEBUG && !COMPILED) {
3312
3313
  */
3313
3314
  proto.clarifai.api.TaskConcept.displayName = 'proto.clarifai.api.TaskConcept';
3314
3315
  }
3316
+ /**
3317
+ * Generated by JsPbCodeGenerator.
3318
+ * @param {Array=} opt_data Optional initial data array, typically from a
3319
+ * server response, or constructed directly in Javascript. The array is used
3320
+ * in place and becomes part of the constructed object. It is not cloned.
3321
+ * If no data is provided, the constructed object will be empty, but still
3322
+ * valid.
3323
+ * @extends {jspb.Message}
3324
+ * @constructor
3325
+ */
3326
+ proto.clarifai.api.TaskMetrics = function(opt_data) {
3327
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3328
+ };
3329
+ goog.inherits(proto.clarifai.api.TaskMetrics, jspb.Message);
3330
+ if (goog.DEBUG && !COMPILED) {
3331
+ /**
3332
+ * @public
3333
+ * @override
3334
+ */
3335
+ proto.clarifai.api.TaskMetrics.displayName = 'proto.clarifai.api.TaskMetrics';
3336
+ }
3315
3337
  /**
3316
3338
  * Generated by JsPbCodeGenerator.
3317
3339
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -47020,7 +47042,8 @@ proto.clarifai.api.Task.toObject = function(includeInstance, msg) {
47020
47042
  labelOrderId: jspb.Message.getFieldWithDefault(msg, 18, ""),
47021
47043
  conceptsList: jspb.Message.toObjectList(msg.getConceptsList(),
47022
47044
  proto.clarifai.api.TaskConcept.toObject, includeInstance),
47023
- deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false)
47045
+ deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
47046
+ metrics: (f = msg.getMetrics()) && proto.clarifai.api.TaskMetrics.toObject(includeInstance, f)
47024
47047
  };
47025
47048
 
47026
47049
  if (includeInstance) {
@@ -47147,6 +47170,11 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) {
47147
47170
  var value = /** @type {boolean} */ (reader.readBool());
47148
47171
  msg.setDeletePreviousAnnotations(value);
47149
47172
  break;
47173
+ case 21:
47174
+ var value = new proto.clarifai.api.TaskMetrics;
47175
+ reader.readMessage(value,proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader);
47176
+ msg.setMetrics(value);
47177
+ break;
47150
47178
  default:
47151
47179
  reader.skipField();
47152
47180
  break;
@@ -47326,6 +47354,14 @@ proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) {
47326
47354
  f
47327
47355
  );
47328
47356
  }
47357
+ f = message.getMetrics();
47358
+ if (f != null) {
47359
+ writer.writeMessage(
47360
+ 21,
47361
+ f,
47362
+ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter
47363
+ );
47364
+ }
47329
47365
  };
47330
47366
 
47331
47367
 
@@ -47909,6 +47945,43 @@ proto.clarifai.api.Task.prototype.setDeletePreviousAnnotations = function(value)
47909
47945
  };
47910
47946
 
47911
47947
 
47948
+ /**
47949
+ * optional TaskMetrics metrics = 21;
47950
+ * @return {?proto.clarifai.api.TaskMetrics}
47951
+ */
47952
+ proto.clarifai.api.Task.prototype.getMetrics = function() {
47953
+ return /** @type{?proto.clarifai.api.TaskMetrics} */ (
47954
+ jspb.Message.getWrapperField(this, proto.clarifai.api.TaskMetrics, 21));
47955
+ };
47956
+
47957
+
47958
+ /**
47959
+ * @param {?proto.clarifai.api.TaskMetrics|undefined} value
47960
+ * @return {!proto.clarifai.api.Task} returns this
47961
+ */
47962
+ proto.clarifai.api.Task.prototype.setMetrics = function(value) {
47963
+ return jspb.Message.setWrapperField(this, 21, value);
47964
+ };
47965
+
47966
+
47967
+ /**
47968
+ * Clears the message field making it undefined.
47969
+ * @return {!proto.clarifai.api.Task} returns this
47970
+ */
47971
+ proto.clarifai.api.Task.prototype.clearMetrics = function() {
47972
+ return this.setMetrics(undefined);
47973
+ };
47974
+
47975
+
47976
+ /**
47977
+ * Returns whether this field is set.
47978
+ * @return {boolean}
47979
+ */
47980
+ proto.clarifai.api.Task.prototype.hasMetrics = function() {
47981
+ return jspb.Message.getField(this, 21) != null;
47982
+ };
47983
+
47984
+
47912
47985
 
47913
47986
  /**
47914
47987
  * List of repeated fields within this message type.
@@ -50628,6 +50701,136 @@ proto.clarifai.api.TaskConcept.prototype.hasAutoAnnotationConfig = function() {
50628
50701
 
50629
50702
 
50630
50703
 
50704
+ if (jspb.Message.GENERATE_TO_OBJECT) {
50705
+ /**
50706
+ * Creates an object representation of this proto.
50707
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
50708
+ * Optional fields that are not set will be set to undefined.
50709
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50710
+ * For the list of reserved names please see:
50711
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50712
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50713
+ * JSPB instance for transitional soy proto support:
50714
+ * http://goto/soy-param-migration
50715
+ * @return {!Object}
50716
+ */
50717
+ proto.clarifai.api.TaskMetrics.prototype.toObject = function(opt_includeInstance) {
50718
+ return proto.clarifai.api.TaskMetrics.toObject(opt_includeInstance, this);
50719
+ };
50720
+
50721
+
50722
+ /**
50723
+ * Static version of the {@see toObject} method.
50724
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50725
+ * the JSPB instance for transitional soy proto support:
50726
+ * http://goto/soy-param-migration
50727
+ * @param {!proto.clarifai.api.TaskMetrics} msg The msg instance to transform.
50728
+ * @return {!Object}
50729
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50730
+ */
50731
+ proto.clarifai.api.TaskMetrics.toObject = function(includeInstance, msg) {
50732
+ var f, obj = {
50733
+ estimatedLabeledInputsCount: jspb.Message.getFieldWithDefault(msg, 1, 0)
50734
+ };
50735
+
50736
+ if (includeInstance) {
50737
+ obj.$jspbMessageInstance = msg;
50738
+ }
50739
+ return obj;
50740
+ };
50741
+ }
50742
+
50743
+
50744
+ /**
50745
+ * Deserializes binary data (in protobuf wire format).
50746
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
50747
+ * @return {!proto.clarifai.api.TaskMetrics}
50748
+ */
50749
+ proto.clarifai.api.TaskMetrics.deserializeBinary = function(bytes) {
50750
+ var reader = new jspb.BinaryReader(bytes);
50751
+ var msg = new proto.clarifai.api.TaskMetrics;
50752
+ return proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader(msg, reader);
50753
+ };
50754
+
50755
+
50756
+ /**
50757
+ * Deserializes binary data (in protobuf wire format) from the
50758
+ * given reader into the given message object.
50759
+ * @param {!proto.clarifai.api.TaskMetrics} msg The message object to deserialize into.
50760
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50761
+ * @return {!proto.clarifai.api.TaskMetrics}
50762
+ */
50763
+ proto.clarifai.api.TaskMetrics.deserializeBinaryFromReader = function(msg, reader) {
50764
+ while (reader.nextField()) {
50765
+ if (reader.isEndGroup()) {
50766
+ break;
50767
+ }
50768
+ var field = reader.getFieldNumber();
50769
+ switch (field) {
50770
+ case 1:
50771
+ var value = /** @type {number} */ (reader.readUint64());
50772
+ msg.setEstimatedLabeledInputsCount(value);
50773
+ break;
50774
+ default:
50775
+ reader.skipField();
50776
+ break;
50777
+ }
50778
+ }
50779
+ return msg;
50780
+ };
50781
+
50782
+
50783
+ /**
50784
+ * Serializes the message to binary data (in protobuf wire format).
50785
+ * @return {!Uint8Array}
50786
+ */
50787
+ proto.clarifai.api.TaskMetrics.prototype.serializeBinary = function() {
50788
+ var writer = new jspb.BinaryWriter();
50789
+ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter(this, writer);
50790
+ return writer.getResultBuffer();
50791
+ };
50792
+
50793
+
50794
+ /**
50795
+ * Serializes the given message to binary data (in protobuf wire
50796
+ * format), writing to the given BinaryWriter.
50797
+ * @param {!proto.clarifai.api.TaskMetrics} message
50798
+ * @param {!jspb.BinaryWriter} writer
50799
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50800
+ */
50801
+ proto.clarifai.api.TaskMetrics.serializeBinaryToWriter = function(message, writer) {
50802
+ var f = undefined;
50803
+ f = message.getEstimatedLabeledInputsCount();
50804
+ if (f !== 0) {
50805
+ writer.writeUint64(
50806
+ 1,
50807
+ f
50808
+ );
50809
+ }
50810
+ };
50811
+
50812
+
50813
+ /**
50814
+ * optional uint64 estimated_labeled_inputs_count = 1;
50815
+ * @return {number}
50816
+ */
50817
+ proto.clarifai.api.TaskMetrics.prototype.getEstimatedLabeledInputsCount = function() {
50818
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
50819
+ };
50820
+
50821
+
50822
+ /**
50823
+ * @param {number} value
50824
+ * @return {!proto.clarifai.api.TaskMetrics} returns this
50825
+ */
50826
+ proto.clarifai.api.TaskMetrics.prototype.setEstimatedLabeledInputsCount = function(value) {
50827
+ return jspb.Message.setProto3IntField(this, 1, value);
50828
+ };
50829
+
50830
+
50831
+
50832
+
50833
+
50631
50834
  if (jspb.Message.GENERATE_TO_OBJECT) {
50632
50835
  /**
50633
50836
  * Creates an object representation of this proto.
@@ -63817,7 +64020,8 @@ proto.clarifai.api.EvaluationType = {
63817
64020
  DETECTION: 2,
63818
64021
  SEGMENTATION: 3,
63819
64022
  CLUSTERING: 4,
63820
- TRACKER: 5
64023
+ TRACKER: 5,
64024
+ GENERATION: 6
63821
64025
  };
63822
64026
 
63823
64027
  /**
@@ -335,6 +335,7 @@ export enum StatusCode {
335
335
  INTERNAL_SERVER_ISSUE = 98004,
336
336
  INTERNAL_FETCHING_ISSUE = 98005,
337
337
  INTERNAL_DATABASE_ISSUE = 98006,
338
+ INTERNAL_CONTEXT_CANCELED = 98008,
338
339
  INTERNAL_UNEXPECTED_TIMEOUT = 98009,
339
340
  INTERNAL_UNEXPECTED_V1 = 98010,
340
341
  INTERNAL_UNEXPECTED_PANIC = 98011,
@@ -358,6 +358,7 @@ proto.clarifai.api.status.StatusCode = {
358
358
  INTERNAL_SERVER_ISSUE: 98004,
359
359
  INTERNAL_FETCHING_ISSUE: 98005,
360
360
  INTERNAL_DATABASE_ISSUE: 98006,
361
+ INTERNAL_CONTEXT_CANCELED: 98008,
361
362
  INTERNAL_UNEXPECTED_TIMEOUT: 98009,
362
363
  INTERNAL_UNEXPECTED_V1: 98010,
363
364
  INTERNAL_UNEXPECTED_PANIC: 98011,