@lansweeper/scanningconfig-grpc 0.2.5 → 0.2.7

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.
@@ -44,6 +44,7 @@ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.IPScanPing', null, global)
44
44
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.IPScanType', null, global);
45
45
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.NetworkVisibility', null, global);
46
46
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.OperationalConfig', null, global);
47
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.SCCMData', null, global);
47
48
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.TargetData', null, global);
48
49
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.TargetData.InfoCase', null, global);
49
50
  goog.exportSymbol('proto.lansweeper.scanningconfig.v1.TargetData.TargetType', null, global);
@@ -300,6 +301,27 @@ if (goog.DEBUG && !COMPILED) {
300
301
  */
301
302
  proto.lansweeper.scanningconfig.v1.TargetData.displayName = 'proto.lansweeper.scanningconfig.v1.TargetData';
302
303
  }
304
+ /**
305
+ * Generated by JsPbCodeGenerator.
306
+ * @param {Array=} opt_data Optional initial data array, typically from a
307
+ * server response, or constructed directly in Javascript. The array is used
308
+ * in place and becomes part of the constructed object. It is not cloned.
309
+ * If no data is provided, the constructed object will be empty, but still
310
+ * valid.
311
+ * @extends {jspb.Message}
312
+ * @constructor
313
+ */
314
+ proto.lansweeper.scanningconfig.v1.SCCMData = function(opt_data) {
315
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
316
+ };
317
+ goog.inherits(proto.lansweeper.scanningconfig.v1.SCCMData, jspb.Message);
318
+ if (goog.DEBUG && !COMPILED) {
319
+ /**
320
+ * @public
321
+ * @override
322
+ */
323
+ proto.lansweeper.scanningconfig.v1.SCCMData.displayName = 'proto.lansweeper.scanningconfig.v1.SCCMData';
324
+ }
303
325
  /**
304
326
  * Generated by JsPbCodeGenerator.
305
327
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2923,7 +2945,7 @@ proto.lansweeper.scanningconfig.v1.ActionDefinition.prototype.clearTargetsDataLi
2923
2945
  * @private {!Array<!Array<number>>}
2924
2946
  * @const
2925
2947
  */
2926
- proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_ = [[2,3,4]];
2948
+ proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_ = [[2,3,4,5]];
2927
2949
 
2928
2950
  /**
2929
2951
  * @enum {number}
@@ -2932,7 +2954,8 @@ proto.lansweeper.scanningconfig.v1.TargetData.InfoCase = {
2932
2954
  INFO_NOT_SET: 0,
2933
2955
  IP_SCAN_DATA: 2,
2934
2956
  AD_DATA: 3,
2935
- TARGET: 4
2957
+ TARGET: 4,
2958
+ SCCM_DATA: 5
2936
2959
  };
2937
2960
 
2938
2961
  /**
@@ -2976,7 +2999,8 @@ proto.lansweeper.scanningconfig.v1.TargetData.toObject = function(includeInstanc
2976
2999
  type: jspb.Message.getFieldWithDefault(msg, 1, 0),
2977
3000
  ipScanData: (f = msg.getIpScanData()) && proto.lansweeper.scanningconfig.v1.IPScanData.toObject(includeInstance, f),
2978
3001
  adData: (f = msg.getAdData()) && proto.lansweeper.scanningconfig.v1.ADData.toObject(includeInstance, f),
2979
- target: jspb.Message.getFieldWithDefault(msg, 4, "")
3002
+ target: jspb.Message.getFieldWithDefault(msg, 4, ""),
3003
+ sccmData: (f = msg.getSccmData()) && proto.lansweeper.scanningconfig.v1.SCCMData.toObject(includeInstance, f)
2980
3004
  };
2981
3005
 
2982
3006
  if (includeInstance) {
@@ -3031,6 +3055,11 @@ proto.lansweeper.scanningconfig.v1.TargetData.deserializeBinaryFromReader = func
3031
3055
  var value = /** @type {string} */ (reader.readString());
3032
3056
  msg.setTarget(value);
3033
3057
  break;
