@lansweeper/scanningconfig-grpc 0.0.1

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.
Files changed (37) hide show
  1. package/.useprotoc +0 -0
  2. package/CHANGELOG.md +11 -0
  3. package/Lansweeper.ScanningConfig.GRPC.csproj +21 -0
  4. package/Scanningconfig.cs +2230 -0
  5. package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.deps.json +41 -0
  6. package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  7. package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
  8. package/buf.yaml +22 -0
  9. package/gen-proto/image.json +1 -0
  10. package/gen-proto/index.d.ts +2 -0
  11. package/gen-proto/index.js +3 -0
  12. package/gen-proto/scanningconfig_grpc_pb.d.ts +41 -0
  13. package/gen-proto/scanningconfig_grpc_pb.js +44 -0
  14. package/gen-proto/scanningconfig_pb.d.ts +293 -0
  15. package/gen-proto/scanningconfig_pb.js +2125 -0
  16. package/generated-go/scanningconfig.pb.go +1107 -0
  17. package/generated-go/scanningconfig_grpc.pb.go +109 -0
  18. package/go.mod +3 -0
  19. package/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs +4 -0
  20. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfo.cs +25 -0
  21. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfoInputs.cache +1 -0
  22. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.GeneratedMSBuildEditorConfig.editorconfig +10 -0
  23. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.assets.cache +0 -0
  24. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.AssemblyReference.cache +0 -0
  25. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.CoreCompileInputs.cache +1 -0
  26. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.FileListAbsolute.txt +12 -0
  27. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  28. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
  29. package/obj/Debug/net6.0/ref/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  30. package/obj/Debug/net6.0/refint/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  31. package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.dgspec.json +68 -0
  32. package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.g.props +15 -0
  33. package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.g.targets +2 -0
  34. package/obj/project.assets.json +113 -0
  35. package/obj/project.nuget.cache +10 -0
  36. package/package.json +16 -0
  37. package/proto/scanningconfig.proto +83 -0
