@lansweeper/multitenant-api-grpc 0.4.37 → 0.4.39
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/.ignorecompat +0 -0
- package/CHANGELOG.md +16 -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 +81 -0
- package/gen-proto/limits/limits_pb.js +514 -0
- package/gen-proto/multitenant_grpc_pb.d.ts +18 -0
- package/gen-proto/multitenant_grpc_pb.js +34 -0
- package/gen-proto/multitenant_pb.d.ts +45 -0
- package/gen-proto/multitenant_pb.js +343 -2
- package/generated-go/multitenant.pb.go +1223 -1070
- package/generated-go/multitenant_grpc.pb.go +38 -1
- package/package.json +5 -2
- package/proto/limits/limits.proto +29 -0
- package/proto/multitenant.proto +13 -124
- package/protodeps.yaml +4 -0
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var multitenant_pb = require('./multitenant_pb.js');
|
|
6
|
+
var limits_limits_pb = require('./limits/limits_pb.js');
|
|
6
7
|
|
|
7
8
|
function serialize_lansweeper_multitenant_v1_AllProfileExistsRequest(arg) {
|
|
8
9
|
if (!(arg instanceof multitenant_pb.AllProfileExistsRequest)) {
|
|
@@ -455,6 +456,28 @@ function deserialize_lansweeper_multitenant_v1_GetSiteIdsWithIntegrationData(buf
|
|
|
455
456
|
return multitenant_pb.GetSiteIdsWithIntegrationData.deserializeBinary(new Uint8Array(buffer_arg));
|
|
456
457
|
}
|
|
457
458
|
|
|
459
|
+
function serialize_lansweeper_multitenant_v1_GetSiteLimitsRequest(arg) {
|
|
460
|
+
if (!(arg instanceof multitenant_pb.GetSiteLimitsRequest)) {
|
|
461
|
+
throw new Error('Expected argument of type lansweeper.multitenant.v1.GetSiteLimitsRequest');
|
|
462
|
+
}
|
|
463
|
+
return Buffer.from(arg.serializeBinary());
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
function deserialize_lansweeper_multitenant_v1_GetSiteLimitsRequest(buffer_arg) {
|
|
467
|
+
return multitenant_pb.GetSiteLimitsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
function serialize_lansweeper_multitenant_v1_GetSiteLimitsResponse(arg) {
|
|
471
|
+
if (!(arg instanceof multitenant_pb.GetSiteLimitsResponse)) {
|
|
472
|
+
throw new Error('Expected argument of type lansweeper.multitenant.v1.GetSiteLimitsResponse');
|
|
473
|
+
}
|
|
474
|
+
return Buffer.from(arg.serializeBinary());
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
function deserialize_lansweeper_multitenant_v1_GetSiteLimitsResponse(buffer_arg) {
|
|
478
|
+
return multitenant_pb.GetSiteLimitsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
479
|
+
}
|
|
480
|
+
|
|
458
481
|
function serialize_lansweeper_multitenant_v1_GetSiteSubscriptionRequest(arg) {
|
|
459
482
|
if (!(arg instanceof multitenant_pb.GetSiteSubscriptionRequest)) {
|
|
460
483
|
throw new Error('Expected argument of type lansweeper.multitenant.v1.GetSiteSubscriptionRequest');
|
|
@@ -1150,6 +1173,17 @@ var MultitenantService = exports.MultitenantService = {
|
|
|
1150
1173
|
responseSerialize: serialize_lansweeper_multitenant_v1_UpdateSiteMetadataResponse,
|
|
1151
1174
|
responseDeserialize: deserialize_lansweeper_multitenant_v1_UpdateSiteMetadataResponse,
|
|
1152
1175
|
},
|
|
1176
|
+
getSiteLimits: {
|
|
1177
|
+
path: '/lansweeper.multitenant.v1.Multitenant/GetSiteLimits',
|
|
1178
|
+
requestStream: false,
|
|
1179
|
+
responseStream: false,
|
|
1180
|
+
requestType: multitenant_pb.GetSiteLimitsRequest,
|
|
1181
|
+
responseType: multitenant_pb.GetSiteLimitsResponse,
|
|
1182
|
+
requestSerialize: serialize_lansweeper_multitenant_v1_GetSiteLimitsRequest,
|
|
1183
|
+
requestDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteLimitsRequest,
|
|
1184
|
+
responseSerialize: serialize_lansweeper_multitenant_v1_GetSiteLimitsResponse,
|
|
1185
|
+
responseDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteLimitsResponse,
|
|
1186
|
+
},
|
|
1153
1187
|
};
|
|
1154
1188
|
|
|
1155
1189
|
exports.MultitenantClient = grpc.makeGenericClientConstructor(MultitenantService);
|
|
@@ -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 PreviewAccount extends jspb.Message {
|
|
10
11
|
getId(): string;
|
|
@@ -2199,6 +2200,50 @@ export namespace UpdateSiteMetadataResponse {
|
|
|
2199
2200
|
}
|
|
2200
2201
|
}
|
|
2201
2202
|
|
|
2203
|
+
export class GetSiteLimitsRequest extends jspb.Message {
|
|
2204
|
+
clearSiteIdsList(): void;
|
|
2205
|
+
getSiteIdsList(): Array<string>;
|
|
2206
|
+
setSiteIdsList(value: Array<string>): GetSiteLimitsRequest;
|
|
2207
|
+
addSiteIds(value: string, index?: number): string;
|
|
2208
|
+
|
|
2209
|
+
serializeBinary(): Uint8Array;
|
|
2210
|
+
toObject(includeInstance?: boolean): GetSiteLimitsRequest.AsObject;
|
|
2211
|
+
static toObject(includeInstance: boolean, msg: GetSiteLimitsRequest): GetSiteLimitsRequest.AsObject;
|
|
2212
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
2213
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
2214
|
+
static serializeBinaryToWriter(message: GetSiteLimitsRequest, writer: jspb.BinaryWriter): void;
|
|
2215
|
+
static deserializeBinary(bytes: Uint8Array): GetSiteLimitsRequest;
|
|
2216
|
+
static deserializeBinaryFromReader(message: GetSiteLimitsRequest, reader: jspb.BinaryReader): GetSiteLimitsRequest;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
export namespace GetSiteLimitsRequest {
|
|
2220
|
+
export type AsObject = {
|
|
2221
|
+
siteIdsList: Array<string>,
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
export class GetSiteLimitsResponse extends jspb.Message {
|
|
2226
|
+
|
|
2227
|
+
getSiteLimitsMap(): jspb.Map<string, limits_limits_pb.SiteLimits>;
|
|
2228
|
+
clearSiteLimitsMap(): void;
|
|
2229
|
+
|
|
2230
|
+
serializeBinary(): Uint8Array;
|
|
2231
|
+
toObject(includeInstance?: boolean): GetSiteLimitsResponse.AsObject;
|
|
2232
|
+
static toObject(includeInstance: boolean, msg: GetSiteLimitsResponse): GetSiteLimitsResponse.AsObject;
|
|
2233
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
2234
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
2235
|
+
static serializeBinaryToWriter(message: GetSiteLimitsResponse, writer: jspb.BinaryWriter): void;
|
|
2236
|
+
static deserializeBinary(bytes: Uint8Array): GetSiteLimitsResponse;
|
|
2237
|
+
static deserializeBinaryFromReader(message: GetSiteLimitsResponse, reader: jspb.BinaryReader): GetSiteLimitsResponse;
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
export namespace GetSiteLimitsResponse {
|
|
2241
|
+
export type AsObject = {
|
|
2242
|
+
|
|
2243
|
+
siteLimitsMap: Array<[string, limits_limits_pb.SiteLimits.AsObject]>,
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2202
2247
|
export enum SiteMode {
|
|
2203
2248
|
UNESPECIFIED = 0,
|
|
2204
2249
|
CLOUD_NATIVE = 1,
|
|
@@ -13,8 +13,16 @@
|
|
|
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.lansweeper.multitenant.v1.AllProfileExistsRequest', null, global);
|
|
19
27
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.AllProfileExistsResponse', null, global);
|
|
20
28
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.AllProfilesExistRequest', null, global);
|
|
@@ -59,6 +67,8 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountResponse', nu
|
|
|
59
67
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest', null, global);
|
|
60
68
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse', null, global);
|
|
61
69
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteIdsWithIntegrationData', null, global);
|
|
70
|
+
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteLimitsRequest', null, global);
|
|
71
|
+
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteLimitsResponse', null, global);
|
|
62
72
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteSubscriptionRequest', null, global);
|
|
63
73
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse', null, global);
|
|
64
74
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetUserPermissionsRequest', null, global);
|
|
@@ -1912,6 +1922,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1912
1922
|
*/
|
|
1913
1923
|
proto.lansweeper.multitenant.v1.UpdateSiteMetadataResponse.displayName = 'proto.lansweeper.multitenant.v1.UpdateSiteMetadataResponse';
|
|
1914
1924
|
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Generated by JsPbCodeGenerator.
|
|
1927
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1928
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1929
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1930
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1931
|
+
* valid.
|
|
1932
|
+
* @extends {jspb.Message}
|
|
1933
|
+
* @constructor
|
|
1934
|
+
*/
|
|
1935
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest = function(opt_data) {
|
|
1936
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.repeatedFields_, null);
|
|
1937
|
+
};
|
|
1938
|
+
goog.inherits(proto.lansweeper.multitenant.v1.GetSiteLimitsRequest, jspb.Message);
|
|
1939
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1940
|
+
/**
|
|
1941
|
+
* @public
|
|
1942
|
+
* @override
|
|
1943
|
+
*/
|
|
1944
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.displayName = 'proto.lansweeper.multitenant.v1.GetSiteLimitsRequest';
|
|
1945
|
+
}
|
|
1946
|
+
/**
|
|
1947
|
+
* Generated by JsPbCodeGenerator.
|
|
1948
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1949
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1950
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1951
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1952
|
+
* valid.
|
|
1953
|
+
* @extends {jspb.Message}
|
|
1954
|
+
* @constructor
|
|
1955
|
+
*/
|
|
1956
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse = function(opt_data) {
|
|
1957
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1958
|
+
};
|
|
1959
|
+
goog.inherits(proto.lansweeper.multitenant.v1.GetSiteLimitsResponse, jspb.Message);
|
|
1960
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1961
|
+
/**
|
|
1962
|
+
* @public
|
|
1963
|
+
* @override
|
|
1964
|
+
*/
|
|
1965
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.displayName = 'proto.lansweeper.multitenant.v1.GetSiteLimitsResponse';
|
|
1966
|
+
}
|
|
1915
1967
|
|
|
1916
1968
|
|
|
1917
1969
|
|
|
@@ -17600,6 +17652,295 @@ proto.lansweeper.multitenant.v1.UpdateSiteMetadataResponse.prototype.setSuccess
|
|
|
17600
17652
|
};
|
|
17601
17653
|
|
|
17602
17654
|
|
|
17655
|
+
|
|
17656
|
+
/**
|
|
17657
|
+
* List of repeated fields within this message type.
|
|
17658
|
+
* @private {!Array<number>}
|
|
17659
|
+
* @const
|
|
17660
|
+
*/
|
|
17661
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.repeatedFields_ = [1];
|
|
17662
|
+
|
|
17663
|
+
|
|
17664
|
+
|
|
17665
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17666
|
+
/**
|
|
17667
|
+
* Creates an object representation of this proto.
|
|
17668
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17669
|
+
* Optional fields that are not set will be set to undefined.
|
|
17670
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17671
|
+
* For the list of reserved names please see:
|
|
17672
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17673
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17674
|
+
* JSPB instance for transitional soy proto support:
|
|
17675
|
+
* http://goto/soy-param-migration
|
|
17676
|
+
* @return {!Object}
|
|
17677
|
+
*/
|
|
17678
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
17679
|
+
return proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.toObject(opt_includeInstance, this);
|
|
17680
|
+
};
|
|
17681
|
+
|
|
17682
|
+
|
|
17683
|
+
/**
|
|
17684
|
+
* Static version of the {@see toObject} method.
|
|
17685
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
17686
|
+
* the JSPB instance for transitional soy proto support:
|
|
17687
|
+
* http://goto/soy-param-migration
|
|
17688
|
+
* @param {!proto.lansweeper.multitenant.v1.GetSiteLimitsRequest} msg The msg instance to transform.
|
|
17689
|
+
* @return {!Object}
|
|
17690
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17691
|
+
*/
|
|
17692
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.toObject = function(includeInstance, msg) {
|
|
17693
|
+
var f, obj = {
|
|
17694
|
+
siteIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
17695
|
+
};
|
|
17696
|
+
|
|
17697
|
+
if (includeInstance) {
|
|
17698
|
+
obj.$jspbMessageInstance = msg;
|
|
17699
|
+
}
|
|
17700
|
+
return obj;
|
|
17701
|
+
};
|
|
17702
|
+
}
|
|
17703
|
+
|
|
17704
|
+
|
|
17705
|
+
/**
|
|
17706
|
+
* Deserializes binary data (in protobuf wire format).
|
|
17707
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
17708
|
+
* @return {!proto.lansweeper.multitenant.v1.GetSiteLimitsRequest}
|
|
17709
|
+
*/
|
|
17710
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.deserializeBinary = function(bytes) {
|
|
17711
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
17712
|
+
var msg = new proto.lansweeper.multitenant.v1.GetSiteLimitsRequest;
|
|
17713
|
+
return proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.deserializeBinaryFromReader(msg, reader);
|
|
17714
|
+
};
|
|
17715
|
+
|
|
17716
|
+
|
|
17717
|
+
/**
|
|
17718
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
17719
|
+
* given reader into the given message object.
|
|
17720
|
+
* @param {!proto.lansweeper.multitenant.v1.GetSiteLimitsRequest} msg The message object to deserialize into.
|
|
17721
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
17722
|
+
* @return {!proto.lansweeper.multitenant.v1.GetSiteLimitsRequest}
|
|
17723
|
+
*/
|
|
17724
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
17725
|
+
while (reader.nextField()) {
|
|
17726
|
+
if (reader.isEndGroup()) {
|
|
17727
|
+
break;
|
|
17728
|
+
}
|
|
17729
|
+
var field = reader.getFieldNumber();
|
|
17730
|
+
switch (field) {
|
|
17731
|
+
case 1:
|
|
17732
|
+
var value = /** @type {string} */ (reader.readString());
|
|
17733
|
+
msg.addSiteIds(value);
|
|
17734
|
+
break;
|
|
17735
|
+
default:
|
|
17736
|
+
reader.skipField();
|
|
17737
|
+
break;
|
|
17738
|
+
}
|
|
17739
|
+
}
|
|
17740
|
+
return msg;
|
|
17741
|
+
};
|
|
17742
|
+
|
|
17743
|
+
|
|
17744
|
+
/**
|
|
17745
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
17746
|
+
* @return {!Uint8Array}
|
|
17747
|
+
*/
|
|
17748
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.prototype.serializeBinary = function() {
|
|
17749
|
+
var writer = new jspb.BinaryWriter();
|
|
17750
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.serializeBinaryToWriter(this, writer);
|
|
17751
|
+
return writer.getResultBuffer();
|
|
17752
|
+
};
|
|
17753
|
+
|
|
17754
|
+
|
|
17755
|
+
/**
|
|
17756
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
17757
|
+
* format), writing to the given BinaryWriter.
|
|
17758
|
+
* @param {!proto.lansweeper.multitenant.v1.GetSiteLimitsRequest} message
|
|
17759
|
+
* @param {!jspb.BinaryWriter} writer
|
|
17760
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17761
|
+
*/
|
|
17762
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
17763
|
+
var f = undefined;
|
|
17764
|
+
f = message.getSiteIdsList();
|
|
17765
|
+
if (f.length > 0) {
|
|
17766
|
+
writer.writeRepeatedString(
|
|
17767
|
+
1,
|
|
17768
|
+
f
|
|
17769
|
+
);
|
|
17770
|
+
}
|
|
17771
|
+
};
|
|
17772
|
+
|
|
17773
|
+
|
|
17774
|
+
/**
|
|
17775
|
+
* repeated string site_ids = 1;
|
|
17776
|
+
* @return {!Array<string>}
|
|
17777
|
+
*/
|
|
17778
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.prototype.getSiteIdsList = function() {
|
|
17779
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
17780
|
+
};
|
|
17781
|
+
|
|
17782
|
+
|
|
17783
|
+
/**
|
|
17784
|
+
* @param {!Array<string>} value
|
|
17785
|
+
* @return {!proto.lansweeper.multitenant.v1.GetSiteLimitsRequest} returns this
|
|
17786
|
+
*/
|
|
17787
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.prototype.setSiteIdsList = function(value) {
|
|
17788
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
17789
|
+
};
|
|
17790
|
+
|
|
17791
|
+
|
|
17792
|
+
/**
|
|
17793
|
+
* @param {string} value
|
|
17794
|
+
* @param {number=} opt_index
|
|
17795
|
+
* @return {!proto.lansweeper.multitenant.v1.GetSiteLimitsRequest} returns this
|
|
17796
|
+
*/
|
|
17797
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.prototype.addSiteIds = function(value, opt_index) {
|
|
17798
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
17799
|
+
};
|
|
17800
|
+
|
|
17801
|
+
|
|
17802
|
+
/**
|
|
17803
|
+
* Clears the list making it empty but non-null.
|
|
17804
|
+
* @return {!proto.lansweeper.multitenant.v1.GetSiteLimitsRequest} returns this
|
|
17805
|
+
*/
|
|
17806
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsRequest.prototype.clearSiteIdsList = function() {
|
|
17807
|
+
return this.setSiteIdsList([]);
|
|
17808
|
+
};
|
|
17809
|
+
|
|
17810
|
+
|
|
17811
|
+
|
|
17812
|
+
|
|
17813
|
+
|
|
17814
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
17815
|
+
/**
|
|
17816
|
+
* Creates an object representation of this proto.
|
|
17817
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
17818
|
+
* Optional fields that are not set will be set to undefined.
|
|
17819
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
17820
|
+
* For the list of reserved names please see:
|
|
17821
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
17822
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
17823
|
+
* JSPB instance for transitional soy proto support:
|
|
17824
|
+
* http://goto/soy-param-migration
|
|
17825
|
+
* @return {!Object}
|
|
17826
|
+
*/
|
|
17827
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
17828
|
+
return proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.toObject(opt_includeInstance, this);
|
|
17829
|
+
};
|
|
17830
|
+
|
|
17831
|
+
|
|
17832
|
+
/**
|
|
17833
|
+
* Static version of the {@see toObject} method.
|
|
17834
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
17835
|
+
* the JSPB instance for transitional soy proto support:
|
|
17836
|
+
* http://goto/soy-param-migration
|
|
17837
|
+
* @param {!proto.lansweeper.multitenant.v1.GetSiteLimitsResponse} msg The msg instance to transform.
|
|
17838
|
+
* @return {!Object}
|
|
17839
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17840
|
+
*/
|
|
17841
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.toObject = function(includeInstance, msg) {
|
|
17842
|
+
var f, obj = {
|
|
17843
|
+
siteLimitsMap: (f = msg.getSiteLimitsMap()) ? f.toObject(includeInstance, proto.lansweeper.shared.limits.v1.SiteLimits.toObject) : []
|
|
17844
|
+
};
|
|
17845
|
+
|
|
17846
|
+
if (includeInstance) {
|
|
17847
|
+
obj.$jspbMessageInstance = msg;
|
|
17848
|
+
}
|
|
17849
|
+
return obj;
|
|
17850
|
+
};
|
|
17851
|
+
}
|
|
17852
|
+
|
|
17853
|
+
|
|
17854
|
+
/**
|
|
17855
|
+
* Deserializes binary data (in protobuf wire format).
|
|
17856
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
17857
|
+
* @return {!proto.lansweeper.multitenant.v1.GetSiteLimitsResponse}
|
|
17858
|
+
*/
|
|
17859
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.deserializeBinary = function(bytes) {
|
|
17860
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
17861
|
+
var msg = new proto.lansweeper.multitenant.v1.GetSiteLimitsResponse;
|
|
17862
|
+
return proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.deserializeBinaryFromReader(msg, reader);
|
|
17863
|
+
};
|
|
17864
|
+
|
|
17865
|
+
|
|
17866
|
+
/**
|
|
17867
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
17868
|
+
* given reader into the given message object.
|
|
17869
|
+
* @param {!proto.lansweeper.multitenant.v1.GetSiteLimitsResponse} msg The message object to deserialize into.
|
|
17870
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
17871
|
+
* @return {!proto.lansweeper.multitenant.v1.GetSiteLimitsResponse}
|
|
17872
|
+
*/
|
|
17873
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
17874
|
+
while (reader.nextField()) {
|
|
17875
|
+
if (reader.isEndGroup()) {
|
|
17876
|
+
break;
|
|
17877
|
+
}
|
|
17878
|
+
var field = reader.getFieldNumber();
|
|
17879
|
+
switch (field) {
|
|
17880
|
+
case 1:
|
|
17881
|
+
var value = msg.getSiteLimitsMap();
|
|
17882
|
+
reader.readMessage(value, function(message, reader) {
|
|
17883
|
+
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());
|
|
17884
|
+
});
|
|
17885
|
+
break;
|
|
17886
|
+
default:
|
|
17887
|
+
reader.skipField();
|
|
17888
|
+
break;
|
|
17889
|
+
}
|
|
17890
|
+
}
|
|
17891
|
+
return msg;
|
|
17892
|
+
};
|
|
17893
|
+
|
|
17894
|
+
|
|
17895
|
+
/**
|
|
17896
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
17897
|
+
* @return {!Uint8Array}
|
|
17898
|
+
*/
|
|
17899
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.prototype.serializeBinary = function() {
|
|
17900
|
+
var writer = new jspb.BinaryWriter();
|
|
17901
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.serializeBinaryToWriter(this, writer);
|
|
17902
|
+
return writer.getResultBuffer();
|
|
17903
|
+
};
|
|
17904
|
+
|
|
17905
|
+
|
|
17906
|
+
/**
|
|
17907
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
17908
|
+
* format), writing to the given BinaryWriter.
|
|
17909
|
+
* @param {!proto.lansweeper.multitenant.v1.GetSiteLimitsResponse} message
|
|
17910
|
+
* @param {!jspb.BinaryWriter} writer
|
|
17911
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
17912
|
+
*/
|
|
17913
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
17914
|
+
var f = undefined;
|
|
17915
|
+
f = message.getSiteLimitsMap(true);
|
|
17916
|
+
if (f && f.getLength() > 0) {
|
|
17917
|
+
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.lansweeper.shared.limits.v1.SiteLimits.serializeBinaryToWriter);
|
|
17918
|
+
}
|
|
17919
|
+
};
|
|
17920
|
+
|
|
17921
|
+
|
|
17922
|
+
/**
|
|
17923
|
+
* map<string, lansweeper.shared.limits.v1.SiteLimits> site_limits = 1;
|
|
17924
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
17925
|
+
* empty, instead returning `undefined`
|
|
17926
|
+
* @return {!jspb.Map<string,!proto.lansweeper.shared.limits.v1.SiteLimits>}
|
|
17927
|
+
*/
|
|
17928
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.prototype.getSiteLimitsMap = function(opt_noLazyCreate) {
|
|
17929
|
+
return /** @type {!jspb.Map<string,!proto.lansweeper.shared.limits.v1.SiteLimits>} */ (
|
|
17930
|
+
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
|
|
17931
|
+
proto.lansweeper.shared.limits.v1.SiteLimits));
|
|
17932
|
+
};
|
|
17933
|
+
|
|
17934
|
+
|
|
17935
|
+
/**
|
|
17936
|
+
* Clears values from the map. The map will be non-null.
|
|
17937
|
+
* @return {!proto.lansweeper.multitenant.v1.GetSiteLimitsResponse} returns this
|
|
17938
|
+
*/
|
|
17939
|
+
proto.lansweeper.multitenant.v1.GetSiteLimitsResponse.prototype.clearSiteLimitsMap = function() {
|
|
17940
|
+
this.getSiteLimitsMap().clear();
|
|
17941
|
+
return this;};
|
|
17942
|
+
|
|
17943
|
+
|
|
17603
17944
|
/**
|
|
17604
17945
|
* @enum {number}
|
|
17605
17946
|
*/
|