@lansweeper/multitenant-api-grpc 0.4.25 → 0.4.26

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.
@@ -38,6 +38,7 @@ interface IMultitenantService extends grpc.ServiceDefinition<grpc.UntypedService
38
38
  sendInviteLocalUsersMail: IMultitenantService_ISendInviteLocalUsersMail;
39
39
  allProfileExists: IMultitenantService_IAllProfileExists;
40
40
  getSiteSubscription: IMultitenantService_IGetSiteSubscription;
41
+ createLinkingCode: IMultitenantService_ICreateLinkingCode;
41
42
  }
42
43
 
43
44
  interface IMultitenantService_ICheckAccessToSiteByAccountId extends grpc.MethodDefinition<multitenant_pb.CheckAccessToSiteByAccountIdRequest, multitenant_pb.CheckAccessToSiteByAccountIdResponse> {
@@ -310,6 +311,15 @@ interface IMultitenantService_IGetSiteSubscription extends grpc.MethodDefinition
310
311
  responseSerialize: grpc.serialize<multitenant_pb.GetSiteSubscriptionResponse>;
311
312
  responseDeserialize: grpc.deserialize<multitenant_pb.GetSiteSubscriptionResponse>;
312
313
  }
314
+ interface IMultitenantService_ICreateLinkingCode extends grpc.MethodDefinition<multitenant_pb.CreateLinkingCodeRequest, multitenant_pb.CreateLinkingCodeResponse> {
315
+ path: "/lansweeper.multitenant.v1.Multitenant/CreateLinkingCode";
316
+ requestStream: false;
317
+ responseStream: false;
318
+ requestSerialize: grpc.serialize<multitenant_pb.CreateLinkingCodeRequest>;
319
+ requestDeserialize: grpc.deserialize<multitenant_pb.CreateLinkingCodeRequest>;
320
+ responseSerialize: grpc.serialize<multitenant_pb.CreateLinkingCodeResponse>;
321
+ responseDeserialize: grpc.deserialize<multitenant_pb.CreateLinkingCodeResponse>;
322
+ }
313
323
 
314
324
  export const MultitenantService: IMultitenantService;
315
325
 
@@ -344,6 +354,7 @@ export interface IMultitenantServer extends grpc.UntypedServiceImplementation {
344
354
  sendInviteLocalUsersMail: grpc.handleUnaryCall<multitenant_pb.SendInviteLocalUsersMailRequest, multitenant_pb.SendInviteLocalUsersMailResponse>;
345
355
  allProfileExists: grpc.handleUnaryCall<multitenant_pb.AllProfileExistsRequest, multitenant_pb.AllProfileExistsResponse>;
346
356
  getSiteSubscription: grpc.handleUnaryCall<multitenant_pb.GetSiteSubscriptionRequest, multitenant_pb.GetSiteSubscriptionResponse>;
357
+ createLinkingCode: grpc.handleUnaryCall<multitenant_pb.CreateLinkingCodeRequest, multitenant_pb.CreateLinkingCodeResponse>;
347
358
  }
348
359
 
349
360
  export interface IMultitenantClient {
@@ -437,6 +448,9 @@ export interface IMultitenantClient {
437
448
  getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
438
449
  getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
439
450
  getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
451
+ createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
452
+ createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
453
+ createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
440
454
  }
441
455
 
442
456
  export class MultitenantClient extends grpc.Client implements IMultitenantClient {
@@ -531,4 +545,7 @@ export class MultitenantClient extends grpc.Client implements IMultitenantClient
531
545
  public getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
532
546
  public getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
533
547
  public getSiteSubscription(request: multitenant_pb.GetSiteSubscriptionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.GetSiteSubscriptionResponse) => void): grpc.ClientUnaryCall;
548
+ public createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
549
+ public createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
550
+ public createLinkingCode(request: multitenant_pb.CreateLinkingCodeRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: multitenant_pb.CreateLinkingCodeResponse) => void): grpc.ClientUnaryCall;
534
551
  }
@@ -158,6 +158,28 @@ function deserialize_lansweeper_multitenant_v1_CreateInstallResponse(buffer_arg)
158
158
  return multitenant_pb.CreateInstallResponse.deserializeBinary(new Uint8Array(buffer_arg));
159
159
  }
160
160
 
