clarifai-web-grpc 11.6.5 → 11.7.0

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.
@@ -48,6 +48,7 @@ goog.exportSymbol('proto.clarifai.api.ConceptExtraInfoRequest', null, global);
48
48
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationFiltersRequest', null, global);
49
49
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationRequest', null, global);
50
50
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationSearchMetricsRequest', null, global);
51
+ goog.exportSymbol('proto.clarifai.api.DeleteAnnotationTracksRequest', null, global);
51
52
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationsRequest', null, global);
52
53
  goog.exportSymbol('proto.clarifai.api.DeleteAppRequest', null, global);
53
54
  goog.exportSymbol('proto.clarifai.api.DeleteBulkOperationRequest', null, global);
@@ -139,6 +140,7 @@ goog.exportSymbol('proto.clarifai.api.IdUpdateSource', null, global);
139
140
  goog.exportSymbol('proto.clarifai.api.LabelSubmitConfig', null, global);
140
141
  goog.exportSymbol('proto.clarifai.api.ListAnnotationFiltersRequest', null, global);
141
142
  goog.exportSymbol('proto.clarifai.api.ListAnnotationSearchMetricsRequest', null, global);
143
+ goog.exportSymbol('proto.clarifai.api.ListAnnotationTracksRequest', null, global);
142
144
  goog.exportSymbol('proto.clarifai.api.ListAnnotationWorkersRequest', null, global);
143
145
  goog.exportSymbol('proto.clarifai.api.ListAnnotationsRequest', null, global);
144
146
  goog.exportSymbol('proto.clarifai.api.ListAppDuplicationsRequest', null, global);
