@lansweeper/discovery-sensor-proto 2.35.5 → 2.36.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.
@@ -26,6 +26,7 @@ goog.object.extend(proto, google_protobuf_wrappers_pb);
26
26
  var import_discovery_common_pb = require('./import/discovery_common_pb.js');
27
27
  goog.object.extend(proto, import_discovery_common_pb);
28
28
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.AcPower', null, global);
29
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule', null, global);
29
30
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.BatteryChargeInfo', null, global);
30
31
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.BatteryHealthInfo', null, global);
31
32
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.BatteryModelInfo', null, global);
@@ -40,6 +41,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo', n
40
41
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacBluetooth', null, global);
41
42
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacDiscBurning', null, global);
42
43
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacDisplay', null, global);
44
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall', null, global);
43
45
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewire', null, global);
44
46
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacHardDisk', null, global);
45
47
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacMemory', null, global);
@@ -63,6 +65,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.NetworkIpv6', nu
63
65
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.NetworkProxies', null, global);
64
66
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.NetworkVolume', null, global);
65
67
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.Power', null, global);
68
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule', null, global);
66
69
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.Software', null, global);
67
70
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.SystemHardware', null, global);
68
71
  /**
@@ -905,6 +908,69 @@ if (goog.DEBUG && !COMPILED) {
905
908
  */
906
909
  proto.com.lansweeper.discovery.sensor.mac.v1.MacOpenPorts.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.MacOpenPorts';
907
910
  }
911
+ /**
912
+ * Generated by JsPbCodeGenerator.
913
+ * @param {Array=} opt_data Optional initial data array, typically from a
914
+ * server response, or constructed directly in Javascript. The array is used
915
+ * in place and becomes part of the constructed object. It is not cloned.
916
+ * If no data is provided, the constructed object will be empty, but still
917
+ * valid.
918
+ * @extends {jspb.Message}
919
+ * @constructor
920
+ */
921
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall = function(opt_data) {
922
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.repeatedFields_, null);
923
+ };
924
+ goog.inherits(proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall, jspb.Message);
925
+ if (goog.DEBUG && !COMPILED) {
926
+ /**
927
+ * @public
928
+ * @override
929
+ */
930
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall';
931
+ }
932
+ /**
933
+ * Generated by JsPbCodeGenerator.
934
+ * @param {Array=} opt_data Optional initial data array, typically from a
935
+ * server response, or constructed directly in Javascript. The array is used
936
+ * in place and becomes part of the constructed object. It is not cloned.
937
+ * If no data is provided, the constructed object will be empty, but still
938
+ * valid.
939
+ * @extends {jspb.Message}
940
+ * @constructor
941
+ */
942
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule = function(opt_data) {
943
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
944
+ };
945
+ goog.inherits(proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule, jspb.Message);
946
+ if (goog.DEBUG && !COMPILED) {
947
+ /**
948
+ * @public
949
+ * @override
950
+ */
951
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule';
952
+ }
953
+ /**
954
+ * Generated by JsPbCodeGenerator.
955
+ * @param {Array=} opt_data Optional initial data array, typically from a
956
+ * server response, or constructed directly in Javascript. The array is used
957
+ * in place and becomes part of the constructed object. It is not cloned.
958
+ * If no data is provided, the constructed object will be empty, but still
959
+ * valid.
960
+ * @extends {jspb.Message}
961
+ * @constructor
962
+ */
963
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule = function(opt_data) {
964
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
965
+ };
966
+ goog.inherits(proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule, jspb.Message);
967
+ if (goog.DEBUG && !COMPILED) {
968
+ /**
969
+ * @public
970
+ * @override
971
+ */
972
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule';
973
+ }
908
974
 
