@headspace/protos-events 1.65.0 → 1.67.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 +879 -0
- package/lib/index.js +2284 -61
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2729,6 +2729,1791 @@ $root.subscription = (function() {
|
|
|
2729
2729
|
return subscription;
|
|
2730
2730
|
})();
|
|
2731
2731
|
|
|
2732
|
+
$root.asset = (function() {
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* Namespace asset.
|
|
2736
|
+
* @exports asset
|
|
2737
|
+
* @namespace
|
|
2738
|
+
*/
|
|
2739
|
+
var asset = {};
|
|
2740
|
+
|
|
2741
|
+
asset.Asset = (function() {
|
|
2742
|
+
|
|
2743
|
+
/**
|
|
2744
|
+
* Properties of an Asset.
|
|
2745
|
+
* @memberof asset
|
|
2746
|
+
* @interface IAsset
|
|
2747
|
+
* @property {string|null} [id] Asset id
|
|
2748
|
+
* @property {string|null} [title] Asset title
|
|
2749
|
+
* @property {string|null} [description] Asset description
|
|
2750
|
+
* @property {Array.<string>|null} [tags] Asset tags
|
|
2751
|
+
* @property {asset.IAudio|null} [audio] Asset audio
|
|
2752
|
+
* @property {asset.IImage|null} [image] Asset image
|
|
2753
|
+
* @property {asset.IVideo|null} [video] Asset video
|
|
2754
|
+
* @property {number|Long|null} [createdAt] Asset createdAt
|
|
2755
|
+
*/
|
|
2756
|
+
|
|
2757
|
+
/**
|
|
2758
|
+
* Constructs a new Asset.
|
|
2759
|
+
* @memberof asset
|
|
2760
|
+
* @classdesc Represents an Asset.
|
|
2761
|
+
* @implements IAsset
|
|
2762
|
+
* @constructor
|
|
2763
|
+
* @param {asset.IAsset=} [properties] Properties to set
|
|
2764
|
+
*/
|
|
2765
|
+
function Asset(properties) {
|
|
2766
|
+
this.tags = [];
|
|
2767
|
+
if (properties)
|
|
2768
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2769
|
+
if (properties[keys[i]] != null)
|
|
2770
|
+
this[keys[i]] = properties[keys[i]];
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
/**
|
|
2774
|
+
* Asset id.
|
|
2775
|
+
* @member {string} id
|
|
2776
|
+
* @memberof asset.Asset
|
|
2777
|
+
* @instance
|
|
2778
|
+
*/
|
|
2779
|
+
Asset.prototype.id = "";
|
|
2780
|
+
|
|
2781
|
+
/**
|
|
2782
|
+
* Asset title.
|
|
2783
|
+
* @member {string} title
|
|
2784
|
+
* @memberof asset.Asset
|
|
2785
|
+
* @instance
|
|
2786
|
+
*/
|
|
2787
|
+
Asset.prototype.title = "";
|
|
2788
|
+
|
|
2789
|
+
/**
|
|
2790
|
+
* Asset description.
|
|
2791
|
+
* @member {string} description
|
|
2792
|
+
* @memberof asset.Asset
|
|
2793
|
+
* @instance
|
|
2794
|
+
*/
|
|
2795
|
+
Asset.prototype.description = "";
|
|
2796
|
+
|
|
2797
|
+
/**
|
|
2798
|
+
* Asset tags.
|
|
2799
|
+
* @member {Array.<string>} tags
|
|
2800
|
+
* @memberof asset.Asset
|
|
2801
|
+
* @instance
|
|
2802
|
+
*/
|
|
2803
|
+
Asset.prototype.tags = $util.emptyArray;
|
|
2804
|
+
|
|
2805
|
+
/**
|
|
2806
|
+
* Asset audio.
|
|
2807
|
+
* @member {asset.IAudio|null|undefined} audio
|
|
2808
|
+
* @memberof asset.Asset
|
|
2809
|
+
* @instance
|
|
2810
|
+
*/
|
|
2811
|
+
Asset.prototype.audio = null;
|
|
2812
|
+
|
|
2813
|
+
/**
|
|
2814
|
+
* Asset image.
|
|
2815
|
+
* @member {asset.IImage|null|undefined} image
|
|
2816
|
+
* @memberof asset.Asset
|
|
2817
|
+
* @instance
|
|
2818
|
+
*/
|
|
2819
|
+
Asset.prototype.image = null;
|
|
2820
|
+
|
|
2821
|
+
/**
|
|
2822
|
+
* Asset video.
|
|
2823
|
+
* @member {asset.IVideo|null|undefined} video
|
|
2824
|
+
* @memberof asset.Asset
|
|
2825
|
+
* @instance
|
|
2826
|
+
*/
|
|
2827
|
+
Asset.prototype.video = null;
|
|
2828
|
+
|
|
2829
|
+
/**
|
|
2830
|
+
* Asset createdAt.
|
|
2831
|
+
* @member {number|Long} createdAt
|
|
2832
|
+
* @memberof asset.Asset
|
|
2833
|
+
* @instance
|
|
2834
|
+
*/
|
|
2835
|
+
Asset.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* Creates a new Asset instance using the specified properties.
|
|
2839
|
+
* @function create
|
|
2840
|
+
* @memberof asset.Asset
|
|
2841
|
+
* @static
|
|
2842
|
+
* @param {asset.IAsset=} [properties] Properties to set
|
|
2843
|
+
* @returns {asset.Asset} Asset instance
|
|
2844
|
+
*/
|
|
2845
|
+
Asset.create = function create(properties) {
|
|
2846
|
+
return new Asset(properties);
|
|
2847
|
+
};
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* Encodes the specified Asset message. Does not implicitly {@link asset.Asset.verify|verify} messages.
|
|
2851
|
+
* @function encode
|
|
2852
|
+
* @memberof asset.Asset
|
|
2853
|
+
* @static
|
|
2854
|
+
* @param {asset.IAsset} message Asset message or plain object to encode
|
|
2855
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2856
|
+
* @returns {$protobuf.Writer} Writer
|
|
2857
|
+
*/
|
|
2858
|
+
Asset.encode = function encode(message, writer) {
|
|
2859
|
+
if (!writer)
|
|
2860
|
+
writer = $Writer.create();
|
|
2861
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2862
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
2863
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
2864
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
|
|
2865
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
2866
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
|
|
2867
|
+
if (message.tags != null && message.tags.length)
|
|
2868
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
2869
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.tags[i]);
|
|
2870
|
+
if (message.audio != null && message.hasOwnProperty("audio"))
|
|
2871
|
+
$root.asset.Audio.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
2872
|
+
if (message.image != null && message.hasOwnProperty("image"))
|
|
2873
|
+
$root.asset.Image.encode(message.image, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
2874
|
+
if (message.video != null && message.hasOwnProperty("video"))
|
|
2875
|
+
$root.asset.Video.encode(message.video, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
2876
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
2877
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.createdAt);
|
|
2878
|
+
return writer;
|
|
2879
|
+
};
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* Encodes the specified Asset message, length delimited. Does not implicitly {@link asset.Asset.verify|verify} messages.
|
|
2883
|
+
* @function encodeDelimited
|
|
2884
|
+
* @memberof asset.Asset
|
|
2885
|
+
* @static
|
|
2886
|
+
* @param {asset.IAsset} message Asset message or plain object to encode
|
|
2887
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2888
|
+
* @returns {$protobuf.Writer} Writer
|
|
2889
|
+
*/
|
|
2890
|
+
Asset.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2891
|
+
return this.encode(message, writer).ldelim();
|
|
2892
|
+
};
|
|
2893
|
+
|
|
2894
|
+
/**
|
|
2895
|
+
* Decodes an Asset message from the specified reader or buffer.
|
|
2896
|
+
* @function decode
|
|
2897
|
+
* @memberof asset.Asset
|
|
2898
|
+
* @static
|
|
2899
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2900
|
+
* @param {number} [length] Message length if known beforehand
|
|
2901
|
+
* @returns {asset.Asset} Asset
|
|
2902
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2903
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2904
|
+
*/
|
|
2905
|
+
Asset.decode = function decode(reader, length) {
|
|
2906
|
+
if (!(reader instanceof $Reader))
|
|
2907
|
+
reader = $Reader.create(reader);
|
|
2908
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.asset.Asset();
|
|
2909
|
+
while (reader.pos < end) {
|
|
2910
|
+
var tag = reader.uint32();
|
|
2911
|
+
switch (tag >>> 3) {
|
|
2912
|
+
case 1:
|
|
2913
|
+
message.id = reader.string();
|
|
2914
|
+
break;
|
|
2915
|
+
case 2:
|
|
2916
|
+
message.title = reader.string();
|
|
2917
|
+
break;
|
|
2918
|
+
case 3:
|
|
2919
|
+
message.description = reader.string();
|
|
2920
|
+
break;
|
|
2921
|
+
case 4:
|
|
2922
|
+
if (!(message.tags && message.tags.length))
|
|
2923
|
+
message.tags = [];
|
|
2924
|
+
message.tags.push(reader.string());
|
|
2925
|
+
break;
|
|
2926
|
+
case 5:
|
|
2927
|
+
message.audio = $root.asset.Audio.decode(reader, reader.uint32());
|
|
2928
|
+
break;
|
|
2929
|
+
case 6:
|
|
2930
|
+
message.image = $root.asset.Image.decode(reader, reader.uint32());
|
|
2931
|
+
break;
|
|
2932
|
+
case 7:
|
|
2933
|
+
message.video = $root.asset.Video.decode(reader, reader.uint32());
|
|
2934
|
+
break;
|
|
2935
|
+
case 8:
|
|
2936
|
+
message.createdAt = reader.uint64();
|
|
2937
|
+
break;
|
|
2938
|
+
default:
|
|
2939
|
+
reader.skipType(tag & 7);
|
|
2940
|
+
break;
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
return message;
|
|
2944
|
+
};
|
|
2945
|
+
|
|
2946
|
+
/**
|
|
2947
|
+
* Decodes an Asset message from the specified reader or buffer, length delimited.
|
|
2948
|
+
* @function decodeDelimited
|
|
2949
|
+
* @memberof asset.Asset
|
|
2950
|
+
* @static
|
|
2951
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2952
|
+
* @returns {asset.Asset} Asset
|
|
2953
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2954
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2955
|
+
*/
|
|
2956
|
+
Asset.decodeDelimited = function decodeDelimited(reader) {
|
|
2957
|
+
if (!(reader instanceof $Reader))
|
|
2958
|
+
reader = new $Reader(reader);
|
|
2959
|
+
return this.decode(reader, reader.uint32());
|
|
2960
|
+
};
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* Verifies an Asset message.
|
|
2964
|
+
* @function verify
|
|
2965
|
+
* @memberof asset.Asset
|
|
2966
|
+
* @static
|
|
2967
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2968
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2969
|
+
*/
|
|
2970
|
+
Asset.verify = function verify(message) {
|
|
2971
|
+
if (typeof message !== "object" || message === null)
|
|
2972
|
+
return "object expected";
|
|
2973
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2974
|
+
if (!$util.isString(message.id))
|
|
2975
|
+
return "id: string expected";
|
|
2976
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
2977
|
+
if (!$util.isString(message.title))
|
|
2978
|
+
return "title: string expected";
|
|
2979
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
2980
|
+
if (!$util.isString(message.description))
|
|
2981
|
+
return "description: string expected";
|
|
2982
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
2983
|
+
if (!Array.isArray(message.tags))
|
|
2984
|
+
return "tags: array expected";
|
|
2985
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
2986
|
+
if (!$util.isString(message.tags[i]))
|
|
2987
|
+
return "tags: string[] expected";
|
|
2988
|
+
}
|
|
2989
|
+
if (message.audio != null && message.hasOwnProperty("audio")) {
|
|
2990
|
+
var error = $root.asset.Audio.verify(message.audio);
|
|
2991
|
+
if (error)
|
|
2992
|
+
return "audio." + error;
|
|
2993
|
+
}
|
|
2994
|
+
if (message.image != null && message.hasOwnProperty("image")) {
|
|
2995
|
+
var error = $root.asset.Image.verify(message.image);
|
|
2996
|
+
if (error)
|
|
2997
|
+
return "image." + error;
|
|
2998
|
+
}
|
|
2999
|
+
if (message.video != null && message.hasOwnProperty("video")) {
|
|
3000
|
+
var error = $root.asset.Video.verify(message.video);
|
|
3001
|
+
if (error)
|
|
3002
|
+
return "video." + error;
|
|
3003
|
+
}
|
|
3004
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
3005
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
3006
|
+
return "createdAt: integer|Long expected";
|
|
3007
|
+
return null;
|
|
3008
|
+
};
|
|
3009
|
+
|
|
3010
|
+
/**
|
|
3011
|
+
* Creates an Asset message from a plain object. Also converts values to their respective internal types.
|
|
3012
|
+
* @function fromObject
|
|
3013
|
+
* @memberof asset.Asset
|
|
3014
|
+
* @static
|
|
3015
|
+
* @param {Object.<string,*>} object Plain object
|
|
3016
|
+
* @returns {asset.Asset} Asset
|
|
3017
|
+
*/
|
|
3018
|
+
Asset.fromObject = function fromObject(object) {
|
|
3019
|
+
if (object instanceof $root.asset.Asset)
|
|
3020
|
+
return object;
|
|
3021
|
+
var message = new $root.asset.Asset();
|
|
3022
|
+
if (object.id != null)
|
|
3023
|
+
message.id = String(object.id);
|
|
3024
|
+
if (object.title != null)
|
|
3025
|
+
message.title = String(object.title);
|
|
3026
|
+
if (object.description != null)
|
|
3027
|
+
message.description = String(object.description);
|
|
3028
|
+
if (object.tags) {
|
|
3029
|
+
if (!Array.isArray(object.tags))
|
|
3030
|
+
throw TypeError(".asset.Asset.tags: array expected");
|
|
3031
|
+
message.tags = [];
|
|
3032
|
+
for (var i = 0; i < object.tags.length; ++i)
|
|
3033
|
+
message.tags[i] = String(object.tags[i]);
|
|
3034
|
+
}
|
|
3035
|
+
if (object.audio != null) {
|
|
3036
|
+
if (typeof object.audio !== "object")
|
|
3037
|
+
throw TypeError(".asset.Asset.audio: object expected");
|
|
3038
|
+
message.audio = $root.asset.Audio.fromObject(object.audio);
|
|
3039
|
+
}
|
|
3040
|
+
if (object.image != null) {
|
|
3041
|
+
if (typeof object.image !== "object")
|
|
3042
|
+
throw TypeError(".asset.Asset.image: object expected");
|
|
3043
|
+
message.image = $root.asset.Image.fromObject(object.image);
|
|
3044
|
+
}
|
|
3045
|
+
if (object.video != null) {
|
|
3046
|
+
if (typeof object.video !== "object")
|
|
3047
|
+
throw TypeError(".asset.Asset.video: object expected");
|
|
3048
|
+
message.video = $root.asset.Video.fromObject(object.video);
|
|
3049
|
+
}
|
|
3050
|
+
if (object.createdAt != null)
|
|
3051
|
+
if ($util.Long)
|
|
3052
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
3053
|
+
else if (typeof object.createdAt === "string")
|
|
3054
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
3055
|
+
else if (typeof object.createdAt === "number")
|
|
3056
|
+
message.createdAt = object.createdAt;
|
|
3057
|
+
else if (typeof object.createdAt === "object")
|
|
3058
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
3059
|
+
return message;
|
|
3060
|
+
};
|
|
3061
|
+
|
|
3062
|
+
/**
|
|
3063
|
+
* Creates a plain object from an Asset message. Also converts values to other types if specified.
|
|
3064
|
+
* @function toObject
|
|
3065
|
+
* @memberof asset.Asset
|
|
3066
|
+
* @static
|
|
3067
|
+
* @param {asset.Asset} message Asset
|
|
3068
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3069
|
+
* @returns {Object.<string,*>} Plain object
|
|
3070
|
+
*/
|
|
3071
|
+
Asset.toObject = function toObject(message, options) {
|
|
3072
|
+
if (!options)
|
|
3073
|
+
options = {};
|
|
3074
|
+
var object = {};
|
|
3075
|
+
if (options.arrays || options.defaults)
|
|
3076
|
+
object.tags = [];
|
|
3077
|
+
if (options.defaults) {
|
|
3078
|
+
object.id = "";
|
|
3079
|
+
object.title = "";
|
|
3080
|
+
object.description = "";
|
|
3081
|
+
object.audio = null;
|
|
3082
|
+
object.image = null;
|
|
3083
|
+
object.video = null;
|
|
3084
|
+
if ($util.Long) {
|
|
3085
|
+
var long = new $util.Long(0, 0, true);
|
|
3086
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
3087
|
+
} else
|
|
3088
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
3089
|
+
}
|
|
3090
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
3091
|
+
object.id = message.id;
|
|
3092
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
3093
|
+
object.title = message.title;
|
|
3094
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
3095
|
+
object.description = message.description;
|
|
3096
|
+
if (message.tags && message.tags.length) {
|
|
3097
|
+
object.tags = [];
|
|
3098
|
+
for (var j = 0; j < message.tags.length; ++j)
|
|
3099
|
+
object.tags[j] = message.tags[j];
|
|
3100
|
+
}
|
|
3101
|
+
if (message.audio != null && message.hasOwnProperty("audio"))
|
|
3102
|
+
object.audio = $root.asset.Audio.toObject(message.audio, options);
|
|
3103
|
+
if (message.image != null && message.hasOwnProperty("image"))
|
|
3104
|
+
object.image = $root.asset.Image.toObject(message.image, options);
|
|
3105
|
+
if (message.video != null && message.hasOwnProperty("video"))
|
|
3106
|
+
object.video = $root.asset.Video.toObject(message.video, options);
|
|
3107
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
3108
|
+
if (typeof message.createdAt === "number")
|
|
3109
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
3110
|
+
else
|
|
3111
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
3112
|
+
return object;
|
|
3113
|
+
};
|
|
3114
|
+
|
|
3115
|
+
/**
|
|
3116
|
+
* Converts this Asset to JSON.
|
|
3117
|
+
* @function toJSON
|
|
3118
|
+
* @memberof asset.Asset
|
|
3119
|
+
* @instance
|
|
3120
|
+
* @returns {Object.<string,*>} JSON object
|
|
3121
|
+
*/
|
|
3122
|
+
Asset.prototype.toJSON = function toJSON() {
|
|
3123
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3124
|
+
};
|
|
3125
|
+
|
|
3126
|
+
return Asset;
|
|
3127
|
+
})();
|
|
3128
|
+
|
|
3129
|
+
asset.Video = (function() {
|
|
3130
|
+
|
|
3131
|
+
/**
|
|
3132
|
+
* Properties of a Video.
|
|
3133
|
+
* @memberof asset
|
|
3134
|
+
* @interface IVideo
|
|
3135
|
+
* @property {asset.IEncoding|null} [encoding] Video encoding
|
|
3136
|
+
* @property {asset.Language|null} [language] Video language
|
|
3137
|
+
*/
|
|
3138
|
+
|
|
3139
|
+
/**
|
|
3140
|
+
* Constructs a new Video.
|
|
3141
|
+
* @memberof asset
|
|
3142
|
+
* @classdesc Represents a Video.
|
|
3143
|
+
* @implements IVideo
|
|
3144
|
+
* @constructor
|
|
3145
|
+
* @param {asset.IVideo=} [properties] Properties to set
|
|
3146
|
+
*/
|
|
3147
|
+
function Video(properties) {
|
|
3148
|
+
if (properties)
|
|
3149
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3150
|
+
if (properties[keys[i]] != null)
|
|
3151
|
+
this[keys[i]] = properties[keys[i]];
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
/**
|
|
3155
|
+
* Video encoding.
|
|
3156
|
+
* @member {asset.IEncoding|null|undefined} encoding
|
|
3157
|
+
* @memberof asset.Video
|
|
3158
|
+
* @instance
|
|
3159
|
+
*/
|
|
3160
|
+
Video.prototype.encoding = null;
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* Video language.
|
|
3164
|
+
* @member {asset.Language} language
|
|
3165
|
+
* @memberof asset.Video
|
|
3166
|
+
* @instance
|
|
3167
|
+
*/
|
|
3168
|
+
Video.prototype.language = 0;
|
|
3169
|
+
|
|
3170
|
+
/**
|
|
3171
|
+
* Creates a new Video instance using the specified properties.
|
|
3172
|
+
* @function create
|
|
3173
|
+
* @memberof asset.Video
|
|
3174
|
+
* @static
|
|
3175
|
+
* @param {asset.IVideo=} [properties] Properties to set
|
|
3176
|
+
* @returns {asset.Video} Video instance
|
|
3177
|
+
*/
|
|
3178
|
+
Video.create = function create(properties) {
|
|
3179
|
+
return new Video(properties);
|
|
3180
|
+
};
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* Encodes the specified Video message. Does not implicitly {@link asset.Video.verify|verify} messages.
|
|
3184
|
+
* @function encode
|
|
3185
|
+
* @memberof asset.Video
|
|
3186
|
+
* @static
|
|
3187
|
+
* @param {asset.IVideo} message Video message or plain object to encode
|
|
3188
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3189
|
+
* @returns {$protobuf.Writer} Writer
|
|
3190
|
+
*/
|
|
3191
|
+
Video.encode = function encode(message, writer) {
|
|
3192
|
+
if (!writer)
|
|
3193
|
+
writer = $Writer.create();
|
|
3194
|
+
if (message.encoding != null && message.hasOwnProperty("encoding"))
|
|
3195
|
+
$root.asset.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
3196
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
3197
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.language);
|
|
3198
|
+
return writer;
|
|
3199
|
+
};
|
|
3200
|
+
|
|
3201
|
+
/**
|
|
3202
|
+
* Encodes the specified Video message, length delimited. Does not implicitly {@link asset.Video.verify|verify} messages.
|
|
3203
|
+
* @function encodeDelimited
|
|
3204
|
+
* @memberof asset.Video
|
|
3205
|
+
* @static
|
|
3206
|
+
* @param {asset.IVideo} message Video message or plain object to encode
|
|
3207
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3208
|
+
* @returns {$protobuf.Writer} Writer
|
|
3209
|
+
*/
|
|
3210
|
+
Video.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3211
|
+
return this.encode(message, writer).ldelim();
|
|
3212
|
+
};
|
|
3213
|
+
|
|
3214
|
+
/**
|
|
3215
|
+
* Decodes a Video message from the specified reader or buffer.
|
|
3216
|
+
* @function decode
|
|
3217
|
+
* @memberof asset.Video
|
|
3218
|
+
* @static
|
|
3219
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3220
|
+
* @param {number} [length] Message length if known beforehand
|
|
3221
|
+
* @returns {asset.Video} Video
|
|
3222
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3223
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3224
|
+
*/
|
|
3225
|
+
Video.decode = function decode(reader, length) {
|
|
3226
|
+
if (!(reader instanceof $Reader))
|
|
3227
|
+
reader = $Reader.create(reader);
|
|
3228
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.asset.Video();
|
|
3229
|
+
while (reader.pos < end) {
|
|
3230
|
+
var tag = reader.uint32();
|
|
3231
|
+
switch (tag >>> 3) {
|
|
3232
|
+
case 1:
|
|
3233
|
+
message.encoding = $root.asset.Encoding.decode(reader, reader.uint32());
|
|
3234
|
+
break;
|
|
3235
|
+
case 2:
|
|
3236
|
+
message.language = reader.int32();
|
|
3237
|
+
break;
|
|
3238
|
+
default:
|
|
3239
|
+
reader.skipType(tag & 7);
|
|
3240
|
+
break;
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
return message;
|
|
3244
|
+
};
|
|
3245
|
+
|
|
3246
|
+
/**
|
|
3247
|
+
* Decodes a Video message from the specified reader or buffer, length delimited.
|
|
3248
|
+
* @function decodeDelimited
|
|
3249
|
+
* @memberof asset.Video
|
|
3250
|
+
* @static
|
|
3251
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3252
|
+
* @returns {asset.Video} Video
|
|
3253
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3254
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3255
|
+
*/
|
|
3256
|
+
Video.decodeDelimited = function decodeDelimited(reader) {
|
|
3257
|
+
if (!(reader instanceof $Reader))
|
|
3258
|
+
reader = new $Reader(reader);
|
|
3259
|
+
return this.decode(reader, reader.uint32());
|
|
3260
|
+
};
|
|
3261
|
+
|
|
3262
|
+
/**
|
|
3263
|
+
* Verifies a Video message.
|
|
3264
|
+
* @function verify
|
|
3265
|
+
* @memberof asset.Video
|
|
3266
|
+
* @static
|
|
3267
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3268
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3269
|
+
*/
|
|
3270
|
+
Video.verify = function verify(message) {
|
|
3271
|
+
if (typeof message !== "object" || message === null)
|
|
3272
|
+
return "object expected";
|
|
3273
|
+
if (message.encoding != null && message.hasOwnProperty("encoding")) {
|
|
3274
|
+
var error = $root.asset.Encoding.verify(message.encoding);
|
|
3275
|
+
if (error)
|
|
3276
|
+
return "encoding." + error;
|
|
3277
|
+
}
|
|
3278
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
3279
|
+
switch (message.language) {
|
|
3280
|
+
default:
|
|
3281
|
+
return "language: enum value expected";
|
|
3282
|
+
case 0:
|
|
3283
|
+
case 1:
|
|
3284
|
+
case 2:
|
|
3285
|
+
case 3:
|
|
3286
|
+
case 4:
|
|
3287
|
+
case 5:
|
|
3288
|
+
break;
|
|
3289
|
+
}
|
|
3290
|
+
return null;
|
|
3291
|
+
};
|
|
3292
|
+
|
|
3293
|
+
/**
|
|
3294
|
+
* Creates a Video message from a plain object. Also converts values to their respective internal types.
|
|
3295
|
+
* @function fromObject
|
|
3296
|
+
* @memberof asset.Video
|
|
3297
|
+
* @static
|
|
3298
|
+
* @param {Object.<string,*>} object Plain object
|
|
3299
|
+
* @returns {asset.Video} Video
|
|
3300
|
+
*/
|
|
3301
|
+
Video.fromObject = function fromObject(object) {
|
|
3302
|
+
if (object instanceof $root.asset.Video)
|
|
3303
|
+
return object;
|
|
3304
|
+
var message = new $root.asset.Video();
|
|
3305
|
+
if (object.encoding != null) {
|
|
3306
|
+
if (typeof object.encoding !== "object")
|
|
3307
|
+
throw TypeError(".asset.Video.encoding: object expected");
|
|
3308
|
+
message.encoding = $root.asset.Encoding.fromObject(object.encoding);
|
|
3309
|
+
}
|
|
3310
|
+
switch (object.language) {
|
|
3311
|
+
case "LANGUAGE_UNKNOWN":
|
|
3312
|
+
case 0:
|
|
3313
|
+
message.language = 0;
|
|
3314
|
+
break;
|
|
3315
|
+
case "LANGUAGE_EN":
|
|
3316
|
+
case 1:
|
|
3317
|
+
message.language = 1;
|
|
3318
|
+
break;
|
|
3319
|
+
case "LANGUAGE_DE":
|
|
3320
|
+
case 2:
|
|
3321
|
+
message.language = 2;
|
|
3322
|
+
break;
|
|
3323
|
+
case "LANGUAGE_FR":
|
|
3324
|
+
case 3:
|
|
3325
|
+
message.language = 3;
|
|
3326
|
+
break;
|
|
3327
|
+
case "LANGUAGE_ES":
|
|
3328
|
+
case 4:
|
|
3329
|
+
message.language = 4;
|
|
3330
|
+
break;
|
|
3331
|
+
case "LANGUAGE_PT":
|
|
3332
|
+
case 5:
|
|
3333
|
+
message.language = 5;
|
|
3334
|
+
break;
|
|
3335
|
+
}
|
|
3336
|
+
return message;
|
|
3337
|
+
};
|
|
3338
|
+
|
|
3339
|
+
/**
|
|
3340
|
+
* Creates a plain object from a Video message. Also converts values to other types if specified.
|
|
3341
|
+
* @function toObject
|
|
3342
|
+
* @memberof asset.Video
|
|
3343
|
+
* @static
|
|
3344
|
+
* @param {asset.Video} message Video
|
|
3345
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3346
|
+
* @returns {Object.<string,*>} Plain object
|
|
3347
|
+
*/
|
|
3348
|
+
Video.toObject = function toObject(message, options) {
|
|
3349
|
+
if (!options)
|
|
3350
|
+
options = {};
|
|
3351
|
+
var object = {};
|
|
3352
|
+
if (options.defaults) {
|
|
3353
|
+
object.encoding = null;
|
|
3354
|
+
object.language = options.enums === String ? "LANGUAGE_UNKNOWN" : 0;
|
|
3355
|
+
}
|
|
3356
|
+
if (message.encoding != null && message.hasOwnProperty("encoding"))
|
|
3357
|
+
object.encoding = $root.asset.Encoding.toObject(message.encoding, options);
|
|
3358
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
3359
|
+
object.language = options.enums === String ? $root.asset.Language[message.language] : message.language;
|
|
3360
|
+
return object;
|
|
3361
|
+
};
|
|
3362
|
+
|
|
3363
|
+
/**
|
|
3364
|
+
* Converts this Video to JSON.
|
|
3365
|
+
* @function toJSON
|
|
3366
|
+
* @memberof asset.Video
|
|
3367
|
+
* @instance
|
|
3368
|
+
* @returns {Object.<string,*>} JSON object
|
|
3369
|
+
*/
|
|
3370
|
+
Video.prototype.toJSON = function toJSON() {
|
|
3371
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3372
|
+
};
|
|
3373
|
+
|
|
3374
|
+
return Video;
|
|
3375
|
+
})();
|
|
3376
|
+
|
|
3377
|
+
asset.Audio = (function() {
|
|
3378
|
+
|
|
3379
|
+
/**
|
|
3380
|
+
* Properties of an Audio.
|
|
3381
|
+
* @memberof asset
|
|
3382
|
+
* @interface IAudio
|
|
3383
|
+
* @property {asset.IEncoding|null} [encoding] Audio encoding
|
|
3384
|
+
* @property {asset.Language|null} [language] Audio language
|
|
3385
|
+
* @property {asset.INarrator|null} [narrator] Audio narrator
|
|
3386
|
+
* @property {number|null} [displayDurationMins] Audio displayDurationMins
|
|
3387
|
+
*/
|
|
3388
|
+
|
|
3389
|
+
/**
|
|
3390
|
+
* Constructs a new Audio.
|
|
3391
|
+
* @memberof asset
|
|
3392
|
+
* @classdesc Represents an Audio.
|
|
3393
|
+
* @implements IAudio
|
|
3394
|
+
* @constructor
|
|
3395
|
+
* @param {asset.IAudio=} [properties] Properties to set
|
|
3396
|
+
*/
|
|
3397
|
+
function Audio(properties) {
|
|
3398
|
+
if (properties)
|
|
3399
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3400
|
+
if (properties[keys[i]] != null)
|
|
3401
|
+
this[keys[i]] = properties[keys[i]];
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* Audio encoding.
|
|
3406
|
+
* @member {asset.IEncoding|null|undefined} encoding
|
|
3407
|
+
* @memberof asset.Audio
|
|
3408
|
+
* @instance
|
|
3409
|
+
*/
|
|
3410
|
+
Audio.prototype.encoding = null;
|
|
3411
|
+
|
|
3412
|
+
/**
|
|
3413
|
+
* Audio language.
|
|
3414
|
+
* @member {asset.Language} language
|
|
3415
|
+
* @memberof asset.Audio
|
|
3416
|
+
* @instance
|
|
3417
|
+
*/
|
|
3418
|
+
Audio.prototype.language = 0;
|
|
3419
|
+
|
|
3420
|
+
/**
|
|
3421
|
+
* Audio narrator.
|
|
3422
|
+
* @member {asset.INarrator|null|undefined} narrator
|
|
3423
|
+
* @memberof asset.Audio
|
|
3424
|
+
* @instance
|
|
3425
|
+
*/
|
|
3426
|
+
Audio.prototype.narrator = null;
|
|
3427
|
+
|
|
3428
|
+
/**
|
|
3429
|
+
* Audio displayDurationMins.
|
|
3430
|
+
* @member {number} displayDurationMins
|
|
3431
|
+
* @memberof asset.Audio
|
|
3432
|
+
* @instance
|
|
3433
|
+
*/
|
|
3434
|
+
Audio.prototype.displayDurationMins = 0;
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
* Creates a new Audio instance using the specified properties.
|
|
3438
|
+
* @function create
|
|
3439
|
+
* @memberof asset.Audio
|
|
3440
|
+
* @static
|
|
3441
|
+
* @param {asset.IAudio=} [properties] Properties to set
|
|
3442
|
+
* @returns {asset.Audio} Audio instance
|
|
3443
|
+
*/
|
|
3444
|
+
Audio.create = function create(properties) {
|
|
3445
|
+
return new Audio(properties);
|
|
3446
|
+
};
|
|
3447
|
+
|
|
3448
|
+
/**
|
|
3449
|
+
* Encodes the specified Audio message. Does not implicitly {@link asset.Audio.verify|verify} messages.
|
|
3450
|
+
* @function encode
|
|
3451
|
+
* @memberof asset.Audio
|
|
3452
|
+
* @static
|
|
3453
|
+
* @param {asset.IAudio} message Audio message or plain object to encode
|
|
3454
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3455
|
+
* @returns {$protobuf.Writer} Writer
|
|
3456
|
+
*/
|
|
3457
|
+
Audio.encode = function encode(message, writer) {
|
|
3458
|
+
if (!writer)
|
|
3459
|
+
writer = $Writer.create();
|
|
3460
|
+
if (message.encoding != null && message.hasOwnProperty("encoding"))
|
|
3461
|
+
$root.asset.Encoding.encode(message.encoding, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
3462
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
3463
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.language);
|
|
3464
|
+
if (message.narrator != null && message.hasOwnProperty("narrator"))
|
|
3465
|
+
$root.asset.Narrator.encode(message.narrator, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
3466
|
+
if (message.displayDurationMins != null && message.hasOwnProperty("displayDurationMins"))
|
|
3467
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.displayDurationMins);
|
|
3468
|
+
return writer;
|
|
3469
|
+
};
|
|
3470
|
+
|
|
3471
|
+
/**
|
|
3472
|
+
* Encodes the specified Audio message, length delimited. Does not implicitly {@link asset.Audio.verify|verify} messages.
|
|
3473
|
+
* @function encodeDelimited
|
|
3474
|
+
* @memberof asset.Audio
|
|
3475
|
+
* @static
|
|
3476
|
+
* @param {asset.IAudio} message Audio message or plain object to encode
|
|
3477
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3478
|
+
* @returns {$protobuf.Writer} Writer
|
|
3479
|
+
*/
|
|
3480
|
+
Audio.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3481
|
+
return this.encode(message, writer).ldelim();
|
|
3482
|
+
};
|
|
3483
|
+
|
|
3484
|
+
/**
|
|
3485
|
+
* Decodes an Audio message from the specified reader or buffer.
|
|
3486
|
+
* @function decode
|
|
3487
|
+
* @memberof asset.Audio
|
|
3488
|
+
* @static
|
|
3489
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3490
|
+
* @param {number} [length] Message length if known beforehand
|
|
3491
|
+
* @returns {asset.Audio} Audio
|
|
3492
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3493
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3494
|
+
*/
|
|
3495
|
+
Audio.decode = function decode(reader, length) {
|
|
3496
|
+
if (!(reader instanceof $Reader))
|
|
3497
|
+
reader = $Reader.create(reader);
|
|
3498
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.asset.Audio();
|
|
3499
|
+
while (reader.pos < end) {
|
|
3500
|
+
var tag = reader.uint32();
|
|
3501
|
+
switch (tag >>> 3) {
|
|
3502
|
+
case 1:
|
|
3503
|
+
message.encoding = $root.asset.Encoding.decode(reader, reader.uint32());
|
|
3504
|
+
break;
|
|
3505
|
+
case 2:
|
|
3506
|
+
message.language = reader.int32();
|
|
3507
|
+
break;
|
|
3508
|
+
case 3:
|
|
3509
|
+
message.narrator = $root.asset.Narrator.decode(reader, reader.uint32());
|
|
3510
|
+
break;
|
|
3511
|
+
case 4:
|
|
3512
|
+
message.displayDurationMins = reader.int32();
|
|
3513
|
+
break;
|
|
3514
|
+
default:
|
|
3515
|
+
reader.skipType(tag & 7);
|
|
3516
|
+
break;
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3519
|
+
return message;
|
|
3520
|
+
};
|
|
3521
|
+
|
|
3522
|
+
/**
|
|
3523
|
+
* Decodes an Audio message from the specified reader or buffer, length delimited.
|
|
3524
|
+
* @function decodeDelimited
|
|
3525
|
+
* @memberof asset.Audio
|
|
3526
|
+
* @static
|
|
3527
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3528
|
+
* @returns {asset.Audio} Audio
|
|
3529
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3530
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3531
|
+
*/
|
|
3532
|
+
Audio.decodeDelimited = function decodeDelimited(reader) {
|
|
3533
|
+
if (!(reader instanceof $Reader))
|
|
3534
|
+
reader = new $Reader(reader);
|
|
3535
|
+
return this.decode(reader, reader.uint32());
|
|
3536
|
+
};
|
|
3537
|
+
|
|
3538
|
+
/**
|
|
3539
|
+
* Verifies an Audio message.
|
|
3540
|
+
* @function verify
|
|
3541
|
+
* @memberof asset.Audio
|
|
3542
|
+
* @static
|
|
3543
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3544
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3545
|
+
*/
|
|
3546
|
+
Audio.verify = function verify(message) {
|
|
3547
|
+
if (typeof message !== "object" || message === null)
|
|
3548
|
+
return "object expected";
|
|
3549
|
+
if (message.encoding != null && message.hasOwnProperty("encoding")) {
|
|
3550
|
+
var error = $root.asset.Encoding.verify(message.encoding);
|
|
3551
|
+
if (error)
|
|
3552
|
+
return "encoding." + error;
|
|
3553
|
+
}
|
|
3554
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
3555
|
+
switch (message.language) {
|
|
3556
|
+
default:
|
|
3557
|
+
return "language: enum value expected";
|
|
3558
|
+
case 0:
|
|
3559
|
+
case 1:
|
|
3560
|
+
case 2:
|
|
3561
|
+
case 3:
|
|
3562
|
+
case 4:
|
|
3563
|
+
case 5:
|
|
3564
|
+
break;
|
|
3565
|
+
}
|
|
3566
|
+
if (message.narrator != null && message.hasOwnProperty("narrator")) {
|
|
3567
|
+
var error = $root.asset.Narrator.verify(message.narrator);
|
|
3568
|
+
if (error)
|
|
3569
|
+
return "narrator." + error;
|
|
3570
|
+
}
|
|
3571
|
+
if (message.displayDurationMins != null && message.hasOwnProperty("displayDurationMins"))
|
|
3572
|
+
if (!$util.isInteger(message.displayDurationMins))
|
|
3573
|
+
return "displayDurationMins: integer expected";
|
|
3574
|
+
return null;
|
|
3575
|
+
};
|
|
3576
|
+
|
|
3577
|
+
/**
|
|
3578
|
+
* Creates an Audio message from a plain object. Also converts values to their respective internal types.
|
|
3579
|
+
* @function fromObject
|
|
3580
|
+
* @memberof asset.Audio
|
|
3581
|
+
* @static
|
|
3582
|
+
* @param {Object.<string,*>} object Plain object
|
|
3583
|
+
* @returns {asset.Audio} Audio
|
|
3584
|
+
*/
|
|
3585
|
+
Audio.fromObject = function fromObject(object) {
|
|
3586
|
+
if (object instanceof $root.asset.Audio)
|
|
3587
|
+
return object;
|
|
3588
|
+
var message = new $root.asset.Audio();
|
|
3589
|
+
if (object.encoding != null) {
|
|
3590
|
+
if (typeof object.encoding !== "object")
|
|
3591
|
+
throw TypeError(".asset.Audio.encoding: object expected");
|
|
3592
|
+
message.encoding = $root.asset.Encoding.fromObject(object.encoding);
|
|
3593
|
+
}
|
|
3594
|
+
switch (object.language) {
|
|
3595
|
+
case "LANGUAGE_UNKNOWN":
|
|
3596
|
+
case 0:
|
|
3597
|
+
message.language = 0;
|
|
3598
|
+
break;
|
|
3599
|
+
case "LANGUAGE_EN":
|
|
3600
|
+
case 1:
|
|
3601
|
+
message.language = 1;
|
|
3602
|
+
break;
|
|
3603
|
+
case "LANGUAGE_DE":
|
|
3604
|
+
case 2:
|
|
3605
|
+
message.language = 2;
|
|
3606
|
+
break;
|
|
3607
|
+
case "LANGUAGE_FR":
|
|
3608
|
+
case 3:
|
|
3609
|
+
message.language = 3;
|
|
3610
|
+
break;
|
|
3611
|
+
case "LANGUAGE_ES":
|
|
3612
|
+
case 4:
|
|
3613
|
+
message.language = 4;
|
|
3614
|
+
break;
|
|
3615
|
+
case "LANGUAGE_PT":
|
|
3616
|
+
case 5:
|
|
3617
|
+
message.language = 5;
|
|
3618
|
+
break;
|
|
3619
|
+
}
|
|
3620
|
+
if (object.narrator != null) {
|
|
3621
|
+
if (typeof object.narrator !== "object")
|
|
3622
|
+
throw TypeError(".asset.Audio.narrator: object expected");
|
|
3623
|
+
message.narrator = $root.asset.Narrator.fromObject(object.narrator);
|
|
3624
|
+
}
|
|
3625
|
+
if (object.displayDurationMins != null)
|
|
3626
|
+
message.displayDurationMins = object.displayDurationMins | 0;
|
|
3627
|
+
return message;
|
|
3628
|
+
};
|
|
3629
|
+
|
|
3630
|
+
/**
|
|
3631
|
+
* Creates a plain object from an Audio message. Also converts values to other types if specified.
|
|
3632
|
+
* @function toObject
|
|
3633
|
+
* @memberof asset.Audio
|
|
3634
|
+
* @static
|
|
3635
|
+
* @param {asset.Audio} message Audio
|
|
3636
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3637
|
+
* @returns {Object.<string,*>} Plain object
|
|
3638
|
+
*/
|
|
3639
|
+
Audio.toObject = function toObject(message, options) {
|
|
3640
|
+
if (!options)
|
|
3641
|
+
options = {};
|
|
3642
|
+
var object = {};
|
|
3643
|
+
if (options.defaults) {
|
|
3644
|
+
object.encoding = null;
|
|
3645
|
+
object.language = options.enums === String ? "LANGUAGE_UNKNOWN" : 0;
|
|
3646
|
+
object.narrator = null;
|
|
3647
|
+
object.displayDurationMins = 0;
|
|
3648
|
+
}
|
|
3649
|
+
if (message.encoding != null && message.hasOwnProperty("encoding"))
|
|
3650
|
+
object.encoding = $root.asset.Encoding.toObject(message.encoding, options);
|
|
3651
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
3652
|
+
object.language = options.enums === String ? $root.asset.Language[message.language] : message.language;
|
|
3653
|
+
if (message.narrator != null && message.hasOwnProperty("narrator"))
|
|
3654
|
+
object.narrator = $root.asset.Narrator.toObject(message.narrator, options);
|
|
3655
|
+
if (message.displayDurationMins != null && message.hasOwnProperty("displayDurationMins"))
|
|
3656
|
+
object.displayDurationMins = message.displayDurationMins;
|
|
3657
|
+
return object;
|
|
3658
|
+
};
|
|
3659
|
+
|
|
3660
|
+
/**
|
|
3661
|
+
* Converts this Audio to JSON.
|
|
3662
|
+
* @function toJSON
|
|
3663
|
+
* @memberof asset.Audio
|
|
3664
|
+
* @instance
|
|
3665
|
+
* @returns {Object.<string,*>} JSON object
|
|
3666
|
+
*/
|
|
3667
|
+
Audio.prototype.toJSON = function toJSON() {
|
|
3668
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3669
|
+
};
|
|
3670
|
+
|
|
3671
|
+
return Audio;
|
|
3672
|
+
})();
|
|
3673
|
+
|
|
3674
|
+
asset.Image = (function() {
|
|
3675
|
+
|
|
3676
|
+
/**
|
|
3677
|
+
* Properties of an Image.
|
|
3678
|
+
* @memberof asset
|
|
3679
|
+
* @interface IImage
|
|
3680
|
+
* @property {string|null} [path] Image path
|
|
3681
|
+
* @property {string|null} [aspectRatio] Image aspectRatio
|
|
3682
|
+
*/
|
|
3683
|
+
|
|
3684
|
+
/**
|
|
3685
|
+
* Constructs a new Image.
|
|
3686
|
+
* @memberof asset
|
|
3687
|
+
* @classdesc Represents an Image.
|
|
3688
|
+
* @implements IImage
|
|
3689
|
+
* @constructor
|
|
3690
|
+
* @param {asset.IImage=} [properties] Properties to set
|
|
3691
|
+
*/
|
|
3692
|
+
function Image(properties) {
|
|
3693
|
+
if (properties)
|
|
3694
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3695
|
+
if (properties[keys[i]] != null)
|
|
3696
|
+
this[keys[i]] = properties[keys[i]];
|
|
3697
|
+
}
|
|
3698
|
+
|
|
3699
|
+
/**
|
|
3700
|
+
* Image path.
|
|
3701
|
+
* @member {string} path
|
|
3702
|
+
* @memberof asset.Image
|
|
3703
|
+
* @instance
|
|
3704
|
+
*/
|
|
3705
|
+
Image.prototype.path = "";
|
|
3706
|
+
|
|
3707
|
+
/**
|
|
3708
|
+
* Image aspectRatio.
|
|
3709
|
+
* @member {string} aspectRatio
|
|
3710
|
+
* @memberof asset.Image
|
|
3711
|
+
* @instance
|
|
3712
|
+
*/
|
|
3713
|
+
Image.prototype.aspectRatio = "";
|
|
3714
|
+
|
|
3715
|
+
/**
|
|
3716
|
+
* Creates a new Image instance using the specified properties.
|
|
3717
|
+
* @function create
|
|
3718
|
+
* @memberof asset.Image
|
|
3719
|
+
* @static
|
|
3720
|
+
* @param {asset.IImage=} [properties] Properties to set
|
|
3721
|
+
* @returns {asset.Image} Image instance
|
|
3722
|
+
*/
|
|
3723
|
+
Image.create = function create(properties) {
|
|
3724
|
+
return new Image(properties);
|
|
3725
|
+
};
|
|
3726
|
+
|
|
3727
|
+
/**
|
|
3728
|
+
* Encodes the specified Image message. Does not implicitly {@link asset.Image.verify|verify} messages.
|
|
3729
|
+
* @function encode
|
|
3730
|
+
* @memberof asset.Image
|
|
3731
|
+
* @static
|
|
3732
|
+
* @param {asset.IImage} message Image message or plain object to encode
|
|
3733
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3734
|
+
* @returns {$protobuf.Writer} Writer
|
|
3735
|
+
*/
|
|
3736
|
+
Image.encode = function encode(message, writer) {
|
|
3737
|
+
if (!writer)
|
|
3738
|
+
writer = $Writer.create();
|
|
3739
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
3740
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
|
|
3741
|
+
if (message.aspectRatio != null && message.hasOwnProperty("aspectRatio"))
|
|
3742
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.aspectRatio);
|
|
3743
|
+
return writer;
|
|
3744
|
+
};
|
|
3745
|
+
|
|
3746
|
+
/**
|
|
3747
|
+
* Encodes the specified Image message, length delimited. Does not implicitly {@link asset.Image.verify|verify} messages.
|
|
3748
|
+
* @function encodeDelimited
|
|
3749
|
+
* @memberof asset.Image
|
|
3750
|
+
* @static
|
|
3751
|
+
* @param {asset.IImage} message Image message or plain object to encode
|
|
3752
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3753
|
+
* @returns {$protobuf.Writer} Writer
|
|
3754
|
+
*/
|
|
3755
|
+
Image.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3756
|
+
return this.encode(message, writer).ldelim();
|
|
3757
|
+
};
|
|
3758
|
+
|
|
3759
|
+
/**
|
|
3760
|
+
* Decodes an Image message from the specified reader or buffer.
|
|
3761
|
+
* @function decode
|
|
3762
|
+
* @memberof asset.Image
|
|
3763
|
+
* @static
|
|
3764
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3765
|
+
* @param {number} [length] Message length if known beforehand
|
|
3766
|
+
* @returns {asset.Image} Image
|
|
3767
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3768
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3769
|
+
*/
|
|
3770
|
+
Image.decode = function decode(reader, length) {
|
|
3771
|
+
if (!(reader instanceof $Reader))
|
|
3772
|
+
reader = $Reader.create(reader);
|
|
3773
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.asset.Image();
|
|
3774
|
+
while (reader.pos < end) {
|
|
3775
|
+
var tag = reader.uint32();
|
|
3776
|
+
switch (tag >>> 3) {
|
|
3777
|
+
case 1:
|
|
3778
|
+
message.path = reader.string();
|
|
3779
|
+
break;
|
|
3780
|
+
case 2:
|
|
3781
|
+
message.aspectRatio = reader.string();
|
|
3782
|
+
break;
|
|
3783
|
+
default:
|
|
3784
|
+
reader.skipType(tag & 7);
|
|
3785
|
+
break;
|
|
3786
|
+
}
|
|
3787
|
+
}
|
|
3788
|
+
return message;
|
|
3789
|
+
};
|
|
3790
|
+
|
|
3791
|
+
/**
|
|
3792
|
+
* Decodes an Image message from the specified reader or buffer, length delimited.
|
|
3793
|
+
* @function decodeDelimited
|
|
3794
|
+
* @memberof asset.Image
|
|
3795
|
+
* @static
|
|
3796
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3797
|
+
* @returns {asset.Image} Image
|
|
3798
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3799
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3800
|
+
*/
|
|
3801
|
+
Image.decodeDelimited = function decodeDelimited(reader) {
|
|
3802
|
+
if (!(reader instanceof $Reader))
|
|
3803
|
+
reader = new $Reader(reader);
|
|
3804
|
+
return this.decode(reader, reader.uint32());
|
|
3805
|
+
};
|
|
3806
|
+
|
|
3807
|
+
/**
|
|
3808
|
+
* Verifies an Image message.
|
|
3809
|
+
* @function verify
|
|
3810
|
+
* @memberof asset.Image
|
|
3811
|
+
* @static
|
|
3812
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
3813
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3814
|
+
*/
|
|
3815
|
+
Image.verify = function verify(message) {
|
|
3816
|
+
if (typeof message !== "object" || message === null)
|
|
3817
|
+
return "object expected";
|
|
3818
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
3819
|
+
if (!$util.isString(message.path))
|
|
3820
|
+
return "path: string expected";
|
|
3821
|
+
if (message.aspectRatio != null && message.hasOwnProperty("aspectRatio"))
|
|
3822
|
+
if (!$util.isString(message.aspectRatio))
|
|
3823
|
+
return "aspectRatio: string expected";
|
|
3824
|
+
return null;
|
|
3825
|
+
};
|
|
3826
|
+
|
|
3827
|
+
/**
|
|
3828
|
+
* Creates an Image message from a plain object. Also converts values to their respective internal types.
|
|
3829
|
+
* @function fromObject
|
|
3830
|
+
* @memberof asset.Image
|
|
3831
|
+
* @static
|
|
3832
|
+
* @param {Object.<string,*>} object Plain object
|
|
3833
|
+
* @returns {asset.Image} Image
|
|
3834
|
+
*/
|
|
3835
|
+
Image.fromObject = function fromObject(object) {
|
|
3836
|
+
if (object instanceof $root.asset.Image)
|
|
3837
|
+
return object;
|
|
3838
|
+
var message = new $root.asset.Image();
|
|
3839
|
+
if (object.path != null)
|
|
3840
|
+
message.path = String(object.path);
|
|
3841
|
+
if (object.aspectRatio != null)
|
|
3842
|
+
message.aspectRatio = String(object.aspectRatio);
|
|
3843
|
+
return message;
|
|
3844
|
+
};
|
|
3845
|
+
|
|
3846
|
+
/**
|
|
3847
|
+
* Creates a plain object from an Image message. Also converts values to other types if specified.
|
|
3848
|
+
* @function toObject
|
|
3849
|
+
* @memberof asset.Image
|
|
3850
|
+
* @static
|
|
3851
|
+
* @param {asset.Image} message Image
|
|
3852
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3853
|
+
* @returns {Object.<string,*>} Plain object
|
|
3854
|
+
*/
|
|
3855
|
+
Image.toObject = function toObject(message, options) {
|
|
3856
|
+
if (!options)
|
|
3857
|
+
options = {};
|
|
3858
|
+
var object = {};
|
|
3859
|
+
if (options.defaults) {
|
|
3860
|
+
object.path = "";
|
|
3861
|
+
object.aspectRatio = "";
|
|
3862
|
+
}
|
|
3863
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
3864
|
+
object.path = message.path;
|
|
3865
|
+
if (message.aspectRatio != null && message.hasOwnProperty("aspectRatio"))
|
|
3866
|
+
object.aspectRatio = message.aspectRatio;
|
|
3867
|
+
return object;
|
|
3868
|
+
};
|
|
3869
|
+
|
|
3870
|
+
/**
|
|
3871
|
+
* Converts this Image to JSON.
|
|
3872
|
+
* @function toJSON
|
|
3873
|
+
* @memberof asset.Image
|
|
3874
|
+
* @instance
|
|
3875
|
+
* @returns {Object.<string,*>} JSON object
|
|
3876
|
+
*/
|
|
3877
|
+
Image.prototype.toJSON = function toJSON() {
|
|
3878
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3879
|
+
};
|
|
3880
|
+
|
|
3881
|
+
return Image;
|
|
3882
|
+
})();
|
|
3883
|
+
|
|
3884
|
+
asset.Narrator = (function() {
|
|
3885
|
+
|
|
3886
|
+
/**
|
|
3887
|
+
* Properties of a Narrator.
|
|
3888
|
+
* @memberof asset
|
|
3889
|
+
* @interface INarrator
|
|
3890
|
+
* @property {string|null} [id] Narrator id
|
|
3891
|
+
* @property {string|null} [name] Narrator name
|
|
3892
|
+
* @property {asset.Gender|null} [gender] Narrator gender
|
|
3893
|
+
*/
|
|
3894
|
+
|
|
3895
|
+
/**
|
|
3896
|
+
* Constructs a new Narrator.
|
|
3897
|
+
* @memberof asset
|
|
3898
|
+
* @classdesc Represents a Narrator.
|
|
3899
|
+
* @implements INarrator
|
|
3900
|
+
* @constructor
|
|
3901
|
+
* @param {asset.INarrator=} [properties] Properties to set
|
|
3902
|
+
*/
|
|
3903
|
+
function Narrator(properties) {
|
|
3904
|
+
if (properties)
|
|
3905
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3906
|
+
if (properties[keys[i]] != null)
|
|
3907
|
+
this[keys[i]] = properties[keys[i]];
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
/**
|
|
3911
|
+
* Narrator id.
|
|
3912
|
+
* @member {string} id
|
|
3913
|
+
* @memberof asset.Narrator
|
|
3914
|
+
* @instance
|
|
3915
|
+
*/
|
|
3916
|
+
Narrator.prototype.id = "";
|
|
3917
|
+
|
|
3918
|
+
/**
|
|
3919
|
+
* Narrator name.
|
|
3920
|
+
* @member {string} name
|
|
3921
|
+
* @memberof asset.Narrator
|
|
3922
|
+
* @instance
|
|
3923
|
+
*/
|
|
3924
|
+
Narrator.prototype.name = "";
|
|
3925
|
+
|
|
3926
|
+
/**
|
|
3927
|
+
* Narrator gender.
|
|
3928
|
+
* @member {asset.Gender} gender
|
|
3929
|
+
* @memberof asset.Narrator
|
|
3930
|
+
* @instance
|
|
3931
|
+
*/
|
|
3932
|
+
Narrator.prototype.gender = 0;
|
|
3933
|
+
|
|
3934
|
+
/**
|
|
3935
|
+
* Creates a new Narrator instance using the specified properties.
|
|
3936
|
+
* @function create
|
|
3937
|
+
* @memberof asset.Narrator
|
|
3938
|
+
* @static
|
|
3939
|
+
* @param {asset.INarrator=} [properties] Properties to set
|
|
3940
|
+
* @returns {asset.Narrator} Narrator instance
|
|
3941
|
+
*/
|
|
3942
|
+
Narrator.create = function create(properties) {
|
|
3943
|
+
return new Narrator(properties);
|
|
3944
|
+
};
|
|
3945
|
+
|
|
3946
|
+
/**
|
|
3947
|
+
* Encodes the specified Narrator message. Does not implicitly {@link asset.Narrator.verify|verify} messages.
|
|
3948
|
+
* @function encode
|
|
3949
|
+
* @memberof asset.Narrator
|
|
3950
|
+
* @static
|
|
3951
|
+
* @param {asset.INarrator} message Narrator message or plain object to encode
|
|
3952
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3953
|
+
* @returns {$protobuf.Writer} Writer
|
|
3954
|
+
*/
|
|
3955
|
+
Narrator.encode = function encode(message, writer) {
|
|
3956
|
+
if (!writer)
|
|
3957
|
+
writer = $Writer.create();
|
|
3958
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
3959
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
3960
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
3961
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
3962
|
+
if (message.gender != null && message.hasOwnProperty("gender"))
|
|
3963
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.gender);
|
|
3964
|
+
return writer;
|
|
3965
|
+
};
|
|
3966
|
+
|
|
3967
|
+
/**
|
|
3968
|
+
* Encodes the specified Narrator message, length delimited. Does not implicitly {@link asset.Narrator.verify|verify} messages.
|
|
3969
|
+
* @function encodeDelimited
|
|
3970
|
+
* @memberof asset.Narrator
|
|
3971
|
+
* @static
|
|
3972
|
+
* @param {asset.INarrator} message Narrator message or plain object to encode
|
|
3973
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3974
|
+
* @returns {$protobuf.Writer} Writer
|
|
3975
|
+
*/
|
|
3976
|
+
Narrator.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3977
|
+
return this.encode(message, writer).ldelim();
|
|
3978
|
+
};
|
|
3979
|
+
|
|
3980
|
+
/**
|
|
3981
|
+
* Decodes a Narrator message from the specified reader or buffer.
|
|
3982
|
+
* @function decode
|
|
3983
|
+
* @memberof asset.Narrator
|
|
3984
|
+
* @static
|
|
3985
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3986
|
+
* @param {number} [length] Message length if known beforehand
|
|
3987
|
+
* @returns {asset.Narrator} Narrator
|
|
3988
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3989
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3990
|
+
*/
|
|
3991
|
+
Narrator.decode = function decode(reader, length) {
|
|
3992
|
+
if (!(reader instanceof $Reader))
|
|
3993
|
+
reader = $Reader.create(reader);
|
|
3994
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.asset.Narrator();
|
|
3995
|
+
while (reader.pos < end) {
|
|
3996
|
+
var tag = reader.uint32();
|
|
3997
|
+
switch (tag >>> 3) {
|
|
3998
|
+
case 1:
|
|
3999
|
+
message.id = reader.string();
|
|
4000
|
+
break;
|
|
4001
|
+
case 2:
|
|
4002
|
+
message.name = reader.string();
|
|
4003
|
+
break;
|
|
4004
|
+
case 3:
|
|
4005
|
+
message.gender = reader.int32();
|
|
4006
|
+
break;
|
|
4007
|
+
default:
|
|
4008
|
+
reader.skipType(tag & 7);
|
|
4009
|
+
break;
|
|
4010
|
+
}
|
|
4011
|
+
}
|
|
4012
|
+
return message;
|
|
4013
|
+
};
|
|
4014
|
+
|
|
4015
|
+
/**
|
|
4016
|
+
* Decodes a Narrator message from the specified reader or buffer, length delimited.
|
|
4017
|
+
* @function decodeDelimited
|
|
4018
|
+
* @memberof asset.Narrator
|
|
4019
|
+
* @static
|
|
4020
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4021
|
+
* @returns {asset.Narrator} Narrator
|
|
4022
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4023
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4024
|
+
*/
|
|
4025
|
+
Narrator.decodeDelimited = function decodeDelimited(reader) {
|
|
4026
|
+
if (!(reader instanceof $Reader))
|
|
4027
|
+
reader = new $Reader(reader);
|
|
4028
|
+
return this.decode(reader, reader.uint32());
|
|
4029
|
+
};
|
|
4030
|
+
|
|
4031
|
+
/**
|
|
4032
|
+
* Verifies a Narrator message.
|
|
4033
|
+
* @function verify
|
|
4034
|
+
* @memberof asset.Narrator
|
|
4035
|
+
* @static
|
|
4036
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4037
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4038
|
+
*/
|
|
4039
|
+
Narrator.verify = function verify(message) {
|
|
4040
|
+
if (typeof message !== "object" || message === null)
|
|
4041
|
+
return "object expected";
|
|
4042
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
4043
|
+
if (!$util.isString(message.id))
|
|
4044
|
+
return "id: string expected";
|
|
4045
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
4046
|
+
if (!$util.isString(message.name))
|
|
4047
|
+
return "name: string expected";
|
|
4048
|
+
if (message.gender != null && message.hasOwnProperty("gender"))
|
|
4049
|
+
switch (message.gender) {
|
|
4050
|
+
default:
|
|
4051
|
+
return "gender: enum value expected";
|
|
4052
|
+
case 0:
|
|
4053
|
+
case 1:
|
|
4054
|
+
case 2:
|
|
4055
|
+
break;
|
|
4056
|
+
}
|
|
4057
|
+
return null;
|
|
4058
|
+
};
|
|
4059
|
+
|
|
4060
|
+
/**
|
|
4061
|
+
* Creates a Narrator message from a plain object. Also converts values to their respective internal types.
|
|
4062
|
+
* @function fromObject
|
|
4063
|
+
* @memberof asset.Narrator
|
|
4064
|
+
* @static
|
|
4065
|
+
* @param {Object.<string,*>} object Plain object
|
|
4066
|
+
* @returns {asset.Narrator} Narrator
|
|
4067
|
+
*/
|
|
4068
|
+
Narrator.fromObject = function fromObject(object) {
|
|
4069
|
+
if (object instanceof $root.asset.Narrator)
|
|
4070
|
+
return object;
|
|
4071
|
+
var message = new $root.asset.Narrator();
|
|
4072
|
+
if (object.id != null)
|
|
4073
|
+
message.id = String(object.id);
|
|
4074
|
+
if (object.name != null)
|
|
4075
|
+
message.name = String(object.name);
|
|
4076
|
+
switch (object.gender) {
|
|
4077
|
+
case "GENDER_UNKNOWN":
|
|
4078
|
+
case 0:
|
|
4079
|
+
message.gender = 0;
|
|
4080
|
+
break;
|
|
4081
|
+
case "GENDER_MALE":
|
|
4082
|
+
case 1:
|
|
4083
|
+
message.gender = 1;
|
|
4084
|
+
break;
|
|
4085
|
+
case "GENDER_FEMALE":
|
|
4086
|
+
case 2:
|
|
4087
|
+
message.gender = 2;
|
|
4088
|
+
break;
|
|
4089
|
+
}
|
|
4090
|
+
return message;
|
|
4091
|
+
};
|
|
4092
|
+
|
|
4093
|
+
/**
|
|
4094
|
+
* Creates a plain object from a Narrator message. Also converts values to other types if specified.
|
|
4095
|
+
* @function toObject
|
|
4096
|
+
* @memberof asset.Narrator
|
|
4097
|
+
* @static
|
|
4098
|
+
* @param {asset.Narrator} message Narrator
|
|
4099
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4100
|
+
* @returns {Object.<string,*>} Plain object
|
|
4101
|
+
*/
|
|
4102
|
+
Narrator.toObject = function toObject(message, options) {
|
|
4103
|
+
if (!options)
|
|
4104
|
+
options = {};
|
|
4105
|
+
var object = {};
|
|
4106
|
+
if (options.defaults) {
|
|
4107
|
+
object.id = "";
|
|
4108
|
+
object.name = "";
|
|
4109
|
+
object.gender = options.enums === String ? "GENDER_UNKNOWN" : 0;
|
|
4110
|
+
}
|
|
4111
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
4112
|
+
object.id = message.id;
|
|
4113
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
4114
|
+
object.name = message.name;
|
|
4115
|
+
if (message.gender != null && message.hasOwnProperty("gender"))
|
|
4116
|
+
object.gender = options.enums === String ? $root.asset.Gender[message.gender] : message.gender;
|
|
4117
|
+
return object;
|
|
4118
|
+
};
|
|
4119
|
+
|
|
4120
|
+
/**
|
|
4121
|
+
* Converts this Narrator to JSON.
|
|
4122
|
+
* @function toJSON
|
|
4123
|
+
* @memberof asset.Narrator
|
|
4124
|
+
* @instance
|
|
4125
|
+
* @returns {Object.<string,*>} JSON object
|
|
4126
|
+
*/
|
|
4127
|
+
Narrator.prototype.toJSON = function toJSON() {
|
|
4128
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4129
|
+
};
|
|
4130
|
+
|
|
4131
|
+
return Narrator;
|
|
4132
|
+
})();
|
|
4133
|
+
|
|
4134
|
+
asset.Encoding = (function() {
|
|
4135
|
+
|
|
4136
|
+
/**
|
|
4137
|
+
* Properties of an Encoding.
|
|
4138
|
+
* @memberof asset
|
|
4139
|
+
* @interface IEncoding
|
|
4140
|
+
* @property {string|null} [path] Encoding path
|
|
4141
|
+
* @property {string|null} [audioCodec] Encoding audioCodec
|
|
4142
|
+
* @property {string|null} [videoCodec] Encoding videoCodec
|
|
4143
|
+
* @property {number|null} [height] Encoding height
|
|
4144
|
+
* @property {number|null} [width] Encoding width
|
|
4145
|
+
* @property {number|null} [fileSizeInBytes] Encoding fileSizeInBytes
|
|
4146
|
+
* @property {number|null} [totalBitrateInKbps] Encoding totalBitrateInKbps
|
|
4147
|
+
* @property {number|null} [durationInMs] Encoding durationInMs
|
|
4148
|
+
*/
|
|
4149
|
+
|
|
4150
|
+
/**
|
|
4151
|
+
* Constructs a new Encoding.
|
|
4152
|
+
* @memberof asset
|
|
4153
|
+
* @classdesc Represents an Encoding.
|
|
4154
|
+
* @implements IEncoding
|
|
4155
|
+
* @constructor
|
|
4156
|
+
* @param {asset.IEncoding=} [properties] Properties to set
|
|
4157
|
+
*/
|
|
4158
|
+
function Encoding(properties) {
|
|
4159
|
+
if (properties)
|
|
4160
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4161
|
+
if (properties[keys[i]] != null)
|
|
4162
|
+
this[keys[i]] = properties[keys[i]];
|
|
4163
|
+
}
|
|
4164
|
+
|
|
4165
|
+
/**
|
|
4166
|
+
* Encoding path.
|
|
4167
|
+
* @member {string} path
|
|
4168
|
+
* @memberof asset.Encoding
|
|
4169
|
+
* @instance
|
|
4170
|
+
*/
|
|
4171
|
+
Encoding.prototype.path = "";
|
|
4172
|
+
|
|
4173
|
+
/**
|
|
4174
|
+
* Encoding audioCodec.
|
|
4175
|
+
* @member {string} audioCodec
|
|
4176
|
+
* @memberof asset.Encoding
|
|
4177
|
+
* @instance
|
|
4178
|
+
*/
|
|
4179
|
+
Encoding.prototype.audioCodec = "";
|
|
4180
|
+
|
|
4181
|
+
/**
|
|
4182
|
+
* Encoding videoCodec.
|
|
4183
|
+
* @member {string} videoCodec
|
|
4184
|
+
* @memberof asset.Encoding
|
|
4185
|
+
* @instance
|
|
4186
|
+
*/
|
|
4187
|
+
Encoding.prototype.videoCodec = "";
|
|
4188
|
+
|
|
4189
|
+
/**
|
|
4190
|
+
* Encoding height.
|
|
4191
|
+
* @member {number} height
|
|
4192
|
+
* @memberof asset.Encoding
|
|
4193
|
+
* @instance
|
|
4194
|
+
*/
|
|
4195
|
+
Encoding.prototype.height = 0;
|
|
4196
|
+
|
|
4197
|
+
/**
|
|
4198
|
+
* Encoding width.
|
|
4199
|
+
* @member {number} width
|
|
4200
|
+
* @memberof asset.Encoding
|
|
4201
|
+
* @instance
|
|
4202
|
+
*/
|
|
4203
|
+
Encoding.prototype.width = 0;
|
|
4204
|
+
|
|
4205
|
+
/**
|
|
4206
|
+
* Encoding fileSizeInBytes.
|
|
4207
|
+
* @member {number} fileSizeInBytes
|
|
4208
|
+
* @memberof asset.Encoding
|
|
4209
|
+
* @instance
|
|
4210
|
+
*/
|
|
4211
|
+
Encoding.prototype.fileSizeInBytes = 0;
|
|
4212
|
+
|
|
4213
|
+
/**
|
|
4214
|
+
* Encoding totalBitrateInKbps.
|
|
4215
|
+
* @member {number} totalBitrateInKbps
|
|
4216
|
+
* @memberof asset.Encoding
|
|
4217
|
+
* @instance
|
|
4218
|
+
*/
|
|
4219
|
+
Encoding.prototype.totalBitrateInKbps = 0;
|
|
4220
|
+
|
|
4221
|
+
/**
|
|
4222
|
+
* Encoding durationInMs.
|
|
4223
|
+
* @member {number} durationInMs
|
|
4224
|
+
* @memberof asset.Encoding
|
|
4225
|
+
* @instance
|
|
4226
|
+
*/
|
|
4227
|
+
Encoding.prototype.durationInMs = 0;
|
|
4228
|
+
|
|
4229
|
+
/**
|
|
4230
|
+
* Creates a new Encoding instance using the specified properties.
|
|
4231
|
+
* @function create
|
|
4232
|
+
* @memberof asset.Encoding
|
|
4233
|
+
* @static
|
|
4234
|
+
* @param {asset.IEncoding=} [properties] Properties to set
|
|
4235
|
+
* @returns {asset.Encoding} Encoding instance
|
|
4236
|
+
*/
|
|
4237
|
+
Encoding.create = function create(properties) {
|
|
4238
|
+
return new Encoding(properties);
|
|
4239
|
+
};
|
|
4240
|
+
|
|
4241
|
+
/**
|
|
4242
|
+
* Encodes the specified Encoding message. Does not implicitly {@link asset.Encoding.verify|verify} messages.
|
|
4243
|
+
* @function encode
|
|
4244
|
+
* @memberof asset.Encoding
|
|
4245
|
+
* @static
|
|
4246
|
+
* @param {asset.IEncoding} message Encoding message or plain object to encode
|
|
4247
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4248
|
+
* @returns {$protobuf.Writer} Writer
|
|
4249
|
+
*/
|
|
4250
|
+
Encoding.encode = function encode(message, writer) {
|
|
4251
|
+
if (!writer)
|
|
4252
|
+
writer = $Writer.create();
|
|
4253
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
4254
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
|
|
4255
|
+
if (message.audioCodec != null && message.hasOwnProperty("audioCodec"))
|
|
4256
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.audioCodec);
|
|
4257
|
+
if (message.videoCodec != null && message.hasOwnProperty("videoCodec"))
|
|
4258
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.videoCodec);
|
|
4259
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
4260
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.height);
|
|
4261
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
4262
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.width);
|
|
4263
|
+
if (message.fileSizeInBytes != null && message.hasOwnProperty("fileSizeInBytes"))
|
|
4264
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.fileSizeInBytes);
|
|
4265
|
+
if (message.totalBitrateInKbps != null && message.hasOwnProperty("totalBitrateInKbps"))
|
|
4266
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.totalBitrateInKbps);
|
|
4267
|
+
if (message.durationInMs != null && message.hasOwnProperty("durationInMs"))
|
|
4268
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.durationInMs);
|
|
4269
|
+
return writer;
|
|
4270
|
+
};
|
|
4271
|
+
|
|
4272
|
+
/**
|
|
4273
|
+
* Encodes the specified Encoding message, length delimited. Does not implicitly {@link asset.Encoding.verify|verify} messages.
|
|
4274
|
+
* @function encodeDelimited
|
|
4275
|
+
* @memberof asset.Encoding
|
|
4276
|
+
* @static
|
|
4277
|
+
* @param {asset.IEncoding} message Encoding message or plain object to encode
|
|
4278
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4279
|
+
* @returns {$protobuf.Writer} Writer
|
|
4280
|
+
*/
|
|
4281
|
+
Encoding.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4282
|
+
return this.encode(message, writer).ldelim();
|
|
4283
|
+
};
|
|
4284
|
+
|
|
4285
|
+
/**
|
|
4286
|
+
* Decodes an Encoding message from the specified reader or buffer.
|
|
4287
|
+
* @function decode
|
|
4288
|
+
* @memberof asset.Encoding
|
|
4289
|
+
* @static
|
|
4290
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4291
|
+
* @param {number} [length] Message length if known beforehand
|
|
4292
|
+
* @returns {asset.Encoding} Encoding
|
|
4293
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4294
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4295
|
+
*/
|
|
4296
|
+
Encoding.decode = function decode(reader, length) {
|
|
4297
|
+
if (!(reader instanceof $Reader))
|
|
4298
|
+
reader = $Reader.create(reader);
|
|
4299
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.asset.Encoding();
|
|
4300
|
+
while (reader.pos < end) {
|
|
4301
|
+
var tag = reader.uint32();
|
|
4302
|
+
switch (tag >>> 3) {
|
|
4303
|
+
case 1:
|
|
4304
|
+
message.path = reader.string();
|
|
4305
|
+
break;
|
|
4306
|
+
case 2:
|
|
4307
|
+
message.audioCodec = reader.string();
|
|
4308
|
+
break;
|
|
4309
|
+
case 3:
|
|
4310
|
+
message.videoCodec = reader.string();
|
|
4311
|
+
break;
|
|
4312
|
+
case 4:
|
|
4313
|
+
message.height = reader.int32();
|
|
4314
|
+
break;
|
|
4315
|
+
case 5:
|
|
4316
|
+
message.width = reader.int32();
|
|
4317
|
+
break;
|
|
4318
|
+
case 6:
|
|
4319
|
+
message.fileSizeInBytes = reader.int32();
|
|
4320
|
+
break;
|
|
4321
|
+
case 7:
|
|
4322
|
+
message.totalBitrateInKbps = reader.int32();
|
|
4323
|
+
break;
|
|
4324
|
+
case 8:
|
|
4325
|
+
message.durationInMs = reader.int32();
|
|
4326
|
+
break;
|
|
4327
|
+
default:
|
|
4328
|
+
reader.skipType(tag & 7);
|
|
4329
|
+
break;
|
|
4330
|
+
}
|
|
4331
|
+
}
|
|
4332
|
+
return message;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
/**
|
|
4336
|
+
* Decodes an Encoding message from the specified reader or buffer, length delimited.
|
|
4337
|
+
* @function decodeDelimited
|
|
4338
|
+
* @memberof asset.Encoding
|
|
4339
|
+
* @static
|
|
4340
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4341
|
+
* @returns {asset.Encoding} Encoding
|
|
4342
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4343
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4344
|
+
*/
|
|
4345
|
+
Encoding.decodeDelimited = function decodeDelimited(reader) {
|
|
4346
|
+
if (!(reader instanceof $Reader))
|
|
4347
|
+
reader = new $Reader(reader);
|
|
4348
|
+
return this.decode(reader, reader.uint32());
|
|
4349
|
+
};
|
|
4350
|
+
|
|
4351
|
+
/**
|
|
4352
|
+
* Verifies an Encoding message.
|
|
4353
|
+
* @function verify
|
|
4354
|
+
* @memberof asset.Encoding
|
|
4355
|
+
* @static
|
|
4356
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4357
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4358
|
+
*/
|
|
4359
|
+
Encoding.verify = function verify(message) {
|
|
4360
|
+
if (typeof message !== "object" || message === null)
|
|
4361
|
+
return "object expected";
|
|
4362
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
4363
|
+
if (!$util.isString(message.path))
|
|
4364
|
+
return "path: string expected";
|
|
4365
|
+
if (message.audioCodec != null && message.hasOwnProperty("audioCodec"))
|
|
4366
|
+
if (!$util.isString(message.audioCodec))
|
|
4367
|
+
return "audioCodec: string expected";
|
|
4368
|
+
if (message.videoCodec != null && message.hasOwnProperty("videoCodec"))
|
|
4369
|
+
if (!$util.isString(message.videoCodec))
|
|
4370
|
+
return "videoCodec: string expected";
|
|
4371
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
4372
|
+
if (!$util.isInteger(message.height))
|
|
4373
|
+
return "height: integer expected";
|
|
4374
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
4375
|
+
if (!$util.isInteger(message.width))
|
|
4376
|
+
return "width: integer expected";
|
|
4377
|
+
if (message.fileSizeInBytes != null && message.hasOwnProperty("fileSizeInBytes"))
|
|
4378
|
+
if (!$util.isInteger(message.fileSizeInBytes))
|
|
4379
|
+
return "fileSizeInBytes: integer expected";
|
|
4380
|
+
if (message.totalBitrateInKbps != null && message.hasOwnProperty("totalBitrateInKbps"))
|
|
4381
|
+
if (!$util.isInteger(message.totalBitrateInKbps))
|
|
4382
|
+
return "totalBitrateInKbps: integer expected";
|
|
4383
|
+
if (message.durationInMs != null && message.hasOwnProperty("durationInMs"))
|
|
4384
|
+
if (!$util.isInteger(message.durationInMs))
|
|
4385
|
+
return "durationInMs: integer expected";
|
|
4386
|
+
return null;
|
|
4387
|
+
};
|
|
4388
|
+
|
|
4389
|
+
/**
|
|
4390
|
+
* Creates an Encoding message from a plain object. Also converts values to their respective internal types.
|
|
4391
|
+
* @function fromObject
|
|
4392
|
+
* @memberof asset.Encoding
|
|
4393
|
+
* @static
|
|
4394
|
+
* @param {Object.<string,*>} object Plain object
|
|
4395
|
+
* @returns {asset.Encoding} Encoding
|
|
4396
|
+
*/
|
|
4397
|
+
Encoding.fromObject = function fromObject(object) {
|
|
4398
|
+
if (object instanceof $root.asset.Encoding)
|
|
4399
|
+
return object;
|
|
4400
|
+
var message = new $root.asset.Encoding();
|
|
4401
|
+
if (object.path != null)
|
|
4402
|
+
message.path = String(object.path);
|
|
4403
|
+
if (object.audioCodec != null)
|
|
4404
|
+
message.audioCodec = String(object.audioCodec);
|
|
4405
|
+
if (object.videoCodec != null)
|
|
4406
|
+
message.videoCodec = String(object.videoCodec);
|
|
4407
|
+
if (object.height != null)
|
|
4408
|
+
message.height = object.height | 0;
|
|
4409
|
+
if (object.width != null)
|
|
4410
|
+
message.width = object.width | 0;
|
|
4411
|
+
if (object.fileSizeInBytes != null)
|
|
4412
|
+
message.fileSizeInBytes = object.fileSizeInBytes | 0;
|
|
4413
|
+
if (object.totalBitrateInKbps != null)
|
|
4414
|
+
message.totalBitrateInKbps = object.totalBitrateInKbps | 0;
|
|
4415
|
+
if (object.durationInMs != null)
|
|
4416
|
+
message.durationInMs = object.durationInMs | 0;
|
|
4417
|
+
return message;
|
|
4418
|
+
};
|
|
4419
|
+
|
|
4420
|
+
/**
|
|
4421
|
+
* Creates a plain object from an Encoding message. Also converts values to other types if specified.
|
|
4422
|
+
* @function toObject
|
|
4423
|
+
* @memberof asset.Encoding
|
|
4424
|
+
* @static
|
|
4425
|
+
* @param {asset.Encoding} message Encoding
|
|
4426
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4427
|
+
* @returns {Object.<string,*>} Plain object
|
|
4428
|
+
*/
|
|
4429
|
+
Encoding.toObject = function toObject(message, options) {
|
|
4430
|
+
if (!options)
|
|
4431
|
+
options = {};
|
|
4432
|
+
var object = {};
|
|
4433
|
+
if (options.defaults) {
|
|
4434
|
+
object.path = "";
|
|
4435
|
+
object.audioCodec = "";
|
|
4436
|
+
object.videoCodec = "";
|
|
4437
|
+
object.height = 0;
|
|
4438
|
+
object.width = 0;
|
|
4439
|
+
object.fileSizeInBytes = 0;
|
|
4440
|
+
object.totalBitrateInKbps = 0;
|
|
4441
|
+
object.durationInMs = 0;
|
|
4442
|
+
}
|
|
4443
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
4444
|
+
object.path = message.path;
|
|
4445
|
+
if (message.audioCodec != null && message.hasOwnProperty("audioCodec"))
|
|
4446
|
+
object.audioCodec = message.audioCodec;
|
|
4447
|
+
if (message.videoCodec != null && message.hasOwnProperty("videoCodec"))
|
|
4448
|
+
object.videoCodec = message.videoCodec;
|
|
4449
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
4450
|
+
object.height = message.height;
|
|
4451
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
4452
|
+
object.width = message.width;
|
|
4453
|
+
if (message.fileSizeInBytes != null && message.hasOwnProperty("fileSizeInBytes"))
|
|
4454
|
+
object.fileSizeInBytes = message.fileSizeInBytes;
|
|
4455
|
+
if (message.totalBitrateInKbps != null && message.hasOwnProperty("totalBitrateInKbps"))
|
|
4456
|
+
object.totalBitrateInKbps = message.totalBitrateInKbps;
|
|
4457
|
+
if (message.durationInMs != null && message.hasOwnProperty("durationInMs"))
|
|
4458
|
+
object.durationInMs = message.durationInMs;
|
|
4459
|
+
return object;
|
|
4460
|
+
};
|
|
4461
|
+
|
|
4462
|
+
/**
|
|
4463
|
+
* Converts this Encoding to JSON.
|
|
4464
|
+
* @function toJSON
|
|
4465
|
+
* @memberof asset.Encoding
|
|
4466
|
+
* @instance
|
|
4467
|
+
* @returns {Object.<string,*>} JSON object
|
|
4468
|
+
*/
|
|
4469
|
+
Encoding.prototype.toJSON = function toJSON() {
|
|
4470
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4471
|
+
};
|
|
4472
|
+
|
|
4473
|
+
return Encoding;
|
|
4474
|
+
})();
|
|
4475
|
+
|
|
4476
|
+
/**
|
|
4477
|
+
* Gender enum.
|
|
4478
|
+
* @name asset.Gender
|
|
4479
|
+
* @enum {string}
|
|
4480
|
+
* @property {number} GENDER_UNKNOWN=0 GENDER_UNKNOWN value
|
|
4481
|
+
* @property {number} GENDER_MALE=1 GENDER_MALE value
|
|
4482
|
+
* @property {number} GENDER_FEMALE=2 GENDER_FEMALE value
|
|
4483
|
+
*/
|
|
4484
|
+
asset.Gender = (function() {
|
|
4485
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
4486
|
+
values[valuesById[0] = "GENDER_UNKNOWN"] = 0;
|
|
4487
|
+
values[valuesById[1] = "GENDER_MALE"] = 1;
|
|
4488
|
+
values[valuesById[2] = "GENDER_FEMALE"] = 2;
|
|
4489
|
+
return values;
|
|
4490
|
+
})();
|
|
4491
|
+
|
|
4492
|
+
/**
|
|
4493
|
+
* Language enum.
|
|
4494
|
+
* @name asset.Language
|
|
4495
|
+
* @enum {string}
|
|
4496
|
+
* @property {number} LANGUAGE_UNKNOWN=0 LANGUAGE_UNKNOWN value
|
|
4497
|
+
* @property {number} LANGUAGE_EN=1 LANGUAGE_EN value
|
|
4498
|
+
* @property {number} LANGUAGE_DE=2 LANGUAGE_DE value
|
|
4499
|
+
* @property {number} LANGUAGE_FR=3 LANGUAGE_FR value
|
|
4500
|
+
* @property {number} LANGUAGE_ES=4 LANGUAGE_ES value
|
|
4501
|
+
* @property {number} LANGUAGE_PT=5 LANGUAGE_PT value
|
|
4502
|
+
*/
|
|
4503
|
+
asset.Language = (function() {
|
|
4504
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
4505
|
+
values[valuesById[0] = "LANGUAGE_UNKNOWN"] = 0;
|
|
4506
|
+
values[valuesById[1] = "LANGUAGE_EN"] = 1;
|
|
4507
|
+
values[valuesById[2] = "LANGUAGE_DE"] = 2;
|
|
4508
|
+
values[valuesById[3] = "LANGUAGE_FR"] = 3;
|
|
4509
|
+
values[valuesById[4] = "LANGUAGE_ES"] = 4;
|
|
4510
|
+
values[valuesById[5] = "LANGUAGE_PT"] = 5;
|
|
4511
|
+
return values;
|
|
4512
|
+
})();
|
|
4513
|
+
|
|
4514
|
+
return asset;
|
|
4515
|
+
})();
|
|
4516
|
+
|
|
2732
4517
|
$root.userdomain = (function() {
|
|
2733
4518
|
|
|
2734
4519
|
/**
|
|
@@ -6424,95 +8209,287 @@ $root.MessageSent = (function() {
|
|
|
6424
8209
|
};
|
|
6425
8210
|
|
|
6426
8211
|
/**
|
|
6427
|
-
* Creates a MessageSent message from a plain object. Also converts values to their respective internal types.
|
|
8212
|
+
* Creates a MessageSent message from a plain object. Also converts values to their respective internal types.
|
|
8213
|
+
* @function fromObject
|
|
8214
|
+
* @memberof MessageSent
|
|
8215
|
+
* @static
|
|
8216
|
+
* @param {Object.<string,*>} object Plain object
|
|
8217
|
+
* @returns {MessageSent} MessageSent
|
|
8218
|
+
*/
|
|
8219
|
+
MessageSent.fromObject = function fromObject(object) {
|
|
8220
|
+
if (object instanceof $root.MessageSent)
|
|
8221
|
+
return object;
|
|
8222
|
+
var message = new $root.MessageSent();
|
|
8223
|
+
if (object.recipientUserId != null)
|
|
8224
|
+
message.recipientUserId = String(object.recipientUserId);
|
|
8225
|
+
if (object.senderUserId != null)
|
|
8226
|
+
message.senderUserId = String(object.senderUserId);
|
|
8227
|
+
if (object.senderName != null)
|
|
8228
|
+
message.senderName = String(object.senderName);
|
|
8229
|
+
if (object.senderLocale != null)
|
|
8230
|
+
message.senderLocale = String(object.senderLocale);
|
|
8231
|
+
if (object.deepLink != null)
|
|
8232
|
+
message.deepLink = String(object.deepLink);
|
|
8233
|
+
if (object.nudgeId != null)
|
|
8234
|
+
message.nudgeId = String(object.nudgeId);
|
|
8235
|
+
if (object.imageUrl != null)
|
|
8236
|
+
message.imageUrl = String(object.imageUrl);
|
|
8237
|
+
if (object.messageText != null)
|
|
8238
|
+
message.messageText = String(object.messageText);
|
|
8239
|
+
if (object.messageTitle != null)
|
|
8240
|
+
message.messageTitle = String(object.messageTitle);
|
|
8241
|
+
return message;
|
|
8242
|
+
};
|
|
8243
|
+
|
|
8244
|
+
/**
|
|
8245
|
+
* Creates a plain object from a MessageSent message. Also converts values to other types if specified.
|
|
8246
|
+
* @function toObject
|
|
8247
|
+
* @memberof MessageSent
|
|
8248
|
+
* @static
|
|
8249
|
+
* @param {MessageSent} message MessageSent
|
|
8250
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8251
|
+
* @returns {Object.<string,*>} Plain object
|
|
8252
|
+
*/
|
|
8253
|
+
MessageSent.toObject = function toObject(message, options) {
|
|
8254
|
+
if (!options)
|
|
8255
|
+
options = {};
|
|
8256
|
+
var object = {};
|
|
8257
|
+
if (options.defaults) {
|
|
8258
|
+
object.recipientUserId = "";
|
|
8259
|
+
object.senderUserId = "";
|
|
8260
|
+
object.senderName = "";
|
|
8261
|
+
object.senderLocale = "";
|
|
8262
|
+
object.deepLink = "";
|
|
8263
|
+
object.nudgeId = "";
|
|
8264
|
+
object.imageUrl = "";
|
|
8265
|
+
object.messageText = "";
|
|
8266
|
+
object.messageTitle = "";
|
|
8267
|
+
}
|
|
8268
|
+
if (message.recipientUserId != null && message.hasOwnProperty("recipientUserId"))
|
|
8269
|
+
object.recipientUserId = message.recipientUserId;
|
|
8270
|
+
if (message.senderUserId != null && message.hasOwnProperty("senderUserId"))
|
|
8271
|
+
object.senderUserId = message.senderUserId;
|
|
8272
|
+
if (message.senderName != null && message.hasOwnProperty("senderName"))
|
|
8273
|
+
object.senderName = message.senderName;
|
|
8274
|
+
if (message.senderLocale != null && message.hasOwnProperty("senderLocale"))
|
|
8275
|
+
object.senderLocale = message.senderLocale;
|
|
8276
|
+
if (message.deepLink != null && message.hasOwnProperty("deepLink"))
|
|
8277
|
+
object.deepLink = message.deepLink;
|
|
8278
|
+
if (message.nudgeId != null && message.hasOwnProperty("nudgeId"))
|
|
8279
|
+
object.nudgeId = message.nudgeId;
|
|
8280
|
+
if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
|
|
8281
|
+
object.imageUrl = message.imageUrl;
|
|
8282
|
+
if (message.messageText != null && message.hasOwnProperty("messageText"))
|
|
8283
|
+
object.messageText = message.messageText;
|
|
8284
|
+
if (message.messageTitle != null && message.hasOwnProperty("messageTitle"))
|
|
8285
|
+
object.messageTitle = message.messageTitle;
|
|
8286
|
+
return object;
|
|
8287
|
+
};
|
|
8288
|
+
|
|
8289
|
+
/**
|
|
8290
|
+
* Converts this MessageSent to JSON.
|
|
8291
|
+
* @function toJSON
|
|
8292
|
+
* @memberof MessageSent
|
|
8293
|
+
* @instance
|
|
8294
|
+
* @returns {Object.<string,*>} JSON object
|
|
8295
|
+
*/
|
|
8296
|
+
MessageSent.prototype.toJSON = function toJSON() {
|
|
8297
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8298
|
+
};
|
|
8299
|
+
|
|
8300
|
+
return MessageSent;
|
|
8301
|
+
})();
|
|
8302
|
+
|
|
8303
|
+
$root.AssetCreated = (function() {
|
|
8304
|
+
|
|
8305
|
+
/**
|
|
8306
|
+
* Properties of an AssetCreated.
|
|
8307
|
+
* @exports IAssetCreated
|
|
8308
|
+
* @interface IAssetCreated
|
|
8309
|
+
* @property {asset.IAsset|null} [asset] AssetCreated asset
|
|
8310
|
+
*/
|
|
8311
|
+
|
|
8312
|
+
/**
|
|
8313
|
+
* Constructs a new AssetCreated.
|
|
8314
|
+
* @exports AssetCreated
|
|
8315
|
+
* @classdesc Represents an AssetCreated.
|
|
8316
|
+
* @implements IAssetCreated
|
|
8317
|
+
* @constructor
|
|
8318
|
+
* @param {IAssetCreated=} [properties] Properties to set
|
|
8319
|
+
*/
|
|
8320
|
+
function AssetCreated(properties) {
|
|
8321
|
+
if (properties)
|
|
8322
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8323
|
+
if (properties[keys[i]] != null)
|
|
8324
|
+
this[keys[i]] = properties[keys[i]];
|
|
8325
|
+
}
|
|
8326
|
+
|
|
8327
|
+
/**
|
|
8328
|
+
* AssetCreated asset.
|
|
8329
|
+
* @member {asset.IAsset|null|undefined} asset
|
|
8330
|
+
* @memberof AssetCreated
|
|
8331
|
+
* @instance
|
|
8332
|
+
*/
|
|
8333
|
+
AssetCreated.prototype.asset = null;
|
|
8334
|
+
|
|
8335
|
+
/**
|
|
8336
|
+
* Creates a new AssetCreated instance using the specified properties.
|
|
8337
|
+
* @function create
|
|
8338
|
+
* @memberof AssetCreated
|
|
8339
|
+
* @static
|
|
8340
|
+
* @param {IAssetCreated=} [properties] Properties to set
|
|
8341
|
+
* @returns {AssetCreated} AssetCreated instance
|
|
8342
|
+
*/
|
|
8343
|
+
AssetCreated.create = function create(properties) {
|
|
8344
|
+
return new AssetCreated(properties);
|
|
8345
|
+
};
|
|
8346
|
+
|
|
8347
|
+
/**
|
|
8348
|
+
* Encodes the specified AssetCreated message. Does not implicitly {@link AssetCreated.verify|verify} messages.
|
|
8349
|
+
* @function encode
|
|
8350
|
+
* @memberof AssetCreated
|
|
8351
|
+
* @static
|
|
8352
|
+
* @param {IAssetCreated} message AssetCreated message or plain object to encode
|
|
8353
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8354
|
+
* @returns {$protobuf.Writer} Writer
|
|
8355
|
+
*/
|
|
8356
|
+
AssetCreated.encode = function encode(message, writer) {
|
|
8357
|
+
if (!writer)
|
|
8358
|
+
writer = $Writer.create();
|
|
8359
|
+
if (message.asset != null && message.hasOwnProperty("asset"))
|
|
8360
|
+
$root.asset.Asset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
8361
|
+
return writer;
|
|
8362
|
+
};
|
|
8363
|
+
|
|
8364
|
+
/**
|
|
8365
|
+
* Encodes the specified AssetCreated message, length delimited. Does not implicitly {@link AssetCreated.verify|verify} messages.
|
|
8366
|
+
* @function encodeDelimited
|
|
8367
|
+
* @memberof AssetCreated
|
|
8368
|
+
* @static
|
|
8369
|
+
* @param {IAssetCreated} message AssetCreated message or plain object to encode
|
|
8370
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8371
|
+
* @returns {$protobuf.Writer} Writer
|
|
8372
|
+
*/
|
|
8373
|
+
AssetCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8374
|
+
return this.encode(message, writer).ldelim();
|
|
8375
|
+
};
|
|
8376
|
+
|
|
8377
|
+
/**
|
|
8378
|
+
* Decodes an AssetCreated message from the specified reader or buffer.
|
|
8379
|
+
* @function decode
|
|
8380
|
+
* @memberof AssetCreated
|
|
8381
|
+
* @static
|
|
8382
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8383
|
+
* @param {number} [length] Message length if known beforehand
|
|
8384
|
+
* @returns {AssetCreated} AssetCreated
|
|
8385
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8386
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8387
|
+
*/
|
|
8388
|
+
AssetCreated.decode = function decode(reader, length) {
|
|
8389
|
+
if (!(reader instanceof $Reader))
|
|
8390
|
+
reader = $Reader.create(reader);
|
|
8391
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AssetCreated();
|
|
8392
|
+
while (reader.pos < end) {
|
|
8393
|
+
var tag = reader.uint32();
|
|
8394
|
+
switch (tag >>> 3) {
|
|
8395
|
+
case 1:
|
|
8396
|
+
message.asset = $root.asset.Asset.decode(reader, reader.uint32());
|
|
8397
|
+
break;
|
|
8398
|
+
default:
|
|
8399
|
+
reader.skipType(tag & 7);
|
|
8400
|
+
break;
|
|
8401
|
+
}
|
|
8402
|
+
}
|
|
8403
|
+
return message;
|
|
8404
|
+
};
|
|
8405
|
+
|
|
8406
|
+
/**
|
|
8407
|
+
* Decodes an AssetCreated message from the specified reader or buffer, length delimited.
|
|
8408
|
+
* @function decodeDelimited
|
|
8409
|
+
* @memberof AssetCreated
|
|
8410
|
+
* @static
|
|
8411
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8412
|
+
* @returns {AssetCreated} AssetCreated
|
|
8413
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8414
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8415
|
+
*/
|
|
8416
|
+
AssetCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
8417
|
+
if (!(reader instanceof $Reader))
|
|
8418
|
+
reader = new $Reader(reader);
|
|
8419
|
+
return this.decode(reader, reader.uint32());
|
|
8420
|
+
};
|
|
8421
|
+
|
|
8422
|
+
/**
|
|
8423
|
+
* Verifies an AssetCreated message.
|
|
8424
|
+
* @function verify
|
|
8425
|
+
* @memberof AssetCreated
|
|
8426
|
+
* @static
|
|
8427
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8428
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8429
|
+
*/
|
|
8430
|
+
AssetCreated.verify = function verify(message) {
|
|
8431
|
+
if (typeof message !== "object" || message === null)
|
|
8432
|
+
return "object expected";
|
|
8433
|
+
if (message.asset != null && message.hasOwnProperty("asset")) {
|
|
8434
|
+
var error = $root.asset.Asset.verify(message.asset);
|
|
8435
|
+
if (error)
|
|
8436
|
+
return "asset." + error;
|
|
8437
|
+
}
|
|
8438
|
+
return null;
|
|
8439
|
+
};
|
|
8440
|
+
|
|
8441
|
+
/**
|
|
8442
|
+
* Creates an AssetCreated message from a plain object. Also converts values to their respective internal types.
|
|
6428
8443
|
* @function fromObject
|
|
6429
|
-
* @memberof
|
|
8444
|
+
* @memberof AssetCreated
|
|
6430
8445
|
* @static
|
|
6431
8446
|
* @param {Object.<string,*>} object Plain object
|
|
6432
|
-
* @returns {
|
|
8447
|
+
* @returns {AssetCreated} AssetCreated
|
|
6433
8448
|
*/
|
|
6434
|
-
|
|
6435
|
-
if (object instanceof $root.
|
|
8449
|
+
AssetCreated.fromObject = function fromObject(object) {
|
|
8450
|
+
if (object instanceof $root.AssetCreated)
|
|
6436
8451
|
return object;
|
|
6437
|
-
var message = new $root.
|
|
6438
|
-
if (object.
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
message.
|
|
6442
|
-
|
|
6443
|
-
message.senderName = String(object.senderName);
|
|
6444
|
-
if (object.senderLocale != null)
|
|
6445
|
-
message.senderLocale = String(object.senderLocale);
|
|
6446
|
-
if (object.deepLink != null)
|
|
6447
|
-
message.deepLink = String(object.deepLink);
|
|
6448
|
-
if (object.nudgeId != null)
|
|
6449
|
-
message.nudgeId = String(object.nudgeId);
|
|
6450
|
-
if (object.imageUrl != null)
|
|
6451
|
-
message.imageUrl = String(object.imageUrl);
|
|
6452
|
-
if (object.messageText != null)
|
|
6453
|
-
message.messageText = String(object.messageText);
|
|
6454
|
-
if (object.messageTitle != null)
|
|
6455
|
-
message.messageTitle = String(object.messageTitle);
|
|
8452
|
+
var message = new $root.AssetCreated();
|
|
8453
|
+
if (object.asset != null) {
|
|
8454
|
+
if (typeof object.asset !== "object")
|
|
8455
|
+
throw TypeError(".AssetCreated.asset: object expected");
|
|
8456
|
+
message.asset = $root.asset.Asset.fromObject(object.asset);
|
|
8457
|
+
}
|
|
6456
8458
|
return message;
|
|
6457
8459
|
};
|
|
6458
8460
|
|
|
6459
8461
|
/**
|
|
6460
|
-
* Creates a plain object from
|
|
8462
|
+
* Creates a plain object from an AssetCreated message. Also converts values to other types if specified.
|
|
6461
8463
|
* @function toObject
|
|
6462
|
-
* @memberof
|
|
8464
|
+
* @memberof AssetCreated
|
|
6463
8465
|
* @static
|
|
6464
|
-
* @param {
|
|
8466
|
+
* @param {AssetCreated} message AssetCreated
|
|
6465
8467
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6466
8468
|
* @returns {Object.<string,*>} Plain object
|
|
6467
8469
|
*/
|
|
6468
|
-
|
|
8470
|
+
AssetCreated.toObject = function toObject(message, options) {
|
|
6469
8471
|
if (!options)
|
|
6470
8472
|
options = {};
|
|
6471
8473
|
var object = {};
|
|
6472
|
-
if (options.defaults)
|
|
6473
|
-
object.
|
|
6474
|
-
|
|
6475
|
-
object.
|
|
6476
|
-
object.senderLocale = "";
|
|
6477
|
-
object.deepLink = "";
|
|
6478
|
-
object.nudgeId = "";
|
|
6479
|
-
object.imageUrl = "";
|
|
6480
|
-
object.messageText = "";
|
|
6481
|
-
object.messageTitle = "";
|
|
6482
|
-
}
|
|
6483
|
-
if (message.recipientUserId != null && message.hasOwnProperty("recipientUserId"))
|
|
6484
|
-
object.recipientUserId = message.recipientUserId;
|
|
6485
|
-
if (message.senderUserId != null && message.hasOwnProperty("senderUserId"))
|
|
6486
|
-
object.senderUserId = message.senderUserId;
|
|
6487
|
-
if (message.senderName != null && message.hasOwnProperty("senderName"))
|
|
6488
|
-
object.senderName = message.senderName;
|
|
6489
|
-
if (message.senderLocale != null && message.hasOwnProperty("senderLocale"))
|
|
6490
|
-
object.senderLocale = message.senderLocale;
|
|
6491
|
-
if (message.deepLink != null && message.hasOwnProperty("deepLink"))
|
|
6492
|
-
object.deepLink = message.deepLink;
|
|
6493
|
-
if (message.nudgeId != null && message.hasOwnProperty("nudgeId"))
|
|
6494
|
-
object.nudgeId = message.nudgeId;
|
|
6495
|
-
if (message.imageUrl != null && message.hasOwnProperty("imageUrl"))
|
|
6496
|
-
object.imageUrl = message.imageUrl;
|
|
6497
|
-
if (message.messageText != null && message.hasOwnProperty("messageText"))
|
|
6498
|
-
object.messageText = message.messageText;
|
|
6499
|
-
if (message.messageTitle != null && message.hasOwnProperty("messageTitle"))
|
|
6500
|
-
object.messageTitle = message.messageTitle;
|
|
8474
|
+
if (options.defaults)
|
|
8475
|
+
object.asset = null;
|
|
8476
|
+
if (message.asset != null && message.hasOwnProperty("asset"))
|
|
8477
|
+
object.asset = $root.asset.Asset.toObject(message.asset, options);
|
|
6501
8478
|
return object;
|
|
6502
8479
|
};
|
|
6503
8480
|
|
|
6504
8481
|
/**
|
|
6505
|
-
* Converts this
|
|
8482
|
+
* Converts this AssetCreated to JSON.
|
|
6506
8483
|
* @function toJSON
|
|
6507
|
-
* @memberof
|
|
8484
|
+
* @memberof AssetCreated
|
|
6508
8485
|
* @instance
|
|
6509
8486
|
* @returns {Object.<string,*>} JSON object
|
|
6510
8487
|
*/
|
|
6511
|
-
|
|
8488
|
+
AssetCreated.prototype.toJSON = function toJSON() {
|
|
6512
8489
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6513
8490
|
};
|
|
6514
8491
|
|
|
6515
|
-
return
|
|
8492
|
+
return AssetCreated;
|
|
6516
8493
|
})();
|
|
6517
8494
|
|
|
6518
8495
|
$root.FamilyMemberAdded = (function() {
|
|
@@ -9211,6 +11188,252 @@ $root.ExperimentContentMapUpdated = (function() {
|
|
|
9211
11188
|
return ExperimentContentMapUpdated;
|
|
9212
11189
|
})();
|
|
9213
11190
|
|
|
11191
|
+
$root.ExperimentContentMapDeleted = (function() {
|
|
11192
|
+
|
|
11193
|
+
/**
|
|
11194
|
+
* Properties of an ExperimentContentMapDeleted.
|
|
11195
|
+
* @exports IExperimentContentMapDeleted
|
|
11196
|
+
* @interface IExperimentContentMapDeleted
|
|
11197
|
+
* @property {string|null} [experimentName] ExperimentContentMapDeleted experimentName
|
|
11198
|
+
* @property {string|null} [variationName] ExperimentContentMapDeleted variationName
|
|
11199
|
+
* @property {number|Long|null} [deletedAt] ExperimentContentMapDeleted deletedAt
|
|
11200
|
+
*/
|
|
11201
|
+
|
|
11202
|
+
/**
|
|
11203
|
+
* Constructs a new ExperimentContentMapDeleted.
|
|
11204
|
+
* @exports ExperimentContentMapDeleted
|
|
11205
|
+
* @classdesc Represents an ExperimentContentMapDeleted.
|
|
11206
|
+
* @implements IExperimentContentMapDeleted
|
|
11207
|
+
* @constructor
|
|
11208
|
+
* @param {IExperimentContentMapDeleted=} [properties] Properties to set
|
|
11209
|
+
*/
|
|
11210
|
+
function ExperimentContentMapDeleted(properties) {
|
|
11211
|
+
if (properties)
|
|
11212
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11213
|
+
if (properties[keys[i]] != null)
|
|
11214
|
+
this[keys[i]] = properties[keys[i]];
|
|
11215
|
+
}
|
|
11216
|
+
|
|
11217
|
+
/**
|
|
11218
|
+
* ExperimentContentMapDeleted experimentName.
|
|
11219
|
+
* @member {string} experimentName
|
|
11220
|
+
* @memberof ExperimentContentMapDeleted
|
|
11221
|
+
* @instance
|
|
11222
|
+
*/
|
|
11223
|
+
ExperimentContentMapDeleted.prototype.experimentName = "";
|
|
11224
|
+
|
|
11225
|
+
/**
|
|
11226
|
+
* ExperimentContentMapDeleted variationName.
|
|
11227
|
+
* @member {string} variationName
|
|
11228
|
+
* @memberof ExperimentContentMapDeleted
|
|
11229
|
+
* @instance
|
|
11230
|
+
*/
|
|
11231
|
+
ExperimentContentMapDeleted.prototype.variationName = "";
|
|
11232
|
+
|
|
11233
|
+
/**
|
|
11234
|
+
* ExperimentContentMapDeleted deletedAt.
|
|
11235
|
+
* @member {number|Long} deletedAt
|
|
11236
|
+
* @memberof ExperimentContentMapDeleted
|
|
11237
|
+
* @instance
|
|
11238
|
+
*/
|
|
11239
|
+
ExperimentContentMapDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11240
|
+
|
|
11241
|
+
/**
|
|
11242
|
+
* Creates a new ExperimentContentMapDeleted instance using the specified properties.
|
|
11243
|
+
* @function create
|
|
11244
|
+
* @memberof ExperimentContentMapDeleted
|
|
11245
|
+
* @static
|
|
11246
|
+
* @param {IExperimentContentMapDeleted=} [properties] Properties to set
|
|
11247
|
+
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted instance
|
|
11248
|
+
*/
|
|
11249
|
+
ExperimentContentMapDeleted.create = function create(properties) {
|
|
11250
|
+
return new ExperimentContentMapDeleted(properties);
|
|
11251
|
+
};
|
|
11252
|
+
|
|
11253
|
+
/**
|
|
11254
|
+
* Encodes the specified ExperimentContentMapDeleted message. Does not implicitly {@link ExperimentContentMapDeleted.verify|verify} messages.
|
|
11255
|
+
* @function encode
|
|
11256
|
+
* @memberof ExperimentContentMapDeleted
|
|
11257
|
+
* @static
|
|
11258
|
+
* @param {IExperimentContentMapDeleted} message ExperimentContentMapDeleted message or plain object to encode
|
|
11259
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11260
|
+
* @returns {$protobuf.Writer} Writer
|
|
11261
|
+
*/
|
|
11262
|
+
ExperimentContentMapDeleted.encode = function encode(message, writer) {
|
|
11263
|
+
if (!writer)
|
|
11264
|
+
writer = $Writer.create();
|
|
11265
|
+
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
11266
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.experimentName);
|
|
11267
|
+
if (message.variationName != null && message.hasOwnProperty("variationName"))
|
|
11268
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.variationName);
|
|
11269
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
11270
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.deletedAt);
|
|
11271
|
+
return writer;
|
|
11272
|
+
};
|
|
11273
|
+
|
|
11274
|
+
/**
|
|
11275
|
+
* Encodes the specified ExperimentContentMapDeleted message, length delimited. Does not implicitly {@link ExperimentContentMapDeleted.verify|verify} messages.
|
|
11276
|
+
* @function encodeDelimited
|
|
11277
|
+
* @memberof ExperimentContentMapDeleted
|
|
11278
|
+
* @static
|
|
11279
|
+
* @param {IExperimentContentMapDeleted} message ExperimentContentMapDeleted message or plain object to encode
|
|
11280
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11281
|
+
* @returns {$protobuf.Writer} Writer
|
|
11282
|
+
*/
|
|
11283
|
+
ExperimentContentMapDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11284
|
+
return this.encode(message, writer).ldelim();
|
|
11285
|
+
};
|
|
11286
|
+
|
|
11287
|
+
/**
|
|
11288
|
+
* Decodes an ExperimentContentMapDeleted message from the specified reader or buffer.
|
|
11289
|
+
* @function decode
|
|
11290
|
+
* @memberof ExperimentContentMapDeleted
|
|
11291
|
+
* @static
|
|
11292
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11293
|
+
* @param {number} [length] Message length if known beforehand
|
|
11294
|
+
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
|
|
11295
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11296
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11297
|
+
*/
|
|
11298
|
+
ExperimentContentMapDeleted.decode = function decode(reader, length) {
|
|
11299
|
+
if (!(reader instanceof $Reader))
|
|
11300
|
+
reader = $Reader.create(reader);
|
|
11301
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExperimentContentMapDeleted();
|
|
11302
|
+
while (reader.pos < end) {
|
|
11303
|
+
var tag = reader.uint32();
|
|
11304
|
+
switch (tag >>> 3) {
|
|
11305
|
+
case 1:
|
|
11306
|
+
message.experimentName = reader.string();
|
|
11307
|
+
break;
|
|
11308
|
+
case 2:
|
|
11309
|
+
message.variationName = reader.string();
|
|
11310
|
+
break;
|
|
11311
|
+
case 3:
|
|
11312
|
+
message.deletedAt = reader.uint64();
|
|
11313
|
+
break;
|
|
11314
|
+
default:
|
|
11315
|
+
reader.skipType(tag & 7);
|
|
11316
|
+
break;
|
|
11317
|
+
}
|
|
11318
|
+
}
|
|
11319
|
+
return message;
|
|
11320
|
+
};
|
|
11321
|
+
|
|
11322
|
+
/**
|
|
11323
|
+
* Decodes an ExperimentContentMapDeleted message from the specified reader or buffer, length delimited.
|
|
11324
|
+
* @function decodeDelimited
|
|
11325
|
+
* @memberof ExperimentContentMapDeleted
|
|
11326
|
+
* @static
|
|
11327
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11328
|
+
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
|
|
11329
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11330
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11331
|
+
*/
|
|
11332
|
+
ExperimentContentMapDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
11333
|
+
if (!(reader instanceof $Reader))
|
|
11334
|
+
reader = new $Reader(reader);
|
|
11335
|
+
return this.decode(reader, reader.uint32());
|
|
11336
|
+
};
|
|
11337
|
+
|
|
11338
|
+
/**
|
|
11339
|
+
* Verifies an ExperimentContentMapDeleted message.
|
|
11340
|
+
* @function verify
|
|
11341
|
+
* @memberof ExperimentContentMapDeleted
|
|
11342
|
+
* @static
|
|
11343
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11344
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11345
|
+
*/
|
|
11346
|
+
ExperimentContentMapDeleted.verify = function verify(message) {
|
|
11347
|
+
if (typeof message !== "object" || message === null)
|
|
11348
|
+
return "object expected";
|
|
11349
|
+
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
11350
|
+
if (!$util.isString(message.experimentName))
|
|
11351
|
+
return "experimentName: string expected";
|
|
11352
|
+
if (message.variationName != null && message.hasOwnProperty("variationName"))
|
|
11353
|
+
if (!$util.isString(message.variationName))
|
|
11354
|
+
return "variationName: string expected";
|
|
11355
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
11356
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
11357
|
+
return "deletedAt: integer|Long expected";
|
|
11358
|
+
return null;
|
|
11359
|
+
};
|
|
11360
|
+
|
|
11361
|
+
/**
|
|
11362
|
+
* Creates an ExperimentContentMapDeleted message from a plain object. Also converts values to their respective internal types.
|
|
11363
|
+
* @function fromObject
|
|
11364
|
+
* @memberof ExperimentContentMapDeleted
|
|
11365
|
+
* @static
|
|
11366
|
+
* @param {Object.<string,*>} object Plain object
|
|
11367
|
+
* @returns {ExperimentContentMapDeleted} ExperimentContentMapDeleted
|
|
11368
|
+
*/
|
|
11369
|
+
ExperimentContentMapDeleted.fromObject = function fromObject(object) {
|
|
11370
|
+
if (object instanceof $root.ExperimentContentMapDeleted)
|
|
11371
|
+
return object;
|
|
11372
|
+
var message = new $root.ExperimentContentMapDeleted();
|
|
11373
|
+
if (object.experimentName != null)
|
|
11374
|
+
message.experimentName = String(object.experimentName);
|
|
11375
|
+
if (object.variationName != null)
|
|
11376
|
+
message.variationName = String(object.variationName);
|
|
11377
|
+
if (object.deletedAt != null)
|
|
11378
|
+
if ($util.Long)
|
|
11379
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
11380
|
+
else if (typeof object.deletedAt === "string")
|
|
11381
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
11382
|
+
else if (typeof object.deletedAt === "number")
|
|
11383
|
+
message.deletedAt = object.deletedAt;
|
|
11384
|
+
else if (typeof object.deletedAt === "object")
|
|
11385
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
11386
|
+
return message;
|
|
11387
|
+
};
|
|
11388
|
+
|
|
11389
|
+
/**
|
|
11390
|
+
* Creates a plain object from an ExperimentContentMapDeleted message. Also converts values to other types if specified.
|
|
11391
|
+
* @function toObject
|
|
11392
|
+
* @memberof ExperimentContentMapDeleted
|
|
11393
|
+
* @static
|
|
11394
|
+
* @param {ExperimentContentMapDeleted} message ExperimentContentMapDeleted
|
|
11395
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11396
|
+
* @returns {Object.<string,*>} Plain object
|
|
11397
|
+
*/
|
|
11398
|
+
ExperimentContentMapDeleted.toObject = function toObject(message, options) {
|
|
11399
|
+
if (!options)
|
|
11400
|
+
options = {};
|
|
11401
|
+
var object = {};
|
|
11402
|
+
if (options.defaults) {
|
|
11403
|
+
object.experimentName = "";
|
|
11404
|
+
object.variationName = "";
|
|
11405
|
+
if ($util.Long) {
|
|
11406
|
+
var long = new $util.Long(0, 0, true);
|
|
11407
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11408
|
+
} else
|
|
11409
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
11410
|
+
}
|
|
11411
|
+
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
11412
|
+
object.experimentName = message.experimentName;
|
|
11413
|
+
if (message.variationName != null && message.hasOwnProperty("variationName"))
|
|
11414
|
+
object.variationName = message.variationName;
|
|
11415
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
11416
|
+
if (typeof message.deletedAt === "number")
|
|
11417
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
11418
|
+
else
|
|
11419
|
+
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;
|
|
11420
|
+
return object;
|
|
11421
|
+
};
|
|
11422
|
+
|
|
11423
|
+
/**
|
|
11424
|
+
* Converts this ExperimentContentMapDeleted to JSON.
|
|
11425
|
+
* @function toJSON
|
|
11426
|
+
* @memberof ExperimentContentMapDeleted
|
|
11427
|
+
* @instance
|
|
11428
|
+
* @returns {Object.<string,*>} JSON object
|
|
11429
|
+
*/
|
|
11430
|
+
ExperimentContentMapDeleted.prototype.toJSON = function toJSON() {
|
|
11431
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11432
|
+
};
|
|
11433
|
+
|
|
11434
|
+
return ExperimentContentMapDeleted;
|
|
11435
|
+
})();
|
|
11436
|
+
|
|
9214
11437
|
$root.ReferralSignedUp = (function() {
|
|
9215
11438
|
|
|
9216
11439
|
/**
|