clarifai-web-grpc 10.11.2 → 11.0.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.11.2
1
+ 11.0.1
@@ -70,6 +70,7 @@ goog.exportSymbol('proto.clarifai.api.BookmarkOrigin.BookmarkType', null, global
70
70
  goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global);
71
71
  goog.exportSymbol('proto.clarifai.api.BuildInfo', null, global);
72
72
  goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global);
73
+ goog.exportSymbol('proto.clarifai.api.BulkOperation.AnnotationSourceCase', null, global);
73
74
  goog.exportSymbol('proto.clarifai.api.BulkOperation.InputSourceCase', null, global);
74
75
  goog.exportSymbol('proto.clarifai.api.CloudProvider', null, global);
75
76
  goog.exportSymbol('proto.clarifai.api.Cluster', null, global);
@@ -115,6 +116,7 @@ goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroup', null, global)
115
116
  goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroupType', null, global);
116
117
  goog.exportSymbol('proto.clarifai.api.DatasetVersionProcessingInfo', null, global);
117
118
  goog.exportSymbol('proto.clarifai.api.DatasetVersionRequestOrigin', null, global);
119
+ goog.exportSymbol('proto.clarifai.api.DeleteAnnotations', null, global);
118
120
  goog.exportSymbol('proto.clarifai.api.DeleteConcepts', null, global);
119
121
  goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global);
120
122
  goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global);
@@ -204,6 +206,7 @@ goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, glob
204
206
  goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
205
207
  goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
206
208
  goog.exportSymbol('proto.clarifai.api.Operation', null, global);
209
+ goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
207
210
  goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
208
211
  goog.exportSymbol('proto.clarifai.api.Output', null, global);
209
212
  goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global);
@@ -3510,7 +3513,7 @@ if (goog.DEBUG && !COMPILED) {
3510
3513
  * @constructor
3511
3514
  */
3512
3515
  proto.clarifai.api.TaskReviewMetrics = function (opt_data) {
3513
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3516
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.TaskReviewMetrics.repeatedFields_, null);
3514
3517
  };
3515
3518
  goog.inherits(proto.clarifai.api.TaskReviewMetrics, jspb.Message);
