@lansweeper/multitenant-api-grpc 0.1.0 → 0.1.1

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.
@@ -19,6 +19,8 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdR
19
19
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse', null, global);
20
20
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallRequest', null, global);
21
21
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallResponse', null, global);
22
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest', null, global);
23
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse', null, global);
22
24
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest', null, global);
23
25
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse', null, global);
24
26
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest', null, global);
@@ -26,7 +28,9 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountResponse', nu
26
28
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest', null, global);
27
29
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse', null, global);
28
30
  goog.exportSymbol('proto.lansweeper.multitenant.v1.Install', null, global);
31
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.Install.InstallState', null, global);
29
32
  goog.exportSymbol('proto.lansweeper.multitenant.v1.InstallCredentials', null, global);
33
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.InstallStateValue', null, global);
30
34
  goog.exportSymbol('proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest', null, global);
31
35
  goog.exportSymbol('proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse', null, global);
32
36
  goog.exportSymbol('proto.lansweeper.multitenant.v1.PatchSiteModeRequest', null, global);
@@ -34,6 +38,9 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.PatchSiteModeResponse', null,
34
38
  goog.exportSymbol('proto.lansweeper.multitenant.v1.PreviewAccount', null, global);
35
39
  goog.exportSymbol('proto.lansweeper.multitenant.v1.PreviewSite', null, global);
36
40
  goog.exportSymbol('proto.lansweeper.multitenant.v1.Profile', null, global);
41
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest', null, global);
42
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse', null, global);
43
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result', null, global);
37
44
  goog.exportSymbol('proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest', null, global);
38
45
  goog.exportSymbol('proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse', null, global);
39
46
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SiteMode', null, global);
@@ -294,6 +301,27 @@ if (goog.DEBUG && !COMPILED) {
294
301
  */
295
302
  proto.lansweeper.multitenant.v1.Install.displayName = 'proto.lansweeper.multitenant.v1.Install';
296
303
  }
304
+ /**
305
+ * Generated by JsPbCodeGenerator.
306
+ * @param {Array=} opt_data Optional initial data array, typically from a
307
+ * server response, or constructed directly in Javascript. The array is used
308
+ * in place and becomes part of the constructed object. It is not cloned.
309
+ * If no data is provided, the constructed object will be empty, but still
310
+ * valid.
311
+ * @extends {jspb.Message}
312
+ * @constructor
313
+ */
314
+ proto.lansweeper.multitenant.v1.Install.InstallState = function(opt_data) {
315
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
316
+ };
317
+ goog.inherits(proto.lansweeper.multitenant.v1.Install.InstallState, jspb.Message);
318
+ if (goog.DEBUG && !COMPILED) {
319
+ /**
320
+ * @public
321
+ * @override
322
+ */
323
+ proto.lansweeper.multitenant.v1.Install.InstallState.displayName = 'proto.lansweeper.multitenant.v1.Install.InstallState';
324
+ }
297
325
  /**
298
326
  * Generated by JsPbCodeGenerator.
299
327
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -588,6 +616,111 @@ if (goog.DEBUG && !COMPILED) {
588
616
  */
589
617
  proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.displayName = 'proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse';
590
618
  }
619
+ /**
620
+ * Generated by JsPbCodeGenerator.
621
+ * @param {Array=} opt_data Optional initial data array, typically from a
622
+ * server response, or constructed directly in Javascript. The array is used
623
+ * in place and becomes part of the constructed object. It is not cloned.
624
+ * If no data is provided, the constructed object will be empty, but still
625
+ * valid.
626
+ * @extends {jspb.Message}
627
+ * @constructor
628
+ */
629
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest = function(opt_data) {
630
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.repeatedFields_, null);
631
+ };
632
+ goog.inherits(proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest, jspb.Message);
633
+ if (goog.DEBUG && !COMPILED) {
634
+ /**
635
+ * @public
636
+ * @override
637
+ */
638
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.displayName = 'proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest';
639
+ }
640
+ /**
641
+ * Generated by JsPbCodeGenerator.
642
+ * @param {Array=} opt_data Optional initial data array, typically from a
643
+ * server response, or constructed directly in Javascript. The array is used
644
+ * in place and becomes part of the constructed object. It is not cloned.
645
+ * If no data is provided, the constructed object will be empty, but still
646
+ * valid.
647
+ * @extends {jspb.Message}
648
+ * @constructor
649
+ */
650
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse = function(opt_data) {
651
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.repeatedFields_, null);
652
+ };
653
+ goog.inherits(proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse, jspb.Message);
654
+ if (goog.DEBUG && !COMPILED) {
655
+ /**
656
+ * @public
657
+ * @override
658
+ */
659
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.displayName = 'proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse';
660
+ }
661
+ /**
662
+ * Generated by JsPbCodeGenerator.
663
+ * @param {Array=} opt_data Optional initial data array, typically from a
664
+ * server response, or constructed directly in Javascript. The array is used
665
+ * in place and becomes part of the constructed object. It is not cloned.
666
+ * If no data is provided, the constructed object will be empty, but still
667
+ * valid.
668
+ * @extends {jspb.Message}
669
+ * @constructor
670
+ */
671
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result = function(opt_data) {
672
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
673
+ };
674
+ goog.inherits(proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result, jspb.Message);
675
+ if (goog.DEBUG && !COMPILED) {
676
+ /**
677
+ * @public
678
+ * @override
679
+ */
680
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.displayName = 'proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result';
681
+ }
682
+ /**
683
+ * Generated by JsPbCodeGenerator.
684
+ * @param {Array=} opt_data Optional initial data array, typically from a
685
+ * server response, or constructed directly in Javascript. The array is used
686
+ * in place and becomes part of the constructed object. It is not cloned.
687
+ * If no data is provided, the constructed object will be empty, but still
688
+ * valid.
689
+ * @extends {jspb.Message}
690
+ * @constructor
691
+ */
692
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest = function(opt_data) {
693
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
694
+ };
695
+ goog.inherits(proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest, jspb.Message);
696
+ if (goog.DEBUG && !COMPILED) {
697
+ /**
698
+ * @public
699
+ * @override
700
+ */
701
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.displayName = 'proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest';
702
+ }
703
+ /**
704
+ * Generated by JsPbCodeGenerator.
705
+ * @param {Array=} opt_data Optional initial data array, typically from a
706
+ * server response, or constructed directly in Javascript. The array is used
707
+ * in place and becomes part of the constructed object. It is not cloned.
708
+ * If no data is provided, the constructed object will be empty, but still
709
+ * valid.
710
+ * @extends {jspb.Message}
711
+ * @constructor
712
+ */
713
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse = function(opt_data) {
714
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.repeatedFields_, null);
715
+ };
716
+ goog.inherits(proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse, jspb.Message);
717
+ if (goog.DEBUG && !COMPILED) {
718
+ /**
719
+ * @public
720
+ * @override
721
+ */
722
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.displayName = 'proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse';
723
+ }
591
724
 
