@lansweeper/multitenant-api-grpc 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var global = Function('return this')();
17
17
 
18
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.AuthorizedSitesRequest', null, global);
19
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.AuthorizedSitesResponse', null, global);
18
20
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest', null, global);
19
21
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdRequest.UserInfo', null, global);
20
22
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse', null, global);
@@ -23,6 +25,8 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallResponse', null,
23
25
  goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest', null, global);
24
26
  goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError', null, global);
25
27
  goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse', null, global);
28
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest', null, global);
29
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse', null, global);
26
30
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest', null, global);
27
31
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse', null, global);
28
32
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest', null, global);
@@ -58,6 +62,7 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResp
58
62
  goog.exportSymbol('proto.lansweeper.multitenant.v1.RemoveInstallDataBySiteIdResponse.Result', null, global);
59
63
  goog.exportSymbol('proto.lansweeper.multitenant.v1.RotateInstallByClientIdRequest', null, global);
60
64
  goog.exportSymbol('proto.lansweeper.multitenant.v1.RotateInstallByClientIdResponse', null, global);
65
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.Site', null, global);
61
66
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SiteMode', null, global);
62
67
  goog.exportSymbol('proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdRequest', null, global);
63
68
  goog.exportSymbol('proto.lansweeper.multitenant.v1.UnlinkInstallByClientIdResponse', null, global);
@@ -1074,6 +1079,111 @@ if (goog.DEBUG && !COMPILED) {
1074
1079
  */
1075
1080
  proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.displayName = 'proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse';
1076
1081
  }
1082
+ /**
1083
+ * Generated by JsPbCodeGenerator.
1084
+ * @param {Array=} opt_data Optional initial data array, typically from a
1085
+ * server response, or constructed directly in Javascript. The array is used
1086
+ * in place and becomes part of the constructed object. It is not cloned.
1087
+ * If no data is provided, the constructed object will be empty, but still
1088
+ * valid.
1089
+ * @extends {jspb.Message}
1090
+ * @constructor
1091
+ */
1092
+ proto.lansweeper.multitenant.v1.Site = function(opt_data) {
1093
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1094
+ };
1095
+ goog.inherits(proto.lansweeper.multitenant.v1.Site, jspb.Message);
1096
+ if (goog.DEBUG && !COMPILED) {
1097
+ /**
1098
+ * @public
1099
+ * @override
1100
+ */
1101
+ proto.lansweeper.multitenant.v1.Site.displayName = 'proto.lansweeper.multitenant.v1.Site';
1102
+ }
1103
+ /**
1104
+ * Generated by JsPbCodeGenerator.
1105
+ * @param {Array=} opt_data Optional initial data array, typically from a
1106
+ * server response, or constructed directly in Javascript. The array is used
1107
+ * in place and becomes part of the constructed object. It is not cloned.
1108
+ * If no data is provided, the constructed object will be empty, but still
1109
+ * valid.
1110
+ * @extends {jspb.Message}
1111
+ * @constructor
1112
+ */
1113
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest = function(opt_data) {
1114
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1115
+ };
1116
+ goog.inherits(proto.lansweeper.multitenant.v1.AuthorizedSitesRequest, jspb.Message);
1117
+ if (goog.DEBUG && !COMPILED) {
1118
+ /**
1119
+ * @public
1120
+ * @override
1121
+ */
1122
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.displayName = 'proto.lansweeper.multitenant.v1.AuthorizedSitesRequest';
1123
+ }
1124
+ /**
1125
+ * Generated by JsPbCodeGenerator.
1126
+ * @param {Array=} opt_data Optional initial data array, typically from a
1127
+ * server response, or constructed directly in Javascript. The array is used
1128
+ * in place and becomes part of the constructed object. It is not cloned.
1129
+ * If no data is provided, the constructed object will be empty, but still
1130
+ * valid.
1131
+ * @extends {jspb.Message}
1132
+ * @constructor
1133
+ */
1134
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse = function(opt_data) {
1135
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.repeatedFields_, null);
1136
+ };
1137
+ goog.inherits(proto.lansweeper.multitenant.v1.AuthorizedSitesResponse, jspb.Message);
1138
+ if (goog.DEBUG && !COMPILED) {
1139
+ /**
1140
+ * @public
1141
+ * @override
1142
+ */
1143
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.displayName = 'proto.lansweeper.multitenant.v1.AuthorizedSitesResponse';
1144
+ }
1145
+ /**
1146
+ * Generated by JsPbCodeGenerator.
1147
+ * @param {Array=} opt_data Optional initial data array, typically from a
1148
+ * server response, or constructed directly in Javascript. The array is used
1149
+ * in place and becomes part of the constructed object. It is not cloned.
1150
+ * If no data is provided, the constructed object will be empty, but still
1151
+ * valid.
1152
+ * @extends {jspb.Message}
1153
+ * @constructor
1154
+ */
1155
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest = function(opt_data) {
1156
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1157
+ };
1158
+ goog.inherits(proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest, jspb.Message);
1159
+ if (goog.DEBUG && !COMPILED) {
1160
+ /**
1161
+ * @public
1162
+ * @override
1163
+ */
1164
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.displayName = 'proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest';
1165
+ }
1166
+ /**
1167
+ * Generated by JsPbCodeGenerator.
1168
+ * @param {Array=} opt_data Optional initial data array, typically from a
1169
+ * server response, or constructed directly in Javascript. The array is used
1170
+ * in place and becomes part of the constructed object. It is not cloned.
1171
+ * If no data is provided, the constructed object will be empty, but still
1172
+ * valid.
1173
+ * @extends {jspb.Message}
1174
+ * @constructor
1175
+ */
1176
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse = function(opt_data) {
1177
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.repeatedFields_, null);
1178
+ };
1179
+ goog.inherits(proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse, jspb.Message);
1180
+ if (goog.DEBUG && !COMPILED) {
1181
+ /**
1182
+ * @public
1183
+ * @override
1184
+ */
1185
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.displayName = 'proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse';
1186
+ }
1077
1187
 
