@lansweeper/discovery-sensor-proto 2.59.5 → 2.60.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,69 @@
1
+ // package: com.lansweeper.discovery.events.v1
2
+ // file: discovery_events.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
9
+ import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
10
+
11
+ export class SensorEvent extends jspb.Message {
12
+ getId(): string;
13
+ setId(value: string): SensorEvent;
14
+
15
+ hasEventUtcTimestamp(): boolean;
16
+ clearEventUtcTimestamp(): void;
17
+ getEventUtcTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined;
18
+ setEventUtcTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): SensorEvent;
19
+ getAction(): Action;
20
+ setAction(value: Action): SensorEvent;
21
+ getName(): string;
22
+ setName(value: string): SensorEvent;
23
+ getVersion(): string;
24
+ setVersion(value: string): SensorEvent;
25
+ getSensorType(): number;
26
+ setSensorType(value: number): SensorEvent;
27
+ getIp(): string;
28
+ setIp(value: string): SensorEvent;
29
+
30
+ hasMac(): boolean;
31
+ clearMac(): void;
32
+ getMac(): google_protobuf_wrappers_pb.StringValue | undefined;
33
+ setMac(value?: google_protobuf_wrappers_pb.StringValue): SensorEvent;
34
+
35
+ hasOs(): boolean;
36
+ clearOs(): void;
37
+ getOs(): google_protobuf_wrappers_pb.StringValue | undefined;
38
+ setOs(value?: google_protobuf_wrappers_pb.StringValue): SensorEvent;
39
+
40
+ serializeBinary(): Uint8Array;
41
+ toObject(includeInstance?: boolean): SensorEvent.AsObject;
42
+ static toObject(includeInstance: boolean, msg: SensorEvent): SensorEvent.AsObject;
43
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
44
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
45
+ static serializeBinaryToWriter(message: SensorEvent, writer: jspb.BinaryWriter): void;
46
+ static deserializeBinary(bytes: Uint8Array): SensorEvent;
47
+ static deserializeBinaryFromReader(message: SensorEvent, reader: jspb.BinaryReader): SensorEvent;
48
+ }
49
+
50
+ export namespace SensorEvent {
51
+ export type AsObject = {
52
+ id: string,
53
+ eventUtcTimestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject,
54
+ action: Action,
55
+ name: string,
56
+ version: string,
57
+ sensorType: number,
58
+ ip: string,
59
+ mac?: google_protobuf_wrappers_pb.StringValue.AsObject,
60
+ os?: google_protobuf_wrappers_pb.StringValue.AsObject,
61
+ }
62
+ }
63
+
64
+ export enum Action {
65
+ NONE = 0,
66
+ INSERT = 1,
67
+ UPDATE = 2,
68
+ DELETE = 3,
69
+ }
@@ -0,0 +1,494 @@
1
+ // source: discovery_events.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_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
27
+ goog.object.extend(proto, google_protobuf_wrappers_pb);
28
+ goog.exportSymbol('proto.com.lansweeper.discovery.events.v1.Action', null, global);
29
+ goog.exportSymbol('proto.com.lansweeper.discovery.events.v1.SensorEvent', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.com.lansweeper.discovery.events.v1.SensorEvent = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.com.lansweeper.discovery.events.v1.SensorEvent, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.displayName = 'proto.com.lansweeper.discovery.events.v1.SensorEvent';
50
+ }
51
+
52
+
53
+
54
+ if (jspb.Message.GENERATE_TO_OBJECT) {
55
+ /**
56
+ * Creates an object representation of this proto.
57
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
58
+ * Optional fields that are not set will be set to undefined.
59
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
60
+ * For the list of reserved names please see:
61
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
62
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
63
+ * JSPB instance for transitional soy proto support:
64
+ * http://goto/soy-param-migration
65
+ * @return {!Object}
66
+ */
67
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.toObject = function(opt_includeInstance) {
68
+ return proto.com.lansweeper.discovery.events.v1.SensorEvent.toObject(opt_includeInstance, this);
69
+ };
70
+
71
+
72
+ /**
73
+ * Static version of the {@see toObject} method.
74
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
75
+ * the JSPB instance for transitional soy proto support:
76
+ * http://goto/soy-param-migration
77
+ * @param {!proto.com.lansweeper.discovery.events.v1.SensorEvent} msg The msg instance to transform.
78
+ * @return {!Object}
79
+ * @suppress {unusedLocalVariables} f is only used for nested messages
80
+ */
81
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.toObject = function(includeInstance, msg) {
82
+ var f, obj = {
83
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
84
+ eventUtcTimestamp: (f = msg.getEventUtcTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
85
+ action: jspb.Message.getFieldWithDefault(msg, 3, 0),
86
+ name: jspb.Message.getFieldWithDefault(msg, 4, ""),
87
+ version: jspb.Message.getFieldWithDefault(msg, 5, ""),
88
+ sensorType: jspb.Message.getFieldWithDefault(msg, 6, 0),
89
+ ip: jspb.Message.getFieldWithDefault(msg, 7, ""),
90
+ mac: (f = msg.getMac()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
91
+ os: (f = msg.getOs()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
92
+ };
93
+
94
+ if (includeInstance) {
95
+ obj.$jspbMessageInstance = msg;
96
+ }
97
+ return obj;
98
+ };
99
+ }
100
+
101
+
102
+ /**
103
+ * Deserializes binary data (in protobuf wire format).
104
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
105
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent}
106
+ */
107
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.deserializeBinary = function(bytes) {
108
+ var reader = new jspb.BinaryReader(bytes);
109
+ var msg = new proto.com.lansweeper.discovery.events.v1.SensorEvent;
110
+ return proto.com.lansweeper.discovery.events.v1.SensorEvent.deserializeBinaryFromReader(msg, reader);
111
+ };
112
+
113
+
114
+ /**
115
+ * Deserializes binary data (in protobuf wire format) from the
116
+ * given reader into the given message object.
117
+ * @param {!proto.com.lansweeper.discovery.events.v1.SensorEvent} msg The message object to deserialize into.
118
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
119
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent}
120
+ */
121
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.deserializeBinaryFromReader = function(msg, reader) {
122
+ while (reader.nextField()) {
123
+ if (reader.isEndGroup()) {
124
+ break;
125
+ }
126
+ var field = reader.getFieldNumber();
127
+ switch (field) {
128
+ case 1:
129
+ var value = /** @type {string} */ (reader.readString());
130
+ msg.setId(value);
131
+ break;
132
+ case 2:
133
+ var value = new google_protobuf_timestamp_pb.Timestamp;
134
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
135
+ msg.setEventUtcTimestamp(value);
136
+ break;
137
+ case 3:
138
+ var value = /** @type {!proto.com.lansweeper.discovery.events.v1.Action} */ (reader.readEnum());
139
+ msg.setAction(value);
140
+ break;
141
+ case 4:
142
+ var value = /** @type {string} */ (reader.readString());
143
+ msg.setName(value);
144
+ break;
145
+ case 5:
146
+ var value = /** @type {string} */ (reader.readString());
147
+ msg.setVersion(value);
148
+ break;
149
+ case 6:
150
+ var value = /** @type {number} */ (reader.readInt32());
151
+ msg.setSensorType(value);
152
+ break;
153
+ case 7:
154
+ var value = /** @type {string} */ (reader.readString());
155
+ msg.setIp(value);
156
+ break;
157
+ case 8:
158
+ var value = new google_protobuf_wrappers_pb.StringValue;
159
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
160
+ msg.setMac(value);
161
+ break;
162
+ case 9:
163
+ var value = new google_protobuf_wrappers_pb.StringValue;
164
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
165
+ msg.setOs(value);
166
+ break;
167
+ default:
168
+ reader.skipField();
169
+ break;
170
+ }
171
+ }
172
+ return msg;
173
+ };
174
+
175
+
176
+ /**
177
+ * Serializes the message to binary data (in protobuf wire format).
178
+ * @return {!Uint8Array}
179
+ */
180
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.serializeBinary = function() {
181
+ var writer = new jspb.BinaryWriter();
182
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.serializeBinaryToWriter(this, writer);
183
+ return writer.getResultBuffer();
184
+ };
185
+
186
+
187
+ /**
188
+ * Serializes the given message to binary data (in protobuf wire
189
+ * format), writing to the given BinaryWriter.
190
+ * @param {!proto.com.lansweeper.discovery.events.v1.SensorEvent} message
191
+ * @param {!jspb.BinaryWriter} writer
192
+ * @suppress {unusedLocalVariables} f is only used for nested messages
193
+ */
194
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.serializeBinaryToWriter = function(message, writer) {
195
+ var f = undefined;
196
+ f = message.getId();
197
+ if (f.length > 0) {
198
+ writer.writeString(
199
+ 1,
200
+ f
201
+ );
202
+ }
203
+ f = message.getEventUtcTimestamp();
204
+ if (f != null) {
205
+ writer.writeMessage(
206
+ 2,
207
+ f,
208
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
209
+ );
210
+ }
211
+ f = message.getAction();
212
+ if (f !== 0.0) {
213
+ writer.writeEnum(
214
+ 3,
215
+ f
216
+ );
217
+ }
218
+ f = message.getName();
219
+ if (f.length > 0) {
220
+ writer.writeString(
221
+ 4,
222
+ f
223
+ );
224
+ }
225
+ f = message.getVersion();
226
+ if (f.length > 0) {
227
+ writer.writeString(
228
+ 5,
229
+ f
230
+ );
231
+ }
232
+ f = message.getSensorType();
233
+ if (f !== 0) {
234
+ writer.writeInt32(
235
+ 6,
236
+ f
237
+ );
238
+ }
239
+ f = message.getIp();
240
+ if (f.length > 0) {
241
+ writer.writeString(
242
+ 7,
243
+ f
244
+ );
245
+ }
246
+ f = message.getMac();
247
+ if (f != null) {
248
+ writer.writeMessage(
249
+ 8,
250
+ f,
251
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
252
+ );
253
+ }
254
+ f = message.getOs();
255
+ if (f != null) {
256
+ writer.writeMessage(
257
+ 9,
258
+ f,
259
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
260
+ );
261
+ }
262
+ };
263
+
264
+
265
+ /**
266
+ * optional string id = 1;
267
+ * @return {string}
268
+ */
269
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.getId = function() {
270
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
271
+ };
272
+
273
+
274
+ /**
275
+ * @param {string} value
276
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
277
+ */
278
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.setId = function(value) {
279
+ return jspb.Message.setProto3StringField(this, 1, value);
280
+ };
281
+
282
+
283
+ /**
284
+ * optional google.protobuf.Timestamp event_utc_timestamp = 2;
285
+ * @return {?proto.google.protobuf.Timestamp}
286
+ */
287
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.getEventUtcTimestamp = function() {
288
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
289
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
290
+ };
291
+
292
+
293
+ /**
294
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
295
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
296
+ */
297
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.setEventUtcTimestamp = function(value) {
298
+ return jspb.Message.setWrapperField(this, 2, value);
299
+ };
300
+
301
+
302
+ /**
303
+ * Clears the message field making it undefined.
304
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
305
+ */
306
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.clearEventUtcTimestamp = function() {
307
+ return this.setEventUtcTimestamp(undefined);
308
+ };
309
+
310
+
311
+ /**
312
+ * Returns whether this field is set.
313
+ * @return {boolean}
314
+ */
315
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.hasEventUtcTimestamp = function() {
316
+ return jspb.Message.getField(this, 2) != null;
317
+ };
318
+
319
+
320
+ /**
321
+ * optional Action action = 3;
322
+ * @return {!proto.com.lansweeper.discovery.events.v1.Action}
323
+ */
324
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.getAction = function() {
325
+ return /** @type {!proto.com.lansweeper.discovery.events.v1.Action} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
326
+ };
327
+
328
+
329
+ /**
330
+ * @param {!proto.com.lansweeper.discovery.events.v1.Action} value
331
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
332
+ */
333
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.setAction = function(value) {
334
+ return jspb.Message.setProto3EnumField(this, 3, value);
335
+ };
336
+
337
+
338
+ /**
339
+ * optional string name = 4;
340
+ * @return {string}
341
+ */
342
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.getName = function() {
343
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
344
+ };
345
+
346
+
347
+ /**
348
+ * @param {string} value
349
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
350
+ */
351
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.setName = function(value) {
352
+ return jspb.Message.setProto3StringField(this, 4, value);
353
+ };
354
+
355
+
356
+ /**
357
+ * optional string version = 5;
358
+ * @return {string}
359
+ */
360
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.getVersion = function() {
361
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
362
+ };
363
+
364
+
365
+ /**
366
+ * @param {string} value
367
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
368
+ */
369
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.setVersion = function(value) {
370
+ return jspb.Message.setProto3StringField(this, 5, value);
371
+ };
372
+
373
+
374
+ /**
375
+ * optional int32 sensor_type = 6;
376
+ * @return {number}
377
+ */
378
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.getSensorType = function() {
379
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
380
+ };
381
+
382
+
383
+ /**
384
+ * @param {number} value
385
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
386
+ */
387
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.setSensorType = function(value) {
388
+ return jspb.Message.setProto3IntField(this, 6, value);
389
+ };
390
+
391
+
392
+ /**
393
+ * optional string ip = 7;
394
+ * @return {string}
395
+ */
396
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.getIp = function() {
397
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
398
+ };
399
+
400
+
401
+ /**
402
+ * @param {string} value
403
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
404
+ */
405
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.setIp = function(value) {
406
+ return jspb.Message.setProto3StringField(this, 7, value);
407
+ };
408
+
409
+
410
+ /**
411
+ * optional google.protobuf.StringValue mac = 8;
412
+ * @return {?proto.google.protobuf.StringValue}
413
+ */
414
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.getMac = function() {
415
+ return /** @type{?proto.google.protobuf.StringValue} */ (
416
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 8));
417
+ };
418
+
419
+
420
+ /**
421
+ * @param {?proto.google.protobuf.StringValue|undefined} value
422
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
423
+ */
424
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.setMac = function(value) {
425
+ return jspb.Message.setWrapperField(this, 8, value);
426
+ };
427
+
428
+
429
+ /**
430
+ * Clears the message field making it undefined.
431
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
432
+ */
433
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.clearMac = function() {
434
+ return this.setMac(undefined);
435
+ };
436
+
437
+
438
+ /**
439
+ * Returns whether this field is set.
440
+ * @return {boolean}
441
+ */
442
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.hasMac = function() {
443
+ return jspb.Message.getField(this, 8) != null;
444
+ };
445
+
446
+
447
+ /**
448
+ * optional google.protobuf.StringValue os = 9;
449
+ * @return {?proto.google.protobuf.StringValue}
450
+ */
451
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.getOs = function() {
452
+ return /** @type{?proto.google.protobuf.StringValue} */ (
453
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 9));
454
+ };
455
+
456
+
457
+ /**
458
+ * @param {?proto.google.protobuf.StringValue|undefined} value
459
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
460
+ */
461
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.setOs = function(value) {
462
+ return jspb.Message.setWrapperField(this, 9, value);
463
+ };
464
+
465
+
466
+ /**
467
+ * Clears the message field making it undefined.
468
+ * @return {!proto.com.lansweeper.discovery.events.v1.SensorEvent} returns this
469
+ */
470
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.clearOs = function() {
471
+ return this.setOs(undefined);
472
+ };
473
+
474
+
475
+ /**
476
+ * Returns whether this field is set.
477
+ * @return {boolean}
478
+ */
479
+ proto.com.lansweeper.discovery.events.v1.SensorEvent.prototype.hasOs = function() {
480
+ return jspb.Message.getField(this, 9) != null;
481
+ };
482
+
483
+
484
+ /**
485
+ * @enum {number}
486
+ */
487
+ proto.com.lansweeper.discovery.events.v1.Action = {
488
+ NONE: 0,
489
+ INSERT: 1,
490
+ UPDATE: 2,
491
+ DELETE: 3
492
+ };
493
+
494
+ goog.object.extend(exports, proto.com.lansweeper.discovery.events.v1);