@lansweeper/multitenant-api-grpc 0.3.3 → 0.3.5

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.
@@ -20,6 +20,9 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdR
20
20
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CheckAccessToSiteByAccountIdResponse', null, global);
21
21
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallRequest', null, global);
22
22
  goog.exportSymbol('proto.lansweeper.multitenant.v1.CreateInstallResponse', null, global);
23
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest', null, global);
24
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError', null, global);
25
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse', null, global);
23
26
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdRequest', null, global);
24
27
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse', null, global);
25
28
  goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallbyClientIdRequest', null, global);
@@ -1007,6 +1010,69 @@ if (goog.DEBUG && !COMPILED) {
1007
1010
  */
1008
1011
  proto.lansweeper.multitenant.v1.ValidateApplicationPersonalAccessTokenResponse.displayName = 'proto.lansweeper.multitenant.v1.ValidateApplicationPersonalAccessTokenResponse';
1009
1012
  }
1013
+ /**
1014
+ * Generated by JsPbCodeGenerator.
1015
+ * @param {Array=} opt_data Optional initial data array, typically from a
1016
+ * server response, or constructed directly in Javascript. The array is used
1017
+ * in place and becomes part of the constructed object. It is not cloned.
1018
+ * If no data is provided, the constructed object will be empty, but still
1019
+ * valid.
1020
+ * @extends {jspb.Message}
1021
+ * @constructor
1022
+ */
1023
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest = function(opt_data) {
1024
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.repeatedFields_, null);
1025
+ };
1026
+ goog.inherits(proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest, jspb.Message);
1027
+ if (goog.DEBUG && !COMPILED) {
1028
+ /**
1029
+ * @public
1030
+ * @override
1031
+ */
1032
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.displayName = 'proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest';
1033
+ }
1034
+ /**
1035
+ * Generated by JsPbCodeGenerator.
1036
+ * @param {Array=} opt_data Optional initial data array, typically from a
1037
+ * server response, or constructed directly in Javascript. The array is used
1038
+ * in place and becomes part of the constructed object. It is not cloned.
1039
+ * If no data is provided, the constructed object will be empty, but still
1040
+ * valid.
1041
+ * @extends {jspb.Message}
1042
+ * @constructor
1043
+ */
1044
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError = function(opt_data) {
1045
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1046
+ };
1047
+ goog.inherits(proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError, jspb.Message);
1048
+ if (goog.DEBUG && !COMPILED) {
1049
+ /**
1050
+ * @public
1051
+ * @override
1052
+ */
1053
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.displayName = 'proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError';
1054
+ }
1055
+ /**
1056
+ * Generated by JsPbCodeGenerator.
1057
+ * @param {Array=} opt_data Optional initial data array, typically from a
1058
+ * server response, or constructed directly in Javascript. The array is used
1059
+ * in place and becomes part of the constructed object. It is not cloned.
1060
+ * If no data is provided, the constructed object will be empty, but still
1061
+ * valid.
1062
+ * @extends {jspb.Message}
1063
+ * @constructor
1064
+ */
1065
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse = function(opt_data) {
1066
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1067
+ };
1068
+ goog.inherits(proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse, jspb.Message);
1069
+ if (goog.DEBUG && !COMPILED) {
1070
+ /**
1071
+ * @public
1072
+ * @override
1073
+ */
1074
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.displayName = 'proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse';
1075
+ }
1010
1076
 
1011
1077
 
1012
1078
 
@@ -9263,6 +9329,666 @@ proto.lansweeper.multitenant.v1.ValidateApplicationPersonalAccessTokenResponse.p
9263
9329
  };
9264
9330
 
9265
9331
 
