@headspace/protos-events 1.63.0 → 1.64.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.
package/lib/index.d.ts CHANGED
@@ -3593,6 +3593,210 @@ export class UserEnabledWakeupNotifications implements IUserEnabledWakeupNotific
3593
3593
  public toJSON(): { [k: string]: any };
3594
3594
  }
3595
3595
 
3596
+ /** Properties of an ExperimentContentMapCreated. */
3597
+ export interface IExperimentContentMapCreated {
3598
+
3599
+ /** ExperimentContentMapCreated experimentName */
3600
+ experimentName?: (string|null);
3601
+
3602
+ /** ExperimentContentMapCreated variationName */
3603
+ variationName?: (string|null);
3604
+
3605
+ /** ExperimentContentMapCreated contentIdList */
3606
+ contentIdList?: (string|null);
3607
+ }
3608
+
3609
+ /** Represents an ExperimentContentMapCreated. */
3610
+ export class ExperimentContentMapCreated implements IExperimentContentMapCreated {
3611
+
3612
+ /**
3613
+ * Constructs a new ExperimentContentMapCreated.
3614
+ * @param [properties] Properties to set
3615
+ */
3616
+ constructor(properties?: IExperimentContentMapCreated);
3617
+
3618
+ /** ExperimentContentMapCreated experimentName. */
3619
+ public experimentName: string;
3620
+
3621
+ /** ExperimentContentMapCreated variationName. */
3622
+ public variationName: string;
3623
+
3624
+ /** ExperimentContentMapCreated contentIdList. */
3625
+ public contentIdList: string;
3626
+
3627
+ /**
3628
+ * Creates a new ExperimentContentMapCreated instance using the specified properties.
3629
+ * @param [properties] Properties to set
3630
+ * @returns ExperimentContentMapCreated instance
3631
+ */
3632
+ public static create(properties?: IExperimentContentMapCreated): ExperimentContentMapCreated;
3633
+
3634
+ /**
3635
+ * Encodes the specified ExperimentContentMapCreated message. Does not implicitly {@link ExperimentContentMapCreated.verify|verify} messages.
3636
+ * @param message ExperimentContentMapCreated message or plain object to encode
3637
+ * @param [writer] Writer to encode to
3638
+ * @returns Writer
3639
+ */
3640
+ public static encode(message: IExperimentContentMapCreated, writer?: $protobuf.Writer): $protobuf.Writer;
3641
+
3642
+ /**
3643
+ * Encodes the specified ExperimentContentMapCreated message, length delimited. Does not implicitly {@link ExperimentContentMapCreated.verify|verify} messages.
3644
+ * @param message ExperimentContentMapCreated message or plain object to encode
3645
+ * @param [writer] Writer to encode to
3646
+ * @returns Writer
3647
+ */
3648
+ public static encodeDelimited(message: IExperimentContentMapCreated, writer?: $protobuf.Writer): $protobuf.Writer;
3649
+
3650
+ /**
3651
+ * Decodes an ExperimentContentMapCreated message from the specified reader or buffer.
3652
+ * @param reader Reader or buffer to decode from
3653
+ * @param [length] Message length if known beforehand
3654
+ * @returns ExperimentContentMapCreated
3655
+ * @throws {Error} If the payload is not a reader or valid buffer
3656
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3657
+ */
3658
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExperimentContentMapCreated;
3659
+
3660
+ /**
3661
+ * Decodes an ExperimentContentMapCreated message from the specified reader or buffer, length delimited.
3662
+ * @param reader Reader or buffer to decode from
3663
+ * @returns ExperimentContentMapCreated
3664
+ * @throws {Error} If the payload is not a reader or valid buffer
3665
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3666
+ */
3667
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ExperimentContentMapCreated;
3668
+
3669
+ /**
3670
+ * Verifies an ExperimentContentMapCreated message.
3671
+ * @param message Plain object to verify
3672
+ * @returns `null` if valid, otherwise the reason why it is not
3673
+ */
3674
+ public static verify(message: { [k: string]: any }): (string|null);
3675
+
3676
+ /**
3677
+ * Creates an ExperimentContentMapCreated message from a plain object. Also converts values to their respective internal types.
3678
+ * @param object Plain object
3679
+ * @returns ExperimentContentMapCreated
3680
+ */
3681
+ public static fromObject(object: { [k: string]: any }): ExperimentContentMapCreated;
3682
+
3683
+ /**
3684
+ * Creates a plain object from an ExperimentContentMapCreated message. Also converts values to other types if specified.
3685
+ * @param message ExperimentContentMapCreated
3686
+ * @param [options] Conversion options
3687
+ * @returns Plain object
3688
+ */
3689
+ public static toObject(message: ExperimentContentMapCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
3690
+
3691
+ /**
3692
+ * Converts this ExperimentContentMapCreated to JSON.
3693
+ * @returns JSON object
3694
+ */
3695
+ public toJSON(): { [k: string]: any };
3696
+ }
3697
+
3698
+ /** Properties of an ExperimentContentMapUpdated. */
3699
+ export interface IExperimentContentMapUpdated {
3700
+
3701
+ /** ExperimentContentMapUpdated experimentName */
3702
+ experimentName?: (string|null);
3703
+
3704
+ /** ExperimentContentMapUpdated variationName */
3705
+ variationName?: (string|null);
3706
+
3707
+ /** ExperimentContentMapUpdated contentIdList */
3708
+ contentIdList?: (string|null);
3709
+ }
3710
+
3711
+ /** Represents an ExperimentContentMapUpdated. */
3712
+ export class ExperimentContentMapUpdated implements IExperimentContentMapUpdated {
3713
+
3714
+ /**
3715
+ * Constructs a new ExperimentContentMapUpdated.
3716
+ * @param [properties] Properties to set
3717
+ */
3718
+ constructor(properties?: IExperimentContentMapUpdated);
3719
+
3720
+ /** ExperimentContentMapUpdated experimentName. */
3721
+ public experimentName: string;
3722
+
3723
+ /** ExperimentContentMapUpdated variationName. */
3724
+ public variationName: string;
3725
+
3726
+ /** ExperimentContentMapUpdated contentIdList. */
3727
+ public contentIdList: string;
3728
+
3729
+ /**
3730
+ * Creates a new ExperimentContentMapUpdated instance using the specified properties.
3731
+ * @param [properties] Properties to set
3732
+ * @returns ExperimentContentMapUpdated instance
3733
+ */
3734
+ public static create(properties?: IExperimentContentMapUpdated): ExperimentContentMapUpdated;
3735
+
3736
+ /**
3737
+ * Encodes the specified ExperimentContentMapUpdated message. Does not implicitly {@link ExperimentContentMapUpdated.verify|verify} messages.
3738
+ * @param message ExperimentContentMapUpdated message or plain object to encode
3739
+ * @param [writer] Writer to encode to
3740
+ * @returns Writer
3741
+ */
3742
+ public static encode(message: IExperimentContentMapUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
3743
+
3744
+ /**
3745
+ * Encodes the specified ExperimentContentMapUpdated message, length delimited. Does not implicitly {@link ExperimentContentMapUpdated.verify|verify} messages.
3746
+ * @param message ExperimentContentMapUpdated message or plain object to encode
3747
+ * @param [writer] Writer to encode to
3748
+ * @returns Writer
3749
+ */
3750
+ public static encodeDelimited(message: IExperimentContentMapUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
3751
+
3752
+ /**
3753
+ * Decodes an ExperimentContentMapUpdated message from the specified reader or buffer.
3754
+ * @param reader Reader or buffer to decode from
3755
+ * @param [length] Message length if known beforehand
3756
+ * @returns ExperimentContentMapUpdated
3757
+ * @throws {Error} If the payload is not a reader or valid buffer
3758
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3759
+ */
3760
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExperimentContentMapUpdated;
3761
+
3762
+ /**
3763
+ * Decodes an ExperimentContentMapUpdated message from the specified reader or buffer, length delimited.
3764
+ * @param reader Reader or buffer to decode from
3765
+ * @returns ExperimentContentMapUpdated
3766
+ * @throws {Error} If the payload is not a reader or valid buffer
3767
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3768
+ */
3769
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ExperimentContentMapUpdated;
3770
+
3771
+ /**
3772
+ * Verifies an ExperimentContentMapUpdated message.
3773
+ * @param message Plain object to verify
3774
+ * @returns `null` if valid, otherwise the reason why it is not
3775
+ */
3776
+ public static verify(message: { [k: string]: any }): (string|null);
3777
+
3778
+ /**
3779
+ * Creates an ExperimentContentMapUpdated message from a plain object. Also converts values to their respective internal types.
3780
+ * @param object Plain object
3781
+ * @returns ExperimentContentMapUpdated
3782
+ */
3783
+ public static fromObject(object: { [k: string]: any }): ExperimentContentMapUpdated;
3784
+
3785
+ /**
3786
+ * Creates a plain object from an ExperimentContentMapUpdated message. Also converts values to other types if specified.
3787
+ * @param message ExperimentContentMapUpdated
3788
+ * @param [options] Conversion options
3789
+ * @returns Plain object
3790
+ */
3791
+ public static toObject(message: ExperimentContentMapUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
3792
+
3793
+ /**
3794
+ * Converts this ExperimentContentMapUpdated to JSON.
3795
+ * @returns JSON object
3796
+ */
3797
+ public toJSON(): { [k: string]: any };
3798
+ }
3799
+
3596
3800
  /** Properties of a ReferralSignedUp. */
3597
3801
  export interface IReferralSignedUp {
3598
3802
 
package/lib/index.js CHANGED
@@ -8675,6 +8675,470 @@ $root.UserEnabledWakeupNotifications = (function() {
8675
8675
  return UserEnabledWakeupNotifications;
8676
8676
  })();
8677
8677
 
8678
+ $root.ExperimentContentMapCreated = (function() {
8679
+
8680
+ /**
8681
+ * Properties of an ExperimentContentMapCreated.
8682
+ * @exports IExperimentContentMapCreated
8683
+ * @interface IExperimentContentMapCreated
8684
+ * @property {string|null} [experimentName] ExperimentContentMapCreated experimentName
8685
+ * @property {string|null} [variationName] ExperimentContentMapCreated variationName
8686
+ * @property {string|null} [contentIdList] ExperimentContentMapCreated contentIdList
8687
+ */
8688
+
8689
+ /**
8690
+ * Constructs a new ExperimentContentMapCreated.
8691
+ * @exports ExperimentContentMapCreated
8692
+ * @classdesc Represents an ExperimentContentMapCreated.
8693
+ * @implements IExperimentContentMapCreated
8694
+ * @constructor
8695
+ * @param {IExperimentContentMapCreated=} [properties] Properties to set
8696
+ */
8697
+ function ExperimentContentMapCreated(properties) {
8698
+ if (properties)
8699
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8700
+ if (properties[keys[i]] != null)
8701
+ this[keys[i]] = properties[keys[i]];
8702
+ }
8703
+
8704
+ /**
8705
+ * ExperimentContentMapCreated experimentName.
8706
+ * @member {string} experimentName
8707
+ * @memberof ExperimentContentMapCreated
8708
+ * @instance
8709
+ */
8710
+ ExperimentContentMapCreated.prototype.experimentName = "";
8711
+
8712
+ /**
8713
+ * ExperimentContentMapCreated variationName.
8714
+ * @member {string} variationName
8715
+ * @memberof ExperimentContentMapCreated
8716
+ * @instance
8717
+ */
8718
+ ExperimentContentMapCreated.prototype.variationName = "";
8719
+
8720
+ /**
8721
+ * ExperimentContentMapCreated contentIdList.
8722
+ * @member {string} contentIdList
8723
+ * @memberof ExperimentContentMapCreated
8724
+ * @instance
8725
+ */
8726
+ ExperimentContentMapCreated.prototype.contentIdList = "";
8727
+
8728
+ /**
8729
+ * Creates a new ExperimentContentMapCreated instance using the specified properties.
8730
+ * @function create
8731
+ * @memberof ExperimentContentMapCreated
8732
+ * @static
8733
+ * @param {IExperimentContentMapCreated=} [properties] Properties to set
8734
+ * @returns {ExperimentContentMapCreated} ExperimentContentMapCreated instance
8735
+ */
8736
+ ExperimentContentMapCreated.create = function create(properties) {
8737
+ return new ExperimentContentMapCreated(properties);
8738
+ };
8739
+
8740
+ /**
8741
+ * Encodes the specified ExperimentContentMapCreated message. Does not implicitly {@link ExperimentContentMapCreated.verify|verify} messages.
8742
+ * @function encode
8743
+ * @memberof ExperimentContentMapCreated
8744
+ * @static
8745
+ * @param {IExperimentContentMapCreated} message ExperimentContentMapCreated message or plain object to encode
8746
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8747
+ * @returns {$protobuf.Writer} Writer
8748
+ */
8749
+ ExperimentContentMapCreated.encode = function encode(message, writer) {
8750
+ if (!writer)
8751
+ writer = $Writer.create();
8752
+ if (message.experimentName != null && message.hasOwnProperty("experimentName"))
8753
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.experimentName);
8754
+ if (message.variationName != null && message.hasOwnProperty("variationName"))
8755
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.variationName);
8756
+ if (message.contentIdList != null && message.hasOwnProperty("contentIdList"))
8757
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentIdList);
8758
+ return writer;
8759
+ };
8760
+
8761
+ /**
8762
+ * Encodes the specified ExperimentContentMapCreated message, length delimited. Does not implicitly {@link ExperimentContentMapCreated.verify|verify} messages.
8763
+ * @function encodeDelimited
8764
+ * @memberof ExperimentContentMapCreated
8765
+ * @static
8766
+ * @param {IExperimentContentMapCreated} message ExperimentContentMapCreated message or plain object to encode
8767
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8768
+ * @returns {$protobuf.Writer} Writer
8769
+ */
8770
+ ExperimentContentMapCreated.encodeDelimited = function encodeDelimited(message, writer) {
8771
+ return this.encode(message, writer).ldelim();
8772
+ };
8773
+
8774
+ /**
8775
+ * Decodes an ExperimentContentMapCreated message from the specified reader or buffer.
8776
+ * @function decode
8777
+ * @memberof ExperimentContentMapCreated
8778
+ * @static
8779
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8780
+ * @param {number} [length] Message length if known beforehand
8781
+ * @returns {ExperimentContentMapCreated} ExperimentContentMapCreated
8782
+ * @throws {Error} If the payload is not a reader or valid buffer
8783
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8784
+ */
8785
+ ExperimentContentMapCreated.decode = function decode(reader, length) {
8786
+ if (!(reader instanceof $Reader))
8787
+ reader = $Reader.create(reader);
8788
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExperimentContentMapCreated();
8789
+ while (reader.pos < end) {
8790
+ var tag = reader.uint32();
8791
+ switch (tag >>> 3) {
8792
+ case 1:
8793
+ message.experimentName = reader.string();
8794
+ break;
8795
+ case 2:
8796
+ message.variationName = reader.string();
8797
+ break;
8798
+ case 3:
8799
+ message.contentIdList = reader.string();
8800
+ break;
8801
+ default:
8802
+ reader.skipType(tag & 7);
8803
+ break;
8804
+ }
8805
+ }
8806
+ return message;
8807
+ };
8808
+
8809
+ /**
8810
+ * Decodes an ExperimentContentMapCreated message from the specified reader or buffer, length delimited.
8811
+ * @function decodeDelimited
8812
+ * @memberof ExperimentContentMapCreated
8813
+ * @static
8814
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8815
+ * @returns {ExperimentContentMapCreated} ExperimentContentMapCreated
8816
+ * @throws {Error} If the payload is not a reader or valid buffer
8817
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8818
+ */
8819
+ ExperimentContentMapCreated.decodeDelimited = function decodeDelimited(reader) {
8820
+ if (!(reader instanceof $Reader))
8821
+ reader = new $Reader(reader);
8822
+ return this.decode(reader, reader.uint32());
8823
+ };
8824
+
8825
+ /**
8826
+ * Verifies an ExperimentContentMapCreated message.
8827
+ * @function verify
8828
+ * @memberof ExperimentContentMapCreated
8829
+ * @static
8830
+ * @param {Object.<string,*>} message Plain object to verify
8831
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8832
+ */
8833
+ ExperimentContentMapCreated.verify = function verify(message) {
8834
+ if (typeof message !== "object" || message === null)
8835
+ return "object expected";
8836
+ if (message.experimentName != null && message.hasOwnProperty("experimentName"))
8837
+ if (!$util.isString(message.experimentName))
8838
+ return "experimentName: string expected";
8839
+ if (message.variationName != null && message.hasOwnProperty("variationName"))
8840
+ if (!$util.isString(message.variationName))
8841
+ return "variationName: string expected";
8842
+ if (message.contentIdList != null && message.hasOwnProperty("contentIdList"))
8843
+ if (!$util.isString(message.contentIdList))
8844
+ return "contentIdList: string expected";
8845
+ return null;
8846
+ };
8847
+
8848
+ /**
8849
+ * Creates an ExperimentContentMapCreated message from a plain object. Also converts values to their respective internal types.
8850
+ * @function fromObject
8851
+ * @memberof ExperimentContentMapCreated
8852
+ * @static
8853
+ * @param {Object.<string,*>} object Plain object
8854
+ * @returns {ExperimentContentMapCreated} ExperimentContentMapCreated
8855
+ */
8856
+ ExperimentContentMapCreated.fromObject = function fromObject(object) {
8857
+ if (object instanceof $root.ExperimentContentMapCreated)
8858
+ return object;
8859
+ var message = new $root.ExperimentContentMapCreated();
8860
+ if (object.experimentName != null)
8861
+ message.experimentName = String(object.experimentName);
8862
+ if (object.variationName != null)
8863
+ message.variationName = String(object.variationName);
8864
+ if (object.contentIdList != null)
8865
+ message.contentIdList = String(object.contentIdList);
8866
+ return message;
8867
+ };
8868
+
8869
+ /**
8870
+ * Creates a plain object from an ExperimentContentMapCreated message. Also converts values to other types if specified.
8871
+ * @function toObject
8872
+ * @memberof ExperimentContentMapCreated
8873
+ * @static
8874
+ * @param {ExperimentContentMapCreated} message ExperimentContentMapCreated
8875
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8876
+ * @returns {Object.<string,*>} Plain object
8877
+ */
8878
+ ExperimentContentMapCreated.toObject = function toObject(message, options) {
8879
+ if (!options)
8880
+ options = {};
8881
+ var object = {};
8882
+ if (options.defaults) {
8883
+ object.experimentName = "";
8884
+ object.variationName = "";
8885
+ object.contentIdList = "";
8886
+ }
8887
+ if (message.experimentName != null && message.hasOwnProperty("experimentName"))
8888
+ object.experimentName = message.experimentName;
8889
+ if (message.variationName != null && message.hasOwnProperty("variationName"))
8890
+ object.variationName = message.variationName;
8891
+ if (message.contentIdList != null && message.hasOwnProperty("contentIdList"))
8892
+ object.contentIdList = message.contentIdList;
8893
+ return object;
8894
+ };
8895
+
8896
+ /**
8897
+ * Converts this ExperimentContentMapCreated to JSON.
8898
+ * @function toJSON
8899
+ * @memberof ExperimentContentMapCreated
8900
+ * @instance
8901
+ * @returns {Object.<string,*>} JSON object
8902
+ */
8903
+ ExperimentContentMapCreated.prototype.toJSON = function toJSON() {
8904
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8905
+ };
8906
+
8907
+ return ExperimentContentMapCreated;
8908
+ })();
8909
+
8910
+ $root.ExperimentContentMapUpdated = (function() {
8911
+
8912
+ /**
8913
+ * Properties of an ExperimentContentMapUpdated.
8914
+ * @exports IExperimentContentMapUpdated
8915
+ * @interface IExperimentContentMapUpdated
8916
+ * @property {string|null} [experimentName] ExperimentContentMapUpdated experimentName
8917
+ * @property {string|null} [variationName] ExperimentContentMapUpdated variationName
8918
+ * @property {string|null} [contentIdList] ExperimentContentMapUpdated contentIdList
8919
+ */
8920
+
8921
+ /**
8922
+ * Constructs a new ExperimentContentMapUpdated.
8923
+ * @exports ExperimentContentMapUpdated
8924
+ * @classdesc Represents an ExperimentContentMapUpdated.
8925
+ * @implements IExperimentContentMapUpdated
8926
+ * @constructor
8927
+ * @param {IExperimentContentMapUpdated=} [properties] Properties to set
8928
+ */
8929
+ function ExperimentContentMapUpdated(properties) {
8930
+ if (properties)
8931
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8932
+ if (properties[keys[i]] != null)
8933
+ this[keys[i]] = properties[keys[i]];
8934
+ }
8935
+
8936
+ /**
8937
+ * ExperimentContentMapUpdated experimentName.
8938
+ * @member {string} experimentName
8939
+ * @memberof ExperimentContentMapUpdated
8940
+ * @instance
8941
+ */
8942
+ ExperimentContentMapUpdated.prototype.experimentName = "";
8943
+
8944
+ /**
8945
+ * ExperimentContentMapUpdated variationName.
8946
+ * @member {string} variationName
8947
+ * @memberof ExperimentContentMapUpdated
8948
+ * @instance
8949
+ */
8950
+ ExperimentContentMapUpdated.prototype.variationName = "";
8951
+
8952
+ /**
8953
+ * ExperimentContentMapUpdated contentIdList.
8954
+ * @member {string} contentIdList
8955
+ * @memberof ExperimentContentMapUpdated
8956
+ * @instance
8957
+ */
8958
+ ExperimentContentMapUpdated.prototype.contentIdList = "";
8959
+
8960
+ /**
8961
+ * Creates a new ExperimentContentMapUpdated instance using the specified properties.
8962
+ * @function create
8963
+ * @memberof ExperimentContentMapUpdated
8964
+ * @static
8965
+ * @param {IExperimentContentMapUpdated=} [properties] Properties to set
8966
+ * @returns {ExperimentContentMapUpdated} ExperimentContentMapUpdated instance
8967
+ */
8968
+ ExperimentContentMapUpdated.create = function create(properties) {
8969
+ return new ExperimentContentMapUpdated(properties);
8970
+ };
8971
+
8972
+ /**
8973
+ * Encodes the specified ExperimentContentMapUpdated message. Does not implicitly {@link ExperimentContentMapUpdated.verify|verify} messages.
8974
+ * @function encode
8975
+ * @memberof ExperimentContentMapUpdated
8976
+ * @static
8977
+ * @param {IExperimentContentMapUpdated} message ExperimentContentMapUpdated message or plain object to encode
8978
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8979
+ * @returns {$protobuf.Writer} Writer
8980
+ */
8981
+ ExperimentContentMapUpdated.encode = function encode(message, writer) {
8982
+ if (!writer)
8983
+ writer = $Writer.create();
8984
+ if (message.experimentName != null && message.hasOwnProperty("experimentName"))
8985
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.experimentName);
8986
+ if (message.variationName != null && message.hasOwnProperty("variationName"))
8987
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.variationName);
8988
+ if (message.contentIdList != null && message.hasOwnProperty("contentIdList"))
8989
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentIdList);
8990
+ return writer;
8991
+ };
8992
+
8993
+ /**
8994
+ * Encodes the specified ExperimentContentMapUpdated message, length delimited. Does not implicitly {@link ExperimentContentMapUpdated.verify|verify} messages.
8995
+ * @function encodeDelimited
8996
+ * @memberof ExperimentContentMapUpdated
8997
+ * @static
8998
+ * @param {IExperimentContentMapUpdated} message ExperimentContentMapUpdated message or plain object to encode
8999
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9000
+ * @returns {$protobuf.Writer} Writer
9001
+ */
9002
+ ExperimentContentMapUpdated.encodeDelimited = function encodeDelimited(message, writer) {
9003
+ return this.encode(message, writer).ldelim();
9004
+ };
9005
+
9006
+ /**
9007
+ * Decodes an ExperimentContentMapUpdated message from the specified reader or buffer.
9008
+ * @function decode
9009
+ * @memberof ExperimentContentMapUpdated
9010
+ * @static
9011
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9012
+ * @param {number} [length] Message length if known beforehand
9013
+ * @returns {ExperimentContentMapUpdated} ExperimentContentMapUpdated
9014
+ * @throws {Error} If the payload is not a reader or valid buffer
9015
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9016
+ */
9017
+ ExperimentContentMapUpdated.decode = function decode(reader, length) {
9018
+ if (!(reader instanceof $Reader))
9019
+ reader = $Reader.create(reader);
9020
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExperimentContentMapUpdated();
9021
+ while (reader.pos < end) {
9022
+ var tag = reader.uint32();
9023
+ switch (tag >>> 3) {
9024
+ case 1:
9025
+ message.experimentName = reader.string();
9026
+ break;
9027
+ case 2:
9028
+ message.variationName = reader.string();
9029
+ break;
9030
+ case 3:
9031
+ message.contentIdList = reader.string();
9032
+ break;
9033
+ default:
9034
+ reader.skipType(tag & 7);
9035
+ break;
9036
+ }
9037
+ }
9038
+ return message;
9039
+ };
9040
+
9041
+ /**
9042
+ * Decodes an ExperimentContentMapUpdated message from the specified reader or buffer, length delimited.
9043
+ * @function decodeDelimited
9044
+ * @memberof ExperimentContentMapUpdated
9045
+ * @static
9046
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9047
+ * @returns {ExperimentContentMapUpdated} ExperimentContentMapUpdated
9048
+ * @throws {Error} If the payload is not a reader or valid buffer
9049
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9050
+ */
9051
+ ExperimentContentMapUpdated.decodeDelimited = function decodeDelimited(reader) {
9052
+ if (!(reader instanceof $Reader))
9053
+ reader = new $Reader(reader);
9054
+ return this.decode(reader, reader.uint32());
9055
+ };
9056
+
9057
+ /**
9058
+ * Verifies an ExperimentContentMapUpdated message.
9059
+ * @function verify
9060
+ * @memberof ExperimentContentMapUpdated
9061
+ * @static
9062
+ * @param {Object.<string,*>} message Plain object to verify
9063
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9064
+ */
9065
+ ExperimentContentMapUpdated.verify = function verify(message) {
9066
+ if (typeof message !== "object" || message === null)
9067
+ return "object expected";
9068
+ if (message.experimentName != null && message.hasOwnProperty("experimentName"))
9069
+ if (!$util.isString(message.experimentName))
9070
+ return "experimentName: string expected";
9071
+ if (message.variationName != null && message.hasOwnProperty("variationName"))
9072
+ if (!$util.isString(message.variationName))
9073
+ return "variationName: string expected";
9074
+ if (message.contentIdList != null && message.hasOwnProperty("contentIdList"))
9075
+ if (!$util.isString(message.contentIdList))
9076
+ return "contentIdList: string expected";
9077
+ return null;
9078
+ };
9079
+
9080
+ /**
9081
+ * Creates an ExperimentContentMapUpdated message from a plain object. Also converts values to their respective internal types.
9082
+ * @function fromObject
9083
+ * @memberof ExperimentContentMapUpdated
9084
+ * @static
9085
+ * @param {Object.<string,*>} object Plain object
9086
+ * @returns {ExperimentContentMapUpdated} ExperimentContentMapUpdated
9087
+ */
9088
+ ExperimentContentMapUpdated.fromObject = function fromObject(object) {
9089
+ if (object instanceof $root.ExperimentContentMapUpdated)
9090
+ return object;
9091
+ var message = new $root.ExperimentContentMapUpdated();
9092
+ if (object.experimentName != null)
9093
+ message.experimentName = String(object.experimentName);
9094
+ if (object.variationName != null)
9095
+ message.variationName = String(object.variationName);
9096
+ if (object.contentIdList != null)
9097
+ message.contentIdList = String(object.contentIdList);
9098
+ return message;
9099
+ };
9100
+
9101
+ /**
9102
+ * Creates a plain object from an ExperimentContentMapUpdated message. Also converts values to other types if specified.
9103
+ * @function toObject
9104
+ * @memberof ExperimentContentMapUpdated
9105
+ * @static
9106
+ * @param {ExperimentContentMapUpdated} message ExperimentContentMapUpdated
9107
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9108
+ * @returns {Object.<string,*>} Plain object
9109
+ */
9110
+ ExperimentContentMapUpdated.toObject = function toObject(message, options) {
9111
+ if (!options)
9112
+ options = {};
9113
+ var object = {};
9114
+ if (options.defaults) {
9115
+ object.experimentName = "";
9116
+ object.variationName = "";
9117
+ object.contentIdList = "";
9118
+ }
9119
+ if (message.experimentName != null && message.hasOwnProperty("experimentName"))
9120
+ object.experimentName = message.experimentName;
9121
+ if (message.variationName != null && message.hasOwnProperty("variationName"))
9122
+ object.variationName = message.variationName;
9123
+ if (message.contentIdList != null && message.hasOwnProperty("contentIdList"))
9124
+ object.contentIdList = message.contentIdList;
9125
+ return object;
9126
+ };
9127
+
9128
+ /**
9129
+ * Converts this ExperimentContentMapUpdated to JSON.
9130
+ * @function toJSON
9131
+ * @memberof ExperimentContentMapUpdated
9132
+ * @instance
9133
+ * @returns {Object.<string,*>} JSON object
9134
+ */
9135
+ ExperimentContentMapUpdated.prototype.toJSON = function toJSON() {
9136
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9137
+ };
9138
+
9139
+ return ExperimentContentMapUpdated;
9140
+ })();
9141
+
8678
9142
  $root.ReferralSignedUp = (function() {
8679
9143
 
8680
9144
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.63.0"
19
+ "version": "1.64.0"
20
20
  }