@lansweeper/multitenant-api-grpc 0.4.55 → 0.4.56
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 +8 -0
- package/gen-proto/image.json +1 -1
- 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 +21 -0
- package/gen-proto/multitenant_pb.js +154 -0
- package/generated-go/multitenant.pb.go +1374 -1297
- package/generated-go/multitenant_grpc.pb.go +128 -46
- package/package.json +2 -2
- package/proto/multitenant.proto +6 -2
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
8
|
import * as multitenant_pb from "./multitenant_pb";
|
|
9
9
|
import * as limits_limits_pb from "./limits/limits_pb";
|
|
10
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
10
11
|
|
|
11
12
|
interface IMultitenantService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
12
13
|
checkAccessToSiteByAccountId: IMultitenantService_ICheckAccessToSiteByAccountId;
|
|
@@ -52,6 +53,7 @@ interface IMultitenantService extends grpc.ServiceDefinition<grpc.UntypedService
|
|
|
52
53
|
getMsmpOrganizationAccount: IMultitenantService_IGetMsmpOrganizationAccount;
|
|
53
54
|
getSitesByMsmpOrganizationId: IMultitenantService_IGetSitesByMsmpOrganizationId;
|
|
54
55
|
getInstallsByExternalIds: IMultitenantService_IGetInstallsByExternalIds;
|
|
56
|
+
enableCustomFieldsFederation: IMultitenantService_IEnableCustomFieldsFederation;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
interface IMultitenantService_ICheckAccessToSiteByAccountId extends grpc.MethodDefinition<multitenant_pb.CheckAccessToSiteByAccountIdRequest, multitenant_pb.CheckAccessToSiteByAccountIdResponse> {
|
|
@@ -441,6 +443,15 @@ interface IMultitenantService_IGetInstallsByExternalIds extends grpc.MethodDefin
|
|
|
441
443
|
responseSerialize: grpc.serialize<multitenant_pb.GetInstallsByExternalIdsResponse>;
|
|
442
444
|
responseDeserialize: grpc.deserialize<multitenant_pb.GetInstallsByExternalIdsResponse>;
|
|
443
445
|
}
|
|
446
|
+
interface IMultitenantService_IEnableCustomFieldsFederation extends grpc.MethodDefinition<multitenant_pb.EnableCustomFieldsFederationRequest, google_protobuf_empty_pb.Empty> {
|
|
447
|
+
path: "/lansweeper.multitenant.v1.Multitenant/EnableCustomFieldsFederation";
|
|
448
|
+
requestStream: false;
|
|
449
|
+
responseStream: false;
|
|
450
|
+
requestSerialize: grpc.serialize<multitenant_pb.EnableCustomFieldsFederationRequest>;
|
|
451
|
+
requestDeserialize: grpc.deserialize<multitenant_pb.EnableCustomFieldsFederationRequest>;
|
|
452
|
+
responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
453
|
+
responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
454
|
+
}
|
|
444
455
|
|
|
445
456
|
export const MultitenantService: IMultitenantService;
|
|
446
457
|
|
|
@@ -488,6 +499,7 @@ export interface IMultitenantServer extends grpc.UntypedServiceImplementation {
|
|
|
488
499
|
getMsmpOrganizationAccount: grpc.handleUnaryCall<multitenant_pb.GetMsmpOrganizationAccountRequest, multitenant_pb.GetMsmpOrganizationAccountResponse>;
|
|
489
500
|
getSitesByMsmpOrganizationId: grpc.handleUnaryCall<multitenant_pb.GetSitesByMsmpOrganizationIdRequest, multitenant_pb.GetSitesByMsmpOrganizationIdResponse>;
|
|
490
501
|
getInstallsByExternalIds: grpc.handleUnaryCall<multitenant_pb.GetInstallsByExternalIdsRequest, multitenant_pb.GetInstallsByExternalIdsResponse>;
|
|
502
|
+
enableCustomFieldsFederation: grpc.handleUnaryCall<multitenant_pb.EnableCustomFieldsFederationRequest, google_protobuf_empty_pb.Empty>;
|
|
491
503
|
}
|
|
492
504
|
|
|
493
505
|
export interface IMultitenantClient {
|
|
@@ -620,6 +632,9 @@ export interface IMultitenantClient {
|
|
|
620
632
|
getInstallsByExternalIds(request: multitenant_pb.GetInstallsByExternalIdsRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByExternalIdsResponse) => void): grpc.ClientUnaryCall;
|
|
621
633
|
getInstallsByExternalIds(request: multitenant_pb.GetInstallsByExternalIdsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByExternalIdsResponse) => void): grpc.ClientUnaryCall;
|
|
622
634
|
getInstallsByExternalIds(request: multitenant_pb.GetInstallsByExternalIdsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByExternalIdsResponse) => void): grpc.ClientUnaryCall;
|
|
635
|
+
enableCustomFieldsFederation(request: multitenant_pb.EnableCustomFieldsFederationRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
636
|
+
enableCustomFieldsFederation(request: multitenant_pb.EnableCustomFieldsFederationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
637
|
+
enableCustomFieldsFederation(request: multitenant_pb.EnableCustomFieldsFederationRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
623
638
|
}
|
|
624
639
|
|
|
625
640
|
export class MultitenantClient extends grpc.Client implements IMultitenantClient {
|
|
@@ -753,4 +768,7 @@ export class MultitenantClient extends grpc.Client implements IMultitenantClient
|
|
|
753
768
|
public getInstallsByExternalIds(request: multitenant_pb.GetInstallsByExternalIdsRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByExternalIdsResponse) => void): grpc.ClientUnaryCall;
|
|
754
769
|
public getInstallsByExternalIds(request: multitenant_pb.GetInstallsByExternalIdsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByExternalIdsResponse) => void): grpc.ClientUnaryCall;
|
|
755
770
|
public getInstallsByExternalIds(request: multitenant_pb.GetInstallsByExternalIdsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetInstallsByExternalIdsResponse) => void): grpc.ClientUnaryCall;
|
|
771
|
+
public enableCustomFieldsFederation(request: multitenant_pb.EnableCustomFieldsFederationRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
772
|
+
public enableCustomFieldsFederation(request: multitenant_pb.EnableCustomFieldsFederationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
773
|
+
public enableCustomFieldsFederation(request: multitenant_pb.EnableCustomFieldsFederationRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
756
774
|
}
|
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var multitenant_pb = require('./multitenant_pb.js');
|
|
6
6
|
var limits_limits_pb = require('./limits/limits_pb.js');
|
|
7
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
8
|
+
|
|
9
|
+
function serialize_google_protobuf_Empty(arg) {
|
|
10
|
+
if (!(arg instanceof google_protobuf_empty_pb.Empty)) {
|
|
11
|
+
throw new Error('Expected argument of type google.protobuf.Empty');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_google_protobuf_Empty(buffer_arg) {
|
|
17
|
+
return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
7
19
|
|
|
8
20
|
function serialize_lansweeper_multitenant_v1_AllProfileExistsRequest(arg) {
|
|
9
21
|
if (!(arg instanceof multitenant_pb.AllProfileExistsRequest)) {
|
|
@@ -269,6 +281,17 @@ function deserialize_lansweeper_multitenant_v1_DisableWebhookEmailResponse(buffe
|
|
|
269
281
|
return multitenant_pb.DisableWebhookEmailResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
270
282
|
}
|
|
271
283
|
|
|
284
|
+
function serialize_lansweeper_multitenant_v1_EnableCustomFieldsFederationRequest(arg) {
|
|
285
|
+
if (!(arg instanceof multitenant_pb.EnableCustomFieldsFederationRequest)) {
|
|
286
|
+
throw new Error('Expected argument of type lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest');
|
|
287
|
+
}
|
|
288
|
+
return Buffer.from(arg.serializeBinary());
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function deserialize_lansweeper_multitenant_v1_EnableCustomFieldsFederationRequest(buffer_arg) {
|
|
292
|
+
return multitenant_pb.EnableCustomFieldsFederationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
293
|
+
}
|
|
294
|
+
|
|
272
295
|
function serialize_lansweeper_multitenant_v1_GetAccountIdsBySiteIdRequest(arg) {
|
|
273
296
|
if (!(arg instanceof multitenant_pb.GetAccountIdsBySiteIdRequest)) {
|
|
274
297
|
throw new Error('Expected argument of type lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest');
|
|
@@ -1415,6 +1438,17 @@ var MultitenantService = exports.MultitenantService = {
|
|
|
1415
1438
|
responseSerialize: serialize_lansweeper_multitenant_v1_GetInstallsByExternalIdsResponse,
|
|
1416
1439
|
responseDeserialize: deserialize_lansweeper_multitenant_v1_GetInstallsByExternalIdsResponse,
|
|
1417
1440
|
},
|
|
1441
|
+
enableCustomFieldsFederation: {
|
|
1442
|
+
path: '/lansweeper.multitenant.v1.Multitenant/EnableCustomFieldsFederation',
|
|
1443
|
+
requestStream: false,
|
|
1444
|
+
responseStream: false,
|
|
1445
|
+
requestType: multitenant_pb.EnableCustomFieldsFederationRequest,
|
|
1446
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
1447
|
+
requestSerialize: serialize_lansweeper_multitenant_v1_EnableCustomFieldsFederationRequest,
|
|
1448
|
+
requestDeserialize: deserialize_lansweeper_multitenant_v1_EnableCustomFieldsFederationRequest,
|
|
1449
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
1450
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
1451
|
+
},
|
|
1418
1452
|
};
|
|
1419
1453
|
|
|
1420
1454
|
exports.MultitenantClient = grpc.makeGenericClientConstructor(MultitenantService);
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as jspb from "google-protobuf";
|
|
8
8
|
import * as limits_limits_pb from "./limits/limits_pb";
|
|
9
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
9
10
|
|
|
10
11
|
export class PreviewAccount extends jspb.Message {
|
|
11
12
|
getId(): string;
|
|
@@ -2729,6 +2730,26 @@ export namespace GetSitesByMsmpOrganizationIdResponse {
|
|
|
2729
2730
|
}
|
|
2730
2731
|
}
|
|
2731
2732
|
|
|
2733
|
+
export class EnableCustomFieldsFederationRequest extends jspb.Message {
|
|
2734
|
+
getSiteId(): string;
|
|
2735
|
+
setSiteId(value: string): EnableCustomFieldsFederationRequest;
|
|
2736
|
+
|
|
2737
|
+
serializeBinary(): Uint8Array;
|
|
2738
|
+
toObject(includeInstance?: boolean): EnableCustomFieldsFederationRequest.AsObject;
|
|
2739
|
+
static toObject(includeInstance: boolean, msg: EnableCustomFieldsFederationRequest): EnableCustomFieldsFederationRequest.AsObject;
|
|
2740
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
2741
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
2742
|
+
static serializeBinaryToWriter(message: EnableCustomFieldsFederationRequest, writer: jspb.BinaryWriter): void;
|
|
2743
|
+
static deserializeBinary(bytes: Uint8Array): EnableCustomFieldsFederationRequest;
|
|
2744
|
+
static deserializeBinaryFromReader(message: EnableCustomFieldsFederationRequest, reader: jspb.BinaryReader): EnableCustomFieldsFederationRequest;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
export namespace EnableCustomFieldsFederationRequest {
|
|
2748
|
+
export type AsObject = {
|
|
2749
|
+
siteId: string,
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2732
2753
|
export enum SiteMode {
|
|
2733
2754
|
UNESPECIFIED = 0,
|
|
2734
2755
|
CLOUD_NATIVE = 1,
|
|
@@ -23,6 +23,8 @@ var global = (function() {
|
|
|
23
23
|
|
|
24
24
|
var limits_limits_pb = require('./limits/limits_pb.js');
|
|
25
25
|
goog.object.extend(proto, limits_limits_pb);
|
|
26
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
27
|
+
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
26
28
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.AllProfileExistsRequest', null, global);
|
|
27
29
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.AllProfileExistsResponse', null, global);
|
|
28
30
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.AllProfilesExistRequest', null, global);
|
|
@@ -49,6 +51,7 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateTrialSiteAndInstallerRe
|
|
|
49
51
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest', null, global);
|
|
50
52
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError', null, global);
|
|
51
53
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse', null, global);
|
|
54
|
+
goog.exportSymbol('proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest', null, global);
|
|
52
55
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdRequest', null, global);
|
|
53
56
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetAccountIdsBySiteIdResponse', null, global);
|
|
54
57
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest', null, global);
|
|
@@ -2382,6 +2385,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2382
2385
|
*/
|
|
2383
2386
|
proto.lansweeper.multitenant.v1.GetSitesByMsmpOrganizationIdResponse.displayName = 'proto.lansweeper.multitenant.v1.GetSitesByMsmpOrganizationIdResponse';
|
|
2384
2387
|
}
|
|
2388
|
+
/**
|
|
2389
|
+
* Generated by JsPbCodeGenerator.
|
|
2390
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2391
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2392
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2393
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2394
|
+
* valid.
|
|
2395
|
+
* @extends {jspb.Message}
|
|
2396
|
+
* @constructor
|
|
2397
|
+
*/
|
|
2398
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest = function(opt_data) {
|
|
2399
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2400
|
+
};
|
|
2401
|
+
goog.inherits(proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest, jspb.Message);
|
|
2402
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2403
|
+
/**
|
|
2404
|
+
* @public
|
|
2405
|
+
* @override
|
|
2406
|
+
*/
|
|
2407
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.displayName = 'proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest';
|
|
2408
|
+
}
|
|
2385
2409
|
|
|
2386
2410
|
|
|
2387
2411
|
|
|
@@ -21887,6 +21911,136 @@ proto.lansweeper.multitenant.v1.GetSitesByMsmpOrganizationIdResponse.prototype.h
|
|
|
21887
21911
|
};
|
|
21888
21912
|
|
|
21889
21913
|
|
|
21914
|
+
|
|
21915
|
+
|
|
21916
|
+
|
|
21917
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
21918
|
+
/**
|
|
21919
|
+
* Creates an object representation of this proto.
|
|
21920
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
21921
|
+
* Optional fields that are not set will be set to undefined.
|
|
21922
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
21923
|
+
* For the list of reserved names please see:
|
|
21924
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
21925
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
21926
|
+
* JSPB instance for transitional soy proto support:
|
|
21927
|
+
* http://goto/soy-param-migration
|
|
21928
|
+
* @return {!Object}
|
|
21929
|
+
*/
|
|
21930
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
21931
|
+
return proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.toObject(opt_includeInstance, this);
|
|
21932
|
+
};
|
|
21933
|
+
|
|
21934
|
+
|
|
21935
|
+
/**
|
|
21936
|
+
* Static version of the {@see toObject} method.
|
|
21937
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
21938
|
+
* the JSPB instance for transitional soy proto support:
|
|
21939
|
+
* http://goto/soy-param-migration
|
|
21940
|
+
* @param {!proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest} msg The msg instance to transform.
|
|
21941
|
+
* @return {!Object}
|
|
21942
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
21943
|
+
*/
|
|
21944
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.toObject = function(includeInstance, msg) {
|
|
21945
|
+
var f, obj = {
|
|
21946
|
+
siteId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
21947
|
+
};
|
|
21948
|
+
|
|
21949
|
+
if (includeInstance) {
|
|
21950
|
+
obj.$jspbMessageInstance = msg;
|
|
21951
|
+
}
|
|
21952
|
+
return obj;
|
|
21953
|
+
};
|
|
21954
|
+
}
|
|
21955
|
+
|
|
21956
|
+
|
|
21957
|
+
/**
|
|
21958
|
+
* Deserializes binary data (in protobuf wire format).
|
|
21959
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
21960
|
+
* @return {!proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest}
|
|
21961
|
+
*/
|
|
21962
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.deserializeBinary = function(bytes) {
|
|
21963
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
21964
|
+
var msg = new proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest;
|
|
21965
|
+
return proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.deserializeBinaryFromReader(msg, reader);
|
|
21966
|
+
};
|
|
21967
|
+
|
|
21968
|
+
|
|
21969
|
+
/**
|
|
21970
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
21971
|
+
* given reader into the given message object.
|
|
21972
|
+
* @param {!proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest} msg The message object to deserialize into.
|
|
21973
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
21974
|
+
* @return {!proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest}
|
|
21975
|
+
*/
|
|
21976
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
21977
|
+
while (reader.nextField()) {
|
|
21978
|
+
if (reader.isEndGroup()) {
|
|
21979
|
+
break;
|
|
21980
|
+
}
|
|
21981
|
+
var field = reader.getFieldNumber();
|
|
21982
|
+
switch (field) {
|
|
21983
|
+
case 1:
|
|
21984
|
+
var value = /** @type {string} */ (reader.readString());
|
|
21985
|
+
msg.setSiteId(value);
|
|
21986
|
+
break;
|
|
21987
|
+
default:
|
|
21988
|
+
reader.skipField();
|
|
21989
|
+
break;
|
|
21990
|
+
}
|
|
21991
|
+
}
|
|
21992
|
+
return msg;
|
|
21993
|
+
};
|
|
21994
|
+
|
|
21995
|
+
|
|
21996
|
+
/**
|
|
21997
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
21998
|
+
* @return {!Uint8Array}
|
|
21999
|
+
*/
|
|
22000
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.prototype.serializeBinary = function() {
|
|
22001
|
+
var writer = new jspb.BinaryWriter();
|
|
22002
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.serializeBinaryToWriter(this, writer);
|
|
22003
|
+
return writer.getResultBuffer();
|
|
22004
|
+
};
|
|
22005
|
+
|
|
22006
|
+
|
|
22007
|
+
/**
|
|
22008
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
22009
|
+
* format), writing to the given BinaryWriter.
|
|
22010
|
+
* @param {!proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest} message
|
|
22011
|
+
* @param {!jspb.BinaryWriter} writer
|
|
22012
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22013
|
+
*/
|
|
22014
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
22015
|
+
var f = undefined;
|
|
22016
|
+
f = message.getSiteId();
|
|
22017
|
+
if (f.length > 0) {
|
|
22018
|
+
writer.writeString(
|
|
22019
|
+
1,
|
|
22020
|
+
f
|
|
22021
|
+
);
|
|
22022
|
+
}
|
|
22023
|
+
};
|
|
22024
|
+
|
|
22025
|
+
|
|
22026
|
+
/**
|
|
22027
|
+
* optional string site_id = 1;
|
|
22028
|
+
* @return {string}
|
|
22029
|
+
*/
|
|
22030
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.prototype.getSiteId = function() {
|
|
22031
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
22032
|
+
};
|
|
22033
|
+
|
|
22034
|
+
|
|
22035
|
+
/**
|
|
22036
|
+
* @param {string} value
|
|
22037
|
+
* @return {!proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest} returns this
|
|
22038
|
+
*/
|
|
22039
|
+
proto.lansweeper.multitenant.v1.EnableCustomFieldsFederationRequest.prototype.setSiteId = function(value) {
|
|
22040
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
22041
|
+
};
|
|
22042
|
+
|
|
22043
|
+
|
|
21890
22044
|
/**
|
|
21891
22045
|
* @enum {number}
|
|
21892
22046
|
*/
|