@lansweeper/scanningconfig-grpc 0.2.1 → 0.2.2

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.
@@ -37,8 +37,14 @@ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Credential', null, global)
37
37
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Credential.CredentialType', null, global);
38
38
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest', null, global);
39
39
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse', null, global);
40
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.IPScanData', null, global);
41
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.IPScanPing', null, global);
42
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.IPScanType', null, global);
40
43
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.NetworkVisibility', null, global);
41
44
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.OperationalConfig', null, global);
45
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.TargetData', null, global);
46
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.TargetData.InfoCase', null, global);
47
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.TargetData.TargetType', null, global);
42
48
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Trigger', null, global);
43
49
  /**
44
50
  * Generated by JsPbCodeGenerator.
@@ -271,6 +277,69 @@ if (goog.DEBUG && !COMPILED) {
271
277
  */
272
278
  proto.lansweeper.scanningconfig.v1.ActionDefinition.displayName = 'proto.lansweeper.scanningconfig.v1.ActionDefinition';
273
279
  }
280
+ /**
281
+ * Generated by JsPbCodeGenerator.
282
+ * @param {Array=} opt_data Optional initial data array, typically from a
283
+ * server response, or constructed directly in Javascript. The array is used
284
+ * in place and becomes part of the constructed object. It is not cloned.
285
+ * If no data is provided, the constructed object will be empty, but still
286
+ * valid.
287
+ * @extends {jspb.Message}
288
+ * @constructor
289
+ */
290
+ proto.lansweeper.scanningconfig.v1.TargetData = function(opt_data) {
291
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_);
292
+ };
293
+ goog.inherits(proto.lansweeper.scanningconfig.v1.TargetData, jspb.Message);
294
+ if (goog.DEBUG && !COMPILED) {
295
+ /**
296
+ * @public
297
+ * @override
298
+ */
299
+ proto.lansweeper.scanningconfig.v1.TargetData.displayName = 'proto.lansweeper.scanningconfig.v1.TargetData';
300
+ }
301
+ /**
302
+ * Generated by JsPbCodeGenerator.
303
+ * @param {Array=} opt_data Optional initial data array, typically from a
304
+ * server response, or constructed directly in Javascript. The array is used
305
+ * in place and becomes part of the constructed object. It is not cloned.
306
+ * If no data is provided, the constructed object will be empty, but still
307
+ * valid.
308
+ * @extends {jspb.Message}
309
+ * @constructor
310
+ */
311
+ proto.lansweeper.scanningconfig.v1.IPScanData = function(opt_data) {
312
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
313
+ };
314
+ goog.inherits(proto.lansweeper.scanningconfig.v1.IPScanData, jspb.Message);
315
+ if (goog.DEBUG && !COMPILED) {
316
+ /**
317
+ * @public
318
+ * @override
319
+ */
320
+ proto.lansweeper.scanningconfig.v1.IPScanData.displayName = 'proto.lansweeper.scanningconfig.v1.IPScanData';
321
+ }
322
+ /**
323
+ * Generated by JsPbCodeGenerator.
324
+ * @param {Array=} opt_data Optional initial data array, typically from a
325
+ * server response, or constructed directly in Javascript. The array is used
326
+ * in place and becomes part of the constructed object. It is not cloned.
327
+ * If no data is provided, the constructed object will be empty, but still
328
+ * valid.
329
+ * @extends {jspb.Message}
330
+ * @constructor
331
+ */
332
+ proto.lansweeper.scanningconfig.v1.IPScanPing = function(opt_data) {
333
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
334
+ };
335
+ goog.inherits(proto.lansweeper.scanningconfig.v1.IPScanPing, jspb.Message);
336
+ if (goog.DEBUG && !COMPILED) {
337
+ /**
338
+ * @public
339
+ * @override
340
+ */
341
+ proto.lansweeper.scanningconfig.v1.IPScanPing.displayName = 'proto.lansweeper.scanningconfig.v1.IPScanPing';
342
+ }
274
343
  /**
275
344
  * Generated by JsPbCodeGenerator.
276
345
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2513,7 +2582,7 @@ proto.lansweeper.scanningconfig.v1.Agentless.prototype.clearTargetsList = functi
2513
2582
  * @private {!Array<number>}
2514
2583
  * @const
2515
2584
  */
2516
- proto.lansweeper.scanningconfig.v1.ActionDefinition.repeatedFields_ = [2,3];
2585
+ proto.lansweeper.scanningconfig.v1.ActionDefinition.repeatedFields_ = [2,3,4];
2517
2586
 
2518
2587
 
2519
2588
 
@@ -2548,7 +2617,9 @@ proto.lansweeper.scanningconfig.v1.ActionDefinition.toObject = function(includeI
2548
2617
  var f, obj = {
2549
2618
  scanFocus: jspb.Message.getFieldWithDefault(msg, 1, 0),
2550
2619
  targetsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
2551
- exclusionsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
2620
+ exclusionsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
2621
+ targetsdataList: jspb.Message.toObjectList(msg.getTargetsdataList(),
2622
+ proto.lansweeper.scanningconfig.v1.TargetData.toObject, includeInstance)
2552
2623
  };
2553
2624
 
2554
2625
  if (includeInstance) {
@@ -2597,6 +2668,11 @@ proto.lansweeper.scanningconfig.v1.ActionDefinition.deserializeBinaryFromReader
2597
2668
  var value = /** @type {string} */ (reader.readString());
2598
2669
  msg.addExclusions(value);
2599
2670
  break;
2671
+ case 4:
2672
+ var value = new proto.lansweeper.scanningconfig.v1.TargetData;
2673
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.TargetData.deserializeBinaryFromReader);
2674
+ msg.addTargetsdata(value);
2675
+ break;
2600
2676
  default:
2601
2677
  reader.skipField();
2602
2678
  break;
@@ -2647,6 +2723,14 @@ proto.lansweeper.scanningconfig.v1.ActionDefinition.serializeBinaryToWriter = fu
2647
2723
  f
2648
2724
  );