909
975
  /**
910
976
  * List of repeated fields within this message type.
@@ -17367,4 +17433,774 @@ proto.com.lansweeper.discovery.sensor.mac.v1.MacOpenPorts.prototype.clearEntries
17367
17433
  };
17368
17434
 
17369
17435
 
17436
+
17437
+ /**
17438
+ * List of repeated fields within this message type.
17439
+ * @private {!Array<number>}
17440
+ * @const
17441
+ */
17442
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.repeatedFields_ = [4,5];
17443
+
17444
+
17445
+
17446
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17447
+ /**
17448
+ * Creates an object representation of this proto.
17449
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17450
+ * Optional fields that are not set will be set to undefined.
17451
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17452
+ * For the list of reserved names please see:
17453
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17454
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17455
+ * JSPB instance for transitional soy proto support:
17456
+ * http://goto/soy-param-migration
17457
+ * @return {!Object}
17458
+ */
17459
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.toObject = function(opt_includeInstance) {
17460
+ return proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.toObject(opt_includeInstance, this);
17461
+ };
17462
+
17463
+
17464
+ /**
17465
+ * Static version of the {@see toObject} method.
17466
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17467
+ * the JSPB instance for transitional soy proto support:
17468
+ * http://goto/soy-param-migration
17469
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} msg The msg instance to transform.
17470
+ * @return {!Object}
17471
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17472
+ */
17473
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.toObject = function(includeInstance, msg) {
17474
+ var f, obj = {
17475
+ globalState: (f = msg.getGlobalState()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
17476
+ loggingEnabled: (f = msg.getLoggingEnabled()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
17477
+ stealthEnabled: (f = msg.getStealthEnabled()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
17478
+ applicationRulesList: jspb.Message.toObjectList(msg.getApplicationRulesList(),
17479
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.toObject, includeInstance),
17480
+ serviceRulesList: jspb.Message.toObjectList(msg.getServiceRulesList(),
17481
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.toObject, includeInstance)
17482
+ };
17483
+
17484
+ if (includeInstance) {
17485
+ obj.$jspbMessageInstance = msg;
17486
+ }
17487
+ return obj;
17488
+ };
17489
+ }
17490
+
17491
+
17492
+ /**
17493
+ * Deserializes binary data (in protobuf wire format).
17494
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17495
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall}
17496
+ */
17497
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.deserializeBinary = function(bytes) {
17498
+ var reader = new jspb.BinaryReader(bytes);
17499
+ var msg = new proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall;
17500
+ return proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.deserializeBinaryFromReader(msg, reader);
17501
+ };
17502
+
17503
+
17504
+ /**
17505
+ * Deserializes binary data (in protobuf wire format) from the
17506
+ * given reader into the given message object.
17507
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} msg The message object to deserialize into.
17508
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17509
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall}
17510
+ */
17511
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.deserializeBinaryFromReader = function(msg, reader) {
17512
+ while (reader.nextField()) {
17513
+ if (reader.isEndGroup()) {
17514
+ break;
17515
+ }
17516
+ var field = reader.getFieldNumber();
17517
+ switch (field) {
17518
+ case 1:
17519
+ var value = new google_protobuf_wrappers_pb.StringValue;
17520
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
17521
+ msg.setGlobalState(value);
17522
+ break;
17523
+ case 2:
17524
+ var value = new google_protobuf_wrappers_pb.StringValue;
17525
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
17526
+ msg.setLoggingEnabled(value);
17527
+ break;
17528
+ case 3:
17529
+ var value = new google_protobuf_wrappers_pb.StringValue;
17530
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
17531
+ msg.setStealthEnabled(value);
17532
+ break;
17533
+ case 4:
17534
+ var value = new proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule;
17535
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.deserializeBinaryFromReader);
17536
+ msg.addApplicationRules(value);
17537
+ break;
17538
+ case 5:
17539
+ var value = new proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule;
17540
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.deserializeBinaryFromReader);
17541
+ msg.addServiceRules(value);
17542
+ break;
17543
+ default:
17544
+ reader.skipField();
17545
+ break;
17546
+ }
17547
+ }
17548
+ return msg;
17549
+ };
17550
+
17551
+
17552
+ /**
17553
+ * Serializes the message to binary data (in protobuf wire format).
17554
+ * @return {!Uint8Array}
17555
+ */
17556
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.serializeBinary = function() {
17557
+ var writer = new jspb.BinaryWriter();
17558
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.serializeBinaryToWriter(this, writer);
17559
+ return writer.getResultBuffer();
17560
+ };
17561
+
17562
+
17563
+ /**
17564
+ * Serializes the given message to binary data (in protobuf wire
17565
+ * format), writing to the given BinaryWriter.
17566
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} message
17567
+ * @param {!jspb.BinaryWriter} writer
17568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17569
+ */
17570
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.serializeBinaryToWriter = function(message, writer) {
17571
+ var f = undefined;
17572
+ f = message.getGlobalState();
17573
+ if (f != null) {
17574
+ writer.writeMessage(
17575
+ 1,
17576
+ f,
17577
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
17578
+ );
17579
+ }
17580
+ f = message.getLoggingEnabled();
17581
+ if (f != null) {
17582
+ writer.writeMessage(
17583
+ 2,
17584
+ f,
17585
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
17586
+ );
17587
+ }
17588
+ f = message.getStealthEnabled();
17589
+ if (f != null) {
17590
+ writer.writeMessage(
17591
+ 3,
17592
+ f,
17593
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
17594
+ );
17595
+ }
17596
+ f = message.getApplicationRulesList();
17597
+ if (f.length > 0) {
17598
+ writer.writeRepeatedMessage(
17599
+ 4,
17600
+ f,
17601
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.serializeBinaryToWriter
17602
+ );
17603
+ }
17604
+ f = message.getServiceRulesList();
17605
+ if (f.length > 0) {
17606
+ writer.writeRepeatedMessage(
17607
+ 5,
17608
+ f,
17609
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.serializeBinaryToWriter
17610
+ );
17611
+ }
17612
+ };
17613
+
17614
+
17615
+ /**
17616
+ * optional google.protobuf.StringValue global_state = 1;
17617
+ * @return {?proto.google.protobuf.StringValue}
17618
+ */
17619
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.getGlobalState = function() {
17620
+ return /** @type{?proto.google.protobuf.StringValue} */ (
17621
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
17622
+ };
17623
+
17624
+
17625
+ /**
17626
+ * @param {?proto.google.protobuf.StringValue|undefined} value
17627
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} returns this
17628
+ */
17629
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.setGlobalState = function(value) {
17630
+ return jspb.Message.setWrapperField(this, 1, value);
17631
+ };
17632
+
17633
+
17634
+ /**
17635
+ * Clears the message field making it undefined.
17636
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} returns this
17637
+ */
17638
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.clearGlobalState = function() {
17639
+ return this.setGlobalState(undefined);
17640
+ };
17641
+
17642
+
17643
+ /**
17644
+ * Returns whether this field is set.
17645
+ * @return {boolean}
17646
+ */
17647
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.hasGlobalState = function() {
17648
+ return jspb.Message.getField(this, 1) != null;
17649
+ };
17650
+
17651
+
17652
+ /**
17653
+ * optional google.protobuf.StringValue logging_enabled = 2;
17654
+ * @return {?proto.google.protobuf.StringValue}
17655
+ */
17656
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.getLoggingEnabled = function() {
17657
+ return /** @type{?proto.google.protobuf.StringValue} */ (
17658
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
17659
+ };
17660
+
17661
+
17662
+ /**
17663
+ * @param {?proto.google.protobuf.StringValue|undefined} value
17664
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} returns this
17665
+ */
17666
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.setLoggingEnabled = function(value) {
17667
+ return jspb.Message.setWrapperField(this, 2, value);
17668
+ };
17669
+
17670
+
17671
+ /**
17672
+ * Clears the message field making it undefined.
17673
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} returns this
17674
+ */
17675
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.clearLoggingEnabled = function() {
17676
+ return this.setLoggingEnabled(undefined);
17677
+ };
17678
+
17679
+
17680
+ /**
17681
+ * Returns whether this field is set.
17682
+ * @return {boolean}
17683
+ */
17684
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.hasLoggingEnabled = function() {
17685
+ return jspb.Message.getField(this, 2) != null;
17686
+ };
17687
+
17688
+
17689
+ /**
17690
+ * optional google.protobuf.StringValue stealth_enabled = 3;
17691
+ * @return {?proto.google.protobuf.StringValue}
17692
+ */
17693
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.getStealthEnabled = function() {
17694
+ return /** @type{?proto.google.protobuf.StringValue} */ (
17695
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
17696
+ };
17697
+
17698
+
17699
+ /**
17700
+ * @param {?proto.google.protobuf.StringValue|undefined} value
17701
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} returns this
17702
+ */
17703
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.setStealthEnabled = function(value) {
17704
+ return jspb.Message.setWrapperField(this, 3, value);
17705
+ };
17706
+
17707
+
17708
+ /**
17709
+ * Clears the message field making it undefined.
17710
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} returns this
17711
+ */
17712
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.clearStealthEnabled = function() {
17713
+ return this.setStealthEnabled(undefined);
17714
+ };
17715
+
17716
+
17717
+ /**
17718
+ * Returns whether this field is set.
17719
+ * @return {boolean}
17720
+ */
17721
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.hasStealthEnabled = function() {
17722
+ return jspb.Message.getField(this, 3) != null;
17723
+ };
17724
+
17725
+
17726
+ /**
17727
+ * repeated ApplicationRule application_rules = 4;
17728
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule>}
17729
+ */
17730
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.getApplicationRulesList = function() {
17731
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule>} */ (
17732
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule, 4));
17733
+ };
17734
+
17735
+
17736
+ /**
17737
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule>} value
17738
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} returns this
17739
+ */
17740
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.setApplicationRulesList = function(value) {
17741
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
17742
+ };
17743
+
17744
+
17745
+ /**
17746
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule=} opt_value
17747
+ * @param {number=} opt_index
17748
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule}
17749
+ */
17750
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.addApplicationRules = function(opt_value, opt_index) {
17751
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule, opt_index);
17752
+ };
17753
+
17754
+
17755
+ /**
17756
+ * Clears the list making it empty but non-null.
17757
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} returns this
17758
+ */
17759
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.clearApplicationRulesList = function() {
17760
+ return this.setApplicationRulesList([]);
17761
+ };
17762
+
17763
+
17764
+ /**
17765
+ * repeated ServiceRule service_rules = 5;
17766
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule>}
17767
+ */
17768
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.getServiceRulesList = function() {
17769
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule>} */ (
17770
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule, 5));
17771
+ };
17772
+
17773
+
17774
+ /**
17775
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule>} value
17776
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} returns this
17777
+ */
17778
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.setServiceRulesList = function(value) {
17779
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
17780
+ };
17781
+
17782
+
17783
+ /**
17784
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule=} opt_value
17785
+ * @param {number=} opt_index
17786
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule}
17787
+ */
17788
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.addServiceRules = function(opt_value, opt_index) {
17789
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule, opt_index);
17790
+ };
17791
+
17792
+
17793
+ /**
17794
+ * Clears the list making it empty but non-null.
17795
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall} returns this
17796
+ */
17797
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacFirewall.prototype.clearServiceRulesList = function() {
17798
+ return this.setServiceRulesList([]);
17799
+ };
17800
+
17801
+
17802
+
17803
+
17804
+
17805
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17806
+ /**
17807
+ * Creates an object representation of this proto.
17808
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17809
+ * Optional fields that are not set will be set to undefined.
17810
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17811
+ * For the list of reserved names please see:
17812
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17813
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17814
+ * JSPB instance for transitional soy proto support:
17815
+ * http://goto/soy-param-migration
17816
+ * @return {!Object}
17817
+ */
17818
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.prototype.toObject = function(opt_includeInstance) {
17819
+ return proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.toObject(opt_includeInstance, this);
17820
+ };
17821
+
17822
+
17823
+ /**
17824
+ * Static version of the {@see toObject} method.
17825
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17826
+ * the JSPB instance for transitional soy proto support:
17827
+ * http://goto/soy-param-migration
17828
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule} msg The msg instance to transform.
17829
+ * @return {!Object}
17830
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17831
+ */
17832
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.toObject = function(includeInstance, msg) {
17833
+ var f, obj = {
17834
+ name: (f = msg.getName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
17835
+ state: (f = msg.getState()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
17836
+ };
17837
+
17838
+ if (includeInstance) {
17839
+ obj.$jspbMessageInstance = msg;
17840
+ }
17841
+ return obj;
17842
+ };
17843
+ }
17844
+
17845
+
17846
+ /**
17847
+ * Deserializes binary data (in protobuf wire format).
17848
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17849
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule}
17850
+ */
17851
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.deserializeBinary = function(bytes) {
17852
+ var reader = new jspb.BinaryReader(bytes);
17853
+ var msg = new proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule;
17854
+ return proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.deserializeBinaryFromReader(msg, reader);
17855
+ };
17856
+
17857
+
17858
+ /**
17859
+ * Deserializes binary data (in protobuf wire format) from the
17860
+ * given reader into the given message object.
17861
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule} msg The message object to deserialize into.
17862
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17863
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule}
17864
+ */
17865
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.deserializeBinaryFromReader = function(msg, reader) {
17866
+ while (reader.nextField()) {
17867
+ if (reader.isEndGroup()) {
17868
+ break;
17869
+ }
17870
+ var field = reader.getFieldNumber();
17871
+ switch (field) {
17872
+ case 1:
17873
+ var value = new google_protobuf_wrappers_pb.StringValue;
17874
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
17875
+ msg.setName(value);
17876
+ break;
17877
+ case 2:
17878
+ var value = new google_protobuf_wrappers_pb.StringValue;
17879
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
17880
+ msg.setState(value);
17881
+ break;
17882
+ default:
17883
+ reader.skipField();
17884
+ break;
17885
+ }
17886
+ }
17887
+ return msg;
17888
+ };
17889
+
17890
+
17891
+ /**
17892
+ * Serializes the message to binary data (in protobuf wire format).
17893
+ * @return {!Uint8Array}
17894
+ */
17895
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.prototype.serializeBinary = function() {
17896
+ var writer = new jspb.BinaryWriter();
17897
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.serializeBinaryToWriter(this, writer);
17898
+ return writer.getResultBuffer();
17899
+ };
17900
+
17901
+
17902
+ /**
17903
+ * Serializes the given message to binary data (in protobuf wire
17904
+ * format), writing to the given BinaryWriter.
17905
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule} message
17906
+ * @param {!jspb.BinaryWriter} writer
17907
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17908
+ */
17909
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.serializeBinaryToWriter = function(message, writer) {
17910
+ var f = undefined;
17911
+ f = message.getName();
17912
+ if (f != null) {
17913
+ writer.writeMessage(
17914
+ 1,
17915
+ f,
17916
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
17917
+ );
17918
+ }
17919
+ f = message.getState();
17920
+ if (f != null) {
17921
+ writer.writeMessage(
17922
+ 2,
17923
+ f,
17924
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
17925
+ );
17926
+ }
17927
+ };
17928
+
17929
+
17930
+ /**
17931
+ * optional google.protobuf.StringValue name = 1;
17932
+ * @return {?proto.google.protobuf.StringValue}
17933
+ */
17934
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.prototype.getName = function() {
17935
+ return /** @type{?proto.google.protobuf.StringValue} */ (
17936
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
17937
+ };
17938
+
17939
+
17940
+ /**
17941
+ * @param {?proto.google.protobuf.StringValue|undefined} value
17942
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule} returns this
17943
+ */
17944
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.prototype.setName = function(value) {
17945
+ return jspb.Message.setWrapperField(this, 1, value);
17946
+ };
17947
+
17948
+
17949
+ /**
17950
+ * Clears the message field making it undefined.
17951
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule} returns this
17952
+ */
17953
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.prototype.clearName = function() {
17954
+ return this.setName(undefined);
17955
+ };
17956
+
17957
+
17958
+ /**
17959
+ * Returns whether this field is set.
17960
+ * @return {boolean}
17961
+ */
17962
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.prototype.hasName = function() {
17963
+ return jspb.Message.getField(this, 1) != null;
17964
+ };
17965
+
17966
+
17967
+ /**
17968
+ * optional google.protobuf.StringValue state = 2;
17969
+ * @return {?proto.google.protobuf.StringValue}
17970
+ */
17971
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.prototype.getState = function() {
17972
+ return /** @type{?proto.google.protobuf.StringValue} */ (
17973
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
17974
+ };
17975
+
17976
+
17977
+ /**
17978
+ * @param {?proto.google.protobuf.StringValue|undefined} value
17979
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule} returns this
17980
+ */
17981
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.prototype.setState = function(value) {
17982
+ return jspb.Message.setWrapperField(this, 2, value);
17983
+ };
17984
+
17985
+
17986
+ /**
17987
+ * Clears the message field making it undefined.
17988
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule} returns this
17989
+ */
17990
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.prototype.clearState = function() {
17991
+ return this.setState(undefined);
17992
+ };
17993
+
17994
+
17995
+ /**
17996
+ * Returns whether this field is set.
17997
+ * @return {boolean}
17998
+ */
17999
+ proto.com.lansweeper.discovery.sensor.mac.v1.ApplicationRule.prototype.hasState = function() {
18000
+ return jspb.Message.getField(this, 2) != null;
18001
+ };
18002
+
18003
+
18004
+
18005
+
18006
+
18007
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18008
+ /**
18009
+ * Creates an object representation of this proto.
18010
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18011
+ * Optional fields that are not set will be set to undefined.
18012
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18013
+ * For the list of reserved names please see:
18014
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18015
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18016
+ * JSPB instance for transitional soy proto support:
18017
+ * http://goto/soy-param-migration
18018
+ * @return {!Object}
18019
+ */
18020
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.prototype.toObject = function(opt_includeInstance) {
18021
+ return proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.toObject(opt_includeInstance, this);
18022
+ };
18023
+
18024
+
18025
+ /**
18026
+ * Static version of the {@see toObject} method.
18027
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18028
+ * the JSPB instance for transitional soy proto support:
18029
+ * http://goto/soy-param-migration
18030
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule} msg The msg instance to transform.
18031
+ * @return {!Object}
18032
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18033
+ */
18034
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.toObject = function(includeInstance, msg) {
18035
+ var f, obj = {
18036
+ name: (f = msg.getName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
18037
+ state: (f = msg.getState()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
18038
+ };
18039
+
18040
+ if (includeInstance) {
18041
+ obj.$jspbMessageInstance = msg;
18042
+ }
18043
+ return obj;
18044
+ };
18045
+ }
18046
+
18047
+
18048
+ /**
18049
+ * Deserializes binary data (in protobuf wire format).
18050
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18051
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule}
18052
+ */
18053
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.deserializeBinary = function(bytes) {
18054
+ var reader = new jspb.BinaryReader(bytes);
18055
+ var msg = new proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule;
18056
+ return proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.deserializeBinaryFromReader(msg, reader);
18057
+ };
18058
+
18059
+
18060
+ /**
18061
+ * Deserializes binary data (in protobuf wire format) from the
18062
+ * given reader into the given message object.
18063
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule} msg The message object to deserialize into.
18064
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18065
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule}
18066
+ */
18067
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.deserializeBinaryFromReader = function(msg, reader) {
18068
+ while (reader.nextField()) {
18069
+ if (reader.isEndGroup()) {
18070
+ break;
18071
+ }
18072
+ var field = reader.getFieldNumber();
18073
+ switch (field) {
18074
+ case 1:
18075
+ var value = new google_protobuf_wrappers_pb.StringValue;
18076
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
18077
+ msg.setName(value);
18078
+ break;
18079
+ case 2:
18080
+ var value = new google_protobuf_wrappers_pb.StringValue;
18081
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
18082
+ msg.setState(value);
18083
+ break;
18084
+ default:
18085
+ reader.skipField();
18086
+ break;
18087
+ }
18088
+ }
18089
+ return msg;
18090
+ };
18091
+
18092
+
18093
+ /**
18094
+ * Serializes the message to binary data (in protobuf wire format).
18095
+ * @return {!Uint8Array}
18096
+ */
18097
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.prototype.serializeBinary = function() {
18098
+ var writer = new jspb.BinaryWriter();
18099
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.serializeBinaryToWriter(this, writer);
18100
+ return writer.getResultBuffer();
18101
+ };
18102
+
18103
+
18104
+ /**
18105
+ * Serializes the given message to binary data (in protobuf wire
18106
+ * format), writing to the given BinaryWriter.
18107
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule} message
18108
+ * @param {!jspb.BinaryWriter} writer
18109
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18110
+ */
18111
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.serializeBinaryToWriter = function(message, writer) {
18112
+ var f = undefined;
18113
+ f = message.getName();
18114
+ if (f != null) {
18115
+ writer.writeMessage(
18116
+ 1,
18117
+ f,
18118
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
18119
+ );
18120
+ }
18121
+ f = message.getState();
18122
+ if (f != null) {
18123
+ writer.writeMessage(
18124
+ 2,
18125
+ f,
18126
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
18127
+ );
18128
+ }
18129
+ };
18130
+
18131
+
18132
+ /**
18133
+ * optional google.protobuf.StringValue name = 1;
18134
+ * @return {?proto.google.protobuf.StringValue}
18135
+ */
18136
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.prototype.getName = function() {
18137
+ return /** @type{?proto.google.protobuf.StringValue} */ (
18138
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
18139
+ };
18140
+
18141
+
18142
+ /**
18143
+ * @param {?proto.google.protobuf.StringValue|undefined} value
18144
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule} returns this
18145
+ */
18146
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.prototype.setName = function(value) {
18147
+ return jspb.Message.setWrapperField(this, 1, value);
18148
+ };
18149
+
18150
+
18151
+ /**
18152
+ * Clears the message field making it undefined.
18153
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule} returns this
18154
+ */
18155
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.prototype.clearName = function() {
18156
+ return this.setName(undefined);
18157
+ };
18158
+
18159
+
18160
+ /**
18161
+ * Returns whether this field is set.
18162
+ * @return {boolean}
18163
+ */
18164
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.prototype.hasName = function() {
18165
+ return jspb.Message.getField(this, 1) != null;
18166
+ };
18167
+
18168
+
18169
+ /**
18170
+ * optional google.protobuf.StringValue state = 2;
18171
+ * @return {?proto.google.protobuf.StringValue}
18172
+ */
18173
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.prototype.getState = function() {
18174
+ return /** @type{?proto.google.protobuf.StringValue} */ (
18175
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
18176
+ };
18177
+
18178
+
18179
+ /**
18180
+ * @param {?proto.google.protobuf.StringValue|undefined} value
18181
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule} returns this
18182
+ */
18183
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.prototype.setState = function(value) {
18184
+ return jspb.Message.setWrapperField(this, 2, value);
18185
+ };
18186
+
18187
+
18188
+ /**
18189
+ * Clears the message field making it undefined.
18190
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule} returns this
18191
+ */
18192
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.prototype.clearState = function() {
18193
+ return this.setState(undefined);
18194
+ };
18195
+
18196
+
18197
+ /**
18198
+ * Returns whether this field is set.
18199
+ * @return {boolean}
18200
+ */
18201
+ proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule.prototype.hasState = function() {
18202
+ return jspb.Message.getField(this, 2) != null;
18203
+ };
18204
+
18205
+
17370
18206
  goog.object.extend(exports, proto.com.lansweeper.discovery.sensor.mac.v1);