@@ -213,6 +215,7 @@ goog.exportSymbol('proto.clarifai.api.ModelVersionUnpublishRequest', null, globa
213
215
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationFilterResponse', null, global);
214
216
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationResponse', null, global);
215
217
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationSearchMetricsResponse', null, global);
218
+ goog.exportSymbol('proto.clarifai.api.MultiAnnotationTrackResponse', null, global);
216
219
  goog.exportSymbol('proto.clarifai.api.MultiAppDuplicationsResponse', null, global);
217
220
  goog.exportSymbol('proto.clarifai.api.MultiAppResponse', null, global);
218
221
  goog.exportSymbol('proto.clarifai.api.MultiAuditLogEntryResponse', null, global);
@@ -290,6 +293,7 @@ goog.exportSymbol('proto.clarifai.api.MyScopesUserRequest', null, global);
290
293
  goog.exportSymbol('proto.clarifai.api.OrganizationInvitationStatus', null, global);
291
294
  goog.exportSymbol('proto.clarifai.api.Pagination', null, global);
292
295
  goog.exportSymbol('proto.clarifai.api.PatchAnnotationFiltersRequest', null, global);
296
+ goog.exportSymbol('proto.clarifai.api.PatchAnnotationTracksRequest', null, global);
293
297
  goog.exportSymbol('proto.clarifai.api.PatchAnnotationsRequest', null, global);
294
298
  goog.exportSymbol('proto.clarifai.api.PatchAnnotationsSearchesRequest', null, global);
295
299
  goog.exportSymbol('proto.clarifai.api.PatchAnnotationsStatusRequest', null, global);
@@ -332,6 +336,7 @@ goog.exportSymbol('proto.clarifai.api.PatchWorkflowVersionsRequest', null, globa
332
336
  goog.exportSymbol('proto.clarifai.api.PatchWorkflowsRequest', null, global);
333
337
  goog.exportSymbol('proto.clarifai.api.PostAnnotationFiltersRequest', null, global);
334
338
  goog.exportSymbol('proto.clarifai.api.PostAnnotationSearchMetricsRequest', null, global);
339
+ goog.exportSymbol('proto.clarifai.api.PostAnnotationTracksRequest', null, global);
335
340
  goog.exportSymbol('proto.clarifai.api.PostAnnotationsRequest', null, global);
336
341
  goog.exportSymbol('proto.clarifai.api.PostAnnotationsSearchesRequest', null, global);
337
342
  goog.exportSymbol('proto.clarifai.api.PostAppDuplicationsRequest', null, global);
@@ -658,6 +663,111 @@ if (goog.DEBUG && !COMPILED) {
658
663
  */
659
664
  proto.clarifai.api.DeleteAnnotationsRequest.displayName = 'proto.clarifai.api.DeleteAnnotationsRequest';
660
665
  }
666
+ /**
667
+ * Generated by JsPbCodeGenerator.
668
+ * @param {Array=} opt_data Optional initial data array, typically from a
669
+ * server response, or constructed directly in Javascript. The array is used
670
+ * in place and becomes part of the constructed object. It is not cloned.
671
+ * If no data is provided, the constructed object will be empty, but still
672
+ * valid.
673
+ * @extends {jspb.Message}
674
+ * @constructor
675
+ */
676
+ proto.clarifai.api.ListAnnotationTracksRequest = function(opt_data) {
677
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListAnnotationTracksRequest.repeatedFields_, null);
678
+ };
679
+ goog.inherits(proto.clarifai.api.ListAnnotationTracksRequest, jspb.Message);
680
+ if (goog.DEBUG && !COMPILED) {
681
+ /**
682
+ * @public
683
+ * @override
684
+ */
685
+ proto.clarifai.api.ListAnnotationTracksRequest.displayName = 'proto.clarifai.api.ListAnnotationTracksRequest';
686
+ }
687
+ /**
688
+ * Generated by JsPbCodeGenerator.
689
+ * @param {Array=} opt_data Optional initial data array, typically from a
690
+ * server response, or constructed directly in Javascript. The array is used
691
+ * in place and becomes part of the constructed object. It is not cloned.
692
+ * If no data is provided, the constructed object will be empty, but still
693
+ * valid.
694
+ * @extends {jspb.Message}
695
+ * @constructor
696
+ */
697
+ proto.clarifai.api.PostAnnotationTracksRequest = function(opt_data) {
698
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostAnnotationTracksRequest.repeatedFields_, null);
699
+ };
700
+ goog.inherits(proto.clarifai.api.PostAnnotationTracksRequest, jspb.Message);
701
+ if (goog.DEBUG && !COMPILED) {
702
+ /**
703
+ * @public
704
+ * @override
705
+ */
706
+ proto.clarifai.api.PostAnnotationTracksRequest.displayName = 'proto.clarifai.api.PostAnnotationTracksRequest';
707
+ }
708
+ /**
709
+ * Generated by JsPbCodeGenerator.
710
+ * @param {Array=} opt_data Optional initial data array, typically from a
711
+ * server response, or constructed directly in Javascript. The array is used
712
+ * in place and becomes part of the constructed object. It is not cloned.
713
+ * If no data is provided, the constructed object will be empty, but still
714
+ * valid.
715
+ * @extends {jspb.Message}
716
+ * @constructor
717
+ */
718
+ proto.clarifai.api.PatchAnnotationTracksRequest = function(opt_data) {
719
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchAnnotationTracksRequest.repeatedFields_, null);
720
+ };
721
+ goog.inherits(proto.clarifai.api.PatchAnnotationTracksRequest, jspb.Message);
722
+ if (goog.DEBUG && !COMPILED) {
723
+ /**
724
+ * @public
725
+ * @override
726
+ */
727
+ proto.clarifai.api.PatchAnnotationTracksRequest.displayName = 'proto.clarifai.api.PatchAnnotationTracksRequest';
728
+ }
729
+ /**
730
+ * Generated by JsPbCodeGenerator.
731
+ * @param {Array=} opt_data Optional initial data array, typically from a
732
+ * server response, or constructed directly in Javascript. The array is used
733
+ * in place and becomes part of the constructed object. It is not cloned.
734
+ * If no data is provided, the constructed object will be empty, but still
735
+ * valid.
736
+ * @extends {jspb.Message}
737
+ * @constructor
738
+ */
739
+ proto.clarifai.api.DeleteAnnotationTracksRequest = function(opt_data) {
740
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteAnnotationTracksRequest.repeatedFields_, null);
741
+ };
742
+ goog.inherits(proto.clarifai.api.DeleteAnnotationTracksRequest, jspb.Message);
743
+ if (goog.DEBUG && !COMPILED) {
744
+ /**
745
+ * @public
746
+ * @override
747
+ */
748
+ proto.clarifai.api.DeleteAnnotationTracksRequest.displayName = 'proto.clarifai.api.DeleteAnnotationTracksRequest';
749
+ }
750
+ /**
751
+ * Generated by JsPbCodeGenerator.
752
+ * @param {Array=} opt_data Optional initial data array, typically from a
753
+ * server response, or constructed directly in Javascript. The array is used
754
+ * in place and becomes part of the constructed object. It is not cloned.
755
+ * If no data is provided, the constructed object will be empty, but still
756
+ * valid.
757
+ * @extends {jspb.Message}
758
+ * @constructor
759
+ */
760
+ proto.clarifai.api.MultiAnnotationTrackResponse = function(opt_data) {
761
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAnnotationTrackResponse.repeatedFields_, null);
762
+ };
763
+ goog.inherits(proto.clarifai.api.MultiAnnotationTrackResponse, jspb.Message);
764
+ if (goog.DEBUG && !COMPILED) {
765
+ /**
766
+ * @public
767
+ * @override
768
+ */
769
+ proto.clarifai.api.MultiAnnotationTrackResponse.displayName = 'proto.clarifai.api.MultiAnnotationTrackResponse';
770
+ }
661
771
  /**
662
772
  * Generated by JsPbCodeGenerator.
663
773
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -11116,30 +11226,1287 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter = func
11116
11226
 
11117
11227
 
11118
11228
  /**
11119
- * optional status.Status status = 1;
11120
- * @return {?proto.clarifai.api.status.Status}
11229
+ * optional status.Status status = 1;
11230
+ * @return {?proto.clarifai.api.status.Status}
11231
+ */
11232
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getStatus = function() {
11233
+ return /** @type{?proto.clarifai.api.status.Status} */ (
11234
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
11235
+ };
11236
+
11237
+
11238
+ /**
11239
+ * @param {?proto.clarifai.api.status.Status|undefined} value
11240
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11241
+ */
11242
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setStatus = function(value) {
11243
+ return jspb.Message.setWrapperField(this, 1, value);
11244
+ };
11245
+
11246
+
11247
+ /**
11248
+ * Clears the message field making it undefined.
11249
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11250
+ */
11251
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearStatus = function() {
11252
+ return this.setStatus(undefined);
11253
+ };
11254
+
11255
+
11256
+ /**
11257
+ * Returns whether this field is set.
11258
+ * @return {boolean}
11259
+ */
11260
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.hasStatus = function() {
11261
+ return jspb.Message.getField(this, 1) != null;
11262
+ };
11263
+
11264
+
11265
+ /**
11266
+ * repeated string user_ids = 2;
11267
+ * @return {!Array<string>}
11268
+ */
11269
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUserIdsList = function() {
11270
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
11271
+ };
11272
+
11273
+
11274
+ /**
11275
+ * @param {!Array<string>} value
11276
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11277
+ */
11278
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUserIdsList = function(value) {
11279
+ return jspb.Message.setField(this, 2, value || []);
11280
+ };
11281
+
11282
+
11283
+ /**
11284
+ * @param {string} value
11285
+ * @param {number=} opt_index
11286
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11287
+ */
11288
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.addUserIds = function(value, opt_index) {
11289
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
11290
+ };
11291
+
11292
+
11293
+ /**
11294
+ * Clears the list making it empty but non-null.
11295
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11296
+ */
11297
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearUserIdsList = function() {
11298
+ return this.setUserIdsList([]);
11299
+ };
11300
+
11301
+
11302
+ /**
11303
+ * optional uint32 updated_count = 3;
11304
+ * @return {number}
11305
+ */
11306
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUpdatedCount = function() {
11307
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
11308
+ };
11309
+
11310
+
11311
+ /**
11312
+ * @param {number} value
11313
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11314
+ */
11315
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUpdatedCount = function(value) {
11316
+ return jspb.Message.setProto3IntField(this, 3, value);
11317
+ };
11318
+
11319
+
11320
+
11321
+
11322
+
11323
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11324
+ /**
11325
+ * Creates an object representation of this proto.
11326
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11327
+ * Optional fields that are not set will be set to undefined.
11328
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11329
+ * For the list of reserved names please see:
11330
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11331
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11332
+ * JSPB instance for transitional soy proto support:
11333
+ * http://goto/soy-param-migration
11334
+ * @return {!Object}
11335
+ */
11336
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.toObject = function(opt_includeInstance) {
11337
+ return proto.clarifai.api.DeleteAnnotationRequest.toObject(opt_includeInstance, this);
11338
+ };
11339
+
11340
+
11341
+ /**
11342
+ * Static version of the {@see toObject} method.
11343
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11344
+ * the JSPB instance for transitional soy proto support:
11345
+ * http://goto/soy-param-migration
11346
+ * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The msg instance to transform.
11347
+ * @return {!Object}
11348
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11349
+ */
11350
+ proto.clarifai.api.DeleteAnnotationRequest.toObject = function(includeInstance, msg) {
11351
+ var f, obj = {
11352
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
11353
+ inputId: jspb.Message.getFieldWithDefault(msg, 2, ""),
11354
+ annotationId: jspb.Message.getFieldWithDefault(msg, 3, "")
11355
+ };
11356
+
11357
+ if (includeInstance) {
11358
+ obj.$jspbMessageInstance = msg;
11359
+ }
11360
+ return obj;
11361
+ };
11362
+ }
11363
+
11364
+
11365
+ /**
11366
+ * Deserializes binary data (in protobuf wire format).
11367
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11368
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest}
11369
+ */
11370
+ proto.clarifai.api.DeleteAnnotationRequest.deserializeBinary = function(bytes) {
11371
+ var reader = new jspb.BinaryReader(bytes);
11372
+ var msg = new proto.clarifai.api.DeleteAnnotationRequest;
11373
+ return proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader(msg, reader);
11374
+ };
11375
+
11376
+
11377
+ /**
11378
+ * Deserializes binary data (in protobuf wire format) from the
11379
+ * given reader into the given message object.
11380
+ * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The message object to deserialize into.
11381
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11382
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest}
11383
+ */
11384
+ proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = function(msg, reader) {
11385
+ while (reader.nextField()) {
11386
+ if (reader.isEndGroup()) {
11387
+ break;
11388
+ }
11389
+ var field = reader.getFieldNumber();
11390
+ switch (field) {
11391
+ case 1:
11392
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
11393
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
11394
+ msg.setUserAppId(value);
11395
+ break;
11396
+ case 2:
11397
+ var value = /** @type {string} */ (reader.readString());
11398
+ msg.setInputId(value);
11399
+ break;
11400
+ case 3:
11401
+ var value = /** @type {string} */ (reader.readString());
11402
+ msg.setAnnotationId(value);
11403
+ break;
11404
+ default:
11405
+ reader.skipField();
11406
+ break;
11407
+ }
11408
+ }
11409
+ return msg;
11410
+ };
11411
+
11412
+
11413
+ /**
11414
+ * Serializes the message to binary data (in protobuf wire format).
11415
+ * @return {!Uint8Array}
11416
+ */
11417
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.serializeBinary = function() {
11418
+ var writer = new jspb.BinaryWriter();
11419
+ proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter(this, writer);
11420
+ return writer.getResultBuffer();
11421
+ };
11422
+
11423
+
11424
+ /**
11425
+ * Serializes the given message to binary data (in protobuf wire
11426
+ * format), writing to the given BinaryWriter.
11427
+ * @param {!proto.clarifai.api.DeleteAnnotationRequest} message
11428
+ * @param {!jspb.BinaryWriter} writer
11429
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11430
+ */
11431
+ proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function(message, writer) {
11432
+ var f = undefined;
11433
+ f = message.getUserAppId();
11434
+ if (f != null) {
11435
+ writer.writeMessage(
11436
+ 1,
11437
+ f,
11438
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
11439
+ );
11440
+ }
11441
+ f = message.getInputId();
11442
+ if (f.length > 0) {
11443
+ writer.writeString(
11444
+ 2,
11445
+ f
11446
+ );
11447
+ }
11448
+ f = message.getAnnotationId();
11449
+ if (f.length > 0) {
11450
+ writer.writeString(
11451
+ 3,
11452
+ f
11453
+ );
11454
+ }
11455
+ };
11456
+
11457
+
11458
+ /**
11459
+ * optional UserAppIDSet user_app_id = 1;
11460
+ * @return {?proto.clarifai.api.UserAppIDSet}
11461
+ */
11462
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.getUserAppId = function() {
11463
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
11464
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
11465
+ };
11466
+
11467
+
11468
+ /**
11469
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11470
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
11471
+ */
11472
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.setUserAppId = function(value) {
11473
+ return jspb.Message.setWrapperField(this, 1, value);
11474
+ };
11475
+
11476
+
11477
+ /**
11478
+ * Clears the message field making it undefined.
11479
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
11480
+ */
11481
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.clearUserAppId = function() {
11482
+ return this.setUserAppId(undefined);
11483
+ };
11484
+
11485
+
11486
+ /**
11487
+ * Returns whether this field is set.
11488
+ * @return {boolean}
11489
+ */
11490
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.hasUserAppId = function() {
11491
+ return jspb.Message.getField(this, 1) != null;
11492
+ };
11493
+
11494
+
11495
+ /**
11496
+ * optional string input_id = 2;
11497
+ * @return {string}
11498
+ */
11499
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.getInputId = function() {
11500
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11501
+ };
11502
+
11503
+
11504
+ /**
11505
+ * @param {string} value
11506
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
11507
+ */
11508
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.setInputId = function(value) {
11509
+ return jspb.Message.setProto3StringField(this, 2, value);
11510
+ };
11511
+
11512
+
11513
+ /**
11514
+ * optional string annotation_id = 3;
11515
+ * @return {string}
11516
+ */
11517
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.getAnnotationId = function() {
11518
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11519
+ };
11520
+
11521
+
11522
+ /**
11523
+ * @param {string} value
11524
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
11525
+ */
11526
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.setAnnotationId = function(value) {
11527
+ return jspb.Message.setProto3StringField(this, 3, value);
11528
+ };
11529
+
11530
+
11531
+
11532
+ /**
11533
+ * List of repeated fields within this message type.
11534
+ * @private {!Array<number>}
11535
+ * @const
11536
+ */
11537
+ proto.clarifai.api.DeleteAnnotationsRequest.repeatedFields_ = [2,3];
11538
+
11539
+
11540
+
11541
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11542
+ /**
11543
+ * Creates an object representation of this proto.
11544
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11545
+ * Optional fields that are not set will be set to undefined.
11546
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11547
+ * For the list of reserved names please see:
11548
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11549
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11550
+ * JSPB instance for transitional soy proto support:
11551
+ * http://goto/soy-param-migration
11552
+ * @return {!Object}
11553
+ */
11554
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.toObject = function(opt_includeInstance) {
11555
+ return proto.clarifai.api.DeleteAnnotationsRequest.toObject(opt_includeInstance, this);
11556
+ };
11557
+
11558
+
11559
+ /**
11560
+ * Static version of the {@see toObject} method.
11561
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11562
+ * the JSPB instance for transitional soy proto support:
11563
+ * http://goto/soy-param-migration
11564
+ * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The msg instance to transform.
11565
+ * @return {!Object}
11566
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11567
+ */
11568
+ proto.clarifai.api.DeleteAnnotationsRequest.toObject = function(includeInstance, msg) {
11569
+ var f, obj = {
11570
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
11571
+ idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
11572
+ inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
11573
+ };
11574
+
11575
+ if (includeInstance) {
11576
+ obj.$jspbMessageInstance = msg;
11577
+ }
11578
+ return obj;
11579
+ };
11580
+ }
11581
+
11582
+
11583
+ /**
11584
+ * Deserializes binary data (in protobuf wire format).
11585
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11586
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest}
11587
+ */
11588
+ proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinary = function(bytes) {
11589
+ var reader = new jspb.BinaryReader(bytes);
11590
+ var msg = new proto.clarifai.api.DeleteAnnotationsRequest;
11591
+ return proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader(msg, reader);
11592
+ };
11593
+
11594
+
11595
+ /**
11596
+ * Deserializes binary data (in protobuf wire format) from the
11597
+ * given reader into the given message object.
11598
+ * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The message object to deserialize into.
11599
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11600
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest}
11601
+ */
11602
+ proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) {
11603
+ while (reader.nextField()) {
11604
+ if (reader.isEndGroup()) {
11605
+ break;
11606
+ }
11607
+ var field = reader.getFieldNumber();
11608
+ switch (field) {
11609
+ case 1:
11610
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
11611
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
11612
+ msg.setUserAppId(value);
11613
+ break;
11614
+ case 2:
11615
+ var value = /** @type {string} */ (reader.readString());
11616
+ msg.addIds(value);
11617
+ break;
11618
+ case 3:
11619
+ var value = /** @type {string} */ (reader.readString());
11620
+ msg.addInputIds(value);
11621
+ break;
11622
+ default:
11623
+ reader.skipField();
11624
+ break;
11625
+ }
11626
+ }
11627
+ return msg;
11628
+ };
11629
+
11630
+
11631
+ /**
11632
+ * Serializes the message to binary data (in protobuf wire format).
11633
+ * @return {!Uint8Array}
11634
+ */
11635
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.serializeBinary = function() {
11636
+ var writer = new jspb.BinaryWriter();
11637
+ proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter(this, writer);
11638
+ return writer.getResultBuffer();
11639
+ };
11640
+
11641
+
11642
+ /**
11643
+ * Serializes the given message to binary data (in protobuf wire
11644
+ * format), writing to the given BinaryWriter.
11645
+ * @param {!proto.clarifai.api.DeleteAnnotationsRequest} message
11646
+ * @param {!jspb.BinaryWriter} writer
11647
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11648
+ */
11649
+ proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter = function(message, writer) {
11650
+ var f = undefined;
11651
+ f = message.getUserAppId();
11652
+ if (f != null) {
11653
+ writer.writeMessage(
11654
+ 1,
11655
+ f,
11656
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
11657
+ );
11658
+ }
11659
+ f = message.getIdsList();
11660
+ if (f.length > 0) {
11661
+ writer.writeRepeatedString(
11662
+ 2,
11663
+ f
11664
+ );
11665
+ }
11666
+ f = message.getInputIdsList();
11667
+ if (f.length > 0) {
11668
+ writer.writeRepeatedString(
11669
+ 3,
11670
+ f
11671
+ );
11672
+ }
11673
+ };
11674
+
11675
+
11676
+ /**
11677
+ * optional UserAppIDSet user_app_id = 1;
11678
+ * @return {?proto.clarifai.api.UserAppIDSet}
11679
+ */
11680
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.getUserAppId = function() {
11681
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
11682
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
11683
+ };
11684
+
11685
+
11686
+ /**
11687
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11688
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11689
+ */
11690
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.setUserAppId = function(value) {
11691
+ return jspb.Message.setWrapperField(this, 1, value);
11692
+ };
11693
+
11694
+
11695
+ /**
11696
+ * Clears the message field making it undefined.
11697
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11698
+ */
11699
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearUserAppId = function() {
11700
+ return this.setUserAppId(undefined);
11701
+ };
11702
+
11703
+
11704
+ /**
11705
+ * Returns whether this field is set.
11706
+ * @return {boolean}
11707
+ */
11708
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.hasUserAppId = function() {
11709
+ return jspb.Message.getField(this, 1) != null;
11710
+ };
11711
+
11712
+
11713
+ /**
11714
+ * repeated string ids = 2;
11715
+ * @return {!Array<string>}
11716
+ */
11717
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.getIdsList = function() {
11718
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
11719
+ };
11720
+
11721
+
11722
+ /**
11723
+ * @param {!Array<string>} value
11724
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11725
+ */
11726
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.setIdsList = function(value) {
11727
+ return jspb.Message.setField(this, 2, value || []);
11728
+ };
11729
+
11730
+
11731
+ /**
11732
+ * @param {string} value
11733
+ * @param {number=} opt_index
11734
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11735
+ */
11736
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.addIds = function(value, opt_index) {
11737
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
11738
+ };
11739
+
11740
+
11741
+ /**
11742
+ * Clears the list making it empty but non-null.
11743
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11744
+ */
11745
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearIdsList = function() {
11746
+ return this.setIdsList([]);
11747
+ };
11748
+
11749
+
11750
+ /**
11751
+ * repeated string input_ids = 3;
11752
+ * @return {!Array<string>}
11753
+ */
11754
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.getInputIdsList = function() {
11755
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
11756
+ };
11757
+
11758
+
11759
+ /**
11760
+ * @param {!Array<string>} value
11761
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11762
+ */
11763
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.setInputIdsList = function(value) {
11764
+ return jspb.Message.setField(this, 3, value || []);
11765
+ };
11766
+
11767
+
11768
+ /**
11769
+ * @param {string} value
11770
+ * @param {number=} opt_index
11771
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11772
+ */
11773
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.addInputIds = function(value, opt_index) {
11774
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
11775
+ };
11776
+
11777
+
11778
+ /**
11779
+ * Clears the list making it empty but non-null.
11780
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11781
+ */
11782
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearInputIdsList = function() {
11783
+ return this.setInputIdsList([]);
11784
+ };
11785
+
11786
+
11787
+
11788
+ /**
11789
+ * List of repeated fields within this message type.
11790
+ * @private {!Array<number>}
11791
+ * @const
11792
+ */
11793
+ proto.clarifai.api.ListAnnotationTracksRequest.repeatedFields_ = [2];
11794
+
11795
+
11796
+
11797
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11798
+ /**
11799
+ * Creates an object representation of this proto.
11800
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11801
+ * Optional fields that are not set will be set to undefined.
11802
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11803
+ * For the list of reserved names please see:
11804
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11805
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11806
+ * JSPB instance for transitional soy proto support:
11807
+ * http://goto/soy-param-migration
11808
+ * @return {!Object}
11809
+ */
11810
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.toObject = function(opt_includeInstance) {
11811
+ return proto.clarifai.api.ListAnnotationTracksRequest.toObject(opt_includeInstance, this);
11812
+ };
11813
+
11814
+
11815
+ /**
11816
+ * Static version of the {@see toObject} method.
11817
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11818
+ * the JSPB instance for transitional soy proto support:
11819
+ * http://goto/soy-param-migration
11820
+ * @param {!proto.clarifai.api.ListAnnotationTracksRequest} msg The msg instance to transform.
11821
+ * @return {!Object}
11822
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11823
+ */
11824
+ proto.clarifai.api.ListAnnotationTracksRequest.toObject = function(includeInstance, msg) {
11825
+ var f, obj = {
11826
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
11827
+ idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
11828
+ inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
11829
+ page: jspb.Message.getFieldWithDefault(msg, 4, 0),
11830
+ perPage: jspb.Message.getFieldWithDefault(msg, 5, 0)
11831
+ };
11832
+
11833
+ if (includeInstance) {
11834
+ obj.$jspbMessageInstance = msg;
11835
+ }
11836
+ return obj;
11837
+ };
11838
+ }
11839
+
11840
+
11841
+ /**
11842
+ * Deserializes binary data (in protobuf wire format).
11843
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11844
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest}
11845
+ */
11846
+ proto.clarifai.api.ListAnnotationTracksRequest.deserializeBinary = function(bytes) {
11847
+ var reader = new jspb.BinaryReader(bytes);
11848
+ var msg = new proto.clarifai.api.ListAnnotationTracksRequest;
11849
+ return proto.clarifai.api.ListAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
11850
+ };
11851
+
11852
+
11853
+ /**
11854
+ * Deserializes binary data (in protobuf wire format) from the
11855
+ * given reader into the given message object.
11856
+ * @param {!proto.clarifai.api.ListAnnotationTracksRequest} msg The message object to deserialize into.
11857
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11858
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest}
11859
+ */
11860
+ proto.clarifai.api.ListAnnotationTracksRequest.deserializeBinaryFromReader = function(msg, reader) {
11861
+ while (reader.nextField()) {
11862
+ if (reader.isEndGroup()) {
11863
+ break;
11864
+ }
11865
+ var field = reader.getFieldNumber();
11866
+ switch (field) {
11867
+ case 1:
11868
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
11869
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
11870
+ msg.setUserAppId(value);
11871
+ break;
11872
+ case 2:
11873
+ var value = /** @type {string} */ (reader.readString());
11874
+ msg.addIds(value);
11875
+ break;
11876
+ case 3:
11877
+ var value = /** @type {string} */ (reader.readString());
11878
+ msg.setInputId(value);
11879
+ break;
11880
+ case 4:
11881
+ var value = /** @type {number} */ (reader.readUint32());
11882
+ msg.setPage(value);
11883
+ break;
11884
+ case 5:
11885
+ var value = /** @type {number} */ (reader.readUint32());
11886
+ msg.setPerPage(value);
11887
+ break;
11888
+ default:
11889
+ reader.skipField();
11890
+ break;
11891
+ }
11892
+ }
11893
+ return msg;
11894
+ };
11895
+
11896
+
11897
+ /**
11898
+ * Serializes the message to binary data (in protobuf wire format).
11899
+ * @return {!Uint8Array}
11900
+ */
11901
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.serializeBinary = function() {
11902
+ var writer = new jspb.BinaryWriter();
11903
+ proto.clarifai.api.ListAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
11904
+ return writer.getResultBuffer();
11905
+ };
11906
+
11907
+
11908
+ /**
11909
+ * Serializes the given message to binary data (in protobuf wire
11910
+ * format), writing to the given BinaryWriter.
11911
+ * @param {!proto.clarifai.api.ListAnnotationTracksRequest} message
11912
+ * @param {!jspb.BinaryWriter} writer
11913
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11914
+ */
11915
+ proto.clarifai.api.ListAnnotationTracksRequest.serializeBinaryToWriter = function(message, writer) {
11916
+ var f = undefined;
11917
+ f = message.getUserAppId();
11918
+ if (f != null) {
11919
+ writer.writeMessage(
11920
+ 1,
11921
+ f,
11922
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
11923
+ );
11924
+ }
11925
+ f = message.getIdsList();
11926
+ if (f.length > 0) {
11927
+ writer.writeRepeatedString(
11928
+ 2,
11929
+ f
11930
+ );
11931
+ }
11932
+ f = message.getInputId();
11933
+ if (f.length > 0) {
11934
+ writer.writeString(
11935
+ 3,
11936
+ f
11937
+ );
11938
+ }
11939
+ f = message.getPage();
11940
+ if (f !== 0) {
11941
+ writer.writeUint32(
11942
+ 4,
11943
+ f
11944
+ );
11945
+ }
11946
+ f = message.getPerPage();
11947
+ if (f !== 0) {
11948
+ writer.writeUint32(
11949
+ 5,
11950
+ f
11951
+ );
11952
+ }
11953
+ };
11954
+
11955
+
11956
+ /**
11957
+ * optional UserAppIDSet user_app_id = 1;
11958
+ * @return {?proto.clarifai.api.UserAppIDSet}
11959
+ */
11960
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.getUserAppId = function() {
11961
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
11962
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
11963
+ };
11964
+
11965
+
11966
+ /**
11967
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11968
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
11969
+ */
11970
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.setUserAppId = function(value) {
11971
+ return jspb.Message.setWrapperField(this, 1, value);
11972
+ };
11973
+
11974
+
11975
+ /**
11976
+ * Clears the message field making it undefined.
11977
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
11978
+ */
11979
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.clearUserAppId = function() {
11980
+ return this.setUserAppId(undefined);
11981
+ };
11982
+
11983
+
11984
+ /**
11985
+ * Returns whether this field is set.
11986
+ * @return {boolean}
11987
+ */
11988
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.hasUserAppId = function() {
11989
+ return jspb.Message.getField(this, 1) != null;
11990
+ };
11991
+
11992
+
11993
+ /**
11994
+ * repeated string ids = 2;
11995
+ * @return {!Array<string>}
11996
+ */
11997
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.getIdsList = function() {
11998
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
11999
+ };
12000
+
12001
+
12002
+ /**
12003
+ * @param {!Array<string>} value
12004
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
12005
+ */
12006
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.setIdsList = function(value) {
12007
+ return jspb.Message.setField(this, 2, value || []);
12008
+ };
12009
+
12010
+
12011
+ /**
12012
+ * @param {string} value
12013
+ * @param {number=} opt_index
12014
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
12015
+ */
12016
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.addIds = function(value, opt_index) {
12017
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
12018
+ };
12019
+
12020
+
12021
+ /**
12022
+ * Clears the list making it empty but non-null.
12023
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
12024
+ */
12025
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.clearIdsList = function() {
12026
+ return this.setIdsList([]);
12027
+ };
12028
+
12029
+
12030
+ /**
12031
+ * optional string input_id = 3;
12032
+ * @return {string}
12033
+ */
12034
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.getInputId = function() {
12035
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12036
+ };
12037
+
12038
+
12039
+ /**
12040
+ * @param {string} value
12041
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
12042
+ */
12043
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.setInputId = function(value) {
12044
+ return jspb.Message.setProto3StringField(this, 3, value);
12045
+ };
12046
+
12047
+
12048
+ /**
12049
+ * optional uint32 page = 4;
12050
+ * @return {number}
12051
+ */
12052
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.getPage = function() {
12053
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
12054
+ };
12055
+
12056
+
12057
+ /**
12058
+ * @param {number} value
12059
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
12060
+ */
12061
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.setPage = function(value) {
12062
+ return jspb.Message.setProto3IntField(this, 4, value);
12063
+ };
12064
+
12065
+
12066
+ /**
12067
+ * optional uint32 per_page = 5;
12068
+ * @return {number}
12069
+ */
12070
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.getPerPage = function() {
12071
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
12072
+ };
12073
+
12074
+
12075
+ /**
12076
+ * @param {number} value
12077
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
12078
+ */
12079
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.setPerPage = function(value) {
12080
+ return jspb.Message.setProto3IntField(this, 5, value);
12081
+ };
12082
+
12083
+
12084
+
12085
+ /**
12086
+ * List of repeated fields within this message type.
12087
+ * @private {!Array<number>}
12088
+ * @const
12089
+ */
12090
+ proto.clarifai.api.PostAnnotationTracksRequest.repeatedFields_ = [2];
12091
+
12092
+
12093
+
12094
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12095
+ /**
12096
+ * Creates an object representation of this proto.
12097
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12098
+ * Optional fields that are not set will be set to undefined.
12099
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12100
+ * For the list of reserved names please see:
12101
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12102
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12103
+ * JSPB instance for transitional soy proto support:
12104
+ * http://goto/soy-param-migration
12105
+ * @return {!Object}
12106
+ */
12107
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.toObject = function(opt_includeInstance) {
12108
+ return proto.clarifai.api.PostAnnotationTracksRequest.toObject(opt_includeInstance, this);
12109
+ };
12110
+
12111
+
12112
+ /**
12113
+ * Static version of the {@see toObject} method.
12114
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12115
+ * the JSPB instance for transitional soy proto support:
12116
+ * http://goto/soy-param-migration
12117
+ * @param {!proto.clarifai.api.PostAnnotationTracksRequest} msg The msg instance to transform.
12118
+ * @return {!Object}
12119
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12120
+ */
12121
+ proto.clarifai.api.PostAnnotationTracksRequest.toObject = function(includeInstance, msg) {
12122
+ var f, obj = {
12123
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
12124
+ annotationTracksList: jspb.Message.toObjectList(msg.getAnnotationTracksList(),
12125
+ proto_clarifai_api_resources_pb.AnnotationTrack.toObject, includeInstance),
12126
+ inputId: jspb.Message.getFieldWithDefault(msg, 3, "")
12127
+ };
12128
+
12129
+ if (includeInstance) {
12130
+ obj.$jspbMessageInstance = msg;
12131
+ }
12132
+ return obj;
12133
+ };
12134
+ }
12135
+
12136
+
12137
+ /**
12138
+ * Deserializes binary data (in protobuf wire format).
12139
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12140
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest}
12141
+ */
12142
+ proto.clarifai.api.PostAnnotationTracksRequest.deserializeBinary = function(bytes) {
12143
+ var reader = new jspb.BinaryReader(bytes);
12144
+ var msg = new proto.clarifai.api.PostAnnotationTracksRequest;
12145
+ return proto.clarifai.api.PostAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
12146
+ };
12147
+
12148
+
12149
+ /**
12150
+ * Deserializes binary data (in protobuf wire format) from the
12151
+ * given reader into the given message object.
12152
+ * @param {!proto.clarifai.api.PostAnnotationTracksRequest} msg The message object to deserialize into.
12153
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12154
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest}
12155
+ */
12156
+ proto.clarifai.api.PostAnnotationTracksRequest.deserializeBinaryFromReader = function(msg, reader) {
12157
+ while (reader.nextField()) {
12158
+ if (reader.isEndGroup()) {
12159
+ break;
12160
+ }
12161
+ var field = reader.getFieldNumber();
12162
+ switch (field) {
12163
+ case 1:
12164
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
12165
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
12166
+ msg.setUserAppId(value);
12167
+ break;
12168
+ case 2:
12169
+ var value = new proto_clarifai_api_resources_pb.AnnotationTrack;
12170
+ reader.readMessage(value,proto_clarifai_api_resources_pb.AnnotationTrack.deserializeBinaryFromReader);
12171
+ msg.addAnnotationTracks(value);
12172
+ break;
12173
+ case 3:
12174
+ var value = /** @type {string} */ (reader.readString());
12175
+ msg.setInputId(value);
12176
+ break;
12177
+ default:
12178
+ reader.skipField();
12179
+ break;
12180
+ }
12181
+ }
12182
+ return msg;
12183
+ };
12184
+
12185
+
12186
+ /**
12187
+ * Serializes the message to binary data (in protobuf wire format).
12188
+ * @return {!Uint8Array}
12189
+ */
12190
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.serializeBinary = function() {
12191
+ var writer = new jspb.BinaryWriter();
12192
+ proto.clarifai.api.PostAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
12193
+ return writer.getResultBuffer();
12194
+ };
12195
+
12196
+
12197
+ /**
12198
+ * Serializes the given message to binary data (in protobuf wire
12199
+ * format), writing to the given BinaryWriter.
12200
+ * @param {!proto.clarifai.api.PostAnnotationTracksRequest} message
12201
+ * @param {!jspb.BinaryWriter} writer
12202
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12203
+ */
12204
+ proto.clarifai.api.PostAnnotationTracksRequest.serializeBinaryToWriter = function(message, writer) {
12205
+ var f = undefined;
12206
+ f = message.getUserAppId();
12207
+ if (f != null) {
12208
+ writer.writeMessage(
12209
+ 1,
12210
+ f,
12211
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
12212
+ );
12213
+ }
12214
+ f = message.getAnnotationTracksList();
12215
+ if (f.length > 0) {
12216
+ writer.writeRepeatedMessage(
12217
+ 2,
12218
+ f,
12219
+ proto_clarifai_api_resources_pb.AnnotationTrack.serializeBinaryToWriter
12220
+ );
12221
+ }
12222
+ f = message.getInputId();
12223
+ if (f.length > 0) {
12224
+ writer.writeString(
12225
+ 3,
12226
+ f
12227
+ );
12228
+ }
12229
+ };
12230
+
12231
+
12232
+ /**
12233
+ * optional UserAppIDSet user_app_id = 1;
12234
+ * @return {?proto.clarifai.api.UserAppIDSet}
12235
+ */
12236
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.getUserAppId = function() {
12237
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
12238
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
12239
+ };
12240
+
12241
+
12242
+ /**
12243
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
12244
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
12245
+ */
12246
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.setUserAppId = function(value) {
12247
+ return jspb.Message.setWrapperField(this, 1, value);
12248
+ };
12249
+
12250
+
12251
+ /**
12252
+ * Clears the message field making it undefined.
12253
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
12254
+ */
12255
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.clearUserAppId = function() {
12256
+ return this.setUserAppId(undefined);
12257
+ };
12258
+
12259
+
12260
+ /**
12261
+ * Returns whether this field is set.
12262
+ * @return {boolean}
12263
+ */
12264
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.hasUserAppId = function() {
12265
+ return jspb.Message.getField(this, 1) != null;
12266
+ };
12267
+
12268
+
12269
+ /**
12270
+ * repeated AnnotationTrack annotation_tracks = 2;
12271
+ * @return {!Array<!proto.clarifai.api.AnnotationTrack>}
12272
+ */
12273
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.getAnnotationTracksList = function() {
12274
+ return /** @type{!Array<!proto.clarifai.api.AnnotationTrack>} */ (
12275
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationTrack, 2));
12276
+ };
12277
+
12278
+
12279
+ /**
12280
+ * @param {!Array<!proto.clarifai.api.AnnotationTrack>} value
12281
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
12282
+ */
12283
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.setAnnotationTracksList = function(value) {
12284
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
12285
+ };
12286
+
12287
+
12288
+ /**
12289
+ * @param {!proto.clarifai.api.AnnotationTrack=} opt_value
12290
+ * @param {number=} opt_index
12291
+ * @return {!proto.clarifai.api.AnnotationTrack}
12292
+ */
12293
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.addAnnotationTracks = function(opt_value, opt_index) {
12294
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationTrack, opt_index);
12295
+ };
12296
+
12297
+
12298
+ /**
12299
+ * Clears the list making it empty but non-null.
12300
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
12301
+ */
12302
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.clearAnnotationTracksList = function() {
12303
+ return this.setAnnotationTracksList([]);
12304
+ };
12305
+
12306
+
12307
+ /**
12308
+ * optional string input_id = 3;
12309
+ * @return {string}
12310
+ */
12311
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.getInputId = function() {
12312
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12313
+ };
12314
+
12315
+
12316
+ /**
12317
+ * @param {string} value
12318
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
12319
+ */
12320
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.setInputId = function(value) {
12321
+ return jspb.Message.setProto3StringField(this, 3, value);
12322
+ };
12323
+
12324
+
12325
+
12326
+ /**
12327
+ * List of repeated fields within this message type.
12328
+ * @private {!Array<number>}
12329
+ * @const
12330
+ */
12331
+ proto.clarifai.api.PatchAnnotationTracksRequest.repeatedFields_ = [2];
12332
+
12333
+
12334
+
12335
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12336
+ /**
12337
+ * Creates an object representation of this proto.
12338
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12339
+ * Optional fields that are not set will be set to undefined.
12340
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12341
+ * For the list of reserved names please see:
12342
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12343
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12344
+ * JSPB instance for transitional soy proto support:
12345
+ * http://goto/soy-param-migration
12346
+ * @return {!Object}
12347
+ */
12348
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.toObject = function(opt_includeInstance) {
12349
+ return proto.clarifai.api.PatchAnnotationTracksRequest.toObject(opt_includeInstance, this);
12350
+ };
12351
+
12352
+
12353
+ /**
12354
+ * Static version of the {@see toObject} method.
12355
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12356
+ * the JSPB instance for transitional soy proto support:
12357
+ * http://goto/soy-param-migration
12358
+ * @param {!proto.clarifai.api.PatchAnnotationTracksRequest} msg The msg instance to transform.
12359
+ * @return {!Object}
12360
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12361
+ */
12362
+ proto.clarifai.api.PatchAnnotationTracksRequest.toObject = function(includeInstance, msg) {
12363
+ var f, obj = {
12364
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
12365
+ annotationTracksList: jspb.Message.toObjectList(msg.getAnnotationTracksList(),
12366
+ proto_clarifai_api_resources_pb.AnnotationTrack.toObject, includeInstance),
12367
+ inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
12368
+ action: jspb.Message.getFieldWithDefault(msg, 4, "")
12369
+ };
12370
+
12371
+ if (includeInstance) {
12372
+ obj.$jspbMessageInstance = msg;
12373
+ }
12374
+ return obj;
12375
+ };
12376
+ }
12377
+
12378
+
12379
+ /**
12380
+ * Deserializes binary data (in protobuf wire format).
12381
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12382
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest}
12383
+ */
12384
+ proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinary = function(bytes) {
12385
+ var reader = new jspb.BinaryReader(bytes);
12386
+ var msg = new proto.clarifai.api.PatchAnnotationTracksRequest;
12387
+ return proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
12388
+ };
12389
+
12390
+
12391
+ /**
12392
+ * Deserializes binary data (in protobuf wire format) from the
12393
+ * given reader into the given message object.
12394
+ * @param {!proto.clarifai.api.PatchAnnotationTracksRequest} msg The message object to deserialize into.
12395
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12396
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest}
12397
+ */
12398
+ proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinaryFromReader = function(msg, reader) {
12399
+ while (reader.nextField()) {
12400
+ if (reader.isEndGroup()) {
12401
+ break;
12402
+ }
12403
+ var field = reader.getFieldNumber();
12404
+ switch (field) {
12405
+ case 1:
12406
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
12407
+ reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
12408
+ msg.setUserAppId(value);
12409
+ break;
12410
+ case 2:
12411
+ var value = new proto_clarifai_api_resources_pb.AnnotationTrack;
12412
+ reader.readMessage(value,proto_clarifai_api_resources_pb.AnnotationTrack.deserializeBinaryFromReader);
12413
+ msg.addAnnotationTracks(value);
12414
+ break;
12415
+ case 3:
12416
+ var value = /** @type {string} */ (reader.readString());
12417
+ msg.setInputId(value);
12418
+ break;
12419
+ case 4:
12420
+ var value = /** @type {string} */ (reader.readString());
12421
+ msg.setAction(value);
12422
+ break;
12423
+ default:
12424
+ reader.skipField();
12425
+ break;
12426
+ }
12427
+ }
12428
+ return msg;
12429
+ };
12430
+
12431
+
12432
+ /**
12433
+ * Serializes the message to binary data (in protobuf wire format).
12434
+ * @return {!Uint8Array}
12435
+ */
12436
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.serializeBinary = function() {
12437
+ var writer = new jspb.BinaryWriter();
12438
+ proto.clarifai.api.PatchAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
12439
+ return writer.getResultBuffer();
12440
+ };
12441
+
12442
+
12443
+ /**
12444
+ * Serializes the given message to binary data (in protobuf wire
12445
+ * format), writing to the given BinaryWriter.
12446
+ * @param {!proto.clarifai.api.PatchAnnotationTracksRequest} message
12447
+ * @param {!jspb.BinaryWriter} writer
12448
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12449
+ */
12450
+ proto.clarifai.api.PatchAnnotationTracksRequest.serializeBinaryToWriter = function(message, writer) {
12451
+ var f = undefined;
12452
+ f = message.getUserAppId();
12453
+ if (f != null) {
12454
+ writer.writeMessage(
12455
+ 1,
12456
+ f,
12457
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
12458
+ );
12459
+ }
12460
+ f = message.getAnnotationTracksList();
12461
+ if (f.length > 0) {
12462
+ writer.writeRepeatedMessage(
12463
+ 2,
12464
+ f,
12465
+ proto_clarifai_api_resources_pb.AnnotationTrack.serializeBinaryToWriter
12466
+ );
12467
+ }
12468
+ f = message.getInputId();
12469
+ if (f.length > 0) {
12470
+ writer.writeString(
12471
+ 3,
12472
+ f
12473
+ );
12474
+ }
12475
+ f = message.getAction();
12476
+ if (f.length > 0) {
12477
+ writer.writeString(
12478
+ 4,
12479
+ f
12480
+ );
12481
+ }
12482
+ };
12483
+
12484
+
12485
+ /**
12486
+ * optional UserAppIDSet user_app_id = 1;
12487
+ * @return {?proto.clarifai.api.UserAppIDSet}
11121
12488
  */