9332
+
9333
+ /**
9334
+ * List of repeated fields within this message type.
9335
+ * @private {!Array<number>}
9336
+ * @const
9337
+ */
9338
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.repeatedFields_ = [3];
9339
+
9340
+
9341
+
9342
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9343
+ /**
9344
+ * Creates an object representation of this proto.
9345
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9346
+ * Optional fields that are not set will be set to undefined.
9347
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9348
+ * For the list of reserved names please see:
9349
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9350
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9351
+ * JSPB instance for transitional soy proto support:
9352
+ * http://goto/soy-param-migration
9353
+ * @return {!Object}
9354
+ */
9355
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.toObject = function(opt_includeInstance) {
9356
+ return proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.toObject(opt_includeInstance, this);
9357
+ };
9358
+
9359
+
9360
+ /**
9361
+ * Static version of the {@see toObject} method.
9362
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9363
+ * the JSPB instance for transitional soy proto support:
9364
+ * http://goto/soy-param-migration
9365
+ * @param {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest} msg The msg instance to transform.
9366
+ * @return {!Object}
9367
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9368
+ */
9369
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.toObject = function(includeInstance, msg) {
9370
+ var f, obj = {
9371
+ applicationName: jspb.Message.getFieldWithDefault(msg, 1, ""),
9372
+ email: jspb.Message.getFieldWithDefault(msg, 2, ""),
9373
+ errorsList: jspb.Message.toObjectList(msg.getErrorsList(),
9374
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.toObject, includeInstance),
9375
+ payloadUrl: jspb.Message.getFieldWithDefault(msg, 4, ""),
9376
+ webhookName: jspb.Message.getFieldWithDefault(msg, 5, ""),
9377
+ webhookUrl: jspb.Message.getFieldWithDefault(msg, 6, "")
9378
+ };
9379
+
9380
+ if (includeInstance) {
9381
+ obj.$jspbMessageInstance = msg;
9382
+ }
9383
+ return obj;
9384
+ };
9385
+ }
9386
+
9387
+
9388
+ /**
9389
+ * Deserializes binary data (in protobuf wire format).
9390
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9391
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest}
9392
+ */
9393
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.deserializeBinary = function(bytes) {
9394
+ var reader = new jspb.BinaryReader(bytes);
9395
+ var msg = new proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest;
9396
+ return proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.deserializeBinaryFromReader(msg, reader);
9397
+ };
9398
+
9399
+
9400
+ /**
9401
+ * Deserializes binary data (in protobuf wire format) from the
9402
+ * given reader into the given message object.
9403
+ * @param {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest} msg The message object to deserialize into.
9404
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9405
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest}
9406
+ */
9407
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.deserializeBinaryFromReader = function(msg, reader) {
9408
+ while (reader.nextField()) {
9409
+ if (reader.isEndGroup()) {
9410
+ break;
9411
+ }
9412
+ var field = reader.getFieldNumber();
9413
+ switch (field) {
9414
+ case 1:
9415
+ var value = /** @type {string} */ (reader.readString());
9416
+ msg.setApplicationName(value);
9417
+ break;
9418
+ case 2:
9419
+ var value = /** @type {string} */ (reader.readString());
9420
+ msg.setEmail(value);
9421
+ break;
9422
+ case 3:
9423
+ var value = new proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError;
9424
+ reader.readMessage(value,proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.deserializeBinaryFromReader);
9425
+ msg.addErrors(value);
9426
+ break;
9427
+ case 4:
9428
+ var value = /** @type {string} */ (reader.readString());
9429
+ msg.setPayloadUrl(value);
9430
+ break;
9431
+ case 5:
9432
+ var value = /** @type {string} */ (reader.readString());
9433
+ msg.setWebhookName(value);
9434
+ break;
9435
+ case 6:
9436
+ var value = /** @type {string} */ (reader.readString());
9437
+ msg.setWebhookUrl(value);
9438
+ break;
9439
+ default:
9440
+ reader.skipField();
9441
+ break;
9442
+ }
9443
+ }
9444
+ return msg;
9445
+ };
9446
+
9447
+
9448
+ /**
9449
+ * Serializes the message to binary data (in protobuf wire format).
9450
+ * @return {!Uint8Array}
9451
+ */
9452
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.serializeBinary = function() {
9453
+ var writer = new jspb.BinaryWriter();
9454
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.serializeBinaryToWriter(this, writer);
9455
+ return writer.getResultBuffer();
9456
+ };
9457
+
9458
+
9459
+ /**
9460
+ * Serializes the given message to binary data (in protobuf wire
9461
+ * format), writing to the given BinaryWriter.
9462
+ * @param {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest} message
9463
+ * @param {!jspb.BinaryWriter} writer
9464
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9465
+ */
9466
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.serializeBinaryToWriter = function(message, writer) {
9467
+ var f = undefined;
9468
+ f = message.getApplicationName();
9469
+ if (f.length > 0) {
9470
+ writer.writeString(
9471
+ 1,
9472
+ f
9473
+ );
9474
+ }
9475
+ f = message.getEmail();
9476
+ if (f.length > 0) {
9477
+ writer.writeString(
9478
+ 2,
9479
+ f
9480
+ );
9481
+ }
9482
+ f = message.getErrorsList();
9483
+ if (f.length > 0) {
9484
+ writer.writeRepeatedMessage(
9485
+ 3,
9486
+ f,
9487
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.serializeBinaryToWriter
9488
+ );
9489
+ }
9490
+ f = message.getPayloadUrl();
9491
+ if (f.length > 0) {
9492
+ writer.writeString(
9493
+ 4,
9494
+ f
9495
+ );
9496
+ }
9497
+ f = message.getWebhookName();
9498
+ if (f.length > 0) {
9499
+ writer.writeString(
9500
+ 5,
9501
+ f
9502
+ );
9503
+ }
9504
+ f = message.getWebhookUrl();
9505
+ if (f.length > 0) {
9506
+ writer.writeString(
9507
+ 6,
9508
+ f
9509
+ );
9510
+ }
9511
+ };
9512
+
9513
+
9514
+
9515
+
9516
+
9517
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9518
+ /**
9519
+ * Creates an object representation of this proto.
9520
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9521
+ * Optional fields that are not set will be set to undefined.
9522
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9523
+ * For the list of reserved names please see:
9524
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9525
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9526
+ * JSPB instance for transitional soy proto support:
9527
+ * http://goto/soy-param-migration
9528
+ * @return {!Object}
9529
+ */
9530
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.prototype.toObject = function(opt_includeInstance) {
9531
+ return proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.toObject(opt_includeInstance, this);
9532
+ };
9533
+
9534
+
9535
+ /**
9536
+ * Static version of the {@see toObject} method.
9537
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9538
+ * the JSPB instance for transitional soy proto support:
9539
+ * http://goto/soy-param-migration
9540
+ * @param {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError} msg The msg instance to transform.
9541
+ * @return {!Object}
9542
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9543
+ */
9544
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.toObject = function(includeInstance, msg) {
9545
+ var f, obj = {
9546
+ code: jspb.Message.getFieldWithDefault(msg, 1, ""),
9547
+ messsage: jspb.Message.getFieldWithDefault(msg, 2, ""),
9548
+ timestamp: jspb.Message.getFieldWithDefault(msg, 3, ""),
9549
+ message: jspb.Message.getFieldWithDefault(msg, 4, "")
9550
+ };
9551
+
9552
+ if (includeInstance) {
9553
+ obj.$jspbMessageInstance = msg;
9554
+ }
9555
+ return obj;
9556
+ };
9557
+ }
9558
+
9559
+
9560
+ /**
9561
+ * Deserializes binary data (in protobuf wire format).
9562
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9563
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError}
9564
+ */
9565
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.deserializeBinary = function(bytes) {
9566
+ var reader = new jspb.BinaryReader(bytes);
9567
+ var msg = new proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError;
9568
+ return proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.deserializeBinaryFromReader(msg, reader);
9569
+ };
9570
+
9571
+
9572
+ /**
9573
+ * Deserializes binary data (in protobuf wire format) from the
9574
+ * given reader into the given message object.
9575
+ * @param {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError} msg The message object to deserialize into.
9576
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9577
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError}
9578
+ */
9579
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.deserializeBinaryFromReader = function(msg, reader) {
9580
+ while (reader.nextField()) {
9581
+ if (reader.isEndGroup()) {
9582
+ break;
9583
+ }
9584
+ var field = reader.getFieldNumber();
9585
+ switch (field) {
9586
+ case 1:
9587
+ var value = /** @type {string} */ (reader.readString());
9588
+ msg.setCode(value);
9589
+ break;
9590
+ case 2:
9591
+ var value = /** @type {string} */ (reader.readString());
9592
+ msg.setMesssage(value);
9593
+ break;
9594
+ case 3:
9595
+ var value = /** @type {string} */ (reader.readString());
9596
+ msg.setTimestamp(value);
9597
+ break;
9598
+ case 4:
9599
+ var value = /** @type {string} */ (reader.readString());
9600
+ msg.setMessage(value);
9601
+ break;
9602
+ default:
9603
+ reader.skipField();
9604
+ break;
9605
+ }
9606
+ }
9607
+ return msg;
9608
+ };
9609
+
9610
+
9611
+ /**
9612
+ * Serializes the message to binary data (in protobuf wire format).
9613
+ * @return {!Uint8Array}
9614
+ */
9615
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.prototype.serializeBinary = function() {
9616
+ var writer = new jspb.BinaryWriter();
9617
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.serializeBinaryToWriter(this, writer);
9618
+ return writer.getResultBuffer();
9619
+ };
9620
+
9621
+
9622
+ /**
9623
+ * Serializes the given message to binary data (in protobuf wire
9624
+ * format), writing to the given BinaryWriter.
9625
+ * @param {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError} message
9626
+ * @param {!jspb.BinaryWriter} writer
9627
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9628
+ */
9629
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.serializeBinaryToWriter = function(message, writer) {
9630
+ var f = undefined;
9631
+ f = message.getCode();
9632
+ if (f.length > 0) {
9633
+ writer.writeString(
9634
+ 1,
9635
+ f
9636
+ );
9637
+ }
9638
+ f = message.getMesssage();
9639
+ if (f.length > 0) {
9640
+ writer.writeString(
9641
+ 2,
9642
+ f
9643
+ );
9644
+ }
9645
+ f = message.getTimestamp();
9646
+ if (f.length > 0) {
9647
+ writer.writeString(
9648
+ 3,
9649
+ f
9650
+ );
9651
+ }
9652
+ f = message.getMessage();
9653
+ if (f.length > 0) {
9654
+ writer.writeString(
9655
+ 4,
9656
+ f
9657
+ );
9658
+ }
9659
+ };
9660
+
9661
+
9662
+ /**
9663
+ * optional string code = 1;
9664
+ * @return {string}
9665
+ */
9666
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.prototype.getCode = function() {
9667
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9668
+ };
9669
+
9670
+
9671
+ /**
9672
+ * @param {string} value
9673
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError} returns this
9674
+ */
9675
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.prototype.setCode = function(value) {
9676
+ return jspb.Message.setProto3StringField(this, 1, value);
9677
+ };
9678
+
9679
+
9680
+ /**
9681
+ * optional string messsage = 2;
9682
+ * @return {string}
9683
+ */
9684
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.prototype.getMesssage = function() {
9685
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9686
+ };
9687
+
9688
+
9689
+ /**
9690
+ * @param {string} value
9691
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError} returns this
9692
+ */
9693
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.prototype.setMesssage = function(value) {
9694
+ return jspb.Message.setProto3StringField(this, 2, value);
9695
+ };
9696
+
9697
+
9698
+ /**
9699
+ * optional string timestamp = 3;
9700
+ * @return {string}
9701
+ */
9702
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.prototype.getTimestamp = function() {
9703
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9704
+ };
9705
+
9706
+
9707
+ /**
9708
+ * @param {string} value
9709
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError} returns this
9710
+ */
9711
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.prototype.setTimestamp = function(value) {
9712
+ return jspb.Message.setProto3StringField(this, 3, value);
9713
+ };
9714
+
9715
+
9716
+ /**
9717
+ * optional string message = 4;
9718
+ * @return {string}
9719
+ */
9720
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.prototype.getMessage = function() {
9721
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9722
+ };
9723
+
9724
+
9725
+ /**
9726
+ * @param {string} value
9727
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError} returns this
9728
+ */
9729
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError.prototype.setMessage = function(value) {
9730
+ return jspb.Message.setProto3StringField(this, 4, value);
9731
+ };
9732
+
9733
+
9734
+ /**
9735
+ * optional string application_name = 1;
9736
+ * @return {string}
9737
+ */
9738
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.getApplicationName = function() {
9739
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9740
+ };
9741
+
9742
+
9743
+ /**
9744
+ * @param {string} value
9745
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest} returns this
9746
+ */
9747
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.setApplicationName = function(value) {
9748
+ return jspb.Message.setProto3StringField(this, 1, value);
9749
+ };
9750
+
9751
+
9752
+ /**
9753
+ * optional string email = 2;
9754
+ * @return {string}
9755
+ */
9756
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.getEmail = function() {
9757
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9758
+ };
9759
+
9760
+
9761
+ /**
9762
+ * @param {string} value
9763
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest} returns this
9764
+ */
9765
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.setEmail = function(value) {
9766
+ return jspb.Message.setProto3StringField(this, 2, value);
9767
+ };
9768
+
9769
+
9770
+ /**
9771
+ * repeated WebhookError errors = 3;
9772
+ * @return {!Array<!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError>}
9773
+ */
9774
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.getErrorsList = function() {
9775
+ return /** @type{!Array<!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError>} */ (
9776
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError, 3));
9777
+ };
9778
+
9779
+
9780
+ /**
9781
+ * @param {!Array<!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError>} value
9782
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest} returns this
9783
+ */
9784
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.setErrorsList = function(value) {
9785
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
9786
+ };
9787
+
9788
+
9789
+ /**
9790
+ * @param {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError=} opt_value
9791
+ * @param {number=} opt_index
9792
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError}
9793
+ */
9794
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.addErrors = function(opt_value, opt_index) {
9795
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.WebhookError, opt_index);
9796
+ };
9797
+
9798
+
9799
+ /**
9800
+ * Clears the list making it empty but non-null.
9801
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest} returns this
9802
+ */
9803
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.clearErrorsList = function() {
9804
+ return this.setErrorsList([]);
9805
+ };
9806
+
9807
+
9808
+ /**
9809
+ * optional string payload_url = 4;
9810
+ * @return {string}
9811
+ */
9812
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.getPayloadUrl = function() {
9813
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9814
+ };
9815
+
9816
+
9817
+ /**
9818
+ * @param {string} value
9819
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest} returns this
9820
+ */
9821
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.setPayloadUrl = function(value) {
9822
+ return jspb.Message.setProto3StringField(this, 4, value);
9823
+ };
9824
+
9825
+
9826
+ /**
9827
+ * optional string webhook_name = 5;
9828
+ * @return {string}
9829
+ */
9830
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.getWebhookName = function() {
9831
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
9832
+ };
9833
+
9834
+
9835
+ /**
9836
+ * @param {string} value
9837
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest} returns this
9838
+ */
9839
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.setWebhookName = function(value) {
9840
+ return jspb.Message.setProto3StringField(this, 5, value);
9841
+ };
9842
+
9843
+
9844
+ /**
9845
+ * optional string webhook_url = 6;
9846
+ * @return {string}
9847
+ */
9848
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.getWebhookUrl = function() {
9849
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
9850
+ };
9851
+
9852
+
9853
+ /**
9854
+ * @param {string} value
9855
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest} returns this
9856
+ */
9857
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailRequest.prototype.setWebhookUrl = function(value) {
9858
+ return jspb.Message.setProto3StringField(this, 6, value);
9859
+ };
9860
+
9861
+
9862
+
9863
+
9864
+
9865
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9866
+ /**
9867
+ * Creates an object representation of this proto.
9868
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9869
+ * Optional fields that are not set will be set to undefined.
9870
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9871
+ * For the list of reserved names please see:
9872
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9873
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9874
+ * JSPB instance for transitional soy proto support:
9875
+ * http://goto/soy-param-migration
9876
+ * @return {!Object}
9877
+ */
9878
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.prototype.toObject = function(opt_includeInstance) {
9879
+ return proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.toObject(opt_includeInstance, this);
9880
+ };
9881
+
9882
+
9883
+ /**
9884
+ * Static version of the {@see toObject} method.
9885
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9886
+ * the JSPB instance for transitional soy proto support:
9887
+ * http://goto/soy-param-migration
9888
+ * @param {!proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse} msg The msg instance to transform.
9889
+ * @return {!Object}
9890
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9891
+ */
9892
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.toObject = function(includeInstance, msg) {
9893
+ var f, obj = {
9894
+ mailSent: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
9895
+ };
9896
+
9897
+ if (includeInstance) {
9898
+ obj.$jspbMessageInstance = msg;
9899
+ }
9900
+ return obj;
9901
+ };
9902
+ }
9903
+
9904
+
9905
+ /**
9906
+ * Deserializes binary data (in protobuf wire format).
9907
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9908
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse}
9909
+ */
9910
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.deserializeBinary = function(bytes) {
9911
+ var reader = new jspb.BinaryReader(bytes);
9912
+ var msg = new proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse;
9913
+ return proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.deserializeBinaryFromReader(msg, reader);
9914
+ };
9915
+
9916
+
9917
+ /**
9918
+ * Deserializes binary data (in protobuf wire format) from the
9919
+ * given reader into the given message object.
9920
+ * @param {!proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse} msg The message object to deserialize into.
9921
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9922
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse}
9923
+ */
9924
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.deserializeBinaryFromReader = function(msg, reader) {
9925
+ while (reader.nextField()) {
9926
+ if (reader.isEndGroup()) {
9927
+ break;
9928
+ }
9929
+ var field = reader.getFieldNumber();
9930
+ switch (field) {
9931
+ case 1:
9932
+ var value = /** @type {boolean} */ (reader.readBool());
9933
+ msg.setMailSent(value);
9934
+ break;
9935
+ default:
9936
+ reader.skipField();
9937
+ break;
9938
+ }
9939
+ }
9940
+ return msg;
9941
+ };
9942
+
9943
+
9944
+ /**
9945
+ * Serializes the message to binary data (in protobuf wire format).
9946
+ * @return {!Uint8Array}
9947
+ */
9948
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.prototype.serializeBinary = function() {
9949
+ var writer = new jspb.BinaryWriter();
9950
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.serializeBinaryToWriter(this, writer);
9951
+ return writer.getResultBuffer();
9952
+ };
9953
+
9954
+
9955
+ /**
9956
+ * Serializes the given message to binary data (in protobuf wire
9957
+ * format), writing to the given BinaryWriter.
9958
+ * @param {!proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse} message
9959
+ * @param {!jspb.BinaryWriter} writer
9960
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9961
+ */
9962
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.serializeBinaryToWriter = function(message, writer) {
9963
+ var f = undefined;
9964
+ f = message.getMailSent();
9965
+ if (f) {
9966
+ writer.writeBool(
9967
+ 1,
9968
+ f
9969
+ );
9970
+ }
9971
+ };
9972
+
9973
+
9974
+ /**
9975
+ * optional bool mail_sent = 1;
9976
+ * @return {boolean}
9977
+ */
9978
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.prototype.getMailSent = function() {
9979
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
9980
+ };
9981
+
9982
+
9983
+ /**
9984
+ * @param {boolean} value
9985
+ * @return {!proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse} returns this
9986
+ */
9987
+ proto.lansweeper.multitenant.v1.DisableWebhookEmailResponse.prototype.setMailSent = function(value) {
9988
+ return jspb.Message.setProto3BooleanField(this, 1, value);
9989
+ };
9990
+
9991
+
9266
9992
  /**
9267
9993
  * @enum {number}
9268
9994
  */