161
+ function serialize_lansweeper_multitenant_v1_CreateLinkingCodeRequest(arg) {
162
+ if (!(arg instanceof multitenant_pb.CreateLinkingCodeRequest)) {
163
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.CreateLinkingCodeRequest');
164
+ }
165
+ return Buffer.from(arg.serializeBinary());
166
+ }
167
+
168
+ function deserialize_lansweeper_multitenant_v1_CreateLinkingCodeRequest(buffer_arg) {
169
+ return multitenant_pb.CreateLinkingCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
170
+ }
171
+
172
+ function serialize_lansweeper_multitenant_v1_CreateLinkingCodeResponse(arg) {
173
+ if (!(arg instanceof multitenant_pb.CreateLinkingCodeResponse)) {
174
+ throw new Error('Expected argument of type lansweeper.multitenant.v1.CreateLinkingCodeResponse');
175
+ }
176
+ return Buffer.from(arg.serializeBinary());
177
+ }
178
+
179
+ function deserialize_lansweeper_multitenant_v1_CreateLinkingCodeResponse(buffer_arg) {
180
+ return multitenant_pb.CreateLinkingCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
181
+ }
182
+
161
183
  function serialize_lansweeper_multitenant_v1_CreateTrialSiteAndInstallerRequest(arg) {
162
184
  if (!(arg instanceof multitenant_pb.CreateTrialSiteAndInstallerRequest)) {
163
185
  throw new Error('Expected argument of type lansweeper.multitenant.v1.CreateTrialSiteAndInstallerRequest');
@@ -996,6 +1018,17 @@ var MultitenantService = exports.MultitenantService = {
996
1018
  responseSerialize: serialize_lansweeper_multitenant_v1_GetSiteSubscriptionResponse,
997
1019
  responseDeserialize: deserialize_lansweeper_multitenant_v1_GetSiteSubscriptionResponse,
998
1020
  },
1021
+ createLinkingCode: {
1022
+ path: '/lansweeper.multitenant.v1.Multitenant/CreateLinkingCode',
1023
+ requestStream: false,
1024
+ responseStream: false,
1025
+ requestType: multitenant_pb.CreateLinkingCodeRequest,
1026
+ responseType: multitenant_pb.CreateLinkingCodeResponse,
1027
+ requestSerialize: serialize_lansweeper_multitenant_v1_CreateLinkingCodeRequest,
1028
+ requestDeserialize: deserialize_lansweeper_multitenant_v1_CreateLinkingCodeRequest,
1029
+ responseSerialize: serialize_lansweeper_multitenant_v1_CreateLinkingCodeResponse,
1030
+ responseDeserialize: deserialize_lansweeper_multitenant_v1_CreateLinkingCodeResponse,
1031
+ },
999
1032
  };
1000
1033
 
1001
1034
  exports.MultitenantClient = grpc.makeGenericClientConstructor(MultitenantService);
@@ -1976,6 +1976,49 @@ export namespace GetSiteSubscriptionResponse {
1976
1976
  }
1977
1977
  }
1978
1978
 