11122
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getStatus = function() {
11123
- return /** @type{?proto.clarifai.api.status.Status} */ (
11124
- jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
12489
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getUserAppId = function() {
12490
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
12491
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
11125
12492
  };
11126
12493
 
11127
12494
 
11128
12495
  /**
11129
- * @param {?proto.clarifai.api.status.Status|undefined} value
11130
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
12496
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
12497
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
11131
12498
  */
11132
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setStatus = function(value) {
12499
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setUserAppId = function(value) {
11133
12500
  return jspb.Message.setWrapperField(this, 1, value);
11134
12501
  };
11135
12502
 
11136
12503
 
11137
12504
  /**
11138
12505
  * Clears the message field making it undefined.
11139
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
12506
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
11140
12507
  */
11141
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearStatus = function() {
11142
- return this.setStatus(undefined);
12508
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.clearUserAppId = function() {
12509
+ return this.setUserAppId(undefined);
11143
12510
  };
11144
12511
 
11145
12512
 
@@ -11147,67 +12514,93 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearStatus = functi
11147
12514
  * Returns whether this field is set.
11148
12515
  * @return {boolean}
11149
12516
  */
11150
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.hasStatus = function() {
12517
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.hasUserAppId = function() {
11151
12518
  return jspb.Message.getField(this, 1) != null;
11152
12519
  };
11153
12520
 
11154
12521
 
11155
12522
  /**
11156
- * repeated string user_ids = 2;
11157
- * @return {!Array<string>}
12523
+ * repeated AnnotationTrack annotation_tracks = 2;
12524
+ * @return {!Array<!proto.clarifai.api.AnnotationTrack>}
11158
12525
  */
11159
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUserIdsList = function() {
11160
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
12526
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getAnnotationTracksList = function() {
12527
+ return /** @type{!Array<!proto.clarifai.api.AnnotationTrack>} */ (
12528
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationTrack, 2));
11161
12529
  };
11162
12530
 
11163
12531
 
11164
12532
  /**
11165
- * @param {!Array<string>} value
11166
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11167
- */
11168
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUserIdsList = function(value) {
11169
- return jspb.Message.setField(this, 2, value || []);
12533
+ * @param {!Array<!proto.clarifai.api.AnnotationTrack>} value
12534
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
12535
+ */
12536
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setAnnotationTracksList = function(value) {
12537
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
11170
12538
  };
11171
12539
 
11172
12540
 
11173
12541
  /**
11174
- * @param {string} value
12542
+ * @param {!proto.clarifai.api.AnnotationTrack=} opt_value
11175
12543
  * @param {number=} opt_index
11176
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
12544
+ * @return {!proto.clarifai.api.AnnotationTrack}
11177
12545
  */
11178
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.addUserIds = function(value, opt_index) {
11179
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
12546
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.addAnnotationTracks = function(opt_value, opt_index) {
12547
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationTrack, opt_index);
11180
12548
  };
11181
12549
 
11182
12550
 
11183
12551
  /**
11184
12552
  * Clears the list making it empty but non-null.
11185
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
12553
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
11186
12554
  */
11187
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearUserIdsList = function() {
11188
- return this.setUserIdsList([]);
12555
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.clearAnnotationTracksList = function() {
12556
+ return this.setAnnotationTracksList([]);
11189
12557
  };
11190
12558
 
11191
12559
 
11192
12560
  /**
11193
- * optional uint32 updated_count = 3;
11194
- * @return {number}
12561
+ * optional string input_id = 3;
12562
+ * @return {string}
11195
12563
  */
11196
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUpdatedCount = function() {
11197
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
12564
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getInputId = function() {
12565
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11198
12566
  };
11199
12567
 
11200
12568
 
11201
12569
  /**
11202
- * @param {number} value
11203
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
12570
+ * @param {string} value
12571
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
11204
12572
  */
11205
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUpdatedCount = function(value) {
11206
- return jspb.Message.setProto3IntField(this, 3, value);
12573
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setInputId = function(value) {
12574
+ return jspb.Message.setProto3StringField(this, 3, value);
12575
+ };
12576
+
12577
+
12578
+ /**
12579
+ * optional string action = 4;
12580
+ * @return {string}
12581
+ */
12582
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getAction = function() {
12583
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
12584
+ };
12585
+
12586
+
12587
+ /**
12588
+ * @param {string} value
12589
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
12590
+ */
12591
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setAction = function(value) {
12592
+ return jspb.Message.setProto3StringField(this, 4, value);
11207
12593
  };
11208
12594
 
11209
12595
 
11210
12596
 
12597
+ /**
12598
+ * List of repeated fields within this message type.
12599
+ * @private {!Array<number>}
12600
+ * @const
12601
+ */
12602
+ proto.clarifai.api.DeleteAnnotationTracksRequest.repeatedFields_ = [2];
12603
+
11211
12604
 
11212
12605
 
11213
12606
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -11223,8 +12616,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
11223
12616
  * http://goto/soy-param-migration
11224
12617
  * @return {!Object}
11225
12618
  */
11226
- proto.clarifai.api.DeleteAnnotationRequest.prototype.toObject = function(opt_includeInstance) {
11227
- return proto.clarifai.api.DeleteAnnotationRequest.toObject(opt_includeInstance, this);
12619
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.toObject = function(opt_includeInstance) {
12620
+ return proto.clarifai.api.DeleteAnnotationTracksRequest.toObject(opt_includeInstance, this);
11228
12621
  };
11229
12622
 
11230
12623
 
@@ -11233,15 +12626,15 @@ proto.clarifai.api.DeleteAnnotationRequest.prototype.toObject = function(opt_inc
11233
12626
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11234
12627
  * the JSPB instance for transitional soy proto support:
11235
12628
  * http://goto/soy-param-migration
11236
- * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The msg instance to transform.
12629
+ * @param {!proto.clarifai.api.DeleteAnnotationTracksRequest} msg The msg instance to transform.
11237
12630
  * @return {!Object}
11238
12631
  * @suppress {unusedLocalVariables} f is only used for nested messages
11239
12632
  */
11240
- proto.clarifai.api.DeleteAnnotationRequest.toObject = function(includeInstance, msg) {
12633
+ proto.clarifai.api.DeleteAnnotationTracksRequest.toObject = function(includeInstance, msg) {
11241
12634
  var f, obj = {
11242
12635
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
11243
- inputId: jspb.Message.getFieldWithDefault(msg, 2, ""),
11244
- annotationId: jspb.Message.getFieldWithDefault(msg, 3, "")
12636
+ idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
12637
+ inputId: jspb.Message.getFieldWithDefault(msg, 3, "")
11245
12638
  };
11246
12639
 
11247
12640
  if (includeInstance) {
@@ -11255,23 +12648,23 @@ proto.clarifai.api.DeleteAnnotationRequest.toObject = function(includeInstance,
11255
12648
  /**
11256
12649
  * Deserializes binary data (in protobuf wire format).
11257
12650
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
11258
- * @return {!proto.clarifai.api.DeleteAnnotationRequest}
12651
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest}
11259
12652
  */
11260
- proto.clarifai.api.DeleteAnnotationRequest.deserializeBinary = function(bytes) {
12653
+ proto.clarifai.api.DeleteAnnotationTracksRequest.deserializeBinary = function(bytes) {
11261
12654
  var reader = new jspb.BinaryReader(bytes);
11262
- var msg = new proto.clarifai.api.DeleteAnnotationRequest;
11263
- return proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader(msg, reader);
12655
+ var msg = new proto.clarifai.api.DeleteAnnotationTracksRequest;
12656
+ return proto.clarifai.api.DeleteAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
11264
12657
  };
11265
12658
 
11266
12659
 
11267
12660
  /**
11268
12661
  * Deserializes binary data (in protobuf wire format) from the
11269
12662
  * given reader into the given message object.
11270
- * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The message object to deserialize into.
12663
+ * @param {!proto.clarifai.api.DeleteAnnotationTracksRequest} msg The message object to deserialize into.
11271
12664
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11272
- * @return {!proto.clarifai.api.DeleteAnnotationRequest}
12665
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest}
11273
12666
  */
11274
- proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = function(msg, reader) {
12667
+ proto.clarifai.api.DeleteAnnotationTracksRequest.deserializeBinaryFromReader = function(msg, reader) {
11275
12668
  while (reader.nextField()) {
11276
12669
  if (reader.isEndGroup()) {
11277
12670
  break;
@@ -11285,11 +12678,11 @@ proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = functio
11285
12678
  break;
11286
12679
  case 2:
11287
12680
  var value = /** @type {string} */ (reader.readString());
11288
- msg.setInputId(value);
12681
+ msg.addIds(value);
11289
12682
  break;
11290
12683
  case 3:
11291
12684
  var value = /** @type {string} */ (reader.readString());
11292
- msg.setAnnotationId(value);
12685
+ msg.setInputId(value);
11293
12686
  break;
11294
12687
  default:
11295
12688
  reader.skipField();
@@ -11304,9 +12697,9 @@ proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = functio
11304
12697
  * Serializes the message to binary data (in protobuf wire format).
11305
12698
  * @return {!Uint8Array}
11306
12699
  */
11307
- proto.clarifai.api.DeleteAnnotationRequest.prototype.serializeBinary = function() {
12700
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.serializeBinary = function() {
11308
12701
  var writer = new jspb.BinaryWriter();
11309
- proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter(this, writer);
12702
+ proto.clarifai.api.DeleteAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
11310
12703
  return writer.getResultBuffer();
11311
12704
  };
11312
12705
 
@@ -11314,11 +12707,11 @@ proto.clarifai.api.DeleteAnnotationRequest.prototype.serializeBinary = function(
11314
12707
  /**
11315
12708
  * Serializes the given message to binary data (in protobuf wire
11316
12709
  * format), writing to the given BinaryWriter.
11317
- * @param {!proto.clarifai.api.DeleteAnnotationRequest} message
12710
+ * @param {!proto.clarifai.api.DeleteAnnotationTracksRequest} message
11318
12711
  * @param {!jspb.BinaryWriter} writer
11319
12712
  * @suppress {unusedLocalVariables} f is only used for nested messages
11320
12713
  */
11321
- proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function(message, writer) {
12714
+ proto.clarifai.api.DeleteAnnotationTracksRequest.serializeBinaryToWriter = function(message, writer) {
11322
12715
  var f = undefined;
11323
12716
  f = message.getUserAppId();
11324
12717
  if (f != null) {
@@ -11328,14 +12721,14 @@ proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function(me
11328
12721
  proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
11329
12722
  );
11330
12723
  }
11331
- f = message.getInputId();
12724
+ f = message.getIdsList();
11332
12725
  if (f.length > 0) {
11333
- writer.writeString(
12726
+ writer.writeRepeatedString(
11334
12727
  2,
11335
12728
  f
11336
12729
  );
11337
12730
  }
11338
- f = message.getAnnotationId();
12731
+ f = message.getInputId();
11339
12732
  if (f.length > 0) {
11340
12733
  writer.writeString(
11341
12734
  3,
@@ -11349,7 +12742,7 @@ proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function(me
11349
12742
  * optional UserAppIDSet user_app_id = 1;
11350
12743
  * @return {?proto.clarifai.api.UserAppIDSet}
11351
12744
  */
11352
- proto.clarifai.api.DeleteAnnotationRequest.prototype.getUserAppId = function() {
12745
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.getUserAppId = function() {
11353
12746
  return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
11354
12747
  jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
11355
12748
  };
@@ -11357,18 +12750,18 @@ proto.clarifai.api.DeleteAnnotationRequest.prototype.getUserAppId = function() {
11357
12750
 
11358
12751
  /**
11359
12752
  * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11360
- * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
12753
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
11361
12754
  */
11362
- proto.clarifai.api.DeleteAnnotationRequest.prototype.setUserAppId = function(value) {
12755
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.setUserAppId = function(value) {
11363
12756
  return jspb.Message.setWrapperField(this, 1, value);
11364
12757
  };
11365
12758
 
11366
12759
 
11367
12760
  /**
11368
12761
  * Clears the message field making it undefined.
11369
- * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
12762
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
11370
12763
  */
11371
- proto.clarifai.api.DeleteAnnotationRequest.prototype.clearUserAppId = function() {
12764
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.clearUserAppId = function() {
11372
12765
  return this.setUserAppId(undefined);
11373
12766
  };
11374
12767
 
@@ -11377,43 +12770,62 @@ proto.clarifai.api.DeleteAnnotationRequest.prototype.clearUserAppId = function()
11377
12770
  * Returns whether this field is set.
11378
12771
  * @return {boolean}
11379
12772
  */
11380
- proto.clarifai.api.DeleteAnnotationRequest.prototype.hasUserAppId = function() {
12773
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.hasUserAppId = function() {
11381
12774
  return jspb.Message.getField(this, 1) != null;
11382
12775
  };
11383
12776
 
11384
12777
 
11385
12778
  /**
11386
- * optional string input_id = 2;
11387
- * @return {string}
12779
+ * repeated string ids = 2;
12780
+ * @return {!Array<string>}
11388
12781
  */
11389
- proto.clarifai.api.DeleteAnnotationRequest.prototype.getInputId = function() {
11390
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12782
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.getIdsList = function() {
12783
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
12784
+ };
12785
+
12786
+
12787
+ /**
12788
+ * @param {!Array<string>} value
12789
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
12790
+ */
12791
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.setIdsList = function(value) {
12792
+ return jspb.Message.setField(this, 2, value || []);
11391
12793
  };
11392
12794
 
11393
12795
 
11394
12796
  /**
11395
12797
  * @param {string} value
11396
- * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
12798
+ * @param {number=} opt_index
12799
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
11397
12800
  */
11398
- proto.clarifai.api.DeleteAnnotationRequest.prototype.setInputId = function(value) {
11399
- return jspb.Message.setProto3StringField(this, 2, value);
12801
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.addIds = function(value, opt_index) {
12802
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
11400
12803
  };
11401
12804
 
11402
12805
 
11403
12806
  /**
11404
- * optional string annotation_id = 3;
12807
+ * Clears the list making it empty but non-null.
12808
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
12809
+ */
12810
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.clearIdsList = function() {
12811
+ return this.setIdsList([]);
12812
+ };
12813
+
12814
+
12815
+ /**
12816
+ * optional string input_id = 3;
11405
12817
  * @return {string}
11406
12818
  */
11407
- proto.clarifai.api.DeleteAnnotationRequest.prototype.getAnnotationId = function() {
12819
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.getInputId = function() {
11408
12820
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11409
12821
  };
11410
12822
 
11411
12823
 
11412
12824
  /**
11413
12825
  * @param {string} value
11414
- * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
12826
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
11415
12827
  */
11416
- proto.clarifai.api.DeleteAnnotationRequest.prototype.setAnnotationId = function(value) {
12828
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.setInputId = function(value) {
11417
12829
  return jspb.Message.setProto3StringField(this, 3, value);
11418
12830
  };
11419
12831
 
@@ -11424,7 +12836,7 @@ proto.clarifai.api.DeleteAnnotationRequest.prototype.setAnnotationId = function(
11424
12836
  * @private {!Array<number>}
11425
12837
  * @const
11426
12838
  */
11427
- proto.clarifai.api.DeleteAnnotationsRequest.repeatedFields_ = [2,3];
12839
+ proto.clarifai.api.MultiAnnotationTrackResponse.repeatedFields_ = [2];
11428
12840
 
11429
12841
 
11430
12842
 
@@ -11441,8 +12853,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
11441
12853
  * http://goto/soy-param-migration
11442
12854
  * @return {!Object}
11443
12855
  */
11444
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.toObject = function(opt_includeInstance) {
11445
- return proto.clarifai.api.DeleteAnnotationsRequest.toObject(opt_includeInstance, this);
12856
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.toObject = function(opt_includeInstance) {
12857
+ return proto.clarifai.api.MultiAnnotationTrackResponse.toObject(opt_includeInstance, this);
11446
12858
  };
11447
12859
 
11448
12860
 
@@ -11451,15 +12863,15 @@ proto.clarifai.api.DeleteAnnotationsRequest.prototype.toObject = function(opt_in
11451
12863
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11452
12864
  * the JSPB instance for transitional soy proto support:
11453
12865
  * http://goto/soy-param-migration
11454
- * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The msg instance to transform.
12866
+ * @param {!proto.clarifai.api.MultiAnnotationTrackResponse} msg The msg instance to transform.
11455
12867
  * @return {!Object}
11456
12868
  * @suppress {unusedLocalVariables} f is only used for nested messages
11457
12869
  */
11458
- proto.clarifai.api.DeleteAnnotationsRequest.toObject = function(includeInstance, msg) {
12870
+ proto.clarifai.api.MultiAnnotationTrackResponse.toObject = function(includeInstance, msg) {
11459
12871
  var f, obj = {
11460
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
11461
- idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
11462
- inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
12872
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
12873
+ annotationTracksList: jspb.Message.toObjectList(msg.getAnnotationTracksList(),
12874
+ proto_clarifai_api_resources_pb.AnnotationTrack.toObject, includeInstance)
11463
12875
  };
11464
12876
 
11465
12877
  if (includeInstance) {
@@ -11473,23 +12885,23 @@ proto.clarifai.api.DeleteAnnotationsRequest.toObject = function(includeInstance,
11473
12885
  /**
11474
12886
  * Deserializes binary data (in protobuf wire format).
11475
12887
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
11476
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest}
12888
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse}
11477
12889
  */
11478
- proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinary = function(bytes) {
12890
+ proto.clarifai.api.MultiAnnotationTrackResponse.deserializeBinary = function(bytes) {
11479
12891
  var reader = new jspb.BinaryReader(bytes);
11480
- var msg = new proto.clarifai.api.DeleteAnnotationsRequest;
11481
- return proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader(msg, reader);
12892
+ var msg = new proto.clarifai.api.MultiAnnotationTrackResponse;
12893
+ return proto.clarifai.api.MultiAnnotationTrackResponse.deserializeBinaryFromReader(msg, reader);
11482
12894
  };
11483
12895
 
11484
12896
 
11485
12897
  /**
11486
12898
  * Deserializes binary data (in protobuf wire format) from the
11487
12899
  * given reader into the given message object.
11488
- * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The message object to deserialize into.
12900
+ * @param {!proto.clarifai.api.MultiAnnotationTrackResponse} msg The message object to deserialize into.
11489
12901
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11490
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest}
12902
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse}
11491
12903
  */
11492
- proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) {
12904
+ proto.clarifai.api.MultiAnnotationTrackResponse.deserializeBinaryFromReader = function(msg, reader) {
11493
12905
  while (reader.nextField()) {
11494
12906
  if (reader.isEndGroup()) {
11495
12907
  break;
@@ -11497,17 +12909,14 @@ proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = functi
11497
12909
  var field = reader.getFieldNumber();
11498
12910
  switch (field) {
11499
12911
  case 1:
11500
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
11501
- reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
11502
- msg.setUserAppId(value);
12912
+ var value = new proto_clarifai_api_status_status_pb.Status;
12913
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
12914
+ msg.setStatus(value);
11503
12915
  break;
11504
12916
  case 2:
11505
- var value = /** @type {string} */ (reader.readString());
11506
- msg.addIds(value);
11507
- break;
11508
- case 3:
11509
- var value = /** @type {string} */ (reader.readString());
11510
- msg.addInputIds(value);
12917
+ var value = new proto_clarifai_api_resources_pb.AnnotationTrack;
12918
+ reader.readMessage(value,proto_clarifai_api_resources_pb.AnnotationTrack.deserializeBinaryFromReader);
12919
+ msg.addAnnotationTracks(value);
11511
12920
  break;
11512
12921
  default:
11513
12922
  reader.skipField();
@@ -11522,9 +12931,9 @@ proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = functi
11522
12931
  * Serializes the message to binary data (in protobuf wire format).
11523
12932
  * @return {!Uint8Array}
11524
12933
  */
11525
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.serializeBinary = function() {
12934
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.serializeBinary = function() {
11526
12935
  var writer = new jspb.BinaryWriter();
11527
- proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter(this, writer);
12936
+ proto.clarifai.api.MultiAnnotationTrackResponse.serializeBinaryToWriter(this, writer);
11528
12937
  return writer.getResultBuffer();
11529
12938
  };
11530
12939
 
@@ -11532,62 +12941,56 @@ proto.clarifai.api.DeleteAnnotationsRequest.prototype.serializeBinary = function
11532
12941
  /**
11533
12942
  * Serializes the given message to binary data (in protobuf wire
11534
12943
  * format), writing to the given BinaryWriter.
11535
- * @param {!proto.clarifai.api.DeleteAnnotationsRequest} message
12944
+ * @param {!proto.clarifai.api.MultiAnnotationTrackResponse} message
11536
12945
  * @param {!jspb.BinaryWriter} writer
11537
12946
  * @suppress {unusedLocalVariables} f is only used for nested messages
11538
12947
  */
11539
- proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter = function(message, writer) {
12948
+ proto.clarifai.api.MultiAnnotationTrackResponse.serializeBinaryToWriter = function(message, writer) {
11540
12949
  var f = undefined;
11541
- f = message.getUserAppId();
12950
+ f = message.getStatus();
11542
12951
  if (f != null) {
11543
12952
  writer.writeMessage(
11544
12953
  1,
11545
12954
  f,
11546
- proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
12955
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
11547
12956
  );
11548
12957
  }
11549
- f = message.getIdsList();
12958
+ f = message.getAnnotationTracksList();
11550
12959
  if (f.length > 0) {
11551
- writer.writeRepeatedString(
12960
+ writer.writeRepeatedMessage(
11552
12961
  2,
11553
- f
11554
- );
11555
- }
11556
- f = message.getInputIdsList();
11557
- if (f.length > 0) {
11558
- writer.writeRepeatedString(
11559
- 3,
11560
- f
12962
+ f,
12963
+ proto_clarifai_api_resources_pb.AnnotationTrack.serializeBinaryToWriter
11561
12964
  );
11562
12965
  }
11563
12966
  };
11564
12967
 
11565
12968
 
11566
12969
  /**
11567
- * optional UserAppIDSet user_app_id = 1;
11568
- * @return {?proto.clarifai.api.UserAppIDSet}
12970
+ * optional status.Status status = 1;
12971
+ * @return {?proto.clarifai.api.status.Status}
11569
12972
  */
11570
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.getUserAppId = function() {
11571
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (
11572
- jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
12973
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.getStatus = function() {
12974
+ return /** @type{?proto.clarifai.api.status.Status} */ (
12975
+ jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
11573
12976
  };
11574
12977
 
11575
12978
 
11576
12979
  /**
11577
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11578
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
12980
+ * @param {?proto.clarifai.api.status.Status|undefined} value
12981
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
11579
12982
  */
11580
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.setUserAppId = function(value) {
12983
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.setStatus = function(value) {
11581
12984
  return jspb.Message.setWrapperField(this, 1, value);
11582
12985
  };
11583
12986
 
11584
12987
 
11585
12988
  /**
11586
12989
  * Clears the message field making it undefined.
11587
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
12990
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
11588
12991
  */
11589
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearUserAppId = function() {
11590
- return this.setUserAppId(undefined);
12992
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.clearStatus = function() {
12993
+ return this.setStatus(undefined);
11591
12994
  };
11592
12995
 
11593
12996
 
@@ -11595,82 +12998,46 @@ proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearUserAppId = function(
11595
12998
  * Returns whether this field is set.
11596
12999
  * @return {boolean}
11597
13000
  */
11598
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.hasUserAppId = function() {
13001
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.hasStatus = function() {
11599
13002
  return jspb.Message.getField(this, 1) != null;
11600
13003
  };
11601
13004
 
11602
13005
 
11603
13006
  /**
11604
- * repeated string ids = 2;
11605
- * @return {!Array<string>}
11606
- */
11607
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.getIdsList = function() {
11608
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
11609
- };
11610
-
11611
-
11612
- /**
11613
- * @param {!Array<string>} value
11614
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11615
- */
11616
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.setIdsList = function(value) {
11617
- return jspb.Message.setField(this, 2, value || []);
11618
- };
11619
-
11620
-
11621
- /**
11622
- * @param {string} value
11623
- * @param {number=} opt_index
11624
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11625
- */
11626
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.addIds = function(value, opt_index) {
11627
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
11628
- };
11629
-
11630
-
11631
- /**
11632
- * Clears the list making it empty but non-null.
11633
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11634
- */
11635
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearIdsList = function() {
11636
- return this.setIdsList([]);
11637
- };
11638
-
11639
-
11640
- /**
11641
- * repeated string input_ids = 3;
11642
- * @return {!Array<string>}
13007
+ * repeated AnnotationTrack annotation_tracks = 2;
13008
+ * @return {!Array<!proto.clarifai.api.AnnotationTrack>}
11643
13009
  */
11644
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.getInputIdsList = function() {
11645
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
13010
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.getAnnotationTracksList = function() {
13011
+ return /** @type{!Array<!proto.clarifai.api.AnnotationTrack>} */ (
13012
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationTrack, 2));
11646
13013
  };
11647
13014
 
11648
13015
 
11649
13016
  /**
11650
- * @param {!Array<string>} value
11651
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11652
- */
11653
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.setInputIdsList = function(value) {
11654
- return jspb.Message.setField(this, 3, value || []);
13017
+ * @param {!Array<!proto.clarifai.api.AnnotationTrack>} value
13018
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
13019
+ */
13020
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.setAnnotationTracksList = function(value) {
13021
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
11655
13022
  };
11656
13023
 
11657
13024
 
11658
13025
  /**
11659
- * @param {string} value
13026
+ * @param {!proto.clarifai.api.AnnotationTrack=} opt_value
11660
13027
  * @param {number=} opt_index
11661
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
13028
+ * @return {!proto.clarifai.api.AnnotationTrack}
11662
13029
  */
11663
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.addInputIds = function(value, opt_index) {
11664
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
13030
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.addAnnotationTracks = function(opt_value, opt_index) {
13031
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationTrack, opt_index);
11665
13032
  };
11666
13033
 
11667
13034
 
11668
13035
  /**
11669
13036
  * Clears the list making it empty but non-null.
11670
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
13037
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
11671
13038
  */
11672
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearInputIdsList = function() {
11673
- return this.setInputIdsList([]);
13039
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.clearAnnotationTracksList = function() {
13040
+ return this.setAnnotationTracksList([]);
11674
13041
  };
11675
13042
 
11676
13043
 
@@ -12883,6 +14250,7 @@ proto.clarifai.api.ListAppsRequest.toObject = function(includeInstance, msg) {
12883
14250
  featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
12884
14251
  starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
12885
14252
  templateOnly: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
14253
+ visibility: (f = msg.getVisibility()) && proto_clarifai_api_resources_pb.Visibility.toObject(includeInstance, f),
12886
14254
  search: jspb.Message.getFieldWithDefault(msg, 15, ""),
12887
14255
  query: jspb.Message.getFieldWithDefault(msg, 8, ""),
12888
14256
  name: jspb.Message.getFieldWithDefault(msg, 4, ""),
@@ -12976,6 +14344,11 @@ proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader = function(msg, r
12976
14344
  var value = /** @type {boolean} */ (reader.readBool());
12977
14345
  msg.setTemplateOnly(value);
12978
14346
  break;
14347
+ case 18:
14348
+ var value = new proto_clarifai_api_resources_pb.Visibility;
14349
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Visibility.deserializeBinaryFromReader);
14350
+ msg.setVisibility(value);
14351
+ break;
12979
14352
  case 15:
12980
14353
  var value = /** @type {string} */ (reader.readString());
12981
14354
  msg.setSearch(value);
@@ -13113,6 +14486,14 @@ proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter = function(message, w
13113
14486
  f
13114
14487
  );
13115
14488
  }
14489
+ f = message.getVisibility();
14490
+ if (f != null) {
14491
+ writer.writeMessage(
14492
+ 18,
14493
+ f,
14494
+ proto_clarifai_api_resources_pb.Visibility.serializeBinaryToWriter
14495
+ );
14496
+ }
13116
14497
  f = message.getSearch();
13117
14498
  if (f.length > 0) {
13118
14499
  writer.writeString(
@@ -13506,6 +14887,43 @@ proto.clarifai.api.ListAppsRequest.prototype.setTemplateOnly = function(value) {
13506
14887
  };
13507
14888
 
13508
14889
 
14890
+ /**
14891
+ * optional Visibility visibility = 18;
14892
+ * @return {?proto.clarifai.api.Visibility}
14893
+ */
14894
+ proto.clarifai.api.ListAppsRequest.prototype.getVisibility = function() {
14895
+ return /** @type{?proto.clarifai.api.Visibility} */ (
14896
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Visibility, 18));
14897
+ };
14898
+
14899
+
14900
+ /**
14901
+ * @param {?proto.clarifai.api.Visibility|undefined} value
14902
+ * @return {!proto.clarifai.api.ListAppsRequest} returns this
14903
+ */
14904
+ proto.clarifai.api.ListAppsRequest.prototype.setVisibility = function(value) {
14905
+ return jspb.Message.setWrapperField(this, 18, value);
14906
+ };
14907
+
14908
+
14909
+ /**
14910
+ * Clears the message field making it undefined.
14911
+ * @return {!proto.clarifai.api.ListAppsRequest} returns this
14912
+ */
14913
+ proto.clarifai.api.ListAppsRequest.prototype.clearVisibility = function() {
14914
+ return this.setVisibility(undefined);
14915
+ };
14916
+
14917
+
14918
+ /**
14919
+ * Returns whether this field is set.
14920
+ * @return {boolean}
14921
+ */
14922
+ proto.clarifai.api.ListAppsRequest.prototype.hasVisibility = function() {
14923
+ return jspb.Message.getField(this, 18) != null;
14924
+ };
14925
+
14926
+
13509
14927
  /**
13510
14928
  * optional string search = 15;
13511
14929
  * @return {string}
@@ -33931,6 +35349,7 @@ proto.clarifai.api.ListLogEntriesRequest.toObject = function(includeInstance, ms
33931
35349
  modelId: jspb.Message.getFieldWithDefault(msg, 5, ""),
33932
35350
  modelVersionId: jspb.Message.getFieldWithDefault(msg, 6, ""),
33933
35351
  workflowId: jspb.Message.getFieldWithDefault(msg, 7, ""),
35352
+ computeClusterUserId: jspb.Message.getFieldWithDefault(msg, 17, ""),
33934
35353
  computeClusterId: jspb.Message.getFieldWithDefault(msg, 9, ""),
33935
35354
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 10, ""),
33936
35355
  runnerId: jspb.Message.getFieldWithDefault(msg, 11, ""),
@@ -34004,6 +35423,10 @@ proto.clarifai.api.ListLogEntriesRequest.deserializeBinaryFromReader = function(
34004
35423
  var value = /** @type {string} */ (reader.readString());
34005
35424
  msg.setWorkflowId(value);
34006
35425
  break;
35426
+ case 17:
35427
+ var value = /** @type {string} */ (reader.readString());
35428
+ msg.setComputeClusterUserId(value);
35429
+ break;
34007
35430
  case 9:
34008
35431
  var value = /** @type {string} */ (reader.readString());
34009
35432
  msg.setComputeClusterId(value);
@@ -34115,6 +35538,13 @@ proto.clarifai.api.ListLogEntriesRequest.serializeBinaryToWriter = function(mess
34115
35538
  f
34116
35539
  );
34117
35540
  }
35541
+ f = message.getComputeClusterUserId();
35542
+ if (f.length > 0) {
35543
+ writer.writeString(
35544
+ 17,
35545
+ f
35546
+ );
35547
+ }
34118
35548
  f = message.getComputeClusterId();
34119
35549
  if (f.length > 0) {
34120
35550
  writer.writeString(
@@ -34319,6 +35749,24 @@ proto.clarifai.api.ListLogEntriesRequest.prototype.setWorkflowId = function(valu
34319
35749
  };
34320
35750
 
34321
35751
 
35752
+ /**
35753
+ * optional string compute_cluster_user_id = 17;
35754
+ * @return {string}
35755
+ */
35756
+ proto.clarifai.api.ListLogEntriesRequest.prototype.getComputeClusterUserId = function() {
35757
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
35758
+ };
35759
+
35760
+
35761
+ /**
35762
+ * @param {string} value
35763
+ * @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
35764
+ */
35765
+ proto.clarifai.api.ListLogEntriesRequest.prototype.setComputeClusterUserId = function(value) {
35766
+ return jspb.Message.setProto3StringField(this, 17, value);
35767
+ };
35768
+
35769
+
34322
35770
  /**
34323
35771
  * optional string compute_cluster_id = 9;
34324
35772
  * @return {string}
@@ -34500,6 +35948,7 @@ proto.clarifai.api.StreamLogEntriesRequest.toObject = function(includeInstance,
34500
35948
  modelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
34501
35949
  modelVersionId: jspb.Message.getFieldWithDefault(msg, 4, ""),
34502
35950
  workflowId: jspb.Message.getFieldWithDefault(msg, 5, ""),
35951
+ computeClusterUserId: jspb.Message.getFieldWithDefault(msg, 17, ""),
34503
35952
  computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
34504
35953
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
34505
35954
  runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
@@ -34565,6 +36014,10 @@ proto.clarifai.api.StreamLogEntriesRequest.deserializeBinaryFromReader = functio
34565
36014
  var value = /** @type {string} */ (reader.readString());
34566
36015
  msg.setWorkflowId(value);
34567
36016
  break;
36017
+ case 17:
36018
+ var value = /** @type {string} */ (reader.readString());
36019
+ msg.setComputeClusterUserId(value);
36020
+ break;
34568
36021
  case 6:
34569
36022
  var value = /** @type {string} */ (reader.readString());
34570
36023
  msg.setComputeClusterId(value);
@@ -34662,6 +36115,13 @@ proto.clarifai.api.StreamLogEntriesRequest.serializeBinaryToWriter = function(me
34662
36115
  f
34663
36116
  );
34664
36117
  }
36118
+ f = message.getComputeClusterUserId();
36119
+ if (f.length > 0) {
36120
+ writer.writeString(
36121
+ 17,
36122
+ f
36123
+ );
36124
+ }
34665
36125
  f = message.getComputeClusterId();
34666
36126
  if (f.length > 0) {
34667
36127
  writer.writeString(
@@ -34830,6 +36290,24 @@ proto.clarifai.api.StreamLogEntriesRequest.prototype.setWorkflowId = function(va
34830
36290
  };
34831
36291
 
34832
36292
 
36293
+ /**
36294
+ * optional string compute_cluster_user_id = 17;
36295
+ * @return {string}
36296
+ */
36297
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.getComputeClusterUserId = function() {
36298
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
36299
+ };
36300
+
36301
+
36302
+ /**
36303
+ * @param {string} value
36304
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
36305
+ */
36306
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.setComputeClusterUserId = function(value) {
36307
+ return jspb.Message.setProto3StringField(this, 17, value);
36308
+ };
36309
+
36310
+
34833
36311
  /**
34834
36312
  * optional string compute_cluster_id = 6;
34835
36313
  * @return {string}
@@ -37214,7 +38692,8 @@ proto.clarifai.api.ListModelsRequest.toObject = function(includeInstance, msg) {
37214
38692
  source: jspb.Message.getFieldWithDefault(msg, 30, 0),
37215
38693
  creator: jspb.Message.getFieldWithDefault(msg, 31, ""),
37216
38694
  minReplicas: jspb.Message.getFieldWithDefault(msg, 33, 0),
37217
- showReplicas: jspb.Message.getBooleanFieldWithDefault(msg, 34, false)
38695
+ showReplicas: jspb.Message.getBooleanFieldWithDefault(msg, 34, false),
38696
+ visibility: (f = msg.getVisibility()) && proto_clarifai_api_resources_pb.Visibility.toObject(includeInstance, f)
37218
38697
  };
37219
38698
 
37220
38699
  if (includeInstance) {
@@ -37380,6 +38859,11 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function(msg,
37380
38859
  var value = /** @type {boolean} */ (reader.readBool());
37381
38860
  msg.setShowReplicas(value);
37382
38861
  break;
38862
+ case 35:
38863
+ var value = new proto_clarifai_api_resources_pb.Visibility;
38864
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Visibility.deserializeBinaryFromReader);
38865
+ msg.setVisibility(value);
38866
+ break;
37383
38867
  default:
37384
38868
  reader.skipField();
37385
38869
  break;
@@ -37634,6 +39118,14 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function(message,
37634
39118
  f
37635
39119
  );
37636
39120
  }
39121
+ f = message.getVisibility();
39122
+ if (f != null) {
39123
+ writer.writeMessage(
39124
+ 35,
39125
+ f,
39126
+ proto_clarifai_api_resources_pb.Visibility.serializeBinaryToWriter
39127
+ );
39128
+ }
37637
39129
  };
37638
39130
 
37639
39131
 
@@ -38455,6 +39947,43 @@ proto.clarifai.api.ListModelsRequest.prototype.setShowReplicas = function(value)
38455
39947
  };
38456
39948
 
38457
39949
 
39950
+ /**
39951
+ * optional Visibility visibility = 35;
39952
+ * @return {?proto.clarifai.api.Visibility}
39953
+ */
39954
+ proto.clarifai.api.ListModelsRequest.prototype.getVisibility = function() {
39955
+ return /** @type{?proto.clarifai.api.Visibility} */ (
39956
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Visibility, 35));
39957
+ };
39958
+
39959
+
39960
+ /**
39961
+ * @param {?proto.clarifai.api.Visibility|undefined} value
39962
+ * @return {!proto.clarifai.api.ListModelsRequest} returns this
39963
+ */
39964
+ proto.clarifai.api.ListModelsRequest.prototype.setVisibility = function(value) {
39965
+ return jspb.Message.setWrapperField(this, 35, value);
39966
+ };
39967
+
39968
+
39969
+ /**
39970
+ * Clears the message field making it undefined.
39971
+ * @return {!proto.clarifai.api.ListModelsRequest} returns this
39972
+ */
39973
+ proto.clarifai.api.ListModelsRequest.prototype.clearVisibility = function() {
39974
+ return this.setVisibility(undefined);
39975
+ };
39976
+
39977
+
39978
+ /**
39979
+ * Returns whether this field is set.
39980
+ * @return {boolean}
39981
+ */
39982
+ proto.clarifai.api.ListModelsRequest.prototype.hasVisibility = function() {
39983
+ return jspb.Message.getField(this, 35) != null;
39984
+ };
39985
+
39986
+
38458
39987
 
38459
39988
 
38460
39989
 
@@ -62549,6 +64078,7 @@ proto.clarifai.api.ListWorkflowsRequest.toObject = function(includeInstance, msg
62549
64078
  featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
62550
64079
  starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
62551
64080
  bookmark: jspb.Message.getBooleanFieldWithDefault(msg, 15, false),
64081
+ visibility: (f = msg.getVisibility()) && proto_clarifai_api_resources_pb.Visibility.toObject(includeInstance, f),
62552
64082
  search: jspb.Message.getFieldWithDefault(msg, 16, ""),
62553
64083
  query: jspb.Message.getFieldWithDefault(msg, 8, ""),
62554
64084
  id: jspb.Message.getFieldWithDefault(msg, 4, ""),
@@ -62638,6 +64168,11 @@ proto.clarifai.api.ListWorkflowsRequest.deserializeBinaryFromReader = function(m
62638
64168
  var value = /** @type {boolean} */ (reader.readBool());
62639
64169
  msg.setBookmark(value);
62640
64170
  break;
64171
+ case 17:
64172
+ var value = new proto_clarifai_api_resources_pb.Visibility;
64173
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Visibility.deserializeBinaryFromReader);
64174
+ msg.setVisibility(value);
64175
+ break;
62641
64176
  case 16:
62642
64177
  var value = /** @type {string} */ (reader.readString());
62643
64178
  msg.setSearch(value);
@@ -62768,6 +64303,14 @@ proto.clarifai.api.ListWorkflowsRequest.serializeBinaryToWriter = function(messa
62768
64303
  f
62769
64304
  );
62770
64305
  }
64306
+ f = message.getVisibility();
64307
+ if (f != null) {
64308
+ writer.writeMessage(
64309
+ 17,
64310
+ f,
64311
+ proto_clarifai_api_resources_pb.Visibility.serializeBinaryToWriter
64312
+ );
64313
+ }
62771
64314
  f = message.getSearch();
62772
64315
  if (f.length > 0) {
62773
64316
  writer.writeString(
@@ -63125,6 +64668,43 @@ proto.clarifai.api.ListWorkflowsRequest.prototype.setBookmark = function(value)
63125
64668
  };
63126
64669
 
63127
64670
 
64671
+ /**
64672
+ * optional Visibility visibility = 17;
64673
+ * @return {?proto.clarifai.api.Visibility}
64674
+ */
64675
+ proto.clarifai.api.ListWorkflowsRequest.prototype.getVisibility = function() {
64676
+ return /** @type{?proto.clarifai.api.Visibility} */ (
64677
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Visibility, 17));
64678
+ };
64679
+
64680
+
64681
+ /**
64682
+ * @param {?proto.clarifai.api.Visibility|undefined} value
64683
+ * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this
64684
+ */
64685
+ proto.clarifai.api.ListWorkflowsRequest.prototype.setVisibility = function(value) {
64686
+ return jspb.Message.setWrapperField(this, 17, value);
64687
+ };
64688
+
64689
+
64690
+ /**
64691
+ * Clears the message field making it undefined.
64692
+ * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this
64693
+ */
64694
+ proto.clarifai.api.ListWorkflowsRequest.prototype.clearVisibility = function() {
64695
+ return this.setVisibility(undefined);
64696
+ };
64697
+
64698
+
64699
+ /**
64700
+ * Returns whether this field is set.
64701
+ * @return {boolean}
64702
+ */
64703
+ proto.clarifai.api.ListWorkflowsRequest.prototype.hasVisibility = function() {
64704
+ return jspb.Message.getField(this, 17) != null;
64705
+ };
64706
+
64707
+
63128
64708
  /**
63129
64709
  * optional string search = 16;
63130
64710
  * @return {string}
@@ -74466,7 +76046,8 @@ proto.clarifai.api.ListModulesRequest.toObject = function(includeInstance, msg)
74466
76046
  bookmark: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
74467
76047
  search: jspb.Message.getFieldWithDefault(msg, 14, ""),
74468
76048
  name: jspb.Message.getFieldWithDefault(msg, 12, ""),
74469
- filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 13, false)
76049
+ filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
76050
+ visibility: (f = msg.getVisibility()) && proto_clarifai_api_resources_pb.Visibility.toObject(includeInstance, f)
74470
76051
  };
74471
76052
 
74472
76053
  if (includeInstance) {
@@ -74560,6 +76141,11 @@ proto.clarifai.api.ListModulesRequest.deserializeBinaryFromReader = function(msg
74560
76141
  var value = /** @type {boolean} */ (reader.readBool());
74561
76142
  msg.setFilterByUserId(value);
74562
76143
  break;
76144
+ case 15:
76145
+ var value = new proto_clarifai_api_resources_pb.Visibility;
76146
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Visibility.deserializeBinaryFromReader);
76147
+ msg.setVisibility(value);
76148
+ break;
74563
76149
  default:
74564
76150
  reader.skipField();
74565
76151
  break;
@@ -74688,6 +76274,14 @@ proto.clarifai.api.ListModulesRequest.serializeBinaryToWriter = function(message
74688
76274
  f
74689
76275
  );
74690
76276
  }
76277
+ f = message.getVisibility();
76278
+ if (f != null) {
76279
+ writer.writeMessage(
76280
+ 15,
76281
+ f,
76282
+ proto_clarifai_api_resources_pb.Visibility.serializeBinaryToWriter
76283
+ );
76284
+ }
74691
76285
  };
74692
76286
 
74693
76287
 
@@ -75053,6 +76647,43 @@ proto.clarifai.api.ListModulesRequest.prototype.setFilterByUserId = function(val
75053
76647
  };
75054
76648
 
75055
76649
 
76650
+ /**
76651
+ * optional Visibility visibility = 15;
76652
+ * @return {?proto.clarifai.api.Visibility}
76653
+ */
76654
+ proto.clarifai.api.ListModulesRequest.prototype.getVisibility = function() {
76655
+ return /** @type{?proto.clarifai.api.Visibility} */ (
76656
+ jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Visibility, 15));
76657
+ };
76658
+
76659
+
76660
+ /**
76661
+ * @param {?proto.clarifai.api.Visibility|undefined} value
76662
+ * @return {!proto.clarifai.api.ListModulesRequest} returns this
76663
+ */
76664
+ proto.clarifai.api.ListModulesRequest.prototype.setVisibility = function(value) {
76665
+ return jspb.Message.setWrapperField(this, 15, value);
76666
+ };
76667
+
76668
+
76669
+ /**
76670
+ * Clears the message field making it undefined.
76671
+ * @return {!proto.clarifai.api.ListModulesRequest} returns this
76672
+ */
76673
+ proto.clarifai.api.ListModulesRequest.prototype.clearVisibility = function() {
76674
+ return this.setVisibility(undefined);
76675
+ };
76676
+
76677
+
76678
+ /**
76679
+ * Returns whether this field is set.
76680
+ * @return {boolean}
76681
+ */
76682
+ proto.clarifai.api.ListModulesRequest.prototype.hasVisibility = function() {
76683
+ return jspb.Message.getField(this, 15) != null;
76684
+ };
76685
+
76686
+
75056
76687
 
75057
76688
  /**
75058
76689
  * List of repeated fields within this message type.
@@ -89354,7 +90985,7 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRegion = function(v
89354
90985
  * @private {!Array<number>}
89355
90986
  * @const
89356
90987
  */
89357
- proto.clarifai.api.SyncStateRequest.repeatedFields_ = [2,3,4,5];
90988
+ proto.clarifai.api.SyncStateRequest.repeatedFields_ = [2,3,4,5,6];
89358
90989
 
89359
90990
 
89360
90991
 
@@ -89395,7 +91026,9 @@ proto.clarifai.api.SyncStateRequest.toObject = function(includeInstance, msg) {
89395
91026
  runnersList: jspb.Message.toObjectList(msg.getRunnersList(),
89396
91027
  proto_clarifai_api_resources_pb.Runner.toObject, includeInstance),
89397
91028
  pipelineVersionRunsList: jspb.Message.toObjectList(msg.getPipelineVersionRunsList(),
89398
- proto_clarifai_api_resources_pb.PipelineVersionRun.toObject, includeInstance)
91029
+ proto_clarifai_api_resources_pb.PipelineVersionRun.toObject, includeInstance),
91030
+ secretsList: jspb.Message.toObjectList(msg.getSecretsList(),
91031
+ proto_clarifai_api_resources_pb.Secret.toObject, includeInstance)
89399
91032
  };
89400
91033
 
89401
91034
  if (includeInstance) {
@@ -89456,6 +91089,11 @@ proto.clarifai.api.SyncStateRequest.deserializeBinaryFromReader = function(msg,
89456
91089
  reader.readMessage(value,proto_clarifai_api_resources_pb.PipelineVersionRun.deserializeBinaryFromReader);
89457
91090
  msg.addPipelineVersionRuns(value);
89458
91091
  break;
91092
+ case 6:
91093
+ var value = new proto_clarifai_api_resources_pb.Secret;
91094
+ reader.readMessage(value,proto_clarifai_api_resources_pb.Secret.deserializeBinaryFromReader);
91095
+ msg.addSecrets(value);
91096
+ break;
89459
91097
  default:
89460
91098
  reader.skipField();
89461
91099
  break;
@@ -89524,6 +91162,14 @@ proto.clarifai.api.SyncStateRequest.serializeBinaryToWriter = function(message,
89524
91162
  proto_clarifai_api_resources_pb.PipelineVersionRun.serializeBinaryToWriter
89525
91163
  );
89526
91164
  }
91165
+ f = message.getSecretsList();
91166
+ if (f.length > 0) {
91167
+ writer.writeRepeatedMessage(
91168
+ 6,
91169
+ f,
91170
+ proto_clarifai_api_resources_pb.Secret.serializeBinaryToWriter
91171
+ );
91172
+ }
89527
91173
  };
89528
91174
 
89529
91175
 
@@ -89697,6 +91343,44 @@ proto.clarifai.api.SyncStateRequest.prototype.clearPipelineVersionRunsList = fun
89697
91343
  };
89698
91344
 
89699
91345
 
91346
+ /**
91347
+ * repeated Secret secrets = 6;
91348
+ * @return {!Array<!proto.clarifai.api.Secret>}
91349
+ */
91350
+ proto.clarifai.api.SyncStateRequest.prototype.getSecretsList = function() {
91351
+ return /** @type{!Array<!proto.clarifai.api.Secret>} */ (
91352
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret, 6));
91353
+ };
91354
+
91355
+
91356
+ /**
91357
+ * @param {!Array<!proto.clarifai.api.Secret>} value
91358
+ * @return {!proto.clarifai.api.SyncStateRequest} returns this
91359
+ */
91360
+ proto.clarifai.api.SyncStateRequest.prototype.setSecretsList = function(value) {
91361
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
91362
+ };
91363
+
91364
+
91365
+ /**
91366
+ * @param {!proto.clarifai.api.Secret=} opt_value
91367
+ * @param {number=} opt_index
91368
+ * @return {!proto.clarifai.api.Secret}
91369
+ */
91370
+ proto.clarifai.api.SyncStateRequest.prototype.addSecrets = function(opt_value, opt_index) {
91371
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.Secret, opt_index);
91372
+ };
91373
+
91374
+
91375
+ /**
91376
+ * Clears the list making it empty but non-null.
91377
+ * @return {!proto.clarifai.api.SyncStateRequest} returns this
91378
+ */
91379
+ proto.clarifai.api.SyncStateRequest.prototype.clearSecretsList = function() {
91380
+ return this.setSecretsList([]);
91381
+ };
91382
+
91383
+
89700
91384
 
89701
91385
  /**
89702
91386
  * List of repeated fields within this message type.
@@ -107230,7 +108914,7 @@ proto.clarifai.api.GetSecretRequest.prototype.toObject = function(opt_includeIns
107230
108914
  proto.clarifai.api.GetSecretRequest.toObject = function(includeInstance, msg) {
107231
108915
  var f, obj = {
107232
108916
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
107233
- secretId: jspb.Message.getFieldWithDefault(msg, 2, "")
108917
+ id: jspb.Message.getFieldWithDefault(msg, 2, "")
107234
108918
  };
107235
108919
 
107236
108920
  if (includeInstance) {
@@ -107274,7 +108958,7 @@ proto.clarifai.api.GetSecretRequest.deserializeBinaryFromReader = function(msg,
107274
108958
  break;
107275
108959
  case 2:
107276
108960
  var value = /** @type {string} */ (reader.readString());
107277
- msg.setSecretId(value);
108961
+ msg.setId(value);
107278
108962
  break;
107279
108963
  default:
107280
108964
  reader.skipField();
@@ -107313,7 +108997,7 @@ proto.clarifai.api.GetSecretRequest.serializeBinaryToWriter = function(message,
107313
108997
  proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
107314
108998
  );
107315
108999
  }
107316
- f = message.getSecretId();
109000
+ f = message.getId();
107317
109001
  if (f.length > 0) {
107318
109002
  writer.writeString(
107319
109003
  2,
@@ -107361,10 +109045,10 @@ proto.clarifai.api.GetSecretRequest.prototype.hasUserAppId = function() {
107361
109045
 
107362
109046
 
107363
109047
  /**
107364
- * optional string secret_id = 2;
109048
+ * optional string id = 2;
107365
109049
  * @return {string}
107366
109050
  */
107367
- proto.clarifai.api.GetSecretRequest.prototype.getSecretId = function() {
109051
+ proto.clarifai.api.GetSecretRequest.prototype.getId = function() {
107368
109052
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
107369
109053
  };
107370
109054
 
@@ -107373,7 +109057,7 @@ proto.clarifai.api.GetSecretRequest.prototype.getSecretId = function() {
107373
109057
  * @param {string} value
107374
109058
  * @return {!proto.clarifai.api.GetSecretRequest} returns this
107375
109059
  */
107376
- proto.clarifai.api.GetSecretRequest.prototype.setSecretId = function(value) {
109060
+ proto.clarifai.api.GetSecretRequest.prototype.setId = function(value) {
107377
109061
  return jspb.Message.setProto3StringField(this, 2, value);
107378
109062
  };
107379
109063
 
@@ -107806,7 +109490,7 @@ proto.clarifai.api.PostSecretsRequest.prototype.clearSecretsList = function() {
107806
109490
  * @private {!Array<number>}
107807
109491
  * @const
107808
109492
  */
107809
- proto.clarifai.api.PatchSecretsRequest.repeatedFields_ = [2];
109493
+ proto.clarifai.api.PatchSecretsRequest.repeatedFields_ = [5];
107810
109494
 
107811
109495
 
107812
109496
 
@@ -107840,9 +109524,9 @@ proto.clarifai.api.PatchSecretsRequest.prototype.toObject = function(opt_include
107840
109524
  proto.clarifai.api.PatchSecretsRequest.toObject = function(includeInstance, msg) {
107841
109525
  var f, obj = {
107842
109526
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
107843
- secretsList: jspb.Message.toObjectList(msg.getSecretsList(),
109527
+ secretList: jspb.Message.toObjectList(msg.getSecretList(),
107844
109528
  proto_clarifai_api_resources_pb.Secret.toObject, includeInstance),
107845
- action: jspb.Message.getFieldWithDefault(msg, 3, "")
109529
+ action: jspb.Message.getFieldWithDefault(msg, 8, "")
107846
109530
  };
107847
109531
 
107848
109532
  if (includeInstance) {
@@ -107884,12 +109568,12 @@ proto.clarifai.api.PatchSecretsRequest.deserializeBinaryFromReader = function(ms
107884
109568
  reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
107885
109569
  msg.setUserAppId(value);
107886
109570
  break;
107887
- case 2:
109571
+ case 5:
107888
109572
  var value = new proto_clarifai_api_resources_pb.Secret;
107889
109573
  reader.readMessage(value,proto_clarifai_api_resources_pb.Secret.deserializeBinaryFromReader);
107890
- msg.addSecrets(value);
109574
+ msg.addSecret(value);
107891
109575
  break;
107892
- case 3:
109576
+ case 8:
107893
109577
  var value = /** @type {string} */ (reader.readString());
107894
109578
  msg.setAction(value);
107895
109579
  break;
@@ -107930,10 +109614,10 @@ proto.clarifai.api.PatchSecretsRequest.serializeBinaryToWriter = function(messag
107930
109614
  proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
107931
109615
  );
107932
109616
  }
107933
- f = message.getSecretsList();
109617
+ f = message.getSecretList();
107934
109618
  if (f.length > 0) {
107935
109619
  writer.writeRepeatedMessage(
107936
- 2,
109620
+ 5,
107937
109621
  f,
107938
109622
  proto_clarifai_api_resources_pb.Secret.serializeBinaryToWriter
107939
109623
  );
@@ -107941,7 +109625,7 @@ proto.clarifai.api.PatchSecretsRequest.serializeBinaryToWriter = function(messag
107941
109625
  f = message.getAction();
107942
109626
  if (f.length > 0) {
107943
109627
  writer.writeString(
107944
- 3,
109628
+ 8,
107945
109629
  f
107946
109630
  );
107947
109631
  }
@@ -107986,12 +109670,12 @@ proto.clarifai.api.PatchSecretsRequest.prototype.hasUserAppId = function() {
107986
109670
 
107987
109671
 
107988
109672
  /**
107989
- * repeated Secret secrets = 2;
109673
+ * repeated Secret secret = 5;
107990
109674
  * @return {!Array<!proto.clarifai.api.Secret>}
107991
109675
  */
107992
- proto.clarifai.api.PatchSecretsRequest.prototype.getSecretsList = function() {
109676
+ proto.clarifai.api.PatchSecretsRequest.prototype.getSecretList = function() {
107993
109677
  return /** @type{!Array<!proto.clarifai.api.Secret>} */ (
107994
- jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret, 2));
109678
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret, 5));
107995
109679
  };
107996
109680
 
107997
109681
 
@@ -107999,8 +109683,8 @@ proto.clarifai.api.PatchSecretsRequest.prototype.getSecretsList = function() {
107999
109683
  * @param {!Array<!proto.clarifai.api.Secret>} value
108000
109684
  * @return {!proto.clarifai.api.PatchSecretsRequest} returns this
108001
109685
  */
108002
- proto.clarifai.api.PatchSecretsRequest.prototype.setSecretsList = function(value) {
108003
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
109686
+ proto.clarifai.api.PatchSecretsRequest.prototype.setSecretList = function(value) {
109687
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
108004
109688
  };
108005
109689
 
108006
109690
 
@@ -108009,8 +109693,8 @@ proto.clarifai.api.PatchSecretsRequest.prototype.setSecretsList = function(value
108009
109693
  * @param {number=} opt_index
108010
109694
  * @return {!proto.clarifai.api.Secret}
108011
109695
  */
108012
- proto.clarifai.api.PatchSecretsRequest.prototype.addSecrets = function(opt_value, opt_index) {
108013
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Secret, opt_index);
109696
+ proto.clarifai.api.PatchSecretsRequest.prototype.addSecret = function(opt_value, opt_index) {
109697
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.Secret, opt_index);
108014
109698
  };
108015
109699
 
108016
109700
 
@@ -108018,17 +109702,17 @@ proto.clarifai.api.PatchSecretsRequest.prototype.addSecrets = function(opt_value
108018
109702
  * Clears the list making it empty but non-null.
108019
109703
  * @return {!proto.clarifai.api.PatchSecretsRequest} returns this
108020
109704
  */
108021
- proto.clarifai.api.PatchSecretsRequest.prototype.clearSecretsList = function() {
108022
- return this.setSecretsList([]);
109705
+ proto.clarifai.api.PatchSecretsRequest.prototype.clearSecretList = function() {
109706
+ return this.setSecretList([]);
108023
109707
  };
108024
109708
 
108025
109709
 
108026
109710
  /**
108027
- * optional string action = 3;
109711
+ * optional string action = 8;
108028
109712
  * @return {string}
108029
109713
  */
108030
109714
  proto.clarifai.api.PatchSecretsRequest.prototype.getAction = function() {
108031
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
109715
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
108032
109716
  };
108033
109717
 
108034
109718
 
@@ -108037,7 +109721,7 @@ proto.clarifai.api.PatchSecretsRequest.prototype.getAction = function() {
108037
109721
  * @return {!proto.clarifai.api.PatchSecretsRequest} returns this
108038
109722
  */
108039
109723
  proto.clarifai.api.PatchSecretsRequest.prototype.setAction = function(value) {
108040
- return jspb.Message.setProto3StringField(this, 3, value);
109724
+ return jspb.Message.setProto3StringField(this, 8, value);
108041
109725
  };
108042
109726
 
108043
109727