3058
+ case 5:
3059
+ var value = new proto.lansweeper.scanningconfig.v1.SCCMData;
3060
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.SCCMData.deserializeBinaryFromReader);
3061
+ msg.setSccmData(value);
3062
+ break;
3034
3063
  default:
3035
3064
  reader.skipField();
3036
3065
  break;
@@ -3090,6 +3119,14 @@ proto.lansweeper.scanningconfig.v1.TargetData.serializeBinaryToWriter = function
3090
3119
  f
3091
3120
  );
3092
3121
  }
3122
+ f = message.getSccmData();
3123
+ if (f != null) {
3124
+ writer.writeMessage(
3125
+ 5,
3126
+ f,
3127
+ proto.lansweeper.scanningconfig.v1.SCCMData.serializeBinaryToWriter
3128
+ );
3129
+ }
3093
3130
  };
3094
3131
 
3095
3132
 
@@ -3231,6 +3268,173 @@ proto.lansweeper.scanningconfig.v1.TargetData.prototype.hasTarget = function() {
3231
3268
  };
3232
3269
 
3233
3270
 
3271
+ /**
3272
+ * optional SCCMData sccm_data = 5;
3273
+ * @return {?proto.lansweeper.scanningconfig.v1.SCCMData}
3274
+ */
3275
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.getSccmData = function() {
3276
+ return /** @type{?proto.lansweeper.scanningconfig.v1.SCCMData} */ (
3277
+ jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.SCCMData, 5));
3278
+ };
3279
+
3280
+
3281
+ /**
3282
+ * @param {?proto.lansweeper.scanningconfig.v1.SCCMData|undefined} value
3283
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3284
+ */
3285
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.setSccmData = function(value) {
3286
+ return jspb.Message.setOneofWrapperField(this, 5, proto.lansweeper.scanningconfig.v1.TargetData.oneofGroups_[0], value);
3287
+ };
3288
+
3289
+
3290
+ /**
3291
+ * Clears the message field making it undefined.
3292
+ * @return {!proto.lansweeper.scanningconfig.v1.TargetData} returns this
3293
+ */
3294
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.clearSccmData = function() {
3295
+ return this.setSccmData(undefined);
3296
+ };
3297
+
3298
+
3299
+ /**
3300
+ * Returns whether this field is set.
3301
+ * @return {boolean}
3302
+ */
3303
+ proto.lansweeper.scanningconfig.v1.TargetData.prototype.hasSccmData = function() {
3304
+ return jspb.Message.getField(this, 5) != null;
3305
+ };
3306
+
3307
+
3308
+
3309
+
3310
+
3311
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3312
+ /**
3313
+ * Creates an object representation of this proto.
3314
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3315
+ * Optional fields that are not set will be set to undefined.
3316
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3317
+ * For the list of reserved names please see:
3318
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3319
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3320
+ * JSPB instance for transitional soy proto support:
3321
+ * http://goto/soy-param-migration
3322
+ * @return {!Object}
3323
+ */
3324
+ proto.lansweeper.scanningconfig.v1.SCCMData.prototype.toObject = function(opt_includeInstance) {
3325
+ return proto.lansweeper.scanningconfig.v1.SCCMData.toObject(opt_includeInstance, this);
3326
+ };
3327
+
3328
+
3329
+ /**
3330
+ * Static version of the {@see toObject} method.
3331
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3332
+ * the JSPB instance for transitional soy proto support:
3333
+ * http://goto/soy-param-migration
3334
+ * @param {!proto.lansweeper.scanningconfig.v1.SCCMData} msg The msg instance to transform.
3335
+ * @return {!Object}
3336
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3337
+ */
3338
+ proto.lansweeper.scanningconfig.v1.SCCMData.toObject = function(includeInstance, msg) {
3339
+ var f, obj = {
3340
+ target: jspb.Message.getFieldWithDefault(msg, 1, "")
3341
+ };
3342
+
3343
+ if (includeInstance) {
3344
+ obj.$jspbMessageInstance = msg;
3345
+ }
3346
+ return obj;
3347
+ };
3348
+ }
3349
+
3350
+
3351
+ /**
3352
+ * Deserializes binary data (in protobuf wire format).
3353
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3354
+ * @return {!proto.lansweeper.scanningconfig.v1.SCCMData}
3355
+ */
3356
+ proto.lansweeper.scanningconfig.v1.SCCMData.deserializeBinary = function(bytes) {
3357
+ var reader = new jspb.BinaryReader(bytes);
3358
+ var msg = new proto.lansweeper.scanningconfig.v1.SCCMData;
3359
+ return proto.lansweeper.scanningconfig.v1.SCCMData.deserializeBinaryFromReader(msg, reader);
3360
+ };
3361
+
3362
+
3363
+ /**
3364
+ * Deserializes binary data (in protobuf wire format) from the
3365
+ * given reader into the given message object.
3366
+ * @param {!proto.lansweeper.scanningconfig.v1.SCCMData} msg The message object to deserialize into.
3367
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3368
+ * @return {!proto.lansweeper.scanningconfig.v1.SCCMData}
3369
+ */
3370
+ proto.lansweeper.scanningconfig.v1.SCCMData.deserializeBinaryFromReader = function(msg, reader) {
3371
+ while (reader.nextField()) {
3372
+ if (reader.isEndGroup()) {
3373
+ break;
3374
+ }
3375
+ var field = reader.getFieldNumber();
3376
+ switch (field) {
3377
+ case 1:
3378
+ var value = /** @type {string} */ (reader.readString());
3379
+ msg.setTarget(value);
3380
+ break;
3381
+ default:
3382
+ reader.skipField();
3383
+ break;
3384
+ }
3385
+ }
3386
+ return msg;
3387
+ };
3388
+
3389
+
3390
+ /**
3391
+ * Serializes the message to binary data (in protobuf wire format).
3392
+ * @return {!Uint8Array}
3393
+ */
3394
+ proto.lansweeper.scanningconfig.v1.SCCMData.prototype.serializeBinary = function() {
3395
+ var writer = new jspb.BinaryWriter();
3396
+ proto.lansweeper.scanningconfig.v1.SCCMData.serializeBinaryToWriter(this, writer);
3397
+ return writer.getResultBuffer();
3398
+ };
3399
+
3400
+
3401
+ /**
3402
+ * Serializes the given message to binary data (in protobuf wire
3403
+ * format), writing to the given BinaryWriter.
3404
+ * @param {!proto.lansweeper.scanningconfig.v1.SCCMData} message
3405
+ * @param {!jspb.BinaryWriter} writer
3406
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3407
+ */
3408
+ proto.lansweeper.scanningconfig.v1.SCCMData.serializeBinaryToWriter = function(message, writer) {
3409
+ var f = undefined;
3410
+ f = message.getTarget();
3411
+ if (f.length > 0) {
3412
+ writer.writeString(
3413
+ 1,
3414
+ f
3415
+ );
3416
+ }
3417
+ };
3418
+
3419
+
3420
+ /**
3421
+ * optional string target = 1;
3422
+ * @return {string}
3423
+ */
3424
+ proto.lansweeper.scanningconfig.v1.SCCMData.prototype.getTarget = function() {
3425
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3426
+ };
3427
+
3428
+
3429
+ /**
3430
+ * @param {string} value
3431
+ * @return {!proto.lansweeper.scanningconfig.v1.SCCMData} returns this
3432
+ */
3433
+ proto.lansweeper.scanningconfig.v1.SCCMData.prototype.setTarget = function(value) {
3434
+ return jspb.Message.setProto3StringField(this, 1, value);
3435
+ };
3436
+
3437
+
3234
3438
 