@@ -0,0 +1,2125 @@
1
+ // source: scanningconfig.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('return this')();
17
+
18
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Action', null, global);
19
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Action.ActionType', null, global);
20
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Action.DefinitionCase', null, global);
21
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Agent', null, global);
22
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Agent.ScanFocus', null, global);
23
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.AssetRadar', null, global);
24
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.AutoUpdate', null, global);
25
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Component', null, global);
26
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Component.ComponentType', null, global);
27
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Credential', null, global);
28
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Credential.CredentialType', null, global);
29
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest', null, global);
30
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse', null, global);
31
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.OperationalConfig', null, global);
32
+ goog.exportSymbol('proto.lansweeper.scanningconfig.v1.Trigger', null, global);
33
+ /**
34
+ * Generated by JsPbCodeGenerator.
35
+ * @param {Array=} opt_data Optional initial data array, typically from a
36
+ * server response, or constructed directly in Javascript. The array is used
37
+ * in place and becomes part of the constructed object. It is not cloned.
38
+ * If no data is provided, the constructed object will be empty, but still
39
+ * valid.
40
+ * @extends {jspb.Message}
41
+ * @constructor
42
+ */
43
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest = function(opt_data) {
44
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
45
+ };
46
+ goog.inherits(proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest, jspb.Message);
47
+ if (goog.DEBUG && !COMPILED) {
48
+ /**
49
+ * @public
50
+ * @override
51
+ */
52
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.displayName = 'proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest';
53
+ }
54
+ /**
55
+ * Generated by JsPbCodeGenerator.
56
+ * @param {Array=} opt_data Optional initial data array, typically from a
57
+ * server response, or constructed directly in Javascript. The array is used
58
+ * in place and becomes part of the constructed object. It is not cloned.
59
+ * If no data is provided, the constructed object will be empty, but still
60
+ * valid.
61
+ * @extends {jspb.Message}
62
+ * @constructor
63
+ */
64
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse = function(opt_data) {
65
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.repeatedFields_, null);
66
+ };
67
+ goog.inherits(proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse, jspb.Message);
68
+ if (goog.DEBUG && !COMPILED) {
69
+ /**
70
+ * @public
71
+ * @override
72
+ */
73
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.displayName = 'proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse';
74
+ }
75
+ /**
76
+ * Generated by JsPbCodeGenerator.
77
+ * @param {Array=} opt_data Optional initial data array, typically from a
78
+ * server response, or constructed directly in Javascript. The array is used
79
+ * in place and becomes part of the constructed object. It is not cloned.
80
+ * If no data is provided, the constructed object will be empty, but still
81
+ * valid.
82
+ * @extends {jspb.Message}
83
+ * @constructor
84
+ */
85
+ proto.lansweeper.scanningconfig.v1.Component = function(opt_data) {
86
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.scanningconfig.v1.Component.repeatedFields_, null);
87
+ };
88
+ goog.inherits(proto.lansweeper.scanningconfig.v1.Component, jspb.Message);
89
+ if (goog.DEBUG && !COMPILED) {
90
+ /**
91
+ * @public
92
+ * @override
93
+ */
94
+ proto.lansweeper.scanningconfig.v1.Component.displayName = 'proto.lansweeper.scanningconfig.v1.Component';
95
+ }
96
+ /**
97
+ * Generated by JsPbCodeGenerator.
98
+ * @param {Array=} opt_data Optional initial data array, typically from a
99
+ * server response, or constructed directly in Javascript. The array is used
100
+ * in place and becomes part of the constructed object. It is not cloned.
101
+ * If no data is provided, the constructed object will be empty, but still
102
+ * valid.
103
+ * @extends {jspb.Message}
104
+ * @constructor
105
+ */
106
+ proto.lansweeper.scanningconfig.v1.AssetRadar = function(opt_data) {
107
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.scanningconfig.v1.AssetRadar.repeatedFields_, null);
108
+ };
109
+ goog.inherits(proto.lansweeper.scanningconfig.v1.AssetRadar, jspb.Message);
110
+ if (goog.DEBUG && !COMPILED) {
111
+ /**
112
+ * @public
113
+ * @override
114
+ */
115
+ proto.lansweeper.scanningconfig.v1.AssetRadar.displayName = 'proto.lansweeper.scanningconfig.v1.AssetRadar';
116
+ }
117
+ /**
118
+ * Generated by JsPbCodeGenerator.
119
+ * @param {Array=} opt_data Optional initial data array, typically from a
120
+ * server response, or constructed directly in Javascript. The array is used
121
+ * in place and becomes part of the constructed object. It is not cloned.
122
+ * If no data is provided, the constructed object will be empty, but still
123
+ * valid.
124
+ * @extends {jspb.Message}
125
+ * @constructor
126
+ */
127
+ proto.lansweeper.scanningconfig.v1.AutoUpdate = function(opt_data) {
128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ };
130
+ goog.inherits(proto.lansweeper.scanningconfig.v1.AutoUpdate, jspb.Message);
131
+ if (goog.DEBUG && !COMPILED) {
132
+ /**
133
+ * @public
134
+ * @override
135
+ */
136
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.displayName = 'proto.lansweeper.scanningconfig.v1.AutoUpdate';
137
+ }
138
+ /**
139
+ * Generated by JsPbCodeGenerator.
140
+ * @param {Array=} opt_data Optional initial data array, typically from a
141
+ * server response, or constructed directly in Javascript. The array is used
142
+ * in place and becomes part of the constructed object. It is not cloned.
143
+ * If no data is provided, the constructed object will be empty, but still
144
+ * valid.
145
+ * @extends {jspb.Message}
146
+ * @constructor
147
+ */
148
+ proto.lansweeper.scanningconfig.v1.OperationalConfig = function(opt_data) {
149
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
150
+ };
151
+ goog.inherits(proto.lansweeper.scanningconfig.v1.OperationalConfig, jspb.Message);
152
+ if (goog.DEBUG && !COMPILED) {
153
+ /**
154
+ * @public
155
+ * @override
156
+ */
157
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.displayName = 'proto.lansweeper.scanningconfig.v1.OperationalConfig';
158
+ }
159
+ /**
160
+ * Generated by JsPbCodeGenerator.
161
+ * @param {Array=} opt_data Optional initial data array, typically from a
162
+ * server response, or constructed directly in Javascript. The array is used
163
+ * in place and becomes part of the constructed object. It is not cloned.
164
+ * If no data is provided, the constructed object will be empty, but still
165
+ * valid.
166
+ * @extends {jspb.Message}
167
+ * @constructor
168
+ */
169
+ proto.lansweeper.scanningconfig.v1.Trigger = function(opt_data) {
170
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
171
+ };
172
+ goog.inherits(proto.lansweeper.scanningconfig.v1.Trigger, jspb.Message);
173
+ if (goog.DEBUG && !COMPILED) {
174
+ /**
175
+ * @public
176
+ * @override
177
+ */
178
+ proto.lansweeper.scanningconfig.v1.Trigger.displayName = 'proto.lansweeper.scanningconfig.v1.Trigger';
179
+ }
180
+ /**
181
+ * Generated by JsPbCodeGenerator.
182
+ * @param {Array=} opt_data Optional initial data array, typically from a
183
+ * server response, or constructed directly in Javascript. The array is used
184
+ * in place and becomes part of the constructed object. It is not cloned.
185
+ * If no data is provided, the constructed object will be empty, but still
186
+ * valid.
187
+ * @extends {jspb.Message}
188
+ * @constructor
189
+ */
190
+ proto.lansweeper.scanningconfig.v1.Action = function(opt_data) {
191
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.scanningconfig.v1.Action.repeatedFields_, proto.lansweeper.scanningconfig.v1.Action.oneofGroups_);
192
+ };
193
+ goog.inherits(proto.lansweeper.scanningconfig.v1.Action, jspb.Message);
194
+ if (goog.DEBUG && !COMPILED) {
195
+ /**
196
+ * @public
197
+ * @override
198
+ */
199
+ proto.lansweeper.scanningconfig.v1.Action.displayName = 'proto.lansweeper.scanningconfig.v1.Action';
200
+ }
201
+ /**
202
+ * Generated by JsPbCodeGenerator.
203
+ * @param {Array=} opt_data Optional initial data array, typically from a
204
+ * server response, or constructed directly in Javascript. The array is used
205
+ * in place and becomes part of the constructed object. It is not cloned.
206
+ * If no data is provided, the constructed object will be empty, but still
207
+ * valid.
208
+ * @extends {jspb.Message}
209
+ * @constructor
210
+ */
211
+ proto.lansweeper.scanningconfig.v1.Agent = function(opt_data) {
212
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
213
+ };
214
+ goog.inherits(proto.lansweeper.scanningconfig.v1.Agent, jspb.Message);
215
+ if (goog.DEBUG && !COMPILED) {
216
+ /**
217
+ * @public
218
+ * @override
219
+ */
220
+ proto.lansweeper.scanningconfig.v1.Agent.displayName = 'proto.lansweeper.scanningconfig.v1.Agent';
221
+ }
222
+ /**
223
+ * Generated by JsPbCodeGenerator.
224
+ * @param {Array=} opt_data Optional initial data array, typically from a
225
+ * server response, or constructed directly in Javascript. The array is used
226
+ * in place and becomes part of the constructed object. It is not cloned.
227
+ * If no data is provided, the constructed object will be empty, but still
228
+ * valid.
229
+ * @extends {jspb.Message}
230
+ * @constructor
231
+ */
232
+ proto.lansweeper.scanningconfig.v1.Credential = function(opt_data) {
233
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
234
+ };
235
+ goog.inherits(proto.lansweeper.scanningconfig.v1.Credential, jspb.Message);
236
+ if (goog.DEBUG && !COMPILED) {
237
+ /**
238
+ * @public
239
+ * @override
240
+ */
241
+ proto.lansweeper.scanningconfig.v1.Credential.displayName = 'proto.lansweeper.scanningconfig.v1.Credential';
242
+ }
243
+
244
+
245
+
246
+ if (jspb.Message.GENERATE_TO_OBJECT) {
247
+ /**
248
+ * Creates an object representation of this proto.
249
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
250
+ * Optional fields that are not set will be set to undefined.
251
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
252
+ * For the list of reserved names please see:
253
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
254
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
255
+ * JSPB instance for transitional soy proto support:
256
+ * http://goto/soy-param-migration
257
+ * @return {!Object}
258
+ */
259
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.prototype.toObject = function(opt_includeInstance) {
260
+ return proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.toObject(opt_includeInstance, this);
261
+ };
262
+
263
+
264
+ /**
265
+ * Static version of the {@see toObject} method.
266
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
267
+ * the JSPB instance for transitional soy proto support:
268
+ * http://goto/soy-param-migration
269
+ * @param {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest} msg The msg instance to transform.
270
+ * @return {!Object}
271
+ * @suppress {unusedLocalVariables} f is only used for nested messages
272
+ */
273
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.toObject = function(includeInstance, msg) {
274
+ var f, obj = {
275
+ sourceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
276
+ siteId: jspb.Message.getFieldWithDefault(msg, 2, "")
277
+ };
278
+
279
+ if (includeInstance) {
280
+ obj.$jspbMessageInstance = msg;
281
+ }
282
+ return obj;
283
+ };
284
+ }
285
+
286
+
287
+ /**
288
+ * Deserializes binary data (in protobuf wire format).
289
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
290
+ * @return {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest}
291
+ */
292
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.deserializeBinary = function(bytes) {
293
+ var reader = new jspb.BinaryReader(bytes);
294
+ var msg = new proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest;
295
+ return proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.deserializeBinaryFromReader(msg, reader);
296
+ };
297
+
298
+
299
+ /**
300
+ * Deserializes binary data (in protobuf wire format) from the
301
+ * given reader into the given message object.
302
+ * @param {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest} msg The message object to deserialize into.
303
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
304
+ * @return {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest}
305
+ */
306
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.deserializeBinaryFromReader = function(msg, reader) {
307
+ while (reader.nextField()) {
308
+ if (reader.isEndGroup()) {
309
+ break;
310
+ }
311
+ var field = reader.getFieldNumber();
312
+ switch (field) {
313
+ case 1:
314
+ var value = /** @type {string} */ (reader.readString());
315
+ msg.setSourceId(value);
316
+ break;
317
+ case 2:
318
+ var value = /** @type {string} */ (reader.readString());
319
+ msg.setSiteId(value);
320
+ break;
321
+ default:
322
+ reader.skipField();
323
+ break;
324
+ }
325
+ }
326
+ return msg;
327
+ };
328
+
329
+
330
+ /**
331
+ * Serializes the message to binary data (in protobuf wire format).
332
+ * @return {!Uint8Array}
333
+ */
334
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.prototype.serializeBinary = function() {
335
+ var writer = new jspb.BinaryWriter();
336
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.serializeBinaryToWriter(this, writer);
337
+ return writer.getResultBuffer();
338
+ };
339
+
340
+
341
+ /**
342
+ * Serializes the given message to binary data (in protobuf wire
343
+ * format), writing to the given BinaryWriter.
344
+ * @param {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest} message
345
+ * @param {!jspb.BinaryWriter} writer
346
+ * @suppress {unusedLocalVariables} f is only used for nested messages
347
+ */
348
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.serializeBinaryToWriter = function(message, writer) {
349
+ var f = undefined;
350
+ f = message.getSourceId();
351
+ if (f.length > 0) {
352
+ writer.writeString(
353
+ 1,
354
+ f
355
+ );
356
+ }
357
+ f = message.getSiteId();
358
+ if (f.length > 0) {
359
+ writer.writeString(
360
+ 2,
361
+ f
362
+ );
363
+ }
364
+ };
365
+
366
+
367
+ /**
368
+ * optional string source_id = 1;
369
+ * @return {string}
370
+ */
371
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.prototype.getSourceId = function() {
372
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
373
+ };
374
+
375
+
376
+ /**
377
+ * @param {string} value
378
+ * @return {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest} returns this
379
+ */
380
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.prototype.setSourceId = function(value) {
381
+ return jspb.Message.setProto3StringField(this, 1, value);
382
+ };
383
+
384
+
385
+ /**
386
+ * optional string site_id = 2;
387
+ * @return {string}
388
+ */
389
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.prototype.getSiteId = function() {
390
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
391
+ };
392
+
393
+
394
+ /**
395
+ * @param {string} value
396
+ * @return {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest} returns this
397
+ */
398
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceRequest.prototype.setSiteId = function(value) {
399
+ return jspb.Message.setProto3StringField(this, 2, value);
400
+ };
401
+
402
+
403
+
404
+ /**
405
+ * List of repeated fields within this message type.
406
+ * @private {!Array<number>}
407
+ * @const
408
+ */
409
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.repeatedFields_ = [1];
410
+
411
+
412
+
413
+ if (jspb.Message.GENERATE_TO_OBJECT) {
414
+ /**
415
+ * Creates an object representation of this proto.
416
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
417
+ * Optional fields that are not set will be set to undefined.
418
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
419
+ * For the list of reserved names please see:
420
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
421
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
422
+ * JSPB instance for transitional soy proto support:
423
+ * http://goto/soy-param-migration
424
+ * @return {!Object}
425
+ */
426
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.prototype.toObject = function(opt_includeInstance) {
427
+ return proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.toObject(opt_includeInstance, this);
428
+ };
429
+
430
+
431
+ /**
432
+ * Static version of the {@see toObject} method.
433
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
434
+ * the JSPB instance for transitional soy proto support:
435
+ * http://goto/soy-param-migration
436
+ * @param {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse} msg The msg instance to transform.
437
+ * @return {!Object}
438
+ * @suppress {unusedLocalVariables} f is only used for nested messages
439
+ */
440
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.toObject = function(includeInstance, msg) {
441
+ var f, obj = {
442
+ configsList: jspb.Message.toObjectList(msg.getConfigsList(),
443
+ proto.lansweeper.scanningconfig.v1.Component.toObject, includeInstance)
444
+ };
445
+
446
+ if (includeInstance) {
447
+ obj.$jspbMessageInstance = msg;
448
+ }
449
+ return obj;
450
+ };
451
+ }
452
+
453
+
454
+ /**
455
+ * Deserializes binary data (in protobuf wire format).
456
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
457
+ * @return {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse}
458
+ */
459
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.deserializeBinary = function(bytes) {
460
+ var reader = new jspb.BinaryReader(bytes);
461
+ var msg = new proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse;
462
+ return proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.deserializeBinaryFromReader(msg, reader);
463
+ };
464
+
465
+
466
+ /**
467
+ * Deserializes binary data (in protobuf wire format) from the
468
+ * given reader into the given message object.
469
+ * @param {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse} msg The message object to deserialize into.
470
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
471
+ * @return {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse}
472
+ */
473
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.deserializeBinaryFromReader = function(msg, reader) {
474
+ while (reader.nextField()) {
475
+ if (reader.isEndGroup()) {
476
+ break;
477
+ }
478
+ var field = reader.getFieldNumber();
479
+ switch (field) {
480
+ case 1:
481
+ var value = new proto.lansweeper.scanningconfig.v1.Component;
482
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.Component.deserializeBinaryFromReader);
483
+ msg.addConfigs(value);
484
+ break;
485
+ default:
486
+ reader.skipField();
487
+ break;
488
+ }
489
+ }
490
+ return msg;
491
+ };
492
+
493
+
494
+ /**
495
+ * Serializes the message to binary data (in protobuf wire format).
496
+ * @return {!Uint8Array}
497
+ */
498
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.prototype.serializeBinary = function() {
499
+ var writer = new jspb.BinaryWriter();
500
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.serializeBinaryToWriter(this, writer);
501
+ return writer.getResultBuffer();
502
+ };
503
+
504
+
505
+ /**
506
+ * Serializes the given message to binary data (in protobuf wire
507
+ * format), writing to the given BinaryWriter.
508
+ * @param {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse} message
509
+ * @param {!jspb.BinaryWriter} writer
510
+ * @suppress {unusedLocalVariables} f is only used for nested messages
511
+ */
512
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.serializeBinaryToWriter = function(message, writer) {
513
+ var f = undefined;
514
+ f = message.getConfigsList();
515
+ if (f.length > 0) {
516
+ writer.writeRepeatedMessage(
517
+ 1,
518
+ f,
519
+ proto.lansweeper.scanningconfig.v1.Component.serializeBinaryToWriter
520
+ );
521
+ }
522
+ };
523
+
524
+
525
+ /**
526
+ * repeated Component configs = 1;
527
+ * @return {!Array<!proto.lansweeper.scanningconfig.v1.Component>}
528
+ */
529
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.prototype.getConfigsList = function() {
530
+ return /** @type{!Array<!proto.lansweeper.scanningconfig.v1.Component>} */ (
531
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.scanningconfig.v1.Component, 1));
532
+ };
533
+
534
+
535
+ /**
536
+ * @param {!Array<!proto.lansweeper.scanningconfig.v1.Component>} value
537
+ * @return {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse} returns this
538
+ */
539
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.prototype.setConfigsList = function(value) {
540
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
541
+ };
542
+
543
+
544
+ /**
545
+ * @param {!proto.lansweeper.scanningconfig.v1.Component=} opt_value
546
+ * @param {number=} opt_index
547
+ * @return {!proto.lansweeper.scanningconfig.v1.Component}
548
+ */
549
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.prototype.addConfigs = function(opt_value, opt_index) {
550
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.scanningconfig.v1.Component, opt_index);
551
+ };
552
+
553
+
554
+ /**
555
+ * Clears the list making it empty but non-null.
556
+ * @return {!proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse} returns this
557
+ */
558
+ proto.lansweeper.scanningconfig.v1.GetConfigurationsBySourceResponse.prototype.clearConfigsList = function() {
559
+ return this.setConfigsList([]);
560
+ };
561
+
562
+
563
+
564
+ /**
565
+ * List of repeated fields within this message type.
566
+ * @private {!Array<number>}
567
+ * @const
568
+ */
569
+ proto.lansweeper.scanningconfig.v1.Component.repeatedFields_ = [3];
570
+
571
+
572
+
573
+ if (jspb.Message.GENERATE_TO_OBJECT) {
574
+ /**
575
+ * Creates an object representation of this proto.
576
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
577
+ * Optional fields that are not set will be set to undefined.
578
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
579
+ * For the list of reserved names please see:
580
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
581
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
582
+ * JSPB instance for transitional soy proto support:
583
+ * http://goto/soy-param-migration
584
+ * @return {!Object}
585
+ */
586
+ proto.lansweeper.scanningconfig.v1.Component.prototype.toObject = function(opt_includeInstance) {
587
+ return proto.lansweeper.scanningconfig.v1.Component.toObject(opt_includeInstance, this);
588
+ };
589
+
590
+
591
+ /**
592
+ * Static version of the {@see toObject} method.
593
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
594
+ * the JSPB instance for transitional soy proto support:
595
+ * http://goto/soy-param-migration
596
+ * @param {!proto.lansweeper.scanningconfig.v1.Component} msg The msg instance to transform.
597
+ * @return {!Object}
598
+ * @suppress {unusedLocalVariables} f is only used for nested messages
599
+ */
600
+ proto.lansweeper.scanningconfig.v1.Component.toObject = function(includeInstance, msg) {
601
+ var f, obj = {
602
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
603
+ type: jspb.Message.getFieldWithDefault(msg, 2, 0),
604
+ actionsList: jspb.Message.toObjectList(msg.getActionsList(),
605
+ proto.lansweeper.scanningconfig.v1.Action.toObject, includeInstance),
606
+ opConfig: (f = msg.getOpConfig()) && proto.lansweeper.scanningconfig.v1.OperationalConfig.toObject(includeInstance, f)
607
+ };
608
+
609
+ if (includeInstance) {
610
+ obj.$jspbMessageInstance = msg;
611
+ }
612
+ return obj;
613
+ };
614
+ }
615
+
616
+
617
+ /**
618
+ * Deserializes binary data (in protobuf wire format).
619
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
620
+ * @return {!proto.lansweeper.scanningconfig.v1.Component}
621
+ */
622
+ proto.lansweeper.scanningconfig.v1.Component.deserializeBinary = function(bytes) {
623
+ var reader = new jspb.BinaryReader(bytes);
624
+ var msg = new proto.lansweeper.scanningconfig.v1.Component;
625
+ return proto.lansweeper.scanningconfig.v1.Component.deserializeBinaryFromReader(msg, reader);
626
+ };
627
+
628
+
629
+ /**
630
+ * Deserializes binary data (in protobuf wire format) from the
631
+ * given reader into the given message object.
632
+ * @param {!proto.lansweeper.scanningconfig.v1.Component} msg The message object to deserialize into.
633
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
634
+ * @return {!proto.lansweeper.scanningconfig.v1.Component}
635
+ */
636
+ proto.lansweeper.scanningconfig.v1.Component.deserializeBinaryFromReader = function(msg, reader) {
637
+ while (reader.nextField()) {
638
+ if (reader.isEndGroup()) {
639
+ break;
640
+ }
641
+ var field = reader.getFieldNumber();
642
+ switch (field) {
643
+ case 1:
644
+ var value = /** @type {string} */ (reader.readString());
645
+ msg.setId(value);
646
+ break;
647
+ case 2:
648
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.Component.ComponentType} */ (reader.readEnum());
649
+ msg.setType(value);
650
+ break;
651
+ case 3:
652
+ var value = new proto.lansweeper.scanningconfig.v1.Action;
653
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.Action.deserializeBinaryFromReader);
654
+ msg.addActions(value);
655
+ break;
656
+ case 4:
657
+ var value = new proto.lansweeper.scanningconfig.v1.OperationalConfig;
658
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.OperationalConfig.deserializeBinaryFromReader);
659
+ msg.setOpConfig(value);
660
+ break;
661
+ default:
662
+ reader.skipField();
663
+ break;
664
+ }
665
+ }
666
+ return msg;
667
+ };
668
+
669
+
670
+ /**
671
+ * Serializes the message to binary data (in protobuf wire format).
672
+ * @return {!Uint8Array}
673
+ */
674
+ proto.lansweeper.scanningconfig.v1.Component.prototype.serializeBinary = function() {
675
+ var writer = new jspb.BinaryWriter();
676
+ proto.lansweeper.scanningconfig.v1.Component.serializeBinaryToWriter(this, writer);
677
+ return writer.getResultBuffer();
678
+ };
679
+
680
+
681
+ /**
682
+ * Serializes the given message to binary data (in protobuf wire
683
+ * format), writing to the given BinaryWriter.
684
+ * @param {!proto.lansweeper.scanningconfig.v1.Component} message
685
+ * @param {!jspb.BinaryWriter} writer
686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
687
+ */
688
+ proto.lansweeper.scanningconfig.v1.Component.serializeBinaryToWriter = function(message, writer) {
689
+ var f = undefined;
690
+ f = message.getId();
691
+ if (f.length > 0) {
692
+ writer.writeString(
693
+ 1,
694
+ f
695
+ );
696
+ }
697
+ f = message.getType();
698
+ if (f !== 0.0) {
699
+ writer.writeEnum(
700
+ 2,
701
+ f
702
+ );
703
+ }
704
+ f = message.getActionsList();
705
+ if (f.length > 0) {
706
+ writer.writeRepeatedMessage(
707
+ 3,
708
+ f,
709
+ proto.lansweeper.scanningconfig.v1.Action.serializeBinaryToWriter
710
+ );
711
+ }
712
+ f = message.getOpConfig();
713
+ if (f != null) {
714
+ writer.writeMessage(
715
+ 4,
716
+ f,
717
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.serializeBinaryToWriter
718
+ );
719
+ }
720
+ };
721
+
722
+
723
+ /**
724
+ * @enum {number}
725
+ */
726
+ proto.lansweeper.scanningconfig.v1.Component.ComponentType = {
727
+ UNSPECIFIED: 0,
728
+ AGENT: 1,
729
+ IT_SENSOR: 2,
730
+ IT_HUB: 3
731
+ };
732
+
733
+ /**
734
+ * optional string id = 1;
735
+ * @return {string}
736
+ */
737
+ proto.lansweeper.scanningconfig.v1.Component.prototype.getId = function() {
738
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
739
+ };
740
+
741
+
742
+ /**
743
+ * @param {string} value
744
+ * @return {!proto.lansweeper.scanningconfig.v1.Component} returns this
745
+ */
746
+ proto.lansweeper.scanningconfig.v1.Component.prototype.setId = function(value) {
747
+ return jspb.Message.setProto3StringField(this, 1, value);
748
+ };
749
+
750
+
751
+ /**
752
+ * optional ComponentType type = 2;
753
+ * @return {!proto.lansweeper.scanningconfig.v1.Component.ComponentType}
754
+ */
755
+ proto.lansweeper.scanningconfig.v1.Component.prototype.getType = function() {
756
+ return /** @type {!proto.lansweeper.scanningconfig.v1.Component.ComponentType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
757
+ };
758
+
759
+
760
+ /**
761
+ * @param {!proto.lansweeper.scanningconfig.v1.Component.ComponentType} value
762
+ * @return {!proto.lansweeper.scanningconfig.v1.Component} returns this
763
+ */
764
+ proto.lansweeper.scanningconfig.v1.Component.prototype.setType = function(value) {
765
+ return jspb.Message.setProto3EnumField(this, 2, value);
766
+ };
767
+
768
+
769
+ /**
770
+ * repeated Action actions = 3;
771
+ * @return {!Array<!proto.lansweeper.scanningconfig.v1.Action>}
772
+ */
773
+ proto.lansweeper.scanningconfig.v1.Component.prototype.getActionsList = function() {
774
+ return /** @type{!Array<!proto.lansweeper.scanningconfig.v1.Action>} */ (
775
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.scanningconfig.v1.Action, 3));
776
+ };
777
+
778
+
779
+ /**
780
+ * @param {!Array<!proto.lansweeper.scanningconfig.v1.Action>} value
781
+ * @return {!proto.lansweeper.scanningconfig.v1.Component} returns this
782
+ */
783
+ proto.lansweeper.scanningconfig.v1.Component.prototype.setActionsList = function(value) {
784
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
785
+ };
786
+
787
+
788
+ /**
789
+ * @param {!proto.lansweeper.scanningconfig.v1.Action=} opt_value
790
+ * @param {number=} opt_index
791
+ * @return {!proto.lansweeper.scanningconfig.v1.Action}
792
+ */
793
+ proto.lansweeper.scanningconfig.v1.Component.prototype.addActions = function(opt_value, opt_index) {
794
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.lansweeper.scanningconfig.v1.Action, opt_index);
795
+ };
796
+
797
+
798
+ /**
799
+ * Clears the list making it empty but non-null.
800
+ * @return {!proto.lansweeper.scanningconfig.v1.Component} returns this
801
+ */
802
+ proto.lansweeper.scanningconfig.v1.Component.prototype.clearActionsList = function() {
803
+ return this.setActionsList([]);
804
+ };
805
+
806
+
807
+ /**
808
+ * optional OperationalConfig op_config = 4;
809
+ * @return {?proto.lansweeper.scanningconfig.v1.OperationalConfig}
810
+ */
811
+ proto.lansweeper.scanningconfig.v1.Component.prototype.getOpConfig = function() {
812
+ return /** @type{?proto.lansweeper.scanningconfig.v1.OperationalConfig} */ (
813
+ jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.OperationalConfig, 4));
814
+ };
815
+
816
+
817
+ /**
818
+ * @param {?proto.lansweeper.scanningconfig.v1.OperationalConfig|undefined} value
819
+ * @return {!proto.lansweeper.scanningconfig.v1.Component} returns this
820
+ */
821
+ proto.lansweeper.scanningconfig.v1.Component.prototype.setOpConfig = function(value) {
822
+ return jspb.Message.setWrapperField(this, 4, value);
823
+ };
824
+
825
+
826
+ /**
827
+ * Clears the message field making it undefined.
828
+ * @return {!proto.lansweeper.scanningconfig.v1.Component} returns this
829
+ */
830
+ proto.lansweeper.scanningconfig.v1.Component.prototype.clearOpConfig = function() {
831
+ return this.setOpConfig(undefined);
832
+ };
833
+
834
+
835
+ /**
836
+ * Returns whether this field is set.
837
+ * @return {boolean}
838
+ */
839
+ proto.lansweeper.scanningconfig.v1.Component.prototype.hasOpConfig = function() {
840
+ return jspb.Message.getField(this, 4) != null;
841
+ };
842
+
843
+
844
+
845
+ /**
846
+ * List of repeated fields within this message type.
847
+ * @private {!Array<number>}
848
+ * @const
849
+ */
850
+ proto.lansweeper.scanningconfig.v1.AssetRadar.repeatedFields_ = [2];
851
+
852
+
853
+
854
+ if (jspb.Message.GENERATE_TO_OBJECT) {
855
+ /**
856
+ * Creates an object representation of this proto.
857
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
858
+ * Optional fields that are not set will be set to undefined.
859
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
860
+ * For the list of reserved names please see:
861
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
862
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
863
+ * JSPB instance for transitional soy proto support:
864
+ * http://goto/soy-param-migration
865
+ * @return {!Object}
866
+ */
867
+ proto.lansweeper.scanningconfig.v1.AssetRadar.prototype.toObject = function(opt_includeInstance) {
868
+ return proto.lansweeper.scanningconfig.v1.AssetRadar.toObject(opt_includeInstance, this);
869
+ };
870
+
871
+
872
+ /**
873
+ * Static version of the {@see toObject} method.
874
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
875
+ * the JSPB instance for transitional soy proto support:
876
+ * http://goto/soy-param-migration
877
+ * @param {!proto.lansweeper.scanningconfig.v1.AssetRadar} msg The msg instance to transform.
878
+ * @return {!Object}
879
+ * @suppress {unusedLocalVariables} f is only used for nested messages
880
+ */
881
+ proto.lansweeper.scanningconfig.v1.AssetRadar.toObject = function(includeInstance, msg) {
882
+ var f, obj = {
883
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
884
+ excludedInterfacesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
885
+ };
886
+
887
+ if (includeInstance) {
888
+ obj.$jspbMessageInstance = msg;
889
+ }
890
+ return obj;
891
+ };
892
+ }
893
+
894
+
895
+ /**
896
+ * Deserializes binary data (in protobuf wire format).
897
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
898
+ * @return {!proto.lansweeper.scanningconfig.v1.AssetRadar}
899
+ */
900
+ proto.lansweeper.scanningconfig.v1.AssetRadar.deserializeBinary = function(bytes) {
901
+ var reader = new jspb.BinaryReader(bytes);
902
+ var msg = new proto.lansweeper.scanningconfig.v1.AssetRadar;
903
+ return proto.lansweeper.scanningconfig.v1.AssetRadar.deserializeBinaryFromReader(msg, reader);
904
+ };
905
+
906
+
907
+ /**
908
+ * Deserializes binary data (in protobuf wire format) from the
909
+ * given reader into the given message object.
910
+ * @param {!proto.lansweeper.scanningconfig.v1.AssetRadar} msg The message object to deserialize into.
911
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
912
+ * @return {!proto.lansweeper.scanningconfig.v1.AssetRadar}
913
+ */
914
+ proto.lansweeper.scanningconfig.v1.AssetRadar.deserializeBinaryFromReader = function(msg, reader) {
915
+ while (reader.nextField()) {
916
+ if (reader.isEndGroup()) {
917
+ break;
918
+ }
919
+ var field = reader.getFieldNumber();
920
+ switch (field) {
921
+ case 1:
922
+ var value = /** @type {boolean} */ (reader.readBool());
923
+ msg.setEnabled(value);
924
+ break;
925
+ case 2:
926
+ var value = /** @type {string} */ (reader.readString());
927
+ msg.addExcludedInterfaces(value);
928
+ break;
929
+ default:
930
+ reader.skipField();
931
+ break;
932
+ }
933
+ }
934
+ return msg;
935
+ };
936
+
937
+
938
+ /**
939
+ * Serializes the message to binary data (in protobuf wire format).
940
+ * @return {!Uint8Array}
941
+ */
942
+ proto.lansweeper.scanningconfig.v1.AssetRadar.prototype.serializeBinary = function() {
943
+ var writer = new jspb.BinaryWriter();
944
+ proto.lansweeper.scanningconfig.v1.AssetRadar.serializeBinaryToWriter(this, writer);
945
+ return writer.getResultBuffer();
946
+ };
947
+
948
+
949
+ /**
950
+ * Serializes the given message to binary data (in protobuf wire
951
+ * format), writing to the given BinaryWriter.
952
+ * @param {!proto.lansweeper.scanningconfig.v1.AssetRadar} message
953
+ * @param {!jspb.BinaryWriter} writer
954
+ * @suppress {unusedLocalVariables} f is only used for nested messages
955
+ */
956
+ proto.lansweeper.scanningconfig.v1.AssetRadar.serializeBinaryToWriter = function(message, writer) {
957
+ var f = undefined;
958
+ f = message.getEnabled();
959
+ if (f) {
960
+ writer.writeBool(
961
+ 1,
962
+ f
963
+ );
964
+ }
965
+ f = message.getExcludedInterfacesList();
966
+ if (f.length > 0) {
967
+ writer.writeRepeatedString(
968
+ 2,
969
+ f
970
+ );
971
+ }
972
+ };
973
+
974
+
975
+ /**
976
+ * optional bool enabled = 1;
977
+ * @return {boolean}
978
+ */
979
+ proto.lansweeper.scanningconfig.v1.AssetRadar.prototype.getEnabled = function() {
980
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
981
+ };
982
+
983
+
984
+ /**
985
+ * @param {boolean} value
986
+ * @return {!proto.lansweeper.scanningconfig.v1.AssetRadar} returns this
987
+ */
988
+ proto.lansweeper.scanningconfig.v1.AssetRadar.prototype.setEnabled = function(value) {
989
+ return jspb.Message.setProto3BooleanField(this, 1, value);
990
+ };
991
+
992
+
993
+ /**
994
+ * repeated string excluded_interfaces = 2;
995
+ * @return {!Array<string>}
996
+ */
997
+ proto.lansweeper.scanningconfig.v1.AssetRadar.prototype.getExcludedInterfacesList = function() {
998
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
999
+ };
1000
+
1001
+
1002
+ /**
1003
+ * @param {!Array<string>} value
1004
+ * @return {!proto.lansweeper.scanningconfig.v1.AssetRadar} returns this
1005
+ */
1006
+ proto.lansweeper.scanningconfig.v1.AssetRadar.prototype.setExcludedInterfacesList = function(value) {
1007
+ return jspb.Message.setField(this, 2, value || []);
1008
+ };
1009
+
1010
+
1011
+ /**
1012
+ * @param {string} value
1013
+ * @param {number=} opt_index
1014
+ * @return {!proto.lansweeper.scanningconfig.v1.AssetRadar} returns this
1015
+ */
1016
+ proto.lansweeper.scanningconfig.v1.AssetRadar.prototype.addExcludedInterfaces = function(value, opt_index) {
1017
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * Clears the list making it empty but non-null.
1023
+ * @return {!proto.lansweeper.scanningconfig.v1.AssetRadar} returns this
1024
+ */
1025
+ proto.lansweeper.scanningconfig.v1.AssetRadar.prototype.clearExcludedInterfacesList = function() {
1026
+ return this.setExcludedInterfacesList([]);
1027
+ };
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1034
+ /**
1035
+ * Creates an object representation of this proto.
1036
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1037
+ * Optional fields that are not set will be set to undefined.
1038
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1039
+ * For the list of reserved names please see:
1040
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1041
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1042
+ * JSPB instance for transitional soy proto support:
1043
+ * http://goto/soy-param-migration
1044
+ * @return {!Object}
1045
+ */
1046
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.prototype.toObject = function(opt_includeInstance) {
1047
+ return proto.lansweeper.scanningconfig.v1.AutoUpdate.toObject(opt_includeInstance, this);
1048
+ };
1049
+
1050
+
1051
+ /**
1052
+ * Static version of the {@see toObject} method.
1053
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1054
+ * the JSPB instance for transitional soy proto support:
1055
+ * http://goto/soy-param-migration
1056
+ * @param {!proto.lansweeper.scanningconfig.v1.AutoUpdate} msg The msg instance to transform.
1057
+ * @return {!Object}
1058
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1059
+ */
1060
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.toObject = function(includeInstance, msg) {
1061
+ var f, obj = {
1062
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
1063
+ schedule: jspb.Message.getFieldWithDefault(msg, 2, "")
1064
+ };
1065
+
1066
+ if (includeInstance) {
1067
+ obj.$jspbMessageInstance = msg;
1068
+ }
1069
+ return obj;
1070
+ };
1071
+ }
1072
+
1073
+
1074
+ /**
1075
+ * Deserializes binary data (in protobuf wire format).
1076
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1077
+ * @return {!proto.lansweeper.scanningconfig.v1.AutoUpdate}
1078
+ */
1079
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.deserializeBinary = function(bytes) {
1080
+ var reader = new jspb.BinaryReader(bytes);
1081
+ var msg = new proto.lansweeper.scanningconfig.v1.AutoUpdate;
1082
+ return proto.lansweeper.scanningconfig.v1.AutoUpdate.deserializeBinaryFromReader(msg, reader);
1083
+ };
1084
+
1085
+
1086
+ /**
1087
+ * Deserializes binary data (in protobuf wire format) from the
1088
+ * given reader into the given message object.
1089
+ * @param {!proto.lansweeper.scanningconfig.v1.AutoUpdate} msg The message object to deserialize into.
1090
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1091
+ * @return {!proto.lansweeper.scanningconfig.v1.AutoUpdate}
1092
+ */
1093
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.deserializeBinaryFromReader = function(msg, reader) {
1094
+ while (reader.nextField()) {
1095
+ if (reader.isEndGroup()) {
1096
+ break;
1097
+ }
1098
+ var field = reader.getFieldNumber();
1099
+ switch (field) {
1100
+ case 1:
1101
+ var value = /** @type {boolean} */ (reader.readBool());
1102
+ msg.setEnabled(value);
1103
+ break;
1104
+ case 2:
1105
+ var value = /** @type {string} */ (reader.readString());
1106
+ msg.setSchedule(value);
1107
+ break;
1108
+ default:
1109
+ reader.skipField();
1110
+ break;
1111
+ }
1112
+ }
1113
+ return msg;
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * Serializes the message to binary data (in protobuf wire format).
1119
+ * @return {!Uint8Array}
1120
+ */
1121
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.prototype.serializeBinary = function() {
1122
+ var writer = new jspb.BinaryWriter();
1123
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.serializeBinaryToWriter(this, writer);
1124
+ return writer.getResultBuffer();
1125
+ };
1126
+
1127
+
1128
+ /**
1129
+ * Serializes the given message to binary data (in protobuf wire
1130
+ * format), writing to the given BinaryWriter.
1131
+ * @param {!proto.lansweeper.scanningconfig.v1.AutoUpdate} message
1132
+ * @param {!jspb.BinaryWriter} writer
1133
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1134
+ */
1135
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.serializeBinaryToWriter = function(message, writer) {
1136
+ var f = undefined;
1137
+ f = message.getEnabled();
1138
+ if (f) {
1139
+ writer.writeBool(
1140
+ 1,
1141
+ f
1142
+ );
1143
+ }
1144
+ f = message.getSchedule();
1145
+ if (f.length > 0) {
1146
+ writer.writeString(
1147
+ 2,
1148
+ f
1149
+ );
1150
+ }
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * optional bool enabled = 1;
1156
+ * @return {boolean}
1157
+ */
1158
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.prototype.getEnabled = function() {
1159
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1160
+ };
1161
+
1162
+
1163
+ /**
1164
+ * @param {boolean} value
1165
+ * @return {!proto.lansweeper.scanningconfig.v1.AutoUpdate} returns this
1166
+ */
1167
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.prototype.setEnabled = function(value) {
1168
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * optional string schedule = 2;
1174
+ * @return {string}
1175
+ */
1176
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.prototype.getSchedule = function() {
1177
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * @param {string} value
1183
+ * @return {!proto.lansweeper.scanningconfig.v1.AutoUpdate} returns this
1184
+ */
1185
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.prototype.setSchedule = function(value) {
1186
+ return jspb.Message.setProto3StringField(this, 2, value);
1187
+ };
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1194
+ /**
1195
+ * Creates an object representation of this proto.
1196
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1197
+ * Optional fields that are not set will be set to undefined.
1198
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1199
+ * For the list of reserved names please see:
1200
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1201
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1202
+ * JSPB instance for transitional soy proto support:
1203
+ * http://goto/soy-param-migration
1204
+ * @return {!Object}
1205
+ */
1206
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.toObject = function(opt_includeInstance) {
1207
+ return proto.lansweeper.scanningconfig.v1.OperationalConfig.toObject(opt_includeInstance, this);
1208
+ };
1209
+
1210
+
1211
+ /**
1212
+ * Static version of the {@see toObject} method.
1213
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1214
+ * the JSPB instance for transitional soy proto support:
1215
+ * http://goto/soy-param-migration
1216
+ * @param {!proto.lansweeper.scanningconfig.v1.OperationalConfig} msg The msg instance to transform.
1217
+ * @return {!Object}
1218
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1219
+ */
1220
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.toObject = function(includeInstance, msg) {
1221
+ var f, obj = {
1222
+ assetRadarConfig: (f = msg.getAssetRadarConfig()) && proto.lansweeper.scanningconfig.v1.AssetRadar.toObject(includeInstance, f),
1223
+ autoUpdateConfig: (f = msg.getAutoUpdateConfig()) && proto.lansweeper.scanningconfig.v1.AutoUpdate.toObject(includeInstance, f)
1224
+ };
1225
+
1226
+ if (includeInstance) {
1227
+ obj.$jspbMessageInstance = msg;
1228
+ }
1229
+ return obj;
1230
+ };
1231
+ }
1232
+
1233
+
1234
+ /**
1235
+ * Deserializes binary data (in protobuf wire format).
1236
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1237
+ * @return {!proto.lansweeper.scanningconfig.v1.OperationalConfig}
1238
+ */
1239
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.deserializeBinary = function(bytes) {
1240
+ var reader = new jspb.BinaryReader(bytes);
1241
+ var msg = new proto.lansweeper.scanningconfig.v1.OperationalConfig;
1242
+ return proto.lansweeper.scanningconfig.v1.OperationalConfig.deserializeBinaryFromReader(msg, reader);
1243
+ };
1244
+
1245
+
1246
+ /**
1247
+ * Deserializes binary data (in protobuf wire format) from the
1248
+ * given reader into the given message object.
1249
+ * @param {!proto.lansweeper.scanningconfig.v1.OperationalConfig} msg The message object to deserialize into.
1250
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1251
+ * @return {!proto.lansweeper.scanningconfig.v1.OperationalConfig}
1252
+ */
1253
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.deserializeBinaryFromReader = function(msg, reader) {
1254
+ while (reader.nextField()) {
1255
+ if (reader.isEndGroup()) {
1256
+ break;
1257
+ }
1258
+ var field = reader.getFieldNumber();
1259
+ switch (field) {
1260
+ case 1:
1261
+ var value = new proto.lansweeper.scanningconfig.v1.AssetRadar;
1262
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.AssetRadar.deserializeBinaryFromReader);
1263
+ msg.setAssetRadarConfig(value);
1264
+ break;
1265
+ case 2:
1266
+ var value = new proto.lansweeper.scanningconfig.v1.AutoUpdate;
1267
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.AutoUpdate.deserializeBinaryFromReader);
1268
+ msg.setAutoUpdateConfig(value);
1269
+ break;
1270
+ default:
1271
+ reader.skipField();
1272
+ break;
1273
+ }
1274
+ }
1275
+ return msg;
1276
+ };
1277
+
1278
+
1279
+ /**
1280
+ * Serializes the message to binary data (in protobuf wire format).
1281
+ * @return {!Uint8Array}
1282
+ */
1283
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.serializeBinary = function() {
1284
+ var writer = new jspb.BinaryWriter();
1285
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.serializeBinaryToWriter(this, writer);
1286
+ return writer.getResultBuffer();
1287
+ };
1288
+
1289
+
1290
+ /**
1291
+ * Serializes the given message to binary data (in protobuf wire
1292
+ * format), writing to the given BinaryWriter.
1293
+ * @param {!proto.lansweeper.scanningconfig.v1.OperationalConfig} message
1294
+ * @param {!jspb.BinaryWriter} writer
1295
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1296
+ */
1297
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.serializeBinaryToWriter = function(message, writer) {
1298
+ var f = undefined;
1299
+ f = message.getAssetRadarConfig();
1300
+ if (f != null) {
1301
+ writer.writeMessage(
1302
+ 1,
1303
+ f,
1304
+ proto.lansweeper.scanningconfig.v1.AssetRadar.serializeBinaryToWriter
1305
+ );
1306
+ }
1307
+ f = message.getAutoUpdateConfig();
1308
+ if (f != null) {
1309
+ writer.writeMessage(
1310
+ 2,
1311
+ f,
1312
+ proto.lansweeper.scanningconfig.v1.AutoUpdate.serializeBinaryToWriter
1313
+ );
1314
+ }
1315
+ };
1316
+
1317
+
1318
+ /**
1319
+ * optional AssetRadar asset_radar_config = 1;
1320
+ * @return {?proto.lansweeper.scanningconfig.v1.AssetRadar}
1321
+ */
1322
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.getAssetRadarConfig = function() {
1323
+ return /** @type{?proto.lansweeper.scanningconfig.v1.AssetRadar} */ (
1324
+ jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.AssetRadar, 1));
1325
+ };
1326
+
1327
+
1328
+ /**
1329
+ * @param {?proto.lansweeper.scanningconfig.v1.AssetRadar|undefined} value
1330
+ * @return {!proto.lansweeper.scanningconfig.v1.OperationalConfig} returns this
1331
+ */
1332
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.setAssetRadarConfig = function(value) {
1333
+ return jspb.Message.setWrapperField(this, 1, value);
1334
+ };
1335
+
1336
+
1337
+ /**
1338
+ * Clears the message field making it undefined.
1339
+ * @return {!proto.lansweeper.scanningconfig.v1.OperationalConfig} returns this
1340
+ */
1341
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.clearAssetRadarConfig = function() {
1342
+ return this.setAssetRadarConfig(undefined);
1343
+ };
1344
+
1345
+
1346
+ /**
1347
+ * Returns whether this field is set.
1348
+ * @return {boolean}
1349
+ */
1350
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.hasAssetRadarConfig = function() {
1351
+ return jspb.Message.getField(this, 1) != null;
1352
+ };
1353
+
1354
+
1355
+ /**
1356
+ * optional AutoUpdate auto_update_config = 2;
1357
+ * @return {?proto.lansweeper.scanningconfig.v1.AutoUpdate}
1358
+ */
1359
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.getAutoUpdateConfig = function() {
1360
+ return /** @type{?proto.lansweeper.scanningconfig.v1.AutoUpdate} */ (
1361
+ jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.AutoUpdate, 2));
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * @param {?proto.lansweeper.scanningconfig.v1.AutoUpdate|undefined} value
1367
+ * @return {!proto.lansweeper.scanningconfig.v1.OperationalConfig} returns this
1368
+ */
1369
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.setAutoUpdateConfig = function(value) {
1370
+ return jspb.Message.setWrapperField(this, 2, value);
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * Clears the message field making it undefined.
1376
+ * @return {!proto.lansweeper.scanningconfig.v1.OperationalConfig} returns this
1377
+ */
1378
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.clearAutoUpdateConfig = function() {
1379
+ return this.setAutoUpdateConfig(undefined);
1380
+ };
1381
+
1382
+
1383
+ /**
1384
+ * Returns whether this field is set.
1385
+ * @return {boolean}
1386
+ */
1387
+ proto.lansweeper.scanningconfig.v1.OperationalConfig.prototype.hasAutoUpdateConfig = function() {
1388
+ return jspb.Message.getField(this, 2) != null;
1389
+ };
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1396
+ /**
1397
+ * Creates an object representation of this proto.
1398
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1399
+ * Optional fields that are not set will be set to undefined.
1400
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1401
+ * For the list of reserved names please see:
1402
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1403
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1404
+ * JSPB instance for transitional soy proto support:
1405
+ * http://goto/soy-param-migration
1406
+ * @return {!Object}
1407
+ */
1408
+ proto.lansweeper.scanningconfig.v1.Trigger.prototype.toObject = function(opt_includeInstance) {
1409
+ return proto.lansweeper.scanningconfig.v1.Trigger.toObject(opt_includeInstance, this);
1410
+ };
1411
+
1412
+
1413
+ /**
1414
+ * Static version of the {@see toObject} method.
1415
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1416
+ * the JSPB instance for transitional soy proto support:
1417
+ * http://goto/soy-param-migration
1418
+ * @param {!proto.lansweeper.scanningconfig.v1.Trigger} msg The msg instance to transform.
1419
+ * @return {!Object}
1420
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1421
+ */
1422
+ proto.lansweeper.scanningconfig.v1.Trigger.toObject = function(includeInstance, msg) {
1423
+ var f, obj = {
1424
+ cronExpr: jspb.Message.getFieldWithDefault(msg, 1, "")
1425
+ };
1426
+
1427
+ if (includeInstance) {
1428
+ obj.$jspbMessageInstance = msg;
1429
+ }
1430
+ return obj;
1431
+ };
1432
+ }
1433
+
1434
+
1435
+ /**
1436
+ * Deserializes binary data (in protobuf wire format).
1437
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1438
+ * @return {!proto.lansweeper.scanningconfig.v1.Trigger}
1439
+ */
1440
+ proto.lansweeper.scanningconfig.v1.Trigger.deserializeBinary = function(bytes) {
1441
+ var reader = new jspb.BinaryReader(bytes);
1442
+ var msg = new proto.lansweeper.scanningconfig.v1.Trigger;
1443
+ return proto.lansweeper.scanningconfig.v1.Trigger.deserializeBinaryFromReader(msg, reader);
1444
+ };
1445
+
1446
+
1447
+ /**
1448
+ * Deserializes binary data (in protobuf wire format) from the
1449
+ * given reader into the given message object.
1450
+ * @param {!proto.lansweeper.scanningconfig.v1.Trigger} msg The message object to deserialize into.
1451
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1452
+ * @return {!proto.lansweeper.scanningconfig.v1.Trigger}
1453
+ */
1454
+ proto.lansweeper.scanningconfig.v1.Trigger.deserializeBinaryFromReader = function(msg, reader) {
1455
+ while (reader.nextField()) {
1456
+ if (reader.isEndGroup()) {
1457
+ break;
1458
+ }
1459
+ var field = reader.getFieldNumber();
1460
+ switch (field) {
1461
+ case 1:
1462
+ var value = /** @type {string} */ (reader.readString());
1463
+ msg.setCronExpr(value);
1464
+ break;
1465
+ default:
1466
+ reader.skipField();
1467
+ break;
1468
+ }
1469
+ }
1470
+ return msg;
1471
+ };
1472
+
1473
+
1474
+ /**
1475
+ * Serializes the message to binary data (in protobuf wire format).
1476
+ * @return {!Uint8Array}
1477
+ */
1478
+ proto.lansweeper.scanningconfig.v1.Trigger.prototype.serializeBinary = function() {
1479
+ var writer = new jspb.BinaryWriter();
1480
+ proto.lansweeper.scanningconfig.v1.Trigger.serializeBinaryToWriter(this, writer);
1481
+ return writer.getResultBuffer();
1482
+ };
1483
+
1484
+
1485
+ /**
1486
+ * Serializes the given message to binary data (in protobuf wire
1487
+ * format), writing to the given BinaryWriter.
1488
+ * @param {!proto.lansweeper.scanningconfig.v1.Trigger} message
1489
+ * @param {!jspb.BinaryWriter} writer
1490
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1491
+ */
1492
+ proto.lansweeper.scanningconfig.v1.Trigger.serializeBinaryToWriter = function(message, writer) {
1493
+ var f = undefined;
1494
+ f = message.getCronExpr();
1495
+ if (f.length > 0) {
1496
+ writer.writeString(
1497
+ 1,
1498
+ f
1499
+ );
1500
+ }
1501
+ };
1502
+
1503
+
1504
+ /**
1505
+ * optional string cron_expr = 1;
1506
+ * @return {string}
1507
+ */
1508
+ proto.lansweeper.scanningconfig.v1.Trigger.prototype.getCronExpr = function() {
1509
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1510
+ };
1511
+
1512
+
1513
+ /**
1514
+ * @param {string} value
1515
+ * @return {!proto.lansweeper.scanningconfig.v1.Trigger} returns this
1516
+ */
1517
+ proto.lansweeper.scanningconfig.v1.Trigger.prototype.setCronExpr = function(value) {
1518
+ return jspb.Message.setProto3StringField(this, 1, value);
1519
+ };
1520
+
1521
+
1522
+
1523
+ /**
1524
+ * List of repeated fields within this message type.
1525
+ * @private {!Array<number>}
1526
+ * @const
1527
+ */
1528
+ proto.lansweeper.scanningconfig.v1.Action.repeatedFields_ = [1,3];
1529
+
1530
+ /**
1531
+ * Oneof group definitions for this message. Each group defines the field
1532
+ * numbers belonging to that group. When of these fields' value is set, all
1533
+ * other fields in the group are cleared. During deserialization, if multiple
1534
+ * fields are encountered for a group, only the last value seen will be kept.
1535
+ * @private {!Array<!Array<number>>}
1536
+ * @const
1537
+ */
1538
+ proto.lansweeper.scanningconfig.v1.Action.oneofGroups_ = [[4]];
1539
+
1540
+ /**
1541
+ * @enum {number}
1542
+ */
1543
+ proto.lansweeper.scanningconfig.v1.Action.DefinitionCase = {
1544
+ DEFINITION_NOT_SET: 0,
1545
+ AGENT: 4
1546
+ };
1547
+
1548
+ /**
1549
+ * @return {proto.lansweeper.scanningconfig.v1.Action.DefinitionCase}
1550
+ */
1551
+ proto.lansweeper.scanningconfig.v1.Action.prototype.getDefinitionCase = function() {
1552
+ return /** @type {proto.lansweeper.scanningconfig.v1.Action.DefinitionCase} */(jspb.Message.computeOneofCase(this, proto.lansweeper.scanningconfig.v1.Action.oneofGroups_[0]));
1553
+ };
1554
+
1555
+
1556
+
1557
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1558
+ /**
1559
+ * Creates an object representation of this proto.
1560
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1561
+ * Optional fields that are not set will be set to undefined.
1562
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1563
+ * For the list of reserved names please see:
1564
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1565
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1566
+ * JSPB instance for transitional soy proto support:
1567
+ * http://goto/soy-param-migration
1568
+ * @return {!Object}
1569
+ */
1570
+ proto.lansweeper.scanningconfig.v1.Action.prototype.toObject = function(opt_includeInstance) {
1571
+ return proto.lansweeper.scanningconfig.v1.Action.toObject(opt_includeInstance, this);
1572
+ };
1573
+
1574
+
1575
+ /**
1576
+ * Static version of the {@see toObject} method.
1577
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1578
+ * the JSPB instance for transitional soy proto support:
1579
+ * http://goto/soy-param-migration
1580
+ * @param {!proto.lansweeper.scanningconfig.v1.Action} msg The msg instance to transform.
1581
+ * @return {!Object}
1582
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1583
+ */
1584
+ proto.lansweeper.scanningconfig.v1.Action.toObject = function(includeInstance, msg) {
1585
+ var f, obj = {
1586
+ triggersList: jspb.Message.toObjectList(msg.getTriggersList(),
1587
+ proto.lansweeper.scanningconfig.v1.Trigger.toObject, includeInstance),
1588
+ actionType: jspb.Message.getFieldWithDefault(msg, 2, 0),
1589
+ credentialsList: jspb.Message.toObjectList(msg.getCredentialsList(),
1590
+ proto.lansweeper.scanningconfig.v1.Credential.toObject, includeInstance),
1591
+ agent: (f = msg.getAgent()) && proto.lansweeper.scanningconfig.v1.Agent.toObject(includeInstance, f)
1592
+ };
1593
+
1594
+ if (includeInstance) {
1595
+ obj.$jspbMessageInstance = msg;
1596
+ }
1597
+ return obj;
1598
+ };
1599
+ }
1600
+
1601
+
1602
+ /**
1603
+ * Deserializes binary data (in protobuf wire format).
1604
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1605
+ * @return {!proto.lansweeper.scanningconfig.v1.Action}
1606
+ */
1607
+ proto.lansweeper.scanningconfig.v1.Action.deserializeBinary = function(bytes) {
1608
+ var reader = new jspb.BinaryReader(bytes);
1609
+ var msg = new proto.lansweeper.scanningconfig.v1.Action;
1610
+ return proto.lansweeper.scanningconfig.v1.Action.deserializeBinaryFromReader(msg, reader);
1611
+ };
1612
+
1613
+
1614
+ /**
1615
+ * Deserializes binary data (in protobuf wire format) from the
1616
+ * given reader into the given message object.
1617
+ * @param {!proto.lansweeper.scanningconfig.v1.Action} msg The message object to deserialize into.
1618
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1619
+ * @return {!proto.lansweeper.scanningconfig.v1.Action}
1620
+ */
1621
+ proto.lansweeper.scanningconfig.v1.Action.deserializeBinaryFromReader = function(msg, reader) {
1622
+ while (reader.nextField()) {
1623
+ if (reader.isEndGroup()) {
1624
+ break;
1625
+ }
1626
+ var field = reader.getFieldNumber();
1627
+ switch (field) {
1628
+ case 1:
1629
+ var value = new proto.lansweeper.scanningconfig.v1.Trigger;
1630
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.Trigger.deserializeBinaryFromReader);
1631
+ msg.addTriggers(value);
1632
+ break;
1633
+ case 2:
1634
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.Action.ActionType} */ (reader.readEnum());
1635
+ msg.setActionType(value);
1636
+ break;
1637
+ case 3:
1638
+ var value = new proto.lansweeper.scanningconfig.v1.Credential;
1639
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader);
1640
+ msg.addCredentials(value);
1641
+ break;
1642
+ case 4:
1643
+ var value = new proto.lansweeper.scanningconfig.v1.Agent;
1644
+ reader.readMessage(value,proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader);
1645
+ msg.setAgent(value);
1646
+ break;
1647
+ default:
1648
+ reader.skipField();
1649
+ break;
1650
+ }
1651
+ }
1652
+ return msg;
1653
+ };
1654
+
1655
+
1656
+ /**
1657
+ * Serializes the message to binary data (in protobuf wire format).
1658
+ * @return {!Uint8Array}
1659
+ */
1660
+ proto.lansweeper.scanningconfig.v1.Action.prototype.serializeBinary = function() {
1661
+ var writer = new jspb.BinaryWriter();
1662
+ proto.lansweeper.scanningconfig.v1.Action.serializeBinaryToWriter(this, writer);
1663
+ return writer.getResultBuffer();
1664
+ };
1665
+
1666
+
1667
+ /**
1668
+ * Serializes the given message to binary data (in protobuf wire
1669
+ * format), writing to the given BinaryWriter.
1670
+ * @param {!proto.lansweeper.scanningconfig.v1.Action} message
1671
+ * @param {!jspb.BinaryWriter} writer
1672
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1673
+ */
1674
+ proto.lansweeper.scanningconfig.v1.Action.serializeBinaryToWriter = function(message, writer) {
1675
+ var f = undefined;
1676
+ f = message.getTriggersList();
1677
+ if (f.length > 0) {
1678
+ writer.writeRepeatedMessage(
1679
+ 1,
1680
+ f,
1681
+ proto.lansweeper.scanningconfig.v1.Trigger.serializeBinaryToWriter
1682
+ );
1683
+ }
1684
+ f = message.getActionType();
1685
+ if (f !== 0.0) {
1686
+ writer.writeEnum(
1687
+ 2,
1688
+ f
1689
+ );
1690
+ }
1691
+ f = message.getCredentialsList();
1692
+ if (f.length > 0) {
1693
+ writer.writeRepeatedMessage(
1694
+ 3,
1695
+ f,
1696
+ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter
1697
+ );
1698
+ }
1699
+ f = message.getAgent();
1700
+ if (f != null) {
1701
+ writer.writeMessage(
1702
+ 4,
1703
+ f,
1704
+ proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter
1705
+ );
1706
+ }
1707
+ };
1708
+
1709
+
1710
+ /**
1711
+ * @enum {number}
1712
+ */
1713
+ proto.lansweeper.scanningconfig.v1.Action.ActionType = {
1714
+ UNSPECIFIED: 0,
1715
+ AGENT: 1
1716
+ };
1717
+
1718
+ /**
1719
+ * repeated Trigger triggers = 1;
1720
+ * @return {!Array<!proto.lansweeper.scanningconfig.v1.Trigger>}
1721
+ */
1722
+ proto.lansweeper.scanningconfig.v1.Action.prototype.getTriggersList = function() {
1723
+ return /** @type{!Array<!proto.lansweeper.scanningconfig.v1.Trigger>} */ (
1724
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.scanningconfig.v1.Trigger, 1));
1725
+ };
1726
+
1727
+
1728
+ /**
1729
+ * @param {!Array<!proto.lansweeper.scanningconfig.v1.Trigger>} value
1730
+ * @return {!proto.lansweeper.scanningconfig.v1.Action} returns this
1731
+ */
1732
+ proto.lansweeper.scanningconfig.v1.Action.prototype.setTriggersList = function(value) {
1733
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1734
+ };
1735
+
1736
+
1737
+ /**
1738
+ * @param {!proto.lansweeper.scanningconfig.v1.Trigger=} opt_value
1739
+ * @param {number=} opt_index
1740
+ * @return {!proto.lansweeper.scanningconfig.v1.Trigger}
1741
+ */
1742
+ proto.lansweeper.scanningconfig.v1.Action.prototype.addTriggers = function(opt_value, opt_index) {
1743
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.scanningconfig.v1.Trigger, opt_index);
1744
+ };
1745
+
1746
+
1747
+ /**
1748
+ * Clears the list making it empty but non-null.
1749
+ * @return {!proto.lansweeper.scanningconfig.v1.Action} returns this
1750
+ */
1751
+ proto.lansweeper.scanningconfig.v1.Action.prototype.clearTriggersList = function() {
1752
+ return this.setTriggersList([]);
1753
+ };
1754
+
1755
+
1756
+ /**
1757
+ * optional ActionType action_type = 2;
1758
+ * @return {!proto.lansweeper.scanningconfig.v1.Action.ActionType}
1759
+ */
1760
+ proto.lansweeper.scanningconfig.v1.Action.prototype.getActionType = function() {
1761
+ return /** @type {!proto.lansweeper.scanningconfig.v1.Action.ActionType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1762
+ };
1763
+
1764
+
1765
+ /**
1766
+ * @param {!proto.lansweeper.scanningconfig.v1.Action.ActionType} value
1767
+ * @return {!proto.lansweeper.scanningconfig.v1.Action} returns this
1768
+ */
1769
+ proto.lansweeper.scanningconfig.v1.Action.prototype.setActionType = function(value) {
1770
+ return jspb.Message.setProto3EnumField(this, 2, value);
1771
+ };
1772
+
1773
+
1774
+ /**
1775
+ * repeated Credential credentials = 3;
1776
+ * @return {!Array<!proto.lansweeper.scanningconfig.v1.Credential>}
1777
+ */
1778
+ proto.lansweeper.scanningconfig.v1.Action.prototype.getCredentialsList = function() {
1779
+ return /** @type{!Array<!proto.lansweeper.scanningconfig.v1.Credential>} */ (
1780
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.scanningconfig.v1.Credential, 3));
1781
+ };
1782
+
1783
+
1784
+ /**
1785
+ * @param {!Array<!proto.lansweeper.scanningconfig.v1.Credential>} value
1786
+ * @return {!proto.lansweeper.scanningconfig.v1.Action} returns this
1787
+ */
1788
+ proto.lansweeper.scanningconfig.v1.Action.prototype.setCredentialsList = function(value) {
1789
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
1790
+ };
1791
+
1792
+
1793
+ /**
1794
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential=} opt_value
1795
+ * @param {number=} opt_index
1796
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential}
1797
+ */
1798
+ proto.lansweeper.scanningconfig.v1.Action.prototype.addCredentials = function(opt_value, opt_index) {
1799
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.lansweeper.scanningconfig.v1.Credential, opt_index);
1800
+ };
1801
+
1802
+
1803
+ /**
1804
+ * Clears the list making it empty but non-null.
1805
+ * @return {!proto.lansweeper.scanningconfig.v1.Action} returns this
1806
+ */
1807
+ proto.lansweeper.scanningconfig.v1.Action.prototype.clearCredentialsList = function() {
1808
+ return this.setCredentialsList([]);
1809
+ };
1810
+
1811
+
1812
+ /**
1813
+ * optional Agent agent = 4;
1814
+ * @return {?proto.lansweeper.scanningconfig.v1.Agent}
1815
+ */
1816
+ proto.lansweeper.scanningconfig.v1.Action.prototype.getAgent = function() {
1817
+ return /** @type{?proto.lansweeper.scanningconfig.v1.Agent} */ (
1818
+ jspb.Message.getWrapperField(this, proto.lansweeper.scanningconfig.v1.Agent, 4));
1819
+ };
1820
+
1821
+
1822
+ /**
1823
+ * @param {?proto.lansweeper.scanningconfig.v1.Agent|undefined} value
1824
+ * @return {!proto.lansweeper.scanningconfig.v1.Action} returns this
1825
+ */
1826
+ proto.lansweeper.scanningconfig.v1.Action.prototype.setAgent = function(value) {
1827
+ return jspb.Message.setOneofWrapperField(this, 4, proto.lansweeper.scanningconfig.v1.Action.oneofGroups_[0], value);
1828
+ };
1829
+
1830
+
1831
+ /**
1832
+ * Clears the message field making it undefined.
1833
+ * @return {!proto.lansweeper.scanningconfig.v1.Action} returns this
1834
+ */
1835
+ proto.lansweeper.scanningconfig.v1.Action.prototype.clearAgent = function() {
1836
+ return this.setAgent(undefined);
1837
+ };
1838
+
1839
+
1840
+ /**
1841
+ * Returns whether this field is set.
1842
+ * @return {boolean}
1843
+ */
1844
+ proto.lansweeper.scanningconfig.v1.Action.prototype.hasAgent = function() {
1845
+ return jspb.Message.getField(this, 4) != null;
1846
+ };
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1853
+ /**
1854
+ * Creates an object representation of this proto.
1855
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1856
+ * Optional fields that are not set will be set to undefined.
1857
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1858
+ * For the list of reserved names please see:
1859
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1860
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1861
+ * JSPB instance for transitional soy proto support:
1862
+ * http://goto/soy-param-migration
1863
+ * @return {!Object}
1864
+ */
1865
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.toObject = function(opt_includeInstance) {
1866
+ return proto.lansweeper.scanningconfig.v1.Agent.toObject(opt_includeInstance, this);
1867
+ };
1868
+
1869
+
1870
+ /**
1871
+ * Static version of the {@see toObject} method.
1872
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1873
+ * the JSPB instance for transitional soy proto support:
1874
+ * http://goto/soy-param-migration
1875
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent} msg The msg instance to transform.
1876
+ * @return {!Object}
1877
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1878
+ */
1879
+ proto.lansweeper.scanningconfig.v1.Agent.toObject = function(includeInstance, msg) {
1880
+ var f, obj = {
1881
+ scanFocus: jspb.Message.getFieldWithDefault(msg, 1, 0)
1882
+ };
1883
+
1884
+ if (includeInstance) {
1885
+ obj.$jspbMessageInstance = msg;
1886
+ }
1887
+ return obj;
1888
+ };
1889
+ }
1890
+
1891
+
1892
+ /**
1893
+ * Deserializes binary data (in protobuf wire format).
1894
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1895
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent}
1896
+ */
1897
+ proto.lansweeper.scanningconfig.v1.Agent.deserializeBinary = function(bytes) {
1898
+ var reader = new jspb.BinaryReader(bytes);
1899
+ var msg = new proto.lansweeper.scanningconfig.v1.Agent;
1900
+ return proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader(msg, reader);
1901
+ };
1902
+
1903
+
1904
+ /**
1905
+ * Deserializes binary data (in protobuf wire format) from the
1906
+ * given reader into the given message object.
1907
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent} msg The message object to deserialize into.
1908
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1909
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent}
1910
+ */
1911
+ proto.lansweeper.scanningconfig.v1.Agent.deserializeBinaryFromReader = function(msg, reader) {
1912
+ while (reader.nextField()) {
1913
+ if (reader.isEndGroup()) {
1914
+ break;
1915
+ }
1916
+ var field = reader.getFieldNumber();
1917
+ switch (field) {
1918
+ case 1:
1919
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} */ (reader.readEnum());
1920
+ msg.setScanFocus(value);
1921
+ break;
1922
+ default:
1923
+ reader.skipField();
1924
+ break;
1925
+ }
1926
+ }
1927
+ return msg;
1928
+ };
1929
+
1930
+
1931
+ /**
1932
+ * Serializes the message to binary data (in protobuf wire format).
1933
+ * @return {!Uint8Array}
1934
+ */
1935
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.serializeBinary = function() {
1936
+ var writer = new jspb.BinaryWriter();
1937
+ proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter(this, writer);
1938
+ return writer.getResultBuffer();
1939
+ };
1940
+
1941
+
1942
+ /**
1943
+ * Serializes the given message to binary data (in protobuf wire
1944
+ * format), writing to the given BinaryWriter.
1945
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent} message
1946
+ * @param {!jspb.BinaryWriter} writer
1947
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1948
+ */
1949
+ proto.lansweeper.scanningconfig.v1.Agent.serializeBinaryToWriter = function(message, writer) {
1950
+ var f = undefined;
1951
+ f = message.getScanFocus();
1952
+ if (f !== 0.0) {
1953
+ writer.writeEnum(
1954
+ 1,
1955
+ f
1956
+ );
1957
+ }
1958
+ };
1959
+
1960
+
1961
+ /**
1962
+ * @enum {number}
1963
+ */
1964
+ proto.lansweeper.scanningconfig.v1.Agent.ScanFocus = {
1965
+ ALL: 0,
1966
+ USERS: 1,
1967
+ INVENTORY: 2
1968
+ };
1969
+
1970
+ /**
1971
+ * optional ScanFocus scan_focus = 1;
1972
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus}
1973
+ */
1974
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.getScanFocus = function() {
1975
+ return /** @type {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1976
+ };
1977
+
1978
+
1979
+ /**
1980
+ * @param {!proto.lansweeper.scanningconfig.v1.Agent.ScanFocus} value
1981
+ * @return {!proto.lansweeper.scanningconfig.v1.Agent} returns this
1982
+ */
1983
+ proto.lansweeper.scanningconfig.v1.Agent.prototype.setScanFocus = function(value) {
1984
+ return jspb.Message.setProto3EnumField(this, 1, value);
1985
+ };
1986
+
1987
+
1988
+
1989
+
1990
+
1991
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1992
+ /**
1993
+ * Creates an object representation of this proto.
1994
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1995
+ * Optional fields that are not set will be set to undefined.
1996
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1997
+ * For the list of reserved names please see:
1998
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1999
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2000
+ * JSPB instance for transitional soy proto support:
2001
+ * http://goto/soy-param-migration
2002
+ * @return {!Object}
2003
+ */
2004
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.toObject = function(opt_includeInstance) {
2005
+ return proto.lansweeper.scanningconfig.v1.Credential.toObject(opt_includeInstance, this);
2006
+ };
2007
+
2008
+
2009
+ /**
2010
+ * Static version of the {@see toObject} method.
2011
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2012
+ * the JSPB instance for transitional soy proto support:
2013
+ * http://goto/soy-param-migration
2014
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential} msg The msg instance to transform.
2015
+ * @return {!Object}
2016
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2017
+ */
2018
+ proto.lansweeper.scanningconfig.v1.Credential.toObject = function(includeInstance, msg) {
2019
+ var f, obj = {
2020
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0)
2021
+ };
2022
+
2023
+ if (includeInstance) {
2024
+ obj.$jspbMessageInstance = msg;
2025
+ }
2026
+ return obj;
2027
+ };
2028
+ }
2029
+
2030
+
2031
+ /**
2032
+ * Deserializes binary data (in protobuf wire format).
2033
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2034
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential}
2035
+ */
2036
+ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinary = function(bytes) {
2037
+ var reader = new jspb.BinaryReader(bytes);
2038
+ var msg = new proto.lansweeper.scanningconfig.v1.Credential;
2039
+ return proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader(msg, reader);
2040
+ };
2041
+
2042
+
2043
+ /**
2044
+ * Deserializes binary data (in protobuf wire format) from the
2045
+ * given reader into the given message object.
2046
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential} msg The message object to deserialize into.
2047
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2048
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential}
2049
+ */
2050
+ proto.lansweeper.scanningconfig.v1.Credential.deserializeBinaryFromReader = function(msg, reader) {
2051
+ while (reader.nextField()) {
2052
+ if (reader.isEndGroup()) {
2053
+ break;
2054
+ }
2055
+ var field = reader.getFieldNumber();
2056
+ switch (field) {
2057
+ case 1:
2058
+ var value = /** @type {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} */ (reader.readEnum());
2059
+ msg.setType(value);
2060
+ break;
2061
+ default:
2062
+ reader.skipField();
2063
+ break;
2064
+ }
2065
+ }
2066
+ return msg;
2067
+ };
2068
+
2069
+
2070
+ /**
2071
+ * Serializes the message to binary data (in protobuf wire format).
2072
+ * @return {!Uint8Array}
2073
+ */
2074
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.serializeBinary = function() {
2075
+ var writer = new jspb.BinaryWriter();
2076
+ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter(this, writer);
2077
+ return writer.getResultBuffer();
2078
+ };
2079
+
2080
+
2081
+ /**
2082
+ * Serializes the given message to binary data (in protobuf wire
2083
+ * format), writing to the given BinaryWriter.
2084
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential} message
2085
+ * @param {!jspb.BinaryWriter} writer
2086
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2087
+ */
2088
+ proto.lansweeper.scanningconfig.v1.Credential.serializeBinaryToWriter = function(message, writer) {
2089
+ var f = undefined;
2090
+ f = message.getType();
2091
+ if (f !== 0.0) {
2092
+ writer.writeEnum(
2093
+ 1,
2094
+ f
2095
+ );
2096
+ }
2097
+ };
2098
+
2099
+
2100
+ /**
2101
+ * @enum {number}
2102
+ */
2103
+ proto.lansweeper.scanningconfig.v1.Credential.CredentialType = {
2104
+ UNSPECIFIED: 0
2105
+ };
2106
+
2107
+ /**
2108
+ * optional CredentialType type = 1;
2109
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType}
2110
+ */
2111
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.getType = function() {
2112
+ return /** @type {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2113
+ };
2114
+
2115
+
2116
+ /**
2117
+ * @param {!proto.lansweeper.scanningconfig.v1.Credential.CredentialType} value
2118
+ * @return {!proto.lansweeper.scanningconfig.v1.Credential} returns this
2119
+ */
2120
+ proto.lansweeper.scanningconfig.v1.Credential.prototype.setType = function(value) {
2121
+ return jspb.Message.setProto3EnumField(this, 1, value);
2122
+ };
2123
+
2124
+
2125
+ goog.object.extend(exports, proto.lansweeper.scanningconfig.v1);