@lansweeper/scanningconfig-grpc 0.2.1 → 0.2.3

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.
@@ -21,6 +21,8 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.ADData', null, global);
25
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.ADData.LDAPType', null, global);
24
26
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Action', null, global);
25
27
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Action.ActionType', null, global);
26
28
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Action.DefinitionCase', null, global);
@@ -37,8 +39,14 @@ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Credential', null, global)
37
39
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Credential.CredentialType', null, global);
38
40
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest', null, global);
39
41
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse', null, global);
42
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.IPScanData', null, global);
43
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.IPScanPing', null, global);
44
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.IPScanType', null, global);
40
45
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.NetworkVisibility', null, global);
41
46
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.OperationalConfig', null, global);
47
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.TargetData', null, global);
48
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.TargetData.InfoCase', null, global);
49
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.TargetData.TargetType', null, global);
42
50
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Trigger', null, global);
43
51
  /**
44
52
  * Generated by JsPbCodeGenerator.
@@ -271,6 +279,90 @@ if (goog.DEBUG && !COMPILED) {
271
279
  */
272
280
  proto.lansweeper.scanningconfig.v1.ActionDefinition.displayName = 'proto.lansweeper.scanningconfig.v1.ActionDefinition';
273
281
  }
282
+ /**
283
+ * Generated by JsPbCodeGenerator.
284
+ * @param {Array=} opt_data Optional initial data array, typically from a
285
+ * server response, or constructed directly in Javascript. The array is used
286
+ * in place and becomes part of the constructed object. It is not cloned.
287
+ * If no data is provided, the constructed object will be empty, but still
288
+ * valid.
289
+ * @extends {jspb.Message}
290
+ * @constructor
291
+ */
292
+ proto.lansweeper.scanningconfig.v1.TargetData = function(opt_data) {
293
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_);
294
+ };
295
+ goog.inherits(proto.lansweeper.scanningconfig.v1.TargetData, jspb.Message);
296
+ if (goog.DEBUG && !COMPILED) {
297
+ /**
298
+ * @public
299
+ * @override
300
+ */
301
+ proto.lansweeper.scanningconfig.v1.TargetData.displayName = 'proto.lansweeper.scanningconfig.v1.TargetData';
302
+ }
303
+ /**
304
+ * Generated by JsPbCodeGenerator.
305
+ * @param {Array=} opt_data Optional initial data array, typically from a
306
+ * server response, or constructed directly in Javascript. The array is used
307
+ * in place and becomes part of the constructed object. It is not cloned.
308
+ * If no data is provided, the constructed object will be empty, but still
309
+ * valid.
310
+ * @extends {jspb.Message}
311
+ * @constructor
312
+ */
313
+ proto.lansweeper.scanningconfig.v1.IPScanData = function(opt_data) {
314
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
315
+ };
316
+ goog.inherits(proto.lansweeper.scanningconfig.v1.IPScanData, jspb.Message);
317
+ if (goog.DEBUG && !COMPILED) {
318
+ /**
319
+ * @public
320
+ * @override
321
+ */
322
+ proto.lansweeper.scanningconfig.v1.IPScanData.displayName = 'proto.lansweeper.scanningconfig.v1.IPScanData';
323
+ }
324
+ /**
325
+ * Generated by JsPbCodeGenerator.
326
+ * @param {Array=} opt_data Optional initial data array, typically from a
327
+ * server response, or constructed directly in Javascript. The array is used
328
+ * in place and becomes part of the constructed object. It is not cloned.
329
+ * If no data is provided, the constructed object will be empty, but still
330
+ * valid.
331
+ * @extends {jspb.Message}
332
+ * @constructor
333
+ */
334
+ proto.lansweeper.scanningconfig.v1.IPScanPing = function(opt_data) {
335
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
336
+ };
337
+ goog.inherits(proto.lansweeper.scanningconfig.v1.IPScanPing, jspb.Message);
338
+ if (goog.DEBUG && !COMPILED) {
339
+ /**
340
+ * @public
341
+ * @override
342
+ */
343
+ proto.lansweeper.scanningconfig.v1.IPScanPing.displayName = 'proto.lansweeper.scanningconfig.v1.IPScanPing';
344
+ }
345
+ /**
346
+ * Generated by JsPbCodeGenerator.
347
+ * @param {Array=} opt_data Optional initial data array, typically from a
348
+ * server response, or constructed directly in Javascript. The array is used
349
+ * in place and becomes part of the constructed object. It is not cloned.
350
+ * If no data is provided, the constructed object will be empty, but still
351
+ * valid.
352
+ * @extends {jspb.Message}
353
+ * @constructor
354
+ */
355
+ proto.lansweeper.scanningconfig.v1.ADData = function(opt_data) {
356
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
357
+ };
358
+ goog.inherits(proto.lansweeper.scanningconfig.v1.ADData, jspb.Message);
359
+ if (goog.DEBUG && !COMPILED) {
360
+ /**
361
+ * @public
362
+ * @override
363
+ */
364
+ proto.lansweeper.scanningconfig.v1.ADData.displayName = 'proto.lansweeper.scanningconfig.v1.ADData';
365
+ }
274
366
  /**
275
367
  * Generated by JsPbCodeGenerator.
276
368
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2513,7 +2605,7 @@ proto.lansweeper.scanningconfig.v1.Agentless.prototype.clearTargetsList = functi
2513
2605
  * @private {!Array<number>}
2514
2606
  * @const
2515
2607
  */
2516
- proto.lansweeper.scanningconfig.v1.ActionDefinition.repeatedFields_ = [2,3];
2608
+ proto.lansweeper.scanningconfig.v1.ActionDefinition.repeatedFields_ = [2,3,4];
2517
2609
 
2518
2610
 
2519
2611
 
@@ -2548,7 +2640,9 @@ proto.lansweeper.scanningconfig.v1.ActionDefinition.toObject = function(includeI
2548
2640
  var f, obj = {
2549
2641
  scanFocus: jspb.Message.getFieldWithDefault(msg, 1, 0),
2550
2642
  targetsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
2551
- exclusionsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
2643
+ exclusionsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
2644
+ targetsdataList: jspb.Message.toObjectList(msg.getTargetsdataList(),
2645
+ proto.lansweeper.scanningconfig.v1.TargetData.toObject, includeInstance)
2552
2646
  };
2553
2647
 
2554
2648
  if (includeInstance) {
@@ -2597,6 +2691,11 @@ proto.lansweeper.scanningconfig.v1.ActionDefinition.deserializeBinaryFromReader
2597
2691
  var value = /** @type {string} */ (reader.readString());
2598
2692
  msg.addExclusions(value);
2599
2693
  break;
2694
+ case 4:
2695
+ var value = new proto.lansweeper.scanningconfig.v1.TargetData;
2696
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.TargetData.deserializeBinaryFromReader);
2697
+ msg.addTargetsdata(value);
2698
+ break;
2600
2699
  default:
2601
2700
  reader.skipField();
2602
2701
  break;
@@ -2647,6 +2746,14 @@ proto.lansweeper.scanningconfig.v1.ActionDefinition.serializeBinaryToWriter = fu
2647
2746
  f
2648
2747
  );
2649
2748
  }
2749
+ f = message.getTargetsdataList();
2750
+ if (f.length > 0) {
2751
+ writer.writeRepeatedMessage(
2752
+ 4,
2753
+ f,
2754
+ proto.lansweeper.scanningconfig.v1.TargetData.serializeBinaryToWriter
2755
+ );
2756
+ }
2650
2757
  };
2651
2758
 
2652
2759
 
@@ -2769,148 +2876,74 @@ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.clearExclusionsLis
2769
2876
  };
2770
2877
 
2771
2878
 