3235
3439
 
3236
3440
 
@@ -3670,7 +3874,8 @@ proto.lansweeper.scanningconfig.v1.ADData.toObject = function(includeInstance, m
3670
3874
  computerScan: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
3671
3875
  userGroupScan: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
3672
3876
  ldapType: jspb.Message.getFieldWithDefault(msg, 6, 0),
3673
- port: jspb.Message.getFieldWithDefault(msg, 7, 0)
3877
+ port: jspb.Message.getFieldWithDefault(msg, 7, 0),
3878
+ adsiPath: jspb.Message.getFieldWithDefault(msg, 8, "")
3674
3879
  };
3675
3880
 
3676
3881
  if (includeInstance) {
@@ -3735,6 +3940,10 @@ proto.lansweeper.scanningconfig.v1.ADData.deserializeBinaryFromReader = function
3735
3940
  var value = /** @type {number} */ (reader.readInt32());
3736
3941
  msg.setPort(value);
3737
3942
  break;
3943
+ case 8:
3944
+ var value = /** @type {string} */ (reader.readString());
3945
+ msg.setAdsiPath(value);
3946
+ break;
3738
3947
  default:
3739
3948
  reader.skipField();
3740
3949
  break;
@@ -3813,6 +4022,13 @@ proto.lansweeper.scanningconfig.v1.ADData.serializeBinaryToWriter = function(mes
3813
4022
  f
3814
4023
  );
3815
4024
  }