592
725
 
593
726
 
@@ -2609,7 +2742,9 @@ proto.lansweeper.multitenant.v1.Install.toObject = function(includeInstance, msg
2609
2742
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
2610
2743
  status: jspb.Message.getFieldWithDefault(msg, 5, ""),
2611
2744
  fqdn: jspb.Message.getFieldWithDefault(msg, 6, ""),
2612
- createdById: jspb.Message.getFieldWithDefault(msg, 7, "")
2745
+ createdById: jspb.Message.getFieldWithDefault(msg, 7, ""),
2746
+ state: jspb.Message.getFieldWithDefault(msg, 9, ""),
2747
+ createdAt: jspb.Message.getFieldWithDefault(msg, 10, "")
2613
2748
  };
2614
2749
 
2615
2750
  if (includeInstance) {
@@ -2678,6 +2813,14 @@ proto.lansweeper.multitenant.v1.Install.deserializeBinaryFromReader = function(m
2678
2813
  var value = /** @type {string} */ (reader.readString());
2679
2814
  msg.setCreatedById(value);
2680
2815
  break;
2816
+ case 9:
2817
+ var value = /** @type {string} */ (reader.readString());
2818
+ msg.setState(value);
2819
+ break;
2820
+ case 10:
2821
+ var value = /** @type {string} */ (reader.readString());
2822
+ msg.setCreatedAt(value);
2823
+ break;
2681
2824
  default:
2682
2825
  reader.skipField();
2683
2826
  break;
@@ -2763,6 +2906,150 @@ proto.lansweeper.multitenant.v1.Install.serializeBinaryToWriter = function(messa
2763
2906
  f
2764
2907
  );
2765
2908
  }
2909
+ f = message.getState();
2910
+ if (f.length > 0) {
2911
+ writer.writeString(
2912
+ 9,
2913
+ f
2914
+ );
2915
+ }
2916
+ f = message.getCreatedAt();
2917
+ if (f.length > 0) {
2918
+ writer.writeString(
2919
+ 10,
2920
+ f
2921
+ );
2922
+ }
2923
+ };
2924
+
2925
+
2926
+
2927
+
2928
+
2929
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2930
+ /**
2931
+ * Creates an object representation of this proto.
2932
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2933
+ * Optional fields that are not set will be set to undefined.
2934
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2935
+ * For the list of reserved names please see:
2936
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2937
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2938
+ * JSPB instance for transitional soy proto support:
2939
+ * http://goto/soy-param-migration
2940
+ * @return {!Object}
2941
+ */
2942
+ proto.lansweeper.multitenant.v1.Install.InstallState.prototype.toObject = function(opt_includeInstance) {
2943
+ return proto.lansweeper.multitenant.v1.Install.InstallState.toObject(opt_includeInstance, this);
2944
+ };
2945
+
2946
+
2947
+ /**
2948
+ * Static version of the {@see toObject} method.
2949
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2950
+ * the JSPB instance for transitional soy proto support:
2951
+ * http://goto/soy-param-migration
2952
+ * @param {!proto.lansweeper.multitenant.v1.Install.InstallState} msg The msg instance to transform.
2953
+ * @return {!Object}
2954
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2955
+ */
2956
+ proto.lansweeper.multitenant.v1.Install.InstallState.toObject = function(includeInstance, msg) {
2957
+ var f, obj = {
2958
+ value: jspb.Message.getFieldWithDefault(msg, 1, 0)
2959
+ };
2960
+
2961
+ if (includeInstance) {
2962
+ obj.$jspbMessageInstance = msg;
2963
+ }
2964
+ return obj;
2965
+ };
2966
+ }
2967
+
2968
+
2969
+ /**
2970
+ * Deserializes binary data (in protobuf wire format).
2971
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2972
+ * @return {!proto.lansweeper.multitenant.v1.Install.InstallState}
2973
+ */
2974
+ proto.lansweeper.multitenant.v1.Install.InstallState.deserializeBinary = function(bytes) {
2975
+ var reader = new jspb.BinaryReader(bytes);
2976
+ var msg = new proto.lansweeper.multitenant.v1.Install.InstallState;
2977
+ return proto.lansweeper.multitenant.v1.Install.InstallState.deserializeBinaryFromReader(msg, reader);
2978
+ };
2979
+
2980
+
2981
+ /**
2982
+ * Deserializes binary data (in protobuf wire format) from the
2983
+ * given reader into the given message object.
2984
+ * @param {!proto.lansweeper.multitenant.v1.Install.InstallState} msg The message object to deserialize into.
2985
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2986
+ * @return {!proto.lansweeper.multitenant.v1.Install.InstallState}
2987
+ */
2988
+ proto.lansweeper.multitenant.v1.Install.InstallState.deserializeBinaryFromReader = function(msg, reader) {
2989
+ while (reader.nextField()) {
2990
+ if (reader.isEndGroup()) {
2991
+ break;
2992
+ }
2993
+ var field = reader.getFieldNumber();
2994
+ switch (field) {
2995
+ case 1:
2996
+ var value = /** @type {!proto.lansweeper.multitenant.v1.InstallStateValue} */ (reader.readEnum());
2997
+ msg.setValue(value);
2998
+ break;
2999
+ default:
3000
+ reader.skipField();
3001
+ break;
3002
+ }
3003
+ }
3004
+ return msg;
3005
+ };
3006
+
3007
+
3008
+ /**
3009
+ * Serializes the message to binary data (in protobuf wire format).
3010
+ * @return {!Uint8Array}
3011
+ */
3012
+ proto.lansweeper.multitenant.v1.Install.InstallState.prototype.serializeBinary = function() {
3013
+ var writer = new jspb.BinaryWriter();
3014
+ proto.lansweeper.multitenant.v1.Install.InstallState.serializeBinaryToWriter(this, writer);
3015
+ return writer.getResultBuffer();
3016
+ };
3017
+
3018
+
3019
+ /**
3020
+ * Serializes the given message to binary data (in protobuf wire
3021
+ * format), writing to the given BinaryWriter.
3022
+ * @param {!proto.lansweeper.multitenant.v1.Install.InstallState} message
3023
+ * @param {!jspb.BinaryWriter} writer
3024
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3025
+ */
3026
+ proto.lansweeper.multitenant.v1.Install.InstallState.serializeBinaryToWriter = function(message, writer) {
3027
+ var f = undefined;
3028
+ f = message.getValue();
3029
+ if (f !== 0.0) {
3030
+ writer.writeEnum(
3031
+ 1,
3032
+ f
3033
+ );
3034
+ }
3035
+ };
3036
+
3037
+
3038
+ /**
3039
+ * optional InstallStateValue value = 1;
3040
+ * @return {!proto.lansweeper.multitenant.v1.InstallStateValue}
3041
+ */
3042
+ proto.lansweeper.multitenant.v1.Install.InstallState.prototype.getValue = function() {
3043
+ return /** @type {!proto.lansweeper.multitenant.v1.InstallStateValue} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3044
+ };
3045
+
3046
+
3047
+ /**
3048
+ * @param {!proto.lansweeper.multitenant.v1.InstallStateValue} value
3049
+ * @return {!proto.lansweeper.multitenant.v1.Install.InstallState} returns this
3050
+ */
3051
+ proto.lansweeper.multitenant.v1.Install.InstallState.prototype.setValue = function(value) {
3052
+ return jspb.Message.setProto3EnumField(this, 1, value);
2766
3053
  };
2767
3054
 
2768
3055
 
@@ -2910,6 +3197,42 @@ proto.lansweeper.multitenant.v1.Install.prototype.setCreatedById = function(valu
2910
3197
  };
2911
3198
 
2912
3199
 
3200
+ /**
3201
+ * optional string state = 9;
3202
+ * @return {string}
3203
+ */
3204
+ proto.lansweeper.multitenant.v1.Install.prototype.getState = function() {
3205
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3206
+ };
3207
+
3208
+
3209
+ /**
3210
+ * @param {string} value
3211
+ * @return {!proto.lansweeper.multitenant.v1.Install} returns this
3212
+ */
3213
+ proto.lansweeper.multitenant.v1.Install.prototype.setState = function(value) {
3214
+ return jspb.Message.setProto3StringField(this, 9, value);
3215
+ };
3216
+
3217
+
3218
+ /**
3219
+ * optional string created_at = 10;
3220
+ * @return {string}
3221
+ */
3222
+ proto.lansweeper.multitenant.v1.Install.prototype.getCreatedAt = function() {
3223
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3224
+ };
3225
+
3226
+
3227
+ /**
3228
+ * @param {string} value
3229
+ * @return {!proto.lansweeper.multitenant.v1.Install} returns this
3230
+ */
3231
+ proto.lansweeper.multitenant.v1.Install.prototype.setCreatedAt = function(value) {
3232
+ return jspb.Message.setProto3StringField(this, 10, value);
3233
+ };
3234
+
3235
+
2913
3236
 
2914
3237
 
2915
3238
 
@@ -5555,9 +5878,865 @@ proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.prototype.setSuc
5555
5878
  };
