@lansweeper/discovery-sensor-proto 2.48.0 → 2.49.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.
@@ -65,8 +65,10 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacOpenPorts', n
65
65
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacOsInfo', null, global);
66
66
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacPrinters', null, global);
67
67
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacSATA', null, global);
68
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI', null, global);
68
69
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacSecureElements', null, global);
69
70
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacSoftware', null, global);
71
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage', null, global);
70
72
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.Memory', null, global);
71
73
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.Modem', null, global);
72
74
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.Monitor', null, global);
@@ -88,8 +90,11 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.PrinterCupsFilte
88
90
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.SATAController', null, global);
89
91
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.SATADevice', null, global);
90
92
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.SATAVolume', null, global);
93
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice', null, global);
91
94
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.ServiceRule', null, global);
92
95
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.Software', null, global);
96
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive', null, global);
97
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume', null, global);
93
98
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.SystemHardware', null, global);
94
99
  /**
95
100
  * Generated by JsPbCodeGenerator.
@@ -1477,6 +1482,111 @@ if (goog.DEBUG && !COMPILED) {
1477
1482
  */
1478
1483
  proto.com.lansweeper.discovery.sensor.mac.v1.SATAVolume.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.SATAVolume';
1479
1484
  }
1485
+ /**
1486
+ * Generated by JsPbCodeGenerator.
1487
+ * @param {Array=} opt_data Optional initial data array, typically from a
1488
+ * server response, or constructed directly in Javascript. The array is used
1489
+ * in place and becomes part of the constructed object. It is not cloned.
1490
+ * If no data is provided, the constructed object will be empty, but still
1491
+ * valid.
1492
+ * @extends {jspb.Message}
1493
+ * @constructor
1494
+ */
1495
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI = function(opt_data) {
1496
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.repeatedFields_, null);
1497
+ };
1498
+ goog.inherits(proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI, jspb.Message);
1499
+ if (goog.DEBUG && !COMPILED) {
1500
+ /**
1501
+ * @public
1502
+ * @override
1503
+ */
1504
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI';
1505
+ }
1506
+ /**
1507
+ * Generated by JsPbCodeGenerator.
1508
+ * @param {Array=} opt_data Optional initial data array, typically from a
1509
+ * server response, or constructed directly in Javascript. The array is used
1510
+ * in place and becomes part of the constructed object. It is not cloned.
1511
+ * If no data is provided, the constructed object will be empty, but still
1512
+ * valid.
1513
+ * @extends {jspb.Message}
1514
+ * @constructor
1515
+ */
1516
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice = function(opt_data) {
1517
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1518
+ };
1519
+ goog.inherits(proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice, jspb.Message);
1520
+ if (goog.DEBUG && !COMPILED) {
1521
+ /**
1522
+ * @public
1523
+ * @override
1524
+ */
1525
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice';
1526
+ }
1527
+ /**
1528
+ * Generated by JsPbCodeGenerator.
1529
+ * @param {Array=} opt_data Optional initial data array, typically from a
1530
+ * server response, or constructed directly in Javascript. The array is used
1531
+ * in place and becomes part of the constructed object. It is not cloned.
1532
+ * If no data is provided, the constructed object will be empty, but still
1533
+ * valid.
1534
+ * @extends {jspb.Message}
1535
+ * @constructor
1536
+ */
1537
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage = function(opt_data) {
1538
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.repeatedFields_, null);
1539
+ };
1540
+ goog.inherits(proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage, jspb.Message);
1541
+ if (goog.DEBUG && !COMPILED) {
1542
+ /**
1543
+ * @public
1544
+ * @override
1545
+ */
1546
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage';
1547
+ }
1548
+ /**
1549
+ * Generated by JsPbCodeGenerator.
1550
+ * @param {Array=} opt_data Optional initial data array, typically from a
1551
+ * server response, or constructed directly in Javascript. The array is used
1552
+ * in place and becomes part of the constructed object. It is not cloned.
1553
+ * If no data is provided, the constructed object will be empty, but still
1554
+ * valid.
1555
+ * @extends {jspb.Message}
1556
+ * @constructor
1557
+ */
1558
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume = function(opt_data) {
1559
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.repeatedFields_, null);
1560
+ };
1561
+ goog.inherits(proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume, jspb.Message);
1562
+ if (goog.DEBUG && !COMPILED) {
1563
+ /**
1564
+ * @public
1565
+ * @override
1566
+ */
1567
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume';
1568
+ }
1569
+ /**
1570
+ * Generated by JsPbCodeGenerator.
1571
+ * @param {Array=} opt_data Optional initial data array, typically from a
1572
+ * server response, or constructed directly in Javascript. The array is used
1573
+ * in place and becomes part of the constructed object. It is not cloned.
1574
+ * If no data is provided, the constructed object will be empty, but still
1575
+ * valid.
1576
+ * @extends {jspb.Message}
1577
+ * @constructor
1578
+ */
1579
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive = function(opt_data) {
1580
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1581
+ };
1582
+ goog.inherits(proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive, jspb.Message);
1583
+ if (goog.DEBUG && !COMPILED) {
1584
+ /**
1585
+ * @public
1586
+ * @override
1587
+ */
1588
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive';
1589
+ }
1480
1590
 