4025
+ f = message.getAdsiPath();
4026
+ if (f.length > 0) {
4027
+ writer.writeString(
4028
+ 8,
4029
+ f
4030
+ );
4031
+ }
3816
4032
  };
3817
4033
 
3818
4034
 
@@ -3951,6 +4167,24 @@ proto.lansweeper.scanningconfig.v1.ADData.prototype.setPort = function(value) {
3951
4167
  };
3952
4168
 
3953
4169
 
4170
+ /**
4171
+ * optional string adsi_path = 8;
4172
+ * @return {string}
4173
+ */
4174
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.getAdsiPath = function() {
4175
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4176
+ };
4177
+
4178
+
4179
+ /**
4180
+ * @param {string} value
4181
+ * @return {!proto.lansweeper.scanningconfig.v1.ADData} returns this
4182
+ */
4183
+ proto.lansweeper.scanningconfig.v1.ADData.prototype.setAdsiPath = function(value) {
4184
+ return jspb.Message.setProto3StringField(this, 8, value);
4185
+ };
4186
+
4187
+
3954
4188
 
3955
4189
 
3956
4190
 
@@ -4123,7 +4357,8 @@ proto.lansweeper.scanningconfig.v1.Credential.prototype.toObject = function(opt_
4123
4357
  proto.lansweeper.scanningconfig.v1.Credential.toObject = function(includeInstance, msg) {
4124
4358
  var f, obj = {
4125
4359
  type: jspb.Message.getFieldWithDefault(msg, 1, 0),
4126
- id: jspb.Message.getFieldWithDefault(msg, 2, "")
4360
+ id: jspb.Message.getFieldWithDefault(msg, 2, ""),
4361
+ order: jspb.Message.getFieldWithDefault(msg, 3, 0)
4127
4362
  };
4128
4363
 
4129
4364
  if (includeInstance) {
@@ -4168,6 +4403,10 @@ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader = func
4168
4403
  var value = /** @type {string} */ (reader.readString());
4169
4404
  msg.setId(value);
4170
4405
  break;
4406
+ case 3:
4407
+ var value = /** @type {number} */ (reader.readInt32());
4408
+ msg.setOrder(value);
4409
+ break;
4171
4410
  default:
4172
4411
  reader.skipField();
4173
4412
  break;
@@ -4211,6 +4450,13 @@ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter = function
4211
4450
  f
4212
4451
  );
4213
4452
  }
4453
+ f = message.getOrder();
4454
+ if (f !== 0) {
4455
+ writer.writeInt32(
4456
+ 3,
4457
+ f
4458
+ );
4459
+ }
4214
4460
  };
4215
4461
 
4216
4462
 
@@ -4257,6 +4503,24 @@ proto.lansweeper.scanningconfig.v1.Credential.prototype.setId = function(value)
4257
4503
  };
4258
4504
 
4259
4505
 
4506
+ /**
4507
+ * optional int32 order = 3;
4508
+ * @return {number}
4509
+ */
4510
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.getOrder = function() {
4511
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4512
+ };
4513
+
4514
+
4515
+ /**
4516
+ * @param {number} value
4517
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential} returns this
4518
+ */
4519
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.setOrder = function(value) {
4520
+ return jspb.Message.setProto3IntField(this, 3, value);
4521
+ };
4522
+
4523
+
4260
4524
  /**
4261
4525
  * @enum {number}
4262
4526
  */