clarifai-web-grpc 11.6.5 → 11.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,6 +46,7 @@ goog.exportSymbol('proto.clarifai.api.ConceptExtraInfoRequest', null, global);
46
46
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationFiltersRequest', null, global);
47
47
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationRequest', null, global);
48
48
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationSearchMetricsRequest', null, global);
49
+ goog.exportSymbol('proto.clarifai.api.DeleteAnnotationTracksRequest', null, global);
49
50
  goog.exportSymbol('proto.clarifai.api.DeleteAnnotationsRequest', null, global);
50
51
  goog.exportSymbol('proto.clarifai.api.DeleteAppRequest', null, global);
51
52
  goog.exportSymbol('proto.clarifai.api.DeleteBulkOperationRequest', null, global);
@@ -137,6 +138,7 @@ goog.exportSymbol('proto.clarifai.api.IdUpdateSource', null, global);
137
138
  goog.exportSymbol('proto.clarifai.api.LabelSubmitConfig', null, global);
138
139
  goog.exportSymbol('proto.clarifai.api.ListAnnotationFiltersRequest', null, global);
139
140
  goog.exportSymbol('proto.clarifai.api.ListAnnotationSearchMetricsRequest', null, global);
141
+ goog.exportSymbol('proto.clarifai.api.ListAnnotationTracksRequest', null, global);
140
142
  goog.exportSymbol('proto.clarifai.api.ListAnnotationWorkersRequest', null, global);
141
143
  goog.exportSymbol('proto.clarifai.api.ListAnnotationsRequest', null, global);
142
144
  goog.exportSymbol('proto.clarifai.api.ListAppDuplicationsRequest', null, global);
