@lansweeper/permissions-grpc 0.1.1 → 0.1.2
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.
- package/CHANGELOG.md +8 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/index.d.ts +1 -0
- package/gen-proto/index.js +3 -1
- package/gen-proto/limits/limits_grpc_pb.js +1 -0
- package/gen-proto/limits/limits_pb.d.ts +72 -0
- package/gen-proto/limits/limits_pb.js +460 -0
- package/gen-proto/permissions_grpc_pb.d.ts +34 -0
- package/gen-proto/permissions_grpc_pb.js +38 -0
- package/gen-proto/permissions_pb.d.ts +45 -0
- package/gen-proto/permissions_pb.js +343 -2
- package/generated-go/permissions.pb.go +263 -110
- package/generated-go/permissions_grpc.pb.go +91 -1
- package/package.json +5 -2
- package/proto/limits/limits.proto +29 -0
- package/proto/permissions.proto +15 -0
- package/protodeps.yaml +4 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
|
|
7
7
|
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as limits_limits_pb from "./limits/limits_pb";
|
|
8
9
|
|
|
9
10
|
export class CheckPermissionRequest extends jspb.Message {
|
|
10
11
|
getSiteid(): string;
|
|
@@ -159,3 +160,47 @@ export namespace GetUserPermissionsResponse {
|
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
}
|
|
163
|
+
|
|
164
|
+
export class GetSitesLimitsRequest extends jspb.Message {
|
|
165
|
+
clearSiteIdsList(): void;
|
|
166
|
+
getSiteIdsList(): Array<string>;
|
|
167
|
+
setSiteIdsList(value: Array<string>): GetSitesLimitsRequest;
|
|
168
|
+
addSiteIds(value: string, index?: number): string;
|
|
169
|
+
|
|
170
|
+
serializeBinary(): Uint8Array;
|
|
171
|
+
toObject(includeInstance?: boolean): GetSitesLimitsRequest.AsObject;
|
|
172
|
+
static toObject(includeInstance: boolean, msg: GetSitesLimitsRequest): GetSitesLimitsRequest.AsObject;
|
|
173
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
174
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
175
|
+
static serializeBinaryToWriter(message: GetSitesLimitsRequest, writer: jspb.BinaryWriter): void;
|
|
176
|
+
static deserializeBinary(bytes: Uint8Array): GetSitesLimitsRequest;
|
|
177
|
+
static deserializeBinaryFromReader(message: GetSitesLimitsRequest, reader: jspb.BinaryReader): GetSitesLimitsRequest;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export namespace GetSitesLimitsRequest {
|
|
181
|
+
export type AsObject = {
|
|
182
|
+
siteIdsList: Array<string>,
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export class GetSitesLimitsResponse extends jspb.Message {
|
|
187
|
+
|
|
188
|
+
getSiteLimitsMap(): jspb.Map<string, limits_limits_pb.SiteLimits>;
|
|
189
|
+
clearSiteLimitsMap(): void;
|
|
190
|
+
|
|
191
|
+
serializeBinary(): Uint8Array;
|
|
192
|
+
toObject(includeInstance?: boolean): GetSitesLimitsResponse.AsObject;
|
|
193
|
+
static toObject(includeInstance: boolean, msg: GetSitesLimitsResponse): GetSitesLimitsResponse.AsObject;
|
|
194
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
195
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
196
|
+
static serializeBinaryToWriter(message: GetSitesLimitsResponse, writer: jspb.BinaryWriter): void;
|
|
197
|
+
static deserializeBinary(bytes: Uint8Array): GetSitesLimitsResponse;
|
|
198
|
+
static deserializeBinaryFromReader(message: GetSitesLimitsResponse, reader: jspb.BinaryReader): GetSitesLimitsResponse;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export namespace GetSitesLimitsResponse {
|
|
202
|
+
export type AsObject = {
|
|
203
|
+
|
|
204
|
+
siteLimitsMap: Array<[string, limits_limits_pb.SiteLimits.AsObject]>,
|
|
205
|
+
}
|
|
206
|
+
}
|
|
@@ -13,10 +13,20 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
17
|
-
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
var limits_limits_pb = require('./limits/limits_pb.js');
|
|
25
|
+
goog.object.extend(proto, limits_limits_pb);
|
|
18
26
|
goog.exportSymbol('proto.checkpermission.CheckPermissionRequest', null, global);
|
|
19
27
|
goog.exportSymbol('proto.checkpermission.CheckPermissionResponse', null, global);
|
|
28
|
+
goog.exportSymbol('proto.checkpermission.GetSitesLimitsRequest', null, global);
|
|
29
|
+
goog.exportSymbol('proto.checkpermission.GetSitesLimitsResponse', null, global);
|
|
20
30
|
goog.exportSymbol('proto.checkpermission.GetUserPermissionsRequest', null, global);
|
|
21
31
|
goog.exportSymbol('proto.checkpermission.GetUserPermissionsResponse', null, global);
|
|
22
32
|
goog.exportSymbol('proto.checkpermission.GetUserPermissionsResponse.Permissions', null, global);
|
|
@@ -125,6 +135,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
125
135
|
*/
|
|
126
136
|
proto.checkpermission.GetUserPermissionsResponse.Permissions.displayName = 'proto.checkpermission.GetUserPermissionsResponse.Permissions';
|
|
127
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Generated by JsPbCodeGenerator.
|
|
140
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
141
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
142
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
143
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
144
|
+
* valid.
|
|
145
|
+
* @extends {jspb.Message}
|
|
146
|
+
* @constructor
|
|
147
|
+
*/
|
|
148
|
+
proto.checkpermission.GetSitesLimitsRequest = function(opt_data) {
|
|
149
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.checkpermission.GetSitesLimitsRequest.repeatedFields_, null);
|
|
150
|
+
};
|
|
151
|
+
goog.inherits(proto.checkpermission.GetSitesLimitsRequest, jspb.Message);
|
|
152
|
+
if (goog.DEBUG && !COMPILED) {
|
|
153
|
+
/**
|
|
154
|
+
* @public
|
|
155
|
+
* @override
|
|
156
|
+
*/
|
|
157
|
+
proto.checkpermission.GetSitesLimitsRequest.displayName = 'proto.checkpermission.GetSitesLimitsRequest';
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Generated by JsPbCodeGenerator.
|
|
161
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
162
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
163
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
164
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
165
|
+
* valid.
|
|
166
|
+
* @extends {jspb.Message}
|
|
167
|
+
* @constructor
|
|
168
|
+
*/
|
|
169
|
+
proto.checkpermission.GetSitesLimitsResponse = function(opt_data) {
|
|
170
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
171
|
+
};
|
|
172
|
+
goog.inherits(proto.checkpermission.GetSitesLimitsResponse, jspb.Message);
|
|
173
|
+
if (goog.DEBUG && !COMPILED) {
|
|
174
|
+
/**
|
|
175
|
+
* @public
|
|
176
|
+
* @override
|
|
177
|
+
*/
|
|
178
|
+
proto.checkpermission.GetSitesLimitsResponse.displayName = 'proto.checkpermission.GetSitesLimitsResponse';
|
|
179
|
+
}
|
|
128
180
|
|
|
129
181
|
|
|
130
182
|
|
|
@@ -1241,4 +1293,293 @@ proto.checkpermission.GetUserPermissionsResponse.prototype.clearPermissionsMap =
|
|
|
1241
1293
|
return this;};
|
|
1242
1294
|
|
|
1243
1295
|
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* List of repeated fields within this message type.
|
|
1299
|
+
* @private {!Array<number>}
|
|
1300
|
+
* @const
|
|
1301
|
+
*/
|
|
1302
|
+
proto.checkpermission.GetSitesLimitsRequest.repeatedFields_ = [1];
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1307
|
+
/**
|
|
1308
|
+
* Creates an object representation of this proto.
|
|
1309
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1310
|
+
* Optional fields that are not set will be set to undefined.
|
|
1311
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1312
|
+
* For the list of reserved names please see:
|
|
1313
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1314
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1315
|
+
* JSPB instance for transitional soy proto support:
|
|
1316
|
+
* http://goto/soy-param-migration
|
|
1317
|
+
* @return {!Object}
|
|
1318
|
+
*/
|
|
1319
|
+
proto.checkpermission.GetSitesLimitsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1320
|
+
return proto.checkpermission.GetSitesLimitsRequest.toObject(opt_includeInstance, this);
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* Static version of the {@see toObject} method.
|
|
1326
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1327
|
+
* the JSPB instance for transitional soy proto support:
|
|
1328
|
+
* http://goto/soy-param-migration
|
|
1329
|
+
* @param {!proto.checkpermission.GetSitesLimitsRequest} msg The msg instance to transform.
|
|
1330
|
+
* @return {!Object}
|
|
1331
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1332
|
+
*/
|
|
1333
|
+
proto.checkpermission.GetSitesLimitsRequest.toObject = function(includeInstance, msg) {
|
|
1334
|
+
var f, obj = {
|
|
1335
|
+
siteIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
1336
|
+
};
|
|
1337
|
+
|
|
1338
|
+
if (includeInstance) {
|
|
1339
|
+
obj.$jspbMessageInstance = msg;
|
|
1340
|
+
}
|
|
1341
|
+
return obj;
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1348
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1349
|
+
* @return {!proto.checkpermission.GetSitesLimitsRequest}
|
|
1350
|
+
*/
|
|
1351
|
+
proto.checkpermission.GetSitesLimitsRequest.deserializeBinary = function(bytes) {
|
|
1352
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1353
|
+
var msg = new proto.checkpermission.GetSitesLimitsRequest;
|
|
1354
|
+
return proto.checkpermission.GetSitesLimitsRequest.deserializeBinaryFromReader(msg, reader);
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1360
|
+
* given reader into the given message object.
|
|
1361
|
+
* @param {!proto.checkpermission.GetSitesLimitsRequest} msg The message object to deserialize into.
|
|
1362
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1363
|
+
* @return {!proto.checkpermission.GetSitesLimitsRequest}
|
|
1364
|
+
*/
|
|
1365
|
+
proto.checkpermission.GetSitesLimitsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1366
|
+
while (reader.nextField()) {
|
|
1367
|
+
if (reader.isEndGroup()) {
|
|
1368
|
+
break;
|
|
1369
|
+
}
|
|
1370
|
+
var field = reader.getFieldNumber();
|
|
1371
|
+
switch (field) {
|
|
1372
|
+
case 1:
|
|
1373
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1374
|
+
msg.addSiteIds(value);
|
|
1375
|
+
break;
|
|
1376
|
+
default:
|
|
1377
|
+
reader.skipField();
|
|
1378
|
+
break;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
return msg;
|
|
1382
|
+
};
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1387
|
+
* @return {!Uint8Array}
|
|
1388
|
+
*/
|
|
1389
|
+
proto.checkpermission.GetSitesLimitsRequest.prototype.serializeBinary = function() {
|
|
1390
|
+
var writer = new jspb.BinaryWriter();
|
|
1391
|
+
proto.checkpermission.GetSitesLimitsRequest.serializeBinaryToWriter(this, writer);
|
|
1392
|
+
return writer.getResultBuffer();
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1398
|
+
* format), writing to the given BinaryWriter.
|
|
1399
|
+
* @param {!proto.checkpermission.GetSitesLimitsRequest} message
|
|
1400
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1401
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1402
|
+
*/
|
|
1403
|
+
proto.checkpermission.GetSitesLimitsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1404
|
+
var f = undefined;
|
|
1405
|
+
f = message.getSiteIdsList();
|
|
1406
|
+
if (f.length > 0) {
|
|
1407
|
+
writer.writeRepeatedString(
|
|
1408
|
+
1,
|
|
1409
|
+
f
|
|
1410
|
+
);
|
|
1411
|
+
}
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* repeated string site_ids = 1;
|
|
1417
|
+
* @return {!Array<string>}
|
|
1418
|
+
*/
|
|
1419
|
+
proto.checkpermission.GetSitesLimitsRequest.prototype.getSiteIdsList = function() {
|
|
1420
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1421
|
+
};
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* @param {!Array<string>} value
|
|
1426
|
+
* @return {!proto.checkpermission.GetSitesLimitsRequest} returns this
|
|
1427
|
+
*/
|
|
1428
|
+
proto.checkpermission.GetSitesLimitsRequest.prototype.setSiteIdsList = function(value) {
|
|
1429
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1430
|
+
};
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* @param {string} value
|
|
1435
|
+
* @param {number=} opt_index
|
|
1436
|
+
* @return {!proto.checkpermission.GetSitesLimitsRequest} returns this
|
|
1437
|
+
*/
|
|
1438
|
+
proto.checkpermission.GetSitesLimitsRequest.prototype.addSiteIds = function(value, opt_index) {
|
|
1439
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Clears the list making it empty but non-null.
|
|
1445
|
+
* @return {!proto.checkpermission.GetSitesLimitsRequest} returns this
|
|
1446
|
+
*/
|
|
1447
|
+
proto.checkpermission.GetSitesLimitsRequest.prototype.clearSiteIdsList = function() {
|
|
1448
|
+
return this.setSiteIdsList([]);
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1456
|
+
/**
|
|
1457
|
+
* Creates an object representation of this proto.
|
|
1458
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1459
|
+
* Optional fields that are not set will be set to undefined.
|
|
1460
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1461
|
+
* For the list of reserved names please see:
|
|
1462
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1463
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1464
|
+
* JSPB instance for transitional soy proto support:
|
|
1465
|
+
* http://goto/soy-param-migration
|
|
1466
|
+
* @return {!Object}
|
|
1467
|
+
*/
|
|
1468
|
+
proto.checkpermission.GetSitesLimitsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1469
|
+
return proto.checkpermission.GetSitesLimitsResponse.toObject(opt_includeInstance, this);
|
|
1470
|
+
};
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* Static version of the {@see toObject} method.
|
|
1475
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1476
|
+
* the JSPB instance for transitional soy proto support:
|
|
1477
|
+
* http://goto/soy-param-migration
|
|
1478
|
+
* @param {!proto.checkpermission.GetSitesLimitsResponse} msg The msg instance to transform.
|
|
1479
|
+
* @return {!Object}
|
|
1480
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1481
|
+
*/
|
|
1482
|
+
proto.checkpermission.GetSitesLimitsResponse.toObject = function(includeInstance, msg) {
|
|
1483
|
+
var f, obj = {
|
|
1484
|
+
siteLimitsMap: (f = msg.getSiteLimitsMap()) ? f.toObject(includeInstance, proto.lansweeper.shared.limits.v1.SiteLimits.toObject) : []
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
if (includeInstance) {
|
|
1488
|
+
obj.$jspbMessageInstance = msg;
|
|
1489
|
+
}
|
|
1490
|
+
return obj;
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1497
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1498
|
+
* @return {!proto.checkpermission.GetSitesLimitsResponse}
|
|
1499
|
+
*/
|
|
1500
|
+
proto.checkpermission.GetSitesLimitsResponse.deserializeBinary = function(bytes) {
|
|
1501
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1502
|
+
var msg = new proto.checkpermission.GetSitesLimitsResponse;
|
|
1503
|
+
return proto.checkpermission.GetSitesLimitsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1509
|
+
* given reader into the given message object.
|
|
1510
|
+
* @param {!proto.checkpermission.GetSitesLimitsResponse} msg The message object to deserialize into.
|
|
1511
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1512
|
+
* @return {!proto.checkpermission.GetSitesLimitsResponse}
|
|
1513
|
+
*/
|
|
1514
|
+
proto.checkpermission.GetSitesLimitsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1515
|
+
while (reader.nextField()) {
|
|
1516
|
+
if (reader.isEndGroup()) {
|
|
1517
|
+
break;
|
|
1518
|
+
}
|
|
1519
|
+
var field = reader.getFieldNumber();
|
|
1520
|
+
switch (field) {
|
|
1521
|
+
case 1:
|
|
1522
|
+
var value = msg.getSiteLimitsMap();
|
|
1523
|
+
reader.readMessage(value, function(message, reader) {
|
|
1524
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.lansweeper.shared.limits.v1.SiteLimits.deserializeBinaryFromReader, "", new proto.lansweeper.shared.limits.v1.SiteLimits());
|
|
1525
|
+
});
|
|
1526
|
+
break;
|
|
1527
|
+
default:
|
|
1528
|
+
reader.skipField();
|
|
1529
|
+
break;
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
return msg;
|
|
1533
|
+
};
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1538
|
+
* @return {!Uint8Array}
|
|
1539
|
+
*/
|
|
1540
|
+
proto.checkpermission.GetSitesLimitsResponse.prototype.serializeBinary = function() {
|
|
1541
|
+
var writer = new jspb.BinaryWriter();
|
|
1542
|
+
proto.checkpermission.GetSitesLimitsResponse.serializeBinaryToWriter(this, writer);
|
|
1543
|
+
return writer.getResultBuffer();
|
|
1544
|
+
};
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1549
|
+
* format), writing to the given BinaryWriter.
|
|
1550
|
+
* @param {!proto.checkpermission.GetSitesLimitsResponse} message
|
|
1551
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1552
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1553
|
+
*/
|
|
1554
|
+
proto.checkpermission.GetSitesLimitsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1555
|
+
var f = undefined;
|
|
1556
|
+
f = message.getSiteLimitsMap(true);
|
|
1557
|
+
if (f && f.getLength() > 0) {
|
|
1558
|
+
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.lansweeper.shared.limits.v1.SiteLimits.serializeBinaryToWriter);
|
|
1559
|
+
}
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* map<string, lansweeper.shared.limits.v1.SiteLimits> site_limits = 1;
|
|
1565
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
1566
|
+
* empty, instead returning `undefined`
|
|
1567
|
+
* @return {!jspb.Map<string,!proto.lansweeper.shared.limits.v1.SiteLimits>}
|
|
1568
|
+
*/
|
|
1569
|
+
proto.checkpermission.GetSitesLimitsResponse.prototype.getSiteLimitsMap = function(opt_noLazyCreate) {
|
|
1570
|
+
return /** @type {!jspb.Map<string,!proto.lansweeper.shared.limits.v1.SiteLimits>} */ (
|
|
1571
|
+
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
|
|
1572
|
+
proto.lansweeper.shared.limits.v1.SiteLimits));
|
|
1573
|
+
};
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* Clears values from the map. The map will be non-null.
|
|
1578
|
+
* @return {!proto.checkpermission.GetSitesLimitsResponse} returns this
|
|
1579
|
+
*/
|
|
1580
|
+
proto.checkpermission.GetSitesLimitsResponse.prototype.clearSiteLimitsMap = function() {
|
|
1581
|
+
this.getSiteLimitsMap().clear();
|
|
1582
|
+
return this;};
|
|
1583
|
+
|
|
1584
|
+
|
|
1244
1585
|
goog.object.extend(exports, proto.checkpermission);
|