@lansweeper/multitenant-api-grpc 0.0.9 → 0.0.11

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.
@@ -1,3275 +0,0 @@
1
- // source: installs.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
- var sites_pb = require('./sites_pb.js');
19
- goog.object.extend(proto, sites_pb);
20
- goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallRequest', null, global);
21
- goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallResponse', null, global);
22
- goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest', null, global);
23
- goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse', null, global);
24
- goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest', null, global);
25
- goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountResponse', null, global);
26
- goog.exportSymbol('proto.lansweeper.multitenant.v1.Install', null, global);
27
- goog.exportSymbol('proto.lansweeper.multitenant.v1.InstallCredentials', null, global);
28
- goog.exportSymbol('proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest', null, global);
29
- goog.exportSymbol('proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse', null, global);
30
- goog.exportSymbol('proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest', null, global);
31
- goog.exportSymbol('proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse', null, global);
32
- goog.exportSymbol('proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest', null, global);
33
- goog.exportSymbol('proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings', null, global);
34
- goog.exportSymbol('proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse', null, global);
35
- /**
36
- * Generated by JsPbCodeGenerator.
37
- * @param {Array=} opt_data Optional initial data array, typically from a
38
- * server response, or constructed directly in Javascript. The array is used
39
- * in place and becomes part of the constructed object. It is not cloned.
40
- * If no data is provided, the constructed object will be empty, but still
41
- * valid.
42
- * @extends {jspb.Message}
43
- * @constructor
44
- */
45
- proto.lansweeper.multitenant.v1.Install = function(opt_data) {
46
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
47
- };
48
- goog.inherits(proto.lansweeper.multitenant.v1.Install, jspb.Message);
49
- if (goog.DEBUG && !COMPILED) {
50
- /**
51
- * @public
52
- * @override
53
- */
54
- proto.lansweeper.multitenant.v1.Install.displayName = 'proto.lansweeper.multitenant.v1.Install';
55
- }
56
- /**
57
- * Generated by JsPbCodeGenerator.
58
- * @param {Array=} opt_data Optional initial data array, typically from a
59
- * server response, or constructed directly in Javascript. The array is used
60
- * in place and becomes part of the constructed object. It is not cloned.
61
- * If no data is provided, the constructed object will be empty, but still
62
- * valid.
63
- * @extends {jspb.Message}
64
- * @constructor
65
- */
66
- proto.lansweeper.multitenant.v1.InstallCredentials = function(opt_data) {
67
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
68
- };
69
- goog.inherits(proto.lansweeper.multitenant.v1.InstallCredentials, jspb.Message);
70
- if (goog.DEBUG && !COMPILED) {
71
- /**
72
- * @public
73
- * @override
74
- */
75
- proto.lansweeper.multitenant.v1.InstallCredentials.displayName = 'proto.lansweeper.multitenant.v1.InstallCredentials';
76
- }
77
- /**
78
- * Generated by JsPbCodeGenerator.
79
- * @param {Array=} opt_data Optional initial data array, typically from a
80
- * server response, or constructed directly in Javascript. The array is used
81
- * in place and becomes part of the constructed object. It is not cloned.
82
- * If no data is provided, the constructed object will be empty, but still
83
- * valid.
84
- * @extends {jspb.Message}
85
- * @constructor
86
- */
87
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest = function(opt_data) {
88
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
89
- };
90
- goog.inherits(proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest, jspb.Message);
91
- if (goog.DEBUG && !COMPILED) {
92
- /**
93
- * @public
94
- * @override
95
- */
96
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.displayName = 'proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest';
97
- }
98
- /**
99
- * Generated by JsPbCodeGenerator.
100
- * @param {Array=} opt_data Optional initial data array, typically from a
101
- * server response, or constructed directly in Javascript. The array is used
102
- * in place and becomes part of the constructed object. It is not cloned.
103
- * If no data is provided, the constructed object will be empty, but still
104
- * valid.
105
- * @extends {jspb.Message}
106
- * @constructor
107
- */
108
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse = function(opt_data) {
109
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
- };
111
- goog.inherits(proto.lansweeper.multitenant.v1.GetInstallsCountResponse, jspb.Message);
112
- if (goog.DEBUG && !COMPILED) {
113
- /**
114
- * @public
115
- * @override
116
- */
117
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse.displayName = 'proto.lansweeper.multitenant.v1.GetInstallsCountResponse';
118
- }
119
- /**
120
- * Generated by JsPbCodeGenerator.
121
- * @param {Array=} opt_data Optional initial data array, typically from a
122
- * server response, or constructed directly in Javascript. The array is used
123
- * in place and becomes part of the constructed object. It is not cloned.
124
- * If no data is provided, the constructed object will be empty, but still
125
- * valid.
126
- * @extends {jspb.Message}
127
- * @constructor
128
- */
129
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest = function(opt_data) {
130
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
- };
132
- goog.inherits(proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest, jspb.Message);
133
- if (goog.DEBUG && !COMPILED) {
134
- /**
135
- * @public
136
- * @override
137
- */
138
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.displayName = 'proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest';
139
- }
140
- /**
141
- * Generated by JsPbCodeGenerator.
142
- * @param {Array=} opt_data Optional initial data array, typically from a
143
- * server response, or constructed directly in Javascript. The array is used
144
- * in place and becomes part of the constructed object. It is not cloned.
145
- * If no data is provided, the constructed object will be empty, but still
146
- * valid.
147
- * @extends {jspb.Message}
148
- * @constructor
149
- */
150
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse = function(opt_data) {
151
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
152
- };
153
- goog.inherits(proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse, jspb.Message);
154
- if (goog.DEBUG && !COMPILED) {
155
- /**
156
- * @public
157
- * @override
158
- */
159
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.displayName = 'proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse';
160
- }
161
- /**
162
- * Generated by JsPbCodeGenerator.
163
- * @param {Array=} opt_data Optional initial data array, typically from a
164
- * server response, or constructed directly in Javascript. The array is used
165
- * in place and becomes part of the constructed object. It is not cloned.
166
- * If no data is provided, the constructed object will be empty, but still
167
- * valid.
168
- * @extends {jspb.Message}
169
- * @constructor
170
- */
171
- proto.lansweeper.multitenant.v1.CreateInstallRequest = function(opt_data) {
172
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
173
- };
174
- goog.inherits(proto.lansweeper.multitenant.v1.CreateInstallRequest, jspb.Message);
175
- if (goog.DEBUG && !COMPILED) {
176
- /**
177
- * @public
178
- * @override
179
- */
180
- proto.lansweeper.multitenant.v1.CreateInstallRequest.displayName = 'proto.lansweeper.multitenant.v1.CreateInstallRequest';
181
- }
182
- /**
183
- * Generated by JsPbCodeGenerator.
184
- * @param {Array=} opt_data Optional initial data array, typically from a
185
- * server response, or constructed directly in Javascript. The array is used
186
- * in place and becomes part of the constructed object. It is not cloned.
187
- * If no data is provided, the constructed object will be empty, but still
188
- * valid.
189
- * @extends {jspb.Message}
190
- * @constructor
191
- */
192
- proto.lansweeper.multitenant.v1.CreateInstallResponse = function(opt_data) {
193
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
194
- };
195
- goog.inherits(proto.lansweeper.multitenant.v1.CreateInstallResponse, jspb.Message);
196
- if (goog.DEBUG && !COMPILED) {
197
- /**
198
- * @public
199
- * @override
200
- */
201
- proto.lansweeper.multitenant.v1.CreateInstallResponse.displayName = 'proto.lansweeper.multitenant.v1.CreateInstallResponse';
202
- }
203
- /**
204
- * Generated by JsPbCodeGenerator.
205
- * @param {Array=} opt_data Optional initial data array, typically from a
206
- * server response, or constructed directly in Javascript. The array is used
207
- * in place and becomes part of the constructed object. It is not cloned.
208
- * If no data is provided, the constructed object will be empty, but still
209
- * valid.
210
- * @extends {jspb.Message}
211
- * @constructor
212
- */
213
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest = function(opt_data) {
214
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
215
- };
216
- goog.inherits(proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest, jspb.Message);
217
- if (goog.DEBUG && !COMPILED) {
218
- /**
219
- * @public
220
- * @override
221
- */
222
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.displayName = 'proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest';
223
- }
224
- /**
225
- * Generated by JsPbCodeGenerator.
226
- * @param {Array=} opt_data Optional initial data array, typically from a
227
- * server response, or constructed directly in Javascript. The array is used
228
- * in place and becomes part of the constructed object. It is not cloned.
229
- * If no data is provided, the constructed object will be empty, but still
230
- * valid.
231
- * @extends {jspb.Message}
232
- * @constructor
233
- */
234
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings = function(opt_data) {
235
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
236
- };
237
- goog.inherits(proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings, jspb.Message);
238
- if (goog.DEBUG && !COMPILED) {
239
- /**
240
- * @public
241
- * @override
242
- */
243
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.displayName = 'proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings';
244
- }
245
- /**
246
- * Generated by JsPbCodeGenerator.
247
- * @param {Array=} opt_data Optional initial data array, typically from a
248
- * server response, or constructed directly in Javascript. The array is used
249
- * in place and becomes part of the constructed object. It is not cloned.
250
- * If no data is provided, the constructed object will be empty, but still
251
- * valid.
252
- * @extends {jspb.Message}
253
- * @constructor
254
- */
255
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse = function(opt_data) {
256
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
257
- };
258
- goog.inherits(proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse, jspb.Message);
259
- if (goog.DEBUG && !COMPILED) {
260
- /**
261
- * @public
262
- * @override
263
- */
264
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.displayName = 'proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse';
265
- }
266
- /**
267
- * Generated by JsPbCodeGenerator.
268
- * @param {Array=} opt_data Optional initial data array, typically from a
269
- * server response, or constructed directly in Javascript. The array is used
270
- * in place and becomes part of the constructed object. It is not cloned.
271
- * If no data is provided, the constructed object will be empty, but still
272
- * valid.
273
- * @extends {jspb.Message}
274
- * @constructor
275
- */
276
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest = function(opt_data) {
277
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
278
- };
279
- goog.inherits(proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest, jspb.Message);
280
- if (goog.DEBUG && !COMPILED) {
281
- /**
282
- * @public
283
- * @override
284
- */
285
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.displayName = 'proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest';
286
- }
287
- /**
288
- * Generated by JsPbCodeGenerator.
289
- * @param {Array=} opt_data Optional initial data array, typically from a
290
- * server response, or constructed directly in Javascript. The array is used
291
- * in place and becomes part of the constructed object. It is not cloned.
292
- * If no data is provided, the constructed object will be empty, but still
293
- * valid.
294
- * @extends {jspb.Message}
295
- * @constructor
296
- */
297
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse = function(opt_data) {
298
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
299
- };
300
- goog.inherits(proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse, jspb.Message);
301
- if (goog.DEBUG && !COMPILED) {
302
- /**
303
- * @public
304
- * @override
305
- */
306
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.displayName = 'proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse';
307
- }
308
- /**
309
- * Generated by JsPbCodeGenerator.
310
- * @param {Array=} opt_data Optional initial data array, typically from a
311
- * server response, or constructed directly in Javascript. The array is used
312
- * in place and becomes part of the constructed object. It is not cloned.
313
- * If no data is provided, the constructed object will be empty, but still
314
- * valid.
315
- * @extends {jspb.Message}
316
- * @constructor
317
- */
318
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest = function(opt_data) {
319
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
320
- };
321
- goog.inherits(proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest, jspb.Message);
322
- if (goog.DEBUG && !COMPILED) {
323
- /**
324
- * @public
325
- * @override
326
- */
327
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.displayName = 'proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest';
328
- }
329
- /**
330
- * Generated by JsPbCodeGenerator.
331
- * @param {Array=} opt_data Optional initial data array, typically from a
332
- * server response, or constructed directly in Javascript. The array is used
333
- * in place and becomes part of the constructed object. It is not cloned.
334
- * If no data is provided, the constructed object will be empty, but still
335
- * valid.
336
- * @extends {jspb.Message}
337
- * @constructor
338
- */
339
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse = function(opt_data) {
340
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
341
- };
342
- goog.inherits(proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse, jspb.Message);
343
- if (goog.DEBUG && !COMPILED) {
344
- /**
345
- * @public
346
- * @override
347
- */
348
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.displayName = 'proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse';
349
- }
350
-
351
-
352
-
353
- if (jspb.Message.GENERATE_TO_OBJECT) {
354
- /**
355
- * Creates an object representation of this proto.
356
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
357
- * Optional fields that are not set will be set to undefined.
358
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
359
- * For the list of reserved names please see:
360
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
361
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
362
- * JSPB instance for transitional soy proto support:
363
- * http://goto/soy-param-migration
364
- * @return {!Object}
365
- */
366
- proto.lansweeper.multitenant.v1.Install.prototype.toObject = function(opt_includeInstance) {
367
- return proto.lansweeper.multitenant.v1.Install.toObject(opt_includeInstance, this);
368
- };
369
-
370
-
371
- /**
372
- * Static version of the {@see toObject} method.
373
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
374
- * the JSPB instance for transitional soy proto support:
375
- * http://goto/soy-param-migration
376
- * @param {!proto.lansweeper.multitenant.v1.Install} msg The msg instance to transform.
377
- * @return {!Object}
378
- * @suppress {unusedLocalVariables} f is only used for nested messages
379
- */
380
- proto.lansweeper.multitenant.v1.Install.toObject = function(includeInstance, msg) {
381
- var f, obj = {
382
- id: jspb.Message.getFieldWithDefault(msg, 1, ""),
383
- siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
384
- displayName: jspb.Message.getFieldWithDefault(msg, 3, ""),
385
- description: jspb.Message.getFieldWithDefault(msg, 4, ""),
386
- status: jspb.Message.getFieldWithDefault(msg, 5, ""),
387
- fqdn: jspb.Message.getFieldWithDefault(msg, 6, ""),
388
- createdById: jspb.Message.getFieldWithDefault(msg, 7, "")
389
- };
390
-
391
- if (includeInstance) {
392
- obj.$jspbMessageInstance = msg;
393
- }
394
- return obj;
395
- };
396
- }
397
-
398
-
399
- /**
400
- * Deserializes binary data (in protobuf wire format).
401
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
402
- * @return {!proto.lansweeper.multitenant.v1.Install}
403
- */
404
- proto.lansweeper.multitenant.v1.Install.deserializeBinary = function(bytes) {
405
- var reader = new jspb.BinaryReader(bytes);
406
- var msg = new proto.lansweeper.multitenant.v1.Install;
407
- return proto.lansweeper.multitenant.v1.Install.deserializeBinaryFromReader(msg, reader);
408
- };
409
-
410
-
411
- /**
412
- * Deserializes binary data (in protobuf wire format) from the
413
- * given reader into the given message object.
414
- * @param {!proto.lansweeper.multitenant.v1.Install} msg The message object to deserialize into.
415
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
416
- * @return {!proto.lansweeper.multitenant.v1.Install}
417
- */
418
- proto.lansweeper.multitenant.v1.Install.deserializeBinaryFromReader = function(msg, reader) {
419
- while (reader.nextField()) {
420
- if (reader.isEndGroup()) {
421
- break;
422
- }
423
- var field = reader.getFieldNumber();
424
- switch (field) {
425
- case 1:
426
- var value = /** @type {string} */ (reader.readString());
427
- msg.setId(value);
428
- break;
429
- case 2:
430
- var value = /** @type {string} */ (reader.readString());
431
- msg.setSiteId(value);
432
- break;
433
- case 3:
434
- var value = /** @type {string} */ (reader.readString());
435
- msg.setDisplayName(value);
436
- break;
437
- case 4:
438
- var value = /** @type {string} */ (reader.readString());
439
- msg.setDescription(value);
440
- break;
441
- case 5:
442
- var value = /** @type {string} */ (reader.readString());
443
- msg.setStatus(value);
444
- break;
445
- case 6:
446
- var value = /** @type {string} */ (reader.readString());
447
- msg.setFqdn(value);
448
- break;
449
- case 7:
450
- var value = /** @type {string} */ (reader.readString());
451
- msg.setCreatedById(value);
452
- break;
453
- default:
454
- reader.skipField();
455
- break;
456
- }
457
- }
458
- return msg;
459
- };
460
-
461
-
462
- /**
463
- * Serializes the message to binary data (in protobuf wire format).
464
- * @return {!Uint8Array}
465
- */
466
- proto.lansweeper.multitenant.v1.Install.prototype.serializeBinary = function() {
467
- var writer = new jspb.BinaryWriter();
468
- proto.lansweeper.multitenant.v1.Install.serializeBinaryToWriter(this, writer);
469
- return writer.getResultBuffer();
470
- };
471
-
472
-
473
- /**
474
- * Serializes the given message to binary data (in protobuf wire
475
- * format), writing to the given BinaryWriter.
476
- * @param {!proto.lansweeper.multitenant.v1.Install} message
477
- * @param {!jspb.BinaryWriter} writer
478
- * @suppress {unusedLocalVariables} f is only used for nested messages
479
- */
480
- proto.lansweeper.multitenant.v1.Install.serializeBinaryToWriter = function(message, writer) {
481
- var f = undefined;
482
- f = message.getId();
483
- if (f.length > 0) {
484
- writer.writeString(
485
- 1,
486
- f
487
- );
488
- }
489
- f = message.getSiteId();
490
- if (f.length > 0) {
491
- writer.writeString(
492
- 2,
493
- f
494
- );
495
- }
496
- f = message.getDisplayName();
497
- if (f.length > 0) {
498
- writer.writeString(
499
- 3,
500
- f
501
- );
502
- }
503
- f = message.getDescription();
504
- if (f.length > 0) {
505
- writer.writeString(
506
- 4,
507
- f
508
- );
509
- }
510
- f = message.getStatus();
511
- if (f.length > 0) {
512
- writer.writeString(
513
- 5,
514
- f
515
- );
516
- }
517
- f = message.getFqdn();
518
- if (f.length > 0) {
519
- writer.writeString(
520
- 6,
521
- f
522
- );
523
- }
524
- f = message.getCreatedById();
525
- if (f.length > 0) {
526
- writer.writeString(
527
- 7,
528
- f
529
- );
530
- }
531
- };
532
-
533
-
534
- /**
535
- * optional string id = 1;
536
- * @return {string}
537
- */
538
- proto.lansweeper.multitenant.v1.Install.prototype.getId = function() {
539
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
540
- };
541
-
542
-
543
- /**
544
- * @param {string} value
545
- * @return {!proto.lansweeper.multitenant.v1.Install} returns this
546
- */
547
- proto.lansweeper.multitenant.v1.Install.prototype.setId = function(value) {
548
- return jspb.Message.setProto3StringField(this, 1, value);
549
- };
550
-
551
-
552
- /**
553
- * optional string site_id = 2;
554
- * @return {string}
555
- */
556
- proto.lansweeper.multitenant.v1.Install.prototype.getSiteId = function() {
557
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
558
- };
559
-
560
-
561
- /**
562
- * @param {string} value
563
- * @return {!proto.lansweeper.multitenant.v1.Install} returns this
564
- */
565
- proto.lansweeper.multitenant.v1.Install.prototype.setSiteId = function(value) {
566
- return jspb.Message.setProto3StringField(this, 2, value);
567
- };
568
-
569
-
570
- /**
571
- * optional string display_name = 3;
572
- * @return {string}
573
- */
574
- proto.lansweeper.multitenant.v1.Install.prototype.getDisplayName = function() {
575
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
576
- };
577
-
578
-
579
- /**
580
- * @param {string} value
581
- * @return {!proto.lansweeper.multitenant.v1.Install} returns this
582
- */
583
- proto.lansweeper.multitenant.v1.Install.prototype.setDisplayName = function(value) {
584
- return jspb.Message.setProto3StringField(this, 3, value);
585
- };
586
-
587
-
588
- /**
589
- * optional string description = 4;
590
- * @return {string}
591
- */
592
- proto.lansweeper.multitenant.v1.Install.prototype.getDescription = function() {
593
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
594
- };
595
-
596
-
597
- /**
598
- * @param {string} value
599
- * @return {!proto.lansweeper.multitenant.v1.Install} returns this
600
- */
601
- proto.lansweeper.multitenant.v1.Install.prototype.setDescription = function(value) {
602
- return jspb.Message.setProto3StringField(this, 4, value);
603
- };
604
-
605
-
606
- /**
607
- * optional string status = 5;
608
- * @return {string}
609
- */
610
- proto.lansweeper.multitenant.v1.Install.prototype.getStatus = function() {
611
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
612
- };
613
-
614
-
615
- /**
616
- * @param {string} value
617
- * @return {!proto.lansweeper.multitenant.v1.Install} returns this
618
- */
619
- proto.lansweeper.multitenant.v1.Install.prototype.setStatus = function(value) {
620
- return jspb.Message.setProto3StringField(this, 5, value);
621
- };
622
-
623
-
624
- /**
625
- * optional string fqdn = 6;
626
- * @return {string}
627
- */
628
- proto.lansweeper.multitenant.v1.Install.prototype.getFqdn = function() {
629
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
630
- };
631
-
632
-
633
- /**
634
- * @param {string} value
635
- * @return {!proto.lansweeper.multitenant.v1.Install} returns this
636
- */
637
- proto.lansweeper.multitenant.v1.Install.prototype.setFqdn = function(value) {
638
- return jspb.Message.setProto3StringField(this, 6, value);
639
- };
640
-
641
-
642
- /**
643
- * optional string created_by_id = 7;
644
- * @return {string}
645
- */
646
- proto.lansweeper.multitenant.v1.Install.prototype.getCreatedById = function() {
647
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
648
- };
649
-
650
-
651
- /**
652
- * @param {string} value
653
- * @return {!proto.lansweeper.multitenant.v1.Install} returns this
654
- */
655
- proto.lansweeper.multitenant.v1.Install.prototype.setCreatedById = function(value) {
656
- return jspb.Message.setProto3StringField(this, 7, value);
657
- };
658
-
659
-
660
-
661
-
662
-
663
- if (jspb.Message.GENERATE_TO_OBJECT) {
664
- /**
665
- * Creates an object representation of this proto.
666
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
667
- * Optional fields that are not set will be set to undefined.
668
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
669
- * For the list of reserved names please see:
670
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
671
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
672
- * JSPB instance for transitional soy proto support:
673
- * http://goto/soy-param-migration
674
- * @return {!Object}
675
- */
676
- proto.lansweeper.multitenant.v1.InstallCredentials.prototype.toObject = function(opt_includeInstance) {
677
- return proto.lansweeper.multitenant.v1.InstallCredentials.toObject(opt_includeInstance, this);
678
- };
679
-
680
-
681
- /**
682
- * Static version of the {@see toObject} method.
683
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
684
- * the JSPB instance for transitional soy proto support:
685
- * http://goto/soy-param-migration
686
- * @param {!proto.lansweeper.multitenant.v1.InstallCredentials} msg The msg instance to transform.
687
- * @return {!Object}
688
- * @suppress {unusedLocalVariables} f is only used for nested messages
689
- */
690
- proto.lansweeper.multitenant.v1.InstallCredentials.toObject = function(includeInstance, msg) {
691
- var f, obj = {
692
- clienId: jspb.Message.getFieldWithDefault(msg, 1, ""),
693
- clientSecret: jspb.Message.getFieldWithDefault(msg, 2, "")
694
- };
695
-
696
- if (includeInstance) {
697
- obj.$jspbMessageInstance = msg;
698
- }
699
- return obj;
700
- };
701
- }
702
-
703
-
704
- /**
705
- * Deserializes binary data (in protobuf wire format).
706
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
707
- * @return {!proto.lansweeper.multitenant.v1.InstallCredentials}
708
- */
709
- proto.lansweeper.multitenant.v1.InstallCredentials.deserializeBinary = function(bytes) {
710
- var reader = new jspb.BinaryReader(bytes);
711
- var msg = new proto.lansweeper.multitenant.v1.InstallCredentials;
712
- return proto.lansweeper.multitenant.v1.InstallCredentials.deserializeBinaryFromReader(msg, reader);
713
- };
714
-
715
-
716
- /**
717
- * Deserializes binary data (in protobuf wire format) from the
718
- * given reader into the given message object.
719
- * @param {!proto.lansweeper.multitenant.v1.InstallCredentials} msg The message object to deserialize into.
720
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
721
- * @return {!proto.lansweeper.multitenant.v1.InstallCredentials}
722
- */
723
- proto.lansweeper.multitenant.v1.InstallCredentials.deserializeBinaryFromReader = function(msg, reader) {
724
- while (reader.nextField()) {
725
- if (reader.isEndGroup()) {
726
- break;
727
- }
728
- var field = reader.getFieldNumber();
729
- switch (field) {
730
- case 1:
731
- var value = /** @type {string} */ (reader.readString());
732
- msg.setClienId(value);
733
- break;
734
- case 2:
735
- var value = /** @type {string} */ (reader.readString());
736
- msg.setClientSecret(value);
737
- break;
738
- default:
739
- reader.skipField();
740
- break;
741
- }
742
- }
743
- return msg;
744
- };
745
-
746
-
747
- /**
748
- * Serializes the message to binary data (in protobuf wire format).
749
- * @return {!Uint8Array}
750
- */
751
- proto.lansweeper.multitenant.v1.InstallCredentials.prototype.serializeBinary = function() {
752
- var writer = new jspb.BinaryWriter();
753
- proto.lansweeper.multitenant.v1.InstallCredentials.serializeBinaryToWriter(this, writer);
754
- return writer.getResultBuffer();
755
- };
756
-
757
-
758
- /**
759
- * Serializes the given message to binary data (in protobuf wire
760
- * format), writing to the given BinaryWriter.
761
- * @param {!proto.lansweeper.multitenant.v1.InstallCredentials} message
762
- * @param {!jspb.BinaryWriter} writer
763
- * @suppress {unusedLocalVariables} f is only used for nested messages
764
- */
765
- proto.lansweeper.multitenant.v1.InstallCredentials.serializeBinaryToWriter = function(message, writer) {
766
- var f = undefined;
767
- f = message.getClienId();
768
- if (f.length > 0) {
769
- writer.writeString(
770
- 1,
771
- f
772
- );
773
- }
774
- f = message.getClientSecret();
775
- if (f.length > 0) {
776
- writer.writeString(
777
- 2,
778
- f
779
- );
780
- }
781
- };
782
-
783
-
784
- /**
785
- * optional string clien_id = 1;
786
- * @return {string}
787
- */
788
- proto.lansweeper.multitenant.v1.InstallCredentials.prototype.getClienId = function() {
789
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
790
- };
791
-
792
-
793
- /**
794
- * @param {string} value
795
- * @return {!proto.lansweeper.multitenant.v1.InstallCredentials} returns this
796
- */
797
- proto.lansweeper.multitenant.v1.InstallCredentials.prototype.setClienId = function(value) {
798
- return jspb.Message.setProto3StringField(this, 1, value);
799
- };
800
-
801
-
802
- /**
803
- * optional string client_secret = 2;
804
- * @return {string}
805
- */
806
- proto.lansweeper.multitenant.v1.InstallCredentials.prototype.getClientSecret = function() {
807
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
808
- };
809
-
810
-
811
- /**
812
- * @param {string} value
813
- * @return {!proto.lansweeper.multitenant.v1.InstallCredentials} returns this
814
- */
815
- proto.lansweeper.multitenant.v1.InstallCredentials.prototype.setClientSecret = function(value) {
816
- return jspb.Message.setProto3StringField(this, 2, value);
817
- };
818
-
819
-
820
-
821
-
822
-
823
- if (jspb.Message.GENERATE_TO_OBJECT) {
824
- /**
825
- * Creates an object representation of this proto.
826
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
827
- * Optional fields that are not set will be set to undefined.
828
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
829
- * For the list of reserved names please see:
830
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
831
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
832
- * JSPB instance for transitional soy proto support:
833
- * http://goto/soy-param-migration
834
- * @return {!Object}
835
- */
836
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.prototype.toObject = function(opt_includeInstance) {
837
- return proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.toObject(opt_includeInstance, this);
838
- };
839
-
840
-
841
- /**
842
- * Static version of the {@see toObject} method.
843
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
844
- * the JSPB instance for transitional soy proto support:
845
- * http://goto/soy-param-migration
846
- * @param {!proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest} msg The msg instance to transform.
847
- * @return {!Object}
848
- * @suppress {unusedLocalVariables} f is only used for nested messages
849
- */
850
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.toObject = function(includeInstance, msg) {
851
- var f, obj = {
852
- siteId: jspb.Message.getFieldWithDefault(msg, 1, "")
853
- };
854
-
855
- if (includeInstance) {
856
- obj.$jspbMessageInstance = msg;
857
- }
858
- return obj;
859
- };
860
- }
861
-
862
-
863
- /**
864
- * Deserializes binary data (in protobuf wire format).
865
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
866
- * @return {!proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest}
867
- */
868
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.deserializeBinary = function(bytes) {
869
- var reader = new jspb.BinaryReader(bytes);
870
- var msg = new proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest;
871
- return proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.deserializeBinaryFromReader(msg, reader);
872
- };
873
-
874
-
875
- /**
876
- * Deserializes binary data (in protobuf wire format) from the
877
- * given reader into the given message object.
878
- * @param {!proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest} msg The message object to deserialize into.
879
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
880
- * @return {!proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest}
881
- */
882
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.deserializeBinaryFromReader = function(msg, reader) {
883
- while (reader.nextField()) {
884
- if (reader.isEndGroup()) {
885
- break;
886
- }
887
- var field = reader.getFieldNumber();
888
- switch (field) {
889
- case 1:
890
- var value = /** @type {string} */ (reader.readString());
891
- msg.setSiteId(value);
892
- break;
893
- default:
894
- reader.skipField();
895
- break;
896
- }
897
- }
898
- return msg;
899
- };
900
-
901
-
902
- /**
903
- * Serializes the message to binary data (in protobuf wire format).
904
- * @return {!Uint8Array}
905
- */
906
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.prototype.serializeBinary = function() {
907
- var writer = new jspb.BinaryWriter();
908
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.serializeBinaryToWriter(this, writer);
909
- return writer.getResultBuffer();
910
- };
911
-
912
-
913
- /**
914
- * Serializes the given message to binary data (in protobuf wire
915
- * format), writing to the given BinaryWriter.
916
- * @param {!proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest} message
917
- * @param {!jspb.BinaryWriter} writer
918
- * @suppress {unusedLocalVariables} f is only used for nested messages
919
- */
920
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.serializeBinaryToWriter = function(message, writer) {
921
- var f = undefined;
922
- f = message.getSiteId();
923
- if (f.length > 0) {
924
- writer.writeString(
925
- 1,
926
- f
927
- );
928
- }
929
- };
930
-
931
-
932
- /**
933
- * optional string site_id = 1;
934
- * @return {string}
935
- */
936
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.prototype.getSiteId = function() {
937
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
938
- };
939
-
940
-
941
- /**
942
- * @param {string} value
943
- * @return {!proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest} returns this
944
- */
945
- proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest.prototype.setSiteId = function(value) {
946
- return jspb.Message.setProto3StringField(this, 1, value);
947
- };
948
-
949
-
950
-
951
-
952
-
953
- if (jspb.Message.GENERATE_TO_OBJECT) {
954
- /**
955
- * Creates an object representation of this proto.
956
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
957
- * Optional fields that are not set will be set to undefined.
958
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
959
- * For the list of reserved names please see:
960
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
961
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
962
- * JSPB instance for transitional soy proto support:
963
- * http://goto/soy-param-migration
964
- * @return {!Object}
965
- */
966
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse.prototype.toObject = function(opt_includeInstance) {
967
- return proto.lansweeper.multitenant.v1.GetInstallsCountResponse.toObject(opt_includeInstance, this);
968
- };
969
-
970
-
971
- /**
972
- * Static version of the {@see toObject} method.
973
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
974
- * the JSPB instance for transitional soy proto support:
975
- * http://goto/soy-param-migration
976
- * @param {!proto.lansweeper.multitenant.v1.GetInstallsCountResponse} msg The msg instance to transform.
977
- * @return {!Object}
978
- * @suppress {unusedLocalVariables} f is only used for nested messages
979
- */
980
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse.toObject = function(includeInstance, msg) {
981
- var f, obj = {
982
- count: jspb.Message.getFieldWithDefault(msg, 1, 0)
983
- };
984
-
985
- if (includeInstance) {
986
- obj.$jspbMessageInstance = msg;
987
- }
988
- return obj;
989
- };
990
- }
991
-
992
-
993
- /**
994
- * Deserializes binary data (in protobuf wire format).
995
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
996
- * @return {!proto.lansweeper.multitenant.v1.GetInstallsCountResponse}
997
- */
998
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse.deserializeBinary = function(bytes) {
999
- var reader = new jspb.BinaryReader(bytes);
1000
- var msg = new proto.lansweeper.multitenant.v1.GetInstallsCountResponse;
1001
- return proto.lansweeper.multitenant.v1.GetInstallsCountResponse.deserializeBinaryFromReader(msg, reader);
1002
- };
1003
-
1004
-
1005
- /**
1006
- * Deserializes binary data (in protobuf wire format) from the
1007
- * given reader into the given message object.
1008
- * @param {!proto.lansweeper.multitenant.v1.GetInstallsCountResponse} msg The message object to deserialize into.
1009
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1010
- * @return {!proto.lansweeper.multitenant.v1.GetInstallsCountResponse}
1011
- */
1012
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse.deserializeBinaryFromReader = function(msg, reader) {
1013
- while (reader.nextField()) {
1014
- if (reader.isEndGroup()) {
1015
- break;
1016
- }
1017
- var field = reader.getFieldNumber();
1018
- switch (field) {
1019
- case 1:
1020
- var value = /** @type {number} */ (reader.readInt64());
1021
- msg.setCount(value);
1022
- break;
1023
- default:
1024
- reader.skipField();
1025
- break;
1026
- }
1027
- }
1028
- return msg;
1029
- };
1030
-
1031
-
1032
- /**
1033
- * Serializes the message to binary data (in protobuf wire format).
1034
- * @return {!Uint8Array}
1035
- */
1036
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse.prototype.serializeBinary = function() {
1037
- var writer = new jspb.BinaryWriter();
1038
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse.serializeBinaryToWriter(this, writer);
1039
- return writer.getResultBuffer();
1040
- };
1041
-
1042
-
1043
- /**
1044
- * Serializes the given message to binary data (in protobuf wire
1045
- * format), writing to the given BinaryWriter.
1046
- * @param {!proto.lansweeper.multitenant.v1.GetInstallsCountResponse} message
1047
- * @param {!jspb.BinaryWriter} writer
1048
- * @suppress {unusedLocalVariables} f is only used for nested messages
1049
- */
1050
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse.serializeBinaryToWriter = function(message, writer) {
1051
- var f = undefined;
1052
- f = message.getCount();
1053
- if (f !== 0) {
1054
- writer.writeInt64(
1055
- 1,
1056
- f
1057
- );
1058
- }
1059
- };
1060
-
1061
-
1062
- /**
1063
- * optional int64 count = 1;
1064
- * @return {number}
1065
- */
1066
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse.prototype.getCount = function() {
1067
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1068
- };
1069
-
1070
-
1071
- /**
1072
- * @param {number} value
1073
- * @return {!proto.lansweeper.multitenant.v1.GetInstallsCountResponse} returns this
1074
- */
1075
- proto.lansweeper.multitenant.v1.GetInstallsCountResponse.prototype.setCount = function(value) {
1076
- return jspb.Message.setProto3IntField(this, 1, value);
1077
- };
1078
-
1079
-
1080
-
1081
-
1082
-
1083
- if (jspb.Message.GENERATE_TO_OBJECT) {
1084
- /**
1085
- * Creates an object representation of this proto.
1086
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1087
- * Optional fields that are not set will be set to undefined.
1088
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1089
- * For the list of reserved names please see:
1090
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1091
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1092
- * JSPB instance for transitional soy proto support:
1093
- * http://goto/soy-param-migration
1094
- * @return {!Object}
1095
- */
1096
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.prototype.toObject = function(opt_includeInstance) {
1097
- return proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.toObject(opt_includeInstance, this);
1098
- };
1099
-
1100
-
1101
- /**
1102
- * Static version of the {@see toObject} method.
1103
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1104
- * the JSPB instance for transitional soy proto support:
1105
- * http://goto/soy-param-migration
1106
- * @param {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest} msg The msg instance to transform.
1107
- * @return {!Object}
1108
- * @suppress {unusedLocalVariables} f is only used for nested messages
1109
- */
1110
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.toObject = function(includeInstance, msg) {
1111
- var f, obj = {
1112
- clientId: jspb.Message.getFieldWithDefault(msg, 1, "")
1113
- };
1114
-
1115
- if (includeInstance) {
1116
- obj.$jspbMessageInstance = msg;
1117
- }
1118
- return obj;
1119
- };
1120
- }
1121
-
1122
-
1123
- /**
1124
- * Deserializes binary data (in protobuf wire format).
1125
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1126
- * @return {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest}
1127
- */
1128
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.deserializeBinary = function(bytes) {
1129
- var reader = new jspb.BinaryReader(bytes);
1130
- var msg = new proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest;
1131
- return proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.deserializeBinaryFromReader(msg, reader);
1132
- };
1133
-
1134
-
1135
- /**
1136
- * Deserializes binary data (in protobuf wire format) from the
1137
- * given reader into the given message object.
1138
- * @param {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest} msg The message object to deserialize into.
1139
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1140
- * @return {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest}
1141
- */
1142
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1143
- while (reader.nextField()) {
1144
- if (reader.isEndGroup()) {
1145
- break;
1146
- }
1147
- var field = reader.getFieldNumber();
1148
- switch (field) {
1149
- case 1:
1150
- var value = /** @type {string} */ (reader.readString());
1151
- msg.setClientId(value);
1152
- break;
1153
- default:
1154
- reader.skipField();
1155
- break;
1156
- }
1157
- }
1158
- return msg;
1159
- };
1160
-
1161
-
1162
- /**
1163
- * Serializes the message to binary data (in protobuf wire format).
1164
- * @return {!Uint8Array}
1165
- */
1166
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.prototype.serializeBinary = function() {
1167
- var writer = new jspb.BinaryWriter();
1168
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.serializeBinaryToWriter(this, writer);
1169
- return writer.getResultBuffer();
1170
- };
1171
-
1172
-
1173
- /**
1174
- * Serializes the given message to binary data (in protobuf wire
1175
- * format), writing to the given BinaryWriter.
1176
- * @param {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest} message
1177
- * @param {!jspb.BinaryWriter} writer
1178
- * @suppress {unusedLocalVariables} f is only used for nested messages
1179
- */
1180
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.serializeBinaryToWriter = function(message, writer) {
1181
- var f = undefined;
1182
- f = message.getClientId();
1183
- if (f.length > 0) {
1184
- writer.writeString(
1185
- 1,
1186
- f
1187
- );
1188
- }
1189
- };
1190
-
1191
-
1192
- /**
1193
- * optional string client_id = 1;
1194
- * @return {string}
1195
- */
1196
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.prototype.getClientId = function() {
1197
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1198
- };
1199
-
1200
-
1201
- /**
1202
- * @param {string} value
1203
- * @return {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest} returns this
1204
- */
1205
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest.prototype.setClientId = function(value) {
1206
- return jspb.Message.setProto3StringField(this, 1, value);
1207
- };
1208
-
1209
-
1210
-
1211
-
1212
-
1213
- if (jspb.Message.GENERATE_TO_OBJECT) {
1214
- /**
1215
- * Creates an object representation of this proto.
1216
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1217
- * Optional fields that are not set will be set to undefined.
1218
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1219
- * For the list of reserved names please see:
1220
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1221
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1222
- * JSPB instance for transitional soy proto support:
1223
- * http://goto/soy-param-migration
1224
- * @return {!Object}
1225
- */
1226
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.prototype.toObject = function(opt_includeInstance) {
1227
- return proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.toObject(opt_includeInstance, this);
1228
- };
1229
-
1230
-
1231
- /**
1232
- * Static version of the {@see toObject} method.
1233
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1234
- * the JSPB instance for transitional soy proto support:
1235
- * http://goto/soy-param-migration
1236
- * @param {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse} msg The msg instance to transform.
1237
- * @return {!Object}
1238
- * @suppress {unusedLocalVariables} f is only used for nested messages
1239
- */
1240
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.toObject = function(includeInstance, msg) {
1241
- var f, obj = {
1242
- install: (f = msg.getInstall()) && proto.lansweeper.multitenant.v1.Install.toObject(includeInstance, f)
1243
- };
1244
-
1245
- if (includeInstance) {
1246
- obj.$jspbMessageInstance = msg;
1247
- }
1248
- return obj;
1249
- };
1250
- }
1251
-
1252
-
1253
- /**
1254
- * Deserializes binary data (in protobuf wire format).
1255
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1256
- * @return {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse}
1257
- */
1258
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.deserializeBinary = function(bytes) {
1259
- var reader = new jspb.BinaryReader(bytes);
1260
- var msg = new proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse;
1261
- return proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.deserializeBinaryFromReader(msg, reader);
1262
- };
1263
-
1264
-
1265
- /**
1266
- * Deserializes binary data (in protobuf wire format) from the
1267
- * given reader into the given message object.
1268
- * @param {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse} msg The message object to deserialize into.
1269
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1270
- * @return {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse}
1271
- */
1272
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.deserializeBinaryFromReader = function(msg, reader) {
1273
- while (reader.nextField()) {
1274
- if (reader.isEndGroup()) {
1275
- break;
1276
- }
1277
- var field = reader.getFieldNumber();
1278
- switch (field) {
1279
- case 1:
1280
- var value = new proto.lansweeper.multitenant.v1.Install;
1281
- reader.readMessage(value,proto.lansweeper.multitenant.v1.Install.deserializeBinaryFromReader);
1282
- msg.setInstall(value);
1283
- break;
1284
- default:
1285
- reader.skipField();
1286
- break;
1287
- }
1288
- }
1289
- return msg;
1290
- };
1291
-
1292
-
1293
- /**
1294
- * Serializes the message to binary data (in protobuf wire format).
1295
- * @return {!Uint8Array}
1296
- */
1297
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.prototype.serializeBinary = function() {
1298
- var writer = new jspb.BinaryWriter();
1299
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.serializeBinaryToWriter(this, writer);
1300
- return writer.getResultBuffer();
1301
- };
1302
-
1303
-
1304
- /**
1305
- * Serializes the given message to binary data (in protobuf wire
1306
- * format), writing to the given BinaryWriter.
1307
- * @param {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse} message
1308
- * @param {!jspb.BinaryWriter} writer
1309
- * @suppress {unusedLocalVariables} f is only used for nested messages
1310
- */
1311
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.serializeBinaryToWriter = function(message, writer) {
1312
- var f = undefined;
1313
- f = message.getInstall();
1314
- if (f != null) {
1315
- writer.writeMessage(
1316
- 1,
1317
- f,
1318
- proto.lansweeper.multitenant.v1.Install.serializeBinaryToWriter
1319
- );
1320
- }
1321
- };
1322
-
1323
-
1324
- /**
1325
- * optional Install install = 1;
1326
- * @return {?proto.lansweeper.multitenant.v1.Install}
1327
- */
1328
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.prototype.getInstall = function() {
1329
- return /** @type{?proto.lansweeper.multitenant.v1.Install} */ (
1330
- jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.Install, 1));
1331
- };
1332
-
1333
-
1334
- /**
1335
- * @param {?proto.lansweeper.multitenant.v1.Install|undefined} value
1336
- * @return {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse} returns this
1337
- */
1338
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.prototype.setInstall = function(value) {
1339
- return jspb.Message.setWrapperField(this, 1, value);
1340
- };
1341
-
1342
-
1343
- /**
1344
- * Clears the message field making it undefined.
1345
- * @return {!proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse} returns this
1346
- */
1347
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.prototype.clearInstall = function() {
1348
- return this.setInstall(undefined);
1349
- };
1350
-
1351
-
1352
- /**
1353
- * Returns whether this field is set.
1354
- * @return {boolean}
1355
- */
1356
- proto.lansweeper.multitenant.v1.GetInstallbyClientIdResponse.prototype.hasInstall = function() {
1357
- return jspb.Message.getField(this, 1) != null;
1358
- };
1359
-
1360
-
1361
-
1362
-
1363
-
1364
- if (jspb.Message.GENERATE_TO_OBJECT) {
1365
- /**
1366
- * Creates an object representation of this proto.
1367
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1368
- * Optional fields that are not set will be set to undefined.
1369
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1370
- * For the list of reserved names please see:
1371
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1372
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1373
- * JSPB instance for transitional soy proto support:
1374
- * http://goto/soy-param-migration
1375
- * @return {!Object}
1376
- */
1377
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.toObject = function(opt_includeInstance) {
1378
- return proto.lansweeper.multitenant.v1.CreateInstallRequest.toObject(opt_includeInstance, this);
1379
- };
1380
-
1381
-
1382
- /**
1383
- * Static version of the {@see toObject} method.
1384
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1385
- * the JSPB instance for transitional soy proto support:
1386
- * http://goto/soy-param-migration
1387
- * @param {!proto.lansweeper.multitenant.v1.CreateInstallRequest} msg The msg instance to transform.
1388
- * @return {!Object}
1389
- * @suppress {unusedLocalVariables} f is only used for nested messages
1390
- */
1391
- proto.lansweeper.multitenant.v1.CreateInstallRequest.toObject = function(includeInstance, msg) {
1392
- var f, obj = {
1393
- siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1394
- displayName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1395
- description: jspb.Message.getFieldWithDefault(msg, 4, ""),
1396
- status: jspb.Message.getFieldWithDefault(msg, 5, ""),
1397
- fqdn: jspb.Message.getFieldWithDefault(msg, 6, ""),
1398
- createdById: jspb.Message.getFieldWithDefault(msg, 7, ""),
1399
- createSqsQueue: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
1400
- };
1401
-
1402
- if (includeInstance) {
1403
- obj.$jspbMessageInstance = msg;
1404
- }
1405
- return obj;
1406
- };
1407
- }
1408
-
1409
-
1410
- /**
1411
- * Deserializes binary data (in protobuf wire format).
1412
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1413
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallRequest}
1414
- */
1415
- proto.lansweeper.multitenant.v1.CreateInstallRequest.deserializeBinary = function(bytes) {
1416
- var reader = new jspb.BinaryReader(bytes);
1417
- var msg = new proto.lansweeper.multitenant.v1.CreateInstallRequest;
1418
- return proto.lansweeper.multitenant.v1.CreateInstallRequest.deserializeBinaryFromReader(msg, reader);
1419
- };
1420
-
1421
-
1422
- /**
1423
- * Deserializes binary data (in protobuf wire format) from the
1424
- * given reader into the given message object.
1425
- * @param {!proto.lansweeper.multitenant.v1.CreateInstallRequest} msg The message object to deserialize into.
1426
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1427
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallRequest}
1428
- */
1429
- proto.lansweeper.multitenant.v1.CreateInstallRequest.deserializeBinaryFromReader = function(msg, reader) {
1430
- while (reader.nextField()) {
1431
- if (reader.isEndGroup()) {
1432
- break;
1433
- }
1434
- var field = reader.getFieldNumber();
1435
- switch (field) {
1436
- case 1:
1437
- var value = /** @type {string} */ (reader.readString());
1438
- msg.setSiteId(value);
1439
- break;
1440
- case 3:
1441
- var value = /** @type {string} */ (reader.readString());
1442
- msg.setDisplayName(value);
1443
- break;
1444
- case 4:
1445
- var value = /** @type {string} */ (reader.readString());
1446
- msg.setDescription(value);
1447
- break;
1448
- case 5:
1449
- var value = /** @type {string} */ (reader.readString());
1450
- msg.setStatus(value);
1451
- break;
1452
- case 6:
1453
- var value = /** @type {string} */ (reader.readString());
1454
- msg.setFqdn(value);
1455
- break;
1456
- case 7:
1457
- var value = /** @type {string} */ (reader.readString());
1458
- msg.setCreatedById(value);
1459
- break;
1460
- case 8:
1461
- var value = /** @type {boolean} */ (reader.readBool());
1462
- msg.setCreateSqsQueue(value);
1463
- break;
1464
- default:
1465
- reader.skipField();
1466
- break;
1467
- }
1468
- }
1469
- return msg;
1470
- };
1471
-
1472
-
1473
- /**
1474
- * Serializes the message to binary data (in protobuf wire format).
1475
- * @return {!Uint8Array}
1476
- */
1477
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.serializeBinary = function() {
1478
- var writer = new jspb.BinaryWriter();
1479
- proto.lansweeper.multitenant.v1.CreateInstallRequest.serializeBinaryToWriter(this, writer);
1480
- return writer.getResultBuffer();
1481
- };
1482
-
1483
-
1484
- /**
1485
- * Serializes the given message to binary data (in protobuf wire
1486
- * format), writing to the given BinaryWriter.
1487
- * @param {!proto.lansweeper.multitenant.v1.CreateInstallRequest} message
1488
- * @param {!jspb.BinaryWriter} writer
1489
- * @suppress {unusedLocalVariables} f is only used for nested messages
1490
- */
1491
- proto.lansweeper.multitenant.v1.CreateInstallRequest.serializeBinaryToWriter = function(message, writer) {
1492
- var f = undefined;
1493
- f = message.getSiteId();
1494
- if (f.length > 0) {
1495
- writer.writeString(
1496
- 1,
1497
- f
1498
- );
1499
- }
1500
- f = message.getDisplayName();
1501
- if (f.length > 0) {
1502
- writer.writeString(
1503
- 3,
1504
- f
1505
- );
1506
- }
1507
- f = message.getDescription();
1508
- if (f.length > 0) {
1509
- writer.writeString(
1510
- 4,
1511
- f
1512
- );
1513
- }
1514
- f = message.getStatus();
1515
- if (f.length > 0) {
1516
- writer.writeString(
1517
- 5,
1518
- f
1519
- );
1520
- }
1521
- f = message.getFqdn();
1522
- if (f.length > 0) {
1523
- writer.writeString(
1524
- 6,
1525
- f
1526
- );
1527
- }
1528
- f = message.getCreatedById();
1529
- if (f.length > 0) {
1530
- writer.writeString(
1531
- 7,
1532
- f
1533
- );
1534
- }
1535
- f = message.getCreateSqsQueue();
1536
- if (f) {
1537
- writer.writeBool(
1538
- 8,
1539
- f
1540
- );
1541
- }
1542
- };
1543
-
1544
-
1545
- /**
1546
- * optional string site_id = 1;
1547
- * @return {string}
1548
- */
1549
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.getSiteId = function() {
1550
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1551
- };
1552
-
1553
-
1554
- /**
1555
- * @param {string} value
1556
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallRequest} returns this
1557
- */
1558
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.setSiteId = function(value) {
1559
- return jspb.Message.setProto3StringField(this, 1, value);
1560
- };
1561
-
1562
-
1563
- /**
1564
- * optional string display_name = 3;
1565
- * @return {string}
1566
- */
1567
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.getDisplayName = function() {
1568
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1569
- };
1570
-
1571
-
1572
- /**
1573
- * @param {string} value
1574
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallRequest} returns this
1575
- */
1576
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.setDisplayName = function(value) {
1577
- return jspb.Message.setProto3StringField(this, 3, value);
1578
- };
1579
-
1580
-
1581
- /**
1582
- * optional string description = 4;
1583
- * @return {string}
1584
- */
1585
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.getDescription = function() {
1586
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1587
- };
1588
-
1589
-
1590
- /**
1591
- * @param {string} value
1592
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallRequest} returns this
1593
- */
1594
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.setDescription = function(value) {
1595
- return jspb.Message.setProto3StringField(this, 4, value);
1596
- };
1597
-
1598
-
1599
- /**
1600
- * optional string status = 5;
1601
- * @return {string}
1602
- */
1603
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.getStatus = function() {
1604
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1605
- };
1606
-
1607
-
1608
- /**
1609
- * @param {string} value
1610
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallRequest} returns this
1611
- */
1612
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.setStatus = function(value) {
1613
- return jspb.Message.setProto3StringField(this, 5, value);
1614
- };
1615
-
1616
-
1617
- /**
1618
- * optional string fqdn = 6;
1619
- * @return {string}
1620
- */
1621
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.getFqdn = function() {
1622
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1623
- };
1624
-
1625
-
1626
- /**
1627
- * @param {string} value
1628
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallRequest} returns this
1629
- */
1630
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.setFqdn = function(value) {
1631
- return jspb.Message.setProto3StringField(this, 6, value);
1632
- };
1633
-
1634
-
1635
- /**
1636
- * optional string created_by_id = 7;
1637
- * @return {string}
1638
- */
1639
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.getCreatedById = function() {
1640
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1641
- };
1642
-
1643
-
1644
- /**
1645
- * @param {string} value
1646
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallRequest} returns this
1647
- */
1648
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.setCreatedById = function(value) {
1649
- return jspb.Message.setProto3StringField(this, 7, value);
1650
- };
1651
-
1652
-
1653
- /**
1654
- * optional bool create_sqs_queue = 8;
1655
- * @return {boolean}
1656
- */
1657
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.getCreateSqsQueue = function() {
1658
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
1659
- };
1660
-
1661
-
1662
- /**
1663
- * @param {boolean} value
1664
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallRequest} returns this
1665
- */
1666
- proto.lansweeper.multitenant.v1.CreateInstallRequest.prototype.setCreateSqsQueue = function(value) {
1667
- return jspb.Message.setProto3BooleanField(this, 8, value);
1668
- };
1669
-
1670
-
1671
-
1672
-
1673
-
1674
- if (jspb.Message.GENERATE_TO_OBJECT) {
1675
- /**
1676
- * Creates an object representation of this proto.
1677
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1678
- * Optional fields that are not set will be set to undefined.
1679
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1680
- * For the list of reserved names please see:
1681
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1682
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1683
- * JSPB instance for transitional soy proto support:
1684
- * http://goto/soy-param-migration
1685
- * @return {!Object}
1686
- */
1687
- proto.lansweeper.multitenant.v1.CreateInstallResponse.prototype.toObject = function(opt_includeInstance) {
1688
- return proto.lansweeper.multitenant.v1.CreateInstallResponse.toObject(opt_includeInstance, this);
1689
- };
1690
-
1691
-
1692
- /**
1693
- * Static version of the {@see toObject} method.
1694
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1695
- * the JSPB instance for transitional soy proto support:
1696
- * http://goto/soy-param-migration
1697
- * @param {!proto.lansweeper.multitenant.v1.CreateInstallResponse} msg The msg instance to transform.
1698
- * @return {!Object}
1699
- * @suppress {unusedLocalVariables} f is only used for nested messages
1700
- */
1701
- proto.lansweeper.multitenant.v1.CreateInstallResponse.toObject = function(includeInstance, msg) {
1702
- var f, obj = {
1703
- install: (f = msg.getInstall()) && proto.lansweeper.multitenant.v1.Install.toObject(includeInstance, f),
1704
- credentials: (f = msg.getCredentials()) && proto.lansweeper.multitenant.v1.InstallCredentials.toObject(includeInstance, f)
1705
- };
1706
-
1707
- if (includeInstance) {
1708
- obj.$jspbMessageInstance = msg;
1709
- }
1710
- return obj;
1711
- };
1712
- }
1713
-
1714
-
1715
- /**
1716
- * Deserializes binary data (in protobuf wire format).
1717
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1718
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallResponse}
1719
- */
1720
- proto.lansweeper.multitenant.v1.CreateInstallResponse.deserializeBinary = function(bytes) {
1721
- var reader = new jspb.BinaryReader(bytes);
1722
- var msg = new proto.lansweeper.multitenant.v1.CreateInstallResponse;
1723
- return proto.lansweeper.multitenant.v1.CreateInstallResponse.deserializeBinaryFromReader(msg, reader);
1724
- };
1725
-
1726
-
1727
- /**
1728
- * Deserializes binary data (in protobuf wire format) from the
1729
- * given reader into the given message object.
1730
- * @param {!proto.lansweeper.multitenant.v1.CreateInstallResponse} msg The message object to deserialize into.
1731
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1732
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallResponse}
1733
- */
1734
- proto.lansweeper.multitenant.v1.CreateInstallResponse.deserializeBinaryFromReader = function(msg, reader) {
1735
- while (reader.nextField()) {
1736
- if (reader.isEndGroup()) {
1737
- break;
1738
- }
1739
- var field = reader.getFieldNumber();
1740
- switch (field) {
1741
- case 1:
1742
- var value = new proto.lansweeper.multitenant.v1.Install;
1743
- reader.readMessage(value,proto.lansweeper.multitenant.v1.Install.deserializeBinaryFromReader);
1744
- msg.setInstall(value);
1745
- break;
1746
- case 2:
1747
- var value = new proto.lansweeper.multitenant.v1.InstallCredentials;
1748
- reader.readMessage(value,proto.lansweeper.multitenant.v1.InstallCredentials.deserializeBinaryFromReader);
1749
- msg.setCredentials(value);
1750
- break;
1751
- default:
1752
- reader.skipField();
1753
- break;
1754
- }
1755
- }
1756
- return msg;
1757
- };
1758
-
1759
-
1760
- /**
1761
- * Serializes the message to binary data (in protobuf wire format).
1762
- * @return {!Uint8Array}
1763
- */
1764
- proto.lansweeper.multitenant.v1.CreateInstallResponse.prototype.serializeBinary = function() {
1765
- var writer = new jspb.BinaryWriter();
1766
- proto.lansweeper.multitenant.v1.CreateInstallResponse.serializeBinaryToWriter(this, writer);
1767
- return writer.getResultBuffer();
1768
- };
1769
-
1770
-
1771
- /**
1772
- * Serializes the given message to binary data (in protobuf wire
1773
- * format), writing to the given BinaryWriter.
1774
- * @param {!proto.lansweeper.multitenant.v1.CreateInstallResponse} message
1775
- * @param {!jspb.BinaryWriter} writer
1776
- * @suppress {unusedLocalVariables} f is only used for nested messages
1777
- */
1778
- proto.lansweeper.multitenant.v1.CreateInstallResponse.serializeBinaryToWriter = function(message, writer) {
1779
- var f = undefined;
1780
- f = message.getInstall();
1781
- if (f != null) {
1782
- writer.writeMessage(
1783
- 1,
1784
- f,
1785
- proto.lansweeper.multitenant.v1.Install.serializeBinaryToWriter
1786
- );
1787
- }
1788
- f = message.getCredentials();
1789
- if (f != null) {
1790
- writer.writeMessage(
1791
- 2,
1792
- f,
1793
- proto.lansweeper.multitenant.v1.InstallCredentials.serializeBinaryToWriter
1794
- );
1795
- }
1796
- };
1797
-
1798
-
1799
- /**
1800
- * optional Install install = 1;
1801
- * @return {?proto.lansweeper.multitenant.v1.Install}
1802
- */
1803
- proto.lansweeper.multitenant.v1.CreateInstallResponse.prototype.getInstall = function() {
1804
- return /** @type{?proto.lansweeper.multitenant.v1.Install} */ (
1805
- jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.Install, 1));
1806
- };
1807
-
1808
-
1809
- /**
1810
- * @param {?proto.lansweeper.multitenant.v1.Install|undefined} value
1811
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallResponse} returns this
1812
- */
1813
- proto.lansweeper.multitenant.v1.CreateInstallResponse.prototype.setInstall = function(value) {
1814
- return jspb.Message.setWrapperField(this, 1, value);
1815
- };
1816
-
1817
-
1818
- /**
1819
- * Clears the message field making it undefined.
1820
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallResponse} returns this
1821
- */
1822
- proto.lansweeper.multitenant.v1.CreateInstallResponse.prototype.clearInstall = function() {
1823
- return this.setInstall(undefined);
1824
- };
1825
-
1826
-
1827
- /**
1828
- * Returns whether this field is set.
1829
- * @return {boolean}
1830
- */
1831
- proto.lansweeper.multitenant.v1.CreateInstallResponse.prototype.hasInstall = function() {
1832
- return jspb.Message.getField(this, 1) != null;
1833
- };
1834
-
1835
-
1836
- /**
1837
- * optional InstallCredentials credentials = 2;
1838
- * @return {?proto.lansweeper.multitenant.v1.InstallCredentials}
1839
- */
1840
- proto.lansweeper.multitenant.v1.CreateInstallResponse.prototype.getCredentials = function() {
1841
- return /** @type{?proto.lansweeper.multitenant.v1.InstallCredentials} */ (
1842
- jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.InstallCredentials, 2));
1843
- };
1844
-
1845
-
1846
- /**
1847
- * @param {?proto.lansweeper.multitenant.v1.InstallCredentials|undefined} value
1848
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallResponse} returns this
1849
- */
1850
- proto.lansweeper.multitenant.v1.CreateInstallResponse.prototype.setCredentials = function(value) {
1851
- return jspb.Message.setWrapperField(this, 2, value);
1852
- };
1853
-
1854
-
1855
- /**
1856
- * Clears the message field making it undefined.
1857
- * @return {!proto.lansweeper.multitenant.v1.CreateInstallResponse} returns this
1858
- */
1859
- proto.lansweeper.multitenant.v1.CreateInstallResponse.prototype.clearCredentials = function() {
1860
- return this.setCredentials(undefined);
1861
- };
1862
-
1863
-
1864
- /**
1865
- * Returns whether this field is set.
1866
- * @return {boolean}
1867
- */
1868
- proto.lansweeper.multitenant.v1.CreateInstallResponse.prototype.hasCredentials = function() {
1869
- return jspb.Message.getField(this, 2) != null;
1870
- };
1871
-
1872
-
1873
-
1874
-
1875
-
1876
- if (jspb.Message.GENERATE_TO_OBJECT) {
1877
- /**
1878
- * Creates an object representation of this proto.
1879
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1880
- * Optional fields that are not set will be set to undefined.
1881
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1882
- * For the list of reserved names please see:
1883
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1884
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1885
- * JSPB instance for transitional soy proto support:
1886
- * http://goto/soy-param-migration
1887
- * @return {!Object}
1888
- */
1889
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.toObject = function(opt_includeInstance) {
1890
- return proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.toObject(opt_includeInstance, this);
1891
- };
1892
-
1893
-
1894
- /**
1895
- * Static version of the {@see toObject} method.
1896
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1897
- * the JSPB instance for transitional soy proto support:
1898
- * http://goto/soy-param-migration
1899
- * @param {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest} msg The msg instance to transform.
1900
- * @return {!Object}
1901
- * @suppress {unusedLocalVariables} f is only used for nested messages
1902
- */
1903
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.toObject = function(includeInstance, msg) {
1904
- var f, obj = {
1905
- clientId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1906
- displayName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1907
- description: jspb.Message.getFieldWithDefault(msg, 3, ""),
1908
- status: jspb.Message.getFieldWithDefault(msg, 4, ""),
1909
- fqdn: jspb.Message.getFieldWithDefault(msg, 5, ""),
1910
- syncerSettings: (f = msg.getSyncerSettings()) && proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.toObject(includeInstance, f)
1911
- };
1912
-
1913
- if (includeInstance) {
1914
- obj.$jspbMessageInstance = msg;
1915
- }
1916
- return obj;
1917
- };
1918
- }
1919
-
1920
-
1921
- /**
1922
- * Deserializes binary data (in protobuf wire format).
1923
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1924
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest}
1925
- */
1926
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.deserializeBinary = function(bytes) {
1927
- var reader = new jspb.BinaryReader(bytes);
1928
- var msg = new proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest;
1929
- return proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.deserializeBinaryFromReader(msg, reader);
1930
- };
1931
-
1932
-
1933
- /**
1934
- * Deserializes binary data (in protobuf wire format) from the
1935
- * given reader into the given message object.
1936
- * @param {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest} msg The message object to deserialize into.
1937
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1938
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest}
1939
- */
1940
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1941
- while (reader.nextField()) {
1942
- if (reader.isEndGroup()) {
1943
- break;
1944
- }
1945
- var field = reader.getFieldNumber();
1946
- switch (field) {
1947
- case 1:
1948
- var value = /** @type {string} */ (reader.readString());
1949
- msg.setClientId(value);
1950
- break;
1951
- case 2:
1952
- var value = /** @type {string} */ (reader.readString());
1953
- msg.setDisplayName(value);
1954
- break;
1955
- case 3:
1956
- var value = /** @type {string} */ (reader.readString());
1957
- msg.setDescription(value);
1958
- break;
1959
- case 4:
1960
- var value = /** @type {string} */ (reader.readString());
1961
- msg.setStatus(value);
1962
- break;
1963
- case 5:
1964
- var value = /** @type {string} */ (reader.readString());
1965
- msg.setFqdn(value);
1966
- break;
1967
- case 6:
1968
- var value = new proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings;
1969
- reader.readMessage(value,proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.deserializeBinaryFromReader);
1970
- msg.setSyncerSettings(value);
1971
- break;
1972
- default:
1973
- reader.skipField();
1974
- break;
1975
- }
1976
- }
1977
- return msg;
1978
- };
1979
-
1980
-
1981
- /**
1982
- * Serializes the message to binary data (in protobuf wire format).
1983
- * @return {!Uint8Array}
1984
- */
1985
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.serializeBinary = function() {
1986
- var writer = new jspb.BinaryWriter();
1987
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.serializeBinaryToWriter(this, writer);
1988
- return writer.getResultBuffer();
1989
- };
1990
-
1991
-
1992
- /**
1993
- * Serializes the given message to binary data (in protobuf wire
1994
- * format), writing to the given BinaryWriter.
1995
- * @param {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest} message
1996
- * @param {!jspb.BinaryWriter} writer
1997
- * @suppress {unusedLocalVariables} f is only used for nested messages
1998
- */
1999
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.serializeBinaryToWriter = function(message, writer) {
2000
- var f = undefined;
2001
- f = message.getClientId();
2002
- if (f.length > 0) {
2003
- writer.writeString(
2004
- 1,
2005
- f
2006
- );
2007
- }
2008
- f = message.getDisplayName();
2009
- if (f.length > 0) {
2010
- writer.writeString(
2011
- 2,
2012
- f
2013
- );
2014
- }
2015
- f = message.getDescription();
2016
- if (f.length > 0) {
2017
- writer.writeString(
2018
- 3,
2019
- f
2020
- );
2021
- }
2022
- f = message.getStatus();
2023
- if (f.length > 0) {
2024
- writer.writeString(
2025
- 4,
2026
- f
2027
- );
2028
- }
2029
- f = message.getFqdn();
2030
- if (f.length > 0) {
2031
- writer.writeString(
2032
- 5,
2033
- f
2034
- );
2035
- }
2036
- f = message.getSyncerSettings();
2037
- if (f != null) {
2038
- writer.writeMessage(
2039
- 6,
2040
- f,
2041
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.serializeBinaryToWriter
2042
- );
2043
- }
2044
- };
2045
-
2046
-
2047
-
2048
-
2049
-
2050
- if (jspb.Message.GENERATE_TO_OBJECT) {
2051
- /**
2052
- * Creates an object representation of this proto.
2053
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2054
- * Optional fields that are not set will be set to undefined.
2055
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2056
- * For the list of reserved names please see:
2057
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2058
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2059
- * JSPB instance for transitional soy proto support:
2060
- * http://goto/soy-param-migration
2061
- * @return {!Object}
2062
- */
2063
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.prototype.toObject = function(opt_includeInstance) {
2064
- return proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.toObject(opt_includeInstance, this);
2065
- };
2066
-
2067
-
2068
- /**
2069
- * Static version of the {@see toObject} method.
2070
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2071
- * the JSPB instance for transitional soy proto support:
2072
- * http://goto/soy-param-migration
2073
- * @param {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings} msg The msg instance to transform.
2074
- * @return {!Object}
2075
- * @suppress {unusedLocalVariables} f is only used for nested messages
2076
- */
2077
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.toObject = function(includeInstance, msg) {
2078
- var f, obj = {
2079
- sendChangedDataTimeout: jspb.Message.getFieldWithDefault(msg, 1, ""),
2080
- sendFastChangingDataTimeout: jspb.Message.getFieldWithDefault(msg, 2, ""),
2081
- sendNonChangedDataTimeout: jspb.Message.getFieldWithDefault(msg, 3, ""),
2082
- syncIntervalInSeconds: jspb.Message.getFieldWithDefault(msg, 4, "")
2083
- };
2084
-
2085
- if (includeInstance) {
2086
- obj.$jspbMessageInstance = msg;
2087
- }
2088
- return obj;
2089
- };
2090
- }
2091
-
2092
-
2093
- /**
2094
- * Deserializes binary data (in protobuf wire format).
2095
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2096
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings}
2097
- */
2098
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.deserializeBinary = function(bytes) {
2099
- var reader = new jspb.BinaryReader(bytes);
2100
- var msg = new proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings;
2101
- return proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.deserializeBinaryFromReader(msg, reader);
2102
- };
2103
-
2104
-
2105
- /**
2106
- * Deserializes binary data (in protobuf wire format) from the
2107
- * given reader into the given message object.
2108
- * @param {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings} msg The message object to deserialize into.
2109
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2110
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings}
2111
- */
2112
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.deserializeBinaryFromReader = function(msg, reader) {
2113
- while (reader.nextField()) {
2114
- if (reader.isEndGroup()) {
2115
- break;
2116
- }
2117
- var field = reader.getFieldNumber();
2118
- switch (field) {
2119
- case 1:
2120
- var value = /** @type {string} */ (reader.readString());
2121
- msg.setSendChangedDataTimeout(value);
2122
- break;
2123
- case 2:
2124
- var value = /** @type {string} */ (reader.readString());
2125
- msg.setSendFastChangingDataTimeout(value);
2126
- break;
2127
- case 3:
2128
- var value = /** @type {string} */ (reader.readString());
2129
- msg.setSendNonChangedDataTimeout(value);
2130
- break;
2131
- case 4:
2132
- var value = /** @type {string} */ (reader.readString());
2133
- msg.setSyncIntervalInSeconds(value);
2134
- break;
2135
- default:
2136
- reader.skipField();
2137
- break;
2138
- }
2139
- }
2140
- return msg;
2141
- };
2142
-
2143
-
2144
- /**
2145
- * Serializes the message to binary data (in protobuf wire format).
2146
- * @return {!Uint8Array}
2147
- */
2148
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.prototype.serializeBinary = function() {
2149
- var writer = new jspb.BinaryWriter();
2150
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.serializeBinaryToWriter(this, writer);
2151
- return writer.getResultBuffer();
2152
- };
2153
-
2154
-
2155
- /**
2156
- * Serializes the given message to binary data (in protobuf wire
2157
- * format), writing to the given BinaryWriter.
2158
- * @param {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings} message
2159
- * @param {!jspb.BinaryWriter} writer
2160
- * @suppress {unusedLocalVariables} f is only used for nested messages
2161
- */
2162
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.serializeBinaryToWriter = function(message, writer) {
2163
- var f = undefined;
2164
- f = message.getSendChangedDataTimeout();
2165
- if (f.length > 0) {
2166
- writer.writeString(
2167
- 1,
2168
- f
2169
- );
2170
- }
2171
- f = message.getSendFastChangingDataTimeout();
2172
- if (f.length > 0) {
2173
- writer.writeString(
2174
- 2,
2175
- f
2176
- );
2177
- }
2178
- f = message.getSendNonChangedDataTimeout();
2179
- if (f.length > 0) {
2180
- writer.writeString(
2181
- 3,
2182
- f
2183
- );
2184
- }
2185
- f = message.getSyncIntervalInSeconds();
2186
- if (f.length > 0) {
2187
- writer.writeString(
2188
- 4,
2189
- f
2190
- );
2191
- }
2192
- };
2193
-
2194
-
2195
- /**
2196
- * optional string send_changed_data_timeout = 1;
2197
- * @return {string}
2198
- */
2199
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.prototype.getSendChangedDataTimeout = function() {
2200
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2201
- };
2202
-
2203
-
2204
- /**
2205
- * @param {string} value
2206
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings} returns this
2207
- */
2208
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.prototype.setSendChangedDataTimeout = function(value) {
2209
- return jspb.Message.setProto3StringField(this, 1, value);
2210
- };
2211
-
2212
-
2213
- /**
2214
- * optional string send_fast_changing_data_timeout = 2;
2215
- * @return {string}
2216
- */
2217
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.prototype.getSendFastChangingDataTimeout = function() {
2218
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2219
- };
2220
-
2221
-
2222
- /**
2223
- * @param {string} value
2224
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings} returns this
2225
- */
2226
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.prototype.setSendFastChangingDataTimeout = function(value) {
2227
- return jspb.Message.setProto3StringField(this, 2, value);
2228
- };
2229
-
2230
-
2231
- /**
2232
- * optional string send_non_changed_data_timeout = 3;
2233
- * @return {string}
2234
- */
2235
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.prototype.getSendNonChangedDataTimeout = function() {
2236
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2237
- };
2238
-
2239
-
2240
- /**
2241
- * @param {string} value
2242
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings} returns this
2243
- */
2244
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.prototype.setSendNonChangedDataTimeout = function(value) {
2245
- return jspb.Message.setProto3StringField(this, 3, value);
2246
- };
2247
-
2248
-
2249
- /**
2250
- * optional string sync_interval_in_seconds = 4;
2251
- * @return {string}
2252
- */
2253
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.prototype.getSyncIntervalInSeconds = function() {
2254
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2255
- };
2256
-
2257
-
2258
- /**
2259
- * @param {string} value
2260
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings} returns this
2261
- */
2262
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings.prototype.setSyncIntervalInSeconds = function(value) {
2263
- return jspb.Message.setProto3StringField(this, 4, value);
2264
- };
2265
-
2266
-
2267
- /**
2268
- * optional string client_id = 1;
2269
- * @return {string}
2270
- */
2271
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.getClientId = function() {
2272
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2273
- };
2274
-
2275
-
2276
- /**
2277
- * @param {string} value
2278
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest} returns this
2279
- */
2280
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.setClientId = function(value) {
2281
- return jspb.Message.setProto3StringField(this, 1, value);
2282
- };
2283
-
2284
-
2285
- /**
2286
- * optional string display_name = 2;
2287
- * @return {string}
2288
- */
2289
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.getDisplayName = function() {
2290
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2291
- };
2292
-
2293
-
2294
- /**
2295
- * @param {string} value
2296
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest} returns this
2297
- */
2298
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.setDisplayName = function(value) {
2299
- return jspb.Message.setProto3StringField(this, 2, value);
2300
- };
2301
-
2302
-
2303
- /**
2304
- * optional string description = 3;
2305
- * @return {string}
2306
- */
2307
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.getDescription = function() {
2308
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2309
- };
2310
-
2311
-
2312
- /**
2313
- * @param {string} value
2314
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest} returns this
2315
- */
2316
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.setDescription = function(value) {
2317
- return jspb.Message.setProto3StringField(this, 3, value);
2318
- };
2319
-
2320
-
2321
- /**
2322
- * optional string status = 4;
2323
- * @return {string}
2324
- */
2325
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.getStatus = function() {
2326
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2327
- };
2328
-
2329
-
2330
- /**
2331
- * @param {string} value
2332
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest} returns this
2333
- */
2334
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.setStatus = function(value) {
2335
- return jspb.Message.setProto3StringField(this, 4, value);
2336
- };
2337
-
2338
-
2339
- /**
2340
- * optional string fqdn = 5;
2341
- * @return {string}
2342
- */
2343
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.getFqdn = function() {
2344
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2345
- };
2346
-
2347
-
2348
- /**
2349
- * @param {string} value
2350
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest} returns this
2351
- */
2352
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.setFqdn = function(value) {
2353
- return jspb.Message.setProto3StringField(this, 5, value);
2354
- };
2355
-
2356
-
2357
- /**
2358
- * optional SyncerSettings syncer_settings = 6;
2359
- * @return {?proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings}
2360
- */
2361
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.getSyncerSettings = function() {
2362
- return /** @type{?proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings} */ (
2363
- jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings, 6));
2364
- };
2365
-
2366
-
2367
- /**
2368
- * @param {?proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.SyncerSettings|undefined} value
2369
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest} returns this
2370
- */
2371
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.setSyncerSettings = function(value) {
2372
- return jspb.Message.setWrapperField(this, 6, value);
2373
- };
2374
-
2375
-
2376
- /**
2377
- * Clears the message field making it undefined.
2378
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest} returns this
2379
- */
2380
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.clearSyncerSettings = function() {
2381
- return this.setSyncerSettings(undefined);
2382
- };
2383
-
2384
-
2385
- /**
2386
- * Returns whether this field is set.
2387
- * @return {boolean}
2388
- */
2389
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdRequest.prototype.hasSyncerSettings = function() {
2390
- return jspb.Message.getField(this, 6) != null;
2391
- };
2392
-
2393
-
2394
-
2395
-
2396
-
2397
- if (jspb.Message.GENERATE_TO_OBJECT) {
2398
- /**
2399
- * Creates an object representation of this proto.
2400
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2401
- * Optional fields that are not set will be set to undefined.
2402
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2403
- * For the list of reserved names please see:
2404
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2405
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2406
- * JSPB instance for transitional soy proto support:
2407
- * http://goto/soy-param-migration
2408
- * @return {!Object}
2409
- */
2410
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.prototype.toObject = function(opt_includeInstance) {
2411
- return proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.toObject(opt_includeInstance, this);
2412
- };
2413
-
2414
-
2415
- /**
2416
- * Static version of the {@see toObject} method.
2417
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2418
- * the JSPB instance for transitional soy proto support:
2419
- * http://goto/soy-param-migration
2420
- * @param {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse} msg The msg instance to transform.
2421
- * @return {!Object}
2422
- * @suppress {unusedLocalVariables} f is only used for nested messages
2423
- */
2424
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.toObject = function(includeInstance, msg) {
2425
- var f, obj = {
2426
- install: (f = msg.getInstall()) && proto.lansweeper.multitenant.v1.Install.toObject(includeInstance, f)
2427
- };
2428
-
2429
- if (includeInstance) {
2430
- obj.$jspbMessageInstance = msg;
2431
- }
2432
- return obj;
2433
- };
2434
- }
2435
-
2436
-
2437
- /**
2438
- * Deserializes binary data (in protobuf wire format).
2439
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2440
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse}
2441
- */
2442
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.deserializeBinary = function(bytes) {
2443
- var reader = new jspb.BinaryReader(bytes);
2444
- var msg = new proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse;
2445
- return proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.deserializeBinaryFromReader(msg, reader);
2446
- };
2447
-
2448
-
2449
- /**
2450
- * Deserializes binary data (in protobuf wire format) from the
2451
- * given reader into the given message object.
2452
- * @param {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse} msg The message object to deserialize into.
2453
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2454
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse}
2455
- */
2456
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2457
- while (reader.nextField()) {
2458
- if (reader.isEndGroup()) {
2459
- break;
2460
- }
2461
- var field = reader.getFieldNumber();
2462
- switch (field) {
2463
- case 1:
2464
- var value = new proto.lansweeper.multitenant.v1.Install;
2465
- reader.readMessage(value,proto.lansweeper.multitenant.v1.Install.deserializeBinaryFromReader);
2466
- msg.setInstall(value);
2467
- break;
2468
- default:
2469
- reader.skipField();
2470
- break;
2471
- }
2472
- }
2473
- return msg;
2474
- };
2475
-
2476
-
2477
- /**
2478
- * Serializes the message to binary data (in protobuf wire format).
2479
- * @return {!Uint8Array}
2480
- */
2481
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.prototype.serializeBinary = function() {
2482
- var writer = new jspb.BinaryWriter();
2483
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.serializeBinaryToWriter(this, writer);
2484
- return writer.getResultBuffer();
2485
- };
2486
-
2487
-
2488
- /**
2489
- * Serializes the given message to binary data (in protobuf wire
2490
- * format), writing to the given BinaryWriter.
2491
- * @param {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse} message
2492
- * @param {!jspb.BinaryWriter} writer
2493
- * @suppress {unusedLocalVariables} f is only used for nested messages
2494
- */
2495
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.serializeBinaryToWriter = function(message, writer) {
2496
- var f = undefined;
2497
- f = message.getInstall();
2498
- if (f != null) {
2499
- writer.writeMessage(
2500
- 1,
2501
- f,
2502
- proto.lansweeper.multitenant.v1.Install.serializeBinaryToWriter
2503
- );
2504
- }
2505
- };
2506
-
2507
-
2508
- /**
2509
- * optional Install install = 1;
2510
- * @return {?proto.lansweeper.multitenant.v1.Install}
2511
- */
2512
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.prototype.getInstall = function() {
2513
- return /** @type{?proto.lansweeper.multitenant.v1.Install} */ (
2514
- jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.Install, 1));
2515
- };
2516
-
2517
-
2518
- /**
2519
- * @param {?proto.lansweeper.multitenant.v1.Install|undefined} value
2520
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse} returns this
2521
- */
2522
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.prototype.setInstall = function(value) {
2523
- return jspb.Message.setWrapperField(this, 1, value);
2524
- };
2525
-
2526
-
2527
- /**
2528
- * Clears the message field making it undefined.
2529
- * @return {!proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse} returns this
2530
- */
2531
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.prototype.clearInstall = function() {
2532
- return this.setInstall(undefined);
2533
- };
2534
-
2535
-
2536
- /**
2537
- * Returns whether this field is set.
2538
- * @return {boolean}
2539
- */
2540
- proto.lansweeper.multitenant.v1.UpdateInstallByClientIdResponse.prototype.hasInstall = function() {
2541
- return jspb.Message.getField(this, 1) != null;
2542
- };
2543
-
2544
-
2545
-
2546
-
2547
-
2548
- if (jspb.Message.GENERATE_TO_OBJECT) {
2549
- /**
2550
- * Creates an object representation of this proto.
2551
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2552
- * Optional fields that are not set will be set to undefined.
2553
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2554
- * For the list of reserved names please see:
2555
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2556
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2557
- * JSPB instance for transitional soy proto support:
2558
- * http://goto/soy-param-migration
2559
- * @return {!Object}
2560
- */
2561
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.prototype.toObject = function(opt_includeInstance) {
2562
- return proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.toObject(opt_includeInstance, this);
2563
- };
2564
-
2565
-
2566
- /**
2567
- * Static version of the {@see toObject} method.
2568
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2569
- * the JSPB instance for transitional soy proto support:
2570
- * http://goto/soy-param-migration
2571
- * @param {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest} msg The msg instance to transform.
2572
- * @return {!Object}
2573
- * @suppress {unusedLocalVariables} f is only used for nested messages
2574
- */
2575
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.toObject = function(includeInstance, msg) {
2576
- var f, obj = {
2577
- clientId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2578
- trackId: jspb.Message.getFieldWithDefault(msg, 2, "")
2579
- };
2580
-
2581
- if (includeInstance) {
2582
- obj.$jspbMessageInstance = msg;
2583
- }
2584
- return obj;
2585
- };
2586
- }
2587
-
2588
-
2589
- /**
2590
- * Deserializes binary data (in protobuf wire format).
2591
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2592
- * @return {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest}
2593
- */
2594
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.deserializeBinary = function(bytes) {
2595
- var reader = new jspb.BinaryReader(bytes);
2596
- var msg = new proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest;
2597
- return proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.deserializeBinaryFromReader(msg, reader);
2598
- };
2599
-
2600
-
2601
- /**
2602
- * Deserializes binary data (in protobuf wire format) from the
2603
- * given reader into the given message object.
2604
- * @param {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest} msg The message object to deserialize into.
2605
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2606
- * @return {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest}
2607
- */
2608
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.deserializeBinaryFromReader = function(msg, reader) {
2609
- while (reader.nextField()) {
2610
- if (reader.isEndGroup()) {
2611
- break;
2612
- }
2613
- var field = reader.getFieldNumber();
2614
- switch (field) {
2615
- case 1:
2616
- var value = /** @type {string} */ (reader.readString());
2617
- msg.setClientId(value);
2618
- break;
2619
- case 2:
2620
- var value = /** @type {string} */ (reader.readString());
2621
- msg.setTrackId(value);
2622
- break;
2623
- default:
2624
- reader.skipField();
2625
- break;
2626
- }
2627
- }
2628
- return msg;
2629
- };
2630
-
2631
-
2632
- /**
2633
- * Serializes the message to binary data (in protobuf wire format).
2634
- * @return {!Uint8Array}
2635
- */
2636
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.prototype.serializeBinary = function() {
2637
- var writer = new jspb.BinaryWriter();
2638
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.serializeBinaryToWriter(this, writer);
2639
- return writer.getResultBuffer();
2640
- };
2641
-
2642
-
2643
- /**
2644
- * Serializes the given message to binary data (in protobuf wire
2645
- * format), writing to the given BinaryWriter.
2646
- * @param {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest} message
2647
- * @param {!jspb.BinaryWriter} writer
2648
- * @suppress {unusedLocalVariables} f is only used for nested messages
2649
- */
2650
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.serializeBinaryToWriter = function(message, writer) {
2651
- var f = undefined;
2652
- f = message.getClientId();
2653
- if (f.length > 0) {
2654
- writer.writeString(
2655
- 1,
2656
- f
2657
- );
2658
- }
2659
- f = message.getTrackId();
2660
- if (f.length > 0) {
2661
- writer.writeString(
2662
- 2,
2663
- f
2664
- );
2665
- }
2666
- };
2667
-
2668
-
2669
- /**
2670
- * optional string client_id = 1;
2671
- * @return {string}
2672
- */
2673
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.prototype.getClientId = function() {
2674
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2675
- };
2676
-
2677
-
2678
- /**
2679
- * @param {string} value
2680
- * @return {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest} returns this
2681
- */
2682
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.prototype.setClientId = function(value) {
2683
- return jspb.Message.setProto3StringField(this, 1, value);
2684
- };
2685
-
2686
-
2687
- /**
2688
- * optional string track_id = 2;
2689
- * @return {string}
2690
- */
2691
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.prototype.getTrackId = function() {
2692
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2693
- };
2694
-
2695
-
2696
- /**
2697
- * @param {string} value
2698
- * @return {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest} returns this
2699
- */
2700
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest.prototype.setTrackId = function(value) {
2701
- return jspb.Message.setProto3StringField(this, 2, value);
2702
- };
2703
-
2704
-
2705
-
2706
-
2707
-
2708
- if (jspb.Message.GENERATE_TO_OBJECT) {
2709
- /**
2710
- * Creates an object representation of this proto.
2711
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2712
- * Optional fields that are not set will be set to undefined.
2713
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2714
- * For the list of reserved names please see:
2715
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2716
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2717
- * JSPB instance for transitional soy proto support:
2718
- * http://goto/soy-param-migration
2719
- * @return {!Object}
2720
- */
2721
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.prototype.toObject = function(opt_includeInstance) {
2722
- return proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.toObject(opt_includeInstance, this);
2723
- };
2724
-
2725
-
2726
- /**
2727
- * Static version of the {@see toObject} method.
2728
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2729
- * the JSPB instance for transitional soy proto support:
2730
- * http://goto/soy-param-migration
2731
- * @param {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse} msg The msg instance to transform.
2732
- * @return {!Object}
2733
- * @suppress {unusedLocalVariables} f is only used for nested messages
2734
- */
2735
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.toObject = function(includeInstance, msg) {
2736
- var f, obj = {
2737
- success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
2738
- siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2739
- oldInstallId: jspb.Message.getFieldWithDefault(msg, 3, ""),
2740
- newInstallId: jspb.Message.getFieldWithDefault(msg, 4, "")
2741
- };
2742
-
2743
- if (includeInstance) {
2744
- obj.$jspbMessageInstance = msg;
2745
- }
2746
- return obj;
2747
- };
2748
- }
2749
-
2750
-
2751
- /**
2752
- * Deserializes binary data (in protobuf wire format).
2753
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2754
- * @return {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse}
2755
- */
2756
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.deserializeBinary = function(bytes) {
2757
- var reader = new jspb.BinaryReader(bytes);
2758
- var msg = new proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse;
2759
- return proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.deserializeBinaryFromReader(msg, reader);
2760
- };
2761
-
2762
-
2763
- /**
2764
- * Deserializes binary data (in protobuf wire format) from the
2765
- * given reader into the given message object.
2766
- * @param {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse} msg The message object to deserialize into.
2767
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2768
- * @return {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse}
2769
- */
2770
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2771
- while (reader.nextField()) {
2772
- if (reader.isEndGroup()) {
2773
- break;
2774
- }
2775
- var field = reader.getFieldNumber();
2776
- switch (field) {
2777
- case 1:
2778
- var value = /** @type {boolean} */ (reader.readBool());
2779
- msg.setSuccess(value);
2780
- break;
2781
- case 2:
2782
- var value = /** @type {string} */ (reader.readString());
2783
- msg.setSiteId(value);
2784
- break;
2785
- case 3:
2786
- var value = /** @type {string} */ (reader.readString());
2787
- msg.setOldInstallId(value);
2788
- break;
2789
- case 4:
2790
- var value = /** @type {string} */ (reader.readString());
2791
- msg.setNewInstallId(value);
2792
- break;
2793
- default:
2794
- reader.skipField();
2795
- break;
2796
- }
2797
- }
2798
- return msg;
2799
- };
2800
-
2801
-
2802
- /**
2803
- * Serializes the message to binary data (in protobuf wire format).
2804
- * @return {!Uint8Array}
2805
- */
2806
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.prototype.serializeBinary = function() {
2807
- var writer = new jspb.BinaryWriter();
2808
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.serializeBinaryToWriter(this, writer);
2809
- return writer.getResultBuffer();
2810
- };
2811
-
2812
-
2813
- /**
2814
- * Serializes the given message to binary data (in protobuf wire
2815
- * format), writing to the given BinaryWriter.
2816
- * @param {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse} message
2817
- * @param {!jspb.BinaryWriter} writer
2818
- * @suppress {unusedLocalVariables} f is only used for nested messages
2819
- */
2820
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.serializeBinaryToWriter = function(message, writer) {
2821
- var f = undefined;
2822
- f = message.getSuccess();
2823
- if (f) {
2824
- writer.writeBool(
2825
- 1,
2826
- f
2827
- );
2828
- }
2829
- f = message.getSiteId();
2830
- if (f.length > 0) {
2831
- writer.writeString(
2832
- 2,
2833
- f
2834
- );
2835
- }
2836
- f = message.getOldInstallId();
2837
- if (f.length > 0) {
2838
- writer.writeString(
2839
- 3,
2840
- f
2841
- );
2842
- }
2843
- f = message.getNewInstallId();
2844
- if (f.length > 0) {
2845
- writer.writeString(
2846
- 4,
2847
- f
2848
- );
2849
- }
2850
- };
2851
-
2852
-
2853
- /**
2854
- * optional bool success = 1;
2855
- * @return {boolean}
2856
- */
2857
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.prototype.getSuccess = function() {
2858
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
2859
- };
2860
-
2861
-
2862
- /**
2863
- * @param {boolean} value
2864
- * @return {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse} returns this
2865
- */
2866
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.prototype.setSuccess = function(value) {
2867
- return jspb.Message.setProto3BooleanField(this, 1, value);
2868
- };
2869
-
2870
-
2871
- /**
2872
- * optional string site_id = 2;
2873
- * @return {string}
2874
- */
2875
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.prototype.getSiteId = function() {
2876
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2877
- };
2878
-
2879
-
2880
- /**
2881
- * @param {string} value
2882
- * @return {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse} returns this
2883
- */
2884
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.prototype.setSiteId = function(value) {
2885
- return jspb.Message.setProto3StringField(this, 2, value);
2886
- };
2887
-
2888
-
2889
- /**
2890
- * optional string old_install_id = 3;
2891
- * @return {string}
2892
- */
2893
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.prototype.getOldInstallId = function() {
2894
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2895
- };
2896
-
2897
-
2898
- /**
2899
- * @param {string} value
2900
- * @return {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse} returns this
2901
- */
2902
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.prototype.setOldInstallId = function(value) {
2903
- return jspb.Message.setProto3StringField(this, 3, value);
2904
- };
2905
-
2906
-
2907
- /**
2908
- * optional string new_install_id = 4;
2909
- * @return {string}
2910
- */
2911
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.prototype.getNewInstallId = function() {
2912
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2913
- };
2914
-
2915
-
2916
- /**
2917
- * @param {string} value
2918
- * @return {!proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse} returns this
2919
- */
2920
- proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse.prototype.setNewInstallId = function(value) {
2921
- return jspb.Message.setProto3StringField(this, 4, value);
2922
- };
2923
-
2924
-
2925
-
2926
-
2927
-
2928
- if (jspb.Message.GENERATE_TO_OBJECT) {
2929
- /**
2930
- * Creates an object representation of this proto.
2931
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2932
- * Optional fields that are not set will be set to undefined.
2933
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2934
- * For the list of reserved names please see:
2935
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2936
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2937
- * JSPB instance for transitional soy proto support:
2938
- * http://goto/soy-param-migration
2939
- * @return {!Object}
2940
- */
2941
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.prototype.toObject = function(opt_includeInstance) {
2942
- return proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.toObject(opt_includeInstance, this);
2943
- };
2944
-
2945
-
2946
- /**
2947
- * Static version of the {@see toObject} method.
2948
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2949
- * the JSPB instance for transitional soy proto support:
2950
- * http://goto/soy-param-migration
2951
- * @param {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest} msg The msg instance to transform.
2952
- * @return {!Object}
2953
- * @suppress {unusedLocalVariables} f is only used for nested messages
2954
- */
2955
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.toObject = function(includeInstance, msg) {
2956
- var f, obj = {
2957
- clientId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2958
- trackId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2959
- removeData: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
2960
- fromOnprem: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
2961
- };
2962
-
2963
- if (includeInstance) {
2964
- obj.$jspbMessageInstance = msg;
2965
- }
2966
- return obj;
2967
- };
2968
- }
2969
-
2970
-
2971
- /**
2972
- * Deserializes binary data (in protobuf wire format).
2973
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2974
- * @return {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest}
2975
- */
2976
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.deserializeBinary = function(bytes) {
2977
- var reader = new jspb.BinaryReader(bytes);
2978
- var msg = new proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest;
2979
- return proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.deserializeBinaryFromReader(msg, reader);
2980
- };
2981
-
2982
-
2983
- /**
2984
- * Deserializes binary data (in protobuf wire format) from the
2985
- * given reader into the given message object.
2986
- * @param {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest} msg The message object to deserialize into.
2987
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2988
- * @return {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest}
2989
- */
2990
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.deserializeBinaryFromReader = function(msg, reader) {
2991
- while (reader.nextField()) {
2992
- if (reader.isEndGroup()) {
2993
- break;
2994
- }
2995
- var field = reader.getFieldNumber();
2996
- switch (field) {
2997
- case 1:
2998
- var value = /** @type {string} */ (reader.readString());
2999
- msg.setClientId(value);
3000
- break;
3001
- case 2:
3002
- var value = /** @type {string} */ (reader.readString());
3003
- msg.setTrackId(value);
3004
- break;
3005
- case 3:
3006
- var value = /** @type {boolean} */ (reader.readBool());
3007
- msg.setRemoveData(value);
3008
- break;
3009
- case 4:
3010
- var value = /** @type {boolean} */ (reader.readBool());
3011
- msg.setFromOnprem(value);
3012
- break;
3013
- default:
3014
- reader.skipField();
3015
- break;
3016
- }
3017
- }
3018
- return msg;
3019
- };
3020
-
3021
-
3022
- /**
3023
- * Serializes the message to binary data (in protobuf wire format).
3024
- * @return {!Uint8Array}
3025
- */
3026
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.prototype.serializeBinary = function() {
3027
- var writer = new jspb.BinaryWriter();
3028
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.serializeBinaryToWriter(this, writer);
3029
- return writer.getResultBuffer();
3030
- };
3031
-
3032
-
3033
- /**
3034
- * Serializes the given message to binary data (in protobuf wire
3035
- * format), writing to the given BinaryWriter.
3036
- * @param {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest} message
3037
- * @param {!jspb.BinaryWriter} writer
3038
- * @suppress {unusedLocalVariables} f is only used for nested messages
3039
- */
3040
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.serializeBinaryToWriter = function(message, writer) {
3041
- var f = undefined;
3042
- f = message.getClientId();
3043
- if (f.length > 0) {
3044
- writer.writeString(
3045
- 1,
3046
- f
3047
- );
3048
- }
3049
- f = message.getTrackId();
3050
- if (f.length > 0) {
3051
- writer.writeString(
3052
- 2,
3053
- f
3054
- );
3055
- }
3056
- f = message.getRemoveData();
3057
- if (f) {
3058
- writer.writeBool(
3059
- 3,
3060
- f
3061
- );
3062
- }
3063
- f = message.getFromOnprem();
3064
- if (f) {
3065
- writer.writeBool(
3066
- 4,
3067
- f
3068
- );
3069
- }
3070
- };
3071
-
3072
-
3073
- /**
3074
- * optional string client_id = 1;
3075
- * @return {string}
3076
- */
3077
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.prototype.getClientId = function() {
3078
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3079
- };
3080
-
3081
-
3082
- /**
3083
- * @param {string} value
3084
- * @return {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest} returns this
3085
- */
3086
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.prototype.setClientId = function(value) {
3087
- return jspb.Message.setProto3StringField(this, 1, value);
3088
- };
3089
-
3090
-
3091
- /**
3092
- * optional string track_id = 2;
3093
- * @return {string}
3094
- */
3095
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.prototype.getTrackId = function() {
3096
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3097
- };
3098
-
3099
-
3100
- /**
3101
- * @param {string} value
3102
- * @return {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest} returns this
3103
- */
3104
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.prototype.setTrackId = function(value) {
3105
- return jspb.Message.setProto3StringField(this, 2, value);
3106
- };
3107
-
3108
-
3109
- /**
3110
- * optional bool remove_data = 3;
3111
- * @return {boolean}
3112
- */
3113
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.prototype.getRemoveData = function() {
3114
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
3115
- };
3116
-
3117
-
3118
- /**
3119
- * @param {boolean} value
3120
- * @return {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest} returns this
3121
- */
3122
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.prototype.setRemoveData = function(value) {
3123
- return jspb.Message.setProto3BooleanField(this, 3, value);
3124
- };
3125
-
3126
-
3127
- /**
3128
- * optional bool from_onprem = 4;
3129
- * @return {boolean}
3130
- */
3131
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.prototype.getFromOnprem = function() {
3132
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
3133
- };
3134
-
3135
-
3136
- /**
3137
- * @param {boolean} value
3138
- * @return {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest} returns this
3139
- */
3140
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest.prototype.setFromOnprem = function(value) {
3141
- return jspb.Message.setProto3BooleanField(this, 4, value);
3142
- };
3143
-
3144
-
3145
-
3146
-
3147
-
3148
- if (jspb.Message.GENERATE_TO_OBJECT) {
3149
- /**
3150
- * Creates an object representation of this proto.
3151
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3152
- * Optional fields that are not set will be set to undefined.
3153
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3154
- * For the list of reserved names please see:
3155
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3156
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3157
- * JSPB instance for transitional soy proto support:
3158
- * http://goto/soy-param-migration
3159
- * @return {!Object}
3160
- */
3161
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.prototype.toObject = function(opt_includeInstance) {
3162
- return proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.toObject(opt_includeInstance, this);
3163
- };
3164
-
3165
-
3166
- /**
3167
- * Static version of the {@see toObject} method.
3168
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3169
- * the JSPB instance for transitional soy proto support:
3170
- * http://goto/soy-param-migration
3171
- * @param {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse} msg The msg instance to transform.
3172
- * @return {!Object}
3173
- * @suppress {unusedLocalVariables} f is only used for nested messages
3174
- */
3175
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.toObject = function(includeInstance, msg) {
3176
- var f, obj = {
3177
- success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
3178
- };
3179
-
3180
- if (includeInstance) {
3181
- obj.$jspbMessageInstance = msg;
3182
- }
3183
- return obj;
3184
- };
3185
- }
3186
-
3187
-
3188
- /**
3189
- * Deserializes binary data (in protobuf wire format).
3190
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3191
- * @return {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse}
3192
- */
3193
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.deserializeBinary = function(bytes) {
3194
- var reader = new jspb.BinaryReader(bytes);
3195
- var msg = new proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse;
3196
- return proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.deserializeBinaryFromReader(msg, reader);
3197
- };
3198
-
3199
-
3200
- /**
3201
- * Deserializes binary data (in protobuf wire format) from the
3202
- * given reader into the given message object.
3203
- * @param {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse} msg The message object to deserialize into.
3204
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3205
- * @return {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse}
3206
- */
3207
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.deserializeBinaryFromReader = function(msg, reader) {
3208
- while (reader.nextField()) {
3209
- if (reader.isEndGroup()) {
3210
- break;
3211
- }
3212
- var field = reader.getFieldNumber();
3213
- switch (field) {
3214
- case 1:
3215
- var value = /** @type {boolean} */ (reader.readBool());
3216
- msg.setSuccess(value);
3217
- break;
3218
- default:
3219
- reader.skipField();
3220
- break;
3221
- }
3222
- }
3223
- return msg;
3224
- };
3225
-
3226
-
3227
- /**
3228
- * Serializes the message to binary data (in protobuf wire format).
3229
- * @return {!Uint8Array}
3230
- */
3231
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.prototype.serializeBinary = function() {
3232
- var writer = new jspb.BinaryWriter();
3233
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.serializeBinaryToWriter(this, writer);
3234
- return writer.getResultBuffer();
3235
- };
3236
-
3237
-
3238
- /**
3239
- * Serializes the given message to binary data (in protobuf wire
3240
- * format), writing to the given BinaryWriter.
3241
- * @param {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse} message
3242
- * @param {!jspb.BinaryWriter} writer
3243
- * @suppress {unusedLocalVariables} f is only used for nested messages
3244
- */
3245
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.serializeBinaryToWriter = function(message, writer) {
3246
- var f = undefined;
3247
- f = message.getSuccess();
3248
- if (f) {
3249
- writer.writeBool(
3250
- 1,
3251
- f
3252
- );
3253
- }
3254
- };
3255
-
3256
-
3257
- /**
3258
- * optional bool success = 1;
3259
- * @return {boolean}
3260
- */
3261
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.prototype.getSuccess = function() {
3262
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
3263
- };
3264
-
3265
-
3266
- /**
3267
- * @param {boolean} value
3268
- * @return {!proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse} returns this
3269
- */
3270
- proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse.prototype.setSuccess = function(value) {
3271
- return jspb.Message.setProto3BooleanField(this, 1, value);
3272
- };
3273
-
3274
-
3275
- goog.object.extend(exports, proto.lansweeper.multitenant.v1);