@@ -211,6 +213,7 @@ goog.exportSymbol('proto.clarifai.api.ModelVersionUnpublishRequest', null, globa
211
213
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationFilterResponse', null, global);
212
214
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationResponse', null, global);
213
215
  goog.exportSymbol('proto.clarifai.api.MultiAnnotationSearchMetricsResponse', null, global);
216
+ goog.exportSymbol('proto.clarifai.api.MultiAnnotationTrackResponse', null, global);
214
217
  goog.exportSymbol('proto.clarifai.api.MultiAppDuplicationsResponse', null, global);
215
218
  goog.exportSymbol('proto.clarifai.api.MultiAppResponse', null, global);
216
219
  goog.exportSymbol('proto.clarifai.api.MultiAuditLogEntryResponse', null, global);
@@ -288,6 +291,7 @@ goog.exportSymbol('proto.clarifai.api.MyScopesUserRequest', null, global);
288
291
  goog.exportSymbol('proto.clarifai.api.OrganizationInvitationStatus', null, global);
289
292
  goog.exportSymbol('proto.clarifai.api.Pagination', null, global);
290
293
  goog.exportSymbol('proto.clarifai.api.PatchAnnotationFiltersRequest', null, global);
294
+ goog.exportSymbol('proto.clarifai.api.PatchAnnotationTracksRequest', null, global);
291
295
  goog.exportSymbol('proto.clarifai.api.PatchAnnotationsRequest', null, global);
292
296
  goog.exportSymbol('proto.clarifai.api.PatchAnnotationsSearchesRequest', null, global);
293
297
  goog.exportSymbol('proto.clarifai.api.PatchAnnotationsStatusRequest', null, global);
@@ -330,6 +334,7 @@ goog.exportSymbol('proto.clarifai.api.PatchWorkflowVersionsRequest', null, globa
330
334
  goog.exportSymbol('proto.clarifai.api.PatchWorkflowsRequest', null, global);
331
335
  goog.exportSymbol('proto.clarifai.api.PostAnnotationFiltersRequest', null, global);
332
336
  goog.exportSymbol('proto.clarifai.api.PostAnnotationSearchMetricsRequest', null, global);
337
+ goog.exportSymbol('proto.clarifai.api.PostAnnotationTracksRequest', null, global);
333
338
  goog.exportSymbol('proto.clarifai.api.PostAnnotationsRequest', null, global);
334
339
  goog.exportSymbol('proto.clarifai.api.PostAnnotationsSearchesRequest', null, global);
335
340
  goog.exportSymbol('proto.clarifai.api.PostAppDuplicationsRequest', null, global);
@@ -656,6 +661,111 @@ if (goog.DEBUG && !COMPILED) {
656
661
  */
657
662
  proto.clarifai.api.DeleteAnnotationsRequest.displayName = 'proto.clarifai.api.DeleteAnnotationsRequest';
658
663
  }
664
+ /**
665
+ * Generated by JsPbCodeGenerator.
666
+ * @param {Array=} opt_data Optional initial data array, typically from a
667
+ * server response, or constructed directly in Javascript. The array is used
668
+ * in place and becomes part of the constructed object. It is not cloned.
669
+ * If no data is provided, the constructed object will be empty, but still
670
+ * valid.
671
+ * @extends {jspb.Message}
672
+ * @constructor
673
+ */
674
+ proto.clarifai.api.ListAnnotationTracksRequest = function (opt_data) {
675
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListAnnotationTracksRequest.repeatedFields_, null);
676
+ };
677
+ goog.inherits(proto.clarifai.api.ListAnnotationTracksRequest, jspb.Message);
678
+ if (goog.DEBUG && !COMPILED) {
679
+ /**
680
+ * @public
681
+ * @override
682
+ */
683
+ proto.clarifai.api.ListAnnotationTracksRequest.displayName = 'proto.clarifai.api.ListAnnotationTracksRequest';
684
+ }
685
+ /**
686
+ * Generated by JsPbCodeGenerator.
687
+ * @param {Array=} opt_data Optional initial data array, typically from a
688
+ * server response, or constructed directly in Javascript. The array is used
689
+ * in place and becomes part of the constructed object. It is not cloned.
690
+ * If no data is provided, the constructed object will be empty, but still
691
+ * valid.
692
+ * @extends {jspb.Message}
693
+ * @constructor
694
+ */
695
+ proto.clarifai.api.PostAnnotationTracksRequest = function (opt_data) {
696
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostAnnotationTracksRequest.repeatedFields_, null);
697
+ };
698
+ goog.inherits(proto.clarifai.api.PostAnnotationTracksRequest, jspb.Message);
699
+ if (goog.DEBUG && !COMPILED) {
700
+ /**
701
+ * @public
702
+ * @override
703
+ */
704
+ proto.clarifai.api.PostAnnotationTracksRequest.displayName = 'proto.clarifai.api.PostAnnotationTracksRequest';
705
+ }
706
+ /**
707
+ * Generated by JsPbCodeGenerator.
708
+ * @param {Array=} opt_data Optional initial data array, typically from a
709
+ * server response, or constructed directly in Javascript. The array is used
710
+ * in place and becomes part of the constructed object. It is not cloned.
711
+ * If no data is provided, the constructed object will be empty, but still
712
+ * valid.
713
+ * @extends {jspb.Message}
714
+ * @constructor
715
+ */
716
+ proto.clarifai.api.PatchAnnotationTracksRequest = function (opt_data) {
717
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchAnnotationTracksRequest.repeatedFields_, null);
718
+ };
719
+ goog.inherits(proto.clarifai.api.PatchAnnotationTracksRequest, jspb.Message);
720
+ if (goog.DEBUG && !COMPILED) {
721
+ /**
722
+ * @public
723
+ * @override
724
+ */
725
+ proto.clarifai.api.PatchAnnotationTracksRequest.displayName = 'proto.clarifai.api.PatchAnnotationTracksRequest';
726
+ }
727
+ /**
728
+ * Generated by JsPbCodeGenerator.
729
+ * @param {Array=} opt_data Optional initial data array, typically from a
730
+ * server response, or constructed directly in Javascript. The array is used
731
+ * in place and becomes part of the constructed object. It is not cloned.
732
+ * If no data is provided, the constructed object will be empty, but still
733
+ * valid.
734
+ * @extends {jspb.Message}
735
+ * @constructor
736
+ */
737
+ proto.clarifai.api.DeleteAnnotationTracksRequest = function (opt_data) {
738
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteAnnotationTracksRequest.repeatedFields_, null);
739
+ };
740
+ goog.inherits(proto.clarifai.api.DeleteAnnotationTracksRequest, jspb.Message);
741
+ if (goog.DEBUG && !COMPILED) {
742
+ /**
743
+ * @public
744
+ * @override
745
+ */
746
+ proto.clarifai.api.DeleteAnnotationTracksRequest.displayName = 'proto.clarifai.api.DeleteAnnotationTracksRequest';
747
+ }
748
+ /**
749
+ * Generated by JsPbCodeGenerator.
750
+ * @param {Array=} opt_data Optional initial data array, typically from a
751
+ * server response, or constructed directly in Javascript. The array is used
752
+ * in place and becomes part of the constructed object. It is not cloned.
753
+ * If no data is provided, the constructed object will be empty, but still
754
+ * valid.
755
+ * @extends {jspb.Message}
756
+ * @constructor
757
+ */
758
+ proto.clarifai.api.MultiAnnotationTrackResponse = function (opt_data) {
759
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAnnotationTrackResponse.repeatedFields_, null);
760
+ };
761
+ goog.inherits(proto.clarifai.api.MultiAnnotationTrackResponse, jspb.Message);
762
+ if (goog.DEBUG && !COMPILED) {
763
+ /**
764
+ * @public
765
+ * @override
766
+ */
767
+ proto.clarifai.api.MultiAnnotationTrackResponse.displayName = 'proto.clarifai.api.MultiAnnotationTrackResponse';
768
+ }
659
769
  /**
660
770
  * Generated by JsPbCodeGenerator.
661
771
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -10516,82 +10626,1068 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearUserIdsList = fu
10516
10626
  return this.setUserIdsList([]);
10517
10627
  };
10518
10628
  /**
10519
- * optional string task_id = 4;
10520
- * @return {string}
10629
+ * optional string task_id = 4;
10630
+ * @return {string}
10631
+ */
10632
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getTaskId = function () {
10633
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
10634
+ };
10635
+ /**
10636
+ * @param {string} value
10637
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10638
+ */
10639
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setTaskId = function (value) {
10640
+ return jspb.Message.setProto3StringField(this, 4, value);
10641
+ };
10642
+ /**
10643
+ * repeated status.StatusCode status_codes = 6;
10644
+ * @return {!Array<!proto.clarifai.api.status.StatusCode>}
10645
+ */
10646
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCodesList = function () {
10647
+ return /** @type {!Array<!proto.clarifai.api.status.StatusCode>} */ (jspb.Message.getRepeatedField(this, 6));
10648
+ };
10649
+ /**
10650
+ * @param {!Array<!proto.clarifai.api.status.StatusCode>} value
10651
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10652
+ */
10653
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCodesList = function (value) {
10654
+ return jspb.Message.setField(this, 6, value || []);
10655
+ };
10656
+ /**
10657
+ * @param {!proto.clarifai.api.status.StatusCode} value
10658
+ * @param {number=} opt_index
10659
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10660
+ */
10661
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.addStatusCodes = function (value, opt_index) {
10662
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
10663
+ };
10664
+ /**
10665
+ * Clears the list making it empty but non-null.
10666
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10667
+ */
10668
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearStatusCodesList = function () {
10669
+ return this.setStatusCodesList([]);
10670
+ };
10671
+ /**
10672
+ * optional string action = 5;
10673
+ * @return {string}
10674
+ */
10675
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getAction = function () {
10676
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
10677
+ };
10678
+ /**
10679
+ * @param {string} value
10680
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10681
+ */
10682
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setAction = function (value) {
10683
+ return jspb.Message.setProto3StringField(this, 5, value);
10684
+ };
10685
+ /**
10686
+ * optional status.StatusCode status_code = 2;
10687
+ * @return {!proto.clarifai.api.status.StatusCode}
10688
+ */
10689
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCode = function () {
10690
+ return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
10691
+ };
10692
+ /**
10693
+ * @param {!proto.clarifai.api.status.StatusCode} value
10694
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10695
+ */
10696
+ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCode = function (value) {
10697
+ return jspb.Message.setProto3EnumField(this, 2, value);
10698
+ };
10699
+ /**
10700
+ * List of repeated fields within this message type.
10701
+ * @private {!Array<number>}
10702
+ * @const
10703
+ */
10704
+ proto.clarifai.api.PatchAnnotationsStatusResponse.repeatedFields_ = [2];
10705
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10706
+ /**
10707
+ * Creates an object representation of this proto.
10708
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10709
+ * Optional fields that are not set will be set to undefined.
10710
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10711
+ * For the list of reserved names please see:
10712
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10713
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10714
+ * JSPB instance for transitional soy proto support:
10715
+ * http://goto/soy-param-migration
10716
+ * @return {!Object}
10717
+ */
10718
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.toObject = function (opt_includeInstance) {
10719
+ return proto.clarifai.api.PatchAnnotationsStatusResponse.toObject(opt_includeInstance, this);
10720
+ };
10721
+ /**
10722
+ * Static version of the {@see toObject} method.
10723
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10724
+ * the JSPB instance for transitional soy proto support:
10725
+ * http://goto/soy-param-migration
10726
+ * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The msg instance to transform.
10727
+ * @return {!Object}
10728
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10729
+ */
10730
+ proto.clarifai.api.PatchAnnotationsStatusResponse.toObject = function (includeInstance, msg) {
10731
+ var f, obj = {
10732
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
10733
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
10734
+ updatedCount: jspb.Message.getFieldWithDefault(msg, 3, 0)
10735
+ };
10736
+ if (includeInstance) {
10737
+ obj.$jspbMessageInstance = msg;
10738
+ }
10739
+ return obj;
10740
+ };
10741
+ }
10742
+ /**
10743
+ * Deserializes binary data (in protobuf wire format).
10744
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10745
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse}
10746
+ */
10747
+ proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinary = function (bytes) {
10748
+ var reader = new jspb.BinaryReader(bytes);
10749
+ var msg = new proto.clarifai.api.PatchAnnotationsStatusResponse;
10750
+ return proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader(msg, reader);
10751
+ };
10752
+ /**
10753
+ * Deserializes binary data (in protobuf wire format) from the
10754
+ * given reader into the given message object.
10755
+ * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The message object to deserialize into.
10756
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10757
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse}
10758
+ */
10759
+ proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader = function (msg, reader) {
10760
+ while (reader.nextField()) {
10761
+ if (reader.isEndGroup()) {
10762
+ break;
10763
+ }
10764
+ var field = reader.getFieldNumber();
10765
+ switch (field) {
10766
+ case 1:
10767
+ var value = new proto_clarifai_api_status_status_pb.Status;
10768
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
10769
+ msg.setStatus(value);
10770
+ break;
10771
+ case 2:
10772
+ var value = /** @type {string} */ (reader.readString());
10773
+ msg.addUserIds(value);
10774
+ break;
10775
+ case 3:
10776
+ var value = /** @type {number} */ (reader.readUint32());
10777
+ msg.setUpdatedCount(value);
10778
+ break;
10779
+ default:
10780
+ reader.skipField();
10781
+ break;
10782
+ }
10783
+ }
10784
+ return msg;
10785
+ };
10786
+ /**
10787
+ * Serializes the message to binary data (in protobuf wire format).
10788
+ * @return {!Uint8Array}
10789
+ */
10790
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.serializeBinary = function () {
10791
+ var writer = new jspb.BinaryWriter();
10792
+ proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter(this, writer);
10793
+ return writer.getResultBuffer();
10794
+ };
10795
+ /**
10796
+ * Serializes the given message to binary data (in protobuf wire
10797
+ * format), writing to the given BinaryWriter.
10798
+ * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} message
10799
+ * @param {!jspb.BinaryWriter} writer
10800
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10801
+ */
10802
+ proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter = function (message, writer) {
10803
+ var f = undefined;
10804
+ f = message.getStatus();
10805
+ if (f != null) {
10806
+ writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
10807
+ }
10808
+ f = message.getUserIdsList();
10809
+ if (f.length > 0) {
10810
+ writer.writeRepeatedString(2, f);
10811
+ }
10812
+ f = message.getUpdatedCount();
10813
+ if (f !== 0) {
10814
+ writer.writeUint32(3, f);
10815
+ }
10816
+ };
10817
+ /**
10818
+ * optional status.Status status = 1;
10819
+ * @return {?proto.clarifai.api.status.Status}
10820
+ */
10821
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getStatus = function () {
10822
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
10823
+ };
10824
+ /**
10825
+ * @param {?proto.clarifai.api.status.Status|undefined} value
10826
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
10827
+ */
10828
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setStatus = function (value) {
10829
+ return jspb.Message.setWrapperField(this, 1, value);
10830
+ };
10831
+ /**
10832
+ * Clears the message field making it undefined.
10833
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
10834
+ */
10835
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearStatus = function () {
10836
+ return this.setStatus(undefined);
10837
+ };
10838
+ /**
10839
+ * Returns whether this field is set.
10840
+ * @return {boolean}
10841
+ */
10842
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.hasStatus = function () {
10843
+ return jspb.Message.getField(this, 1) != null;
10844
+ };
10845
+ /**
10846
+ * repeated string user_ids = 2;
10847
+ * @return {!Array<string>}
10848
+ */
10849
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUserIdsList = function () {
10850
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
10851
+ };
10852
+ /**
10853
+ * @param {!Array<string>} value
10854
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
10855
+ */
10856
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUserIdsList = function (value) {
10857
+ return jspb.Message.setField(this, 2, value || []);
10858
+ };
10859
+ /**
10860
+ * @param {string} value
10861
+ * @param {number=} opt_index
10862
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
10863
+ */
10864
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.addUserIds = function (value, opt_index) {
10865
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
10866
+ };
10867
+ /**
10868
+ * Clears the list making it empty but non-null.
10869
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
10870
+ */
10871
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearUserIdsList = function () {
10872
+ return this.setUserIdsList([]);
10873
+ };
10874
+ /**
10875
+ * optional uint32 updated_count = 3;
10876
+ * @return {number}
10877
+ */
10878
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUpdatedCount = function () {
10879
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
10880
+ };
10881
+ /**
10882
+ * @param {number} value
10883
+ * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
10884
+ */
10885
+ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUpdatedCount = function (value) {
10886
+ return jspb.Message.setProto3IntField(this, 3, value);
10887
+ };
10888
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10889
+ /**
10890
+ * Creates an object representation of this proto.
10891
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10892
+ * Optional fields that are not set will be set to undefined.
10893
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10894
+ * For the list of reserved names please see:
10895
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10896
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10897
+ * JSPB instance for transitional soy proto support:
10898
+ * http://goto/soy-param-migration
10899
+ * @return {!Object}
10900
+ */
10901
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.toObject = function (opt_includeInstance) {
10902
+ return proto.clarifai.api.DeleteAnnotationRequest.toObject(opt_includeInstance, this);
10903
+ };
10904
+ /**
10905
+ * Static version of the {@see toObject} method.
10906
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10907
+ * the JSPB instance for transitional soy proto support:
10908
+ * http://goto/soy-param-migration
10909
+ * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The msg instance to transform.
10910
+ * @return {!Object}
10911
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10912
+ */
10913
+ proto.clarifai.api.DeleteAnnotationRequest.toObject = function (includeInstance, msg) {
10914
+ var f, obj = {
10915
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
10916
+ inputId: jspb.Message.getFieldWithDefault(msg, 2, ""),
10917
+ annotationId: jspb.Message.getFieldWithDefault(msg, 3, "")
10918
+ };
10919
+ if (includeInstance) {
10920
+ obj.$jspbMessageInstance = msg;
10921
+ }
10922
+ return obj;
10923
+ };
10924
+ }
10925
+ /**
10926
+ * Deserializes binary data (in protobuf wire format).
10927
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10928
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest}
10929
+ */
10930
+ proto.clarifai.api.DeleteAnnotationRequest.deserializeBinary = function (bytes) {
10931
+ var reader = new jspb.BinaryReader(bytes);
10932
+ var msg = new proto.clarifai.api.DeleteAnnotationRequest;
10933
+ return proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader(msg, reader);
10934
+ };
10935
+ /**
10936
+ * Deserializes binary data (in protobuf wire format) from the
10937
+ * given reader into the given message object.
10938
+ * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The message object to deserialize into.
10939
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10940
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest}
10941
+ */
10942
+ proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = function (msg, reader) {
10943
+ while (reader.nextField()) {
10944
+ if (reader.isEndGroup()) {
10945
+ break;
10946
+ }
10947
+ var field = reader.getFieldNumber();
10948
+ switch (field) {
10949
+ case 1:
10950
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
10951
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
10952
+ msg.setUserAppId(value);
10953
+ break;
10954
+ case 2:
10955
+ var value = /** @type {string} */ (reader.readString());
10956
+ msg.setInputId(value);
10957
+ break;
10958
+ case 3:
10959
+ var value = /** @type {string} */ (reader.readString());
10960
+ msg.setAnnotationId(value);
10961
+ break;
10962
+ default:
10963
+ reader.skipField();
10964
+ break;
10965
+ }
10966
+ }
10967
+ return msg;
10968
+ };
10969
+ /**
10970
+ * Serializes the message to binary data (in protobuf wire format).
10971
+ * @return {!Uint8Array}
10972
+ */
10973
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.serializeBinary = function () {
10974
+ var writer = new jspb.BinaryWriter();
10975
+ proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter(this, writer);
10976
+ return writer.getResultBuffer();
10977
+ };
10978
+ /**
10979
+ * Serializes the given message to binary data (in protobuf wire
10980
+ * format), writing to the given BinaryWriter.
10981
+ * @param {!proto.clarifai.api.DeleteAnnotationRequest} message
10982
+ * @param {!jspb.BinaryWriter} writer
10983
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10984
+ */
10985
+ proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function (message, writer) {
10986
+ var f = undefined;
10987
+ f = message.getUserAppId();
10988
+ if (f != null) {
10989
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
10990
+ }
10991
+ f = message.getInputId();
10992
+ if (f.length > 0) {
10993
+ writer.writeString(2, f);
10994
+ }
10995
+ f = message.getAnnotationId();
10996
+ if (f.length > 0) {
10997
+ writer.writeString(3, f);
10998
+ }
10999
+ };
11000
+ /**
11001
+ * optional UserAppIDSet user_app_id = 1;
11002
+ * @return {?proto.clarifai.api.UserAppIDSet}
11003
+ */
11004
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.getUserAppId = function () {
11005
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
11006
+ };
11007
+ /**
11008
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11009
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
11010
+ */
11011
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.setUserAppId = function (value) {
11012
+ return jspb.Message.setWrapperField(this, 1, value);
11013
+ };
11014
+ /**
11015
+ * Clears the message field making it undefined.
11016
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
11017
+ */
11018
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.clearUserAppId = function () {
11019
+ return this.setUserAppId(undefined);
11020
+ };
11021
+ /**
11022
+ * Returns whether this field is set.
11023
+ * @return {boolean}
11024
+ */
11025
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.hasUserAppId = function () {
11026
+ return jspb.Message.getField(this, 1) != null;
11027
+ };
11028
+ /**
11029
+ * optional string input_id = 2;
11030
+ * @return {string}
11031
+ */
11032
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.getInputId = function () {
11033
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11034
+ };
11035
+ /**
11036
+ * @param {string} value
11037
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
11038
+ */
11039
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.setInputId = function (value) {
11040
+ return jspb.Message.setProto3StringField(this, 2, value);
11041
+ };
11042
+ /**
11043
+ * optional string annotation_id = 3;
11044
+ * @return {string}
11045
+ */
11046
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.getAnnotationId = function () {
11047
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11048
+ };
11049
+ /**
11050
+ * @param {string} value
11051
+ * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
11052
+ */
11053
+ proto.clarifai.api.DeleteAnnotationRequest.prototype.setAnnotationId = function (value) {
11054
+ return jspb.Message.setProto3StringField(this, 3, value);
11055
+ };
11056
+ /**
11057
+ * List of repeated fields within this message type.
11058
+ * @private {!Array<number>}
11059
+ * @const
11060
+ */
11061
+ proto.clarifai.api.DeleteAnnotationsRequest.repeatedFields_ = [2, 3];
11062
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11063
+ /**
11064
+ * Creates an object representation of this proto.
11065
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11066
+ * Optional fields that are not set will be set to undefined.
11067
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11068
+ * For the list of reserved names please see:
11069
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11070
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11071
+ * JSPB instance for transitional soy proto support:
11072
+ * http://goto/soy-param-migration
11073
+ * @return {!Object}
11074
+ */
11075
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.toObject = function (opt_includeInstance) {
11076
+ return proto.clarifai.api.DeleteAnnotationsRequest.toObject(opt_includeInstance, this);
11077
+ };
11078
+ /**
11079
+ * Static version of the {@see toObject} method.
11080
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11081
+ * the JSPB instance for transitional soy proto support:
11082
+ * http://goto/soy-param-migration
11083
+ * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The msg instance to transform.
11084
+ * @return {!Object}
11085
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11086
+ */
11087
+ proto.clarifai.api.DeleteAnnotationsRequest.toObject = function (includeInstance, msg) {
11088
+ var f, obj = {
11089
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
11090
+ idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
11091
+ inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
11092
+ };
11093
+ if (includeInstance) {
11094
+ obj.$jspbMessageInstance = msg;
11095
+ }
11096
+ return obj;
11097
+ };
11098
+ }
11099
+ /**
11100
+ * Deserializes binary data (in protobuf wire format).
11101
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11102
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest}
11103
+ */
11104
+ proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinary = function (bytes) {
11105
+ var reader = new jspb.BinaryReader(bytes);
11106
+ var msg = new proto.clarifai.api.DeleteAnnotationsRequest;
11107
+ return proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader(msg, reader);
11108
+ };
11109
+ /**
11110
+ * Deserializes binary data (in protobuf wire format) from the
11111
+ * given reader into the given message object.
11112
+ * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The message object to deserialize into.
11113
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11114
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest}
11115
+ */
11116
+ proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = function (msg, reader) {
11117
+ while (reader.nextField()) {
11118
+ if (reader.isEndGroup()) {
11119
+ break;
11120
+ }
11121
+ var field = reader.getFieldNumber();
11122
+ switch (field) {
11123
+ case 1:
11124
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
11125
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
11126
+ msg.setUserAppId(value);
11127
+ break;
11128
+ case 2:
11129
+ var value = /** @type {string} */ (reader.readString());
11130
+ msg.addIds(value);
11131
+ break;
11132
+ case 3:
11133
+ var value = /** @type {string} */ (reader.readString());
11134
+ msg.addInputIds(value);
11135
+ break;
11136
+ default:
11137
+ reader.skipField();
11138
+ break;
11139
+ }
11140
+ }
11141
+ return msg;
11142
+ };
11143
+ /**
11144
+ * Serializes the message to binary data (in protobuf wire format).
11145
+ * @return {!Uint8Array}
11146
+ */
11147
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.serializeBinary = function () {
11148
+ var writer = new jspb.BinaryWriter();
11149
+ proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter(this, writer);
11150
+ return writer.getResultBuffer();
11151
+ };
11152
+ /**
11153
+ * Serializes the given message to binary data (in protobuf wire
11154
+ * format), writing to the given BinaryWriter.
11155
+ * @param {!proto.clarifai.api.DeleteAnnotationsRequest} message
11156
+ * @param {!jspb.BinaryWriter} writer
11157
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11158
+ */
11159
+ proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter = function (message, writer) {
11160
+ var f = undefined;
11161
+ f = message.getUserAppId();
11162
+ if (f != null) {
11163
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
11164
+ }
11165
+ f = message.getIdsList();
11166
+ if (f.length > 0) {
11167
+ writer.writeRepeatedString(2, f);
11168
+ }
11169
+ f = message.getInputIdsList();
11170
+ if (f.length > 0) {
11171
+ writer.writeRepeatedString(3, f);
11172
+ }
11173
+ };
11174
+ /**
11175
+ * optional UserAppIDSet user_app_id = 1;
11176
+ * @return {?proto.clarifai.api.UserAppIDSet}
11177
+ */
11178
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.getUserAppId = function () {
11179
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
11180
+ };
11181
+ /**
11182
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11183
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11184
+ */
11185
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.setUserAppId = function (value) {
11186
+ return jspb.Message.setWrapperField(this, 1, value);
11187
+ };
11188
+ /**
11189
+ * Clears the message field making it undefined.
11190
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11191
+ */
11192
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearUserAppId = function () {
11193
+ return this.setUserAppId(undefined);
11194
+ };
11195
+ /**
11196
+ * Returns whether this field is set.
11197
+ * @return {boolean}
11198
+ */
11199
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.hasUserAppId = function () {
11200
+ return jspb.Message.getField(this, 1) != null;
11201
+ };
11202
+ /**
11203
+ * repeated string ids = 2;
11204
+ * @return {!Array<string>}
11205
+ */
11206
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.getIdsList = function () {
11207
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
11208
+ };
11209
+ /**
11210
+ * @param {!Array<string>} value
11211
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11212
+ */
11213
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.setIdsList = function (value) {
11214
+ return jspb.Message.setField(this, 2, value || []);
11215
+ };
11216
+ /**
11217
+ * @param {string} value
11218
+ * @param {number=} opt_index
11219
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11220
+ */
11221
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.addIds = function (value, opt_index) {
11222
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
11223
+ };
11224
+ /**
11225
+ * Clears the list making it empty but non-null.
11226
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11227
+ */
11228
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearIdsList = function () {
11229
+ return this.setIdsList([]);
11230
+ };
11231
+ /**
11232
+ * repeated string input_ids = 3;
11233
+ * @return {!Array<string>}
11234
+ */
11235
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.getInputIdsList = function () {
11236
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
11237
+ };
11238
+ /**
11239
+ * @param {!Array<string>} value
11240
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11241
+ */
11242
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.setInputIdsList = function (value) {
11243
+ return jspb.Message.setField(this, 3, value || []);
11244
+ };
11245
+ /**
11246
+ * @param {string} value
11247
+ * @param {number=} opt_index
11248
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11249
+ */
11250
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.addInputIds = function (value, opt_index) {
11251
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
11252
+ };
11253
+ /**
11254
+ * Clears the list making it empty but non-null.
11255
+ * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11256
+ */
11257
+ proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearInputIdsList = function () {
11258
+ return this.setInputIdsList([]);
11259
+ };
11260
+ /**
11261
+ * List of repeated fields within this message type.
11262
+ * @private {!Array<number>}
11263
+ * @const
11264
+ */
11265
+ proto.clarifai.api.ListAnnotationTracksRequest.repeatedFields_ = [2];
11266
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11267
+ /**
11268
+ * Creates an object representation of this proto.
11269
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11270
+ * Optional fields that are not set will be set to undefined.
11271
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11272
+ * For the list of reserved names please see:
11273
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11274
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11275
+ * JSPB instance for transitional soy proto support:
11276
+ * http://goto/soy-param-migration
11277
+ * @return {!Object}
11278
+ */
11279
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.toObject = function (opt_includeInstance) {
11280
+ return proto.clarifai.api.ListAnnotationTracksRequest.toObject(opt_includeInstance, this);
11281
+ };
11282
+ /**
11283
+ * Static version of the {@see toObject} method.
11284
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11285
+ * the JSPB instance for transitional soy proto support:
11286
+ * http://goto/soy-param-migration
11287
+ * @param {!proto.clarifai.api.ListAnnotationTracksRequest} msg The msg instance to transform.
11288
+ * @return {!Object}
11289
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11290
+ */
11291
+ proto.clarifai.api.ListAnnotationTracksRequest.toObject = function (includeInstance, msg) {
11292
+ var f, obj = {
11293
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
11294
+ idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
11295
+ inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
11296
+ page: jspb.Message.getFieldWithDefault(msg, 4, 0),
11297
+ perPage: jspb.Message.getFieldWithDefault(msg, 5, 0)
11298
+ };
11299
+ if (includeInstance) {
11300
+ obj.$jspbMessageInstance = msg;
11301
+ }
11302
+ return obj;
11303
+ };
11304
+ }
11305
+ /**
11306
+ * Deserializes binary data (in protobuf wire format).
11307
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11308
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest}
11309
+ */
11310
+ proto.clarifai.api.ListAnnotationTracksRequest.deserializeBinary = function (bytes) {
11311
+ var reader = new jspb.BinaryReader(bytes);
11312
+ var msg = new proto.clarifai.api.ListAnnotationTracksRequest;
11313
+ return proto.clarifai.api.ListAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
11314
+ };
11315
+ /**
11316
+ * Deserializes binary data (in protobuf wire format) from the
11317
+ * given reader into the given message object.
11318
+ * @param {!proto.clarifai.api.ListAnnotationTracksRequest} msg The message object to deserialize into.
11319
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11320
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest}
11321
+ */
11322
+ proto.clarifai.api.ListAnnotationTracksRequest.deserializeBinaryFromReader = function (msg, reader) {
11323
+ while (reader.nextField()) {
11324
+ if (reader.isEndGroup()) {
11325
+ break;
11326
+ }
11327
+ var field = reader.getFieldNumber();
11328
+ switch (field) {
11329
+ case 1:
11330
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
11331
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
11332
+ msg.setUserAppId(value);
11333
+ break;
11334
+ case 2:
11335
+ var value = /** @type {string} */ (reader.readString());
11336
+ msg.addIds(value);
11337
+ break;
11338
+ case 3:
11339
+ var value = /** @type {string} */ (reader.readString());
11340
+ msg.setInputId(value);
11341
+ break;
11342
+ case 4:
11343
+ var value = /** @type {number} */ (reader.readUint32());
11344
+ msg.setPage(value);
11345
+ break;
11346
+ case 5:
11347
+ var value = /** @type {number} */ (reader.readUint32());
11348
+ msg.setPerPage(value);
11349
+ break;
11350
+ default:
11351
+ reader.skipField();
11352
+ break;
11353
+ }
11354
+ }
11355
+ return msg;
11356
+ };
11357
+ /**
11358
+ * Serializes the message to binary data (in protobuf wire format).
11359
+ * @return {!Uint8Array}
11360
+ */
11361
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.serializeBinary = function () {
11362
+ var writer = new jspb.BinaryWriter();
11363
+ proto.clarifai.api.ListAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
11364
+ return writer.getResultBuffer();
11365
+ };
11366
+ /**
11367
+ * Serializes the given message to binary data (in protobuf wire
11368
+ * format), writing to the given BinaryWriter.
11369
+ * @param {!proto.clarifai.api.ListAnnotationTracksRequest} message
11370
+ * @param {!jspb.BinaryWriter} writer
11371
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11372
+ */
11373
+ proto.clarifai.api.ListAnnotationTracksRequest.serializeBinaryToWriter = function (message, writer) {
11374
+ var f = undefined;
11375
+ f = message.getUserAppId();
11376
+ if (f != null) {
11377
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
11378
+ }
11379
+ f = message.getIdsList();
11380
+ if (f.length > 0) {
11381
+ writer.writeRepeatedString(2, f);
11382
+ }
11383
+ f = message.getInputId();
11384
+ if (f.length > 0) {
11385
+ writer.writeString(3, f);
11386
+ }
11387
+ f = message.getPage();
11388
+ if (f !== 0) {
11389
+ writer.writeUint32(4, f);
11390
+ }
11391
+ f = message.getPerPage();
11392
+ if (f !== 0) {
11393
+ writer.writeUint32(5, f);
11394
+ }
11395
+ };
11396
+ /**
11397
+ * optional UserAppIDSet user_app_id = 1;
11398
+ * @return {?proto.clarifai.api.UserAppIDSet}
11399
+ */
11400
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.getUserAppId = function () {
11401
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
11402
+ };
11403
+ /**
11404
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11405
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
11406
+ */
11407
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.setUserAppId = function (value) {
11408
+ return jspb.Message.setWrapperField(this, 1, value);
11409
+ };
11410
+ /**
11411
+ * Clears the message field making it undefined.
11412
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
11413
+ */
11414
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.clearUserAppId = function () {
11415
+ return this.setUserAppId(undefined);
11416
+ };
11417
+ /**
11418
+ * Returns whether this field is set.
11419
+ * @return {boolean}
11420
+ */
11421
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.hasUserAppId = function () {
11422
+ return jspb.Message.getField(this, 1) != null;
11423
+ };
11424
+ /**
11425
+ * repeated string ids = 2;
11426
+ * @return {!Array<string>}
11427
+ */
11428
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.getIdsList = function () {
11429
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
11430
+ };
11431
+ /**
11432
+ * @param {!Array<string>} value
11433
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
11434
+ */
11435
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.setIdsList = function (value) {
11436
+ return jspb.Message.setField(this, 2, value || []);
11437
+ };
11438
+ /**
11439
+ * @param {string} value
11440
+ * @param {number=} opt_index
11441
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
11442
+ */
11443
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.addIds = function (value, opt_index) {
11444
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
11445
+ };
11446
+ /**
11447
+ * Clears the list making it empty but non-null.
11448
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
11449
+ */
11450
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.clearIdsList = function () {
11451
+ return this.setIdsList([]);
11452
+ };
11453
+ /**
11454
+ * optional string input_id = 3;
11455
+ * @return {string}
11456
+ */
11457
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.getInputId = function () {
11458
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11459
+ };
11460
+ /**
11461
+ * @param {string} value
11462
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
11463
+ */
11464
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.setInputId = function (value) {
11465
+ return jspb.Message.setProto3StringField(this, 3, value);
11466
+ };
11467
+ /**
11468
+ * optional uint32 page = 4;
11469
+ * @return {number}
11470
+ */
11471
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.getPage = function () {
11472
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
11473
+ };
11474
+ /**
11475
+ * @param {number} value
11476
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
11477
+ */
11478
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.setPage = function (value) {
11479
+ return jspb.Message.setProto3IntField(this, 4, value);
11480
+ };
11481
+ /**
11482
+ * optional uint32 per_page = 5;
11483
+ * @return {number}
11484
+ */
11485
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.getPerPage = function () {
11486
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
11487
+ };
11488
+ /**
11489
+ * @param {number} value
11490
+ * @return {!proto.clarifai.api.ListAnnotationTracksRequest} returns this
11491
+ */
11492
+ proto.clarifai.api.ListAnnotationTracksRequest.prototype.setPerPage = function (value) {
11493
+ return jspb.Message.setProto3IntField(this, 5, value);
11494
+ };
11495
+ /**
11496
+ * List of repeated fields within this message type.
11497
+ * @private {!Array<number>}
11498
+ * @const
11499
+ */
11500
+ proto.clarifai.api.PostAnnotationTracksRequest.repeatedFields_ = [2];
11501
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11502
+ /**
11503
+ * Creates an object representation of this proto.
11504
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11505
+ * Optional fields that are not set will be set to undefined.
11506
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11507
+ * For the list of reserved names please see:
11508
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11509
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11510
+ * JSPB instance for transitional soy proto support:
11511
+ * http://goto/soy-param-migration
11512
+ * @return {!Object}
11513
+ */
11514
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.toObject = function (opt_includeInstance) {
11515
+ return proto.clarifai.api.PostAnnotationTracksRequest.toObject(opt_includeInstance, this);
11516
+ };
11517
+ /**
11518
+ * Static version of the {@see toObject} method.
11519
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11520
+ * the JSPB instance for transitional soy proto support:
11521
+ * http://goto/soy-param-migration
11522
+ * @param {!proto.clarifai.api.PostAnnotationTracksRequest} msg The msg instance to transform.
11523
+ * @return {!Object}
11524
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11525
+ */
11526
+ proto.clarifai.api.PostAnnotationTracksRequest.toObject = function (includeInstance, msg) {
11527
+ var f, obj = {
11528
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
11529
+ annotationTracksList: jspb.Message.toObjectList(msg.getAnnotationTracksList(), proto_clarifai_api_resources_pb.AnnotationTrack.toObject, includeInstance),
11530
+ inputId: jspb.Message.getFieldWithDefault(msg, 3, "")
11531
+ };
11532
+ if (includeInstance) {
11533
+ obj.$jspbMessageInstance = msg;
11534
+ }
11535
+ return obj;
11536
+ };
11537
+ }
11538
+ /**
11539
+ * Deserializes binary data (in protobuf wire format).
11540
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11541
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest}
11542
+ */
11543
+ proto.clarifai.api.PostAnnotationTracksRequest.deserializeBinary = function (bytes) {
11544
+ var reader = new jspb.BinaryReader(bytes);
11545
+ var msg = new proto.clarifai.api.PostAnnotationTracksRequest;
11546
+ return proto.clarifai.api.PostAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
11547
+ };
11548
+ /**
11549
+ * Deserializes binary data (in protobuf wire format) from the
11550
+ * given reader into the given message object.
11551
+ * @param {!proto.clarifai.api.PostAnnotationTracksRequest} msg The message object to deserialize into.
11552
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11553
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest}
11554
+ */
11555
+ proto.clarifai.api.PostAnnotationTracksRequest.deserializeBinaryFromReader = function (msg, reader) {
11556
+ while (reader.nextField()) {
11557
+ if (reader.isEndGroup()) {
11558
+ break;
11559
+ }
11560
+ var field = reader.getFieldNumber();
11561
+ switch (field) {
11562
+ case 1:
11563
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
11564
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
11565
+ msg.setUserAppId(value);
11566
+ break;
11567
+ case 2:
11568
+ var value = new proto_clarifai_api_resources_pb.AnnotationTrack;
11569
+ reader.readMessage(value, proto_clarifai_api_resources_pb.AnnotationTrack.deserializeBinaryFromReader);
11570
+ msg.addAnnotationTracks(value);
11571
+ break;
11572
+ case 3:
11573
+ var value = /** @type {string} */ (reader.readString());
11574
+ msg.setInputId(value);
11575
+ break;
11576
+ default:
11577
+ reader.skipField();
11578
+ break;
11579
+ }
11580
+ }
11581
+ return msg;
11582
+ };
11583
+ /**
11584
+ * Serializes the message to binary data (in protobuf wire format).
11585
+ * @return {!Uint8Array}
11586
+ */
11587
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.serializeBinary = function () {
11588
+ var writer = new jspb.BinaryWriter();
11589
+ proto.clarifai.api.PostAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
11590
+ return writer.getResultBuffer();
11591
+ };
11592
+ /**
11593
+ * Serializes the given message to binary data (in protobuf wire
11594
+ * format), writing to the given BinaryWriter.
11595
+ * @param {!proto.clarifai.api.PostAnnotationTracksRequest} message
11596
+ * @param {!jspb.BinaryWriter} writer
11597
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11598
+ */
11599
+ proto.clarifai.api.PostAnnotationTracksRequest.serializeBinaryToWriter = function (message, writer) {
11600
+ var f = undefined;
11601
+ f = message.getUserAppId();
11602
+ if (f != null) {
11603
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
11604
+ }
11605
+ f = message.getAnnotationTracksList();
11606
+ if (f.length > 0) {
11607
+ writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.AnnotationTrack.serializeBinaryToWriter);
11608
+ }
11609
+ f = message.getInputId();
11610
+ if (f.length > 0) {
11611
+ writer.writeString(3, f);
11612
+ }
11613
+ };
11614
+ /**
11615
+ * optional UserAppIDSet user_app_id = 1;
11616
+ * @return {?proto.clarifai.api.UserAppIDSet}
11617
+ */
11618
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.getUserAppId = function () {
11619
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
11620
+ };
11621
+ /**
11622
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11623
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
11624
+ */
11625
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.setUserAppId = function (value) {
11626
+ return jspb.Message.setWrapperField(this, 1, value);
11627
+ };
11628
+ /**
11629
+ * Clears the message field making it undefined.
11630
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
10521
11631
  */
