@lansweeper/multitenant-api-grpc 0.4.66 → 0.4.68

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.
@@ -46,6 +46,8 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallRequest', null,
46
46
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallResponse', null, global);
47
47
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateLinkingCodeRequest', null, global);
48
48
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateLinkingCodeResponse', null, global);
49
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest', null, global);
50
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse', null, global);
49
51
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateTrialSiteAndInstallerRequest', null, global);
50
52
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateTrialSiteAndInstallerResponse', null, global);
51
53
  goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest', null, global);
@@ -2627,6 +2629,48 @@ if (goog.DEBUG && !COMPILED) {
2627
2629
  */
2628
2630
  proto.lansweeper.multitenant.v1.GetSitePreviewResponse.displayName = 'proto.lansweeper.multitenant.v1.GetSitePreviewResponse';
2629
2631
  }
2632
+ /**
2633
+ * Generated by JsPbCodeGenerator.
2634
+ * @param {Array=} opt_data Optional initial data array, typically from a
2635
+ * server response, or constructed directly in Javascript. The array is used
2636
+ * in place and becomes part of the constructed object. It is not cloned.
2637
+ * If no data is provided, the constructed object will be empty, but still
2638
+ * valid.
2639
+ * @extends {jspb.Message}
2640
+ * @constructor
2641
+ */
2642
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest = function(opt_data) {
2643
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.repeatedFields_, null);
2644
+ };
2645
+ goog.inherits(proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest, jspb.Message);
2646
+ if (goog.DEBUG && !COMPILED) {
2647
+ /**
2648
+ * @public
2649
+ * @override
2650
+ */
2651
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.displayName = 'proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest';
2652
+ }
2653
+ /**
2654
+ * Generated by JsPbCodeGenerator.
2655
+ * @param {Array=} opt_data Optional initial data array, typically from a
2656
+ * server response, or constructed directly in Javascript. The array is used
2657
+ * in place and becomes part of the constructed object. It is not cloned.
2658
+ * If no data is provided, the constructed object will be empty, but still
2659
+ * valid.
2660
+ * @extends {jspb.Message}
2661
+ * @constructor
2662
+ */
2663
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse = function(opt_data) {
2664
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2665
+ };
2666
+ goog.inherits(proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse, jspb.Message);
2667
+ if (goog.DEBUG && !COMPILED) {
2668
+ /**
2669
+ * @public
2670
+ * @override
2671
+ */
2672
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.displayName = 'proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse';
2673
+ }
2630
2674
 
2631
2675
 
2632
2676
 
@@ -20279,7 +20323,8 @@ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.toObject = function(include
20279
20323
  siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
20280
20324
  parentType: jspb.Message.getFieldWithDefault(msg, 2, 0),
20281
20325
  parentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
20282
- isCustomerAccount: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
20326
+ isCustomerAccount: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
20327
+ skipHivemindExport: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
20283
20328
  };
20284
20329
 
20285
20330
  if (includeInstance) {
@@ -20332,6 +20377,10 @@ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.deserializeBinaryFromReader
20332
20377
  var value = /** @type {boolean} */ (reader.readBool());
20333
20378
  msg.setIsCustomerAccount(value);
20334
20379
  break;
20380
+ case 5:
20381
+ var value = /** @type {boolean} */ (reader.readBool());
20382
+ msg.setSkipHivemindExport(value);
20383
+ break;
20335
20384
  default:
20336
20385
  reader.skipField();
20337
20386
  break;
@@ -20389,6 +20438,13 @@ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.serializeBinaryToWriter = f
20389
20438
  f
20390
20439
  );
20391
20440
  }
20441
+ f = message.getSkipHivemindExport();
20442
+ if (f) {
20443
+ writer.writeBool(
20444
+ 5,
20445
+ f
20446
+ );
20447
+ }
20392
20448
  };
20393
20449
 
20394
20450
 
@@ -20474,6 +20530,24 @@ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.setIsCustomerAcco
20474
20530
  };
20475
20531
 
20476
20532
 
20533
+ /**
20534
+ * optional bool skip_hivemind_export = 5;
20535
+ * @return {boolean}
20536
+ */
20537
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.getSkipHivemindExport = function() {
20538
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
20539
+ };
20540
+
20541
+
20542
+ /**
20543
+ * @param {boolean} value
20544
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem} returns this
20545
+ */
20546
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.setSkipHivemindExport = function(value) {
20547
+ return jspb.Message.setProto3BooleanField(this, 5, value);
20548
+ };
20549
+
20550
+
20477
20551
 
