@headspace/protos-events 1.713.0 → 1.715.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 +644 -0
  2. package/lib/index.js +1634 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -87481,6 +87481,1104 @@ $root.AuthEmailVerificationUpdated = (function() {
87481
87481
  return AuthEmailVerificationUpdated;
87482
87482
  })();
87483
87483
 
87484
+ /**
87485
+ * CoverageResetCadence enum.
87486
+ * @name CoverageResetCadence
87487
+ * @enum {string}
87488
+ * @property {number} COVERAGE_RESET_CADENCE_UNKNOWN=0 COVERAGE_RESET_CADENCE_UNKNOWN value
87489
+ * @property {number} COVERAGE_RESET_CADENCE_MONTHLY=1 COVERAGE_RESET_CADENCE_MONTHLY value
87490
+ * @property {number} COVERAGE_RESET_CADENCE_BIANNUAL=2 COVERAGE_RESET_CADENCE_BIANNUAL value
87491
+ * @property {number} COVERAGE_RESET_CADENCE_ANNUAL=3 COVERAGE_RESET_CADENCE_ANNUAL value
87492
+ */
87493
+ $root.CoverageResetCadence = (function() {
87494
+ var valuesById = {}, values = Object.create(valuesById);
87495
+ values[valuesById[0] = "COVERAGE_RESET_CADENCE_UNKNOWN"] = 0;
87496
+ values[valuesById[1] = "COVERAGE_RESET_CADENCE_MONTHLY"] = 1;
87497
+ values[valuesById[2] = "COVERAGE_RESET_CADENCE_BIANNUAL"] = 2;
87498
+ values[valuesById[3] = "COVERAGE_RESET_CADENCE_ANNUAL"] = 3;
87499
+ return values;
87500
+ })();
87501
+
87502
+ $root.CoachingConfig = (function() {
87503
+
87504
+ /**
87505
+ * Properties of a CoachingConfig.
87506
+ * @name ICoachingConfig
87507
+ * @interface ICoachingConfig
87508
+ * @property {number|null} [coachingConfigId] CoachingConfig coachingConfigId
87509
+ * @property {number|null} [orgId] CoachingConfig orgId
87510
+ * @property {number|null} [orgSubscriptionId] CoachingConfig orgSubscriptionId
87511
+ * @property {boolean|null} [isVideoCoachingEnabled] CoachingConfig isVideoCoachingEnabled
87512
+ * @property {number|Long|null} [coverageStartDate] CoachingConfig coverageStartDate
87513
+ * @property {number|Long|null} [coverageEndDate] CoachingConfig coverageEndDate
87514
+ * @property {number|null} [sessionCap] CoachingConfig sessionCap
87515
+ * @property {CoverageResetCadence|null} [coverageResetCadence] CoachingConfig coverageResetCadence
87516
+ */
87517
+
87518
+ /**
87519
+ * Constructs a new CoachingConfig.
87520
+ * @name CoachingConfig
87521
+ * @classdesc Represents a CoachingConfig.
87522
+ * @implements ICoachingConfig
87523
+ * @constructor
87524
+ * @param {ICoachingConfig=} [properties] Properties to set
87525
+ */
87526
+ function CoachingConfig(properties) {
87527
+ if (properties)
87528
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
87529
+ if (properties[keys[i]] != null)
87530
+ this[keys[i]] = properties[keys[i]];
87531
+ }
87532
+
87533
+ /**
87534
+ * CoachingConfig coachingConfigId.
87535
+ * @member {number} coachingConfigId
87536
+ * @memberof CoachingConfig
87537
+ * @instance
87538
+ */
87539
+ CoachingConfig.prototype.coachingConfigId = 0;
87540
+
87541
+ /**
87542
+ * CoachingConfig orgId.
87543
+ * @member {number} orgId
87544
+ * @memberof CoachingConfig
87545
+ * @instance
87546
+ */
87547
+ CoachingConfig.prototype.orgId = 0;
87548
+
87549
+ /**
87550
+ * CoachingConfig orgSubscriptionId.
87551
+ * @member {number} orgSubscriptionId
87552
+ * @memberof CoachingConfig
87553
+ * @instance
87554
+ */
87555
+ CoachingConfig.prototype.orgSubscriptionId = 0;
87556
+
87557
+ /**
87558
+ * CoachingConfig isVideoCoachingEnabled.
87559
+ * @member {boolean} isVideoCoachingEnabled
87560
+ * @memberof CoachingConfig
87561
+ * @instance
87562
+ */
87563
+ CoachingConfig.prototype.isVideoCoachingEnabled = false;
87564
+
87565
+ /**
87566
+ * CoachingConfig coverageStartDate.
87567
+ * @member {number|Long} coverageStartDate
87568
+ * @memberof CoachingConfig
87569
+ * @instance
87570
+ */
87571
+ CoachingConfig.prototype.coverageStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
87572
+
87573
+ /**
87574
+ * CoachingConfig coverageEndDate.
87575
+ * @member {number|Long} coverageEndDate
87576
+ * @memberof CoachingConfig
87577
+ * @instance
87578
+ */
87579
+ CoachingConfig.prototype.coverageEndDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
87580
+
87581
+ /**
87582
+ * CoachingConfig sessionCap.
87583
+ * @member {number} sessionCap
87584
+ * @memberof CoachingConfig
87585
+ * @instance
87586
+ */
87587
+ CoachingConfig.prototype.sessionCap = 0;
87588
+
87589
+ /**
87590
+ * CoachingConfig coverageResetCadence.
87591
+ * @member {CoverageResetCadence} coverageResetCadence
87592
+ * @memberof CoachingConfig
87593
+ * @instance
87594
+ */
87595
+ CoachingConfig.prototype.coverageResetCadence = 0;
87596
+
87597
+ /**
87598
+ * Creates a new CoachingConfig instance using the specified properties.
87599
+ * @function create
87600
+ * @memberof CoachingConfig
87601
+ * @static
87602
+ * @param {ICoachingConfig=} [properties] Properties to set
87603
+ * @returns {CoachingConfig} CoachingConfig instance
87604
+ */
87605
+ CoachingConfig.create = function create(properties) {
87606
+ return new CoachingConfig(properties);
87607
+ };
87608
+
87609
+ /**
87610
+ * Encodes the specified CoachingConfig message. Does not implicitly {@link CoachingConfig.verify|verify} messages.
87611
+ * @function encode
87612
+ * @memberof CoachingConfig
87613
+ * @static
87614
+ * @param {ICoachingConfig} message CoachingConfig message or plain object to encode
87615
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87616
+ * @returns {$protobuf.Writer} Writer
87617
+ */
87618
+ CoachingConfig.encode = function encode(message, writer) {
87619
+ if (!writer)
87620
+ writer = $Writer.create();
87621
+ if (message.coachingConfigId != null && message.hasOwnProperty("coachingConfigId"))
87622
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.coachingConfigId);
87623
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
87624
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.orgId);
87625
+ if (message.orgSubscriptionId != null && message.hasOwnProperty("orgSubscriptionId"))
87626
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.orgSubscriptionId);
87627
+ if (message.isVideoCoachingEnabled != null && message.hasOwnProperty("isVideoCoachingEnabled"))
87628
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isVideoCoachingEnabled);
87629
+ if (message.coverageStartDate != null && message.hasOwnProperty("coverageStartDate"))
87630
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.coverageStartDate);
87631
+ if (message.coverageEndDate != null && message.hasOwnProperty("coverageEndDate"))
87632
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.coverageEndDate);
87633
+ if (message.sessionCap != null && message.hasOwnProperty("sessionCap"))
87634
+ writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.sessionCap);
87635
+ if (message.coverageResetCadence != null && message.hasOwnProperty("coverageResetCadence"))
87636
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.coverageResetCadence);
87637
+ return writer;
87638
+ };
87639
+
87640
+ /**
87641
+ * Encodes the specified CoachingConfig message, length delimited. Does not implicitly {@link CoachingConfig.verify|verify} messages.
87642
+ * @function encodeDelimited
87643
+ * @memberof CoachingConfig
87644
+ * @static
87645
+ * @param {ICoachingConfig} message CoachingConfig message or plain object to encode
87646
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87647
+ * @returns {$protobuf.Writer} Writer
87648
+ */
87649
+ CoachingConfig.encodeDelimited = function encodeDelimited(message, writer) {
87650
+ return this.encode(message, writer).ldelim();
87651
+ };
87652
+
87653
+ /**
87654
+ * Decodes a CoachingConfig message from the specified reader or buffer.
87655
+ * @function decode
87656
+ * @memberof CoachingConfig
87657
+ * @static
87658
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87659
+ * @param {number} [length] Message length if known beforehand
87660
+ * @returns {CoachingConfig} CoachingConfig
87661
+ * @throws {Error} If the payload is not a reader or valid buffer
87662
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87663
+ */
87664
+ CoachingConfig.decode = function decode(reader, length) {
87665
+ if (!(reader instanceof $Reader))
87666
+ reader = $Reader.create(reader);
87667
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CoachingConfig();
87668
+ while (reader.pos < end) {
87669
+ var tag = reader.uint32();
87670
+ switch (tag >>> 3) {
87671
+ case 1:
87672
+ message.coachingConfigId = reader.uint32();
87673
+ break;
87674
+ case 2:
87675
+ message.orgId = reader.uint32();
87676
+ break;
87677
+ case 3:
87678
+ message.orgSubscriptionId = reader.uint32();
87679
+ break;
87680
+ case 4:
87681
+ message.isVideoCoachingEnabled = reader.bool();
87682
+ break;
87683
+ case 5:
87684
+ message.coverageStartDate = reader.uint64();
87685
+ break;
87686
+ case 6:
87687
+ message.coverageEndDate = reader.uint64();
87688
+ break;
87689
+ case 7:
87690
+ message.sessionCap = reader.uint32();
87691
+ break;
87692
+ case 8:
87693
+ message.coverageResetCadence = reader.int32();
87694
+ break;
87695
+ default:
87696
+ reader.skipType(tag & 7);
87697
+ break;
87698
+ }
87699
+ }
87700
+ return message;
87701
+ };
87702
+
87703
+ /**
87704
+ * Decodes a CoachingConfig message from the specified reader or buffer, length delimited.
87705
+ * @function decodeDelimited
87706
+ * @memberof CoachingConfig
87707
+ * @static
87708
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87709
+ * @returns {CoachingConfig} CoachingConfig
87710
+ * @throws {Error} If the payload is not a reader or valid buffer
87711
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87712
+ */
87713
+ CoachingConfig.decodeDelimited = function decodeDelimited(reader) {
87714
+ if (!(reader instanceof $Reader))
87715
+ reader = new $Reader(reader);
87716
+ return this.decode(reader, reader.uint32());
87717
+ };
87718
+
87719
+ /**
87720
+ * Verifies a CoachingConfig message.
87721
+ * @function verify
87722
+ * @memberof CoachingConfig
87723
+ * @static
87724
+ * @param {Object.<string,*>} message Plain object to verify
87725
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
87726
+ */
87727
+ CoachingConfig.verify = function verify(message) {
87728
+ if (typeof message !== "object" || message === null)
87729
+ return "object expected";
87730
+ if (message.coachingConfigId != null && message.hasOwnProperty("coachingConfigId"))
87731
+ if (!$util.isInteger(message.coachingConfigId))
87732
+ return "coachingConfigId: integer expected";
87733
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
87734
+ if (!$util.isInteger(message.orgId))
87735
+ return "orgId: integer expected";
87736
+ if (message.orgSubscriptionId != null && message.hasOwnProperty("orgSubscriptionId"))
87737
+ if (!$util.isInteger(message.orgSubscriptionId))
87738
+ return "orgSubscriptionId: integer expected";
87739
+ if (message.isVideoCoachingEnabled != null && message.hasOwnProperty("isVideoCoachingEnabled"))
87740
+ if (typeof message.isVideoCoachingEnabled !== "boolean")
87741
+ return "isVideoCoachingEnabled: boolean expected";
87742
+ if (message.coverageStartDate != null && message.hasOwnProperty("coverageStartDate"))
87743
+ if (!$util.isInteger(message.coverageStartDate) && !(message.coverageStartDate && $util.isInteger(message.coverageStartDate.low) && $util.isInteger(message.coverageStartDate.high)))
87744
+ return "coverageStartDate: integer|Long expected";
87745
+ if (message.coverageEndDate != null && message.hasOwnProperty("coverageEndDate"))
87746
+ if (!$util.isInteger(message.coverageEndDate) && !(message.coverageEndDate && $util.isInteger(message.coverageEndDate.low) && $util.isInteger(message.coverageEndDate.high)))
87747
+ return "coverageEndDate: integer|Long expected";
87748
+ if (message.sessionCap != null && message.hasOwnProperty("sessionCap"))
87749
+ if (!$util.isInteger(message.sessionCap))
87750
+ return "sessionCap: integer expected";
87751
+ if (message.coverageResetCadence != null && message.hasOwnProperty("coverageResetCadence"))
87752
+ switch (message.coverageResetCadence) {
87753
+ default:
87754
+ return "coverageResetCadence: enum value expected";
87755
+ case 0:
87756
+ case 1:
87757
+ case 2:
87758
+ case 3:
87759
+ break;
87760
+ }
87761
+ return null;
87762
+ };
87763
+
87764
+ /**
87765
+ * Creates a CoachingConfig message from a plain object. Also converts values to their respective internal types.
87766
+ * @function fromObject
87767
+ * @memberof CoachingConfig
87768
+ * @static
87769
+ * @param {Object.<string,*>} object Plain object
87770
+ * @returns {CoachingConfig} CoachingConfig
87771
+ */
87772
+ CoachingConfig.fromObject = function fromObject(object) {
87773
+ if (object instanceof $root.CoachingConfig)
87774
+ return object;
87775
+ var message = new $root.CoachingConfig();
87776
+ if (object.coachingConfigId != null)
87777
+ message.coachingConfigId = object.coachingConfigId >>> 0;
87778
+ if (object.orgId != null)
87779
+ message.orgId = object.orgId >>> 0;
87780
+ if (object.orgSubscriptionId != null)
87781
+ message.orgSubscriptionId = object.orgSubscriptionId >>> 0;
87782
+ if (object.isVideoCoachingEnabled != null)
87783
+ message.isVideoCoachingEnabled = Boolean(object.isVideoCoachingEnabled);
87784
+ if (object.coverageStartDate != null)
87785
+ if ($util.Long)
87786
+ (message.coverageStartDate = $util.Long.fromValue(object.coverageStartDate)).unsigned = true;
87787
+ else if (typeof object.coverageStartDate === "string")
87788
+ message.coverageStartDate = parseInt(object.coverageStartDate, 10);
87789
+ else if (typeof object.coverageStartDate === "number")
87790
+ message.coverageStartDate = object.coverageStartDate;
87791
+ else if (typeof object.coverageStartDate === "object")
87792
+ message.coverageStartDate = new $util.LongBits(object.coverageStartDate.low >>> 0, object.coverageStartDate.high >>> 0).toNumber(true);
87793
+ if (object.coverageEndDate != null)
87794
+ if ($util.Long)
87795
+ (message.coverageEndDate = $util.Long.fromValue(object.coverageEndDate)).unsigned = true;
87796
+ else if (typeof object.coverageEndDate === "string")
87797
+ message.coverageEndDate = parseInt(object.coverageEndDate, 10);
87798
+ else if (typeof object.coverageEndDate === "number")
87799
+ message.coverageEndDate = object.coverageEndDate;
87800
+ else if (typeof object.coverageEndDate === "object")
87801
+ message.coverageEndDate = new $util.LongBits(object.coverageEndDate.low >>> 0, object.coverageEndDate.high >>> 0).toNumber(true);
87802
+ if (object.sessionCap != null)
87803
+ message.sessionCap = object.sessionCap >>> 0;
87804
+ switch (object.coverageResetCadence) {
87805
+ case "COVERAGE_RESET_CADENCE_UNKNOWN":
87806
+ case 0:
87807
+ message.coverageResetCadence = 0;
87808
+ break;
87809
+ case "COVERAGE_RESET_CADENCE_MONTHLY":
87810
+ case 1:
87811
+ message.coverageResetCadence = 1;
87812
+ break;
87813
+ case "COVERAGE_RESET_CADENCE_BIANNUAL":
87814
+ case 2:
87815
+ message.coverageResetCadence = 2;
87816
+ break;
87817
+ case "COVERAGE_RESET_CADENCE_ANNUAL":
87818
+ case 3:
87819
+ message.coverageResetCadence = 3;
87820
+ break;
87821
+ }
87822
+ return message;
87823
+ };
87824
+
87825
+ /**
87826
+ * Creates a plain object from a CoachingConfig message. Also converts values to other types if specified.
87827
+ * @function toObject
87828
+ * @memberof CoachingConfig
87829
+ * @static
87830
+ * @param {CoachingConfig} message CoachingConfig
87831
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
87832
+ * @returns {Object.<string,*>} Plain object
87833
+ */
87834
+ CoachingConfig.toObject = function toObject(message, options) {
87835
+ if (!options)
87836
+ options = {};
87837
+ var object = {};
87838
+ if (options.defaults) {
87839
+ object.coachingConfigId = 0;
87840
+ object.orgId = 0;
87841
+ object.orgSubscriptionId = 0;
87842
+ object.isVideoCoachingEnabled = false;
87843
+ if ($util.Long) {
87844
+ var long = new $util.Long(0, 0, true);
87845
+ object.coverageStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
87846
+ } else
87847
+ object.coverageStartDate = options.longs === String ? "0" : 0;
87848
+ if ($util.Long) {
87849
+ var long = new $util.Long(0, 0, true);
87850
+ object.coverageEndDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
87851
+ } else
87852
+ object.coverageEndDate = options.longs === String ? "0" : 0;
87853
+ object.sessionCap = 0;
87854
+ object.coverageResetCadence = options.enums === String ? "COVERAGE_RESET_CADENCE_UNKNOWN" : 0;
87855
+ }
87856
+ if (message.coachingConfigId != null && message.hasOwnProperty("coachingConfigId"))
87857
+ object.coachingConfigId = message.coachingConfigId;
87858
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
87859
+ object.orgId = message.orgId;
87860
+ if (message.orgSubscriptionId != null && message.hasOwnProperty("orgSubscriptionId"))
87861
+ object.orgSubscriptionId = message.orgSubscriptionId;
87862
+ if (message.isVideoCoachingEnabled != null && message.hasOwnProperty("isVideoCoachingEnabled"))
87863
+ object.isVideoCoachingEnabled = message.isVideoCoachingEnabled;
87864
+ if (message.coverageStartDate != null && message.hasOwnProperty("coverageStartDate"))
87865
+ if (typeof message.coverageStartDate === "number")
87866
+ object.coverageStartDate = options.longs === String ? String(message.coverageStartDate) : message.coverageStartDate;
87867
+ else
87868
+ object.coverageStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.coverageStartDate) : options.longs === Number ? new $util.LongBits(message.coverageStartDate.low >>> 0, message.coverageStartDate.high >>> 0).toNumber(true) : message.coverageStartDate;
87869
+ if (message.coverageEndDate != null && message.hasOwnProperty("coverageEndDate"))
87870
+ if (typeof message.coverageEndDate === "number")
87871
+ object.coverageEndDate = options.longs === String ? String(message.coverageEndDate) : message.coverageEndDate;
87872
+ else
87873
+ object.coverageEndDate = options.longs === String ? $util.Long.prototype.toString.call(message.coverageEndDate) : options.longs === Number ? new $util.LongBits(message.coverageEndDate.low >>> 0, message.coverageEndDate.high >>> 0).toNumber(true) : message.coverageEndDate;
87874
+ if (message.sessionCap != null && message.hasOwnProperty("sessionCap"))
87875
+ object.sessionCap = message.sessionCap;
87876
+ if (message.coverageResetCadence != null && message.hasOwnProperty("coverageResetCadence"))
87877
+ object.coverageResetCadence = options.enums === String ? $root.CoverageResetCadence[message.coverageResetCadence] : message.coverageResetCadence;
87878
+ return object;
87879
+ };
87880
+
87881
+ /**
87882
+ * Converts this CoachingConfig to JSON.
87883
+ * @function toJSON
87884
+ * @memberof CoachingConfig
87885
+ * @instance
87886
+ * @returns {Object.<string,*>} JSON object
87887
+ */
87888
+ CoachingConfig.prototype.toJSON = function toJSON() {
87889
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
87890
+ };
87891
+
87892
+ return CoachingConfig;
87893
+ })();
87894
+
87895
+ $root.CoachingConfigCreated = (function() {
87896
+
87897
+ /**
87898
+ * Properties of a CoachingConfigCreated.
87899
+ * @name ICoachingConfigCreated
87900
+ * @interface ICoachingConfigCreated
87901
+ * @property {ICoachingConfig|null} [coachingConfig] CoachingConfigCreated coachingConfig
87902
+ * @property {number|Long|null} [timestamp] CoachingConfigCreated timestamp
87903
+ */
87904
+
87905
+ /**
87906
+ * Constructs a new CoachingConfigCreated.
87907
+ * @name CoachingConfigCreated
87908
+ * @classdesc Represents a CoachingConfigCreated.
87909
+ * @implements ICoachingConfigCreated
87910
+ * @constructor
87911
+ * @param {ICoachingConfigCreated=} [properties] Properties to set
87912
+ */
87913
+ function CoachingConfigCreated(properties) {
87914
+ if (properties)
87915
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
87916
+ if (properties[keys[i]] != null)
87917
+ this[keys[i]] = properties[keys[i]];
87918
+ }
87919
+
87920
+ /**
87921
+ * CoachingConfigCreated coachingConfig.
87922
+ * @member {ICoachingConfig|null|undefined} coachingConfig
87923
+ * @memberof CoachingConfigCreated
87924
+ * @instance
87925
+ */
87926
+ CoachingConfigCreated.prototype.coachingConfig = null;
87927
+
87928
+ /**
87929
+ * CoachingConfigCreated timestamp.
87930
+ * @member {number|Long} timestamp
87931
+ * @memberof CoachingConfigCreated
87932
+ * @instance
87933
+ */
87934
+ CoachingConfigCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
87935
+
87936
+ /**
87937
+ * Creates a new CoachingConfigCreated instance using the specified properties.
87938
+ * @function create
87939
+ * @memberof CoachingConfigCreated
87940
+ * @static
87941
+ * @param {ICoachingConfigCreated=} [properties] Properties to set
87942
+ * @returns {CoachingConfigCreated} CoachingConfigCreated instance
87943
+ */
87944
+ CoachingConfigCreated.create = function create(properties) {
87945
+ return new CoachingConfigCreated(properties);
87946
+ };
87947
+
87948
+ /**
87949
+ * Encodes the specified CoachingConfigCreated message. Does not implicitly {@link CoachingConfigCreated.verify|verify} messages.
87950
+ * @function encode
87951
+ * @memberof CoachingConfigCreated
87952
+ * @static
87953
+ * @param {ICoachingConfigCreated} message CoachingConfigCreated message or plain object to encode
87954
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87955
+ * @returns {$protobuf.Writer} Writer
87956
+ */
87957
+ CoachingConfigCreated.encode = function encode(message, writer) {
87958
+ if (!writer)
87959
+ writer = $Writer.create();
87960
+ if (message.coachingConfig != null && message.hasOwnProperty("coachingConfig"))
87961
+ $root.CoachingConfig.encode(message.coachingConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
87962
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
87963
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
87964
+ return writer;
87965
+ };
87966
+
87967
+ /**
87968
+ * Encodes the specified CoachingConfigCreated message, length delimited. Does not implicitly {@link CoachingConfigCreated.verify|verify} messages.
87969
+ * @function encodeDelimited
87970
+ * @memberof CoachingConfigCreated
87971
+ * @static
87972
+ * @param {ICoachingConfigCreated} message CoachingConfigCreated message or plain object to encode
87973
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87974
+ * @returns {$protobuf.Writer} Writer
87975
+ */
87976
+ CoachingConfigCreated.encodeDelimited = function encodeDelimited(message, writer) {
87977
+ return this.encode(message, writer).ldelim();
87978
+ };
87979
+
87980
+ /**
87981
+ * Decodes a CoachingConfigCreated message from the specified reader or buffer.
87982
+ * @function decode
87983
+ * @memberof CoachingConfigCreated
87984
+ * @static
87985
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87986
+ * @param {number} [length] Message length if known beforehand
87987
+ * @returns {CoachingConfigCreated} CoachingConfigCreated
87988
+ * @throws {Error} If the payload is not a reader or valid buffer
87989
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87990
+ */
87991
+ CoachingConfigCreated.decode = function decode(reader, length) {
87992
+ if (!(reader instanceof $Reader))
87993
+ reader = $Reader.create(reader);
87994
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CoachingConfigCreated();
87995
+ while (reader.pos < end) {
87996
+ var tag = reader.uint32();
87997
+ switch (tag >>> 3) {
87998
+ case 1:
87999
+ message.coachingConfig = $root.CoachingConfig.decode(reader, reader.uint32());
88000
+ break;
88001
+ case 2:
88002
+ message.timestamp = reader.uint64();
88003
+ break;
88004
+ default:
88005
+ reader.skipType(tag & 7);
88006
+ break;
88007
+ }
88008
+ }
88009
+ return message;
88010
+ };
88011
+
88012
+ /**
88013
+ * Decodes a CoachingConfigCreated message from the specified reader or buffer, length delimited.
88014
+ * @function decodeDelimited
88015
+ * @memberof CoachingConfigCreated
88016
+ * @static
88017
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
88018
+ * @returns {CoachingConfigCreated} CoachingConfigCreated
88019
+ * @throws {Error} If the payload is not a reader or valid buffer
88020
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88021
+ */
88022
+ CoachingConfigCreated.decodeDelimited = function decodeDelimited(reader) {
88023
+ if (!(reader instanceof $Reader))
88024
+ reader = new $Reader(reader);
88025
+ return this.decode(reader, reader.uint32());
88026
+ };
88027
+
88028
+ /**
88029
+ * Verifies a CoachingConfigCreated message.
88030
+ * @function verify
88031
+ * @memberof CoachingConfigCreated
88032
+ * @static
88033
+ * @param {Object.<string,*>} message Plain object to verify
88034
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
88035
+ */
88036
+ CoachingConfigCreated.verify = function verify(message) {
88037
+ if (typeof message !== "object" || message === null)
88038
+ return "object expected";
88039
+ if (message.coachingConfig != null && message.hasOwnProperty("coachingConfig")) {
88040
+ var error = $root.CoachingConfig.verify(message.coachingConfig);
88041
+ if (error)
88042
+ return "coachingConfig." + error;
88043
+ }
88044
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88045
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
88046
+ return "timestamp: integer|Long expected";
88047
+ return null;
88048
+ };
88049
+
88050
+ /**
88051
+ * Creates a CoachingConfigCreated message from a plain object. Also converts values to their respective internal types.
88052
+ * @function fromObject
88053
+ * @memberof CoachingConfigCreated
88054
+ * @static
88055
+ * @param {Object.<string,*>} object Plain object
88056
+ * @returns {CoachingConfigCreated} CoachingConfigCreated
88057
+ */
88058
+ CoachingConfigCreated.fromObject = function fromObject(object) {
88059
+ if (object instanceof $root.CoachingConfigCreated)
88060
+ return object;
88061
+ var message = new $root.CoachingConfigCreated();
88062
+ if (object.coachingConfig != null) {
88063
+ if (typeof object.coachingConfig !== "object")
88064
+ throw TypeError(".CoachingConfigCreated.coachingConfig: object expected");
88065
+ message.coachingConfig = $root.CoachingConfig.fromObject(object.coachingConfig);
88066
+ }
88067
+ if (object.timestamp != null)
88068
+ if ($util.Long)
88069
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
88070
+ else if (typeof object.timestamp === "string")
88071
+ message.timestamp = parseInt(object.timestamp, 10);
88072
+ else if (typeof object.timestamp === "number")
88073
+ message.timestamp = object.timestamp;
88074
+ else if (typeof object.timestamp === "object")
88075
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
88076
+ return message;
88077
+ };
88078
+
88079
+ /**
88080
+ * Creates a plain object from a CoachingConfigCreated message. Also converts values to other types if specified.
88081
+ * @function toObject
88082
+ * @memberof CoachingConfigCreated
88083
+ * @static
88084
+ * @param {CoachingConfigCreated} message CoachingConfigCreated
88085
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
88086
+ * @returns {Object.<string,*>} Plain object
88087
+ */
88088
+ CoachingConfigCreated.toObject = function toObject(message, options) {
88089
+ if (!options)
88090
+ options = {};
88091
+ var object = {};
88092
+ if (options.defaults) {
88093
+ object.coachingConfig = null;
88094
+ if ($util.Long) {
88095
+ var long = new $util.Long(0, 0, true);
88096
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
88097
+ } else
88098
+ object.timestamp = options.longs === String ? "0" : 0;
88099
+ }
88100
+ if (message.coachingConfig != null && message.hasOwnProperty("coachingConfig"))
88101
+ object.coachingConfig = $root.CoachingConfig.toObject(message.coachingConfig, options);
88102
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88103
+ if (typeof message.timestamp === "number")
88104
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
88105
+ else
88106
+ 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;
88107
+ return object;
88108
+ };
88109
+
88110
+ /**
88111
+ * Converts this CoachingConfigCreated to JSON.
88112
+ * @function toJSON
88113
+ * @memberof CoachingConfigCreated
88114
+ * @instance
88115
+ * @returns {Object.<string,*>} JSON object
88116
+ */
88117
+ CoachingConfigCreated.prototype.toJSON = function toJSON() {
88118
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
88119
+ };
88120
+
88121
+ return CoachingConfigCreated;
88122
+ })();
88123
+
88124
+ $root.CoachingConfigUpdated = (function() {
88125
+
88126
+ /**
88127
+ * Properties of a CoachingConfigUpdated.
88128
+ * @name ICoachingConfigUpdated
88129
+ * @interface ICoachingConfigUpdated
88130
+ * @property {ICoachingConfig|null} [coachingConfig] CoachingConfigUpdated coachingConfig
88131
+ * @property {number|Long|null} [timestamp] CoachingConfigUpdated timestamp
88132
+ */
88133
+
88134
+ /**
88135
+ * Constructs a new CoachingConfigUpdated.
88136
+ * @name CoachingConfigUpdated
88137
+ * @classdesc Represents a CoachingConfigUpdated.
88138
+ * @implements ICoachingConfigUpdated
88139
+ * @constructor
88140
+ * @param {ICoachingConfigUpdated=} [properties] Properties to set
88141
+ */
88142
+ function CoachingConfigUpdated(properties) {
88143
+ if (properties)
88144
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
88145
+ if (properties[keys[i]] != null)
88146
+ this[keys[i]] = properties[keys[i]];
88147
+ }
88148
+
88149
+ /**
88150
+ * CoachingConfigUpdated coachingConfig.
88151
+ * @member {ICoachingConfig|null|undefined} coachingConfig
88152
+ * @memberof CoachingConfigUpdated
88153
+ * @instance
88154
+ */
88155
+ CoachingConfigUpdated.prototype.coachingConfig = null;
88156
+
88157
+ /**
88158
+ * CoachingConfigUpdated timestamp.
88159
+ * @member {number|Long} timestamp
88160
+ * @memberof CoachingConfigUpdated
88161
+ * @instance
88162
+ */
88163
+ CoachingConfigUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
88164
+
88165
+ /**
88166
+ * Creates a new CoachingConfigUpdated instance using the specified properties.
88167
+ * @function create
88168
+ * @memberof CoachingConfigUpdated
88169
+ * @static
88170
+ * @param {ICoachingConfigUpdated=} [properties] Properties to set
88171
+ * @returns {CoachingConfigUpdated} CoachingConfigUpdated instance
88172
+ */
88173
+ CoachingConfigUpdated.create = function create(properties) {
88174
+ return new CoachingConfigUpdated(properties);
88175
+ };
88176
+
88177
+ /**
88178
+ * Encodes the specified CoachingConfigUpdated message. Does not implicitly {@link CoachingConfigUpdated.verify|verify} messages.
88179
+ * @function encode
88180
+ * @memberof CoachingConfigUpdated
88181
+ * @static
88182
+ * @param {ICoachingConfigUpdated} message CoachingConfigUpdated message or plain object to encode
88183
+ * @param {$protobuf.Writer} [writer] Writer to encode to
88184
+ * @returns {$protobuf.Writer} Writer
88185
+ */
88186
+ CoachingConfigUpdated.encode = function encode(message, writer) {
88187
+ if (!writer)
88188
+ writer = $Writer.create();
88189
+ if (message.coachingConfig != null && message.hasOwnProperty("coachingConfig"))
88190
+ $root.CoachingConfig.encode(message.coachingConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
88191
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88192
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
88193
+ return writer;
88194
+ };
88195
+
88196
+ /**
88197
+ * Encodes the specified CoachingConfigUpdated message, length delimited. Does not implicitly {@link CoachingConfigUpdated.verify|verify} messages.
88198
+ * @function encodeDelimited
88199
+ * @memberof CoachingConfigUpdated
88200
+ * @static
88201
+ * @param {ICoachingConfigUpdated} message CoachingConfigUpdated message or plain object to encode
88202
+ * @param {$protobuf.Writer} [writer] Writer to encode to
88203
+ * @returns {$protobuf.Writer} Writer
88204
+ */
88205
+ CoachingConfigUpdated.encodeDelimited = function encodeDelimited(message, writer) {
88206
+ return this.encode(message, writer).ldelim();
88207
+ };
88208
+
88209
+ /**
88210
+ * Decodes a CoachingConfigUpdated message from the specified reader or buffer.
88211
+ * @function decode
88212
+ * @memberof CoachingConfigUpdated
88213
+ * @static
88214
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
88215
+ * @param {number} [length] Message length if known beforehand
88216
+ * @returns {CoachingConfigUpdated} CoachingConfigUpdated
88217
+ * @throws {Error} If the payload is not a reader or valid buffer
88218
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88219
+ */
88220
+ CoachingConfigUpdated.decode = function decode(reader, length) {
88221
+ if (!(reader instanceof $Reader))
88222
+ reader = $Reader.create(reader);
88223
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CoachingConfigUpdated();
88224
+ while (reader.pos < end) {
88225
+ var tag = reader.uint32();
88226
+ switch (tag >>> 3) {
88227
+ case 1:
88228
+ message.coachingConfig = $root.CoachingConfig.decode(reader, reader.uint32());
88229
+ break;
88230
+ case 2:
88231
+ message.timestamp = reader.uint64();
88232
+ break;
88233
+ default:
88234
+ reader.skipType(tag & 7);
88235
+ break;
88236
+ }
88237
+ }
88238
+ return message;
88239
+ };
88240
+
88241
+ /**
88242
+ * Decodes a CoachingConfigUpdated message from the specified reader or buffer, length delimited.
88243
+ * @function decodeDelimited
88244
+ * @memberof CoachingConfigUpdated
88245
+ * @static
88246
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
88247
+ * @returns {CoachingConfigUpdated} CoachingConfigUpdated
88248
+ * @throws {Error} If the payload is not a reader or valid buffer
88249
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88250
+ */
88251
+ CoachingConfigUpdated.decodeDelimited = function decodeDelimited(reader) {
88252
+ if (!(reader instanceof $Reader))
88253
+ reader = new $Reader(reader);
88254
+ return this.decode(reader, reader.uint32());
88255
+ };
88256
+
88257
+ /**
88258
+ * Verifies a CoachingConfigUpdated message.
88259
+ * @function verify
88260
+ * @memberof CoachingConfigUpdated
88261
+ * @static
88262
+ * @param {Object.<string,*>} message Plain object to verify
88263
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
88264
+ */
88265
+ CoachingConfigUpdated.verify = function verify(message) {
88266
+ if (typeof message !== "object" || message === null)
88267
+ return "object expected";
88268
+ if (message.coachingConfig != null && message.hasOwnProperty("coachingConfig")) {
88269
+ var error = $root.CoachingConfig.verify(message.coachingConfig);
88270
+ if (error)
88271
+ return "coachingConfig." + error;
88272
+ }
88273
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88274
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
88275
+ return "timestamp: integer|Long expected";
88276
+ return null;
88277
+ };
88278
+
88279
+ /**
88280
+ * Creates a CoachingConfigUpdated message from a plain object. Also converts values to their respective internal types.
88281
+ * @function fromObject
88282
+ * @memberof CoachingConfigUpdated
88283
+ * @static
88284
+ * @param {Object.<string,*>} object Plain object
88285
+ * @returns {CoachingConfigUpdated} CoachingConfigUpdated
88286
+ */
88287
+ CoachingConfigUpdated.fromObject = function fromObject(object) {
88288
+ if (object instanceof $root.CoachingConfigUpdated)
88289
+ return object;
88290
+ var message = new $root.CoachingConfigUpdated();
88291
+ if (object.coachingConfig != null) {
88292
+ if (typeof object.coachingConfig !== "object")
88293
+ throw TypeError(".CoachingConfigUpdated.coachingConfig: object expected");
88294
+ message.coachingConfig = $root.CoachingConfig.fromObject(object.coachingConfig);
88295
+ }
88296
+ if (object.timestamp != null)
88297
+ if ($util.Long)
88298
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
88299
+ else if (typeof object.timestamp === "string")
88300
+ message.timestamp = parseInt(object.timestamp, 10);
88301
+ else if (typeof object.timestamp === "number")
88302
+ message.timestamp = object.timestamp;
88303
+ else if (typeof object.timestamp === "object")
88304
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
88305
+ return message;
88306
+ };
88307
+
88308
+ /**
88309
+ * Creates a plain object from a CoachingConfigUpdated message. Also converts values to other types if specified.
88310
+ * @function toObject
88311
+ * @memberof CoachingConfigUpdated
88312
+ * @static
88313
+ * @param {CoachingConfigUpdated} message CoachingConfigUpdated
88314
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
88315
+ * @returns {Object.<string,*>} Plain object
88316
+ */
88317
+ CoachingConfigUpdated.toObject = function toObject(message, options) {
88318
+ if (!options)
88319
+ options = {};
88320
+ var object = {};
88321
+ if (options.defaults) {
88322
+ object.coachingConfig = null;
88323
+ if ($util.Long) {
88324
+ var long = new $util.Long(0, 0, true);
88325
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
88326
+ } else
88327
+ object.timestamp = options.longs === String ? "0" : 0;
88328
+ }
88329
+ if (message.coachingConfig != null && message.hasOwnProperty("coachingConfig"))
88330
+ object.coachingConfig = $root.CoachingConfig.toObject(message.coachingConfig, options);
88331
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88332
+ if (typeof message.timestamp === "number")
88333
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
88334
+ else
88335
+ 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;
88336
+ return object;
88337
+ };
88338
+
88339
+ /**
88340
+ * Converts this CoachingConfigUpdated to JSON.
88341
+ * @function toJSON
88342
+ * @memberof CoachingConfigUpdated
88343
+ * @instance
88344
+ * @returns {Object.<string,*>} JSON object
88345
+ */
88346
+ CoachingConfigUpdated.prototype.toJSON = function toJSON() {
88347
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
88348
+ };
88349
+
88350
+ return CoachingConfigUpdated;
88351
+ })();
88352
+
88353
+ $root.CoachingConfigDeleted = (function() {
88354
+
88355
+ /**
88356
+ * Properties of a CoachingConfigDeleted.
88357
+ * @name ICoachingConfigDeleted
88358
+ * @interface ICoachingConfigDeleted
88359
+ * @property {ICoachingConfig|null} [coachingConfig] CoachingConfigDeleted coachingConfig
88360
+ * @property {number|Long|null} [timestamp] CoachingConfigDeleted timestamp
88361
+ */
88362
+
88363
+ /**
88364
+ * Constructs a new CoachingConfigDeleted.
88365
+ * @name CoachingConfigDeleted
88366
+ * @classdesc Represents a CoachingConfigDeleted.
88367
+ * @implements ICoachingConfigDeleted
88368
+ * @constructor
88369
+ * @param {ICoachingConfigDeleted=} [properties] Properties to set
88370
+ */
88371
+ function CoachingConfigDeleted(properties) {
88372
+ if (properties)
88373
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
88374
+ if (properties[keys[i]] != null)
88375
+ this[keys[i]] = properties[keys[i]];
88376
+ }
88377
+
88378
+ /**
88379
+ * CoachingConfigDeleted coachingConfig.
88380
+ * @member {ICoachingConfig|null|undefined} coachingConfig
88381
+ * @memberof CoachingConfigDeleted
88382
+ * @instance
88383
+ */
88384
+ CoachingConfigDeleted.prototype.coachingConfig = null;
88385
+
88386
+ /**
88387
+ * CoachingConfigDeleted timestamp.
88388
+ * @member {number|Long} timestamp
88389
+ * @memberof CoachingConfigDeleted
88390
+ * @instance
88391
+ */
88392
+ CoachingConfigDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
88393
+
88394
+ /**
88395
+ * Creates a new CoachingConfigDeleted instance using the specified properties.
88396
+ * @function create
88397
+ * @memberof CoachingConfigDeleted
88398
+ * @static
88399
+ * @param {ICoachingConfigDeleted=} [properties] Properties to set
88400
+ * @returns {CoachingConfigDeleted} CoachingConfigDeleted instance
88401
+ */
88402
+ CoachingConfigDeleted.create = function create(properties) {
88403
+ return new CoachingConfigDeleted(properties);
88404
+ };
88405
+
88406
+ /**
88407
+ * Encodes the specified CoachingConfigDeleted message. Does not implicitly {@link CoachingConfigDeleted.verify|verify} messages.
88408
+ * @function encode
88409
+ * @memberof CoachingConfigDeleted
88410
+ * @static
88411
+ * @param {ICoachingConfigDeleted} message CoachingConfigDeleted message or plain object to encode
88412
+ * @param {$protobuf.Writer} [writer] Writer to encode to
88413
+ * @returns {$protobuf.Writer} Writer
88414
+ */
88415
+ CoachingConfigDeleted.encode = function encode(message, writer) {
88416
+ if (!writer)
88417
+ writer = $Writer.create();
88418
+ if (message.coachingConfig != null && message.hasOwnProperty("coachingConfig"))
88419
+ $root.CoachingConfig.encode(message.coachingConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
88420
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88421
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
88422
+ return writer;
88423
+ };
88424
+
88425
+ /**
88426
+ * Encodes the specified CoachingConfigDeleted message, length delimited. Does not implicitly {@link CoachingConfigDeleted.verify|verify} messages.
88427
+ * @function encodeDelimited
88428
+ * @memberof CoachingConfigDeleted
88429
+ * @static
88430
+ * @param {ICoachingConfigDeleted} message CoachingConfigDeleted message or plain object to encode
88431
+ * @param {$protobuf.Writer} [writer] Writer to encode to
88432
+ * @returns {$protobuf.Writer} Writer
88433
+ */
88434
+ CoachingConfigDeleted.encodeDelimited = function encodeDelimited(message, writer) {
88435
+ return this.encode(message, writer).ldelim();
88436
+ };
88437
+
88438
+ /**
88439
+ * Decodes a CoachingConfigDeleted message from the specified reader or buffer.
88440
+ * @function decode
88441
+ * @memberof CoachingConfigDeleted
88442
+ * @static
88443
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
88444
+ * @param {number} [length] Message length if known beforehand
88445
+ * @returns {CoachingConfigDeleted} CoachingConfigDeleted
88446
+ * @throws {Error} If the payload is not a reader or valid buffer
88447
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88448
+ */
88449
+ CoachingConfigDeleted.decode = function decode(reader, length) {
88450
+ if (!(reader instanceof $Reader))
88451
+ reader = $Reader.create(reader);
88452
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CoachingConfigDeleted();
88453
+ while (reader.pos < end) {
88454
+ var tag = reader.uint32();
88455
+ switch (tag >>> 3) {
88456
+ case 1:
88457
+ message.coachingConfig = $root.CoachingConfig.decode(reader, reader.uint32());
88458
+ break;
88459
+ case 2:
88460
+ message.timestamp = reader.uint64();
88461
+ break;
88462
+ default:
88463
+ reader.skipType(tag & 7);
88464
+ break;
88465
+ }
88466
+ }
88467
+ return message;
88468
+ };
88469
+
88470
+ /**
88471
+ * Decodes a CoachingConfigDeleted message from the specified reader or buffer, length delimited.
88472
+ * @function decodeDelimited
88473
+ * @memberof CoachingConfigDeleted
88474
+ * @static
88475
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
88476
+ * @returns {CoachingConfigDeleted} CoachingConfigDeleted
88477
+ * @throws {Error} If the payload is not a reader or valid buffer
88478
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
88479
+ */
88480
+ CoachingConfigDeleted.decodeDelimited = function decodeDelimited(reader) {
88481
+ if (!(reader instanceof $Reader))
88482
+ reader = new $Reader(reader);
88483
+ return this.decode(reader, reader.uint32());
88484
+ };
88485
+
88486
+ /**
88487
+ * Verifies a CoachingConfigDeleted message.
88488
+ * @function verify
88489
+ * @memberof CoachingConfigDeleted
88490
+ * @static
88491
+ * @param {Object.<string,*>} message Plain object to verify
88492
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
88493
+ */
88494
+ CoachingConfigDeleted.verify = function verify(message) {
88495
+ if (typeof message !== "object" || message === null)
88496
+ return "object expected";
88497
+ if (message.coachingConfig != null && message.hasOwnProperty("coachingConfig")) {
88498
+ var error = $root.CoachingConfig.verify(message.coachingConfig);
88499
+ if (error)
88500
+ return "coachingConfig." + error;
88501
+ }
88502
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88503
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
88504
+ return "timestamp: integer|Long expected";
88505
+ return null;
88506
+ };
88507
+
88508
+ /**
88509
+ * Creates a CoachingConfigDeleted message from a plain object. Also converts values to their respective internal types.
88510
+ * @function fromObject
88511
+ * @memberof CoachingConfigDeleted
88512
+ * @static
88513
+ * @param {Object.<string,*>} object Plain object
88514
+ * @returns {CoachingConfigDeleted} CoachingConfigDeleted
88515
+ */
88516
+ CoachingConfigDeleted.fromObject = function fromObject(object) {
88517
+ if (object instanceof $root.CoachingConfigDeleted)
88518
+ return object;
88519
+ var message = new $root.CoachingConfigDeleted();
88520
+ if (object.coachingConfig != null) {
88521
+ if (typeof object.coachingConfig !== "object")
88522
+ throw TypeError(".CoachingConfigDeleted.coachingConfig: object expected");
88523
+ message.coachingConfig = $root.CoachingConfig.fromObject(object.coachingConfig);
88524
+ }
88525
+ if (object.timestamp != null)
88526
+ if ($util.Long)
88527
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
88528
+ else if (typeof object.timestamp === "string")
88529
+ message.timestamp = parseInt(object.timestamp, 10);
88530
+ else if (typeof object.timestamp === "number")
88531
+ message.timestamp = object.timestamp;
88532
+ else if (typeof object.timestamp === "object")
88533
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
88534
+ return message;
88535
+ };
88536
+
88537
+ /**
88538
+ * Creates a plain object from a CoachingConfigDeleted message. Also converts values to other types if specified.
88539
+ * @function toObject
88540
+ * @memberof CoachingConfigDeleted
88541
+ * @static
88542
+ * @param {CoachingConfigDeleted} message CoachingConfigDeleted
88543
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
88544
+ * @returns {Object.<string,*>} Plain object
88545
+ */
88546
+ CoachingConfigDeleted.toObject = function toObject(message, options) {
88547
+ if (!options)
88548
+ options = {};
88549
+ var object = {};
88550
+ if (options.defaults) {
88551
+ object.coachingConfig = null;
88552
+ if ($util.Long) {
88553
+ var long = new $util.Long(0, 0, true);
88554
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
88555
+ } else
88556
+ object.timestamp = options.longs === String ? "0" : 0;
88557
+ }
88558
+ if (message.coachingConfig != null && message.hasOwnProperty("coachingConfig"))
88559
+ object.coachingConfig = $root.CoachingConfig.toObject(message.coachingConfig, options);
88560
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
88561
+ if (typeof message.timestamp === "number")
88562
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
88563
+ else
88564
+ 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;
88565
+ return object;
88566
+ };
88567
+
88568
+ /**
88569
+ * Converts this CoachingConfigDeleted to JSON.
88570
+ * @function toJSON
88571
+ * @memberof CoachingConfigDeleted
88572
+ * @instance
88573
+ * @returns {Object.<string,*>} JSON object
88574
+ */
88575
+ CoachingConfigDeleted.prototype.toJSON = function toJSON() {
88576
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
88577
+ };
88578
+
88579
+ return CoachingConfigDeleted;
88580
+ })();
88581
+
87484
88582
  $root.OrganizationCreated = (function() {
87485
88583
 
87486
88584
  /**
@@ -139247,6 +140345,542 @@ $root.ReferralSignedUp = (function() {
139247
140345
  return ReferralSignedUp;
139248
140346
  })();
139249
140347
 
140348
+ $root.SikaMemberLmnRejected = (function() {
140349
+
140350
+ /**
140351
+ * Properties of a SikaMemberLmnRejected.
140352
+ * @name ISikaMemberLmnRejected
140353
+ * @interface ISikaMemberLmnRejected
140354
+ * @property {string|null} [hsUserId] SikaMemberLmnRejected hsUserId
140355
+ * @property {boolean|null} [isFreeTrial] SikaMemberLmnRejected isFreeTrial
140356
+ * @property {string|null} [voucherCode] SikaMemberLmnRejected voucherCode
140357
+ * @property {number|Long|null} [timestamp] SikaMemberLmnRejected timestamp
140358
+ */
140359
+
140360
+ /**
140361
+ * Constructs a new SikaMemberLmnRejected.
140362
+ * @name SikaMemberLmnRejected
140363
+ * @classdesc Represents a SikaMemberLmnRejected.
140364
+ * @implements ISikaMemberLmnRejected
140365
+ * @constructor
140366
+ * @param {ISikaMemberLmnRejected=} [properties] Properties to set
140367
+ */
140368
+ function SikaMemberLmnRejected(properties) {
140369
+ if (properties)
140370
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
140371
+ if (properties[keys[i]] != null)
140372
+ this[keys[i]] = properties[keys[i]];
140373
+ }
140374
+
140375
+ /**
140376
+ * SikaMemberLmnRejected hsUserId.
140377
+ * @member {string} hsUserId
140378
+ * @memberof SikaMemberLmnRejected
140379
+ * @instance
140380
+ */
140381
+ SikaMemberLmnRejected.prototype.hsUserId = "";
140382
+
140383
+ /**
140384
+ * SikaMemberLmnRejected isFreeTrial.
140385
+ * @member {boolean} isFreeTrial
140386
+ * @memberof SikaMemberLmnRejected
140387
+ * @instance
140388
+ */
140389
+ SikaMemberLmnRejected.prototype.isFreeTrial = false;
140390
+
140391
+ /**
140392
+ * SikaMemberLmnRejected voucherCode.
140393
+ * @member {string} voucherCode
140394
+ * @memberof SikaMemberLmnRejected
140395
+ * @instance
140396
+ */
140397
+ SikaMemberLmnRejected.prototype.voucherCode = "";
140398
+
140399
+ /**
140400
+ * SikaMemberLmnRejected timestamp.
140401
+ * @member {number|Long} timestamp
140402
+ * @memberof SikaMemberLmnRejected
140403
+ * @instance
140404
+ */
140405
+ SikaMemberLmnRejected.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
140406
+
140407
+ /**
140408
+ * Creates a new SikaMemberLmnRejected instance using the specified properties.
140409
+ * @function create
140410
+ * @memberof SikaMemberLmnRejected
140411
+ * @static
140412
+ * @param {ISikaMemberLmnRejected=} [properties] Properties to set
140413
+ * @returns {SikaMemberLmnRejected} SikaMemberLmnRejected instance
140414
+ */
140415
+ SikaMemberLmnRejected.create = function create(properties) {
140416
+ return new SikaMemberLmnRejected(properties);
140417
+ };
140418
+
140419
+ /**
140420
+ * Encodes the specified SikaMemberLmnRejected message. Does not implicitly {@link SikaMemberLmnRejected.verify|verify} messages.
140421
+ * @function encode
140422
+ * @memberof SikaMemberLmnRejected
140423
+ * @static
140424
+ * @param {ISikaMemberLmnRejected} message SikaMemberLmnRejected message or plain object to encode
140425
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140426
+ * @returns {$protobuf.Writer} Writer
140427
+ */
140428
+ SikaMemberLmnRejected.encode = function encode(message, writer) {
140429
+ if (!writer)
140430
+ writer = $Writer.create();
140431
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140432
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
140433
+ if (message.isFreeTrial != null && message.hasOwnProperty("isFreeTrial"))
140434
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isFreeTrial);
140435
+ if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
140436
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.voucherCode);
140437
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
140438
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
140439
+ return writer;
140440
+ };
140441
+
140442
+ /**
140443
+ * Encodes the specified SikaMemberLmnRejected message, length delimited. Does not implicitly {@link SikaMemberLmnRejected.verify|verify} messages.
140444
+ * @function encodeDelimited
140445
+ * @memberof SikaMemberLmnRejected
140446
+ * @static
140447
+ * @param {ISikaMemberLmnRejected} message SikaMemberLmnRejected message or plain object to encode
140448
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140449
+ * @returns {$protobuf.Writer} Writer
140450
+ */
140451
+ SikaMemberLmnRejected.encodeDelimited = function encodeDelimited(message, writer) {
140452
+ return this.encode(message, writer).ldelim();
140453
+ };
140454
+
140455
+ /**
140456
+ * Decodes a SikaMemberLmnRejected message from the specified reader or buffer.
140457
+ * @function decode
140458
+ * @memberof SikaMemberLmnRejected
140459
+ * @static
140460
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140461
+ * @param {number} [length] Message length if known beforehand
140462
+ * @returns {SikaMemberLmnRejected} SikaMemberLmnRejected
140463
+ * @throws {Error} If the payload is not a reader or valid buffer
140464
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
140465
+ */
140466
+ SikaMemberLmnRejected.decode = function decode(reader, length) {
140467
+ if (!(reader instanceof $Reader))
140468
+ reader = $Reader.create(reader);
140469
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SikaMemberLmnRejected();
140470
+ while (reader.pos < end) {
140471
+ var tag = reader.uint32();
140472
+ switch (tag >>> 3) {
140473
+ case 1:
140474
+ message.hsUserId = reader.string();
140475
+ break;
140476
+ case 2:
140477
+ message.isFreeTrial = reader.bool();
140478
+ break;
140479
+ case 3:
140480
+ message.voucherCode = reader.string();
140481
+ break;
140482
+ case 4:
140483
+ message.timestamp = reader.uint64();
140484
+ break;
140485
+ default:
140486
+ reader.skipType(tag & 7);
140487
+ break;
140488
+ }
140489
+ }
140490
+ return message;
140491
+ };
140492
+
140493
+ /**
140494
+ * Decodes a SikaMemberLmnRejected message from the specified reader or buffer, length delimited.
140495
+ * @function decodeDelimited
140496
+ * @memberof SikaMemberLmnRejected
140497
+ * @static
140498
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140499
+ * @returns {SikaMemberLmnRejected} SikaMemberLmnRejected
140500
+ * @throws {Error} If the payload is not a reader or valid buffer
140501
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
140502
+ */
140503
+ SikaMemberLmnRejected.decodeDelimited = function decodeDelimited(reader) {
140504
+ if (!(reader instanceof $Reader))
140505
+ reader = new $Reader(reader);
140506
+ return this.decode(reader, reader.uint32());
140507
+ };
140508
+
140509
+ /**
140510
+ * Verifies a SikaMemberLmnRejected message.
140511
+ * @function verify
140512
+ * @memberof SikaMemberLmnRejected
140513
+ * @static
140514
+ * @param {Object.<string,*>} message Plain object to verify
140515
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
140516
+ */
140517
+ SikaMemberLmnRejected.verify = function verify(message) {
140518
+ if (typeof message !== "object" || message === null)
140519
+ return "object expected";
140520
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140521
+ if (!$util.isString(message.hsUserId))
140522
+ return "hsUserId: string expected";
140523
+ if (message.isFreeTrial != null && message.hasOwnProperty("isFreeTrial"))
140524
+ if (typeof message.isFreeTrial !== "boolean")
140525
+ return "isFreeTrial: boolean expected";
140526
+ if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
140527
+ if (!$util.isString(message.voucherCode))
140528
+ return "voucherCode: string expected";
140529
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
140530
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
140531
+ return "timestamp: integer|Long expected";
140532
+ return null;
140533
+ };
140534
+
140535
+ /**
140536
+ * Creates a SikaMemberLmnRejected message from a plain object. Also converts values to their respective internal types.
140537
+ * @function fromObject
140538
+ * @memberof SikaMemberLmnRejected
140539
+ * @static
140540
+ * @param {Object.<string,*>} object Plain object
140541
+ * @returns {SikaMemberLmnRejected} SikaMemberLmnRejected
140542
+ */
140543
+ SikaMemberLmnRejected.fromObject = function fromObject(object) {
140544
+ if (object instanceof $root.SikaMemberLmnRejected)
140545
+ return object;
140546
+ var message = new $root.SikaMemberLmnRejected();
140547
+ if (object.hsUserId != null)
140548
+ message.hsUserId = String(object.hsUserId);
140549
+ if (object.isFreeTrial != null)
140550
+ message.isFreeTrial = Boolean(object.isFreeTrial);
140551
+ if (object.voucherCode != null)
140552
+ message.voucherCode = String(object.voucherCode);
140553
+ if (object.timestamp != null)
140554
+ if ($util.Long)
140555
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
140556
+ else if (typeof object.timestamp === "string")
140557
+ message.timestamp = parseInt(object.timestamp, 10);
140558
+ else if (typeof object.timestamp === "number")
140559
+ message.timestamp = object.timestamp;
140560
+ else if (typeof object.timestamp === "object")
140561
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
140562
+ return message;
140563
+ };
140564
+
140565
+ /**
140566
+ * Creates a plain object from a SikaMemberLmnRejected message. Also converts values to other types if specified.
140567
+ * @function toObject
140568
+ * @memberof SikaMemberLmnRejected
140569
+ * @static
140570
+ * @param {SikaMemberLmnRejected} message SikaMemberLmnRejected
140571
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
140572
+ * @returns {Object.<string,*>} Plain object
140573
+ */
140574
+ SikaMemberLmnRejected.toObject = function toObject(message, options) {
140575
+ if (!options)
140576
+ options = {};
140577
+ var object = {};
140578
+ if (options.defaults) {
140579
+ object.hsUserId = "";
140580
+ object.isFreeTrial = false;
140581
+ object.voucherCode = "";
140582
+ if ($util.Long) {
140583
+ var long = new $util.Long(0, 0, true);
140584
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
140585
+ } else
140586
+ object.timestamp = options.longs === String ? "0" : 0;
140587
+ }
140588
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140589
+ object.hsUserId = message.hsUserId;
140590
+ if (message.isFreeTrial != null && message.hasOwnProperty("isFreeTrial"))
140591
+ object.isFreeTrial = message.isFreeTrial;
140592
+ if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
140593
+ object.voucherCode = message.voucherCode;
140594
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
140595
+ if (typeof message.timestamp === "number")
140596
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
140597
+ else
140598
+ 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;
140599
+ return object;
140600
+ };
140601
+
140602
+ /**
140603
+ * Converts this SikaMemberLmnRejected to JSON.
140604
+ * @function toJSON
140605
+ * @memberof SikaMemberLmnRejected
140606
+ * @instance
140607
+ * @returns {Object.<string,*>} JSON object
140608
+ */
140609
+ SikaMemberLmnRejected.prototype.toJSON = function toJSON() {
140610
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
140611
+ };
140612
+
140613
+ return SikaMemberLmnRejected;
140614
+ })();
140615
+
140616
+ $root.SikaMemberLmnApproved = (function() {
140617
+
140618
+ /**
140619
+ * Properties of a SikaMemberLmnApproved.
140620
+ * @name ISikaMemberLmnApproved
140621
+ * @interface ISikaMemberLmnApproved
140622
+ * @property {string|null} [hsUserId] SikaMemberLmnApproved hsUserId
140623
+ * @property {boolean|null} [isFreeTrial] SikaMemberLmnApproved isFreeTrial
140624
+ * @property {string|null} [voucherCode] SikaMemberLmnApproved voucherCode
140625
+ * @property {number|Long|null} [timestamp] SikaMemberLmnApproved timestamp
140626
+ */
140627
+
140628
+ /**
140629
+ * Constructs a new SikaMemberLmnApproved.
140630
+ * @name SikaMemberLmnApproved
140631
+ * @classdesc Represents a SikaMemberLmnApproved.
140632
+ * @implements ISikaMemberLmnApproved
140633
+ * @constructor
140634
+ * @param {ISikaMemberLmnApproved=} [properties] Properties to set
140635
+ */
140636
+ function SikaMemberLmnApproved(properties) {
140637
+ if (properties)
140638
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
140639
+ if (properties[keys[i]] != null)
140640
+ this[keys[i]] = properties[keys[i]];
140641
+ }
140642
+
140643
+ /**
140644
+ * SikaMemberLmnApproved hsUserId.
140645
+ * @member {string} hsUserId
140646
+ * @memberof SikaMemberLmnApproved
140647
+ * @instance
140648
+ */
140649
+ SikaMemberLmnApproved.prototype.hsUserId = "";
140650
+
140651
+ /**
140652
+ * SikaMemberLmnApproved isFreeTrial.
140653
+ * @member {boolean} isFreeTrial
140654
+ * @memberof SikaMemberLmnApproved
140655
+ * @instance
140656
+ */
140657
+ SikaMemberLmnApproved.prototype.isFreeTrial = false;
140658
+
140659
+ /**
140660
+ * SikaMemberLmnApproved voucherCode.
140661
+ * @member {string} voucherCode
140662
+ * @memberof SikaMemberLmnApproved
140663
+ * @instance
140664
+ */
140665
+ SikaMemberLmnApproved.prototype.voucherCode = "";
140666
+
140667
+ /**
140668
+ * SikaMemberLmnApproved timestamp.
140669
+ * @member {number|Long} timestamp
140670
+ * @memberof SikaMemberLmnApproved
140671
+ * @instance
140672
+ */
140673
+ SikaMemberLmnApproved.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
140674
+
140675
+ /**
140676
+ * Creates a new SikaMemberLmnApproved instance using the specified properties.
140677
+ * @function create
140678
+ * @memberof SikaMemberLmnApproved
140679
+ * @static
140680
+ * @param {ISikaMemberLmnApproved=} [properties] Properties to set
140681
+ * @returns {SikaMemberLmnApproved} SikaMemberLmnApproved instance
140682
+ */
140683
+ SikaMemberLmnApproved.create = function create(properties) {
140684
+ return new SikaMemberLmnApproved(properties);
140685
+ };
140686
+
140687
+ /**
140688
+ * Encodes the specified SikaMemberLmnApproved message. Does not implicitly {@link SikaMemberLmnApproved.verify|verify} messages.
140689
+ * @function encode
140690
+ * @memberof SikaMemberLmnApproved
140691
+ * @static
140692
+ * @param {ISikaMemberLmnApproved} message SikaMemberLmnApproved message or plain object to encode
140693
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140694
+ * @returns {$protobuf.Writer} Writer
140695
+ */
140696
+ SikaMemberLmnApproved.encode = function encode(message, writer) {
140697
+ if (!writer)
140698
+ writer = $Writer.create();
140699
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140700
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
140701
+ if (message.isFreeTrial != null && message.hasOwnProperty("isFreeTrial"))
140702
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isFreeTrial);
140703
+ if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
140704
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.voucherCode);
140705
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
140706
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
140707
+ return writer;
140708
+ };
140709
+
140710
+ /**
140711
+ * Encodes the specified SikaMemberLmnApproved message, length delimited. Does not implicitly {@link SikaMemberLmnApproved.verify|verify} messages.
140712
+ * @function encodeDelimited
140713
+ * @memberof SikaMemberLmnApproved
140714
+ * @static
140715
+ * @param {ISikaMemberLmnApproved} message SikaMemberLmnApproved message or plain object to encode
140716
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140717
+ * @returns {$protobuf.Writer} Writer
140718
+ */
140719
+ SikaMemberLmnApproved.encodeDelimited = function encodeDelimited(message, writer) {
140720
+ return this.encode(message, writer).ldelim();
140721
+ };
140722
+
140723
+ /**
140724
+ * Decodes a SikaMemberLmnApproved message from the specified reader or buffer.
140725
+ * @function decode
140726
+ * @memberof SikaMemberLmnApproved
140727
+ * @static
140728
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140729
+ * @param {number} [length] Message length if known beforehand
140730
+ * @returns {SikaMemberLmnApproved} SikaMemberLmnApproved
140731
+ * @throws {Error} If the payload is not a reader or valid buffer
140732
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
140733
+ */
140734
+ SikaMemberLmnApproved.decode = function decode(reader, length) {
140735
+ if (!(reader instanceof $Reader))
140736
+ reader = $Reader.create(reader);
140737
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SikaMemberLmnApproved();
140738
+ while (reader.pos < end) {
140739
+ var tag = reader.uint32();
140740
+ switch (tag >>> 3) {
140741
+ case 1:
140742
+ message.hsUserId = reader.string();
140743
+ break;
140744
+ case 2:
140745
+ message.isFreeTrial = reader.bool();
140746
+ break;
140747
+ case 3:
140748
+ message.voucherCode = reader.string();
140749
+ break;
140750
+ case 4:
140751
+ message.timestamp = reader.uint64();
140752
+ break;
140753
+ default:
140754
+ reader.skipType(tag & 7);
140755
+ break;
140756
+ }
140757
+ }
140758
+ return message;
140759
+ };
140760
+
140761
+ /**
140762
+ * Decodes a SikaMemberLmnApproved message from the specified reader or buffer, length delimited.
140763
+ * @function decodeDelimited
140764
+ * @memberof SikaMemberLmnApproved
140765
+ * @static
140766
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140767
+ * @returns {SikaMemberLmnApproved} SikaMemberLmnApproved
140768
+ * @throws {Error} If the payload is not a reader or valid buffer
140769
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
140770
+ */
140771
+ SikaMemberLmnApproved.decodeDelimited = function decodeDelimited(reader) {
140772
+ if (!(reader instanceof $Reader))
140773
+ reader = new $Reader(reader);
140774
+ return this.decode(reader, reader.uint32());
140775
+ };
140776
+
140777
+ /**
140778
+ * Verifies a SikaMemberLmnApproved message.
140779
+ * @function verify
140780
+ * @memberof SikaMemberLmnApproved
140781
+ * @static
140782
+ * @param {Object.<string,*>} message Plain object to verify
140783
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
140784
+ */
140785
+ SikaMemberLmnApproved.verify = function verify(message) {
140786
+ if (typeof message !== "object" || message === null)
140787
+ return "object expected";
140788
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140789
+ if (!$util.isString(message.hsUserId))
140790
+ return "hsUserId: string expected";
140791
+ if (message.isFreeTrial != null && message.hasOwnProperty("isFreeTrial"))
140792
+ if (typeof message.isFreeTrial !== "boolean")
140793
+ return "isFreeTrial: boolean expected";
140794
+ if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
140795
+ if (!$util.isString(message.voucherCode))
140796
+ return "voucherCode: string expected";
140797
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
140798
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
140799
+ return "timestamp: integer|Long expected";
140800
+ return null;
140801
+ };
140802
+
140803
+ /**
140804
+ * Creates a SikaMemberLmnApproved message from a plain object. Also converts values to their respective internal types.
140805
+ * @function fromObject
140806
+ * @memberof SikaMemberLmnApproved
140807
+ * @static
140808
+ * @param {Object.<string,*>} object Plain object
140809
+ * @returns {SikaMemberLmnApproved} SikaMemberLmnApproved
140810
+ */
140811
+ SikaMemberLmnApproved.fromObject = function fromObject(object) {
140812
+ if (object instanceof $root.SikaMemberLmnApproved)
140813
+ return object;
140814
+ var message = new $root.SikaMemberLmnApproved();
140815
+ if (object.hsUserId != null)
140816
+ message.hsUserId = String(object.hsUserId);
140817
+ if (object.isFreeTrial != null)
140818
+ message.isFreeTrial = Boolean(object.isFreeTrial);
140819
+ if (object.voucherCode != null)
140820
+ message.voucherCode = String(object.voucherCode);
140821
+ if (object.timestamp != null)
140822
+ if ($util.Long)
140823
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
140824
+ else if (typeof object.timestamp === "string")
140825
+ message.timestamp = parseInt(object.timestamp, 10);
140826
+ else if (typeof object.timestamp === "number")
140827
+ message.timestamp = object.timestamp;
140828
+ else if (typeof object.timestamp === "object")
140829
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
140830
+ return message;
140831
+ };
140832
+
140833
+ /**
140834
+ * Creates a plain object from a SikaMemberLmnApproved message. Also converts values to other types if specified.
140835
+ * @function toObject
140836
+ * @memberof SikaMemberLmnApproved
140837
+ * @static
140838
+ * @param {SikaMemberLmnApproved} message SikaMemberLmnApproved
140839
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
140840
+ * @returns {Object.<string,*>} Plain object
140841
+ */
140842
+ SikaMemberLmnApproved.toObject = function toObject(message, options) {
140843
+ if (!options)
140844
+ options = {};
140845
+ var object = {};
140846
+ if (options.defaults) {
140847
+ object.hsUserId = "";
140848
+ object.isFreeTrial = false;
140849
+ object.voucherCode = "";
140850
+ if ($util.Long) {
140851
+ var long = new $util.Long(0, 0, true);
140852
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
140853
+ } else
140854
+ object.timestamp = options.longs === String ? "0" : 0;
140855
+ }
140856
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140857
+ object.hsUserId = message.hsUserId;
140858
+ if (message.isFreeTrial != null && message.hasOwnProperty("isFreeTrial"))
140859
+ object.isFreeTrial = message.isFreeTrial;
140860
+ if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
140861
+ object.voucherCode = message.voucherCode;
140862
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
140863
+ if (typeof message.timestamp === "number")
140864
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
140865
+ else
140866
+ 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;
140867
+ return object;
140868
+ };
140869
+
140870
+ /**
140871
+ * Converts this SikaMemberLmnApproved to JSON.
140872
+ * @function toJSON
140873
+ * @memberof SikaMemberLmnApproved
140874
+ * @instance
140875
+ * @returns {Object.<string,*>} JSON object
140876
+ */
140877
+ SikaMemberLmnApproved.prototype.toJSON = function toJSON() {
140878
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
140879
+ };
140880
+
140881
+ return SikaMemberLmnApproved;
140882
+ })();
140883
+
139250
140884
  $root.SleepcastEpisodeCompleted = (function() {
139251
140885
 
139252
140886
  /**