@lansweeper/multitenant-api-grpc 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,645 @@
1
+ // source: accounts.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = Function('return this')();
17
+
18
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest', null, global);
19
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse', null, global);
20
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.PreviewAccount', null, global);
21
+ /**
22
+ * Generated by JsPbCodeGenerator.
23
+ * @param {Array=} opt_data Optional initial data array, typically from a
24
+ * server response, or constructed directly in Javascript. The array is used
25
+ * in place and becomes part of the constructed object. It is not cloned.
26
+ * If no data is provided, the constructed object will be empty, but still
27
+ * valid.
28
+ * @extends {jspb.Message}
29
+ * @constructor
30
+ */
31
+ proto.lansweeper.multitenant.v1.PreviewAccount = function(opt_data) {
32
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
33
+ };
34
+ goog.inherits(proto.lansweeper.multitenant.v1.PreviewAccount, jspb.Message);
35
+ if (goog.DEBUG && !COMPILED) {
36
+ /**
37
+ * @public
38
+ * @override
39
+ */
40
+ proto.lansweeper.multitenant.v1.PreviewAccount.displayName = 'proto.lansweeper.multitenant.v1.PreviewAccount';
41
+ }
42
+ /**
43
+ * Generated by JsPbCodeGenerator.
44
+ * @param {Array=} opt_data Optional initial data array, typically from a
45
+ * server response, or constructed directly in Javascript. The array is used
46
+ * in place and becomes part of the constructed object. It is not cloned.
47
+ * If no data is provided, the constructed object will be empty, but still
48
+ * valid.
49
+ * @extends {jspb.Message}
50
+ * @constructor
51
+ */
52
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
54
+ };
55
+ goog.inherits(proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest, jspb.Message);
56
+ if (goog.DEBUG && !COMPILED) {
57
+ /**
58
+ * @public
59
+ * @override
60
+ */
61
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.displayName = 'proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest';
62
+ }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
75
+ };
76
+ goog.inherits(proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.displayName = 'proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse';
83
+ }
84
+
85
+
86
+
87
+ if (jspb.Message.GENERATE_TO_OBJECT) {
88
+ /**
89
+ * Creates an object representation of this proto.
90
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
91
+ * Optional fields that are not set will be set to undefined.
92
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
93
+ * For the list of reserved names please see:
94
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
95
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
96
+ * JSPB instance for transitional soy proto support:
97
+ * http://goto/soy-param-migration
98
+ * @return {!Object}
99
+ */
100
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.toObject = function(opt_includeInstance) {
101
+ return proto.lansweeper.multitenant.v1.PreviewAccount.toObject(opt_includeInstance, this);
102
+ };
103
+
104
+
105
+ /**
106
+ * Static version of the {@see toObject} method.
107
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
108
+ * the JSPB instance for transitional soy proto support:
109
+ * http://goto/soy-param-migration
110
+ * @param {!proto.lansweeper.multitenant.v1.PreviewAccount} msg The msg instance to transform.
111
+ * @return {!Object}
112
+ * @suppress {unusedLocalVariables} f is only used for nested messages
113
+ */
114
+ proto.lansweeper.multitenant.v1.PreviewAccount.toObject = function(includeInstance, msg) {
115
+ var f, obj = {
116
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
117
+ username: jspb.Message.getFieldWithDefault(msg, 2, ""),
118
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
119
+ surname: jspb.Message.getFieldWithDefault(msg, 4, ""),
120
+ email: jspb.Message.getFieldWithDefault(msg, 5, ""),
121
+ imageUrl: jspb.Message.getFieldWithDefault(msg, 6, "")
122
+ };
123
+
124
+ if (includeInstance) {
125
+ obj.$jspbMessageInstance = msg;
126
+ }
127
+ return obj;
128
+ };
129
+ }
130
+
131
+
132
+ /**
133
+ * Deserializes binary data (in protobuf wire format).
134
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
135
+ * @return {!proto.lansweeper.multitenant.v1.PreviewAccount}
136
+ */
137
+ proto.lansweeper.multitenant.v1.PreviewAccount.deserializeBinary = function(bytes) {
138
+ var reader = new jspb.BinaryReader(bytes);
139
+ var msg = new proto.lansweeper.multitenant.v1.PreviewAccount;
140
+ return proto.lansweeper.multitenant.v1.PreviewAccount.deserializeBinaryFromReader(msg, reader);
141
+ };
142
+
143
+
144
+ /**
145
+ * Deserializes binary data (in protobuf wire format) from the
146
+ * given reader into the given message object.
147
+ * @param {!proto.lansweeper.multitenant.v1.PreviewAccount} msg The message object to deserialize into.
148
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
149
+ * @return {!proto.lansweeper.multitenant.v1.PreviewAccount}
150
+ */
151
+ proto.lansweeper.multitenant.v1.PreviewAccount.deserializeBinaryFromReader = function(msg, reader) {
152
+ while (reader.nextField()) {
153
+ if (reader.isEndGroup()) {
154
+ break;
155
+ }
156
+ var field = reader.getFieldNumber();
157
+ switch (field) {
158
+ case 1:
159
+ var value = /** @type {string} */ (reader.readString());
160
+ msg.setId(value);
161
+ break;
162
+ case 2:
163
+ var value = /** @type {string} */ (reader.readString());
164
+ msg.setUsername(value);
165
+ break;
166
+ case 3:
167
+ var value = /** @type {string} */ (reader.readString());
168
+ msg.setName(value);
169
+ break;
170
+ case 4:
171
+ var value = /** @type {string} */ (reader.readString());
172
+ msg.setSurname(value);
173
+ break;
174
+ case 5:
175
+ var value = /** @type {string} */ (reader.readString());
176
+ msg.setEmail(value);
177
+ break;
178
+ case 6:
179
+ var value = /** @type {string} */ (reader.readString());
180
+ msg.setImageUrl(value);
181
+ break;
182
+ default:
183
+ reader.skipField();
184
+ break;
185
+ }
186
+ }
187
+ return msg;
188
+ };
189
+
190
+
191
+ /**
192
+ * Serializes the message to binary data (in protobuf wire format).
193
+ * @return {!Uint8Array}
194
+ */
195
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.serializeBinary = function() {
196
+ var writer = new jspb.BinaryWriter();
197
+ proto.lansweeper.multitenant.v1.PreviewAccount.serializeBinaryToWriter(this, writer);
198
+ return writer.getResultBuffer();
199
+ };
200
+
201
+
202
+ /**
203
+ * Serializes the given message to binary data (in protobuf wire
204
+ * format), writing to the given BinaryWriter.
205
+ * @param {!proto.lansweeper.multitenant.v1.PreviewAccount} message
206
+ * @param {!jspb.BinaryWriter} writer
207
+ * @suppress {unusedLocalVariables} f is only used for nested messages
208
+ */
209
+ proto.lansweeper.multitenant.v1.PreviewAccount.serializeBinaryToWriter = function(message, writer) {
210
+ var f = undefined;
211
+ f = message.getId();
212
+ if (f.length > 0) {
213
+ writer.writeString(
214
+ 1,
215
+ f
216
+ );
217
+ }
218
+ f = message.getUsername();
219
+ if (f.length > 0) {
220
+ writer.writeString(
221
+ 2,
222
+ f
223
+ );
224
+ }
225
+ f = message.getName();
226
+ if (f.length > 0) {
227
+ writer.writeString(
228
+ 3,
229
+ f
230
+ );
231
+ }
232
+ f = message.getSurname();
233
+ if (f.length > 0) {
234
+ writer.writeString(
235
+ 4,
236
+ f
237
+ );
238
+ }
239
+ f = message.getEmail();
240
+ if (f.length > 0) {
241
+ writer.writeString(
242
+ 5,
243
+ f
244
+ );
245
+ }
246
+ f = message.getImageUrl();
247
+ if (f.length > 0) {
248
+ writer.writeString(
249
+ 6,
250
+ f
251
+ );
252
+ }
253
+ };
254
+
255
+
256
+ /**
257
+ * optional string id = 1;
258
+ * @return {string}
259
+ */
260
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.getId = function() {
261
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
262
+ };
263
+
264
+
265
+ /**
266
+ * @param {string} value
267
+ * @return {!proto.lansweeper.multitenant.v1.PreviewAccount} returns this
268
+ */
269
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.setId = function(value) {
270
+ return jspb.Message.setProto3StringField(this, 1, value);
271
+ };
272
+
273
+
274
+ /**
275
+ * optional string username = 2;
276
+ * @return {string}
277
+ */
278
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.getUsername = function() {
279
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
280
+ };
281
+
282
+
283
+ /**
284
+ * @param {string} value
285
+ * @return {!proto.lansweeper.multitenant.v1.PreviewAccount} returns this
286
+ */
287
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.setUsername = function(value) {
288
+ return jspb.Message.setProto3StringField(this, 2, value);
289
+ };
290
+
291
+
292
+ /**
293
+ * optional string name = 3;
294
+ * @return {string}
295
+ */
296
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.getName = function() {
297
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
298
+ };
299
+
300
+
301
+ /**
302
+ * @param {string} value
303
+ * @return {!proto.lansweeper.multitenant.v1.PreviewAccount} returns this
304
+ */
305
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.setName = function(value) {
306
+ return jspb.Message.setProto3StringField(this, 3, value);
307
+ };
308
+
309
+
310
+ /**
311
+ * optional string surname = 4;
312
+ * @return {string}
313
+ */
314
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.getSurname = function() {
315
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
316
+ };
317
+
318
+
319
+ /**
320
+ * @param {string} value
321
+ * @return {!proto.lansweeper.multitenant.v1.PreviewAccount} returns this
322
+ */
323
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.setSurname = function(value) {
324
+ return jspb.Message.setProto3StringField(this, 4, value);
325
+ };
326
+
327
+
328
+ /**
329
+ * optional string email = 5;
330
+ * @return {string}
331
+ */
332
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.getEmail = function() {
333
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
334
+ };
335
+
336
+
337
+ /**
338
+ * @param {string} value
339
+ * @return {!proto.lansweeper.multitenant.v1.PreviewAccount} returns this
340
+ */
341
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.setEmail = function(value) {
342
+ return jspb.Message.setProto3StringField(this, 5, value);
343
+ };
344
+
345
+
346
+ /**
347
+ * optional string image_url = 6;
348
+ * @return {string}
349
+ */
350
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.getImageUrl = function() {
351
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
352
+ };
353
+
354
+
355
+ /**
356
+ * @param {string} value
357
+ * @return {!proto.lansweeper.multitenant.v1.PreviewAccount} returns this
358
+ */
359
+ proto.lansweeper.multitenant.v1.PreviewAccount.prototype.setImageUrl = function(value) {
360
+ return jspb.Message.setProto3StringField(this, 6, value);
361
+ };
362
+
363
+
364
+
365
+
366
+
367
+ if (jspb.Message.GENERATE_TO_OBJECT) {
368
+ /**
369
+ * Creates an object representation of this proto.
370
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
371
+ * Optional fields that are not set will be set to undefined.
372
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
373
+ * For the list of reserved names please see:
374
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
375
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
376
+ * JSPB instance for transitional soy proto support:
377
+ * http://goto/soy-param-migration
378
+ * @return {!Object}
379
+ */
380
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.prototype.toObject = function(opt_includeInstance) {
381
+ return proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.toObject(opt_includeInstance, this);
382
+ };
383
+
384
+
385
+ /**
386
+ * Static version of the {@see toObject} method.
387
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
388
+ * the JSPB instance for transitional soy proto support:
389
+ * http://goto/soy-param-migration
390
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest} msg The msg instance to transform.
391
+ * @return {!Object}
392
+ * @suppress {unusedLocalVariables} f is only used for nested messages
393
+ */
394
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.toObject = function(includeInstance, msg) {
395
+ var f, obj = {
396
+ id: jspb.Message.getFieldWithDefault(msg, 1, "")
397
+ };
398
+
399
+ if (includeInstance) {
400
+ obj.$jspbMessageInstance = msg;
401
+ }
402
+ return obj;
403
+ };
404
+ }
405
+
406
+
407
+ /**
408
+ * Deserializes binary data (in protobuf wire format).
409
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
410
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest}
411
+ */
412
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.deserializeBinary = function(bytes) {
413
+ var reader = new jspb.BinaryReader(bytes);
414
+ var msg = new proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest;
415
+ return proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.deserializeBinaryFromReader(msg, reader);
416
+ };
417
+
418
+
419
+ /**
420
+ * Deserializes binary data (in protobuf wire format) from the
421
+ * given reader into the given message object.
422
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest} msg The message object to deserialize into.
423
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
424
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest}
425
+ */
426
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
427
+ while (reader.nextField()) {
428
+ if (reader.isEndGroup()) {
429
+ break;
430
+ }
431
+ var field = reader.getFieldNumber();
432
+ switch (field) {
433
+ case 1:
434
+ var value = /** @type {string} */ (reader.readString());
435
+ msg.setId(value);
436
+ break;
437
+ default:
438
+ reader.skipField();
439
+ break;
440
+ }
441
+ }
442
+ return msg;
443
+ };
444
+
445
+
446
+ /**
447
+ * Serializes the message to binary data (in protobuf wire format).
448
+ * @return {!Uint8Array}
449
+ */
450
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.prototype.serializeBinary = function() {
451
+ var writer = new jspb.BinaryWriter();
452
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.serializeBinaryToWriter(this, writer);
453
+ return writer.getResultBuffer();
454
+ };
455
+
456
+
457
+ /**
458
+ * Serializes the given message to binary data (in protobuf wire
459
+ * format), writing to the given BinaryWriter.
460
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest} message
461
+ * @param {!jspb.BinaryWriter} writer
462
+ * @suppress {unusedLocalVariables} f is only used for nested messages
463
+ */
464
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.serializeBinaryToWriter = function(message, writer) {
465
+ var f = undefined;
466
+ f = message.getId();
467
+ if (f.length > 0) {
468
+ writer.writeString(
469
+ 1,
470
+ f
471
+ );
472
+ }
473
+ };
474
+
475
+
476
+ /**
477
+ * optional string id = 1;
478
+ * @return {string}
479
+ */
480
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.prototype.getId = function() {
481
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
482
+ };
483
+
484
+
485
+ /**
486
+ * @param {string} value
487
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest} returns this
488
+ */
489
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest.prototype.setId = function(value) {
490
+ return jspb.Message.setProto3StringField(this, 1, value);
491
+ };
492
+
493
+
494
+
495
+
496
+
497
+ if (jspb.Message.GENERATE_TO_OBJECT) {
498
+ /**
499
+ * Creates an object representation of this proto.
500
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
501
+ * Optional fields that are not set will be set to undefined.
502
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
503
+ * For the list of reserved names please see:
504
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
505
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
506
+ * JSPB instance for transitional soy proto support:
507
+ * http://goto/soy-param-migration
508
+ * @return {!Object}
509
+ */
510
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.prototype.toObject = function(opt_includeInstance) {
511
+ return proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.toObject(opt_includeInstance, this);
512
+ };
513
+
514
+
515
+ /**
516
+ * Static version of the {@see toObject} method.
517
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
518
+ * the JSPB instance for transitional soy proto support:
519
+ * http://goto/soy-param-migration
520
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse} msg The msg instance to transform.
521
+ * @return {!Object}
522
+ * @suppress {unusedLocalVariables} f is only used for nested messages
523
+ */
524
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.toObject = function(includeInstance, msg) {
525
+ var f, obj = {
526
+ account: (f = msg.getAccount()) && proto.lansweeper.multitenant.v1.PreviewAccount.toObject(includeInstance, f)
527
+ };
528
+
529
+ if (includeInstance) {
530
+ obj.$jspbMessageInstance = msg;
531
+ }
532
+ return obj;
533
+ };
534
+ }
535
+
536
+
537
+ /**
538
+ * Deserializes binary data (in protobuf wire format).
539
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
540
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse}
541
+ */
542
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.deserializeBinary = function(bytes) {
543
+ var reader = new jspb.BinaryReader(bytes);
544
+ var msg = new proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse;
545
+ return proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.deserializeBinaryFromReader(msg, reader);
546
+ };
547
+
548
+
549
+ /**
550
+ * Deserializes binary data (in protobuf wire format) from the
551
+ * given reader into the given message object.
552
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse} msg The message object to deserialize into.
553
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
554
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse}
555
+ */
556
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
557
+ while (reader.nextField()) {
558
+ if (reader.isEndGroup()) {
559
+ break;
560
+ }
561
+ var field = reader.getFieldNumber();
562
+ switch (field) {
563
+ case 1:
564
+ var value = new proto.lansweeper.multitenant.v1.PreviewAccount;
565
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.PreviewAccount.deserializeBinaryFromReader);
566
+ msg.setAccount(value);
567
+ break;
568
+ default:
569
+ reader.skipField();
570
+ break;
571
+ }
572
+ }
573
+ return msg;
574
+ };
575
+
576
+
577
+ /**
578
+ * Serializes the message to binary data (in protobuf wire format).
579
+ * @return {!Uint8Array}
580
+ */
581
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.prototype.serializeBinary = function() {
582
+ var writer = new jspb.BinaryWriter();
583
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.serializeBinaryToWriter(this, writer);
584
+ return writer.getResultBuffer();
585
+ };
586
+
587
+
588
+ /**
589
+ * Serializes the given message to binary data (in protobuf wire
590
+ * format), writing to the given BinaryWriter.
591
+ * @param {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse} message
592
+ * @param {!jspb.BinaryWriter} writer
593
+ * @suppress {unusedLocalVariables} f is only used for nested messages
594
+ */
595
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.serializeBinaryToWriter = function(message, writer) {
596
+ var f = undefined;
597
+ f = message.getAccount();
598
+ if (f != null) {
599
+ writer.writeMessage(
600
+ 1,
601
+ f,
602
+ proto.lansweeper.multitenant.v1.PreviewAccount.serializeBinaryToWriter
603
+ );
604
+ }
605
+ };
606
+
607
+
608
+ /**
609
+ * optional PreviewAccount account = 1;
610
+ * @return {?proto.lansweeper.multitenant.v1.PreviewAccount}
611
+ */
612
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.prototype.getAccount = function() {
613
+ return /** @type{?proto.lansweeper.multitenant.v1.PreviewAccount} */ (
614
+ jspb.Message.getWrapperField(this, proto.lansweeper.multitenant.v1.PreviewAccount, 1));
615
+ };
616
+
617
+
618
+ /**
619
+ * @param {?proto.lansweeper.multitenant.v1.PreviewAccount|undefined} value
620
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse} returns this
621
+ */
622
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.prototype.setAccount = function(value) {
623
+ return jspb.Message.setWrapperField(this, 1, value);
624
+ };
625
+
626
+
627
+ /**
628
+ * Clears the message field making it undefined.
629
+ * @return {!proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse} returns this
630
+ */
631
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.prototype.clearAccount = function() {
632
+ return this.setAccount(undefined);
633
+ };
634
+
635
+
636
+ /**
637
+ * Returns whether this field is set.
638
+ * @return {boolean}
639
+ */
640
+ proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse.prototype.hasAccount = function() {
641
+ return jspb.Message.getField(this, 1) != null;
642
+ };
643
+
644
+
645
+ goog.object.extend(exports, proto.lansweeper.multitenant.v1);