2772
-
2773
-
2774
-
2775
- if (jspb.Message.GENERATE_TO_OBJECT) {
2776
2879
  /**
2777
- * Creates an object representation of this proto.
2778
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2779
- * Optional fields that are not set will be set to undefined.
2780
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2781
- * For the list of reserved names please see:
2782
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2783
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2784
- * JSPB instance for transitional soy proto support:
2785
- * http://goto/soy-param-migration
2786
- * @return {!Object}
2880
+ * repeated TargetData targetsData = 4;
2881
+ * @return {!Array<!proto.lansweeper.scanningconfig.v1.TargetData>}
2787
2882
  */
2788
- proto.lansweeper.scanningconfig.v1.Agent.prototype.toObject = function(opt_includeInstance) {
2789
- return proto.lansweeper.scanningconfig.v1.Agent.toObject(opt_includeInstance, this);
2883
+ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.getTargetsdataList = function() {
2884
+ return /** @type{!Array<!proto.lansweeper.scanningconfig.v1.TargetData>} */ (
2885
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.scanningconfig.v1.TargetData, 4));
2790
2886
  };
2791
2887
 
2792
2888
 
2793
2889
  /**
2794
- * Static version of the {@see toObject} method.
2795
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2796
- * the JSPB instance for transitional soy proto support:
2797
- * http://goto/soy-param-migration
2798
- * @param {!proto.lansweeper.scanningconfig.v1.Agent} msg The msg instance to transform.
2799
- * @return {!Object}
2800
- * @suppress {unusedLocalVariables} f is only used for nested messages
2801
- */
2802
- proto.lansweeper.scanningconfig.v1.Agent.toObject = function(includeInstance, msg) {
2803
- var f, obj = {
2804
- scanFocus: jspb.Message.getFieldWithDefault(msg, 1, 0)
2805
- };
2806
-
2807
- if (includeInstance) {
2808
- obj.$jspbMessageInstance = msg;
2809
- }
2810
- return obj;
2890
+ * @param {!Array<!proto.lansweeper.scanningconfig.v1.TargetData>} value
2891
+ * @return {!proto.lansweeper.scanningconfig.v1.ActionDefinition} returns this
2892
+ */
2893
+ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.setTargetsdataList = function(value) {
2894
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
2811
2895
  };
2812
- }
2813
2896
 
2814
2897
 
2815
2898
  /**
2816
- * Deserializes binary data (in protobuf wire format).
2817
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2818
- * @return {!proto.lansweeper.scanningconfig.v1.Agent}
2899
+ * @param {!proto.lansweeper.scanningconfig.v1.TargetData=} opt_value
2900
+ * @param {number=} opt_index
2901
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData}
2819
2902
  */
2820
- proto.lansweeper.scanningconfig.v1.Agent.deserializeBinary = function(bytes) {
2821
- var reader = new jspb.BinaryReader(bytes);
2822
- var msg = new proto.lansweeper.scanningconfig.v1.Agent;
2823
- return proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader(msg, reader);
2903
+ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.addTargetsdata = function(opt_value, opt_index) {
2904
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.lansweeper.scanningconfig.v1.TargetData, opt_index);
2824
2905
  };
2825
2906
 
2826
2907
 
2827
2908
  /**
2828
- * Deserializes binary data (in protobuf wire format) from the
2829
- * given reader into the given message object.
2830
- * @param {!proto.lansweeper.scanningconfig.v1.Agent} msg The message object to deserialize into.
2831
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2832
- * @return {!proto.lansweeper.scanningconfig.v1.Agent}
2909
+ * Clears the list making it empty but non-null.
2910
+ * @return {!proto.lansweeper.scanningconfig.v1.ActionDefinition} returns this
2833
2911
  */
2834
- proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader = function(msg, reader) {
2835
- while (reader.nextField()) {
2836
- if (reader.isEndGroup()) {
2837
- break;
2838
- }
2839
- var field = reader.getFieldNumber();
2840
- switch (field) {
2841
- case 1:
2842
- var value = /** @type {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} */ (reader.readEnum());
2843
- msg.setScanFocus(value);
2844
- break;
2845
- default:
2846
- reader.skipField();
2847
- break;
2848
- }
2849
- }
2850
- return msg;
2912
+ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.clearTargetsdataList = function() {
2913
+ return this.setTargetsdataList([]);
2851
2914
  };
2852
2915
 
2853
2916
 
2854
- /**
2855
- * Serializes the message to binary data (in protobuf wire format).
2856
- * @return {!Uint8Array}
2857
- */
2858
- proto.lansweeper.scanningconfig.v1.Agent.prototype.serializeBinary = function() {
2859
- var writer = new jspb.BinaryWriter();
2860
- proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter(this, writer);
2861
- return writer.getResultBuffer();
2862
- };
2863
-
2864
2917
 
2865
2918
  /**
2866
- * Serializes the given message to binary data (in protobuf wire
2867
- * format), writing to the given BinaryWriter.
2868
- * @param {!proto.lansweeper.scanningconfig.v1.Agent} message
2869
- * @param {!jspb.BinaryWriter} writer
2870
- * @suppress {unusedLocalVariables} f is only used for nested messages
2919
+ * Oneof group definitions for this message. Each group defines the field
2920
+ * numbers belonging to that group. When of these fields' value is set, all
2921
+ * other fields in the group are cleared. During deserialization, if multiple
2922
+ * fields are encountered for a group, only the last value seen will be kept.
2923
+ * @private {!Array<!Array<number>>}
2924
+ * @const
2871
2925
  */
2872
- proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter = function(message, writer) {
2873
- var f = undefined;
2874
- f = message.getScanFocus();
2875
- if (f !== 0.0) {
2876
- writer.writeEnum(
2877
- 1,
2878
- f
2879
- );
2880
- }
2881
- };
2882
-
2926
+ proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_ = [[2,3,4]];
2883
2927
 
2884
2928
  /**
2885
2929
  * @enum {number}
2886
2930
  */
2887
- proto.lansweeper.scanningconfig.v1.Agent.ScanFocus = {
2888
- ALL: 0,
2889
- USERS: 1,
2890
- INVENTORY: 2
2891
- };
2892
-
2893
- /**
2894
- * optional ScanFocus scan_focus = 1;
2895
- * @return {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus}
2896
- */
2897
- proto.lansweeper.scanningconfig.v1.Agent.prototype.getScanFocus = function() {
2898
- return /** @type {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2931
+ proto.lansweeper.scanningconfig.v1.TargetData.InfoCase = {
2932
+ INFO_NOT_SET: 0,
2933
+ IP_SCAN_DATA: 2,
2934
+ AD_DATA: 3,
2935
+ TARGET: 4
2899
2936
  };
2900
2937
 
2901
-
2902
2938
  /**
2903
- * @param {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} value
2904
- * @return {!proto.lansweeper.scanningconfig.v1.Agent} returns this
2939
+ * @return {proto.lansweeper.scanningconfig.v1.TargetData.InfoCase}
2905
2940
  */
2906
- proto.lansweeper.scanningconfig.v1.Agent.prototype.setScanFocus = function(value) {
2907
- return jspb.Message.setProto3EnumField(this, 1, value);
2941
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.getInfoCase = function() {
2942
+ return /** @type {proto.lansweeper.scanningconfig.v1.TargetData.InfoCase} */(jspb.Message.computeOneofCase(this, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_[0]));
2908
2943
  };
2909
2944
 
2910
2945
 
2911
2946
 
2912
-
2913
-
2914
2947
  if (jspb.Message.GENERATE_TO_OBJECT) {
2915
2948
  /**
2916
2949
  * Creates an object representation of this proto.
@@ -2924,8 +2957,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2924
2957
  * http://goto/soy-param-migration
2925
2958
  * @return {!Object}
2926
2959
  */
2927
- proto.lansweeper.scanningconfig.v1.Credential.prototype.toObject = function(opt_includeInstance) {
2928
- return proto.lansweeper.scanningconfig.v1.Credential.toObject(opt_includeInstance, this);
2960
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.toObject = function(opt_includeInstance) {
2961
+ return proto.lansweeper.scanningconfig.v1.TargetData.toObject(opt_includeInstance, this);
2929
2962
  };
2930
2963
 
2931
2964
 
@@ -2934,14 +2967,16 @@ proto.lansweeper.scanningconfig.v1.Credential.prototype.toObject = function(opt_
2934
2967
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2935
2968
  * the JSPB instance for transitional soy proto support:
2936
2969
  * http://goto/soy-param-migration
2937
- * @param {!proto.lansweeper.scanningconfig.v1.Credential} msg The msg instance to transform.
2970
+ * @param {!proto.lansweeper.scanningconfig.v1.TargetData} msg The msg instance to transform.
2938
2971
  * @return {!Object}
2939
2972
  * @suppress {unusedLocalVariables} f is only used for nested messages
2940
2973
  */
2941
- proto.lansweeper.scanningconfig.v1.Credential.toObject = function(includeInstance, msg) {
2974
+ proto.lansweeper.scanningconfig.v1.TargetData.toObject = function(includeInstance, msg) {
2942
2975
  var f, obj = {
2943
2976
  type: jspb.Message.getFieldWithDefault(msg, 1, 0),
2944
- id: jspb.Message.getFieldWithDefault(msg, 2, "")
2977
+ ipScanData: (f = msg.getIpScanData()) && proto.lansweeper.scanningconfig.v1.IPScanData.toObject(includeInstance, f),
2978
+ adData: (f = msg.getAdData()) && proto.lansweeper.scanningconfig.v1.ADData.toObject(includeInstance, f),
2979
+ target: jspb.Message.getFieldWithDefault(msg, 4, "")
2945
2980
  };
2946
2981
 
2947
2982
  if (includeInstance) {
@@ -2955,23 +2990,23 @@ proto.lansweeper.scanningconfig.v1.Credential.toObject = function(includeInstanc
2955
2990
  /**
2956
2991
  * Deserializes binary data (in protobuf wire format).
2957
2992
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2958
- * @return {!proto.lansweeper.scanningconfig.v1.Credential}
2993
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData}
2959
2994
  */
2960
- proto.lansweeper.scanningconfig.v1.Credential.deserializeBinary = function(bytes) {
2995
+ proto.lansweeper.scanningconfig.v1.TargetData.deserializeBinary = function(bytes) {
2961
2996
  var reader = new jspb.BinaryReader(bytes);
2962
- var msg = new proto.lansweeper.scanningconfig.v1.Credential;
2963
- return proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader(msg, reader);
2997
+ var msg = new proto.lansweeper.scanningconfig.v1.TargetData;
2998
+ return proto.lansweeper.scanningconfig.v1.TargetData.deserializeBinaryFromReader(msg, reader);
2964
2999
  };
2965
3000
 
2966
3001
 
2967
3002
  /**
2968
3003
  * Deserializes binary data (in protobuf wire format) from the
2969
3004
  * given reader into the given message object.
2970
- * @param {!proto.lansweeper.scanningconfig.v1.Credential} msg The message object to deserialize into.
3005
+ * @param {!proto.lansweeper.scanningconfig.v1.TargetData} msg The message object to deserialize into.
2971
3006
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2972
- * @return {!proto.lansweeper.scanningconfig.v1.Credential}
3007
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData}
2973
3008
  */
2974
- proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader = function(msg, reader) {
3009
+ proto.lansweeper.scanningconfig.v1.TargetData.deserializeBinaryFromReader = function(msg, reader) {
2975
3010
  while (reader.nextField()) {
2976
3011
  if (reader.isEndGroup()) {
2977
3012
  break;
@@ -2979,12 +3014,22 @@ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader = func
2979
3014
  var field = reader.getFieldNumber();
2980
3015
  switch (field) {
2981
3016
  case 1:
2982
- var value = /** @type {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} */ (reader.readEnum());
3017
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.TargetData.TargetType} */ (reader.readEnum());
2983
3018
  msg.setType(value);
2984
3019
  break;
2985
3020
  case 2:
3021
+ var value = new proto.lansweeper.scanningconfig.v1.IPScanData;
3022
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.IPScanData.deserializeBinaryFromReader);
3023
+ msg.setIpScanData(value);
3024
+ break;
3025
+ case 3:
3026
+ var value = new proto.lansweeper.scanningconfig.v1.ADData;
3027
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.ADData.deserializeBinaryFromReader);
3028
+ msg.setAdData(value);
3029
+ break;
3030
+ case 4:
2986
3031
  var value = /** @type {string} */ (reader.readString());
2987
- msg.setId(value);
3032
+ msg.setTarget(value);
2988
3033
  break;
2989
3034
  default:
2990
3035
  reader.skipField();
@@ -2999,9 +3044,9 @@ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader = func
2999
3044
  * Serializes the message to binary data (in protobuf wire format).
3000
3045
  * @return {!Uint8Array}
3001
3046
  */
3002
- proto.lansweeper.scanningconfig.v1.Credential.prototype.serializeBinary = function() {
3047
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.serializeBinary = function() {
3003
3048
  var writer = new jspb.BinaryWriter();
3004
- proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter(this, writer);
3049
+ proto.lansweeper.scanningconfig.v1.TargetData.serializeBinaryToWriter(this, writer);
3005
3050
  return writer.getResultBuffer();
3006
3051
  };
3007
3052
 
@@ -3009,11 +3054,11 @@ proto.lansweeper.scanningconfig.v1.Credential.prototype.serializeBinary = functi
3009
3054
  /**
3010
3055
  * Serializes the given message to binary data (in protobuf wire
3011
3056
  * format), writing to the given BinaryWriter.
3012
- * @param {!proto.lansweeper.scanningconfig.v1.Credential} message
3057
+ * @param {!proto.lansweeper.scanningconfig.v1.TargetData} message
3013
3058
  * @param {!jspb.BinaryWriter} writer
3014
3059
  * @suppress {unusedLocalVariables} f is only used for nested messages
3015
3060
  */
3016
- proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter = function(message, writer) {
3061
+ proto.lansweeper.scanningconfig.v1.TargetData.serializeBinaryToWriter = function(message, writer) {
3017
3062
  var f = undefined;
3018
3063
  f = message.getType();
3019
3064
  if (f !== 0.0) {
@@ -3022,10 +3067,26 @@ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter = function
3022
3067
  f
3023
3068
  );
3024
3069
  }
3025
- f = message.getId();
3026
- if (f.length > 0) {
3027
- writer.writeString(
3070
+ f = message.getIpScanData();
3071
+ if (f != null) {
3072
+ writer.writeMessage(
3028
3073
  2,
3074
+ f,
3075
+ proto.lansweeper.scanningconfig.v1.IPScanData.serializeBinaryToWriter
3076
+ );
3077
+ }
3078
+ f = message.getAdData();
3079
+ if (f != null) {
3080
+ writer.writeMessage(
3081
+ 3,
3082
+ f,
3083
+ proto.lansweeper.scanningconfig.v1.ADData.serializeBinaryToWriter
3084
+ );
3085
+ }
3086
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3087
+ if (f != null) {
3088
+ writer.writeString(
3089
+ 4,
3029
3090
  f
3030
3091
  );
3031
3092
  }
@@ -3035,44 +3096,1174 @@ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter = function
3035
3096
  /**
3036
3097
  * @enum {number}
3037
3098
  */
3038
- proto.lansweeper.scanningconfig.v1.Credential.CredentialType = {
3039
- UNSPECIFIED: 0
3099
+ proto.lansweeper.scanningconfig.v1.TargetData.TargetType = {
3100
+ UNKNOWN_TARGET_TYPE: 0,
3101
+ IP_SCAN: 1,
3102
+ SCCM: 2,
3103
+ AD: 3
3040
3104
  };
3041
3105
 
3042
3106
  /**
3043
- * optional CredentialType type = 1;
3044
- * @return {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType}
3107
+ * optional TargetType type = 1;
3108
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData.TargetType}
3045
3109
  */
3046
- proto.lansweeper.scanningconfig.v1.Credential.prototype.getType = function() {
3047
- return /** @type {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3110
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.getType = function() {
3111
+ return /** @type {!proto.lansweeper.scanningconfig.v1.TargetData.TargetType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3048
3112
  };
3049
3113
 
3050
3114
 
3051
3115
  /**
3052
- * @param {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} value
3053
- * @return {!proto.lansweeper.scanningconfig.v1.Credential} returns this
3116
+ * @param {!proto.lansweeper.scanningconfig.v1.TargetData.TargetType} value
3117
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3054
3118
  */
3055
- proto.lansweeper.scanningconfig.v1.Credential.prototype.setType = function(value) {
3119
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.setType = function(value) {
3056
3120
  return jspb.Message.setProto3EnumField(this, 1, value);
3057
3121
  };
3058
3122
 
3059
3123
 
3060
3124
  /**
3061
- * optional string id = 2;
3062
- * @return {string}
3125
+ * optional IPScanData ip_scan_data = 2;
3126
+ * @return {?proto.lansweeper.scanningconfig.v1.IPScanData}
3063
3127
  */
3064
- proto.lansweeper.scanningconfig.v1.Credential.prototype.getId = function() {
3065
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3128
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.getIpScanData = function() {
3129
+ return /** @type{?proto.lansweeper.scanningconfig.v1.IPScanData} */ (
3130
+ jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.IPScanData, 2));
3066
3131
  };
3067
3132
 
3068
3133
 
3069
3134
  /**
3070
- * @param {string} value
3071
- * @return {!proto.lansweeper.scanningconfig.v1.Credential} returns this
3072
- */
3073
- proto.lansweeper.scanningconfig.v1.Credential.prototype.setId = function(value) {
3074
- return jspb.Message.setProto3StringField(this, 2, value);
3135
+ * @param {?proto.lansweeper.scanningconfig.v1.IPScanData|undefined} value
3136
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3137
+ */
3138
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.setIpScanData = function(value) {
3139
+ return jspb.Message.setOneofWrapperField(this, 2, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_[0], value);
3075
3140
  };
3076
3141
 
3077
3142
 
3143
+ /**
3144
+ * Clears the message field making it undefined.
3145
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3146
+ */
3147
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.clearIpScanData = function() {
3148
+ return this.setIpScanData(undefined);
3149
+ };
3150
+
3151
+
3152
+ /**
3153
+ * Returns whether this field is set.
3154
+ * @return {boolean}
3155
+ */
3156
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.hasIpScanData = function() {
3157
+ return jspb.Message.getField(this, 2) != null;
3158
+ };
3159
+
3160
+
3161
+ /**
3162
+ * optional ADData ad_data = 3;
3163
+ * @return {?proto.lansweeper.scanningconfig.v1.ADData}
3164
+ */
3165
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.getAdData = function() {
3166
+ return /** @type{?proto.lansweeper.scanningconfig.v1.ADData} */ (
3167
+ jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.ADData, 3));
3168
+ };
3169
+
3170
+
3171
+ /**
3172
+ * @param {?proto.lansweeper.scanningconfig.v1.ADData|undefined} value
3173
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3174
+ */
3175
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.setAdData = function(value) {
3176
+ return jspb.Message.setOneofWrapperField(this, 3, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_[0], value);
3177
+ };
3178
+
3179
+
3180
+ /**
3181
+ * Clears the message field making it undefined.
3182
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3183
+ */
3184
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.clearAdData = function() {
3185
+ return this.setAdData(undefined);
3186
+ };
3187
+
3188
+
3189
+ /**
3190
+ * Returns whether this field is set.
3191
+ * @return {boolean}
3192
+ */
3193
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.hasAdData = function() {
3194
+ return jspb.Message.getField(this, 3) != null;
3195
+ };
3196
+
3197
+
3198
+ /**
3199
+ * optional string target = 4;
3200
+ * @return {string}
3201
+ */
3202
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.getTarget = function() {
3203
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3204
+ };
3205
+
3206
+
3207
+ /**
3208
+ * @param {string} value
3209
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3210
+ */
3211
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.setTarget = function(value) {
3212
+ return jspb.Message.setOneofField(this, 4, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_[0], value);
3213
+ };
3214
+
3215
+
3216
+ /**
3217
+ * Clears the field making it undefined.
3218
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3219
+ */
3220
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.clearTarget = function() {
3221
+ return jspb.Message.setOneofField(this, 4, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_[0], undefined);
3222
+ };
3223
+
3224
+
3225
+ /**
3226
+ * Returns whether this field is set.
3227
+ * @return {boolean}
3228
+ */
3229
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.hasTarget = function() {
3230
+ return jspb.Message.getField(this, 4) != null;
3231
+ };
3232
+
3233
+
3234
+
3235
+
3236
+
3237
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3238
+ /**
3239
+ * Creates an object representation of this proto.
3240
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3241
+ * Optional fields that are not set will be set to undefined.
3242
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3243
+ * For the list of reserved names please see:
3244
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3245
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3246
+ * JSPB instance for transitional soy proto support:
3247
+ * http://goto/soy-param-migration
3248
+ * @return {!Object}
3249
+ */
3250
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.toObject = function(opt_includeInstance) {
3251
+ return proto.lansweeper.scanningconfig.v1.IPScanData.toObject(opt_includeInstance, this);
3252
+ };
3253
+
3254
+
3255
+ /**
3256
+ * Static version of the {@see toObject} method.
3257
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3258
+ * the JSPB instance for transitional soy proto support:
3259
+ * http://goto/soy-param-migration
3260
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanData} msg The msg instance to transform.
3261
+ * @return {!Object}
3262
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3263
+ */
3264
+ proto.lansweeper.scanningconfig.v1.IPScanData.toObject = function(includeInstance, msg) {
3265
+ var f, obj = {
3266
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0),
3267
+ target: jspb.Message.getFieldWithDefault(msg, 2, ""),
3268
+ ping: (f = msg.getPing()) && proto.lansweeper.scanningconfig.v1.IPScanPing.toObject(includeInstance, f)
3269
+ };
3270
+
3271
+ if (includeInstance) {
3272
+ obj.$jspbMessageInstance = msg;
3273
+ }
3274
+ return obj;
3275
+ };
3276
+ }
3277
+
3278
+
3279
+ /**
3280
+ * Deserializes binary data (in protobuf wire format).
3281
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3282
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData}
3283
+ */
3284
+ proto.lansweeper.scanningconfig.v1.IPScanData.deserializeBinary = function(bytes) {
3285
+ var reader = new jspb.BinaryReader(bytes);
3286
+ var msg = new proto.lansweeper.scanningconfig.v1.IPScanData;
3287
+ return proto.lansweeper.scanningconfig.v1.IPScanData.deserializeBinaryFromReader(msg, reader);
3288
+ };
3289
+
3290
+
3291
+ /**
3292
+ * Deserializes binary data (in protobuf wire format) from the
3293
+ * given reader into the given message object.
3294
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanData} msg The message object to deserialize into.
3295
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3296
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData}
3297
+ */
3298
+ proto.lansweeper.scanningconfig.v1.IPScanData.deserializeBinaryFromReader = function(msg, reader) {
3299
+ while (reader.nextField()) {
3300
+ if (reader.isEndGroup()) {
3301
+ break;
3302
+ }
3303
+ var field = reader.getFieldNumber();
3304
+ switch (field) {
3305
+ case 1:
3306
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.IPScanType} */ (reader.readEnum());
3307
+ msg.setType(value);
3308
+ break;
3309
+ case 2:
3310
+ var value = /** @type {string} */ (reader.readString());
3311
+ msg.setTarget(value);
3312
+ break;
3313
+ case 3:
3314
+ var value = new proto.lansweeper.scanningconfig.v1.IPScanPing;
3315
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.IPScanPing.deserializeBinaryFromReader);
3316
+ msg.setPing(value);
3317
+ break;
3318
+ default:
3319
+ reader.skipField();
3320
+ break;
3321
+ }
3322
+ }
3323
+ return msg;
3324
+ };
3325
+
3326
+
3327
+ /**
3328
+ * Serializes the message to binary data (in protobuf wire format).
3329
+ * @return {!Uint8Array}
3330
+ */
3331
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.serializeBinary = function() {
3332
+ var writer = new jspb.BinaryWriter();
3333
+ proto.lansweeper.scanningconfig.v1.IPScanData.serializeBinaryToWriter(this, writer);
3334
+ return writer.getResultBuffer();
3335
+ };
3336
+
3337
+
3338
+ /**
3339
+ * Serializes the given message to binary data (in protobuf wire
3340
+ * format), writing to the given BinaryWriter.
3341
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanData} message
3342
+ * @param {!jspb.BinaryWriter} writer
3343
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3344
+ */
3345
+ proto.lansweeper.scanningconfig.v1.IPScanData.serializeBinaryToWriter = function(message, writer) {
3346
+ var f = undefined;
3347
+ f = message.getType();
3348
+ if (f !== 0.0) {
3349
+ writer.writeEnum(
3350
+ 1,
3351
+ f
3352
+ );
3353
+ }
3354
+ f = message.getTarget();
3355
+ if (f.length > 0) {
3356
+ writer.writeString(
3357
+ 2,
3358
+ f
3359
+ );
3360
+ }
3361
+ f = message.getPing();
3362
+ if (f != null) {
3363
+ writer.writeMessage(
3364
+ 3,
3365
+ f,
3366
+ proto.lansweeper.scanningconfig.v1.IPScanPing.serializeBinaryToWriter
3367
+ );
3368
+ }
3369
+ };
3370
+
3371
+
3372
+ /**
3373
+ * optional IPScanType type = 1;
3374
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanType}
3375
+ */
3376
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.getType = function() {
3377
+ return /** @type {!proto.lansweeper.scanningconfig.v1.IPScanType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3378
+ };
3379
+
3380
+
3381
+ /**
3382
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanType} value
3383
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData} returns this
3384
+ */
3385
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.setType = function(value) {
3386
+ return jspb.Message.setProto3EnumField(this, 1, value);
3387
+ };
3388
+
3389
+
3390
+ /**
3391
+ * optional string target = 2;
3392
+ * @return {string}
3393
+ */
3394
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.getTarget = function() {
3395
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3396
+ };
3397
+
3398
+
3399
+ /**
3400
+ * @param {string} value
3401
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData} returns this
3402
+ */
3403
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.setTarget = function(value) {
3404
+ return jspb.Message.setProto3StringField(this, 2, value);
3405
+ };
3406
+
3407
+
3408
+ /**
3409
+ * optional IPScanPing ping = 3;
3410
+ * @return {?proto.lansweeper.scanningconfig.v1.IPScanPing}
3411
+ */
3412
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.getPing = function() {
3413
+ return /** @type{?proto.lansweeper.scanningconfig.v1.IPScanPing} */ (
3414
+ jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.IPScanPing, 3));
3415
+ };
3416
+
3417
+
3418
+ /**
3419
+ * @param {?proto.lansweeper.scanningconfig.v1.IPScanPing|undefined} value
3420
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData} returns this
3421
+ */
3422
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.setPing = function(value) {
3423
+ return jspb.Message.setWrapperField(this, 3, value);
3424
+ };
3425
+
3426
+
3427
+ /**
3428
+ * Clears the message field making it undefined.
3429
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData} returns this
3430
+ */
3431
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.clearPing = function() {
3432
+ return this.setPing(undefined);
3433
+ };
3434
+
3435
+
3436
+ /**
3437
+ * Returns whether this field is set.
3438
+ * @return {boolean}
3439
+ */
3440
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.hasPing = function() {
3441
+ return jspb.Message.getField(this, 3) != null;
3442
+ };
3443
+
3444
+
3445
+
3446
+
3447
+
3448
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3449
+ /**
3450
+ * Creates an object representation of this proto.
3451
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3452
+ * Optional fields that are not set will be set to undefined.
3453
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3454
+ * For the list of reserved names please see:
3455
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3456
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3457
+ * JSPB instance for transitional soy proto support:
3458
+ * http://goto/soy-param-migration
3459
+ * @return {!Object}
3460
+ */
3461
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.toObject = function(opt_includeInstance) {
3462
+ return proto.lansweeper.scanningconfig.v1.IPScanPing.toObject(opt_includeInstance, this);
3463
+ };
3464
+
3465
+
3466
+ /**
3467
+ * Static version of the {@see toObject} method.
3468
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3469
+ * the JSPB instance for transitional soy proto support:
3470
+ * http://goto/soy-param-migration
3471
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanPing} msg The msg instance to transform.
3472
+ * @return {!Object}
3473
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3474
+ */
3475
+ proto.lansweeper.scanningconfig.v1.IPScanPing.toObject = function(includeInstance, msg) {
3476
+ var f, obj = {
3477
+ usePing: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
3478
+ pingTimeout: jspb.Message.getFieldWithDefault(msg, 2, 0),
3479
+ keepNoAnswerScan: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
3480
+ };
3481
+
3482
+ if (includeInstance) {
3483
+ obj.$jspbMessageInstance = msg;
3484
+ }
3485
+ return obj;
3486
+ };
3487
+ }
3488
+
3489
+
3490
+ /**
3491
+ * Deserializes binary data (in protobuf wire format).
3492
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3493
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanPing}
3494
+ */
3495
+ proto.lansweeper.scanningconfig.v1.IPScanPing.deserializeBinary = function(bytes) {
3496
+ var reader = new jspb.BinaryReader(bytes);
3497
+ var msg = new proto.lansweeper.scanningconfig.v1.IPScanPing;
3498
+ return proto.lansweeper.scanningconfig.v1.IPScanPing.deserializeBinaryFromReader(msg, reader);
3499
+ };
3500
+
3501
+
3502
+ /**
3503
+ * Deserializes binary data (in protobuf wire format) from the
3504
+ * given reader into the given message object.
3505
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanPing} msg The message object to deserialize into.
3506
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3507
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanPing}
3508
+ */
3509
+ proto.lansweeper.scanningconfig.v1.IPScanPing.deserializeBinaryFromReader = function(msg, reader) {
3510
+ while (reader.nextField()) {
3511
+ if (reader.isEndGroup()) {
3512
+ break;
3513
+ }
3514
+ var field = reader.getFieldNumber();
3515
+ switch (field) {
3516
+ case 1:
3517
+ var value = /** @type {boolean} */ (reader.readBool());
3518
+ msg.setUsePing(value);
3519
+ break;
3520
+ case 2:
3521
+ var value = /** @type {number} */ (reader.readInt32());
3522
+ msg.setPingTimeout(value);
3523
+ break;
3524
+ case 3:
3525
+ var value = /** @type {boolean} */ (reader.readBool());
3526
+ msg.setKeepNoAnswerScan(value);
3527
+ break;
3528
+ default:
3529
+ reader.skipField();
3530
+ break;
3531
+ }
3532
+ }
3533
+ return msg;
3534
+ };
3535
+
3536
+
3537
+ /**
3538
+ * Serializes the message to binary data (in protobuf wire format).
3539
+ * @return {!Uint8Array}
3540
+ */
3541
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.serializeBinary = function() {
3542
+ var writer = new jspb.BinaryWriter();
3543
+ proto.lansweeper.scanningconfig.v1.IPScanPing.serializeBinaryToWriter(this, writer);
3544
+ return writer.getResultBuffer();
3545
+ };
3546
+
3547
+
3548
+ /**
3549
+ * Serializes the given message to binary data (in protobuf wire
3550
+ * format), writing to the given BinaryWriter.
3551
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanPing} message
3552
+ * @param {!jspb.BinaryWriter} writer
3553
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3554
+ */
3555
+ proto.lansweeper.scanningconfig.v1.IPScanPing.serializeBinaryToWriter = function(message, writer) {
3556
+ var f = undefined;
3557
+ f = message.getUsePing();
3558
+ if (f) {
3559
+ writer.writeBool(
3560
+ 1,
3561
+ f
3562
+ );
3563
+ }
3564
+ f = message.getPingTimeout();
3565
+ if (f !== 0) {
3566
+ writer.writeInt32(
3567
+ 2,
3568
+ f
3569
+ );
3570
+ }
3571
+ f = message.getKeepNoAnswerScan();
3572
+ if (f) {
3573
+ writer.writeBool(
3574
+ 3,
3575
+ f
3576
+ );
3577
+ }
3578
+ };
3579
+
3580
+
3581
+ /**
3582
+ * optional bool use_ping = 1;
3583
+ * @return {boolean}
3584
+ */
3585
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.getUsePing = function() {
3586
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
3587
+ };
3588
+
3589
+
3590
+ /**
3591
+ * @param {boolean} value
3592
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanPing} returns this
3593
+ */
3594
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.setUsePing = function(value) {
3595
+ return jspb.Message.setProto3BooleanField(this, 1, value);
3596
+ };
3597
+
3598
+
3599
+ /**
3600
+ * optional int32 ping_timeout = 2;
3601
+ * @return {number}
3602
+ */
3603
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.getPingTimeout = function() {
3604
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3605
+ };
3606
+
3607
+
3608
+ /**
3609
+ * @param {number} value
3610
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanPing} returns this
3611
+ */
3612
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.setPingTimeout = function(value) {
3613
+ return jspb.Message.setProto3IntField(this, 2, value);
3614
+ };
3615
+
3616
+
3617
+ /**
3618
+ * optional bool keep_no_answer_scan = 3;
3619
+ * @return {boolean}
3620
+ */
3621
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.getKeepNoAnswerScan = function() {
3622
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
3623
+ };
3624
+
3625
+
3626
+ /**
3627
+ * @param {boolean} value
3628
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanPing} returns this
3629
+ */
3630
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.setKeepNoAnswerScan = function(value) {
3631
+ return jspb.Message.setProto3BooleanField(this, 3, value);
3632
+ };
3633
+
3634
+
3635
+
3636
+
3637
+
3638
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3639
+ /**
3640
+ * Creates an object representation of this proto.
3641
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3642
+ * Optional fields that are not set will be set to undefined.
3643
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3644
+ * For the list of reserved names please see:
3645
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3646
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3647
+ * JSPB instance for transitional soy proto support:
3648
+ * http://goto/soy-param-migration
3649
+ * @return {!Object}
3650
+ */
3651
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.toObject = function(opt_includeInstance) {
3652
+ return proto.lansweeper.scanningconfig.v1.ADData.toObject(opt_includeInstance, this);
3653
+ };
3654
+
3655
+
3656
+ /**
3657
+ * Static version of the {@see toObject} method.
3658
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3659
+ * the JSPB instance for transitional soy proto support:
3660
+ * http://goto/soy-param-migration
3661
+ * @param {!proto.lansweeper.scanningconfig.v1.ADData} msg The msg instance to transform.
3662
+ * @return {!Object}
3663
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3664
+ */
3665
+ proto.lansweeper.scanningconfig.v1.ADData.toObject = function(includeInstance, msg) {
3666
+ var f, obj = {
3667
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
3668
+ adsiFilter: jspb.Message.getFieldWithDefault(msg, 2, ""),
3669
+ domain: jspb.Message.getFieldWithDefault(msg, 3, ""),
3670
+ computerScan: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
3671
+ userGroupScan: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
3672
+ ldapType: jspb.Message.getFieldWithDefault(msg, 6, 0),
3673
+ port: jspb.Message.getFieldWithDefault(msg, 7, 0)
3674
+ };
3675
+
3676
+ if (includeInstance) {
3677
+ obj.$jspbMessageInstance = msg;
3678
+ }
3679
+ return obj;
3680
+ };
3681
+ }
3682
+
3683
+
3684
+ /**
3685
+ * Deserializes binary data (in protobuf wire format).
3686
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3687
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData}
3688
+ */
3689
+ proto.lansweeper.scanningconfig.v1.ADData.deserializeBinary = function(bytes) {
3690
+ var reader = new jspb.BinaryReader(bytes);
3691
+ var msg = new proto.lansweeper.scanningconfig.v1.ADData;
3692
+ return proto.lansweeper.scanningconfig.v1.ADData.deserializeBinaryFromReader(msg, reader);
3693
+ };
3694
+
3695
+
3696
+ /**
3697
+ * Deserializes binary data (in protobuf wire format) from the
3698
+ * given reader into the given message object.
3699
+ * @param {!proto.lansweeper.scanningconfig.v1.ADData} msg The message object to deserialize into.
3700
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3701
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData}
3702
+ */
3703
+ proto.lansweeper.scanningconfig.v1.ADData.deserializeBinaryFromReader = function(msg, reader) {
3704
+ while (reader.nextField()) {
3705
+ if (reader.isEndGroup()) {
3706
+ break;
3707
+ }
3708
+ var field = reader.getFieldNumber();
3709
+ switch (field) {
3710
+ case 1:
3711
+ var value = /** @type {string} */ (reader.readString());
3712
+ msg.setName(value);
3713
+ break;
3714
+ case 2:
3715
+ var value = /** @type {string} */ (reader.readString());
3716
+ msg.setAdsiFilter(value);
3717
+ break;
3718
+ case 3:
3719
+ var value = /** @type {string} */ (reader.readString());
3720
+ msg.setDomain(value);
3721
+ break;
3722
+ case 4:
3723
+ var value = /** @type {boolean} */ (reader.readBool());
3724
+ msg.setComputerScan(value);
3725
+ break;
3726
+ case 5:
3727
+ var value = /** @type {boolean} */ (reader.readBool());
3728
+ msg.setUserGroupScan(value);
3729
+ break;
3730
+ case 6:
3731
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.ADData.LDAPType} */ (reader.readEnum());
3732
+ msg.setLdapType(value);
3733
+ break;
3734
+ case 7:
3735
+ var value = /** @type {number} */ (reader.readInt32());
3736
+ msg.setPort(value);
3737
+ break;
3738
+ default:
3739
+ reader.skipField();
3740
+ break;
3741
+ }
3742
+ }
3743
+ return msg;
3744
+ };
3745
+
3746
+
3747
+ /**
3748
+ * Serializes the message to binary data (in protobuf wire format).
3749
+ * @return {!Uint8Array}
3750
+ */
3751
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.serializeBinary = function() {
3752
+ var writer = new jspb.BinaryWriter();
3753
+ proto.lansweeper.scanningconfig.v1.ADData.serializeBinaryToWriter(this, writer);
3754
+ return writer.getResultBuffer();
3755
+ };
3756
+
3757
+
3758
+ /**
3759
+ * Serializes the given message to binary data (in protobuf wire
3760
+ * format), writing to the given BinaryWriter.
3761
+ * @param {!proto.lansweeper.scanningconfig.v1.ADData} message
3762
+ * @param {!jspb.BinaryWriter} writer
3763
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3764
+ */
3765
+ proto.lansweeper.scanningconfig.v1.ADData.serializeBinaryToWriter = function(message, writer) {
3766
+ var f = undefined;
3767
+ f = message.getName();
3768
+ if (f.length > 0) {
3769
+ writer.writeString(
3770
+ 1,
3771
+ f
3772
+ );
3773
+ }
3774
+ f = message.getAdsiFilter();
3775
+ if (f.length > 0) {
3776
+ writer.writeString(
3777
+ 2,
3778
+ f
3779
+ );
3780
+ }
3781
+ f = message.getDomain();
3782
+ if (f.length > 0) {
3783
+ writer.writeString(
3784
+ 3,
3785
+ f
3786
+ );
3787
+ }
3788
+ f = message.getComputerScan();
3789
+ if (f) {
3790
+ writer.writeBool(
3791
+ 4,
3792
+ f
3793
+ );
3794
+ }
3795
+ f = message.getUserGroupScan();
3796
+ if (f) {
3797
+ writer.writeBool(
3798
+ 5,
3799
+ f
3800
+ );
3801
+ }
3802
+ f = message.getLdapType();
3803
+ if (f !== 0.0) {
3804
+ writer.writeEnum(
3805
+ 6,
3806
+ f
3807
+ );
3808
+ }
3809
+ f = message.getPort();
3810
+ if (f !== 0) {
3811
+ writer.writeInt32(
3812
+ 7,
3813
+ f
3814
+ );
3815
+ }
3816
+ };
3817
+
3818
+
3819
+ /**
3820
+ * @enum {number}
3821
+ */
3822
+ proto.lansweeper.scanningconfig.v1.ADData.LDAPType = {
3823
+ UNKNOWN_LDAP_TYPE: 0,
3824
+ LDAP: 1,
3825
+ LDAPS: 2
3826
+ };
3827
+
3828
+ /**
3829
+ * optional string name = 1;
3830
+ * @return {string}
3831
+ */
3832
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.getName = function() {
3833
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3834
+ };
3835
+
3836
+
3837
+ /**
3838
+ * @param {string} value
3839
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData} returns this
3840
+ */
3841
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.setName = function(value) {
3842
+ return jspb.Message.setProto3StringField(this, 1, value);
3843
+ };
3844
+
3845
+
3846
+ /**
3847
+ * optional string adsi_filter = 2;
3848
+ * @return {string}
3849
+ */
3850
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.getAdsiFilter = function() {
3851
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3852
+ };
3853
+
3854
+
3855
+ /**
3856
+ * @param {string} value
3857
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData} returns this
3858
+ */
3859
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.setAdsiFilter = function(value) {
3860
+ return jspb.Message.setProto3StringField(this, 2, value);
3861
+ };
3862
+
3863
+
3864
+ /**
3865
+ * optional string domain = 3;
3866
+ * @return {string}
3867
+ */
3868
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.getDomain = function() {
3869
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3870
+ };
3871
+
3872
+
3873
+ /**
3874
+ * @param {string} value
3875
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData} returns this
3876
+ */
3877
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.setDomain = function(value) {
3878
+ return jspb.Message.setProto3StringField(this, 3, value);
3879
+ };
3880
+
3881
+
3882
+ /**
3883
+ * optional bool computer_scan = 4;
3884
+ * @return {boolean}
3885
+ */
3886
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.getComputerScan = function() {
3887
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
3888
+ };
3889
+
3890
+
3891
+ /**
3892
+ * @param {boolean} value
3893
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData} returns this
3894
+ */
3895
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.setComputerScan = function(value) {
3896
+ return jspb.Message.setProto3BooleanField(this, 4, value);
3897
+ };
3898
+
3899
+
3900
+ /**
3901
+ * optional bool user_group_scan = 5;
3902
+ * @return {boolean}
3903
+ */
3904
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.getUserGroupScan = function() {
3905
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
3906
+ };
3907
+
3908
+
3909
+ /**
3910
+ * @param {boolean} value
3911
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData} returns this
3912
+ */
3913
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.setUserGroupScan = function(value) {
3914
+ return jspb.Message.setProto3BooleanField(this, 5, value);
3915
+ };
3916
+
3917
+
3918
+ /**
3919
+ * optional LDAPType ldap_type = 6;
3920
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData.LDAPType}
3921
+ */
3922
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.getLdapType = function() {
3923
+ return /** @type {!proto.lansweeper.scanningconfig.v1.ADData.LDAPType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3924
+ };
3925
+
3926
+
3927
+ /**
3928
+ * @param {!proto.lansweeper.scanningconfig.v1.ADData.LDAPType} value
3929
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData} returns this
3930
+ */
3931
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.setLdapType = function(value) {
3932
+ return jspb.Message.setProto3EnumField(this, 6, value);
3933
+ };
3934
+
3935
+
3936
+ /**
3937
+ * optional int32 port = 7;
3938
+ * @return {number}
3939
+ */
3940
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.getPort = function() {
3941
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
3942
+ };
3943
+
3944
+
3945
+ /**
3946
+ * @param {number} value
3947
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData} returns this
3948
+ */
3949
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.setPort = function(value) {
3950
+ return jspb.Message.setProto3IntField(this, 7, value);
3951
+ };
3952
+
3953
+
3954
+
3955
+
3956
+
3957
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3958
+ /**
3959
+ * Creates an object representation of this proto.
3960
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3961
+ * Optional fields that are not set will be set to undefined.
3962
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3963
+ * For the list of reserved names please see:
3964
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3965
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3966
+ * JSPB instance for transitional soy proto support:
3967
+ * http://goto/soy-param-migration
3968
+ * @return {!Object}
3969
+ */
3970
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.toObject = function(opt_includeInstance) {
3971
+ return proto.lansweeper.scanningconfig.v1.Agent.toObject(opt_includeInstance, this);
3972
+ };
3973
+
3974
+
3975
+ /**
3976
+ * Static version of the {@see toObject} method.
3977
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3978
+ * the JSPB instance for transitional soy proto support:
3979
+ * http://goto/soy-param-migration
3980
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent} msg The msg instance to transform.
3981
+ * @return {!Object}
3982
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3983
+ */
3984
+ proto.lansweeper.scanningconfig.v1.Agent.toObject = function(includeInstance, msg) {
3985
+ var f, obj = {
3986
+ scanFocus: jspb.Message.getFieldWithDefault(msg, 1, 0)
3987
+ };
3988
+
3989
+ if (includeInstance) {
3990
+ obj.$jspbMessageInstance = msg;
3991
+ }
3992
+ return obj;
3993
+ };
3994
+ }
3995
+
3996
+
3997
+ /**
3998
+ * Deserializes binary data (in protobuf wire format).
3999
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4000
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent}
4001
+ */
4002
+ proto.lansweeper.scanningconfig.v1.Agent.deserializeBinary = function(bytes) {
4003
+ var reader = new jspb.BinaryReader(bytes);
4004
+ var msg = new proto.lansweeper.scanningconfig.v1.Agent;
4005
+ return proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader(msg, reader);
4006
+ };
4007
+
4008
+
4009
+ /**
4010
+ * Deserializes binary data (in protobuf wire format) from the
4011
+ * given reader into the given message object.
4012
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent} msg The message object to deserialize into.
4013
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4014
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent}
4015
+ */
4016
+ proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader = function(msg, reader) {
4017
+ while (reader.nextField()) {
4018
+ if (reader.isEndGroup()) {
4019
+ break;
4020
+ }
4021
+ var field = reader.getFieldNumber();
4022
+ switch (field) {
4023
+ case 1:
4024
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} */ (reader.readEnum());
4025
+ msg.setScanFocus(value);
4026
+ break;
4027
+ default:
4028
+ reader.skipField();
4029
+ break;
4030
+ }
4031
+ }
4032
+ return msg;
4033
+ };
4034
+
4035
+
4036
+ /**
4037
+ * Serializes the message to binary data (in protobuf wire format).
4038
+ * @return {!Uint8Array}
4039
+ */
4040
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.serializeBinary = function() {
4041
+ var writer = new jspb.BinaryWriter();
4042
+ proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter(this, writer);
4043
+ return writer.getResultBuffer();
4044
+ };
4045
+
4046
+
4047
+ /**
4048
+ * Serializes the given message to binary data (in protobuf wire
4049
+ * format), writing to the given BinaryWriter.
4050
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent} message
4051
+ * @param {!jspb.BinaryWriter} writer
4052
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4053
+ */
4054
+ proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter = function(message, writer) {
4055
+ var f = undefined;
4056
+ f = message.getScanFocus();
4057
+ if (f !== 0.0) {
4058
+ writer.writeEnum(
4059
+ 1,
4060
+ f
4061
+ );
4062
+ }
4063
+ };
4064
+
4065
+
4066
+ /**
4067
+ * @enum {number}
4068
+ */
4069
+ proto.lansweeper.scanningconfig.v1.Agent.ScanFocus = {
4070
+ ALL: 0,
4071
+ USERS: 1,
4072
+ INVENTORY: 2
4073
+ };
4074
+
4075
+ /**
4076
+ * optional ScanFocus scan_focus = 1;
4077
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus}
4078
+ */
4079
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.getScanFocus = function() {
4080
+ return /** @type {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4081
+ };
4082
+
4083
+
4084
+ /**
4085
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} value
4086
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent} returns this
4087
+ */
4088
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.setScanFocus = function(value) {
4089
+ return jspb.Message.setProto3EnumField(this, 1, value);
4090
+ };
4091
+
4092
+
4093
+
4094
+
4095
+
4096
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4097
+ /**
4098
+ * Creates an object representation of this proto.
4099
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4100
+ * Optional fields that are not set will be set to undefined.
4101
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4102
+ * For the list of reserved names please see:
4103
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4104
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4105
+ * JSPB instance for transitional soy proto support:
4106
+ * http://goto/soy-param-migration
4107
+ * @return {!Object}
4108
+ */
4109
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.toObject = function(opt_includeInstance) {
4110
+ return proto.lansweeper.scanningconfig.v1.Credential.toObject(opt_includeInstance, this);
4111
+ };
4112
+
4113
+
4114
+ /**
4115
+ * Static version of the {@see toObject} method.
4116
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4117
+ * the JSPB instance for transitional soy proto support:
4118
+ * http://goto/soy-param-migration
4119
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential} msg The msg instance to transform.
4120
+ * @return {!Object}
4121
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4122
+ */
4123
+ proto.lansweeper.scanningconfig.v1.Credential.toObject = function(includeInstance, msg) {
4124
+ var f, obj = {
4125
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0),
4126
+ id: jspb.Message.getFieldWithDefault(msg, 2, "")
4127
+ };
4128
+
4129
+ if (includeInstance) {
4130
+ obj.$jspbMessageInstance = msg;
4131
+ }
4132
+ return obj;
4133
+ };
4134
+ }
4135
+
4136
+
4137
+ /**
4138
+ * Deserializes binary data (in protobuf wire format).
4139
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4140
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential}
4141
+ */
4142
+ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinary = function(bytes) {
4143
+ var reader = new jspb.BinaryReader(bytes);
4144
+ var msg = new proto.lansweeper.scanningconfig.v1.Credential;
4145
+ return proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader(msg, reader);
4146
+ };
4147
+
4148
+
4149
+ /**
4150
+ * Deserializes binary data (in protobuf wire format) from the
4151
+ * given reader into the given message object.
4152
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential} msg The message object to deserialize into.
4153
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4154
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential}
4155
+ */
4156
+ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader = function(msg, reader) {
4157
+ while (reader.nextField()) {
4158
+ if (reader.isEndGroup()) {
4159
+ break;
4160
+ }
4161
+ var field = reader.getFieldNumber();
4162
+ switch (field) {
4163
+ case 1:
4164
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} */ (reader.readEnum());
4165
+ msg.setType(value);
4166
+ break;
4167
+ case 2:
4168
+ var value = /** @type {string} */ (reader.readString());
4169
+ msg.setId(value);
4170
+ break;
4171
+ default:
4172
+ reader.skipField();
4173
+ break;
4174
+ }
4175
+ }
4176
+ return msg;
4177
+ };
4178
+
4179
+
4180
+ /**
4181
+ * Serializes the message to binary data (in protobuf wire format).
4182
+ * @return {!Uint8Array}
4183
+ */
4184
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.serializeBinary = function() {
4185
+ var writer = new jspb.BinaryWriter();
4186
+ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter(this, writer);
4187
+ return writer.getResultBuffer();
4188
+ };
4189
+
4190
+
4191
+ /**
4192
+ * Serializes the given message to binary data (in protobuf wire
4193
+ * format), writing to the given BinaryWriter.
4194
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential} message
4195
+ * @param {!jspb.BinaryWriter} writer
4196
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4197
+ */
4198
+ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter = function(message, writer) {
4199
+ var f = undefined;
4200
+ f = message.getType();
4201
+ if (f !== 0.0) {
4202
+ writer.writeEnum(
4203
+ 1,
4204
+ f
4205
+ );
4206
+ }
4207
+ f = message.getId();
4208
+ if (f.length > 0) {
4209
+ writer.writeString(
4210
+ 2,
4211
+ f
4212
+ );
4213
+ }
4214
+ };
4215
+
4216
+
4217
+ /**
4218
+ * @enum {number}
4219
+ */
4220
+ proto.lansweeper.scanningconfig.v1.Credential.CredentialType = {
4221
+ UNSPECIFIED: 0
4222
+ };
4223
+
4224
+ /**
4225
+ * optional CredentialType type = 1;
4226
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType}
4227
+ */
4228
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.getType = function() {
4229
+ return /** @type {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4230
+ };
4231
+
4232
+
4233
+ /**
4234
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} value
4235
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential} returns this
4236
+ */
4237
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.setType = function(value) {
4238
+ return jspb.Message.setProto3EnumField(this, 1, value);
4239
+ };
4240
+
4241
+
4242
+ /**
4243
+ * optional string id = 2;
4244
+ * @return {string}
4245
+ */
4246
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.getId = function() {
4247
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4248
+ };
4249
+
4250
+
4251
+ /**
4252
+ * @param {string} value
4253
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential} returns this
4254
+ */
4255
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.setId = function(value) {
4256
+ return jspb.Message.setProto3StringField(this, 2, value);
4257
+ };
4258
+
4259
+
4260
+ /**
4261
+ * @enum {number}
4262
+ */
4263
+ proto.lansweeper.scanningconfig.v1.IPScanType = {
4264
+ UNKNOWN_IP_SCAN_TYPE: 0,
4265
+ RANGE: 1,
4266
+ HOST: 2
4267
+ };
4268
+
3078
4269
  goog.object.extend(exports, proto.lansweeper.scanningconfig.v1);