@lansweeper/discovery-sensor-proto 2.29.1 → 2.30.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.
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,31 @@
1
+ // package: com.lansweeper.discovery.sensor.other.v1
2
+ // file: discovery_sections_other.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+ import * as import_discovery_common_pb from "./import/discovery_common_pb";
9
+
10
+ export class SnmpInfo extends jspb.Message {
11
+
12
+ hasData(): boolean;
13
+ clearData(): void;
14
+ getData(): import_discovery_common_pb.SnmpInfo | undefined;
15
+ setData(value?: import_discovery_common_pb.SnmpInfo): SnmpInfo;
16
+
17
+ serializeBinary(): Uint8Array;
18
+ toObject(includeInstance?: boolean): SnmpInfo.AsObject;
19
+ static toObject(includeInstance: boolean, msg: SnmpInfo): SnmpInfo.AsObject;
20
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
21
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
22
+ static serializeBinaryToWriter(message: SnmpInfo, writer: jspb.BinaryWriter): void;
23
+ static deserializeBinary(bytes: Uint8Array): SnmpInfo;
24
+ static deserializeBinaryFromReader(message: SnmpInfo, reader: jspb.BinaryReader): SnmpInfo;
25
+ }
26
+
27
+ export namespace SnmpInfo {
28
+ export type AsObject = {
29
+ data?: import_discovery_common_pb.SnmpInfo.AsObject,
30
+ }
31
+ }
@@ -0,0 +1,199 @@
1
+ // source: discovery_sections_other.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ var import_discovery_common_pb = require('./import/discovery_common_pb.js');
25
+ goog.object.extend(proto, import_discovery_common_pb);
26
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo', null, global);
27
+ /**
28
+ * Generated by JsPbCodeGenerator.
29
+ * @param {Array=} opt_data Optional initial data array, typically from a
30
+ * server response, or constructed directly in Javascript. The array is used
31
+ * in place and becomes part of the constructed object. It is not cloned.
32
+ * If no data is provided, the constructed object will be empty, but still
33
+ * valid.
34
+ * @extends {jspb.Message}
35
+ * @constructor
36
+ */
37
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo = function(opt_data) {
38
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
39
+ };
40
+ goog.inherits(proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo, jspb.Message);
41
+ if (goog.DEBUG && !COMPILED) {
42
+ /**
43
+ * @public
44
+ * @override
45
+ */
46
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.displayName = 'proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo';
47
+ }
48
+
49
+
50
+
51
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52
+ /**
53
+ * Creates an object representation of this proto.
54
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55
+ * Optional fields that are not set will be set to undefined.
56
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
57
+ * For the list of reserved names please see:
58
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
59
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60
+ * JSPB instance for transitional soy proto support:
61
+ * http://goto/soy-param-migration
62
+ * @return {!Object}
63
+ */
64
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.toObject = function(opt_includeInstance) {
65
+ return proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.toObject(opt_includeInstance, this);
66
+ };
67
+
68
+
69
+ /**
70
+ * Static version of the {@see toObject} method.
71
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
72
+ * the JSPB instance for transitional soy proto support:
73
+ * http://goto/soy-param-migration
74
+ * @param {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo} msg The msg instance to transform.
75
+ * @return {!Object}
76
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77
+ */
78
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.toObject = function(includeInstance, msg) {
79
+ var f, obj = {
80
+ data: (f = msg.getData()) && import_discovery_common_pb.SnmpInfo.toObject(includeInstance, f)
81
+ };
82
+
83
+ if (includeInstance) {
84
+ obj.$jspbMessageInstance = msg;
85
+ }
86
+ return obj;
87
+ };
88
+ }
89
+
90
+
91
+ /**
92
+ * Deserializes binary data (in protobuf wire format).
93
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
94
+ * @return {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo}
95
+ */
96
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.deserializeBinary = function(bytes) {
97
+ var reader = new jspb.BinaryReader(bytes);
98
+ var msg = new proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo;
99
+ return proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.deserializeBinaryFromReader(msg, reader);
100
+ };
101
+
102
+
103
+ /**
104
+ * Deserializes binary data (in protobuf wire format) from the
105
+ * given reader into the given message object.
106
+ * @param {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo} msg The message object to deserialize into.
107
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
108
+ * @return {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo}
109
+ */
110
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.deserializeBinaryFromReader = function(msg, reader) {
111
+ while (reader.nextField()) {
112
+ if (reader.isEndGroup()) {
113
+ break;
114
+ }
115
+ var field = reader.getFieldNumber();
116
+ switch (field) {
117
+ case 1:
118
+ var value = new import_discovery_common_pb.SnmpInfo;
119
+ reader.readMessage(value,import_discovery_common_pb.SnmpInfo.deserializeBinaryFromReader);
120
+ msg.setData(value);
121
+ break;
122
+ default:
123
+ reader.skipField();
124
+ break;
125
+ }
126
+ }
127
+ return msg;
128
+ };
129
+
130
+
131
+ /**
132
+ * Serializes the message to binary data (in protobuf wire format).
133
+ * @return {!Uint8Array}
134
+ */
135
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.serializeBinary = function() {
136
+ var writer = new jspb.BinaryWriter();
137
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.serializeBinaryToWriter(this, writer);
138
+ return writer.getResultBuffer();
139
+ };
140
+
141
+
142
+ /**
143
+ * Serializes the given message to binary data (in protobuf wire
144
+ * format), writing to the given BinaryWriter.
145
+ * @param {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo} message
146
+ * @param {!jspb.BinaryWriter} writer
147
+ * @suppress {unusedLocalVariables} f is only used for nested messages
148
+ */
149
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.serializeBinaryToWriter = function(message, writer) {
150
+ var f = undefined;
151
+ f = message.getData();
152
+ if (f != null) {
153
+ writer.writeMessage(
154
+ 1,
155
+ f,
156
+ import_discovery_common_pb.SnmpInfo.serializeBinaryToWriter
157
+ );
158
+ }
159
+ };
160
+
161
+
162
+ /**
163
+ * optional com.lansweeper.discovery.sensor.common.v1.SnmpInfo data = 1;
164
+ * @return {?proto.com.lansweeper.discovery.sensor.common.v1.SnmpInfo}
165
+ */
166
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.getData = function() {
167
+ return /** @type{?proto.com.lansweeper.discovery.sensor.common.v1.SnmpInfo} */ (
168
+ jspb.Message.getWrapperField(this, import_discovery_common_pb.SnmpInfo, 1));
169
+ };
170
+
171
+
172
+ /**
173
+ * @param {?proto.com.lansweeper.discovery.sensor.common.v1.SnmpInfo|undefined} value
174
+ * @return {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo} returns this
175
+ */
176
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.setData = function(value) {
177
+ return jspb.Message.setWrapperField(this, 1, value);
178
+ };
179
+
180
+
181
+ /**
182
+ * Clears the message field making it undefined.
183
+ * @return {!proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo} returns this
184
+ */
185
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.clearData = function() {
186
+ return this.setData(undefined);
187
+ };
188
+
189
+
190
+ /**
191
+ * Returns whether this field is set.
192
+ * @return {boolean}
193
+ */
194
+ proto.com.lansweeper.discovery.sensor.other.v1.SnmpInfo.prototype.hasData = function() {
195
+ return jspb.Message.getField(this, 1) != null;
196
+ };
197
+
198
+
199
+ goog.object.extend(exports, proto.com.lansweeper.discovery.sensor.other.v1);