3516
3519
  if (goog.DEBUG && !COMPILED) {
@@ -4297,6 +4300,27 @@ if (goog.DEBUG && !COMPILED) {
4297
4300
  */
4298
4301
  proto.clarifai.api.DatasetSplit.displayName = 'proto.clarifai.api.DatasetSplit';
4299
4302
  }
4303
+ /**
4304
+ * Generated by JsPbCodeGenerator.
4305
+ * @param {Array=} opt_data Optional initial data array, typically from a
4306
+ * server response, or constructed directly in Javascript. The array is used
4307
+ * in place and becomes part of the constructed object. It is not cloned.
4308
+ * If no data is provided, the constructed object will be empty, but still
4309
+ * valid.
4310
+ * @extends {jspb.Message}
4311
+ * @constructor
4312
+ */
4313
+ proto.clarifai.api.DeleteAnnotations = function (opt_data) {
4314
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4315
+ };
4316
+ goog.inherits(proto.clarifai.api.DeleteAnnotations, jspb.Message);
4317
+ if (goog.DEBUG && !COMPILED) {
4318
+ /**
4319
+ * @public
4320
+ * @override
4321
+ */
4322
+ proto.clarifai.api.DeleteAnnotations.displayName = 'proto.clarifai.api.DeleteAnnotations';
4323
+ }
4300
4324
  /**
4301
4325
  * Generated by JsPbCodeGenerator.
4302
4326
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -15059,7 +15083,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
15059
15083
  allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
15060
15084
  hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f),
15061
15085
  imageInfo: (f = msg.getImageInfo()) && proto.clarifai.api.ImageInfo.toObject(includeInstance, f),
15062
- hostedImageInfoMap: (f = msg.getHostedImageInfoMap()) ? f.toObject(includeInstance, proto.clarifai.api.ImageInfo.toObject) : []
15086
+ hostedImageInfoMap: (f = msg.getHostedImageInfoMap()) ? f.toObject(includeInstance, proto.clarifai.api.ImageInfo.toObject) : [],
15087
+ decodedBytes: msg.getDecodedBytes_asB64()
15063
15088
  };
15064
15089
  if (includeInstance) {
15065
15090
  obj.$jspbMessageInstance = msg;
@@ -15119,6 +15144,10 @@ proto.clarifai.api.Image.deserializeBinaryFromReader = function (msg, reader) {
15119
15144
  jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.ImageInfo.deserializeBinaryFromReader, "", new proto.clarifai.api.ImageInfo());
15120
15145
  });
15121
15146
  break;
15147
+ case 8:
15148
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
15149
+ msg.setDecodedBytes(value);
15150
+ break;
15122
15151
  default:
15123
15152
  reader.skipField();
15124
15153
  break;
@@ -15168,6 +15197,10 @@ proto.clarifai.api.Image.serializeBinaryToWriter = function (message, writer) {
15168
15197
  if (f && f.getLength() > 0) {
15169
15198
  f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.ImageInfo.serializeBinaryToWriter);
15170
15199
  }
15200
+ f = message.getDecodedBytes_asU8();
15201
+ if (f.length > 0) {
15202
+ writer.writeBytes(8, f);
15203
+ }
15171
15204
  };
15172
15205
  /**
15173
15206
  * optional string url = 1;
@@ -15302,6 +15335,38 @@ proto.clarifai.api.Image.prototype.clearHostedImageInfoMap = function () {
15302
15335
  this.getHostedImageInfoMap().clear();
15303
15336
  return this;
15304
15337
  };
15338
+ /**
15339
+ * optional bytes decoded_bytes = 8;
15340
+ * @return {string}
15341
+ */
15342
+ proto.clarifai.api.Image.prototype.getDecodedBytes = function () {
15343
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
15344
+ };
15345
+ /**
15346
+ * optional bytes decoded_bytes = 8;
15347
+ * This is a type-conversion wrapper around `getDecodedBytes()`
15348
+ * @return {string}
15349
+ */
15350
+ proto.clarifai.api.Image.prototype.getDecodedBytes_asB64 = function () {
15351
+ return /** @type {string} */ (jspb.Message.bytesAsB64(this.getDecodedBytes()));
15352
+ };
15353
+ /**
15354
+ * optional bytes decoded_bytes = 8;
15355
+ * Note that Uint8Array is not supported on all browsers.
15356
+ * @see http://caniuse.com/Uint8Array
15357
+ * This is a type-conversion wrapper around `getDecodedBytes()`
15358
+ * @return {!Uint8Array}
15359
+ */
15360
+ proto.clarifai.api.Image.prototype.getDecodedBytes_asU8 = function () {
15361
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getDecodedBytes()));
15362
+ };
15363
+ /**
15364
+ * @param {!(string|Uint8Array)} value
15365
+ * @return {!proto.clarifai.api.Image} returns this
15366
+ */
15367
+ proto.clarifai.api.Image.prototype.setDecodedBytes = function (value) {
15368
+ return jspb.Message.setProto3BytesField(this, 8, value);
15369
+ };
15305
15370
  if (jspb.Message.GENERATE_TO_OBJECT) {
15306
15371
  /**
15307
15372
  * Creates an object representation of this proto.
@@ -15332,7 +15397,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
15332
15397
  width: jspb.Message.getFieldWithDefault(msg, 1, 0),
15333
15398
  height: jspb.Message.getFieldWithDefault(msg, 2, 0),
15334
15399
  format: jspb.Message.getFieldWithDefault(msg, 3, ""),
15335
- colorMode: jspb.Message.getFieldWithDefault(msg, 4, "")
15400
+ colorMode: jspb.Message.getFieldWithDefault(msg, 4, ""),
15401
+ mode: jspb.Message.getFieldWithDefault(msg, 5, "")
15336
15402
  };
15337
15403
  if (includeInstance) {
15338
15404
  obj.$jspbMessageInstance = msg;
@@ -15380,6 +15446,10 @@ proto.clarifai.api.ImageInfo.deserializeBinaryFromReader = function (msg, reader
15380
15446
  var value = /** @type {string} */ (reader.readString());
15381
15447
  msg.setColorMode(value);
15382
15448
  break;
15449
+ case 5:
15450
+ var value = /** @type {string} */ (reader.readString());
15451
+ msg.setMode(value);
15452
+ break;
15383
15453
  default:
15384
15454
  reader.skipField();
15385
15455
  break;
@@ -15421,6 +15491,10 @@ proto.clarifai.api.ImageInfo.serializeBinaryToWriter = function (message, writer
15421
15491
  if (f.length > 0) {
15422
15492
  writer.writeString(4, f);
15423
15493
  }
15494
+ f = message.getMode();
15495
+ if (f.length > 0) {
15496
+ writer.writeString(5, f);
15497
+ }
15424
15498
  };
15425
15499
  /**
15426
15500
  * optional int32 width = 1;
@@ -15478,6 +15552,20 @@ proto.clarifai.api.ImageInfo.prototype.getColorMode = function () {
15478
15552
  proto.clarifai.api.ImageInfo.prototype.setColorMode = function (value) {
15479
15553
  return jspb.Message.setProto3StringField(this, 4, value);
15480
15554
  };
15555
+ /**
15556
+ * optional string mode = 5;
15557
+ * @return {string}
15558
+ */
15559
+ proto.clarifai.api.ImageInfo.prototype.getMode = function () {
15560
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
15561
+ };
15562
+ /**
15563
+ * @param {string} value
15564
+ * @return {!proto.clarifai.api.ImageInfo} returns this
15565
+ */
15566
+ proto.clarifai.api.ImageInfo.prototype.setMode = function (value) {
15567
+ return jspb.Message.setProto3StringField(this, 5, value);
15568
+ };
15481
15569
  /**
15482
15570
  * List of repeated fields within this message type.
15483
15571
  * @private {!Array<number>}
@@ -43407,6 +43495,12 @@ proto.clarifai.api.TaskWorkMetrics.prototype.getInputsPercentEstimated = functio
43407
43495
  proto.clarifai.api.TaskWorkMetrics.prototype.setInputsPercentEstimated = function (value) {
43408
43496
  return jspb.Message.setProto3IntField(this, 2, value);
43409
43497
  };
43498
+ /**
43499
+ * List of repeated fields within this message type.
43500
+ * @private {!Array<number>}
43501
+ * @const
43502
+ */
43503
+ proto.clarifai.api.TaskReviewMetrics.repeatedFields_ = [3];
43410
43504
  if (jspb.Message.GENERATE_TO_OBJECT) {
43411
43505
  /**
43412
43506
  * Creates an object representation of this proto.
@@ -43435,6 +43529,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
43435
43529
  proto.clarifai.api.TaskReviewMetrics.toObject = function (includeInstance, msg) {
43436
43530
  var f, obj = {
43437
43531
  inputsCountEstimated: jspb.Message.getFieldWithDefault(msg, 1, 0),
43532
+ inputsCountEstimatedPerReviewerList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
43438
43533
  inputsPercentEstimated: jspb.Message.getFieldWithDefault(msg, 2, 0)
43439
43534
  };
43440
43535
  if (includeInstance) {
@@ -43471,6 +43566,12 @@ proto.clarifai.api.TaskReviewMetrics.deserializeBinaryFromReader = function (msg
43471
43566
  var value = /** @type {number} */ (reader.readUint64());
43472
43567
  msg.setInputsCountEstimated(value);
43473
43568
  break;
43569
+ case 3:
43570
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
43571
+ for (var i = 0; i < values.length; i++) {
43572
+ msg.addInputsCountEstimatedPerReviewer(values[i]);
43573
+ }
43574
+ break;
43474
43575
  case 2:
43475
43576
  var value = /** @type {number} */ (reader.readUint32());
43476
43577
  msg.setInputsPercentEstimated(value);
@@ -43504,6 +43605,10 @@ proto.clarifai.api.TaskReviewMetrics.serializeBinaryToWriter = function (message
43504
43605
  if (f !== 0) {
43505
43606
  writer.writeUint64(1, f);
43506
43607
  }
43608
+ f = message.getInputsCountEstimatedPerReviewerList();
43609
+ if (f.length > 0) {
43610
+ writer.writePackedUint64(3, f);
43611
+ }
43507
43612
  f = message.getInputsPercentEstimated();
43508
43613
  if (f !== 0) {
43509
43614
  writer.writeUint32(2, f);
@@ -43523,6 +43628,35 @@ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimated = functio
43523
43628
  proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimated = function (value) {
43524
43629
  return jspb.Message.setProto3IntField(this, 1, value);
43525
43630
  };
43631
+ /**
43632
+ * repeated uint64 inputs_count_estimated_per_reviewer = 3;
43633
+ * @return {!Array<number>}
43634
+ */
43635
+ proto.clarifai.api.TaskReviewMetrics.prototype.getInputsCountEstimatedPerReviewerList = function () {
43636
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
43637
+ };
43638
+ /**
43639
+ * @param {!Array<number>} value
43640
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
43641
+ */
43642
+ proto.clarifai.api.TaskReviewMetrics.prototype.setInputsCountEstimatedPerReviewerList = function (value) {
43643
+ return jspb.Message.setField(this, 3, value || []);
43644
+ };
43645
+ /**
43646
+ * @param {number} value
43647
+ * @param {number=} opt_index
43648
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
43649
+ */
43650
+ proto.clarifai.api.TaskReviewMetrics.prototype.addInputsCountEstimatedPerReviewer = function (value, opt_index) {
43651
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
43652
+ };
43653
+ /**
43654
+ * Clears the list making it empty but non-null.
43655
+ * @return {!proto.clarifai.api.TaskReviewMetrics} returns this
43656
+ */
43657
+ proto.clarifai.api.TaskReviewMetrics.prototype.clearInputsCountEstimatedPerReviewerList = function () {
43658
+ return this.setInputsCountEstimatedPerReviewerList([]);
43659
+ };
43526
43660
  /**
43527
43661
  * optional uint32 inputs_percent_estimated = 2;
43528
43662
  * @return {number}
@@ -48430,7 +48564,7 @@ proto.clarifai.api.InstalledModuleVersion.prototype.setKeyId = function (value)
48430
48564
  * @private {!Array<!Array<number>>}
48431
48565
  * @const
48432
48566
  */
48433
- proto.clarifai.api.BulkOperation.oneofGroups_ = [[2, 10, 11]];
48567
+ proto.clarifai.api.BulkOperation.oneofGroups_ = [[2, 10, 11], [12]];
48434
48568
  /**
48435
48569
  * @enum {number}
48436
48570
  */
@@ -48446,6 +48580,19 @@ proto.clarifai.api.BulkOperation.InputSourceCase = {
48446
48580
  proto.clarifai.api.BulkOperation.prototype.getInputSourceCase = function () {
48447
48581
  return /** @type {proto.clarifai.api.BulkOperation.InputSourceCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.BulkOperation.oneofGroups_[0]));
48448
48582
  };
48583
+ /**
48584
+ * @enum {number}
48585
+ */
48586
+ proto.clarifai.api.BulkOperation.AnnotationSourceCase = {
48587
+ ANNOTATION_SOURCE_NOT_SET: 0,
48588
+ ANNOTATION_SEARCH: 12
48589
+ };
48590
+ /**
48591
+ * @return {proto.clarifai.api.BulkOperation.AnnotationSourceCase}
48592
+ */
48593
+ proto.clarifai.api.BulkOperation.prototype.getAnnotationSourceCase = function () {
48594
+ return /** @type {proto.clarifai.api.BulkOperation.AnnotationSourceCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.BulkOperation.oneofGroups_[1]));
48595
+ };
48449
48596
  if (jspb.Message.GENERATE_TO_OBJECT) {
48450
48597
  /**
48451
48598
  * Creates an object representation of this proto.
@@ -48477,6 +48624,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
48477
48624
  inputIds: (f = msg.getInputIds()) && proto.clarifai.api.InputIDs.toObject(includeInstance, f),
48478
48625
  search: (f = msg.getSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f),
48479
48626
  dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f),
48627
+ annotationSearch: (f = msg.getAnnotationSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f),
48480
48628
  operation: (f = msg.getOperation()) && proto.clarifai.api.Operation.toObject(includeInstance, f),
48481
48629
  appId: jspb.Message.getFieldWithDefault(msg, 4, ""),
48482
48630
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
@@ -48534,6 +48682,11 @@ proto.clarifai.api.BulkOperation.deserializeBinaryFromReader = function (msg, re
48534
48682
  reader.readMessage(value, proto.clarifai.api.Dataset.deserializeBinaryFromReader);
48535
48683
  msg.setDataset(value);
48536
48684
  break;
48685
+ case 12:
48686
+ var value = new proto.clarifai.api.Search;
48687
+ reader.readMessage(value, proto.clarifai.api.Search.deserializeBinaryFromReader);
48688
+ msg.setAnnotationSearch(value);
48689
+ break;
48537
48690
  case 3:
48538
48691
  var value = new proto.clarifai.api.Operation;
48539
48692
  reader.readMessage(value, proto.clarifai.api.Operation.deserializeBinaryFromReader);
@@ -48608,6 +48761,10 @@ proto.clarifai.api.BulkOperation.serializeBinaryToWriter = function (message, wr
48608
48761
  if (f != null) {
48609
48762
  writer.writeMessage(11, f, proto.clarifai.api.Dataset.serializeBinaryToWriter);
48610
48763
  }
48764
+ f = message.getAnnotationSearch();
48765
+ if (f != null) {
48766
+ writer.writeMessage(12, f, proto.clarifai.api.Search.serializeBinaryToWriter);
48767
+ }
48611
48768
  f = message.getOperation();
48612
48769
  if (f != null) {
48613
48770
  writer.writeMessage(3, f, proto.clarifai.api.Operation.serializeBinaryToWriter);
@@ -48735,6 +48892,34 @@ proto.clarifai.api.BulkOperation.prototype.clearDataset = function () {
48735
48892
  proto.clarifai.api.BulkOperation.prototype.hasDataset = function () {
48736
48893
  return jspb.Message.getField(this, 11) != null;
48737
48894
  };
48895
+ /**
48896
+ * optional Search annotation_search = 12;
48897
+ * @return {?proto.clarifai.api.Search}
48898
+ */
48899
+ proto.clarifai.api.BulkOperation.prototype.getAnnotationSearch = function () {
48900
+ return /** @type{?proto.clarifai.api.Search} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 12));
48901
+ };
48902
+ /**
48903
+ * @param {?proto.clarifai.api.Search|undefined} value
48904
+ * @return {!proto.clarifai.api.BulkOperation} returns this
48905
+ */
48906
+ proto.clarifai.api.BulkOperation.prototype.setAnnotationSearch = function (value) {
48907
+ return jspb.Message.setOneofWrapperField(this, 12, proto.clarifai.api.BulkOperation.oneofGroups_[1], value);
48908
+ };
48909
+ /**
48910
+ * Clears the message field making it undefined.
48911
+ * @return {!proto.clarifai.api.BulkOperation} returns this
48912
+ */
48913
+ proto.clarifai.api.BulkOperation.prototype.clearAnnotationSearch = function () {
48914
+ return this.setAnnotationSearch(undefined);
48915
+ };
48916
+ /**
48917
+ * Returns whether this field is set.
48918
+ * @return {boolean}
48919
+ */
48920
+ proto.clarifai.api.BulkOperation.prototype.hasAnnotationSearch = function () {
48921
+ return jspb.Message.getField(this, 12) != null;
48922
+ };
48738
48923
  /**
48739
48924
  * optional Operation operation = 3;
48740
48925
  * @return {?proto.clarifai.api.Operation}
@@ -49169,7 +49354,7 @@ proto.clarifai.api.Progress.prototype.setLastProcessedId = function (value) {
49169
49354
  * @private {!Array<!Array<number>>}
49170
49355
  * @const
49171
49356
  */
49172
- proto.clarifai.api.Operation.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8, 9]];
49357
+ proto.clarifai.api.Operation.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8, 9], [10]];
49173
49358
  /**
49174
49359
  * @enum {number}
49175
49360
  */
@@ -49191,6 +49376,19 @@ proto.clarifai.api.Operation.OperationCase = {
49191
49376
  proto.clarifai.api.Operation.prototype.getOperationCase = function () {
49192
49377
  return /** @type {proto.clarifai.api.Operation.OperationCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.Operation.oneofGroups_[0]));
49193
49378
  };
49379
+ /**
49380
+ * @enum {number}
49381
+ */
49382
+ proto.clarifai.api.Operation.AnnotationOperationCase = {
49383
+ ANNOTATION_OPERATION_NOT_SET: 0,
49384
+ DELETE_ANNOTATIONS: 10
49385
+ };
49386
+ /**
49387
+ * @return {proto.clarifai.api.Operation.AnnotationOperationCase}
49388
+ */
49389
+ proto.clarifai.api.Operation.prototype.getAnnotationOperationCase = function () {
49390
+ return /** @type {proto.clarifai.api.Operation.AnnotationOperationCase} */ (jspb.Message.computeOneofCase(this, proto.clarifai.api.Operation.oneofGroups_[1]));
49391
+ };
49194
49392
  if (jspb.Message.GENERATE_TO_OBJECT) {
49195
49393
  /**
49196
49394
  * Creates an object representation of this proto.
@@ -49226,7 +49424,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
49226
49424
  deleteGeo: (f = msg.getDeleteGeo()) && proto.clarifai.api.DeleteGeo.toObject(includeInstance, f),
49227
49425
  deleteFromDataset: (f = msg.getDeleteFromDataset()) && proto.clarifai.api.DeleteFromDataset.toObject(includeInstance, f),
49228
49426
  addToDataset: (f = msg.getAddToDataset()) && proto.clarifai.api.AddToDataset.toObject(includeInstance, f),
49229
- splitIntoDatasets: (f = msg.getSplitIntoDatasets()) && proto.clarifai.api.SplitIntoDatasets.toObject(includeInstance, f)
49427
+ splitIntoDatasets: (f = msg.getSplitIntoDatasets()) && proto.clarifai.api.SplitIntoDatasets.toObject(includeInstance, f),
49428
+ deleteAnnotations: (f = msg.getDeleteAnnotations()) && proto.clarifai.api.DeleteAnnotations.toObject(includeInstance, f)
49230
49429
  };
49231
49430
  if (includeInstance) {
49232
49431
  obj.$jspbMessageInstance = msg;
@@ -49303,6 +49502,11 @@ proto.clarifai.api.Operation.deserializeBinaryFromReader = function (msg, reader
49303
49502
  reader.readMessage(value, proto.clarifai.api.SplitIntoDatasets.deserializeBinaryFromReader);
49304
49503
  msg.setSplitIntoDatasets(value);
49305
49504
  break;
49505
+ case 10:
49506
+ var value = new proto.clarifai.api.DeleteAnnotations;
49507
+ reader.readMessage(value, proto.clarifai.api.DeleteAnnotations.deserializeBinaryFromReader);
49508
+ msg.setDeleteAnnotations(value);
49509
+ break;
49306
49510
  default:
49307
49511
  reader.skipField();
49308
49512
  break;
@@ -49364,6 +49568,10 @@ proto.clarifai.api.Operation.serializeBinaryToWriter = function (message, writer
49364
49568
  if (f != null) {
49365
49569
  writer.writeMessage(9, f, proto.clarifai.api.SplitIntoDatasets.serializeBinaryToWriter);
49366
49570
  }
49571
+ f = message.getDeleteAnnotations();
49572
+ if (f != null) {
49573
+ writer.writeMessage(10, f, proto.clarifai.api.DeleteAnnotations.serializeBinaryToWriter);
49574
+ }
49367
49575
  };
49368
49576
  /**
49369
49577
  * optional AddConcepts add_concepts = 1;
@@ -49617,6 +49825,34 @@ proto.clarifai.api.Operation.prototype.clearSplitIntoDatasets = function () {
49617
49825
  proto.clarifai.api.Operation.prototype.hasSplitIntoDatasets = function () {
49618
49826
  return jspb.Message.getField(this, 9) != null;
49619
49827
  };
49828
+ /**
49829
+ * optional DeleteAnnotations delete_annotations = 10;
49830
+ * @return {?proto.clarifai.api.DeleteAnnotations}
49831
+ */
49832
+ proto.clarifai.api.Operation.prototype.getDeleteAnnotations = function () {
49833
+ return /** @type{?proto.clarifai.api.DeleteAnnotations} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.DeleteAnnotations, 10));
49834
+ };
49835
+ /**
49836
+ * @param {?proto.clarifai.api.DeleteAnnotations|undefined} value
49837
+ * @return {!proto.clarifai.api.Operation} returns this
49838
+ */
49839
+ proto.clarifai.api.Operation.prototype.setDeleteAnnotations = function (value) {
49840
+ return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.Operation.oneofGroups_[1], value);
49841
+ };
49842
+ /**
49843
+ * Clears the message field making it undefined.
49844
+ * @return {!proto.clarifai.api.Operation} returns this
49845
+ */
49846
+ proto.clarifai.api.Operation.prototype.clearDeleteAnnotations = function () {
49847
+ return this.setDeleteAnnotations(undefined);
49848
+ };
49849
+ /**
49850
+ * Returns whether this field is set.
49851
+ * @return {boolean}
49852
+ */
49853
+ proto.clarifai.api.Operation.prototype.hasDeleteAnnotations = function () {
49854
+ return jspb.Message.getField(this, 10) != null;
49855
+ };
49620
49856
  /**
49621
49857
  * List of repeated fields within this message type.
49622
49858
  * @private {!Array<number>}
@@ -50916,6 +51152,89 @@ proto.clarifai.api.DatasetSplit.prototype.clearPercentage = function () {
50916
51152
  proto.clarifai.api.DatasetSplit.prototype.hasPercentage = function () {
50917
51153
  return jspb.Message.getField(this, 2) != null;
50918
51154
  };
51155
+ if (jspb.Message.GENERATE_TO_OBJECT) {
51156
+ /**
51157
+ * Creates an object representation of this proto.
51158
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
51159
+ * Optional fields that are not set will be set to undefined.
51160
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
51161
+ * For the list of reserved names please see:
51162
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
51163
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
51164
+ * JSPB instance for transitional soy proto support:
51165
+ * http://goto/soy-param-migration
51166
+ * @return {!Object}
51167
+ */
51168
+ proto.clarifai.api.DeleteAnnotations.prototype.toObject = function (opt_includeInstance) {
51169
+ return proto.clarifai.api.DeleteAnnotations.toObject(opt_includeInstance, this);
51170
+ };
51171
+ /**
51172
+ * Static version of the {@see toObject} method.
51173
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
51174
+ * the JSPB instance for transitional soy proto support:
51175
+ * http://goto/soy-param-migration
51176
+ * @param {!proto.clarifai.api.DeleteAnnotations} msg The msg instance to transform.
51177
+ * @return {!Object}
51178
+ * @suppress {unusedLocalVariables} f is only used for nested messages
51179
+ */
51180
+ proto.clarifai.api.DeleteAnnotations.toObject = function (includeInstance, msg) {
51181
+ var f, obj = {};
51182
+ if (includeInstance) {
51183
+ obj.$jspbMessageInstance = msg;
51184
+ }
51185
+ return obj;
51186
+ };
51187
+ }
51188
+ /**
51189
+ * Deserializes binary data (in protobuf wire format).
51190
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
51191
+ * @return {!proto.clarifai.api.DeleteAnnotations}
51192
+ */
51193
+ proto.clarifai.api.DeleteAnnotations.deserializeBinary = function (bytes) {
51194
+ var reader = new jspb.BinaryReader(bytes);
51195
+ var msg = new proto.clarifai.api.DeleteAnnotations;
51196
+ return proto.clarifai.api.DeleteAnnotations.deserializeBinaryFromReader(msg, reader);
51197
+ };
51198
+ /**
51199
+ * Deserializes binary data (in protobuf wire format) from the
51200
+ * given reader into the given message object.
51201
+ * @param {!proto.clarifai.api.DeleteAnnotations} msg The message object to deserialize into.
51202
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
51203
+ * @return {!proto.clarifai.api.DeleteAnnotations}
51204
+ */
51205
+ proto.clarifai.api.DeleteAnnotations.deserializeBinaryFromReader = function (msg, reader) {
51206
+ while (reader.nextField()) {
51207
+ if (reader.isEndGroup()) {
51208
+ break;
51209
+ }
51210
+ var field = reader.getFieldNumber();
51211
+ switch (field) {
51212
+ default:
51213
+ reader.skipField();
51214
+ break;
51215
+ }
51216
+ }
51217
+ return msg;
51218
+ };
51219
+ /**
51220
+ * Serializes the message to binary data (in protobuf wire format).
51221
+ * @return {!Uint8Array}
51222
+ */
51223
+ proto.clarifai.api.DeleteAnnotations.prototype.serializeBinary = function () {
51224
+ var writer = new jspb.BinaryWriter();
51225
+ proto.clarifai.api.DeleteAnnotations.serializeBinaryToWriter(this, writer);
51226
+ return writer.getResultBuffer();
51227
+ };
51228
+ /**
51229
+ * Serializes the given message to binary data (in protobuf wire
51230
+ * format), writing to the given BinaryWriter.
51231
+ * @param {!proto.clarifai.api.DeleteAnnotations} message
51232
+ * @param {!jspb.BinaryWriter} writer
51233
+ * @suppress {unusedLocalVariables} f is only used for nested messages
51234
+ */
51235
+ proto.clarifai.api.DeleteAnnotations.serializeBinaryToWriter = function (message, writer) {
51236
+ var f = undefined;
51237
+ };
50919
51238
  /**
50920
51239
  * List of repeated fields within this message type.
50921
51240
  * @private {!Array<number>}
@@ -56903,7 +57222,7 @@ proto.clarifai.api.ProcessingInfo.prototype.setProcessingId = function (value) {
56903
57222
  * @private {!Array<!Array<number>>}
56904
57223
  * @const
56905
57224
  */
56906
- proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8]];
57225
+ proto.clarifai.api.AuditLogTarget.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]];
56907
57226
  /**
56908
57227
  * @enum {number}
56909
57228
  */
@@ -56916,7 +57235,9 @@ proto.clarifai.api.AuditLogTarget.TargetCase = {
56916
57235
  MODULE: 5,
56917
57236
  MODULE_VERSION: 6,
56918
57237
  WORKFLOW: 7,
56919
- WORKFLOW_VERSION: 8
57238
+ WORKFLOW_VERSION: 8,
57239
+ MODEL: 9,
57240
+ MODEL_VERSION: 10
56920
57241
  };
56921
57242
  /**
56922
57243
  * @return {proto.clarifai.api.AuditLogTarget.TargetCase}
@@ -56958,7 +57279,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
56958
57279
  module: (f = msg.getModule()) && proto.clarifai.api.Module.toObject(includeInstance, f),
56959
57280
  moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f),
56960
57281
  workflow: (f = msg.getWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f),
56961
- workflowVersion: (f = msg.getWorkflowVersion()) && proto.clarifai.api.WorkflowVersion.toObject(includeInstance, f)
57282
+ workflowVersion: (f = msg.getWorkflowVersion()) && proto.clarifai.api.WorkflowVersion.toObject(includeInstance, f),
57283
+ model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f),
57284
+ modelVersion: (f = msg.getModelVersion()) && proto.clarifai.api.ModelVersion.toObject(includeInstance, f)
56962
57285
  };
56963
57286
  if (includeInstance) {
56964
57287
  obj.$jspbMessageInstance = msg;
@@ -57030,6 +57353,16 @@ proto.clarifai.api.AuditLogTarget.deserializeBinaryFromReader = function (msg, r
57030
57353
  reader.readMessage(value, proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader);
57031
57354
  msg.setWorkflowVersion(value);
57032
57355
  break;
57356
+ case 9:
57357
+ var value = new proto.clarifai.api.Model;
57358
+ reader.readMessage(value, proto.clarifai.api.Model.deserializeBinaryFromReader);
57359
+ msg.setModel(value);
57360
+ break;
57361
+ case 10:
57362
+ var value = new proto.clarifai.api.ModelVersion;
57363
+ reader.readMessage(value, proto.clarifai.api.ModelVersion.deserializeBinaryFromReader);
57364
+ msg.setModelVersion(value);
57365
+ break;
57033
57366
  default:
57034
57367
  reader.skipField();
57035
57368
  break;
@@ -57087,6 +57420,14 @@ proto.clarifai.api.AuditLogTarget.serializeBinaryToWriter = function (message, w
57087
57420
  if (f != null) {
57088
57421
  writer.writeMessage(8, f, proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter);
57089
57422
  }
57423
+ f = message.getModel();
57424
+ if (f != null) {
57425
+ writer.writeMessage(9, f, proto.clarifai.api.Model.serializeBinaryToWriter);
57426
+ }
57427
+ f = message.getModelVersion();
57428
+ if (f != null) {
57429
+ writer.writeMessage(10, f, proto.clarifai.api.ModelVersion.serializeBinaryToWriter);
57430
+ }
57090
57431
  };
57091
57432
  /**
57092
57433
  * optional User user = 1;
@@ -57312,6 +57653,62 @@ proto.clarifai.api.AuditLogTarget.prototype.clearWorkflowVersion = function () {
57312
57653
  proto.clarifai.api.AuditLogTarget.prototype.hasWorkflowVersion = function () {
57313
57654
  return jspb.Message.getField(this, 8) != null;
57314
57655
  };
57656
+ /**
57657
+ * optional Model model = 9;
57658
+ * @return {?proto.clarifai.api.Model}
57659
+ */
57660
+ proto.clarifai.api.AuditLogTarget.prototype.getModel = function () {
57661
+ return /** @type{?proto.clarifai.api.Model} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 9));
57662
+ };
57663
+ /**
57664
+ * @param {?proto.clarifai.api.Model|undefined} value
57665
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57666
+ */
57667
+ proto.clarifai.api.AuditLogTarget.prototype.setModel = function (value) {
57668
+ return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
57669
+ };
57670
+ /**
57671
+ * Clears the message field making it undefined.
57672
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57673
+ */
57674
+ proto.clarifai.api.AuditLogTarget.prototype.clearModel = function () {
57675
+ return this.setModel(undefined);
57676
+ };
57677
+ /**
57678
+ * Returns whether this field is set.
57679
+ * @return {boolean}
57680
+ */
57681
+ proto.clarifai.api.AuditLogTarget.prototype.hasModel = function () {
57682
+ return jspb.Message.getField(this, 9) != null;
57683
+ };
57684
+ /**
57685
+ * optional ModelVersion model_version = 10;
57686
+ * @return {?proto.clarifai.api.ModelVersion}
57687
+ */
57688
+ proto.clarifai.api.AuditLogTarget.prototype.getModelVersion = function () {
57689
+ return /** @type{?proto.clarifai.api.ModelVersion} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.ModelVersion, 10));
57690
+ };
57691
+ /**
57692
+ * @param {?proto.clarifai.api.ModelVersion|undefined} value
57693
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57694
+ */
57695
+ proto.clarifai.api.AuditLogTarget.prototype.setModelVersion = function (value) {
57696
+ return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.AuditLogTarget.oneofGroups_[0], value);
57697
+ };
57698
+ /**
57699
+ * Clears the message field making it undefined.
57700
+ * @return {!proto.clarifai.api.AuditLogTarget} returns this
57701
+ */
57702
+ proto.clarifai.api.AuditLogTarget.prototype.clearModelVersion = function () {
57703
+ return this.setModelVersion(undefined);
57704
+ };
57705
+ /**
57706
+ * Returns whether this field is set.
57707
+ * @return {boolean}
57708
+ */
57709
+ proto.clarifai.api.AuditLogTarget.prototype.hasModelVersion = function () {
57710
+ return jspb.Message.getField(this, 10) != null;
57711
+ };
57315
57712
  /**
57316
57713
  * List of repeated fields within this message type.
57317
57714
  * @private {!Array<number>}
@@ -59127,14 +59524,24 @@ proto.clarifai.api.EventType = {
59127
59524
  MODULE_VERSION_CREATE: 203,
59128
59525
  MODULE_VERSION_UPDATE: 204,
59129
59526
  MODULE_VERSION_DELETE: 205,
59527
+ MODEL_CREATE: 300,
59528
+ MODEL_UPDATE: 301,
59529
+ MODEL_DELETE: 302,
59530
+ MODEL_VERSION_CREATE: 303,
59531
+ MODEL_VERSION_UPDATE: 304,
59532
+ MODEL_VERSION_DELETE: 305,
59130
59533
  WORKFLOW_CREATE: 400,
59131
59534
  WORKFLOW_UPDATE: 401,
59132
59535
  WORKFLOW_DELETE: 402,
59133
59536
  WORKFLOW_VERSION_CREATE: 403,
59134
59537
  WORKFLOW_VERSION_UPDATE: 404,
59135
59538
  WORKFLOW_VERSION_DELETE: 405,
59539
+ APPLICATION_CREATE: 600,
59540
+ APPLICATION_UPDATE: 601,
59541
+ APPLICATION_DELETE: 602,
59136
59542
  COLLABORATOR_ADD: 700,
59137
59543
  COLLABORATOR_UPDATE: 701,
59138
- COLLABORATOR_REMOVE: 702
59544
+ COLLABORATOR_REMOVE: 702,
59545
+ USER_UPDATE: 800
59139
59546
  };
59140
59547
  goog.object.extend(exports, proto.clarifai.api);