@headspace/protos-events 1.55.0 → 1.56.0

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.
Files changed (3) hide show
  1. package/lib/index.d.ts +683 -173
  2. package/lib/index.js +1522 -307
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -3602,25 +3602,25 @@ $root.UserRoleUpdated = (function() {
3602
3602
  return UserRoleUpdated;
3603
3603
  })();
3604
3604
 
3605
- $root.UserCreated = (function() {
3605
+ $root.UserDomainCreated = (function() {
3606
3606
 
3607
3607
  /**
3608
- * Properties of a UserCreated.
3609
- * @exports IUserCreated
3610
- * @interface IUserCreated
3611
- * @property {userdomain.IUser|null} [user] UserCreated user
3612
- * @property {number|Long|null} [createdAt] UserCreated createdAt
3608
+ * Properties of a UserDomainCreated.
3609
+ * @exports IUserDomainCreated
3610
+ * @interface IUserDomainCreated
3611
+ * @property {userdomain.IUser|null} [user] UserDomainCreated user
3612
+ * @property {number|Long|null} [createdAt] UserDomainCreated createdAt
3613
3613
  */
3614
3614
 
3615
3615
  /**
3616
- * Constructs a new UserCreated.
3617
- * @exports UserCreated
3618
- * @classdesc Represents a UserCreated.
3619
- * @implements IUserCreated
3616
+ * Constructs a new UserDomainCreated.
3617
+ * @exports UserDomainCreated
3618
+ * @classdesc Represents a UserDomainCreated.
3619
+ * @implements IUserDomainCreated
3620
3620
  * @constructor
3621
- * @param {IUserCreated=} [properties] Properties to set
3621
+ * @param {IUserDomainCreated=} [properties] Properties to set
3622
3622
  */
3623
- function UserCreated(properties) {
3623
+ function UserDomainCreated(properties) {
3624
3624
  if (properties)
3625
3625
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3626
3626
  if (properties[keys[i]] != null)
@@ -3628,43 +3628,43 @@ $root.UserCreated = (function() {
3628
3628
  }
3629
3629
 
3630
3630
  /**
3631
- * UserCreated user.
3631
+ * UserDomainCreated user.
3632
3632
  * @member {userdomain.IUser|null|undefined} user
3633
- * @memberof UserCreated
3633
+ * @memberof UserDomainCreated
3634
3634
  * @instance
3635
3635
  */
3636
- UserCreated.prototype.user = null;
3636
+ UserDomainCreated.prototype.user = null;
3637
3637
 
3638
3638
  /**
3639
- * UserCreated createdAt.
3639
+ * UserDomainCreated createdAt.
3640
3640
  * @member {number|Long} createdAt
3641
- * @memberof UserCreated
3641
+ * @memberof UserDomainCreated
3642
3642
  * @instance
3643
3643
  */
3644
- UserCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3644
+ UserDomainCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3645
3645
 
3646
3646
  /**
3647
- * Creates a new UserCreated instance using the specified properties.
3647
+ * Creates a new UserDomainCreated instance using the specified properties.
3648
3648
  * @function create
3649
- * @memberof UserCreated
3649
+ * @memberof UserDomainCreated
3650
3650
  * @static
3651
- * @param {IUserCreated=} [properties] Properties to set
3652
- * @returns {UserCreated} UserCreated instance
3651
+ * @param {IUserDomainCreated=} [properties] Properties to set
3652
+ * @returns {UserDomainCreated} UserDomainCreated instance
3653
3653
  */
3654
- UserCreated.create = function create(properties) {
3655
- return new UserCreated(properties);
3654
+ UserDomainCreated.create = function create(properties) {
3655
+ return new UserDomainCreated(properties);
3656
3656
  };
3657
3657
 
3658
3658
  /**
3659
- * Encodes the specified UserCreated message. Does not implicitly {@link UserCreated.verify|verify} messages.
3659
+ * Encodes the specified UserDomainCreated message. Does not implicitly {@link UserDomainCreated.verify|verify} messages.
3660
3660
  * @function encode
3661
- * @memberof UserCreated
3661
+ * @memberof UserDomainCreated
3662
3662
  * @static
3663
- * @param {IUserCreated} message UserCreated message or plain object to encode
3663
+ * @param {IUserDomainCreated} message UserDomainCreated message or plain object to encode
3664
3664
  * @param {$protobuf.Writer} [writer] Writer to encode to
3665
3665
  * @returns {$protobuf.Writer} Writer
3666
3666
  */
3667
- UserCreated.encode = function encode(message, writer) {
3667
+ UserDomainCreated.encode = function encode(message, writer) {
3668
3668
  if (!writer)
3669
3669
  writer = $Writer.create();
3670
3670
  if (message.user != null && message.hasOwnProperty("user"))
@@ -3675,33 +3675,33 @@ $root.UserCreated = (function() {
3675
3675
  };
3676
3676
 
3677
3677
  /**
3678
- * Encodes the specified UserCreated message, length delimited. Does not implicitly {@link UserCreated.verify|verify} messages.
3678
+ * Encodes the specified UserDomainCreated message, length delimited. Does not implicitly {@link UserDomainCreated.verify|verify} messages.
3679
3679
  * @function encodeDelimited
3680
- * @memberof UserCreated
3680
+ * @memberof UserDomainCreated
3681
3681
  * @static
3682
- * @param {IUserCreated} message UserCreated message or plain object to encode
3682
+ * @param {IUserDomainCreated} message UserDomainCreated message or plain object to encode
3683
3683
  * @param {$protobuf.Writer} [writer] Writer to encode to
3684
3684
  * @returns {$protobuf.Writer} Writer
3685
3685
  */
3686
- UserCreated.encodeDelimited = function encodeDelimited(message, writer) {
3686
+ UserDomainCreated.encodeDelimited = function encodeDelimited(message, writer) {
3687
3687
  return this.encode(message, writer).ldelim();
3688
3688
  };
3689
3689
 
3690
3690
  /**
3691
- * Decodes a UserCreated message from the specified reader or buffer.
3691
+ * Decodes a UserDomainCreated message from the specified reader or buffer.
3692
3692
  * @function decode
3693
- * @memberof UserCreated
3693
+ * @memberof UserDomainCreated
3694
3694
  * @static
3695
3695
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3696
3696
  * @param {number} [length] Message length if known beforehand
3697
- * @returns {UserCreated} UserCreated
3697
+ * @returns {UserDomainCreated} UserDomainCreated
3698
3698
  * @throws {Error} If the payload is not a reader or valid buffer
3699
3699
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
3700
3700
  */
3701
- UserCreated.decode = function decode(reader, length) {
3701
+ UserDomainCreated.decode = function decode(reader, length) {
3702
3702
  if (!(reader instanceof $Reader))
3703
3703
  reader = $Reader.create(reader);
3704
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserCreated();
3704
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainCreated();
3705
3705
  while (reader.pos < end) {
3706
3706
  var tag = reader.uint32();
3707
3707
  switch (tag >>> 3) {
@@ -3720,30 +3720,30 @@ $root.UserCreated = (function() {
3720
3720
  };
3721
3721
 
3722
3722
  /**
3723
- * Decodes a UserCreated message from the specified reader or buffer, length delimited.
3723
+ * Decodes a UserDomainCreated message from the specified reader or buffer, length delimited.
3724
3724
  * @function decodeDelimited
3725
- * @memberof UserCreated
3725
+ * @memberof UserDomainCreated
3726
3726
  * @static
3727
3727
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3728
- * @returns {UserCreated} UserCreated
3728
+ * @returns {UserDomainCreated} UserDomainCreated
3729
3729
  * @throws {Error} If the payload is not a reader or valid buffer
3730
3730
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
3731
3731
  */
3732
- UserCreated.decodeDelimited = function decodeDelimited(reader) {
3732
+ UserDomainCreated.decodeDelimited = function decodeDelimited(reader) {
3733
3733
  if (!(reader instanceof $Reader))
3734
3734
  reader = new $Reader(reader);
3735
3735
  return this.decode(reader, reader.uint32());
3736
3736
  };
3737
3737
 
3738
3738
  /**
3739
- * Verifies a UserCreated message.
3739
+ * Verifies a UserDomainCreated message.
3740
3740
  * @function verify
3741
- * @memberof UserCreated
3741
+ * @memberof UserDomainCreated
3742
3742
  * @static
3743
3743
  * @param {Object.<string,*>} message Plain object to verify
3744
3744
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
3745
3745
  */
3746
- UserCreated.verify = function verify(message) {
3746
+ UserDomainCreated.verify = function verify(message) {
3747
3747
  if (typeof message !== "object" || message === null)
3748
3748
  return "object expected";
3749
3749
  if (message.user != null && message.hasOwnProperty("user")) {
@@ -3758,20 +3758,20 @@ $root.UserCreated = (function() {
3758
3758
  };
3759
3759
 
3760
3760
  /**
3761
- * Creates a UserCreated message from a plain object. Also converts values to their respective internal types.
3761
+ * Creates a UserDomainCreated message from a plain object. Also converts values to their respective internal types.
3762
3762
  * @function fromObject
3763
- * @memberof UserCreated
3763
+ * @memberof UserDomainCreated
3764
3764
  * @static
3765
3765
  * @param {Object.<string,*>} object Plain object
3766
- * @returns {UserCreated} UserCreated
3766
+ * @returns {UserDomainCreated} UserDomainCreated
3767
3767
  */
3768
- UserCreated.fromObject = function fromObject(object) {
3769
- if (object instanceof $root.UserCreated)
3768
+ UserDomainCreated.fromObject = function fromObject(object) {
3769
+ if (object instanceof $root.UserDomainCreated)
3770
3770
  return object;
3771
- var message = new $root.UserCreated();
3771
+ var message = new $root.UserDomainCreated();
3772
3772
  if (object.user != null) {
3773
3773
  if (typeof object.user !== "object")
3774
- throw TypeError(".UserCreated.user: object expected");
3774
+ throw TypeError(".UserDomainCreated.user: object expected");
3775
3775
  message.user = $root.userdomain.User.fromObject(object.user);
3776
3776
  }
3777
3777
  if (object.createdAt != null)
@@ -3787,15 +3787,15 @@ $root.UserCreated = (function() {
3787
3787
  };
3788
3788
 
3789
3789
  /**
3790
- * Creates a plain object from a UserCreated message. Also converts values to other types if specified.
3790
+ * Creates a plain object from a UserDomainCreated message. Also converts values to other types if specified.
3791
3791
  * @function toObject
3792
- * @memberof UserCreated
3792
+ * @memberof UserDomainCreated
3793
3793
  * @static
3794
- * @param {UserCreated} message UserCreated
3794
+ * @param {UserDomainCreated} message UserDomainCreated
3795
3795
  * @param {$protobuf.IConversionOptions} [options] Conversion options
3796
3796
  * @returns {Object.<string,*>} Plain object
3797
3797
  */
3798
- UserCreated.toObject = function toObject(message, options) {
3798
+ UserDomainCreated.toObject = function toObject(message, options) {
3799
3799
  if (!options)
3800
3800
  options = {};
3801
3801
  var object = {};
@@ -3818,39 +3818,39 @@ $root.UserCreated = (function() {
3818
3818
  };
3819
3819
 
3820
3820
  /**
3821
- * Converts this UserCreated to JSON.
3821
+ * Converts this UserDomainCreated to JSON.
3822
3822
  * @function toJSON
3823
- * @memberof UserCreated
3823
+ * @memberof UserDomainCreated
3824
3824
  * @instance
3825
3825
  * @returns {Object.<string,*>} JSON object
3826
3826
  */
3827
- UserCreated.prototype.toJSON = function toJSON() {
3827
+ UserDomainCreated.prototype.toJSON = function toJSON() {
3828
3828
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
3829
3829
  };
3830
3830
 
3831
- return UserCreated;
3831
+ return UserDomainCreated;
3832
3832
  })();
3833
3833
 
3834
- $root.UserEmailUpdated = (function() {
3834
+ $root.UserDomainEmailUpdated = (function() {
3835
3835
 
3836
3836
  /**
3837
- * Properties of a UserEmailUpdated.
3838
- * @exports IUserEmailUpdated
3839
- * @interface IUserEmailUpdated
3840
- * @property {string|null} [hsId] UserEmailUpdated hsId
3841
- * @property {string|null} [email] UserEmailUpdated email
3842
- * @property {number|Long|null} [updatedAt] UserEmailUpdated updatedAt
3837
+ * Properties of a UserDomainEmailUpdated.
3838
+ * @exports IUserDomainEmailUpdated
3839
+ * @interface IUserDomainEmailUpdated
3840
+ * @property {string|null} [hsId] UserDomainEmailUpdated hsId
3841
+ * @property {string|null} [email] UserDomainEmailUpdated email
3842
+ * @property {number|Long|null} [updatedAt] UserDomainEmailUpdated updatedAt
3843
3843
  */
3844
3844
 
3845
3845
  /**
3846
- * Constructs a new UserEmailUpdated.
3847
- * @exports UserEmailUpdated
3848
- * @classdesc Represents a UserEmailUpdated.
3849
- * @implements IUserEmailUpdated
3846
+ * Constructs a new UserDomainEmailUpdated.
3847
+ * @exports UserDomainEmailUpdated
3848
+ * @classdesc Represents a UserDomainEmailUpdated.
3849
+ * @implements IUserDomainEmailUpdated
3850
3850
  * @constructor
3851
- * @param {IUserEmailUpdated=} [properties] Properties to set
3851
+ * @param {IUserDomainEmailUpdated=} [properties] Properties to set
3852
3852
  */
3853
- function UserEmailUpdated(properties) {
3853
+ function UserDomainEmailUpdated(properties) {
3854
3854
  if (properties)
3855
3855
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
3856
3856
  if (properties[keys[i]] != null)
@@ -3858,51 +3858,51 @@ $root.UserEmailUpdated = (function() {
3858
3858
  }
3859
3859
 
3860
3860
  /**
3861
- * UserEmailUpdated hsId.
3861
+ * UserDomainEmailUpdated hsId.
3862
3862
  * @member {string} hsId
3863
- * @memberof UserEmailUpdated
3863
+ * @memberof UserDomainEmailUpdated
3864
3864
  * @instance
3865
3865
  */
3866
- UserEmailUpdated.prototype.hsId = "";
3866
+ UserDomainEmailUpdated.prototype.hsId = "";
3867
3867
 
3868
3868
  /**
3869
- * UserEmailUpdated email.
3869
+ * UserDomainEmailUpdated email.
3870
3870
  * @member {string} email
3871
- * @memberof UserEmailUpdated
3871
+ * @memberof UserDomainEmailUpdated
3872
3872
  * @instance
3873
3873
  */
3874
- UserEmailUpdated.prototype.email = "";
3874
+ UserDomainEmailUpdated.prototype.email = "";
3875
3875
 
3876
3876
  /**
3877
- * UserEmailUpdated updatedAt.
3877
+ * UserDomainEmailUpdated updatedAt.
3878
3878
  * @member {number|Long} updatedAt
3879
- * @memberof UserEmailUpdated
3879
+ * @memberof UserDomainEmailUpdated
3880
3880
  * @instance
3881
3881
  */
3882
- UserEmailUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3882
+ UserDomainEmailUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3883
3883
 
3884
3884
  /**
3885
- * Creates a new UserEmailUpdated instance using the specified properties.
3885
+ * Creates a new UserDomainEmailUpdated instance using the specified properties.
3886
3886
  * @function create
3887
- * @memberof UserEmailUpdated
3887
+ * @memberof UserDomainEmailUpdated
3888
3888
  * @static
3889
- * @param {IUserEmailUpdated=} [properties] Properties to set
3890
- * @returns {UserEmailUpdated} UserEmailUpdated instance
3889
+ * @param {IUserDomainEmailUpdated=} [properties] Properties to set
3890
+ * @returns {UserDomainEmailUpdated} UserDomainEmailUpdated instance
3891
3891
  */
3892
- UserEmailUpdated.create = function create(properties) {
3893
- return new UserEmailUpdated(properties);
3892
+ UserDomainEmailUpdated.create = function create(properties) {
3893
+ return new UserDomainEmailUpdated(properties);
3894
3894
  };
3895
3895
 
3896
3896
  /**
3897
- * Encodes the specified UserEmailUpdated message. Does not implicitly {@link UserEmailUpdated.verify|verify} messages.
3897
+ * Encodes the specified UserDomainEmailUpdated message. Does not implicitly {@link UserDomainEmailUpdated.verify|verify} messages.
3898
3898
  * @function encode
3899
- * @memberof UserEmailUpdated
3899
+ * @memberof UserDomainEmailUpdated
3900
3900
  * @static
3901
- * @param {IUserEmailUpdated} message UserEmailUpdated message or plain object to encode
3901
+ * @param {IUserDomainEmailUpdated} message UserDomainEmailUpdated message or plain object to encode
3902
3902
  * @param {$protobuf.Writer} [writer] Writer to encode to
3903
3903
  * @returns {$protobuf.Writer} Writer
3904
3904
  */
3905
- UserEmailUpdated.encode = function encode(message, writer) {
3905
+ UserDomainEmailUpdated.encode = function encode(message, writer) {
3906
3906
  if (!writer)
3907
3907
  writer = $Writer.create();
3908
3908
  if (message.hsId != null && message.hasOwnProperty("hsId"))
@@ -3915,33 +3915,33 @@ $root.UserEmailUpdated = (function() {
3915
3915
  };
3916
3916
 
3917
3917
  /**
3918
- * Encodes the specified UserEmailUpdated message, length delimited. Does not implicitly {@link UserEmailUpdated.verify|verify} messages.
3918
+ * Encodes the specified UserDomainEmailUpdated message, length delimited. Does not implicitly {@link UserDomainEmailUpdated.verify|verify} messages.
3919
3919
  * @function encodeDelimited
3920
- * @memberof UserEmailUpdated
3920
+ * @memberof UserDomainEmailUpdated
3921
3921
  * @static
3922
- * @param {IUserEmailUpdated} message UserEmailUpdated message or plain object to encode
3922
+ * @param {IUserDomainEmailUpdated} message UserDomainEmailUpdated message or plain object to encode
3923
3923
  * @param {$protobuf.Writer} [writer] Writer to encode to
3924
3924
  * @returns {$protobuf.Writer} Writer
3925
3925
  */
3926
- UserEmailUpdated.encodeDelimited = function encodeDelimited(message, writer) {
3926
+ UserDomainEmailUpdated.encodeDelimited = function encodeDelimited(message, writer) {
3927
3927
  return this.encode(message, writer).ldelim();
3928
3928
  };
3929
3929
 
3930
3930
  /**
3931
- * Decodes a UserEmailUpdated message from the specified reader or buffer.
3931
+ * Decodes a UserDomainEmailUpdated message from the specified reader or buffer.
3932
3932
  * @function decode
3933
- * @memberof UserEmailUpdated
3933
+ * @memberof UserDomainEmailUpdated
3934
3934
  * @static
3935
3935
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3936
3936
  * @param {number} [length] Message length if known beforehand
3937
- * @returns {UserEmailUpdated} UserEmailUpdated
3937
+ * @returns {UserDomainEmailUpdated} UserDomainEmailUpdated
3938
3938
  * @throws {Error} If the payload is not a reader or valid buffer
3939
3939
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
3940
3940
  */
3941
- UserEmailUpdated.decode = function decode(reader, length) {
3941
+ UserDomainEmailUpdated.decode = function decode(reader, length) {
3942
3942
  if (!(reader instanceof $Reader))
3943
3943
  reader = $Reader.create(reader);
3944
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailUpdated();
3944
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainEmailUpdated();
3945
3945
  while (reader.pos < end) {
3946
3946
  var tag = reader.uint32();
3947
3947
  switch (tag >>> 3) {
@@ -3963,30 +3963,30 @@ $root.UserEmailUpdated = (function() {
3963
3963
  };
3964
3964
 
3965
3965
  /**
3966
- * Decodes a UserEmailUpdated message from the specified reader or buffer, length delimited.
3966
+ * Decodes a UserDomainEmailUpdated message from the specified reader or buffer, length delimited.
3967
3967
  * @function decodeDelimited
3968
- * @memberof UserEmailUpdated
3968
+ * @memberof UserDomainEmailUpdated
3969
3969
  * @static
3970
3970
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
3971
- * @returns {UserEmailUpdated} UserEmailUpdated
3971
+ * @returns {UserDomainEmailUpdated} UserDomainEmailUpdated
3972
3972
  * @throws {Error} If the payload is not a reader or valid buffer
3973
3973
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
3974
3974
  */
3975
- UserEmailUpdated.decodeDelimited = function decodeDelimited(reader) {
3975
+ UserDomainEmailUpdated.decodeDelimited = function decodeDelimited(reader) {
3976
3976
  if (!(reader instanceof $Reader))
3977
3977
  reader = new $Reader(reader);
3978
3978
  return this.decode(reader, reader.uint32());
3979
3979
  };
3980
3980
 
3981
3981
  /**
3982
- * Verifies a UserEmailUpdated message.
3982
+ * Verifies a UserDomainEmailUpdated message.
3983
3983
  * @function verify
3984
- * @memberof UserEmailUpdated
3984
+ * @memberof UserDomainEmailUpdated
3985
3985
  * @static
3986
3986
  * @param {Object.<string,*>} message Plain object to verify
3987
3987
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
3988
3988
  */
3989
- UserEmailUpdated.verify = function verify(message) {
3989
+ UserDomainEmailUpdated.verify = function verify(message) {
3990
3990
  if (typeof message !== "object" || message === null)
3991
3991
  return "object expected";
3992
3992
  if (message.hsId != null && message.hasOwnProperty("hsId"))
@@ -4002,17 +4002,17 @@ $root.UserEmailUpdated = (function() {
4002
4002
  };
4003
4003
 
4004
4004
  /**
4005
- * Creates a UserEmailUpdated message from a plain object. Also converts values to their respective internal types.
4005
+ * Creates a UserDomainEmailUpdated message from a plain object. Also converts values to their respective internal types.
4006
4006
  * @function fromObject
4007
- * @memberof UserEmailUpdated
4007
+ * @memberof UserDomainEmailUpdated
4008
4008
  * @static
4009
4009
  * @param {Object.<string,*>} object Plain object
4010
- * @returns {UserEmailUpdated} UserEmailUpdated
4010
+ * @returns {UserDomainEmailUpdated} UserDomainEmailUpdated
4011
4011
  */
4012
- UserEmailUpdated.fromObject = function fromObject(object) {
4013
- if (object instanceof $root.UserEmailUpdated)
4012
+ UserDomainEmailUpdated.fromObject = function fromObject(object) {
4013
+ if (object instanceof $root.UserDomainEmailUpdated)
4014
4014
  return object;
4015
- var message = new $root.UserEmailUpdated();
4015
+ var message = new $root.UserDomainEmailUpdated();
4016
4016
  if (object.hsId != null)
4017
4017
  message.hsId = String(object.hsId);
4018
4018
  if (object.email != null)
@@ -4030,15 +4030,15 @@ $root.UserEmailUpdated = (function() {
4030
4030
  };
4031
4031
 
4032
4032
  /**
4033
- * Creates a plain object from a UserEmailUpdated message. Also converts values to other types if specified.
4033
+ * Creates a plain object from a UserDomainEmailUpdated message. Also converts values to other types if specified.
4034
4034
  * @function toObject
4035
- * @memberof UserEmailUpdated
4035
+ * @memberof UserDomainEmailUpdated
4036
4036
  * @static
4037
- * @param {UserEmailUpdated} message UserEmailUpdated
4037
+ * @param {UserDomainEmailUpdated} message UserDomainEmailUpdated
4038
4038
  * @param {$protobuf.IConversionOptions} [options] Conversion options
4039
4039
  * @returns {Object.<string,*>} Plain object
4040
4040
  */
4041
- UserEmailUpdated.toObject = function toObject(message, options) {
4041
+ UserDomainEmailUpdated.toObject = function toObject(message, options) {
4042
4042
  if (!options)
4043
4043
  options = {};
4044
4044
  var object = {};
@@ -4064,40 +4064,40 @@ $root.UserEmailUpdated = (function() {
4064
4064
  };
4065
4065
 
4066
4066
  /**
4067
- * Converts this UserEmailUpdated to JSON.
4067
+ * Converts this UserDomainEmailUpdated to JSON.
4068
4068
  * @function toJSON
4069
- * @memberof UserEmailUpdated
4069
+ * @memberof UserDomainEmailUpdated
4070
4070
  * @instance
4071
4071
  * @returns {Object.<string,*>} JSON object
4072
4072
  */
4073
- UserEmailUpdated.prototype.toJSON = function toJSON() {
4073
+ UserDomainEmailUpdated.prototype.toJSON = function toJSON() {
4074
4074
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4075
4075
  };
4076
4076
 
4077
- return UserEmailUpdated;
4077
+ return UserDomainEmailUpdated;
4078
4078
  })();
4079
4079
 
4080
- $root.UserNameUpdated = (function() {
4080
+ $root.UserDomainNameUpdated = (function() {
4081
4081
 
4082
4082
  /**
4083
- * Properties of a UserNameUpdated.
4084
- * @exports IUserNameUpdated
4085
- * @interface IUserNameUpdated
4086
- * @property {string|null} [hsId] UserNameUpdated hsId
4087
- * @property {string|null} [firstName] UserNameUpdated firstName
4088
- * @property {string|null} [lastName] UserNameUpdated lastName
4089
- * @property {number|Long|null} [updatedAt] UserNameUpdated updatedAt
4083
+ * Properties of a UserDomainNameUpdated.
4084
+ * @exports IUserDomainNameUpdated
4085
+ * @interface IUserDomainNameUpdated
4086
+ * @property {string|null} [hsId] UserDomainNameUpdated hsId
4087
+ * @property {string|null} [firstName] UserDomainNameUpdated firstName
4088
+ * @property {string|null} [lastName] UserDomainNameUpdated lastName
4089
+ * @property {number|Long|null} [updatedAt] UserDomainNameUpdated updatedAt
4090
4090
  */
4091
4091
 
4092
4092
  /**
4093
- * Constructs a new UserNameUpdated.
4094
- * @exports UserNameUpdated
4095
- * @classdesc Represents a UserNameUpdated.
4096
- * @implements IUserNameUpdated
4093
+ * Constructs a new UserDomainNameUpdated.
4094
+ * @exports UserDomainNameUpdated
4095
+ * @classdesc Represents a UserDomainNameUpdated.
4096
+ * @implements IUserDomainNameUpdated
4097
4097
  * @constructor
4098
- * @param {IUserNameUpdated=} [properties] Properties to set
4098
+ * @param {IUserDomainNameUpdated=} [properties] Properties to set
4099
4099
  */
4100
- function UserNameUpdated(properties) {
4100
+ function UserDomainNameUpdated(properties) {
4101
4101
  if (properties)
4102
4102
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4103
4103
  if (properties[keys[i]] != null)
@@ -4105,59 +4105,59 @@ $root.UserNameUpdated = (function() {
4105
4105
  }
4106
4106
 
4107
4107
  /**
4108
- * UserNameUpdated hsId.
4108
+ * UserDomainNameUpdated hsId.
4109
4109
  * @member {string} hsId
4110
- * @memberof UserNameUpdated
4110
+ * @memberof UserDomainNameUpdated
4111
4111
  * @instance
4112
4112
  */
4113
- UserNameUpdated.prototype.hsId = "";
4113
+ UserDomainNameUpdated.prototype.hsId = "";
4114
4114
 
4115
4115
  /**
4116
- * UserNameUpdated firstName.
4116
+ * UserDomainNameUpdated firstName.
4117
4117
  * @member {string} firstName
4118
- * @memberof UserNameUpdated
4118
+ * @memberof UserDomainNameUpdated
4119
4119
  * @instance
4120
4120
  */
4121
- UserNameUpdated.prototype.firstName = "";
4121
+ UserDomainNameUpdated.prototype.firstName = "";
4122
4122
 
4123
4123
  /**
4124
- * UserNameUpdated lastName.
4124
+ * UserDomainNameUpdated lastName.
4125
4125
  * @member {string} lastName
4126
- * @memberof UserNameUpdated
4126
+ * @memberof UserDomainNameUpdated
4127
4127
  * @instance
4128
4128
  */
4129
- UserNameUpdated.prototype.lastName = "";
4129
+ UserDomainNameUpdated.prototype.lastName = "";
4130
4130
 
4131
4131
  /**
4132
- * UserNameUpdated updatedAt.
4132
+ * UserDomainNameUpdated updatedAt.
4133
4133
  * @member {number|Long} updatedAt
4134
- * @memberof UserNameUpdated
4134
+ * @memberof UserDomainNameUpdated
4135
4135
  * @instance
4136
4136
  */
4137
- UserNameUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4137
+ UserDomainNameUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4138
4138
 
4139
4139
  /**
4140
- * Creates a new UserNameUpdated instance using the specified properties.
4140
+ * Creates a new UserDomainNameUpdated instance using the specified properties.
4141
4141
  * @function create
4142
- * @memberof UserNameUpdated
4142
+ * @memberof UserDomainNameUpdated
4143
4143
  * @static
4144
- * @param {IUserNameUpdated=} [properties] Properties to set
4145
- * @returns {UserNameUpdated} UserNameUpdated instance
4144
+ * @param {IUserDomainNameUpdated=} [properties] Properties to set
4145
+ * @returns {UserDomainNameUpdated} UserDomainNameUpdated instance
4146
4146
  */
4147
- UserNameUpdated.create = function create(properties) {
4148
- return new UserNameUpdated(properties);
4147
+ UserDomainNameUpdated.create = function create(properties) {
4148
+ return new UserDomainNameUpdated(properties);
4149
4149
  };
4150
4150
 
4151
4151
  /**
4152
- * Encodes the specified UserNameUpdated message. Does not implicitly {@link UserNameUpdated.verify|verify} messages.
4152
+ * Encodes the specified UserDomainNameUpdated message. Does not implicitly {@link UserDomainNameUpdated.verify|verify} messages.
4153
4153
  * @function encode
4154
- * @memberof UserNameUpdated
4154
+ * @memberof UserDomainNameUpdated
4155
4155
  * @static
4156
- * @param {IUserNameUpdated} message UserNameUpdated message or plain object to encode
4156
+ * @param {IUserDomainNameUpdated} message UserDomainNameUpdated message or plain object to encode
4157
4157
  * @param {$protobuf.Writer} [writer] Writer to encode to
4158
4158
  * @returns {$protobuf.Writer} Writer
4159
4159
  */
4160
- UserNameUpdated.encode = function encode(message, writer) {
4160
+ UserDomainNameUpdated.encode = function encode(message, writer) {
4161
4161
  if (!writer)
4162
4162
  writer = $Writer.create();
4163
4163
  if (message.hsId != null && message.hasOwnProperty("hsId"))
@@ -4172,33 +4172,33 @@ $root.UserNameUpdated = (function() {
4172
4172
  };
4173
4173
 
4174
4174
  /**
4175
- * Encodes the specified UserNameUpdated message, length delimited. Does not implicitly {@link UserNameUpdated.verify|verify} messages.
4175
+ * Encodes the specified UserDomainNameUpdated message, length delimited. Does not implicitly {@link UserDomainNameUpdated.verify|verify} messages.
4176
4176
  * @function encodeDelimited
4177
- * @memberof UserNameUpdated
4177
+ * @memberof UserDomainNameUpdated
4178
4178
  * @static
4179
- * @param {IUserNameUpdated} message UserNameUpdated message or plain object to encode
4179
+ * @param {IUserDomainNameUpdated} message UserDomainNameUpdated message or plain object to encode
4180
4180
  * @param {$protobuf.Writer} [writer] Writer to encode to
4181
4181
  * @returns {$protobuf.Writer} Writer
4182
4182
  */
4183
- UserNameUpdated.encodeDelimited = function encodeDelimited(message, writer) {
4183
+ UserDomainNameUpdated.encodeDelimited = function encodeDelimited(message, writer) {
4184
4184
  return this.encode(message, writer).ldelim();
4185
4185
  };
4186
4186
 
4187
4187
  /**
4188
- * Decodes a UserNameUpdated message from the specified reader or buffer.
4188
+ * Decodes a UserDomainNameUpdated message from the specified reader or buffer.
4189
4189
  * @function decode
4190
- * @memberof UserNameUpdated
4190
+ * @memberof UserDomainNameUpdated
4191
4191
  * @static
4192
4192
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4193
4193
  * @param {number} [length] Message length if known beforehand
4194
- * @returns {UserNameUpdated} UserNameUpdated
4194
+ * @returns {UserDomainNameUpdated} UserDomainNameUpdated
4195
4195
  * @throws {Error} If the payload is not a reader or valid buffer
4196
4196
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4197
4197
  */
4198
- UserNameUpdated.decode = function decode(reader, length) {
4198
+ UserDomainNameUpdated.decode = function decode(reader, length) {
4199
4199
  if (!(reader instanceof $Reader))
4200
4200
  reader = $Reader.create(reader);
4201
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserNameUpdated();
4201
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainNameUpdated();
4202
4202
  while (reader.pos < end) {
4203
4203
  var tag = reader.uint32();
4204
4204
  switch (tag >>> 3) {
@@ -4223,30 +4223,30 @@ $root.UserNameUpdated = (function() {
4223
4223
  };
4224
4224
 
4225
4225
  /**
4226
- * Decodes a UserNameUpdated message from the specified reader or buffer, length delimited.
4226
+ * Decodes a UserDomainNameUpdated message from the specified reader or buffer, length delimited.
4227
4227
  * @function decodeDelimited
4228
- * @memberof UserNameUpdated
4228
+ * @memberof UserDomainNameUpdated
4229
4229
  * @static
4230
4230
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4231
- * @returns {UserNameUpdated} UserNameUpdated
4231
+ * @returns {UserDomainNameUpdated} UserDomainNameUpdated
4232
4232
  * @throws {Error} If the payload is not a reader or valid buffer
4233
4233
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4234
4234
  */
4235
- UserNameUpdated.decodeDelimited = function decodeDelimited(reader) {
4235
+ UserDomainNameUpdated.decodeDelimited = function decodeDelimited(reader) {
4236
4236
  if (!(reader instanceof $Reader))
4237
4237
  reader = new $Reader(reader);
4238
4238
  return this.decode(reader, reader.uint32());
4239
4239
  };
4240
4240
 
4241
4241
  /**
4242
- * Verifies a UserNameUpdated message.
4242
+ * Verifies a UserDomainNameUpdated message.
4243
4243
  * @function verify
4244
- * @memberof UserNameUpdated
4244
+ * @memberof UserDomainNameUpdated
4245
4245
  * @static
4246
4246
  * @param {Object.<string,*>} message Plain object to verify
4247
4247
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
4248
4248
  */
4249
- UserNameUpdated.verify = function verify(message) {
4249
+ UserDomainNameUpdated.verify = function verify(message) {
4250
4250
  if (typeof message !== "object" || message === null)
4251
4251
  return "object expected";
4252
4252
  if (message.hsId != null && message.hasOwnProperty("hsId"))
@@ -4265,17 +4265,17 @@ $root.UserNameUpdated = (function() {
4265
4265
  };
4266
4266
 
4267
4267
  /**
4268
- * Creates a UserNameUpdated message from a plain object. Also converts values to their respective internal types.
4268
+ * Creates a UserDomainNameUpdated message from a plain object. Also converts values to their respective internal types.
4269
4269
  * @function fromObject
4270
- * @memberof UserNameUpdated
4270
+ * @memberof UserDomainNameUpdated
4271
4271
  * @static
4272
4272
  * @param {Object.<string,*>} object Plain object
4273
- * @returns {UserNameUpdated} UserNameUpdated
4273
+ * @returns {UserDomainNameUpdated} UserDomainNameUpdated
4274
4274
  */
4275
- UserNameUpdated.fromObject = function fromObject(object) {
4276
- if (object instanceof $root.UserNameUpdated)
4275
+ UserDomainNameUpdated.fromObject = function fromObject(object) {
4276
+ if (object instanceof $root.UserDomainNameUpdated)
4277
4277
  return object;
4278
- var message = new $root.UserNameUpdated();
4278
+ var message = new $root.UserDomainNameUpdated();
4279
4279
  if (object.hsId != null)
4280
4280
  message.hsId = String(object.hsId);
4281
4281
  if (object.firstName != null)
@@ -4295,15 +4295,15 @@ $root.UserNameUpdated = (function() {
4295
4295
  };
4296
4296
 
4297
4297
  /**
4298
- * Creates a plain object from a UserNameUpdated message. Also converts values to other types if specified.
4298
+ * Creates a plain object from a UserDomainNameUpdated message. Also converts values to other types if specified.
4299
4299
  * @function toObject
4300
- * @memberof UserNameUpdated
4300
+ * @memberof UserDomainNameUpdated
4301
4301
  * @static
4302
- * @param {UserNameUpdated} message UserNameUpdated
4302
+ * @param {UserDomainNameUpdated} message UserDomainNameUpdated
4303
4303
  * @param {$protobuf.IConversionOptions} [options] Conversion options
4304
4304
  * @returns {Object.<string,*>} Plain object
4305
4305
  */
4306
- UserNameUpdated.toObject = function toObject(message, options) {
4306
+ UserDomainNameUpdated.toObject = function toObject(message, options) {
4307
4307
  if (!options)
4308
4308
  options = {};
4309
4309
  var object = {};
@@ -4332,39 +4332,39 @@ $root.UserNameUpdated = (function() {
4332
4332
  };
4333
4333
 
4334
4334
  /**
4335
- * Converts this UserNameUpdated to JSON.
4335
+ * Converts this UserDomainNameUpdated to JSON.
4336
4336
  * @function toJSON
4337
- * @memberof UserNameUpdated
4337
+ * @memberof UserDomainNameUpdated
4338
4338
  * @instance
4339
4339
  * @returns {Object.<string,*>} JSON object
4340
4340
  */
4341
- UserNameUpdated.prototype.toJSON = function toJSON() {
4341
+ UserDomainNameUpdated.prototype.toJSON = function toJSON() {
4342
4342
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4343
4343
  };
4344
4344
 
4345
- return UserNameUpdated;
4345
+ return UserDomainNameUpdated;
4346
4346
  })();
4347
4347
 
4348
- $root.UserCountryUpdated = (function() {
4348
+ $root.UserDomainCountryUpdated = (function() {
4349
4349
 
4350
4350
  /**
4351
- * Properties of a UserCountryUpdated.
4352
- * @exports IUserCountryUpdated
4353
- * @interface IUserCountryUpdated
4354
- * @property {string|null} [hsId] UserCountryUpdated hsId
4355
- * @property {string|null} [countryCode] UserCountryUpdated countryCode
4356
- * @property {number|Long|null} [updatedAt] UserCountryUpdated updatedAt
4351
+ * Properties of a UserDomainCountryUpdated.
4352
+ * @exports IUserDomainCountryUpdated
4353
+ * @interface IUserDomainCountryUpdated
4354
+ * @property {string|null} [hsId] UserDomainCountryUpdated hsId
4355
+ * @property {string|null} [countryCode] UserDomainCountryUpdated countryCode
4356
+ * @property {number|Long|null} [updatedAt] UserDomainCountryUpdated updatedAt
4357
4357
  */
4358
4358
 
4359
4359
  /**
4360
- * Constructs a new UserCountryUpdated.
4361
- * @exports UserCountryUpdated
4362
- * @classdesc Represents a UserCountryUpdated.
4363
- * @implements IUserCountryUpdated
4360
+ * Constructs a new UserDomainCountryUpdated.
4361
+ * @exports UserDomainCountryUpdated
4362
+ * @classdesc Represents a UserDomainCountryUpdated.
4363
+ * @implements IUserDomainCountryUpdated
4364
4364
  * @constructor
4365
- * @param {IUserCountryUpdated=} [properties] Properties to set
4365
+ * @param {IUserDomainCountryUpdated=} [properties] Properties to set
4366
4366
  */
4367
- function UserCountryUpdated(properties) {
4367
+ function UserDomainCountryUpdated(properties) {
4368
4368
  if (properties)
4369
4369
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4370
4370
  if (properties[keys[i]] != null)
@@ -4372,51 +4372,51 @@ $root.UserCountryUpdated = (function() {
4372
4372
  }
4373
4373
 
4374
4374
  /**
4375
- * UserCountryUpdated hsId.
4375
+ * UserDomainCountryUpdated hsId.
4376
4376
  * @member {string} hsId
4377
- * @memberof UserCountryUpdated
4377
+ * @memberof UserDomainCountryUpdated
4378
4378
  * @instance
4379
4379
  */
4380
- UserCountryUpdated.prototype.hsId = "";
4380
+ UserDomainCountryUpdated.prototype.hsId = "";
4381
4381
 
4382
4382
  /**
4383
- * UserCountryUpdated countryCode.
4383
+ * UserDomainCountryUpdated countryCode.
4384
4384
  * @member {string} countryCode
4385
- * @memberof UserCountryUpdated
4385
+ * @memberof UserDomainCountryUpdated
4386
4386
  * @instance
4387
4387
  */
4388
- UserCountryUpdated.prototype.countryCode = "";
4388
+ UserDomainCountryUpdated.prototype.countryCode = "";
4389
4389
 
4390
4390
  /**
4391
- * UserCountryUpdated updatedAt.
4391
+ * UserDomainCountryUpdated updatedAt.
4392
4392
  * @member {number|Long} updatedAt
4393
- * @memberof UserCountryUpdated
4393
+ * @memberof UserDomainCountryUpdated
4394
4394
  * @instance
4395
4395
  */
4396
- UserCountryUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4396
+ UserDomainCountryUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4397
4397
 
4398
4398
  /**
4399
- * Creates a new UserCountryUpdated instance using the specified properties.
4399
+ * Creates a new UserDomainCountryUpdated instance using the specified properties.
4400
4400
  * @function create
4401
- * @memberof UserCountryUpdated
4401
+ * @memberof UserDomainCountryUpdated
4402
4402
  * @static
4403
- * @param {IUserCountryUpdated=} [properties] Properties to set
4404
- * @returns {UserCountryUpdated} UserCountryUpdated instance
4403
+ * @param {IUserDomainCountryUpdated=} [properties] Properties to set
4404
+ * @returns {UserDomainCountryUpdated} UserDomainCountryUpdated instance
4405
4405
  */
4406
- UserCountryUpdated.create = function create(properties) {
4407
- return new UserCountryUpdated(properties);
4406
+ UserDomainCountryUpdated.create = function create(properties) {
4407
+ return new UserDomainCountryUpdated(properties);
4408
4408
  };
4409
4409
 
4410
4410
  /**
4411
- * Encodes the specified UserCountryUpdated message. Does not implicitly {@link UserCountryUpdated.verify|verify} messages.
4411
+ * Encodes the specified UserDomainCountryUpdated message. Does not implicitly {@link UserDomainCountryUpdated.verify|verify} messages.
4412
4412
  * @function encode
4413
- * @memberof UserCountryUpdated
4413
+ * @memberof UserDomainCountryUpdated
4414
4414
  * @static
4415
- * @param {IUserCountryUpdated} message UserCountryUpdated message or plain object to encode
4415
+ * @param {IUserDomainCountryUpdated} message UserDomainCountryUpdated message or plain object to encode
4416
4416
  * @param {$protobuf.Writer} [writer] Writer to encode to
4417
4417
  * @returns {$protobuf.Writer} Writer
4418
4418
  */
4419
- UserCountryUpdated.encode = function encode(message, writer) {
4419
+ UserDomainCountryUpdated.encode = function encode(message, writer) {
4420
4420
  if (!writer)
4421
4421
  writer = $Writer.create();
4422
4422
  if (message.hsId != null && message.hasOwnProperty("hsId"))
@@ -4429,33 +4429,33 @@ $root.UserCountryUpdated = (function() {
4429
4429
  };
4430
4430
 
4431
4431
  /**
4432
- * Encodes the specified UserCountryUpdated message, length delimited. Does not implicitly {@link UserCountryUpdated.verify|verify} messages.
4432
+ * Encodes the specified UserDomainCountryUpdated message, length delimited. Does not implicitly {@link UserDomainCountryUpdated.verify|verify} messages.
4433
4433
  * @function encodeDelimited
4434
- * @memberof UserCountryUpdated
4434
+ * @memberof UserDomainCountryUpdated
4435
4435
  * @static
4436
- * @param {IUserCountryUpdated} message UserCountryUpdated message or plain object to encode
4436
+ * @param {IUserDomainCountryUpdated} message UserDomainCountryUpdated message or plain object to encode
4437
4437
  * @param {$protobuf.Writer} [writer] Writer to encode to
4438
4438
  * @returns {$protobuf.Writer} Writer
4439
4439
  */
4440
- UserCountryUpdated.encodeDelimited = function encodeDelimited(message, writer) {
4440
+ UserDomainCountryUpdated.encodeDelimited = function encodeDelimited(message, writer) {
4441
4441
  return this.encode(message, writer).ldelim();
4442
4442
  };
4443
4443
 
4444
4444
  /**
4445
- * Decodes a UserCountryUpdated message from the specified reader or buffer.
4445
+ * Decodes a UserDomainCountryUpdated message from the specified reader or buffer.
4446
4446
  * @function decode
4447
- * @memberof UserCountryUpdated
4447
+ * @memberof UserDomainCountryUpdated
4448
4448
  * @static
4449
4449
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4450
4450
  * @param {number} [length] Message length if known beforehand
4451
- * @returns {UserCountryUpdated} UserCountryUpdated
4451
+ * @returns {UserDomainCountryUpdated} UserDomainCountryUpdated
4452
4452
  * @throws {Error} If the payload is not a reader or valid buffer
4453
4453
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4454
4454
  */
4455
- UserCountryUpdated.decode = function decode(reader, length) {
4455
+ UserDomainCountryUpdated.decode = function decode(reader, length) {
4456
4456
  if (!(reader instanceof $Reader))
4457
4457
  reader = $Reader.create(reader);
4458
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserCountryUpdated();
4458
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainCountryUpdated();
4459
4459
  while (reader.pos < end) {
4460
4460
  var tag = reader.uint32();
4461
4461
  switch (tag >>> 3) {
@@ -4477,30 +4477,30 @@ $root.UserCountryUpdated = (function() {
4477
4477
  };
4478
4478
 
4479
4479
  /**
4480
- * Decodes a UserCountryUpdated message from the specified reader or buffer, length delimited.
4480
+ * Decodes a UserDomainCountryUpdated message from the specified reader or buffer, length delimited.
4481
4481
  * @function decodeDelimited
4482
- * @memberof UserCountryUpdated
4482
+ * @memberof UserDomainCountryUpdated
4483
4483
  * @static
4484
4484
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4485
- * @returns {UserCountryUpdated} UserCountryUpdated
4485
+ * @returns {UserDomainCountryUpdated} UserDomainCountryUpdated
4486
4486
  * @throws {Error} If the payload is not a reader or valid buffer
4487
4487
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4488
4488
  */
4489
- UserCountryUpdated.decodeDelimited = function decodeDelimited(reader) {
4489
+ UserDomainCountryUpdated.decodeDelimited = function decodeDelimited(reader) {
4490
4490
  if (!(reader instanceof $Reader))
4491
4491
  reader = new $Reader(reader);
4492
4492
  return this.decode(reader, reader.uint32());
4493
4493
  };
4494
4494
 
4495
4495
  /**
4496
- * Verifies a UserCountryUpdated message.
4496
+ * Verifies a UserDomainCountryUpdated message.
4497
4497
  * @function verify
4498
- * @memberof UserCountryUpdated
4498
+ * @memberof UserDomainCountryUpdated
4499
4499
  * @static
4500
4500
  * @param {Object.<string,*>} message Plain object to verify
4501
4501
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
4502
4502
  */
4503
- UserCountryUpdated.verify = function verify(message) {
4503
+ UserDomainCountryUpdated.verify = function verify(message) {
4504
4504
  if (typeof message !== "object" || message === null)
4505
4505
  return "object expected";
4506
4506
  if (message.hsId != null && message.hasOwnProperty("hsId"))
@@ -4516,17 +4516,17 @@ $root.UserCountryUpdated = (function() {
4516
4516
  };
4517
4517
 
4518
4518
  /**
4519
- * Creates a UserCountryUpdated message from a plain object. Also converts values to their respective internal types.
4519
+ * Creates a UserDomainCountryUpdated message from a plain object. Also converts values to their respective internal types.
4520
4520
  * @function fromObject
4521
- * @memberof UserCountryUpdated
4521
+ * @memberof UserDomainCountryUpdated
4522
4522
  * @static
4523
4523
  * @param {Object.<string,*>} object Plain object
4524
- * @returns {UserCountryUpdated} UserCountryUpdated
4524
+ * @returns {UserDomainCountryUpdated} UserDomainCountryUpdated
4525
4525
  */
4526
- UserCountryUpdated.fromObject = function fromObject(object) {
4527
- if (object instanceof $root.UserCountryUpdated)
4526
+ UserDomainCountryUpdated.fromObject = function fromObject(object) {
4527
+ if (object instanceof $root.UserDomainCountryUpdated)
4528
4528
  return object;
4529
- var message = new $root.UserCountryUpdated();
4529
+ var message = new $root.UserDomainCountryUpdated();
4530
4530
  if (object.hsId != null)
4531
4531
  message.hsId = String(object.hsId);
4532
4532
  if (object.countryCode != null)
@@ -4544,15 +4544,15 @@ $root.UserCountryUpdated = (function() {
4544
4544
  };
4545
4545
 
4546
4546
  /**
4547
- * Creates a plain object from a UserCountryUpdated message. Also converts values to other types if specified.
4547
+ * Creates a plain object from a UserDomainCountryUpdated message. Also converts values to other types if specified.
4548
4548
  * @function toObject
4549
- * @memberof UserCountryUpdated
4549
+ * @memberof UserDomainCountryUpdated
4550
4550
  * @static
4551
- * @param {UserCountryUpdated} message UserCountryUpdated
4551
+ * @param {UserDomainCountryUpdated} message UserDomainCountryUpdated
4552
4552
  * @param {$protobuf.IConversionOptions} [options] Conversion options
4553
4553
  * @returns {Object.<string,*>} Plain object
4554
4554
  */
4555
- UserCountryUpdated.toObject = function toObject(message, options) {
4555
+ UserDomainCountryUpdated.toObject = function toObject(message, options) {
4556
4556
  if (!options)
4557
4557
  options = {};
4558
4558
  var object = {};
@@ -4578,38 +4578,38 @@ $root.UserCountryUpdated = (function() {
4578
4578
  };
4579
4579
 
4580
4580
  /**
4581
- * Converts this UserCountryUpdated to JSON.
4581
+ * Converts this UserDomainCountryUpdated to JSON.
4582
4582
  * @function toJSON
4583
- * @memberof UserCountryUpdated
4583
+ * @memberof UserDomainCountryUpdated
4584
4584
  * @instance
4585
4585
  * @returns {Object.<string,*>} JSON object
4586
4586
  */
4587
- UserCountryUpdated.prototype.toJSON = function toJSON() {
4587
+ UserDomainCountryUpdated.prototype.toJSON = function toJSON() {
4588
4588
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4589
4589
  };
4590
4590
 
4591
- return UserCountryUpdated;
4591
+ return UserDomainCountryUpdated;
4592
4592
  })();
4593
4593
 
4594
- $root.UserDeleted = (function() {
4594
+ $root.UserDomainDeleted = (function() {
4595
4595
 
4596
4596
  /**
4597
- * Properties of a UserDeleted.
4598
- * @exports IUserDeleted
4599
- * @interface IUserDeleted
4600
- * @property {string|null} [hsId] UserDeleted hsId
4601
- * @property {number|Long|null} [deletedAt] UserDeleted deletedAt
4597
+ * Properties of a UserDomainDeleted.
4598
+ * @exports IUserDomainDeleted
4599
+ * @interface IUserDomainDeleted
4600
+ * @property {string|null} [hsId] UserDomainDeleted hsId
4601
+ * @property {number|Long|null} [deletedAt] UserDomainDeleted deletedAt
4602
4602
  */
4603
4603
 
4604
4604
  /**
4605
- * Constructs a new UserDeleted.
4606
- * @exports UserDeleted
4607
- * @classdesc Represents a UserDeleted.
4608
- * @implements IUserDeleted
4605
+ * Constructs a new UserDomainDeleted.
4606
+ * @exports UserDomainDeleted
4607
+ * @classdesc Represents a UserDomainDeleted.
4608
+ * @implements IUserDomainDeleted
4609
4609
  * @constructor
4610
- * @param {IUserDeleted=} [properties] Properties to set
4610
+ * @param {IUserDomainDeleted=} [properties] Properties to set
4611
4611
  */
4612
- function UserDeleted(properties) {
4612
+ function UserDomainDeleted(properties) {
4613
4613
  if (properties)
4614
4614
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4615
4615
  if (properties[keys[i]] != null)
@@ -4617,43 +4617,43 @@ $root.UserDeleted = (function() {
4617
4617
  }
4618
4618
 
4619
4619
  /**
4620
- * UserDeleted hsId.
4620
+ * UserDomainDeleted hsId.
4621
4621
  * @member {string} hsId
4622
- * @memberof UserDeleted
4622
+ * @memberof UserDomainDeleted
4623
4623
  * @instance
4624
4624
  */
4625
- UserDeleted.prototype.hsId = "";
4625
+ UserDomainDeleted.prototype.hsId = "";
4626
4626
 
4627
4627
  /**
4628
- * UserDeleted deletedAt.
4628
+ * UserDomainDeleted deletedAt.
4629
4629
  * @member {number|Long} deletedAt
4630
- * @memberof UserDeleted
4630
+ * @memberof UserDomainDeleted
4631
4631
  * @instance
4632
4632
  */
4633
- UserDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4633
+ UserDomainDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4634
4634
 
4635
4635
  /**
4636
- * Creates a new UserDeleted instance using the specified properties.
4636
+ * Creates a new UserDomainDeleted instance using the specified properties.
4637
4637
  * @function create
4638
- * @memberof UserDeleted
4638
+ * @memberof UserDomainDeleted
4639
4639
  * @static
4640
- * @param {IUserDeleted=} [properties] Properties to set
4641
- * @returns {UserDeleted} UserDeleted instance
4640
+ * @param {IUserDomainDeleted=} [properties] Properties to set
4641
+ * @returns {UserDomainDeleted} UserDomainDeleted instance
4642
4642
  */
4643
- UserDeleted.create = function create(properties) {
4644
- return new UserDeleted(properties);
4643
+ UserDomainDeleted.create = function create(properties) {
4644
+ return new UserDomainDeleted(properties);
4645
4645
  };
4646
4646
 
4647
4647
  /**
4648
- * Encodes the specified UserDeleted message. Does not implicitly {@link UserDeleted.verify|verify} messages.
4648
+ * Encodes the specified UserDomainDeleted message. Does not implicitly {@link UserDomainDeleted.verify|verify} messages.
4649
4649
  * @function encode
4650
- * @memberof UserDeleted
4650
+ * @memberof UserDomainDeleted
4651
4651
  * @static
4652
- * @param {IUserDeleted} message UserDeleted message or plain object to encode
4652
+ * @param {IUserDomainDeleted} message UserDomainDeleted message or plain object to encode
4653
4653
  * @param {$protobuf.Writer} [writer] Writer to encode to
4654
4654
  * @returns {$protobuf.Writer} Writer
4655
4655
  */
4656
- UserDeleted.encode = function encode(message, writer) {
4656
+ UserDomainDeleted.encode = function encode(message, writer) {
4657
4657
  if (!writer)
4658
4658
  writer = $Writer.create();
4659
4659
  if (message.hsId != null && message.hasOwnProperty("hsId"))
@@ -4664,33 +4664,33 @@ $root.UserDeleted = (function() {
4664
4664
  };
4665
4665
 
4666
4666
  /**
4667
- * Encodes the specified UserDeleted message, length delimited. Does not implicitly {@link UserDeleted.verify|verify} messages.
4667
+ * Encodes the specified UserDomainDeleted message, length delimited. Does not implicitly {@link UserDomainDeleted.verify|verify} messages.
4668
4668
  * @function encodeDelimited
4669
- * @memberof UserDeleted
4669
+ * @memberof UserDomainDeleted
4670
4670
  * @static
4671
- * @param {IUserDeleted} message UserDeleted message or plain object to encode
4671
+ * @param {IUserDomainDeleted} message UserDomainDeleted message or plain object to encode
4672
4672
  * @param {$protobuf.Writer} [writer] Writer to encode to
4673
4673
  * @returns {$protobuf.Writer} Writer
4674
4674
  */
4675
- UserDeleted.encodeDelimited = function encodeDelimited(message, writer) {
4675
+ UserDomainDeleted.encodeDelimited = function encodeDelimited(message, writer) {
4676
4676
  return this.encode(message, writer).ldelim();
4677
4677
  };
4678
4678
 
4679
4679
  /**
4680
- * Decodes a UserDeleted message from the specified reader or buffer.
4680
+ * Decodes a UserDomainDeleted message from the specified reader or buffer.
4681
4681
  * @function decode
4682
- * @memberof UserDeleted
4682
+ * @memberof UserDomainDeleted
4683
4683
  * @static
4684
4684
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4685
4685
  * @param {number} [length] Message length if known beforehand
4686
- * @returns {UserDeleted} UserDeleted
4686
+ * @returns {UserDomainDeleted} UserDomainDeleted
4687
4687
  * @throws {Error} If the payload is not a reader or valid buffer
4688
4688
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4689
4689
  */
4690
- UserDeleted.decode = function decode(reader, length) {
4690
+ UserDomainDeleted.decode = function decode(reader, length) {
4691
4691
  if (!(reader instanceof $Reader))
4692
4692
  reader = $Reader.create(reader);
4693
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDeleted();
4693
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainDeleted();
4694
4694
  while (reader.pos < end) {
4695
4695
  var tag = reader.uint32();
4696
4696
  switch (tag >>> 3) {
@@ -4709,30 +4709,30 @@ $root.UserDeleted = (function() {
4709
4709
  };
4710
4710
 
4711
4711
  /**
4712
- * Decodes a UserDeleted message from the specified reader or buffer, length delimited.
4712
+ * Decodes a UserDomainDeleted message from the specified reader or buffer, length delimited.
4713
4713
  * @function decodeDelimited
4714
- * @memberof UserDeleted
4714
+ * @memberof UserDomainDeleted
4715
4715
  * @static
4716
4716
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4717
- * @returns {UserDeleted} UserDeleted
4717
+ * @returns {UserDomainDeleted} UserDomainDeleted
4718
4718
  * @throws {Error} If the payload is not a reader or valid buffer
4719
4719
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
4720
4720
  */
4721
- UserDeleted.decodeDelimited = function decodeDelimited(reader) {
4721
+ UserDomainDeleted.decodeDelimited = function decodeDelimited(reader) {
4722
4722
  if (!(reader instanceof $Reader))
4723
4723
  reader = new $Reader(reader);
4724
4724
  return this.decode(reader, reader.uint32());
4725
4725
  };
4726
4726
 
4727
4727
  /**
4728
- * Verifies a UserDeleted message.
4728
+ * Verifies a UserDomainDeleted message.
4729
4729
  * @function verify
4730
- * @memberof UserDeleted
4730
+ * @memberof UserDomainDeleted
4731
4731
  * @static
4732
4732
  * @param {Object.<string,*>} message Plain object to verify
4733
4733
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
4734
4734
  */
4735
- UserDeleted.verify = function verify(message) {
4735
+ UserDomainDeleted.verify = function verify(message) {
4736
4736
  if (typeof message !== "object" || message === null)
4737
4737
  return "object expected";
4738
4738
  if (message.hsId != null && message.hasOwnProperty("hsId"))
@@ -4745,17 +4745,17 @@ $root.UserDeleted = (function() {
4745
4745
  };
4746
4746
 
4747
4747
  /**
4748
- * Creates a UserDeleted message from a plain object. Also converts values to their respective internal types.
4748
+ * Creates a UserDomainDeleted message from a plain object. Also converts values to their respective internal types.
4749
4749
  * @function fromObject
4750
- * @memberof UserDeleted
4750
+ * @memberof UserDomainDeleted
4751
4751
  * @static
4752
4752
  * @param {Object.<string,*>} object Plain object
4753
- * @returns {UserDeleted} UserDeleted
4753
+ * @returns {UserDomainDeleted} UserDomainDeleted
4754
4754
  */
4755
- UserDeleted.fromObject = function fromObject(object) {
4756
- if (object instanceof $root.UserDeleted)
4755
+ UserDomainDeleted.fromObject = function fromObject(object) {
4756
+ if (object instanceof $root.UserDomainDeleted)
4757
4757
  return object;
4758
- var message = new $root.UserDeleted();
4758
+ var message = new $root.UserDomainDeleted();
4759
4759
  if (object.hsId != null)
4760
4760
  message.hsId = String(object.hsId);
4761
4761
  if (object.deletedAt != null)
@@ -4771,15 +4771,15 @@ $root.UserDeleted = (function() {
4771
4771
  };
4772
4772
 
4773
4773
  /**
4774
- * Creates a plain object from a UserDeleted message. Also converts values to other types if specified.
4774
+ * Creates a plain object from a UserDomainDeleted message. Also converts values to other types if specified.
4775
4775
  * @function toObject
4776
- * @memberof UserDeleted
4776
+ * @memberof UserDomainDeleted
4777
4777
  * @static
4778
- * @param {UserDeleted} message UserDeleted
4778
+ * @param {UserDomainDeleted} message UserDomainDeleted
4779
4779
  * @param {$protobuf.IConversionOptions} [options] Conversion options
4780
4780
  * @returns {Object.<string,*>} Plain object
4781
4781
  */
4782
- UserDeleted.toObject = function toObject(message, options) {
4782
+ UserDomainDeleted.toObject = function toObject(message, options) {
4783
4783
  if (!options)
4784
4784
  options = {};
4785
4785
  var object = {};
@@ -4802,17 +4802,17 @@ $root.UserDeleted = (function() {
4802
4802
  };
4803
4803
 
4804
4804
  /**
4805
- * Converts this UserDeleted to JSON.
4805
+ * Converts this UserDomainDeleted to JSON.
4806
4806
  * @function toJSON
4807
- * @memberof UserDeleted
4807
+ * @memberof UserDomainDeleted
4808
4808
  * @instance
4809
4809
  * @returns {Object.<string,*>} JSON object
4810
4810
  */
4811
- UserDeleted.prototype.toJSON = function toJSON() {
4811
+ UserDomainDeleted.prototype.toJSON = function toJSON() {
4812
4812
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4813
4813
  };
4814
4814
 
4815
- return UserDeleted;
4815
+ return UserDomainDeleted;
4816
4816
  })();
4817
4817
 
4818
4818
  $root.UserPasswordResetCreated = (function() {
@@ -13581,4 +13581,1219 @@ $root.UserDoubleOptInEmailRequested = (function() {
13581
13581
  return UserDoubleOptInEmailRequested;
13582
13582
  })();
13583
13583
 
13584
+ $root.UserEmailUpdated = (function() {
13585
+
13586
+ /**
13587
+ * Properties of a UserEmailUpdated.
13588
+ * @exports IUserEmailUpdated
13589
+ * @interface IUserEmailUpdated
13590
+ * @property {string|null} [userId] UserEmailUpdated userId
13591
+ * @property {string|null} [oldEmail] UserEmailUpdated oldEmail
13592
+ * @property {number|Long|null} [timestamp] UserEmailUpdated timestamp
13593
+ */
13594
+
13595
+ /**
13596
+ * Constructs a new UserEmailUpdated.
13597
+ * @exports UserEmailUpdated
13598
+ * @classdesc Represents a UserEmailUpdated.
13599
+ * @implements IUserEmailUpdated
13600
+ * @constructor
13601
+ * @param {IUserEmailUpdated=} [properties] Properties to set
13602
+ */
13603
+ function UserEmailUpdated(properties) {
13604
+ if (properties)
13605
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13606
+ if (properties[keys[i]] != null)
13607
+ this[keys[i]] = properties[keys[i]];
13608
+ }
13609
+
13610
+ /**
13611
+ * UserEmailUpdated userId.
13612
+ * @member {string} userId
13613
+ * @memberof UserEmailUpdated
13614
+ * @instance
13615
+ */
13616
+ UserEmailUpdated.prototype.userId = "";
13617
+
13618
+ /**
13619
+ * UserEmailUpdated oldEmail.
13620
+ * @member {string} oldEmail
13621
+ * @memberof UserEmailUpdated
13622
+ * @instance
13623
+ */
13624
+ UserEmailUpdated.prototype.oldEmail = "";
13625
+
13626
+ /**
13627
+ * UserEmailUpdated timestamp.
13628
+ * @member {number|Long} timestamp
13629
+ * @memberof UserEmailUpdated
13630
+ * @instance
13631
+ */
13632
+ UserEmailUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
13633
+
13634
+ /**
13635
+ * Creates a new UserEmailUpdated instance using the specified properties.
13636
+ * @function create
13637
+ * @memberof UserEmailUpdated
13638
+ * @static
13639
+ * @param {IUserEmailUpdated=} [properties] Properties to set
13640
+ * @returns {UserEmailUpdated} UserEmailUpdated instance
13641
+ */
13642
+ UserEmailUpdated.create = function create(properties) {
13643
+ return new UserEmailUpdated(properties);
13644
+ };
13645
+
13646
+ /**
13647
+ * Encodes the specified UserEmailUpdated message. Does not implicitly {@link UserEmailUpdated.verify|verify} messages.
13648
+ * @function encode
13649
+ * @memberof UserEmailUpdated
13650
+ * @static
13651
+ * @param {IUserEmailUpdated} message UserEmailUpdated message or plain object to encode
13652
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13653
+ * @returns {$protobuf.Writer} Writer
13654
+ */
13655
+ UserEmailUpdated.encode = function encode(message, writer) {
13656
+ if (!writer)
13657
+ writer = $Writer.create();
13658
+ if (message.userId != null && message.hasOwnProperty("userId"))
13659
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
13660
+ if (message.oldEmail != null && message.hasOwnProperty("oldEmail"))
13661
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.oldEmail);
13662
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
13663
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
13664
+ return writer;
13665
+ };
13666
+
13667
+ /**
13668
+ * Encodes the specified UserEmailUpdated message, length delimited. Does not implicitly {@link UserEmailUpdated.verify|verify} messages.
13669
+ * @function encodeDelimited
13670
+ * @memberof UserEmailUpdated
13671
+ * @static
13672
+ * @param {IUserEmailUpdated} message UserEmailUpdated message or plain object to encode
13673
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13674
+ * @returns {$protobuf.Writer} Writer
13675
+ */
13676
+ UserEmailUpdated.encodeDelimited = function encodeDelimited(message, writer) {
13677
+ return this.encode(message, writer).ldelim();
13678
+ };
13679
+
13680
+ /**
13681
+ * Decodes a UserEmailUpdated message from the specified reader or buffer.
13682
+ * @function decode
13683
+ * @memberof UserEmailUpdated
13684
+ * @static
13685
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13686
+ * @param {number} [length] Message length if known beforehand
13687
+ * @returns {UserEmailUpdated} UserEmailUpdated
13688
+ * @throws {Error} If the payload is not a reader or valid buffer
13689
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13690
+ */
13691
+ UserEmailUpdated.decode = function decode(reader, length) {
13692
+ if (!(reader instanceof $Reader))
13693
+ reader = $Reader.create(reader);
13694
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailUpdated();
13695
+ while (reader.pos < end) {
13696
+ var tag = reader.uint32();
13697
+ switch (tag >>> 3) {
13698
+ case 1:
13699
+ message.userId = reader.string();
13700
+ break;
13701
+ case 2:
13702
+ message.oldEmail = reader.string();
13703
+ break;
13704
+ case 3:
13705
+ message.timestamp = reader.uint64();
13706
+ break;
13707
+ default:
13708
+ reader.skipType(tag & 7);
13709
+ break;
13710
+ }
13711
+ }
13712
+ return message;
13713
+ };
13714
+
13715
+ /**
13716
+ * Decodes a UserEmailUpdated message from the specified reader or buffer, length delimited.
13717
+ * @function decodeDelimited
13718
+ * @memberof UserEmailUpdated
13719
+ * @static
13720
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13721
+ * @returns {UserEmailUpdated} UserEmailUpdated
13722
+ * @throws {Error} If the payload is not a reader or valid buffer
13723
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13724
+ */
13725
+ UserEmailUpdated.decodeDelimited = function decodeDelimited(reader) {
13726
+ if (!(reader instanceof $Reader))
13727
+ reader = new $Reader(reader);
13728
+ return this.decode(reader, reader.uint32());
13729
+ };
13730
+
13731
+ /**
13732
+ * Verifies a UserEmailUpdated message.
13733
+ * @function verify
13734
+ * @memberof UserEmailUpdated
13735
+ * @static
13736
+ * @param {Object.<string,*>} message Plain object to verify
13737
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13738
+ */
13739
+ UserEmailUpdated.verify = function verify(message) {
13740
+ if (typeof message !== "object" || message === null)
13741
+ return "object expected";
13742
+ if (message.userId != null && message.hasOwnProperty("userId"))
13743
+ if (!$util.isString(message.userId))
13744
+ return "userId: string expected";
13745
+ if (message.oldEmail != null && message.hasOwnProperty("oldEmail"))
13746
+ if (!$util.isString(message.oldEmail))
13747
+ return "oldEmail: string expected";
13748
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
13749
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
13750
+ return "timestamp: integer|Long expected";
13751
+ return null;
13752
+ };
13753
+
13754
+ /**
13755
+ * Creates a UserEmailUpdated message from a plain object. Also converts values to their respective internal types.
13756
+ * @function fromObject
13757
+ * @memberof UserEmailUpdated
13758
+ * @static
13759
+ * @param {Object.<string,*>} object Plain object
13760
+ * @returns {UserEmailUpdated} UserEmailUpdated
13761
+ */
13762
+ UserEmailUpdated.fromObject = function fromObject(object) {
13763
+ if (object instanceof $root.UserEmailUpdated)
13764
+ return object;
13765
+ var message = new $root.UserEmailUpdated();
13766
+ if (object.userId != null)
13767
+ message.userId = String(object.userId);
13768
+ if (object.oldEmail != null)
13769
+ message.oldEmail = String(object.oldEmail);
13770
+ if (object.timestamp != null)
13771
+ if ($util.Long)
13772
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
13773
+ else if (typeof object.timestamp === "string")
13774
+ message.timestamp = parseInt(object.timestamp, 10);
13775
+ else if (typeof object.timestamp === "number")
13776
+ message.timestamp = object.timestamp;
13777
+ else if (typeof object.timestamp === "object")
13778
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
13779
+ return message;
13780
+ };
13781
+
13782
+ /**
13783
+ * Creates a plain object from a UserEmailUpdated message. Also converts values to other types if specified.
13784
+ * @function toObject
13785
+ * @memberof UserEmailUpdated
13786
+ * @static
13787
+ * @param {UserEmailUpdated} message UserEmailUpdated
13788
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13789
+ * @returns {Object.<string,*>} Plain object
13790
+ */
13791
+ UserEmailUpdated.toObject = function toObject(message, options) {
13792
+ if (!options)
13793
+ options = {};
13794
+ var object = {};
13795
+ if (options.defaults) {
13796
+ object.userId = "";
13797
+ object.oldEmail = "";
13798
+ if ($util.Long) {
13799
+ var long = new $util.Long(0, 0, true);
13800
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13801
+ } else
13802
+ object.timestamp = options.longs === String ? "0" : 0;
13803
+ }
13804
+ if (message.userId != null && message.hasOwnProperty("userId"))
13805
+ object.userId = message.userId;
13806
+ if (message.oldEmail != null && message.hasOwnProperty("oldEmail"))
13807
+ object.oldEmail = message.oldEmail;
13808
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
13809
+ if (typeof message.timestamp === "number")
13810
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
13811
+ else
13812
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
13813
+ return object;
13814
+ };
13815
+
13816
+ /**
13817
+ * Converts this UserEmailUpdated to JSON.
13818
+ * @function toJSON
13819
+ * @memberof UserEmailUpdated
13820
+ * @instance
13821
+ * @returns {Object.<string,*>} JSON object
13822
+ */
13823
+ UserEmailUpdated.prototype.toJSON = function toJSON() {
13824
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13825
+ };
13826
+
13827
+ return UserEmailUpdated;
13828
+ })();
13829
+
13830
+ $root.UserEmailVerificationRequested = (function() {
13831
+
13832
+ /**
13833
+ * Properties of a UserEmailVerificationRequested.
13834
+ * @exports IUserEmailVerificationRequested
13835
+ * @interface IUserEmailVerificationRequested
13836
+ * @property {string|null} [userId] UserEmailVerificationRequested userId
13837
+ * @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
13838
+ * @property {number|Long|null} [timestamp] UserEmailVerificationRequested timestamp
13839
+ * @property {boolean|null} [optIn] UserEmailVerificationRequested optIn
13840
+ */
13841
+
13842
+ /**
13843
+ * Constructs a new UserEmailVerificationRequested.
13844
+ * @exports UserEmailVerificationRequested
13845
+ * @classdesc Represents a UserEmailVerificationRequested.
13846
+ * @implements IUserEmailVerificationRequested
13847
+ * @constructor
13848
+ * @param {IUserEmailVerificationRequested=} [properties] Properties to set
13849
+ */
13850
+ function UserEmailVerificationRequested(properties) {
13851
+ if (properties)
13852
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13853
+ if (properties[keys[i]] != null)
13854
+ this[keys[i]] = properties[keys[i]];
13855
+ }
13856
+
13857
+ /**
13858
+ * UserEmailVerificationRequested userId.
13859
+ * @member {string} userId
13860
+ * @memberof UserEmailVerificationRequested
13861
+ * @instance
13862
+ */
13863
+ UserEmailVerificationRequested.prototype.userId = "";
13864
+
13865
+ /**
13866
+ * UserEmailVerificationRequested verificationCode.
13867
+ * @member {string} verificationCode
13868
+ * @memberof UserEmailVerificationRequested
13869
+ * @instance
13870
+ */
13871
+ UserEmailVerificationRequested.prototype.verificationCode = "";
13872
+
13873
+ /**
13874
+ * UserEmailVerificationRequested timestamp.
13875
+ * @member {number|Long} timestamp
13876
+ * @memberof UserEmailVerificationRequested
13877
+ * @instance
13878
+ */
13879
+ UserEmailVerificationRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
13880
+
13881
+ /**
13882
+ * UserEmailVerificationRequested optIn.
13883
+ * @member {boolean} optIn
13884
+ * @memberof UserEmailVerificationRequested
13885
+ * @instance
13886
+ */
13887
+ UserEmailVerificationRequested.prototype.optIn = false;
13888
+
13889
+ /**
13890
+ * Creates a new UserEmailVerificationRequested instance using the specified properties.
13891
+ * @function create
13892
+ * @memberof UserEmailVerificationRequested
13893
+ * @static
13894
+ * @param {IUserEmailVerificationRequested=} [properties] Properties to set
13895
+ * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested instance
13896
+ */
13897
+ UserEmailVerificationRequested.create = function create(properties) {
13898
+ return new UserEmailVerificationRequested(properties);
13899
+ };
13900
+
13901
+ /**
13902
+ * Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
13903
+ * @function encode
13904
+ * @memberof UserEmailVerificationRequested
13905
+ * @static
13906
+ * @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
13907
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13908
+ * @returns {$protobuf.Writer} Writer
13909
+ */
13910
+ UserEmailVerificationRequested.encode = function encode(message, writer) {
13911
+ if (!writer)
13912
+ writer = $Writer.create();
13913
+ if (message.userId != null && message.hasOwnProperty("userId"))
13914
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
13915
+ if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
13916
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode);
13917
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
13918
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
13919
+ if (message.optIn != null && message.hasOwnProperty("optIn"))
13920
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.optIn);
13921
+ return writer;
13922
+ };
13923
+
13924
+ /**
13925
+ * Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
13926
+ * @function encodeDelimited
13927
+ * @memberof UserEmailVerificationRequested
13928
+ * @static
13929
+ * @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
13930
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13931
+ * @returns {$protobuf.Writer} Writer
13932
+ */
13933
+ UserEmailVerificationRequested.encodeDelimited = function encodeDelimited(message, writer) {
13934
+ return this.encode(message, writer).ldelim();
13935
+ };
13936
+
13937
+ /**
13938
+ * Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
13939
+ * @function decode
13940
+ * @memberof UserEmailVerificationRequested
13941
+ * @static
13942
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13943
+ * @param {number} [length] Message length if known beforehand
13944
+ * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
13945
+ * @throws {Error} If the payload is not a reader or valid buffer
13946
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13947
+ */
13948
+ UserEmailVerificationRequested.decode = function decode(reader, length) {
13949
+ if (!(reader instanceof $Reader))
13950
+ reader = $Reader.create(reader);
13951
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailVerificationRequested();
13952
+ while (reader.pos < end) {
13953
+ var tag = reader.uint32();
13954
+ switch (tag >>> 3) {
13955
+ case 1:
13956
+ message.userId = reader.string();
13957
+ break;
13958
+ case 2:
13959
+ message.verificationCode = reader.string();
13960
+ break;
13961
+ case 3:
13962
+ message.timestamp = reader.uint64();
13963
+ break;
13964
+ case 4:
13965
+ message.optIn = reader.bool();
13966
+ break;
13967
+ default:
13968
+ reader.skipType(tag & 7);
13969
+ break;
13970
+ }
13971
+ }
13972
+ return message;
13973
+ };
13974
+
13975
+ /**
13976
+ * Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
13977
+ * @function decodeDelimited
13978
+ * @memberof UserEmailVerificationRequested
13979
+ * @static
13980
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13981
+ * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
13982
+ * @throws {Error} If the payload is not a reader or valid buffer
13983
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13984
+ */
13985
+ UserEmailVerificationRequested.decodeDelimited = function decodeDelimited(reader) {
13986
+ if (!(reader instanceof $Reader))
13987
+ reader = new $Reader(reader);
13988
+ return this.decode(reader, reader.uint32());
13989
+ };
13990
+
13991
+ /**
13992
+ * Verifies a UserEmailVerificationRequested message.
13993
+ * @function verify
13994
+ * @memberof UserEmailVerificationRequested
13995
+ * @static
13996
+ * @param {Object.<string,*>} message Plain object to verify
13997
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13998
+ */
13999
+ UserEmailVerificationRequested.verify = function verify(message) {
14000
+ if (typeof message !== "object" || message === null)
14001
+ return "object expected";
14002
+ if (message.userId != null && message.hasOwnProperty("userId"))
14003
+ if (!$util.isString(message.userId))
14004
+ return "userId: string expected";
14005
+ if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
14006
+ if (!$util.isString(message.verificationCode))
14007
+ return "verificationCode: string expected";
14008
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
14009
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
14010
+ return "timestamp: integer|Long expected";
14011
+ if (message.optIn != null && message.hasOwnProperty("optIn"))
14012
+ if (typeof message.optIn !== "boolean")
14013
+ return "optIn: boolean expected";
14014
+ return null;
14015
+ };
14016
+
14017
+ /**
14018
+ * Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
14019
+ * @function fromObject
14020
+ * @memberof UserEmailVerificationRequested
14021
+ * @static
14022
+ * @param {Object.<string,*>} object Plain object
14023
+ * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
14024
+ */
14025
+ UserEmailVerificationRequested.fromObject = function fromObject(object) {
14026
+ if (object instanceof $root.UserEmailVerificationRequested)
14027
+ return object;
14028
+ var message = new $root.UserEmailVerificationRequested();
14029
+ if (object.userId != null)
14030
+ message.userId = String(object.userId);
14031
+ if (object.verificationCode != null)
14032
+ message.verificationCode = String(object.verificationCode);
14033
+ if (object.timestamp != null)
14034
+ if ($util.Long)
14035
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
14036
+ else if (typeof object.timestamp === "string")
14037
+ message.timestamp = parseInt(object.timestamp, 10);
14038
+ else if (typeof object.timestamp === "number")
14039
+ message.timestamp = object.timestamp;
14040
+ else if (typeof object.timestamp === "object")
14041
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
14042
+ if (object.optIn != null)
14043
+ message.optIn = Boolean(object.optIn);
14044
+ return message;
14045
+ };
14046
+
14047
+ /**
14048
+ * Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
14049
+ * @function toObject
14050
+ * @memberof UserEmailVerificationRequested
14051
+ * @static
14052
+ * @param {UserEmailVerificationRequested} message UserEmailVerificationRequested
14053
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14054
+ * @returns {Object.<string,*>} Plain object
14055
+ */
14056
+ UserEmailVerificationRequested.toObject = function toObject(message, options) {
14057
+ if (!options)
14058
+ options = {};
14059
+ var object = {};
14060
+ if (options.defaults) {
14061
+ object.userId = "";
14062
+ object.verificationCode = "";
14063
+ if ($util.Long) {
14064
+ var long = new $util.Long(0, 0, true);
14065
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14066
+ } else
14067
+ object.timestamp = options.longs === String ? "0" : 0;
14068
+ object.optIn = false;
14069
+ }
14070
+ if (message.userId != null && message.hasOwnProperty("userId"))
14071
+ object.userId = message.userId;
14072
+ if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
14073
+ object.verificationCode = message.verificationCode;
14074
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
14075
+ if (typeof message.timestamp === "number")
14076
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
14077
+ else
14078
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
14079
+ if (message.optIn != null && message.hasOwnProperty("optIn"))
14080
+ object.optIn = message.optIn;
14081
+ return object;
14082
+ };
14083
+
14084
+ /**
14085
+ * Converts this UserEmailVerificationRequested to JSON.
14086
+ * @function toJSON
14087
+ * @memberof UserEmailVerificationRequested
14088
+ * @instance
14089
+ * @returns {Object.<string,*>} JSON object
14090
+ */
14091
+ UserEmailVerificationRequested.prototype.toJSON = function toJSON() {
14092
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14093
+ };
14094
+
14095
+ return UserEmailVerificationRequested;
14096
+ })();
14097
+
14098
+ $root.UserPasswordResetRequested = (function() {
14099
+
14100
+ /**
14101
+ * Properties of a UserPasswordResetRequested.
14102
+ * @exports IUserPasswordResetRequested
14103
+ * @interface IUserPasswordResetRequested
14104
+ * @property {string|null} [userId] UserPasswordResetRequested userId
14105
+ * @property {string|null} [resetCode] UserPasswordResetRequested resetCode
14106
+ * @property {number|Long|null} [timestamp] UserPasswordResetRequested timestamp
14107
+ * @property {string|null} [email] UserPasswordResetRequested email
14108
+ */
14109
+
14110
+ /**
14111
+ * Constructs a new UserPasswordResetRequested.
14112
+ * @exports UserPasswordResetRequested
14113
+ * @classdesc Represents a UserPasswordResetRequested.
14114
+ * @implements IUserPasswordResetRequested
14115
+ * @constructor
14116
+ * @param {IUserPasswordResetRequested=} [properties] Properties to set
14117
+ */
14118
+ function UserPasswordResetRequested(properties) {
14119
+ if (properties)
14120
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14121
+ if (properties[keys[i]] != null)
14122
+ this[keys[i]] = properties[keys[i]];
14123
+ }
14124
+
14125
+ /**
14126
+ * UserPasswordResetRequested userId.
14127
+ * @member {string} userId
14128
+ * @memberof UserPasswordResetRequested
14129
+ * @instance
14130
+ */
14131
+ UserPasswordResetRequested.prototype.userId = "";
14132
+
14133
+ /**
14134
+ * UserPasswordResetRequested resetCode.
14135
+ * @member {string} resetCode
14136
+ * @memberof UserPasswordResetRequested
14137
+ * @instance
14138
+ */
14139
+ UserPasswordResetRequested.prototype.resetCode = "";
14140
+
14141
+ /**
14142
+ * UserPasswordResetRequested timestamp.
14143
+ * @member {number|Long} timestamp
14144
+ * @memberof UserPasswordResetRequested
14145
+ * @instance
14146
+ */
14147
+ UserPasswordResetRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
14148
+
14149
+ /**
14150
+ * UserPasswordResetRequested email.
14151
+ * @member {string} email
14152
+ * @memberof UserPasswordResetRequested
14153
+ * @instance
14154
+ */
14155
+ UserPasswordResetRequested.prototype.email = "";
14156
+
14157
+ /**
14158
+ * Creates a new UserPasswordResetRequested instance using the specified properties.
14159
+ * @function create
14160
+ * @memberof UserPasswordResetRequested
14161
+ * @static
14162
+ * @param {IUserPasswordResetRequested=} [properties] Properties to set
14163
+ * @returns {UserPasswordResetRequested} UserPasswordResetRequested instance
14164
+ */
14165
+ UserPasswordResetRequested.create = function create(properties) {
14166
+ return new UserPasswordResetRequested(properties);
14167
+ };
14168
+
14169
+ /**
14170
+ * Encodes the specified UserPasswordResetRequested message. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
14171
+ * @function encode
14172
+ * @memberof UserPasswordResetRequested
14173
+ * @static
14174
+ * @param {IUserPasswordResetRequested} message UserPasswordResetRequested message or plain object to encode
14175
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14176
+ * @returns {$protobuf.Writer} Writer
14177
+ */
14178
+ UserPasswordResetRequested.encode = function encode(message, writer) {
14179
+ if (!writer)
14180
+ writer = $Writer.create();
14181
+ if (message.userId != null && message.hasOwnProperty("userId"))
14182
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
14183
+ if (message.resetCode != null && message.hasOwnProperty("resetCode"))
14184
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.resetCode);
14185
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
14186
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
14187
+ if (message.email != null && message.hasOwnProperty("email"))
14188
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.email);
14189
+ return writer;
14190
+ };
14191
+
14192
+ /**
14193
+ * Encodes the specified UserPasswordResetRequested message, length delimited. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
14194
+ * @function encodeDelimited
14195
+ * @memberof UserPasswordResetRequested
14196
+ * @static
14197
+ * @param {IUserPasswordResetRequested} message UserPasswordResetRequested message or plain object to encode
14198
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14199
+ * @returns {$protobuf.Writer} Writer
14200
+ */
14201
+ UserPasswordResetRequested.encodeDelimited = function encodeDelimited(message, writer) {
14202
+ return this.encode(message, writer).ldelim();
14203
+ };
14204
+
14205
+ /**
14206
+ * Decodes a UserPasswordResetRequested message from the specified reader or buffer.
14207
+ * @function decode
14208
+ * @memberof UserPasswordResetRequested
14209
+ * @static
14210
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14211
+ * @param {number} [length] Message length if known beforehand
14212
+ * @returns {UserPasswordResetRequested} UserPasswordResetRequested
14213
+ * @throws {Error} If the payload is not a reader or valid buffer
14214
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14215
+ */
14216
+ UserPasswordResetRequested.decode = function decode(reader, length) {
14217
+ if (!(reader instanceof $Reader))
14218
+ reader = $Reader.create(reader);
14219
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordResetRequested();
14220
+ while (reader.pos < end) {
14221
+ var tag = reader.uint32();
14222
+ switch (tag >>> 3) {
14223
+ case 1:
14224
+ message.userId = reader.string();
14225
+ break;
14226
+ case 2:
14227
+ message.resetCode = reader.string();
14228
+ break;
14229
+ case 3:
14230
+ message.timestamp = reader.uint64();
14231
+ break;
14232
+ case 4:
14233
+ message.email = reader.string();
14234
+ break;
14235
+ default:
14236
+ reader.skipType(tag & 7);
14237
+ break;
14238
+ }
14239
+ }
14240
+ return message;
14241
+ };
14242
+
14243
+ /**
14244
+ * Decodes a UserPasswordResetRequested message from the specified reader or buffer, length delimited.
14245
+ * @function decodeDelimited
14246
+ * @memberof UserPasswordResetRequested
14247
+ * @static
14248
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14249
+ * @returns {UserPasswordResetRequested} UserPasswordResetRequested
14250
+ * @throws {Error} If the payload is not a reader or valid buffer
14251
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14252
+ */
14253
+ UserPasswordResetRequested.decodeDelimited = function decodeDelimited(reader) {
14254
+ if (!(reader instanceof $Reader))
14255
+ reader = new $Reader(reader);
14256
+ return this.decode(reader, reader.uint32());
14257
+ };
14258
+
14259
+ /**
14260
+ * Verifies a UserPasswordResetRequested message.
14261
+ * @function verify
14262
+ * @memberof UserPasswordResetRequested
14263
+ * @static
14264
+ * @param {Object.<string,*>} message Plain object to verify
14265
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14266
+ */
14267
+ UserPasswordResetRequested.verify = function verify(message) {
14268
+ if (typeof message !== "object" || message === null)
14269
+ return "object expected";
14270
+ if (message.userId != null && message.hasOwnProperty("userId"))
14271
+ if (!$util.isString(message.userId))
14272
+ return "userId: string expected";
14273
+ if (message.resetCode != null && message.hasOwnProperty("resetCode"))
14274
+ if (!$util.isString(message.resetCode))
14275
+ return "resetCode: string expected";
14276
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
14277
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
14278
+ return "timestamp: integer|Long expected";
14279
+ if (message.email != null && message.hasOwnProperty("email"))
14280
+ if (!$util.isString(message.email))
14281
+ return "email: string expected";
14282
+ return null;
14283
+ };
14284
+
14285
+ /**
14286
+ * Creates a UserPasswordResetRequested message from a plain object. Also converts values to their respective internal types.
14287
+ * @function fromObject
14288
+ * @memberof UserPasswordResetRequested
14289
+ * @static
14290
+ * @param {Object.<string,*>} object Plain object
14291
+ * @returns {UserPasswordResetRequested} UserPasswordResetRequested
14292
+ */
14293
+ UserPasswordResetRequested.fromObject = function fromObject(object) {
14294
+ if (object instanceof $root.UserPasswordResetRequested)
14295
+ return object;
14296
+ var message = new $root.UserPasswordResetRequested();
14297
+ if (object.userId != null)
14298
+ message.userId = String(object.userId);
14299
+ if (object.resetCode != null)
14300
+ message.resetCode = String(object.resetCode);
14301
+ if (object.timestamp != null)
14302
+ if ($util.Long)
14303
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
14304
+ else if (typeof object.timestamp === "string")
14305
+ message.timestamp = parseInt(object.timestamp, 10);
14306
+ else if (typeof object.timestamp === "number")
14307
+ message.timestamp = object.timestamp;
14308
+ else if (typeof object.timestamp === "object")
14309
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
14310
+ if (object.email != null)
14311
+ message.email = String(object.email);
14312
+ return message;
14313
+ };
14314
+
14315
+ /**
14316
+ * Creates a plain object from a UserPasswordResetRequested message. Also converts values to other types if specified.
14317
+ * @function toObject
14318
+ * @memberof UserPasswordResetRequested
14319
+ * @static
14320
+ * @param {UserPasswordResetRequested} message UserPasswordResetRequested
14321
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14322
+ * @returns {Object.<string,*>} Plain object
14323
+ */
14324
+ UserPasswordResetRequested.toObject = function toObject(message, options) {
14325
+ if (!options)
14326
+ options = {};
14327
+ var object = {};
14328
+ if (options.defaults) {
14329
+ object.userId = "";
14330
+ object.resetCode = "";
14331
+ if ($util.Long) {
14332
+ var long = new $util.Long(0, 0, true);
14333
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14334
+ } else
14335
+ object.timestamp = options.longs === String ? "0" : 0;
14336
+ object.email = "";
14337
+ }
14338
+ if (message.userId != null && message.hasOwnProperty("userId"))
14339
+ object.userId = message.userId;
14340
+ if (message.resetCode != null && message.hasOwnProperty("resetCode"))
14341
+ object.resetCode = message.resetCode;
14342
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
14343
+ if (typeof message.timestamp === "number")
14344
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
14345
+ else
14346
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
14347
+ if (message.email != null && message.hasOwnProperty("email"))
14348
+ object.email = message.email;
14349
+ return object;
14350
+ };
14351
+
14352
+ /**
14353
+ * Converts this UserPasswordResetRequested to JSON.
14354
+ * @function toJSON
14355
+ * @memberof UserPasswordResetRequested
14356
+ * @instance
14357
+ * @returns {Object.<string,*>} JSON object
14358
+ */
14359
+ UserPasswordResetRequested.prototype.toJSON = function toJSON() {
14360
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14361
+ };
14362
+
14363
+ return UserPasswordResetRequested;
14364
+ })();
14365
+
14366
+ $root.UserPasswordUpdated = (function() {
14367
+
14368
+ /**
14369
+ * Properties of a UserPasswordUpdated.
14370
+ * @exports IUserPasswordUpdated
14371
+ * @interface IUserPasswordUpdated
14372
+ * @property {string|null} [userId] UserPasswordUpdated userId
14373
+ * @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
14374
+ * @property {string|null} [email] UserPasswordUpdated email
14375
+ */
14376
+
14377
+ /**
14378
+ * Constructs a new UserPasswordUpdated.
14379
+ * @exports UserPasswordUpdated
14380
+ * @classdesc Represents a UserPasswordUpdated.
14381
+ * @implements IUserPasswordUpdated
14382
+ * @constructor
14383
+ * @param {IUserPasswordUpdated=} [properties] Properties to set
14384
+ */
14385
+ function UserPasswordUpdated(properties) {
14386
+ if (properties)
14387
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14388
+ if (properties[keys[i]] != null)
14389
+ this[keys[i]] = properties[keys[i]];
14390
+ }
14391
+
14392
+ /**
14393
+ * UserPasswordUpdated userId.
14394
+ * @member {string} userId
14395
+ * @memberof UserPasswordUpdated
14396
+ * @instance
14397
+ */
14398
+ UserPasswordUpdated.prototype.userId = "";
14399
+
14400
+ /**
14401
+ * UserPasswordUpdated updatedOn.
14402
+ * @member {number|Long} updatedOn
14403
+ * @memberof UserPasswordUpdated
14404
+ * @instance
14405
+ */
14406
+ UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
14407
+
14408
+ /**
14409
+ * UserPasswordUpdated email.
14410
+ * @member {string} email
14411
+ * @memberof UserPasswordUpdated
14412
+ * @instance
14413
+ */
14414
+ UserPasswordUpdated.prototype.email = "";
14415
+
14416
+ /**
14417
+ * Creates a new UserPasswordUpdated instance using the specified properties.
14418
+ * @function create
14419
+ * @memberof UserPasswordUpdated
14420
+ * @static
14421
+ * @param {IUserPasswordUpdated=} [properties] Properties to set
14422
+ * @returns {UserPasswordUpdated} UserPasswordUpdated instance
14423
+ */
14424
+ UserPasswordUpdated.create = function create(properties) {
14425
+ return new UserPasswordUpdated(properties);
14426
+ };
14427
+
14428
+ /**
14429
+ * Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
14430
+ * @function encode
14431
+ * @memberof UserPasswordUpdated
14432
+ * @static
14433
+ * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
14434
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14435
+ * @returns {$protobuf.Writer} Writer
14436
+ */
14437
+ UserPasswordUpdated.encode = function encode(message, writer) {
14438
+ if (!writer)
14439
+ writer = $Writer.create();
14440
+ if (message.userId != null && message.hasOwnProperty("userId"))
14441
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
14442
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
14443
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
14444
+ if (message.email != null && message.hasOwnProperty("email"))
14445
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
14446
+ return writer;
14447
+ };
14448
+
14449
+ /**
14450
+ * Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
14451
+ * @function encodeDelimited
14452
+ * @memberof UserPasswordUpdated
14453
+ * @static
14454
+ * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
14455
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14456
+ * @returns {$protobuf.Writer} Writer
14457
+ */
14458
+ UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
14459
+ return this.encode(message, writer).ldelim();
14460
+ };
14461
+
14462
+ /**
14463
+ * Decodes a UserPasswordUpdated message from the specified reader or buffer.
14464
+ * @function decode
14465
+ * @memberof UserPasswordUpdated
14466
+ * @static
14467
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14468
+ * @param {number} [length] Message length if known beforehand
14469
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
14470
+ * @throws {Error} If the payload is not a reader or valid buffer
14471
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14472
+ */
14473
+ UserPasswordUpdated.decode = function decode(reader, length) {
14474
+ if (!(reader instanceof $Reader))
14475
+ reader = $Reader.create(reader);
14476
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
14477
+ while (reader.pos < end) {
14478
+ var tag = reader.uint32();
14479
+ switch (tag >>> 3) {
14480
+ case 1:
14481
+ message.userId = reader.string();
14482
+ break;
14483
+ case 2:
14484
+ message.updatedOn = reader.uint64();
14485
+ break;
14486
+ case 3:
14487
+ message.email = reader.string();
14488
+ break;
14489
+ default:
14490
+ reader.skipType(tag & 7);
14491
+ break;
14492
+ }
14493
+ }
14494
+ return message;
14495
+ };
14496
+
14497
+ /**
14498
+ * Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
14499
+ * @function decodeDelimited
14500
+ * @memberof UserPasswordUpdated
14501
+ * @static
14502
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14503
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
14504
+ * @throws {Error} If the payload is not a reader or valid buffer
14505
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14506
+ */
14507
+ UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
14508
+ if (!(reader instanceof $Reader))
14509
+ reader = new $Reader(reader);
14510
+ return this.decode(reader, reader.uint32());
14511
+ };
14512
+
14513
+ /**
14514
+ * Verifies a UserPasswordUpdated message.
14515
+ * @function verify
14516
+ * @memberof UserPasswordUpdated
14517
+ * @static
14518
+ * @param {Object.<string,*>} message Plain object to verify
14519
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14520
+ */
14521
+ UserPasswordUpdated.verify = function verify(message) {
14522
+ if (typeof message !== "object" || message === null)
14523
+ return "object expected";
14524
+ if (message.userId != null && message.hasOwnProperty("userId"))
14525
+ if (!$util.isString(message.userId))
14526
+ return "userId: string expected";
14527
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
14528
+ if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
14529
+ return "updatedOn: integer|Long expected";
14530
+ if (message.email != null && message.hasOwnProperty("email"))
14531
+ if (!$util.isString(message.email))
14532
+ return "email: string expected";
14533
+ return null;
14534
+ };
14535
+
14536
+ /**
14537
+ * Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
14538
+ * @function fromObject
14539
+ * @memberof UserPasswordUpdated
14540
+ * @static
14541
+ * @param {Object.<string,*>} object Plain object
14542
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
14543
+ */
14544
+ UserPasswordUpdated.fromObject = function fromObject(object) {
14545
+ if (object instanceof $root.UserPasswordUpdated)
14546
+ return object;
14547
+ var message = new $root.UserPasswordUpdated();
14548
+ if (object.userId != null)
14549
+ message.userId = String(object.userId);
14550
+ if (object.updatedOn != null)
14551
+ if ($util.Long)
14552
+ (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
14553
+ else if (typeof object.updatedOn === "string")
14554
+ message.updatedOn = parseInt(object.updatedOn, 10);
14555
+ else if (typeof object.updatedOn === "number")
14556
+ message.updatedOn = object.updatedOn;
14557
+ else if (typeof object.updatedOn === "object")
14558
+ message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
14559
+ if (object.email != null)
14560
+ message.email = String(object.email);
14561
+ return message;
14562
+ };
14563
+
14564
+ /**
14565
+ * Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
14566
+ * @function toObject
14567
+ * @memberof UserPasswordUpdated
14568
+ * @static
14569
+ * @param {UserPasswordUpdated} message UserPasswordUpdated
14570
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14571
+ * @returns {Object.<string,*>} Plain object
14572
+ */
14573
+ UserPasswordUpdated.toObject = function toObject(message, options) {
14574
+ if (!options)
14575
+ options = {};
14576
+ var object = {};
14577
+ if (options.defaults) {
14578
+ object.userId = "";
14579
+ if ($util.Long) {
14580
+ var long = new $util.Long(0, 0, true);
14581
+ object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14582
+ } else
14583
+ object.updatedOn = options.longs === String ? "0" : 0;
14584
+ object.email = "";
14585
+ }
14586
+ if (message.userId != null && message.hasOwnProperty("userId"))
14587
+ object.userId = message.userId;
14588
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
14589
+ if (typeof message.updatedOn === "number")
14590
+ object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
14591
+ else
14592
+ object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
14593
+ if (message.email != null && message.hasOwnProperty("email"))
14594
+ object.email = message.email;
14595
+ return object;
14596
+ };
14597
+
14598
+ /**
14599
+ * Converts this UserPasswordUpdated to JSON.
14600
+ * @function toJSON
14601
+ * @memberof UserPasswordUpdated
14602
+ * @instance
14603
+ * @returns {Object.<string,*>} JSON object
14604
+ */
14605
+ UserPasswordUpdated.prototype.toJSON = function toJSON() {
14606
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14607
+ };
14608
+
14609
+ return UserPasswordUpdated;
14610
+ })();
14611
+
14612
+ $root.UserEmailMarketingOptedIn = (function() {
14613
+
14614
+ /**
14615
+ * Properties of a UserEmailMarketingOptedIn.
14616
+ * @exports IUserEmailMarketingOptedIn
14617
+ * @interface IUserEmailMarketingOptedIn
14618
+ * @property {string|null} [userId] UserEmailMarketingOptedIn userId
14619
+ */
14620
+
14621
+ /**
14622
+ * Constructs a new UserEmailMarketingOptedIn.
14623
+ * @exports UserEmailMarketingOptedIn
14624
+ * @classdesc Represents a UserEmailMarketingOptedIn.
14625
+ * @implements IUserEmailMarketingOptedIn
14626
+ * @constructor
14627
+ * @param {IUserEmailMarketingOptedIn=} [properties] Properties to set
14628
+ */
14629
+ function UserEmailMarketingOptedIn(properties) {
14630
+ if (properties)
14631
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
14632
+ if (properties[keys[i]] != null)
14633
+ this[keys[i]] = properties[keys[i]];
14634
+ }
14635
+
14636
+ /**
14637
+ * UserEmailMarketingOptedIn userId.
14638
+ * @member {string} userId
14639
+ * @memberof UserEmailMarketingOptedIn
14640
+ * @instance
14641
+ */
14642
+ UserEmailMarketingOptedIn.prototype.userId = "";
14643
+
14644
+ /**
14645
+ * Creates a new UserEmailMarketingOptedIn instance using the specified properties.
14646
+ * @function create
14647
+ * @memberof UserEmailMarketingOptedIn
14648
+ * @static
14649
+ * @param {IUserEmailMarketingOptedIn=} [properties] Properties to set
14650
+ * @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn instance
14651
+ */
14652
+ UserEmailMarketingOptedIn.create = function create(properties) {
14653
+ return new UserEmailMarketingOptedIn(properties);
14654
+ };
14655
+
14656
+ /**
14657
+ * Encodes the specified UserEmailMarketingOptedIn message. Does not implicitly {@link UserEmailMarketingOptedIn.verify|verify} messages.
14658
+ * @function encode
14659
+ * @memberof UserEmailMarketingOptedIn
14660
+ * @static
14661
+ * @param {IUserEmailMarketingOptedIn} message UserEmailMarketingOptedIn message or plain object to encode
14662
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14663
+ * @returns {$protobuf.Writer} Writer
14664
+ */
14665
+ UserEmailMarketingOptedIn.encode = function encode(message, writer) {
14666
+ if (!writer)
14667
+ writer = $Writer.create();
14668
+ if (message.userId != null && message.hasOwnProperty("userId"))
14669
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
14670
+ return writer;
14671
+ };
14672
+
14673
+ /**
14674
+ * Encodes the specified UserEmailMarketingOptedIn message, length delimited. Does not implicitly {@link UserEmailMarketingOptedIn.verify|verify} messages.
14675
+ * @function encodeDelimited
14676
+ * @memberof UserEmailMarketingOptedIn
14677
+ * @static
14678
+ * @param {IUserEmailMarketingOptedIn} message UserEmailMarketingOptedIn message or plain object to encode
14679
+ * @param {$protobuf.Writer} [writer] Writer to encode to
14680
+ * @returns {$protobuf.Writer} Writer
14681
+ */
14682
+ UserEmailMarketingOptedIn.encodeDelimited = function encodeDelimited(message, writer) {
14683
+ return this.encode(message, writer).ldelim();
14684
+ };
14685
+
14686
+ /**
14687
+ * Decodes a UserEmailMarketingOptedIn message from the specified reader or buffer.
14688
+ * @function decode
14689
+ * @memberof UserEmailMarketingOptedIn
14690
+ * @static
14691
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14692
+ * @param {number} [length] Message length if known beforehand
14693
+ * @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn
14694
+ * @throws {Error} If the payload is not a reader or valid buffer
14695
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14696
+ */
14697
+ UserEmailMarketingOptedIn.decode = function decode(reader, length) {
14698
+ if (!(reader instanceof $Reader))
14699
+ reader = $Reader.create(reader);
14700
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailMarketingOptedIn();
14701
+ while (reader.pos < end) {
14702
+ var tag = reader.uint32();
14703
+ switch (tag >>> 3) {
14704
+ case 1:
14705
+ message.userId = reader.string();
14706
+ break;
14707
+ default:
14708
+ reader.skipType(tag & 7);
14709
+ break;
14710
+ }
14711
+ }
14712
+ return message;
14713
+ };
14714
+
14715
+ /**
14716
+ * Decodes a UserEmailMarketingOptedIn message from the specified reader or buffer, length delimited.
14717
+ * @function decodeDelimited
14718
+ * @memberof UserEmailMarketingOptedIn
14719
+ * @static
14720
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
14721
+ * @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn
14722
+ * @throws {Error} If the payload is not a reader or valid buffer
14723
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14724
+ */
14725
+ UserEmailMarketingOptedIn.decodeDelimited = function decodeDelimited(reader) {
14726
+ if (!(reader instanceof $Reader))
14727
+ reader = new $Reader(reader);
14728
+ return this.decode(reader, reader.uint32());
14729
+ };
14730
+
14731
+ /**
14732
+ * Verifies a UserEmailMarketingOptedIn message.
14733
+ * @function verify
14734
+ * @memberof UserEmailMarketingOptedIn
14735
+ * @static
14736
+ * @param {Object.<string,*>} message Plain object to verify
14737
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
14738
+ */
14739
+ UserEmailMarketingOptedIn.verify = function verify(message) {
14740
+ if (typeof message !== "object" || message === null)
14741
+ return "object expected";
14742
+ if (message.userId != null && message.hasOwnProperty("userId"))
14743
+ if (!$util.isString(message.userId))
14744
+ return "userId: string expected";
14745
+ return null;
14746
+ };
14747
+
14748
+ /**
14749
+ * Creates a UserEmailMarketingOptedIn message from a plain object. Also converts values to their respective internal types.
14750
+ * @function fromObject
14751
+ * @memberof UserEmailMarketingOptedIn
14752
+ * @static
14753
+ * @param {Object.<string,*>} object Plain object
14754
+ * @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn
14755
+ */
14756
+ UserEmailMarketingOptedIn.fromObject = function fromObject(object) {
14757
+ if (object instanceof $root.UserEmailMarketingOptedIn)
14758
+ return object;
14759
+ var message = new $root.UserEmailMarketingOptedIn();
14760
+ if (object.userId != null)
14761
+ message.userId = String(object.userId);
14762
+ return message;
14763
+ };
14764
+
14765
+ /**
14766
+ * Creates a plain object from a UserEmailMarketingOptedIn message. Also converts values to other types if specified.
14767
+ * @function toObject
14768
+ * @memberof UserEmailMarketingOptedIn
14769
+ * @static
14770
+ * @param {UserEmailMarketingOptedIn} message UserEmailMarketingOptedIn
14771
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
14772
+ * @returns {Object.<string,*>} Plain object
14773
+ */
14774
+ UserEmailMarketingOptedIn.toObject = function toObject(message, options) {
14775
+ if (!options)
14776
+ options = {};
14777
+ var object = {};
14778
+ if (options.defaults)
14779
+ object.userId = "";
14780
+ if (message.userId != null && message.hasOwnProperty("userId"))
14781
+ object.userId = message.userId;
14782
+ return object;
14783
+ };
14784
+
14785
+ /**
14786
+ * Converts this UserEmailMarketingOptedIn to JSON.
14787
+ * @function toJSON
14788
+ * @memberof UserEmailMarketingOptedIn
14789
+ * @instance
14790
+ * @returns {Object.<string,*>} JSON object
14791
+ */
14792
+ UserEmailMarketingOptedIn.prototype.toJSON = function toJSON() {
14793
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14794
+ };
14795
+
14796
+ return UserEmailMarketingOptedIn;
14797
+ })();
14798
+
13584
14799
  module.exports = $root;