1979
+ export class CreateLinkingCodeRequest extends jspb.Message {
1980
+ getSiteId(): string;
1981
+ setSiteId(value: string): CreateLinkingCodeRequest;
1982
+ getAccountId(): string;
1983
+ setAccountId(value: string): CreateLinkingCodeRequest;
1984
+
1985
+ serializeBinary(): Uint8Array;
1986
+ toObject(includeInstance?: boolean): CreateLinkingCodeRequest.AsObject;
1987
+ static toObject(includeInstance: boolean, msg: CreateLinkingCodeRequest): CreateLinkingCodeRequest.AsObject;
1988
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1989
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1990
+ static serializeBinaryToWriter(message: CreateLinkingCodeRequest, writer: jspb.BinaryWriter): void;
1991
+ static deserializeBinary(bytes: Uint8Array): CreateLinkingCodeRequest;
1992
+ static deserializeBinaryFromReader(message: CreateLinkingCodeRequest, reader: jspb.BinaryReader): CreateLinkingCodeRequest;
1993
+ }
1994
+
1995
+ export namespace CreateLinkingCodeRequest {
1996
+ export type AsObject = {
1997
+ siteId: string,
1998
+ accountId: string,
1999
+ }
2000
+ }
2001
+
2002
+ export class CreateLinkingCodeResponse extends jspb.Message {
2003
+ getCode(): string;
2004
+ setCode(value: string): CreateLinkingCodeResponse;
2005
+
2006
+ serializeBinary(): Uint8Array;
2007
+ toObject(includeInstance?: boolean): CreateLinkingCodeResponse.AsObject;
2008
+ static toObject(includeInstance: boolean, msg: CreateLinkingCodeResponse): CreateLinkingCodeResponse.AsObject;
2009
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
2010
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
2011
+ static serializeBinaryToWriter(message: CreateLinkingCodeResponse, writer: jspb.BinaryWriter): void;
2012
+ static deserializeBinary(bytes: Uint8Array): CreateLinkingCodeResponse;
2013
+ static deserializeBinaryFromReader(message: CreateLinkingCodeResponse, reader: jspb.BinaryReader): CreateLinkingCodeResponse;
2014
+ }
2015
+
2016
+ export namespace CreateLinkingCodeResponse {
2017
+ export type AsObject = {
2018
+ code: string,
2019
+ }
2020
+ }
2021
+
1979
2022
  export enum SiteMode {
1980
2023
  UNESPECIFIED = 0,
1981
2024
  CLOUD_NATIVE = 1,
@@ -30,6 +30,8 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateAndLinkInstallRequest',
30
30
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateAndLinkInstallResponse', null, global);
31
31
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallRequest', null, global);
32
32
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallResponse', null, global);
33
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest', null, global);
34
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse', null, global);
33
35
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateTrialSiteAndInstallerRequest', null, global);
34
36
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateTrialSiteAndInstallerResponse', null, global);
35
37
  goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest', null, global);
@@ -1714,6 +1716,48 @@ if (goog.DEBUG && !COMPILED) {
1714
1716
  */
1715
1717
  proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.displayName = 'proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse';
1716
1718
  }
1719
+ /**
1720
+ * Generated by JsPbCodeGenerator.
1721
+ * @param {Array=} opt_data Optional initial data array, typically from a
1722
+ * server response, or constructed directly in Javascript. The array is used
1723
+ * in place and becomes part of the constructed object. It is not cloned.
1724
+ * If no data is provided, the constructed object will be empty, but still
1725
+ * valid.
1726
+ * @extends {jspb.Message}
1727
+ * @constructor
1728
+ */
1729
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest = function(opt_data) {
1730
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1731
+ };
1732
+ goog.inherits(proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest, jspb.Message);
1733
+ if (goog.DEBUG && !COMPILED) {
1734
+ /**
1735
+ * @public
1736
+ * @override
1737
+ */
1738
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.displayName = 'proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest';
1739
+ }
1740
+ /**
1741
+ * Generated by JsPbCodeGenerator.
1742
+ * @param {Array=} opt_data Optional initial data array, typically from a
1743
+ * server response, or constructed directly in Javascript. The array is used
1744
+ * in place and becomes part of the constructed object. It is not cloned.
1745
+ * If no data is provided, the constructed object will be empty, but still
1746
+ * valid.
1747
+ * @extends {jspb.Message}
1748
+ * @constructor
1749
+ */
1750
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse = function(opt_data) {
1751
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1752
+ };
1753
+ goog.inherits(proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse, jspb.Message);
1754
+ if (goog.DEBUG && !COMPILED) {
1755
+ /**
1756
+ * @public
1757
+ * @override
1758
+ */
1759
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.displayName = 'proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse';
1760
+ }
1717
1761
 
1718
1762
 
1719
1763
 
@@ -15804,6 +15848,296 @@ proto.lansweeper.multitenant.v1.GetSiteSubscriptionResponse.prototype.setType =
15804
15848
  };
15805
15849
 
15806
15850
 
