@headspace/protos-events 1.132.0 → 1.133.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 +456 -0
- package/lib/index.js +1910 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -10693,6 +10693,1712 @@ $root.ContentfulPlaylistDeleted = (function() {
|
|
|
10693
10693
|
return ContentfulPlaylistDeleted;
|
|
10694
10694
|
})();
|
|
10695
10695
|
|
|
10696
|
+
$root.ContentfulWorkoutPlaylistCreated = (function() {
|
|
10697
|
+
|
|
10698
|
+
/**
|
|
10699
|
+
* Properties of a ContentfulWorkoutPlaylistCreated.
|
|
10700
|
+
* @exports IContentfulWorkoutPlaylistCreated
|
|
10701
|
+
* @interface IContentfulWorkoutPlaylistCreated
|
|
10702
|
+
* @property {string|null} [slug] ContentfulWorkoutPlaylistCreated slug
|
|
10703
|
+
* @property {string|null} [contentType] ContentfulWorkoutPlaylistCreated contentType
|
|
10704
|
+
* @property {Object.<string,string>|null} [type] ContentfulWorkoutPlaylistCreated type
|
|
10705
|
+
* @property {Object.<string,string>|null} [title] ContentfulWorkoutPlaylistCreated title
|
|
10706
|
+
* @property {Object.<string,string>|null} [teaser] ContentfulWorkoutPlaylistCreated teaser
|
|
10707
|
+
* @property {Object.<string,string>|null} [description] ContentfulWorkoutPlaylistCreated description
|
|
10708
|
+
* @property {Object.<string,string>|null} [playerOrientation] ContentfulWorkoutPlaylistCreated playerOrientation
|
|
10709
|
+
* @property {Object.<string,contentful.IIdReference>|null} [previewMedia] ContentfulWorkoutPlaylistCreated previewMedia
|
|
10710
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [videoSegments] ContentfulWorkoutPlaylistCreated videoSegments
|
|
10711
|
+
* @property {Object.<string,number>|null} [duration] ContentfulWorkoutPlaylistCreated duration
|
|
10712
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulWorkoutPlaylistCreated tileMedia
|
|
10713
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] ContentfulWorkoutPlaylistCreated headerImageMedia
|
|
10714
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulWorkoutPlaylistCreated accessGroups
|
|
10715
|
+
* @property {number|Long|null} [createdAt] ContentfulWorkoutPlaylistCreated createdAt
|
|
10716
|
+
*/
|
|
10717
|
+
|
|
10718
|
+
/**
|
|
10719
|
+
* Constructs a new ContentfulWorkoutPlaylistCreated.
|
|
10720
|
+
* @exports ContentfulWorkoutPlaylistCreated
|
|
10721
|
+
* @classdesc Represents a ContentfulWorkoutPlaylistCreated.
|
|
10722
|
+
* @implements IContentfulWorkoutPlaylistCreated
|
|
10723
|
+
* @constructor
|
|
10724
|
+
* @param {IContentfulWorkoutPlaylistCreated=} [properties] Properties to set
|
|
10725
|
+
*/
|
|
10726
|
+
function ContentfulWorkoutPlaylistCreated(properties) {
|
|
10727
|
+
this.type = {};
|
|
10728
|
+
this.title = {};
|
|
10729
|
+
this.teaser = {};
|
|
10730
|
+
this.description = {};
|
|
10731
|
+
this.playerOrientation = {};
|
|
10732
|
+
this.previewMedia = {};
|
|
10733
|
+
this.videoSegments = {};
|
|
10734
|
+
this.duration = {};
|
|
10735
|
+
this.tileMedia = {};
|
|
10736
|
+
this.headerImageMedia = {};
|
|
10737
|
+
this.accessGroups = [];
|
|
10738
|
+
if (properties)
|
|
10739
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10740
|
+
if (properties[keys[i]] != null)
|
|
10741
|
+
this[keys[i]] = properties[keys[i]];
|
|
10742
|
+
}
|
|
10743
|
+
|
|
10744
|
+
/**
|
|
10745
|
+
* ContentfulWorkoutPlaylistCreated slug.
|
|
10746
|
+
* @member {string} slug
|
|
10747
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10748
|
+
* @instance
|
|
10749
|
+
*/
|
|
10750
|
+
ContentfulWorkoutPlaylistCreated.prototype.slug = "";
|
|
10751
|
+
|
|
10752
|
+
/**
|
|
10753
|
+
* ContentfulWorkoutPlaylistCreated contentType.
|
|
10754
|
+
* @member {string} contentType
|
|
10755
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10756
|
+
* @instance
|
|
10757
|
+
*/
|
|
10758
|
+
ContentfulWorkoutPlaylistCreated.prototype.contentType = "";
|
|
10759
|
+
|
|
10760
|
+
/**
|
|
10761
|
+
* ContentfulWorkoutPlaylistCreated type.
|
|
10762
|
+
* @member {Object.<string,string>} type
|
|
10763
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10764
|
+
* @instance
|
|
10765
|
+
*/
|
|
10766
|
+
ContentfulWorkoutPlaylistCreated.prototype.type = $util.emptyObject;
|
|
10767
|
+
|
|
10768
|
+
/**
|
|
10769
|
+
* ContentfulWorkoutPlaylistCreated title.
|
|
10770
|
+
* @member {Object.<string,string>} title
|
|
10771
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10772
|
+
* @instance
|
|
10773
|
+
*/
|
|
10774
|
+
ContentfulWorkoutPlaylistCreated.prototype.title = $util.emptyObject;
|
|
10775
|
+
|
|
10776
|
+
/**
|
|
10777
|
+
* ContentfulWorkoutPlaylistCreated teaser.
|
|
10778
|
+
* @member {Object.<string,string>} teaser
|
|
10779
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10780
|
+
* @instance
|
|
10781
|
+
*/
|
|
10782
|
+
ContentfulWorkoutPlaylistCreated.prototype.teaser = $util.emptyObject;
|
|
10783
|
+
|
|
10784
|
+
/**
|
|
10785
|
+
* ContentfulWorkoutPlaylistCreated description.
|
|
10786
|
+
* @member {Object.<string,string>} description
|
|
10787
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10788
|
+
* @instance
|
|
10789
|
+
*/
|
|
10790
|
+
ContentfulWorkoutPlaylistCreated.prototype.description = $util.emptyObject;
|
|
10791
|
+
|
|
10792
|
+
/**
|
|
10793
|
+
* ContentfulWorkoutPlaylistCreated playerOrientation.
|
|
10794
|
+
* @member {Object.<string,string>} playerOrientation
|
|
10795
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10796
|
+
* @instance
|
|
10797
|
+
*/
|
|
10798
|
+
ContentfulWorkoutPlaylistCreated.prototype.playerOrientation = $util.emptyObject;
|
|
10799
|
+
|
|
10800
|
+
/**
|
|
10801
|
+
* ContentfulWorkoutPlaylistCreated previewMedia.
|
|
10802
|
+
* @member {Object.<string,contentful.IIdReference>} previewMedia
|
|
10803
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10804
|
+
* @instance
|
|
10805
|
+
*/
|
|
10806
|
+
ContentfulWorkoutPlaylistCreated.prototype.previewMedia = $util.emptyObject;
|
|
10807
|
+
|
|
10808
|
+
/**
|
|
10809
|
+
* ContentfulWorkoutPlaylistCreated videoSegments.
|
|
10810
|
+
* @member {Object.<string,contentful.IIdReferences>} videoSegments
|
|
10811
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10812
|
+
* @instance
|
|
10813
|
+
*/
|
|
10814
|
+
ContentfulWorkoutPlaylistCreated.prototype.videoSegments = $util.emptyObject;
|
|
10815
|
+
|
|
10816
|
+
/**
|
|
10817
|
+
* ContentfulWorkoutPlaylistCreated duration.
|
|
10818
|
+
* @member {Object.<string,number>} duration
|
|
10819
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10820
|
+
* @instance
|
|
10821
|
+
*/
|
|
10822
|
+
ContentfulWorkoutPlaylistCreated.prototype.duration = $util.emptyObject;
|
|
10823
|
+
|
|
10824
|
+
/**
|
|
10825
|
+
* ContentfulWorkoutPlaylistCreated tileMedia.
|
|
10826
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
10827
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10828
|
+
* @instance
|
|
10829
|
+
*/
|
|
10830
|
+
ContentfulWorkoutPlaylistCreated.prototype.tileMedia = $util.emptyObject;
|
|
10831
|
+
|
|
10832
|
+
/**
|
|
10833
|
+
* ContentfulWorkoutPlaylistCreated headerImageMedia.
|
|
10834
|
+
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
10835
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10836
|
+
* @instance
|
|
10837
|
+
*/
|
|
10838
|
+
ContentfulWorkoutPlaylistCreated.prototype.headerImageMedia = $util.emptyObject;
|
|
10839
|
+
|
|
10840
|
+
/**
|
|
10841
|
+
* ContentfulWorkoutPlaylistCreated accessGroups.
|
|
10842
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
10843
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10844
|
+
* @instance
|
|
10845
|
+
*/
|
|
10846
|
+
ContentfulWorkoutPlaylistCreated.prototype.accessGroups = $util.emptyArray;
|
|
10847
|
+
|
|
10848
|
+
/**
|
|
10849
|
+
* ContentfulWorkoutPlaylistCreated createdAt.
|
|
10850
|
+
* @member {number|Long} createdAt
|
|
10851
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10852
|
+
* @instance
|
|
10853
|
+
*/
|
|
10854
|
+
ContentfulWorkoutPlaylistCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10855
|
+
|
|
10856
|
+
/**
|
|
10857
|
+
* Creates a new ContentfulWorkoutPlaylistCreated instance using the specified properties.
|
|
10858
|
+
* @function create
|
|
10859
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10860
|
+
* @static
|
|
10861
|
+
* @param {IContentfulWorkoutPlaylistCreated=} [properties] Properties to set
|
|
10862
|
+
* @returns {ContentfulWorkoutPlaylistCreated} ContentfulWorkoutPlaylistCreated instance
|
|
10863
|
+
*/
|
|
10864
|
+
ContentfulWorkoutPlaylistCreated.create = function create(properties) {
|
|
10865
|
+
return new ContentfulWorkoutPlaylistCreated(properties);
|
|
10866
|
+
};
|
|
10867
|
+
|
|
10868
|
+
/**
|
|
10869
|
+
* Encodes the specified ContentfulWorkoutPlaylistCreated message. Does not implicitly {@link ContentfulWorkoutPlaylistCreated.verify|verify} messages.
|
|
10870
|
+
* @function encode
|
|
10871
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10872
|
+
* @static
|
|
10873
|
+
* @param {IContentfulWorkoutPlaylistCreated} message ContentfulWorkoutPlaylistCreated message or plain object to encode
|
|
10874
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10875
|
+
* @returns {$protobuf.Writer} Writer
|
|
10876
|
+
*/
|
|
10877
|
+
ContentfulWorkoutPlaylistCreated.encode = function encode(message, writer) {
|
|
10878
|
+
if (!writer)
|
|
10879
|
+
writer = $Writer.create();
|
|
10880
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
10881
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
10882
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
10883
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
10884
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
10885
|
+
for (var keys = Object.keys(message.type), i = 0; i < keys.length; ++i)
|
|
10886
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.type[keys[i]]).ldelim();
|
|
10887
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
10888
|
+
for (var keys = Object.keys(message.title), i = 0; i < keys.length; ++i)
|
|
10889
|
+
writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.title[keys[i]]).ldelim();
|
|
10890
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
10891
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
10892
|
+
writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.teaser[keys[i]]).ldelim();
|
|
10893
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
10894
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
10895
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
|
|
10896
|
+
if (message.playerOrientation != null && message.hasOwnProperty("playerOrientation"))
|
|
10897
|
+
for (var keys = Object.keys(message.playerOrientation), i = 0; i < keys.length; ++i)
|
|
10898
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.playerOrientation[keys[i]]).ldelim();
|
|
10899
|
+
if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
|
|
10900
|
+
for (var keys = Object.keys(message.previewMedia), i = 0; i < keys.length; ++i) {
|
|
10901
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
10902
|
+
$root.contentful.IdReference.encode(message.previewMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
10903
|
+
}
|
|
10904
|
+
if (message.videoSegments != null && message.hasOwnProperty("videoSegments"))
|
|
10905
|
+
for (var keys = Object.keys(message.videoSegments), i = 0; i < keys.length; ++i) {
|
|
10906
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
10907
|
+
$root.contentful.IdReferences.encode(message.videoSegments[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
10908
|
+
}
|
|
10909
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
10910
|
+
for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
|
|
10911
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
|
|
10912
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
10913
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
10914
|
+
writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
10915
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
10916
|
+
}
|
|
10917
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
|
|
10918
|
+
for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
10919
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
10920
|
+
$root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
10921
|
+
}
|
|
10922
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
10923
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
10924
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
10925
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
10926
|
+
writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.createdAt);
|
|
10927
|
+
return writer;
|
|
10928
|
+
};
|
|
10929
|
+
|
|
10930
|
+
/**
|
|
10931
|
+
* Encodes the specified ContentfulWorkoutPlaylistCreated message, length delimited. Does not implicitly {@link ContentfulWorkoutPlaylistCreated.verify|verify} messages.
|
|
10932
|
+
* @function encodeDelimited
|
|
10933
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10934
|
+
* @static
|
|
10935
|
+
* @param {IContentfulWorkoutPlaylistCreated} message ContentfulWorkoutPlaylistCreated message or plain object to encode
|
|
10936
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10937
|
+
* @returns {$protobuf.Writer} Writer
|
|
10938
|
+
*/
|
|
10939
|
+
ContentfulWorkoutPlaylistCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10940
|
+
return this.encode(message, writer).ldelim();
|
|
10941
|
+
};
|
|
10942
|
+
|
|
10943
|
+
/**
|
|
10944
|
+
* Decodes a ContentfulWorkoutPlaylistCreated message from the specified reader or buffer.
|
|
10945
|
+
* @function decode
|
|
10946
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10947
|
+
* @static
|
|
10948
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10949
|
+
* @param {number} [length] Message length if known beforehand
|
|
10950
|
+
* @returns {ContentfulWorkoutPlaylistCreated} ContentfulWorkoutPlaylistCreated
|
|
10951
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10952
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10953
|
+
*/
|
|
10954
|
+
ContentfulWorkoutPlaylistCreated.decode = function decode(reader, length) {
|
|
10955
|
+
if (!(reader instanceof $Reader))
|
|
10956
|
+
reader = $Reader.create(reader);
|
|
10957
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulWorkoutPlaylistCreated(), key;
|
|
10958
|
+
while (reader.pos < end) {
|
|
10959
|
+
var tag = reader.uint32();
|
|
10960
|
+
switch (tag >>> 3) {
|
|
10961
|
+
case 1:
|
|
10962
|
+
message.slug = reader.string();
|
|
10963
|
+
break;
|
|
10964
|
+
case 2:
|
|
10965
|
+
message.contentType = reader.string();
|
|
10966
|
+
break;
|
|
10967
|
+
case 3:
|
|
10968
|
+
reader.skip().pos++;
|
|
10969
|
+
if (message.type === $util.emptyObject)
|
|
10970
|
+
message.type = {};
|
|
10971
|
+
key = reader.string();
|
|
10972
|
+
reader.pos++;
|
|
10973
|
+
message.type[key] = reader.string();
|
|
10974
|
+
break;
|
|
10975
|
+
case 4:
|
|
10976
|
+
reader.skip().pos++;
|
|
10977
|
+
if (message.title === $util.emptyObject)
|
|
10978
|
+
message.title = {};
|
|
10979
|
+
key = reader.string();
|
|
10980
|
+
reader.pos++;
|
|
10981
|
+
message.title[key] = reader.string();
|
|
10982
|
+
break;
|
|
10983
|
+
case 5:
|
|
10984
|
+
reader.skip().pos++;
|
|
10985
|
+
if (message.teaser === $util.emptyObject)
|
|
10986
|
+
message.teaser = {};
|
|
10987
|
+
key = reader.string();
|
|
10988
|
+
reader.pos++;
|
|
10989
|
+
message.teaser[key] = reader.string();
|
|
10990
|
+
break;
|
|
10991
|
+
case 6:
|
|
10992
|
+
reader.skip().pos++;
|
|
10993
|
+
if (message.description === $util.emptyObject)
|
|
10994
|
+
message.description = {};
|
|
10995
|
+
key = reader.string();
|
|
10996
|
+
reader.pos++;
|
|
10997
|
+
message.description[key] = reader.string();
|
|
10998
|
+
break;
|
|
10999
|
+
case 7:
|
|
11000
|
+
reader.skip().pos++;
|
|
11001
|
+
if (message.playerOrientation === $util.emptyObject)
|
|
11002
|
+
message.playerOrientation = {};
|
|
11003
|
+
key = reader.string();
|
|
11004
|
+
reader.pos++;
|
|
11005
|
+
message.playerOrientation[key] = reader.string();
|
|
11006
|
+
break;
|
|
11007
|
+
case 8:
|
|
11008
|
+
reader.skip().pos++;
|
|
11009
|
+
if (message.previewMedia === $util.emptyObject)
|
|
11010
|
+
message.previewMedia = {};
|
|
11011
|
+
key = reader.string();
|
|
11012
|
+
reader.pos++;
|
|
11013
|
+
message.previewMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
11014
|
+
break;
|
|
11015
|
+
case 9:
|
|
11016
|
+
reader.skip().pos++;
|
|
11017
|
+
if (message.videoSegments === $util.emptyObject)
|
|
11018
|
+
message.videoSegments = {};
|
|
11019
|
+
key = reader.string();
|
|
11020
|
+
reader.pos++;
|
|
11021
|
+
message.videoSegments[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
11022
|
+
break;
|
|
11023
|
+
case 10:
|
|
11024
|
+
reader.skip().pos++;
|
|
11025
|
+
if (message.duration === $util.emptyObject)
|
|
11026
|
+
message.duration = {};
|
|
11027
|
+
key = reader.string();
|
|
11028
|
+
reader.pos++;
|
|
11029
|
+
message.duration[key] = reader.int32();
|
|
11030
|
+
break;
|
|
11031
|
+
case 11:
|
|
11032
|
+
reader.skip().pos++;
|
|
11033
|
+
if (message.tileMedia === $util.emptyObject)
|
|
11034
|
+
message.tileMedia = {};
|
|
11035
|
+
key = reader.string();
|
|
11036
|
+
reader.pos++;
|
|
11037
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
11038
|
+
break;
|
|
11039
|
+
case 12:
|
|
11040
|
+
reader.skip().pos++;
|
|
11041
|
+
if (message.headerImageMedia === $util.emptyObject)
|
|
11042
|
+
message.headerImageMedia = {};
|
|
11043
|
+
key = reader.string();
|
|
11044
|
+
reader.pos++;
|
|
11045
|
+
message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
11046
|
+
break;
|
|
11047
|
+
case 13:
|
|
11048
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
11049
|
+
message.accessGroups = [];
|
|
11050
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
11051
|
+
break;
|
|
11052
|
+
case 14:
|
|
11053
|
+
message.createdAt = reader.uint64();
|
|
11054
|
+
break;
|
|
11055
|
+
default:
|
|
11056
|
+
reader.skipType(tag & 7);
|
|
11057
|
+
break;
|
|
11058
|
+
}
|
|
11059
|
+
}
|
|
11060
|
+
return message;
|
|
11061
|
+
};
|
|
11062
|
+
|
|
11063
|
+
/**
|
|
11064
|
+
* Decodes a ContentfulWorkoutPlaylistCreated message from the specified reader or buffer, length delimited.
|
|
11065
|
+
* @function decodeDelimited
|
|
11066
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
11067
|
+
* @static
|
|
11068
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11069
|
+
* @returns {ContentfulWorkoutPlaylistCreated} ContentfulWorkoutPlaylistCreated
|
|
11070
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11071
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11072
|
+
*/
|
|
11073
|
+
ContentfulWorkoutPlaylistCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
11074
|
+
if (!(reader instanceof $Reader))
|
|
11075
|
+
reader = new $Reader(reader);
|
|
11076
|
+
return this.decode(reader, reader.uint32());
|
|
11077
|
+
};
|
|
11078
|
+
|
|
11079
|
+
/**
|
|
11080
|
+
* Verifies a ContentfulWorkoutPlaylistCreated message.
|
|
11081
|
+
* @function verify
|
|
11082
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
11083
|
+
* @static
|
|
11084
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11085
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11086
|
+
*/
|
|
11087
|
+
ContentfulWorkoutPlaylistCreated.verify = function verify(message) {
|
|
11088
|
+
if (typeof message !== "object" || message === null)
|
|
11089
|
+
return "object expected";
|
|
11090
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11091
|
+
if (!$util.isString(message.slug))
|
|
11092
|
+
return "slug: string expected";
|
|
11093
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
11094
|
+
if (!$util.isString(message.contentType))
|
|
11095
|
+
return "contentType: string expected";
|
|
11096
|
+
if (message.type != null && message.hasOwnProperty("type")) {
|
|
11097
|
+
if (!$util.isObject(message.type))
|
|
11098
|
+
return "type: object expected";
|
|
11099
|
+
var key = Object.keys(message.type);
|
|
11100
|
+
for (var i = 0; i < key.length; ++i)
|
|
11101
|
+
if (!$util.isString(message.type[key[i]]))
|
|
11102
|
+
return "type: string{k:string} expected";
|
|
11103
|
+
}
|
|
11104
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
11105
|
+
if (!$util.isObject(message.title))
|
|
11106
|
+
return "title: object expected";
|
|
11107
|
+
var key = Object.keys(message.title);
|
|
11108
|
+
for (var i = 0; i < key.length; ++i)
|
|
11109
|
+
if (!$util.isString(message.title[key[i]]))
|
|
11110
|
+
return "title: string{k:string} expected";
|
|
11111
|
+
}
|
|
11112
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
11113
|
+
if (!$util.isObject(message.teaser))
|
|
11114
|
+
return "teaser: object expected";
|
|
11115
|
+
var key = Object.keys(message.teaser);
|
|
11116
|
+
for (var i = 0; i < key.length; ++i)
|
|
11117
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
11118
|
+
return "teaser: string{k:string} expected";
|
|
11119
|
+
}
|
|
11120
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
11121
|
+
if (!$util.isObject(message.description))
|
|
11122
|
+
return "description: object expected";
|
|
11123
|
+
var key = Object.keys(message.description);
|
|
11124
|
+
for (var i = 0; i < key.length; ++i)
|
|
11125
|
+
if (!$util.isString(message.description[key[i]]))
|
|
11126
|
+
return "description: string{k:string} expected";
|
|
11127
|
+
}
|
|
11128
|
+
if (message.playerOrientation != null && message.hasOwnProperty("playerOrientation")) {
|
|
11129
|
+
if (!$util.isObject(message.playerOrientation))
|
|
11130
|
+
return "playerOrientation: object expected";
|
|
11131
|
+
var key = Object.keys(message.playerOrientation);
|
|
11132
|
+
for (var i = 0; i < key.length; ++i)
|
|
11133
|
+
if (!$util.isString(message.playerOrientation[key[i]]))
|
|
11134
|
+
return "playerOrientation: string{k:string} expected";
|
|
11135
|
+
}
|
|
11136
|
+
if (message.previewMedia != null && message.hasOwnProperty("previewMedia")) {
|
|
11137
|
+
if (!$util.isObject(message.previewMedia))
|
|
11138
|
+
return "previewMedia: object expected";
|
|
11139
|
+
var key = Object.keys(message.previewMedia);
|
|
11140
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11141
|
+
var error = $root.contentful.IdReference.verify(message.previewMedia[key[i]]);
|
|
11142
|
+
if (error)
|
|
11143
|
+
return "previewMedia." + error;
|
|
11144
|
+
}
|
|
11145
|
+
}
|
|
11146
|
+
if (message.videoSegments != null && message.hasOwnProperty("videoSegments")) {
|
|
11147
|
+
if (!$util.isObject(message.videoSegments))
|
|
11148
|
+
return "videoSegments: object expected";
|
|
11149
|
+
var key = Object.keys(message.videoSegments);
|
|
11150
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11151
|
+
var error = $root.contentful.IdReferences.verify(message.videoSegments[key[i]]);
|
|
11152
|
+
if (error)
|
|
11153
|
+
return "videoSegments." + error;
|
|
11154
|
+
}
|
|
11155
|
+
}
|
|
11156
|
+
if (message.duration != null && message.hasOwnProperty("duration")) {
|
|
11157
|
+
if (!$util.isObject(message.duration))
|
|
11158
|
+
return "duration: object expected";
|
|
11159
|
+
var key = Object.keys(message.duration);
|
|
11160
|
+
for (var i = 0; i < key.length; ++i)
|
|
11161
|
+
if (!$util.isInteger(message.duration[key[i]]))
|
|
11162
|
+
return "duration: integer{k:string} expected";
|
|
11163
|
+
}
|
|
11164
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
11165
|
+
if (!$util.isObject(message.tileMedia))
|
|
11166
|
+
return "tileMedia: object expected";
|
|
11167
|
+
var key = Object.keys(message.tileMedia);
|
|
11168
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11169
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
11170
|
+
if (error)
|
|
11171
|
+
return "tileMedia." + error;
|
|
11172
|
+
}
|
|
11173
|
+
}
|
|
11174
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
|
|
11175
|
+
if (!$util.isObject(message.headerImageMedia))
|
|
11176
|
+
return "headerImageMedia: object expected";
|
|
11177
|
+
var key = Object.keys(message.headerImageMedia);
|
|
11178
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11179
|
+
var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
|
|
11180
|
+
if (error)
|
|
11181
|
+
return "headerImageMedia." + error;
|
|
11182
|
+
}
|
|
11183
|
+
}
|
|
11184
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
11185
|
+
if (!Array.isArray(message.accessGroups))
|
|
11186
|
+
return "accessGroups: array expected";
|
|
11187
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
11188
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
11189
|
+
if (error)
|
|
11190
|
+
return "accessGroups." + error;
|
|
11191
|
+
}
|
|
11192
|
+
}
|
|
11193
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11194
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
11195
|
+
return "createdAt: integer|Long expected";
|
|
11196
|
+
return null;
|
|
11197
|
+
};
|
|
11198
|
+
|
|
11199
|
+
/**
|
|
11200
|
+
* Creates a ContentfulWorkoutPlaylistCreated message from a plain object. Also converts values to their respective internal types.
|
|
11201
|
+
* @function fromObject
|
|
11202
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
11203
|
+
* @static
|
|
11204
|
+
* @param {Object.<string,*>} object Plain object
|
|
11205
|
+
* @returns {ContentfulWorkoutPlaylistCreated} ContentfulWorkoutPlaylistCreated
|
|
11206
|
+
*/
|
|
11207
|
+
ContentfulWorkoutPlaylistCreated.fromObject = function fromObject(object) {
|
|
11208
|
+
if (object instanceof $root.ContentfulWorkoutPlaylistCreated)
|
|
11209
|
+
return object;
|
|
11210
|
+
var message = new $root.ContentfulWorkoutPlaylistCreated();
|
|
11211
|
+
if (object.slug != null)
|
|
11212
|
+
message.slug = String(object.slug);
|
|
11213
|
+
if (object.contentType != null)
|
|
11214
|
+
message.contentType = String(object.contentType);
|
|
11215
|
+
if (object.type) {
|
|
11216
|
+
if (typeof object.type !== "object")
|
|
11217
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.type: object expected");
|
|
11218
|
+
message.type = {};
|
|
11219
|
+
for (var keys = Object.keys(object.type), i = 0; i < keys.length; ++i)
|
|
11220
|
+
message.type[keys[i]] = String(object.type[keys[i]]);
|
|
11221
|
+
}
|
|
11222
|
+
if (object.title) {
|
|
11223
|
+
if (typeof object.title !== "object")
|
|
11224
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.title: object expected");
|
|
11225
|
+
message.title = {};
|
|
11226
|
+
for (var keys = Object.keys(object.title), i = 0; i < keys.length; ++i)
|
|
11227
|
+
message.title[keys[i]] = String(object.title[keys[i]]);
|
|
11228
|
+
}
|
|
11229
|
+
if (object.teaser) {
|
|
11230
|
+
if (typeof object.teaser !== "object")
|
|
11231
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.teaser: object expected");
|
|
11232
|
+
message.teaser = {};
|
|
11233
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
11234
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
11235
|
+
}
|
|
11236
|
+
if (object.description) {
|
|
11237
|
+
if (typeof object.description !== "object")
|
|
11238
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.description: object expected");
|
|
11239
|
+
message.description = {};
|
|
11240
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
11241
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
11242
|
+
}
|
|
11243
|
+
if (object.playerOrientation) {
|
|
11244
|
+
if (typeof object.playerOrientation !== "object")
|
|
11245
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.playerOrientation: object expected");
|
|
11246
|
+
message.playerOrientation = {};
|
|
11247
|
+
for (var keys = Object.keys(object.playerOrientation), i = 0; i < keys.length; ++i)
|
|
11248
|
+
message.playerOrientation[keys[i]] = String(object.playerOrientation[keys[i]]);
|
|
11249
|
+
}
|
|
11250
|
+
if (object.previewMedia) {
|
|
11251
|
+
if (typeof object.previewMedia !== "object")
|
|
11252
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.previewMedia: object expected");
|
|
11253
|
+
message.previewMedia = {};
|
|
11254
|
+
for (var keys = Object.keys(object.previewMedia), i = 0; i < keys.length; ++i) {
|
|
11255
|
+
if (typeof object.previewMedia[keys[i]] !== "object")
|
|
11256
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.previewMedia: object expected");
|
|
11257
|
+
message.previewMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.previewMedia[keys[i]]);
|
|
11258
|
+
}
|
|
11259
|
+
}
|
|
11260
|
+
if (object.videoSegments) {
|
|
11261
|
+
if (typeof object.videoSegments !== "object")
|
|
11262
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.videoSegments: object expected");
|
|
11263
|
+
message.videoSegments = {};
|
|
11264
|
+
for (var keys = Object.keys(object.videoSegments), i = 0; i < keys.length; ++i) {
|
|
11265
|
+
if (typeof object.videoSegments[keys[i]] !== "object")
|
|
11266
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.videoSegments: object expected");
|
|
11267
|
+
message.videoSegments[keys[i]] = $root.contentful.IdReferences.fromObject(object.videoSegments[keys[i]]);
|
|
11268
|
+
}
|
|
11269
|
+
}
|
|
11270
|
+
if (object.duration) {
|
|
11271
|
+
if (typeof object.duration !== "object")
|
|
11272
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.duration: object expected");
|
|
11273
|
+
message.duration = {};
|
|
11274
|
+
for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
|
|
11275
|
+
message.duration[keys[i]] = object.duration[keys[i]] | 0;
|
|
11276
|
+
}
|
|
11277
|
+
if (object.tileMedia) {
|
|
11278
|
+
if (typeof object.tileMedia !== "object")
|
|
11279
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.tileMedia: object expected");
|
|
11280
|
+
message.tileMedia = {};
|
|
11281
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
11282
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
11283
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.tileMedia: object expected");
|
|
11284
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
11285
|
+
}
|
|
11286
|
+
}
|
|
11287
|
+
if (object.headerImageMedia) {
|
|
11288
|
+
if (typeof object.headerImageMedia !== "object")
|
|
11289
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.headerImageMedia: object expected");
|
|
11290
|
+
message.headerImageMedia = {};
|
|
11291
|
+
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
11292
|
+
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
11293
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.headerImageMedia: object expected");
|
|
11294
|
+
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
11295
|
+
}
|
|
11296
|
+
}
|
|
11297
|
+
if (object.accessGroups) {
|
|
11298
|
+
if (!Array.isArray(object.accessGroups))
|
|
11299
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.accessGroups: array expected");
|
|
11300
|
+
message.accessGroups = [];
|
|
11301
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
11302
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
11303
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.accessGroups: object expected");
|
|
11304
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
11305
|
+
}
|
|
11306
|
+
}
|
|
11307
|
+
if (object.createdAt != null)
|
|
11308
|
+
if ($util.Long)
|
|
11309
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
11310
|
+
else if (typeof object.createdAt === "string")
|
|
11311
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
11312
|
+
else if (typeof object.createdAt === "number")
|
|
11313
|
+
message.createdAt = object.createdAt;
|
|
11314
|
+
else if (typeof object.createdAt === "object")
|
|
11315
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
11316
|
+
return message;
|
|
11317
|
+
};
|
|
11318
|
+
|
|
11319
|
+
/**
|
|
11320
|
+
* Creates a plain object from a ContentfulWorkoutPlaylistCreated message. Also converts values to other types if specified.
|
|
11321
|
+
* @function toObject
|
|
11322
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
11323
|
+
* @static
|
|
11324
|
+
* @param {ContentfulWorkoutPlaylistCreated} message ContentfulWorkoutPlaylistCreated
|
|
11325
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11326
|
+
* @returns {Object.<string,*>} Plain object
|
|
11327
|
+
*/
|
|
11328
|
+
ContentfulWorkoutPlaylistCreated.toObject = function toObject(message, options) {
|
|
11329
|
+
if (!options)
|
|
11330
|
+
options = {};
|
|
11331
|
+
var object = {};
|
|
11332
|
+
if (options.arrays || options.defaults)
|
|
11333
|
+
object.accessGroups = [];
|
|
11334
|
+
if (options.objects || options.defaults) {
|
|
11335
|
+
object.type = {};
|
|
11336
|
+
object.title = {};
|
|
11337
|
+
object.teaser = {};
|
|
11338
|
+
object.description = {};
|
|
11339
|
+
object.playerOrientation = {};
|
|
11340
|
+
object.previewMedia = {};
|
|
11341
|
+
object.videoSegments = {};
|
|
11342
|
+
object.duration = {};
|
|
11343
|
+
object.tileMedia = {};
|
|
11344
|
+
object.headerImageMedia = {};
|
|
11345
|
+
}
|
|
11346
|
+
if (options.defaults) {
|
|
11347
|
+
object.slug = "";
|
|
11348
|
+
object.contentType = "";
|
|
11349
|
+
if ($util.Long) {
|
|
11350
|
+
var long = new $util.Long(0, 0, true);
|
|
11351
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11352
|
+
} else
|
|
11353
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
11354
|
+
}
|
|
11355
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11356
|
+
object.slug = message.slug;
|
|
11357
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
11358
|
+
object.contentType = message.contentType;
|
|
11359
|
+
var keys2;
|
|
11360
|
+
if (message.type && (keys2 = Object.keys(message.type)).length) {
|
|
11361
|
+
object.type = {};
|
|
11362
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11363
|
+
object.type[keys2[j]] = message.type[keys2[j]];
|
|
11364
|
+
}
|
|
11365
|
+
if (message.title && (keys2 = Object.keys(message.title)).length) {
|
|
11366
|
+
object.title = {};
|
|
11367
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11368
|
+
object.title[keys2[j]] = message.title[keys2[j]];
|
|
11369
|
+
}
|
|
11370
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
11371
|
+
object.teaser = {};
|
|
11372
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11373
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
11374
|
+
}
|
|
11375
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
11376
|
+
object.description = {};
|
|
11377
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11378
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
11379
|
+
}
|
|
11380
|
+
if (message.playerOrientation && (keys2 = Object.keys(message.playerOrientation)).length) {
|
|
11381
|
+
object.playerOrientation = {};
|
|
11382
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11383
|
+
object.playerOrientation[keys2[j]] = message.playerOrientation[keys2[j]];
|
|
11384
|
+
}
|
|
11385
|
+
if (message.previewMedia && (keys2 = Object.keys(message.previewMedia)).length) {
|
|
11386
|
+
object.previewMedia = {};
|
|
11387
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11388
|
+
object.previewMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.previewMedia[keys2[j]], options);
|
|
11389
|
+
}
|
|
11390
|
+
if (message.videoSegments && (keys2 = Object.keys(message.videoSegments)).length) {
|
|
11391
|
+
object.videoSegments = {};
|
|
11392
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11393
|
+
object.videoSegments[keys2[j]] = $root.contentful.IdReferences.toObject(message.videoSegments[keys2[j]], options);
|
|
11394
|
+
}
|
|
11395
|
+
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
11396
|
+
object.duration = {};
|
|
11397
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11398
|
+
object.duration[keys2[j]] = message.duration[keys2[j]];
|
|
11399
|
+
}
|
|
11400
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
11401
|
+
object.tileMedia = {};
|
|
11402
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11403
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
11404
|
+
}
|
|
11405
|
+
if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
|
|
11406
|
+
object.headerImageMedia = {};
|
|
11407
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11408
|
+
object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
|
|
11409
|
+
}
|
|
11410
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
11411
|
+
object.accessGroups = [];
|
|
11412
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
11413
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
11414
|
+
}
|
|
11415
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11416
|
+
if (typeof message.createdAt === "number")
|
|
11417
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
11418
|
+
else
|
|
11419
|
+
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;
|
|
11420
|
+
return object;
|
|
11421
|
+
};
|
|
11422
|
+
|
|
11423
|
+
/**
|
|
11424
|
+
* Converts this ContentfulWorkoutPlaylistCreated to JSON.
|
|
11425
|
+
* @function toJSON
|
|
11426
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
11427
|
+
* @instance
|
|
11428
|
+
* @returns {Object.<string,*>} JSON object
|
|
11429
|
+
*/
|
|
11430
|
+
ContentfulWorkoutPlaylistCreated.prototype.toJSON = function toJSON() {
|
|
11431
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11432
|
+
};
|
|
11433
|
+
|
|
11434
|
+
return ContentfulWorkoutPlaylistCreated;
|
|
11435
|
+
})();
|
|
11436
|
+
|
|
11437
|
+
$root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
11438
|
+
|
|
11439
|
+
/**
|
|
11440
|
+
* Properties of a ContentfulWorkoutPlaylistUpdated.
|
|
11441
|
+
* @exports IContentfulWorkoutPlaylistUpdated
|
|
11442
|
+
* @interface IContentfulWorkoutPlaylistUpdated
|
|
11443
|
+
* @property {string|null} [slug] ContentfulWorkoutPlaylistUpdated slug
|
|
11444
|
+
* @property {string|null} [contentType] ContentfulWorkoutPlaylistUpdated contentType
|
|
11445
|
+
* @property {Object.<string,string>|null} [type] ContentfulWorkoutPlaylistUpdated type
|
|
11446
|
+
* @property {Object.<string,string>|null} [title] ContentfulWorkoutPlaylistUpdated title
|
|
11447
|
+
* @property {Object.<string,string>|null} [teaser] ContentfulWorkoutPlaylistUpdated teaser
|
|
11448
|
+
* @property {Object.<string,string>|null} [description] ContentfulWorkoutPlaylistUpdated description
|
|
11449
|
+
* @property {Object.<string,string>|null} [playerOrientation] ContentfulWorkoutPlaylistUpdated playerOrientation
|
|
11450
|
+
* @property {Object.<string,contentful.IIdReference>|null} [previewMedia] ContentfulWorkoutPlaylistUpdated previewMedia
|
|
11451
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [videoSegments] ContentfulWorkoutPlaylistUpdated videoSegments
|
|
11452
|
+
* @property {Object.<string,number>|null} [duration] ContentfulWorkoutPlaylistUpdated duration
|
|
11453
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulWorkoutPlaylistUpdated tileMedia
|
|
11454
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] ContentfulWorkoutPlaylistUpdated headerImageMedia
|
|
11455
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulWorkoutPlaylistUpdated accessGroups
|
|
11456
|
+
* @property {number|Long|null} [updatedAt] ContentfulWorkoutPlaylistUpdated updatedAt
|
|
11457
|
+
*/
|
|
11458
|
+
|
|
11459
|
+
/**
|
|
11460
|
+
* Constructs a new ContentfulWorkoutPlaylistUpdated.
|
|
11461
|
+
* @exports ContentfulWorkoutPlaylistUpdated
|
|
11462
|
+
* @classdesc Represents a ContentfulWorkoutPlaylistUpdated.
|
|
11463
|
+
* @implements IContentfulWorkoutPlaylistUpdated
|
|
11464
|
+
* @constructor
|
|
11465
|
+
* @param {IContentfulWorkoutPlaylistUpdated=} [properties] Properties to set
|
|
11466
|
+
*/
|
|
11467
|
+
function ContentfulWorkoutPlaylistUpdated(properties) {
|
|
11468
|
+
this.type = {};
|
|
11469
|
+
this.title = {};
|
|
11470
|
+
this.teaser = {};
|
|
11471
|
+
this.description = {};
|
|
11472
|
+
this.playerOrientation = {};
|
|
11473
|
+
this.previewMedia = {};
|
|
11474
|
+
this.videoSegments = {};
|
|
11475
|
+
this.duration = {};
|
|
11476
|
+
this.tileMedia = {};
|
|
11477
|
+
this.headerImageMedia = {};
|
|
11478
|
+
this.accessGroups = [];
|
|
11479
|
+
if (properties)
|
|
11480
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11481
|
+
if (properties[keys[i]] != null)
|
|
11482
|
+
this[keys[i]] = properties[keys[i]];
|
|
11483
|
+
}
|
|
11484
|
+
|
|
11485
|
+
/**
|
|
11486
|
+
* ContentfulWorkoutPlaylistUpdated slug.
|
|
11487
|
+
* @member {string} slug
|
|
11488
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11489
|
+
* @instance
|
|
11490
|
+
*/
|
|
11491
|
+
ContentfulWorkoutPlaylistUpdated.prototype.slug = "";
|
|
11492
|
+
|
|
11493
|
+
/**
|
|
11494
|
+
* ContentfulWorkoutPlaylistUpdated contentType.
|
|
11495
|
+
* @member {string} contentType
|
|
11496
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11497
|
+
* @instance
|
|
11498
|
+
*/
|
|
11499
|
+
ContentfulWorkoutPlaylistUpdated.prototype.contentType = "";
|
|
11500
|
+
|
|
11501
|
+
/**
|
|
11502
|
+
* ContentfulWorkoutPlaylistUpdated type.
|
|
11503
|
+
* @member {Object.<string,string>} type
|
|
11504
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11505
|
+
* @instance
|
|
11506
|
+
*/
|
|
11507
|
+
ContentfulWorkoutPlaylistUpdated.prototype.type = $util.emptyObject;
|
|
11508
|
+
|
|
11509
|
+
/**
|
|
11510
|
+
* ContentfulWorkoutPlaylistUpdated title.
|
|
11511
|
+
* @member {Object.<string,string>} title
|
|
11512
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11513
|
+
* @instance
|
|
11514
|
+
*/
|
|
11515
|
+
ContentfulWorkoutPlaylistUpdated.prototype.title = $util.emptyObject;
|
|
11516
|
+
|
|
11517
|
+
/**
|
|
11518
|
+
* ContentfulWorkoutPlaylistUpdated teaser.
|
|
11519
|
+
* @member {Object.<string,string>} teaser
|
|
11520
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11521
|
+
* @instance
|
|
11522
|
+
*/
|
|
11523
|
+
ContentfulWorkoutPlaylistUpdated.prototype.teaser = $util.emptyObject;
|
|
11524
|
+
|
|
11525
|
+
/**
|
|
11526
|
+
* ContentfulWorkoutPlaylistUpdated description.
|
|
11527
|
+
* @member {Object.<string,string>} description
|
|
11528
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11529
|
+
* @instance
|
|
11530
|
+
*/
|
|
11531
|
+
ContentfulWorkoutPlaylistUpdated.prototype.description = $util.emptyObject;
|
|
11532
|
+
|
|
11533
|
+
/**
|
|
11534
|
+
* ContentfulWorkoutPlaylistUpdated playerOrientation.
|
|
11535
|
+
* @member {Object.<string,string>} playerOrientation
|
|
11536
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11537
|
+
* @instance
|
|
11538
|
+
*/
|
|
11539
|
+
ContentfulWorkoutPlaylistUpdated.prototype.playerOrientation = $util.emptyObject;
|
|
11540
|
+
|
|
11541
|
+
/**
|
|
11542
|
+
* ContentfulWorkoutPlaylistUpdated previewMedia.
|
|
11543
|
+
* @member {Object.<string,contentful.IIdReference>} previewMedia
|
|
11544
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11545
|
+
* @instance
|
|
11546
|
+
*/
|
|
11547
|
+
ContentfulWorkoutPlaylistUpdated.prototype.previewMedia = $util.emptyObject;
|
|
11548
|
+
|
|
11549
|
+
/**
|
|
11550
|
+
* ContentfulWorkoutPlaylistUpdated videoSegments.
|
|
11551
|
+
* @member {Object.<string,contentful.IIdReferences>} videoSegments
|
|
11552
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11553
|
+
* @instance
|
|
11554
|
+
*/
|
|
11555
|
+
ContentfulWorkoutPlaylistUpdated.prototype.videoSegments = $util.emptyObject;
|
|
11556
|
+
|
|
11557
|
+
/**
|
|
11558
|
+
* ContentfulWorkoutPlaylistUpdated duration.
|
|
11559
|
+
* @member {Object.<string,number>} duration
|
|
11560
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11561
|
+
* @instance
|
|
11562
|
+
*/
|
|
11563
|
+
ContentfulWorkoutPlaylistUpdated.prototype.duration = $util.emptyObject;
|
|
11564
|
+
|
|
11565
|
+
/**
|
|
11566
|
+
* ContentfulWorkoutPlaylistUpdated tileMedia.
|
|
11567
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
11568
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11569
|
+
* @instance
|
|
11570
|
+
*/
|
|
11571
|
+
ContentfulWorkoutPlaylistUpdated.prototype.tileMedia = $util.emptyObject;
|
|
11572
|
+
|
|
11573
|
+
/**
|
|
11574
|
+
* ContentfulWorkoutPlaylistUpdated headerImageMedia.
|
|
11575
|
+
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
11576
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11577
|
+
* @instance
|
|
11578
|
+
*/
|
|
11579
|
+
ContentfulWorkoutPlaylistUpdated.prototype.headerImageMedia = $util.emptyObject;
|
|
11580
|
+
|
|
11581
|
+
/**
|
|
11582
|
+
* ContentfulWorkoutPlaylistUpdated accessGroups.
|
|
11583
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
11584
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11585
|
+
* @instance
|
|
11586
|
+
*/
|
|
11587
|
+
ContentfulWorkoutPlaylistUpdated.prototype.accessGroups = $util.emptyArray;
|
|
11588
|
+
|
|
11589
|
+
/**
|
|
11590
|
+
* ContentfulWorkoutPlaylistUpdated updatedAt.
|
|
11591
|
+
* @member {number|Long} updatedAt
|
|
11592
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11593
|
+
* @instance
|
|
11594
|
+
*/
|
|
11595
|
+
ContentfulWorkoutPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11596
|
+
|
|
11597
|
+
/**
|
|
11598
|
+
* Creates a new ContentfulWorkoutPlaylistUpdated instance using the specified properties.
|
|
11599
|
+
* @function create
|
|
11600
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11601
|
+
* @static
|
|
11602
|
+
* @param {IContentfulWorkoutPlaylistUpdated=} [properties] Properties to set
|
|
11603
|
+
* @returns {ContentfulWorkoutPlaylistUpdated} ContentfulWorkoutPlaylistUpdated instance
|
|
11604
|
+
*/
|
|
11605
|
+
ContentfulWorkoutPlaylistUpdated.create = function create(properties) {
|
|
11606
|
+
return new ContentfulWorkoutPlaylistUpdated(properties);
|
|
11607
|
+
};
|
|
11608
|
+
|
|
11609
|
+
/**
|
|
11610
|
+
* Encodes the specified ContentfulWorkoutPlaylistUpdated message. Does not implicitly {@link ContentfulWorkoutPlaylistUpdated.verify|verify} messages.
|
|
11611
|
+
* @function encode
|
|
11612
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11613
|
+
* @static
|
|
11614
|
+
* @param {IContentfulWorkoutPlaylistUpdated} message ContentfulWorkoutPlaylistUpdated message or plain object to encode
|
|
11615
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11616
|
+
* @returns {$protobuf.Writer} Writer
|
|
11617
|
+
*/
|
|
11618
|
+
ContentfulWorkoutPlaylistUpdated.encode = function encode(message, writer) {
|
|
11619
|
+
if (!writer)
|
|
11620
|
+
writer = $Writer.create();
|
|
11621
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11622
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
11623
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
11624
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
11625
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
11626
|
+
for (var keys = Object.keys(message.type), i = 0; i < keys.length; ++i)
|
|
11627
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.type[keys[i]]).ldelim();
|
|
11628
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
11629
|
+
for (var keys = Object.keys(message.title), i = 0; i < keys.length; ++i)
|
|
11630
|
+
writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.title[keys[i]]).ldelim();
|
|
11631
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
11632
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
11633
|
+
writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.teaser[keys[i]]).ldelim();
|
|
11634
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
11635
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
11636
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
|
|
11637
|
+
if (message.playerOrientation != null && message.hasOwnProperty("playerOrientation"))
|
|
11638
|
+
for (var keys = Object.keys(message.playerOrientation), i = 0; i < keys.length; ++i)
|
|
11639
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.playerOrientation[keys[i]]).ldelim();
|
|
11640
|
+
if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
|
|
11641
|
+
for (var keys = Object.keys(message.previewMedia), i = 0; i < keys.length; ++i) {
|
|
11642
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11643
|
+
$root.contentful.IdReference.encode(message.previewMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11644
|
+
}
|
|
11645
|
+
if (message.videoSegments != null && message.hasOwnProperty("videoSegments"))
|
|
11646
|
+
for (var keys = Object.keys(message.videoSegments), i = 0; i < keys.length; ++i) {
|
|
11647
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11648
|
+
$root.contentful.IdReferences.encode(message.videoSegments[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11649
|
+
}
|
|
11650
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
11651
|
+
for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
|
|
11652
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
|
|
11653
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
11654
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
11655
|
+
writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11656
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11657
|
+
}
|
|
11658
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
|
|
11659
|
+
for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
11660
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11661
|
+
$root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11662
|
+
}
|
|
11663
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
11664
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
11665
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
11666
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
11667
|
+
writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.updatedAt);
|
|
11668
|
+
return writer;
|
|
11669
|
+
};
|
|
11670
|
+
|
|
11671
|
+
/**
|
|
11672
|
+
* Encodes the specified ContentfulWorkoutPlaylistUpdated message, length delimited. Does not implicitly {@link ContentfulWorkoutPlaylistUpdated.verify|verify} messages.
|
|
11673
|
+
* @function encodeDelimited
|
|
11674
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11675
|
+
* @static
|
|
11676
|
+
* @param {IContentfulWorkoutPlaylistUpdated} message ContentfulWorkoutPlaylistUpdated message or plain object to encode
|
|
11677
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11678
|
+
* @returns {$protobuf.Writer} Writer
|
|
11679
|
+
*/
|
|
11680
|
+
ContentfulWorkoutPlaylistUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11681
|
+
return this.encode(message, writer).ldelim();
|
|
11682
|
+
};
|
|
11683
|
+
|
|
11684
|
+
/**
|
|
11685
|
+
* Decodes a ContentfulWorkoutPlaylistUpdated message from the specified reader or buffer.
|
|
11686
|
+
* @function decode
|
|
11687
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11688
|
+
* @static
|
|
11689
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11690
|
+
* @param {number} [length] Message length if known beforehand
|
|
11691
|
+
* @returns {ContentfulWorkoutPlaylistUpdated} ContentfulWorkoutPlaylistUpdated
|
|
11692
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11693
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11694
|
+
*/
|
|
11695
|
+
ContentfulWorkoutPlaylistUpdated.decode = function decode(reader, length) {
|
|
11696
|
+
if (!(reader instanceof $Reader))
|
|
11697
|
+
reader = $Reader.create(reader);
|
|
11698
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulWorkoutPlaylistUpdated(), key;
|
|
11699
|
+
while (reader.pos < end) {
|
|
11700
|
+
var tag = reader.uint32();
|
|
11701
|
+
switch (tag >>> 3) {
|
|
11702
|
+
case 1:
|
|
11703
|
+
message.slug = reader.string();
|
|
11704
|
+
break;
|
|
11705
|
+
case 2:
|
|
11706
|
+
message.contentType = reader.string();
|
|
11707
|
+
break;
|
|
11708
|
+
case 3:
|
|
11709
|
+
reader.skip().pos++;
|
|
11710
|
+
if (message.type === $util.emptyObject)
|
|
11711
|
+
message.type = {};
|
|
11712
|
+
key = reader.string();
|
|
11713
|
+
reader.pos++;
|
|
11714
|
+
message.type[key] = reader.string();
|
|
11715
|
+
break;
|
|
11716
|
+
case 4:
|
|
11717
|
+
reader.skip().pos++;
|
|
11718
|
+
if (message.title === $util.emptyObject)
|
|
11719
|
+
message.title = {};
|
|
11720
|
+
key = reader.string();
|
|
11721
|
+
reader.pos++;
|
|
11722
|
+
message.title[key] = reader.string();
|
|
11723
|
+
break;
|
|
11724
|
+
case 5:
|
|
11725
|
+
reader.skip().pos++;
|
|
11726
|
+
if (message.teaser === $util.emptyObject)
|
|
11727
|
+
message.teaser = {};
|
|
11728
|
+
key = reader.string();
|
|
11729
|
+
reader.pos++;
|
|
11730
|
+
message.teaser[key] = reader.string();
|
|
11731
|
+
break;
|
|
11732
|
+
case 6:
|
|
11733
|
+
reader.skip().pos++;
|
|
11734
|
+
if (message.description === $util.emptyObject)
|
|
11735
|
+
message.description = {};
|
|
11736
|
+
key = reader.string();
|
|
11737
|
+
reader.pos++;
|
|
11738
|
+
message.description[key] = reader.string();
|
|
11739
|
+
break;
|
|
11740
|
+
case 7:
|
|
11741
|
+
reader.skip().pos++;
|
|
11742
|
+
if (message.playerOrientation === $util.emptyObject)
|
|
11743
|
+
message.playerOrientation = {};
|
|
11744
|
+
key = reader.string();
|
|
11745
|
+
reader.pos++;
|
|
11746
|
+
message.playerOrientation[key] = reader.string();
|
|
11747
|
+
break;
|
|
11748
|
+
case 8:
|
|
11749
|
+
reader.skip().pos++;
|
|
11750
|
+
if (message.previewMedia === $util.emptyObject)
|
|
11751
|
+
message.previewMedia = {};
|
|
11752
|
+
key = reader.string();
|
|
11753
|
+
reader.pos++;
|
|
11754
|
+
message.previewMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
11755
|
+
break;
|
|
11756
|
+
case 9:
|
|
11757
|
+
reader.skip().pos++;
|
|
11758
|
+
if (message.videoSegments === $util.emptyObject)
|
|
11759
|
+
message.videoSegments = {};
|
|
11760
|
+
key = reader.string();
|
|
11761
|
+
reader.pos++;
|
|
11762
|
+
message.videoSegments[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
11763
|
+
break;
|
|
11764
|
+
case 10:
|
|
11765
|
+
reader.skip().pos++;
|
|
11766
|
+
if (message.duration === $util.emptyObject)
|
|
11767
|
+
message.duration = {};
|
|
11768
|
+
key = reader.string();
|
|
11769
|
+
reader.pos++;
|
|
11770
|
+
message.duration[key] = reader.int32();
|
|
11771
|
+
break;
|
|
11772
|
+
case 11:
|
|
11773
|
+
reader.skip().pos++;
|
|
11774
|
+
if (message.tileMedia === $util.emptyObject)
|
|
11775
|
+
message.tileMedia = {};
|
|
11776
|
+
key = reader.string();
|
|
11777
|
+
reader.pos++;
|
|
11778
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
11779
|
+
break;
|
|
11780
|
+
case 12:
|
|
11781
|
+
reader.skip().pos++;
|
|
11782
|
+
if (message.headerImageMedia === $util.emptyObject)
|
|
11783
|
+
message.headerImageMedia = {};
|
|
11784
|
+
key = reader.string();
|
|
11785
|
+
reader.pos++;
|
|
11786
|
+
message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
11787
|
+
break;
|
|
11788
|
+
case 13:
|
|
11789
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
11790
|
+
message.accessGroups = [];
|
|
11791
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
11792
|
+
break;
|
|
11793
|
+
case 14:
|
|
11794
|
+
message.updatedAt = reader.uint64();
|
|
11795
|
+
break;
|
|
11796
|
+
default:
|
|
11797
|
+
reader.skipType(tag & 7);
|
|
11798
|
+
break;
|
|
11799
|
+
}
|
|
11800
|
+
}
|
|
11801
|
+
return message;
|
|
11802
|
+
};
|
|
11803
|
+
|
|
11804
|
+
/**
|
|
11805
|
+
* Decodes a ContentfulWorkoutPlaylistUpdated message from the specified reader or buffer, length delimited.
|
|
11806
|
+
* @function decodeDelimited
|
|
11807
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11808
|
+
* @static
|
|
11809
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11810
|
+
* @returns {ContentfulWorkoutPlaylistUpdated} ContentfulWorkoutPlaylistUpdated
|
|
11811
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11812
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11813
|
+
*/
|
|
11814
|
+
ContentfulWorkoutPlaylistUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
11815
|
+
if (!(reader instanceof $Reader))
|
|
11816
|
+
reader = new $Reader(reader);
|
|
11817
|
+
return this.decode(reader, reader.uint32());
|
|
11818
|
+
};
|
|
11819
|
+
|
|
11820
|
+
/**
|
|
11821
|
+
* Verifies a ContentfulWorkoutPlaylistUpdated message.
|
|
11822
|
+
* @function verify
|
|
11823
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11824
|
+
* @static
|
|
11825
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11826
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11827
|
+
*/
|
|
11828
|
+
ContentfulWorkoutPlaylistUpdated.verify = function verify(message) {
|
|
11829
|
+
if (typeof message !== "object" || message === null)
|
|
11830
|
+
return "object expected";
|
|
11831
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11832
|
+
if (!$util.isString(message.slug))
|
|
11833
|
+
return "slug: string expected";
|
|
11834
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
11835
|
+
if (!$util.isString(message.contentType))
|
|
11836
|
+
return "contentType: string expected";
|
|
11837
|
+
if (message.type != null && message.hasOwnProperty("type")) {
|
|
11838
|
+
if (!$util.isObject(message.type))
|
|
11839
|
+
return "type: object expected";
|
|
11840
|
+
var key = Object.keys(message.type);
|
|
11841
|
+
for (var i = 0; i < key.length; ++i)
|
|
11842
|
+
if (!$util.isString(message.type[key[i]]))
|
|
11843
|
+
return "type: string{k:string} expected";
|
|
11844
|
+
}
|
|
11845
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
11846
|
+
if (!$util.isObject(message.title))
|
|
11847
|
+
return "title: object expected";
|
|
11848
|
+
var key = Object.keys(message.title);
|
|
11849
|
+
for (var i = 0; i < key.length; ++i)
|
|
11850
|
+
if (!$util.isString(message.title[key[i]]))
|
|
11851
|
+
return "title: string{k:string} expected";
|
|
11852
|
+
}
|
|
11853
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
11854
|
+
if (!$util.isObject(message.teaser))
|
|
11855
|
+
return "teaser: object expected";
|
|
11856
|
+
var key = Object.keys(message.teaser);
|
|
11857
|
+
for (var i = 0; i < key.length; ++i)
|
|
11858
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
11859
|
+
return "teaser: string{k:string} expected";
|
|
11860
|
+
}
|
|
11861
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
11862
|
+
if (!$util.isObject(message.description))
|
|
11863
|
+
return "description: object expected";
|
|
11864
|
+
var key = Object.keys(message.description);
|
|
11865
|
+
for (var i = 0; i < key.length; ++i)
|
|
11866
|
+
if (!$util.isString(message.description[key[i]]))
|
|
11867
|
+
return "description: string{k:string} expected";
|
|
11868
|
+
}
|
|
11869
|
+
if (message.playerOrientation != null && message.hasOwnProperty("playerOrientation")) {
|
|
11870
|
+
if (!$util.isObject(message.playerOrientation))
|
|
11871
|
+
return "playerOrientation: object expected";
|
|
11872
|
+
var key = Object.keys(message.playerOrientation);
|
|
11873
|
+
for (var i = 0; i < key.length; ++i)
|
|
11874
|
+
if (!$util.isString(message.playerOrientation[key[i]]))
|
|
11875
|
+
return "playerOrientation: string{k:string} expected";
|
|
11876
|
+
}
|
|
11877
|
+
if (message.previewMedia != null && message.hasOwnProperty("previewMedia")) {
|
|
11878
|
+
if (!$util.isObject(message.previewMedia))
|
|
11879
|
+
return "previewMedia: object expected";
|
|
11880
|
+
var key = Object.keys(message.previewMedia);
|
|
11881
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11882
|
+
var error = $root.contentful.IdReference.verify(message.previewMedia[key[i]]);
|
|
11883
|
+
if (error)
|
|
11884
|
+
return "previewMedia." + error;
|
|
11885
|
+
}
|
|
11886
|
+
}
|
|
11887
|
+
if (message.videoSegments != null && message.hasOwnProperty("videoSegments")) {
|
|
11888
|
+
if (!$util.isObject(message.videoSegments))
|
|
11889
|
+
return "videoSegments: object expected";
|
|
11890
|
+
var key = Object.keys(message.videoSegments);
|
|
11891
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11892
|
+
var error = $root.contentful.IdReferences.verify(message.videoSegments[key[i]]);
|
|
11893
|
+
if (error)
|
|
11894
|
+
return "videoSegments." + error;
|
|
11895
|
+
}
|
|
11896
|
+
}
|
|
11897
|
+
if (message.duration != null && message.hasOwnProperty("duration")) {
|
|
11898
|
+
if (!$util.isObject(message.duration))
|
|
11899
|
+
return "duration: object expected";
|
|
11900
|
+
var key = Object.keys(message.duration);
|
|
11901
|
+
for (var i = 0; i < key.length; ++i)
|
|
11902
|
+
if (!$util.isInteger(message.duration[key[i]]))
|
|
11903
|
+
return "duration: integer{k:string} expected";
|
|
11904
|
+
}
|
|
11905
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
11906
|
+
if (!$util.isObject(message.tileMedia))
|
|
11907
|
+
return "tileMedia: object expected";
|
|
11908
|
+
var key = Object.keys(message.tileMedia);
|
|
11909
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11910
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
11911
|
+
if (error)
|
|
11912
|
+
return "tileMedia." + error;
|
|
11913
|
+
}
|
|
11914
|
+
}
|
|
11915
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
|
|
11916
|
+
if (!$util.isObject(message.headerImageMedia))
|
|
11917
|
+
return "headerImageMedia: object expected";
|
|
11918
|
+
var key = Object.keys(message.headerImageMedia);
|
|
11919
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11920
|
+
var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
|
|
11921
|
+
if (error)
|
|
11922
|
+
return "headerImageMedia." + error;
|
|
11923
|
+
}
|
|
11924
|
+
}
|
|
11925
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
11926
|
+
if (!Array.isArray(message.accessGroups))
|
|
11927
|
+
return "accessGroups: array expected";
|
|
11928
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
11929
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
11930
|
+
if (error)
|
|
11931
|
+
return "accessGroups." + error;
|
|
11932
|
+
}
|
|
11933
|
+
}
|
|
11934
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
11935
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
11936
|
+
return "updatedAt: integer|Long expected";
|
|
11937
|
+
return null;
|
|
11938
|
+
};
|
|
11939
|
+
|
|
11940
|
+
/**
|
|
11941
|
+
* Creates a ContentfulWorkoutPlaylistUpdated message from a plain object. Also converts values to their respective internal types.
|
|
11942
|
+
* @function fromObject
|
|
11943
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11944
|
+
* @static
|
|
11945
|
+
* @param {Object.<string,*>} object Plain object
|
|
11946
|
+
* @returns {ContentfulWorkoutPlaylistUpdated} ContentfulWorkoutPlaylistUpdated
|
|
11947
|
+
*/
|
|
11948
|
+
ContentfulWorkoutPlaylistUpdated.fromObject = function fromObject(object) {
|
|
11949
|
+
if (object instanceof $root.ContentfulWorkoutPlaylistUpdated)
|
|
11950
|
+
return object;
|
|
11951
|
+
var message = new $root.ContentfulWorkoutPlaylistUpdated();
|
|
11952
|
+
if (object.slug != null)
|
|
11953
|
+
message.slug = String(object.slug);
|
|
11954
|
+
if (object.contentType != null)
|
|
11955
|
+
message.contentType = String(object.contentType);
|
|
11956
|
+
if (object.type) {
|
|
11957
|
+
if (typeof object.type !== "object")
|
|
11958
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.type: object expected");
|
|
11959
|
+
message.type = {};
|
|
11960
|
+
for (var keys = Object.keys(object.type), i = 0; i < keys.length; ++i)
|
|
11961
|
+
message.type[keys[i]] = String(object.type[keys[i]]);
|
|
11962
|
+
}
|
|
11963
|
+
if (object.title) {
|
|
11964
|
+
if (typeof object.title !== "object")
|
|
11965
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.title: object expected");
|
|
11966
|
+
message.title = {};
|
|
11967
|
+
for (var keys = Object.keys(object.title), i = 0; i < keys.length; ++i)
|
|
11968
|
+
message.title[keys[i]] = String(object.title[keys[i]]);
|
|
11969
|
+
}
|
|
11970
|
+
if (object.teaser) {
|
|
11971
|
+
if (typeof object.teaser !== "object")
|
|
11972
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.teaser: object expected");
|
|
11973
|
+
message.teaser = {};
|
|
11974
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
11975
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
11976
|
+
}
|
|
11977
|
+
if (object.description) {
|
|
11978
|
+
if (typeof object.description !== "object")
|
|
11979
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.description: object expected");
|
|
11980
|
+
message.description = {};
|
|
11981
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
11982
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
11983
|
+
}
|
|
11984
|
+
if (object.playerOrientation) {
|
|
11985
|
+
if (typeof object.playerOrientation !== "object")
|
|
11986
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.playerOrientation: object expected");
|
|
11987
|
+
message.playerOrientation = {};
|
|
11988
|
+
for (var keys = Object.keys(object.playerOrientation), i = 0; i < keys.length; ++i)
|
|
11989
|
+
message.playerOrientation[keys[i]] = String(object.playerOrientation[keys[i]]);
|
|
11990
|
+
}
|
|
11991
|
+
if (object.previewMedia) {
|
|
11992
|
+
if (typeof object.previewMedia !== "object")
|
|
11993
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.previewMedia: object expected");
|
|
11994
|
+
message.previewMedia = {};
|
|
11995
|
+
for (var keys = Object.keys(object.previewMedia), i = 0; i < keys.length; ++i) {
|
|
11996
|
+
if (typeof object.previewMedia[keys[i]] !== "object")
|
|
11997
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.previewMedia: object expected");
|
|
11998
|
+
message.previewMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.previewMedia[keys[i]]);
|
|
11999
|
+
}
|
|
12000
|
+
}
|
|
12001
|
+
if (object.videoSegments) {
|
|
12002
|
+
if (typeof object.videoSegments !== "object")
|
|
12003
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.videoSegments: object expected");
|
|
12004
|
+
message.videoSegments = {};
|
|
12005
|
+
for (var keys = Object.keys(object.videoSegments), i = 0; i < keys.length; ++i) {
|
|
12006
|
+
if (typeof object.videoSegments[keys[i]] !== "object")
|
|
12007
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.videoSegments: object expected");
|
|
12008
|
+
message.videoSegments[keys[i]] = $root.contentful.IdReferences.fromObject(object.videoSegments[keys[i]]);
|
|
12009
|
+
}
|
|
12010
|
+
}
|
|
12011
|
+
if (object.duration) {
|
|
12012
|
+
if (typeof object.duration !== "object")
|
|
12013
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.duration: object expected");
|
|
12014
|
+
message.duration = {};
|
|
12015
|
+
for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
|
|
12016
|
+
message.duration[keys[i]] = object.duration[keys[i]] | 0;
|
|
12017
|
+
}
|
|
12018
|
+
if (object.tileMedia) {
|
|
12019
|
+
if (typeof object.tileMedia !== "object")
|
|
12020
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.tileMedia: object expected");
|
|
12021
|
+
message.tileMedia = {};
|
|
12022
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
12023
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
12024
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.tileMedia: object expected");
|
|
12025
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
12026
|
+
}
|
|
12027
|
+
}
|
|
12028
|
+
if (object.headerImageMedia) {
|
|
12029
|
+
if (typeof object.headerImageMedia !== "object")
|
|
12030
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.headerImageMedia: object expected");
|
|
12031
|
+
message.headerImageMedia = {};
|
|
12032
|
+
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
12033
|
+
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
12034
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.headerImageMedia: object expected");
|
|
12035
|
+
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
12036
|
+
}
|
|
12037
|
+
}
|
|
12038
|
+
if (object.accessGroups) {
|
|
12039
|
+
if (!Array.isArray(object.accessGroups))
|
|
12040
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.accessGroups: array expected");
|
|
12041
|
+
message.accessGroups = [];
|
|
12042
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
12043
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
12044
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.accessGroups: object expected");
|
|
12045
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
12046
|
+
}
|
|
12047
|
+
}
|
|
12048
|
+
if (object.updatedAt != null)
|
|
12049
|
+
if ($util.Long)
|
|
12050
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
12051
|
+
else if (typeof object.updatedAt === "string")
|
|
12052
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
12053
|
+
else if (typeof object.updatedAt === "number")
|
|
12054
|
+
message.updatedAt = object.updatedAt;
|
|
12055
|
+
else if (typeof object.updatedAt === "object")
|
|
12056
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
12057
|
+
return message;
|
|
12058
|
+
};
|
|
12059
|
+
|
|
12060
|
+
/**
|
|
12061
|
+
* Creates a plain object from a ContentfulWorkoutPlaylistUpdated message. Also converts values to other types if specified.
|
|
12062
|
+
* @function toObject
|
|
12063
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
12064
|
+
* @static
|
|
12065
|
+
* @param {ContentfulWorkoutPlaylistUpdated} message ContentfulWorkoutPlaylistUpdated
|
|
12066
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12067
|
+
* @returns {Object.<string,*>} Plain object
|
|
12068
|
+
*/
|
|
12069
|
+
ContentfulWorkoutPlaylistUpdated.toObject = function toObject(message, options) {
|
|
12070
|
+
if (!options)
|
|
12071
|
+
options = {};
|
|
12072
|
+
var object = {};
|
|
12073
|
+
if (options.arrays || options.defaults)
|
|
12074
|
+
object.accessGroups = [];
|
|
12075
|
+
if (options.objects || options.defaults) {
|
|
12076
|
+
object.type = {};
|
|
12077
|
+
object.title = {};
|
|
12078
|
+
object.teaser = {};
|
|
12079
|
+
object.description = {};
|
|
12080
|
+
object.playerOrientation = {};
|
|
12081
|
+
object.previewMedia = {};
|
|
12082
|
+
object.videoSegments = {};
|
|
12083
|
+
object.duration = {};
|
|
12084
|
+
object.tileMedia = {};
|
|
12085
|
+
object.headerImageMedia = {};
|
|
12086
|
+
}
|
|
12087
|
+
if (options.defaults) {
|
|
12088
|
+
object.slug = "";
|
|
12089
|
+
object.contentType = "";
|
|
12090
|
+
if ($util.Long) {
|
|
12091
|
+
var long = new $util.Long(0, 0, true);
|
|
12092
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12093
|
+
} else
|
|
12094
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
12095
|
+
}
|
|
12096
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12097
|
+
object.slug = message.slug;
|
|
12098
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
12099
|
+
object.contentType = message.contentType;
|
|
12100
|
+
var keys2;
|
|
12101
|
+
if (message.type && (keys2 = Object.keys(message.type)).length) {
|
|
12102
|
+
object.type = {};
|
|
12103
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12104
|
+
object.type[keys2[j]] = message.type[keys2[j]];
|
|
12105
|
+
}
|
|
12106
|
+
if (message.title && (keys2 = Object.keys(message.title)).length) {
|
|
12107
|
+
object.title = {};
|
|
12108
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12109
|
+
object.title[keys2[j]] = message.title[keys2[j]];
|
|
12110
|
+
}
|
|
12111
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
12112
|
+
object.teaser = {};
|
|
12113
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12114
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
12115
|
+
}
|
|
12116
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
12117
|
+
object.description = {};
|
|
12118
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12119
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
12120
|
+
}
|
|
12121
|
+
if (message.playerOrientation && (keys2 = Object.keys(message.playerOrientation)).length) {
|
|
12122
|
+
object.playerOrientation = {};
|
|
12123
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12124
|
+
object.playerOrientation[keys2[j]] = message.playerOrientation[keys2[j]];
|
|
12125
|
+
}
|
|
12126
|
+
if (message.previewMedia && (keys2 = Object.keys(message.previewMedia)).length) {
|
|
12127
|
+
object.previewMedia = {};
|
|
12128
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12129
|
+
object.previewMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.previewMedia[keys2[j]], options);
|
|
12130
|
+
}
|
|
12131
|
+
if (message.videoSegments && (keys2 = Object.keys(message.videoSegments)).length) {
|
|
12132
|
+
object.videoSegments = {};
|
|
12133
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12134
|
+
object.videoSegments[keys2[j]] = $root.contentful.IdReferences.toObject(message.videoSegments[keys2[j]], options);
|
|
12135
|
+
}
|
|
12136
|
+
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
12137
|
+
object.duration = {};
|
|
12138
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12139
|
+
object.duration[keys2[j]] = message.duration[keys2[j]];
|
|
12140
|
+
}
|
|
12141
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
12142
|
+
object.tileMedia = {};
|
|
12143
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12144
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
12145
|
+
}
|
|
12146
|
+
if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
|
|
12147
|
+
object.headerImageMedia = {};
|
|
12148
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12149
|
+
object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
|
|
12150
|
+
}
|
|
12151
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
12152
|
+
object.accessGroups = [];
|
|
12153
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
12154
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
12155
|
+
}
|
|
12156
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
12157
|
+
if (typeof message.updatedAt === "number")
|
|
12158
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
12159
|
+
else
|
|
12160
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
12161
|
+
return object;
|
|
12162
|
+
};
|
|
12163
|
+
|
|
12164
|
+
/**
|
|
12165
|
+
* Converts this ContentfulWorkoutPlaylistUpdated to JSON.
|
|
12166
|
+
* @function toJSON
|
|
12167
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
12168
|
+
* @instance
|
|
12169
|
+
* @returns {Object.<string,*>} JSON object
|
|
12170
|
+
*/
|
|
12171
|
+
ContentfulWorkoutPlaylistUpdated.prototype.toJSON = function toJSON() {
|
|
12172
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12173
|
+
};
|
|
12174
|
+
|
|
12175
|
+
return ContentfulWorkoutPlaylistUpdated;
|
|
12176
|
+
})();
|
|
12177
|
+
|
|
12178
|
+
$root.ContentfulWorkoutPlaylistDeleted = (function() {
|
|
12179
|
+
|
|
12180
|
+
/**
|
|
12181
|
+
* Properties of a ContentfulWorkoutPlaylistDeleted.
|
|
12182
|
+
* @exports IContentfulWorkoutPlaylistDeleted
|
|
12183
|
+
* @interface IContentfulWorkoutPlaylistDeleted
|
|
12184
|
+
* @property {string|null} [slug] ContentfulWorkoutPlaylistDeleted slug
|
|
12185
|
+
* @property {number|Long|null} [deletedAt] ContentfulWorkoutPlaylistDeleted deletedAt
|
|
12186
|
+
*/
|
|
12187
|
+
|
|
12188
|
+
/**
|
|
12189
|
+
* Constructs a new ContentfulWorkoutPlaylistDeleted.
|
|
12190
|
+
* @exports ContentfulWorkoutPlaylistDeleted
|
|
12191
|
+
* @classdesc Represents a ContentfulWorkoutPlaylistDeleted.
|
|
12192
|
+
* @implements IContentfulWorkoutPlaylistDeleted
|
|
12193
|
+
* @constructor
|
|
12194
|
+
* @param {IContentfulWorkoutPlaylistDeleted=} [properties] Properties to set
|
|
12195
|
+
*/
|
|
12196
|
+
function ContentfulWorkoutPlaylistDeleted(properties) {
|
|
12197
|
+
if (properties)
|
|
12198
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12199
|
+
if (properties[keys[i]] != null)
|
|
12200
|
+
this[keys[i]] = properties[keys[i]];
|
|
12201
|
+
}
|
|
12202
|
+
|
|
12203
|
+
/**
|
|
12204
|
+
* ContentfulWorkoutPlaylistDeleted slug.
|
|
12205
|
+
* @member {string} slug
|
|
12206
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12207
|
+
* @instance
|
|
12208
|
+
*/
|
|
12209
|
+
ContentfulWorkoutPlaylistDeleted.prototype.slug = "";
|
|
12210
|
+
|
|
12211
|
+
/**
|
|
12212
|
+
* ContentfulWorkoutPlaylistDeleted deletedAt.
|
|
12213
|
+
* @member {number|Long} deletedAt
|
|
12214
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12215
|
+
* @instance
|
|
12216
|
+
*/
|
|
12217
|
+
ContentfulWorkoutPlaylistDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
12218
|
+
|
|
12219
|
+
/**
|
|
12220
|
+
* Creates a new ContentfulWorkoutPlaylistDeleted instance using the specified properties.
|
|
12221
|
+
* @function create
|
|
12222
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12223
|
+
* @static
|
|
12224
|
+
* @param {IContentfulWorkoutPlaylistDeleted=} [properties] Properties to set
|
|
12225
|
+
* @returns {ContentfulWorkoutPlaylistDeleted} ContentfulWorkoutPlaylistDeleted instance
|
|
12226
|
+
*/
|
|
12227
|
+
ContentfulWorkoutPlaylistDeleted.create = function create(properties) {
|
|
12228
|
+
return new ContentfulWorkoutPlaylistDeleted(properties);
|
|
12229
|
+
};
|
|
12230
|
+
|
|
12231
|
+
/**
|
|
12232
|
+
* Encodes the specified ContentfulWorkoutPlaylistDeleted message. Does not implicitly {@link ContentfulWorkoutPlaylistDeleted.verify|verify} messages.
|
|
12233
|
+
* @function encode
|
|
12234
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12235
|
+
* @static
|
|
12236
|
+
* @param {IContentfulWorkoutPlaylistDeleted} message ContentfulWorkoutPlaylistDeleted message or plain object to encode
|
|
12237
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12238
|
+
* @returns {$protobuf.Writer} Writer
|
|
12239
|
+
*/
|
|
12240
|
+
ContentfulWorkoutPlaylistDeleted.encode = function encode(message, writer) {
|
|
12241
|
+
if (!writer)
|
|
12242
|
+
writer = $Writer.create();
|
|
12243
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12244
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
12245
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12246
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
12247
|
+
return writer;
|
|
12248
|
+
};
|
|
12249
|
+
|
|
12250
|
+
/**
|
|
12251
|
+
* Encodes the specified ContentfulWorkoutPlaylistDeleted message, length delimited. Does not implicitly {@link ContentfulWorkoutPlaylistDeleted.verify|verify} messages.
|
|
12252
|
+
* @function encodeDelimited
|
|
12253
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12254
|
+
* @static
|
|
12255
|
+
* @param {IContentfulWorkoutPlaylistDeleted} message ContentfulWorkoutPlaylistDeleted message or plain object to encode
|
|
12256
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12257
|
+
* @returns {$protobuf.Writer} Writer
|
|
12258
|
+
*/
|
|
12259
|
+
ContentfulWorkoutPlaylistDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12260
|
+
return this.encode(message, writer).ldelim();
|
|
12261
|
+
};
|
|
12262
|
+
|
|
12263
|
+
/**
|
|
12264
|
+
* Decodes a ContentfulWorkoutPlaylistDeleted message from the specified reader or buffer.
|
|
12265
|
+
* @function decode
|
|
12266
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12267
|
+
* @static
|
|
12268
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12269
|
+
* @param {number} [length] Message length if known beforehand
|
|
12270
|
+
* @returns {ContentfulWorkoutPlaylistDeleted} ContentfulWorkoutPlaylistDeleted
|
|
12271
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12272
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12273
|
+
*/
|
|
12274
|
+
ContentfulWorkoutPlaylistDeleted.decode = function decode(reader, length) {
|
|
12275
|
+
if (!(reader instanceof $Reader))
|
|
12276
|
+
reader = $Reader.create(reader);
|
|
12277
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulWorkoutPlaylistDeleted();
|
|
12278
|
+
while (reader.pos < end) {
|
|
12279
|
+
var tag = reader.uint32();
|
|
12280
|
+
switch (tag >>> 3) {
|
|
12281
|
+
case 1:
|
|
12282
|
+
message.slug = reader.string();
|
|
12283
|
+
break;
|
|
12284
|
+
case 2:
|
|
12285
|
+
message.deletedAt = reader.uint64();
|
|
12286
|
+
break;
|
|
12287
|
+
default:
|
|
12288
|
+
reader.skipType(tag & 7);
|
|
12289
|
+
break;
|
|
12290
|
+
}
|
|
12291
|
+
}
|
|
12292
|
+
return message;
|
|
12293
|
+
};
|
|
12294
|
+
|
|
12295
|
+
/**
|
|
12296
|
+
* Decodes a ContentfulWorkoutPlaylistDeleted message from the specified reader or buffer, length delimited.
|
|
12297
|
+
* @function decodeDelimited
|
|
12298
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12299
|
+
* @static
|
|
12300
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12301
|
+
* @returns {ContentfulWorkoutPlaylistDeleted} ContentfulWorkoutPlaylistDeleted
|
|
12302
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12303
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12304
|
+
*/
|
|
12305
|
+
ContentfulWorkoutPlaylistDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
12306
|
+
if (!(reader instanceof $Reader))
|
|
12307
|
+
reader = new $Reader(reader);
|
|
12308
|
+
return this.decode(reader, reader.uint32());
|
|
12309
|
+
};
|
|
12310
|
+
|
|
12311
|
+
/**
|
|
12312
|
+
* Verifies a ContentfulWorkoutPlaylistDeleted message.
|
|
12313
|
+
* @function verify
|
|
12314
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12315
|
+
* @static
|
|
12316
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12317
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12318
|
+
*/
|
|
12319
|
+
ContentfulWorkoutPlaylistDeleted.verify = function verify(message) {
|
|
12320
|
+
if (typeof message !== "object" || message === null)
|
|
12321
|
+
return "object expected";
|
|
12322
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12323
|
+
if (!$util.isString(message.slug))
|
|
12324
|
+
return "slug: string expected";
|
|
12325
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12326
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
12327
|
+
return "deletedAt: integer|Long expected";
|
|
12328
|
+
return null;
|
|
12329
|
+
};
|
|
12330
|
+
|
|
12331
|
+
/**
|
|
12332
|
+
* Creates a ContentfulWorkoutPlaylistDeleted message from a plain object. Also converts values to their respective internal types.
|
|
12333
|
+
* @function fromObject
|
|
12334
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12335
|
+
* @static
|
|
12336
|
+
* @param {Object.<string,*>} object Plain object
|
|
12337
|
+
* @returns {ContentfulWorkoutPlaylistDeleted} ContentfulWorkoutPlaylistDeleted
|
|
12338
|
+
*/
|
|
12339
|
+
ContentfulWorkoutPlaylistDeleted.fromObject = function fromObject(object) {
|
|
12340
|
+
if (object instanceof $root.ContentfulWorkoutPlaylistDeleted)
|
|
12341
|
+
return object;
|
|
12342
|
+
var message = new $root.ContentfulWorkoutPlaylistDeleted();
|
|
12343
|
+
if (object.slug != null)
|
|
12344
|
+
message.slug = String(object.slug);
|
|
12345
|
+
if (object.deletedAt != null)
|
|
12346
|
+
if ($util.Long)
|
|
12347
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
12348
|
+
else if (typeof object.deletedAt === "string")
|
|
12349
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
12350
|
+
else if (typeof object.deletedAt === "number")
|
|
12351
|
+
message.deletedAt = object.deletedAt;
|
|
12352
|
+
else if (typeof object.deletedAt === "object")
|
|
12353
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
12354
|
+
return message;
|
|
12355
|
+
};
|
|
12356
|
+
|
|
12357
|
+
/**
|
|
12358
|
+
* Creates a plain object from a ContentfulWorkoutPlaylistDeleted message. Also converts values to other types if specified.
|
|
12359
|
+
* @function toObject
|
|
12360
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12361
|
+
* @static
|
|
12362
|
+
* @param {ContentfulWorkoutPlaylistDeleted} message ContentfulWorkoutPlaylistDeleted
|
|
12363
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12364
|
+
* @returns {Object.<string,*>} Plain object
|
|
12365
|
+
*/
|
|
12366
|
+
ContentfulWorkoutPlaylistDeleted.toObject = function toObject(message, options) {
|
|
12367
|
+
if (!options)
|
|
12368
|
+
options = {};
|
|
12369
|
+
var object = {};
|
|
12370
|
+
if (options.defaults) {
|
|
12371
|
+
object.slug = "";
|
|
12372
|
+
if ($util.Long) {
|
|
12373
|
+
var long = new $util.Long(0, 0, true);
|
|
12374
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12375
|
+
} else
|
|
12376
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
12377
|
+
}
|
|
12378
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12379
|
+
object.slug = message.slug;
|
|
12380
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12381
|
+
if (typeof message.deletedAt === "number")
|
|
12382
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
12383
|
+
else
|
|
12384
|
+
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;
|
|
12385
|
+
return object;
|
|
12386
|
+
};
|
|
12387
|
+
|
|
12388
|
+
/**
|
|
12389
|
+
* Converts this ContentfulWorkoutPlaylistDeleted to JSON.
|
|
12390
|
+
* @function toJSON
|
|
12391
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12392
|
+
* @instance
|
|
12393
|
+
* @returns {Object.<string,*>} JSON object
|
|
12394
|
+
*/
|
|
12395
|
+
ContentfulWorkoutPlaylistDeleted.prototype.toJSON = function toJSON() {
|
|
12396
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12397
|
+
};
|
|
12398
|
+
|
|
12399
|
+
return ContentfulWorkoutPlaylistDeleted;
|
|
12400
|
+
})();
|
|
12401
|
+
|
|
10696
12402
|
$root.ContentfulSubscriptionAccessGroupCreated = (function() {
|
|
10697
12403
|
|
|
10698
12404
|
/**
|
|
@@ -27793,6 +29499,8 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27793
29499
|
* @property {string|null} [entityType] WorkoutPlaylistCreated entityType
|
|
27794
29500
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistCreated accessGroups
|
|
27795
29501
|
* @property {number|Long|null} [createdAt] WorkoutPlaylistCreated createdAt
|
|
29502
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistCreated tileMedia
|
|
29503
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistCreated headerImageMedia
|
|
27796
29504
|
*/
|
|
27797
29505
|
|
|
27798
29506
|
/**
|
|
@@ -27805,6 +29513,8 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27805
29513
|
*/
|
|
27806
29514
|
function WorkoutPlaylistCreated(properties) {
|
|
27807
29515
|
this.accessGroups = [];
|
|
29516
|
+
this.tileMedia = {};
|
|
29517
|
+
this.headerImageMedia = {};
|
|
27808
29518
|
if (properties)
|
|
27809
29519
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27810
29520
|
if (properties[keys[i]] != null)
|
|
@@ -27851,6 +29561,22 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27851
29561
|
*/
|
|
27852
29562
|
WorkoutPlaylistCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
27853
29563
|
|
|
29564
|
+
/**
|
|
29565
|
+
* WorkoutPlaylistCreated tileMedia.
|
|
29566
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
29567
|
+
* @memberof WorkoutPlaylistCreated
|
|
29568
|
+
* @instance
|
|
29569
|
+
*/
|
|
29570
|
+
WorkoutPlaylistCreated.prototype.tileMedia = $util.emptyObject;
|
|
29571
|
+
|
|
29572
|
+
/**
|
|
29573
|
+
* WorkoutPlaylistCreated headerImageMedia.
|
|
29574
|
+
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
29575
|
+
* @memberof WorkoutPlaylistCreated
|
|
29576
|
+
* @instance
|
|
29577
|
+
*/
|
|
29578
|
+
WorkoutPlaylistCreated.prototype.headerImageMedia = $util.emptyObject;
|
|
29579
|
+
|
|
27854
29580
|
/**
|
|
27855
29581
|
* Creates a new WorkoutPlaylistCreated instance using the specified properties.
|
|
27856
29582
|
* @function create
|
|
@@ -27886,6 +29612,16 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27886
29612
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
27887
29613
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
27888
29614
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
29615
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
29616
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
29617
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29618
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29619
|
+
}
|
|
29620
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
|
|
29621
|
+
for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
29622
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29623
|
+
$root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29624
|
+
}
|
|
27889
29625
|
return writer;
|
|
27890
29626
|
};
|
|
27891
29627
|
|
|
@@ -27916,7 +29652,7 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27916
29652
|
WorkoutPlaylistCreated.decode = function decode(reader, length) {
|
|
27917
29653
|
if (!(reader instanceof $Reader))
|
|
27918
29654
|
reader = $Reader.create(reader);
|
|
27919
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistCreated();
|
|
29655
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistCreated(), key;
|
|
27920
29656
|
while (reader.pos < end) {
|
|
27921
29657
|
var tag = reader.uint32();
|
|
27922
29658
|
switch (tag >>> 3) {
|
|
@@ -27937,6 +29673,22 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27937
29673
|
case 5:
|
|
27938
29674
|
message.createdAt = reader.uint64();
|
|
27939
29675
|
break;
|
|
29676
|
+
case 6:
|
|
29677
|
+
reader.skip().pos++;
|
|
29678
|
+
if (message.tileMedia === $util.emptyObject)
|
|
29679
|
+
message.tileMedia = {};
|
|
29680
|
+
key = reader.string();
|
|
29681
|
+
reader.pos++;
|
|
29682
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
29683
|
+
break;
|
|
29684
|
+
case 7:
|
|
29685
|
+
reader.skip().pos++;
|
|
29686
|
+
if (message.headerImageMedia === $util.emptyObject)
|
|
29687
|
+
message.headerImageMedia = {};
|
|
29688
|
+
key = reader.string();
|
|
29689
|
+
reader.pos++;
|
|
29690
|
+
message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
29691
|
+
break;
|
|
27940
29692
|
default:
|
|
27941
29693
|
reader.skipType(tag & 7);
|
|
27942
29694
|
break;
|
|
@@ -27993,6 +29745,26 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27993
29745
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
27994
29746
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
27995
29747
|
return "createdAt: integer|Long expected";
|
|
29748
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
29749
|
+
if (!$util.isObject(message.tileMedia))
|
|
29750
|
+
return "tileMedia: object expected";
|
|
29751
|
+
var key = Object.keys(message.tileMedia);
|
|
29752
|
+
for (var i = 0; i < key.length; ++i) {
|
|
29753
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
29754
|
+
if (error)
|
|
29755
|
+
return "tileMedia." + error;
|
|
29756
|
+
}
|
|
29757
|
+
}
|
|
29758
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
|
|
29759
|
+
if (!$util.isObject(message.headerImageMedia))
|
|
29760
|
+
return "headerImageMedia: object expected";
|
|
29761
|
+
var key = Object.keys(message.headerImageMedia);
|
|
29762
|
+
for (var i = 0; i < key.length; ++i) {
|
|
29763
|
+
var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
|
|
29764
|
+
if (error)
|
|
29765
|
+
return "headerImageMedia." + error;
|
|
29766
|
+
}
|
|
29767
|
+
}
|
|
27996
29768
|
return null;
|
|
27997
29769
|
};
|
|
27998
29770
|
|
|
@@ -28033,6 +29805,26 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
28033
29805
|
message.createdAt = object.createdAt;
|
|
28034
29806
|
else if (typeof object.createdAt === "object")
|
|
28035
29807
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
29808
|
+
if (object.tileMedia) {
|
|
29809
|
+
if (typeof object.tileMedia !== "object")
|
|
29810
|
+
throw TypeError(".WorkoutPlaylistCreated.tileMedia: object expected");
|
|
29811
|
+
message.tileMedia = {};
|
|
29812
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
29813
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
29814
|
+
throw TypeError(".WorkoutPlaylistCreated.tileMedia: object expected");
|
|
29815
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
29816
|
+
}
|
|
29817
|
+
}
|
|
29818
|
+
if (object.headerImageMedia) {
|
|
29819
|
+
if (typeof object.headerImageMedia !== "object")
|
|
29820
|
+
throw TypeError(".WorkoutPlaylistCreated.headerImageMedia: object expected");
|
|
29821
|
+
message.headerImageMedia = {};
|
|
29822
|
+
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
29823
|
+
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
29824
|
+
throw TypeError(".WorkoutPlaylistCreated.headerImageMedia: object expected");
|
|
29825
|
+
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
29826
|
+
}
|
|
29827
|
+
}
|
|
28036
29828
|
return message;
|
|
28037
29829
|
};
|
|
28038
29830
|
|
|
@@ -28051,6 +29843,10 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
28051
29843
|
var object = {};
|
|
28052
29844
|
if (options.arrays || options.defaults)
|
|
28053
29845
|
object.accessGroups = [];
|
|
29846
|
+
if (options.objects || options.defaults) {
|
|
29847
|
+
object.tileMedia = {};
|
|
29848
|
+
object.headerImageMedia = {};
|
|
29849
|
+
}
|
|
28054
29850
|
if (options.defaults) {
|
|
28055
29851
|
object.slug = "";
|
|
28056
29852
|
object.entityId = 0;
|
|
@@ -28077,6 +29873,17 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
28077
29873
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
28078
29874
|
else
|
|
28079
29875
|
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;
|
|
29876
|
+
var keys2;
|
|
29877
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
29878
|
+
object.tileMedia = {};
|
|
29879
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
29880
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
29881
|
+
}
|
|
29882
|
+
if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
|
|
29883
|
+
object.headerImageMedia = {};
|
|
29884
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
29885
|
+
object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
|
|
29886
|
+
}
|
|
28080
29887
|
return object;
|
|
28081
29888
|
};
|
|
28082
29889
|
|
|
@@ -28105,6 +29912,8 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28105
29912
|
* @property {string|null} [entityType] WorkoutPlaylistUpdated entityType
|
|
28106
29913
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistUpdated accessGroups
|
|
28107
29914
|
* @property {number|Long|null} [updatedAt] WorkoutPlaylistUpdated updatedAt
|
|
29915
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistUpdated tileMedia
|
|
29916
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistUpdated headerImageMedia
|
|
28108
29917
|
*/
|
|
28109
29918
|
|
|
28110
29919
|
/**
|
|
@@ -28117,6 +29926,8 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28117
29926
|
*/
|
|
28118
29927
|
function WorkoutPlaylistUpdated(properties) {
|
|
28119
29928
|
this.accessGroups = [];
|
|
29929
|
+
this.tileMedia = {};
|
|
29930
|
+
this.headerImageMedia = {};
|
|
28120
29931
|
if (properties)
|
|
28121
29932
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28122
29933
|
if (properties[keys[i]] != null)
|
|
@@ -28163,6 +29974,22 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28163
29974
|
*/
|
|
28164
29975
|
WorkoutPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
28165
29976
|
|
|
29977
|
+
/**
|
|
29978
|
+
* WorkoutPlaylistUpdated tileMedia.
|
|
29979
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
29980
|
+
* @memberof WorkoutPlaylistUpdated
|
|
29981
|
+
* @instance
|
|
29982
|
+
*/
|
|
29983
|
+
WorkoutPlaylistUpdated.prototype.tileMedia = $util.emptyObject;
|
|
29984
|
+
|
|
29985
|
+
/**
|
|
29986
|
+
* WorkoutPlaylistUpdated headerImageMedia.
|
|
29987
|
+
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
29988
|
+
* @memberof WorkoutPlaylistUpdated
|
|
29989
|
+
* @instance
|
|
29990
|
+
*/
|
|
29991
|
+
WorkoutPlaylistUpdated.prototype.headerImageMedia = $util.emptyObject;
|
|
29992
|
+
|
|
28166
29993
|
/**
|
|
28167
29994
|
* Creates a new WorkoutPlaylistUpdated instance using the specified properties.
|
|
28168
29995
|
* @function create
|
|
@@ -28198,6 +30025,16 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28198
30025
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
28199
30026
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
28200
30027
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
30028
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
30029
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
30030
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
30031
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30032
|
+
}
|
|
30033
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
|
|
30034
|
+
for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
30035
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
30036
|
+
$root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30037
|
+
}
|
|
28201
30038
|
return writer;
|
|
28202
30039
|
};
|
|
28203
30040
|
|
|
@@ -28228,7 +30065,7 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28228
30065
|
WorkoutPlaylistUpdated.decode = function decode(reader, length) {
|
|
28229
30066
|
if (!(reader instanceof $Reader))
|
|
28230
30067
|
reader = $Reader.create(reader);
|
|
28231
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistUpdated();
|
|
30068
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistUpdated(), key;
|
|
28232
30069
|
while (reader.pos < end) {
|
|
28233
30070
|
var tag = reader.uint32();
|
|
28234
30071
|
switch (tag >>> 3) {
|
|
@@ -28249,6 +30086,22 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28249
30086
|
case 5:
|
|
28250
30087
|
message.updatedAt = reader.uint64();
|
|
28251
30088
|
break;
|
|
30089
|
+
case 6:
|
|
30090
|
+
reader.skip().pos++;
|
|
30091
|
+
if (message.tileMedia === $util.emptyObject)
|
|
30092
|
+
message.tileMedia = {};
|
|
30093
|
+
key = reader.string();
|
|
30094
|
+
reader.pos++;
|
|
30095
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
30096
|
+
break;
|
|
30097
|
+
case 7:
|
|
30098
|
+
reader.skip().pos++;
|
|
30099
|
+
if (message.headerImageMedia === $util.emptyObject)
|
|
30100
|
+
message.headerImageMedia = {};
|
|
30101
|
+
key = reader.string();
|
|
30102
|
+
reader.pos++;
|
|
30103
|
+
message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
30104
|
+
break;
|
|
28252
30105
|
default:
|
|
28253
30106
|
reader.skipType(tag & 7);
|
|
28254
30107
|
break;
|
|
@@ -28305,6 +30158,26 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28305
30158
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
28306
30159
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
28307
30160
|
return "updatedAt: integer|Long expected";
|
|
30161
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
30162
|
+
if (!$util.isObject(message.tileMedia))
|
|
30163
|
+
return "tileMedia: object expected";
|
|
30164
|
+
var key = Object.keys(message.tileMedia);
|
|
30165
|
+
for (var i = 0; i < key.length; ++i) {
|
|
30166
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
30167
|
+
if (error)
|
|
30168
|
+
return "tileMedia." + error;
|
|
30169
|
+
}
|
|
30170
|
+
}
|
|
30171
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
|
|
30172
|
+
if (!$util.isObject(message.headerImageMedia))
|
|
30173
|
+
return "headerImageMedia: object expected";
|
|
30174
|
+
var key = Object.keys(message.headerImageMedia);
|
|
30175
|
+
for (var i = 0; i < key.length; ++i) {
|
|
30176
|
+
var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
|
|
30177
|
+
if (error)
|
|
30178
|
+
return "headerImageMedia." + error;
|
|
30179
|
+
}
|
|
30180
|
+
}
|
|
28308
30181
|
return null;
|
|
28309
30182
|
};
|
|
28310
30183
|
|
|
@@ -28345,6 +30218,26 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28345
30218
|
message.updatedAt = object.updatedAt;
|
|
28346
30219
|
else if (typeof object.updatedAt === "object")
|
|
28347
30220
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
30221
|
+
if (object.tileMedia) {
|
|
30222
|
+
if (typeof object.tileMedia !== "object")
|
|
30223
|
+
throw TypeError(".WorkoutPlaylistUpdated.tileMedia: object expected");
|
|
30224
|
+
message.tileMedia = {};
|
|
30225
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
30226
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
30227
|
+
throw TypeError(".WorkoutPlaylistUpdated.tileMedia: object expected");
|
|
30228
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
30229
|
+
}
|
|
30230
|
+
}
|
|
30231
|
+
if (object.headerImageMedia) {
|
|
30232
|
+
if (typeof object.headerImageMedia !== "object")
|
|
30233
|
+
throw TypeError(".WorkoutPlaylistUpdated.headerImageMedia: object expected");
|
|
30234
|
+
message.headerImageMedia = {};
|
|
30235
|
+
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
30236
|
+
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
30237
|
+
throw TypeError(".WorkoutPlaylistUpdated.headerImageMedia: object expected");
|
|
30238
|
+
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
30239
|
+
}
|
|
30240
|
+
}
|
|
28348
30241
|
return message;
|
|
28349
30242
|
};
|
|
28350
30243
|
|
|
@@ -28363,6 +30256,10 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28363
30256
|
var object = {};
|
|
28364
30257
|
if (options.arrays || options.defaults)
|
|
28365
30258
|
object.accessGroups = [];
|
|
30259
|
+
if (options.objects || options.defaults) {
|
|
30260
|
+
object.tileMedia = {};
|
|
30261
|
+
object.headerImageMedia = {};
|
|
30262
|
+
}
|
|
28366
30263
|
if (options.defaults) {
|
|
28367
30264
|
object.slug = "";
|
|
28368
30265
|
object.entityId = 0;
|
|
@@ -28389,6 +30286,17 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28389
30286
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
28390
30287
|
else
|
|
28391
30288
|
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
30289
|
+
var keys2;
|
|
30290
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
30291
|
+
object.tileMedia = {};
|
|
30292
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
30293
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
30294
|
+
}
|
|
30295
|
+
if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
|
|
30296
|
+
object.headerImageMedia = {};
|
|
30297
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
30298
|
+
object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
|
|
30299
|
+
}
|
|
28392
30300
|
return object;
|
|
28393
30301
|
};
|
|
28394
30302
|
|