@lansweeper/discovery-sensor-proto 2.13.17 → 2.13.18

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,34 @@
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
+
12
+ hasIsArmArchitecture(): boolean;
13
+ clearIsArmArchitecture(): void;
14
+ getIsArmArchitecture(): google_protobuf_wrappers_pb.BoolValue | undefined;
15
+ setIsArmArchitecture(value?: google_protobuf_wrappers_pb.BoolValue): MacBasicInfo;
16
+ clearDataTypesList(): void;
17
+ getDataTypesList(): Array<string>;
18
+ setDataTypesList(value: Array<string>): MacBasicInfo;
19
+ addDataTypes(value: string, index?: number): string;
20
+
21
+ serializeBinary(): Uint8Array;
22
+ toObject(includeInstance?: boolean): MacBasicInfo.AsObject;
23
+ static toObject(includeInstance: boolean, msg: MacBasicInfo): MacBasicInfo.AsObject;
24
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
25
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
26
+ static serializeBinaryToWriter(message: MacBasicInfo, writer: jspb.BinaryWriter): void;
27
+ static deserializeBinary(bytes: Uint8Array): MacBasicInfo;
28
+ static deserializeBinaryFromReader(message: MacBasicInfo, reader: jspb.BinaryReader): MacBasicInfo;
29
+ }
30
+
31
+ export namespace MacBasicInfo {
32
+ export type AsObject = {
33
+ isArmArchitecture?: google_protobuf_wrappers_pb.BoolValue.AsObject,
34
+ dataTypesList: Array<string>,
35
+ }
36
+ }
37
+
10
38
  export class MacMemory extends jspb.Message {
11
39
  clearEntriesList(): void;
12
40
  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,213 @@ 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: (f = msg.getIsArmArchitecture()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
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 = new google_protobuf_wrappers_pb.BoolValue;
737
+ reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
738
+ msg.setIsArmArchitecture(value);
739
+ break;
740
+ case 2:
741
+ var value = /** @type {string} */ (reader.readString());
742
+ msg.addDataTypes(value);
743
+ break;
744
+ default:
745
+ reader.skipField();
746
+ break;
747
+ }
748
+ }
749
+ return msg;
750
+ };
751
+
752
+
753
+ /**
754
+ * Serializes the message to binary data (in protobuf wire format).
755
+ * @return {!Uint8Array}
756
+ */
757
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.serializeBinary = function() {
758
+ var writer = new jspb.BinaryWriter();
759
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.serializeBinaryToWriter(this, writer);
760
+ return writer.getResultBuffer();
761
+ };
762
+
763
+
764
+ /**
765
+ * Serializes the given message to binary data (in protobuf wire
766
+ * format), writing to the given BinaryWriter.
767
+ * @param {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} message
768
+ * @param {!jspb.BinaryWriter} writer
769
+ * @suppress {unusedLocalVariables} f is only used for nested messages
770
+ */
771
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.serializeBinaryToWriter = function(message, writer) {
772
+ var f = undefined;
773
+ f = message.getIsArmArchitecture();
774
+ if (f != null) {
775
+ writer.writeMessage(
776
+ 1,
777
+ f,
778
+ google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
779
+ );
780
+ }
781
+ f = message.getDataTypesList();
782
+ if (f.length > 0) {
783
+ writer.writeRepeatedString(
784
+ 2,
785
+ f
786
+ );
787
+ }
788
+ };
789
+
790
+
791
+ /**
792
+ * optional google.protobuf.BoolValue is_arm_architecture = 1;
793
+ * @return {?proto.google.protobuf.BoolValue}
794
+ */
795
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.getIsArmArchitecture = function() {
796
+ return /** @type{?proto.google.protobuf.BoolValue} */ (
797
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 1));
798
+ };
799
+
800
+
801
+ /**
802
+ * @param {?proto.google.protobuf.BoolValue|undefined} value
803
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} returns this
804
+ */
805
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.setIsArmArchitecture = function(value) {
806
+ return jspb.Message.setWrapperField(this, 1, value);
807
+ };
808
+
809
+
810
+ /**
811
+ * Clears the message field making it undefined.
812
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} returns this
813
+ */
814
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.clearIsArmArchitecture = function() {
815
+ return this.setIsArmArchitecture(undefined);
816
+ };
817
+
818
+
819
+ /**
820
+ * Returns whether this field is set.
821
+ * @return {boolean}
822
+ */
823
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.hasIsArmArchitecture = function() {
824
+ return jspb.Message.getField(this, 1) != null;
825
+ };
826
+
827
+
828
+ /**
829
+ * repeated string data_types = 2;
830
+ * @return {!Array<string>}
831
+ */
832
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.getDataTypesList = function() {
833
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
834
+ };
835
+
836
+
837
+ /**
838
+ * @param {!Array<string>} value
839
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} returns this
840
+ */
841
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.setDataTypesList = function(value) {
842
+ return jspb.Message.setField(this, 2, value || []);
843
+ };
844
+
845
+
846
+ /**
847
+ * @param {string} value
848
+ * @param {number=} opt_index
849
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} returns this
850
+ */
851
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.addDataTypes = function(value, opt_index) {
852
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
853
+ };
854
+
855
+
856
+ /**
857
+ * Clears the list making it empty but non-null.
858
+ * @return {!proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo} returns this
859
+ */
860
+ proto.com.lansweeper.discovery.sensor.mac.v1.MacBasicInfo.prototype.clearDataTypesList = function() {
861
+ return this.setDataTypesList([]);
862
+ };
863
+
864
+
865
+
637
866
  /**
638
867
  * List of repeated fields within this message type.
639
868
  * @private {!Array<number>}