20478
20552
 
20479
20553
 
@@ -24070,6 +24144,430 @@ proto.lansweeper.multitenant.v1.GetSitePreviewResponse.prototype.hasSite = funct
24070
24144
  };
24071
24145
 
24072
24146
 
24147
+
24148
+ /**
24149
+ * List of repeated fields within this message type.
24150
+ * @private {!Array<number>}
24151
+ * @const
24152
+ */
24153
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.repeatedFields_ = [4];
24154
+
24155
+
24156
+
24157
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24158
+ /**
24159
+ * Creates an object representation of this proto.
24160
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24161
+ * Optional fields that are not set will be set to undefined.
24162
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24163
+ * For the list of reserved names please see:
24164
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24165
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24166
+ * JSPB instance for transitional soy proto support:
24167
+ * http://goto/soy-param-migration
24168
+ * @return {!Object}
24169
+ */
24170
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.toObject = function(opt_includeInstance) {
24171
+ return proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.toObject(opt_includeInstance, this);
24172
+ };
24173
+
24174
+
24175
+ /**
24176
+ * Static version of the {@see toObject} method.
24177
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24178
+ * the JSPB instance for transitional soy proto support:
24179
+ * http://goto/soy-param-migration
24180
+ * @param {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} msg The msg instance to transform.
24181
+ * @return {!Object}
24182
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24183
+ */
24184
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.toObject = function(includeInstance, msg) {
24185
+ var f, obj = {
24186
+ userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
24187
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
24188
+ partnerIntegrationId: jspb.Message.getFieldWithDefault(msg, 3, ""),
24189
+ siteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
24190
+ description: jspb.Message.getFieldWithDefault(msg, 5, "")
24191
+ };
24192
+
24193
+ if (includeInstance) {
24194
+ obj.$jspbMessageInstance = msg;
24195
+ }
24196
+ return obj;
24197
+ };
24198
+ }
24199
+
24200
+
24201
+ /**
24202
+ * Deserializes binary data (in protobuf wire format).
24203
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24204
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest}
24205
+ */
24206
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.deserializeBinary = function(bytes) {
24207
+ var reader = new jspb.BinaryReader(bytes);
24208
+ var msg = new proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest;
24209
+ return proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.deserializeBinaryFromReader(msg, reader);
24210
+ };
24211
+
24212
+
24213
+ /**
24214
+ * Deserializes binary data (in protobuf wire format) from the
24215
+ * given reader into the given message object.
24216
+ * @param {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} msg The message object to deserialize into.
24217
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24218
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest}
24219
+ */
24220
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
24221
+ while (reader.nextField()) {
24222
+ if (reader.isEndGroup()) {
24223
+ break;
24224
+ }
24225
+ var field = reader.getFieldNumber();
24226
+ switch (field) {
24227
+ case 1:
24228
+ var value = /** @type {string} */ (reader.readString());
24229
+ msg.setUserId(value);
24230
+ break;
24231
+ case 2:
24232
+ var value = /** @type {string} */ (reader.readString());
24233
+ msg.setName(value);
24234
+ break;
24235
+ case 3:
24236
+ var value = /** @type {string} */ (reader.readString());
24237
+ msg.setPartnerIntegrationId(value);
24238
+ break;
24239
+ case 4:
24240
+ var value = /** @type {string} */ (reader.readString());
24241
+ msg.addSiteIds(value);
24242
+ break;
24243
+ case 5:
24244
+ var value = /** @type {string} */ (reader.readString());
24245
+ msg.setDescription(value);
24246
+ break;
24247
+ default:
24248
+ reader.skipField();
24249
+ break;
24250
+ }
24251
+ }
24252
+ return msg;
24253
+ };
24254
+
24255
+
24256
+ /**
24257
+ * Serializes the message to binary data (in protobuf wire format).
24258
+ * @return {!Uint8Array}
24259
+ */
24260
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.serializeBinary = function() {
24261
+ var writer = new jspb.BinaryWriter();
24262
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.serializeBinaryToWriter(this, writer);
24263
+ return writer.getResultBuffer();
24264
+ };
24265
+
24266
+
24267
+ /**
24268
+ * Serializes the given message to binary data (in protobuf wire
24269
+ * format), writing to the given BinaryWriter.
24270
+ * @param {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} message
24271
+ * @param {!jspb.BinaryWriter} writer
24272
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24273
+ */
24274
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.serializeBinaryToWriter = function(message, writer) {
24275
+ var f = undefined;
24276
+ f = message.getUserId();
24277
+ if (f.length > 0) {
24278
+ writer.writeString(
24279
+ 1,
24280
+ f
24281
+ );
24282
+ }
24283
+ f = message.getName();
24284
+ if (f.length > 0) {
24285
+ writer.writeString(
24286
+ 2,
24287
+ f
24288
+ );
24289
+ }
24290
+ f = message.getPartnerIntegrationId();
24291
+ if (f.length > 0) {
24292
+ writer.writeString(
24293
+ 3,
24294
+ f
24295
+ );
24296
+ }
24297
+ f = message.getSiteIdsList();
24298
+ if (f.length > 0) {
24299
+ writer.writeRepeatedString(
24300
+ 4,
24301
+ f
24302
+ );
24303
+ }
24304
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
24305
+ if (f != null) {
24306
+ writer.writeString(
24307
+ 5,
24308
+ f
24309
+ );
24310
+ }
24311
+ };
24312
+
24313
+
24314
+ /**
24315
+ * optional string user_id = 1;
24316
+ * @return {string}
24317
+ */
24318
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.getUserId = function() {
24319
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
24320
+ };
24321
+
24322
+
24323
+ /**
24324
+ * @param {string} value
24325
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} returns this
24326
+ */
24327
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.setUserId = function(value) {
24328
+ return jspb.Message.setProto3StringField(this, 1, value);
24329
+ };
24330
+
24331
+
24332
+ /**
24333
+ * optional string name = 2;
24334
+ * @return {string}
24335
+ */
24336
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.getName = function() {
24337
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
24338
+ };
24339
+
24340
+
24341
+ /**
24342
+ * @param {string} value
24343
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} returns this
24344
+ */
24345
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.setName = function(value) {
24346
+ return jspb.Message.setProto3StringField(this, 2, value);
24347
+ };
24348
+
24349
+
24350
+ /**
24351
+ * optional string partner_integration_id = 3;
24352
+ * @return {string}
24353
+ */
24354
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.getPartnerIntegrationId = function() {
24355
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
24356
+ };
24357
+
24358
+
24359
+ /**
24360
+ * @param {string} value
24361
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} returns this
24362
+ */
24363
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.setPartnerIntegrationId = function(value) {
24364
+ return jspb.Message.setProto3StringField(this, 3, value);
24365
+ };
24366
+
24367
+
24368
+ /**
24369
+ * repeated string site_ids = 4;
24370
+ * @return {!Array<string>}
24371
+ */
24372
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.getSiteIdsList = function() {
24373
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
24374
+ };
24375
+
24376
+
24377
+ /**
24378
+ * @param {!Array<string>} value
24379
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} returns this
24380
+ */
24381
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.setSiteIdsList = function(value) {
24382
+ return jspb.Message.setField(this, 4, value || []);
24383
+ };
24384
+
24385
+
24386
+ /**
24387
+ * @param {string} value
24388
+ * @param {number=} opt_index
24389
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} returns this
24390
+ */
24391
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.addSiteIds = function(value, opt_index) {
24392
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
24393
+ };
24394
+
24395
+
24396
+ /**
24397
+ * Clears the list making it empty but non-null.
24398
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} returns this
24399
+ */
24400
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.clearSiteIdsList = function() {
24401
+ return this.setSiteIdsList([]);
24402
+ };
24403
+
24404
+
24405
+ /**
24406
+ * optional string description = 5;
24407
+ * @return {string}
24408
+ */
24409
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.getDescription = function() {
24410
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
24411
+ };
24412
+
24413
+
24414
+ /**
24415
+ * @param {string} value
24416
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} returns this
24417
+ */
24418
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.setDescription = function(value) {
24419
+ return jspb.Message.setField(this, 5, value);
24420
+ };
24421
+
24422
+
24423
+ /**
24424
+ * Clears the field making it undefined.
24425
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest} returns this
24426
+ */
24427
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.clearDescription = function() {
24428
+ return jspb.Message.setField(this, 5, undefined);
24429
+ };
24430
+
24431
+
24432
+ /**
24433
+ * Returns whether this field is set.
24434
+ * @return {boolean}
24435
+ */
24436
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenRequest.prototype.hasDescription = function() {
24437
+ return jspb.Message.getField(this, 5) != null;
24438
+ };
24439
+
24440
+
24441
+
24442
+
24443
+
24444
+ if (jspb.Message.GENERATE_TO_OBJECT) {
24445
+ /**
24446
+ * Creates an object representation of this proto.
24447
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
24448
+ * Optional fields that are not set will be set to undefined.
24449
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
24450
+ * For the list of reserved names please see:
24451
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
24452
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
24453
+ * JSPB instance for transitional soy proto support:
24454
+ * http://goto/soy-param-migration
24455
+ * @return {!Object}
24456
+ */
24457
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.prototype.toObject = function(opt_includeInstance) {
24458
+ return proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.toObject(opt_includeInstance, this);
24459
+ };
24460
+
24461
+
24462
+ /**
24463
+ * Static version of the {@see toObject} method.
24464
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
24465
+ * the JSPB instance for transitional soy proto support:
24466
+ * http://goto/soy-param-migration
24467
+ * @param {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse} msg The msg instance to transform.
24468
+ * @return {!Object}
24469
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24470
+ */
24471
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.toObject = function(includeInstance, msg) {
24472
+ var f, obj = {
24473
+ token: jspb.Message.getFieldWithDefault(msg, 1, "")
24474
+ };
24475
+
24476
+ if (includeInstance) {
24477
+ obj.$jspbMessageInstance = msg;
24478
+ }
24479
+ return obj;
24480
+ };
24481
+ }
24482
+
24483
+
24484
+ /**
24485
+ * Deserializes binary data (in protobuf wire format).
24486
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
24487
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse}
24488
+ */
24489
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.deserializeBinary = function(bytes) {
24490
+ var reader = new jspb.BinaryReader(bytes);
24491
+ var msg = new proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse;
24492
+ return proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.deserializeBinaryFromReader(msg, reader);
24493
+ };
24494
+
24495
+
24496
+ /**
24497
+ * Deserializes binary data (in protobuf wire format) from the
24498
+ * given reader into the given message object.
24499
+ * @param {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse} msg The message object to deserialize into.
24500
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
24501
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse}
24502
+ */
24503
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.deserializeBinaryFromReader = function(msg, reader) {
24504
+ while (reader.nextField()) {
24505
+ if (reader.isEndGroup()) {
24506
+ break;
24507
+ }
24508
+ var field = reader.getFieldNumber();
24509
+ switch (field) {
24510
+ case 1:
24511
+ var value = /** @type {string} */ (reader.readString());
24512
+ msg.setToken(value);
24513
+ break;
24514
+ default:
24515
+ reader.skipField();
24516
+ break;
24517
+ }
24518
+ }
24519
+ return msg;
24520
+ };
24521
+
24522
+
24523
+ /**
24524
+ * Serializes the message to binary data (in protobuf wire format).
24525
+ * @return {!Uint8Array}
24526
+ */
24527
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.prototype.serializeBinary = function() {
24528
+ var writer = new jspb.BinaryWriter();
24529
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.serializeBinaryToWriter(this, writer);
24530
+ return writer.getResultBuffer();
24531
+ };
24532
+
24533
+
24534
+ /**
24535
+ * Serializes the given message to binary data (in protobuf wire
24536
+ * format), writing to the given BinaryWriter.
24537
+ * @param {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse} message
24538
+ * @param {!jspb.BinaryWriter} writer
24539
+ * @suppress {unusedLocalVariables} f is only used for nested messages
24540
+ */
24541
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.serializeBinaryToWriter = function(message, writer) {
24542
+ var f = undefined;
24543
+ f = message.getToken();
24544
+ if (f.length > 0) {
24545
+ writer.writeString(
24546
+ 1,
24547
+ f
24548
+ );
24549
+ }
24550
+ };
24551
+
24552
+
24553
+ /**
24554
+ * optional string token = 1;
24555
+ * @return {string}
24556
+ */
24557
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.prototype.getToken = function() {
24558
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
24559
+ };
24560
+
24561
+
24562
+ /**
24563
+ * @param {string} value
24564
+ * @return {!proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse} returns this
24565
+ */
24566
+ proto.lansweeper.multitenant.v1.CreatePersonalAccessTokenResponse.prototype.setToken = function(value) {
24567
+ return jspb.Message.setProto3StringField(this, 1, value);
24568
+ };
24569
+
24570
+
24073
24571
  /**
24074
24572
  * @enum {number}
24075
24573
  */