5556
5879
 
5557
5880
 
5881
+
5558
5882
  /**
5559
- * @enum {number}
5560
- */
5883
+ * List of repeated fields within this message type.
5884
+ * @private {!Array<number>}
5885
+ * @const
5886
+ */
5887
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.repeatedFields_ = [2];
5888
+
5889
+
5890
+
5891
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5892
+ /**
5893
+ * Creates an object representation of this proto.
5894
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5895
+ * Optional fields that are not set will be set to undefined.
5896
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5897
+ * For the list of reserved names please see:
5898
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5899
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5900
+ * JSPB instance for transitional soy proto support:
5901
+ * http://goto/soy-param-migration
5902
+ * @return {!Object}
5903
+ */
5904
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.prototype.toObject = function(opt_includeInstance) {
5905
+ return proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.toObject(opt_includeInstance, this);
5906
+ };
5907
+
5908
+
5909
+ /**
5910
+ * Static version of the {@see toObject} method.
5911
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5912
+ * the JSPB instance for transitional soy proto support:
5913
+ * http://goto/soy-param-migration
5914
+ * @param {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest} msg The msg instance to transform.
5915
+ * @return {!Object}
5916
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5917
+ */
5918
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.toObject = function(includeInstance, msg) {
5919
+ var f, obj = {
5920
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5921
+ installIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
5922
+ userId: jspb.Message.getFieldWithDefault(msg, 3, "")
5923
+ };
5924
+
5925
+ if (includeInstance) {
5926
+ obj.$jspbMessageInstance = msg;
5927
+ }
5928
+ return obj;
5929
+ };
5930
+ }
5931
+
5932
+
5933
+ /**
5934
+ * Deserializes binary data (in protobuf wire format).
5935
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5936
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest}
5937
+ */
5938
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.deserializeBinary = function(bytes) {
5939
+ var reader = new jspb.BinaryReader(bytes);
5940
+ var msg = new proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest;
5941
+ return proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.deserializeBinaryFromReader(msg, reader);
5942
+ };
5943
+
5944
+
5945
+ /**
5946
+ * Deserializes binary data (in protobuf wire format) from the
5947
+ * given reader into the given message object.
5948
+ * @param {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest} msg The message object to deserialize into.
5949
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5950
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest}
5951
+ */
5952
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.deserializeBinaryFromReader = function(msg, reader) {
5953
+ while (reader.nextField()) {
5954
+ if (reader.isEndGroup()) {
5955
+ break;
5956
+ }
5957
+ var field = reader.getFieldNumber();
5958
+ switch (field) {
5959
+ case 1:
5960
+ var value = /** @type {string} */ (reader.readString());
5961
+ msg.setSiteId(value);
5962
+ break;
5963
+ case 2:
5964
+ var value = /** @type {string} */ (reader.readString());
5965
+ msg.addInstallIds(value);
5966
+ break;
5967
+ case 3:
5968
+ var value = /** @type {string} */ (reader.readString());
5969
+ msg.setUserId(value);
5970
+ break;
5971
+ default:
5972
+ reader.skipField();
5973
+ break;
5974
+ }
5975
+ }
5976
+ return msg;
5977
+ };
5978
+
5979
+
5980
+ /**
5981
+ * Serializes the message to binary data (in protobuf wire format).
5982
+ * @return {!Uint8Array}
5983
+ */
5984
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.prototype.serializeBinary = function() {
5985
+ var writer = new jspb.BinaryWriter();
5986
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.serializeBinaryToWriter(this, writer);
5987
+ return writer.getResultBuffer();
5988
+ };
5989
+
5990
+
5991
+ /**
5992
+ * Serializes the given message to binary data (in protobuf wire
5993
+ * format), writing to the given BinaryWriter.
5994
+ * @param {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest} message
5995
+ * @param {!jspb.BinaryWriter} writer
5996
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5997
+ */
5998
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.serializeBinaryToWriter = function(message, writer) {
5999
+ var f = undefined;
6000
+ f = message.getSiteId();
6001
+ if (f.length > 0) {
6002
+ writer.writeString(
6003
+ 1,
6004
+ f
6005
+ );
6006
+ }
6007
+ f = message.getInstallIdsList();
6008
+ if (f.length > 0) {
6009
+ writer.writeRepeatedString(
6010
+ 2,
6011
+ f
6012
+ );
6013
+ }
6014
+ f = message.getUserId();
6015
+ if (f.length > 0) {
6016
+ writer.writeString(
6017
+ 3,
6018
+ f
6019
+ );
6020
+ }
6021
+ };
6022
+
6023
+
6024
+ /**
6025
+ * optional string site_id = 1;
6026
+ * @return {string}
6027
+ */
6028
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.prototype.getSiteId = function() {
6029
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6030
+ };
6031
+
6032
+
6033
+ /**
6034
+ * @param {string} value
6035
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest} returns this
6036
+ */
6037
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.prototype.setSiteId = function(value) {
6038
+ return jspb.Message.setProto3StringField(this, 1, value);
6039
+ };
6040
+
6041
+
6042
+ /**
6043
+ * repeated string install_ids = 2;
6044
+ * @return {!Array<string>}
6045
+ */
6046
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.prototype.getInstallIdsList = function() {
6047
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
6048
+ };
6049
+
6050
+
6051
+ /**
6052
+ * @param {!Array<string>} value
6053
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest} returns this
6054
+ */
6055
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.prototype.setInstallIdsList = function(value) {
6056
+ return jspb.Message.setField(this, 2, value || []);
6057
+ };
6058
+
6059
+
6060
+ /**
6061
+ * @param {string} value
6062
+ * @param {number=} opt_index
6063
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest} returns this
6064
+ */
6065
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.prototype.addInstallIds = function(value, opt_index) {
6066
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
6067
+ };
6068
+
6069
+
6070
+ /**
6071
+ * Clears the list making it empty but non-null.
6072
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest} returns this
6073
+ */
6074
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.prototype.clearInstallIdsList = function() {
6075
+ return this.setInstallIdsList([]);
6076
+ };
6077
+
6078
+
6079
+ /**
6080
+ * optional string user_id = 3;
6081
+ * @return {string}
6082
+ */
6083
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.prototype.getUserId = function() {
6084
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6085
+ };
6086
+
6087
+
6088
+ /**
6089
+ * @param {string} value
6090
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest} returns this
6091
+ */
6092
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdRequest.prototype.setUserId = function(value) {
6093
+ return jspb.Message.setProto3StringField(this, 3, value);
6094
+ };
6095
+
6096
+
6097
+
6098
+ /**
6099
+ * List of repeated fields within this message type.
6100
+ * @private {!Array<number>}
6101
+ * @const
6102
+ */
6103
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.repeatedFields_ = [1];
6104
+
6105
+
6106
+
6107
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6108
+ /**
6109
+ * Creates an object representation of this proto.
6110
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6111
+ * Optional fields that are not set will be set to undefined.
6112
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6113
+ * For the list of reserved names please see:
6114
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6115
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6116
+ * JSPB instance for transitional soy proto support:
6117
+ * http://goto/soy-param-migration
6118
+ * @return {!Object}
6119
+ */
6120
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.prototype.toObject = function(opt_includeInstance) {
6121
+ return proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.toObject(opt_includeInstance, this);
6122
+ };
6123
+
6124
+
6125
+ /**
6126
+ * Static version of the {@see toObject} method.
6127
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6128
+ * the JSPB instance for transitional soy proto support:
6129
+ * http://goto/soy-param-migration
6130
+ * @param {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse} msg The msg instance to transform.
6131
+ * @return {!Object}
6132
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6133
+ */
6134
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.toObject = function(includeInstance, msg) {
6135
+ var f, obj = {
6136
+ resultList: jspb.Message.toObjectList(msg.getResultList(),
6137
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.toObject, includeInstance)
6138
+ };
6139
+
6140
+ if (includeInstance) {
6141
+ obj.$jspbMessageInstance = msg;
6142
+ }
6143
+ return obj;
6144
+ };
6145
+ }
6146
+
6147
+
6148
+ /**
6149
+ * Deserializes binary data (in protobuf wire format).
6150
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6151
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse}
6152
+ */
6153
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.deserializeBinary = function(bytes) {
6154
+ var reader = new jspb.BinaryReader(bytes);
6155
+ var msg = new proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse;
6156
+ return proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.deserializeBinaryFromReader(msg, reader);
6157
+ };
6158
+
6159
+
6160
+ /**
6161
+ * Deserializes binary data (in protobuf wire format) from the
6162
+ * given reader into the given message object.
6163
+ * @param {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse} msg The message object to deserialize into.
6164
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6165
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse}
6166
+ */
6167
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.deserializeBinaryFromReader = function(msg, reader) {
6168
+ while (reader.nextField()) {
6169
+ if (reader.isEndGroup()) {
6170
+ break;
6171
+ }
6172
+ var field = reader.getFieldNumber();
6173
+ switch (field) {
6174
+ case 1:
6175
+ var value = new proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result;
6176
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.deserializeBinaryFromReader);
6177
+ msg.addResult(value);
6178
+ break;
6179
+ default:
6180
+ reader.skipField();
6181
+ break;
6182
+ }
6183
+ }
6184
+ return msg;
6185
+ };
6186
+
6187
+
6188
+ /**
6189
+ * Serializes the message to binary data (in protobuf wire format).
6190
+ * @return {!Uint8Array}
6191
+ */
6192
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.prototype.serializeBinary = function() {
6193
+ var writer = new jspb.BinaryWriter();
6194
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.serializeBinaryToWriter(this, writer);
6195
+ return writer.getResultBuffer();
6196
+ };
6197
+
6198
+
6199
+ /**
6200
+ * Serializes the given message to binary data (in protobuf wire
6201
+ * format), writing to the given BinaryWriter.
6202
+ * @param {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse} message
6203
+ * @param {!jspb.BinaryWriter} writer
6204
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6205
+ */
6206
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.serializeBinaryToWriter = function(message, writer) {
6207
+ var f = undefined;
6208
+ f = message.getResultList();
6209
+ if (f.length > 0) {
6210
+ writer.writeRepeatedMessage(
6211
+ 1,
6212
+ f,
6213
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.serializeBinaryToWriter
6214
+ );
6215
+ }
6216
+ };
6217
+
6218
+
6219
+
6220
+
6221
+
6222
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6223
+ /**
6224
+ * Creates an object representation of this proto.
6225
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6226
+ * Optional fields that are not set will be set to undefined.
6227
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6228
+ * For the list of reserved names please see:
6229
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6230
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6231
+ * JSPB instance for transitional soy proto support:
6232
+ * http://goto/soy-param-migration
6233
+ * @return {!Object}
6234
+ */
6235
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.prototype.toObject = function(opt_includeInstance) {
6236
+ return proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.toObject(opt_includeInstance, this);
6237
+ };
6238
+
6239
+
6240
+ /**
6241
+ * Static version of the {@see toObject} method.
6242
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6243
+ * the JSPB instance for transitional soy proto support:
6244
+ * http://goto/soy-param-migration
6245
+ * @param {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result} msg The msg instance to transform.
6246
+ * @return {!Object}
6247
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6248
+ */
6249
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.toObject = function(includeInstance, msg) {
6250
+ var f, obj = {
6251
+ installId: jspb.Message.getFieldWithDefault(msg, 1, ""),
6252
+ queued: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
6253
+ };
6254
+
6255
+ if (includeInstance) {
6256
+ obj.$jspbMessageInstance = msg;
6257
+ }
6258
+ return obj;
6259
+ };
6260
+ }
6261
+
6262
+
6263
+ /**
6264
+ * Deserializes binary data (in protobuf wire format).
6265
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6266
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result}
6267
+ */
6268
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.deserializeBinary = function(bytes) {
6269
+ var reader = new jspb.BinaryReader(bytes);
6270
+ var msg = new proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result;
6271
+ return proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.deserializeBinaryFromReader(msg, reader);
6272
+ };
6273
+
6274
+
6275
+ /**
6276
+ * Deserializes binary data (in protobuf wire format) from the
6277
+ * given reader into the given message object.
6278
+ * @param {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result} msg The message object to deserialize into.
6279
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6280
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result}
6281
+ */
6282
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.deserializeBinaryFromReader = function(msg, reader) {
6283
+ while (reader.nextField()) {
6284
+ if (reader.isEndGroup()) {
6285
+ break;
6286
+ }
6287
+ var field = reader.getFieldNumber();
6288
+ switch (field) {
6289
+ case 1:
6290
+ var value = /** @type {string} */ (reader.readString());
6291
+ msg.setInstallId(value);
6292
+ break;
6293
+ case 2:
6294
+ var value = /** @type {boolean} */ (reader.readBool());
6295
+ msg.setQueued(value);
6296
+ break;
6297
+ default:
6298
+ reader.skipField();
6299
+ break;
6300
+ }
6301
+ }
6302
+ return msg;
6303
+ };
6304
+
6305
+
6306
+ /**
6307
+ * Serializes the message to binary data (in protobuf wire format).
6308
+ * @return {!Uint8Array}
6309
+ */
6310
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.prototype.serializeBinary = function() {
6311
+ var writer = new jspb.BinaryWriter();
6312
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.serializeBinaryToWriter(this, writer);
6313
+ return writer.getResultBuffer();
6314
+ };
6315
+
6316
+
6317
+ /**
6318
+ * Serializes the given message to binary data (in protobuf wire
6319
+ * format), writing to the given BinaryWriter.
6320
+ * @param {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result} message
6321
+ * @param {!jspb.BinaryWriter} writer
6322
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6323
+ */
6324
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.serializeBinaryToWriter = function(message, writer) {
6325
+ var f = undefined;
6326
+ f = message.getInstallId();
6327
+ if (f.length > 0) {
6328
+ writer.writeString(
6329
+ 1,
6330
+ f
6331
+ );
6332
+ }
6333
+ f = message.getQueued();
6334
+ if (f) {
6335
+ writer.writeBool(
6336
+ 2,
6337
+ f
6338
+ );
6339
+ }
6340
+ };
6341
+
6342
+
6343
+ /**
6344
+ * optional string install_id = 1;
6345
+ * @return {string}
6346
+ */
6347
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.prototype.getInstallId = function() {
6348
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6349
+ };
6350
+
6351
+
6352
+ /**
6353
+ * @param {string} value
6354
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result} returns this
6355
+ */
6356
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.prototype.setInstallId = function(value) {
6357
+ return jspb.Message.setProto3StringField(this, 1, value);
6358
+ };
6359
+
6360
+
6361
+ /**
6362
+ * optional bool queued = 2;
6363
+ * @return {boolean}
6364
+ */
6365
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.prototype.getQueued = function() {
6366
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
6367
+ };
6368
+
6369
+
6370
+ /**
6371
+ * @param {boolean} value
6372
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result} returns this
6373
+ */
6374
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result.prototype.setQueued = function(value) {
6375
+ return jspb.Message.setProto3BooleanField(this, 2, value);
6376
+ };
6377
+
6378
+
6379
+ /**
6380
+ * repeated Result result = 1;
6381
+ * @return {!Array<!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result>}
6382
+ */
6383
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.prototype.getResultList = function() {
6384
+ return /** @type{!Array<!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result>} */ (
6385
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result, 1));
6386
+ };
6387
+
6388
+
6389
+ /**
6390
+ * @param {!Array<!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result>} value
6391
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse} returns this
6392
+ */
6393
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.prototype.setResultList = function(value) {
6394
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
6395
+ };
6396
+
6397
+
6398
+ /**
6399
+ * @param {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result=} opt_value
6400
+ * @param {number=} opt_index
6401
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result}
6402
+ */
6403
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.prototype.addResult = function(opt_value, opt_index) {
6404
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result, opt_index);
6405
+ };
6406
+
6407
+
6408
+ /**
6409
+ * Clears the list making it empty but non-null.
6410
+ * @return {!proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse} returns this
6411
+ */
6412
+ proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.prototype.clearResultList = function() {
6413
+ return this.setResultList([]);
6414
+ };
6415
+
6416
+
6417
+
6418
+
6419
+
6420
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6421
+ /**
6422
+ * Creates an object representation of this proto.
6423
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6424
+ * Optional fields that are not set will be set to undefined.
6425
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6426
+ * For the list of reserved names please see:
6427
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6428
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6429
+ * JSPB instance for transitional soy proto support:
6430
+ * http://goto/soy-param-migration
6431
+ * @return {!Object}
6432
+ */
6433
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.prototype.toObject = function(opt_includeInstance) {
6434
+ return proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.toObject(opt_includeInstance, this);
6435
+ };
6436
+
6437
+
6438
+ /**
6439
+ * Static version of the {@see toObject} method.
6440
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6441
+ * the JSPB instance for transitional soy proto support:
6442
+ * http://goto/soy-param-migration
6443
+ * @param {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest} msg The msg instance to transform.
6444
+ * @return {!Object}
6445
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6446
+ */
6447
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.toObject = function(includeInstance, msg) {
6448
+ var f, obj = {
6449
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
6450
+ globalId: jspb.Message.getFieldWithDefault(msg, 2, "")
6451
+ };
6452
+
6453
+ if (includeInstance) {
6454
+ obj.$jspbMessageInstance = msg;
6455
+ }
6456
+ return obj;
6457
+ };
6458
+ }
6459
+
6460
+
6461
+ /**
6462
+ * Deserializes binary data (in protobuf wire format).
6463
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6464
+ * @return {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest}
6465
+ */
6466
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.deserializeBinary = function(bytes) {
6467
+ var reader = new jspb.BinaryReader(bytes);
6468
+ var msg = new proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest;
6469
+ return proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.deserializeBinaryFromReader(msg, reader);
6470
+ };
6471
+
6472
+
6473
+ /**
6474
+ * Deserializes binary data (in protobuf wire format) from the
6475
+ * given reader into the given message object.
6476
+ * @param {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest} msg The message object to deserialize into.
6477
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6478
+ * @return {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest}
6479
+ */
6480
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.deserializeBinaryFromReader = function(msg, reader) {
6481
+ while (reader.nextField()) {
6482
+ if (reader.isEndGroup()) {
6483
+ break;
6484
+ }
6485
+ var field = reader.getFieldNumber();
6486
+ switch (field) {
6487
+ case 1:
6488
+ var value = /** @type {string} */ (reader.readString());
6489
+ msg.setSiteId(value);
6490
+ break;
6491
+ case 2:
6492
+ var value = /** @type {string} */ (reader.readString());
6493
+ msg.setGlobalId(value);
6494
+ break;
6495
+ default:
6496
+ reader.skipField();
6497
+ break;
6498
+ }
6499
+ }
6500
+ return msg;
6501
+ };
6502
+
6503
+
6504
+ /**
6505
+ * Serializes the message to binary data (in protobuf wire format).
6506
+ * @return {!Uint8Array}
6507
+ */
6508
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.prototype.serializeBinary = function() {
6509
+ var writer = new jspb.BinaryWriter();
6510
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.serializeBinaryToWriter(this, writer);
6511
+ return writer.getResultBuffer();
6512
+ };
6513
+
6514
+
6515
+ /**
6516
+ * Serializes the given message to binary data (in protobuf wire
6517
+ * format), writing to the given BinaryWriter.
6518
+ * @param {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest} message
6519
+ * @param {!jspb.BinaryWriter} writer
6520
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6521
+ */
6522
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.serializeBinaryToWriter = function(message, writer) {
6523
+ var f = undefined;
6524
+ f = message.getSiteId();
6525
+ if (f.length > 0) {
6526
+ writer.writeString(
6527
+ 1,
6528
+ f
6529
+ );
6530
+ }
6531
+ f = message.getGlobalId();
6532
+ if (f.length > 0) {
6533
+ writer.writeString(
6534
+ 2,
6535
+ f
6536
+ );
6537
+ }
6538
+ };
6539
+
6540
+
6541
+ /**
6542
+ * optional string site_id = 1;
6543
+ * @return {string}
6544
+ */
6545
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.prototype.getSiteId = function() {
6546
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6547
+ };
6548
+
6549
+
6550
+ /**
6551
+ * @param {string} value
6552
+ * @return {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest} returns this
6553
+ */
6554
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.prototype.setSiteId = function(value) {
6555
+ return jspb.Message.setProto3StringField(this, 1, value);
6556
+ };
6557
+
6558
+
6559
+ /**
6560
+ * optional string global_id = 2;
6561
+ * @return {string}
6562
+ */
6563
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.prototype.getGlobalId = function() {
6564
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6565
+ };
6566
+
6567
+
6568
+ /**
6569
+ * @param {string} value
6570
+ * @return {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest} returns this
6571
+ */
6572
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest.prototype.setGlobalId = function(value) {
6573
+ return jspb.Message.setProto3StringField(this, 2, value);
6574
+ };
6575
+
6576
+
6577
+
6578
+ /**
6579
+ * List of repeated fields within this message type.
6580
+ * @private {!Array<number>}
6581
+ * @const
6582
+ */
6583
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.repeatedFields_ = [1];
6584
+
6585
+
6586
+
6587
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6588
+ /**
6589
+ * Creates an object representation of this proto.
6590
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6591
+ * Optional fields that are not set will be set to undefined.
6592
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6593
+ * For the list of reserved names please see:
6594
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6595
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6596
+ * JSPB instance for transitional soy proto support:
6597
+ * http://goto/soy-param-migration
6598
+ * @return {!Object}
6599
+ */
6600
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.prototype.toObject = function(opt_includeInstance) {
6601
+ return proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.toObject(opt_includeInstance, this);
6602
+ };
6603
+
6604
+
6605
+ /**
6606
+ * Static version of the {@see toObject} method.
6607
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6608
+ * the JSPB instance for transitional soy proto support:
6609
+ * http://goto/soy-param-migration
6610
+ * @param {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse} msg The msg instance to transform.
6611
+ * @return {!Object}
6612
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6613
+ */
6614
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.toObject = function(includeInstance, msg) {
6615
+ var f, obj = {
6616
+ installList: jspb.Message.toObjectList(msg.getInstallList(),
6617
+ proto.lansweeper.multitenant.v1.Install.toObject, includeInstance)
6618
+ };
6619
+
6620
+ if (includeInstance) {
6621
+ obj.$jspbMessageInstance = msg;
6622
+ }
6623
+ return obj;
6624
+ };
6625
+ }
6626
+
6627
+
6628
+ /**
6629
+ * Deserializes binary data (in protobuf wire format).
6630
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6631
+ * @return {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse}
6632
+ */
6633
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.deserializeBinary = function(bytes) {
6634
+ var reader = new jspb.BinaryReader(bytes);
6635
+ var msg = new proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse;
6636
+ return proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.deserializeBinaryFromReader(msg, reader);
6637
+ };
6638
+
6639
+
6640
+ /**
6641
+ * Deserializes binary data (in protobuf wire format) from the
6642
+ * given reader into the given message object.
6643
+ * @param {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse} msg The message object to deserialize into.
6644
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6645
+ * @return {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse}
6646
+ */
6647
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.deserializeBinaryFromReader = function(msg, reader) {
6648
+ while (reader.nextField()) {
6649
+ if (reader.isEndGroup()) {
6650
+ break;
6651
+ }
6652
+ var field = reader.getFieldNumber();
6653
+ switch (field) {
6654
+ case 1:
6655
+ var value = new proto.lansweeper.multitenant.v1.Install;
6656
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.Install.deserializeBinaryFromReader);
6657
+ msg.addInstall(value);
6658
+ break;
6659
+ default:
6660
+ reader.skipField();
6661
+ break;
6662
+ }
6663
+ }
6664
+ return msg;
6665
+ };
6666
+
6667
+
6668
+ /**
6669
+ * Serializes the message to binary data (in protobuf wire format).
6670
+ * @return {!Uint8Array}
6671
+ */
6672
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.prototype.serializeBinary = function() {
6673
+ var writer = new jspb.BinaryWriter();
6674
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.serializeBinaryToWriter(this, writer);
6675
+ return writer.getResultBuffer();
6676
+ };
6677
+
6678
+
6679
+ /**
6680
+ * Serializes the given message to binary data (in protobuf wire
6681
+ * format), writing to the given BinaryWriter.
6682
+ * @param {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse} message
6683
+ * @param {!jspb.BinaryWriter} writer
6684
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6685
+ */
6686
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.serializeBinaryToWriter = function(message, writer) {
6687
+ var f = undefined;
6688
+ f = message.getInstallList();
6689
+ if (f.length > 0) {
6690
+ writer.writeRepeatedMessage(
6691
+ 1,
6692
+ f,
6693
+ proto.lansweeper.multitenant.v1.Install.serializeBinaryToWriter
6694
+ );
6695
+ }
6696
+ };
6697
+
6698
+
6699
+ /**
6700
+ * repeated Install install = 1;
6701
+ * @return {!Array<!proto.lansweeper.multitenant.v1.Install>}
6702
+ */
6703
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.prototype.getInstallList = function() {
6704
+ return /** @type{!Array<!proto.lansweeper.multitenant.v1.Install>} */ (
6705
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.Install, 1));
6706
+ };
6707
+
6708
+
6709
+ /**
6710
+ * @param {!Array<!proto.lansweeper.multitenant.v1.Install>} value
6711
+ * @return {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse} returns this
6712
+ */
6713
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.prototype.setInstallList = function(value) {
6714
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
6715
+ };
6716
+
6717
+
6718
+ /**
6719
+ * @param {!proto.lansweeper.multitenant.v1.Install=} opt_value
6720
+ * @param {number=} opt_index
6721
+ * @return {!proto.lansweeper.multitenant.v1.Install}
6722
+ */
6723
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.prototype.addInstall = function(opt_value, opt_index) {
6724
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.multitenant.v1.Install, opt_index);
6725
+ };
6726
+
6727
+
6728
+ /**
6729
+ * Clears the list making it empty but non-null.
6730
+ * @return {!proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse} returns this
6731
+ */
6732
+ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.prototype.clearInstallList = function() {
6733
+ return this.setInstallList([]);
6734
+ };
6735
+
6736
+
6737
+ /**
6738
+ * @enum {number}
6739
+ */
5561
6740
  proto.lansweeper.multitenant.v1.SiteMode = {
5562
6741
  UNESPECIFIED: 0,
5563
6742
  CLOUD_NATIVE: 1,
@@ -5566,4 +6745,13 @@ proto.lansweeper.multitenant.v1.SiteMode = {
5566
6745
  DUAL: 4
5567
6746
  };
5568
6747
 
6748
+ /**
6749
+ * @enum {number}
6750
+ */
6751
+ proto.lansweeper.multitenant.v1.InstallStateValue = {
6752
+ INSTALL_STATE_VALUE_UNESPECIFIED: 0,
6753
+ INSTALL_STATE_VALUE_SYNC: 1,
6754
+ INSTALL_STATE_VALUE_UNSYNC: 2
6755
+ };
6756
+
5569
6757
  goog.object.extend(exports, proto.lansweeper.multitenant.v1);