15851
+
15852
+
15853
+
15854
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15855
+ /**
15856
+ * Creates an object representation of this proto.
15857
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15858
+ * Optional fields that are not set will be set to undefined.
15859
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15860
+ * For the list of reserved names please see:
15861
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15862
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15863
+ * JSPB instance for transitional soy proto support:
15864
+ * http://goto/soy-param-migration
15865
+ * @return {!Object}
15866
+ */
15867
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.prototype.toObject = function(opt_includeInstance) {
15868
+ return proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.toObject(opt_includeInstance, this);
15869
+ };
15870
+
15871
+
15872
+ /**
15873
+ * Static version of the {@see toObject} method.
15874
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15875
+ * the JSPB instance for transitional soy proto support:
15876
+ * http://goto/soy-param-migration
15877
+ * @param {!proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest} msg The msg instance to transform.
15878
+ * @return {!Object}
15879
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15880
+ */
15881
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.toObject = function(includeInstance, msg) {
15882
+ var f, obj = {
15883
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
15884
+ accountId: jspb.Message.getFieldWithDefault(msg, 2, "")
15885
+ };
15886
+
15887
+ if (includeInstance) {
15888
+ obj.$jspbMessageInstance = msg;
15889
+ }
15890
+ return obj;
15891
+ };
15892
+ }
15893
+
15894
+
15895
+ /**
15896
+ * Deserializes binary data (in protobuf wire format).
15897
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15898
+ * @return {!proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest}
15899
+ */
15900
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.deserializeBinary = function(bytes) {
15901
+ var reader = new jspb.BinaryReader(bytes);
15902
+ var msg = new proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest;
15903
+ return proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.deserializeBinaryFromReader(msg, reader);
15904
+ };
15905
+
15906
+
15907
+ /**
15908
+ * Deserializes binary data (in protobuf wire format) from the
15909
+ * given reader into the given message object.
15910
+ * @param {!proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest} msg The message object to deserialize into.
15911
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15912
+ * @return {!proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest}
15913
+ */
15914
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
15915
+ while (reader.nextField()) {
15916
+ if (reader.isEndGroup()) {
15917
+ break;
15918
+ }
15919
+ var field = reader.getFieldNumber();
15920
+ switch (field) {
15921
+ case 1:
15922
+ var value = /** @type {string} */ (reader.readString());
15923
+ msg.setSiteId(value);
15924
+ break;
15925
+ case 2:
15926
+ var value = /** @type {string} */ (reader.readString());
15927
+ msg.setAccountId(value);
15928
+ break;
15929
+ default:
15930
+ reader.skipField();
15931
+ break;
15932
+ }
15933
+ }
15934
+ return msg;
15935
+ };
15936
+
15937
+
15938
+ /**
15939
+ * Serializes the message to binary data (in protobuf wire format).
15940
+ * @return {!Uint8Array}
15941
+ */
15942
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.prototype.serializeBinary = function() {
15943
+ var writer = new jspb.BinaryWriter();
15944
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.serializeBinaryToWriter(this, writer);
15945
+ return writer.getResultBuffer();
15946
+ };
15947
+
15948
+
15949
+ /**
15950
+ * Serializes the given message to binary data (in protobuf wire
15951
+ * format), writing to the given BinaryWriter.
15952
+ * @param {!proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest} message
15953
+ * @param {!jspb.BinaryWriter} writer
15954
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15955
+ */
15956
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.serializeBinaryToWriter = function(message, writer) {
15957
+ var f = undefined;
15958
+ f = message.getSiteId();
15959
+ if (f.length > 0) {
15960
+ writer.writeString(
15961
+ 1,
15962
+ f
15963
+ );
15964
+ }
15965
+ f = message.getAccountId();
15966
+ if (f.length > 0) {
15967
+ writer.writeString(
15968
+ 2,
15969
+ f
15970
+ );
15971
+ }
15972
+ };
15973
+
15974
+
15975
+ /**
15976
+ * optional string site_id = 1;
15977
+ * @return {string}
15978
+ */
15979
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.prototype.getSiteId = function() {
15980
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15981
+ };
15982
+
15983
+
15984
+ /**
15985
+ * @param {string} value
15986
+ * @return {!proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest} returns this
15987
+ */
15988
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.prototype.setSiteId = function(value) {
15989
+ return jspb.Message.setProto3StringField(this, 1, value);
15990
+ };
15991
+
15992
+
15993
+ /**
15994
+ * optional string account_id = 2;
15995
+ * @return {string}
15996
+ */
15997
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.prototype.getAccountId = function() {
15998
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15999
+ };
16000
+
16001
+
16002
+ /**
16003
+ * @param {string} value
16004
+ * @return {!proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest} returns this
16005
+ */
16006
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest.prototype.setAccountId = function(value) {
16007
+ return jspb.Message.setProto3StringField(this, 2, value);
16008
+ };
16009
+
16010
+
16011
+
16012
+
16013
+
16014
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16015
+ /**
16016
+ * Creates an object representation of this proto.
16017
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16018
+ * Optional fields that are not set will be set to undefined.
16019
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16020
+ * For the list of reserved names please see:
16021
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16022
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16023
+ * JSPB instance for transitional soy proto support:
16024
+ * http://goto/soy-param-migration
16025
+ * @return {!Object}
16026
+ */
16027
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.prototype.toObject = function(opt_includeInstance) {
16028
+ return proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.toObject(opt_includeInstance, this);
16029
+ };
16030
+
16031
+
16032
+ /**
16033
+ * Static version of the {@see toObject} method.
16034
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16035
+ * the JSPB instance for transitional soy proto support:
16036
+ * http://goto/soy-param-migration
16037
+ * @param {!proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse} msg The msg instance to transform.
16038
+ * @return {!Object}
16039
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16040
+ */
16041
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.toObject = function(includeInstance, msg) {
16042
+ var f, obj = {
16043
+ code: jspb.Message.getFieldWithDefault(msg, 1, "")
16044
+ };
16045
+
16046
+ if (includeInstance) {
16047
+ obj.$jspbMessageInstance = msg;
16048
+ }
16049
+ return obj;
16050
+ };
16051
+ }
16052
+
16053
+
16054
+ /**
16055
+ * Deserializes binary data (in protobuf wire format).
16056
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16057
+ * @return {!proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse}
16058
+ */
16059
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.deserializeBinary = function(bytes) {
16060
+ var reader = new jspb.BinaryReader(bytes);
16061
+ var msg = new proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse;
16062
+ return proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.deserializeBinaryFromReader(msg, reader);
16063
+ };
16064
+
16065
+
16066
+ /**
16067
+ * Deserializes binary data (in protobuf wire format) from the
16068
+ * given reader into the given message object.
16069
+ * @param {!proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse} msg The message object to deserialize into.
16070
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16071
+ * @return {!proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse}
16072
+ */
16073
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
16074
+ while (reader.nextField()) {
16075
+ if (reader.isEndGroup()) {
16076
+ break;
16077
+ }
16078
+ var field = reader.getFieldNumber();
16079
+ switch (field) {
16080
+ case 1:
16081
+ var value = /** @type {string} */ (reader.readString());
16082
+ msg.setCode(value);
16083
+ break;
16084
+ default:
16085
+ reader.skipField();
16086
+ break;
16087
+ }
16088
+ }
16089
+ return msg;
16090
+ };
16091
+
16092
+
16093
+ /**
16094
+ * Serializes the message to binary data (in protobuf wire format).
16095
+ * @return {!Uint8Array}
16096
+ */
16097
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.prototype.serializeBinary = function() {
16098
+ var writer = new jspb.BinaryWriter();
16099
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.serializeBinaryToWriter(this, writer);
16100
+ return writer.getResultBuffer();
16101
+ };
16102
+
16103
+
16104
+ /**
16105
+ * Serializes the given message to binary data (in protobuf wire
16106
+ * format), writing to the given BinaryWriter.
16107
+ * @param {!proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse} message
16108
+ * @param {!jspb.BinaryWriter} writer
16109
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16110
+ */
16111
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.serializeBinaryToWriter = function(message, writer) {
16112
+ var f = undefined;
16113
+ f = message.getCode();
16114
+ if (f.length > 0) {
16115
+ writer.writeString(
16116
+ 1,
16117
+ f
16118
+ );
16119
+ }
16120
+ };
16121
+
16122
+
16123
+ /**
16124
+ * optional string code = 1;
16125
+ * @return {string}
16126
+ */
16127
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.prototype.getCode = function() {
16128
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16129
+ };
16130
+
16131
+
16132
+ /**
16133
+ * @param {string} value
16134
+ * @return {!proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse} returns this
16135
+ */
16136
+ proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse.prototype.setCode = function(value) {
16137
+ return jspb.Message.setProto3StringField(this, 1, value);
16138
+ };
16139
+
16140
+
15807
16141
  /**
15808
16142
  * @enum {number}
15809
16143
  */