@headspace/protos-events 1.74.0 → 1.75.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 +0 -621
- package/lib/index.js +158 -2189
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2664,18 +2664,6 @@ $root.subscription = (function() {
|
|
|
2664
2664
|
return values;
|
|
2665
2665
|
})();
|
|
2666
2666
|
|
|
2667
|
-
/**
|
|
2668
|
-
* Labels enum.
|
|
2669
|
-
* @name subscription.Labels
|
|
2670
|
-
* @enum {string}
|
|
2671
|
-
* @property {number} LABELS_FREE_TRIAL=0 LABELS_FREE_TRIAL value
|
|
2672
|
-
*/
|
|
2673
|
-
subscription.Labels = (function() {
|
|
2674
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
2675
|
-
values[valuesById[0] = "LABELS_FREE_TRIAL"] = 0;
|
|
2676
|
-
return values;
|
|
2677
|
-
})();
|
|
2678
|
-
|
|
2679
2667
|
/**
|
|
2680
2668
|
* SubscriptionState enum.
|
|
2681
2669
|
* @name subscription.SubscriptionState
|
|
@@ -2741,292 +2729,6 @@ $root.subscription = (function() {
|
|
|
2741
2729
|
return subscription;
|
|
2742
2730
|
})();
|
|
2743
2731
|
|
|
2744
|
-
$root.appleReceipt = (function() {
|
|
2745
|
-
|
|
2746
|
-
/**
|
|
2747
|
-
* Namespace appleReceipt.
|
|
2748
|
-
* @exports appleReceipt
|
|
2749
|
-
* @namespace
|
|
2750
|
-
*/
|
|
2751
|
-
var appleReceipt = {};
|
|
2752
|
-
|
|
2753
|
-
appleReceipt.IosSubscriptionTerm = (function() {
|
|
2754
|
-
|
|
2755
|
-
/**
|
|
2756
|
-
* Properties of an IosSubscriptionTerm.
|
|
2757
|
-
* @memberof appleReceipt
|
|
2758
|
-
* @interface IIosSubscriptionTerm
|
|
2759
|
-
* @property {number|Long|null} [startsAt] IosSubscriptionTerm startsAt
|
|
2760
|
-
* @property {number|Long|null} [endsAt] IosSubscriptionTerm endsAt
|
|
2761
|
-
* @property {boolean|null} [isFreeTrial] IosSubscriptionTerm isFreeTrial
|
|
2762
|
-
*/
|
|
2763
|
-
|
|
2764
|
-
/**
|
|
2765
|
-
* Constructs a new IosSubscriptionTerm.
|
|
2766
|
-
* @memberof appleReceipt
|
|
2767
|
-
* @classdesc Represents an IosSubscriptionTerm.
|
|
2768
|
-
* @implements IIosSubscriptionTerm
|
|
2769
|
-
* @constructor
|
|
2770
|
-
* @param {appleReceipt.IIosSubscriptionTerm=} [properties] Properties to set
|
|
2771
|
-
*/
|
|
2772
|
-
function IosSubscriptionTerm(properties) {
|
|
2773
|
-
if (properties)
|
|
2774
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2775
|
-
if (properties[keys[i]] != null)
|
|
2776
|
-
this[keys[i]] = properties[keys[i]];
|
|
2777
|
-
}
|
|
2778
|
-
|
|
2779
|
-
/**
|
|
2780
|
-
* IosSubscriptionTerm startsAt.
|
|
2781
|
-
* @member {number|Long} startsAt
|
|
2782
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2783
|
-
* @instance
|
|
2784
|
-
*/
|
|
2785
|
-
IosSubscriptionTerm.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
2786
|
-
|
|
2787
|
-
/**
|
|
2788
|
-
* IosSubscriptionTerm endsAt.
|
|
2789
|
-
* @member {number|Long} endsAt
|
|
2790
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2791
|
-
* @instance
|
|
2792
|
-
*/
|
|
2793
|
-
IosSubscriptionTerm.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
2794
|
-
|
|
2795
|
-
/**
|
|
2796
|
-
* IosSubscriptionTerm isFreeTrial.
|
|
2797
|
-
* @member {boolean} isFreeTrial
|
|
2798
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2799
|
-
* @instance
|
|
2800
|
-
*/
|
|
2801
|
-
IosSubscriptionTerm.prototype.isFreeTrial = false;
|
|
2802
|
-
|
|
2803
|
-
/**
|
|
2804
|
-
* Creates a new IosSubscriptionTerm instance using the specified properties.
|
|
2805
|
-
* @function create
|
|
2806
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2807
|
-
* @static
|
|
2808
|
-
* @param {appleReceipt.IIosSubscriptionTerm=} [properties] Properties to set
|
|
2809
|
-
* @returns {appleReceipt.IosSubscriptionTerm} IosSubscriptionTerm instance
|
|
2810
|
-
*/
|
|
2811
|
-
IosSubscriptionTerm.create = function create(properties) {
|
|
2812
|
-
return new IosSubscriptionTerm(properties);
|
|
2813
|
-
};
|
|
2814
|
-
|
|
2815
|
-
/**
|
|
2816
|
-
* Encodes the specified IosSubscriptionTerm message. Does not implicitly {@link appleReceipt.IosSubscriptionTerm.verify|verify} messages.
|
|
2817
|
-
* @function encode
|
|
2818
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2819
|
-
* @static
|
|
2820
|
-
* @param {appleReceipt.IIosSubscriptionTerm} message IosSubscriptionTerm message or plain object to encode
|
|
2821
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2822
|
-
* @returns {$protobuf.Writer} Writer
|
|
2823
|
-
*/
|
|
2824
|
-
IosSubscriptionTerm.encode = function encode(message, writer) {
|
|
2825
|
-
if (!writer)
|
|
2826
|
-
writer = $Writer.create();
|
|
2827
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
2828
|
-
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startsAt);
|
|
2829
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
2830
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endsAt);
|
|
2831
|
-
if (message.isFreeTrial != null && message.hasOwnProperty("isFreeTrial"))
|
|
2832
|
-
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFreeTrial);
|
|
2833
|
-
return writer;
|
|
2834
|
-
};
|
|
2835
|
-
|
|
2836
|
-
/**
|
|
2837
|
-
* Encodes the specified IosSubscriptionTerm message, length delimited. Does not implicitly {@link appleReceipt.IosSubscriptionTerm.verify|verify} messages.
|
|
2838
|
-
* @function encodeDelimited
|
|
2839
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2840
|
-
* @static
|
|
2841
|
-
* @param {appleReceipt.IIosSubscriptionTerm} message IosSubscriptionTerm message or plain object to encode
|
|
2842
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2843
|
-
* @returns {$protobuf.Writer} Writer
|
|
2844
|
-
*/
|
|
2845
|
-
IosSubscriptionTerm.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2846
|
-
return this.encode(message, writer).ldelim();
|
|
2847
|
-
};
|
|
2848
|
-
|
|
2849
|
-
/**
|
|
2850
|
-
* Decodes an IosSubscriptionTerm message from the specified reader or buffer.
|
|
2851
|
-
* @function decode
|
|
2852
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2853
|
-
* @static
|
|
2854
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2855
|
-
* @param {number} [length] Message length if known beforehand
|
|
2856
|
-
* @returns {appleReceipt.IosSubscriptionTerm} IosSubscriptionTerm
|
|
2857
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2858
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2859
|
-
*/
|
|
2860
|
-
IosSubscriptionTerm.decode = function decode(reader, length) {
|
|
2861
|
-
if (!(reader instanceof $Reader))
|
|
2862
|
-
reader = $Reader.create(reader);
|
|
2863
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.appleReceipt.IosSubscriptionTerm();
|
|
2864
|
-
while (reader.pos < end) {
|
|
2865
|
-
var tag = reader.uint32();
|
|
2866
|
-
switch (tag >>> 3) {
|
|
2867
|
-
case 1:
|
|
2868
|
-
message.startsAt = reader.uint64();
|
|
2869
|
-
break;
|
|
2870
|
-
case 2:
|
|
2871
|
-
message.endsAt = reader.uint64();
|
|
2872
|
-
break;
|
|
2873
|
-
case 3:
|
|
2874
|
-
message.isFreeTrial = reader.bool();
|
|
2875
|
-
break;
|
|
2876
|
-
default:
|
|
2877
|
-
reader.skipType(tag & 7);
|
|
2878
|
-
break;
|
|
2879
|
-
}
|
|
2880
|
-
}
|
|
2881
|
-
return message;
|
|
2882
|
-
};
|
|
2883
|
-
|
|
2884
|
-
/**
|
|
2885
|
-
* Decodes an IosSubscriptionTerm message from the specified reader or buffer, length delimited.
|
|
2886
|
-
* @function decodeDelimited
|
|
2887
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2888
|
-
* @static
|
|
2889
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2890
|
-
* @returns {appleReceipt.IosSubscriptionTerm} IosSubscriptionTerm
|
|
2891
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2892
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2893
|
-
*/
|
|
2894
|
-
IosSubscriptionTerm.decodeDelimited = function decodeDelimited(reader) {
|
|
2895
|
-
if (!(reader instanceof $Reader))
|
|
2896
|
-
reader = new $Reader(reader);
|
|
2897
|
-
return this.decode(reader, reader.uint32());
|
|
2898
|
-
};
|
|
2899
|
-
|
|
2900
|
-
/**
|
|
2901
|
-
* Verifies an IosSubscriptionTerm message.
|
|
2902
|
-
* @function verify
|
|
2903
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2904
|
-
* @static
|
|
2905
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
2906
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2907
|
-
*/
|
|
2908
|
-
IosSubscriptionTerm.verify = function verify(message) {
|
|
2909
|
-
if (typeof message !== "object" || message === null)
|
|
2910
|
-
return "object expected";
|
|
2911
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
2912
|
-
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
2913
|
-
return "startsAt: integer|Long expected";
|
|
2914
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
2915
|
-
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
2916
|
-
return "endsAt: integer|Long expected";
|
|
2917
|
-
if (message.isFreeTrial != null && message.hasOwnProperty("isFreeTrial"))
|
|
2918
|
-
if (typeof message.isFreeTrial !== "boolean")
|
|
2919
|
-
return "isFreeTrial: boolean expected";
|
|
2920
|
-
return null;
|
|
2921
|
-
};
|
|
2922
|
-
|
|
2923
|
-
/**
|
|
2924
|
-
* Creates an IosSubscriptionTerm message from a plain object. Also converts values to their respective internal types.
|
|
2925
|
-
* @function fromObject
|
|
2926
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2927
|
-
* @static
|
|
2928
|
-
* @param {Object.<string,*>} object Plain object
|
|
2929
|
-
* @returns {appleReceipt.IosSubscriptionTerm} IosSubscriptionTerm
|
|
2930
|
-
*/
|
|
2931
|
-
IosSubscriptionTerm.fromObject = function fromObject(object) {
|
|
2932
|
-
if (object instanceof $root.appleReceipt.IosSubscriptionTerm)
|
|
2933
|
-
return object;
|
|
2934
|
-
var message = new $root.appleReceipt.IosSubscriptionTerm();
|
|
2935
|
-
if (object.startsAt != null)
|
|
2936
|
-
if ($util.Long)
|
|
2937
|
-
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
2938
|
-
else if (typeof object.startsAt === "string")
|
|
2939
|
-
message.startsAt = parseInt(object.startsAt, 10);
|
|
2940
|
-
else if (typeof object.startsAt === "number")
|
|
2941
|
-
message.startsAt = object.startsAt;
|
|
2942
|
-
else if (typeof object.startsAt === "object")
|
|
2943
|
-
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
2944
|
-
if (object.endsAt != null)
|
|
2945
|
-
if ($util.Long)
|
|
2946
|
-
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
2947
|
-
else if (typeof object.endsAt === "string")
|
|
2948
|
-
message.endsAt = parseInt(object.endsAt, 10);
|
|
2949
|
-
else if (typeof object.endsAt === "number")
|
|
2950
|
-
message.endsAt = object.endsAt;
|
|
2951
|
-
else if (typeof object.endsAt === "object")
|
|
2952
|
-
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
2953
|
-
if (object.isFreeTrial != null)
|
|
2954
|
-
message.isFreeTrial = Boolean(object.isFreeTrial);
|
|
2955
|
-
return message;
|
|
2956
|
-
};
|
|
2957
|
-
|
|
2958
|
-
/**
|
|
2959
|
-
* Creates a plain object from an IosSubscriptionTerm message. Also converts values to other types if specified.
|
|
2960
|
-
* @function toObject
|
|
2961
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
2962
|
-
* @static
|
|
2963
|
-
* @param {appleReceipt.IosSubscriptionTerm} message IosSubscriptionTerm
|
|
2964
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2965
|
-
* @returns {Object.<string,*>} Plain object
|
|
2966
|
-
*/
|
|
2967
|
-
IosSubscriptionTerm.toObject = function toObject(message, options) {
|
|
2968
|
-
if (!options)
|
|
2969
|
-
options = {};
|
|
2970
|
-
var object = {};
|
|
2971
|
-
if (options.defaults) {
|
|
2972
|
-
if ($util.Long) {
|
|
2973
|
-
var long = new $util.Long(0, 0, true);
|
|
2974
|
-
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
2975
|
-
} else
|
|
2976
|
-
object.startsAt = options.longs === String ? "0" : 0;
|
|
2977
|
-
if ($util.Long) {
|
|
2978
|
-
var long = new $util.Long(0, 0, true);
|
|
2979
|
-
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
2980
|
-
} else
|
|
2981
|
-
object.endsAt = options.longs === String ? "0" : 0;
|
|
2982
|
-
object.isFreeTrial = false;
|
|
2983
|
-
}
|
|
2984
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
2985
|
-
if (typeof message.startsAt === "number")
|
|
2986
|
-
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
2987
|
-
else
|
|
2988
|
-
object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
|
|
2989
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
2990
|
-
if (typeof message.endsAt === "number")
|
|
2991
|
-
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
2992
|
-
else
|
|
2993
|
-
object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
|
|
2994
|
-
if (message.isFreeTrial != null && message.hasOwnProperty("isFreeTrial"))
|
|
2995
|
-
object.isFreeTrial = message.isFreeTrial;
|
|
2996
|
-
return object;
|
|
2997
|
-
};
|
|
2998
|
-
|
|
2999
|
-
/**
|
|
3000
|
-
* Converts this IosSubscriptionTerm to JSON.
|
|
3001
|
-
* @function toJSON
|
|
3002
|
-
* @memberof appleReceipt.IosSubscriptionTerm
|
|
3003
|
-
* @instance
|
|
3004
|
-
* @returns {Object.<string,*>} JSON object
|
|
3005
|
-
*/
|
|
3006
|
-
IosSubscriptionTerm.prototype.toJSON = function toJSON() {
|
|
3007
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3008
|
-
};
|
|
3009
|
-
|
|
3010
|
-
return IosSubscriptionTerm;
|
|
3011
|
-
})();
|
|
3012
|
-
|
|
3013
|
-
/**
|
|
3014
|
-
* IosSubscriptionTag enum.
|
|
3015
|
-
* @name appleReceipt.IosSubscriptionTag
|
|
3016
|
-
* @enum {string}
|
|
3017
|
-
* @property {number} IOSTAG_UNKNOWN=0 IOSTAG_UNKNOWN value
|
|
3018
|
-
* @property {number} IOSTAG_FREE_TRIAL=1 IOSTAG_FREE_TRIAL value
|
|
3019
|
-
*/
|
|
3020
|
-
appleReceipt.IosSubscriptionTag = (function() {
|
|
3021
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
3022
|
-
values[valuesById[0] = "IOSTAG_UNKNOWN"] = 0;
|
|
3023
|
-
values[valuesById[1] = "IOSTAG_FREE_TRIAL"] = 1;
|
|
3024
|
-
return values;
|
|
3025
|
-
})();
|
|
3026
|
-
|
|
3027
|
-
return appleReceipt;
|
|
3028
|
-
})();
|
|
3029
|
-
|
|
3030
2732
|
$root.asset = (function() {
|
|
3031
2733
|
|
|
3032
2734
|
/**
|
|
@@ -5110,9 +4812,6 @@ $root.userdomain = (function() {
|
|
|
5110
4812
|
* @property {string|null} [countryCode] User countryCode
|
|
5111
4813
|
* @property {string|null} [stateCode] User stateCode
|
|
5112
4814
|
* @property {userdomain.Platform|null} [signupPlatform] User signupPlatform
|
|
5113
|
-
* @property {string|null} [facebookId] User facebookId
|
|
5114
|
-
* @property {string|null} [appleId] User appleId
|
|
5115
|
-
* @property {string|null} [spotifyId] User spotifyId
|
|
5116
4815
|
*/
|
|
5117
4816
|
|
|
5118
4817
|
/**
|
|
@@ -5194,30 +4893,6 @@ $root.userdomain = (function() {
|
|
|
5194
4893
|
*/
|
|
5195
4894
|
User.prototype.signupPlatform = 0;
|
|
5196
4895
|
|
|
5197
|
-
/**
|
|
5198
|
-
* User facebookId.
|
|
5199
|
-
* @member {string} facebookId
|
|
5200
|
-
* @memberof userdomain.User
|
|
5201
|
-
* @instance
|
|
5202
|
-
*/
|
|
5203
|
-
User.prototype.facebookId = "";
|
|
5204
|
-
|
|
5205
|
-
/**
|
|
5206
|
-
* User appleId.
|
|
5207
|
-
* @member {string} appleId
|
|
5208
|
-
* @memberof userdomain.User
|
|
5209
|
-
* @instance
|
|
5210
|
-
*/
|
|
5211
|
-
User.prototype.appleId = "";
|
|
5212
|
-
|
|
5213
|
-
/**
|
|
5214
|
-
* User spotifyId.
|
|
5215
|
-
* @member {string} spotifyId
|
|
5216
|
-
* @memberof userdomain.User
|
|
5217
|
-
* @instance
|
|
5218
|
-
*/
|
|
5219
|
-
User.prototype.spotifyId = "";
|
|
5220
|
-
|
|
5221
4896
|
/**
|
|
5222
4897
|
* Creates a new User instance using the specified properties.
|
|
5223
4898
|
* @function create
|
|
@@ -5258,12 +4933,6 @@ $root.userdomain = (function() {
|
|
|
5258
4933
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateCode);
|
|
5259
4934
|
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5260
4935
|
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.signupPlatform);
|
|
5261
|
-
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5262
|
-
writer.uint32(/* id 9, wireType 2 =*/74).string(message.facebookId);
|
|
5263
|
-
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5264
|
-
writer.uint32(/* id 10, wireType 2 =*/82).string(message.appleId);
|
|
5265
|
-
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5266
|
-
writer.uint32(/* id 11, wireType 2 =*/90).string(message.spotifyId);
|
|
5267
4936
|
return writer;
|
|
5268
4937
|
};
|
|
5269
4938
|
|
|
@@ -5322,15 +4991,6 @@ $root.userdomain = (function() {
|
|
|
5322
4991
|
case 8:
|
|
5323
4992
|
message.signupPlatform = reader.int32();
|
|
5324
4993
|
break;
|
|
5325
|
-
case 9:
|
|
5326
|
-
message.facebookId = reader.string();
|
|
5327
|
-
break;
|
|
5328
|
-
case 10:
|
|
5329
|
-
message.appleId = reader.string();
|
|
5330
|
-
break;
|
|
5331
|
-
case 11:
|
|
5332
|
-
message.spotifyId = reader.string();
|
|
5333
|
-
break;
|
|
5334
4994
|
default:
|
|
5335
4995
|
reader.skipType(tag & 7);
|
|
5336
4996
|
break;
|
|
@@ -5399,15 +5059,6 @@ $root.userdomain = (function() {
|
|
|
5399
5059
|
case 5:
|
|
5400
5060
|
break;
|
|
5401
5061
|
}
|
|
5402
|
-
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5403
|
-
if (!$util.isString(message.facebookId))
|
|
5404
|
-
return "facebookId: string expected";
|
|
5405
|
-
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5406
|
-
if (!$util.isString(message.appleId))
|
|
5407
|
-
return "appleId: string expected";
|
|
5408
|
-
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5409
|
-
if (!$util.isString(message.spotifyId))
|
|
5410
|
-
return "spotifyId: string expected";
|
|
5411
5062
|
return null;
|
|
5412
5063
|
};
|
|
5413
5064
|
|
|
@@ -5463,12 +5114,6 @@ $root.userdomain = (function() {
|
|
|
5463
5114
|
message.signupPlatform = 5;
|
|
5464
5115
|
break;
|
|
5465
5116
|
}
|
|
5466
|
-
if (object.facebookId != null)
|
|
5467
|
-
message.facebookId = String(object.facebookId);
|
|
5468
|
-
if (object.appleId != null)
|
|
5469
|
-
message.appleId = String(object.appleId);
|
|
5470
|
-
if (object.spotifyId != null)
|
|
5471
|
-
message.spotifyId = String(object.spotifyId);
|
|
5472
5117
|
return message;
|
|
5473
5118
|
};
|
|
5474
5119
|
|
|
@@ -5494,9 +5139,6 @@ $root.userdomain = (function() {
|
|
|
5494
5139
|
object.countryCode = "";
|
|
5495
5140
|
object.stateCode = "";
|
|
5496
5141
|
object.signupPlatform = options.enums === String ? "UNKNOWN_PLATFORM" : 0;
|
|
5497
|
-
object.facebookId = "";
|
|
5498
|
-
object.appleId = "";
|
|
5499
|
-
object.spotifyId = "";
|
|
5500
5142
|
}
|
|
5501
5143
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
5502
5144
|
object.hsId = message.hsId;
|
|
@@ -5514,12 +5156,6 @@ $root.userdomain = (function() {
|
|
|
5514
5156
|
object.stateCode = message.stateCode;
|
|
5515
5157
|
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5516
5158
|
object.signupPlatform = options.enums === String ? $root.userdomain.Platform[message.signupPlatform] : message.signupPlatform;
|
|
5517
|
-
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5518
|
-
object.facebookId = message.facebookId;
|
|
5519
|
-
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5520
|
-
object.appleId = message.appleId;
|
|
5521
|
-
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5522
|
-
object.spotifyId = message.spotifyId;
|
|
5523
5159
|
return object;
|
|
5524
5160
|
};
|
|
5525
5161
|
|
|
@@ -8322,25 +7958,32 @@ $root.BuddyAccepted = (function() {
|
|
|
8322
7958
|
return BuddyAccepted;
|
|
8323
7959
|
})();
|
|
8324
7960
|
|
|
8325
|
-
$root.
|
|
7961
|
+
$root.MessageSent = (function() {
|
|
8326
7962
|
|
|
8327
7963
|
/**
|
|
8328
|
-
* Properties of a
|
|
8329
|
-
* @exports
|
|
8330
|
-
* @interface
|
|
8331
|
-
* @property {string|null} [
|
|
8332
|
-
* @property {string|null} [
|
|
7964
|
+
* Properties of a MessageSent.
|
|
7965
|
+
* @exports IMessageSent
|
|
7966
|
+
* @interface IMessageSent
|
|
7967
|
+
* @property {string|null} [recipientUserId] MessageSent recipientUserId
|
|
7968
|
+
* @property {string|null} [senderUserId] MessageSent senderUserId
|
|
7969
|
+
* @property {string|null} [senderName] MessageSent senderName
|
|
7970
|
+
* @property {string|null} [senderLocale] MessageSent senderLocale
|
|
7971
|
+
* @property {string|null} [deepLink] MessageSent deepLink
|
|
7972
|
+
* @property {string|null} [nudgeId] MessageSent nudgeId
|
|
7973
|
+
* @property {string|null} [imageUrl] MessageSent imageUrl
|
|
7974
|
+
* @property {string|null} [messageText] MessageSent messageText
|
|
7975
|
+
* @property {string|null} [messageTitle] MessageSent messageTitle
|
|
8333
7976
|
*/
|
|
8334
7977
|
|
|
8335
7978
|
/**
|
|
8336
|
-
* Constructs a new
|
|
8337
|
-
* @exports
|
|
8338
|
-
* @classdesc Represents a
|
|
8339
|
-
* @implements
|
|
7979
|
+
* Constructs a new MessageSent.
|
|
7980
|
+
* @exports MessageSent
|
|
7981
|
+
* @classdesc Represents a MessageSent.
|
|
7982
|
+
* @implements IMessageSent
|
|
8340
7983
|
* @constructor
|
|
8341
|
-
* @param {
|
|
7984
|
+
* @param {IMessageSent=} [properties] Properties to set
|
|
8342
7985
|
*/
|
|
8343
|
-
function
|
|
7986
|
+
function MessageSent(properties) {
|
|
8344
7987
|
if (properties)
|
|
8345
7988
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8346
7989
|
if (properties[keys[i]] != null)
|
|
@@ -8348,261 +7991,44 @@ $root.BuddyDeleted = (function() {
|
|
|
8348
7991
|
}
|
|
8349
7992
|
|
|
8350
7993
|
/**
|
|
8351
|
-
*
|
|
8352
|
-
* @member {string}
|
|
8353
|
-
* @memberof
|
|
7994
|
+
* MessageSent recipientUserId.
|
|
7995
|
+
* @member {string} recipientUserId
|
|
7996
|
+
* @memberof MessageSent
|
|
8354
7997
|
* @instance
|
|
8355
7998
|
*/
|
|
8356
|
-
|
|
7999
|
+
MessageSent.prototype.recipientUserId = "";
|
|
8357
8000
|
|
|
8358
8001
|
/**
|
|
8359
|
-
*
|
|
8360
|
-
* @member {string}
|
|
8361
|
-
* @memberof
|
|
8002
|
+
* MessageSent senderUserId.
|
|
8003
|
+
* @member {string} senderUserId
|
|
8004
|
+
* @memberof MessageSent
|
|
8362
8005
|
* @instance
|
|
8363
8006
|
*/
|
|
8364
|
-
|
|
8007
|
+
MessageSent.prototype.senderUserId = "";
|
|
8365
8008
|
|
|
8366
8009
|
/**
|
|
8367
|
-
*
|
|
8368
|
-
* @
|
|
8369
|
-
* @memberof
|
|
8370
|
-
* @
|
|
8371
|
-
* @param {IBuddyDeleted=} [properties] Properties to set
|
|
8372
|
-
* @returns {BuddyDeleted} BuddyDeleted instance
|
|
8010
|
+
* MessageSent senderName.
|
|
8011
|
+
* @member {string} senderName
|
|
8012
|
+
* @memberof MessageSent
|
|
8013
|
+
* @instance
|
|
8373
8014
|
*/
|
|
8374
|
-
|
|
8375
|
-
return new BuddyDeleted(properties);
|
|
8376
|
-
};
|
|
8015
|
+
MessageSent.prototype.senderName = "";
|
|
8377
8016
|
|
|
8378
8017
|
/**
|
|
8379
|
-
*
|
|
8380
|
-
* @
|
|
8381
|
-
* @memberof
|
|
8382
|
-
* @
|
|
8383
|
-
* @param {IBuddyDeleted} message BuddyDeleted message or plain object to encode
|
|
8384
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8385
|
-
* @returns {$protobuf.Writer} Writer
|
|
8018
|
+
* MessageSent senderLocale.
|
|
8019
|
+
* @member {string} senderLocale
|
|
8020
|
+
* @memberof MessageSent
|
|
8021
|
+
* @instance
|
|
8386
8022
|
*/
|
|
8387
|
-
|
|
8388
|
-
if (!writer)
|
|
8389
|
-
writer = $Writer.create();
|
|
8390
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8391
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
8392
|
-
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
8393
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.buddyUserId);
|
|
8394
|
-
return writer;
|
|
8395
|
-
};
|
|
8023
|
+
MessageSent.prototype.senderLocale = "";
|
|
8396
8024
|
|
|
8397
8025
|
/**
|
|
8398
|
-
*
|
|
8399
|
-
* @
|
|
8400
|
-
* @memberof
|
|
8401
|
-
* @
|
|
8402
|
-
* @param {IBuddyDeleted} message BuddyDeleted message or plain object to encode
|
|
8403
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8404
|
-
* @returns {$protobuf.Writer} Writer
|
|
8026
|
+
* MessageSent deepLink.
|
|
8027
|
+
* @member {string} deepLink
|
|
8028
|
+
* @memberof MessageSent
|
|
8029
|
+
* @instance
|
|
8405
8030
|
*/
|
|
8406
|
-
|
|
8407
|
-
return this.encode(message, writer).ldelim();
|
|
8408
|
-
};
|
|
8409
|
-
|
|
8410
|
-
/**
|
|
8411
|
-
* Decodes a BuddyDeleted message from the specified reader or buffer.
|
|
8412
|
-
* @function decode
|
|
8413
|
-
* @memberof BuddyDeleted
|
|
8414
|
-
* @static
|
|
8415
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8416
|
-
* @param {number} [length] Message length if known beforehand
|
|
8417
|
-
* @returns {BuddyDeleted} BuddyDeleted
|
|
8418
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8419
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8420
|
-
*/
|
|
8421
|
-
BuddyDeleted.decode = function decode(reader, length) {
|
|
8422
|
-
if (!(reader instanceof $Reader))
|
|
8423
|
-
reader = $Reader.create(reader);
|
|
8424
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BuddyDeleted();
|
|
8425
|
-
while (reader.pos < end) {
|
|
8426
|
-
var tag = reader.uint32();
|
|
8427
|
-
switch (tag >>> 3) {
|
|
8428
|
-
case 1:
|
|
8429
|
-
message.userId = reader.string();
|
|
8430
|
-
break;
|
|
8431
|
-
case 2:
|
|
8432
|
-
message.buddyUserId = reader.string();
|
|
8433
|
-
break;
|
|
8434
|
-
default:
|
|
8435
|
-
reader.skipType(tag & 7);
|
|
8436
|
-
break;
|
|
8437
|
-
}
|
|
8438
|
-
}
|
|
8439
|
-
return message;
|
|
8440
|
-
};
|
|
8441
|
-
|
|
8442
|
-
/**
|
|
8443
|
-
* Decodes a BuddyDeleted message from the specified reader or buffer, length delimited.
|
|
8444
|
-
* @function decodeDelimited
|
|
8445
|
-
* @memberof BuddyDeleted
|
|
8446
|
-
* @static
|
|
8447
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8448
|
-
* @returns {BuddyDeleted} BuddyDeleted
|
|
8449
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8450
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8451
|
-
*/
|
|
8452
|
-
BuddyDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
8453
|
-
if (!(reader instanceof $Reader))
|
|
8454
|
-
reader = new $Reader(reader);
|
|
8455
|
-
return this.decode(reader, reader.uint32());
|
|
8456
|
-
};
|
|
8457
|
-
|
|
8458
|
-
/**
|
|
8459
|
-
* Verifies a BuddyDeleted message.
|
|
8460
|
-
* @function verify
|
|
8461
|
-
* @memberof BuddyDeleted
|
|
8462
|
-
* @static
|
|
8463
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
8464
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8465
|
-
*/
|
|
8466
|
-
BuddyDeleted.verify = function verify(message) {
|
|
8467
|
-
if (typeof message !== "object" || message === null)
|
|
8468
|
-
return "object expected";
|
|
8469
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8470
|
-
if (!$util.isString(message.userId))
|
|
8471
|
-
return "userId: string expected";
|
|
8472
|
-
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
8473
|
-
if (!$util.isString(message.buddyUserId))
|
|
8474
|
-
return "buddyUserId: string expected";
|
|
8475
|
-
return null;
|
|
8476
|
-
};
|
|
8477
|
-
|
|
8478
|
-
/**
|
|
8479
|
-
* Creates a BuddyDeleted message from a plain object. Also converts values to their respective internal types.
|
|
8480
|
-
* @function fromObject
|
|
8481
|
-
* @memberof BuddyDeleted
|
|
8482
|
-
* @static
|
|
8483
|
-
* @param {Object.<string,*>} object Plain object
|
|
8484
|
-
* @returns {BuddyDeleted} BuddyDeleted
|
|
8485
|
-
*/
|
|
8486
|
-
BuddyDeleted.fromObject = function fromObject(object) {
|
|
8487
|
-
if (object instanceof $root.BuddyDeleted)
|
|
8488
|
-
return object;
|
|
8489
|
-
var message = new $root.BuddyDeleted();
|
|
8490
|
-
if (object.userId != null)
|
|
8491
|
-
message.userId = String(object.userId);
|
|
8492
|
-
if (object.buddyUserId != null)
|
|
8493
|
-
message.buddyUserId = String(object.buddyUserId);
|
|
8494
|
-
return message;
|
|
8495
|
-
};
|
|
8496
|
-
|
|
8497
|
-
/**
|
|
8498
|
-
* Creates a plain object from a BuddyDeleted message. Also converts values to other types if specified.
|
|
8499
|
-
* @function toObject
|
|
8500
|
-
* @memberof BuddyDeleted
|
|
8501
|
-
* @static
|
|
8502
|
-
* @param {BuddyDeleted} message BuddyDeleted
|
|
8503
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8504
|
-
* @returns {Object.<string,*>} Plain object
|
|
8505
|
-
*/
|
|
8506
|
-
BuddyDeleted.toObject = function toObject(message, options) {
|
|
8507
|
-
if (!options)
|
|
8508
|
-
options = {};
|
|
8509
|
-
var object = {};
|
|
8510
|
-
if (options.defaults) {
|
|
8511
|
-
object.userId = "";
|
|
8512
|
-
object.buddyUserId = "";
|
|
8513
|
-
}
|
|
8514
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8515
|
-
object.userId = message.userId;
|
|
8516
|
-
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
8517
|
-
object.buddyUserId = message.buddyUserId;
|
|
8518
|
-
return object;
|
|
8519
|
-
};
|
|
8520
|
-
|
|
8521
|
-
/**
|
|
8522
|
-
* Converts this BuddyDeleted to JSON.
|
|
8523
|
-
* @function toJSON
|
|
8524
|
-
* @memberof BuddyDeleted
|
|
8525
|
-
* @instance
|
|
8526
|
-
* @returns {Object.<string,*>} JSON object
|
|
8527
|
-
*/
|
|
8528
|
-
BuddyDeleted.prototype.toJSON = function toJSON() {
|
|
8529
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8530
|
-
};
|
|
8531
|
-
|
|
8532
|
-
return BuddyDeleted;
|
|
8533
|
-
})();
|
|
8534
|
-
|
|
8535
|
-
$root.MessageSent = (function() {
|
|
8536
|
-
|
|
8537
|
-
/**
|
|
8538
|
-
* Properties of a MessageSent.
|
|
8539
|
-
* @exports IMessageSent
|
|
8540
|
-
* @interface IMessageSent
|
|
8541
|
-
* @property {string|null} [recipientUserId] MessageSent recipientUserId
|
|
8542
|
-
* @property {string|null} [senderUserId] MessageSent senderUserId
|
|
8543
|
-
* @property {string|null} [senderName] MessageSent senderName
|
|
8544
|
-
* @property {string|null} [senderLocale] MessageSent senderLocale
|
|
8545
|
-
* @property {string|null} [deepLink] MessageSent deepLink
|
|
8546
|
-
* @property {string|null} [nudgeId] MessageSent nudgeId
|
|
8547
|
-
* @property {string|null} [imageUrl] MessageSent imageUrl
|
|
8548
|
-
* @property {string|null} [messageText] MessageSent messageText
|
|
8549
|
-
* @property {string|null} [messageTitle] MessageSent messageTitle
|
|
8550
|
-
*/
|
|
8551
|
-
|
|
8552
|
-
/**
|
|
8553
|
-
* Constructs a new MessageSent.
|
|
8554
|
-
* @exports MessageSent
|
|
8555
|
-
* @classdesc Represents a MessageSent.
|
|
8556
|
-
* @implements IMessageSent
|
|
8557
|
-
* @constructor
|
|
8558
|
-
* @param {IMessageSent=} [properties] Properties to set
|
|
8559
|
-
*/
|
|
8560
|
-
function MessageSent(properties) {
|
|
8561
|
-
if (properties)
|
|
8562
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8563
|
-
if (properties[keys[i]] != null)
|
|
8564
|
-
this[keys[i]] = properties[keys[i]];
|
|
8565
|
-
}
|
|
8566
|
-
|
|
8567
|
-
/**
|
|
8568
|
-
* MessageSent recipientUserId.
|
|
8569
|
-
* @member {string} recipientUserId
|
|
8570
|
-
* @memberof MessageSent
|
|
8571
|
-
* @instance
|
|
8572
|
-
*/
|
|
8573
|
-
MessageSent.prototype.recipientUserId = "";
|
|
8574
|
-
|
|
8575
|
-
/**
|
|
8576
|
-
* MessageSent senderUserId.
|
|
8577
|
-
* @member {string} senderUserId
|
|
8578
|
-
* @memberof MessageSent
|
|
8579
|
-
* @instance
|
|
8580
|
-
*/
|
|
8581
|
-
MessageSent.prototype.senderUserId = "";
|
|
8582
|
-
|
|
8583
|
-
/**
|
|
8584
|
-
* MessageSent senderName.
|
|
8585
|
-
* @member {string} senderName
|
|
8586
|
-
* @memberof MessageSent
|
|
8587
|
-
* @instance
|
|
8588
|
-
*/
|
|
8589
|
-
MessageSent.prototype.senderName = "";
|
|
8590
|
-
|
|
8591
|
-
/**
|
|
8592
|
-
* MessageSent senderLocale.
|
|
8593
|
-
* @member {string} senderLocale
|
|
8594
|
-
* @memberof MessageSent
|
|
8595
|
-
* @instance
|
|
8596
|
-
*/
|
|
8597
|
-
MessageSent.prototype.senderLocale = "";
|
|
8598
|
-
|
|
8599
|
-
/**
|
|
8600
|
-
* MessageSent deepLink.
|
|
8601
|
-
* @member {string} deepLink
|
|
8602
|
-
* @memberof MessageSent
|
|
8603
|
-
* @instance
|
|
8604
|
-
*/
|
|
8605
|
-
MessageSent.prototype.deepLink = "";
|
|
8031
|
+
MessageSent.prototype.deepLink = "";
|
|
8606
8032
|
|
|
8607
8033
|
/**
|
|
8608
8034
|
* MessageSent nudgeId.
|
|
@@ -8847,829 +8273,53 @@ $root.MessageSent = (function() {
|
|
|
8847
8273
|
* @returns {Object.<string,*>} Plain object
|
|
8848
8274
|
*/
|
|
8849
8275
|
MessageSent.toObject = function toObject(message, options) {
|
|
8850
|
-
if (!options)
|
|
8851
|
-
options = {};
|
|
8852
|
-
var object = {};
|
|
8853
|
-
if (options.defaults) {
|
|
8854
|
-
object.recipientUserId = "";
|
|
8855
|
-
object.senderUserId = "";
|
|
8856
|
-
object.senderName = "";
|
|
8857
|
-
object.senderLocale = "";
|
|
8858
|
-
object.deepLink = "";
|
|
8859
|
-
object.nudgeId = "";
|
|
8860
|
-
object.imageUrl = "";
|
|
8861
|
-
object.messageText = "";
|
|
8862
|
-
object.messageTitle = "";
|
|
8863
|
-
}
|
|
8864
|
-
if (message.recipientUserId != null && message.hasOwnProperty("recipientUserId"))
|
|
8865
|
-
object.recipientUserId = message.recipientUserId;
|
|
8866
|
-
if (message.senderUserId != null && message.hasOwnProperty("senderUserId"))
|
|
8867
|
-
object.senderUserId = message.senderUserId;
|
|
8868
|
-
if (message.senderName != null && message.hasOwnProperty("senderName"))
|
|
8869
|
-
object.senderName = message.senderName;
|
|
8870
|
-
if (message.senderLocale != null && message.hasOwnProperty("senderLocale"))
|
|
8871
|
-
object.senderLocale = message.senderLocale;
|
|
8872
|
-
if (message.deepLink != null && message.hasOwnProperty("deepLink"))
|
|
8873
|
-
object.deepLink = message.deepLink;
|
|
8874
|
-
if (message.nudgeId != null && message.hasOwnProperty("nudgeId"))
|
|
8875
|
-
object.nudgeId = message.nudgeId;
|
|
8876
|
-
if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
|
|
8877
|
-
object.imageUrl = message.imageUrl;
|
|
8878
|
-
if (message.messageText != null && message.hasOwnProperty("messageText"))
|
|
8879
|
-
object.messageText = message.messageText;
|
|
8880
|
-
if (message.messageTitle != null && message.hasOwnProperty("messageTitle"))
|
|
8881
|
-
object.messageTitle = message.messageTitle;
|
|
8882
|
-
return object;
|
|
8883
|
-
};
|
|
8884
|
-
|
|
8885
|
-
/**
|
|
8886
|
-
* Converts this MessageSent to JSON.
|
|
8887
|
-
* @function toJSON
|
|
8888
|
-
* @memberof MessageSent
|
|
8889
|
-
* @instance
|
|
8890
|
-
* @returns {Object.<string,*>} JSON object
|
|
8891
|
-
*/
|
|
8892
|
-
MessageSent.prototype.toJSON = function toJSON() {
|
|
8893
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8894
|
-
};
|
|
8895
|
-
|
|
8896
|
-
return MessageSent;
|
|
8897
|
-
})();
|
|
8898
|
-
|
|
8899
|
-
$root.IosSubscriptionCreated = (function() {
|
|
8900
|
-
|
|
8901
|
-
/**
|
|
8902
|
-
* Properties of an IosSubscriptionCreated.
|
|
8903
|
-
* @exports IIosSubscriptionCreated
|
|
8904
|
-
* @interface IIosSubscriptionCreated
|
|
8905
|
-
* @property {string|null} [id] IosSubscriptionCreated id
|
|
8906
|
-
* @property {number|Long|null} [endsAt] IosSubscriptionCreated endsAt
|
|
8907
|
-
* @property {number|Long|null} [startsAt] IosSubscriptionCreated startsAt
|
|
8908
|
-
* @property {string|null} [userId] IosSubscriptionCreated userId
|
|
8909
|
-
* @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionCreated tags
|
|
8910
|
-
* @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionCreated terms
|
|
8911
|
-
*/
|
|
8912
|
-
|
|
8913
|
-
/**
|
|
8914
|
-
* Constructs a new IosSubscriptionCreated.
|
|
8915
|
-
* @exports IosSubscriptionCreated
|
|
8916
|
-
* @classdesc Represents an IosSubscriptionCreated.
|
|
8917
|
-
* @implements IIosSubscriptionCreated
|
|
8918
|
-
* @constructor
|
|
8919
|
-
* @param {IIosSubscriptionCreated=} [properties] Properties to set
|
|
8920
|
-
*/
|
|
8921
|
-
function IosSubscriptionCreated(properties) {
|
|
8922
|
-
this.tags = [];
|
|
8923
|
-
this.terms = [];
|
|
8924
|
-
if (properties)
|
|
8925
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8926
|
-
if (properties[keys[i]] != null)
|
|
8927
|
-
this[keys[i]] = properties[keys[i]];
|
|
8928
|
-
}
|
|
8929
|
-
|
|
8930
|
-
/**
|
|
8931
|
-
* IosSubscriptionCreated id.
|
|
8932
|
-
* @member {string} id
|
|
8933
|
-
* @memberof IosSubscriptionCreated
|
|
8934
|
-
* @instance
|
|
8935
|
-
*/
|
|
8936
|
-
IosSubscriptionCreated.prototype.id = "";
|
|
8937
|
-
|
|
8938
|
-
/**
|
|
8939
|
-
* IosSubscriptionCreated endsAt.
|
|
8940
|
-
* @member {number|Long} endsAt
|
|
8941
|
-
* @memberof IosSubscriptionCreated
|
|
8942
|
-
* @instance
|
|
8943
|
-
*/
|
|
8944
|
-
IosSubscriptionCreated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8945
|
-
|
|
8946
|
-
/**
|
|
8947
|
-
* IosSubscriptionCreated startsAt.
|
|
8948
|
-
* @member {number|Long} startsAt
|
|
8949
|
-
* @memberof IosSubscriptionCreated
|
|
8950
|
-
* @instance
|
|
8951
|
-
*/
|
|
8952
|
-
IosSubscriptionCreated.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8953
|
-
|
|
8954
|
-
/**
|
|
8955
|
-
* IosSubscriptionCreated userId.
|
|
8956
|
-
* @member {string} userId
|
|
8957
|
-
* @memberof IosSubscriptionCreated
|
|
8958
|
-
* @instance
|
|
8959
|
-
*/
|
|
8960
|
-
IosSubscriptionCreated.prototype.userId = "";
|
|
8961
|
-
|
|
8962
|
-
/**
|
|
8963
|
-
* IosSubscriptionCreated tags.
|
|
8964
|
-
* @member {Array.<appleReceipt.IosSubscriptionTag>} tags
|
|
8965
|
-
* @memberof IosSubscriptionCreated
|
|
8966
|
-
* @instance
|
|
8967
|
-
*/
|
|
8968
|
-
IosSubscriptionCreated.prototype.tags = $util.emptyArray;
|
|
8969
|
-
|
|
8970
|
-
/**
|
|
8971
|
-
* IosSubscriptionCreated terms.
|
|
8972
|
-
* @member {Array.<appleReceipt.IIosSubscriptionTerm>} terms
|
|
8973
|
-
* @memberof IosSubscriptionCreated
|
|
8974
|
-
* @instance
|
|
8975
|
-
*/
|
|
8976
|
-
IosSubscriptionCreated.prototype.terms = $util.emptyArray;
|
|
8977
|
-
|
|
8978
|
-
/**
|
|
8979
|
-
* Creates a new IosSubscriptionCreated instance using the specified properties.
|
|
8980
|
-
* @function create
|
|
8981
|
-
* @memberof IosSubscriptionCreated
|
|
8982
|
-
* @static
|
|
8983
|
-
* @param {IIosSubscriptionCreated=} [properties] Properties to set
|
|
8984
|
-
* @returns {IosSubscriptionCreated} IosSubscriptionCreated instance
|
|
8985
|
-
*/
|
|
8986
|
-
IosSubscriptionCreated.create = function create(properties) {
|
|
8987
|
-
return new IosSubscriptionCreated(properties);
|
|
8988
|
-
};
|
|
8989
|
-
|
|
8990
|
-
/**
|
|
8991
|
-
* Encodes the specified IosSubscriptionCreated message. Does not implicitly {@link IosSubscriptionCreated.verify|verify} messages.
|
|
8992
|
-
* @function encode
|
|
8993
|
-
* @memberof IosSubscriptionCreated
|
|
8994
|
-
* @static
|
|
8995
|
-
* @param {IIosSubscriptionCreated} message IosSubscriptionCreated message or plain object to encode
|
|
8996
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8997
|
-
* @returns {$protobuf.Writer} Writer
|
|
8998
|
-
*/
|
|
8999
|
-
IosSubscriptionCreated.encode = function encode(message, writer) {
|
|
9000
|
-
if (!writer)
|
|
9001
|
-
writer = $Writer.create();
|
|
9002
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
9003
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
9004
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9005
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endsAt);
|
|
9006
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9007
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.startsAt);
|
|
9008
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9009
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.userId);
|
|
9010
|
-
if (message.tags != null && message.tags.length) {
|
|
9011
|
-
writer.uint32(/* id 5, wireType 2 =*/42).fork();
|
|
9012
|
-
for (var i = 0; i < message.tags.length; ++i)
|
|
9013
|
-
writer.int32(message.tags[i]);
|
|
9014
|
-
writer.ldelim();
|
|
9015
|
-
}
|
|
9016
|
-
if (message.terms != null && message.terms.length)
|
|
9017
|
-
for (var i = 0; i < message.terms.length; ++i)
|
|
9018
|
-
$root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
9019
|
-
return writer;
|
|
9020
|
-
};
|
|
9021
|
-
|
|
9022
|
-
/**
|
|
9023
|
-
* Encodes the specified IosSubscriptionCreated message, length delimited. Does not implicitly {@link IosSubscriptionCreated.verify|verify} messages.
|
|
9024
|
-
* @function encodeDelimited
|
|
9025
|
-
* @memberof IosSubscriptionCreated
|
|
9026
|
-
* @static
|
|
9027
|
-
* @param {IIosSubscriptionCreated} message IosSubscriptionCreated message or plain object to encode
|
|
9028
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9029
|
-
* @returns {$protobuf.Writer} Writer
|
|
9030
|
-
*/
|
|
9031
|
-
IosSubscriptionCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9032
|
-
return this.encode(message, writer).ldelim();
|
|
9033
|
-
};
|
|
9034
|
-
|
|
9035
|
-
/**
|
|
9036
|
-
* Decodes an IosSubscriptionCreated message from the specified reader or buffer.
|
|
9037
|
-
* @function decode
|
|
9038
|
-
* @memberof IosSubscriptionCreated
|
|
9039
|
-
* @static
|
|
9040
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9041
|
-
* @param {number} [length] Message length if known beforehand
|
|
9042
|
-
* @returns {IosSubscriptionCreated} IosSubscriptionCreated
|
|
9043
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9044
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9045
|
-
*/
|
|
9046
|
-
IosSubscriptionCreated.decode = function decode(reader, length) {
|
|
9047
|
-
if (!(reader instanceof $Reader))
|
|
9048
|
-
reader = $Reader.create(reader);
|
|
9049
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IosSubscriptionCreated();
|
|
9050
|
-
while (reader.pos < end) {
|
|
9051
|
-
var tag = reader.uint32();
|
|
9052
|
-
switch (tag >>> 3) {
|
|
9053
|
-
case 1:
|
|
9054
|
-
message.id = reader.string();
|
|
9055
|
-
break;
|
|
9056
|
-
case 2:
|
|
9057
|
-
message.endsAt = reader.uint64();
|
|
9058
|
-
break;
|
|
9059
|
-
case 3:
|
|
9060
|
-
message.startsAt = reader.uint64();
|
|
9061
|
-
break;
|
|
9062
|
-
case 4:
|
|
9063
|
-
message.userId = reader.string();
|
|
9064
|
-
break;
|
|
9065
|
-
case 5:
|
|
9066
|
-
if (!(message.tags && message.tags.length))
|
|
9067
|
-
message.tags = [];
|
|
9068
|
-
if ((tag & 7) === 2) {
|
|
9069
|
-
var end2 = reader.uint32() + reader.pos;
|
|
9070
|
-
while (reader.pos < end2)
|
|
9071
|
-
message.tags.push(reader.int32());
|
|
9072
|
-
} else
|
|
9073
|
-
message.tags.push(reader.int32());
|
|
9074
|
-
break;
|
|
9075
|
-
case 6:
|
|
9076
|
-
if (!(message.terms && message.terms.length))
|
|
9077
|
-
message.terms = [];
|
|
9078
|
-
message.terms.push($root.appleReceipt.IosSubscriptionTerm.decode(reader, reader.uint32()));
|
|
9079
|
-
break;
|
|
9080
|
-
default:
|
|
9081
|
-
reader.skipType(tag & 7);
|
|
9082
|
-
break;
|
|
9083
|
-
}
|
|
9084
|
-
}
|
|
9085
|
-
return message;
|
|
9086
|
-
};
|
|
9087
|
-
|
|
9088
|
-
/**
|
|
9089
|
-
* Decodes an IosSubscriptionCreated message from the specified reader or buffer, length delimited.
|
|
9090
|
-
* @function decodeDelimited
|
|
9091
|
-
* @memberof IosSubscriptionCreated
|
|
9092
|
-
* @static
|
|
9093
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9094
|
-
* @returns {IosSubscriptionCreated} IosSubscriptionCreated
|
|
9095
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9096
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9097
|
-
*/
|
|
9098
|
-
IosSubscriptionCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
9099
|
-
if (!(reader instanceof $Reader))
|
|
9100
|
-
reader = new $Reader(reader);
|
|
9101
|
-
return this.decode(reader, reader.uint32());
|
|
9102
|
-
};
|
|
9103
|
-
|
|
9104
|
-
/**
|
|
9105
|
-
* Verifies an IosSubscriptionCreated message.
|
|
9106
|
-
* @function verify
|
|
9107
|
-
* @memberof IosSubscriptionCreated
|
|
9108
|
-
* @static
|
|
9109
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
9110
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9111
|
-
*/
|
|
9112
|
-
IosSubscriptionCreated.verify = function verify(message) {
|
|
9113
|
-
if (typeof message !== "object" || message === null)
|
|
9114
|
-
return "object expected";
|
|
9115
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
9116
|
-
if (!$util.isString(message.id))
|
|
9117
|
-
return "id: string expected";
|
|
9118
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9119
|
-
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
9120
|
-
return "endsAt: integer|Long expected";
|
|
9121
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9122
|
-
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
9123
|
-
return "startsAt: integer|Long expected";
|
|
9124
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9125
|
-
if (!$util.isString(message.userId))
|
|
9126
|
-
return "userId: string expected";
|
|
9127
|
-
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
9128
|
-
if (!Array.isArray(message.tags))
|
|
9129
|
-
return "tags: array expected";
|
|
9130
|
-
for (var i = 0; i < message.tags.length; ++i)
|
|
9131
|
-
switch (message.tags[i]) {
|
|
9132
|
-
default:
|
|
9133
|
-
return "tags: enum value[] expected";
|
|
9134
|
-
case 0:
|
|
9135
|
-
case 1:
|
|
9136
|
-
break;
|
|
9137
|
-
}
|
|
9138
|
-
}
|
|
9139
|
-
if (message.terms != null && message.hasOwnProperty("terms")) {
|
|
9140
|
-
if (!Array.isArray(message.terms))
|
|
9141
|
-
return "terms: array expected";
|
|
9142
|
-
for (var i = 0; i < message.terms.length; ++i) {
|
|
9143
|
-
var error = $root.appleReceipt.IosSubscriptionTerm.verify(message.terms[i]);
|
|
9144
|
-
if (error)
|
|
9145
|
-
return "terms." + error;
|
|
9146
|
-
}
|
|
9147
|
-
}
|
|
9148
|
-
return null;
|
|
9149
|
-
};
|
|
9150
|
-
|
|
9151
|
-
/**
|
|
9152
|
-
* Creates an IosSubscriptionCreated message from a plain object. Also converts values to their respective internal types.
|
|
9153
|
-
* @function fromObject
|
|
9154
|
-
* @memberof IosSubscriptionCreated
|
|
9155
|
-
* @static
|
|
9156
|
-
* @param {Object.<string,*>} object Plain object
|
|
9157
|
-
* @returns {IosSubscriptionCreated} IosSubscriptionCreated
|
|
9158
|
-
*/
|
|
9159
|
-
IosSubscriptionCreated.fromObject = function fromObject(object) {
|
|
9160
|
-
if (object instanceof $root.IosSubscriptionCreated)
|
|
9161
|
-
return object;
|
|
9162
|
-
var message = new $root.IosSubscriptionCreated();
|
|
9163
|
-
if (object.id != null)
|
|
9164
|
-
message.id = String(object.id);
|
|
9165
|
-
if (object.endsAt != null)
|
|
9166
|
-
if ($util.Long)
|
|
9167
|
-
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
9168
|
-
else if (typeof object.endsAt === "string")
|
|
9169
|
-
message.endsAt = parseInt(object.endsAt, 10);
|
|
9170
|
-
else if (typeof object.endsAt === "number")
|
|
9171
|
-
message.endsAt = object.endsAt;
|
|
9172
|
-
else if (typeof object.endsAt === "object")
|
|
9173
|
-
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
9174
|
-
if (object.startsAt != null)
|
|
9175
|
-
if ($util.Long)
|
|
9176
|
-
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
9177
|
-
else if (typeof object.startsAt === "string")
|
|
9178
|
-
message.startsAt = parseInt(object.startsAt, 10);
|
|
9179
|
-
else if (typeof object.startsAt === "number")
|
|
9180
|
-
message.startsAt = object.startsAt;
|
|
9181
|
-
else if (typeof object.startsAt === "object")
|
|
9182
|
-
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
9183
|
-
if (object.userId != null)
|
|
9184
|
-
message.userId = String(object.userId);
|
|
9185
|
-
if (object.tags) {
|
|
9186
|
-
if (!Array.isArray(object.tags))
|
|
9187
|
-
throw TypeError(".IosSubscriptionCreated.tags: array expected");
|
|
9188
|
-
message.tags = [];
|
|
9189
|
-
for (var i = 0; i < object.tags.length; ++i)
|
|
9190
|
-
switch (object.tags[i]) {
|
|
9191
|
-
default:
|
|
9192
|
-
case "IOSTAG_UNKNOWN":
|
|
9193
|
-
case 0:
|
|
9194
|
-
message.tags[i] = 0;
|
|
9195
|
-
break;
|
|
9196
|
-
case "IOSTAG_FREE_TRIAL":
|
|
9197
|
-
case 1:
|
|
9198
|
-
message.tags[i] = 1;
|
|
9199
|
-
break;
|
|
9200
|
-
}
|
|
9201
|
-
}
|
|
9202
|
-
if (object.terms) {
|
|
9203
|
-
if (!Array.isArray(object.terms))
|
|
9204
|
-
throw TypeError(".IosSubscriptionCreated.terms: array expected");
|
|
9205
|
-
message.terms = [];
|
|
9206
|
-
for (var i = 0; i < object.terms.length; ++i) {
|
|
9207
|
-
if (typeof object.terms[i] !== "object")
|
|
9208
|
-
throw TypeError(".IosSubscriptionCreated.terms: object expected");
|
|
9209
|
-
message.terms[i] = $root.appleReceipt.IosSubscriptionTerm.fromObject(object.terms[i]);
|
|
9210
|
-
}
|
|
9211
|
-
}
|
|
9212
|
-
return message;
|
|
9213
|
-
};
|
|
9214
|
-
|
|
9215
|
-
/**
|
|
9216
|
-
* Creates a plain object from an IosSubscriptionCreated message. Also converts values to other types if specified.
|
|
9217
|
-
* @function toObject
|
|
9218
|
-
* @memberof IosSubscriptionCreated
|
|
9219
|
-
* @static
|
|
9220
|
-
* @param {IosSubscriptionCreated} message IosSubscriptionCreated
|
|
9221
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9222
|
-
* @returns {Object.<string,*>} Plain object
|
|
9223
|
-
*/
|
|
9224
|
-
IosSubscriptionCreated.toObject = function toObject(message, options) {
|
|
9225
|
-
if (!options)
|
|
9226
|
-
options = {};
|
|
9227
|
-
var object = {};
|
|
9228
|
-
if (options.arrays || options.defaults) {
|
|
9229
|
-
object.tags = [];
|
|
9230
|
-
object.terms = [];
|
|
9231
|
-
}
|
|
9232
|
-
if (options.defaults) {
|
|
9233
|
-
object.id = "";
|
|
9234
|
-
if ($util.Long) {
|
|
9235
|
-
var long = new $util.Long(0, 0, true);
|
|
9236
|
-
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9237
|
-
} else
|
|
9238
|
-
object.endsAt = options.longs === String ? "0" : 0;
|
|
9239
|
-
if ($util.Long) {
|
|
9240
|
-
var long = new $util.Long(0, 0, true);
|
|
9241
|
-
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9242
|
-
} else
|
|
9243
|
-
object.startsAt = options.longs === String ? "0" : 0;
|
|
9244
|
-
object.userId = "";
|
|
9245
|
-
}
|
|
9246
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
9247
|
-
object.id = message.id;
|
|
9248
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9249
|
-
if (typeof message.endsAt === "number")
|
|
9250
|
-
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
9251
|
-
else
|
|
9252
|
-
object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
|
|
9253
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9254
|
-
if (typeof message.startsAt === "number")
|
|
9255
|
-
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
9256
|
-
else
|
|
9257
|
-
object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
|
|
9258
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9259
|
-
object.userId = message.userId;
|
|
9260
|
-
if (message.tags && message.tags.length) {
|
|
9261
|
-
object.tags = [];
|
|
9262
|
-
for (var j = 0; j < message.tags.length; ++j)
|
|
9263
|
-
object.tags[j] = options.enums === String ? $root.appleReceipt.IosSubscriptionTag[message.tags[j]] : message.tags[j];
|
|
9264
|
-
}
|
|
9265
|
-
if (message.terms && message.terms.length) {
|
|
9266
|
-
object.terms = [];
|
|
9267
|
-
for (var j = 0; j < message.terms.length; ++j)
|
|
9268
|
-
object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
|
|
9269
|
-
}
|
|
9270
|
-
return object;
|
|
9271
|
-
};
|
|
9272
|
-
|
|
9273
|
-
/**
|
|
9274
|
-
* Converts this IosSubscriptionCreated to JSON.
|
|
9275
|
-
* @function toJSON
|
|
9276
|
-
* @memberof IosSubscriptionCreated
|
|
9277
|
-
* @instance
|
|
9278
|
-
* @returns {Object.<string,*>} JSON object
|
|
9279
|
-
*/
|
|
9280
|
-
IosSubscriptionCreated.prototype.toJSON = function toJSON() {
|
|
9281
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9282
|
-
};
|
|
9283
|
-
|
|
9284
|
-
return IosSubscriptionCreated;
|
|
9285
|
-
})();
|
|
9286
|
-
|
|
9287
|
-
$root.IosSubscriptionRenewed = (function() {
|
|
9288
|
-
|
|
9289
|
-
/**
|
|
9290
|
-
* Properties of an IosSubscriptionRenewed.
|
|
9291
|
-
* @exports IIosSubscriptionRenewed
|
|
9292
|
-
* @interface IIosSubscriptionRenewed
|
|
9293
|
-
* @property {string|null} [id] IosSubscriptionRenewed id
|
|
9294
|
-
* @property {number|Long|null} [endsAt] IosSubscriptionRenewed endsAt
|
|
9295
|
-
* @property {number|Long|null} [startsAt] IosSubscriptionRenewed startsAt
|
|
9296
|
-
* @property {string|null} [userId] IosSubscriptionRenewed userId
|
|
9297
|
-
* @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionRenewed tags
|
|
9298
|
-
* @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionRenewed terms
|
|
9299
|
-
*/
|
|
9300
|
-
|
|
9301
|
-
/**
|
|
9302
|
-
* Constructs a new IosSubscriptionRenewed.
|
|
9303
|
-
* @exports IosSubscriptionRenewed
|
|
9304
|
-
* @classdesc Represents an IosSubscriptionRenewed.
|
|
9305
|
-
* @implements IIosSubscriptionRenewed
|
|
9306
|
-
* @constructor
|
|
9307
|
-
* @param {IIosSubscriptionRenewed=} [properties] Properties to set
|
|
9308
|
-
*/
|
|
9309
|
-
function IosSubscriptionRenewed(properties) {
|
|
9310
|
-
this.tags = [];
|
|
9311
|
-
this.terms = [];
|
|
9312
|
-
if (properties)
|
|
9313
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9314
|
-
if (properties[keys[i]] != null)
|
|
9315
|
-
this[keys[i]] = properties[keys[i]];
|
|
9316
|
-
}
|
|
9317
|
-
|
|
9318
|
-
/**
|
|
9319
|
-
* IosSubscriptionRenewed id.
|
|
9320
|
-
* @member {string} id
|
|
9321
|
-
* @memberof IosSubscriptionRenewed
|
|
9322
|
-
* @instance
|
|
9323
|
-
*/
|
|
9324
|
-
IosSubscriptionRenewed.prototype.id = "";
|
|
9325
|
-
|
|
9326
|
-
/**
|
|
9327
|
-
* IosSubscriptionRenewed endsAt.
|
|
9328
|
-
* @member {number|Long} endsAt
|
|
9329
|
-
* @memberof IosSubscriptionRenewed
|
|
9330
|
-
* @instance
|
|
9331
|
-
*/
|
|
9332
|
-
IosSubscriptionRenewed.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
9333
|
-
|
|
9334
|
-
/**
|
|
9335
|
-
* IosSubscriptionRenewed startsAt.
|
|
9336
|
-
* @member {number|Long} startsAt
|
|
9337
|
-
* @memberof IosSubscriptionRenewed
|
|
9338
|
-
* @instance
|
|
9339
|
-
*/
|
|
9340
|
-
IosSubscriptionRenewed.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
9341
|
-
|
|
9342
|
-
/**
|
|
9343
|
-
* IosSubscriptionRenewed userId.
|
|
9344
|
-
* @member {string} userId
|
|
9345
|
-
* @memberof IosSubscriptionRenewed
|
|
9346
|
-
* @instance
|
|
9347
|
-
*/
|
|
9348
|
-
IosSubscriptionRenewed.prototype.userId = "";
|
|
9349
|
-
|
|
9350
|
-
/**
|
|
9351
|
-
* IosSubscriptionRenewed tags.
|
|
9352
|
-
* @member {Array.<appleReceipt.IosSubscriptionTag>} tags
|
|
9353
|
-
* @memberof IosSubscriptionRenewed
|
|
9354
|
-
* @instance
|
|
9355
|
-
*/
|
|
9356
|
-
IosSubscriptionRenewed.prototype.tags = $util.emptyArray;
|
|
9357
|
-
|
|
9358
|
-
/**
|
|
9359
|
-
* IosSubscriptionRenewed terms.
|
|
9360
|
-
* @member {Array.<appleReceipt.IIosSubscriptionTerm>} terms
|
|
9361
|
-
* @memberof IosSubscriptionRenewed
|
|
9362
|
-
* @instance
|
|
9363
|
-
*/
|
|
9364
|
-
IosSubscriptionRenewed.prototype.terms = $util.emptyArray;
|
|
9365
|
-
|
|
9366
|
-
/**
|
|
9367
|
-
* Creates a new IosSubscriptionRenewed instance using the specified properties.
|
|
9368
|
-
* @function create
|
|
9369
|
-
* @memberof IosSubscriptionRenewed
|
|
9370
|
-
* @static
|
|
9371
|
-
* @param {IIosSubscriptionRenewed=} [properties] Properties to set
|
|
9372
|
-
* @returns {IosSubscriptionRenewed} IosSubscriptionRenewed instance
|
|
9373
|
-
*/
|
|
9374
|
-
IosSubscriptionRenewed.create = function create(properties) {
|
|
9375
|
-
return new IosSubscriptionRenewed(properties);
|
|
9376
|
-
};
|
|
9377
|
-
|
|
9378
|
-
/**
|
|
9379
|
-
* Encodes the specified IosSubscriptionRenewed message. Does not implicitly {@link IosSubscriptionRenewed.verify|verify} messages.
|
|
9380
|
-
* @function encode
|
|
9381
|
-
* @memberof IosSubscriptionRenewed
|
|
9382
|
-
* @static
|
|
9383
|
-
* @param {IIosSubscriptionRenewed} message IosSubscriptionRenewed message or plain object to encode
|
|
9384
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9385
|
-
* @returns {$protobuf.Writer} Writer
|
|
9386
|
-
*/
|
|
9387
|
-
IosSubscriptionRenewed.encode = function encode(message, writer) {
|
|
9388
|
-
if (!writer)
|
|
9389
|
-
writer = $Writer.create();
|
|
9390
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
9391
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
9392
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9393
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endsAt);
|
|
9394
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9395
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.startsAt);
|
|
9396
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9397
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.userId);
|
|
9398
|
-
if (message.tags != null && message.tags.length) {
|
|
9399
|
-
writer.uint32(/* id 5, wireType 2 =*/42).fork();
|
|
9400
|
-
for (var i = 0; i < message.tags.length; ++i)
|
|
9401
|
-
writer.int32(message.tags[i]);
|
|
9402
|
-
writer.ldelim();
|
|
9403
|
-
}
|
|
9404
|
-
if (message.terms != null && message.terms.length)
|
|
9405
|
-
for (var i = 0; i < message.terms.length; ++i)
|
|
9406
|
-
$root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
9407
|
-
return writer;
|
|
9408
|
-
};
|
|
9409
|
-
|
|
9410
|
-
/**
|
|
9411
|
-
* Encodes the specified IosSubscriptionRenewed message, length delimited. Does not implicitly {@link IosSubscriptionRenewed.verify|verify} messages.
|
|
9412
|
-
* @function encodeDelimited
|
|
9413
|
-
* @memberof IosSubscriptionRenewed
|
|
9414
|
-
* @static
|
|
9415
|
-
* @param {IIosSubscriptionRenewed} message IosSubscriptionRenewed message or plain object to encode
|
|
9416
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9417
|
-
* @returns {$protobuf.Writer} Writer
|
|
9418
|
-
*/
|
|
9419
|
-
IosSubscriptionRenewed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9420
|
-
return this.encode(message, writer).ldelim();
|
|
9421
|
-
};
|
|
9422
|
-
|
|
9423
|
-
/**
|
|
9424
|
-
* Decodes an IosSubscriptionRenewed message from the specified reader or buffer.
|
|
9425
|
-
* @function decode
|
|
9426
|
-
* @memberof IosSubscriptionRenewed
|
|
9427
|
-
* @static
|
|
9428
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9429
|
-
* @param {number} [length] Message length if known beforehand
|
|
9430
|
-
* @returns {IosSubscriptionRenewed} IosSubscriptionRenewed
|
|
9431
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9432
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9433
|
-
*/
|
|
9434
|
-
IosSubscriptionRenewed.decode = function decode(reader, length) {
|
|
9435
|
-
if (!(reader instanceof $Reader))
|
|
9436
|
-
reader = $Reader.create(reader);
|
|
9437
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IosSubscriptionRenewed();
|
|
9438
|
-
while (reader.pos < end) {
|
|
9439
|
-
var tag = reader.uint32();
|
|
9440
|
-
switch (tag >>> 3) {
|
|
9441
|
-
case 1:
|
|
9442
|
-
message.id = reader.string();
|
|
9443
|
-
break;
|
|
9444
|
-
case 2:
|
|
9445
|
-
message.endsAt = reader.uint64();
|
|
9446
|
-
break;
|
|
9447
|
-
case 3:
|
|
9448
|
-
message.startsAt = reader.uint64();
|
|
9449
|
-
break;
|
|
9450
|
-
case 4:
|
|
9451
|
-
message.userId = reader.string();
|
|
9452
|
-
break;
|
|
9453
|
-
case 5:
|
|
9454
|
-
if (!(message.tags && message.tags.length))
|
|
9455
|
-
message.tags = [];
|
|
9456
|
-
if ((tag & 7) === 2) {
|
|
9457
|
-
var end2 = reader.uint32() + reader.pos;
|
|
9458
|
-
while (reader.pos < end2)
|
|
9459
|
-
message.tags.push(reader.int32());
|
|
9460
|
-
} else
|
|
9461
|
-
message.tags.push(reader.int32());
|
|
9462
|
-
break;
|
|
9463
|
-
case 6:
|
|
9464
|
-
if (!(message.terms && message.terms.length))
|
|
9465
|
-
message.terms = [];
|
|
9466
|
-
message.terms.push($root.appleReceipt.IosSubscriptionTerm.decode(reader, reader.uint32()));
|
|
9467
|
-
break;
|
|
9468
|
-
default:
|
|
9469
|
-
reader.skipType(tag & 7);
|
|
9470
|
-
break;
|
|
9471
|
-
}
|
|
9472
|
-
}
|
|
9473
|
-
return message;
|
|
9474
|
-
};
|
|
9475
|
-
|
|
9476
|
-
/**
|
|
9477
|
-
* Decodes an IosSubscriptionRenewed message from the specified reader or buffer, length delimited.
|
|
9478
|
-
* @function decodeDelimited
|
|
9479
|
-
* @memberof IosSubscriptionRenewed
|
|
9480
|
-
* @static
|
|
9481
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9482
|
-
* @returns {IosSubscriptionRenewed} IosSubscriptionRenewed
|
|
9483
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9484
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9485
|
-
*/
|
|
9486
|
-
IosSubscriptionRenewed.decodeDelimited = function decodeDelimited(reader) {
|
|
9487
|
-
if (!(reader instanceof $Reader))
|
|
9488
|
-
reader = new $Reader(reader);
|
|
9489
|
-
return this.decode(reader, reader.uint32());
|
|
9490
|
-
};
|
|
9491
|
-
|
|
9492
|
-
/**
|
|
9493
|
-
* Verifies an IosSubscriptionRenewed message.
|
|
9494
|
-
* @function verify
|
|
9495
|
-
* @memberof IosSubscriptionRenewed
|
|
9496
|
-
* @static
|
|
9497
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
9498
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9499
|
-
*/
|
|
9500
|
-
IosSubscriptionRenewed.verify = function verify(message) {
|
|
9501
|
-
if (typeof message !== "object" || message === null)
|
|
9502
|
-
return "object expected";
|
|
9503
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
9504
|
-
if (!$util.isString(message.id))
|
|
9505
|
-
return "id: string expected";
|
|
9506
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9507
|
-
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
9508
|
-
return "endsAt: integer|Long expected";
|
|
9509
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9510
|
-
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
9511
|
-
return "startsAt: integer|Long expected";
|
|
9512
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9513
|
-
if (!$util.isString(message.userId))
|
|
9514
|
-
return "userId: string expected";
|
|
9515
|
-
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
9516
|
-
if (!Array.isArray(message.tags))
|
|
9517
|
-
return "tags: array expected";
|
|
9518
|
-
for (var i = 0; i < message.tags.length; ++i)
|
|
9519
|
-
switch (message.tags[i]) {
|
|
9520
|
-
default:
|
|
9521
|
-
return "tags: enum value[] expected";
|
|
9522
|
-
case 0:
|
|
9523
|
-
case 1:
|
|
9524
|
-
break;
|
|
9525
|
-
}
|
|
9526
|
-
}
|
|
9527
|
-
if (message.terms != null && message.hasOwnProperty("terms")) {
|
|
9528
|
-
if (!Array.isArray(message.terms))
|
|
9529
|
-
return "terms: array expected";
|
|
9530
|
-
for (var i = 0; i < message.terms.length; ++i) {
|
|
9531
|
-
var error = $root.appleReceipt.IosSubscriptionTerm.verify(message.terms[i]);
|
|
9532
|
-
if (error)
|
|
9533
|
-
return "terms." + error;
|
|
9534
|
-
}
|
|
9535
|
-
}
|
|
9536
|
-
return null;
|
|
9537
|
-
};
|
|
9538
|
-
|
|
9539
|
-
/**
|
|
9540
|
-
* Creates an IosSubscriptionRenewed message from a plain object. Also converts values to their respective internal types.
|
|
9541
|
-
* @function fromObject
|
|
9542
|
-
* @memberof IosSubscriptionRenewed
|
|
9543
|
-
* @static
|
|
9544
|
-
* @param {Object.<string,*>} object Plain object
|
|
9545
|
-
* @returns {IosSubscriptionRenewed} IosSubscriptionRenewed
|
|
9546
|
-
*/
|
|
9547
|
-
IosSubscriptionRenewed.fromObject = function fromObject(object) {
|
|
9548
|
-
if (object instanceof $root.IosSubscriptionRenewed)
|
|
9549
|
-
return object;
|
|
9550
|
-
var message = new $root.IosSubscriptionRenewed();
|
|
9551
|
-
if (object.id != null)
|
|
9552
|
-
message.id = String(object.id);
|
|
9553
|
-
if (object.endsAt != null)
|
|
9554
|
-
if ($util.Long)
|
|
9555
|
-
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
9556
|
-
else if (typeof object.endsAt === "string")
|
|
9557
|
-
message.endsAt = parseInt(object.endsAt, 10);
|
|
9558
|
-
else if (typeof object.endsAt === "number")
|
|
9559
|
-
message.endsAt = object.endsAt;
|
|
9560
|
-
else if (typeof object.endsAt === "object")
|
|
9561
|
-
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
9562
|
-
if (object.startsAt != null)
|
|
9563
|
-
if ($util.Long)
|
|
9564
|
-
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
9565
|
-
else if (typeof object.startsAt === "string")
|
|
9566
|
-
message.startsAt = parseInt(object.startsAt, 10);
|
|
9567
|
-
else if (typeof object.startsAt === "number")
|
|
9568
|
-
message.startsAt = object.startsAt;
|
|
9569
|
-
else if (typeof object.startsAt === "object")
|
|
9570
|
-
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
9571
|
-
if (object.userId != null)
|
|
9572
|
-
message.userId = String(object.userId);
|
|
9573
|
-
if (object.tags) {
|
|
9574
|
-
if (!Array.isArray(object.tags))
|
|
9575
|
-
throw TypeError(".IosSubscriptionRenewed.tags: array expected");
|
|
9576
|
-
message.tags = [];
|
|
9577
|
-
for (var i = 0; i < object.tags.length; ++i)
|
|
9578
|
-
switch (object.tags[i]) {
|
|
9579
|
-
default:
|
|
9580
|
-
case "IOSTAG_UNKNOWN":
|
|
9581
|
-
case 0:
|
|
9582
|
-
message.tags[i] = 0;
|
|
9583
|
-
break;
|
|
9584
|
-
case "IOSTAG_FREE_TRIAL":
|
|
9585
|
-
case 1:
|
|
9586
|
-
message.tags[i] = 1;
|
|
9587
|
-
break;
|
|
9588
|
-
}
|
|
9589
|
-
}
|
|
9590
|
-
if (object.terms) {
|
|
9591
|
-
if (!Array.isArray(object.terms))
|
|
9592
|
-
throw TypeError(".IosSubscriptionRenewed.terms: array expected");
|
|
9593
|
-
message.terms = [];
|
|
9594
|
-
for (var i = 0; i < object.terms.length; ++i) {
|
|
9595
|
-
if (typeof object.terms[i] !== "object")
|
|
9596
|
-
throw TypeError(".IosSubscriptionRenewed.terms: object expected");
|
|
9597
|
-
message.terms[i] = $root.appleReceipt.IosSubscriptionTerm.fromObject(object.terms[i]);
|
|
9598
|
-
}
|
|
9599
|
-
}
|
|
9600
|
-
return message;
|
|
9601
|
-
};
|
|
9602
|
-
|
|
9603
|
-
/**
|
|
9604
|
-
* Creates a plain object from an IosSubscriptionRenewed message. Also converts values to other types if specified.
|
|
9605
|
-
* @function toObject
|
|
9606
|
-
* @memberof IosSubscriptionRenewed
|
|
9607
|
-
* @static
|
|
9608
|
-
* @param {IosSubscriptionRenewed} message IosSubscriptionRenewed
|
|
9609
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9610
|
-
* @returns {Object.<string,*>} Plain object
|
|
9611
|
-
*/
|
|
9612
|
-
IosSubscriptionRenewed.toObject = function toObject(message, options) {
|
|
9613
|
-
if (!options)
|
|
9614
|
-
options = {};
|
|
9615
|
-
var object = {};
|
|
9616
|
-
if (options.arrays || options.defaults) {
|
|
9617
|
-
object.tags = [];
|
|
9618
|
-
object.terms = [];
|
|
9619
|
-
}
|
|
9620
|
-
if (options.defaults) {
|
|
9621
|
-
object.id = "";
|
|
9622
|
-
if ($util.Long) {
|
|
9623
|
-
var long = new $util.Long(0, 0, true);
|
|
9624
|
-
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9625
|
-
} else
|
|
9626
|
-
object.endsAt = options.longs === String ? "0" : 0;
|
|
9627
|
-
if ($util.Long) {
|
|
9628
|
-
var long = new $util.Long(0, 0, true);
|
|
9629
|
-
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9630
|
-
} else
|
|
9631
|
-
object.startsAt = options.longs === String ? "0" : 0;
|
|
9632
|
-
object.userId = "";
|
|
9633
|
-
}
|
|
9634
|
-
if (message.id != null && message.hasOwnProperty("id"))
|
|
9635
|
-
object.id = message.id;
|
|
9636
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9637
|
-
if (typeof message.endsAt === "number")
|
|
9638
|
-
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
9639
|
-
else
|
|
9640
|
-
object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
|
|
9641
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9642
|
-
if (typeof message.startsAt === "number")
|
|
9643
|
-
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
9644
|
-
else
|
|
9645
|
-
object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
|
|
9646
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9647
|
-
object.userId = message.userId;
|
|
9648
|
-
if (message.tags && message.tags.length) {
|
|
9649
|
-
object.tags = [];
|
|
9650
|
-
for (var j = 0; j < message.tags.length; ++j)
|
|
9651
|
-
object.tags[j] = options.enums === String ? $root.appleReceipt.IosSubscriptionTag[message.tags[j]] : message.tags[j];
|
|
9652
|
-
}
|
|
9653
|
-
if (message.terms && message.terms.length) {
|
|
9654
|
-
object.terms = [];
|
|
9655
|
-
for (var j = 0; j < message.terms.length; ++j)
|
|
9656
|
-
object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
|
|
8276
|
+
if (!options)
|
|
8277
|
+
options = {};
|
|
8278
|
+
var object = {};
|
|
8279
|
+
if (options.defaults) {
|
|
8280
|
+
object.recipientUserId = "";
|
|
8281
|
+
object.senderUserId = "";
|
|
8282
|
+
object.senderName = "";
|
|
8283
|
+
object.senderLocale = "";
|
|
8284
|
+
object.deepLink = "";
|
|
8285
|
+
object.nudgeId = "";
|
|
8286
|
+
object.imageUrl = "";
|
|
8287
|
+
object.messageText = "";
|
|
8288
|
+
object.messageTitle = "";
|
|
9657
8289
|
}
|
|
8290
|
+
if (message.recipientUserId != null && message.hasOwnProperty("recipientUserId"))
|
|
8291
|
+
object.recipientUserId = message.recipientUserId;
|
|
8292
|
+
if (message.senderUserId != null && message.hasOwnProperty("senderUserId"))
|
|
8293
|
+
object.senderUserId = message.senderUserId;
|
|
8294
|
+
if (message.senderName != null && message.hasOwnProperty("senderName"))
|
|
8295
|
+
object.senderName = message.senderName;
|
|
8296
|
+
if (message.senderLocale != null && message.hasOwnProperty("senderLocale"))
|
|
8297
|
+
object.senderLocale = message.senderLocale;
|
|
8298
|
+
if (message.deepLink != null && message.hasOwnProperty("deepLink"))
|
|
8299
|
+
object.deepLink = message.deepLink;
|
|
8300
|
+
if (message.nudgeId != null && message.hasOwnProperty("nudgeId"))
|
|
8301
|
+
object.nudgeId = message.nudgeId;
|
|
8302
|
+
if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
|
|
8303
|
+
object.imageUrl = message.imageUrl;
|
|
8304
|
+
if (message.messageText != null && message.hasOwnProperty("messageText"))
|
|
8305
|
+
object.messageText = message.messageText;
|
|
8306
|
+
if (message.messageTitle != null && message.hasOwnProperty("messageTitle"))
|
|
8307
|
+
object.messageTitle = message.messageTitle;
|
|
9658
8308
|
return object;
|
|
9659
8309
|
};
|
|
9660
8310
|
|
|
9661
8311
|
/**
|
|
9662
|
-
* Converts this
|
|
8312
|
+
* Converts this MessageSent to JSON.
|
|
9663
8313
|
* @function toJSON
|
|
9664
|
-
* @memberof
|
|
8314
|
+
* @memberof MessageSent
|
|
9665
8315
|
* @instance
|
|
9666
8316
|
* @returns {Object.<string,*>} JSON object
|
|
9667
8317
|
*/
|
|
9668
|
-
|
|
8318
|
+
MessageSent.prototype.toJSON = function toJSON() {
|
|
9669
8319
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9670
8320
|
};
|
|
9671
8321
|
|
|
9672
|
-
return
|
|
8322
|
+
return MessageSent;
|
|
9673
8323
|
})();
|
|
9674
8324
|
|
|
9675
8325
|
$root.AssetCreated = (function() {
|
|
@@ -12613,321 +11263,75 @@ $root.ExperimentContentMapDeleted = (function() {
|
|
|
12613
11263
|
/**
|
|
12614
11264
|
* Creates a new ExperimentContentMapDeleted instance using the specified properties.
|
|
12615
11265
|
* @function create
|
|
12616
|
-
* @memberof ExperimentContentMapDeleted
|
|
12617
|
-
* @static
|
|
12618
|
-
* @param {IExperimentContentMapDeleted=} [properties] Properties to set
|
|
12619
|
-
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted instance
|
|
12620
|
-
*/
|
|
12621
|
-
ExperimentContentMapDeleted.create = function create(properties) {
|
|
12622
|
-
return new ExperimentContentMapDeleted(properties);
|
|
12623
|
-
};
|
|
12624
|
-
|
|
12625
|
-
/**
|
|
12626
|
-
* Encodes the specified ExperimentContentMapDeleted message. Does not implicitly {@link ExperimentContentMapDeleted.verify|verify} messages.
|
|
12627
|
-
* @function encode
|
|
12628
|
-
* @memberof ExperimentContentMapDeleted
|
|
12629
|
-
* @static
|
|
12630
|
-
* @param {IExperimentContentMapDeleted} message ExperimentContentMapDeleted message or plain object to encode
|
|
12631
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12632
|
-
* @returns {$protobuf.Writer} Writer
|
|
12633
|
-
*/
|
|
12634
|
-
ExperimentContentMapDeleted.encode = function encode(message, writer) {
|
|
12635
|
-
if (!writer)
|
|
12636
|
-
writer = $Writer.create();
|
|
12637
|
-
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
12638
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.experimentName);
|
|
12639
|
-
if (message.variationName != null && message.hasOwnProperty("variationName"))
|
|
12640
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.variationName);
|
|
12641
|
-
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12642
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.deletedAt);
|
|
12643
|
-
return writer;
|
|
12644
|
-
};
|
|
12645
|
-
|
|
12646
|
-
/**
|
|
12647
|
-
* Encodes the specified ExperimentContentMapDeleted message, length delimited. Does not implicitly {@link ExperimentContentMapDeleted.verify|verify} messages.
|
|
12648
|
-
* @function encodeDelimited
|
|
12649
|
-
* @memberof ExperimentContentMapDeleted
|
|
12650
|
-
* @static
|
|
12651
|
-
* @param {IExperimentContentMapDeleted} message ExperimentContentMapDeleted message or plain object to encode
|
|
12652
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12653
|
-
* @returns {$protobuf.Writer} Writer
|
|
12654
|
-
*/
|
|
12655
|
-
ExperimentContentMapDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12656
|
-
return this.encode(message, writer).ldelim();
|
|
12657
|
-
};
|
|
12658
|
-
|
|
12659
|
-
/**
|
|
12660
|
-
* Decodes an ExperimentContentMapDeleted message from the specified reader or buffer.
|
|
12661
|
-
* @function decode
|
|
12662
|
-
* @memberof ExperimentContentMapDeleted
|
|
12663
|
-
* @static
|
|
12664
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12665
|
-
* @param {number} [length] Message length if known beforehand
|
|
12666
|
-
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
|
|
12667
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12668
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12669
|
-
*/
|
|
12670
|
-
ExperimentContentMapDeleted.decode = function decode(reader, length) {
|
|
12671
|
-
if (!(reader instanceof $Reader))
|
|
12672
|
-
reader = $Reader.create(reader);
|
|
12673
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExperimentContentMapDeleted();
|
|
12674
|
-
while (reader.pos < end) {
|
|
12675
|
-
var tag = reader.uint32();
|
|
12676
|
-
switch (tag >>> 3) {
|
|
12677
|
-
case 1:
|
|
12678
|
-
message.experimentName = reader.string();
|
|
12679
|
-
break;
|
|
12680
|
-
case 2:
|
|
12681
|
-
message.variationName = reader.string();
|
|
12682
|
-
break;
|
|
12683
|
-
case 3:
|
|
12684
|
-
message.deletedAt = reader.uint64();
|
|
12685
|
-
break;
|
|
12686
|
-
default:
|
|
12687
|
-
reader.skipType(tag & 7);
|
|
12688
|
-
break;
|
|
12689
|
-
}
|
|
12690
|
-
}
|
|
12691
|
-
return message;
|
|
12692
|
-
};
|
|
12693
|
-
|
|
12694
|
-
/**
|
|
12695
|
-
* Decodes an ExperimentContentMapDeleted message from the specified reader or buffer, length delimited.
|
|
12696
|
-
* @function decodeDelimited
|
|
12697
|
-
* @memberof ExperimentContentMapDeleted
|
|
12698
|
-
* @static
|
|
12699
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12700
|
-
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
|
|
12701
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12702
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12703
|
-
*/
|
|
12704
|
-
ExperimentContentMapDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
12705
|
-
if (!(reader instanceof $Reader))
|
|
12706
|
-
reader = new $Reader(reader);
|
|
12707
|
-
return this.decode(reader, reader.uint32());
|
|
12708
|
-
};
|
|
12709
|
-
|
|
12710
|
-
/**
|
|
12711
|
-
* Verifies an ExperimentContentMapDeleted message.
|
|
12712
|
-
* @function verify
|
|
12713
|
-
* @memberof ExperimentContentMapDeleted
|
|
12714
|
-
* @static
|
|
12715
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
12716
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12717
|
-
*/
|
|
12718
|
-
ExperimentContentMapDeleted.verify = function verify(message) {
|
|
12719
|
-
if (typeof message !== "object" || message === null)
|
|
12720
|
-
return "object expected";
|
|
12721
|
-
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
12722
|
-
if (!$util.isString(message.experimentName))
|
|
12723
|
-
return "experimentName: string expected";
|
|
12724
|
-
if (message.variationName != null && message.hasOwnProperty("variationName"))
|
|
12725
|
-
if (!$util.isString(message.variationName))
|
|
12726
|
-
return "variationName: string expected";
|
|
12727
|
-
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12728
|
-
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
12729
|
-
return "deletedAt: integer|Long expected";
|
|
12730
|
-
return null;
|
|
12731
|
-
};
|
|
12732
|
-
|
|
12733
|
-
/**
|
|
12734
|
-
* Creates an ExperimentContentMapDeleted message from a plain object. Also converts values to their respective internal types.
|
|
12735
|
-
* @function fromObject
|
|
12736
|
-
* @memberof ExperimentContentMapDeleted
|
|
12737
|
-
* @static
|
|
12738
|
-
* @param {Object.<string,*>} object Plain object
|
|
12739
|
-
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
|
|
12740
|
-
*/
|
|
12741
|
-
ExperimentContentMapDeleted.fromObject = function fromObject(object) {
|
|
12742
|
-
if (object instanceof $root.ExperimentContentMapDeleted)
|
|
12743
|
-
return object;
|
|
12744
|
-
var message = new $root.ExperimentContentMapDeleted();
|
|
12745
|
-
if (object.experimentName != null)
|
|
12746
|
-
message.experimentName = String(object.experimentName);
|
|
12747
|
-
if (object.variationName != null)
|
|
12748
|
-
message.variationName = String(object.variationName);
|
|
12749
|
-
if (object.deletedAt != null)
|
|
12750
|
-
if ($util.Long)
|
|
12751
|
-
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
12752
|
-
else if (typeof object.deletedAt === "string")
|
|
12753
|
-
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
12754
|
-
else if (typeof object.deletedAt === "number")
|
|
12755
|
-
message.deletedAt = object.deletedAt;
|
|
12756
|
-
else if (typeof object.deletedAt === "object")
|
|
12757
|
-
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
12758
|
-
return message;
|
|
12759
|
-
};
|
|
12760
|
-
|
|
12761
|
-
/**
|
|
12762
|
-
* Creates a plain object from an ExperimentContentMapDeleted message. Also converts values to other types if specified.
|
|
12763
|
-
* @function toObject
|
|
12764
|
-
* @memberof ExperimentContentMapDeleted
|
|
12765
|
-
* @static
|
|
12766
|
-
* @param {ExperimentContentMapDeleted} message ExperimentContentMapDeleted
|
|
12767
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12768
|
-
* @returns {Object.<string,*>} Plain object
|
|
12769
|
-
*/
|
|
12770
|
-
ExperimentContentMapDeleted.toObject = function toObject(message, options) {
|
|
12771
|
-
if (!options)
|
|
12772
|
-
options = {};
|
|
12773
|
-
var object = {};
|
|
12774
|
-
if (options.defaults) {
|
|
12775
|
-
object.experimentName = "";
|
|
12776
|
-
object.variationName = "";
|
|
12777
|
-
if ($util.Long) {
|
|
12778
|
-
var long = new $util.Long(0, 0, true);
|
|
12779
|
-
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12780
|
-
} else
|
|
12781
|
-
object.deletedAt = options.longs === String ? "0" : 0;
|
|
12782
|
-
}
|
|
12783
|
-
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
12784
|
-
object.experimentName = message.experimentName;
|
|
12785
|
-
if (message.variationName != null && message.hasOwnProperty("variationName"))
|
|
12786
|
-
object.variationName = message.variationName;
|
|
12787
|
-
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12788
|
-
if (typeof message.deletedAt === "number")
|
|
12789
|
-
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
12790
|
-
else
|
|
12791
|
-
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
12792
|
-
return object;
|
|
12793
|
-
};
|
|
12794
|
-
|
|
12795
|
-
/**
|
|
12796
|
-
* Converts this ExperimentContentMapDeleted to JSON.
|
|
12797
|
-
* @function toJSON
|
|
12798
|
-
* @memberof ExperimentContentMapDeleted
|
|
12799
|
-
* @instance
|
|
12800
|
-
* @returns {Object.<string,*>} JSON object
|
|
12801
|
-
*/
|
|
12802
|
-
ExperimentContentMapDeleted.prototype.toJSON = function toJSON() {
|
|
12803
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12804
|
-
};
|
|
12805
|
-
|
|
12806
|
-
return ExperimentContentMapDeleted;
|
|
12807
|
-
})();
|
|
12808
|
-
|
|
12809
|
-
$root.AccessGroupCreated = (function() {
|
|
12810
|
-
|
|
12811
|
-
/**
|
|
12812
|
-
* Properties of an AccessGroupCreated.
|
|
12813
|
-
* @exports IAccessGroupCreated
|
|
12814
|
-
* @interface IAccessGroupCreated
|
|
12815
|
-
* @property {string|null} [accessGroupName] AccessGroupCreated accessGroupName
|
|
12816
|
-
* @property {string|null} [description] AccessGroupCreated description
|
|
12817
|
-
* @property {number|Long|null} [createdAt] AccessGroupCreated createdAt
|
|
12818
|
-
*/
|
|
12819
|
-
|
|
12820
|
-
/**
|
|
12821
|
-
* Constructs a new AccessGroupCreated.
|
|
12822
|
-
* @exports AccessGroupCreated
|
|
12823
|
-
* @classdesc Represents an AccessGroupCreated.
|
|
12824
|
-
* @implements IAccessGroupCreated
|
|
12825
|
-
* @constructor
|
|
12826
|
-
* @param {IAccessGroupCreated=} [properties] Properties to set
|
|
12827
|
-
*/
|
|
12828
|
-
function AccessGroupCreated(properties) {
|
|
12829
|
-
if (properties)
|
|
12830
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12831
|
-
if (properties[keys[i]] != null)
|
|
12832
|
-
this[keys[i]] = properties[keys[i]];
|
|
12833
|
-
}
|
|
12834
|
-
|
|
12835
|
-
/**
|
|
12836
|
-
* AccessGroupCreated accessGroupName.
|
|
12837
|
-
* @member {string} accessGroupName
|
|
12838
|
-
* @memberof AccessGroupCreated
|
|
12839
|
-
* @instance
|
|
12840
|
-
*/
|
|
12841
|
-
AccessGroupCreated.prototype.accessGroupName = "";
|
|
12842
|
-
|
|
12843
|
-
/**
|
|
12844
|
-
* AccessGroupCreated description.
|
|
12845
|
-
* @member {string} description
|
|
12846
|
-
* @memberof AccessGroupCreated
|
|
12847
|
-
* @instance
|
|
12848
|
-
*/
|
|
12849
|
-
AccessGroupCreated.prototype.description = "";
|
|
12850
|
-
|
|
12851
|
-
/**
|
|
12852
|
-
* AccessGroupCreated createdAt.
|
|
12853
|
-
* @member {number|Long} createdAt
|
|
12854
|
-
* @memberof AccessGroupCreated
|
|
12855
|
-
* @instance
|
|
12856
|
-
*/
|
|
12857
|
-
AccessGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
12858
|
-
|
|
12859
|
-
/**
|
|
12860
|
-
* Creates a new AccessGroupCreated instance using the specified properties.
|
|
12861
|
-
* @function create
|
|
12862
|
-
* @memberof AccessGroupCreated
|
|
11266
|
+
* @memberof ExperimentContentMapDeleted
|
|
12863
11267
|
* @static
|
|
12864
|
-
* @param {
|
|
12865
|
-
* @returns {
|
|
11268
|
+
* @param {IExperimentContentMapDeleted=} [properties] Properties to set
|
|
11269
|
+
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted instance
|
|
12866
11270
|
*/
|
|
12867
|
-
|
|
12868
|
-
return new
|
|
11271
|
+
ExperimentContentMapDeleted.create = function create(properties) {
|
|
11272
|
+
return new ExperimentContentMapDeleted(properties);
|
|
12869
11273
|
};
|
|
12870
11274
|
|
|
12871
11275
|
/**
|
|
12872
|
-
* Encodes the specified
|
|
11276
|
+
* Encodes the specified ExperimentContentMapDeleted message. Does not implicitly {@link ExperimentContentMapDeleted.verify|verify} messages.
|
|
12873
11277
|
* @function encode
|
|
12874
|
-
* @memberof
|
|
11278
|
+
* @memberof ExperimentContentMapDeleted
|
|
12875
11279
|
* @static
|
|
12876
|
-
* @param {
|
|
11280
|
+
* @param {IExperimentContentMapDeleted} message ExperimentContentMapDeleted message or plain object to encode
|
|
12877
11281
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12878
11282
|
* @returns {$protobuf.Writer} Writer
|
|
12879
11283
|
*/
|
|
12880
|
-
|
|
11284
|
+
ExperimentContentMapDeleted.encode = function encode(message, writer) {
|
|
12881
11285
|
if (!writer)
|
|
12882
11286
|
writer = $Writer.create();
|
|
12883
|
-
if (message.
|
|
12884
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
12885
|
-
if (message.
|
|
12886
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.
|
|
12887
|
-
if (message.
|
|
12888
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.
|
|
11287
|
+
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
11288
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.experimentName);
|
|
11289
|
+
if (message.variationName != null && message.hasOwnProperty("variationName"))
|
|
11290
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.variationName);
|
|
11291
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
11292
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.deletedAt);
|
|
12889
11293
|
return writer;
|
|
12890
11294
|
};
|
|
12891
11295
|
|
|
12892
11296
|
/**
|
|
12893
|
-
* Encodes the specified
|
|
11297
|
+
* Encodes the specified ExperimentContentMapDeleted message, length delimited. Does not implicitly {@link ExperimentContentMapDeleted.verify|verify} messages.
|
|
12894
11298
|
* @function encodeDelimited
|
|
12895
|
-
* @memberof
|
|
11299
|
+
* @memberof ExperimentContentMapDeleted
|
|
12896
11300
|
* @static
|
|
12897
|
-
* @param {
|
|
11301
|
+
* @param {IExperimentContentMapDeleted} message ExperimentContentMapDeleted message or plain object to encode
|
|
12898
11302
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12899
11303
|
* @returns {$protobuf.Writer} Writer
|
|
12900
11304
|
*/
|
|
12901
|
-
|
|
11305
|
+
ExperimentContentMapDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12902
11306
|
return this.encode(message, writer).ldelim();
|
|
12903
11307
|
};
|
|
12904
11308
|
|
|
12905
11309
|
/**
|
|
12906
|
-
* Decodes an
|
|
11310
|
+
* Decodes an ExperimentContentMapDeleted message from the specified reader or buffer.
|
|
12907
11311
|
* @function decode
|
|
12908
|
-
* @memberof
|
|
11312
|
+
* @memberof ExperimentContentMapDeleted
|
|
12909
11313
|
* @static
|
|
12910
11314
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12911
11315
|
* @param {number} [length] Message length if known beforehand
|
|
12912
|
-
* @returns {
|
|
11316
|
+
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
|
|
12913
11317
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12914
11318
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12915
11319
|
*/
|
|
12916
|
-
|
|
11320
|
+
ExperimentContentMapDeleted.decode = function decode(reader, length) {
|
|
12917
11321
|
if (!(reader instanceof $Reader))
|
|
12918
11322
|
reader = $Reader.create(reader);
|
|
12919
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
11323
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExperimentContentMapDeleted();
|
|
12920
11324
|
while (reader.pos < end) {
|
|
12921
11325
|
var tag = reader.uint32();
|
|
12922
11326
|
switch (tag >>> 3) {
|
|
12923
11327
|
case 1:
|
|
12924
|
-
message.
|
|
11328
|
+
message.experimentName = reader.string();
|
|
12925
11329
|
break;
|
|
12926
11330
|
case 2:
|
|
12927
|
-
message.
|
|
11331
|
+
message.variationName = reader.string();
|
|
12928
11332
|
break;
|
|
12929
11333
|
case 3:
|
|
12930
|
-
message.
|
|
11334
|
+
message.deletedAt = reader.uint64();
|
|
12931
11335
|
break;
|
|
12932
11336
|
default:
|
|
12933
11337
|
reader.skipType(tag & 7);
|
|
@@ -12938,118 +11342,118 @@ $root.AccessGroupCreated = (function() {
|
|
|
12938
11342
|
};
|
|
12939
11343
|
|
|
12940
11344
|
/**
|
|
12941
|
-
* Decodes an
|
|
11345
|
+
* Decodes an ExperimentContentMapDeleted message from the specified reader or buffer, length delimited.
|
|
12942
11346
|
* @function decodeDelimited
|
|
12943
|
-
* @memberof
|
|
11347
|
+
* @memberof ExperimentContentMapDeleted
|
|
12944
11348
|
* @static
|
|
12945
11349
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12946
|
-
* @returns {
|
|
11350
|
+
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
|
|
12947
11351
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12948
11352
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12949
11353
|
*/
|
|
12950
|
-
|
|
11354
|
+
ExperimentContentMapDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
12951
11355
|
if (!(reader instanceof $Reader))
|
|
12952
11356
|
reader = new $Reader(reader);
|
|
12953
11357
|
return this.decode(reader, reader.uint32());
|
|
12954
11358
|
};
|
|
12955
11359
|
|
|
12956
11360
|
/**
|
|
12957
|
-
* Verifies an
|
|
11361
|
+
* Verifies an ExperimentContentMapDeleted message.
|
|
12958
11362
|
* @function verify
|
|
12959
|
-
* @memberof
|
|
11363
|
+
* @memberof ExperimentContentMapDeleted
|
|
12960
11364
|
* @static
|
|
12961
11365
|
* @param {Object.<string,*>} message Plain object to verify
|
|
12962
11366
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12963
11367
|
*/
|
|
12964
|
-
|
|
11368
|
+
ExperimentContentMapDeleted.verify = function verify(message) {
|
|
12965
11369
|
if (typeof message !== "object" || message === null)
|
|
12966
11370
|
return "object expected";
|
|
12967
|
-
if (message.
|
|
12968
|
-
if (!$util.isString(message.
|
|
12969
|
-
return "
|
|
12970
|
-
if (message.
|
|
12971
|
-
if (!$util.isString(message.
|
|
12972
|
-
return "
|
|
12973
|
-
if (message.
|
|
12974
|
-
if (!$util.isInteger(message.
|
|
12975
|
-
return "
|
|
11371
|
+
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
11372
|
+
if (!$util.isString(message.experimentName))
|
|
11373
|
+
return "experimentName: string expected";
|
|
11374
|
+
if (message.variationName != null && message.hasOwnProperty("variationName"))
|
|
11375
|
+
if (!$util.isString(message.variationName))
|
|
11376
|
+
return "variationName: string expected";
|
|
11377
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
11378
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
11379
|
+
return "deletedAt: integer|Long expected";
|
|
12976
11380
|
return null;
|
|
12977
11381
|
};
|
|
12978
11382
|
|
|
12979
11383
|
/**
|
|
12980
|
-
* Creates an
|
|
11384
|
+
* Creates an ExperimentContentMapDeleted message from a plain object. Also converts values to their respective internal types.
|
|
12981
11385
|
* @function fromObject
|
|
12982
|
-
* @memberof
|
|
11386
|
+
* @memberof ExperimentContentMapDeleted
|
|
12983
11387
|
* @static
|
|
12984
11388
|
* @param {Object.<string,*>} object Plain object
|
|
12985
|
-
* @returns {
|
|
11389
|
+
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
|
|
12986
11390
|
*/
|
|
12987
|
-
|
|
12988
|
-
if (object instanceof $root.
|
|
11391
|
+
ExperimentContentMapDeleted.fromObject = function fromObject(object) {
|
|
11392
|
+
if (object instanceof $root.ExperimentContentMapDeleted)
|
|
12989
11393
|
return object;
|
|
12990
|
-
var message = new $root.
|
|
12991
|
-
if (object.
|
|
12992
|
-
message.
|
|
12993
|
-
if (object.
|
|
12994
|
-
message.
|
|
12995
|
-
if (object.
|
|
11394
|
+
var message = new $root.ExperimentContentMapDeleted();
|
|
11395
|
+
if (object.experimentName != null)
|
|
11396
|
+
message.experimentName = String(object.experimentName);
|
|
11397
|
+
if (object.variationName != null)
|
|
11398
|
+
message.variationName = String(object.variationName);
|
|
11399
|
+
if (object.deletedAt != null)
|
|
12996
11400
|
if ($util.Long)
|
|
12997
|
-
(message.
|
|
12998
|
-
else if (typeof object.
|
|
12999
|
-
message.
|
|
13000
|
-
else if (typeof object.
|
|
13001
|
-
message.
|
|
13002
|
-
else if (typeof object.
|
|
13003
|
-
message.
|
|
11401
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
11402
|
+
else if (typeof object.deletedAt === "string")
|
|
11403
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
11404
|
+
else if (typeof object.deletedAt === "number")
|
|
11405
|
+
message.deletedAt = object.deletedAt;
|
|
11406
|
+
else if (typeof object.deletedAt === "object")
|
|
11407
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
13004
11408
|
return message;
|
|
13005
11409
|
};
|
|
13006
11410
|
|
|
13007
11411
|
/**
|
|
13008
|
-
* Creates a plain object from an
|
|
11412
|
+
* Creates a plain object from an ExperimentContentMapDeleted message. Also converts values to other types if specified.
|
|
13009
11413
|
* @function toObject
|
|
13010
|
-
* @memberof
|
|
11414
|
+
* @memberof ExperimentContentMapDeleted
|
|
13011
11415
|
* @static
|
|
13012
|
-
* @param {
|
|
11416
|
+
* @param {ExperimentContentMapDeleted} message ExperimentContentMapDeleted
|
|
13013
11417
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13014
11418
|
* @returns {Object.<string,*>} Plain object
|
|
13015
11419
|
*/
|
|
13016
|
-
|
|
11420
|
+
ExperimentContentMapDeleted.toObject = function toObject(message, options) {
|
|
13017
11421
|
if (!options)
|
|
13018
11422
|
options = {};
|
|
13019
11423
|
var object = {};
|
|
13020
11424
|
if (options.defaults) {
|
|
13021
|
-
object.
|
|
13022
|
-
object.
|
|
11425
|
+
object.experimentName = "";
|
|
11426
|
+
object.variationName = "";
|
|
13023
11427
|
if ($util.Long) {
|
|
13024
11428
|
var long = new $util.Long(0, 0, true);
|
|
13025
|
-
object.
|
|
11429
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13026
11430
|
} else
|
|
13027
|
-
object.
|
|
11431
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
13028
11432
|
}
|
|
13029
|
-
if (message.
|
|
13030
|
-
object.
|
|
13031
|
-
if (message.
|
|
13032
|
-
object.
|
|
13033
|
-
if (message.
|
|
13034
|
-
if (typeof message.
|
|
13035
|
-
object.
|
|
11433
|
+
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
11434
|
+
object.experimentName = message.experimentName;
|
|
11435
|
+
if (message.variationName != null && message.hasOwnProperty("variationName"))
|
|
11436
|
+
object.variationName = message.variationName;
|
|
11437
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
11438
|
+
if (typeof message.deletedAt === "number")
|
|
11439
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
13036
11440
|
else
|
|
13037
|
-
object.
|
|
11441
|
+
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
13038
11442
|
return object;
|
|
13039
11443
|
};
|
|
13040
11444
|
|
|
13041
11445
|
/**
|
|
13042
|
-
* Converts this
|
|
11446
|
+
* Converts this ExperimentContentMapDeleted to JSON.
|
|
13043
11447
|
* @function toJSON
|
|
13044
|
-
* @memberof
|
|
11448
|
+
* @memberof ExperimentContentMapDeleted
|
|
13045
11449
|
* @instance
|
|
13046
11450
|
* @returns {Object.<string,*>} JSON object
|
|
13047
11451
|
*/
|
|
13048
|
-
|
|
11452
|
+
ExperimentContentMapDeleted.prototype.toJSON = function toJSON() {
|
|
13049
11453
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13050
11454
|
};
|
|
13051
11455
|
|
|
13052
|
-
return
|
|
11456
|
+
return ExperimentContentMapDeleted;
|
|
13053
11457
|
})();
|
|
13054
11458
|
|
|
13055
11459
|
$root.ReferralSignedUp = (function() {
|
|
@@ -14031,7 +12435,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
14031
12435
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
|
|
14032
12436
|
* @property {subscription.IPlan|null} [plan] SubscriptionCreated plan
|
|
14033
12437
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCreated subscriptionState
|
|
14034
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionCreated labels
|
|
14035
12438
|
*/
|
|
14036
12439
|
|
|
14037
12440
|
/**
|
|
@@ -14043,7 +12446,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
14043
12446
|
* @param {ISubscriptionCreated=} [properties] Properties to set
|
|
14044
12447
|
*/
|
|
14045
12448
|
function SubscriptionCreated(properties) {
|
|
14046
|
-
this.labels = [];
|
|
14047
12449
|
if (properties)
|
|
14048
12450
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14049
12451
|
if (properties[keys[i]] != null)
|
|
@@ -14138,14 +12540,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
14138
12540
|
*/
|
|
14139
12541
|
SubscriptionCreated.prototype.subscriptionState = 0;
|
|
14140
12542
|
|
|
14141
|
-
/**
|
|
14142
|
-
* SubscriptionCreated labels.
|
|
14143
|
-
* @member {Array.<subscription.Labels>} labels
|
|
14144
|
-
* @memberof SubscriptionCreated
|
|
14145
|
-
* @instance
|
|
14146
|
-
*/
|
|
14147
|
-
SubscriptionCreated.prototype.labels = $util.emptyArray;
|
|
14148
|
-
|
|
14149
12543
|
/**
|
|
14150
12544
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
14151
12545
|
* @function create
|
|
@@ -14192,12 +12586,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
14192
12586
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
14193
12587
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
14194
12588
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
14195
|
-
if (message.labels != null && message.labels.length) {
|
|
14196
|
-
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
14197
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
14198
|
-
writer.int32(message.labels[i]);
|
|
14199
|
-
writer.ldelim();
|
|
14200
|
-
}
|
|
14201
12589
|
return writer;
|
|
14202
12590
|
};
|
|
14203
12591
|
|
|
@@ -14265,16 +12653,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
14265
12653
|
case 11:
|
|
14266
12654
|
message.subscriptionState = reader.int32();
|
|
14267
12655
|
break;
|
|
14268
|
-
case 12:
|
|
14269
|
-
if (!(message.labels && message.labels.length))
|
|
14270
|
-
message.labels = [];
|
|
14271
|
-
if ((tag & 7) === 2) {
|
|
14272
|
-
var end2 = reader.uint32() + reader.pos;
|
|
14273
|
-
while (reader.pos < end2)
|
|
14274
|
-
message.labels.push(reader.int32());
|
|
14275
|
-
} else
|
|
14276
|
-
message.labels.push(reader.int32());
|
|
14277
|
-
break;
|
|
14278
12656
|
default:
|
|
14279
12657
|
reader.skipType(tag & 7);
|
|
14280
12658
|
break;
|
|
@@ -14370,17 +12748,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
14370
12748
|
case 5:
|
|
14371
12749
|
break;
|
|
14372
12750
|
}
|
|
14373
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
14374
|
-
if (!Array.isArray(message.labels))
|
|
14375
|
-
return "labels: array expected";
|
|
14376
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
14377
|
-
switch (message.labels[i]) {
|
|
14378
|
-
default:
|
|
14379
|
-
return "labels: enum value[] expected";
|
|
14380
|
-
case 0:
|
|
14381
|
-
break;
|
|
14382
|
-
}
|
|
14383
|
-
}
|
|
14384
12751
|
return null;
|
|
14385
12752
|
};
|
|
14386
12753
|
|
|
@@ -14513,19 +12880,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
14513
12880
|
message.subscriptionState = 5;
|
|
14514
12881
|
break;
|
|
14515
12882
|
}
|
|
14516
|
-
if (object.labels) {
|
|
14517
|
-
if (!Array.isArray(object.labels))
|
|
14518
|
-
throw TypeError(".SubscriptionCreated.labels: array expected");
|
|
14519
|
-
message.labels = [];
|
|
14520
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
14521
|
-
switch (object.labels[i]) {
|
|
14522
|
-
default:
|
|
14523
|
-
case "LABELS_FREE_TRIAL":
|
|
14524
|
-
case 0:
|
|
14525
|
-
message.labels[i] = 0;
|
|
14526
|
-
break;
|
|
14527
|
-
}
|
|
14528
|
-
}
|
|
14529
12883
|
return message;
|
|
14530
12884
|
};
|
|
14531
12885
|
|
|
@@ -14542,8 +12896,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
14542
12896
|
if (!options)
|
|
14543
12897
|
options = {};
|
|
14544
12898
|
var object = {};
|
|
14545
|
-
if (options.arrays || options.defaults)
|
|
14546
|
-
object.labels = [];
|
|
14547
12899
|
if (options.defaults) {
|
|
14548
12900
|
object.id = 0;
|
|
14549
12901
|
if ($util.Long) {
|
|
@@ -14607,11 +12959,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
14607
12959
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
14608
12960
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
14609
12961
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
14610
|
-
if (message.labels && message.labels.length) {
|
|
14611
|
-
object.labels = [];
|
|
14612
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
14613
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
14614
|
-
}
|
|
14615
12962
|
return object;
|
|
14616
12963
|
};
|
|
14617
12964
|
|
|
@@ -14648,7 +12995,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
14648
12995
|
* @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
|
|
14649
12996
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
|
|
14650
12997
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCancelled subscriptionState
|
|
14651
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionCancelled labels
|
|
14652
12998
|
*/
|
|
14653
12999
|
|
|
14654
13000
|
/**
|
|
@@ -14660,7 +13006,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
14660
13006
|
* @param {ISubscriptionCancelled=} [properties] Properties to set
|
|
14661
13007
|
*/
|
|
14662
13008
|
function SubscriptionCancelled(properties) {
|
|
14663
|
-
this.labels = [];
|
|
14664
13009
|
if (properties)
|
|
14665
13010
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14666
13011
|
if (properties[keys[i]] != null)
|
|
@@ -14771,14 +13116,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
14771
13116
|
*/
|
|
14772
13117
|
SubscriptionCancelled.prototype.subscriptionState = 0;
|
|
14773
13118
|
|
|
14774
|
-
/**
|
|
14775
|
-
* SubscriptionCancelled labels.
|
|
14776
|
-
* @member {Array.<subscription.Labels>} labels
|
|
14777
|
-
* @memberof SubscriptionCancelled
|
|
14778
|
-
* @instance
|
|
14779
|
-
*/
|
|
14780
|
-
SubscriptionCancelled.prototype.labels = $util.emptyArray;
|
|
14781
|
-
|
|
14782
13119
|
/**
|
|
14783
13120
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
14784
13121
|
* @function create
|
|
@@ -14829,12 +13166,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
14829
13166
|
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.cancellationType);
|
|
14830
13167
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
14831
13168
|
writer.uint32(/* id 13, wireType 0 =*/104).int32(message.subscriptionState);
|
|
14832
|
-
if (message.labels != null && message.labels.length) {
|
|
14833
|
-
writer.uint32(/* id 14, wireType 2 =*/114).fork();
|
|
14834
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
14835
|
-
writer.int32(message.labels[i]);
|
|
14836
|
-
writer.ldelim();
|
|
14837
|
-
}
|
|
14838
13169
|
return writer;
|
|
14839
13170
|
};
|
|
14840
13171
|
|
|
@@ -14908,16 +13239,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
14908
13239
|
case 13:
|
|
14909
13240
|
message.subscriptionState = reader.int32();
|
|
14910
13241
|
break;
|
|
14911
|
-
case 14:
|
|
14912
|
-
if (!(message.labels && message.labels.length))
|
|
14913
|
-
message.labels = [];
|
|
14914
|
-
if ((tag & 7) === 2) {
|
|
14915
|
-
var end2 = reader.uint32() + reader.pos;
|
|
14916
|
-
while (reader.pos < end2)
|
|
14917
|
-
message.labels.push(reader.int32());
|
|
14918
|
-
} else
|
|
14919
|
-
message.labels.push(reader.int32());
|
|
14920
|
-
break;
|
|
14921
13242
|
default:
|
|
14922
13243
|
reader.skipType(tag & 7);
|
|
14923
13244
|
break;
|
|
@@ -15027,17 +13348,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
15027
13348
|
case 5:
|
|
15028
13349
|
break;
|
|
15029
13350
|
}
|
|
15030
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
15031
|
-
if (!Array.isArray(message.labels))
|
|
15032
|
-
return "labels: array expected";
|
|
15033
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
15034
|
-
switch (message.labels[i]) {
|
|
15035
|
-
default:
|
|
15036
|
-
return "labels: enum value[] expected";
|
|
15037
|
-
case 0:
|
|
15038
|
-
break;
|
|
15039
|
-
}
|
|
15040
|
-
}
|
|
15041
13351
|
return null;
|
|
15042
13352
|
};
|
|
15043
13353
|
|
|
@@ -15189,19 +13499,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
15189
13499
|
message.subscriptionState = 5;
|
|
15190
13500
|
break;
|
|
15191
13501
|
}
|
|
15192
|
-
if (object.labels) {
|
|
15193
|
-
if (!Array.isArray(object.labels))
|
|
15194
|
-
throw TypeError(".SubscriptionCancelled.labels: array expected");
|
|
15195
|
-
message.labels = [];
|
|
15196
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
15197
|
-
switch (object.labels[i]) {
|
|
15198
|
-
default:
|
|
15199
|
-
case "LABELS_FREE_TRIAL":
|
|
15200
|
-
case 0:
|
|
15201
|
-
message.labels[i] = 0;
|
|
15202
|
-
break;
|
|
15203
|
-
}
|
|
15204
|
-
}
|
|
15205
13502
|
return message;
|
|
15206
13503
|
};
|
|
15207
13504
|
|
|
@@ -15218,8 +13515,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
15218
13515
|
if (!options)
|
|
15219
13516
|
options = {};
|
|
15220
13517
|
var object = {};
|
|
15221
|
-
if (options.arrays || options.defaults)
|
|
15222
|
-
object.labels = [];
|
|
15223
13518
|
if (options.defaults) {
|
|
15224
13519
|
object.id = 0;
|
|
15225
13520
|
if ($util.Long) {
|
|
@@ -15289,11 +13584,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
15289
13584
|
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
15290
13585
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15291
13586
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
15292
|
-
if (message.labels && message.labels.length) {
|
|
15293
|
-
object.labels = [];
|
|
15294
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
15295
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
15296
|
-
}
|
|
15297
13587
|
return object;
|
|
15298
13588
|
};
|
|
15299
13589
|
|
|
@@ -15328,8 +13618,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15328
13618
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
|
|
15329
13619
|
* @property {subscription.IPlan|null} [plan] SubscriptionRenewed plan
|
|
15330
13620
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRenewed subscriptionState
|
|
15331
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionRenewed labels
|
|
15332
|
-
* @property {number|Long|null} [renewalCount] SubscriptionRenewed renewalCount
|
|
15333
13621
|
*/
|
|
15334
13622
|
|
|
15335
13623
|
/**
|
|
@@ -15341,7 +13629,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15341
13629
|
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
15342
13630
|
*/
|
|
15343
13631
|
function SubscriptionRenewed(properties) {
|
|
15344
|
-
this.labels = [];
|
|
15345
13632
|
if (properties)
|
|
15346
13633
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15347
13634
|
if (properties[keys[i]] != null)
|
|
@@ -15436,22 +13723,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15436
13723
|
*/
|
|
15437
13724
|
SubscriptionRenewed.prototype.subscriptionState = 0;
|
|
15438
13725
|
|
|
15439
|
-
/**
|
|
15440
|
-
* SubscriptionRenewed labels.
|
|
15441
|
-
* @member {Array.<subscription.Labels>} labels
|
|
15442
|
-
* @memberof SubscriptionRenewed
|
|
15443
|
-
* @instance
|
|
15444
|
-
*/
|
|
15445
|
-
SubscriptionRenewed.prototype.labels = $util.emptyArray;
|
|
15446
|
-
|
|
15447
|
-
/**
|
|
15448
|
-
* SubscriptionRenewed renewalCount.
|
|
15449
|
-
* @member {number|Long} renewalCount
|
|
15450
|
-
* @memberof SubscriptionRenewed
|
|
15451
|
-
* @instance
|
|
15452
|
-
*/
|
|
15453
|
-
SubscriptionRenewed.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
15454
|
-
|
|
15455
13726
|
/**
|
|
15456
13727
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
15457
13728
|
* @function create
|
|
@@ -15498,14 +13769,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15498
13769
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
15499
13770
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15500
13771
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
15501
|
-
if (message.labels != null && message.labels.length) {
|
|
15502
|
-
writer.uint32(/* id 14, wireType 2 =*/114).fork();
|
|
15503
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
15504
|
-
writer.int32(message.labels[i]);
|
|
15505
|
-
writer.ldelim();
|
|
15506
|
-
}
|
|
15507
|
-
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
15508
|
-
writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.renewalCount);
|
|
15509
13772
|
return writer;
|
|
15510
13773
|
};
|
|
15511
13774
|
|
|
@@ -15573,19 +13836,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15573
13836
|
case 11:
|
|
15574
13837
|
message.subscriptionState = reader.int32();
|
|
15575
13838
|
break;
|
|
15576
|
-
case 14:
|
|
15577
|
-
if (!(message.labels && message.labels.length))
|
|
15578
|
-
message.labels = [];
|
|
15579
|
-
if ((tag & 7) === 2) {
|
|
15580
|
-
var end2 = reader.uint32() + reader.pos;
|
|
15581
|
-
while (reader.pos < end2)
|
|
15582
|
-
message.labels.push(reader.int32());
|
|
15583
|
-
} else
|
|
15584
|
-
message.labels.push(reader.int32());
|
|
15585
|
-
break;
|
|
15586
|
-
case 15:
|
|
15587
|
-
message.renewalCount = reader.uint64();
|
|
15588
|
-
break;
|
|
15589
13839
|
default:
|
|
15590
13840
|
reader.skipType(tag & 7);
|
|
15591
13841
|
break;
|
|
@@ -15681,20 +13931,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15681
13931
|
case 5:
|
|
15682
13932
|
break;
|
|
15683
13933
|
}
|
|
15684
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
15685
|
-
if (!Array.isArray(message.labels))
|
|
15686
|
-
return "labels: array expected";
|
|
15687
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
15688
|
-
switch (message.labels[i]) {
|
|
15689
|
-
default:
|
|
15690
|
-
return "labels: enum value[] expected";
|
|
15691
|
-
case 0:
|
|
15692
|
-
break;
|
|
15693
|
-
}
|
|
15694
|
-
}
|
|
15695
|
-
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
15696
|
-
if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
|
|
15697
|
-
return "renewalCount: integer|Long expected";
|
|
15698
13934
|
return null;
|
|
15699
13935
|
};
|
|
15700
13936
|
|
|
@@ -15827,28 +14063,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15827
14063
|
message.subscriptionState = 5;
|
|
15828
14064
|
break;
|
|
15829
14065
|
}
|
|
15830
|
-
if (object.labels) {
|
|
15831
|
-
if (!Array.isArray(object.labels))
|
|
15832
|
-
throw TypeError(".SubscriptionRenewed.labels: array expected");
|
|
15833
|
-
message.labels = [];
|
|
15834
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
15835
|
-
switch (object.labels[i]) {
|
|
15836
|
-
default:
|
|
15837
|
-
case "LABELS_FREE_TRIAL":
|
|
15838
|
-
case 0:
|
|
15839
|
-
message.labels[i] = 0;
|
|
15840
|
-
break;
|
|
15841
|
-
}
|
|
15842
|
-
}
|
|
15843
|
-
if (object.renewalCount != null)
|
|
15844
|
-
if ($util.Long)
|
|
15845
|
-
(message.renewalCount = $util.Long.fromValue(object.renewalCount)).unsigned = true;
|
|
15846
|
-
else if (typeof object.renewalCount === "string")
|
|
15847
|
-
message.renewalCount = parseInt(object.renewalCount, 10);
|
|
15848
|
-
else if (typeof object.renewalCount === "number")
|
|
15849
|
-
message.renewalCount = object.renewalCount;
|
|
15850
|
-
else if (typeof object.renewalCount === "object")
|
|
15851
|
-
message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
|
|
15852
14066
|
return message;
|
|
15853
14067
|
};
|
|
15854
14068
|
|
|
@@ -15865,8 +14079,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15865
14079
|
if (!options)
|
|
15866
14080
|
options = {};
|
|
15867
14081
|
var object = {};
|
|
15868
|
-
if (options.arrays || options.defaults)
|
|
15869
|
-
object.labels = [];
|
|
15870
14082
|
if (options.defaults) {
|
|
15871
14083
|
object.id = 0;
|
|
15872
14084
|
if ($util.Long) {
|
|
@@ -15895,11 +14107,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15895
14107
|
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
15896
14108
|
object.plan = null;
|
|
15897
14109
|
object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
|
|
15898
|
-
if ($util.Long) {
|
|
15899
|
-
var long = new $util.Long(0, 0, true);
|
|
15900
|
-
object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
15901
|
-
} else
|
|
15902
|
-
object.renewalCount = options.longs === String ? "0" : 0;
|
|
15903
14110
|
}
|
|
15904
14111
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
15905
14112
|
object.id = message.id;
|
|
@@ -15935,16 +14142,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15935
14142
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
15936
14143
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15937
14144
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
15938
|
-
if (message.labels && message.labels.length) {
|
|
15939
|
-
object.labels = [];
|
|
15940
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
15941
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
15942
|
-
}
|
|
15943
|
-
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
15944
|
-
if (typeof message.renewalCount === "number")
|
|
15945
|
-
object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
|
|
15946
|
-
else
|
|
15947
|
-
object.renewalCount = options.longs === String ? $util.Long.prototype.toString.call(message.renewalCount) : options.longs === Number ? new $util.LongBits(message.renewalCount.low >>> 0, message.renewalCount.high >>> 0).toNumber(true) : message.renewalCount;
|
|
15948
14145
|
return object;
|
|
15949
14146
|
};
|
|
15950
14147
|
|
|
@@ -17001,7 +15198,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
17001
15198
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionGraced autoRenewalStatus
|
|
17002
15199
|
* @property {subscription.IPlan|null} [plan] SubscriptionGraced plan
|
|
17003
15200
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionGraced subscriptionState
|
|
17004
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionGraced labels
|
|
17005
15201
|
*/
|
|
17006
15202
|
|
|
17007
15203
|
/**
|
|
@@ -17013,7 +15209,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
17013
15209
|
* @param {ISubscriptionGraced=} [properties] Properties to set
|
|
17014
15210
|
*/
|
|
17015
15211
|
function SubscriptionGraced(properties) {
|
|
17016
|
-
this.labels = [];
|
|
17017
15212
|
if (properties)
|
|
17018
15213
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17019
15214
|
if (properties[keys[i]] != null)
|
|
@@ -17108,14 +15303,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
17108
15303
|
*/
|
|
17109
15304
|
SubscriptionGraced.prototype.subscriptionState = 0;
|
|
17110
15305
|
|
|
17111
|
-
/**
|
|
17112
|
-
* SubscriptionGraced labels.
|
|
17113
|
-
* @member {Array.<subscription.Labels>} labels
|
|
17114
|
-
* @memberof SubscriptionGraced
|
|
17115
|
-
* @instance
|
|
17116
|
-
*/
|
|
17117
|
-
SubscriptionGraced.prototype.labels = $util.emptyArray;
|
|
17118
|
-
|
|
17119
15306
|
/**
|
|
17120
15307
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
17121
15308
|
* @function create
|
|
@@ -17162,12 +15349,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
17162
15349
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
17163
15350
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17164
15351
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
17165
|
-
if (message.labels != null && message.labels.length) {
|
|
17166
|
-
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
17167
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
17168
|
-
writer.int32(message.labels[i]);
|
|
17169
|
-
writer.ldelim();
|
|
17170
|
-
}
|
|
17171
15352
|
return writer;
|
|
17172
15353
|
};
|
|
17173
15354
|
|
|
@@ -17235,16 +15416,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
17235
15416
|
case 11:
|
|
17236
15417
|
message.subscriptionState = reader.int32();
|
|
17237
15418
|
break;
|
|
17238
|
-
case 12:
|
|
17239
|
-
if (!(message.labels && message.labels.length))
|
|
17240
|
-
message.labels = [];
|
|
17241
|
-
if ((tag & 7) === 2) {
|
|
17242
|
-
var end2 = reader.uint32() + reader.pos;
|
|
17243
|
-
while (reader.pos < end2)
|
|
17244
|
-
message.labels.push(reader.int32());
|
|
17245
|
-
} else
|
|
17246
|
-
message.labels.push(reader.int32());
|
|
17247
|
-
break;
|
|
17248
15419
|
default:
|
|
17249
15420
|
reader.skipType(tag & 7);
|
|
17250
15421
|
break;
|
|
@@ -17340,17 +15511,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
17340
15511
|
case 5:
|
|
17341
15512
|
break;
|
|
17342
15513
|
}
|
|
17343
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
17344
|
-
if (!Array.isArray(message.labels))
|
|
17345
|
-
return "labels: array expected";
|
|
17346
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
17347
|
-
switch (message.labels[i]) {
|
|
17348
|
-
default:
|
|
17349
|
-
return "labels: enum value[] expected";
|
|
17350
|
-
case 0:
|
|
17351
|
-
break;
|
|
17352
|
-
}
|
|
17353
|
-
}
|
|
17354
15514
|
return null;
|
|
17355
15515
|
};
|
|
17356
15516
|
|
|
@@ -17483,19 +15643,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
17483
15643
|
message.subscriptionState = 5;
|
|
17484
15644
|
break;
|
|
17485
15645
|
}
|
|
17486
|
-
if (object.labels) {
|
|
17487
|
-
if (!Array.isArray(object.labels))
|
|
17488
|
-
throw TypeError(".SubscriptionGraced.labels: array expected");
|
|
17489
|
-
message.labels = [];
|
|
17490
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
17491
|
-
switch (object.labels[i]) {
|
|
17492
|
-
default:
|
|
17493
|
-
case "LABELS_FREE_TRIAL":
|
|
17494
|
-
case 0:
|
|
17495
|
-
message.labels[i] = 0;
|
|
17496
|
-
break;
|
|
17497
|
-
}
|
|
17498
|
-
}
|
|
17499
15646
|
return message;
|
|
17500
15647
|
};
|
|
17501
15648
|
|
|
@@ -17512,8 +15659,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
17512
15659
|
if (!options)
|
|
17513
15660
|
options = {};
|
|
17514
15661
|
var object = {};
|
|
17515
|
-
if (options.arrays || options.defaults)
|
|
17516
|
-
object.labels = [];
|
|
17517
15662
|
if (options.defaults) {
|
|
17518
15663
|
object.id = 0;
|
|
17519
15664
|
if ($util.Long) {
|
|
@@ -17577,11 +15722,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
17577
15722
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
17578
15723
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17579
15724
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
17580
|
-
if (message.labels && message.labels.length) {
|
|
17581
|
-
object.labels = [];
|
|
17582
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
17583
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
17584
|
-
}
|
|
17585
15725
|
return object;
|
|
17586
15726
|
};
|
|
17587
15727
|
|
|
@@ -17615,7 +15755,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
17615
15755
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionStarted autoRenewalStatus
|
|
17616
15756
|
* @property {subscription.IPlan|null} [plan] SubscriptionStarted plan
|
|
17617
15757
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionStarted subscriptionState
|
|
17618
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionStarted labels
|
|
17619
15758
|
*/
|
|
17620
15759
|
|
|
17621
15760
|
/**
|
|
@@ -17627,7 +15766,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
17627
15766
|
* @param {ISubscriptionStarted=} [properties] Properties to set
|
|
17628
15767
|
*/
|
|
17629
15768
|
function SubscriptionStarted(properties) {
|
|
17630
|
-
this.labels = [];
|
|
17631
15769
|
if (properties)
|
|
17632
15770
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17633
15771
|
if (properties[keys[i]] != null)
|
|
@@ -17714,14 +15852,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
17714
15852
|
*/
|
|
17715
15853
|
SubscriptionStarted.prototype.subscriptionState = 0;
|
|
17716
15854
|
|
|
17717
|
-
/**
|
|
17718
|
-
* SubscriptionStarted labels.
|
|
17719
|
-
* @member {Array.<subscription.Labels>} labels
|
|
17720
|
-
* @memberof SubscriptionStarted
|
|
17721
|
-
* @instance
|
|
17722
|
-
*/
|
|
17723
|
-
SubscriptionStarted.prototype.labels = $util.emptyArray;
|
|
17724
|
-
|
|
17725
15855
|
/**
|
|
17726
15856
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
17727
15857
|
* @function create
|
|
@@ -17766,12 +15896,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
17766
15896
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
17767
15897
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17768
15898
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
17769
|
-
if (message.labels != null && message.labels.length) {
|
|
17770
|
-
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
17771
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
17772
|
-
writer.int32(message.labels[i]);
|
|
17773
|
-
writer.ldelim();
|
|
17774
|
-
}
|
|
17775
15899
|
return writer;
|
|
17776
15900
|
};
|
|
17777
15901
|
|
|
@@ -17836,16 +15960,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
17836
15960
|
case 11:
|
|
17837
15961
|
message.subscriptionState = reader.int32();
|
|
17838
15962
|
break;
|
|
17839
|
-
case 12:
|
|
17840
|
-
if (!(message.labels && message.labels.length))
|
|
17841
|
-
message.labels = [];
|
|
17842
|
-
if ((tag & 7) === 2) {
|
|
17843
|
-
var end2 = reader.uint32() + reader.pos;
|
|
17844
|
-
while (reader.pos < end2)
|
|
17845
|
-
message.labels.push(reader.int32());
|
|
17846
|
-
} else
|
|
17847
|
-
message.labels.push(reader.int32());
|
|
17848
|
-
break;
|
|
17849
15963
|
default:
|
|
17850
15964
|
reader.skipType(tag & 7);
|
|
17851
15965
|
break;
|
|
@@ -17938,17 +16052,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
17938
16052
|
case 5:
|
|
17939
16053
|
break;
|
|
17940
16054
|
}
|
|
17941
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
17942
|
-
if (!Array.isArray(message.labels))
|
|
17943
|
-
return "labels: array expected";
|
|
17944
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
17945
|
-
switch (message.labels[i]) {
|
|
17946
|
-
default:
|
|
17947
|
-
return "labels: enum value[] expected";
|
|
17948
|
-
case 0:
|
|
17949
|
-
break;
|
|
17950
|
-
}
|
|
17951
|
-
}
|
|
17952
16055
|
return null;
|
|
17953
16056
|
};
|
|
17954
16057
|
|
|
@@ -18079,19 +16182,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
18079
16182
|
message.subscriptionState = 5;
|
|
18080
16183
|
break;
|
|
18081
16184
|
}
|
|
18082
|
-
if (object.labels) {
|
|
18083
|
-
if (!Array.isArray(object.labels))
|
|
18084
|
-
throw TypeError(".SubscriptionStarted.labels: array expected");
|
|
18085
|
-
message.labels = [];
|
|
18086
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
18087
|
-
switch (object.labels[i]) {
|
|
18088
|
-
default:
|
|
18089
|
-
case "LABELS_FREE_TRIAL":
|
|
18090
|
-
case 0:
|
|
18091
|
-
message.labels[i] = 0;
|
|
18092
|
-
break;
|
|
18093
|
-
}
|
|
18094
|
-
}
|
|
18095
16185
|
return message;
|
|
18096
16186
|
};
|
|
18097
16187
|
|
|
@@ -18108,8 +16198,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
18108
16198
|
if (!options)
|
|
18109
16199
|
options = {};
|
|
18110
16200
|
var object = {};
|
|
18111
|
-
if (options.arrays || options.defaults)
|
|
18112
|
-
object.labels = [];
|
|
18113
16201
|
if (options.defaults) {
|
|
18114
16202
|
if ($util.Long) {
|
|
18115
16203
|
var long = new $util.Long(0, 0, true);
|
|
@@ -18170,11 +16258,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
18170
16258
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
18171
16259
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
18172
16260
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
18173
|
-
if (message.labels && message.labels.length) {
|
|
18174
|
-
object.labels = [];
|
|
18175
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
18176
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
18177
|
-
}
|
|
18178
16261
|
return object;
|
|
18179
16262
|
};
|
|
18180
16263
|
|
|
@@ -18209,7 +16292,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
18209
16292
|
* @property {subscription.IPlan|null} [plan] SubscriptionEnded plan
|
|
18210
16293
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionEnded cancellationType
|
|
18211
16294
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionEnded subscriptionState
|
|
18212
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionEnded labels
|
|
18213
16295
|
*/
|
|
18214
16296
|
|
|
18215
16297
|
/**
|
|
@@ -18221,7 +16303,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
18221
16303
|
* @param {ISubscriptionEnded=} [properties] Properties to set
|
|
18222
16304
|
*/
|
|
18223
16305
|
function SubscriptionEnded(properties) {
|
|
18224
|
-
this.labels = [];
|
|
18225
16306
|
if (properties)
|
|
18226
16307
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18227
16308
|
if (properties[keys[i]] != null)
|
|
@@ -18316,14 +16397,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
18316
16397
|
*/
|
|
18317
16398
|
SubscriptionEnded.prototype.subscriptionState = 0;
|
|
18318
16399
|
|
|
18319
|
-
/**
|
|
18320
|
-
* SubscriptionEnded labels.
|
|
18321
|
-
* @member {Array.<subscription.Labels>} labels
|
|
18322
|
-
* @memberof SubscriptionEnded
|
|
18323
|
-
* @instance
|
|
18324
|
-
*/
|
|
18325
|
-
SubscriptionEnded.prototype.labels = $util.emptyArray;
|
|
18326
|
-
|
|
18327
16400
|
/**
|
|
18328
16401
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
18329
16402
|
* @function create
|
|
@@ -18370,12 +16443,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
18370
16443
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.cancellationType);
|
|
18371
16444
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
18372
16445
|
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.subscriptionState);
|
|
18373
|
-
if (message.labels != null && message.labels.length) {
|
|
18374
|
-
writer.uint32(/* id 13, wireType 2 =*/106).fork();
|
|
18375
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
18376
|
-
writer.int32(message.labels[i]);
|
|
18377
|
-
writer.ldelim();
|
|
18378
|
-
}
|
|
18379
16446
|
return writer;
|
|
18380
16447
|
};
|
|
18381
16448
|
|
|
@@ -18443,16 +16510,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
18443
16510
|
case 12:
|
|
18444
16511
|
message.subscriptionState = reader.int32();
|
|
18445
16512
|
break;
|
|
18446
|
-
case 13:
|
|
18447
|
-
if (!(message.labels && message.labels.length))
|
|
18448
|
-
message.labels = [];
|
|
18449
|
-
if ((tag & 7) === 2) {
|
|
18450
|
-
var end2 = reader.uint32() + reader.pos;
|
|
18451
|
-
while (reader.pos < end2)
|
|
18452
|
-
message.labels.push(reader.int32());
|
|
18453
|
-
} else
|
|
18454
|
-
message.labels.push(reader.int32());
|
|
18455
|
-
break;
|
|
18456
16513
|
default:
|
|
18457
16514
|
reader.skipType(tag & 7);
|
|
18458
16515
|
break;
|
|
@@ -18554,17 +16611,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
18554
16611
|
case 5:
|
|
18555
16612
|
break;
|
|
18556
16613
|
}
|
|
18557
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
18558
|
-
if (!Array.isArray(message.labels))
|
|
18559
|
-
return "labels: array expected";
|
|
18560
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
18561
|
-
switch (message.labels[i]) {
|
|
18562
|
-
default:
|
|
18563
|
-
return "labels: enum value[] expected";
|
|
18564
|
-
case 0:
|
|
18565
|
-
break;
|
|
18566
|
-
}
|
|
18567
|
-
}
|
|
18568
16614
|
return null;
|
|
18569
16615
|
};
|
|
18570
16616
|
|
|
@@ -18709,19 +16755,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
18709
16755
|
message.subscriptionState = 5;
|
|
18710
16756
|
break;
|
|
18711
16757
|
}
|
|
18712
|
-
if (object.labels) {
|
|
18713
|
-
if (!Array.isArray(object.labels))
|
|
18714
|
-
throw TypeError(".SubscriptionEnded.labels: array expected");
|
|
18715
|
-
message.labels = [];
|
|
18716
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
18717
|
-
switch (object.labels[i]) {
|
|
18718
|
-
default:
|
|
18719
|
-
case "LABELS_FREE_TRIAL":
|
|
18720
|
-
case 0:
|
|
18721
|
-
message.labels[i] = 0;
|
|
18722
|
-
break;
|
|
18723
|
-
}
|
|
18724
|
-
}
|
|
18725
16758
|
return message;
|
|
18726
16759
|
};
|
|
18727
16760
|
|
|
@@ -18738,8 +16771,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
18738
16771
|
if (!options)
|
|
18739
16772
|
options = {};
|
|
18740
16773
|
var object = {};
|
|
18741
|
-
if (options.arrays || options.defaults)
|
|
18742
|
-
object.labels = [];
|
|
18743
16774
|
if (options.defaults) {
|
|
18744
16775
|
if ($util.Long) {
|
|
18745
16776
|
var long = new $util.Long(0, 0, true);
|
|
@@ -18803,11 +16834,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
18803
16834
|
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
18804
16835
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
18805
16836
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
18806
|
-
if (message.labels && message.labels.length) {
|
|
18807
|
-
object.labels = [];
|
|
18808
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
18809
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
18810
|
-
}
|
|
18811
16837
|
return object;
|
|
18812
16838
|
};
|
|
18813
16839
|
|
|
@@ -18841,7 +16867,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18841
16867
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRecovered autoRenewalStatus
|
|
18842
16868
|
* @property {subscription.IPlan|null} [plan] SubscriptionRecovered plan
|
|
18843
16869
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRecovered subscriptionState
|
|
18844
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionRecovered labels
|
|
18845
16870
|
*/
|
|
18846
16871
|
|
|
18847
16872
|
/**
|
|
@@ -18853,7 +16878,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18853
16878
|
* @param {ISubscriptionRecovered=} [properties] Properties to set
|
|
18854
16879
|
*/
|
|
18855
16880
|
function SubscriptionRecovered(properties) {
|
|
18856
|
-
this.labels = [];
|
|
18857
16881
|
if (properties)
|
|
18858
16882
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18859
16883
|
if (properties[keys[i]] != null)
|
|
@@ -18940,14 +16964,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18940
16964
|
*/
|
|
18941
16965
|
SubscriptionRecovered.prototype.subscriptionState = 0;
|
|
18942
16966
|
|
|
18943
|
-
/**
|
|
18944
|
-
* SubscriptionRecovered labels.
|
|
18945
|
-
* @member {Array.<subscription.Labels>} labels
|
|
18946
|
-
* @memberof SubscriptionRecovered
|
|
18947
|
-
* @instance
|
|
18948
|
-
*/
|
|
18949
|
-
SubscriptionRecovered.prototype.labels = $util.emptyArray;
|
|
18950
|
-
|
|
18951
16967
|
/**
|
|
18952
16968
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
18953
16969
|
* @function create
|
|
@@ -18992,12 +17008,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18992
17008
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
18993
17009
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
18994
17010
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
18995
|
-
if (message.labels != null && message.labels.length) {
|
|
18996
|
-
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
18997
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
18998
|
-
writer.int32(message.labels[i]);
|
|
18999
|
-
writer.ldelim();
|
|
19000
|
-
}
|
|
19001
17011
|
return writer;
|
|
19002
17012
|
};
|
|
19003
17013
|
|
|
@@ -19062,16 +17072,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
19062
17072
|
case 11:
|
|
19063
17073
|
message.subscriptionState = reader.int32();
|
|
19064
17074
|
break;
|
|
19065
|
-
case 12:
|
|
19066
|
-
if (!(message.labels && message.labels.length))
|
|
19067
|
-
message.labels = [];
|
|
19068
|
-
if ((tag & 7) === 2) {
|
|
19069
|
-
var end2 = reader.uint32() + reader.pos;
|
|
19070
|
-
while (reader.pos < end2)
|
|
19071
|
-
message.labels.push(reader.int32());
|
|
19072
|
-
} else
|
|
19073
|
-
message.labels.push(reader.int32());
|
|
19074
|
-
break;
|
|
19075
17075
|
default:
|
|
19076
17076
|
reader.skipType(tag & 7);
|
|
19077
17077
|
break;
|
|
@@ -19164,17 +17164,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
19164
17164
|
case 5:
|
|
19165
17165
|
break;
|
|
19166
17166
|
}
|
|
19167
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
19168
|
-
if (!Array.isArray(message.labels))
|
|
19169
|
-
return "labels: array expected";
|
|
19170
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
19171
|
-
switch (message.labels[i]) {
|
|
19172
|
-
default:
|
|
19173
|
-
return "labels: enum value[] expected";
|
|
19174
|
-
case 0:
|
|
19175
|
-
break;
|
|
19176
|
-
}
|
|
19177
|
-
}
|
|
19178
17167
|
return null;
|
|
19179
17168
|
};
|
|
19180
17169
|
|
|
@@ -19305,19 +17294,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
19305
17294
|
message.subscriptionState = 5;
|
|
19306
17295
|
break;
|
|
19307
17296
|
}
|
|
19308
|
-
if (object.labels) {
|
|
19309
|
-
if (!Array.isArray(object.labels))
|
|
19310
|
-
throw TypeError(".SubscriptionRecovered.labels: array expected");
|
|
19311
|
-
message.labels = [];
|
|
19312
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
19313
|
-
switch (object.labels[i]) {
|
|
19314
|
-
default:
|
|
19315
|
-
case "LABELS_FREE_TRIAL":
|
|
19316
|
-
case 0:
|
|
19317
|
-
message.labels[i] = 0;
|
|
19318
|
-
break;
|
|
19319
|
-
}
|
|
19320
|
-
}
|
|
19321
17297
|
return message;
|
|
19322
17298
|
};
|
|
19323
17299
|
|
|
@@ -19334,8 +17310,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
19334
17310
|
if (!options)
|
|
19335
17311
|
options = {};
|
|
19336
17312
|
var object = {};
|
|
19337
|
-
if (options.arrays || options.defaults)
|
|
19338
|
-
object.labels = [];
|
|
19339
17313
|
if (options.defaults) {
|
|
19340
17314
|
if ($util.Long) {
|
|
19341
17315
|
var long = new $util.Long(0, 0, true);
|
|
@@ -19396,11 +17370,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
19396
17370
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
19397
17371
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
19398
17372
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
19399
|
-
if (message.labels && message.labels.length) {
|
|
19400
|
-
object.labels = [];
|
|
19401
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
19402
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
19403
|
-
}
|
|
19404
17373
|
return object;
|
|
19405
17374
|
};
|
|
19406
17375
|
|