@lansweeper/discovery-sensor-proto 2.63.2 → 2.65.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,46 @@
1
+ // package: com.lansweeper.discovery.sensor.drac.v1
2
+ // file: discovery_sections_drac.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+ import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
9
+
10
+ export class DracInfo extends jspb.Message {
11
+ getIsDrac(): boolean;
12
+ setIsDrac(value: boolean): DracInfo;
13
+
14
+ hasSerialnumber(): boolean;
15
+ clearSerialnumber(): void;
16
+ getSerialnumber(): google_protobuf_wrappers_pb.StringValue | undefined;
17
+ setSerialnumber(value?: google_protobuf_wrappers_pb.StringValue): DracInfo;
18
+
19
+ hasDns(): boolean;
20
+ clearDns(): void;
21
+ getDns(): google_protobuf_wrappers_pb.StringValue | undefined;
22
+ setDns(value?: google_protobuf_wrappers_pb.StringValue): DracInfo;
23
+
24
+ hasUuid(): boolean;
25
+ clearUuid(): void;
26
+ getUuid(): google_protobuf_wrappers_pb.StringValue | undefined;
27
+ setUuid(value?: google_protobuf_wrappers_pb.StringValue): DracInfo;
28
+
29
+ serializeBinary(): Uint8Array;
30
+ toObject(includeInstance?: boolean): DracInfo.AsObject;
31
+ static toObject(includeInstance: boolean, msg: DracInfo): DracInfo.AsObject;
32
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
33
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
34
+ static serializeBinaryToWriter(message: DracInfo, writer: jspb.BinaryWriter): void;
35
+ static deserializeBinary(bytes: Uint8Array): DracInfo;
36
+ static deserializeBinaryFromReader(message: DracInfo, reader: jspb.BinaryReader): DracInfo;
37
+ }
38
+
39
+ export namespace DracInfo {
40
+ export type AsObject = {
41
+ isDrac: boolean,
42
+ serialnumber?: google_protobuf_wrappers_pb.StringValue.AsObject,
43
+ dns?: google_protobuf_wrappers_pb.StringValue.AsObject,
44
+ uuid?: google_protobuf_wrappers_pb.StringValue.AsObject,
45
+ }
46
+ }
@@ -0,0 +1,331 @@
1
+ // source: discovery_sections_drac.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 google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
25
+ goog.object.extend(proto, google_protobuf_wrappers_pb);
26
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo', 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.drac.v1.DracInfo = function(opt_data) {
38
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
39
+ };
40
+ goog.inherits(proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo, jspb.Message);
41
+ if (goog.DEBUG && !COMPILED) {
42
+ /**
43
+ * @public
44
+ * @override
45
+ */
46
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.displayName = 'proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo';
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.drac.v1.DracInfo.prototype.toObject = function(opt_includeInstance) {
65
+ return proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.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.drac.v1.DracInfo} 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.drac.v1.DracInfo.toObject = function(includeInstance, msg) {
79
+ var f, obj = {
80
+ isDrac: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
81
+ serialnumber: (f = msg.getSerialnumber()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
82
+ dns: (f = msg.getDns()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
83
+ uuid: (f = msg.getUuid()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
84
+ };
85
+
86
+ if (includeInstance) {
87
+ obj.$jspbMessageInstance = msg;
88
+ }
89
+ return obj;
90
+ };
91
+ }
92
+
93
+
94
+ /**
95
+ * Deserializes binary data (in protobuf wire format).
96
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
97
+ * @return {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo}
98
+ */
99
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.deserializeBinary = function(bytes) {
100
+ var reader = new jspb.BinaryReader(bytes);
101
+ var msg = new proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo;
102
+ return proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.deserializeBinaryFromReader(msg, reader);
103
+ };
104
+
105
+
106
+ /**
107
+ * Deserializes binary data (in protobuf wire format) from the
108
+ * given reader into the given message object.
109
+ * @param {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo} msg The message object to deserialize into.
110
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
111
+ * @return {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo}
112
+ */
113
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.deserializeBinaryFromReader = function(msg, reader) {
114
+ while (reader.nextField()) {
115
+ if (reader.isEndGroup()) {
116
+ break;
117
+ }
118
+ var field = reader.getFieldNumber();
119
+ switch (field) {
120
+ case 1:
121
+ var value = /** @type {boolean} */ (reader.readBool());
122
+ msg.setIsDrac(value);
123
+ break;
124
+ case 2:
125
+ var value = new google_protobuf_wrappers_pb.StringValue;
126
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
127
+ msg.setSerialnumber(value);
128
+ break;
129
+ case 3:
130
+ var value = new google_protobuf_wrappers_pb.StringValue;
131
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
132
+ msg.setDns(value);
133
+ break;
134
+ case 4:
135
+ var value = new google_protobuf_wrappers_pb.StringValue;
136
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
137
+ msg.setUuid(value);
138
+ break;
139
+ default:
140
+ reader.skipField();
141
+ break;
142
+ }
143
+ }
144
+ return msg;
145
+ };
146
+
147
+
148
+ /**
149
+ * Serializes the message to binary data (in protobuf wire format).
150
+ * @return {!Uint8Array}
151
+ */
152
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.serializeBinary = function() {
153
+ var writer = new jspb.BinaryWriter();
154
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.serializeBinaryToWriter(this, writer);
155
+ return writer.getResultBuffer();
156
+ };
157
+
158
+
159
+ /**
160
+ * Serializes the given message to binary data (in protobuf wire
161
+ * format), writing to the given BinaryWriter.
162
+ * @param {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo} message
163
+ * @param {!jspb.BinaryWriter} writer
164
+ * @suppress {unusedLocalVariables} f is only used for nested messages
165
+ */
166
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.serializeBinaryToWriter = function(message, writer) {
167
+ var f = undefined;
168
+ f = message.getIsDrac();
169
+ if (f) {
170
+ writer.writeBool(
171
+ 1,
172
+ f
173
+ );
174
+ }
175
+ f = message.getSerialnumber();
176
+ if (f != null) {
177
+ writer.writeMessage(
178
+ 2,
179
+ f,
180
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
181
+ );
182
+ }
183
+ f = message.getDns();
184
+ if (f != null) {
185
+ writer.writeMessage(
186
+ 3,
187
+ f,
188
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
189
+ );
190
+ }
191
+ f = message.getUuid();
192
+ if (f != null) {
193
+ writer.writeMessage(
194
+ 4,
195
+ f,
196
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
197
+ );
198
+ }
199
+ };
200
+
201
+
202
+ /**
203
+ * optional bool is_drac = 1;
204
+ * @return {boolean}
205
+ */
206
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.getIsDrac = function() {
207
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
208
+ };
209
+
210
+
211
+ /**
212
+ * @param {boolean} value
213
+ * @return {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo} returns this
214
+ */
215
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.setIsDrac = function(value) {
216
+ return jspb.Message.setProto3BooleanField(this, 1, value);
217
+ };
218
+
219
+
220
+ /**
221
+ * optional google.protobuf.StringValue serialnumber = 2;
222
+ * @return {?proto.google.protobuf.StringValue}
223
+ */
224
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.getSerialnumber = function() {
225
+ return /** @type{?proto.google.protobuf.StringValue} */ (
226
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
227
+ };
228
+
229
+
230
+ /**
231
+ * @param {?proto.google.protobuf.StringValue|undefined} value
232
+ * @return {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo} returns this
233
+ */
234
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.setSerialnumber = function(value) {
235
+ return jspb.Message.setWrapperField(this, 2, value);
236
+ };
237
+
238
+
239
+ /**
240
+ * Clears the message field making it undefined.
241
+ * @return {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo} returns this
242
+ */
243
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.clearSerialnumber = function() {
244
+ return this.setSerialnumber(undefined);
245
+ };
246
+
247
+
248
+ /**
249
+ * Returns whether this field is set.
250
+ * @return {boolean}
251
+ */
252
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.hasSerialnumber = function() {
253
+ return jspb.Message.getField(this, 2) != null;
254
+ };
255
+
256
+
257
+ /**
258
+ * optional google.protobuf.StringValue dns = 3;
259
+ * @return {?proto.google.protobuf.StringValue}
260
+ */
261
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.getDns = function() {
262
+ return /** @type{?proto.google.protobuf.StringValue} */ (
263
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
264
+ };
265
+
266
+
267
+ /**
268
+ * @param {?proto.google.protobuf.StringValue|undefined} value
269
+ * @return {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo} returns this
270
+ */
271
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.setDns = function(value) {
272
+ return jspb.Message.setWrapperField(this, 3, value);
273
+ };
274
+
275
+
276
+ /**
277
+ * Clears the message field making it undefined.
278
+ * @return {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo} returns this
279
+ */
280
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.clearDns = function() {
281
+ return this.setDns(undefined);
282
+ };
283
+
284
+
285
+ /**
286
+ * Returns whether this field is set.
287
+ * @return {boolean}
288
+ */
289
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.hasDns = function() {
290
+ return jspb.Message.getField(this, 3) != null;
291
+ };
292
+
293
+
294
+ /**
295
+ * optional google.protobuf.StringValue uuid = 4;
296
+ * @return {?proto.google.protobuf.StringValue}
297
+ */
298
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.getUuid = function() {
299
+ return /** @type{?proto.google.protobuf.StringValue} */ (
300
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4));
301
+ };
302
+
303
+
304
+ /**
305
+ * @param {?proto.google.protobuf.StringValue|undefined} value
306
+ * @return {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo} returns this
307
+ */
308
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.setUuid = function(value) {
309
+ return jspb.Message.setWrapperField(this, 4, value);
310
+ };
311
+
312
+
313
+ /**
314
+ * Clears the message field making it undefined.
315
+ * @return {!proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo} returns this
316
+ */
317
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.clearUuid = function() {
318
+ return this.setUuid(undefined);
319
+ };
320
+
321
+
322
+ /**
323
+ * Returns whether this field is set.
324
+ * @return {boolean}
325
+ */
326
+ proto.com.lansweeper.discovery.sensor.drac.v1.DracInfo.prototype.hasUuid = function() {
327
+ return jspb.Message.getField(this, 4) != null;
328
+ };
329
+
330
+
331
+ goog.object.extend(exports, proto.com.lansweeper.discovery.sensor.drac.v1);