@lansweeper/discovery-sensor-proto 2.13.17 → 2.13.19

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.
@@ -7,6 +7,31 @@
7
7
  import * as jspb from "google-protobuf";
8
8
  import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
9
9
 
10
+ export class MacBasicInfo extends jspb.Message {
11
+ getIsArmArchitecture(): boolean;
12
+ setIsArmArchitecture(value: boolean): MacBasicInfo;
13
+ clearDataTypesList(): void;
14
+ getDataTypesList(): Array<string>;
15
+ setDataTypesList(value: Array<string>): MacBasicInfo;
16
+ addDataTypes(value: string, index?: number): string;
17
+
18
+ serializeBinary(): Uint8Array;
19
+ toObject(includeInstance?: boolean): MacBasicInfo.AsObject;
20
+ static toObject(includeInstance: boolean, msg: MacBasicInfo): MacBasicInfo.AsObject;
21
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
22
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
23
+ static serializeBinaryToWriter(message: MacBasicInfo, writer: jspb.BinaryWriter): void;
24
+ static deserializeBinary(bytes: Uint8Array): MacBasicInfo;
25
+ static deserializeBinaryFromReader(message: MacBasicInfo, reader: jspb.BinaryReader): MacBasicInfo;
26
+ }
27
+
28
+ export namespace MacBasicInfo {
29
+ export type AsObject = {
30
+ isArmArchitecture: boolean,
31
+ dataTypesList: Array<string>,
32
+ }
33
+ }
34
+
10
35
  export class MacMemory extends jspb.Message {
11
36
  clearEntriesList(): void;
12
37
  getEntriesList(): Array<Memory>;
@@ -24,6 +24,7 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.BatteryModelInfo
24
24
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.BatteryPower', null, global);
25
25
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.Bluetooth', null, global);
26
26
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.HardDisk', null, global);
27
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo', null, global);
27
28
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacBluetooth', null, global);
28
29
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacHardDisk', null, global);
29
30
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.MacMemory', null, global);
@@ -45,6 +46,27 @@ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.NetworkVolume',
45
46
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.Power', null, global);
46
47
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.Software', null, global);
47
48
  goog.exportSymbol('proto.com.lansweeper.discovery.sensor.mac.v1.SystemHardware', null, global);
49
+ /**
50
+ * Generated by JsPbCodeGenerator.
51
+ * @param {Array=} opt_data Optional initial data array, typically from a
52
+ * server response, or constructed directly in Javascript. The array is used
53
+ * in place and becomes part of the constructed object. It is not cloned.
54
+ * If no data is provided, the constructed object will be empty, but still
55
+ * valid.
56
+ * @extends {jspb.Message}
57
+ * @constructor
58
+ */
59
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo = function(opt_data) {
60
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.repeatedFields_, null);
61
+ };
62
+ goog.inherits(proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo, jspb.Message);
63
+ if (goog.DEBUG && !COMPILED) {
64
+ /**
65
+ * @public
66
+ * @override
67
+ */
68
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo';
69
+ }
48
70
  /**
49
71
  * Generated by JsPbCodeGenerator.
50
72
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -634,6 +656,192 @@ if (goog.DEBUG && !COMPILED) {
634
656
  proto.com.lansweeper.discovery.sensor.mac.v1.SystemHardware.displayName = 'proto.com.lansweeper.discovery.sensor.mac.v1.SystemHardware';
635
657
  }
636
658
 
659
+ /**
660
+ * List of repeated fields within this message type.
661
+ * @private {!Array<number>}
662
+ * @const
663
+ */
664
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.repeatedFields_ = [2];
665
+
666
+
667
+
668
+ if (jspb.Message.GENERATE_TO_OBJECT) {
669
+ /**
670
+ * Creates an object representation of this proto.
671
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
672
+ * Optional fields that are not set will be set to undefined.
673
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
674
+ * For the list of reserved names please see:
675
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
676
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
677
+ * JSPB instance for transitional soy proto support:
678
+ * http://goto/soy-param-migration
679
+ * @return {!Object}
680
+ */
681
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.toObject = function(opt_includeInstance) {
682
+ return proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.toObject(opt_includeInstance, this);
683
+ };
684
+
685
+
686
+ /**
687
+ * Static version of the {@see toObject} method.
688
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
689
+ * the JSPB instance for transitional soy proto support:
690
+ * http://goto/soy-param-migration
691
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} msg The msg instance to transform.
692
+ * @return {!Object}
693
+ * @suppress {unusedLocalVariables} f is only used for nested messages
694
+ */
695
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.toObject = function(includeInstance, msg) {
696
+ var f, obj = {
697
+ isArmArchitecture: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
698
+ dataTypesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
699
+ };
700
+
701
+ if (includeInstance) {
702
+ obj.$jspbMessageInstance = msg;
703
+ }
704
+ return obj;
705
+ };
706
+ }
707
+
708
+
709
+ /**
710
+ * Deserializes binary data (in protobuf wire format).
711
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
712
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo}
713
+ */
714
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.deserializeBinary = function(bytes) {
715
+ var reader = new jspb.BinaryReader(bytes);
716
+ var msg = new proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo;
717
+ return proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.deserializeBinaryFromReader(msg, reader);
718
+ };
719
+
720
+
721
+ /**
722
+ * Deserializes binary data (in protobuf wire format) from the
723
+ * given reader into the given message object.
724
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} msg The message object to deserialize into.
725
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
726
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo}
727
+ */
728
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.deserializeBinaryFromReader = function(msg, reader) {
729
+ while (reader.nextField()) {
730
+ if (reader.isEndGroup()) {
731
+ break;
732
+ }
733
+ var field = reader.getFieldNumber();
734
+ switch (field) {
735
+ case 1:
736
+ var value = /** @type {boolean} */ (reader.readBool());
737
+ msg.setIsArmArchitecture(value);
738
+ break;
739
+ case 2:
740
+ var value = /** @type {string} */ (reader.readString());
741
+ msg.addDataTypes(value);
742
+ break;
743
+ default:
744
+ reader.skipField();
745
+ break;
746
+ }
747
+ }
748
+ return msg;
749
+ };
750
+
751
+
752
+ /**
753
+ * Serializes the message to binary data (in protobuf wire format).
754
+ * @return {!Uint8Array}
755
+ */
756
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.serializeBinary = function() {
757
+ var writer = new jspb.BinaryWriter();
758
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.serializeBinaryToWriter(this, writer);
759
+ return writer.getResultBuffer();
760
+ };
761
+
762
+
763
+ /**
764
+ * Serializes the given message to binary data (in protobuf wire
765
+ * format), writing to the given BinaryWriter.
766
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} message
767
+ * @param {!jspb.BinaryWriter} writer
768
+ * @suppress {unusedLocalVariables} f is only used for nested messages
769
+ */
770
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.serializeBinaryToWriter = function(message, writer) {
771
+ var f = undefined;
772
+ f = message.getIsArmArchitecture();
773
+ if (f) {
774
+ writer.writeBool(
775
+ 1,
776
+ f
777
+ );
778
+ }
779
+ f = message.getDataTypesList();
780
+ if (f.length > 0) {
781
+ writer.writeRepeatedString(
782
+ 2,
783
+ f
784
+ );
785
+ }
786
+ };
787
+
788
+
789
+ /**
790
+ * optional bool is_arm_architecture = 1;
791
+ * @return {boolean}
792
+ */
793
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.getIsArmArchitecture = function() {
794
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
795
+ };
796
+
797
+
798
+ /**
799
+ * @param {boolean} value
800
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} returns this
801
+ */
802
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.setIsArmArchitecture = function(value) {
803
+ return jspb.Message.setProto3BooleanField(this, 1, value);
804
+ };
805
+
806
+
807
+ /**
808
+ * repeated string data_types = 2;
809
+ * @return {!Array<string>}
810
+ */
811
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.getDataTypesList = function() {
812
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
813
+ };
814
+
815
+
816
+ /**
817
+ * @param {!Array<string>} value
818
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} returns this
819
+ */
820
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.setDataTypesList = function(value) {
821
+ return jspb.Message.setField(this, 2, value || []);
822
+ };
823
+
824
+
825
+ /**
826
+ * @param {string} value
827
+ * @param {number=} opt_index
828
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} returns this
829
+ */
830
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.addDataTypes = function(value, opt_index) {
831
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
832
+ };
833
+
834
+
835
+ /**
836
+ * Clears the list making it empty but non-null.
837
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} returns this
838
+ */
839
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.clearDataTypesList = function() {
840
+ return this.setDataTypesList([]);
841
+ };
842
+
843
+
844
+
637
845
  /**
638
846
  * List of repeated fields within this message type.
639
847
  * @private {!Array<number>}