@lansweeper/discovery-sensor-proto 2.66.2 → 2.66.4

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,1437 @@
1
+ // source: import/discovery_common.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.sensor.common.v1.HttpCertificate', null, global);
29
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo', null, global);
30
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.common.v1.OpenPort', null, global);
31
+ goog.exportSymbol('proto.com.lansweeper.discovery.sensor.common.v1.SslPolicyErrors', null, global);
32
+ /**
33
+ * Generated by JsPbCodeGenerator.
34
+ * @param {Array=} opt_data Optional initial data array, typically from a
35
+ * server response, or constructed directly in Javascript. The array is used
36
+ * in place and becomes part of the constructed object. It is not cloned.
37
+ * If no data is provided, the constructed object will be empty, but still
38
+ * valid.
39
+ * @extends {jspb.Message}
40
+ * @constructor
41
+ */
42
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort = function(opt_data) {
43
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
44
+ };
45
+ goog.inherits(proto.com.lansweeper.discovery.sensor.common.v1.OpenPort, jspb.Message);
46
+ if (goog.DEBUG && !COMPILED) {
47
+ /**
48
+ * @public
49
+ * @override
50
+ */
51
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.displayName = 'proto.com.lansweeper.discovery.sensor.common.v1.OpenPort';
52
+ }
53
+ /**
54
+ * Generated by JsPbCodeGenerator.
55
+ * @param {Array=} opt_data Optional initial data array, typically from a
56
+ * server response, or constructed directly in Javascript. The array is used
57
+ * in place and becomes part of the constructed object. It is not cloned.
58
+ * If no data is provided, the constructed object will be empty, but still
59
+ * valid.
60
+ * @extends {jspb.Message}
61
+ * @constructor
62
+ */
63
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo = function(opt_data) {
64
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.repeatedFields_, null);
65
+ };
66
+ goog.inherits(proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo, jspb.Message);
67
+ if (goog.DEBUG && !COMPILED) {
68
+ /**
69
+ * @public
70
+ * @override
71
+ */
72
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.displayName = 'proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo';
73
+ }
74
+ /**
75
+ * Generated by JsPbCodeGenerator.
76
+ * @param {Array=} opt_data Optional initial data array, typically from a
77
+ * server response, or constructed directly in Javascript. The array is used
78
+ * in place and becomes part of the constructed object. It is not cloned.
79
+ * If no data is provided, the constructed object will be empty, but still
80
+ * valid.
81
+ * @extends {jspb.Message}
82
+ * @constructor
83
+ */
84
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate = function(opt_data) {
85
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
+ };
87
+ goog.inherits(proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate, jspb.Message);
88
+ if (goog.DEBUG && !COMPILED) {
89
+ /**
90
+ * @public
91
+ * @override
92
+ */
93
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.displayName = 'proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate';
94
+ }
95
+
96
+
97
+
98
+ if (jspb.Message.GENERATE_TO_OBJECT) {
99
+ /**
100
+ * Creates an object representation of this proto.
101
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
102
+ * Optional fields that are not set will be set to undefined.
103
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
104
+ * For the list of reserved names please see:
105
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
106
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
107
+ * JSPB instance for transitional soy proto support:
108
+ * http://goto/soy-param-migration
109
+ * @return {!Object}
110
+ */
111
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.toObject = function(opt_includeInstance) {
112
+ return proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.toObject(opt_includeInstance, this);
113
+ };
114
+
115
+
116
+ /**
117
+ * Static version of the {@see toObject} method.
118
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
119
+ * the JSPB instance for transitional soy proto support:
120
+ * http://goto/soy-param-migration
121
+ * @param {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} msg The msg instance to transform.
122
+ * @return {!Object}
123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
124
+ */
125
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.toObject = function(includeInstance, msg) {
126
+ var f, obj = {
127
+ localPort: jspb.Message.getFieldWithDefault(msg, 1, 0),
128
+ localAddress: (f = msg.getLocalAddress()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
129
+ processName: (f = msg.getProcessName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
130
+ banner: (f = msg.getBanner()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
131
+ httpServer: (f = msg.getHttpServer()) && proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.toObject(includeInstance, f),
132
+ protocol: (f = msg.getProtocol()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
133
+ };
134
+
135
+ if (includeInstance) {
136
+ obj.$jspbMessageInstance = msg;
137
+ }
138
+ return obj;
139
+ };
140
+ }
141
+
142
+
143
+ /**
144
+ * Deserializes binary data (in protobuf wire format).
145
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
146
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort}
147
+ */
148
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.deserializeBinary = function(bytes) {
149
+ var reader = new jspb.BinaryReader(bytes);
150
+ var msg = new proto.com.lansweeper.discovery.sensor.common.v1.OpenPort;
151
+ return proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.deserializeBinaryFromReader(msg, reader);
152
+ };
153
+
154
+
155
+ /**
156
+ * Deserializes binary data (in protobuf wire format) from the
157
+ * given reader into the given message object.
158
+ * @param {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} msg The message object to deserialize into.
159
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
160
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort}
161
+ */
162
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.deserializeBinaryFromReader = function(msg, reader) {
163
+ while (reader.nextField()) {
164
+ if (reader.isEndGroup()) {
165
+ break;
166
+ }
167
+ var field = reader.getFieldNumber();
168
+ switch (field) {
169
+ case 1:
170
+ var value = /** @type {number} */ (reader.readInt32());
171
+ msg.setLocalPort(value);
172
+ break;
173
+ case 2:
174
+ var value = new google_protobuf_wrappers_pb.StringValue;
175
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
176
+ msg.setLocalAddress(value);
177
+ break;
178
+ case 3:
179
+ var value = new google_protobuf_wrappers_pb.StringValue;
180
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
181
+ msg.setProcessName(value);
182
+ break;
183
+ case 4:
184
+ var value = new google_protobuf_wrappers_pb.StringValue;
185
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
186
+ msg.setBanner(value);
187
+ break;
188
+ case 5:
189
+ var value = new proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo;
190
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.deserializeBinaryFromReader);
191
+ msg.setHttpServer(value);
192
+ break;
193
+ case 6:
194
+ var value = new google_protobuf_wrappers_pb.StringValue;
195
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
196
+ msg.setProtocol(value);
197
+ break;
198
+ default:
199
+ reader.skipField();
200
+ break;
201
+ }
202
+ }
203
+ return msg;
204
+ };
205
+
206
+
207
+ /**
208
+ * Serializes the message to binary data (in protobuf wire format).
209
+ * @return {!Uint8Array}
210
+ */
211
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.serializeBinary = function() {
212
+ var writer = new jspb.BinaryWriter();
213
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.serializeBinaryToWriter(this, writer);
214
+ return writer.getResultBuffer();
215
+ };
216
+
217
+
218
+ /**
219
+ * Serializes the given message to binary data (in protobuf wire
220
+ * format), writing to the given BinaryWriter.
221
+ * @param {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} message
222
+ * @param {!jspb.BinaryWriter} writer
223
+ * @suppress {unusedLocalVariables} f is only used for nested messages
224
+ */
225
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.serializeBinaryToWriter = function(message, writer) {
226
+ var f = undefined;
227
+ f = message.getLocalPort();
228
+ if (f !== 0) {
229
+ writer.writeInt32(
230
+ 1,
231
+ f
232
+ );
233
+ }
234
+ f = message.getLocalAddress();
235
+ if (f != null) {
236
+ writer.writeMessage(
237
+ 2,
238
+ f,
239
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
240
+ );
241
+ }
242
+ f = message.getProcessName();
243
+ if (f != null) {
244
+ writer.writeMessage(
245
+ 3,
246
+ f,
247
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
248
+ );
249
+ }
250
+ f = message.getBanner();
251
+ if (f != null) {
252
+ writer.writeMessage(
253
+ 4,
254
+ f,
255
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
256
+ );
257
+ }
258
+ f = message.getHttpServer();
259
+ if (f != null) {
260
+ writer.writeMessage(
261
+ 5,
262
+ f,
263
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.serializeBinaryToWriter
264
+ );
265
+ }
266
+ f = message.getProtocol();
267
+ if (f != null) {
268
+ writer.writeMessage(
269
+ 6,
270
+ f,
271
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
272
+ );
273
+ }
274
+ };
275
+
276
+
277
+ /**
278
+ * optional int32 local_port = 1;
279
+ * @return {number}
280
+ */
281
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.getLocalPort = function() {
282
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
283
+ };
284
+
285
+
286
+ /**
287
+ * @param {number} value
288
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
289
+ */
290
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.setLocalPort = function(value) {
291
+ return jspb.Message.setProto3IntField(this, 1, value);
292
+ };
293
+
294
+
295
+ /**
296
+ * optional google.protobuf.StringValue local_address = 2;
297
+ * @return {?proto.google.protobuf.StringValue}
298
+ */
299
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.getLocalAddress = function() {
300
+ return /** @type{?proto.google.protobuf.StringValue} */ (
301
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
302
+ };
303
+
304
+
305
+ /**
306
+ * @param {?proto.google.protobuf.StringValue|undefined} value
307
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
308
+ */
309
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.setLocalAddress = function(value) {
310
+ return jspb.Message.setWrapperField(this, 2, value);
311
+ };
312
+
313
+
314
+ /**
315
+ * Clears the message field making it undefined.
316
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
317
+ */
318
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.clearLocalAddress = function() {
319
+ return this.setLocalAddress(undefined);
320
+ };
321
+
322
+
323
+ /**
324
+ * Returns whether this field is set.
325
+ * @return {boolean}
326
+ */
327
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.hasLocalAddress = function() {
328
+ return jspb.Message.getField(this, 2) != null;
329
+ };
330
+
331
+
332
+ /**
333
+ * optional google.protobuf.StringValue process_name = 3;
334
+ * @return {?proto.google.protobuf.StringValue}
335
+ */
336
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.getProcessName = function() {
337
+ return /** @type{?proto.google.protobuf.StringValue} */ (
338
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
339
+ };
340
+
341
+
342
+ /**
343
+ * @param {?proto.google.protobuf.StringValue|undefined} value
344
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
345
+ */
346
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.setProcessName = function(value) {
347
+ return jspb.Message.setWrapperField(this, 3, value);
348
+ };
349
+
350
+
351
+ /**
352
+ * Clears the message field making it undefined.
353
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
354
+ */
355
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.clearProcessName = function() {
356
+ return this.setProcessName(undefined);
357
+ };
358
+
359
+
360
+ /**
361
+ * Returns whether this field is set.
362
+ * @return {boolean}
363
+ */
364
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.hasProcessName = function() {
365
+ return jspb.Message.getField(this, 3) != null;
366
+ };
367
+
368
+
369
+ /**
370
+ * optional google.protobuf.StringValue banner = 4;
371
+ * @return {?proto.google.protobuf.StringValue}
372
+ */
373
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.getBanner = function() {
374
+ return /** @type{?proto.google.protobuf.StringValue} */ (
375
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4));
376
+ };
377
+
378
+
379
+ /**
380
+ * @param {?proto.google.protobuf.StringValue|undefined} value
381
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
382
+ */
383
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.setBanner = function(value) {
384
+ return jspb.Message.setWrapperField(this, 4, value);
385
+ };
386
+
387
+
388
+ /**
389
+ * Clears the message field making it undefined.
390
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
391
+ */
392
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.clearBanner = function() {
393
+ return this.setBanner(undefined);
394
+ };
395
+
396
+
397
+ /**
398
+ * Returns whether this field is set.
399
+ * @return {boolean}
400
+ */
401
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.hasBanner = function() {
402
+ return jspb.Message.getField(this, 4) != null;
403
+ };
404
+
405
+
406
+ /**
407
+ * optional HttpServerInfo http_server = 5;
408
+ * @return {?proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo}
409
+ */
410
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.getHttpServer = function() {
411
+ return /** @type{?proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} */ (
412
+ jspb.Message.getWrapperField(this, proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo, 5));
413
+ };
414
+
415
+
416
+ /**
417
+ * @param {?proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo|undefined} value
418
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
419
+ */
420
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.setHttpServer = function(value) {
421
+ return jspb.Message.setWrapperField(this, 5, value);
422
+ };
423
+
424
+
425
+ /**
426
+ * Clears the message field making it undefined.
427
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
428
+ */
429
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.clearHttpServer = function() {
430
+ return this.setHttpServer(undefined);
431
+ };
432
+
433
+
434
+ /**
435
+ * Returns whether this field is set.
436
+ * @return {boolean}
437
+ */
438
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.hasHttpServer = function() {
439
+ return jspb.Message.getField(this, 5) != null;
440
+ };
441
+
442
+
443
+ /**
444
+ * optional google.protobuf.StringValue protocol = 6;
445
+ * @return {?proto.google.protobuf.StringValue}
446
+ */
447
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.getProtocol = function() {
448
+ return /** @type{?proto.google.protobuf.StringValue} */ (
449
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6));
450
+ };
451
+
452
+
453
+ /**
454
+ * @param {?proto.google.protobuf.StringValue|undefined} value
455
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
456
+ */
457
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.setProtocol = function(value) {
458
+ return jspb.Message.setWrapperField(this, 6, value);
459
+ };
460
+
461
+
462
+ /**
463
+ * Clears the message field making it undefined.
464
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.OpenPort} returns this
465
+ */
466
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.clearProtocol = function() {
467
+ return this.setProtocol(undefined);
468
+ };
469
+
470
+
471
+ /**
472
+ * Returns whether this field is set.
473
+ * @return {boolean}
474
+ */
475
+ proto.com.lansweeper.discovery.sensor.common.v1.OpenPort.prototype.hasProtocol = function() {
476
+ return jspb.Message.getField(this, 6) != null;
477
+ };
478
+
479
+
480
+
481
+ /**
482
+ * List of repeated fields within this message type.
483
+ * @private {!Array<number>}
484
+ * @const
485
+ */
486
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.repeatedFields_ = [3,4,5,8];
487
+
488
+
489
+
490
+ if (jspb.Message.GENERATE_TO_OBJECT) {
491
+ /**
492
+ * Creates an object representation of this proto.
493
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
494
+ * Optional fields that are not set will be set to undefined.
495
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
496
+ * For the list of reserved names please see:
497
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
498
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
499
+ * JSPB instance for transitional soy proto support:
500
+ * http://goto/soy-param-migration
501
+ * @return {!Object}
502
+ */
503
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.toObject = function(opt_includeInstance) {
504
+ return proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.toObject(opt_includeInstance, this);
505
+ };
506
+
507
+
508
+ /**
509
+ * Static version of the {@see toObject} method.
510
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
511
+ * the JSPB instance for transitional soy proto support:
512
+ * http://goto/soy-param-migration
513
+ * @param {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} msg The msg instance to transform.
514
+ * @return {!Object}
515
+ * @suppress {unusedLocalVariables} f is only used for nested messages
516
+ */
517
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.toObject = function(includeInstance, msg) {
518
+ var f, obj = {
519
+ http: (f = msg.getHttp()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
520
+ ssl: (f = msg.getSsl()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
521
+ serverList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
522
+ wwwauthList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
523
+ cookieList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
524
+ title: (f = msg.getTitle()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
525
+ favicon: (f = msg.getFavicon()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
526
+ certificatesList: jspb.Message.toObjectList(msg.getCertificatesList(),
527
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.toObject, includeInstance)
528
+ };
529
+
530
+ if (includeInstance) {
531
+ obj.$jspbMessageInstance = msg;
532
+ }
533
+ return obj;
534
+ };
535
+ }
536
+
537
+
538
+ /**
539
+ * Deserializes binary data (in protobuf wire format).
540
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
541
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo}
542
+ */
543
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.deserializeBinary = function(bytes) {
544
+ var reader = new jspb.BinaryReader(bytes);
545
+ var msg = new proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo;
546
+ return proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.deserializeBinaryFromReader(msg, reader);
547
+ };
548
+
549
+
550
+ /**
551
+ * Deserializes binary data (in protobuf wire format) from the
552
+ * given reader into the given message object.
553
+ * @param {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} msg The message object to deserialize into.
554
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
555
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo}
556
+ */
557
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.deserializeBinaryFromReader = function(msg, reader) {
558
+ while (reader.nextField()) {
559
+ if (reader.isEndGroup()) {
560
+ break;
561
+ }
562
+ var field = reader.getFieldNumber();
563
+ switch (field) {
564
+ case 1:
565
+ var value = new google_protobuf_wrappers_pb.BoolValue;
566
+ reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
567
+ msg.setHttp(value);
568
+ break;
569
+ case 2:
570
+ var value = new google_protobuf_wrappers_pb.BoolValue;
571
+ reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader);
572
+ msg.setSsl(value);
573
+ break;
574
+ case 3:
575
+ var value = /** @type {string} */ (reader.readString());
576
+ msg.addServer(value);
577
+ break;
578
+ case 4:
579
+ var value = /** @type {string} */ (reader.readString());
580
+ msg.addWwwauth(value);
581
+ break;
582
+ case 5:
583
+ var value = /** @type {string} */ (reader.readString());
584
+ msg.addCookie(value);
585
+ break;
586
+ case 6:
587
+ var value = new google_protobuf_wrappers_pb.StringValue;
588
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
589
+ msg.setTitle(value);
590
+ break;
591
+ case 7:
592
+ var value = new google_protobuf_wrappers_pb.BytesValue;
593
+ reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
594
+ msg.setFavicon(value);
595
+ break;
596
+ case 8:
597
+ var value = new proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate;
598
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.deserializeBinaryFromReader);
599
+ msg.addCertificates(value);
600
+ break;
601
+ default:
602
+ reader.skipField();
603
+ break;
604
+ }
605
+ }
606
+ return msg;
607
+ };
608
+
609
+
610
+ /**
611
+ * Serializes the message to binary data (in protobuf wire format).
612
+ * @return {!Uint8Array}
613
+ */
614
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.serializeBinary = function() {
615
+ var writer = new jspb.BinaryWriter();
616
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.serializeBinaryToWriter(this, writer);
617
+ return writer.getResultBuffer();
618
+ };
619
+
620
+
621
+ /**
622
+ * Serializes the given message to binary data (in protobuf wire
623
+ * format), writing to the given BinaryWriter.
624
+ * @param {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} message
625
+ * @param {!jspb.BinaryWriter} writer
626
+ * @suppress {unusedLocalVariables} f is only used for nested messages
627
+ */
628
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.serializeBinaryToWriter = function(message, writer) {
629
+ var f = undefined;
630
+ f = message.getHttp();
631
+ if (f != null) {
632
+ writer.writeMessage(
633
+ 1,
634
+ f,
635
+ google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
636
+ );
637
+ }
638
+ f = message.getSsl();
639
+ if (f != null) {
640
+ writer.writeMessage(
641
+ 2,
642
+ f,
643
+ google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter
644
+ );
645
+ }
646
+ f = message.getServerList();
647
+ if (f.length > 0) {
648
+ writer.writeRepeatedString(
649
+ 3,
650
+ f
651
+ );
652
+ }
653
+ f = message.getWwwauthList();
654
+ if (f.length > 0) {
655
+ writer.writeRepeatedString(
656
+ 4,
657
+ f
658
+ );
659
+ }
660
+ f = message.getCookieList();
661
+ if (f.length > 0) {
662
+ writer.writeRepeatedString(
663
+ 5,
664
+ f
665
+ );
666
+ }
667
+ f = message.getTitle();
668
+ if (f != null) {
669
+ writer.writeMessage(
670
+ 6,
671
+ f,
672
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
673
+ );
674
+ }
675
+ f = message.getFavicon();
676
+ if (f != null) {
677
+ writer.writeMessage(
678
+ 7,
679
+ f,
680
+ google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
681
+ );
682
+ }
683
+ f = message.getCertificatesList();
684
+ if (f.length > 0) {
685
+ writer.writeRepeatedMessage(
686
+ 8,
687
+ f,
688
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.serializeBinaryToWriter
689
+ );
690
+ }
691
+ };
692
+
693
+
694
+ /**
695
+ * optional google.protobuf.BoolValue http = 1;
696
+ * @return {?proto.google.protobuf.BoolValue}
697
+ */
698
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.getHttp = function() {
699
+ return /** @type{?proto.google.protobuf.BoolValue} */ (
700
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 1));
701
+ };
702
+
703
+
704
+ /**
705
+ * @param {?proto.google.protobuf.BoolValue|undefined} value
706
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
707
+ */
708
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.setHttp = function(value) {
709
+ return jspb.Message.setWrapperField(this, 1, value);
710
+ };
711
+
712
+
713
+ /**
714
+ * Clears the message field making it undefined.
715
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
716
+ */
717
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.clearHttp = function() {
718
+ return this.setHttp(undefined);
719
+ };
720
+
721
+
722
+ /**
723
+ * Returns whether this field is set.
724
+ * @return {boolean}
725
+ */
726
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.hasHttp = function() {
727
+ return jspb.Message.getField(this, 1) != null;
728
+ };
729
+
730
+
731
+ /**
732
+ * optional google.protobuf.BoolValue ssl = 2;
733
+ * @return {?proto.google.protobuf.BoolValue}
734
+ */
735
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.getSsl = function() {
736
+ return /** @type{?proto.google.protobuf.BoolValue} */ (
737
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 2));
738
+ };
739
+
740
+
741
+ /**
742
+ * @param {?proto.google.protobuf.BoolValue|undefined} value
743
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
744
+ */
745
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.setSsl = function(value) {
746
+ return jspb.Message.setWrapperField(this, 2, value);
747
+ };
748
+
749
+
750
+ /**
751
+ * Clears the message field making it undefined.
752
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
753
+ */
754
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.clearSsl = function() {
755
+ return this.setSsl(undefined);
756
+ };
757
+
758
+
759
+ /**
760
+ * Returns whether this field is set.
761
+ * @return {boolean}
762
+ */
763
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.hasSsl = function() {
764
+ return jspb.Message.getField(this, 2) != null;
765
+ };
766
+
767
+
768
+ /**
769
+ * repeated string server = 3;
770
+ * @return {!Array<string>}
771
+ */
772
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.getServerList = function() {
773
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
774
+ };
775
+
776
+
777
+ /**
778
+ * @param {!Array<string>} value
779
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
780
+ */
781
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.setServerList = function(value) {
782
+ return jspb.Message.setField(this, 3, value || []);
783
+ };
784
+
785
+
786
+ /**
787
+ * @param {string} value
788
+ * @param {number=} opt_index
789
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
790
+ */
791
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.addServer = function(value, opt_index) {
792
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
793
+ };
794
+
795
+
796
+ /**
797
+ * Clears the list making it empty but non-null.
798
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
799
+ */
800
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.clearServerList = function() {
801
+ return this.setServerList([]);
802
+ };
803
+
804
+
805
+ /**
806
+ * repeated string wwwauth = 4;
807
+ * @return {!Array<string>}
808
+ */
809
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.getWwwauthList = function() {
810
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
811
+ };
812
+
813
+
814
+ /**
815
+ * @param {!Array<string>} value
816
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
817
+ */
818
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.setWwwauthList = function(value) {
819
+ return jspb.Message.setField(this, 4, value || []);
820
+ };
821
+
822
+
823
+ /**
824
+ * @param {string} value
825
+ * @param {number=} opt_index
826
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
827
+ */
828
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.addWwwauth = function(value, opt_index) {
829
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
830
+ };
831
+
832
+
833
+ /**
834
+ * Clears the list making it empty but non-null.
835
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
836
+ */
837
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.clearWwwauthList = function() {
838
+ return this.setWwwauthList([]);
839
+ };
840
+
841
+
842
+ /**
843
+ * repeated string cookie = 5;
844
+ * @return {!Array<string>}
845
+ */
846
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.getCookieList = function() {
847
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
848
+ };
849
+
850
+
851
+ /**
852
+ * @param {!Array<string>} value
853
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
854
+ */
855
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.setCookieList = function(value) {
856
+ return jspb.Message.setField(this, 5, value || []);
857
+ };
858
+
859
+
860
+ /**
861
+ * @param {string} value
862
+ * @param {number=} opt_index
863
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
864
+ */
865
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.addCookie = function(value, opt_index) {
866
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
867
+ };
868
+
869
+
870
+ /**
871
+ * Clears the list making it empty but non-null.
872
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
873
+ */
874
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.clearCookieList = function() {
875
+ return this.setCookieList([]);
876
+ };
877
+
878
+
879
+ /**
880
+ * optional google.protobuf.StringValue title = 6;
881
+ * @return {?proto.google.protobuf.StringValue}
882
+ */
883
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.getTitle = function() {
884
+ return /** @type{?proto.google.protobuf.StringValue} */ (
885
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6));
886
+ };
887
+
888
+
889
+ /**
890
+ * @param {?proto.google.protobuf.StringValue|undefined} value
891
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
892
+ */
893
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.setTitle = function(value) {
894
+ return jspb.Message.setWrapperField(this, 6, value);
895
+ };
896
+
897
+
898
+ /**
899
+ * Clears the message field making it undefined.
900
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
901
+ */
902
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.clearTitle = function() {
903
+ return this.setTitle(undefined);
904
+ };
905
+
906
+
907
+ /**
908
+ * Returns whether this field is set.
909
+ * @return {boolean}
910
+ */
911
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.hasTitle = function() {
912
+ return jspb.Message.getField(this, 6) != null;
913
+ };
914
+
915
+
916
+ /**
917
+ * optional google.protobuf.BytesValue favicon = 7;
918
+ * @return {?proto.google.protobuf.BytesValue}
919
+ */
920
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.getFavicon = function() {
921
+ return /** @type{?proto.google.protobuf.BytesValue} */ (
922
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 7));
923
+ };
924
+
925
+
926
+ /**
927
+ * @param {?proto.google.protobuf.BytesValue|undefined} value
928
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
929
+ */
930
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.setFavicon = function(value) {
931
+ return jspb.Message.setWrapperField(this, 7, value);
932
+ };
933
+
934
+
935
+ /**
936
+ * Clears the message field making it undefined.
937
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
938
+ */
939
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.clearFavicon = function() {
940
+ return this.setFavicon(undefined);
941
+ };
942
+
943
+
944
+ /**
945
+ * Returns whether this field is set.
946
+ * @return {boolean}
947
+ */
948
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.hasFavicon = function() {
949
+ return jspb.Message.getField(this, 7) != null;
950
+ };
951
+
952
+
953
+ /**
954
+ * repeated HttpCertificate certificates = 8;
955
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate>}
956
+ */
957
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.getCertificatesList = function() {
958
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate>} */ (
959
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate, 8));
960
+ };
961
+
962
+
963
+ /**
964
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate>} value
965
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
966
+ */
967
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.setCertificatesList = function(value) {
968
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
969
+ };
970
+
971
+
972
+ /**
973
+ * @param {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate=} opt_value
974
+ * @param {number=} opt_index
975
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate}
976
+ */
977
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.addCertificates = function(opt_value, opt_index) {
978
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate, opt_index);
979
+ };
980
+
981
+
982
+ /**
983
+ * Clears the list making it empty but non-null.
984
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo} returns this
985
+ */
986
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpServerInfo.prototype.clearCertificatesList = function() {
987
+ return this.setCertificatesList([]);
988
+ };
989
+
990
+
991
+
992
+
993
+
994
+ if (jspb.Message.GENERATE_TO_OBJECT) {
995
+ /**
996
+ * Creates an object representation of this proto.
997
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
998
+ * Optional fields that are not set will be set to undefined.
999
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1000
+ * For the list of reserved names please see:
1001
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1002
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1003
+ * JSPB instance for transitional soy proto support:
1004
+ * http://goto/soy-param-migration
1005
+ * @return {!Object}
1006
+ */
1007
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.toObject = function(opt_includeInstance) {
1008
+ return proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.toObject(opt_includeInstance, this);
1009
+ };
1010
+
1011
+
1012
+ /**
1013
+ * Static version of the {@see toObject} method.
1014
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1015
+ * the JSPB instance for transitional soy proto support:
1016
+ * http://goto/soy-param-migration
1017
+ * @param {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} msg The msg instance to transform.
1018
+ * @return {!Object}
1019
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1020
+ */
1021
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.toObject = function(includeInstance, msg) {
1022
+ var f, obj = {
1023
+ thumbprint: (f = msg.getThumbprint()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
1024
+ serialNumber: (f = msg.getSerialNumber()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
1025
+ x509Issuer: (f = msg.getX509Issuer()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
1026
+ x509Subject: (f = msg.getX509Subject()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
1027
+ effectiveDate: (f = msg.getEffectiveDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1028
+ expirationDate: (f = msg.getExpirationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1029
+ sslErrors: jspb.Message.getFieldWithDefault(msg, 7, 0)
1030
+ };
1031
+
1032
+ if (includeInstance) {
1033
+ obj.$jspbMessageInstance = msg;
1034
+ }
1035
+ return obj;
1036
+ };
1037
+ }
1038
+
1039
+
1040
+ /**
1041
+ * Deserializes binary data (in protobuf wire format).
1042
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1043
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate}
1044
+ */
1045
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.deserializeBinary = function(bytes) {
1046
+ var reader = new jspb.BinaryReader(bytes);
1047
+ var msg = new proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate;
1048
+ return proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.deserializeBinaryFromReader(msg, reader);
1049
+ };
1050
+
1051
+
1052
+ /**
1053
+ * Deserializes binary data (in protobuf wire format) from the
1054
+ * given reader into the given message object.
1055
+ * @param {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} msg The message object to deserialize into.
1056
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1057
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate}
1058
+ */
1059
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.deserializeBinaryFromReader = function(msg, reader) {
1060
+ while (reader.nextField()) {
1061
+ if (reader.isEndGroup()) {
1062
+ break;
1063
+ }
1064
+ var field = reader.getFieldNumber();
1065
+ switch (field) {
1066
+ case 1:
1067
+ var value = new google_protobuf_wrappers_pb.StringValue;
1068
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
1069
+ msg.setThumbprint(value);
1070
+ break;
1071
+ case 2:
1072
+ var value = new google_protobuf_wrappers_pb.StringValue;
1073
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
1074
+ msg.setSerialNumber(value);
1075
+ break;
1076
+ case 3:
1077
+ var value = new google_protobuf_wrappers_pb.StringValue;
1078
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
1079
+ msg.setX509Issuer(value);
1080
+ break;
1081
+ case 4:
1082
+ var value = new google_protobuf_wrappers_pb.StringValue;
1083
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
1084
+ msg.setX509Subject(value);
1085
+ break;
1086
+ case 5:
1087
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1088
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1089
+ msg.setEffectiveDate(value);
1090
+ break;
1091
+ case 6:
1092
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1093
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1094
+ msg.setExpirationDate(value);
1095
+ break;
1096
+ case 7:
1097
+ var value = /** @type {number} */ (reader.readUint32());
1098
+ msg.setSslErrors(value);
1099
+ break;
1100
+ default:
1101
+ reader.skipField();
1102
+ break;
1103
+ }
1104
+ }
1105
+ return msg;
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * Serializes the message to binary data (in protobuf wire format).
1111
+ * @return {!Uint8Array}
1112
+ */
1113
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.serializeBinary = function() {
1114
+ var writer = new jspb.BinaryWriter();
1115
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.serializeBinaryToWriter(this, writer);
1116
+ return writer.getResultBuffer();
1117
+ };
1118
+
1119
+
1120
+ /**
1121
+ * Serializes the given message to binary data (in protobuf wire
1122
+ * format), writing to the given BinaryWriter.
1123
+ * @param {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} message
1124
+ * @param {!jspb.BinaryWriter} writer
1125
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1126
+ */
1127
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.serializeBinaryToWriter = function(message, writer) {
1128
+ var f = undefined;
1129
+ f = message.getThumbprint();
1130
+ if (f != null) {
1131
+ writer.writeMessage(
1132
+ 1,
1133
+ f,
1134
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
1135
+ );
1136
+ }
1137
+ f = message.getSerialNumber();
1138
+ if (f != null) {
1139
+ writer.writeMessage(
1140
+ 2,
1141
+ f,
1142
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
1143
+ );
1144
+ }
1145
+ f = message.getX509Issuer();
1146
+ if (f != null) {
1147
+ writer.writeMessage(
1148
+ 3,
1149
+ f,
1150
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
1151
+ );
1152
+ }
1153
+ f = message.getX509Subject();
1154
+ if (f != null) {
1155
+ writer.writeMessage(
1156
+ 4,
1157
+ f,
1158
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
1159
+ );
1160
+ }
1161
+ f = message.getEffectiveDate();
1162
+ if (f != null) {
1163
+ writer.writeMessage(
1164
+ 5,
1165
+ f,
1166
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1167
+ );
1168
+ }
1169
+ f = message.getExpirationDate();
1170
+ if (f != null) {
1171
+ writer.writeMessage(
1172
+ 6,
1173
+ f,
1174
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1175
+ );
1176
+ }
1177
+ f = message.getSslErrors();
1178
+ if (f !== 0) {
1179
+ writer.writeUint32(
1180
+ 7,
1181
+ f
1182
+ );
1183
+ }
1184
+ };
1185
+
1186
+
1187
+ /**
1188
+ * optional google.protobuf.StringValue thumbprint = 1;
1189
+ * @return {?proto.google.protobuf.StringValue}
1190
+ */
1191
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.getThumbprint = function() {
1192
+ return /** @type{?proto.google.protobuf.StringValue} */ (
1193
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
1194
+ };
1195
+
1196
+
1197
+ /**
1198
+ * @param {?proto.google.protobuf.StringValue|undefined} value
1199
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1200
+ */
1201
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.setThumbprint = function(value) {
1202
+ return jspb.Message.setWrapperField(this, 1, value);
1203
+ };
1204
+
1205
+
1206
+ /**
1207
+ * Clears the message field making it undefined.
1208
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1209
+ */
1210
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.clearThumbprint = function() {
1211
+ return this.setThumbprint(undefined);
1212
+ };
1213
+
1214
+
1215
+ /**
1216
+ * Returns whether this field is set.
1217
+ * @return {boolean}
1218
+ */
1219
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.hasThumbprint = function() {
1220
+ return jspb.Message.getField(this, 1) != null;
1221
+ };
1222
+
1223
+
1224
+ /**
1225
+ * optional google.protobuf.StringValue serial_number = 2;
1226
+ * @return {?proto.google.protobuf.StringValue}
1227
+ */
1228
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.getSerialNumber = function() {
1229
+ return /** @type{?proto.google.protobuf.StringValue} */ (
1230
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
1231
+ };
1232
+
1233
+
1234
+ /**
1235
+ * @param {?proto.google.protobuf.StringValue|undefined} value
1236
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1237
+ */
1238
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.setSerialNumber = function(value) {
1239
+ return jspb.Message.setWrapperField(this, 2, value);
1240
+ };
1241
+
1242
+
1243
+ /**
1244
+ * Clears the message field making it undefined.
1245
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1246
+ */
1247
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.clearSerialNumber = function() {
1248
+ return this.setSerialNumber(undefined);
1249
+ };
1250
+
1251
+
1252
+ /**
1253
+ * Returns whether this field is set.
1254
+ * @return {boolean}
1255
+ */
1256
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.hasSerialNumber = function() {
1257
+ return jspb.Message.getField(this, 2) != null;
1258
+ };
1259
+
1260
+
1261
+ /**
1262
+ * optional google.protobuf.StringValue x509_issuer = 3;
1263
+ * @return {?proto.google.protobuf.StringValue}
1264
+ */
1265
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.getX509Issuer = function() {
1266
+ return /** @type{?proto.google.protobuf.StringValue} */ (
1267
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
1268
+ };
1269
+
1270
+
1271
+ /**
1272
+ * @param {?proto.google.protobuf.StringValue|undefined} value
1273
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1274
+ */
1275
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.setX509Issuer = function(value) {
1276
+ return jspb.Message.setWrapperField(this, 3, value);
1277
+ };
1278
+
1279
+
1280
+ /**
1281
+ * Clears the message field making it undefined.
1282
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1283
+ */
1284
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.clearX509Issuer = function() {
1285
+ return this.setX509Issuer(undefined);
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * Returns whether this field is set.
1291
+ * @return {boolean}
1292
+ */
1293
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.hasX509Issuer = function() {
1294
+ return jspb.Message.getField(this, 3) != null;
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * optional google.protobuf.StringValue x509_subject = 4;
1300
+ * @return {?proto.google.protobuf.StringValue}
1301
+ */
1302
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.getX509Subject = function() {
1303
+ return /** @type{?proto.google.protobuf.StringValue} */ (
1304
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4));
1305
+ };
1306
+
1307
+
1308
+ /**
1309
+ * @param {?proto.google.protobuf.StringValue|undefined} value
1310
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1311
+ */
1312
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.setX509Subject = function(value) {
1313
+ return jspb.Message.setWrapperField(this, 4, value);
1314
+ };
1315
+
1316
+
1317
+ /**
1318
+ * Clears the message field making it undefined.
1319
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1320
+ */
1321
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.clearX509Subject = function() {
1322
+ return this.setX509Subject(undefined);
1323
+ };
1324
+
1325
+
1326
+ /**
1327
+ * Returns whether this field is set.
1328
+ * @return {boolean}
1329
+ */
1330
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.hasX509Subject = function() {
1331
+ return jspb.Message.getField(this, 4) != null;
1332
+ };
1333
+
1334
+
1335
+ /**
1336
+ * optional google.protobuf.Timestamp effective_date = 5;
1337
+ * @return {?proto.google.protobuf.Timestamp}
1338
+ */
1339
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.getEffectiveDate = function() {
1340
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1341
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1342
+ };
1343
+
1344
+
1345
+ /**
1346
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1347
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1348
+ */
1349
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.setEffectiveDate = function(value) {
1350
+ return jspb.Message.setWrapperField(this, 5, value);
1351
+ };
1352
+
1353
+
1354
+ /**
1355
+ * Clears the message field making it undefined.
1356
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1357
+ */
1358
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.clearEffectiveDate = function() {
1359
+ return this.setEffectiveDate(undefined);
1360
+ };
1361
+
1362
+
1363
+ /**
1364
+ * Returns whether this field is set.
1365
+ * @return {boolean}
1366
+ */
1367
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.hasEffectiveDate = function() {
1368
+ return jspb.Message.getField(this, 5) != null;
1369
+ };
1370
+
1371
+
1372
+ /**
1373
+ * optional google.protobuf.Timestamp expiration_date = 6;
1374
+ * @return {?proto.google.protobuf.Timestamp}
1375
+ */
1376
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.getExpirationDate = function() {
1377
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1378
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
1379
+ };
1380
+
1381
+
1382
+ /**
1383
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1384
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1385
+ */
1386
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.setExpirationDate = function(value) {
1387
+ return jspb.Message.setWrapperField(this, 6, value);
1388
+ };
1389
+
1390
+
1391
+ /**
1392
+ * Clears the message field making it undefined.
1393
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1394
+ */
1395
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.clearExpirationDate = function() {
1396
+ return this.setExpirationDate(undefined);
1397
+ };
1398
+
1399
+
1400
+ /**
1401
+ * Returns whether this field is set.
1402
+ * @return {boolean}
1403
+ */
1404
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.hasExpirationDate = function() {
1405
+ return jspb.Message.getField(this, 6) != null;
1406
+ };
1407
+
1408
+
1409
+ /**
1410
+ * optional uint32 ssl_errors = 7;
1411
+ * @return {number}
1412
+ */
1413
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.getSslErrors = function() {
1414
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1415
+ };
1416
+
1417
+
1418
+ /**
1419
+ * @param {number} value
1420
+ * @return {!proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate} returns this
1421
+ */
1422
+ proto.com.lansweeper.discovery.sensor.common.v1.HttpCertificate.prototype.setSslErrors = function(value) {
1423
+ return jspb.Message.setProto3IntField(this, 7, value);
1424
+ };
1425
+
1426
+
1427
+ /**
1428
+ * @enum {number}
1429
+ */
1430
+ proto.com.lansweeper.discovery.sensor.common.v1.SslPolicyErrors = {
1431
+ NONE: 0,
1432
+ REMOTE_CERTIFICATE_NOT_AVAILABLE: 1,
1433
+ REMOTE_CERTIFICATE_NAME_MISMATCH: 2,
1434
+ REMOTE_CERTIFICATE_CHAIN_ERRORS: 4
1435
+ };
1436
+
1437
+ goog.object.extend(exports, proto.com.lansweeper.discovery.sensor.common.v1);