@lansweeper/discovery-sensor-proto 2.27.4 → 2.28.0

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.
@@ -8431,28 +8431,75 @@ export namespace CertificateLocation {
8431
8431
  }
8432
8432
  }
8433
8433
 
8434
- export class OpenPorts extends jspb.Message {
8434
+ export class WindowsOpenPorts extends jspb.Message {
8435
8435
  clearEntriesList(): void;
8436
8436
  getEntriesList(): Array<import_discovery_common_pb.OpenPort>;
8437
- setEntriesList(value: Array<import_discovery_common_pb.OpenPort>): OpenPorts;
8437
+ setEntriesList(value: Array<import_discovery_common_pb.OpenPort>): WindowsOpenPorts;
8438
8438
  addEntries(value?: import_discovery_common_pb.OpenPort, index?: number): import_discovery_common_pb.OpenPort;
8439
8439
 
8440
8440
  serializeBinary(): Uint8Array;
8441
- toObject(includeInstance?: boolean): OpenPorts.AsObject;
8442
- static toObject(includeInstance: boolean, msg: OpenPorts): OpenPorts.AsObject;
8441
+ toObject(includeInstance?: boolean): WindowsOpenPorts.AsObject;
8442
+ static toObject(includeInstance: boolean, msg: WindowsOpenPorts): WindowsOpenPorts.AsObject;
8443
8443
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
8444
8444
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
8445
- static serializeBinaryToWriter(message: OpenPorts, writer: jspb.BinaryWriter): void;
8446
- static deserializeBinary(bytes: Uint8Array): OpenPorts;
8447
- static deserializeBinaryFromReader(message: OpenPorts, reader: jspb.BinaryReader): OpenPorts;
8445
+ static serializeBinaryToWriter(message: WindowsOpenPorts, writer: jspb.BinaryWriter): void;
8446
+ static deserializeBinary(bytes: Uint8Array): WindowsOpenPorts;
8447
+ static deserializeBinaryFromReader(message: WindowsOpenPorts, reader: jspb.BinaryReader): WindowsOpenPorts;
8448
8448
  }
8449
8449
 
8450
- export namespace OpenPorts {
8450
+ export namespace WindowsOpenPorts {
8451
8451
  export type AsObject = {
8452
8452
  entriesList: Array<import_discovery_common_pb.OpenPort.AsObject>,
8453
8453
  }
8454
8454
  }
8455
8455
 
8456
+ export class WindowsFirewallRules extends jspb.Message {
8457
+ clearEntriesList(): void;
8458
+ getEntriesList(): Array<FirewallRule>;
8459
+ setEntriesList(value: Array<FirewallRule>): WindowsFirewallRules;
8460
+ addEntries(value?: FirewallRule, index?: number): FirewallRule;
8461
+
8462
+ serializeBinary(): Uint8Array;
8463
+ toObject(includeInstance?: boolean): WindowsFirewallRules.AsObject;
8464
+ static toObject(includeInstance: boolean, msg: WindowsFirewallRules): WindowsFirewallRules.AsObject;
8465
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
8466
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
8467
+ static serializeBinaryToWriter(message: WindowsFirewallRules, writer: jspb.BinaryWriter): void;
8468
+ static deserializeBinary(bytes: Uint8Array): WindowsFirewallRules;
8469
+ static deserializeBinaryFromReader(message: WindowsFirewallRules, reader: jspb.BinaryReader): WindowsFirewallRules;
8470
+ }
8471
+
8472
+ export namespace WindowsFirewallRules {
8473
+ export type AsObject = {
8474
+ entriesList: Array<FirewallRule.AsObject>,
8475
+ }
8476
+ }
8477
+
8478
+ export class FirewallRule extends jspb.Message {
8479
+ getVersion(): string;
8480
+ setVersion(value: string): FirewallRule;
8481
+
8482
+ getPropertiesMap(): jspb.Map<string, string>;
8483
+ clearPropertiesMap(): void;
8484
+
8485
+ serializeBinary(): Uint8Array;
8486
+ toObject(includeInstance?: boolean): FirewallRule.AsObject;
8487
+ static toObject(includeInstance: boolean, msg: FirewallRule): FirewallRule.AsObject;
8488
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
8489
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
8490
+ static serializeBinaryToWriter(message: FirewallRule, writer: jspb.BinaryWriter): void;
8491
+ static deserializeBinary(bytes: Uint8Array): FirewallRule;
8492
+ static deserializeBinaryFromReader(message: FirewallRule, reader: jspb.BinaryReader): FirewallRule;
8493
+ }
8494
+
8495
+ export namespace FirewallRule {
8496
+ export type AsObject = {
8497
+ version: string,
8498
+
8499
+ propertiesMap: Array<[string, string]>,
8500
+ }
8501
+ }
8502
+
8456
8503
  export enum WindowsVersion {
8457
8504
  UNKNOWN = 0,
8458
8505
  WIN_NT = 40,
@@ -49,6 +49,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.DisplayConfi
49
49
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.DisplayControllerConfig', null, global);
50
50
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.EncryptableVolume', null, global);
51
51
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.Feature', null, global);
52
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule', null, global);
52
53
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.Floppy', null, global);
53
54
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.Group', null, global);
54
55
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.HardDisk', null, global);
@@ -69,7 +70,6 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.Network', nu
69
70
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.NetworkAdapter', null, global);
70
71
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.NetworkClient', null, global);
71
72
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.OnboardDevice', null, global);
72
- goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts', null, global);
73
73
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.Os', null, global);
74
74
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.OsRecovery', null, global);
75
75
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.PageFile', null, global);
@@ -148,6 +148,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsDispl
148
148
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsDisplayControllerConfig', null, global);
149
149
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsEncryptableVolume', null, global);
150
150
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFeature', null, global);
151
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules', null, global);
151
152
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFloppy', null, global);
152
153
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsGroup', null, global);
153
154
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsHardDisk', null, global);
@@ -167,6 +168,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsNetwo
167
168
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsNetworkAdapter', null, global);
168
169
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsNetworkClient', null, global);
169
170
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOnboardDevice', null, global);
171
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts', null, global);
170
172
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOs', null, global);
171
173
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOsRecovery', null, global);
172
174
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.windows.v1.WindowsPageFile', null, global);
@@ -3982,16 +3984,58 @@ if (goog.DEBUG && !COMPILED) {
3982
3984
  * @extends {jspb.Message}
3983
3985
  * @constructor
3984
3986
  */
3985
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts = function(opt_data) {
3986
- jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.repeatedFields_, null);
3987
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts = function(opt_data) {
3988
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.repeatedFields_, null);
3987
3989
  };
3988
- goog.inherits(proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts, jspb.Message);
3990
+ goog.inherits(proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts, jspb.Message);
3989
3991
  if (goog.DEBUG && !COMPILED) {
3990
3992
  /**
3991
3993
  * @public
3992
3994
  * @override
3993
3995
  */
3994
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.displayName = 'proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts';
3996
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.displayName = 'proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts';
3997
+ }
3998
+ /**
3999
+ * Generated by JsPbCodeGenerator.
4000
+ * @param {Array=} opt_data Optional initial data array, typically from a
4001
+ * server response, or constructed directly in Javascript. The array is used
4002
+ * in place and becomes part of the constructed object. It is not cloned.
4003
+ * If no data is provided, the constructed object will be empty, but still
4004
+ * valid.
4005
+ * @extends {jspb.Message}
4006
+ * @constructor
4007
+ */
4008
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules = function(opt_data) {
4009
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.repeatedFields_, null);
4010
+ };
4011
+ goog.inherits(proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules, jspb.Message);
4012
+ if (goog.DEBUG && !COMPILED) {
4013
+ /**
4014
+ * @public
4015
+ * @override
4016
+ */
4017
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.displayName = 'proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules';
4018
+ }
4019
+ /**
4020
+ * Generated by JsPbCodeGenerator.
4021
+ * @param {Array=} opt_data Optional initial data array, typically from a
4022
+ * server response, or constructed directly in Javascript. The array is used
4023
+ * in place and becomes part of the constructed object. It is not cloned.
4024
+ * If no data is provided, the constructed object will be empty, but still
4025
+ * valid.
4026
+ * @extends {jspb.Message}
4027
+ * @constructor
4028
+ */
4029
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule = function(opt_data) {
4030
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4031
+ };
4032
+ goog.inherits(proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule, jspb.Message);
4033
+ if (goog.DEBUG && !COMPILED) {
4034
+ /**
4035
+ * @public
4036
+ * @override
4037
+ */
4038
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.displayName = 'proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule';
3995
4039
  }
3996
4040
 
3997
4041
 
@@ -69724,7 +69768,7 @@ proto.com.lansweeper.discovery.sensor.windows.v1.CertificateLocation.prototype.s
69724
69768
  * @private {!Array<number>}
69725
69769
  * @const
69726
69770
  */
69727
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.repeatedFields_ = [1];
69771
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.repeatedFields_ = [1];
69728
69772
 
69729
69773
 
69730
69774
 
@@ -69741,8 +69785,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
69741
69785
  * http://goto/soy-param-migration
69742
69786
  * @return {!Object}
69743
69787
  */
69744
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.prototype.toObject = function(opt_includeInstance) {
69745
- return proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.toObject(opt_includeInstance, this);
69788
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.prototype.toObject = function(opt_includeInstance) {
69789
+ return proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.toObject(opt_includeInstance, this);
69746
69790
  };
69747
69791
 
69748
69792
 
@@ -69751,11 +69795,11 @@ proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.prototype.toObject =
69751
69795
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
69752
69796
  * the JSPB instance for transitional soy proto support:
69753
69797
  * http://goto/soy-param-migration
69754
- * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts} msg The msg instance to transform.
69798
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts} msg The msg instance to transform.
69755
69799
  * @return {!Object}
69756
69800
  * @suppress {unusedLocalVariables} f is only used for nested messages
69757
69801
  */
69758
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.toObject = function(includeInstance, msg) {
69802
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.toObject = function(includeInstance, msg) {
69759
69803
  var f, obj = {
69760
69804
  entriesList: jspb.Message.toObjectList(msg.getEntriesList(),
69761
69805
  import_discovery_common_pb.OpenPort.toObject, includeInstance)
@@ -69772,23 +69816,23 @@ proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.toObject = function(i
69772
69816
  /**
69773
69817
  * Deserializes binary data (in protobuf wire format).
69774
69818
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
69775
- * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts}
69819
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts}
69776
69820
  */
69777
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.deserializeBinary = function(bytes) {
69821
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.deserializeBinary = function(bytes) {
69778
69822
  var reader = new jspb.BinaryReader(bytes);
69779
- var msg = new proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts;
69780
- return proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.deserializeBinaryFromReader(msg, reader);
69823
+ var msg = new proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts;
69824
+ return proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.deserializeBinaryFromReader(msg, reader);
69781
69825
  };
69782
69826
 
69783
69827
 
69784
69828
  /**
69785
69829
  * Deserializes binary data (in protobuf wire format) from the
69786
69830
  * given reader into the given message object.
69787
- * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts} msg The message object to deserialize into.
69831
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts} msg The message object to deserialize into.
69788
69832
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
69789
- * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts}
69833
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts}
69790
69834
  */
69791
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.deserializeBinaryFromReader = function(msg, reader) {
69835
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.deserializeBinaryFromReader = function(msg, reader) {
69792
69836
  while (reader.nextField()) {
69793
69837
  if (reader.isEndGroup()) {
69794
69838
  break;
@@ -69813,9 +69857,9 @@ proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.deserializeBinaryFrom
69813
69857
  * Serializes the message to binary data (in protobuf wire format).
69814
69858
  * @return {!Uint8Array}
69815
69859
  */
69816
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.prototype.serializeBinary = function() {
69860
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.prototype.serializeBinary = function() {
69817
69861
  var writer = new jspb.BinaryWriter();
69818
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.serializeBinaryToWriter(this, writer);
69862
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.serializeBinaryToWriter(this, writer);
69819
69863
  return writer.getResultBuffer();
69820
69864
  };
69821
69865
 
@@ -69823,11 +69867,11 @@ proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.prototype.serializeBi
69823
69867
  /**
69824
69868
  * Serializes the given message to binary data (in protobuf wire
69825
69869
  * format), writing to the given BinaryWriter.
69826
- * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts} message
69870
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts} message
69827
69871
  * @param {!jspb.BinaryWriter} writer
69828
69872
  * @suppress {unusedLocalVariables} f is only used for nested messages
69829
69873
  */
69830
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.serializeBinaryToWriter = function(message, writer) {
69874
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.serializeBinaryToWriter = function(message, writer) {
69831
69875
  var f = undefined;
69832
69876
  f = message.getEntriesList();
69833
69877
  if (f.length > 0) {
@@ -69844,7 +69888,7 @@ proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.serializeBinaryToWrit
69844
69888
  * repeated com.lansweeper.discovery.sensor.common.v1.OpenPort entries = 1;
69845
69889
  * @return {!Array<!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort>}
69846
69890
  */
69847
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.prototype.getEntriesList = function() {
69891
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.prototype.getEntriesList = function() {
69848
69892
  return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort>} */ (
69849
69893
  jspb.Message.getRepeatedWrapperField(this, import_discovery_common_pb.OpenPort, 1));
69850
69894
  };
@@ -69852,9 +69896,9 @@ proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.prototype.getEntriesL
69852
69896
 
69853
69897
  /**
69854
69898
  * @param {!Array<!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort>} value
69855
- * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts} returns this
69899
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts} returns this
69856
69900
  */
69857
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.prototype.setEntriesList = function(value) {
69901
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.prototype.setEntriesList = function(value) {
69858
69902
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
69859
69903
  };
69860
69904
 
@@ -69864,20 +69908,343 @@ proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.prototype.setEntriesL
69864
69908
  * @param {number=} opt_index
69865
69909
  * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort}
69866
69910
  */
69867
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.prototype.addEntries = function(opt_value, opt_index) {
69911
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.prototype.addEntries = function(opt_value, opt_index) {
69868
69912
  return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.com.lansweeper.discovery.sensor.common.v1.OpenPort, opt_index);
69869
69913
  };
69870
69914
 
69871
69915
 
69872
69916
  /**
69873
69917
  * Clears the list making it empty but non-null.
69874
- * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts} returns this
69918
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts} returns this
69875
69919
  */
69876
- proto.com.lansweeper.discovery.sensor.windows.v1.OpenPorts.prototype.clearEntriesList = function() {
69920
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsOpenPorts.prototype.clearEntriesList = function() {
69877
69921
  return this.setEntriesList([]);
69878
69922
  };
69879
69923
 
69880
69924
 
69925
+
69926
+ /**
69927
+ * List of repeated fields within this message type.
69928
+ * @private {!Array<number>}
69929
+ * @const
69930
+ */
69931
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.repeatedFields_ = [1];
69932
+
69933
+
69934
+
69935
+ if (jspb.Message.GENERATE_TO_OBJECT) {
69936
+ /**
69937
+ * Creates an object representation of this proto.
69938
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
69939
+ * Optional fields that are not set will be set to undefined.
69940
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
69941
+ * For the list of reserved names please see:
69942
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
69943
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
69944
+ * JSPB instance for transitional soy proto support:
69945
+ * http://goto/soy-param-migration
69946
+ * @return {!Object}
69947
+ */
69948
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.prototype.toObject = function(opt_includeInstance) {
69949
+ return proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.toObject(opt_includeInstance, this);
69950
+ };
69951
+
69952
+
69953
+ /**
69954
+ * Static version of the {@see toObject} method.
69955
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
69956
+ * the JSPB instance for transitional soy proto support:
69957
+ * http://goto/soy-param-migration
69958
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules} msg The msg instance to transform.
69959
+ * @return {!Object}
69960
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69961
+ */
69962
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.toObject = function(includeInstance, msg) {
69963
+ var f, obj = {
69964
+ entriesList: jspb.Message.toObjectList(msg.getEntriesList(),
69965
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.toObject, includeInstance)
69966
+ };
69967
+
69968
+ if (includeInstance) {
69969
+ obj.$jspbMessageInstance = msg;
69970
+ }
69971
+ return obj;
69972
+ };
69973
+ }
69974
+
69975
+
69976
+ /**
69977
+ * Deserializes binary data (in protobuf wire format).
69978
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
69979
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules}
69980
+ */
69981
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.deserializeBinary = function(bytes) {
69982
+ var reader = new jspb.BinaryReader(bytes);
69983
+ var msg = new proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules;
69984
+ return proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.deserializeBinaryFromReader(msg, reader);
69985
+ };
69986
+
69987
+
69988
+ /**
69989
+ * Deserializes binary data (in protobuf wire format) from the
69990
+ * given reader into the given message object.
69991
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules} msg The message object to deserialize into.
69992
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
69993
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules}
69994
+ */
69995
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.deserializeBinaryFromReader = function(msg, reader) {
69996
+ while (reader.nextField()) {
69997
+ if (reader.isEndGroup()) {
69998
+ break;
69999
+ }
70000
+ var field = reader.getFieldNumber();
70001
+ switch (field) {
70002
+ case 1:
70003
+ var value = new proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule;
70004
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.deserializeBinaryFromReader);
70005
+ msg.addEntries(value);
70006
+ break;
70007
+ default:
70008
+ reader.skipField();
70009
+ break;
70010
+ }
70011
+ }
70012
+ return msg;
70013
+ };
70014
+
70015
+
70016
+ /**
70017
+ * Serializes the message to binary data (in protobuf wire format).
70018
+ * @return {!Uint8Array}
70019
+ */
70020
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.prototype.serializeBinary = function() {
70021
+ var writer = new jspb.BinaryWriter();
70022
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.serializeBinaryToWriter(this, writer);
70023
+ return writer.getResultBuffer();
70024
+ };
70025
+
70026
+
70027
+ /**
70028
+ * Serializes the given message to binary data (in protobuf wire
70029
+ * format), writing to the given BinaryWriter.
70030
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules} message
70031
+ * @param {!jspb.BinaryWriter} writer
70032
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70033
+ */
70034
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.serializeBinaryToWriter = function(message, writer) {
70035
+ var f = undefined;
70036
+ f = message.getEntriesList();
70037
+ if (f.length > 0) {
70038
+ writer.writeRepeatedMessage(
70039
+ 1,
70040
+ f,
70041
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.serializeBinaryToWriter
70042
+ );
70043
+ }
70044
+ };
70045
+
70046
+
70047
+ /**
70048
+ * repeated FirewallRule entries = 1;
70049
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule>}
70050
+ */
70051
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.prototype.getEntriesList = function() {
70052
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule>} */ (
70053
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule, 1));
70054
+ };
70055
+
70056
+
70057
+ /**
70058
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule>} value
70059
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules} returns this
70060
+ */
70061
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.prototype.setEntriesList = function(value) {
70062
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
70063
+ };
70064
+
70065
+
70066
+ /**
70067
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule=} opt_value
70068
+ * @param {number=} opt_index
70069
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule}
70070
+ */
70071
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.prototype.addEntries = function(opt_value, opt_index) {
70072
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule, opt_index);
70073
+ };
70074
+
70075
+
70076
+ /**
70077
+ * Clears the list making it empty but non-null.
70078
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules} returns this
70079
+ */
70080
+ proto.com.lansweeper.discovery.sensor.windows.v1.WindowsFirewallRules.prototype.clearEntriesList = function() {
70081
+ return this.setEntriesList([]);
70082
+ };
70083
+
70084
+
70085
+
70086
+
70087
+
70088
+ if (jspb.Message.GENERATE_TO_OBJECT) {
70089
+ /**
70090
+ * Creates an object representation of this proto.
70091
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
70092
+ * Optional fields that are not set will be set to undefined.
70093
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
70094
+ * For the list of reserved names please see:
70095
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
70096
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
70097
+ * JSPB instance for transitional soy proto support:
70098
+ * http://goto/soy-param-migration
70099
+ * @return {!Object}
70100
+ */
70101
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.toObject = function(opt_includeInstance) {
70102
+ return proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.toObject(opt_includeInstance, this);
70103
+ };
70104
+
70105
+
70106
+ /**
70107
+ * Static version of the {@see toObject} method.
70108
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
70109
+ * the JSPB instance for transitional soy proto support:
70110
+ * http://goto/soy-param-migration
70111
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule} msg The msg instance to transform.
70112
+ * @return {!Object}
70113
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70114
+ */
70115
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.toObject = function(includeInstance, msg) {
70116
+ var f, obj = {
70117
+ version: jspb.Message.getFieldWithDefault(msg, 1, ""),
70118
+ propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, undefined) : []
70119
+ };
70120
+
70121
+ if (includeInstance) {
70122
+ obj.$jspbMessageInstance = msg;
70123
+ }
70124
+ return obj;
70125
+ };
70126
+ }
70127
+
70128
+
70129
+ /**
70130
+ * Deserializes binary data (in protobuf wire format).
70131
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
70132
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule}
70133
+ */
70134
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.deserializeBinary = function(bytes) {
70135
+ var reader = new jspb.BinaryReader(bytes);
70136
+ var msg = new proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule;
70137
+ return proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.deserializeBinaryFromReader(msg, reader);
70138
+ };
70139
+
70140
+
70141
+ /**
70142
+ * Deserializes binary data (in protobuf wire format) from the
70143
+ * given reader into the given message object.
70144
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule} msg The message object to deserialize into.
70145
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
70146
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule}
70147
+ */
70148
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.deserializeBinaryFromReader = function(msg, reader) {
70149
+ while (reader.nextField()) {
70150
+ if (reader.isEndGroup()) {
70151
+ break;
70152
+ }
70153
+ var field = reader.getFieldNumber();
70154
+ switch (field) {
70155
+ case 1:
70156
+ var value = /** @type {string} */ (reader.readString());
70157
+ msg.setVersion(value);
70158
+ break;
70159
+ case 2:
70160
+ var value = msg.getPropertiesMap();
70161
+ reader.readMessage(value, function(message, reader) {
70162
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
70163
+ });
70164
+ break;
70165
+ default:
70166
+ reader.skipField();
70167
+ break;
70168
+ }
70169
+ }
70170
+ return msg;
70171
+ };
70172
+
70173
+
70174
+ /**
70175
+ * Serializes the message to binary data (in protobuf wire format).
70176
+ * @return {!Uint8Array}
70177
+ */
70178
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.serializeBinary = function() {
70179
+ var writer = new jspb.BinaryWriter();
70180
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.serializeBinaryToWriter(this, writer);
70181
+ return writer.getResultBuffer();
70182
+ };
70183
+
70184
+
70185
+ /**
70186
+ * Serializes the given message to binary data (in protobuf wire
70187
+ * format), writing to the given BinaryWriter.
70188
+ * @param {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule} message
70189
+ * @param {!jspb.BinaryWriter} writer
70190
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70191
+ */
70192
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.serializeBinaryToWriter = function(message, writer) {
70193
+ var f = undefined;
70194
+ f = message.getVersion();
70195
+ if (f.length > 0) {
70196
+ writer.writeString(
70197
+ 1,
70198
+ f
70199
+ );
70200
+ }
70201
+ f = message.getPropertiesMap(true);
70202
+ if (f && f.getLength() > 0) {
70203
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
70204
+ }
70205
+ };
70206
+
70207
+
70208
+ /**
70209
+ * optional string version = 1;
70210
+ * @return {string}
70211
+ */
70212
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.getVersion = function() {
70213
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
70214
+ };
70215
+
70216
+
70217
+ /**
70218
+ * @param {string} value
70219
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule} returns this
70220
+ */
70221
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.setVersion = function(value) {
70222
+ return jspb.Message.setProto3StringField(this, 1, value);
70223
+ };
70224
+
70225
+
70226
+ /**
70227
+ * map<string, string> properties = 2;
70228
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
70229
+ * empty, instead returning `undefined`
70230
+ * @return {!jspb.Map<string,string>}
70231
+ */
70232
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.getPropertiesMap = function(opt_noLazyCreate) {
70233
+ return /** @type {!jspb.Map<string,string>} */ (
70234
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
70235
+ null));
70236
+ };
70237
+
70238
+
70239
+ /**
70240
+ * Clears values from the map. The map will be non-null.
70241
+ * @return {!proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule} returns this
70242
+ */
70243
+ proto.com.lansweeper.discovery.sensor.windows.v1.FirewallRule.prototype.clearPropertiesMap = function() {
70244
+ this.getPropertiesMap().clear();
70245
+ return this;};
70246
+
70247
+
69881
70248
  /**
69882
70249
  * @enum {number}
69883
70250
  */