@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,1011 @@
1
+ // source: profiles.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.CheckAccessToSiteByAccountIdRequest', null, global);
21
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse', null, global);
22
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest', null, global);
23
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse', null, global);
24
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.Profile', null, global);
25
+ /**
26
+ * Generated by JsPbCodeGenerator.
27
+ * @param {Array=} opt_data Optional initial data array, typically from a
28
+ * server response, or constructed directly in Javascript. The array is used
29
+ * in place and becomes part of the constructed object. It is not cloned.
30
+ * If no data is provided, the constructed object will be empty, but still
31
+ * valid.
32
+ * @extends {jspb.Message}
33
+ * @constructor
34
+ */
35
+ proto.lansweeper.multitenant.v1.Profile = function(opt_data) {
36
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
37
+ };
38
+ goog.inherits(proto.lansweeper.multitenant.v1.Profile, jspb.Message);
39
+ if (goog.DEBUG && !COMPILED) {
40
+ /**
41
+ * @public
42
+ * @override
43
+ */
44
+ proto.lansweeper.multitenant.v1.Profile.displayName = 'proto.lansweeper.multitenant.v1.Profile';
45
+ }
46
+ /**
47
+ * Generated by JsPbCodeGenerator.
48
+ * @param {Array=} opt_data Optional initial data array, typically from a
49
+ * server response, or constructed directly in Javascript. The array is used
50
+ * in place and becomes part of the constructed object. It is not cloned.
51
+ * If no data is provided, the constructed object will be empty, but still
52
+ * valid.
53
+ * @extends {jspb.Message}
54
+ * @constructor
55
+ */
56
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest = function(opt_data) {
57
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
58
+ };
59
+ goog.inherits(proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest, jspb.Message);
60
+ if (goog.DEBUG && !COMPILED) {
61
+ /**
62
+ * @public
63
+ * @override
64
+ */
65
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.displayName = 'proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest';
66
+ }
67
+ /**
68
+ * Generated by JsPbCodeGenerator.
69
+ * @param {Array=} opt_data Optional initial data array, typically from a
70
+ * server response, or constructed directly in Javascript. The array is used
71
+ * in place and becomes part of the constructed object. It is not cloned.
72
+ * If no data is provided, the constructed object will be empty, but still
73
+ * valid.
74
+ * @extends {jspb.Message}
75
+ * @constructor
76
+ */
77
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse = function(opt_data) {
78
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.repeatedFields_, null);
79
+ };
80
+ goog.inherits(proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse, jspb.Message);
81
+ if (goog.DEBUG && !COMPILED) {
82
+ /**
83
+ * @public
84
+ * @override
85
+ */
86
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.displayName = 'proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse';
87
+ }
88
+ /**
89
+ * Generated by JsPbCodeGenerator.
90
+ * @param {Array=} opt_data Optional initial data array, typically from a
91
+ * server response, or constructed directly in Javascript. The array is used
92
+ * in place and becomes part of the constructed object. It is not cloned.
93
+ * If no data is provided, the constructed object will be empty, but still
94
+ * valid.
95
+ * @extends {jspb.Message}
96
+ * @constructor
97
+ */
98
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest = function(opt_data) {
99
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
100
+ };
101
+ goog.inherits(proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest, jspb.Message);
102
+ if (goog.DEBUG && !COMPILED) {
103
+ /**
104
+ * @public
105
+ * @override
106
+ */
107
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.displayName = 'proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest';
108
+ }
109
+ /**
110
+ * Generated by JsPbCodeGenerator.
111
+ * @param {Array=} opt_data Optional initial data array, typically from a
112
+ * server response, or constructed directly in Javascript. The array is used
113
+ * in place and becomes part of the constructed object. It is not cloned.
114
+ * If no data is provided, the constructed object will be empty, but still
115
+ * valid.
116
+ * @extends {jspb.Message}
117
+ * @constructor
118
+ */
119
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse = function(opt_data) {
120
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
121
+ };
122
+ goog.inherits(proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse, jspb.Message);
123
+ if (goog.DEBUG && !COMPILED) {
124
+ /**
125
+ * @public
126
+ * @override
127
+ */
128
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.displayName = 'proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse';
129
+ }
130
+
131
+
132
+
133
+ if (jspb.Message.GENERATE_TO_OBJECT) {
134
+ /**
135
+ * Creates an object representation of this proto.
136
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
137
+ * Optional fields that are not set will be set to undefined.
138
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
139
+ * For the list of reserved names please see:
140
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
141
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
142
+ * JSPB instance for transitional soy proto support:
143
+ * http://goto/soy-param-migration
144
+ * @return {!Object}
145
+ */
146
+ proto.lansweeper.multitenant.v1.Profile.prototype.toObject = function(opt_includeInstance) {
147
+ return proto.lansweeper.multitenant.v1.Profile.toObject(opt_includeInstance, this);
148
+ };
149
+
150
+
151
+ /**
152
+ * Static version of the {@see toObject} method.
153
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
154
+ * the JSPB instance for transitional soy proto support:
155
+ * http://goto/soy-param-migration
156
+ * @param {!proto.lansweeper.multitenant.v1.Profile} msg The msg instance to transform.
157
+ * @return {!Object}
158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
159
+ */
160
+ proto.lansweeper.multitenant.v1.Profile.toObject = function(includeInstance, msg) {
161
+ var f, obj = {
162
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
163
+ siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
164
+ site: (f = msg.getSite()) && sites_pb.PreviewSite.toObject(includeInstance, f),
165
+ isOwner: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
166
+ };
167
+
168
+ if (includeInstance) {
169
+ obj.$jspbMessageInstance = msg;
170
+ }
171
+ return obj;
172
+ };
173
+ }
174
+
175
+
176
+ /**
177
+ * Deserializes binary data (in protobuf wire format).
178
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
179
+ * @return {!proto.lansweeper.multitenant.v1.Profile}
180
+ */
181
+ proto.lansweeper.multitenant.v1.Profile.deserializeBinary = function(bytes) {
182
+ var reader = new jspb.BinaryReader(bytes);
183
+ var msg = new proto.lansweeper.multitenant.v1.Profile;
184
+ return proto.lansweeper.multitenant.v1.Profile.deserializeBinaryFromReader(msg, reader);
185
+ };
186
+
187
+
188
+ /**
189
+ * Deserializes binary data (in protobuf wire format) from the
190
+ * given reader into the given message object.
191
+ * @param {!proto.lansweeper.multitenant.v1.Profile} msg The message object to deserialize into.
192
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
193
+ * @return {!proto.lansweeper.multitenant.v1.Profile}
194
+ */
195
+ proto.lansweeper.multitenant.v1.Profile.deserializeBinaryFromReader = function(msg, reader) {
196
+ while (reader.nextField()) {
197
+ if (reader.isEndGroup()) {
198
+ break;
199
+ }
200
+ var field = reader.getFieldNumber();
201
+ switch (field) {
202
+ case 1:
203
+ var value = /** @type {string} */ (reader.readString());
204
+ msg.setId(value);
205
+ break;
206
+ case 2:
207
+ var value = /** @type {string} */ (reader.readString());
208
+ msg.setSiteId(value);
209
+ break;
210
+ case 3:
211
+ var value = new sites_pb.PreviewSite;
212
+ reader.readMessage(value,sites_pb.PreviewSite.deserializeBinaryFromReader);
213
+ msg.setSite(value);
214
+ break;
215
+ case 4:
216
+ var value = /** @type {boolean} */ (reader.readBool());
217
+ msg.setIsOwner(value);
218
+ break;
219
+ default:
220
+ reader.skipField();
221
+ break;
222
+ }
223
+ }
224
+ return msg;
225
+ };
226
+
227
+
228
+ /**
229
+ * Serializes the message to binary data (in protobuf wire format).
230
+ * @return {!Uint8Array}
231
+ */
232
+ proto.lansweeper.multitenant.v1.Profile.prototype.serializeBinary = function() {
233
+ var writer = new jspb.BinaryWriter();
234
+ proto.lansweeper.multitenant.v1.Profile.serializeBinaryToWriter(this, writer);
235
+ return writer.getResultBuffer();
236
+ };
237
+
238
+
239
+ /**
240
+ * Serializes the given message to binary data (in protobuf wire
241
+ * format), writing to the given BinaryWriter.
242
+ * @param {!proto.lansweeper.multitenant.v1.Profile} message
243
+ * @param {!jspb.BinaryWriter} writer
244
+ * @suppress {unusedLocalVariables} f is only used for nested messages
245
+ */
246
+ proto.lansweeper.multitenant.v1.Profile.serializeBinaryToWriter = function(message, writer) {
247
+ var f = undefined;
248
+ f = message.getId();
249
+ if (f.length > 0) {
250
+ writer.writeString(
251
+ 1,
252
+ f
253
+ );
254
+ }
255
+ f = message.getSiteId();
256
+ if (f.length > 0) {
257
+ writer.writeString(
258
+ 2,
259
+ f
260
+ );
261
+ }
262
+ f = message.getSite();
263
+ if (f != null) {
264
+ writer.writeMessage(
265
+ 3,
266
+ f,
267
+ sites_pb.PreviewSite.serializeBinaryToWriter
268
+ );
269
+ }
270
+ f = message.getIsOwner();
271
+ if (f) {
272
+ writer.writeBool(
273
+ 4,
274
+ f
275
+ );
276
+ }
277
+ };
278
+
279
+
280
+ /**
281
+ * optional string id = 1;
282
+ * @return {string}
283
+ */
284
+ proto.lansweeper.multitenant.v1.Profile.prototype.getId = function() {
285
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
286
+ };
287
+
288
+
289
+ /**
290
+ * @param {string} value
291
+ * @return {!proto.lansweeper.multitenant.v1.Profile} returns this
292
+ */
293
+ proto.lansweeper.multitenant.v1.Profile.prototype.setId = function(value) {
294
+ return jspb.Message.setProto3StringField(this, 1, value);
295
+ };
296
+
297
+
298
+ /**
299
+ * optional string site_id = 2;
300
+ * @return {string}
301
+ */
302
+ proto.lansweeper.multitenant.v1.Profile.prototype.getSiteId = function() {
303
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
304
+ };
305
+
306
+
307
+ /**
308
+ * @param {string} value
309
+ * @return {!proto.lansweeper.multitenant.v1.Profile} returns this
310
+ */
311
+ proto.lansweeper.multitenant.v1.Profile.prototype.setSiteId = function(value) {
312
+ return jspb.Message.setProto3StringField(this, 2, value);
313
+ };
314
+
315
+
316
+ /**
317
+ * optional PreviewSite site = 3;
318
+ * @return {?proto.lansweeper.multitenant.v1.PreviewSite}
319
+ */
320
+ proto.lansweeper.multitenant.v1.Profile.prototype.getSite = function() {
321
+ return /** @type{?proto.lansweeper.multitenant.v1.PreviewSite} */ (
322
+ jspb.Message.getWrapperField(this, sites_pb.PreviewSite, 3));
323
+ };
324
+
325
+
326
+ /**
327
+ * @param {?proto.lansweeper.multitenant.v1.PreviewSite|undefined} value
328
+ * @return {!proto.lansweeper.multitenant.v1.Profile} returns this
329
+ */
330
+ proto.lansweeper.multitenant.v1.Profile.prototype.setSite = function(value) {
331
+ return jspb.Message.setWrapperField(this, 3, value);
332
+ };
333
+
334
+
335
+ /**
336
+ * Clears the message field making it undefined.
337
+ * @return {!proto.lansweeper.multitenant.v1.Profile} returns this
338
+ */
339
+ proto.lansweeper.multitenant.v1.Profile.prototype.clearSite = function() {
340
+ return this.setSite(undefined);
341
+ };
342
+
343
+
344
+ /**
345
+ * Returns whether this field is set.
346
+ * @return {boolean}
347
+ */
348
+ proto.lansweeper.multitenant.v1.Profile.prototype.hasSite = function() {
349
+ return jspb.Message.getField(this, 3) != null;
350
+ };
351
+
352
+
353
+ /**
354
+ * optional bool is_owner = 4;
355
+ * @return {boolean}
356
+ */
357
+ proto.lansweeper.multitenant.v1.Profile.prototype.getIsOwner = function() {
358
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
359
+ };
360
+
361
+
362
+ /**
363
+ * @param {boolean} value
364
+ * @return {!proto.lansweeper.multitenant.v1.Profile} returns this
365
+ */
366
+ proto.lansweeper.multitenant.v1.Profile.prototype.setIsOwner = function(value) {
367
+ return jspb.Message.setProto3BooleanField(this, 4, value);
368
+ };
369
+
370
+
371
+
372
+
373
+
374
+ if (jspb.Message.GENERATE_TO_OBJECT) {
375
+ /**
376
+ * Creates an object representation of this proto.
377
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
378
+ * Optional fields that are not set will be set to undefined.
379
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
380
+ * For the list of reserved names please see:
381
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
382
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
383
+ * JSPB instance for transitional soy proto support:
384
+ * http://goto/soy-param-migration
385
+ * @return {!Object}
386
+ */
387
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.prototype.toObject = function(opt_includeInstance) {
388
+ return proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.toObject(opt_includeInstance, this);
389
+ };
390
+
391
+
392
+ /**
393
+ * Static version of the {@see toObject} method.
394
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
395
+ * the JSPB instance for transitional soy proto support:
396
+ * http://goto/soy-param-migration
397
+ * @param {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest} msg The msg instance to transform.
398
+ * @return {!Object}
399
+ * @suppress {unusedLocalVariables} f is only used for nested messages
400
+ */
401
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.toObject = function(includeInstance, msg) {
402
+ var f, obj = {
403
+ accountId: jspb.Message.getFieldWithDefault(msg, 1, ""),
404
+ includeBlocks: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
405
+ };
406
+
407
+ if (includeInstance) {
408
+ obj.$jspbMessageInstance = msg;
409
+ }
410
+ return obj;
411
+ };
412
+ }
413
+
414
+
415
+ /**
416
+ * Deserializes binary data (in protobuf wire format).
417
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
418
+ * @return {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest}
419
+ */
420
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.deserializeBinary = function(bytes) {
421
+ var reader = new jspb.BinaryReader(bytes);
422
+ var msg = new proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest;
423
+ return proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.deserializeBinaryFromReader(msg, reader);
424
+ };
425
+
426
+
427
+ /**
428
+ * Deserializes binary data (in protobuf wire format) from the
429
+ * given reader into the given message object.
430
+ * @param {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest} msg The message object to deserialize into.
431
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
432
+ * @return {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest}
433
+ */
434
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.deserializeBinaryFromReader = function(msg, reader) {
435
+ while (reader.nextField()) {
436
+ if (reader.isEndGroup()) {
437
+ break;
438
+ }
439
+ var field = reader.getFieldNumber();
440
+ switch (field) {
441
+ case 1:
442
+ var value = /** @type {string} */ (reader.readString());
443
+ msg.setAccountId(value);
444
+ break;
445
+ case 2:
446
+ var value = /** @type {boolean} */ (reader.readBool());
447
+ msg.setIncludeBlocks(value);
448
+ break;
449
+ default:
450
+ reader.skipField();
451
+ break;
452
+ }
453
+ }
454
+ return msg;
455
+ };
456
+
457
+
458
+ /**
459
+ * Serializes the message to binary data (in protobuf wire format).
460
+ * @return {!Uint8Array}
461
+ */
462
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.prototype.serializeBinary = function() {
463
+ var writer = new jspb.BinaryWriter();
464
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.serializeBinaryToWriter(this, writer);
465
+ return writer.getResultBuffer();
466
+ };
467
+
468
+
469
+ /**
470
+ * Serializes the given message to binary data (in protobuf wire
471
+ * format), writing to the given BinaryWriter.
472
+ * @param {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest} message
473
+ * @param {!jspb.BinaryWriter} writer
474
+ * @suppress {unusedLocalVariables} f is only used for nested messages
475
+ */
476
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.serializeBinaryToWriter = function(message, writer) {
477
+ var f = undefined;
478
+ f = message.getAccountId();
479
+ if (f.length > 0) {
480
+ writer.writeString(
481
+ 1,
482
+ f
483
+ );
484
+ }
485
+ f = message.getIncludeBlocks();
486
+ if (f) {
487
+ writer.writeBool(
488
+ 2,
489
+ f
490
+ );
491
+ }
492
+ };
493
+
494
+
495
+ /**
496
+ * optional string account_id = 1;
497
+ * @return {string}
498
+ */
499
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.prototype.getAccountId = function() {
500
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
501
+ };
502
+
503
+
504
+ /**
505
+ * @param {string} value
506
+ * @return {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest} returns this
507
+ */
508
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.prototype.setAccountId = function(value) {
509
+ return jspb.Message.setProto3StringField(this, 1, value);
510
+ };
511
+
512
+
513
+ /**
514
+ * optional bool include_blocks = 2;
515
+ * @return {boolean}
516
+ */
517
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.prototype.getIncludeBlocks = function() {
518
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
519
+ };
520
+
521
+
522
+ /**
523
+ * @param {boolean} value
524
+ * @return {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest} returns this
525
+ */
526
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdRequest.prototype.setIncludeBlocks = function(value) {
527
+ return jspb.Message.setProto3BooleanField(this, 2, value);
528
+ };
529
+
530
+
531
+
532
+ /**
533
+ * List of repeated fields within this message type.
534
+ * @private {!Array<number>}
535
+ * @const
536
+ */
537
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.repeatedFields_ = [1];
538
+
539
+
540
+
541
+ if (jspb.Message.GENERATE_TO_OBJECT) {
542
+ /**
543
+ * Creates an object representation of this proto.
544
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
545
+ * Optional fields that are not set will be set to undefined.
546
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
547
+ * For the list of reserved names please see:
548
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
549
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
550
+ * JSPB instance for transitional soy proto support:
551
+ * http://goto/soy-param-migration
552
+ * @return {!Object}
553
+ */
554
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.prototype.toObject = function(opt_includeInstance) {
555
+ return proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.toObject(opt_includeInstance, this);
556
+ };
557
+
558
+
559
+ /**
560
+ * Static version of the {@see toObject} method.
561
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
562
+ * the JSPB instance for transitional soy proto support:
563
+ * http://goto/soy-param-migration
564
+ * @param {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse} msg The msg instance to transform.
565
+ * @return {!Object}
566
+ * @suppress {unusedLocalVariables} f is only used for nested messages
567
+ */
568
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.toObject = function(includeInstance, msg) {
569
+ var f, obj = {
570
+ profileList: jspb.Message.toObjectList(msg.getProfileList(),
571
+ proto.lansweeper.multitenant.v1.Profile.toObject, includeInstance)
572
+ };
573
+
574
+ if (includeInstance) {
575
+ obj.$jspbMessageInstance = msg;
576
+ }
577
+ return obj;
578
+ };
579
+ }
580
+
581
+
582
+ /**
583
+ * Deserializes binary data (in protobuf wire format).
584
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
585
+ * @return {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse}
586
+ */
587
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.deserializeBinary = function(bytes) {
588
+ var reader = new jspb.BinaryReader(bytes);
589
+ var msg = new proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse;
590
+ return proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.deserializeBinaryFromReader(msg, reader);
591
+ };
592
+
593
+
594
+ /**
595
+ * Deserializes binary data (in protobuf wire format) from the
596
+ * given reader into the given message object.
597
+ * @param {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse} msg The message object to deserialize into.
598
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
599
+ * @return {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse}
600
+ */
601
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.deserializeBinaryFromReader = function(msg, reader) {
602
+ while (reader.nextField()) {
603
+ if (reader.isEndGroup()) {
604
+ break;
605
+ }
606
+ var field = reader.getFieldNumber();
607
+ switch (field) {
608
+ case 1:
609
+ var value = new proto.lansweeper.multitenant.v1.Profile;
610
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.Profile.deserializeBinaryFromReader);
611
+ msg.addProfile(value);
612
+ break;
613
+ default:
614
+ reader.skipField();
615
+ break;
616
+ }
617
+ }
618
+ return msg;
619
+ };
620
+
621
+
622
+ /**
623
+ * Serializes the message to binary data (in protobuf wire format).
624
+ * @return {!Uint8Array}
625
+ */
626
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.prototype.serializeBinary = function() {
627
+ var writer = new jspb.BinaryWriter();
628
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.serializeBinaryToWriter(this, writer);
629
+ return writer.getResultBuffer();
630
+ };
631
+
632
+
633
+ /**
634
+ * Serializes the given message to binary data (in protobuf wire
635
+ * format), writing to the given BinaryWriter.
636
+ * @param {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse} message
637
+ * @param {!jspb.BinaryWriter} writer
638
+ * @suppress {unusedLocalVariables} f is only used for nested messages
639
+ */
640
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.serializeBinaryToWriter = function(message, writer) {
641
+ var f = undefined;
642
+ f = message.getProfileList();
643
+ if (f.length > 0) {
644
+ writer.writeRepeatedMessage(
645
+ 1,
646
+ f,
647
+ proto.lansweeper.multitenant.v1.Profile.serializeBinaryToWriter
648
+ );
649
+ }
650
+ };
651
+
652
+
653
+ /**
654
+ * repeated Profile profile = 1;
655
+ * @return {!Array<!proto.lansweeper.multitenant.v1.Profile>}
656
+ */
657
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.prototype.getProfileList = function() {
658
+ return /** @type{!Array<!proto.lansweeper.multitenant.v1.Profile>} */ (
659
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.Profile, 1));
660
+ };
661
+
662
+
663
+ /**
664
+ * @param {!Array<!proto.lansweeper.multitenant.v1.Profile>} value
665
+ * @return {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse} returns this
666
+ */
667
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.prototype.setProfileList = function(value) {
668
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
669
+ };
670
+
671
+
672
+ /**
673
+ * @param {!proto.lansweeper.multitenant.v1.Profile=} opt_value
674
+ * @param {number=} opt_index
675
+ * @return {!proto.lansweeper.multitenant.v1.Profile}
676
+ */
677
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.prototype.addProfile = function(opt_value, opt_index) {
678
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.multitenant.v1.Profile, opt_index);
679
+ };
680
+
681
+
682
+ /**
683
+ * Clears the list making it empty but non-null.
684
+ * @return {!proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse} returns this
685
+ */
686
+ proto.lansweeper.multitenant.v1.ListProfilesByAccountIdResponse.prototype.clearProfileList = function() {
687
+ return this.setProfileList([]);
688
+ };
689
+
690
+
691
+
692
+
693
+
694
+ if (jspb.Message.GENERATE_TO_OBJECT) {
695
+ /**
696
+ * Creates an object representation of this proto.
697
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
698
+ * Optional fields that are not set will be set to undefined.
699
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
700
+ * For the list of reserved names please see:
701
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
702
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
703
+ * JSPB instance for transitional soy proto support:
704
+ * http://goto/soy-param-migration
705
+ * @return {!Object}
706
+ */
707
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.prototype.toObject = function(opt_includeInstance) {
708
+ return proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.toObject(opt_includeInstance, this);
709
+ };
710
+
711
+
712
+ /**
713
+ * Static version of the {@see toObject} method.
714
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
715
+ * the JSPB instance for transitional soy proto support:
716
+ * http://goto/soy-param-migration
717
+ * @param {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest} msg The msg instance to transform.
718
+ * @return {!Object}
719
+ * @suppress {unusedLocalVariables} f is only used for nested messages
720
+ */
721
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.toObject = function(includeInstance, msg) {
722
+ var f, obj = {
723
+ accountId: jspb.Message.getFieldWithDefault(msg, 1, ""),
724
+ siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
725
+ onlyOwner: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
726
+ };
727
+
728
+ if (includeInstance) {
729
+ obj.$jspbMessageInstance = msg;
730
+ }
731
+ return obj;
732
+ };
733
+ }
734
+
735
+
736
+ /**
737
+ * Deserializes binary data (in protobuf wire format).
738
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
739
+ * @return {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest}
740
+ */
741
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.deserializeBinary = function(bytes) {
742
+ var reader = new jspb.BinaryReader(bytes);
743
+ var msg = new proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest;
744
+ return proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.deserializeBinaryFromReader(msg, reader);
745
+ };
746
+
747
+
748
+ /**
749
+ * Deserializes binary data (in protobuf wire format) from the
750
+ * given reader into the given message object.
751
+ * @param {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest} msg The message object to deserialize into.
752
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
753
+ * @return {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest}
754
+ */
755
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.deserializeBinaryFromReader = function(msg, reader) {
756
+ while (reader.nextField()) {
757
+ if (reader.isEndGroup()) {
758
+ break;
759
+ }
760
+ var field = reader.getFieldNumber();
761
+ switch (field) {
762
+ case 1:
763
+ var value = /** @type {string} */ (reader.readString());
764
+ msg.setAccountId(value);
765
+ break;
766
+ case 2:
767
+ var value = /** @type {string} */ (reader.readString());
768
+ msg.setSiteId(value);
769
+ break;
770
+ case 3:
771
+ var value = /** @type {boolean} */ (reader.readBool());
772
+ msg.setOnlyOwner(value);
773
+ break;
774
+ default:
775
+ reader.skipField();
776
+ break;
777
+ }
778
+ }
779
+ return msg;
780
+ };
781
+
782
+
783
+ /**
784
+ * Serializes the message to binary data (in protobuf wire format).
785
+ * @return {!Uint8Array}
786
+ */
787
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.prototype.serializeBinary = function() {
788
+ var writer = new jspb.BinaryWriter();
789
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.serializeBinaryToWriter(this, writer);
790
+ return writer.getResultBuffer();
791
+ };
792
+
793
+
794
+ /**
795
+ * Serializes the given message to binary data (in protobuf wire
796
+ * format), writing to the given BinaryWriter.
797
+ * @param {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest} message
798
+ * @param {!jspb.BinaryWriter} writer
799
+ * @suppress {unusedLocalVariables} f is only used for nested messages
800
+ */
801
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.serializeBinaryToWriter = function(message, writer) {
802
+ var f = undefined;
803
+ f = message.getAccountId();
804
+ if (f.length > 0) {
805
+ writer.writeString(
806
+ 1,
807
+ f
808
+ );
809
+ }
810
+ f = message.getSiteId();
811
+ if (f.length > 0) {
812
+ writer.writeString(
813
+ 2,
814
+ f
815
+ );
816
+ }
817
+ f = message.getOnlyOwner();
818
+ if (f) {
819
+ writer.writeBool(
820
+ 3,
821
+ f
822
+ );
823
+ }
824
+ };
825
+
826
+
827
+ /**
828
+ * optional string account_id = 1;
829
+ * @return {string}
830
+ */
831
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.prototype.getAccountId = function() {
832
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
833
+ };
834
+
835
+
836
+ /**
837
+ * @param {string} value
838
+ * @return {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest} returns this
839
+ */
840
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.prototype.setAccountId = function(value) {
841
+ return jspb.Message.setProto3StringField(this, 1, value);
842
+ };
843
+
844
+
845
+ /**
846
+ * optional string site_id = 2;
847
+ * @return {string}
848
+ */
849
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.prototype.getSiteId = function() {
850
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
851
+ };
852
+
853
+
854
+ /**
855
+ * @param {string} value
856
+ * @return {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest} returns this
857
+ */
858
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.prototype.setSiteId = function(value) {
859
+ return jspb.Message.setProto3StringField(this, 2, value);
860
+ };
861
+
862
+
863
+ /**
864
+ * optional bool only_owner = 3;
865
+ * @return {boolean}
866
+ */
867
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.prototype.getOnlyOwner = function() {
868
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
869
+ };
870
+
871
+
872
+ /**
873
+ * @param {boolean} value
874
+ * @return {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest} returns this
875
+ */
876
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.prototype.setOnlyOwner = function(value) {
877
+ return jspb.Message.setProto3BooleanField(this, 3, value);
878
+ };
879
+
880
+
881
+
882
+
883
+
884
+ if (jspb.Message.GENERATE_TO_OBJECT) {
885
+ /**
886
+ * Creates an object representation of this proto.
887
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
888
+ * Optional fields that are not set will be set to undefined.
889
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
890
+ * For the list of reserved names please see:
891
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
892
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
893
+ * JSPB instance for transitional soy proto support:
894
+ * http://goto/soy-param-migration
895
+ * @return {!Object}
896
+ */
897
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.prototype.toObject = function(opt_includeInstance) {
898
+ return proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.toObject(opt_includeInstance, this);
899
+ };
900
+
901
+
902
+ /**
903
+ * Static version of the {@see toObject} method.
904
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
905
+ * the JSPB instance for transitional soy proto support:
906
+ * http://goto/soy-param-migration
907
+ * @param {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse} msg The msg instance to transform.
908
+ * @return {!Object}
909
+ * @suppress {unusedLocalVariables} f is only used for nested messages
910
+ */
911
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.toObject = function(includeInstance, msg) {
912
+ var f, obj = {
913
+ access: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
914
+ };
915
+
916
+ if (includeInstance) {
917
+ obj.$jspbMessageInstance = msg;
918
+ }
919
+ return obj;
920
+ };
921
+ }
922
+
923
+
924
+ /**
925
+ * Deserializes binary data (in protobuf wire format).
926
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
927
+ * @return {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse}
928
+ */
929
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.deserializeBinary = function(bytes) {
930
+ var reader = new jspb.BinaryReader(bytes);
931
+ var msg = new proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse;
932
+ return proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.deserializeBinaryFromReader(msg, reader);
933
+ };
934
+
935
+
936
+ /**
937
+ * Deserializes binary data (in protobuf wire format) from the
938
+ * given reader into the given message object.
939
+ * @param {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse} msg The message object to deserialize into.
940
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
941
+ * @return {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse}
942
+ */
943
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.deserializeBinaryFromReader = function(msg, reader) {
944
+ while (reader.nextField()) {
945
+ if (reader.isEndGroup()) {
946
+ break;
947
+ }
948
+ var field = reader.getFieldNumber();
949
+ switch (field) {
950
+ case 1:
951
+ var value = /** @type {boolean} */ (reader.readBool());
952
+ msg.setAccess(value);
953
+ break;
954
+ default:
955
+ reader.skipField();
956
+ break;
957
+ }
958
+ }
959
+ return msg;
960
+ };
961
+
962
+
963
+ /**
964
+ * Serializes the message to binary data (in protobuf wire format).
965
+ * @return {!Uint8Array}
966
+ */
967
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.prototype.serializeBinary = function() {
968
+ var writer = new jspb.BinaryWriter();
969
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.serializeBinaryToWriter(this, writer);
970
+ return writer.getResultBuffer();
971
+ };
972
+
973
+
974
+ /**
975
+ * Serializes the given message to binary data (in protobuf wire
976
+ * format), writing to the given BinaryWriter.
977
+ * @param {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse} message
978
+ * @param {!jspb.BinaryWriter} writer
979
+ * @suppress {unusedLocalVariables} f is only used for nested messages
980
+ */
981
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.serializeBinaryToWriter = function(message, writer) {
982
+ var f = undefined;
983
+ f = message.getAccess();
984
+ if (f) {
985
+ writer.writeBool(
986
+ 1,
987
+ f
988
+ );
989
+ }
990
+ };
991
+
992
+
993
+ /**
994
+ * optional bool access = 1;
995
+ * @return {boolean}
996
+ */
997
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.prototype.getAccess = function() {
998
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
999
+ };
1000
+
1001
+
1002
+ /**
1003
+ * @param {boolean} value
1004
+ * @return {!proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse} returns this
1005
+ */
1006
+ proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse.prototype.setAccess = function(value) {
1007
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1008
+ };
1009
+
1010
+
1011
+ goog.object.extend(exports, proto.lansweeper.multitenant.v1);