@lansweeper/multitenant-api-grpc 0.4.47 → 0.4.49

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,13 @@ 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
+
2573
2668
 
2574
2669
 
2575
2670
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2585,8 +2680,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2585
2680
  * http://goto/soy-param-migration
2586
2681
  * @return {!Object}
2587
2682
  */
2588
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.toObject = function(opt_includeInstance) {
2589
- return proto.lansweeper.multitenant.v1.PreviewSite.toObject(opt_includeInstance, this);
2683
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.toObject = function(opt_includeInstance) {
2684
+ return proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.toObject(opt_includeInstance, this);
2590
2685
  };
2591
2686
 
2592
2687
 
@@ -2595,18 +2690,14 @@ proto.lansweeper.multitenant.v1.PreviewSite.prototype.toObject = function(opt_in
2595
2690
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2596
2691
  * the JSPB instance for transitional soy proto support:
2597
2692
  * http://goto/soy-param-migration
2598
- * @param {!proto.lansweeper.multitenant.v1.PreviewSite} msg The msg instance to transform.
2693
+ * @param {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} msg The msg instance to transform.
2599
2694
  * @return {!Object}
2600
2695
  * @suppress {unusedLocalVariables} f is only used for nested messages
2601
2696
  */
2602
- proto.lansweeper.multitenant.v1.PreviewSite.toObject = function(includeInstance, msg) {
2697
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.toObject = function(includeInstance, msg) {
2603
2698
  var f, obj = {
2604
- id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2605
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2606
- companyName: jspb.Message.getFieldWithDefault(msg, 3, ""),
2607
- logoUrl: jspb.Message.getFieldWithDefault(msg, 4, ""),
2608
- mode: jspb.Message.getFieldWithDefault(msg, 5, 0),
2609
- createdBy: (f = msg.getCreatedBy()) && proto.lansweeper.multitenant.v1.PreviewAccount.toObject(includeInstance, f)
2699
+ siteIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2700
+ search: jspb.Message.getFieldWithDefault(msg, 2, "")
2610
2701
  };
2611
2702
 
2612
2703
  if (includeInstance) {
@@ -2620,23 +2711,23 @@ proto.lansweeper.multitenant.v1.PreviewSite.toObject = function(includeInstance,
2620
2711
  /**
2621
2712
  * Deserializes binary data (in protobuf wire format).
2622
2713
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2623
- * @return {!proto.lansweeper.multitenant.v1.PreviewSite}
2714
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest}
2624
2715
  */
2625
- proto.lansweeper.multitenant.v1.PreviewSite.deserializeBinary = function(bytes) {
2716
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.deserializeBinary = function(bytes) {
2626
2717
  var reader = new jspb.BinaryReader(bytes);
2627
- var msg = new proto.lansweeper.multitenant.v1.PreviewSite;
2628
- return proto.lansweeper.multitenant.v1.PreviewSite.deserializeBinaryFromReader(msg, reader);
2718
+ var msg = new proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest;
2719
+ return proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.deserializeBinaryFromReader(msg, reader);
2629
2720
  };
2630
2721
 
2631
2722
 
2632
2723
  /**
2633
2724
  * Deserializes binary data (in protobuf wire format) from the
2634
2725
  * given reader into the given message object.
2635
- * @param {!proto.lansweeper.multitenant.v1.PreviewSite} msg The message object to deserialize into.
2726
+ * @param {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} msg The message object to deserialize into.
2636
2727
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2637
- * @return {!proto.lansweeper.multitenant.v1.PreviewSite}
2728
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest}
2638
2729
  */
2639
- proto.lansweeper.multitenant.v1.PreviewSite.deserializeBinaryFromReader = function(msg, reader) {
2730
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
2640
2731
  while (reader.nextField()) {
2641
2732
  if (reader.isEndGroup()) {
2642
2733
  break;
@@ -2645,28 +2736,11 @@ proto.lansweeper.multitenant.v1.PreviewSite.deserializeBinaryFromReader = functi
2645
2736
  switch (field) {
2646
2737
  case 1:
2647
2738
  var value = /** @type {string} */ (reader.readString());
2648
- msg.setId(value);
2739
+ msg.addSiteIds(value);
2649
2740
  break;
2650
2741
  case 2:
2651
2742
  var value = /** @type {string} */ (reader.readString());
2652
- msg.setName(value);
2653
- break;
2654
- case 3:
2655
- var value = /** @type {string} */ (reader.readString());
2656
- msg.setCompanyName(value);
2657
- break;
2658
- case 4:
2659
- var value = /** @type {string} */ (reader.readString());
2660
- msg.setLogoUrl(value);
2661
- break;
2662
- case 5:
2663
- var value = /** @type {!proto.lansweeper.multitenant.v1.SiteMode} */ (reader.readEnum());
2664
- msg.setMode(value);
2665
- break;
2666
- case 6:
2667
- var value = new proto.lansweeper.multitenant.v1.PreviewAccount;
2668
- reader.readMessage(value,proto.lansweeper.multitenant.v1.PreviewAccount.deserializeBinaryFromReader);
2669
- msg.setCreatedBy(value);
2743
+ msg.setSearch(value);
2670
2744
  break;
2671
2745
  default:
2672
2746
  reader.skipField();
@@ -2681,9 +2755,9 @@ proto.lansweeper.multitenant.v1.PreviewSite.deserializeBinaryFromReader = functi
2681
2755
  * Serializes the message to binary data (in protobuf wire format).
2682
2756
  * @return {!Uint8Array}
2683
2757
  */
2684
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.serializeBinary = function() {
2758
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.serializeBinary = function() {
2685
2759
  var writer = new jspb.BinaryWriter();
2686
- proto.lansweeper.multitenant.v1.PreviewSite.serializeBinaryToWriter(this, writer);
2760
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.serializeBinaryToWriter(this, writer);
2687
2761
  return writer.getResultBuffer();
2688
2762
  };
2689
2763
 
@@ -2691,185 +2765,91 @@ proto.lansweeper.multitenant.v1.PreviewSite.prototype.serializeBinary = function
2691
2765
  /**
2692
2766
  * Serializes the given message to binary data (in protobuf wire
2693
2767
  * format), writing to the given BinaryWriter.
2694
- * @param {!proto.lansweeper.multitenant.v1.PreviewSite} message
2768
+ * @param {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} message
2695
2769
  * @param {!jspb.BinaryWriter} writer
2696
2770
  * @suppress {unusedLocalVariables} f is only used for nested messages
2697
2771
  */
2698
- proto.lansweeper.multitenant.v1.PreviewSite.serializeBinaryToWriter = function(message, writer) {
2772
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.serializeBinaryToWriter = function(message, writer) {
2699
2773
  var f = undefined;
2700
- f = message.getId();
2774
+ f = message.getSiteIdsList();
2701
2775
  if (f.length > 0) {
2702
- writer.writeString(
2776
+ writer.writeRepeatedString(
2703
2777
  1,
2704
2778
  f
2705
2779
  );
2706
2780
  }
2707
- f = message.getName();
2781
+ f = message.getSearch();
2708
2782
  if (f.length > 0) {
2709
2783
  writer.writeString(
2710
2784
  2,
2711
2785
  f
2712
2786
  );
2713
2787
  }
2714
- f = message.getCompanyName();
2715
- if (f.length > 0) {
2716
- writer.writeString(
2717
- 3,
2718
- f
2719
- );
2720
- }
2721
- f = message.getLogoUrl();
2722
- if (f.length > 0) {
2723
- writer.writeString(
2724
- 4,
2725
- f
2726
- );
2727
- }
2728
- f = message.getMode();
2729
- if (f !== 0.0) {
2730
- writer.writeEnum(
2731
- 5,
2732
- f
2733
- );
2734
- }
2735
- f = message.getCreatedBy();
2736
- if (f != null) {
2737
- writer.writeMessage(
2738
- 6,
2739
- f,
2740
- proto.lansweeper.multitenant.v1.PreviewAccount.serializeBinaryToWriter
2741
- );
2742
- }
2743
- };
2744
-
2745
-
2746
- /**
2747
- * optional string id = 1;
2748
- * @return {string}
2749
- */
2750
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.getId = function() {
2751
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2752
2788
  };
2753
2789
 
2754
2790
 
2755
2791
  /**
2756
- * @param {string} value
2757
- * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
2792
+ * repeated string site_ids = 1;
2793
+ * @return {!Array<string>}
2758
2794
  */
2759
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.setId = function(value) {
2760
- return jspb.Message.setProto3StringField(this, 1, value);
2795
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.getSiteIdsList = function() {
2796
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2761
2797
  };
2762
2798
 
2763
2799
 
2764
2800
  /**
2765
- * optional string name = 2;
2766
- * @return {string}
2801
+ * @param {!Array<string>} value
2802
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} returns this
2767
2803
  */
2768
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.getName = function() {
2769
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2804
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.setSiteIdsList = function(value) {
2805
+ return jspb.Message.setField(this, 1, value || []);
2770
2806
  };
2771
2807
 
2772
2808
 
2773
2809
  /**
2774
2810
  * @param {string} value
2775
- * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
2776
- */
2777
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.setName = function(value) {
2778
- return jspb.Message.setProto3StringField(this, 2, value);
2779
- };
2780
-
2781
-
2782
- /**
2783
- * optional string company_name = 3;
2784
- * @return {string}
2811
+ * @param {number=} opt_index
2812
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} returns this
2785
2813
  */
2786
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.getCompanyName = function() {
2787
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2814
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.addSiteIds = function(value, opt_index) {
2815
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2788
2816
  };
2789
2817
 
2790
2818
 
2791
2819
  /**
2792
- * @param {string} value
2793
- * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
2820
+ * Clears the list making it empty but non-null.
2821
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} returns this
2794
2822
  */
2795
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.setCompanyName = function(value) {
2796
- return jspb.Message.setProto3StringField(this, 3, value);
2823
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.clearSiteIdsList = function() {
2824
+ return this.setSiteIdsList([]);
2797
2825
  };
2798
2826
 
2799
2827
 
2800
2828
  /**
2801
- * optional string logo_url = 4;
2829
+ * optional string search = 2;
2802
2830
  * @return {string}
2803
2831
  */
2804
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.getLogoUrl = function() {
2805
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2832
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.getSearch = function() {
2833
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2806
2834
  };
2807
2835
 
2808
2836
 
2809
2837
  /**
2810
2838
  * @param {string} value
2811
- * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
2812
- */
2813
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.setLogoUrl = function(value) {
2814
- return jspb.Message.setProto3StringField(this, 4, value);
2815
- };
2816
-
2817
-
2818
- /**
2819
- * optional SiteMode mode = 5;
2820
- * @return {!proto.lansweeper.multitenant.v1.SiteMode}
2821
- */
2822
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.getMode = function() {
2823
- return /** @type {!proto.lansweeper.multitenant.v1.SiteMode} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2824
- };
2825
-
2826
-
2827
- /**
2828
- * @param {!proto.lansweeper.multitenant.v1.SiteMode} value
2829
- * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
2830
- */
2831
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.setMode = function(value) {
2832
- return jspb.Message.setProto3EnumField(this, 5, value);
2833
- };
2834
-
2835
-
2836
- /**
2837
- * optional PreviewAccount created_by = 6;
2838
- * @return {?proto.lansweeper.multitenant.v1.PreviewAccount}
2839
+ * @return {!proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest} returns this
2839
2840
  */
2840
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.getCreatedBy = function() {
2841
- return /** @type{?proto.lansweeper.multitenant.v1.PreviewAccount} */ (
2842
- jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.PreviewAccount, 6));
2843
- };
2844
-
2845
-
2846
- /**
2847
- * @param {?proto.lansweeper.multitenant.v1.PreviewAccount|undefined} value
2848
- * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
2849
- */
2850
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.setCreatedBy = function(value) {
2851
- return jspb.Message.setWrapperField(this, 6, value);
2841
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsRequest.prototype.setSearch = function(value) {
2842
+ return jspb.Message.setProto3StringField(this, 2, value);
2852
2843
  };
2853
2844
 
2854
2845
 
2855
- /**
2856
- * Clears the message field making it undefined.
2857
- * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
2858
- */
2859
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.clearCreatedBy = function() {
2860
- return this.setCreatedBy(undefined);
2861
- };
2862
-
2863
2846
 
2864
2847
  /**
2865
- * Returns whether this field is set.
2866
- * @return {boolean}
2848
+ * List of repeated fields within this message type.
2849
+ * @private {!Array<number>}
2850
+ * @const
2867
2851
  */
2868
- proto.lansweeper.multitenant.v1.PreviewSite.prototype.hasCreatedBy = function() {
2869
- return jspb.Message.getField(this, 6) != null;
2870
- };
2871
-
2872
-
2852
+ proto.lansweeper.multitenant.v1.SearchPreviewAccountsBySiteIdsResponse.repeatedFields_ = [1];
2873
2853
 
2874
2854
 
2875
2855
 
@@ -2886,8 +2866,778 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2886
2866
  * http://goto/soy-param-migration
2887
2867
  * @return {!Object}
2888
2868
  */
2889
- proto.lansweeper.multitenant.v1.PatchSiteModeRequest.prototype.toObject = function(opt_includeInstance) {
2890
- return proto.lansweeper.multitenant.v1.PatchSiteModeRequest.toObject(opt_includeInstance, this);
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
+
3323
+
3324
+
3325
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3326
+ /**
3327
+ * Creates an object representation of this proto.
3328
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3329
+ * Optional fields that are not set will be set to undefined.
3330
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3331
+ * For the list of reserved names please see:
3332
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3333
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3334
+ * JSPB instance for transitional soy proto support:
3335
+ * http://goto/soy-param-migration
3336
+ * @return {!Object}
3337
+ */
3338
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.toObject = function(opt_includeInstance) {
3339
+ return proto.lansweeper.multitenant.v1.PreviewSite.toObject(opt_includeInstance, this);
3340
+ };
3341
+
3342
+
3343
+ /**
3344
+ * Static version of the {@see toObject} method.
3345
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3346
+ * the JSPB instance for transitional soy proto support:
3347
+ * http://goto/soy-param-migration
3348
+ * @param {!proto.lansweeper.multitenant.v1.PreviewSite} msg The msg instance to transform.
3349
+ * @return {!Object}
3350
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3351
+ */
3352
+ proto.lansweeper.multitenant.v1.PreviewSite.toObject = function(includeInstance, msg) {
3353
+ var f, obj = {
3354
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
3355
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
3356
+ companyName: jspb.Message.getFieldWithDefault(msg, 3, ""),
3357
+ logoUrl: jspb.Message.getFieldWithDefault(msg, 4, ""),
3358
+ mode: jspb.Message.getFieldWithDefault(msg, 5, 0),
3359
+ createdBy: (f = msg.getCreatedBy()) && proto.lansweeper.multitenant.v1.PreviewAccount.toObject(includeInstance, f)
3360
+ };
3361
+
3362
+ if (includeInstance) {
3363
+ obj.$jspbMessageInstance = msg;
3364
+ }
3365
+ return obj;
3366
+ };
3367
+ }
3368
+
3369
+
3370
+ /**
3371
+ * Deserializes binary data (in protobuf wire format).
3372
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3373
+ * @return {!proto.lansweeper.multitenant.v1.PreviewSite}
3374
+ */
3375
+ proto.lansweeper.multitenant.v1.PreviewSite.deserializeBinary = function(bytes) {
3376
+ var reader = new jspb.BinaryReader(bytes);
3377
+ var msg = new proto.lansweeper.multitenant.v1.PreviewSite;
3378
+ return proto.lansweeper.multitenant.v1.PreviewSite.deserializeBinaryFromReader(msg, reader);
3379
+ };
3380
+
3381
+
3382
+ /**
3383
+ * Deserializes binary data (in protobuf wire format) from the
3384
+ * given reader into the given message object.
3385
+ * @param {!proto.lansweeper.multitenant.v1.PreviewSite} msg The message object to deserialize into.
3386
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3387
+ * @return {!proto.lansweeper.multitenant.v1.PreviewSite}
3388
+ */
3389
+ proto.lansweeper.multitenant.v1.PreviewSite.deserializeBinaryFromReader = function(msg, reader) {
3390
+ while (reader.nextField()) {
3391
+ if (reader.isEndGroup()) {
3392
+ break;
3393
+ }
3394
+ var field = reader.getFieldNumber();
3395
+ switch (field) {
3396
+ case 1:
3397
+ var value = /** @type {string} */ (reader.readString());
3398
+ msg.setId(value);
3399
+ break;
3400
+ case 2:
3401
+ var value = /** @type {string} */ (reader.readString());
3402
+ msg.setName(value);
3403
+ break;
3404
+ case 3:
3405
+ var value = /** @type {string} */ (reader.readString());
3406
+ msg.setCompanyName(value);
3407
+ break;
3408
+ case 4:
3409
+ var value = /** @type {string} */ (reader.readString());
3410
+ msg.setLogoUrl(value);
3411
+ break;
3412
+ case 5:
3413
+ var value = /** @type {!proto.lansweeper.multitenant.v1.SiteMode} */ (reader.readEnum());
3414
+ msg.setMode(value);
3415
+ break;
3416
+ case 6:
3417
+ var value = new proto.lansweeper.multitenant.v1.PreviewAccount;
3418
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.PreviewAccount.deserializeBinaryFromReader);
3419
+ msg.setCreatedBy(value);
3420
+ break;
3421
+ default:
3422
+ reader.skipField();
3423
+ break;
3424
+ }
3425
+ }
3426
+ return msg;
3427
+ };
3428
+
3429
+
3430
+ /**
3431
+ * Serializes the message to binary data (in protobuf wire format).
3432
+ * @return {!Uint8Array}
3433
+ */
3434
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.serializeBinary = function() {
3435
+ var writer = new jspb.BinaryWriter();
3436
+ proto.lansweeper.multitenant.v1.PreviewSite.serializeBinaryToWriter(this, writer);
3437
+ return writer.getResultBuffer();
3438
+ };
3439
+
3440
+
3441
+ /**
3442
+ * Serializes the given message to binary data (in protobuf wire
3443
+ * format), writing to the given BinaryWriter.
3444
+ * @param {!proto.lansweeper.multitenant.v1.PreviewSite} message
3445
+ * @param {!jspb.BinaryWriter} writer
3446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3447
+ */
3448
+ proto.lansweeper.multitenant.v1.PreviewSite.serializeBinaryToWriter = function(message, writer) {
3449
+ var f = undefined;
3450
+ f = message.getId();
3451
+ if (f.length > 0) {
3452
+ writer.writeString(
3453
+ 1,
3454
+ f
3455
+ );
3456
+ }
3457
+ f = message.getName();
3458
+ if (f.length > 0) {
3459
+ writer.writeString(
3460
+ 2,
3461
+ f
3462
+ );
3463
+ }
3464
+ f = message.getCompanyName();
3465
+ if (f.length > 0) {
3466
+ writer.writeString(
3467
+ 3,
3468
+ f
3469
+ );
3470
+ }
3471
+ f = message.getLogoUrl();
3472
+ if (f.length > 0) {
3473
+ writer.writeString(
3474
+ 4,
3475
+ f
3476
+ );
3477
+ }
3478
+ f = message.getMode();
3479
+ if (f !== 0.0) {
3480
+ writer.writeEnum(
3481
+ 5,
3482
+ f
3483
+ );
3484
+ }
3485
+ f = message.getCreatedBy();
3486
+ if (f != null) {
3487
+ writer.writeMessage(
3488
+ 6,
3489
+ f,
3490
+ proto.lansweeper.multitenant.v1.PreviewAccount.serializeBinaryToWriter
3491
+ );
3492
+ }
3493
+ };
3494
+
3495
+
3496
+ /**
3497
+ * optional string id = 1;
3498
+ * @return {string}
3499
+ */
3500
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.getId = function() {
3501
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3502
+ };
3503
+
3504
+
3505
+ /**
3506
+ * @param {string} value
3507
+ * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
3508
+ */
3509
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.setId = function(value) {
3510
+ return jspb.Message.setProto3StringField(this, 1, value);
3511
+ };
3512
+
3513
+
3514
+ /**
3515
+ * optional string name = 2;
3516
+ * @return {string}
3517
+ */
3518
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.getName = function() {
3519
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3520
+ };
3521
+
3522
+
3523
+ /**
3524
+ * @param {string} value
3525
+ * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
3526
+ */
3527
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.setName = function(value) {
3528
+ return jspb.Message.setProto3StringField(this, 2, value);
3529
+ };
3530
+
3531
+
3532
+ /**
3533
+ * optional string company_name = 3;
3534
+ * @return {string}
3535
+ */
3536
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.getCompanyName = function() {
3537
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3538
+ };
3539
+
3540
+
3541
+ /**
3542
+ * @param {string} value
3543
+ * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
3544
+ */
3545
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.setCompanyName = function(value) {
3546
+ return jspb.Message.setProto3StringField(this, 3, value);
3547
+ };
3548
+
3549
+
3550
+ /**
3551
+ * optional string logo_url = 4;
3552
+ * @return {string}
3553
+ */
3554
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.getLogoUrl = function() {
3555
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3556
+ };
3557
+
3558
+
3559
+ /**
3560
+ * @param {string} value
3561
+ * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
3562
+ */
3563
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.setLogoUrl = function(value) {
3564
+ return jspb.Message.setProto3StringField(this, 4, value);
3565
+ };
3566
+
3567
+
3568
+ /**
3569
+ * optional SiteMode mode = 5;
3570
+ * @return {!proto.lansweeper.multitenant.v1.SiteMode}
3571
+ */
3572
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.getMode = function() {
3573
+ return /** @type {!proto.lansweeper.multitenant.v1.SiteMode} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
3574
+ };
3575
+
3576
+
3577
+ /**
3578
+ * @param {!proto.lansweeper.multitenant.v1.SiteMode} value
3579
+ * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
3580
+ */
3581
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.setMode = function(value) {
3582
+ return jspb.Message.setProto3EnumField(this, 5, value);
3583
+ };
3584
+
3585
+
3586
+ /**
3587
+ * optional PreviewAccount created_by = 6;
3588
+ * @return {?proto.lansweeper.multitenant.v1.PreviewAccount}
3589
+ */
3590
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.getCreatedBy = function() {
3591
+ return /** @type{?proto.lansweeper.multitenant.v1.PreviewAccount} */ (
3592
+ jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.PreviewAccount, 6));
3593
+ };
3594
+
3595
+
3596
+ /**
3597
+ * @param {?proto.lansweeper.multitenant.v1.PreviewAccount|undefined} value
3598
+ * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
3599
+ */
3600
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.setCreatedBy = function(value) {
3601
+ return jspb.Message.setWrapperField(this, 6, value);
3602
+ };
3603
+
3604
+
3605
+ /**
3606
+ * Clears the message field making it undefined.
3607
+ * @return {!proto.lansweeper.multitenant.v1.PreviewSite} returns this
3608
+ */
3609
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.clearCreatedBy = function() {
3610
+ return this.setCreatedBy(undefined);
3611
+ };
3612
+
3613
+
3614
+ /**
3615
+ * Returns whether this field is set.
3616
+ * @return {boolean}
3617
+ */
3618
+ proto.lansweeper.multitenant.v1.PreviewSite.prototype.hasCreatedBy = function() {
3619
+ return jspb.Message.getField(this, 6) != null;
3620
+ };
3621
+
3622
+
3623
+
3624
+
3625
+
3626
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3627
+ /**
3628
+ * Creates an object representation of this proto.
3629
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3630
+ * Optional fields that are not set will be set to undefined.
3631
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3632
+ * For the list of reserved names please see:
3633
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3634
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3635
+ * JSPB instance for transitional soy proto support:
3636
+ * http://goto/soy-param-migration
3637
+ * @return {!Object}
3638
+ */
3639
+ proto.lansweeper.multitenant.v1.PatchSiteModeRequest.prototype.toObject = function(opt_includeInstance) {
3640
+ return proto.lansweeper.multitenant.v1.PatchSiteModeRequest.toObject(opt_includeInstance, this);
2891
3641
  };
2892
3642
 
2893
3643
 
@@ -3434,7 +4184,8 @@ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.prototype.toObjec
3434
4184
  proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.toObject = function(includeInstance, msg) {
3435
4185
  var f, obj = {
3436
4186
  accountId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3437
- includeBlocks: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
4187
+ includeBlocks: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
4188
+ beingOwnerOrAdministrator: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
3438
4189
  };
3439
4190
 
3440
4191
  if (includeInstance) {
@@ -3479,6 +4230,10 @@ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.deserializeBinary
3479
4230
  var value = /** @type {boolean} */ (reader.readBool());
3480
4231
  msg.setIncludeBlocks(value);
3481
4232
  break;
4233
+ case 3:
4234
+ var value = /** @type {boolean} */ (reader.readBool());
4235
+ msg.setBeingOwnerOrAdministrator(value);
4236
+ break;
3482
4237
  default:
3483
4238
  reader.skipField();
3484
4239
  break;
@@ -3522,6 +4277,13 @@ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.serializeBinaryTo
3522
4277
  f
3523
4278
  );
3524
4279
  }
4280
+ f = message.getBeingOwnerOrAdministrator();
4281
+ if (f) {
4282
+ writer.writeBool(
4283
+ 3,
4284
+ f
4285
+ );
4286
+ }
3525
4287
  };
3526
4288
 
3527
4289
 
@@ -3561,6 +4323,24 @@ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.prototype.setIncl
3561
4323
  };
3562
4324
 
3563
4325
 
4326
+ /**
4327
+ * optional bool being_owner_or_administrator = 3;
4328
+ * @return {boolean}
4329
+ */
4330
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.prototype.getBeingOwnerOrAdministrator = function() {
4331
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
4332
+ };
4333
+
4334
+
4335
+ /**
4336
+ * @param {boolean} value
4337
+ * @return {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest} returns this
4338
+ */
4339
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.prototype.setBeingOwnerOrAdministrator = function(value) {
4340
+ return jspb.Message.setProto3BooleanField(this, 3, value);
4341
+ };
4342
+
4343
+
3564
4344
 
3565
4345
  /**
3566
4346
  * List of repeated fields within this message type.