clarifai-web-grpc 11.6.6 → 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
@@ -10861,112 +10971,1354 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setUserIdsList = func
10861
10971
 
10862
10972
 
10863
10973
  /**
10864
- * @param {string} value
10865
- * @param {number=} opt_index
10866
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10974
+ * @param {string} value
10975
+ * @param {number=} opt_index
10976
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10977
+ */
10978
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.addUserIds = function(value, opt_index) {
10979
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
10980
+ };
10981
+
10982
+
10983
+ /**
10984
+ * Clears the list making it empty but non-null.
10985
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10986
+ */
10987
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearUserIdsList = function() {
10988
+ return this.setUserIdsList([]);
10989
+ };
10990
+
10991
+
10992
+ /**
10993
+ * optional string task_id = 4;
10994
+ * @return {string}
10995
+ */
10996
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getTaskId = function() {
10997
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
10998
+ };
10999
+
11000
+
11001
+ /**
11002
+ * @param {string} value
11003
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
11004
+ */
11005
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setTaskId = function(value) {
11006
+ return jspb.Message.setProto3StringField(this, 4, value);
11007
+ };
11008
+
11009
+
11010
+ /**
11011
+ * repeated status.StatusCode status_codes = 6;
11012
+ * @return {!Array<!proto.clarifai.api.status.StatusCode>}
11013
+ */
11014
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCodesList = function() {
11015
+ return /** @type {!Array<!proto.clarifai.api.status.StatusCode>} */ (jspb.Message.getRepeatedField(this, 6));
11016
+ };
11017
+
11018
+
11019
+ /**
11020
+ * @param {!Array<!proto.clarifai.api.status.StatusCode>} value
11021
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
11022
+ */
11023
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCodesList = function(value) {
11024
+ return jspb.Message.setField(this, 6, value || []);
11025
+ };
11026
+
11027
+
11028
+ /**
11029
+ * @param {!proto.clarifai.api.status.StatusCode} value
11030
+ * @param {number=} opt_index
11031
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
11032
+ */
11033
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.addStatusCodes = function(value, opt_index) {
11034
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
11035
+ };
11036
+
11037
+
11038
+ /**
11039
+ * Clears the list making it empty but non-null.
11040
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
11041
+ */
11042
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearStatusCodesList = function() {
11043
+ return this.setStatusCodesList([]);
11044
+ };
11045
+
11046
+
11047
+ /**
11048
+ * optional string action = 5;
11049
+ * @return {string}
11050
+ */
11051
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getAction = function() {
11052
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11053
+ };
11054
+
11055
+
11056
+ /**
11057
+ * @param {string} value
11058
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
11059
+ */
11060
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setAction = function(value) {
11061
+ return jspb.Message.setProto3StringField(this, 5, value);
11062
+ };
11063
+
11064
+
11065
+ /**
11066
+ * optional status.StatusCode status_code = 2;
11067
+ * @return {!proto.clarifai.api.status.StatusCode}
11068
+ */
11069
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCode = function() {
11070
+ return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
11071
+ };
11072
+
11073
+
11074
+ /**
11075
+ * @param {!proto.clarifai.api.status.StatusCode} value
11076
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
11077
+ */
11078
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCode = function(value) {
11079
+ return jspb.Message.setProto3EnumField(this, 2, value);
11080
+ };
11081
+
11082
+
11083
+
11084
+ /**
11085
+ * List of repeated fields within this message type.
11086
+ * @private {!Array<number>}
11087
+ * @const
11088
+ */
11089
+ proto.clarifai.api.PatchAnnotationsStatusResponse.repeatedFields_ = [2];
11090
+
11091
+
11092
+
11093
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11094
+ /**
11095
+ * Creates an object representation of this proto.
11096
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11097
+ * Optional fields that are not set will be set to undefined.
11098
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11099
+ * For the list of reserved names please see:
11100
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11101
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11102
+ * JSPB instance for transitional soy proto support:
11103
+ * http://goto/soy-param-migration
11104
+ * @return {!Object}
11105
+ */
11106
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.toObject = function(opt_includeInstance) {
11107
+ return proto.clarifai.api.PatchAnnotationsStatusResponse.toObject(opt_includeInstance, this);
11108
+ };
11109
+
11110
+
11111
+ /**
11112
+ * Static version of the {@see toObject} method.
11113
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11114
+ * the JSPB instance for transitional soy proto support:
11115
+ * http://goto/soy-param-migration
11116
+ * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The msg instance to transform.
11117
+ * @return {!Object}
11118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11119
+ */
11120
+ proto.clarifai.api.PatchAnnotationsStatusResponse.toObject = function(includeInstance, msg) {
11121
+ var f, obj = {
11122
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
11123
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
11124
+ updatedCount: jspb.Message.getFieldWithDefault(msg, 3, 0)
11125
+ };
11126
+
11127
+ if (includeInstance) {
11128
+ obj.$jspbMessageInstance = msg;
11129
+ }
11130
+ return obj;
11131
+ };
11132
+ }
11133
+
11134
+
11135
+ /**
11136
+ * Deserializes binary data (in protobuf wire format).
11137
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11138
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse}
11139
+ */
11140
+ proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinary = function(bytes) {
11141
+ var reader = new jspb.BinaryReader(bytes);
11142
+ var msg = new proto.clarifai.api.PatchAnnotationsStatusResponse;
11143
+ return proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader(msg, reader);
11144
+ };
11145
+
11146
+
11147
+ /**
11148
+ * Deserializes binary data (in protobuf wire format) from the
11149
+ * given reader into the given message object.
11150
+ * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The message object to deserialize into.
11151
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11152
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse}
11153
+ */
11154
+ proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
11155
+ while (reader.nextField()) {
11156
+ if (reader.isEndGroup()) {
11157
+ break;
11158
+ }
11159
+ var field = reader.getFieldNumber();
11160
+ switch (field) {
11161
+ case 1:
11162
+ var value = new proto_clarifai_api_status_status_pb.Status;
11163
+ reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
11164
+ msg.setStatus(value);
11165
+ break;
11166
+ case 2:
11167
+ var value = /** @type {string} */ (reader.readString());
11168
+ msg.addUserIds(value);
11169
+ break;
11170
+ case 3:
11171
+ var value = /** @type {number} */ (reader.readUint32());
11172
+ msg.setUpdatedCount(value);
11173
+ break;
11174
+ default:
11175
+ reader.skipField();
11176
+ break;
11177
+ }
11178
+ }
11179
+ return msg;
11180
+ };
11181
+
11182
+
11183
+ /**
11184
+ * Serializes the message to binary data (in protobuf wire format).
11185
+ * @return {!Uint8Array}
11186
+ */
11187
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.serializeBinary = function() {
11188
+ var writer = new jspb.BinaryWriter();
11189
+ proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter(this, writer);
11190
+ return writer.getResultBuffer();
11191
+ };
11192
+
11193
+
11194
+ /**
11195
+ * Serializes the given message to binary data (in protobuf wire
11196
+ * format), writing to the given BinaryWriter.
11197
+ * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} message
11198
+ * @param {!jspb.BinaryWriter} writer
11199
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11200
+ */
11201
+ proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter = function(message, writer) {
11202
+ var f = undefined;
11203
+ f = message.getStatus();
11204
+ if (f != null) {
11205
+ writer.writeMessage(
11206
+ 1,
11207
+ f,
11208
+ proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
11209
+ );
11210
+ }
11211
+ f = message.getUserIdsList();
11212
+ if (f.length > 0) {
11213
+ writer.writeRepeatedString(
11214
+ 2,
11215
+ f
11216
+ );
11217
+ }
11218
+ f = message.getUpdatedCount();
11219
+ if (f !== 0) {
11220
+ writer.writeUint32(
11221
+ 3,
11222
+ f
11223
+ );
11224
+ }
11225
+ };
11226
+
11227
+
11228
+ /**
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}
10867
12235
  */