10522
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getTaskId = function () {
10523
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11632
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.clearUserAppId = function () {
11633
+ return this.setUserAppId(undefined);
10524
11634
  };
10525
11635
  /**
10526
- * @param {string} value
10527
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
11636
+ * Returns whether this field is set.
11637
+ * @return {boolean}
10528
11638
  */
10529
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setTaskId = function (value) {
10530
- return jspb.Message.setProto3StringField(this, 4, value);
11639
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.hasUserAppId = function () {
11640
+ return jspb.Message.getField(this, 1) != null;
10531
11641
  };
10532
11642
  /**
10533
- * repeated status.StatusCode status_codes = 6;
10534
- * @return {!Array<!proto.clarifai.api.status.StatusCode>}
11643
+ * repeated AnnotationTrack annotation_tracks = 2;
11644
+ * @return {!Array<!proto.clarifai.api.AnnotationTrack>}
10535
11645
  */
10536
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCodesList = function () {
10537
- return /** @type {!Array<!proto.clarifai.api.status.StatusCode>} */ (jspb.Message.getRepeatedField(this, 6));
11646
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.getAnnotationTracksList = function () {
11647
+ return /** @type{!Array<!proto.clarifai.api.AnnotationTrack>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationTrack, 2));
10538
11648
  };
10539
11649
  /**
10540
- * @param {!Array<!proto.clarifai.api.status.StatusCode>} value
10541
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10542
- */
10543
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCodesList = function (value) {
10544
- return jspb.Message.setField(this, 6, value || []);
11650
+ * @param {!Array<!proto.clarifai.api.AnnotationTrack>} value
11651
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
11652
+ */
11653
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.setAnnotationTracksList = function (value) {
11654
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
10545
11655
  };
10546
11656
  /**
10547
- * @param {!proto.clarifai.api.status.StatusCode} value
11657
+ * @param {!proto.clarifai.api.AnnotationTrack=} opt_value
10548
11658
  * @param {number=} opt_index
10549
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
11659
+ * @return {!proto.clarifai.api.AnnotationTrack}
10550
11660
  */
10551
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.addStatusCodes = function (value, opt_index) {
10552
- return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
11661
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.addAnnotationTracks = function (opt_value, opt_index) {
11662
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationTrack, opt_index);
10553
11663
  };
10554
11664
  /**
10555
11665
  * Clears the list making it empty but non-null.
10556
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
11666
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
10557
11667
  */
10558
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearStatusCodesList = function () {
10559
- return this.setStatusCodesList([]);
11668
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.clearAnnotationTracksList = function () {
11669
+ return this.setAnnotationTracksList([]);
10560
11670
  };
10561
11671
  /**
10562
- * optional string action = 5;
11672
+ * optional string input_id = 3;
10563
11673
  * @return {string}
10564
11674
  */
10565
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getAction = function () {
10566
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11675
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.getInputId = function () {
11676
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10567
11677
  };
10568
11678
  /**
10569
11679
  * @param {string} value
10570
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
10571
- */
10572
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setAction = function (value) {
10573
- return jspb.Message.setProto3StringField(this, 5, value);
10574
- };
10575
- /**
10576
- * optional status.StatusCode status_code = 2;
10577
- * @return {!proto.clarifai.api.status.StatusCode}
10578
- */
10579
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCode = function () {
10580
- return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
10581
- };
10582
- /**
10583
- * @param {!proto.clarifai.api.status.StatusCode} value
10584
- * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this
11680
+ * @return {!proto.clarifai.api.PostAnnotationTracksRequest} returns this
10585
11681
  */
10586
- proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCode = function (value) {
10587
- return jspb.Message.setProto3EnumField(this, 2, value);
11682
+ proto.clarifai.api.PostAnnotationTracksRequest.prototype.setInputId = function (value) {
11683
+ return jspb.Message.setProto3StringField(this, 3, value);
10588
11684
  };
10589
11685
  /**
10590
11686
  * List of repeated fields within this message type.
10591
11687
  * @private {!Array<number>}
10592
11688
  * @const
10593
11689
  */
10594
- proto.clarifai.api.PatchAnnotationsStatusResponse.repeatedFields_ = [2];
11690
+ proto.clarifai.api.PatchAnnotationTracksRequest.repeatedFields_ = [2];
10595
11691
  if (jspb.Message.GENERATE_TO_OBJECT) {
10596
11692
  /**
10597
11693
  * Creates an object representation of this proto.
@@ -10605,23 +11701,24 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
10605
11701
  * http://goto/soy-param-migration
10606
11702
  * @return {!Object}
10607
11703
  */
10608
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.toObject = function (opt_includeInstance) {
10609
- return proto.clarifai.api.PatchAnnotationsStatusResponse.toObject(opt_includeInstance, this);
11704
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.toObject = function (opt_includeInstance) {
11705
+ return proto.clarifai.api.PatchAnnotationTracksRequest.toObject(opt_includeInstance, this);
10610
11706
  };
10611
11707
  /**
10612
11708
  * Static version of the {@see toObject} method.
10613
11709
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10614
11710
  * the JSPB instance for transitional soy proto support:
10615
11711
  * http://goto/soy-param-migration
10616
- * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The msg instance to transform.
11712
+ * @param {!proto.clarifai.api.PatchAnnotationTracksRequest} msg The msg instance to transform.
10617
11713
  * @return {!Object}
10618
11714
  * @suppress {unusedLocalVariables} f is only used for nested messages
10619
11715
  */
10620
- proto.clarifai.api.PatchAnnotationsStatusResponse.toObject = function (includeInstance, msg) {
11716
+ proto.clarifai.api.PatchAnnotationTracksRequest.toObject = function (includeInstance, msg) {
10621
11717
  var f, obj = {
10622
- status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
10623
- userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
10624
- updatedCount: jspb.Message.getFieldWithDefault(msg, 3, 0)
11718
+ userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
11719
+ annotationTracksList: jspb.Message.toObjectList(msg.getAnnotationTracksList(), proto_clarifai_api_resources_pb.AnnotationTrack.toObject, includeInstance),
11720
+ inputId: jspb.Message.getFieldWithDefault(msg, 3, ""),
11721
+ action: jspb.Message.getFieldWithDefault(msg, 4, "")
10625
11722
  };
10626
11723
  if (includeInstance) {
10627
11724
  obj.$jspbMessageInstance = msg;
@@ -10632,21 +11729,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
10632
11729
  /**
10633
11730
  * Deserializes binary data (in protobuf wire format).
10634
11731
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
10635
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse}
11732
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest}
10636
11733
  */
10637
- proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinary = function (bytes) {
11734
+ proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinary = function (bytes) {
10638
11735
  var reader = new jspb.BinaryReader(bytes);
10639
- var msg = new proto.clarifai.api.PatchAnnotationsStatusResponse;
10640
- return proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader(msg, reader);
11736
+ var msg = new proto.clarifai.api.PatchAnnotationTracksRequest;
11737
+ return proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
10641
11738
  };
10642
11739
  /**
10643
11740
  * Deserializes binary data (in protobuf wire format) from the
10644
11741
  * given reader into the given message object.
10645
- * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The message object to deserialize into.
11742
+ * @param {!proto.clarifai.api.PatchAnnotationTracksRequest} msg The message object to deserialize into.
10646
11743
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10647
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse}
11744
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest}
10648
11745
  */
10649
- proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader = function (msg, reader) {
11746
+ proto.clarifai.api.PatchAnnotationTracksRequest.deserializeBinaryFromReader = function (msg, reader) {
10650
11747
  while (reader.nextField()) {
10651
11748
  if (reader.isEndGroup()) {
10652
11749
  break;
@@ -10654,17 +11751,22 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader =
10654
11751
  var field = reader.getFieldNumber();
10655
11752
  switch (field) {
10656
11753
  case 1:
10657
- var value = new proto_clarifai_api_status_status_pb.Status;
10658
- reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
10659
- msg.setStatus(value);
11754
+ var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
11755
+ reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
11756
+ msg.setUserAppId(value);
10660
11757
  break;
10661
11758
  case 2:
10662
- var value = /** @type {string} */ (reader.readString());
10663
- msg.addUserIds(value);
11759
+ var value = new proto_clarifai_api_resources_pb.AnnotationTrack;
11760
+ reader.readMessage(value, proto_clarifai_api_resources_pb.AnnotationTrack.deserializeBinaryFromReader);
11761
+ msg.addAnnotationTracks(value);
10664
11762
  break;
10665
11763
  case 3:
10666
- var value = /** @type {number} */ (reader.readUint32());
10667
- msg.setUpdatedCount(value);
11764
+ var value = /** @type {string} */ (reader.readString());
11765
+ msg.setInputId(value);
11766
+ break;
11767
+ case 4:
11768
+ var value = /** @type {string} */ (reader.readString());
11769
+ msg.setAction(value);
10668
11770
  break;
10669
11771
  default:
10670
11772
  reader.skipField();
@@ -10677,104 +11779,128 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader =
10677
11779
  * Serializes the message to binary data (in protobuf wire format).
10678
11780
  * @return {!Uint8Array}
10679
11781
  */
10680
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.serializeBinary = function () {
11782
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.serializeBinary = function () {
10681
11783
  var writer = new jspb.BinaryWriter();
10682
- proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter(this, writer);
11784
+ proto.clarifai.api.PatchAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
10683
11785
  return writer.getResultBuffer();
10684
11786
  };
10685
11787
  /**
10686
11788
  * Serializes the given message to binary data (in protobuf wire
10687
11789
  * format), writing to the given BinaryWriter.
10688
- * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} message
11790
+ * @param {!proto.clarifai.api.PatchAnnotationTracksRequest} message
10689
11791
  * @param {!jspb.BinaryWriter} writer
10690
11792
  * @suppress {unusedLocalVariables} f is only used for nested messages
10691
11793
  */
10692
- proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter = function (message, writer) {
11794
+ proto.clarifai.api.PatchAnnotationTracksRequest.serializeBinaryToWriter = function (message, writer) {
10693
11795
  var f = undefined;
10694
- f = message.getStatus();
11796
+ f = message.getUserAppId();
10695
11797
  if (f != null) {
10696
- writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
11798
+ writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
10697
11799
  }
10698
- f = message.getUserIdsList();
11800
+ f = message.getAnnotationTracksList();
10699
11801
  if (f.length > 0) {
10700
- writer.writeRepeatedString(2, f);
11802
+ writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.AnnotationTrack.serializeBinaryToWriter);
10701
11803
  }
10702
- f = message.getUpdatedCount();
10703
- if (f !== 0) {
10704
- writer.writeUint32(3, f);
11804
+ f = message.getInputId();
11805
+ if (f.length > 0) {
11806
+ writer.writeString(3, f);
11807
+ }
11808
+ f = message.getAction();
11809
+ if (f.length > 0) {
11810
+ writer.writeString(4, f);
10705
11811
  }
10706
11812
  };
10707
11813
  /**
10708
- * optional status.Status status = 1;
10709
- * @return {?proto.clarifai.api.status.Status}
11814
+ * optional UserAppIDSet user_app_id = 1;
11815
+ * @return {?proto.clarifai.api.UserAppIDSet}
10710
11816
  */
10711
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getStatus = function () {
10712
- return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
11817
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getUserAppId = function () {
11818
+ return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
10713
11819
  };
10714
11820
  /**
10715
- * @param {?proto.clarifai.api.status.Status|undefined} value
10716
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11821
+ * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11822
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
10717
11823
  */
10718
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setStatus = function (value) {
11824
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setUserAppId = function (value) {
10719
11825
  return jspb.Message.setWrapperField(this, 1, value);
10720
11826
  };
10721
11827
  /**
10722
11828
  * Clears the message field making it undefined.
10723
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11829
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
10724
11830
  */
10725
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearStatus = function () {
10726
- return this.setStatus(undefined);
11831
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.clearUserAppId = function () {
11832
+ return this.setUserAppId(undefined);
10727
11833
  };
10728
11834
  /**
10729
11835
  * Returns whether this field is set.
10730
11836
  * @return {boolean}
10731
11837
  */
10732
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.hasStatus = function () {
11838
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.hasUserAppId = function () {
10733
11839
  return jspb.Message.getField(this, 1) != null;
10734
11840
  };
10735
11841
  /**
10736
- * repeated string user_ids = 2;
10737
- * @return {!Array<string>}
11842
+ * repeated AnnotationTrack annotation_tracks = 2;
11843
+ * @return {!Array<!proto.clarifai.api.AnnotationTrack>}
10738
11844
  */
10739
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUserIdsList = function () {
10740
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
11845
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getAnnotationTracksList = function () {
11846
+ return /** @type{!Array<!proto.clarifai.api.AnnotationTrack>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationTrack, 2));
10741
11847
  };
10742
11848
  /**
10743
- * @param {!Array<string>} value
10744
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
10745
- */
10746
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUserIdsList = function (value) {
10747
- return jspb.Message.setField(this, 2, value || []);
11849
+ * @param {!Array<!proto.clarifai.api.AnnotationTrack>} value
11850
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
11851
+ */
11852
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setAnnotationTracksList = function (value) {
11853
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
10748
11854
  };
10749
11855
  /**
10750
- * @param {string} value
11856
+ * @param {!proto.clarifai.api.AnnotationTrack=} opt_value
10751
11857
  * @param {number=} opt_index
10752
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11858
+ * @return {!proto.clarifai.api.AnnotationTrack}
10753
11859
  */
10754
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.addUserIds = function (value, opt_index) {
10755
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
11860
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.addAnnotationTracks = function (opt_value, opt_index) {
11861
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationTrack, opt_index);
10756
11862
  };
10757
11863
  /**
10758
11864
  * Clears the list making it empty but non-null.
10759
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11865
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
10760
11866
  */
10761
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearUserIdsList = function () {
10762
- return this.setUserIdsList([]);
11867
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.clearAnnotationTracksList = function () {
11868
+ return this.setAnnotationTracksList([]);
10763
11869
  };
10764
11870
  /**
10765
- * optional uint32 updated_count = 3;
10766
- * @return {number}
11871
+ * optional string input_id = 3;
11872
+ * @return {string}
10767
11873
  */
10768
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUpdatedCount = function () {
10769
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
11874
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getInputId = function () {
11875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10770
11876
  };
10771
11877
  /**
10772
- * @param {number} value
10773
- * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this
11878
+ * @param {string} value
11879
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
10774
11880
  */
10775
- proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUpdatedCount = function (value) {
10776
- return jspb.Message.setProto3IntField(this, 3, value);
11881
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setInputId = function (value) {
11882
+ return jspb.Message.setProto3StringField(this, 3, value);
11883
+ };
11884
+ /**
11885
+ * optional string action = 4;
11886
+ * @return {string}
11887
+ */
11888
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.getAction = function () {
11889
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11890
+ };
11891
+ /**
11892
+ * @param {string} value
11893
+ * @return {!proto.clarifai.api.PatchAnnotationTracksRequest} returns this
11894
+ */
11895
+ proto.clarifai.api.PatchAnnotationTracksRequest.prototype.setAction = function (value) {
11896
+ return jspb.Message.setProto3StringField(this, 4, value);
10777
11897
  };
11898
+ /**
11899
+ * List of repeated fields within this message type.
11900
+ * @private {!Array<number>}
11901
+ * @const
11902
+ */
11903
+ proto.clarifai.api.DeleteAnnotationTracksRequest.repeatedFields_ = [2];
10778
11904
  if (jspb.Message.GENERATE_TO_OBJECT) {
10779
11905
  /**
10780
11906
  * Creates an object representation of this proto.
@@ -10788,23 +11914,23 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
10788
11914
  * http://goto/soy-param-migration
10789
11915
  * @return {!Object}
10790
11916
  */
10791
- proto.clarifai.api.DeleteAnnotationRequest.prototype.toObject = function (opt_includeInstance) {
10792
- return proto.clarifai.api.DeleteAnnotationRequest.toObject(opt_includeInstance, this);
11917
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.toObject = function (opt_includeInstance) {
11918
+ return proto.clarifai.api.DeleteAnnotationTracksRequest.toObject(opt_includeInstance, this);
10793
11919
  };
10794
11920
  /**
10795
11921
  * Static version of the {@see toObject} method.
10796
11922
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10797
11923
  * the JSPB instance for transitional soy proto support:
10798
11924
  * http://goto/soy-param-migration
10799
- * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The msg instance to transform.
11925
+ * @param {!proto.clarifai.api.DeleteAnnotationTracksRequest} msg The msg instance to transform.
10800
11926
  * @return {!Object}
10801
11927
  * @suppress {unusedLocalVariables} f is only used for nested messages
10802
11928
  */
10803
- proto.clarifai.api.DeleteAnnotationRequest.toObject = function (includeInstance, msg) {
11929
+ proto.clarifai.api.DeleteAnnotationTracksRequest.toObject = function (includeInstance, msg) {
10804
11930
  var f, obj = {
10805
11931
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
10806
- inputId: jspb.Message.getFieldWithDefault(msg, 2, ""),
10807
- annotationId: jspb.Message.getFieldWithDefault(msg, 3, "")
11932
+ idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
11933
+ inputId: jspb.Message.getFieldWithDefault(msg, 3, "")
10808
11934
  };
10809
11935
  if (includeInstance) {
10810
11936
  obj.$jspbMessageInstance = msg;
@@ -10815,21 +11941,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
10815
11941
  /**
10816
11942
  * Deserializes binary data (in protobuf wire format).
10817
11943
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
10818
- * @return {!proto.clarifai.api.DeleteAnnotationRequest}
11944
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest}
10819
11945
  */
10820
- proto.clarifai.api.DeleteAnnotationRequest.deserializeBinary = function (bytes) {
11946
+ proto.clarifai.api.DeleteAnnotationTracksRequest.deserializeBinary = function (bytes) {
10821
11947
  var reader = new jspb.BinaryReader(bytes);
10822
- var msg = new proto.clarifai.api.DeleteAnnotationRequest;
10823
- return proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader(msg, reader);
11948
+ var msg = new proto.clarifai.api.DeleteAnnotationTracksRequest;
11949
+ return proto.clarifai.api.DeleteAnnotationTracksRequest.deserializeBinaryFromReader(msg, reader);
10824
11950
  };
10825
11951
  /**
10826
11952
  * Deserializes binary data (in protobuf wire format) from the
10827
11953
  * given reader into the given message object.
10828
- * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The message object to deserialize into.
11954
+ * @param {!proto.clarifai.api.DeleteAnnotationTracksRequest} msg The message object to deserialize into.
10829
11955
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10830
- * @return {!proto.clarifai.api.DeleteAnnotationRequest}
11956
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest}
10831
11957
  */
10832
- proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = function (msg, reader) {
11958
+ proto.clarifai.api.DeleteAnnotationTracksRequest.deserializeBinaryFromReader = function (msg, reader) {
10833
11959
  while (reader.nextField()) {
10834
11960
  if (reader.isEndGroup()) {
10835
11961
  break;
@@ -10843,11 +11969,11 @@ proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = functio
10843
11969
  break;
10844
11970
  case 2:
10845
11971
  var value = /** @type {string} */ (reader.readString());
10846
- msg.setInputId(value);
11972
+ msg.addIds(value);
10847
11973
  break;
10848
11974
  case 3:
10849
11975
  var value = /** @type {string} */ (reader.readString());
10850
- msg.setAnnotationId(value);
11976
+ msg.setInputId(value);
10851
11977
  break;
10852
11978
  default:
10853
11979
  reader.skipField();
@@ -10860,29 +11986,29 @@ proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = functio
10860
11986
  * Serializes the message to binary data (in protobuf wire format).
10861
11987
  * @return {!Uint8Array}
10862
11988
  */
10863
- proto.clarifai.api.DeleteAnnotationRequest.prototype.serializeBinary = function () {
11989
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.serializeBinary = function () {
10864
11990
  var writer = new jspb.BinaryWriter();
10865
- proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter(this, writer);
11991
+ proto.clarifai.api.DeleteAnnotationTracksRequest.serializeBinaryToWriter(this, writer);
10866
11992
  return writer.getResultBuffer();
10867
11993
  };
10868
11994
  /**
10869
11995
  * Serializes the given message to binary data (in protobuf wire
10870
11996
  * format), writing to the given BinaryWriter.
10871
- * @param {!proto.clarifai.api.DeleteAnnotationRequest} message
11997
+ * @param {!proto.clarifai.api.DeleteAnnotationTracksRequest} message
10872
11998
  * @param {!jspb.BinaryWriter} writer
10873
11999
  * @suppress {unusedLocalVariables} f is only used for nested messages
10874
12000
  */
10875
- proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function (message, writer) {
12001
+ proto.clarifai.api.DeleteAnnotationTracksRequest.serializeBinaryToWriter = function (message, writer) {
10876
12002
  var f = undefined;
10877
12003
  f = message.getUserAppId();
10878
12004
  if (f != null) {
10879
12005
  writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
10880
12006
  }
10881
- f = message.getInputId();
12007
+ f = message.getIdsList();
10882
12008
  if (f.length > 0) {
10883
- writer.writeString(2, f);
12009
+ writer.writeRepeatedString(2, f);
10884
12010
  }
10885
- f = message.getAnnotationId();
12011
+ f = message.getInputId();
10886
12012
  if (f.length > 0) {
10887
12013
  writer.writeString(3, f);
10888
12014
  }
@@ -10891,56 +12017,71 @@ proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function (m
10891
12017
  * optional UserAppIDSet user_app_id = 1;
10892
12018
  * @return {?proto.clarifai.api.UserAppIDSet}
10893
12019
  */
10894
- proto.clarifai.api.DeleteAnnotationRequest.prototype.getUserAppId = function () {
12020
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.getUserAppId = function () {
10895
12021
  return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
10896
12022
  };
10897
12023
  /**
10898
12024
  * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
10899
- * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
12025
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
10900
12026
  */
10901
- proto.clarifai.api.DeleteAnnotationRequest.prototype.setUserAppId = function (value) {
12027
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.setUserAppId = function (value) {
10902
12028
  return jspb.Message.setWrapperField(this, 1, value);
10903
12029
  };
10904
12030
  /**
10905
12031
  * Clears the message field making it undefined.
10906
- * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
12032
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
10907
12033
  */
10908
- proto.clarifai.api.DeleteAnnotationRequest.prototype.clearUserAppId = function () {
12034
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.clearUserAppId = function () {
10909
12035
  return this.setUserAppId(undefined);
10910
12036
  };
10911
12037
  /**
10912
12038
  * Returns whether this field is set.
10913
12039
  * @return {boolean}
10914
12040
  */
10915
- proto.clarifai.api.DeleteAnnotationRequest.prototype.hasUserAppId = function () {
12041
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.hasUserAppId = function () {
10916
12042
  return jspb.Message.getField(this, 1) != null;
10917
12043
  };
10918
12044
  /**
10919
- * optional string input_id = 2;
10920
- * @return {string}
12045
+ * repeated string ids = 2;
12046
+ * @return {!Array<string>}
10921
12047
  */
10922
- proto.clarifai.api.DeleteAnnotationRequest.prototype.getInputId = function () {
10923
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12048
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.getIdsList = function () {
12049
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
12050
+ };
12051
+ /**
12052
+ * @param {!Array<string>} value
12053
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
12054
+ */
12055
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.setIdsList = function (value) {
12056
+ return jspb.Message.setField(this, 2, value || []);
10924
12057
  };
10925
12058
  /**
10926
12059
  * @param {string} value
10927
- * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
12060
+ * @param {number=} opt_index
12061
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
10928
12062
  */
10929
- proto.clarifai.api.DeleteAnnotationRequest.prototype.setInputId = function (value) {
10930
- return jspb.Message.setProto3StringField(this, 2, value);
12063
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.addIds = function (value, opt_index) {
12064
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
10931
12065
  };
10932
12066
  /**
10933
- * optional string annotation_id = 3;
12067
+ * Clears the list making it empty but non-null.
12068
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
12069
+ */
12070
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.clearIdsList = function () {
12071
+ return this.setIdsList([]);
12072
+ };
12073
+ /**
12074
+ * optional string input_id = 3;
10934
12075
  * @return {string}
10935
12076
  */
10936
- proto.clarifai.api.DeleteAnnotationRequest.prototype.getAnnotationId = function () {
12077
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.getInputId = function () {
10937
12078
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10938
12079
  };
10939
12080
  /**
10940
12081
  * @param {string} value
10941
- * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this
12082
+ * @return {!proto.clarifai.api.DeleteAnnotationTracksRequest} returns this
10942
12083
  */
10943
- proto.clarifai.api.DeleteAnnotationRequest.prototype.setAnnotationId = function (value) {
12084
+ proto.clarifai.api.DeleteAnnotationTracksRequest.prototype.setInputId = function (value) {
10944
12085
  return jspb.Message.setProto3StringField(this, 3, value);
10945
12086
  };
10946
12087
  /**
@@ -10948,7 +12089,7 @@ proto.clarifai.api.DeleteAnnotationRequest.prototype.setAnnotationId = function
10948
12089
  * @private {!Array<number>}
10949
12090
  * @const
10950
12091
  */
10951
- proto.clarifai.api.DeleteAnnotationsRequest.repeatedFields_ = [2, 3];
12092
+ proto.clarifai.api.MultiAnnotationTrackResponse.repeatedFields_ = [2];
10952
12093
  if (jspb.Message.GENERATE_TO_OBJECT) {
10953
12094
  /**
10954
12095
  * Creates an object representation of this proto.
@@ -10962,23 +12103,22 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
10962
12103
  * http://goto/soy-param-migration
10963
12104
  * @return {!Object}
10964
12105
  */
10965
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.toObject = function (opt_includeInstance) {
10966
- return proto.clarifai.api.DeleteAnnotationsRequest.toObject(opt_includeInstance, this);
12106
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.toObject = function (opt_includeInstance) {
12107
+ return proto.clarifai.api.MultiAnnotationTrackResponse.toObject(opt_includeInstance, this);
10967
12108
  };
10968
12109
  /**
10969
12110
  * Static version of the {@see toObject} method.
10970
12111
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10971
12112
  * the JSPB instance for transitional soy proto support:
10972
12113
  * http://goto/soy-param-migration
10973
- * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The msg instance to transform.
12114
+ * @param {!proto.clarifai.api.MultiAnnotationTrackResponse} msg The msg instance to transform.
10974
12115
  * @return {!Object}
10975
12116
  * @suppress {unusedLocalVariables} f is only used for nested messages
10976
12117
  */
10977
- proto.clarifai.api.DeleteAnnotationsRequest.toObject = function (includeInstance, msg) {
12118
+ proto.clarifai.api.MultiAnnotationTrackResponse.toObject = function (includeInstance, msg) {
10978
12119
  var f, obj = {
10979
- userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
10980
- idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
10981
- inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
12120
+ status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
12121
+ annotationTracksList: jspb.Message.toObjectList(msg.getAnnotationTracksList(), proto_clarifai_api_resources_pb.AnnotationTrack.toObject, includeInstance)
10982
12122
  };
10983
12123
  if (includeInstance) {
10984
12124
  obj.$jspbMessageInstance = msg;
@@ -10989,21 +12129,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
10989
12129
  /**
10990
12130
  * Deserializes binary data (in protobuf wire format).
10991
12131
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
10992
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest}
12132
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse}
10993
12133
  */
10994
- proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinary = function (bytes) {
12134
+ proto.clarifai.api.MultiAnnotationTrackResponse.deserializeBinary = function (bytes) {
10995
12135
  var reader = new jspb.BinaryReader(bytes);
10996
- var msg = new proto.clarifai.api.DeleteAnnotationsRequest;
10997
- return proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader(msg, reader);
12136
+ var msg = new proto.clarifai.api.MultiAnnotationTrackResponse;
12137
+ return proto.clarifai.api.MultiAnnotationTrackResponse.deserializeBinaryFromReader(msg, reader);
10998
12138
  };
10999
12139
  /**
11000
12140
  * Deserializes binary data (in protobuf wire format) from the
11001
12141
  * given reader into the given message object.
11002
- * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The message object to deserialize into.
12142
+ * @param {!proto.clarifai.api.MultiAnnotationTrackResponse} msg The message object to deserialize into.
11003
12143
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11004
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest}
12144
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse}
11005
12145
  */
11006
- proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = function (msg, reader) {
12146
+ proto.clarifai.api.MultiAnnotationTrackResponse.deserializeBinaryFromReader = function (msg, reader) {
11007
12147
  while (reader.nextField()) {
11008
12148
  if (reader.isEndGroup()) {
11009
12149
  break;
@@ -11011,17 +12151,14 @@ proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = functi
11011
12151
  var field = reader.getFieldNumber();
11012
12152
  switch (field) {
11013
12153
  case 1:
11014
- var value = new proto_clarifai_api_resources_pb.UserAppIDSet;
11015
- reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
11016
- msg.setUserAppId(value);
12154
+ var value = new proto_clarifai_api_status_status_pb.Status;
12155
+ reader.readMessage(value, proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader);
12156
+ msg.setStatus(value);
11017
12157
  break;
11018
12158
  case 2:
11019
- var value = /** @type {string} */ (reader.readString());
11020
- msg.addIds(value);
11021
- break;
11022
- case 3:
11023
- var value = /** @type {string} */ (reader.readString());
11024
- msg.addInputIds(value);
12159
+ var value = new proto_clarifai_api_resources_pb.AnnotationTrack;
12160
+ reader.readMessage(value, proto_clarifai_api_resources_pb.AnnotationTrack.deserializeBinaryFromReader);
12161
+ msg.addAnnotationTracks(value);
11025
12162
  break;
11026
12163
  default:
11027
12164
  reader.skipField();
@@ -11034,118 +12171,85 @@ proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = functi
11034
12171
  * Serializes the message to binary data (in protobuf wire format).
11035
12172
  * @return {!Uint8Array}
11036
12173
  */
11037
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.serializeBinary = function () {
12174
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.serializeBinary = function () {
11038
12175
  var writer = new jspb.BinaryWriter();
11039
- proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter(this, writer);
12176
+ proto.clarifai.api.MultiAnnotationTrackResponse.serializeBinaryToWriter(this, writer);
11040
12177
  return writer.getResultBuffer();
11041
12178
  };
11042
12179
  /**
11043
12180
  * Serializes the given message to binary data (in protobuf wire
11044
12181
  * format), writing to the given BinaryWriter.
11045
- * @param {!proto.clarifai.api.DeleteAnnotationsRequest} message
12182
+ * @param {!proto.clarifai.api.MultiAnnotationTrackResponse} message
11046
12183
  * @param {!jspb.BinaryWriter} writer
11047
12184
  * @suppress {unusedLocalVariables} f is only used for nested messages
11048
12185
  */
11049
- proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter = function (message, writer) {
12186
+ proto.clarifai.api.MultiAnnotationTrackResponse.serializeBinaryToWriter = function (message, writer) {
11050
12187
  var f = undefined;
11051
- f = message.getUserAppId();
12188
+ f = message.getStatus();
11052
12189
  if (f != null) {
11053
- writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
11054
- }
11055
- f = message.getIdsList();
11056
- if (f.length > 0) {
11057
- writer.writeRepeatedString(2, f);
12190
+ writer.writeMessage(1, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter);
11058
12191
  }
11059
- f = message.getInputIdsList();
12192
+ f = message.getAnnotationTracksList();
11060
12193
  if (f.length > 0) {
11061
- writer.writeRepeatedString(3, f);
12194
+ writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.AnnotationTrack.serializeBinaryToWriter);
11062
12195
  }
11063
12196
  };
11064
12197
  /**
11065
- * optional UserAppIDSet user_app_id = 1;
11066
- * @return {?proto.clarifai.api.UserAppIDSet}
12198
+ * optional status.Status status = 1;
12199
+ * @return {?proto.clarifai.api.status.Status}
11067
12200
  */
11068
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.getUserAppId = function () {
11069
- return /** @type{?proto.clarifai.api.UserAppIDSet} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1));
12201
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.getStatus = function () {
12202
+ return /** @type{?proto.clarifai.api.status.Status} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1));
11070
12203
  };
11071
12204
  /**
11072
- * @param {?proto.clarifai.api.UserAppIDSet|undefined} value
11073
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
12205
+ * @param {?proto.clarifai.api.status.Status|undefined} value
12206
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
11074
12207
  */
11075
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.setUserAppId = function (value) {
12208
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.setStatus = function (value) {
11076
12209
  return jspb.Message.setWrapperField(this, 1, value);
11077
12210
  };
11078
12211
  /**
11079
12212
  * Clears the message field making it undefined.
11080
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
12213
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
11081
12214
  */
11082
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearUserAppId = function () {
11083
- return this.setUserAppId(undefined);
12215
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.clearStatus = function () {
12216
+ return this.setStatus(undefined);
11084
12217
  };
11085
12218
  /**
11086
12219
  * Returns whether this field is set.
11087
12220
  * @return {boolean}
11088
12221
  */
11089
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.hasUserAppId = function () {
12222
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.hasStatus = function () {
11090
12223
  return jspb.Message.getField(this, 1) != null;
11091
12224
  };
11092
12225
  /**
11093
- * repeated string ids = 2;
11094
- * @return {!Array<string>}
11095
- */
11096
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.getIdsList = function () {
11097
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
11098
- };
11099
- /**
11100
- * @param {!Array<string>} value
11101
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11102
- */
11103
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.setIdsList = function (value) {
11104
- return jspb.Message.setField(this, 2, value || []);
11105
- };
11106
- /**
11107
- * @param {string} value
11108
- * @param {number=} opt_index
11109
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11110
- */
11111
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.addIds = function (value, opt_index) {
11112
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
11113
- };
11114
- /**
11115
- * Clears the list making it empty but non-null.
11116
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11117
- */
11118
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearIdsList = function () {
11119
- return this.setIdsList([]);
11120
- };
11121
- /**
11122
- * repeated string input_ids = 3;
11123
- * @return {!Array<string>}
12226
+ * repeated AnnotationTrack annotation_tracks = 2;
12227
+ * @return {!Array<!proto.clarifai.api.AnnotationTrack>}
11124
12228
  */
11125
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.getInputIdsList = function () {
11126
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
12229
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.getAnnotationTracksList = function () {
12230
+ return /** @type{!Array<!proto.clarifai.api.AnnotationTrack>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationTrack, 2));
11127
12231
  };
11128
12232
  /**
11129
- * @param {!Array<string>} value
11130
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
11131
- */
11132
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.setInputIdsList = function (value) {
11133
- return jspb.Message.setField(this, 3, value || []);
12233
+ * @param {!Array<!proto.clarifai.api.AnnotationTrack>} value
12234
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
12235
+ */
12236
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.setAnnotationTracksList = function (value) {
12237
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
11134
12238
  };
11135
12239
  /**
11136
- * @param {string} value
12240
+ * @param {!proto.clarifai.api.AnnotationTrack=} opt_value
11137
12241
  * @param {number=} opt_index
11138
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
12242
+ * @return {!proto.clarifai.api.AnnotationTrack}
11139
12243
  */
11140
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.addInputIds = function (value, opt_index) {
11141
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
12244
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.addAnnotationTracks = function (opt_value, opt_index) {
12245
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationTrack, opt_index);
11142
12246
  };
11143
12247
  /**
11144
12248
  * Clears the list making it empty but non-null.
11145
- * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this
12249
+ * @return {!proto.clarifai.api.MultiAnnotationTrackResponse} returns this
11146
12250
  */
11147
- proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearInputIdsList = function () {
11148
- return this.setInputIdsList([]);
12251
+ proto.clarifai.api.MultiAnnotationTrackResponse.prototype.clearAnnotationTracksList = function () {
12252
+ return this.setAnnotationTracksList([]);
11149
12253
  };
11150
12254
  if (jspb.Message.GENERATE_TO_OBJECT) {
11151
12255
  /**
@@ -12114,6 +13218,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
12114
13218
  featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
12115
13219
  starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
12116
13220
  templateOnly: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
13221
+ visibility: (f = msg.getVisibility()) && proto_clarifai_api_resources_pb.Visibility.toObject(includeInstance, f),
12117
13222
  search: jspb.Message.getFieldWithDefault(msg, 15, ""),
12118
13223
  query: jspb.Message.getFieldWithDefault(msg, 8, ""),
12119
13224
  name: jspb.Message.getFieldWithDefault(msg, 4, ""),
@@ -12202,6 +13307,11 @@ proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader = function (msg,
12202
13307
  var value = /** @type {boolean} */ (reader.readBool());
12203
13308
  msg.setTemplateOnly(value);
12204
13309
  break;
13310
+ case 18:
13311
+ var value = new proto_clarifai_api_resources_pb.Visibility;
13312
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Visibility.deserializeBinaryFromReader);
13313
+ msg.setVisibility(value);
13314
+ break;
12205
13315
  case 15:
12206
13316
  var value = /** @type {string} */ (reader.readString());
12207
13317
  msg.setSearch(value);
@@ -12295,6 +13405,10 @@ proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter = function (message,
12295
13405
  if (f) {
12296
13406
  writer.writeBool(16, f);
12297
13407
  }
13408
+ f = message.getVisibility();
13409
+ if (f != null) {
13410
+ writer.writeMessage(18, f, proto_clarifai_api_resources_pb.Visibility.serializeBinaryToWriter);
13411
+ }
12298
13412
  f = message.getSearch();
12299
13413
  if (f.length > 0) {
12300
13414
  writer.writeString(15, f);
@@ -12593,6 +13707,34 @@ proto.clarifai.api.ListAppsRequest.prototype.getTemplateOnly = function () {
12593
13707
  proto.clarifai.api.ListAppsRequest.prototype.setTemplateOnly = function (value) {
12594
13708
  return jspb.Message.setProto3BooleanField(this, 16, value);
12595
13709
  };
13710
+ /**
13711
+ * optional Visibility visibility = 18;
13712
+ * @return {?proto.clarifai.api.Visibility}
13713
+ */
13714
+ proto.clarifai.api.ListAppsRequest.prototype.getVisibility = function () {
13715
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Visibility, 18));
13716
+ };
13717
+ /**
13718
+ * @param {?proto.clarifai.api.Visibility|undefined} value
13719
+ * @return {!proto.clarifai.api.ListAppsRequest} returns this
13720
+ */
13721
+ proto.clarifai.api.ListAppsRequest.prototype.setVisibility = function (value) {
13722
+ return jspb.Message.setWrapperField(this, 18, value);
13723
+ };
13724
+ /**
13725
+ * Clears the message field making it undefined.
13726
+ * @return {!proto.clarifai.api.ListAppsRequest} returns this
13727
+ */
13728
+ proto.clarifai.api.ListAppsRequest.prototype.clearVisibility = function () {
13729
+ return this.setVisibility(undefined);
13730
+ };
13731
+ /**
13732
+ * Returns whether this field is set.
13733
+ * @return {boolean}
13734
+ */
13735
+ proto.clarifai.api.ListAppsRequest.prototype.hasVisibility = function () {
13736
+ return jspb.Message.getField(this, 18) != null;
13737
+ };
12596
13738
  /**
12597
13739
  * optional string search = 15;
12598
13740
  * @return {string}
@@ -28755,6 +29897,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
28755
29897
  modelId: jspb.Message.getFieldWithDefault(msg, 5, ""),
28756
29898
  modelVersionId: jspb.Message.getFieldWithDefault(msg, 6, ""),
28757
29899
  workflowId: jspb.Message.getFieldWithDefault(msg, 7, ""),
29900
+ computeClusterUserId: jspb.Message.getFieldWithDefault(msg, 17, ""),
28758
29901
  computeClusterId: jspb.Message.getFieldWithDefault(msg, 9, ""),
28759
29902
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 10, ""),
28760
29903
  runnerId: jspb.Message.getFieldWithDefault(msg, 11, ""),
@@ -28823,6 +29966,10 @@ proto.clarifai.api.ListLogEntriesRequest.deserializeBinaryFromReader = function
28823
29966
  var value = /** @type {string} */ (reader.readString());
28824
29967
  msg.setWorkflowId(value);
28825
29968
  break;
29969
+ case 17:
29970
+ var value = /** @type {string} */ (reader.readString());
29971
+ msg.setComputeClusterUserId(value);
29972
+ break;
28826
29973
  case 9:
28827
29974
  var value = /** @type {string} */ (reader.readString());
28828
29975
  msg.setComputeClusterId(value);
@@ -28908,6 +30055,10 @@ proto.clarifai.api.ListLogEntriesRequest.serializeBinaryToWriter = function (mes
28908
30055
  if (f.length > 0) {
28909
30056
  writer.writeString(7, f);
28910
30057
  }
30058
+ f = message.getComputeClusterUserId();
30059
+ if (f.length > 0) {
30060
+ writer.writeString(17, f);
30061
+ }
28911
30062
  f = message.getComputeClusterId();
28912
30063
  if (f.length > 0) {
28913
30064
  writer.writeString(9, f);
@@ -29053,6 +30204,20 @@ proto.clarifai.api.ListLogEntriesRequest.prototype.getWorkflowId = function () {
29053
30204
  proto.clarifai.api.ListLogEntriesRequest.prototype.setWorkflowId = function (value) {
29054
30205
  return jspb.Message.setProto3StringField(this, 7, value);
29055
30206
  };
30207
+ /**
30208
+ * optional string compute_cluster_user_id = 17;
30209
+ * @return {string}
30210
+ */
30211
+ proto.clarifai.api.ListLogEntriesRequest.prototype.getComputeClusterUserId = function () {
30212
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
30213
+ };
30214
+ /**
30215
+ * @param {string} value
30216
+ * @return {!proto.clarifai.api.ListLogEntriesRequest} returns this
30217
+ */
30218
+ proto.clarifai.api.ListLogEntriesRequest.prototype.setComputeClusterUserId = function (value) {
30219
+ return jspb.Message.setProto3StringField(this, 17, value);
30220
+ };
29056
30221
  /**
29057
30222
  * optional string compute_cluster_id = 9;
29058
30223
  * @return {string}
@@ -29197,6 +30362,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
29197
30362
  modelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
29198
30363
  modelVersionId: jspb.Message.getFieldWithDefault(msg, 4, ""),
29199
30364
  workflowId: jspb.Message.getFieldWithDefault(msg, 5, ""),
30365
+ computeClusterUserId: jspb.Message.getFieldWithDefault(msg, 17, ""),
29200
30366
  computeClusterId: jspb.Message.getFieldWithDefault(msg, 6, ""),
29201
30367
  nodepoolId: jspb.Message.getFieldWithDefault(msg, 7, ""),
29202
30368
  runnerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
@@ -29257,6 +30423,10 @@ proto.clarifai.api.StreamLogEntriesRequest.deserializeBinaryFromReader = functio
29257
30423
  var value = /** @type {string} */ (reader.readString());
29258
30424
  msg.setWorkflowId(value);
29259
30425
  break;
30426
+ case 17:
30427
+ var value = /** @type {string} */ (reader.readString());
30428
+ msg.setComputeClusterUserId(value);
30429
+ break;
29260
30430
  case 6:
29261
30431
  var value = /** @type {string} */ (reader.readString());
29262
30432
  msg.setComputeClusterId(value);
@@ -29334,6 +30504,10 @@ proto.clarifai.api.StreamLogEntriesRequest.serializeBinaryToWriter = function (m
29334
30504
  if (f.length > 0) {
29335
30505
  writer.writeString(5, f);
29336
30506
  }
30507
+ f = message.getComputeClusterUserId();
30508
+ if (f.length > 0) {
30509
+ writer.writeString(17, f);
30510
+ }
29337
30511
  f = message.getComputeClusterId();
29338
30512
  if (f.length > 0) {
29339
30513
  writer.writeString(6, f);
@@ -29451,6 +30625,20 @@ proto.clarifai.api.StreamLogEntriesRequest.prototype.getWorkflowId = function ()
29451
30625
  proto.clarifai.api.StreamLogEntriesRequest.prototype.setWorkflowId = function (value) {
29452
30626
  return jspb.Message.setProto3StringField(this, 5, value);
29453
30627
  };
30628
+ /**
30629
+ * optional string compute_cluster_user_id = 17;
30630
+ * @return {string}
30631
+ */
30632
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.getComputeClusterUserId = function () {
30633
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
30634
+ };
30635
+ /**
30636
+ * @param {string} value
30637
+ * @return {!proto.clarifai.api.StreamLogEntriesRequest} returns this
30638
+ */
30639
+ proto.clarifai.api.StreamLogEntriesRequest.prototype.setComputeClusterUserId = function (value) {
30640
+ return jspb.Message.setProto3StringField(this, 17, value);
30641
+ };
29454
30642
  /**
29455
30643
  * optional string compute_cluster_id = 6;
29456
30644
  * @return {string}
@@ -31349,7 +32537,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
31349
32537
  source: jspb.Message.getFieldWithDefault(msg, 30, 0),
31350
32538
  creator: jspb.Message.getFieldWithDefault(msg, 31, ""),
31351
32539
  minReplicas: jspb.Message.getFieldWithDefault(msg, 33, 0),
31352
- showReplicas: jspb.Message.getBooleanFieldWithDefault(msg, 34, false)
32540
+ showReplicas: jspb.Message.getBooleanFieldWithDefault(msg, 34, false),
32541
+ visibility: (f = msg.getVisibility()) && proto_clarifai_api_resources_pb.Visibility.toObject(includeInstance, f)
31353
32542
  };
31354
32543
  if (includeInstance) {
31355
32544
  obj.$jspbMessageInstance = msg;
@@ -31510,6 +32699,11 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function (msg
31510
32699
  var value = /** @type {boolean} */ (reader.readBool());
31511
32700
  msg.setShowReplicas(value);
31512
32701
  break;
32702
+ case 35:
32703
+ var value = new proto_clarifai_api_resources_pb.Visibility;
32704
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Visibility.deserializeBinaryFromReader);
32705
+ msg.setVisibility(value);
32706
+ break;
31513
32707
  default:
31514
32708
  reader.skipField();
31515
32709
  break;
@@ -31663,6 +32857,10 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function (message
31663
32857
  if (f) {
31664
32858
  writer.writeBool(34, f);
31665
32859
  }
32860
+ f = message.getVisibility();
32861
+ if (f != null) {
32862
+ writer.writeMessage(35, f, proto_clarifai_api_resources_pb.Visibility.serializeBinaryToWriter);
32863
+ }
31666
32864
  };
31667
32865
  /**
31668
32866
  * optional UserAppIDSet user_app_id = 1;
@@ -32301,6 +33499,34 @@ proto.clarifai.api.ListModelsRequest.prototype.getShowReplicas = function () {
32301
33499
  proto.clarifai.api.ListModelsRequest.prototype.setShowReplicas = function (value) {
32302
33500
  return jspb.Message.setProto3BooleanField(this, 34, value);
32303
33501
  };
33502
+ /**
33503
+ * optional Visibility visibility = 35;
33504
+ * @return {?proto.clarifai.api.Visibility}
33505
+ */
33506
+ proto.clarifai.api.ListModelsRequest.prototype.getVisibility = function () {
33507
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Visibility, 35));
33508
+ };
33509
+ /**
33510
+ * @param {?proto.clarifai.api.Visibility|undefined} value
33511
+ * @return {!proto.clarifai.api.ListModelsRequest} returns this
33512
+ */
33513
+ proto.clarifai.api.ListModelsRequest.prototype.setVisibility = function (value) {
33514
+ return jspb.Message.setWrapperField(this, 35, value);
33515
+ };
33516
+ /**
33517
+ * Clears the message field making it undefined.
33518
+ * @return {!proto.clarifai.api.ListModelsRequest} returns this
33519
+ */
33520
+ proto.clarifai.api.ListModelsRequest.prototype.clearVisibility = function () {
33521
+ return this.setVisibility(undefined);
33522
+ };
33523
+ /**
33524
+ * Returns whether this field is set.
33525
+ * @return {boolean}
33526
+ */
33527
+ proto.clarifai.api.ListModelsRequest.prototype.hasVisibility = function () {
33528
+ return jspb.Message.getField(this, 35) != null;
33529
+ };
32304
33530
  if (jspb.Message.GENERATE_TO_OBJECT) {
32305
33531
  /**
32306
33532
  * Creates an object representation of this proto.
@@ -51377,6 +52603,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
51377
52603
  featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
51378
52604
  starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
51379
52605
  bookmark: jspb.Message.getBooleanFieldWithDefault(msg, 15, false),
52606
+ visibility: (f = msg.getVisibility()) && proto_clarifai_api_resources_pb.Visibility.toObject(includeInstance, f),
51380
52607
  search: jspb.Message.getFieldWithDefault(msg, 16, ""),
51381
52608
  query: jspb.Message.getFieldWithDefault(msg, 8, ""),
51382
52609
  id: jspb.Message.getFieldWithDefault(msg, 4, ""),
@@ -51461,6 +52688,11 @@ proto.clarifai.api.ListWorkflowsRequest.deserializeBinaryFromReader = function (
51461
52688
  var value = /** @type {boolean} */ (reader.readBool());
51462
52689
  msg.setBookmark(value);
51463
52690
  break;
52691
+ case 17:
52692
+ var value = new proto_clarifai_api_resources_pb.Visibility;
52693
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Visibility.deserializeBinaryFromReader);
52694
+ msg.setVisibility(value);
52695
+ break;
51464
52696
  case 16:
51465
52697
  var value = /** @type {string} */ (reader.readString());
51466
52698
  msg.setSearch(value);
@@ -51550,6 +52782,10 @@ proto.clarifai.api.ListWorkflowsRequest.serializeBinaryToWriter = function (mess
51550
52782
  if (f) {
51551
52783
  writer.writeBool(15, f);
51552
52784
  }
52785
+ f = message.getVisibility();
52786
+ if (f != null) {
52787
+ writer.writeMessage(17, f, proto_clarifai_api_resources_pb.Visibility.serializeBinaryToWriter);
52788
+ }
51553
52789
  f = message.getSearch();
51554
52790
  if (f.length > 0) {
51555
52791
  writer.writeString(16, f);
@@ -51820,6 +53056,34 @@ proto.clarifai.api.ListWorkflowsRequest.prototype.getBookmark = function () {
51820
53056
  proto.clarifai.api.ListWorkflowsRequest.prototype.setBookmark = function (value) {
51821
53057
  return jspb.Message.setProto3BooleanField(this, 15, value);
51822
53058
  };
53059
+ /**
53060
+ * optional Visibility visibility = 17;
53061
+ * @return {?proto.clarifai.api.Visibility}
53062
+ */
53063
+ proto.clarifai.api.ListWorkflowsRequest.prototype.getVisibility = function () {
53064
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Visibility, 17));
53065
+ };
53066
+ /**
53067
+ * @param {?proto.clarifai.api.Visibility|undefined} value
53068
+ * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this
53069
+ */
53070
+ proto.clarifai.api.ListWorkflowsRequest.prototype.setVisibility = function (value) {
53071
+ return jspb.Message.setWrapperField(this, 17, value);
53072
+ };
53073
+ /**
53074
+ * Clears the message field making it undefined.
53075
+ * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this
53076
+ */
53077
+ proto.clarifai.api.ListWorkflowsRequest.prototype.clearVisibility = function () {
53078
+ return this.setVisibility(undefined);
53079
+ };
53080
+ /**
53081
+ * Returns whether this field is set.
53082
+ * @return {boolean}
53083
+ */
53084
+ proto.clarifai.api.ListWorkflowsRequest.prototype.hasVisibility = function () {
53085
+ return jspb.Message.getField(this, 17) != null;
53086
+ };
51823
53087
  /**
51824
53088
  * optional string search = 16;
51825
53089
  * @return {string}
@@ -60804,7 +62068,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
60804
62068
  bookmark: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
60805
62069
  search: jspb.Message.getFieldWithDefault(msg, 14, ""),
60806
62070
  name: jspb.Message.getFieldWithDefault(msg, 12, ""),
60807
- filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 13, false)
62071
+ filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
62072
+ visibility: (f = msg.getVisibility()) && proto_clarifai_api_resources_pb.Visibility.toObject(includeInstance, f)
60808
62073
  };
60809
62074
  if (includeInstance) {
60810
62075
  obj.$jspbMessageInstance = msg;
@@ -60893,6 +62158,11 @@ proto.clarifai.api.ListModulesRequest.deserializeBinaryFromReader = function (ms
60893
62158
  var value = /** @type {boolean} */ (reader.readBool());
60894
62159
  msg.setFilterByUserId(value);
60895
62160
  break;
62161
+ case 15:
62162
+ var value = new proto_clarifai_api_resources_pb.Visibility;
62163
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Visibility.deserializeBinaryFromReader);
62164
+ msg.setVisibility(value);
62165
+ break;
60896
62166
  default:
60897
62167
  reader.skipField();
60898
62168
  break;
@@ -60974,6 +62244,10 @@ proto.clarifai.api.ListModulesRequest.serializeBinaryToWriter = function (messag
60974
62244
  if (f) {
60975
62245
  writer.writeBool(13, f);
60976
62246
  }
62247
+ f = message.getVisibility();
62248
+ if (f != null) {
62249
+ writer.writeMessage(15, f, proto_clarifai_api_resources_pb.Visibility.serializeBinaryToWriter);
62250
+ }
60977
62251
  };
60978
62252
  /**
60979
62253
  * optional UserAppIDSet user_app_id = 1;
@@ -61256,6 +62530,34 @@ proto.clarifai.api.ListModulesRequest.prototype.getFilterByUserId = function ()
61256
62530
  proto.clarifai.api.ListModulesRequest.prototype.setFilterByUserId = function (value) {
61257
62531
  return jspb.Message.setProto3BooleanField(this, 13, value);
61258
62532
  };
62533
+ /**
62534
+ * optional Visibility visibility = 15;
62535
+ * @return {?proto.clarifai.api.Visibility}
62536
+ */
62537
+ proto.clarifai.api.ListModulesRequest.prototype.getVisibility = function () {
62538
+ return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Visibility, 15));
62539
+ };
62540
+ /**
62541
+ * @param {?proto.clarifai.api.Visibility|undefined} value
62542
+ * @return {!proto.clarifai.api.ListModulesRequest} returns this
62543
+ */
62544
+ proto.clarifai.api.ListModulesRequest.prototype.setVisibility = function (value) {
62545
+ return jspb.Message.setWrapperField(this, 15, value);
62546
+ };
62547
+ /**
62548
+ * Clears the message field making it undefined.
62549
+ * @return {!proto.clarifai.api.ListModulesRequest} returns this
62550
+ */
62551
+ proto.clarifai.api.ListModulesRequest.prototype.clearVisibility = function () {
62552
+ return this.setVisibility(undefined);
62553
+ };
62554
+ /**
62555
+ * Returns whether this field is set.
62556
+ * @return {boolean}
62557
+ */
62558
+ proto.clarifai.api.ListModulesRequest.prototype.hasVisibility = function () {
62559
+ return jspb.Message.getField(this, 15) != null;
62560
+ };
61259
62561
  /**
61260
62562
  * List of repeated fields within this message type.
61261
62563
  * @private {!Array<number>}
@@ -72591,7 +73893,7 @@ proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRegion = function (
72591
73893
  * @private {!Array<number>}
72592
73894
  * @const
72593
73895
  */
72594
- proto.clarifai.api.SyncStateRequest.repeatedFields_ = [2, 3, 4, 5];
73896
+ proto.clarifai.api.SyncStateRequest.repeatedFields_ = [2, 3, 4, 5, 6];
72595
73897
  if (jspb.Message.GENERATE_TO_OBJECT) {
72596
73898
  /**
72597
73899
  * Creates an object representation of this proto.
@@ -72623,7 +73925,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
72623
73925
  computeClustersList: jspb.Message.toObjectList(msg.getComputeClustersList(), proto_clarifai_api_resources_pb.ComputeCluster.toObject, includeInstance),
72624
73926
  nodepoolsList: jspb.Message.toObjectList(msg.getNodepoolsList(), proto_clarifai_api_resources_pb.Nodepool.toObject, includeInstance),
72625
73927
  runnersList: jspb.Message.toObjectList(msg.getRunnersList(), proto_clarifai_api_resources_pb.Runner.toObject, includeInstance),
72626
- pipelineVersionRunsList: jspb.Message.toObjectList(msg.getPipelineVersionRunsList(), proto_clarifai_api_resources_pb.PipelineVersionRun.toObject, includeInstance)
73928
+ pipelineVersionRunsList: jspb.Message.toObjectList(msg.getPipelineVersionRunsList(), proto_clarifai_api_resources_pb.PipelineVersionRun.toObject, includeInstance),
73929
+ secretsList: jspb.Message.toObjectList(msg.getSecretsList(), proto_clarifai_api_resources_pb.Secret.toObject, includeInstance)
72627
73930
  };
72628
73931
  if (includeInstance) {
72629
73932
  obj.$jspbMessageInstance = msg;
@@ -72679,6 +73982,11 @@ proto.clarifai.api.SyncStateRequest.deserializeBinaryFromReader = function (msg,
72679
73982
  reader.readMessage(value, proto_clarifai_api_resources_pb.PipelineVersionRun.deserializeBinaryFromReader);
72680
73983
  msg.addPipelineVersionRuns(value);
72681
73984
  break;
73985
+ case 6:
73986
+ var value = new proto_clarifai_api_resources_pb.Secret;
73987
+ reader.readMessage(value, proto_clarifai_api_resources_pb.Secret.deserializeBinaryFromReader);
73988
+ msg.addSecrets(value);
73989
+ break;
72682
73990
  default:
72683
73991
  reader.skipField();
72684
73992
  break;
@@ -72724,6 +74032,10 @@ proto.clarifai.api.SyncStateRequest.serializeBinaryToWriter = function (message,
72724
74032
  if (f.length > 0) {
72725
74033
  writer.writeRepeatedMessage(5, f, proto_clarifai_api_resources_pb.PipelineVersionRun.serializeBinaryToWriter);
72726
74034
  }
74035
+ f = message.getSecretsList();
74036
+ if (f.length > 0) {
74037
+ writer.writeRepeatedMessage(6, f, proto_clarifai_api_resources_pb.Secret.serializeBinaryToWriter);
74038
+ }
72727
74039
  };
72728
74040
  /**
72729
74041
  * optional string operation_type = 1;
@@ -72855,6 +74167,35 @@ proto.clarifai.api.SyncStateRequest.prototype.addPipelineVersionRuns = function
72855
74167
  proto.clarifai.api.SyncStateRequest.prototype.clearPipelineVersionRunsList = function () {
72856
74168
  return this.setPipelineVersionRunsList([]);
72857
74169
  };
74170
+ /**
74171
+ * repeated Secret secrets = 6;
74172
+ * @return {!Array<!proto.clarifai.api.Secret>}
74173
+ */
74174
+ proto.clarifai.api.SyncStateRequest.prototype.getSecretsList = function () {
74175
+ return /** @type{!Array<!proto.clarifai.api.Secret>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret, 6));
74176
+ };
74177
+ /**
74178
+ * @param {!Array<!proto.clarifai.api.Secret>} value
74179
+ * @return {!proto.clarifai.api.SyncStateRequest} returns this
74180
+ */
74181
+ proto.clarifai.api.SyncStateRequest.prototype.setSecretsList = function (value) {
74182
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
74183
+ };
74184
+ /**
74185
+ * @param {!proto.clarifai.api.Secret=} opt_value
74186
+ * @param {number=} opt_index
74187
+ * @return {!proto.clarifai.api.Secret}
74188
+ */
74189
+ proto.clarifai.api.SyncStateRequest.prototype.addSecrets = function (opt_value, opt_index) {
74190
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.Secret, opt_index);
74191
+ };
74192
+ /**
74193
+ * Clears the list making it empty but non-null.
74194
+ * @return {!proto.clarifai.api.SyncStateRequest} returns this
74195
+ */
74196
+ proto.clarifai.api.SyncStateRequest.prototype.clearSecretsList = function () {
74197
+ return this.setSecretsList([]);
74198
+ };
72858
74199
  /**
72859
74200
  * List of repeated fields within this message type.
72860
74201
  * @private {!Array<number>}
@@ -86747,7 +88088,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
86747
88088
  proto.clarifai.api.GetSecretRequest.toObject = function (includeInstance, msg) {
86748
88089
  var f, obj = {
86749
88090
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
86750
- secretId: jspb.Message.getFieldWithDefault(msg, 2, "")
88091
+ id: jspb.Message.getFieldWithDefault(msg, 2, "")
86751
88092
  };
86752
88093
  if (includeInstance) {
86753
88094
  obj.$jspbMessageInstance = msg;
@@ -86786,7 +88127,7 @@ proto.clarifai.api.GetSecretRequest.deserializeBinaryFromReader = function (msg,
86786
88127
  break;
86787
88128
  case 2:
86788
88129
  var value = /** @type {string} */ (reader.readString());
86789
- msg.setSecretId(value);
88130
+ msg.setId(value);
86790
88131
  break;
86791
88132
  default:
86792
88133
  reader.skipField();
@@ -86817,7 +88158,7 @@ proto.clarifai.api.GetSecretRequest.serializeBinaryToWriter = function (message,
86817
88158
  if (f != null) {
86818
88159
  writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
86819
88160
  }
86820
- f = message.getSecretId();
88161
+ f = message.getId();
86821
88162
  if (f.length > 0) {
86822
88163
  writer.writeString(2, f);
86823
88164
  }
@@ -86851,17 +88192,17 @@ proto.clarifai.api.GetSecretRequest.prototype.hasUserAppId = function () {
86851
88192
  return jspb.Message.getField(this, 1) != null;
86852
88193
  };
86853
88194
  /**
86854
- * optional string secret_id = 2;
88195
+ * optional string id = 2;
86855
88196
  * @return {string}
86856
88197
  */
86857
- proto.clarifai.api.GetSecretRequest.prototype.getSecretId = function () {
88198
+ proto.clarifai.api.GetSecretRequest.prototype.getId = function () {
86858
88199
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
86859
88200
  };
86860
88201
  /**
86861
88202
  * @param {string} value
86862
88203
  * @return {!proto.clarifai.api.GetSecretRequest} returns this
86863
88204
  */
86864
- proto.clarifai.api.GetSecretRequest.prototype.setSecretId = function (value) {
88205
+ proto.clarifai.api.GetSecretRequest.prototype.setId = function (value) {
86865
88206
  return jspb.Message.setProto3StringField(this, 2, value);
86866
88207
  };
86867
88208
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -87204,7 +88545,7 @@ proto.clarifai.api.PostSecretsRequest.prototype.clearSecretsList = function () {
87204
88545
  * @private {!Array<number>}
87205
88546
  * @const
87206
88547
  */
87207
- proto.clarifai.api.PatchSecretsRequest.repeatedFields_ = [2];
88548
+ proto.clarifai.api.PatchSecretsRequest.repeatedFields_ = [5];
87208
88549
  if (jspb.Message.GENERATE_TO_OBJECT) {
87209
88550
  /**
87210
88551
  * Creates an object representation of this proto.
@@ -87233,8 +88574,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
87233
88574
  proto.clarifai.api.PatchSecretsRequest.toObject = function (includeInstance, msg) {
87234
88575
  var f, obj = {
87235
88576
  userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
87236
- secretsList: jspb.Message.toObjectList(msg.getSecretsList(), proto_clarifai_api_resources_pb.Secret.toObject, includeInstance),
87237
- action: jspb.Message.getFieldWithDefault(msg, 3, "")
88577
+ secretList: jspb.Message.toObjectList(msg.getSecretList(), proto_clarifai_api_resources_pb.Secret.toObject, includeInstance),
88578
+ action: jspb.Message.getFieldWithDefault(msg, 8, "")
87238
88579
  };
87239
88580
  if (includeInstance) {
87240
88581
  obj.$jspbMessageInstance = msg;
@@ -87271,12 +88612,12 @@ proto.clarifai.api.PatchSecretsRequest.deserializeBinaryFromReader = function (m
87271
88612
  reader.readMessage(value, proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader);
87272
88613
  msg.setUserAppId(value);
87273
88614
  break;
87274
- case 2:
88615
+ case 5:
87275
88616
  var value = new proto_clarifai_api_resources_pb.Secret;
87276
88617
  reader.readMessage(value, proto_clarifai_api_resources_pb.Secret.deserializeBinaryFromReader);
87277
- msg.addSecrets(value);
88618
+ msg.addSecret(value);
87278
88619
  break;
87279
- case 3:
88620
+ case 8:
87280
88621
  var value = /** @type {string} */ (reader.readString());
87281
88622
  msg.setAction(value);
87282
88623
  break;
@@ -87309,13 +88650,13 @@ proto.clarifai.api.PatchSecretsRequest.serializeBinaryToWriter = function (messa
87309
88650
  if (f != null) {
87310
88651
  writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
87311
88652
  }
87312
- f = message.getSecretsList();
88653
+ f = message.getSecretList();
87313
88654
  if (f.length > 0) {
87314
- writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.Secret.serializeBinaryToWriter);
88655
+ writer.writeRepeatedMessage(5, f, proto_clarifai_api_resources_pb.Secret.serializeBinaryToWriter);
87315
88656
  }
87316
88657
  f = message.getAction();
87317
88658
  if (f.length > 0) {
87318
- writer.writeString(3, f);
88659
+ writer.writeString(8, f);
87319
88660
  }
87320
88661
  };
87321
88662
  /**
@@ -87347,47 +88688,47 @@ proto.clarifai.api.PatchSecretsRequest.prototype.hasUserAppId = function () {
87347
88688
  return jspb.Message.getField(this, 1) != null;
87348
88689
  };
87349
88690
  /**
87350
- * repeated Secret secrets = 2;
88691
+ * repeated Secret secret = 5;
87351
88692
  * @return {!Array<!proto.clarifai.api.Secret>}
87352
88693
  */
87353
- proto.clarifai.api.PatchSecretsRequest.prototype.getSecretsList = function () {
87354
- return /** @type{!Array<!proto.clarifai.api.Secret>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret, 2));
88694
+ proto.clarifai.api.PatchSecretsRequest.prototype.getSecretList = function () {
88695
+ return /** @type{!Array<!proto.clarifai.api.Secret>} */ (jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Secret, 5));
87355
88696
  };
87356
88697
  /**
87357
88698
  * @param {!Array<!proto.clarifai.api.Secret>} value
87358
88699
  * @return {!proto.clarifai.api.PatchSecretsRequest} returns this
87359
88700
  */
87360
- proto.clarifai.api.PatchSecretsRequest.prototype.setSecretsList = function (value) {
87361
- return jspb.Message.setRepeatedWrapperField(this, 2, value);
88701
+ proto.clarifai.api.PatchSecretsRequest.prototype.setSecretList = function (value) {
88702
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
87362
88703
  };
87363
88704
  /**
87364
88705
  * @param {!proto.clarifai.api.Secret=} opt_value
87365
88706
  * @param {number=} opt_index
87366
88707
  * @return {!proto.clarifai.api.Secret}
87367
88708
  */
87368
- proto.clarifai.api.PatchSecretsRequest.prototype.addSecrets = function (opt_value, opt_index) {
87369
- return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Secret, opt_index);
88709
+ proto.clarifai.api.PatchSecretsRequest.prototype.addSecret = function (opt_value, opt_index) {
88710
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.Secret, opt_index);
87370
88711
  };
87371
88712
  /**
87372
88713
  * Clears the list making it empty but non-null.
87373
88714
  * @return {!proto.clarifai.api.PatchSecretsRequest} returns this
87374
88715
  */
87375
- proto.clarifai.api.PatchSecretsRequest.prototype.clearSecretsList = function () {
87376
- return this.setSecretsList([]);
88716
+ proto.clarifai.api.PatchSecretsRequest.prototype.clearSecretList = function () {
88717
+ return this.setSecretList([]);
87377
88718
  };
87378
88719
  /**
87379
- * optional string action = 3;
88720
+ * optional string action = 8;
87380
88721
  * @return {string}
87381
88722
  */
87382
88723
  proto.clarifai.api.PatchSecretsRequest.prototype.getAction = function () {
87383
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
88724
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
87384
88725
  };
87385
88726
  /**
87386
88727
  * @param {string} value
87387
88728
  * @return {!proto.clarifai.api.PatchSecretsRequest} returns this
87388
88729
  */
87389
88730
  proto.clarifai.api.PatchSecretsRequest.prototype.setAction = function (value) {
87390
- return jspb.Message.setProto3StringField(this, 3, value);
88731
+ return jspb.Message.setProto3StringField(this, 8, value);
87391
88732
  };
87392
88733
  /**
87393
88734
  * List of repeated fields within this message type.