2649
2725
  }
2726
+ f = message.getTargetsdataList();
2727
+ if (f.length > 0) {
2728
+ writer.writeRepeatedMessage(
2729
+ 4,
2730
+ f,
2731
+ proto.lansweeper.scanningconfig.v1.TargetData.serializeBinaryToWriter
2732
+ );
2733
+ }
2650
2734
  };
2651
2735
 
2652
2736
 
@@ -2769,6 +2853,70 @@ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.clearExclusionsLis
2769
2853
  };
2770
2854
 
2771
2855
 
2856
+ /**
2857
+ * repeated TargetData targetsData = 4;
2858
+ * @return {!Array<!proto.lansweeper.scanningconfig.v1.TargetData>}
2859
+ */
2860
+ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.getTargetsdataList = function() {
2861
+ return /** @type{!Array<!proto.lansweeper.scanningconfig.v1.TargetData>} */ (
2862
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.scanningconfig.v1.TargetData, 4));
2863
+ };
2864
+
2865
+
2866
+ /**
2867
+ * @param {!Array<!proto.lansweeper.scanningconfig.v1.TargetData>} value
2868
+ * @return {!proto.lansweeper.scanningconfig.v1.ActionDefinition} returns this
2869
+ */
2870
+ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.setTargetsdataList = function(value) {
2871
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
2872
+ };
2873
+
2874
+
2875
+ /**
2876
+ * @param {!proto.lansweeper.scanningconfig.v1.TargetData=} opt_value
2877
+ * @param {number=} opt_index
2878
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData}
2879
+ */
2880
+ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.addTargetsdata = function(opt_value, opt_index) {
2881
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.lansweeper.scanningconfig.v1.TargetData, opt_index);
2882
+ };
2883
+
2884
+
2885
+ /**
2886
+ * Clears the list making it empty but non-null.
2887
+ * @return {!proto.lansweeper.scanningconfig.v1.ActionDefinition} returns this
2888
+ */
2889
+ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.clearTargetsdataList = function() {
2890
+ return this.setTargetsdataList([]);
2891
+ };
2892
+
2893
+
2894
+
2895
+ /**
2896
+ * Oneof group definitions for this message. Each group defines the field
2897
+ * numbers belonging to that group. When of these fields' value is set, all
2898
+ * other fields in the group are cleared. During deserialization, if multiple
2899
+ * fields are encountered for a group, only the last value seen will be kept.
2900
+ * @private {!Array<!Array<number>>}
2901
+ * @const
2902
+ */
2903
+ proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_ = [[2,4]];
2904
+
2905
+ /**
2906
+ * @enum {number}
2907
+ */
2908
+ proto.lansweeper.scanningconfig.v1.TargetData.InfoCase = {
2909
+ INFO_NOT_SET: 0,
2910
+ IP_SCAN_DATA: 2,
2911
+ TARGET: 4
2912
+ };
2913
+
2914
+ /**
2915
+ * @return {proto.lansweeper.scanningconfig.v1.TargetData.InfoCase}
2916
+ */
2917
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.getInfoCase = function() {
2918
+ return /** @type {proto.lansweeper.scanningconfig.v1.TargetData.InfoCase} */(jspb.Message.computeOneofCase(this, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_[0]));
2919
+ };
2772
2920
 
2773
2921
 
2774
2922
 
@@ -2785,8 +2933,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2785
2933
  * http://goto/soy-param-migration
2786
2934
  * @return {!Object}
2787
2935
  */