1481
1591
  /**
1482
1592
  * List of repeated fields within this message type.
@@ -30657,4 +30767,1959 @@ proto.com.lansweeper.discovery.sensor.mac.v1.SATAVolume.prototype.hasWritable =
30657
30767
  };
30658
30768
 
30659
30769
 
30770
+
30771
+ /**
30772
+ * List of repeated fields within this message type.
30773
+ * @private {!Array<number>}
30774
+ * @const
30775
+ */
30776
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.repeatedFields_ = [1];
30777
+
30778
+
30779
+
30780
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30781
+ /**
30782
+ * Creates an object representation of this proto.
30783
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30784
+ * Optional fields that are not set will be set to undefined.
30785
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30786
+ * For the list of reserved names please see:
30787
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30788
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30789
+ * JSPB instance for transitional soy proto support:
30790
+ * http://goto/soy-param-migration
30791
+ * @return {!Object}
30792
+ */
30793
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.prototype.toObject = function(opt_includeInstance) {
30794
+ return proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.toObject(opt_includeInstance, this);
30795
+ };
30796
+
30797
+
30798
+ /**
30799
+ * Static version of the {@see toObject} method.
30800
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30801
+ * the JSPB instance for transitional soy proto support:
30802
+ * http://goto/soy-param-migration
30803
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI} msg The msg instance to transform.
30804
+ * @return {!Object}
30805
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30806
+ */
30807
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.toObject = function(includeInstance, msg) {
30808
+ var f, obj = {
30809
+ entriesList: jspb.Message.toObjectList(msg.getEntriesList(),
30810
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.toObject, includeInstance)
30811
+ };
30812
+
30813
+ if (includeInstance) {
30814
+ obj.$jspbMessageInstance = msg;
30815
+ }
30816
+ return obj;
30817
+ };
30818
+ }
30819
+
30820
+
30821
+ /**
30822
+ * Deserializes binary data (in protobuf wire format).
30823
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30824
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI}
30825
+ */
30826
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.deserializeBinary = function(bytes) {
30827
+ var reader = new jspb.BinaryReader(bytes);
30828
+ var msg = new proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI;
30829
+ return proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.deserializeBinaryFromReader(msg, reader);
30830
+ };
30831
+
30832
+
30833
+ /**
30834
+ * Deserializes binary data (in protobuf wire format) from the
30835
+ * given reader into the given message object.
30836
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI} msg The message object to deserialize into.
30837
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30838
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI}
30839
+ */
30840
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.deserializeBinaryFromReader = function(msg, reader) {
30841
+ while (reader.nextField()) {
30842
+ if (reader.isEndGroup()) {
30843
+ break;
30844
+ }
30845
+ var field = reader.getFieldNumber();
30846
+ switch (field) {
30847
+ case 1:
30848
+ var value = new proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice;
30849
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.deserializeBinaryFromReader);
30850
+ msg.addEntries(value);
30851
+ break;
30852
+ default:
30853
+ reader.skipField();
30854
+ break;
30855
+ }
30856
+ }
30857
+ return msg;
30858
+ };
30859
+
30860
+
30861
+ /**
30862
+ * Serializes the message to binary data (in protobuf wire format).
30863
+ * @return {!Uint8Array}
30864
+ */
30865
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.prototype.serializeBinary = function() {
30866
+ var writer = new jspb.BinaryWriter();
30867
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.serializeBinaryToWriter(this, writer);
30868
+ return writer.getResultBuffer();
30869
+ };
30870
+
30871
+
30872
+ /**
30873
+ * Serializes the given message to binary data (in protobuf wire
30874
+ * format), writing to the given BinaryWriter.
30875
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI} message
30876
+ * @param {!jspb.BinaryWriter} writer
30877
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30878
+ */
30879
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.serializeBinaryToWriter = function(message, writer) {
30880
+ var f = undefined;
30881
+ f = message.getEntriesList();
30882
+ if (f.length > 0) {
30883
+ writer.writeRepeatedMessage(
30884
+ 1,
30885
+ f,
30886
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.serializeBinaryToWriter
30887
+ );
30888
+ }
30889
+ };
30890
+
30891
+
30892
+ /**
30893
+ * repeated SPIDevice entries = 1;
30894
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice>}
30895
+ */
30896
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.prototype.getEntriesList = function() {
30897
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice>} */ (
30898
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice, 1));
30899
+ };
30900
+
30901
+
30902
+ /**
30903
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice>} value
30904
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI} returns this
30905
+ */
30906
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.prototype.setEntriesList = function(value) {
30907
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
30908
+ };
30909
+
30910
+
30911
+ /**
30912
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice=} opt_value
30913
+ * @param {number=} opt_index
30914
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice}
30915
+ */
30916
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.prototype.addEntries = function(opt_value, opt_index) {
30917
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice, opt_index);
30918
+ };
30919
+
30920
+
30921
+ /**
30922
+ * Clears the list making it empty but non-null.
30923
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI} returns this
30924
+ */
30925
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacSPI.prototype.clearEntriesList = function() {
30926
+ return this.setEntriesList([]);
30927
+ };
30928
+
30929
+
30930
+
30931
+
30932
+
30933
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30934
+ /**
30935
+ * Creates an object representation of this proto.
30936
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30937
+ * Optional fields that are not set will be set to undefined.
30938
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30939
+ * For the list of reserved names please see:
30940
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30941
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30942
+ * JSPB instance for transitional soy proto support:
30943
+ * http://goto/soy-param-migration
30944
+ * @return {!Object}
30945
+ */
30946
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.toObject = function(opt_includeInstance) {
30947
+ return proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.toObject(opt_includeInstance, this);
30948
+ };
30949
+
30950
+
30951
+ /**
30952
+ * Static version of the {@see toObject} method.
30953
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30954
+ * the JSPB instance for transitional soy proto support:
30955
+ * http://goto/soy-param-migration
30956
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} msg The msg instance to transform.
30957
+ * @return {!Object}
30958
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30959
+ */
30960
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.toObject = function(includeInstance, msg) {
30961
+ var f, obj = {
30962
+ name: (f = msg.getName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
30963
+ productId: (f = msg.getProductId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
30964
+ vendorId: (f = msg.getVendorId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
30965
+ stfwVersion: (f = msg.getStfwVersion()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
30966
+ serialNumber: (f = msg.getSerialNumber()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
30967
+ deviceSpeed: (f = msg.getDeviceSpeed()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
30968
+ manufacturer: (f = msg.getManufacturer()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
30969
+ locationId: (f = msg.getLocationId()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
30970
+ mtfwVersion: (f = msg.getMtfwVersion()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
30971
+ };
30972
+
30973
+ if (includeInstance) {
30974
+ obj.$jspbMessageInstance = msg;
30975
+ }
30976
+ return obj;
30977
+ };
30978
+ }
30979
+
30980
+
30981
+ /**
30982
+ * Deserializes binary data (in protobuf wire format).
30983
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30984
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice}
30985
+ */
30986
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.deserializeBinary = function(bytes) {
30987
+ var reader = new jspb.BinaryReader(bytes);
30988
+ var msg = new proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice;
30989
+ return proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.deserializeBinaryFromReader(msg, reader);
30990
+ };
30991
+
30992
+
30993
+ /**
30994
+ * Deserializes binary data (in protobuf wire format) from the
30995
+ * given reader into the given message object.
30996
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} msg The message object to deserialize into.
30997
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30998
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice}
30999
+ */
31000
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.deserializeBinaryFromReader = function(msg, reader) {
31001
+ while (reader.nextField()) {
31002
+ if (reader.isEndGroup()) {
31003
+ break;
31004
+ }
31005
+ var field = reader.getFieldNumber();
31006
+ switch (field) {
31007
+ case 1:
31008
+ var value = new google_protobuf_wrappers_pb.StringValue;
31009
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31010
+ msg.setName(value);
31011
+ break;
31012
+ case 2:
31013
+ var value = new google_protobuf_wrappers_pb.StringValue;
31014
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31015
+ msg.setProductId(value);
31016
+ break;
31017
+ case 3:
31018
+ var value = new google_protobuf_wrappers_pb.StringValue;
31019
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31020
+ msg.setVendorId(value);
31021
+ break;
31022
+ case 4:
31023
+ var value = new google_protobuf_wrappers_pb.StringValue;
31024
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31025
+ msg.setStfwVersion(value);
31026
+ break;
31027
+ case 5:
31028
+ var value = new google_protobuf_wrappers_pb.StringValue;
31029
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31030
+ msg.setSerialNumber(value);
31031
+ break;
31032
+ case 6:
31033
+ var value = new google_protobuf_wrappers_pb.StringValue;
31034
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31035
+ msg.setDeviceSpeed(value);
31036
+ break;
31037
+ case 7:
31038
+ var value = new google_protobuf_wrappers_pb.StringValue;
31039
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31040
+ msg.setManufacturer(value);
31041
+ break;
31042
+ case 8:
31043
+ var value = new google_protobuf_wrappers_pb.StringValue;
31044
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31045
+ msg.setLocationId(value);
31046
+ break;
31047
+ case 9:
31048
+ var value = new google_protobuf_wrappers_pb.StringValue;
31049
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31050
+ msg.setMtfwVersion(value);
31051
+ break;
31052
+ default:
31053
+ reader.skipField();
31054
+ break;
31055
+ }
31056
+ }
31057
+ return msg;
31058
+ };
31059
+
31060
+
31061
+ /**
31062
+ * Serializes the message to binary data (in protobuf wire format).
31063
+ * @return {!Uint8Array}
31064
+ */
31065
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.serializeBinary = function() {
31066
+ var writer = new jspb.BinaryWriter();
31067
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.serializeBinaryToWriter(this, writer);
31068
+ return writer.getResultBuffer();
31069
+ };
31070
+
31071
+
31072
+ /**
31073
+ * Serializes the given message to binary data (in protobuf wire
31074
+ * format), writing to the given BinaryWriter.
31075
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} message
31076
+ * @param {!jspb.BinaryWriter} writer
31077
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31078
+ */
31079
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.serializeBinaryToWriter = function(message, writer) {
31080
+ var f = undefined;
31081
+ f = message.getName();
31082
+ if (f != null) {
31083
+ writer.writeMessage(
31084
+ 1,
31085
+ f,
31086
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31087
+ );
31088
+ }
31089
+ f = message.getProductId();
31090
+ if (f != null) {
31091
+ writer.writeMessage(
31092
+ 2,
31093
+ f,
31094
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31095
+ );
31096
+ }
31097
+ f = message.getVendorId();
31098
+ if (f != null) {
31099
+ writer.writeMessage(
31100
+ 3,
31101
+ f,
31102
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31103
+ );
31104
+ }
31105
+ f = message.getStfwVersion();
31106
+ if (f != null) {
31107
+ writer.writeMessage(
31108
+ 4,
31109
+ f,
31110
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31111
+ );
31112
+ }
31113
+ f = message.getSerialNumber();
31114
+ if (f != null) {
31115
+ writer.writeMessage(
31116
+ 5,
31117
+ f,
31118
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31119
+ );
31120
+ }
31121
+ f = message.getDeviceSpeed();
31122
+ if (f != null) {
31123
+ writer.writeMessage(
31124
+ 6,
31125
+ f,
31126
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31127
+ );
31128
+ }
31129
+ f = message.getManufacturer();
31130
+ if (f != null) {
31131
+ writer.writeMessage(
31132
+ 7,
31133
+ f,
31134
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31135
+ );
31136
+ }
31137
+ f = message.getLocationId();
31138
+ if (f != null) {
31139
+ writer.writeMessage(
31140
+ 8,
31141
+ f,
31142
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31143
+ );
31144
+ }
31145
+ f = message.getMtfwVersion();
31146
+ if (f != null) {
31147
+ writer.writeMessage(
31148
+ 9,
31149
+ f,
31150
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31151
+ );
31152
+ }
31153
+ };
31154
+
31155
+
31156
+ /**
31157
+ * optional google.protobuf.StringValue name = 1;
31158
+ * @return {?proto.google.protobuf.StringValue}
31159
+ */
31160
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.getName = function() {
31161
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31162
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
31163
+ };
31164
+
31165
+
31166
+ /**
31167
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31168
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31169
+ */
31170
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.setName = function(value) {
31171
+ return jspb.Message.setWrapperField(this, 1, value);
31172
+ };
31173
+
31174
+
31175
+ /**
31176
+ * Clears the message field making it undefined.
31177
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31178
+ */
31179
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.clearName = function() {
31180
+ return this.setName(undefined);
31181
+ };
31182
+
31183
+
31184
+ /**
31185
+ * Returns whether this field is set.
31186
+ * @return {boolean}
31187
+ */
31188
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.hasName = function() {
31189
+ return jspb.Message.getField(this, 1) != null;
31190
+ };
31191
+
31192
+
31193
+ /**
31194
+ * optional google.protobuf.StringValue product_id = 2;
31195
+ * @return {?proto.google.protobuf.StringValue}
31196
+ */
31197
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.getProductId = function() {
31198
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31199
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
31200
+ };
31201
+
31202
+
31203
+ /**
31204
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31205
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31206
+ */
31207
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.setProductId = function(value) {
31208
+ return jspb.Message.setWrapperField(this, 2, value);
31209
+ };
31210
+
31211
+
31212
+ /**
31213
+ * Clears the message field making it undefined.
31214
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31215
+ */
31216
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.clearProductId = function() {
31217
+ return this.setProductId(undefined);
31218
+ };
31219
+
31220
+
31221
+ /**
31222
+ * Returns whether this field is set.
31223
+ * @return {boolean}
31224
+ */
31225
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.hasProductId = function() {
31226
+ return jspb.Message.getField(this, 2) != null;
31227
+ };
31228
+
31229
+
31230
+ /**
31231
+ * optional google.protobuf.StringValue vendor_id = 3;
31232
+ * @return {?proto.google.protobuf.StringValue}
31233
+ */
31234
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.getVendorId = function() {
31235
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31236
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
31237
+ };
31238
+
31239
+
31240
+ /**
31241
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31242
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31243
+ */
31244
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.setVendorId = function(value) {
31245
+ return jspb.Message.setWrapperField(this, 3, value);
31246
+ };
31247
+
31248
+
31249
+ /**
31250
+ * Clears the message field making it undefined.
31251
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31252
+ */
31253
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.clearVendorId = function() {
31254
+ return this.setVendorId(undefined);
31255
+ };
31256
+
31257
+
31258
+ /**
31259
+ * Returns whether this field is set.
31260
+ * @return {boolean}
31261
+ */
31262
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.hasVendorId = function() {
31263
+ return jspb.Message.getField(this, 3) != null;
31264
+ };
31265
+
31266
+
31267
+ /**
31268
+ * optional google.protobuf.StringValue stfw_version = 4;
31269
+ * @return {?proto.google.protobuf.StringValue}
31270
+ */
31271
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.getStfwVersion = function() {
31272
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31273
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4));
31274
+ };
31275
+
31276
+
31277
+ /**
31278
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31279
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31280
+ */
31281
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.setStfwVersion = function(value) {
31282
+ return jspb.Message.setWrapperField(this, 4, value);
31283
+ };
31284
+
31285
+
31286
+ /**
31287
+ * Clears the message field making it undefined.
31288
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31289
+ */
31290
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.clearStfwVersion = function() {
31291
+ return this.setStfwVersion(undefined);
31292
+ };
31293
+
31294
+
31295
+ /**
31296
+ * Returns whether this field is set.
31297
+ * @return {boolean}
31298
+ */
31299
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.hasStfwVersion = function() {
31300
+ return jspb.Message.getField(this, 4) != null;
31301
+ };
31302
+
31303
+
31304
+ /**
31305
+ * optional google.protobuf.StringValue serial_number = 5;
31306
+ * @return {?proto.google.protobuf.StringValue}
31307
+ */
31308
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.getSerialNumber = function() {
31309
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31310
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 5));
31311
+ };
31312
+
31313
+
31314
+ /**
31315
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31316
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31317
+ */
31318
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.setSerialNumber = function(value) {
31319
+ return jspb.Message.setWrapperField(this, 5, value);
31320
+ };
31321
+
31322
+
31323
+ /**
31324
+ * Clears the message field making it undefined.
31325
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31326
+ */
31327
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.clearSerialNumber = function() {
31328
+ return this.setSerialNumber(undefined);
31329
+ };
31330
+
31331
+
31332
+ /**
31333
+ * Returns whether this field is set.
31334
+ * @return {boolean}
31335
+ */
31336
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.hasSerialNumber = function() {
31337
+ return jspb.Message.getField(this, 5) != null;
31338
+ };
31339
+
31340
+
31341
+ /**
31342
+ * optional google.protobuf.StringValue device_speed = 6;
31343
+ * @return {?proto.google.protobuf.StringValue}
31344
+ */
31345
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.getDeviceSpeed = function() {
31346
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31347
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6));
31348
+ };
31349
+
31350
+
31351
+ /**
31352
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31353
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31354
+ */
31355
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.setDeviceSpeed = function(value) {
31356
+ return jspb.Message.setWrapperField(this, 6, value);
31357
+ };
31358
+
31359
+
31360
+ /**
31361
+ * Clears the message field making it undefined.
31362
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31363
+ */
31364
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.clearDeviceSpeed = function() {
31365
+ return this.setDeviceSpeed(undefined);
31366
+ };
31367
+
31368
+
31369
+ /**
31370
+ * Returns whether this field is set.
31371
+ * @return {boolean}
31372
+ */
31373
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.hasDeviceSpeed = function() {
31374
+ return jspb.Message.getField(this, 6) != null;
31375
+ };
31376
+
31377
+
31378
+ /**
31379
+ * optional google.protobuf.StringValue manufacturer = 7;
31380
+ * @return {?proto.google.protobuf.StringValue}
31381
+ */
31382
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.getManufacturer = function() {
31383
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31384
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 7));
31385
+ };
31386
+
31387
+
31388
+ /**
31389
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31390
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31391
+ */
31392
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.setManufacturer = function(value) {
31393
+ return jspb.Message.setWrapperField(this, 7, value);
31394
+ };
31395
+
31396
+
31397
+ /**
31398
+ * Clears the message field making it undefined.
31399
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31400
+ */
31401
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.clearManufacturer = function() {
31402
+ return this.setManufacturer(undefined);
31403
+ };
31404
+
31405
+
31406
+ /**
31407
+ * Returns whether this field is set.
31408
+ * @return {boolean}
31409
+ */
31410
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.hasManufacturer = function() {
31411
+ return jspb.Message.getField(this, 7) != null;
31412
+ };
31413
+
31414
+
31415
+ /**
31416
+ * optional google.protobuf.StringValue location_id = 8;
31417
+ * @return {?proto.google.protobuf.StringValue}
31418
+ */
31419
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.getLocationId = function() {
31420
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31421
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 8));
31422
+ };
31423
+
31424
+
31425
+ /**
31426
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31427
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31428
+ */
31429
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.setLocationId = function(value) {
31430
+ return jspb.Message.setWrapperField(this, 8, value);
31431
+ };
31432
+
31433
+
31434
+ /**
31435
+ * Clears the message field making it undefined.
31436
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31437
+ */
31438
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.clearLocationId = function() {
31439
+ return this.setLocationId(undefined);
31440
+ };
31441
+
31442
+
31443
+ /**
31444
+ * Returns whether this field is set.
31445
+ * @return {boolean}
31446
+ */
31447
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.hasLocationId = function() {
31448
+ return jspb.Message.getField(this, 8) != null;
31449
+ };
31450
+
31451
+
31452
+ /**
31453
+ * optional google.protobuf.StringValue mtfw_version = 9;
31454
+ * @return {?proto.google.protobuf.StringValue}
31455
+ */
31456
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.getMtfwVersion = function() {
31457
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31458
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 9));
31459
+ };
31460
+
31461
+
31462
+ /**
31463
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31464
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31465
+ */
31466
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.setMtfwVersion = function(value) {
31467
+ return jspb.Message.setWrapperField(this, 9, value);
31468
+ };
31469
+
31470
+
31471
+ /**
31472
+ * Clears the message field making it undefined.
31473
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice} returns this
31474
+ */
31475
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.clearMtfwVersion = function() {
31476
+ return this.setMtfwVersion(undefined);
31477
+ };
31478
+
31479
+
31480
+ /**
31481
+ * Returns whether this field is set.
31482
+ * @return {boolean}
31483
+ */
31484
+ proto.com.lansweeper.discovery.sensor.mac.v1.SPIDevice.prototype.hasMtfwVersion = function() {
31485
+ return jspb.Message.getField(this, 9) != null;
31486
+ };
31487
+
31488
+
31489
+
31490
+ /**
31491
+ * List of repeated fields within this message type.
31492
+ * @private {!Array<number>}
31493
+ * @const
31494
+ */
31495
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.repeatedFields_ = [1];
31496
+
31497
+
31498
+
31499
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31500
+ /**
31501
+ * Creates an object representation of this proto.
31502
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31503
+ * Optional fields that are not set will be set to undefined.
31504
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31505
+ * For the list of reserved names please see:
31506
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31507
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31508
+ * JSPB instance for transitional soy proto support:
31509
+ * http://goto/soy-param-migration
31510
+ * @return {!Object}
31511
+ */
31512
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.prototype.toObject = function(opt_includeInstance) {
31513
+ return proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.toObject(opt_includeInstance, this);
31514
+ };
31515
+
31516
+
31517
+ /**
31518
+ * Static version of the {@see toObject} method.
31519
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31520
+ * the JSPB instance for transitional soy proto support:
31521
+ * http://goto/soy-param-migration
31522
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage} msg The msg instance to transform.
31523
+ * @return {!Object}
31524
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31525
+ */
31526
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.toObject = function(includeInstance, msg) {
31527
+ var f, obj = {
31528
+ entriesList: jspb.Message.toObjectList(msg.getEntriesList(),
31529
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.toObject, includeInstance)
31530
+ };
31531
+
31532
+ if (includeInstance) {
31533
+ obj.$jspbMessageInstance = msg;
31534
+ }
31535
+ return obj;
31536
+ };
31537
+ }
31538
+
31539
+
31540
+ /**
31541
+ * Deserializes binary data (in protobuf wire format).
31542
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
31543
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage}
31544
+ */
31545
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.deserializeBinary = function(bytes) {
31546
+ var reader = new jspb.BinaryReader(bytes);
31547
+ var msg = new proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage;
31548
+ return proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.deserializeBinaryFromReader(msg, reader);
31549
+ };
31550
+
31551
+
31552
+ /**
31553
+ * Deserializes binary data (in protobuf wire format) from the
31554
+ * given reader into the given message object.
31555
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage} msg The message object to deserialize into.
31556
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31557
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage}
31558
+ */
31559
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.deserializeBinaryFromReader = function(msg, reader) {
31560
+ while (reader.nextField()) {
31561
+ if (reader.isEndGroup()) {
31562
+ break;
31563
+ }
31564
+ var field = reader.getFieldNumber();
31565
+ switch (field) {
31566
+ case 1:
31567
+ var value = new proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume;
31568
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.deserializeBinaryFromReader);
31569
+ msg.addEntries(value);
31570
+ break;
31571
+ default:
31572
+ reader.skipField();
31573
+ break;
31574
+ }
31575
+ }
31576
+ return msg;
31577
+ };
31578
+
31579
+
31580
+ /**
31581
+ * Serializes the message to binary data (in protobuf wire format).
31582
+ * @return {!Uint8Array}
31583
+ */
31584
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.prototype.serializeBinary = function() {
31585
+ var writer = new jspb.BinaryWriter();
31586
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.serializeBinaryToWriter(this, writer);
31587
+ return writer.getResultBuffer();
31588
+ };
31589
+
31590
+
31591
+ /**
31592
+ * Serializes the given message to binary data (in protobuf wire
31593
+ * format), writing to the given BinaryWriter.
31594
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage} message
31595
+ * @param {!jspb.BinaryWriter} writer
31596
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31597
+ */
31598
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.serializeBinaryToWriter = function(message, writer) {
31599
+ var f = undefined;
31600
+ f = message.getEntriesList();
31601
+ if (f.length > 0) {
31602
+ writer.writeRepeatedMessage(
31603
+ 1,
31604
+ f,
31605
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.serializeBinaryToWriter
31606
+ );
31607
+ }
31608
+ };
31609
+
31610
+
31611
+ /**
31612
+ * repeated StorageVolume entries = 1;
31613
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume>}
31614
+ */
31615
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.prototype.getEntriesList = function() {
31616
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume>} */ (
31617
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume, 1));
31618
+ };
31619
+
31620
+
31621
+ /**
31622
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume>} value
31623
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage} returns this
31624
+ */
31625
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.prototype.setEntriesList = function(value) {
31626
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
31627
+ };
31628
+
31629
+
31630
+ /**
31631
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume=} opt_value
31632
+ * @param {number=} opt_index
31633
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume}
31634
+ */
31635
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.prototype.addEntries = function(opt_value, opt_index) {
31636
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume, opt_index);
31637
+ };
31638
+
31639
+
31640
+ /**
31641
+ * Clears the list making it empty but non-null.
31642
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage} returns this
31643
+ */
31644
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacStorage.prototype.clearEntriesList = function() {
31645
+ return this.setEntriesList([]);
31646
+ };
31647
+
31648
+
31649
+
31650
+ /**
31651
+ * List of repeated fields within this message type.
31652
+ * @private {!Array<number>}
31653
+ * @const
31654
+ */
31655
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.repeatedFields_ = [10];
31656
+
31657
+
31658
+
31659
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31660
+ /**
31661
+ * Creates an object representation of this proto.
31662
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31663
+ * Optional fields that are not set will be set to undefined.
31664
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31665
+ * For the list of reserved names please see:
31666
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31667
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31668
+ * JSPB instance for transitional soy proto support:
31669
+ * http://goto/soy-param-migration
31670
+ * @return {!Object}
31671
+ */
31672
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.toObject = function(opt_includeInstance) {
31673
+ return proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.toObject(opt_includeInstance, this);
31674
+ };
31675
+
31676
+
31677
+ /**
31678
+ * Static version of the {@see toObject} method.
31679
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31680
+ * the JSPB instance for transitional soy proto support:
31681
+ * http://goto/soy-param-migration
31682
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} msg The msg instance to transform.
31683
+ * @return {!Object}
31684
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31685
+ */
31686
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.toObject = function(includeInstance, msg) {
31687
+ var f, obj = {
31688
+ name: (f = msg.getName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
31689
+ bsdName: (f = msg.getBsdName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
31690
+ fileSystem: (f = msg.getFileSystem()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
31691
+ freeSpaceInBytes: (f = msg.getFreeSpaceInBytes()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
31692
+ ignoreOwnership: (f = msg.getIgnoreOwnership()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
31693
+ mountPoint: (f = msg.getMountPoint()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
31694
+ sizeInBytes: (f = msg.getSizeInBytes()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
31695
+ volumeUuid: (f = msg.getVolumeUuid()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
31696
+ writable: (f = msg.getWritable()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
31697
+ physicalDrivesList: jspb.Message.toObjectList(msg.getPhysicalDrivesList(),
31698
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.toObject, includeInstance)
31699
+ };
31700
+
31701
+ if (includeInstance) {
31702
+ obj.$jspbMessageInstance = msg;
31703
+ }
31704
+ return obj;
31705
+ };
31706
+ }
31707
+
31708
+
31709
+ /**
31710
+ * Deserializes binary data (in protobuf wire format).
31711
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
31712
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume}
31713
+ */
31714
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.deserializeBinary = function(bytes) {
31715
+ var reader = new jspb.BinaryReader(bytes);
31716
+ var msg = new proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume;
31717
+ return proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.deserializeBinaryFromReader(msg, reader);
31718
+ };
31719
+
31720
+
31721
+ /**
31722
+ * Deserializes binary data (in protobuf wire format) from the
31723
+ * given reader into the given message object.
31724
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} msg The message object to deserialize into.
31725
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31726
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume}
31727
+ */
31728
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.deserializeBinaryFromReader = function(msg, reader) {
31729
+ while (reader.nextField()) {
31730
+ if (reader.isEndGroup()) {
31731
+ break;
31732
+ }
31733
+ var field = reader.getFieldNumber();
31734
+ switch (field) {
31735
+ case 1:
31736
+ var value = new google_protobuf_wrappers_pb.StringValue;
31737
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31738
+ msg.setName(value);
31739
+ break;
31740
+ case 2:
31741
+ var value = new google_protobuf_wrappers_pb.StringValue;
31742
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31743
+ msg.setBsdName(value);
31744
+ break;
31745
+ case 3:
31746
+ var value = new google_protobuf_wrappers_pb.StringValue;
31747
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31748
+ msg.setFileSystem(value);
31749
+ break;
31750
+ case 4:
31751
+ var value = new google_protobuf_wrappers_pb.StringValue;
31752
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31753
+ msg.setFreeSpaceInBytes(value);
31754
+ break;
31755
+ case 5:
31756
+ var value = new google_protobuf_wrappers_pb.StringValue;
31757
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31758
+ msg.setIgnoreOwnership(value);
31759
+ break;
31760
+ case 6:
31761
+ var value = new google_protobuf_wrappers_pb.StringValue;
31762
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31763
+ msg.setMountPoint(value);
31764
+ break;
31765
+ case 7:
31766
+ var value = new google_protobuf_wrappers_pb.StringValue;
31767
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31768
+ msg.setSizeInBytes(value);
31769
+ break;
31770
+ case 8:
31771
+ var value = new google_protobuf_wrappers_pb.StringValue;
31772
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31773
+ msg.setVolumeUuid(value);
31774
+ break;
31775
+ case 9:
31776
+ var value = new google_protobuf_wrappers_pb.StringValue;
31777
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
31778
+ msg.setWritable(value);
31779
+ break;
31780
+ case 10:
31781
+ var value = new proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive;
31782
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.deserializeBinaryFromReader);
31783
+ msg.addPhysicalDrives(value);
31784
+ break;
31785
+ default:
31786
+ reader.skipField();
31787
+ break;
31788
+ }
31789
+ }
31790
+ return msg;
31791
+ };
31792
+
31793
+
31794
+ /**
31795
+ * Serializes the message to binary data (in protobuf wire format).
31796
+ * @return {!Uint8Array}
31797
+ */
31798
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.serializeBinary = function() {
31799
+ var writer = new jspb.BinaryWriter();
31800
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.serializeBinaryToWriter(this, writer);
31801
+ return writer.getResultBuffer();
31802
+ };
31803
+
31804
+
31805
+ /**
31806
+ * Serializes the given message to binary data (in protobuf wire
31807
+ * format), writing to the given BinaryWriter.
31808
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} message
31809
+ * @param {!jspb.BinaryWriter} writer
31810
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31811
+ */
31812
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.serializeBinaryToWriter = function(message, writer) {
31813
+ var f = undefined;
31814
+ f = message.getName();
31815
+ if (f != null) {
31816
+ writer.writeMessage(
31817
+ 1,
31818
+ f,
31819
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31820
+ );
31821
+ }
31822
+ f = message.getBsdName();
31823
+ if (f != null) {
31824
+ writer.writeMessage(
31825
+ 2,
31826
+ f,
31827
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31828
+ );
31829
+ }
31830
+ f = message.getFileSystem();
31831
+ if (f != null) {
31832
+ writer.writeMessage(
31833
+ 3,
31834
+ f,
31835
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31836
+ );
31837
+ }
31838
+ f = message.getFreeSpaceInBytes();
31839
+ if (f != null) {
31840
+ writer.writeMessage(
31841
+ 4,
31842
+ f,
31843
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31844
+ );
31845
+ }
31846
+ f = message.getIgnoreOwnership();
31847
+ if (f != null) {
31848
+ writer.writeMessage(
31849
+ 5,
31850
+ f,
31851
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31852
+ );
31853
+ }
31854
+ f = message.getMountPoint();
31855
+ if (f != null) {
31856
+ writer.writeMessage(
31857
+ 6,
31858
+ f,
31859
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31860
+ );
31861
+ }
31862
+ f = message.getSizeInBytes();
31863
+ if (f != null) {
31864
+ writer.writeMessage(
31865
+ 7,
31866
+ f,
31867
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31868
+ );
31869
+ }
31870
+ f = message.getVolumeUuid();
31871
+ if (f != null) {
31872
+ writer.writeMessage(
31873
+ 8,
31874
+ f,
31875
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31876
+ );
31877
+ }
31878
+ f = message.getWritable();
31879
+ if (f != null) {
31880
+ writer.writeMessage(
31881
+ 9,
31882
+ f,
31883
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
31884
+ );
31885
+ }
31886
+ f = message.getPhysicalDrivesList();
31887
+ if (f.length > 0) {
31888
+ writer.writeRepeatedMessage(
31889
+ 10,
31890
+ f,
31891
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.serializeBinaryToWriter
31892
+ );
31893
+ }
31894
+ };
31895
+
31896
+
31897
+ /**
31898
+ * optional google.protobuf.StringValue name = 1;
31899
+ * @return {?proto.google.protobuf.StringValue}
31900
+ */
31901
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.getName = function() {
31902
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31903
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
31904
+ };
31905
+
31906
+
31907
+ /**
31908
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31909
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
31910
+ */
31911
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.setName = function(value) {
31912
+ return jspb.Message.setWrapperField(this, 1, value);
31913
+ };
31914
+
31915
+
31916
+ /**
31917
+ * Clears the message field making it undefined.
31918
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
31919
+ */
31920
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.clearName = function() {
31921
+ return this.setName(undefined);
31922
+ };
31923
+
31924
+
31925
+ /**
31926
+ * Returns whether this field is set.
31927
+ * @return {boolean}
31928
+ */
31929
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.hasName = function() {
31930
+ return jspb.Message.getField(this, 1) != null;
31931
+ };
31932
+
31933
+
31934
+ /**
31935
+ * optional google.protobuf.StringValue bsd_name = 2;
31936
+ * @return {?proto.google.protobuf.StringValue}
31937
+ */
31938
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.getBsdName = function() {
31939
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31940
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
31941
+ };
31942
+
31943
+
31944
+ /**
31945
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31946
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
31947
+ */
31948
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.setBsdName = function(value) {
31949
+ return jspb.Message.setWrapperField(this, 2, value);
31950
+ };
31951
+
31952
+
31953
+ /**
31954
+ * Clears the message field making it undefined.
31955
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
31956
+ */
31957
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.clearBsdName = function() {
31958
+ return this.setBsdName(undefined);
31959
+ };
31960
+
31961
+
31962
+ /**
31963
+ * Returns whether this field is set.
31964
+ * @return {boolean}
31965
+ */
31966
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.hasBsdName = function() {
31967
+ return jspb.Message.getField(this, 2) != null;
31968
+ };
31969
+
31970
+
31971
+ /**
31972
+ * optional google.protobuf.StringValue file_system = 3;
31973
+ * @return {?proto.google.protobuf.StringValue}
31974
+ */
31975
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.getFileSystem = function() {
31976
+ return /** @type{?proto.google.protobuf.StringValue} */ (
31977
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
31978
+ };
31979
+
31980
+
31981
+ /**
31982
+ * @param {?proto.google.protobuf.StringValue|undefined} value
31983
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
31984
+ */
31985
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.setFileSystem = function(value) {
31986
+ return jspb.Message.setWrapperField(this, 3, value);
31987
+ };
31988
+
31989
+
31990
+ /**
31991
+ * Clears the message field making it undefined.
31992
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
31993
+ */
31994
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.clearFileSystem = function() {
31995
+ return this.setFileSystem(undefined);
31996
+ };
31997
+
31998
+
31999
+ /**
32000
+ * Returns whether this field is set.
32001
+ * @return {boolean}
32002
+ */
32003
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.hasFileSystem = function() {
32004
+ return jspb.Message.getField(this, 3) != null;
32005
+ };
32006
+
32007
+
32008
+ /**
32009
+ * optional google.protobuf.StringValue free_space_in_bytes = 4;
32010
+ * @return {?proto.google.protobuf.StringValue}
32011
+ */
32012
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.getFreeSpaceInBytes = function() {
32013
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32014
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4));
32015
+ };
32016
+
32017
+
32018
+ /**
32019
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32020
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32021
+ */
32022
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.setFreeSpaceInBytes = function(value) {
32023
+ return jspb.Message.setWrapperField(this, 4, value);
32024
+ };
32025
+
32026
+
32027
+ /**
32028
+ * Clears the message field making it undefined.
32029
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32030
+ */
32031
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.clearFreeSpaceInBytes = function() {
32032
+ return this.setFreeSpaceInBytes(undefined);
32033
+ };
32034
+
32035
+
32036
+ /**
32037
+ * Returns whether this field is set.
32038
+ * @return {boolean}
32039
+ */
32040
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.hasFreeSpaceInBytes = function() {
32041
+ return jspb.Message.getField(this, 4) != null;
32042
+ };
32043
+
32044
+
32045
+ /**
32046
+ * optional google.protobuf.StringValue ignore_ownership = 5;
32047
+ * @return {?proto.google.protobuf.StringValue}
32048
+ */
32049
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.getIgnoreOwnership = function() {
32050
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32051
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 5));
32052
+ };
32053
+
32054
+
32055
+ /**
32056
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32057
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32058
+ */
32059
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.setIgnoreOwnership = function(value) {
32060
+ return jspb.Message.setWrapperField(this, 5, value);
32061
+ };
32062
+
32063
+
32064
+ /**
32065
+ * Clears the message field making it undefined.
32066
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32067
+ */
32068
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.clearIgnoreOwnership = function() {
32069
+ return this.setIgnoreOwnership(undefined);
32070
+ };
32071
+
32072
+
32073
+ /**
32074
+ * Returns whether this field is set.
32075
+ * @return {boolean}
32076
+ */
32077
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.hasIgnoreOwnership = function() {
32078
+ return jspb.Message.getField(this, 5) != null;
32079
+ };
32080
+
32081
+
32082
+ /**
32083
+ * optional google.protobuf.StringValue mount_point = 6;
32084
+ * @return {?proto.google.protobuf.StringValue}
32085
+ */
32086
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.getMountPoint = function() {
32087
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32088
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6));
32089
+ };
32090
+
32091
+
32092
+ /**
32093
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32094
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32095
+ */
32096
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.setMountPoint = function(value) {
32097
+ return jspb.Message.setWrapperField(this, 6, value);
32098
+ };
32099
+
32100
+
32101
+ /**
32102
+ * Clears the message field making it undefined.
32103
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32104
+ */
32105
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.clearMountPoint = function() {
32106
+ return this.setMountPoint(undefined);
32107
+ };
32108
+
32109
+
32110
+ /**
32111
+ * Returns whether this field is set.
32112
+ * @return {boolean}
32113
+ */
32114
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.hasMountPoint = function() {
32115
+ return jspb.Message.getField(this, 6) != null;
32116
+ };
32117
+
32118
+
32119
+ /**
32120
+ * optional google.protobuf.StringValue size_in_bytes = 7;
32121
+ * @return {?proto.google.protobuf.StringValue}
32122
+ */
32123
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.getSizeInBytes = function() {
32124
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32125
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 7));
32126
+ };
32127
+
32128
+
32129
+ /**
32130
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32131
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32132
+ */
32133
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.setSizeInBytes = function(value) {
32134
+ return jspb.Message.setWrapperField(this, 7, value);
32135
+ };
32136
+
32137
+
32138
+ /**
32139
+ * Clears the message field making it undefined.
32140
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32141
+ */
32142
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.clearSizeInBytes = function() {
32143
+ return this.setSizeInBytes(undefined);
32144
+ };
32145
+
32146
+
32147
+ /**
32148
+ * Returns whether this field is set.
32149
+ * @return {boolean}
32150
+ */
32151
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.hasSizeInBytes = function() {
32152
+ return jspb.Message.getField(this, 7) != null;
32153
+ };
32154
+
32155
+
32156
+ /**
32157
+ * optional google.protobuf.StringValue volume_uuid = 8;
32158
+ * @return {?proto.google.protobuf.StringValue}
32159
+ */
32160
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.getVolumeUuid = function() {
32161
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32162
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 8));
32163
+ };
32164
+
32165
+
32166
+ /**
32167
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32168
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32169
+ */
32170
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.setVolumeUuid = function(value) {
32171
+ return jspb.Message.setWrapperField(this, 8, value);
32172
+ };
32173
+
32174
+
32175
+ /**
32176
+ * Clears the message field making it undefined.
32177
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32178
+ */
32179
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.clearVolumeUuid = function() {
32180
+ return this.setVolumeUuid(undefined);
32181
+ };
32182
+
32183
+
32184
+ /**
32185
+ * Returns whether this field is set.
32186
+ * @return {boolean}
32187
+ */
32188
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.hasVolumeUuid = function() {
32189
+ return jspb.Message.getField(this, 8) != null;
32190
+ };
32191
+
32192
+
32193
+ /**
32194
+ * optional google.protobuf.StringValue writable = 9;
32195
+ * @return {?proto.google.protobuf.StringValue}
32196
+ */
32197
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.getWritable = function() {
32198
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32199
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 9));
32200
+ };
32201
+
32202
+
32203
+ /**
32204
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32205
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32206
+ */
32207
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.setWritable = function(value) {
32208
+ return jspb.Message.setWrapperField(this, 9, value);
32209
+ };
32210
+
32211
+
32212
+ /**
32213
+ * Clears the message field making it undefined.
32214
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32215
+ */
32216
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.clearWritable = function() {
32217
+ return this.setWritable(undefined);
32218
+ };
32219
+
32220
+
32221
+ /**
32222
+ * Returns whether this field is set.
32223
+ * @return {boolean}
32224
+ */
32225
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.hasWritable = function() {
32226
+ return jspb.Message.getField(this, 9) != null;
32227
+ };
32228
+
32229
+
32230
+ /**
32231
+ * repeated StorageDrive physical_drives = 10;
32232
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive>}
32233
+ */
32234
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.getPhysicalDrivesList = function() {
32235
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive>} */ (
32236
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive, 10));
32237
+ };
32238
+
32239
+
32240
+ /**
32241
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive>} value
32242
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32243
+ */
32244
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.setPhysicalDrivesList = function(value) {
32245
+ return jspb.Message.setRepeatedWrapperField(this, 10, value);
32246
+ };
32247
+
32248
+
32249
+ /**
32250
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive=} opt_value
32251
+ * @param {number=} opt_index
32252
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive}
32253
+ */
32254
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.addPhysicalDrives = function(opt_value, opt_index) {
32255
+ return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive, opt_index);
32256
+ };
32257
+
32258
+
32259
+ /**
32260
+ * Clears the list making it empty but non-null.
32261
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume} returns this
32262
+ */
32263
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageVolume.prototype.clearPhysicalDrivesList = function() {
32264
+ return this.setPhysicalDrivesList([]);
32265
+ };
32266
+
32267
+
32268
+
32269
+
32270
+
32271
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32272
+ /**
32273
+ * Creates an object representation of this proto.
32274
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32275
+ * Optional fields that are not set will be set to undefined.
32276
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32277
+ * For the list of reserved names please see:
32278
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32279
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32280
+ * JSPB instance for transitional soy proto support:
32281
+ * http://goto/soy-param-migration
32282
+ * @return {!Object}
32283
+ */
32284
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.toObject = function(opt_includeInstance) {
32285
+ return proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.toObject(opt_includeInstance, this);
32286
+ };
32287
+
32288
+
32289
+ /**
32290
+ * Static version of the {@see toObject} method.
32291
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32292
+ * the JSPB instance for transitional soy proto support:
32293
+ * http://goto/soy-param-migration
32294
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} msg The msg instance to transform.
32295
+ * @return {!Object}
32296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32297
+ */
32298
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.toObject = function(includeInstance, msg) {
32299
+ var f, obj = {
32300
+ deviceName: (f = msg.getDeviceName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
32301
+ isInternalDisk: (f = msg.getIsInternalDisk()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
32302
+ mediaName: (f = msg.getMediaName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
32303
+ mediumType: (f = msg.getMediumType()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
32304
+ partitionMapType: (f = msg.getPartitionMapType()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
32305
+ protocol: (f = msg.getProtocol()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
32306
+ smartStatus: (f = msg.getSmartStatus()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
32307
+ };
32308
+
32309
+ if (includeInstance) {
32310
+ obj.$jspbMessageInstance = msg;
32311
+ }
32312
+ return obj;
32313
+ };
32314
+ }
32315
+
32316
+
32317
+ /**
32318
+ * Deserializes binary data (in protobuf wire format).
32319
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
32320
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive}
32321
+ */
32322
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.deserializeBinary = function(bytes) {
32323
+ var reader = new jspb.BinaryReader(bytes);
32324
+ var msg = new proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive;
32325
+ return proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.deserializeBinaryFromReader(msg, reader);
32326
+ };
32327
+
32328
+
32329
+ /**
32330
+ * Deserializes binary data (in protobuf wire format) from the
32331
+ * given reader into the given message object.
32332
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} msg The message object to deserialize into.
32333
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32334
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive}
32335
+ */
32336
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.deserializeBinaryFromReader = function(msg, reader) {
32337
+ while (reader.nextField()) {
32338
+ if (reader.isEndGroup()) {
32339
+ break;
32340
+ }
32341
+ var field = reader.getFieldNumber();
32342
+ switch (field) {
32343
+ case 1:
32344
+ var value = new google_protobuf_wrappers_pb.StringValue;
32345
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
32346
+ msg.setDeviceName(value);
32347
+ break;
32348
+ case 2:
32349
+ var value = new google_protobuf_wrappers_pb.StringValue;
32350
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
32351
+ msg.setIsInternalDisk(value);
32352
+ break;
32353
+ case 3:
32354
+ var value = new google_protobuf_wrappers_pb.StringValue;
32355
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
32356
+ msg.setMediaName(value);
32357
+ break;
32358
+ case 4:
32359
+ var value = new google_protobuf_wrappers_pb.StringValue;
32360
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
32361
+ msg.setMediumType(value);
32362
+ break;
32363
+ case 5:
32364
+ var value = new google_protobuf_wrappers_pb.StringValue;
32365
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
32366
+ msg.setPartitionMapType(value);
32367
+ break;
32368
+ case 6:
32369
+ var value = new google_protobuf_wrappers_pb.StringValue;
32370
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
32371
+ msg.setProtocol(value);
32372
+ break;
32373
+ case 7:
32374
+ var value = new google_protobuf_wrappers_pb.StringValue;
32375
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
32376
+ msg.setSmartStatus(value);
32377
+ break;
32378
+ default:
32379
+ reader.skipField();
32380
+ break;
32381
+ }
32382
+ }
32383
+ return msg;
32384
+ };
32385
+
32386
+
32387
+ /**
32388
+ * Serializes the message to binary data (in protobuf wire format).
32389
+ * @return {!Uint8Array}
32390
+ */
32391
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.serializeBinary = function() {
32392
+ var writer = new jspb.BinaryWriter();
32393
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.serializeBinaryToWriter(this, writer);
32394
+ return writer.getResultBuffer();
32395
+ };
32396
+
32397
+
32398
+ /**
32399
+ * Serializes the given message to binary data (in protobuf wire
32400
+ * format), writing to the given BinaryWriter.
32401
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} message
32402
+ * @param {!jspb.BinaryWriter} writer
32403
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32404
+ */
32405
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.serializeBinaryToWriter = function(message, writer) {
32406
+ var f = undefined;
32407
+ f = message.getDeviceName();
32408
+ if (f != null) {
32409
+ writer.writeMessage(
32410
+ 1,
32411
+ f,
32412
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
32413
+ );
32414
+ }
32415
+ f = message.getIsInternalDisk();
32416
+ if (f != null) {
32417
+ writer.writeMessage(
32418
+ 2,
32419
+ f,
32420
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
32421
+ );
32422
+ }
32423
+ f = message.getMediaName();
32424
+ if (f != null) {
32425
+ writer.writeMessage(
32426
+ 3,
32427
+ f,
32428
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
32429
+ );
32430
+ }
32431
+ f = message.getMediumType();
32432
+ if (f != null) {
32433
+ writer.writeMessage(
32434
+ 4,
32435
+ f,
32436
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
32437
+ );
32438
+ }
32439
+ f = message.getPartitionMapType();
32440
+ if (f != null) {
32441
+ writer.writeMessage(
32442
+ 5,
32443
+ f,
32444
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
32445
+ );
32446
+ }
32447
+ f = message.getProtocol();
32448
+ if (f != null) {
32449
+ writer.writeMessage(
32450
+ 6,
32451
+ f,
32452
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
32453
+ );
32454
+ }
32455
+ f = message.getSmartStatus();
32456
+ if (f != null) {
32457
+ writer.writeMessage(
32458
+ 7,
32459
+ f,
32460
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
32461
+ );
32462
+ }
32463
+ };
32464
+
32465
+
32466
+ /**
32467
+ * optional google.protobuf.StringValue device_name = 1;
32468
+ * @return {?proto.google.protobuf.StringValue}
32469
+ */
32470
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.getDeviceName = function() {
32471
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32472
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
32473
+ };
32474
+
32475
+
32476
+ /**
32477
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32478
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32479
+ */
32480
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.setDeviceName = function(value) {
32481
+ return jspb.Message.setWrapperField(this, 1, value);
32482
+ };
32483
+
32484
+
32485
+ /**
32486
+ * Clears the message field making it undefined.
32487
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32488
+ */
32489
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.clearDeviceName = function() {
32490
+ return this.setDeviceName(undefined);
32491
+ };
32492
+
32493
+
32494
+ /**
32495
+ * Returns whether this field is set.
32496
+ * @return {boolean}
32497
+ */
32498
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.hasDeviceName = function() {
32499
+ return jspb.Message.getField(this, 1) != null;
32500
+ };
32501
+
32502
+
32503
+ /**
32504
+ * optional google.protobuf.StringValue is_internal_disk = 2;
32505
+ * @return {?proto.google.protobuf.StringValue}
32506
+ */
32507
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.getIsInternalDisk = function() {
32508
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32509
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
32510
+ };
32511
+
32512
+
32513
+ /**
32514
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32515
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32516
+ */
32517
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.setIsInternalDisk = function(value) {
32518
+ return jspb.Message.setWrapperField(this, 2, value);
32519
+ };
32520
+
32521
+
32522
+ /**
32523
+ * Clears the message field making it undefined.
32524
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32525
+ */
32526
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.clearIsInternalDisk = function() {
32527
+ return this.setIsInternalDisk(undefined);
32528
+ };
32529
+
32530
+
32531
+ /**
32532
+ * Returns whether this field is set.
32533
+ * @return {boolean}
32534
+ */
32535
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.hasIsInternalDisk = function() {
32536
+ return jspb.Message.getField(this, 2) != null;
32537
+ };
32538
+
32539
+
32540
+ /**
32541
+ * optional google.protobuf.StringValue media_name = 3;
32542
+ * @return {?proto.google.protobuf.StringValue}
32543
+ */
32544
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.getMediaName = function() {
32545
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32546
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
32547
+ };
32548
+
32549
+
32550
+ /**
32551
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32552
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32553
+ */
32554
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.setMediaName = function(value) {
32555
+ return jspb.Message.setWrapperField(this, 3, value);
32556
+ };
32557
+
32558
+
32559
+ /**
32560
+ * Clears the message field making it undefined.
32561
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32562
+ */
32563
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.clearMediaName = function() {
32564
+ return this.setMediaName(undefined);
32565
+ };
32566
+
32567
+
32568
+ /**
32569
+ * Returns whether this field is set.
32570
+ * @return {boolean}
32571
+ */
32572
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.hasMediaName = function() {
32573
+ return jspb.Message.getField(this, 3) != null;
32574
+ };
32575
+
32576
+
32577
+ /**
32578
+ * optional google.protobuf.StringValue medium_type = 4;
32579
+ * @return {?proto.google.protobuf.StringValue}
32580
+ */
32581
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.getMediumType = function() {
32582
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32583
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4));
32584
+ };
32585
+
32586
+
32587
+ /**
32588
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32589
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32590
+ */
32591
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.setMediumType = function(value) {
32592
+ return jspb.Message.setWrapperField(this, 4, value);
32593
+ };
32594
+
32595
+
32596
+ /**
32597
+ * Clears the message field making it undefined.
32598
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32599
+ */
32600
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.clearMediumType = function() {
32601
+ return this.setMediumType(undefined);
32602
+ };
32603
+
32604
+
32605
+ /**
32606
+ * Returns whether this field is set.
32607
+ * @return {boolean}
32608
+ */
32609
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.hasMediumType = function() {
32610
+ return jspb.Message.getField(this, 4) != null;
32611
+ };
32612
+
32613
+
32614
+ /**
32615
+ * optional google.protobuf.StringValue partition_map_type = 5;
32616
+ * @return {?proto.google.protobuf.StringValue}
32617
+ */
32618
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.getPartitionMapType = function() {
32619
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32620
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 5));
32621
+ };
32622
+
32623
+
32624
+ /**
32625
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32626
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32627
+ */
32628
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.setPartitionMapType = function(value) {
32629
+ return jspb.Message.setWrapperField(this, 5, value);
32630
+ };
32631
+
32632
+
32633
+ /**
32634
+ * Clears the message field making it undefined.
32635
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32636
+ */
32637
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.clearPartitionMapType = function() {
32638
+ return this.setPartitionMapType(undefined);
32639
+ };
32640
+
32641
+
32642
+ /**
32643
+ * Returns whether this field is set.
32644
+ * @return {boolean}
32645
+ */
32646
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.hasPartitionMapType = function() {
32647
+ return jspb.Message.getField(this, 5) != null;
32648
+ };
32649
+
32650
+
32651
+ /**
32652
+ * optional google.protobuf.StringValue protocol = 6;
32653
+ * @return {?proto.google.protobuf.StringValue}
32654
+ */
32655
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.getProtocol = function() {
32656
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32657
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6));
32658
+ };
32659
+
32660
+
32661
+ /**
32662
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32663
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32664
+ */
32665
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.setProtocol = function(value) {
32666
+ return jspb.Message.setWrapperField(this, 6, value);
32667
+ };
32668
+
32669
+
32670
+ /**
32671
+ * Clears the message field making it undefined.
32672
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32673
+ */
32674
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.clearProtocol = function() {
32675
+ return this.setProtocol(undefined);
32676
+ };
32677
+
32678
+
32679
+ /**
32680
+ * Returns whether this field is set.
32681
+ * @return {boolean}
32682
+ */
32683
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.hasProtocol = function() {
32684
+ return jspb.Message.getField(this, 6) != null;
32685
+ };
32686
+
32687
+
32688
+ /**
32689
+ * optional google.protobuf.StringValue smart_status = 7;
32690
+ * @return {?proto.google.protobuf.StringValue}
32691
+ */
32692
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.getSmartStatus = function() {
32693
+ return /** @type{?proto.google.protobuf.StringValue} */ (
32694
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 7));
32695
+ };
32696
+
32697
+
32698
+ /**
32699
+ * @param {?proto.google.protobuf.StringValue|undefined} value
32700
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32701
+ */
32702
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.setSmartStatus = function(value) {
32703
+ return jspb.Message.setWrapperField(this, 7, value);
32704
+ };
32705
+
32706
+
32707
+ /**
32708
+ * Clears the message field making it undefined.
32709
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive} returns this
32710
+ */
32711
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.clearSmartStatus = function() {
32712
+ return this.setSmartStatus(undefined);
32713
+ };
32714
+
32715
+
32716
+ /**
32717
+ * Returns whether this field is set.
32718
+ * @return {boolean}
32719
+ */
32720
+ proto.com.lansweeper.discovery.sensor.mac.v1.StorageDrive.prototype.hasSmartStatus = function() {
32721
+ return jspb.Message.getField(this, 7) != null;
32722
+ };
32723
+
32724
+
30660
32725
  goog.object.extend(exports, proto.com.lansweeper.discovery.sensor.mac.v1);