10868
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.addUserIds = function(value, opt_index) {
10869
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
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));
10870
12239
  };
10871
12240
 
10872
12241
 
10873
12242
  /**
10874
- * Clears the list making it empty but non-null.
10875
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10876
- */
10877
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearUserIdsList = function() {
10878
- return this.setUserIdsList([]);
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);
10879
12248
  };
10880
12249
 
10881
12250
 
10882
12251
  /**
10883
- * optional string task_id = 4;
10884
- * @return {string}
12252
+ * Clears the message field making it undefined.
12253
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
10885
12254
  */
10886
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getTaskId = function() {
10887
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
12255
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.clearUserAppId = function() {
12256
+ return this.setUserAppId(undefined);
10888
12257
  };
10889
12258
 
10890
12259
 
10891
12260
  /**
10892
- * @param {string} value
10893
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
12261
+ * Returns whether this field is set.
12262
+ * @return {boolean}
10894
12263
  */
10895
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setTaskId = function(value) {
10896
- return jspb.Message.setProto3StringField(this, 4, value);
12264
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.hasUserAppId = function() {
12265
+ return jspb.Message.getField(this, 1) != null;
10897
12266
  };
10898
12267
 
10899
12268
 
10900
12269
  /**
10901
- * repeated status.StatusCode status_codes = 6;
10902
- * @return {!Array<!proto.clarifai.api.status.StatusCode>}
12270
+ * repeated AnnotationTrack annotation_tracks = 2;
12271
+ * @return {!Array<!proto.clarifai.api.AnnotationTrack>}
10903
12272
  */
10904
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCodesList = function() {
10905
- return /** @type {!Array<!proto.clarifai.api.status.StatusCode>} */ (jspb.Message.getRepeatedField(this, 6));
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));
10906
12276
  };
