@lansweeper/multitenant-api-grpc 0.4.46 → 0.4.48

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.
@@ -68,6 +68,8 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsForMultipleSitesRe
68
68
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsForMultipleSitesResponse', null, global);
69
69
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest', null, global);
70
70
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse', null, global);
71
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest', null, global);
72
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse', null, global);
71
73
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData', null, global);
72
74
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteLimitsRequest', null, global);
73
75
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteLimitsResponse', null, global);
@@ -101,6 +103,8 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResp
101
103
  goog.exportSymbol('proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result', null, global);
102
104
  goog.exportSymbol('proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest', null, global);
103
105
  goog.exportSymbol('proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse', null, global);
106
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest', null, global);
107
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse', null, global);
104
108
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SendInviteLocalUsersMailRequest', null, global);
105
109
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SendInviteLocalUsersMailResponse', null, global);
106
110
  goog.exportSymbol('proto.lansweeper.multitenant.v1.Site', null, global);
@@ -181,6 +185,90 @@ if (goog.DEBUG && !COMPILED) {
181
185
  */
182
186
  proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.displayName = 'proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse';
183
187
  }
188
+ /**
189
+ * Generated by JsPbCodeGenerator.
190
+ * @param {Array=} opt_data Optional initial data array, typically from a
191
+ * server response, or constructed directly in Javascript. The array is used
192
+ * in place and becomes part of the constructed object. It is not cloned.
193
+ * If no data is provided, the constructed object will be empty, but still
194
+ * valid.
195
+ * @extends {jspb.Message}
196
+ * @constructor
197
+ */
198
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest = function(opt_data) {
199
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.repeatedFields_, null);
200
+ };
201
+ goog.inherits(proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest, jspb.Message);
202
+ if (goog.DEBUG && !COMPILED) {
203
+ /**
204
+ * @public
205
+ * @override
206
+ */
207
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.displayName = 'proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest';
208
+ }
209
+ /**
210
+ * Generated by JsPbCodeGenerator.
211
+ * @param {Array=} opt_data Optional initial data array, typically from a
212
+ * server response, or constructed directly in Javascript. The array is used
213
+ * in place and becomes part of the constructed object. It is not cloned.
214
+ * If no data is provided, the constructed object will be empty, but still
215
+ * valid.
216
+ * @extends {jspb.Message}
217
+ * @constructor
218
+ */
219
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse = function(opt_data) {
220
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.repeatedFields_, null);
221
+ };
222
+ goog.inherits(proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse, jspb.Message);
223
+ if (goog.DEBUG && !COMPILED) {
224
+ /**
225
+ * @public
226
+ * @override
227
+ */
228
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.displayName = 'proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse';
229
+ }
230
+ /**
231
+ * Generated by JsPbCodeGenerator.
232
+ * @param {Array=} opt_data Optional initial data array, typically from a
233
+ * server response, or constructed directly in Javascript. The array is used
234
+ * in place and becomes part of the constructed object. It is not cloned.
235
+ * If no data is provided, the constructed object will be empty, but still
236
+ * valid.
237
+ * @extends {jspb.Message}
238
+ * @constructor
239
+ */
240
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest = function(opt_data) {
241
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.repeatedFields_, null);
242
+ };
243
+ goog.inherits(proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest, jspb.Message);
244
+ if (goog.DEBUG && !COMPILED) {
245
+ /**
246
+ * @public
247
+ * @override
248
+ */
249
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.displayName = 'proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest';
250
+ }
251
+ /**
252
+ * Generated by JsPbCodeGenerator.
253
+ * @param {Array=} opt_data Optional initial data array, typically from a
254
+ * server response, or constructed directly in Javascript. The array is used
255
+ * in place and becomes part of the constructed object. It is not cloned.
256
+ * If no data is provided, the constructed object will be empty, but still
257
+ * valid.
258
+ * @extends {jspb.Message}
259
+ * @constructor
260
+ */
261
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse = function(opt_data) {
262
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.repeatedFields_, null);
263
+ };
264
+ goog.inherits(proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse, jspb.Message);
265
+ if (goog.DEBUG && !COMPILED) {
266
+ /**
267
+ * @public
268
+ * @override
269
+ */
270
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.displayName = 'proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse';
271
+ }
184
272
  /**
185
273
  * Generated by JsPbCodeGenerator.
186
274
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2570,6 +2658,668 @@ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.prototype.hasAccou
2570
2658
 
2571
2659
 
2572
2660
 
2661
+ /**
2662
+ * List of repeated fields within this message type.
2663
+ * @private {!Array<number>}
2664
+ * @const
2665
+ */
2666
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.repeatedFields_ = [1];
2667
+
2668
+
2669
+
2670
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2671
+ /**
2672
+ * Creates an object representation of this proto.
2673
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2674
+ * Optional fields that are not set will be set to undefined.
2675
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2676
+ * For the list of reserved names please see:
2677
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2678
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2679
+ * JSPB instance for transitional soy proto support:
2680
+ * http://goto/soy-param-migration
2681
+ * @return {!Object}
2682
+ */
2683
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.toObject = function(opt_includeInstance) {
2684
+ return proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.toObject(opt_includeInstance, this);
2685
+ };
2686
+
2687
+
2688
+ /**
2689
+ * Static version of the {@see toObject} method.
2690
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2691
+ * the JSPB instance for transitional soy proto support:
2692
+ * http://goto/soy-param-migration
2693
+ * @param {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} msg The msg instance to transform.
2694
+ * @return {!Object}
2695
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2696
+ */
2697
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.toObject = function(includeInstance, msg) {
2698
+ var f, obj = {
2699
+ siteIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2700
+ search: jspb.Message.getFieldWithDefault(msg, 2, "")
2701
+ };
2702
+
2703
+ if (includeInstance) {
2704
+ obj.$jspbMessageInstance = msg;
2705
+ }
2706
+ return obj;
2707
+ };
2708
+ }
2709
+
2710
+
2711
+ /**
2712
+ * Deserializes binary data (in protobuf wire format).
2713
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2714
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest}
2715
+ */
2716
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.deserializeBinary = function(bytes) {
2717
+ var reader = new jspb.BinaryReader(bytes);
2718
+ var msg = new proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest;
2719
+ return proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.deserializeBinaryFromReader(msg, reader);
2720
+ };
2721
+
2722
+
2723
+ /**
2724
+ * Deserializes binary data (in protobuf wire format) from the
2725
+ * given reader into the given message object.
2726
+ * @param {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} msg The message object to deserialize into.
2727
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2728
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest}
2729
+ */
2730
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
2731
+ while (reader.nextField()) {
2732
+ if (reader.isEndGroup()) {
2733
+ break;
2734
+ }
2735
+ var field = reader.getFieldNumber();
2736
+ switch (field) {
2737
+ case 1:
2738
+ var value = /** @type {string} */ (reader.readString());
2739
+ msg.addSiteIds(value);
2740
+ break;
2741
+ case 2:
2742
+ var value = /** @type {string} */ (reader.readString());
2743
+ msg.setSearch(value);
2744
+ break;
2745
+ default:
2746
+ reader.skipField();
2747
+ break;
2748
+ }
2749
+ }
2750
+ return msg;
2751
+ };
2752
+
2753
+
2754
+ /**
2755
+ * Serializes the message to binary data (in protobuf wire format).
2756
+ * @return {!Uint8Array}
2757
+ */
2758
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.serializeBinary = function() {
2759
+ var writer = new jspb.BinaryWriter();
2760
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.serializeBinaryToWriter(this, writer);
2761
+ return writer.getResultBuffer();
2762
+ };
2763
+
2764
+
2765
+ /**
2766
+ * Serializes the given message to binary data (in protobuf wire
2767
+ * format), writing to the given BinaryWriter.
2768
+ * @param {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} message
2769
+ * @param {!jspb.BinaryWriter} writer
2770
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2771
+ */
2772
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.serializeBinaryToWriter = function(message, writer) {
2773
+ var f = undefined;
2774
+ f = message.getSiteIdsList();
2775
+ if (f.length > 0) {
2776
+ writer.writeRepeatedString(
2777
+ 1,
2778
+ f
2779
+ );
2780
+ }
2781
+ f = message.getSearch();
2782
+ if (f.length > 0) {
2783
+ writer.writeString(
2784
+ 2,
2785
+ f
2786
+ );
2787
+ }
2788
+ };
2789
+
2790
+
2791
+ /**
2792
+ * repeated string site_ids = 1;
2793
+ * @return {!Array<string>}
2794
+ */
2795
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.getSiteIdsList = function() {
2796
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2797
+ };
2798
+
2799
+
2800
+ /**
2801
+ * @param {!Array<string>} value
2802
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} returns this
2803
+ */
2804
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.setSiteIdsList = function(value) {
2805
+ return jspb.Message.setField(this, 1, value || []);
2806
+ };
2807
+
2808
+
2809
+ /**
2810
+ * @param {string} value
2811
+ * @param {number=} opt_index
2812
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} returns this
2813
+ */
2814
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.addSiteIds = function(value, opt_index) {
2815
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2816
+ };
2817
+
2818
+
2819
+ /**
2820
+ * Clears the list making it empty but non-null.
2821
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} returns this
2822
+ */
2823
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.clearSiteIdsList = function() {
2824
+ return this.setSiteIdsList([]);
2825
+ };
2826
+
2827
+
2828
+ /**
2829
+ * optional string search = 2;
2830
+ * @return {string}
2831
+ */
2832
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.getSearch = function() {
2833
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2834
+ };
2835
+
2836
+
2837
+ /**
2838
+ * @param {string} value
2839
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} returns this
2840
+ */
2841
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.setSearch = function(value) {
2842
+ return jspb.Message.setProto3StringField(this, 2, value);
2843
+ };
2844
+
2845
+
2846
+
2847
+ /**
2848
+ * List of repeated fields within this message type.
2849
+ * @private {!Array<number>}
2850
+ * @const
2851
+ */
2852
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.repeatedFields_ = [1];
2853
+
2854
+
2855
+
2856
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2857
+ /**
2858
+ * Creates an object representation of this proto.
2859
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2860
+ * Optional fields that are not set will be set to undefined.
2861
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2862
+ * For the list of reserved names please see:
2863
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2864
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2865
+ * JSPB instance for transitional soy proto support:
2866
+ * http://goto/soy-param-migration
2867
+ * @return {!Object}
2868
+ */
2869
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.prototype.toObject = function(opt_includeInstance) {
2870
+ return proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.toObject(opt_includeInstance, this);
2871
+ };
2872
+
2873
+
2874
+ /**
2875
+ * Static version of the {@see toObject} method.
2876
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2877
+ * the JSPB instance for transitional soy proto support:
2878
+ * http://goto/soy-param-migration
2879
+ * @param {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse} msg The msg instance to transform.
2880
+ * @return {!Object}
2881
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2882
+ */
2883
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.toObject = function(includeInstance, msg) {
2884
+ var f, obj = {
2885
+ accountsList: jspb.Message.toObjectList(msg.getAccountsList(),
2886
+ proto.lansweeper.multitenant.v1.PreviewAccount.toObject, includeInstance)
2887
+ };
2888
+
2889
+ if (includeInstance) {
2890
+ obj.$jspbMessageInstance = msg;
2891
+ }
2892
+ return obj;
2893
+ };
2894
+ }
2895
+
2896
+
2897
+ /**
2898
+ * Deserializes binary data (in protobuf wire format).
2899
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2900
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse}
2901
+ */
2902
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.deserializeBinary = function(bytes) {
2903
+ var reader = new jspb.BinaryReader(bytes);
2904
+ var msg = new proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse;
2905
+ return proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.deserializeBinaryFromReader(msg, reader);
2906
+ };
2907
+
2908
+
2909
+ /**
2910
+ * Deserializes binary data (in protobuf wire format) from the
2911
+ * given reader into the given message object.
2912
+ * @param {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse} msg The message object to deserialize into.
2913
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2914
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse}
2915
+ */
2916
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.deserializeBinaryFromReader = function(msg, reader) {
2917
+ while (reader.nextField()) {
2918
+ if (reader.isEndGroup()) {
2919
+ break;
2920
+ }
2921
+ var field = reader.getFieldNumber();
2922
+ switch (field) {
2923
+ case 1:
2924
+ var value = new proto.lansweeper.multitenant.v1.PreviewAccount;
2925
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.PreviewAccount.deserializeBinaryFromReader);
2926
+ msg.addAccounts(value);
2927
+ break;
2928
+ default:
2929
+ reader.skipField();
2930
+ break;
2931
+ }
2932
+ }
2933
+ return msg;
2934
+ };
2935
+
2936
+
2937
+ /**
2938
+ * Serializes the message to binary data (in protobuf wire format).
2939
+ * @return {!Uint8Array}
2940
+ */
2941
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.prototype.serializeBinary = function() {
2942
+ var writer = new jspb.BinaryWriter();
2943
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.serializeBinaryToWriter(this, writer);
2944
+ return writer.getResultBuffer();
2945
+ };
2946
+
2947
+
2948
+ /**
2949
+ * Serializes the given message to binary data (in protobuf wire
2950
+ * format), writing to the given BinaryWriter.
2951
+ * @param {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse} message
2952
+ * @param {!jspb.BinaryWriter} writer
2953
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2954
+ */
2955
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.serializeBinaryToWriter = function(message, writer) {
2956
+ var f = undefined;
2957
+ f = message.getAccountsList();
2958
+ if (f.length > 0) {
2959
+ writer.writeRepeatedMessage(
2960
+ 1,
2961
+ f,
2962
+ proto.lansweeper.multitenant.v1.PreviewAccount.serializeBinaryToWriter
2963
+ );
2964
+ }
2965
+ };
2966
+
2967
+
2968
+ /**
2969
+ * repeated PreviewAccount accounts = 1;
2970
+ * @return {!Array<!proto.lansweeper.multitenant.v1.PreviewAccount>}
2971
+ */
2972
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.prototype.getAccountsList = function() {
2973
+ return /** @type{!Array<!proto.lansweeper.multitenant.v1.PreviewAccount>} */ (
2974
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.PreviewAccount, 1));
2975
+ };
2976
+
2977
+
2978
+ /**
2979
+ * @param {!Array<!proto.lansweeper.multitenant.v1.PreviewAccount>} value
2980
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse} returns this
2981
+ */
2982
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.prototype.setAccountsList = function(value) {
2983
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2984
+ };
2985
+
2986
+
2987
+ /**
2988
+ * @param {!proto.lansweeper.multitenant.v1.PreviewAccount=} opt_value
2989
+ * @param {number=} opt_index
2990
+ * @return {!proto.lansweeper.multitenant.v1.PreviewAccount}
2991
+ */
2992
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.prototype.addAccounts = function(opt_value, opt_index) {
2993
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.multitenant.v1.PreviewAccount, opt_index);
2994
+ };
2995
+
2996
+
2997
+ /**
2998
+ * Clears the list making it empty but non-null.
2999
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse} returns this
3000
+ */
3001
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.prototype.clearAccountsList = function() {
3002
+ return this.setAccountsList([]);
3003
+ };
3004
+
3005
+
3006
+
3007
+ /**
3008
+ * List of repeated fields within this message type.
3009
+ * @private {!Array<number>}
3010
+ * @const
3011
+ */
3012
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.repeatedFields_ = [1];
3013
+
3014
+
3015
+
3016
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3017
+ /**
3018
+ * Creates an object representation of this proto.
3019
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3020
+ * Optional fields that are not set will be set to undefined.
3021
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3022
+ * For the list of reserved names please see:
3023
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3024
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3025
+ * JSPB instance for transitional soy proto support:
3026
+ * http://goto/soy-param-migration
3027
+ * @return {!Object}
3028
+ */
3029
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.prototype.toObject = function(opt_includeInstance) {
3030
+ return proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.toObject(opt_includeInstance, this);
3031
+ };
3032
+
3033
+
3034
+ /**
3035
+ * Static version of the {@see toObject} method.
3036
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3037
+ * the JSPB instance for transitional soy proto support:
3038
+ * http://goto/soy-param-migration
3039
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest} msg The msg instance to transform.
3040
+ * @return {!Object}
3041
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3042
+ */
3043
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.toObject = function(includeInstance, msg) {
3044
+ var f, obj = {
3045
+ accountIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3046
+ };
3047
+
3048
+ if (includeInstance) {
3049
+ obj.$jspbMessageInstance = msg;
3050
+ }
3051
+ return obj;
3052
+ };
3053
+ }
3054
+
3055
+
3056
+ /**
3057
+ * Deserializes binary data (in protobuf wire format).
3058
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3059
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest}
3060
+ */
3061
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.deserializeBinary = function(bytes) {
3062
+ var reader = new jspb.BinaryReader(bytes);
3063
+ var msg = new proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest;
3064
+ return proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.deserializeBinaryFromReader(msg, reader);
3065
+ };
3066
+
3067
+
3068
+ /**
3069
+ * Deserializes binary data (in protobuf wire format) from the
3070
+ * given reader into the given message object.
3071
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest} msg The message object to deserialize into.
3072
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3073
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest}
3074
+ */
3075
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
3076
+ while (reader.nextField()) {
3077
+ if (reader.isEndGroup()) {
3078
+ break;
3079
+ }
3080
+ var field = reader.getFieldNumber();
3081
+ switch (field) {
3082
+ case 1:
3083
+ var value = /** @type {string} */ (reader.readString());
3084
+ msg.addAccountIds(value);
3085
+ break;
3086
+ default:
3087
+ reader.skipField();
3088
+ break;
3089
+ }
3090
+ }
3091
+ return msg;
3092
+ };
3093
+
3094
+
3095
+ /**
3096
+ * Serializes the message to binary data (in protobuf wire format).
3097
+ * @return {!Uint8Array}
3098
+ */
3099
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.prototype.serializeBinary = function() {
3100
+ var writer = new jspb.BinaryWriter();
3101
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.serializeBinaryToWriter(this, writer);
3102
+ return writer.getResultBuffer();
3103
+ };
3104
+
3105
+
3106
+ /**
3107
+ * Serializes the given message to binary data (in protobuf wire
3108
+ * format), writing to the given BinaryWriter.
3109
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest} message
3110
+ * @param {!jspb.BinaryWriter} writer
3111
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3112
+ */
3113
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.serializeBinaryToWriter = function(message, writer) {
3114
+ var f = undefined;
3115
+ f = message.getAccountIdsList();
3116
+ if (f.length > 0) {
3117
+ writer.writeRepeatedString(
3118
+ 1,
3119
+ f
3120
+ );
3121
+ }
3122
+ };
3123
+
3124
+
3125
+ /**
3126
+ * repeated string account_ids = 1;
3127
+ * @return {!Array<string>}
3128
+ */
3129
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.prototype.getAccountIdsList = function() {
3130
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3131
+ };
3132
+
3133
+
3134
+ /**
3135
+ * @param {!Array<string>} value
3136
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest} returns this
3137
+ */
3138
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.prototype.setAccountIdsList = function(value) {
3139
+ return jspb.Message.setField(this, 1, value || []);
3140
+ };
3141
+
3142
+
3143
+ /**
3144
+ * @param {string} value
3145
+ * @param {number=} opt_index
3146
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest} returns this
3147
+ */
3148
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.prototype.addAccountIds = function(value, opt_index) {
3149
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3150
+ };
3151
+
3152
+
3153
+ /**
3154
+ * Clears the list making it empty but non-null.
3155
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest} returns this
3156
+ */
3157
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsRequest.prototype.clearAccountIdsList = function() {
3158
+ return this.setAccountIdsList([]);
3159
+ };
3160
+
3161
+
3162
+
3163
+ /**
3164
+ * List of repeated fields within this message type.
3165
+ * @private {!Array<number>}
3166
+ * @const
3167
+ */
3168
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.repeatedFields_ = [1];
3169
+
3170
+
3171
+
3172
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3173
+ /**
3174
+ * Creates an object representation of this proto.
3175
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3176
+ * Optional fields that are not set will be set to undefined.
3177
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3178
+ * For the list of reserved names please see:
3179
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3180
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3181
+ * JSPB instance for transitional soy proto support:
3182
+ * http://goto/soy-param-migration
3183
+ * @return {!Object}
3184
+ */
3185
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.prototype.toObject = function(opt_includeInstance) {
3186
+ return proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.toObject(opt_includeInstance, this);
3187
+ };
3188
+
3189
+
3190
+ /**
3191
+ * Static version of the {@see toObject} method.
3192
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3193
+ * the JSPB instance for transitional soy proto support:
3194
+ * http://goto/soy-param-migration
3195
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse} msg The msg instance to transform.
3196
+ * @return {!Object}
3197
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3198
+ */
3199
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.toObject = function(includeInstance, msg) {
3200
+ var f, obj = {
3201
+ accountsList: jspb.Message.toObjectList(msg.getAccountsList(),
3202
+ proto.lansweeper.multitenant.v1.PreviewAccount.toObject, includeInstance)
3203
+ };
3204
+
3205
+ if (includeInstance) {
3206
+ obj.$jspbMessageInstance = msg;
3207
+ }
3208
+ return obj;
3209
+ };
3210
+ }
3211
+
3212
+
3213
+ /**
3214
+ * Deserializes binary data (in protobuf wire format).
3215
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3216
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse}
3217
+ */
3218
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.deserializeBinary = function(bytes) {
3219
+ var reader = new jspb.BinaryReader(bytes);
3220
+ var msg = new proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse;
3221
+ return proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.deserializeBinaryFromReader(msg, reader);
3222
+ };
3223
+
3224
+
3225
+ /**
3226
+ * Deserializes binary data (in protobuf wire format) from the
3227
+ * given reader into the given message object.
3228
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse} msg The message object to deserialize into.
3229
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3230
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse}
3231
+ */
3232
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.deserializeBinaryFromReader = function(msg, reader) {
3233
+ while (reader.nextField()) {
3234
+ if (reader.isEndGroup()) {
3235
+ break;
3236
+ }
3237
+ var field = reader.getFieldNumber();
3238
+ switch (field) {
3239
+ case 1:
3240
+ var value = new proto.lansweeper.multitenant.v1.PreviewAccount;
3241
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.PreviewAccount.deserializeBinaryFromReader);
3242
+ msg.addAccounts(value);
3243
+ break;
3244
+ default:
3245
+ reader.skipField();
3246
+ break;
3247
+ }
3248
+ }
3249
+ return msg;
3250
+ };
3251
+
3252
+
3253
+ /**
3254
+ * Serializes the message to binary data (in protobuf wire format).
3255
+ * @return {!Uint8Array}
3256
+ */
3257
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.prototype.serializeBinary = function() {
3258
+ var writer = new jspb.BinaryWriter();
3259
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.serializeBinaryToWriter(this, writer);
3260
+ return writer.getResultBuffer();
3261
+ };
3262
+
3263
+
3264
+ /**
3265
+ * Serializes the given message to binary data (in protobuf wire
3266
+ * format), writing to the given BinaryWriter.
3267
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse} message
3268
+ * @param {!jspb.BinaryWriter} writer
3269
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3270
+ */
3271
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.serializeBinaryToWriter = function(message, writer) {
3272
+ var f = undefined;
3273
+ f = message.getAccountsList();
3274
+ if (f.length > 0) {
3275
+ writer.writeRepeatedMessage(
3276
+ 1,
3277
+ f,
3278
+ proto.lansweeper.multitenant.v1.PreviewAccount.serializeBinaryToWriter
3279
+ );
3280
+ }
3281
+ };
3282
+
3283
+
3284
+ /**
3285
+ * repeated PreviewAccount accounts = 1;
3286
+ * @return {!Array<!proto.lansweeper.multitenant.v1.PreviewAccount>}
3287
+ */
3288
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.prototype.getAccountsList = function() {
3289
+ return /** @type{!Array<!proto.lansweeper.multitenant.v1.PreviewAccount>} */ (
3290
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.PreviewAccount, 1));
3291
+ };
3292
+
3293
+
3294
+ /**
3295
+ * @param {!Array<!proto.lansweeper.multitenant.v1.PreviewAccount>} value
3296
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse} returns this
3297
+ */
3298
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.prototype.setAccountsList = function(value) {
3299
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3300
+ };
3301
+
3302
+
3303
+ /**
3304
+ * @param {!proto.lansweeper.multitenant.v1.PreviewAccount=} opt_value
3305
+ * @param {number=} opt_index
3306
+ * @return {!proto.lansweeper.multitenant.v1.PreviewAccount}
3307
+ */
3308
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.prototype.addAccounts = function(opt_value, opt_index) {
3309
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.multitenant.v1.PreviewAccount, opt_index);
3310
+ };
3311
+
3312
+
3313
+ /**
3314
+ * Clears the list making it empty but non-null.
3315
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse} returns this
3316
+ */
3317
+ proto.lansweeper.multitenant.v1.GetPreviewAccountsByAccountIdsResponse.prototype.clearAccountsList = function() {
3318
+ return this.setAccountsList([]);
3319
+ };
3320
+
3321
+
3322
+
2573
3323
 
2574
3324
 
2575
3325
  if (jspb.Message.GENERATE_TO_OBJECT) {