1078
1188
 
1079
1189
 
@@ -10080,6 +10190,742 @@ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.prototype.setMailSen
10080
10190
  };
10081
10191
 
10082
10192
 
10193
+
10194
+
10195
+
10196
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10197
+ /**
10198
+ * Creates an object representation of this proto.
10199
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10200
+ * Optional fields that are not set will be set to undefined.
10201
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10202
+ * For the list of reserved names please see:
10203
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10204
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10205
+ * JSPB instance for transitional soy proto support:
10206
+ * http://goto/soy-param-migration
10207
+ * @return {!Object}
10208
+ */
10209
+ proto.lansweeper.multitenant.v1.Site.prototype.toObject = function(opt_includeInstance) {
10210
+ return proto.lansweeper.multitenant.v1.Site.toObject(opt_includeInstance, this);
10211
+ };
10212
+
10213
+
10214
+ /**
10215
+ * Static version of the {@see toObject} method.
10216
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10217
+ * the JSPB instance for transitional soy proto support:
10218
+ * http://goto/soy-param-migration
10219
+ * @param {!proto.lansweeper.multitenant.v1.Site} msg The msg instance to transform.
10220
+ * @return {!Object}
10221
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10222
+ */
10223
+ proto.lansweeper.multitenant.v1.Site.toObject = function(includeInstance, msg) {
10224
+ var f, obj = {
10225
+ id: jspb.Message.getFieldWithDefault(msg, 1, "")
10226
+ };
10227
+
10228
+ if (includeInstance) {
10229
+ obj.$jspbMessageInstance = msg;
10230
+ }
10231
+ return obj;
10232
+ };
10233
+ }
10234
+
10235
+
10236
+ /**
10237
+ * Deserializes binary data (in protobuf wire format).
10238
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10239
+ * @return {!proto.lansweeper.multitenant.v1.Site}
10240
+ */
10241
+ proto.lansweeper.multitenant.v1.Site.deserializeBinary = function(bytes) {
10242
+ var reader = new jspb.BinaryReader(bytes);
10243
+ var msg = new proto.lansweeper.multitenant.v1.Site;
10244
+ return proto.lansweeper.multitenant.v1.Site.deserializeBinaryFromReader(msg, reader);
10245
+ };
10246
+
10247
+
10248
+ /**
10249
+ * Deserializes binary data (in protobuf wire format) from the
10250
+ * given reader into the given message object.
10251
+ * @param {!proto.lansweeper.multitenant.v1.Site} msg The message object to deserialize into.
10252
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10253
+ * @return {!proto.lansweeper.multitenant.v1.Site}
10254
+ */
10255
+ proto.lansweeper.multitenant.v1.Site.deserializeBinaryFromReader = function(msg, reader) {
10256
+ while (reader.nextField()) {
10257
+ if (reader.isEndGroup()) {
10258
+ break;
10259
+ }
10260
+ var field = reader.getFieldNumber();
10261
+ switch (field) {
10262
+ case 1:
10263
+ var value = /** @type {string} */ (reader.readString());
10264
+ msg.setId(value);
10265
+ break;
10266
+ default:
10267
+ reader.skipField();
10268
+ break;
10269
+ }
10270
+ }
10271
+ return msg;
10272
+ };
10273
+
10274
+
10275
+ /**
10276
+ * Serializes the message to binary data (in protobuf wire format).
10277
+ * @return {!Uint8Array}
10278
+ */
10279
+ proto.lansweeper.multitenant.v1.Site.prototype.serializeBinary = function() {
10280
+ var writer = new jspb.BinaryWriter();
10281
+ proto.lansweeper.multitenant.v1.Site.serializeBinaryToWriter(this, writer);
10282
+ return writer.getResultBuffer();
10283
+ };
10284
+
10285
+
10286
+ /**
10287
+ * Serializes the given message to binary data (in protobuf wire
10288
+ * format), writing to the given BinaryWriter.
10289
+ * @param {!proto.lansweeper.multitenant.v1.Site} message
10290
+ * @param {!jspb.BinaryWriter} writer
10291
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10292
+ */
10293
+ proto.lansweeper.multitenant.v1.Site.serializeBinaryToWriter = function(message, writer) {
10294
+ var f = undefined;
10295
+ f = message.getId();
10296
+ if (f.length > 0) {
10297
+ writer.writeString(
10298
+ 1,
10299
+ f
10300
+ );
10301
+ }
10302
+ };
10303
+
10304
+
10305
+ /**
10306
+ * optional string id = 1;
10307
+ * @return {string}
10308
+ */
10309
+ proto.lansweeper.multitenant.v1.Site.prototype.getId = function() {
10310
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
10311
+ };
10312
+
10313
+
10314
+ /**
10315
+ * @param {string} value
10316
+ * @return {!proto.lansweeper.multitenant.v1.Site} returns this
10317
+ */
10318
+ proto.lansweeper.multitenant.v1.Site.prototype.setId = function(value) {
10319
+ return jspb.Message.setProto3StringField(this, 1, value);
10320
+ };
10321
+
10322
+
10323
+
10324
+
10325
+
10326
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10327
+ /**
10328
+ * Creates an object representation of this proto.
10329
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10330
+ * Optional fields that are not set will be set to undefined.
10331
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10332
+ * For the list of reserved names please see:
10333
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10334
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10335
+ * JSPB instance for transitional soy proto support:
10336
+ * http://goto/soy-param-migration
10337
+ * @return {!Object}
10338
+ */
10339
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.prototype.toObject = function(opt_includeInstance) {
10340
+ return proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.toObject(opt_includeInstance, this);
10341
+ };
10342
+
10343
+
10344
+ /**
10345
+ * Static version of the {@see toObject} method.
10346
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10347
+ * the JSPB instance for transitional soy proto support:
10348
+ * http://goto/soy-param-migration
10349
+ * @param {!proto.lansweeper.multitenant.v1.AuthorizedSitesRequest} msg The msg instance to transform.
10350
+ * @return {!Object}
10351
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10352
+ */
10353
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.toObject = function(includeInstance, msg) {
10354
+ var f, obj = {
10355
+ applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
10356
+ traceId: jspb.Message.getFieldWithDefault(msg, 2, "")
10357
+ };
10358
+
10359
+ if (includeInstance) {
10360
+ obj.$jspbMessageInstance = msg;
10361
+ }
10362
+ return obj;
10363
+ };
10364
+ }
10365
+
10366
+
10367
+ /**
10368
+ * Deserializes binary data (in protobuf wire format).
10369
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10370
+ * @return {!proto.lansweeper.multitenant.v1.AuthorizedSitesRequest}
10371
+ */
10372
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.deserializeBinary = function(bytes) {
10373
+ var reader = new jspb.BinaryReader(bytes);
10374
+ var msg = new proto.lansweeper.multitenant.v1.AuthorizedSitesRequest;
10375
+ return proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.deserializeBinaryFromReader(msg, reader);
10376
+ };
10377
+
10378
+
10379
+ /**
10380
+ * Deserializes binary data (in protobuf wire format) from the
10381
+ * given reader into the given message object.
10382
+ * @param {!proto.lansweeper.multitenant.v1.AuthorizedSitesRequest} msg The message object to deserialize into.
10383
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10384
+ * @return {!proto.lansweeper.multitenant.v1.AuthorizedSitesRequest}
10385
+ */
10386
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.deserializeBinaryFromReader = function(msg, reader) {
10387
+ while (reader.nextField()) {
10388
+ if (reader.isEndGroup()) {
10389
+ break;
10390
+ }
10391
+ var field = reader.getFieldNumber();
10392
+ switch (field) {
10393
+ case 1:
10394
+ var value = /** @type {string} */ (reader.readString());
10395
+ msg.setApplicationId(value);
10396
+ break;
10397
+ case 2:
10398
+ var value = /** @type {string} */ (reader.readString());
10399
+ msg.setTraceId(value);
10400
+ break;
10401
+ default:
10402
+ reader.skipField();
10403
+ break;
10404
+ }
10405
+ }
10406
+ return msg;
10407
+ };
10408
+
10409
+
10410
+ /**
10411
+ * Serializes the message to binary data (in protobuf wire format).
10412
+ * @return {!Uint8Array}
10413
+ */
10414
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.prototype.serializeBinary = function() {
10415
+ var writer = new jspb.BinaryWriter();
10416
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.serializeBinaryToWriter(this, writer);
10417
+ return writer.getResultBuffer();
10418
+ };
10419
+
10420
+
10421
+ /**
10422
+ * Serializes the given message to binary data (in protobuf wire
10423
+ * format), writing to the given BinaryWriter.
10424
+ * @param {!proto.lansweeper.multitenant.v1.AuthorizedSitesRequest} message
10425
+ * @param {!jspb.BinaryWriter} writer
10426
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10427
+ */
10428
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.serializeBinaryToWriter = function(message, writer) {
10429
+ var f = undefined;
10430
+ f = message.getApplicationId();
10431
+ if (f.length > 0) {
10432
+ writer.writeString(
10433
+ 1,
10434
+ f
10435
+ );
10436
+ }
10437
+ f = message.getTraceId();
10438
+ if (f.length > 0) {
10439
+ writer.writeString(
10440
+ 2,
10441
+ f
10442
+ );
10443
+ }
10444
+ };
10445
+
10446
+
10447
+ /**
10448
+ * optional string application_id = 1;
10449
+ * @return {string}
10450
+ */
10451
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.prototype.getApplicationId = function() {
10452
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
10453
+ };
10454
+
10455
+
10456
+ /**
10457
+ * @param {string} value
10458
+ * @return {!proto.lansweeper.multitenant.v1.AuthorizedSitesRequest} returns this
10459
+ */
10460
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.prototype.setApplicationId = function(value) {
10461
+ return jspb.Message.setProto3StringField(this, 1, value);
10462
+ };
10463
+
10464
+
10465
+ /**
10466
+ * optional string trace_id = 2;
10467
+ * @return {string}
10468
+ */
10469
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.prototype.getTraceId = function() {
10470
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10471
+ };
10472
+
10473
+
10474
+ /**
10475
+ * @param {string} value
10476
+ * @return {!proto.lansweeper.multitenant.v1.AuthorizedSitesRequest} returns this
10477
+ */
10478
+ proto.lansweeper.multitenant.v1.AuthorizedSitesRequest.prototype.setTraceId = function(value) {
10479
+ return jspb.Message.setProto3StringField(this, 2, value);
10480
+ };
10481
+
10482
+
10483
+
10484
+ /**
10485
+ * List of repeated fields within this message type.
10486
+ * @private {!Array<number>}
10487
+ * @const
10488
+ */
10489
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.repeatedFields_ = [1];
10490
+
10491
+
10492
+
10493
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10494
+ /**
10495
+ * Creates an object representation of this proto.
10496
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10497
+ * Optional fields that are not set will be set to undefined.
10498
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10499
+ * For the list of reserved names please see:
10500
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10501
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10502
+ * JSPB instance for transitional soy proto support:
10503
+ * http://goto/soy-param-migration
10504
+ * @return {!Object}
10505
+ */
10506
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.prototype.toObject = function(opt_includeInstance) {
10507
+ return proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.toObject(opt_includeInstance, this);
10508
+ };
10509
+
10510
+
10511
+ /**
10512
+ * Static version of the {@see toObject} method.
10513
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10514
+ * the JSPB instance for transitional soy proto support:
10515
+ * http://goto/soy-param-migration
10516
+ * @param {!proto.lansweeper.multitenant.v1.AuthorizedSitesResponse} msg The msg instance to transform.
10517
+ * @return {!Object}
10518
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10519
+ */
10520
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.toObject = function(includeInstance, msg) {
10521
+ var f, obj = {
10522
+ siteList: jspb.Message.toObjectList(msg.getSiteList(),
10523
+ proto.lansweeper.multitenant.v1.Site.toObject, includeInstance)
10524
+ };
10525
+
10526
+ if (includeInstance) {
10527
+ obj.$jspbMessageInstance = msg;
10528
+ }
10529
+ return obj;
10530
+ };
10531
+ }
10532
+
10533
+
10534
+ /**
10535
+ * Deserializes binary data (in protobuf wire format).
10536
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10537
+ * @return {!proto.lansweeper.multitenant.v1.AuthorizedSitesResponse}
10538
+ */
10539
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.deserializeBinary = function(bytes) {
10540
+ var reader = new jspb.BinaryReader(bytes);
10541
+ var msg = new proto.lansweeper.multitenant.v1.AuthorizedSitesResponse;
10542
+ return proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.deserializeBinaryFromReader(msg, reader);
10543
+ };
10544
+
10545
+
10546
+ /**
10547
+ * Deserializes binary data (in protobuf wire format) from the
10548
+ * given reader into the given message object.
10549
+ * @param {!proto.lansweeper.multitenant.v1.AuthorizedSitesResponse} msg The message object to deserialize into.
10550
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10551
+ * @return {!proto.lansweeper.multitenant.v1.AuthorizedSitesResponse}
10552
+ */
10553
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.deserializeBinaryFromReader = function(msg, reader) {
10554
+ while (reader.nextField()) {
10555
+ if (reader.isEndGroup()) {
10556
+ break;
10557
+ }
10558
+ var field = reader.getFieldNumber();
10559
+ switch (field) {
10560
+ case 1:
10561
+ var value = new proto.lansweeper.multitenant.v1.Site;
10562
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.Site.deserializeBinaryFromReader);
10563
+ msg.addSite(value);
10564
+ break;
10565
+ default:
10566
+ reader.skipField();
10567
+ break;
10568
+ }
10569
+ }
10570
+ return msg;
10571
+ };
10572
+
10573
+
10574
+ /**
10575
+ * Serializes the message to binary data (in protobuf wire format).
10576
+ * @return {!Uint8Array}
10577
+ */
10578
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.prototype.serializeBinary = function() {
10579
+ var writer = new jspb.BinaryWriter();
10580
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.serializeBinaryToWriter(this, writer);
10581
+ return writer.getResultBuffer();
10582
+ };
10583
+
10584
+
10585
+ /**
10586
+ * Serializes the given message to binary data (in protobuf wire
10587
+ * format), writing to the given BinaryWriter.
10588
+ * @param {!proto.lansweeper.multitenant.v1.AuthorizedSitesResponse} message
10589
+ * @param {!jspb.BinaryWriter} writer
10590
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10591
+ */
10592
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.serializeBinaryToWriter = function(message, writer) {
10593
+ var f = undefined;
10594
+ f = message.getSiteList();
10595
+ if (f.length > 0) {
10596
+ writer.writeRepeatedMessage(
10597
+ 1,
10598
+ f,
10599
+ proto.lansweeper.multitenant.v1.Site.serializeBinaryToWriter
10600
+ );
10601
+ }
10602
+ };
10603
+
10604
+
10605
+ /**
10606
+ * repeated Site site = 1;
10607
+ * @return {!Array<!proto.lansweeper.multitenant.v1.Site>}
10608
+ */
10609
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.prototype.getSiteList = function() {
10610
+ return /** @type{!Array<!proto.lansweeper.multitenant.v1.Site>} */ (
10611
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.Site, 1));
10612
+ };
10613
+
10614
+
10615
+ /**
10616
+ * @param {!Array<!proto.lansweeper.multitenant.v1.Site>} value
10617
+ * @return {!proto.lansweeper.multitenant.v1.AuthorizedSitesResponse} returns this
10618
+ */
10619
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.prototype.setSiteList = function(value) {
10620
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
10621
+ };
10622
+
10623
+
10624
+ /**
10625
+ * @param {!proto.lansweeper.multitenant.v1.Site=} opt_value
10626
+ * @param {number=} opt_index
10627
+ * @return {!proto.lansweeper.multitenant.v1.Site}
10628
+ */
10629
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.prototype.addSite = function(opt_value, opt_index) {
10630
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.multitenant.v1.Site, opt_index);
10631
+ };
10632
+
10633
+
10634
+ /**
10635
+ * Clears the list making it empty but non-null.
10636
+ * @return {!proto.lansweeper.multitenant.v1.AuthorizedSitesResponse} returns this
10637
+ */
10638
+ proto.lansweeper.multitenant.v1.AuthorizedSitesResponse.prototype.clearSiteList = function() {
10639
+ return this.setSiteList([]);
10640
+ };
10641
+
10642
+
10643
+
10644
+
10645
+
10646
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10647
+ /**
10648
+ * Creates an object representation of this proto.
10649
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10650
+ * Optional fields that are not set will be set to undefined.
10651
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10652
+ * For the list of reserved names please see:
10653
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10654
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10655
+ * JSPB instance for transitional soy proto support:
10656
+ * http://goto/soy-param-migration
10657
+ * @return {!Object}
10658
+ */
10659
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.prototype.toObject = function(opt_includeInstance) {
10660
+ return proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.toObject(opt_includeInstance, this);
10661
+ };
10662
+
10663
+
10664
+ /**
10665
+ * Static version of the {@see toObject} method.
10666
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10667
+ * the JSPB instance for transitional soy proto support:
10668
+ * http://goto/soy-param-migration
10669
+ * @param {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest} msg The msg instance to transform.
10670
+ * @return {!Object}
10671
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10672
+ */
10673
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.toObject = function(includeInstance, msg) {
10674
+ var f, obj = {
10675
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, "")
10676
+ };
10677
+
10678
+ if (includeInstance) {
10679
+ obj.$jspbMessageInstance = msg;
10680
+ }
10681
+ return obj;
10682
+ };
10683
+ }
10684
+
10685
+
10686
+ /**
10687
+ * Deserializes binary data (in protobuf wire format).
10688
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10689
+ * @return {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest}
10690
+ */
10691
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.deserializeBinary = function(bytes) {
10692
+ var reader = new jspb.BinaryReader(bytes);
10693
+ var msg = new proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest;
10694
+ return proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.deserializeBinaryFromReader(msg, reader);
10695
+ };
10696
+
10697
+
10698
+ /**
10699
+ * Deserializes binary data (in protobuf wire format) from the
10700
+ * given reader into the given message object.
10701
+ * @param {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest} msg The message object to deserialize into.
10702
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10703
+ * @return {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest}
10704
+ */
10705
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.deserializeBinaryFromReader = function(msg, reader) {
10706
+ while (reader.nextField()) {
10707
+ if (reader.isEndGroup()) {
10708
+ break;
10709
+ }
10710
+ var field = reader.getFieldNumber();
10711
+ switch (field) {
10712
+ case 1:
10713
+ var value = /** @type {string} */ (reader.readString());
10714
+ msg.setSiteId(value);
10715
+ break;
10716
+ default:
10717
+ reader.skipField();
10718
+ break;
10719
+ }
10720
+ }
10721
+ return msg;
10722
+ };
10723
+
10724
+
10725
+ /**
10726
+ * Serializes the message to binary data (in protobuf wire format).
10727
+ * @return {!Uint8Array}
10728
+ */
10729
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.prototype.serializeBinary = function() {
10730
+ var writer = new jspb.BinaryWriter();
10731
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.serializeBinaryToWriter(this, writer);
10732
+ return writer.getResultBuffer();
10733
+ };
10734
+
10735
+
10736
+ /**
10737
+ * Serializes the given message to binary data (in protobuf wire
10738
+ * format), writing to the given BinaryWriter.
10739
+ * @param {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest} message
10740
+ * @param {!jspb.BinaryWriter} writer
10741
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10742
+ */
10743
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.serializeBinaryToWriter = function(message, writer) {
10744
+ var f = undefined;
10745
+ f = message.getSiteId();
10746
+ if (f.length > 0) {
10747
+ writer.writeString(
10748
+ 1,
10749
+ f
10750
+ );
10751
+ }
10752
+ };
10753
+
10754
+
10755
+ /**
10756
+ * optional string site_id = 1;
10757
+ * @return {string}
10758
+ */
10759
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.prototype.getSiteId = function() {
10760
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
10761
+ };
10762
+
10763
+
10764
+ /**
10765
+ * @param {string} value
10766
+ * @return {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest} returns this
10767
+ */
10768
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest.prototype.setSiteId = function(value) {
10769
+ return jspb.Message.setProto3StringField(this, 1, value);
10770
+ };
10771
+
10772
+
10773
+
10774
+ /**
10775
+ * List of repeated fields within this message type.
10776
+ * @private {!Array<number>}
10777
+ * @const
10778
+ */
10779
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.repeatedFields_ = [1];
10780
+
10781
+
10782
+
10783
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10784
+ /**
10785
+ * Creates an object representation of this proto.
10786
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10787
+ * Optional fields that are not set will be set to undefined.
10788
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10789
+ * For the list of reserved names please see:
10790
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10791
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10792
+ * JSPB instance for transitional soy proto support:
10793
+ * http://goto/soy-param-migration
10794
+ * @return {!Object}
10795
+ */
10796
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.prototype.toObject = function(opt_includeInstance) {
10797
+ return proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.toObject(opt_includeInstance, this);
10798
+ };
10799
+
10800
+
10801
+ /**
10802
+ * Static version of the {@see toObject} method.
10803
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10804
+ * the JSPB instance for transitional soy proto support:
10805
+ * http://goto/soy-param-migration
10806
+ * @param {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse} msg The msg instance to transform.
10807
+ * @return {!Object}
10808
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10809
+ */
10810
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.toObject = function(includeInstance, msg) {
10811
+ var f, obj = {
10812
+ accountIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
10813
+ };
10814
+
10815
+ if (includeInstance) {
10816
+ obj.$jspbMessageInstance = msg;
10817
+ }
10818
+ return obj;
10819
+ };
10820
+ }
10821
+
10822
+
10823
+ /**
10824
+ * Deserializes binary data (in protobuf wire format).
10825
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10826
+ * @return {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse}
10827
+ */
10828
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.deserializeBinary = function(bytes) {
10829
+ var reader = new jspb.BinaryReader(bytes);
10830
+ var msg = new proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse;
10831
+ return proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.deserializeBinaryFromReader(msg, reader);
10832
+ };
10833
+
10834
+
10835
+ /**
10836
+ * Deserializes binary data (in protobuf wire format) from the
10837
+ * given reader into the given message object.
10838
+ * @param {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse} msg The message object to deserialize into.
10839
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10840
+ * @return {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse}
10841
+ */
10842
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.deserializeBinaryFromReader = function(msg, reader) {
10843
+ while (reader.nextField()) {
10844
+ if (reader.isEndGroup()) {
10845
+ break;
10846
+ }
10847
+ var field = reader.getFieldNumber();
10848
+ switch (field) {
10849
+ case 1:
10850
+ var value = /** @type {string} */ (reader.readString());
10851
+ msg.addAccountIds(value);
10852
+ break;
10853
+ default:
10854
+ reader.skipField();
10855
+ break;
10856
+ }
10857
+ }
10858
+ return msg;
10859
+ };
10860
+
10861
+
10862
+ /**
10863
+ * Serializes the message to binary data (in protobuf wire format).
10864
+ * @return {!Uint8Array}
10865
+ */
10866
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.prototype.serializeBinary = function() {
10867
+ var writer = new jspb.BinaryWriter();
10868
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.serializeBinaryToWriter(this, writer);
10869
+ return writer.getResultBuffer();
10870
+ };
10871
+
10872
+
10873
+ /**
10874
+ * Serializes the given message to binary data (in protobuf wire
10875
+ * format), writing to the given BinaryWriter.
10876
+ * @param {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse} message
10877
+ * @param {!jspb.BinaryWriter} writer
10878
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10879
+ */
10880
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.serializeBinaryToWriter = function(message, writer) {
10881
+ var f = undefined;
10882
+ f = message.getAccountIdsList();
10883
+ if (f.length > 0) {
10884
+ writer.writeRepeatedString(
10885
+ 1,
10886
+ f
10887
+ );
10888
+ }
10889
+ };
10890
+
10891
+
10892
+ /**
10893
+ * repeated string account_ids = 1;
10894
+ * @return {!Array<string>}
10895
+ */
10896
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.prototype.getAccountIdsList = function() {
10897
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
10898
+ };
10899
+
10900
+
10901
+ /**
10902
+ * @param {!Array<string>} value
10903
+ * @return {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse} returns this
10904
+ */
10905
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.prototype.setAccountIdsList = function(value) {
10906
+ return jspb.Message.setField(this, 1, value || []);
10907
+ };
10908
+
10909
+
10910
+ /**
10911
+ * @param {string} value
10912
+ * @param {number=} opt_index
10913
+ * @return {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse} returns this
10914
+ */
10915
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.prototype.addAccountIds = function(value, opt_index) {
10916
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
10917
+ };
10918
+
10919
+
10920
+ /**
10921
+ * Clears the list making it empty but non-null.
10922
+ * @return {!proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse} returns this
10923
+ */
10924
+ proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse.prototype.clearAccountIdsList = function() {
10925
+ return this.setAccountIdsList([]);
10926
+ };
10927
+
10928
+
10083
10929
  /**
10084
10930
  * @enum {number}
10085
10931
  */