10907
12277
 
10908
12278
 
10909
12279
  /**
10910
- * @param {!Array<!proto.clarifai.api.status.StatusCode>} value
10911
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10912
- */
10913
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCodesList = function(value) {
10914
- return jspb.Message.setField(this, 6, value || []);
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);
10915
12285
  };
10916
12286
 
10917
12287
 
10918
12288
  /**
10919
- * @param {!proto.clarifai.api.status.StatusCode} value
12289
+ * @param {!proto.clarifai.api.AnnotationTrack=} opt_value
10920
12290
  * @param {number=} opt_index
10921
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
12291
+ * @return {!proto.clarifai.api.AnnotationTrack}
10922
12292
  */
10923
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.addStatusCodes = function(value, opt_index) {
10924
- return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
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);
10925
12295
  };
10926
12296
 
10927
12297
 
10928
12298
  /**
10929
12299
  * Clears the list making it empty but non-null.
10930
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
12300
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
10931
12301
  */
10932
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearStatusCodesList = function() {
10933
- return this.setStatusCodesList([]);
12302
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.clearAnnotationTracksList = function() {
12303
+ return this.setAnnotationTracksList([]);
10934
12304
  };
10935
12305
 
10936
12306
 
10937
12307
  /**
10938
- * optional string action = 5;
12308
+ * optional string input_id = 3;
10939
12309
  * @return {string}
10940
12310
  */
10941
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getAction = function() {
10942
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
12311
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.getInputId = function() {
12312
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10943
12313
  };
10944
12314
 
10945
12315
 
10946
12316
  /**
10947
12317
  * @param {string} value
10948
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10949
- */
10950
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setAction = function(value) {
10951
- return jspb.Message.setProto3StringField(this, 5, value);
10952
- };
10953
-
10954
-
10955
- /**
10956
- * optional status.StatusCode status_code = 2;
10957
- * @return {!proto.clarifai.api.status.StatusCode}
12318
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
10958
12319
  */
10959
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCode = function() {
10960
- return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
10961
- };
10962
-
10963
-
10964
- /**
10965
- * @param {!proto.clarifai.api.status.StatusCode} value
10966
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10967
- */
10968
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCode = function(value) {
10969
- return jspb.Message.setProto3EnumField(this, 2, value);
12320
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.setInputId = function(value) {
12321
+ return jspb.Message.setProto3StringField(this, 3, value);
10970
12322
  };
10971
12323
 
10972
12324
 
@@ -10976,7 +12328,7 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCode = funct
10976
12328
  * @private {!Array<number>}
10977
12329
  * @const
10978
12330
  */
10979
- proto.clarifai.api.PatchAnnotationsStatusResponse.repeatedFields_ = [2];
12331
+ proto.clarifai.api.PatchAnnotationTracksRequest.repeatedFields_ = [2];
10980
12332
 
10981
12333
 
10982
12334
 
@@ -10993,8 +12345,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
10993
12345
  * http://goto/soy-param-migration
10994
12346
  * @return {!Object}
10995
12347
  */
10996
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.toObject = function(opt_includeInstance) {
10997
- return proto.clarifai.api.PatchAnnotationsStatusResponse.toObject(opt_includeInstance, this);
12348
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.toObject = function(opt_includeInstance) {
12349
+ return proto.clarifai.api.PatchAnnotationTracksRequest.toObject(opt_includeInstance, this);
10998
12350
  };
10999
12351
 
11000
12352
 
@@ -11003,15 +12355,17 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.toObject = function(
11003
12355
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11004
12356
  * the JSPB instance for transitional soy proto support:
11005
12357
  * http://goto/soy-param-migration
11006
- * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The msg instance to transform.
12358
+ * @param {!proto.clarifai.api.PatchAnnotationTracksRequest} msg The msg instance to transform.
11007
12359
  * @return {!Object}
11008
12360
  * @suppress {unusedLocalVariables} f is only used for nested messages
11009
12361
  */
11010
- proto.clarifai.api.PatchAnnotationsStatusResponse.toObject = function(includeInstance, msg) {
12362
+ proto.clarifai.api.PatchAnnotationTracksRequest.toObject = function(includeInstance, msg) {
11011
12363
  var f, obj = {
11012
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
11013
- userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
11014
- updatedCount: jspb.Message.getFieldWithDefault(msg, 3, 0)
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, "")
11015
12369
  };
11016
12370
 
11017
12371
  if (includeInstance) {
@@ -11025,23 +12379,23 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.toObject = function(includeIns
11025
12379
  /**
11026
12380
  * Deserializes binary data (in protobuf wire format).
11027
12381
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
11028
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse}
12382
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest}
11029
12383
  */
11030
- proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinary = function(bytes) {
12384
+ proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinary = function(bytes) {
11031
12385
  var reader = new jspb.BinaryReader(bytes);
11032
- var msg = new proto.clarifai.api.PatchAnnotationsStatusResponse;
11033
- return proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader(msg, reader);
12386
+ var msg = new proto.clarifai.api.PatchAnnotationTracksRequest;
12387
+ return proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
11034
12388
  };
11035
12389
 
11036
12390
 
11037
12391
  /**
11038
12392
  * Deserializes binary data (in protobuf wire format) from the
11039
12393
  * given reader into the given message object.
11040
- * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The message object to deserialize into.
12394
+ * @param {!proto.clarifai.api.PatchAnnotationTracksRequest} msg The message object to deserialize into.
11041
12395
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11042
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse}
12396
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest}
11043
12397
  */
11044
- proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
12398
+ proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinaryFromReader = function(msg, reader) {
11045
12399
  while (reader.nextField()) {
11046
12400
  if (reader.isEndGroup()) {
11047
12401
  break;
@@ -11049,17 +12403,22 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader =
11049
12403
  var field = reader.getFieldNumber();
11050
12404
  switch (field) {
11051
12405
  case 1:
11052
- var value = new proto_clarifai_api_status_status_pb.Status;
11053
- reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
11054
- msg.setStatus(value);
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);
11055
12409
  break;
11056
12410
  case 2:
11057
- var value = /** @type {string} */ (reader.readString());
11058
- msg.addUserIds(value);
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);
11059
12414
  break;
11060
12415
  case 3:
11061
- var value = /** @type {number} */ (reader.readUint32());
11062
- msg.setUpdatedCount(value);
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);
11063
12422
  break;
11064
12423
  default:
11065
12424
  reader.skipField();
@@ -11074,9 +12433,9 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader =
11074
12433
  * Serializes the message to binary data (in protobuf wire format).
11075
12434
  * @return {!Uint8Array}
11076
12435
  */
11077
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.serializeBinary = function() {
12436
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.serializeBinary = function() {
11078
12437
  var writer = new jspb.BinaryWriter();
11079
- proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter(this, writer);
12438
+ proto.clarifai.api.PatchAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
11080
12439
  return writer.getResultBuffer();
11081
12440
  };
11082
12441
 
@@ -11084,62 +12443,70 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.serializeBinary = fu
11084
12443
  /**
11085
12444
  * Serializes the given message to binary data (in protobuf wire
11086
12445
  * format), writing to the given BinaryWriter.
11087
- * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} message
12446
+ * @param {!proto.clarifai.api.PatchAnnotationTracksRequest} message
11088
12447
  * @param {!jspb.BinaryWriter} writer
11089
12448
  * @suppress {unusedLocalVariables} f is only used for nested messages
11090
12449
  */
11091
- proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter = function(message, writer) {
12450
+ proto.clarifai.api.PatchAnnotationTracksRequest.serializeBinaryToWriter = function(message, writer) {
11092
12451
  var f = undefined;
11093
- f = message.getStatus();
12452
+ f = message.getUserAppId();
11094
12453
  if (f != null) {
11095
12454
  writer.writeMessage(
11096
12455
  1,
11097
12456
  f,
11098
- proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter
12457
+ proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
11099
12458
  );
11100
12459
  }
11101
- f = message.getUserIdsList();
12460
+ f = message.getAnnotationTracksList();
11102
12461
  if (f.length > 0) {
11103
- writer.writeRepeatedString(
12462
+ writer.writeRepeatedMessage(
11104
12463
  2,
11105
- f
12464
+ f,
12465
+ proto_clarifai_api_resources_pb.AnnotationTrack.serializeBinaryToWriter
11106
12466
  );
11107
12467
  }
11108
- f = message.getUpdatedCount();
11109
- if (f !== 0) {
11110
- writer.writeUint32(
12468
+ f = message.getInputId();
12469
+ if (f.length > 0) {
12470
+ writer.writeString(
11111
12471
  3,
11112
12472
  f
11113
12473
  );
11114
12474
  }
12475
+ f = message.getAction();
12476
+ if (f.length > 0) {
12477
+ writer.writeString(
12478
+ 4,
12479
+ f
12480
+ );
12481
+ }
11115
12482
  };
11116
12483
 
11117
12484
 
11118
12485
  /**
11119
- * optional status.Status status = 1;
11120
- * @return {?proto.clarifai.api.status.Status}
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
 
@@ -33982,6 +35349,7 @@ proto.clarifai.api.ListLogEntriesRequest.toObject = function(includeInstance, ms
33982
35349
  modelId: jspb.Message.getFieldWithDefault(msg, 5, ""),
33983
35350
  modelVersionId: jspb.Message.getFieldWithDefault(msg, 6, ""),
33984
35351
  workflowId: jspb.Message.getFieldWithDefault(msg, 7, ""),
35352
+ computeClusterUserId: jspb.Message.getFieldWithDefault(msg, 17, ""),
33985
35353
  computeClusterId: jspb.Message.getFieldWithDefault(msg, 9, ""),
33986
35354
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 10, ""),
33987
35355
  runnerId: jspb.Message.getFieldWithDefault(msg, 11, ""),
@@ -34055,6 +35423,10 @@ proto.clarifai.api.ListLogEntriesRequest.deserializeBinaryFromReader = function(
34055
35423
  var value = /** @type {string} */ (reader.readString());
34056
35424
  msg.setWorkflowId(value);
34057
35425
  break;
35426
+ case 17:
35427
+ var value = /** @type {string} */ (reader.readString());
35428
+ msg.setComputeClusterUserId(value);
35429
+ break;
34058
35430
  case 9:
34059
35431
  var value = /** @type {string} */ (reader.readString());
34060
35432
  msg.setComputeClusterId(value);
@@ -34166,6 +35538,13 @@ proto.clarifai.api.ListLogEntriesRequest.serializeBinaryToWriter = function(mess
34166
35538
  f
34167
35539
  );
34168
35540
  }
35541
+ f = message.getComputeClusterUserId();
35542
+ if (f.length > 0) {
35543
+ writer.writeString(
35544
+ 17,
35545
+ f
35546
+ );
35547
+ }
34169
35548
  f = message.getComputeClusterId();
34170
35549
  if (f.length > 0) {
34171
35550
  writer.writeString(
@@ -34370,6 +35749,24 @@ proto.clarifai.api.ListLogEntriesRequest.prototype.setWorkflowId = function(valu
34370
35749
  };
34371
35750
 
34372
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
+
34373
35770
  /**
34374
35771
  * optional string compute_cluster_id = 9;
34375
35772
  * @return {string}
@@ -34551,6 +35948,7 @@ proto.clarifai.api.StreamLogEntriesRequest.toObject = function(includeInstance,
34551
35948
  modelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
34552
35949
  modelVersionId: jspb.Message.getFieldWithDefault(msg, 4, ""),
34553
35950
  workflowId: jspb.Message.getFieldWithDefault(msg, 5, ""),
35951
+ computeClusterUserId: jspb.Message.getFieldWithDefault(msg, 17, ""),
34554
35952
  computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
34555
35953
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
34556
35954
  runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
@@ -34616,6 +36014,10 @@ proto.clarifai.api.StreamLogEntriesRequest.deserializeBinaryFromReader = functio
34616
36014
  var value = /** @type {string} */ (reader.readString());
34617
36015
  msg.setWorkflowId(value);
34618
36016
  break;
36017
+ case 17:
36018
+ var value = /** @type {string} */ (reader.readString());
36019
+ msg.setComputeClusterUserId(value);
36020
+ break;
34619
36021
  case 6:
34620
36022
  var value = /** @type {string} */ (reader.readString());
34621
36023
  msg.setComputeClusterId(value);
@@ -34713,6 +36115,13 @@ proto.clarifai.api.StreamLogEntriesRequest.serializeBinaryToWriter = function(me
34713
36115
  f
34714
36116
  );
34715
36117
  }
36118
+ f = message.getComputeClusterUserId();
36119
+ if (f.length > 0) {
36120
+ writer.writeString(
36121
+ 17,
36122
+ f
36123
+ );
36124
+ }
34716
36125
  f = message.getComputeClusterId();
34717
36126
  if (f.length > 0) {
34718
36127
  writer.writeString(
@@ -34881,6 +36290,24 @@ proto.clarifai.api.StreamLogEntriesRequest.prototype.setWorkflowId = function(va
34881
36290
  };
34882
36291
 
34883
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
+
34884
36311
  /**
34885
36312
  * optional string compute_cluster_id = 6;
34886
36313
  * @return {string}
@@ -89558,7 +90985,7 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRegion = function(v
89558
90985
  * @private {!Array<number>}
89559
90986
  * @const
89560
90987
  */
89561
- proto.clarifai.api.SyncStateRequest.repeatedFields_ = [2,3,4,5];
90988
+ proto.clarifai.api.SyncStateRequest.repeatedFields_ = [2,3,4,5,6];
89562
90989
 
89563
90990
 
89564
90991
 
@@ -89599,7 +91026,9 @@ proto.clarifai.api.SyncStateRequest.toObject = function(includeInstance, msg) {
89599
91026
  runnersList: jspb.Message.toObjectList(msg.getRunnersList(),
89600
91027
  proto_clarifai_api_resources_pb.Runner.toObject, includeInstance),
89601
91028
  pipelineVersionRunsList: jspb.Message.toObjectList(msg.getPipelineVersionRunsList(),
89602
- 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)
89603
91032
  };
89604
91033
 
89605
91034
  if (includeInstance) {
@@ -89660,6 +91089,11 @@ proto.clarifai.api.SyncStateRequest.deserializeBinaryFromReader = function(msg,
89660
91089
  reader.readMessage(value,proto_clarifai_api_resources_pb.PipelineVersionRun.deserializeBinaryFromReader);
89661
91090
  msg.addPipelineVersionRuns(value);
89662
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;
89663
91097
  default:
89664
91098
  reader.skipField();
89665
91099
  break;
@@ -89728,6 +91162,14 @@ proto.clarifai.api.SyncStateRequest.serializeBinaryToWriter = function(message,
89728
91162
  proto_clarifai_api_resources_pb.PipelineVersionRun.serializeBinaryToWriter
89729
91163
  );
89730
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
+ }
89731
91173
  };
89732
91174
 
89733
91175
 
@@ -89901,6 +91343,44 @@ proto.clarifai.api.SyncStateRequest.prototype.clearPipelineVersionRunsList = fun
89901
91343
  };
89902
91344
 
89903
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
+
89904
91384
 
89905
91385
  /**
89906
91386
  * List of repeated fields within this message type.
@@ -107434,7 +108914,7 @@ proto.clarifai.api.GetSecretRequest.prototype.toObject = function(opt_includeIns
107434
108914
  proto.clarifai.api.GetSecretRequest.toObject = function(includeInstance, msg) {
107435
108915
  var f, obj = {
107436
108916
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
107437
- secretId: jspb.Message.getFieldWithDefault(msg, 2, "")
108917
+ id: jspb.Message.getFieldWithDefault(msg, 2, "")
107438
108918
  };
107439
108919
 
107440
108920
  if (includeInstance) {
@@ -107478,7 +108958,7 @@ proto.clarifai.api.GetSecretRequest.deserializeBinaryFromReader = function(msg,
107478
108958
  break;
107479
108959
  case 2:
107480
108960
  var value = /** @type {string} */ (reader.readString());
107481
- msg.setSecretId(value);
108961
+ msg.setId(value);
107482
108962
  break;
107483
108963
  default:
107484
108964
  reader.skipField();
@@ -107517,7 +108997,7 @@ proto.clarifai.api.GetSecretRequest.serializeBinaryToWriter = function(message,
107517
108997
  proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
107518
108998
  );
107519
108999
  }
107520
- f = message.getSecretId();
109000
+ f = message.getId();
107521
109001
  if (f.length > 0) {
107522
109002
  writer.writeString(
107523
109003
  2,
@@ -107565,10 +109045,10 @@ proto.clarifai.api.GetSecretRequest.prototype.hasUserAppId = function() {
107565
109045
 
107566
109046
 
107567
109047
  /**
107568
- * optional string secret_id = 2;
109048
+ * optional string id = 2;
107569
109049
  * @return {string}
107570
109050
  */
107571
- proto.clarifai.api.GetSecretRequest.prototype.getSecretId = function() {
109051
+ proto.clarifai.api.GetSecretRequest.prototype.getId = function() {
107572
109052
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
107573
109053
  };
107574
109054
 
@@ -107577,7 +109057,7 @@ proto.clarifai.api.GetSecretRequest.prototype.getSecretId = function() {
107577
109057
  * @param {string} value
107578
109058
  * @return {!proto.clarifai.api.GetSecretRequest} returns this
107579
109059
  */
107580
- proto.clarifai.api.GetSecretRequest.prototype.setSecretId = function(value) {
109060
+ proto.clarifai.api.GetSecretRequest.prototype.setId = function(value) {
107581
109061
  return jspb.Message.setProto3StringField(this, 2, value);
107582
109062
  };
107583
109063
 
@@ -108010,7 +109490,7 @@ proto.clarifai.api.PostSecretsRequest.prototype.clearSecretsList = function() {
108010
109490
  * @private {!Array<number>}
108011
109491
  * @const
108012
109492
  */
108013
- proto.clarifai.api.PatchSecretsRequest.repeatedFields_ = [2];
109493
+ proto.clarifai.api.PatchSecretsRequest.repeatedFields_ = [5];
108014
109494
 
108015
109495
 
108016
109496
 
@@ -108044,9 +109524,9 @@ proto.clarifai.api.PatchSecretsRequest.prototype.toObject = function(opt_include
108044
109524
  proto.clarifai.api.PatchSecretsRequest.toObject = function(includeInstance, msg) {
108045
109525
  var f, obj = {
108046
109526
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
108047
- secretsList: jspb.Message.toObjectList(msg.getSecretsList(),
109527
+ secretList: jspb.Message.toObjectList(msg.getSecretList(),
108048
109528
  proto_clarifai_api_resources_pb.Secret.toObject, includeInstance),
108049
- action: jspb.Message.getFieldWithDefault(msg, 3, "")
109529
+ action: jspb.Message.getFieldWithDefault(msg, 8, "")
108050
109530
  };
108051
109531
 
108052
109532
  if (includeInstance) {
@@ -108088,12 +109568,12 @@ proto.clarifai.api.PatchSecretsRequest.deserializeBinaryFromReader = function(ms
108088
109568
  reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
108089
109569
  msg.setUserAppId(value);
108090
109570
  break;
108091
- case 2:
109571
+ case 5:
108092
109572
  var value = new proto_clarifai_api_resources_pb.Secret;
108093
109573
  reader.readMessage(value,proto_clarifai_api_resources_pb.Secret.deserializeBinaryFromReader);
108094
- msg.addSecrets(value);
109574
+ msg.addSecret(value);
108095
109575
  break;
108096
- case 3:
109576
+ case 8:
108097
109577
  var value = /** @type {string} */ (reader.readString());
108098
109578
  msg.setAction(value);
108099
109579
  break;
@@ -108134,10 +109614,10 @@ proto.clarifai.api.PatchSecretsRequest.serializeBinaryToWriter = function(messag
108134
109614
  proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter
108135
109615
  );
108136
109616
  }
108137
- f = message.getSecretsList();
109617
+ f = message.getSecretList();
108138
109618
  if (f.length > 0) {
108139
109619
  writer.writeRepeatedMessage(
108140
- 2,
109620
+ 5,
108141
109621
  f,
108142
109622
  proto_clarifai_api_resources_pb.Secret.serializeBinaryToWriter
108143
109623
  );
@@ -108145,7 +109625,7 @@ proto.clarifai.api.PatchSecretsRequest.serializeBinaryToWriter = function(messag
108145
109625
  f = message.getAction();
108146
109626
  if (f.length > 0) {
108147
109627
  writer.writeString(
108148
- 3,
109628
+ 8,
108149
109629
  f
108150
109630
  );
108151
109631
  }
@@ -108190,12 +109670,12 @@ proto.clarifai.api.PatchSecretsRequest.prototype.hasUserAppId = function() {
108190
109670
 
108191
109671
 
108192
109672
  /**
108193
- * repeated Secret secrets = 2;
109673
+ * repeated Secret secret = 5;
108194
109674
  * @return {!Array<!proto.clarifai.api.Secret>}
108195
109675
  */
108196
- proto.clarifai.api.PatchSecretsRequest.prototype.getSecretsList = function() {
109676
+ proto.clarifai.api.PatchSecretsRequest.prototype.getSecretList = function() {
108197
109677
  return /** @type{!Array<!proto.clarifai.api.Secret>} */ (
108198
- jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret, 2));
109678
+ jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret, 5));
108199
109679
  };
108200
109680
 
108201
109681
 
@@ -108203,8 +109683,8 @@ proto.clarifai.api.PatchSecretsRequest.prototype.getSecretsList = function() {
108203
109683
  * @param {!Array<!proto.clarifai.api.Secret>} value
108204
109684
  * @return {!proto.clarifai.api.PatchSecretsRequest} returns this
108205
109685
  */
108206
- proto.clarifai.api.PatchSecretsRequest.prototype.setSecretsList = function(value) {
108207
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
109686
+ proto.clarifai.api.PatchSecretsRequest.prototype.setSecretList = function(value) {
109687
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
108208
109688
  };
108209
109689
 
108210
109690
 
@@ -108213,8 +109693,8 @@ proto.clarifai.api.PatchSecretsRequest.prototype.setSecretsList = function(value
108213
109693
  * @param {number=} opt_index
108214
109694
  * @return {!proto.clarifai.api.Secret}
108215
109695
  */
108216
- proto.clarifai.api.PatchSecretsRequest.prototype.addSecrets = function(opt_value, opt_index) {
108217
- 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);
108218
109698
  };
108219
109699
 
108220
109700
 
@@ -108222,17 +109702,17 @@ proto.clarifai.api.PatchSecretsRequest.prototype.addSecrets = function(opt_value
108222
109702
  * Clears the list making it empty but non-null.
108223
109703
  * @return {!proto.clarifai.api.PatchSecretsRequest} returns this
108224
109704
  */
108225
- proto.clarifai.api.PatchSecretsRequest.prototype.clearSecretsList = function() {
108226
- return this.setSecretsList([]);
109705
+ proto.clarifai.api.PatchSecretsRequest.prototype.clearSecretList = function() {
109706
+ return this.setSecretList([]);
108227
109707
  };
108228
109708
 
108229
109709
 
108230
109710
  /**
108231
- * optional string action = 3;
109711
+ * optional string action = 8;
108232
109712
  * @return {string}
108233
109713
  */
108234
109714
  proto.clarifai.api.PatchSecretsRequest.prototype.getAction = function() {
108235
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
109715
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
108236
109716
  };
108237
109717
 
108238
109718
 
@@ -108241,7 +109721,7 @@ proto.clarifai.api.PatchSecretsRequest.prototype.getAction = function() {
108241
109721
  * @return {!proto.clarifai.api.PatchSecretsRequest} returns this
108242
109722
  */
108243
109723
  proto.clarifai.api.PatchSecretsRequest.prototype.setAction = function(value) {
108244
- return jspb.Message.setProto3StringField(this, 3, value);
109724
+ return jspb.Message.setProto3StringField(this, 8, value);
108245
109725
  };
108246
109726
 
108247
109727