@lansweeper/discovery-sensor-proto 2.65.1 → 2.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,11 +40,6 @@ export class ActiveDirectoryObject extends jspb.Message {
40
40
  getObjectGuid(): string;
41
41
  setObjectGuid(value: string): ActiveDirectoryObject;
42
42
 
43
- hasDomainDns(): boolean;
44
- clearDomainDns(): void;
45
- getDomainDns(): google_protobuf_wrappers_pb.StringValue | undefined;
46
- setDomainDns(value?: google_protobuf_wrappers_pb.StringValue): ActiveDirectoryObject;
47
-
48
43
  hasName(): boolean;
49
44
  clearName(): void;
50
45
  getName(): google_protobuf_wrappers_pb.StringValue | undefined;
@@ -103,7 +98,6 @@ export namespace ActiveDirectoryObject {
103
98
  distinguishedName: string,
104
99
  objectSid: string,
105
100
  objectGuid: string,
106
- domainDns?: google_protobuf_wrappers_pb.StringValue.AsObject,
107
101
  name?: google_protobuf_wrappers_pb.StringValue.AsObject,
108
102
  objectClass?: google_protobuf_wrappers_pb.StringValue.AsObject,
109
103
  whenCreated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
@@ -564,6 +558,11 @@ export class ActiveDirectoryDomain extends jspb.Message {
564
558
  getMaximumPasswordAge(): google_protobuf_wrappers_pb.Int32Value | undefined;
565
559
  setMaximumPasswordAge(value?: google_protobuf_wrappers_pb.Int32Value): ActiveDirectoryDomain;
566
560
 
561
+ hasDomainDns(): boolean;
562
+ clearDomainDns(): void;
563
+ getDomainDns(): google_protobuf_wrappers_pb.StringValue | undefined;
564
+ setDomainDns(value?: google_protobuf_wrappers_pb.StringValue): ActiveDirectoryDomain;
565
+
567
566
  serializeBinary(): Uint8Array;
568
567
  toObject(includeInstance?: boolean): ActiveDirectoryDomain.AsObject;
569
568
  static toObject(includeInstance: boolean, msg: ActiveDirectoryDomain): ActiveDirectoryDomain.AsObject;
@@ -578,6 +577,7 @@ export namespace ActiveDirectoryDomain {
578
577
  export type AsObject = {
579
578
  minimumPasswordAge?: google_protobuf_wrappers_pb.Int32Value.AsObject,
580
579
  maximumPasswordAge?: google_protobuf_wrappers_pb.Int32Value.AsObject,
580
+ domainDns?: google_protobuf_wrappers_pb.StringValue.AsObject,
581
581
  }
582
582
  }
583
583
 
@@ -2059,7 +2059,6 @@ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryObject.toObject = fu
2059
2059
  distinguishedName: jspb.Message.getFieldWithDefault(msg, 2, ""),
2060
2060
  objectSid: jspb.Message.getFieldWithDefault(msg, 3, ""),
2061
2061
  objectGuid: jspb.Message.getFieldWithDefault(msg, 4, ""),
2062
- domainDns: (f = msg.getDomainDns()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
2063
2062
  name: (f = msg.getName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
2064
2063
  objectClass: (f = msg.getObjectClass()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
2065
2064
  whenCreated: (f = msg.getWhenCreated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
@@ -2120,11 +2119,6 @@ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryObject.deserializeBi
2120
2119
  var value = /** @type {string} */ (reader.readString());
2121
2120
  msg.setObjectGuid(value);
2122
2121
  break;
2123
- case 5:
2124
- var value = new google_protobuf_wrappers_pb.StringValue;
2125
- reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
2126
- msg.setDomainDns(value);
2127
- break;
2128
2122
  case 6:
2129
2123
  var value = new google_protobuf_wrappers_pb.StringValue;
2130
2124
  reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
@@ -2222,14 +2216,6 @@ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryObject.serializeBina
2222
2216
  f
2223
2217
  );
2224
2218
  }
2225
- f = message.getDomainDns();
2226
- if (f != null) {
2227
- writer.writeMessage(
2228
- 5,
2229
- f,
2230
- google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
2231
- );
2232
- }
2233
2219
  f = message.getName();
2234
2220
  if (f != null) {
2235
2221
  writer.writeMessage(
@@ -2369,43 +2355,6 @@ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryObject.prototype.set
2369
2355
  };
2370
2356
 
2371
2357
 
2372
- /**
2373
- * optional google.protobuf.StringValue domain_dns = 5;
2374
- * @return {?proto.google.protobuf.StringValue}
2375
- */
2376
- proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryObject.prototype.getDomainDns = function() {
2377
- return /** @type{?proto.google.protobuf.StringValue} */ (
2378
- jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 5));
2379
- };
2380
-
2381
-
2382
- /**
2383
- * @param {?proto.google.protobuf.StringValue|undefined} value
2384
- * @return {!proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryObject} returns this
2385
- */
2386
- proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryObject.prototype.setDomainDns = function(value) {
2387
- return jspb.Message.setWrapperField(this, 5, value);
2388
- };
2389
-
2390
-
2391
- /**
2392
- * Clears the message field making it undefined.
2393
- * @return {!proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryObject} returns this
2394
- */
2395
- proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryObject.prototype.clearDomainDns = function() {
2396
- return this.setDomainDns(undefined);
2397
- };
2398
-
2399
-
2400
- /**
2401
- * Returns whether this field is set.
2402
- * @return {boolean}
2403
- */
2404
- proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryObject.prototype.hasDomainDns = function() {
2405
- return jspb.Message.getField(this, 5) != null;
2406
- };
2407
-
2408
-
2409
2358
  /**
2410
2359
  * optional google.protobuf.StringValue name = 6;
2411
2360
  * @return {?proto.google.protobuf.StringValue}
@@ -6319,7 +6268,8 @@ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain.prototype.toO
6319
6268
  proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain.toObject = function(includeInstance, msg) {
6320
6269
  var f, obj = {
6321
6270
  minimumPasswordAge: (f = msg.getMinimumPasswordAge()) && google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance, f),
6322
- maximumPasswordAge: (f = msg.getMaximumPasswordAge()) && google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance, f)
6271
+ maximumPasswordAge: (f = msg.getMaximumPasswordAge()) && google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance, f),
6272
+ domainDns: (f = msg.getDomainDns()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
6323
6273
  };
6324
6274
 
6325
6275
  if (includeInstance) {
@@ -6366,6 +6316,11 @@ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain.deserializeBi
6366
6316
  reader.readMessage(value,google_protobuf_wrappers_pb.Int32Value.deserializeBinaryFromReader);
6367
6317
  msg.setMaximumPasswordAge(value);
6368
6318
  break;
6319
+ case 3:
6320
+ var value = new google_protobuf_wrappers_pb.StringValue;
6321
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
6322
+ msg.setDomainDns(value);
6323
+ break;
6369
6324
  default:
6370
6325
  reader.skipField();
6371
6326
  break;
@@ -6411,6 +6366,14 @@ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain.serializeBina
6411
6366
  google_protobuf_wrappers_pb.Int32Value.serializeBinaryToWriter
6412
6367
  );
6413
6368
  }
6369
+ f = message.getDomainDns();
6370
+ if (f != null) {
6371
+ writer.writeMessage(
6372
+ 3,
6373
+ f,
6374
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
6375
+ );
6376
+ }
6414
6377
  };
6415
6378
 
6416
6379
 
@@ -6488,6 +6451,43 @@ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain.prototype.has
6488
6451
  };
6489
6452
 
6490
6453
 
6454
+ /**
6455
+ * optional google.protobuf.StringValue domain_dns = 3;
6456
+ * @return {?proto.google.protobuf.StringValue}
6457
+ */
6458
+ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain.prototype.getDomainDns = function() {
6459
+ return /** @type{?proto.google.protobuf.StringValue} */ (
6460
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
6461
+ };
6462
+
6463
+
6464
+ /**
6465
+ * @param {?proto.google.protobuf.StringValue|undefined} value
6466
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain} returns this
6467
+ */
6468
+ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain.prototype.setDomainDns = function(value) {
6469
+ return jspb.Message.setWrapperField(this, 3, value);
6470
+ };
6471
+
6472
+
6473
+ /**
6474
+ * Clears the message field making it undefined.
6475
+ * @return {!proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain} returns this
6476
+ */
6477
+ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain.prototype.clearDomainDns = function() {
6478
+ return this.setDomainDns(undefined);
6479
+ };
6480
+
6481
+
6482
+ /**
6483
+ * Returns whether this field is set.
6484
+ * @return {boolean}
6485
+ */
6486
+ proto.com.lansweeper.discovery.sensor.api.v1.ActiveDirectoryDomain.prototype.hasDomainDns = function() {
6487
+ return jspb.Message.getField(this, 3) != null;
6488
+ };
6489
+
6490
+
6491
6491
 
6492
6492
 
6493
6493
 
@@ -1031,6 +1031,57 @@ export namespace User {
1031
1031
  }
1032
1032
  }
1033
1033
 
1034
+ export class WindowsUserLogons extends jspb.Message {
1035
+ clearEntriesList(): void;
1036
+ getEntriesList(): Array<UserLogonEntry>;
1037
+ setEntriesList(value: Array<UserLogonEntry>): WindowsUserLogons;
1038
+ addEntries(value?: UserLogonEntry, index?: number): UserLogonEntry;
1039
+
1040
+ serializeBinary(): Uint8Array;
1041
+ toObject(includeInstance?: boolean): WindowsUserLogons.AsObject;
1042
+ static toObject(includeInstance: boolean, msg: WindowsUserLogons): WindowsUserLogons.AsObject;
1043
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1044
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1045
+ static serializeBinaryToWriter(message: WindowsUserLogons, writer: jspb.BinaryWriter): void;
1046
+ static deserializeBinary(bytes: Uint8Array): WindowsUserLogons;
1047
+ static deserializeBinaryFromReader(message: WindowsUserLogons, reader: jspb.BinaryReader): WindowsUserLogons;
1048
+ }
1049
+
1050
+ export namespace WindowsUserLogons {
1051
+ export type AsObject = {
1052
+ entriesList: Array<UserLogonEntry.AsObject>,
1053
+ }
1054
+ }
1055
+
1056
+ export class UserLogonEntry extends jspb.Message {
1057
+
1058
+ hasUserName(): boolean;
1059
+ clearUserName(): void;
1060
+ getUserName(): google_protobuf_wrappers_pb.StringValue | undefined;
1061
+ setUserName(value?: google_protobuf_wrappers_pb.StringValue): UserLogonEntry;
1062
+
1063
+ hasLogonTime(): boolean;
1064
+ clearLogonTime(): void;
1065
+ getLogonTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
1066
+ setLogonTime(value?: google_protobuf_timestamp_pb.Timestamp): UserLogonEntry;
1067
+
1068
+ serializeBinary(): Uint8Array;
1069
+ toObject(includeInstance?: boolean): UserLogonEntry.AsObject;
1070
+ static toObject(includeInstance: boolean, msg: UserLogonEntry): UserLogonEntry.AsObject;
1071
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1072
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1073
+ static serializeBinaryToWriter(message: UserLogonEntry, writer: jspb.BinaryWriter): void;
1074
+ static deserializeBinary(bytes: Uint8Array): UserLogonEntry;
1075
+ static deserializeBinaryFromReader(message: UserLogonEntry, reader: jspb.BinaryReader): UserLogonEntry;
1076
+ }
1077
+
1078
+ export namespace UserLogonEntry {
1079
+ export type AsObject = {
1080
+ userName?: google_protobuf_wrappers_pb.StringValue.AsObject,
1081
+ logonTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
1082
+ }
1083
+ }
1084
+
1034
1085
  export class WindowsUsbController extends jspb.Message {
1035
1086
  clearEntriesList(): void;
1036
1087
  getEntriesList(): Array<UsbController>;
@@ -133,6 +133,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.UsbControlle
133
133
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.UsbDeviceInfo', null, global);
134
134
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.User', null, global);
135
135
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.UserInGroupInfo', null, global);
136
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry', null, global);
136
137
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.VideoController', null, global);
137
138
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.Volume', null, global);
138
139
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WinSat', null, global);
@@ -226,6 +227,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUsbCo
226
227
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUsbDeviceInfo', null, global);
227
228
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUser', null, global);
228
229
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserInGroupInfo', null, global);
230
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons', null, global);
229
231
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsVersion', null, global);
230
232
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsVideoController', null, global);
231
233
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsVolume', null, global);
@@ -630,6 +632,48 @@ if (goog.DEBUG && !COMPILED) {
630
632
  */
631
633
  proto.com.lansweeper.discovery.sensor.windows.v1.User.displayName = 'proto.com.lansweeper.discovery.sensor.windows.v1.User';
632
634
  }
635
+ /**
636
+ * Generated by JsPbCodeGenerator.
637
+ * @param {Array=} opt_data Optional initial data array, typically from a
638
+ * server response, or constructed directly in Javascript. The array is used
639
+ * in place and becomes part of the constructed object. It is not cloned.
640
+ * If no data is provided, the constructed object will be empty, but still
641
+ * valid.
642
+ * @extends {jspb.Message}
643
+ * @constructor
644
+ */
645
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons = function(opt_data) {
646
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.repeatedFields_, null);
647
+ };
648
+ goog.inherits(proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons, jspb.Message);
649
+ if (goog.DEBUG && !COMPILED) {
650
+ /**
651
+ * @public
652
+ * @override
653
+ */
654
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.displayName = 'proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons';
655
+ }
656
+ /**
657
+ * Generated by JsPbCodeGenerator.
658
+ * @param {Array=} opt_data Optional initial data array, typically from a
659
+ * server response, or constructed directly in Javascript. The array is used
660
+ * in place and becomes part of the constructed object. It is not cloned.
661
+ * If no data is provided, the constructed object will be empty, but still
662
+ * valid.
663
+ * @extends {jspb.Message}
664
+ * @constructor
665
+ */
666
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry = function(opt_data) {
667
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
668
+ };
669
+ goog.inherits(proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry, jspb.Message);
670
+ if (goog.DEBUG && !COMPILED) {
671
+ /**
672
+ * @public
673
+ * @override
674
+ */
675
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.displayName = 'proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry';
676
+ }
633
677
  /**
634
678
  * Generated by JsPbCodeGenerator.
635
679
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -12413,6 +12457,368 @@ proto.com.lansweeper.discovery.sensor.windows.v1.User.prototype.hasLocalAccount
12413
12457
 
12414
12458
 
12415
12459
 
12460
+ /**
12461
+ * List of repeated fields within this message type.
12462
+ * @private {!Array<number>}
12463
+ * @const
12464
+ */
12465
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.repeatedFields_ = [1];
12466
+
12467
+
12468
+
12469
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12470
+ /**
12471
+ * Creates an object representation of this proto.
12472
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12473
+ * Optional fields that are not set will be set to undefined.
12474
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12475
+ * For the list of reserved names please see:
12476
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12477
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12478
+ * JSPB instance for transitional soy proto support:
12479
+ * http://goto/soy-param-migration
12480
+ * @return {!Object}
12481
+ */
12482
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.prototype.toObject = function(opt_includeInstance) {
12483
+ return proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.toObject(opt_includeInstance, this);
12484
+ };
12485
+
12486
+
12487
+ /**
12488
+ * Static version of the {@see toObject} method.
12489
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12490
+ * the JSPB instance for transitional soy proto support:
12491
+ * http://goto/soy-param-migration
12492
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons} msg The msg instance to transform.
12493
+ * @return {!Object}
12494
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12495
+ */
12496
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.toObject = function(includeInstance, msg) {
12497
+ var f, obj = {
12498
+ entriesList: jspb.Message.toObjectList(msg.getEntriesList(),
12499
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.toObject, includeInstance)
12500
+ };
12501
+
12502
+ if (includeInstance) {
12503
+ obj.$jspbMessageInstance = msg;
12504
+ }
12505
+ return obj;
12506
+ };
12507
+ }
12508
+
12509
+
12510
+ /**
12511
+ * Deserializes binary data (in protobuf wire format).
12512
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12513
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons}
12514
+ */
12515
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.deserializeBinary = function(bytes) {
12516
+ var reader = new jspb.BinaryReader(bytes);
12517
+ var msg = new proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons;
12518
+ return proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.deserializeBinaryFromReader(msg, reader);
12519
+ };
12520
+
12521
+
12522
+ /**
12523
+ * Deserializes binary data (in protobuf wire format) from the
12524
+ * given reader into the given message object.
12525
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons} msg The message object to deserialize into.
12526
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12527
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons}
12528
+ */
12529
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.deserializeBinaryFromReader = function(msg, reader) {
12530
+ while (reader.nextField()) {
12531
+ if (reader.isEndGroup()) {
12532
+ break;
12533
+ }
12534
+ var field = reader.getFieldNumber();
12535
+ switch (field) {
12536
+ case 1:
12537
+ var value = new proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry;
12538
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.deserializeBinaryFromReader);
12539
+ msg.addEntries(value);
12540
+ break;
12541
+ default:
12542
+ reader.skipField();
12543
+ break;
12544
+ }
12545
+ }
12546
+ return msg;
12547
+ };
12548
+
12549
+
12550
+ /**
12551
+ * Serializes the message to binary data (in protobuf wire format).
12552
+ * @return {!Uint8Array}
12553
+ */
12554
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.prototype.serializeBinary = function() {
12555
+ var writer = new jspb.BinaryWriter();
12556
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.serializeBinaryToWriter(this, writer);
12557
+ return writer.getResultBuffer();
12558
+ };
12559
+
12560
+
12561
+ /**
12562
+ * Serializes the given message to binary data (in protobuf wire
12563
+ * format), writing to the given BinaryWriter.
12564
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons} message
12565
+ * @param {!jspb.BinaryWriter} writer
12566
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12567
+ */
12568
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.serializeBinaryToWriter = function(message, writer) {
12569
+ var f = undefined;
12570
+ f = message.getEntriesList();
12571
+ if (f.length > 0) {
12572
+ writer.writeRepeatedMessage(
12573
+ 1,
12574
+ f,
12575
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.serializeBinaryToWriter
12576
+ );
12577
+ }
12578
+ };
12579
+
12580
+
12581
+ /**
12582
+ * repeated UserLogonEntry entries = 1;
12583
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry>}
12584
+ */
12585
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.prototype.getEntriesList = function() {
12586
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry>} */ (
12587
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry, 1));
12588
+ };
12589
+
12590
+
12591
+ /**
12592
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry>} value
12593
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons} returns this
12594
+ */
12595
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.prototype.setEntriesList = function(value) {
12596
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
12597
+ };
12598
+
12599
+
12600
+ /**
12601
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry=} opt_value
12602
+ * @param {number=} opt_index
12603
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry}
12604
+ */
12605
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.prototype.addEntries = function(opt_value, opt_index) {
12606
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry, opt_index);
12607
+ };
12608
+
12609
+
12610
+ /**
12611
+ * Clears the list making it empty but non-null.
12612
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons} returns this
12613
+ */
12614
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsUserLogons.prototype.clearEntriesList = function() {
12615
+ return this.setEntriesList([]);
12616
+ };
12617
+
12618
+
12619
+
12620
+
12621
+
12622
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12623
+ /**
12624
+ * Creates an object representation of this proto.
12625
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12626
+ * Optional fields that are not set will be set to undefined.
12627
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12628
+ * For the list of reserved names please see:
12629
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12630
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12631
+ * JSPB instance for transitional soy proto support:
12632
+ * http://goto/soy-param-migration
12633
+ * @return {!Object}
12634
+ */
12635
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.prototype.toObject = function(opt_includeInstance) {
12636
+ return proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.toObject(opt_includeInstance, this);
12637
+ };
12638
+
12639
+
12640
+ /**
12641
+ * Static version of the {@see toObject} method.
12642
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12643
+ * the JSPB instance for transitional soy proto support:
12644
+ * http://goto/soy-param-migration
12645
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry} msg The msg instance to transform.
12646
+ * @return {!Object}
12647
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12648
+ */
12649
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.toObject = function(includeInstance, msg) {
12650
+ var f, obj = {
12651
+ userName: (f = msg.getUserName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
12652
+ logonTime: (f = msg.getLogonTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
12653
+ };
12654
+
12655
+ if (includeInstance) {
12656
+ obj.$jspbMessageInstance = msg;
12657
+ }
12658
+ return obj;
12659
+ };
12660
+ }
12661
+
12662
+
12663
+ /**
12664
+ * Deserializes binary data (in protobuf wire format).
12665
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12666
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry}
12667
+ */
12668
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.deserializeBinary = function(bytes) {
12669
+ var reader = new jspb.BinaryReader(bytes);
12670
+ var msg = new proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry;
12671
+ return proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.deserializeBinaryFromReader(msg, reader);
12672
+ };
12673
+
12674
+
12675
+ /**
12676
+ * Deserializes binary data (in protobuf wire format) from the
12677
+ * given reader into the given message object.
12678
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry} msg The message object to deserialize into.
12679
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12680
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry}
12681
+ */
12682
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.deserializeBinaryFromReader = function(msg, reader) {
12683
+ while (reader.nextField()) {
12684
+ if (reader.isEndGroup()) {
12685
+ break;
12686
+ }
12687
+ var field = reader.getFieldNumber();
12688
+ switch (field) {
12689
+ case 1:
12690
+ var value = new google_protobuf_wrappers_pb.StringValue;
12691
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
12692
+ msg.setUserName(value);
12693
+ break;
12694
+ case 2:
12695
+ var value = new google_protobuf_timestamp_pb.Timestamp;
12696
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
12697
+ msg.setLogonTime(value);
12698
+ break;
12699
+ default:
12700
+ reader.skipField();
12701
+ break;
12702
+ }
12703
+ }
12704
+ return msg;
12705
+ };
12706
+
12707
+
12708
+ /**
12709
+ * Serializes the message to binary data (in protobuf wire format).
12710
+ * @return {!Uint8Array}
12711
+ */
12712
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.prototype.serializeBinary = function() {
12713
+ var writer = new jspb.BinaryWriter();
12714
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.serializeBinaryToWriter(this, writer);
12715
+ return writer.getResultBuffer();
12716
+ };
12717
+
12718
+
12719
+ /**
12720
+ * Serializes the given message to binary data (in protobuf wire
12721
+ * format), writing to the given BinaryWriter.
12722
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry} message
12723
+ * @param {!jspb.BinaryWriter} writer
12724
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12725
+ */
12726
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.serializeBinaryToWriter = function(message, writer) {
12727
+ var f = undefined;
12728
+ f = message.getUserName();
12729
+ if (f != null) {
12730
+ writer.writeMessage(
12731
+ 1,
12732
+ f,
12733
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
12734
+ );
12735
+ }
12736
+ f = message.getLogonTime();
12737
+ if (f != null) {
12738
+ writer.writeMessage(
12739
+ 2,
12740
+ f,
12741
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
12742
+ );
12743
+ }
12744
+ };
12745
+
12746
+
12747
+ /**
12748
+ * optional google.protobuf.StringValue user_name = 1;
12749
+ * @return {?proto.google.protobuf.StringValue}
12750
+ */
12751
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.prototype.getUserName = function() {
12752
+ return /** @type{?proto.google.protobuf.StringValue} */ (
12753
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
12754
+ };
12755
+
12756
+
12757
+ /**
12758
+ * @param {?proto.google.protobuf.StringValue|undefined} value
12759
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry} returns this
12760
+ */
12761
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.prototype.setUserName = function(value) {
12762
+ return jspb.Message.setWrapperField(this, 1, value);
12763
+ };
12764
+
12765
+
12766
+ /**
12767
+ * Clears the message field making it undefined.
12768
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry} returns this
12769
+ */
12770
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.prototype.clearUserName = function() {
12771
+ return this.setUserName(undefined);
12772
+ };
12773
+
12774
+
12775
+ /**
12776
+ * Returns whether this field is set.
12777
+ * @return {boolean}
12778
+ */
12779
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.prototype.hasUserName = function() {
12780
+ return jspb.Message.getField(this, 1) != null;
12781
+ };
12782
+
12783
+
12784
+ /**
12785
+ * optional google.protobuf.Timestamp logon_time = 2;
12786
+ * @return {?proto.google.protobuf.Timestamp}
12787
+ */
12788
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.prototype.getLogonTime = function() {
12789
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
12790
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
12791
+ };
12792
+
12793
+
12794
+ /**
12795
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
12796
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry} returns this
12797
+ */
12798
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.prototype.setLogonTime = function(value) {
12799
+ return jspb.Message.setWrapperField(this, 2, value);
12800
+ };
12801
+
12802
+
12803
+ /**
12804
+ * Clears the message field making it undefined.
12805
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry} returns this
12806
+ */
12807
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.prototype.clearLogonTime = function() {
12808
+ return this.setLogonTime(undefined);
12809
+ };
12810
+
12811
+
12812
+ /**
12813
+ * Returns whether this field is set.
12814
+ * @return {boolean}
12815
+ */
12816
+ proto.com.lansweeper.discovery.sensor.windows.v1.UserLogonEntry.prototype.hasLogonTime = function() {
12817
+ return jspb.Message.getField(this, 2) != null;
12818
+ };
12819
+
12820
+
12821
+
12416
12822
  /**
12417
12823
  * List of repeated fields within this message type.
12418
12824
  * @private {!Array<number>}