2788
- proto.lansweeper.scanningconfig.v1.Agent.prototype.toObject = function(opt_includeInstance) {
2789
- return proto.lansweeper.scanningconfig.v1.Agent.toObject(opt_includeInstance, this);
2936
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.toObject = function(opt_includeInstance) {
2937
+ return proto.lansweeper.scanningconfig.v1.TargetData.toObject(opt_includeInstance, this);
2790
2938
  };
2791
2939
 
2792
2940
 
@@ -2795,13 +2943,15 @@ proto.lansweeper.scanningconfig.v1.Agent.prototype.toObject = function(opt_inclu
2795
2943
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2796
2944
  * the JSPB instance for transitional soy proto support:
2797
2945
  * http://goto/soy-param-migration
2798
- * @param {!proto.lansweeper.scanningconfig.v1.Agent} msg The msg instance to transform.
2946
+ * @param {!proto.lansweeper.scanningconfig.v1.TargetData} msg The msg instance to transform.
2799
2947
  * @return {!Object}
2800
2948
  * @suppress {unusedLocalVariables} f is only used for nested messages
2801
2949
  */
2802
- proto.lansweeper.scanningconfig.v1.Agent.toObject = function(includeInstance, msg) {
2950
+ proto.lansweeper.scanningconfig.v1.TargetData.toObject = function(includeInstance, msg) {
2803
2951
  var f, obj = {
2804
- scanFocus: jspb.Message.getFieldWithDefault(msg, 1, 0)
2952
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0),
2953
+ ipScanData: (f = msg.getIpScanData()) && proto.lansweeper.scanningconfig.v1.IPScanData.toObject(includeInstance, f),
2954
+ target: jspb.Message.getFieldWithDefault(msg, 4, "")
2805
2955
  };
2806
2956
 
2807
2957
  if (includeInstance) {
@@ -2815,23 +2965,23 @@ proto.lansweeper.scanningconfig.v1.Agent.toObject = function(includeInstance, ms
2815
2965
  /**
2816
2966
  * Deserializes binary data (in protobuf wire format).
2817
2967
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2818
- * @return {!proto.lansweeper.scanningconfig.v1.Agent}
2968
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData}
2819
2969
  */
2820
- proto.lansweeper.scanningconfig.v1.Agent.deserializeBinary = function(bytes) {
2970
+ proto.lansweeper.scanningconfig.v1.TargetData.deserializeBinary = function(bytes) {
2821
2971
  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);
2972
+ var msg = new proto.lansweeper.scanningconfig.v1.TargetData;
2973
+ return proto.lansweeper.scanningconfig.v1.TargetData.deserializeBinaryFromReader(msg, reader);
2824
2974
  };
2825
2975
 
2826
2976
 
2827
2977
  /**
2828
2978
  * Deserializes binary data (in protobuf wire format) from the
2829
2979
  * given reader into the given message object.
2830
- * @param {!proto.lansweeper.scanningconfig.v1.Agent} msg The message object to deserialize into.
2980
+ * @param {!proto.lansweeper.scanningconfig.v1.TargetData} msg The message object to deserialize into.
2831
2981
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2832
- * @return {!proto.lansweeper.scanningconfig.v1.Agent}
2982
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData}
2833
2983
  */
2834
- proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader = function(msg, reader) {
2984
+ proto.lansweeper.scanningconfig.v1.TargetData.deserializeBinaryFromReader = function(msg, reader) {
2835
2985
  while (reader.nextField()) {
2836
2986
  if (reader.isEndGroup()) {
2837
2987
  break;
@@ -2839,8 +2989,17 @@ proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader = function(
2839
2989
  var field = reader.getFieldNumber();
2840
2990
  switch (field) {
2841
2991
  case 1:
2842
- var value = /** @type {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} */ (reader.readEnum());
2843
- msg.setScanFocus(value);
2992
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.TargetData.TargetType} */ (reader.readEnum());
2993
+ msg.setType(value);
2994
+ break;
2995
+ case 2:
2996
+ var value = new proto.lansweeper.scanningconfig.v1.IPScanData;
2997
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.IPScanData.deserializeBinaryFromReader);
2998
+ msg.setIpScanData(value);
2999
+ break;
3000
+ case 4:
3001
+ var value = /** @type {string} */ (reader.readString());
3002
+ msg.setTarget(value);
2844
3003
  break;
2845
3004
  default:
2846
3005
  reader.skipField();
@@ -2855,9 +3014,9 @@ proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader = function(
2855
3014
  * Serializes the message to binary data (in protobuf wire format).
2856
3015
  * @return {!Uint8Array}
2857
3016
  */
2858
- proto.lansweeper.scanningconfig.v1.Agent.prototype.serializeBinary = function() {
3017
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.serializeBinary = function() {
2859
3018
  var writer = new jspb.BinaryWriter();
2860
- proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter(this, writer);
3019
+ proto.lansweeper.scanningconfig.v1.TargetData.serializeBinaryToWriter(this, writer);
2861
3020
  return writer.getResultBuffer();
2862
3021
  };
2863
3022
 
@@ -2865,49 +3024,137 @@ proto.lansweeper.scanningconfig.v1.Agent.prototype.serializeBinary = function()
2865
3024
  /**
2866
3025
  * Serializes the given message to binary data (in protobuf wire
2867
3026
  * format), writing to the given BinaryWriter.
2868
- * @param {!proto.lansweeper.scanningconfig.v1.Agent} message
3027
+ * @param {!proto.lansweeper.scanningconfig.v1.TargetData} message
2869
3028
  * @param {!jspb.BinaryWriter} writer
2870
3029
  * @suppress {unusedLocalVariables} f is only used for nested messages
2871
3030
  */
2872
- proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter = function(message, writer) {
3031
+ proto.lansweeper.scanningconfig.v1.TargetData.serializeBinaryToWriter = function(message, writer) {
2873
3032
  var f = undefined;
2874
- f = message.getScanFocus();
3033
+ f = message.getType();
2875
3034
  if (f !== 0.0) {
2876
3035
  writer.writeEnum(
2877
3036
  1,
2878
3037
  f
2879
3038
  );
2880
3039
  }
3040
+ f = message.getIpScanData();
3041
+ if (f != null) {
3042
+ writer.writeMessage(
3043
+ 2,
3044
+ f,
3045
+ proto.lansweeper.scanningconfig.v1.IPScanData.serializeBinaryToWriter
3046
+ );
3047
+ }
3048
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3049
+ if (f != null) {
3050
+ writer.writeString(
3051
+ 4,
3052
+ f
3053
+ );
3054
+ }
2881
3055
  };
2882
3056
 
2883
3057
 
2884
3058
  /**
2885
3059
  * @enum {number}
2886
3060
  */
2887
- proto.lansweeper.scanningconfig.v1.Agent.ScanFocus = {
2888
- ALL: 0,
2889
- USERS: 1,
2890
- INVENTORY: 2
3061
+ proto.lansweeper.scanningconfig.v1.TargetData.TargetType = {
3062
+ UNKNOWN_TARGET_TYPE: 0,
3063
+ IP_SCAN: 1,
3064
+ SCCM: 2
2891
3065
  };
2892
3066
 
2893
3067
  /**
2894
- * optional ScanFocus scan_focus = 1;
2895
- * @return {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus}
3068
+ * optional TargetType type = 1;
3069
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData.TargetType}
2896
3070
  */
2897
- proto.lansweeper.scanningconfig.v1.Agent.prototype.getScanFocus = function() {
2898
- return /** @type {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3071
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.getType = function() {
3072
+ return /** @type {!proto.lansweeper.scanningconfig.v1.TargetData.TargetType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2899
3073
  };
2900
3074
 
2901
3075
 
2902
3076
  /**
2903
- * @param {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} value
2904
- * @return {!proto.lansweeper.scanningconfig.v1.Agent} returns this
3077
+ * @param {!proto.lansweeper.scanningconfig.v1.TargetData.TargetType} value
3078
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
2905
3079
  */
2906
- proto.lansweeper.scanningconfig.v1.Agent.prototype.setScanFocus = function(value) {
3080
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.setType = function(value) {
2907
3081
  return jspb.Message.setProto3EnumField(this, 1, value);
2908
3082
  };
2909
3083
 
2910
3084
 
3085
+ /**
3086
+ * optional IPScanData ip_scan_data = 2;
3087
+ * @return {?proto.lansweeper.scanningconfig.v1.IPScanData}
3088
+ */
3089
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.getIpScanData = function() {
3090
+ return /** @type{?proto.lansweeper.scanningconfig.v1.IPScanData} */ (
3091
+ jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.IPScanData, 2));
3092
+ };
3093
+
3094
+
3095
+ /**
3096
+ * @param {?proto.lansweeper.scanningconfig.v1.IPScanData|undefined} value
3097
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3098
+ */
3099
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.setIpScanData = function(value) {
3100
+ return jspb.Message.setOneofWrapperField(this, 2, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_[0], value);
3101
+ };
3102
+
3103
+
3104
+ /**
3105
+ * Clears the message field making it undefined.
3106
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3107
+ */
3108
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.clearIpScanData = function() {
3109
+ return this.setIpScanData(undefined);
3110
+ };
3111
+
3112
+
3113
+ /**
3114
+ * Returns whether this field is set.
3115
+ * @return {boolean}
3116
+ */
3117
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.hasIpScanData = function() {
3118
+ return jspb.Message.getField(this, 2) != null;
3119
+ };
3120
+
3121
+
3122
+ /**
3123
+ * optional string target = 4;
3124
+ * @return {string}
3125
+ */
3126
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.getTarget = function() {
3127
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3128
+ };
3129
+
3130
+
3131
+ /**
3132
+ * @param {string} value
3133
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3134
+ */
3135
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.setTarget = function(value) {
3136
+ return jspb.Message.setOneofField(this, 4, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_[0], value);
3137
+ };
3138
+
3139
+
3140
+ /**
3141
+ * Clears the field making it undefined.
3142
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3143
+ */
3144
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.clearTarget = function() {
3145
+ return jspb.Message.setOneofField(this, 4, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_[0], undefined);
3146
+ };
3147
+
3148
+
3149
+ /**
3150
+ * Returns whether this field is set.
3151
+ * @return {boolean}
3152
+ */
3153
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.hasTarget = function() {
3154
+ return jspb.Message.getField(this, 4) != null;
3155
+ };
3156
+
3157
+
2911
3158
 
2912
3159
 
2913
3160
 
@@ -2924,8 +3171,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2924
3171
  * http://goto/soy-param-migration
2925
3172
  * @return {!Object}
2926
3173
  */
2927
- proto.lansweeper.scanningconfig.v1.Credential.prototype.toObject = function(opt_includeInstance) {
2928
- return proto.lansweeper.scanningconfig.v1.Credential.toObject(opt_includeInstance, this);
3174
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.toObject = function(opt_includeInstance) {
3175
+ return proto.lansweeper.scanningconfig.v1.IPScanData.toObject(opt_includeInstance, this);
2929
3176
  };
2930
3177
 
2931
3178
 
@@ -2934,14 +3181,15 @@ proto.lansweeper.scanningconfig.v1.Credential.prototype.toObject = function(opt_
2934
3181
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2935
3182
  * the JSPB instance for transitional soy proto support:
2936
3183
  * http://goto/soy-param-migration
2937
- * @param {!proto.lansweeper.scanningconfig.v1.Credential} msg The msg instance to transform.
3184
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanData} msg The msg instance to transform.
2938
3185
  * @return {!Object}
2939
3186
  * @suppress {unusedLocalVariables} f is only used for nested messages
2940
3187
  */
2941
- proto.lansweeper.scanningconfig.v1.Credential.toObject = function(includeInstance, msg) {
3188
+ proto.lansweeper.scanningconfig.v1.IPScanData.toObject = function(includeInstance, msg) {
2942
3189
  var f, obj = {
2943
3190
  type: jspb.Message.getFieldWithDefault(msg, 1, 0),
2944
- id: jspb.Message.getFieldWithDefault(msg, 2, "")
3191
+ target: jspb.Message.getFieldWithDefault(msg, 2, ""),
3192
+ ping: (f = msg.getPing()) && proto.lansweeper.scanningconfig.v1.IPScanPing.toObject(includeInstance, f)
2945
3193
  };
2946
3194
 
2947
3195
  if (includeInstance) {
@@ -2955,23 +3203,23 @@ proto.lansweeper.scanningconfig.v1.Credential.toObject = function(includeInstanc
2955
3203
  /**
2956
3204
  * Deserializes binary data (in protobuf wire format).
2957
3205
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
2958
- * @return {!proto.lansweeper.scanningconfig.v1.Credential}
3206
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData}
2959
3207
  */
2960
- proto.lansweeper.scanningconfig.v1.Credential.deserializeBinary = function(bytes) {
3208
+ proto.lansweeper.scanningconfig.v1.IPScanData.deserializeBinary = function(bytes) {
2961
3209
  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);
3210
+ var msg = new proto.lansweeper.scanningconfig.v1.IPScanData;
3211
+ return proto.lansweeper.scanningconfig.v1.IPScanData.deserializeBinaryFromReader(msg, reader);
2964
3212
  };
2965
3213
 
2966
3214
 
2967
3215
  /**
2968
3216
  * Deserializes binary data (in protobuf wire format) from the
2969
3217
  * given reader into the given message object.
2970
- * @param {!proto.lansweeper.scanningconfig.v1.Credential} msg The message object to deserialize into.
3218
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanData} msg The message object to deserialize into.
2971
3219
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2972
- * @return {!proto.lansweeper.scanningconfig.v1.Credential}
3220
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData}
2973
3221
  */
2974
- proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader = function(msg, reader) {
3222
+ proto.lansweeper.scanningconfig.v1.IPScanData.deserializeBinaryFromReader = function(msg, reader) {
2975
3223
  while (reader.nextField()) {
2976
3224
  if (reader.isEndGroup()) {
2977
3225
  break;
@@ -2979,12 +3227,17 @@ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader = func
2979
3227
  var field = reader.getFieldNumber();
2980
3228
  switch (field) {
2981
3229
  case 1:
2982
- var value = /** @type {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} */ (reader.readEnum());
3230
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.IPScanType} */ (reader.readEnum());
2983
3231
  msg.setType(value);
2984
3232
  break;
2985
3233
  case 2:
2986
3234
  var value = /** @type {string} */ (reader.readString());
2987
- msg.setId(value);
3235
+ msg.setTarget(value);
3236
+ break;
3237
+ case 3:
3238
+ var value = new proto.lansweeper.scanningconfig.v1.IPScanPing;
3239
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.IPScanPing.deserializeBinaryFromReader);
3240
+ msg.setPing(value);
2988
3241
  break;
2989
3242
  default:
2990
3243
  reader.skipField();
@@ -2999,9 +3252,9 @@ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader = func
2999
3252
  * Serializes the message to binary data (in protobuf wire format).
3000
3253
  * @return {!Uint8Array}
3001
3254
  */
3002
- proto.lansweeper.scanningconfig.v1.Credential.prototype.serializeBinary = function() {
3255
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.serializeBinary = function() {
3003
3256
  var writer = new jspb.BinaryWriter();
3004
- proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter(this, writer);
3257
+ proto.lansweeper.scanningconfig.v1.IPScanData.serializeBinaryToWriter(this, writer);
3005
3258
  return writer.getResultBuffer();
3006
3259
  };
3007
3260
 
@@ -3009,11 +3262,11 @@ proto.lansweeper.scanningconfig.v1.Credential.prototype.serializeBinary = functi
3009
3262
  /**
3010
3263
  * Serializes the given message to binary data (in protobuf wire
3011
3264
  * format), writing to the given BinaryWriter.
3012
- * @param {!proto.lansweeper.scanningconfig.v1.Credential} message
3265
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanData} message
3013
3266
  * @param {!jspb.BinaryWriter} writer
3014
3267
  * @suppress {unusedLocalVariables} f is only used for nested messages
3015
3268
  */
3016
- proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter = function(message, writer) {
3269
+ proto.lansweeper.scanningconfig.v1.IPScanData.serializeBinaryToWriter = function(message, writer) {
3017
3270
  var f = undefined;
3018
3271
  f = message.getType();
3019
3272
  if (f !== 0.0) {
@@ -3022,57 +3275,600 @@ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter = function
3022
3275
  f
3023
3276
  );
3024
3277
  }
3025
- f = message.getId();
3278
+ f = message.getTarget();
3026
3279
  if (f.length > 0) {
3027
3280
  writer.writeString(
3028
3281
  2,
3029
3282
  f
3030
3283
  );
3031
3284
  }
3285
+ f = message.getPing();
3286
+ if (f != null) {
3287
+ writer.writeMessage(
3288
+ 3,
3289
+ f,
3290
+ proto.lansweeper.scanningconfig.v1.IPScanPing.serializeBinaryToWriter
3291
+ );
3292
+ }
3032
3293
  };
3033
3294
 
3034
3295
 
3035
3296
  /**
3036
- * @enum {number}
3037
- */
3038
- proto.lansweeper.scanningconfig.v1.Credential.CredentialType = {
3039
- UNSPECIFIED: 0
3040
- };
3041
-
3042
- /**
3043
- * optional CredentialType type = 1;
3044
- * @return {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType}
3297
+ * optional IPScanType type = 1;
3298
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanType}
3045
3299
  */
3046
- proto.lansweeper.scanningconfig.v1.Credential.prototype.getType = function() {
3047
- return /** @type {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3300
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.getType = function() {
3301
+ return /** @type {!proto.lansweeper.scanningconfig.v1.IPScanType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3048
3302
  };
3049
3303
 
3050
3304
 
3051
3305
  /**
3052
- * @param {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} value
3053
- * @return {!proto.lansweeper.scanningconfig.v1.Credential} returns this
3306
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanType} value
3307
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData} returns this
3054
3308
  */
3055
- proto.lansweeper.scanningconfig.v1.Credential.prototype.setType = function(value) {
3309
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.setType = function(value) {
3056
3310
  return jspb.Message.setProto3EnumField(this, 1, value);
3057
3311
  };
3058
3312
 
3059
3313
 
3060
3314
  /**
3061
- * optional string id = 2;
3315
+ * optional string target = 2;
3062
3316
  * @return {string}
3063
3317
  */
3064
- proto.lansweeper.scanningconfig.v1.Credential.prototype.getId = function() {
3318
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.getTarget = function() {
3065
3319
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3066
3320
  };
3067
3321
 
3068
3322
 
3069
3323
  /**
3070
3324
  * @param {string} value
3071
- * @return {!proto.lansweeper.scanningconfig.v1.Credential} returns this
3325
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData} returns this
3072
3326
  */
3073
- proto.lansweeper.scanningconfig.v1.Credential.prototype.setId = function(value) {
3327
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.setTarget = function(value) {
3074
3328
  return jspb.Message.setProto3StringField(this, 2, value);
3075
3329
  };
3076
3330
 
3077
3331
 
3332
+ /**
3333
+ * optional IPScanPing ping = 3;
3334
+ * @return {?proto.lansweeper.scanningconfig.v1.IPScanPing}
3335
+ */
3336
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.getPing = function() {
3337
+ return /** @type{?proto.lansweeper.scanningconfig.v1.IPScanPing} */ (
3338
+ jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.IPScanPing, 3));
3339
+ };
3340
+
3341
+
3342
+ /**
3343
+ * @param {?proto.lansweeper.scanningconfig.v1.IPScanPing|undefined} value
3344
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData} returns this
3345
+ */
3346
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.setPing = function(value) {
3347
+ return jspb.Message.setWrapperField(this, 3, value);
3348
+ };
3349
+
3350
+
3351
+ /**
3352
+ * Clears the message field making it undefined.
3353
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanData} returns this
3354
+ */
3355
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.clearPing = function() {
3356
+ return this.setPing(undefined);
3357
+ };
3358
+
3359
+
3360
+ /**
3361
+ * Returns whether this field is set.
3362
+ * @return {boolean}
3363
+ */
3364
+ proto.lansweeper.scanningconfig.v1.IPScanData.prototype.hasPing = function() {
3365
+ return jspb.Message.getField(this, 3) != null;
3366
+ };
3367
+
3368
+
3369
+
3370
+
3371
+
3372
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3373
+ /**
3374
+ * Creates an object representation of this proto.
3375
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3376
+ * Optional fields that are not set will be set to undefined.
3377
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3378
+ * For the list of reserved names please see:
3379
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3380
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3381
+ * JSPB instance for transitional soy proto support:
3382
+ * http://goto/soy-param-migration
3383
+ * @return {!Object}
3384
+ */
3385
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.toObject = function(opt_includeInstance) {
3386
+ return proto.lansweeper.scanningconfig.v1.IPScanPing.toObject(opt_includeInstance, this);
3387
+ };
3388
+
3389
+
3390
+ /**
3391
+ * Static version of the {@see toObject} method.
3392
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3393
+ * the JSPB instance for transitional soy proto support:
3394
+ * http://goto/soy-param-migration
3395
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanPing} msg The msg instance to transform.
3396
+ * @return {!Object}
3397
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3398
+ */
3399
+ proto.lansweeper.scanningconfig.v1.IPScanPing.toObject = function(includeInstance, msg) {
3400
+ var f, obj = {
3401
+ usePing: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
3402
+ pingTimeout: jspb.Message.getFieldWithDefault(msg, 2, 0),
3403
+ keepNoAnswerScan: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
3404
+ };
3405
+
3406
+ if (includeInstance) {
3407
+ obj.$jspbMessageInstance = msg;
3408
+ }
3409
+ return obj;
3410
+ };
3411
+ }
3412
+
3413
+
3414
+ /**
3415
+ * Deserializes binary data (in protobuf wire format).
3416
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3417
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanPing}
3418
+ */
3419
+ proto.lansweeper.scanningconfig.v1.IPScanPing.deserializeBinary = function(bytes) {
3420
+ var reader = new jspb.BinaryReader(bytes);
3421
+ var msg = new proto.lansweeper.scanningconfig.v1.IPScanPing;
3422
+ return proto.lansweeper.scanningconfig.v1.IPScanPing.deserializeBinaryFromReader(msg, reader);
3423
+ };
3424
+
3425
+
3426
+ /**
3427
+ * Deserializes binary data (in protobuf wire format) from the
3428
+ * given reader into the given message object.
3429
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanPing} msg The message object to deserialize into.
3430
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3431
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanPing}
3432
+ */
3433
+ proto.lansweeper.scanningconfig.v1.IPScanPing.deserializeBinaryFromReader = function(msg, reader) {
3434
+ while (reader.nextField()) {
3435
+ if (reader.isEndGroup()) {
3436
+ break;
3437
+ }
3438
+ var field = reader.getFieldNumber();
3439
+ switch (field) {
3440
+ case 1:
3441
+ var value = /** @type {boolean} */ (reader.readBool());
3442
+ msg.setUsePing(value);
3443
+ break;
3444
+ case 2:
3445
+ var value = /** @type {number} */ (reader.readInt32());
3446
+ msg.setPingTimeout(value);
3447
+ break;
3448
+ case 3:
3449
+ var value = /** @type {boolean} */ (reader.readBool());
3450
+ msg.setKeepNoAnswerScan(value);
3451
+ break;
3452
+ default:
3453
+ reader.skipField();
3454
+ break;
3455
+ }
3456
+ }
3457
+ return msg;
3458
+ };
3459
+
3460
+
3461
+ /**
3462
+ * Serializes the message to binary data (in protobuf wire format).
3463
+ * @return {!Uint8Array}
3464
+ */
3465
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.serializeBinary = function() {
3466
+ var writer = new jspb.BinaryWriter();
3467
+ proto.lansweeper.scanningconfig.v1.IPScanPing.serializeBinaryToWriter(this, writer);
3468
+ return writer.getResultBuffer();
3469
+ };
3470
+
3471
+
3472
+ /**
3473
+ * Serializes the given message to binary data (in protobuf wire
3474
+ * format), writing to the given BinaryWriter.
3475
+ * @param {!proto.lansweeper.scanningconfig.v1.IPScanPing} message
3476
+ * @param {!jspb.BinaryWriter} writer
3477
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3478
+ */
3479
+ proto.lansweeper.scanningconfig.v1.IPScanPing.serializeBinaryToWriter = function(message, writer) {
3480
+ var f = undefined;
3481
+ f = message.getUsePing();
3482
+ if (f) {
3483
+ writer.writeBool(
3484
+ 1,
3485
+ f
3486
+ );
3487
+ }
3488
+ f = message.getPingTimeout();
3489
+ if (f !== 0) {
3490
+ writer.writeInt32(
3491
+ 2,
3492
+ f
3493
+ );
3494
+ }
3495
+ f = message.getKeepNoAnswerScan();
3496
+ if (f) {
3497
+ writer.writeBool(
3498
+ 3,
3499
+ f
3500
+ );
3501
+ }
3502
+ };
3503
+
3504
+
3505
+ /**
3506
+ * optional bool use_ping = 1;
3507
+ * @return {boolean}
3508
+ */
3509
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.getUsePing = function() {
3510
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
3511
+ };
3512
+
3513
+
3514
+ /**
3515
+ * @param {boolean} value
3516
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanPing} returns this
3517
+ */
3518
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.setUsePing = function(value) {
3519
+ return jspb.Message.setProto3BooleanField(this, 1, value);
3520
+ };
3521
+
3522
+
3523
+ /**
3524
+ * optional int32 ping_timeout = 2;
3525
+ * @return {number}
3526
+ */
3527
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.getPingTimeout = function() {
3528
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3529
+ };
3530
+
3531
+
3532
+ /**
3533
+ * @param {number} value
3534
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanPing} returns this
3535
+ */
3536
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.setPingTimeout = function(value) {
3537
+ return jspb.Message.setProto3IntField(this, 2, value);
3538
+ };
3539
+
3540
+
3541
+ /**
3542
+ * optional bool keep_no_answer_scan = 3;
3543
+ * @return {boolean}
3544
+ */
3545
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.getKeepNoAnswerScan = function() {
3546
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
3547
+ };
3548
+
3549
+
3550
+ /**
3551
+ * @param {boolean} value
3552
+ * @return {!proto.lansweeper.scanningconfig.v1.IPScanPing} returns this
3553
+ */
3554
+ proto.lansweeper.scanningconfig.v1.IPScanPing.prototype.setKeepNoAnswerScan = function(value) {
3555
+ return jspb.Message.setProto3BooleanField(this, 3, value);
3556
+ };
3557
+
3558
+
3559
+
3560
+
3561
+
3562
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3563
+ /**
3564
+ * Creates an object representation of this proto.
3565
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3566
+ * Optional fields that are not set will be set to undefined.
3567
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3568
+ * For the list of reserved names please see:
3569
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3570
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3571
+ * JSPB instance for transitional soy proto support:
3572
+ * http://goto/soy-param-migration
3573
+ * @return {!Object}
3574
+ */
3575
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.toObject = function(opt_includeInstance) {
3576
+ return proto.lansweeper.scanningconfig.v1.Agent.toObject(opt_includeInstance, this);
3577
+ };
3578
+
3579
+
3580
+ /**
3581
+ * Static version of the {@see toObject} method.
3582
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3583
+ * the JSPB instance for transitional soy proto support:
3584
+ * http://goto/soy-param-migration
3585
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent} msg The msg instance to transform.
3586
+ * @return {!Object}
3587
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3588
+ */
3589
+ proto.lansweeper.scanningconfig.v1.Agent.toObject = function(includeInstance, msg) {
3590
+ var f, obj = {
3591
+ scanFocus: jspb.Message.getFieldWithDefault(msg, 1, 0)
3592
+ };
3593
+
3594
+ if (includeInstance) {
3595
+ obj.$jspbMessageInstance = msg;
3596
+ }
3597
+ return obj;
3598
+ };
3599
+ }
3600
+
3601
+
3602
+ /**
3603
+ * Deserializes binary data (in protobuf wire format).
3604
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3605
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent}
3606
+ */
3607
+ proto.lansweeper.scanningconfig.v1.Agent.deserializeBinary = function(bytes) {
3608
+ var reader = new jspb.BinaryReader(bytes);
3609
+ var msg = new proto.lansweeper.scanningconfig.v1.Agent;
3610
+ return proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader(msg, reader);
3611
+ };
3612
+
3613
+
3614
+ /**
3615
+ * Deserializes binary data (in protobuf wire format) from the
3616
+ * given reader into the given message object.
3617
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent} msg The message object to deserialize into.
3618
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3619
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent}
3620
+ */
3621
+ proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader = function(msg, reader) {
3622
+ while (reader.nextField()) {
3623
+ if (reader.isEndGroup()) {
3624
+ break;
3625
+ }
3626
+ var field = reader.getFieldNumber();
3627
+ switch (field) {
3628
+ case 1:
3629
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} */ (reader.readEnum());
3630
+ msg.setScanFocus(value);
3631
+ break;
3632
+ default:
3633
+ reader.skipField();
3634
+ break;
3635
+ }
3636
+ }
3637
+ return msg;
3638
+ };
3639
+
3640
+
3641
+ /**
3642
+ * Serializes the message to binary data (in protobuf wire format).
3643
+ * @return {!Uint8Array}
3644
+ */
3645
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.serializeBinary = function() {
3646
+ var writer = new jspb.BinaryWriter();
3647
+ proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter(this, writer);
3648
+ return writer.getResultBuffer();
3649
+ };
3650
+
3651
+
3652
+ /**
3653
+ * Serializes the given message to binary data (in protobuf wire
3654
+ * format), writing to the given BinaryWriter.
3655
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent} message
3656
+ * @param {!jspb.BinaryWriter} writer
3657
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3658
+ */
3659
+ proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter = function(message, writer) {
3660
+ var f = undefined;
3661
+ f = message.getScanFocus();
3662
+ if (f !== 0.0) {
3663
+ writer.writeEnum(
3664
+ 1,
3665
+ f
3666
+ );
3667
+ }
3668
+ };
3669
+
3670
+
3671
+ /**
3672
+ * @enum {number}
3673
+ */
3674
+ proto.lansweeper.scanningconfig.v1.Agent.ScanFocus = {
3675
+ ALL: 0,
3676
+ USERS: 1,
3677
+ INVENTORY: 2
3678
+ };
3679
+
3680
+ /**
3681
+ * optional ScanFocus scan_focus = 1;
3682
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus}
3683
+ */
3684
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.getScanFocus = function() {
3685
+ return /** @type {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3686
+ };
3687
+
3688
+
3689
+ /**
3690
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} value
3691
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent} returns this
3692
+ */
3693
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.setScanFocus = function(value) {
3694
+ return jspb.Message.setProto3EnumField(this, 1, value);
3695
+ };
3696
+
3697
+
3698
+
3699
+
3700
+
3701
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3702
+ /**
3703
+ * Creates an object representation of this proto.
3704
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3705
+ * Optional fields that are not set will be set to undefined.
3706
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3707
+ * For the list of reserved names please see:
3708
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3709
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3710
+ * JSPB instance for transitional soy proto support:
3711
+ * http://goto/soy-param-migration
3712
+ * @return {!Object}
3713
+ */
3714
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.toObject = function(opt_includeInstance) {
3715
+ return proto.lansweeper.scanningconfig.v1.Credential.toObject(opt_includeInstance, this);
3716
+ };
3717
+
3718
+
3719
+ /**
3720
+ * Static version of the {@see toObject} method.
3721
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3722
+ * the JSPB instance for transitional soy proto support:
3723
+ * http://goto/soy-param-migration
3724
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential} msg The msg instance to transform.
3725
+ * @return {!Object}
3726
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3727
+ */
3728
+ proto.lansweeper.scanningconfig.v1.Credential.toObject = function(includeInstance, msg) {
3729
+ var f, obj = {
3730
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0),
3731
+ id: jspb.Message.getFieldWithDefault(msg, 2, "")
3732
+ };
3733
+
3734
+ if (includeInstance) {
3735
+ obj.$jspbMessageInstance = msg;
3736
+ }
3737
+ return obj;
3738
+ };
3739
+ }
3740
+
3741
+
3742
+ /**
3743
+ * Deserializes binary data (in protobuf wire format).
3744
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3745
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential}
3746
+ */
3747
+ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinary = function(bytes) {
3748
+ var reader = new jspb.BinaryReader(bytes);
3749
+ var msg = new proto.lansweeper.scanningconfig.v1.Credential;
3750
+ return proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader(msg, reader);
3751
+ };
3752
+
3753
+
3754
+ /**
3755
+ * Deserializes binary data (in protobuf wire format) from the
3756
+ * given reader into the given message object.
3757
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential} msg The message object to deserialize into.
3758
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3759
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential}
3760
+ */
3761
+ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader = function(msg, reader) {
3762
+ while (reader.nextField()) {
3763
+ if (reader.isEndGroup()) {
3764
+ break;
3765
+ }
3766
+ var field = reader.getFieldNumber();
3767
+ switch (field) {
3768
+ case 1:
3769
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} */ (reader.readEnum());
3770
+ msg.setType(value);
3771
+ break;
3772
+ case 2:
3773
+ var value = /** @type {string} */ (reader.readString());
3774
+ msg.setId(value);
3775
+ break;
3776
+ default:
3777
+ reader.skipField();
3778
+ break;
3779
+ }
3780
+ }
3781
+ return msg;
3782
+ };
3783
+
3784
+
3785
+ /**
3786
+ * Serializes the message to binary data (in protobuf wire format).
3787
+ * @return {!Uint8Array}
3788
+ */
3789
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.serializeBinary = function() {
3790
+ var writer = new jspb.BinaryWriter();
3791
+ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter(this, writer);
3792
+ return writer.getResultBuffer();
3793
+ };
3794
+
3795
+
3796
+ /**
3797
+ * Serializes the given message to binary data (in protobuf wire
3798
+ * format), writing to the given BinaryWriter.
3799
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential} message
3800
+ * @param {!jspb.BinaryWriter} writer
3801
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3802
+ */
3803
+ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter = function(message, writer) {
3804
+ var f = undefined;
3805
+ f = message.getType();
3806
+ if (f !== 0.0) {
3807
+ writer.writeEnum(
3808
+ 1,
3809
+ f
3810
+ );
3811
+ }
3812
+ f = message.getId();
3813
+ if (f.length > 0) {
3814
+ writer.writeString(
3815
+ 2,
3816
+ f
3817
+ );
3818
+ }
3819
+ };
3820
+
3821
+
3822
+ /**
3823
+ * @enum {number}
3824
+ */
3825
+ proto.lansweeper.scanningconfig.v1.Credential.CredentialType = {
3826
+ UNSPECIFIED: 0
3827
+ };
3828
+
3829
+ /**
3830
+ * optional CredentialType type = 1;
3831
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType}
3832
+ */
3833
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.getType = function() {
3834
+ return /** @type {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3835
+ };
3836
+
3837
+
3838
+ /**
3839
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} value
3840
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential} returns this
3841
+ */
3842
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.setType = function(value) {
3843
+ return jspb.Message.setProto3EnumField(this, 1, value);
3844
+ };
3845
+
3846
+
3847
+ /**
3848
+ * optional string id = 2;
3849
+ * @return {string}
3850
+ */
3851
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.getId = function() {
3852
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3853
+ };
3854
+
3855
+
3856
+ /**
3857
+ * @param {string} value
3858
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential} returns this
3859
+ */
3860
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.setId = function(value) {
3861
+ return jspb.Message.setProto3StringField(this, 2, value);
3862
+ };
3863
+
3864
+
3865
+ /**
3866
+ * @enum {number}
3867
+ */
3868
+ proto.lansweeper.scanningconfig.v1.IPScanType = {
3869
+ UNKNOWN_IP_SCAN_TYPE: 0,
3870
+ RANGE: 1,
3871
+ HOST: 2
3872
+ };
3873
+
3078
3874
  goog.object.extend(exports, proto.lansweeper.scanningconfig.v1);