@headspace/protos-events 1.132.0 → 1.134.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 +444 -0
- package/lib/index.js +1812 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -10693,6 +10693,1614 @@ $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.IIdReferences>|null} [videoSegments] ContentfulWorkoutPlaylistCreated videoSegments
|
|
10710
|
+
* @property {Object.<string,number>|null} [duration] ContentfulWorkoutPlaylistCreated duration
|
|
10711
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulWorkoutPlaylistCreated tileMedia
|
|
10712
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] ContentfulWorkoutPlaylistCreated headerImageMedia
|
|
10713
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulWorkoutPlaylistCreated accessGroups
|
|
10714
|
+
* @property {number|Long|null} [createdAt] ContentfulWorkoutPlaylistCreated createdAt
|
|
10715
|
+
*/
|
|
10716
|
+
|
|
10717
|
+
/**
|
|
10718
|
+
* Constructs a new ContentfulWorkoutPlaylistCreated.
|
|
10719
|
+
* @exports ContentfulWorkoutPlaylistCreated
|
|
10720
|
+
* @classdesc Represents a ContentfulWorkoutPlaylistCreated.
|
|
10721
|
+
* @implements IContentfulWorkoutPlaylistCreated
|
|
10722
|
+
* @constructor
|
|
10723
|
+
* @param {IContentfulWorkoutPlaylistCreated=} [properties] Properties to set
|
|
10724
|
+
*/
|
|
10725
|
+
function ContentfulWorkoutPlaylistCreated(properties) {
|
|
10726
|
+
this.type = {};
|
|
10727
|
+
this.title = {};
|
|
10728
|
+
this.teaser = {};
|
|
10729
|
+
this.description = {};
|
|
10730
|
+
this.playerOrientation = {};
|
|
10731
|
+
this.videoSegments = {};
|
|
10732
|
+
this.duration = {};
|
|
10733
|
+
this.tileMedia = {};
|
|
10734
|
+
this.headerImageMedia = {};
|
|
10735
|
+
this.accessGroups = [];
|
|
10736
|
+
if (properties)
|
|
10737
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10738
|
+
if (properties[keys[i]] != null)
|
|
10739
|
+
this[keys[i]] = properties[keys[i]];
|
|
10740
|
+
}
|
|
10741
|
+
|
|
10742
|
+
/**
|
|
10743
|
+
* ContentfulWorkoutPlaylistCreated slug.
|
|
10744
|
+
* @member {string} slug
|
|
10745
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10746
|
+
* @instance
|
|
10747
|
+
*/
|
|
10748
|
+
ContentfulWorkoutPlaylistCreated.prototype.slug = "";
|
|
10749
|
+
|
|
10750
|
+
/**
|
|
10751
|
+
* ContentfulWorkoutPlaylistCreated contentType.
|
|
10752
|
+
* @member {string} contentType
|
|
10753
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10754
|
+
* @instance
|
|
10755
|
+
*/
|
|
10756
|
+
ContentfulWorkoutPlaylistCreated.prototype.contentType = "";
|
|
10757
|
+
|
|
10758
|
+
/**
|
|
10759
|
+
* ContentfulWorkoutPlaylistCreated type.
|
|
10760
|
+
* @member {Object.<string,string>} type
|
|
10761
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10762
|
+
* @instance
|
|
10763
|
+
*/
|
|
10764
|
+
ContentfulWorkoutPlaylistCreated.prototype.type = $util.emptyObject;
|
|
10765
|
+
|
|
10766
|
+
/**
|
|
10767
|
+
* ContentfulWorkoutPlaylistCreated title.
|
|
10768
|
+
* @member {Object.<string,string>} title
|
|
10769
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10770
|
+
* @instance
|
|
10771
|
+
*/
|
|
10772
|
+
ContentfulWorkoutPlaylistCreated.prototype.title = $util.emptyObject;
|
|
10773
|
+
|
|
10774
|
+
/**
|
|
10775
|
+
* ContentfulWorkoutPlaylistCreated teaser.
|
|
10776
|
+
* @member {Object.<string,string>} teaser
|
|
10777
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10778
|
+
* @instance
|
|
10779
|
+
*/
|
|
10780
|
+
ContentfulWorkoutPlaylistCreated.prototype.teaser = $util.emptyObject;
|
|
10781
|
+
|
|
10782
|
+
/**
|
|
10783
|
+
* ContentfulWorkoutPlaylistCreated description.
|
|
10784
|
+
* @member {Object.<string,string>} description
|
|
10785
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10786
|
+
* @instance
|
|
10787
|
+
*/
|
|
10788
|
+
ContentfulWorkoutPlaylistCreated.prototype.description = $util.emptyObject;
|
|
10789
|
+
|
|
10790
|
+
/**
|
|
10791
|
+
* ContentfulWorkoutPlaylistCreated playerOrientation.
|
|
10792
|
+
* @member {Object.<string,string>} playerOrientation
|
|
10793
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10794
|
+
* @instance
|
|
10795
|
+
*/
|
|
10796
|
+
ContentfulWorkoutPlaylistCreated.prototype.playerOrientation = $util.emptyObject;
|
|
10797
|
+
|
|
10798
|
+
/**
|
|
10799
|
+
* ContentfulWorkoutPlaylistCreated videoSegments.
|
|
10800
|
+
* @member {Object.<string,contentful.IIdReferences>} videoSegments
|
|
10801
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10802
|
+
* @instance
|
|
10803
|
+
*/
|
|
10804
|
+
ContentfulWorkoutPlaylistCreated.prototype.videoSegments = $util.emptyObject;
|
|
10805
|
+
|
|
10806
|
+
/**
|
|
10807
|
+
* ContentfulWorkoutPlaylistCreated duration.
|
|
10808
|
+
* @member {Object.<string,number>} duration
|
|
10809
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10810
|
+
* @instance
|
|
10811
|
+
*/
|
|
10812
|
+
ContentfulWorkoutPlaylistCreated.prototype.duration = $util.emptyObject;
|
|
10813
|
+
|
|
10814
|
+
/**
|
|
10815
|
+
* ContentfulWorkoutPlaylistCreated tileMedia.
|
|
10816
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
10817
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10818
|
+
* @instance
|
|
10819
|
+
*/
|
|
10820
|
+
ContentfulWorkoutPlaylistCreated.prototype.tileMedia = $util.emptyObject;
|
|
10821
|
+
|
|
10822
|
+
/**
|
|
10823
|
+
* ContentfulWorkoutPlaylistCreated headerImageMedia.
|
|
10824
|
+
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
10825
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10826
|
+
* @instance
|
|
10827
|
+
*/
|
|
10828
|
+
ContentfulWorkoutPlaylistCreated.prototype.headerImageMedia = $util.emptyObject;
|
|
10829
|
+
|
|
10830
|
+
/**
|
|
10831
|
+
* ContentfulWorkoutPlaylistCreated accessGroups.
|
|
10832
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
10833
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10834
|
+
* @instance
|
|
10835
|
+
*/
|
|
10836
|
+
ContentfulWorkoutPlaylistCreated.prototype.accessGroups = $util.emptyArray;
|
|
10837
|
+
|
|
10838
|
+
/**
|
|
10839
|
+
* ContentfulWorkoutPlaylistCreated createdAt.
|
|
10840
|
+
* @member {number|Long} createdAt
|
|
10841
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10842
|
+
* @instance
|
|
10843
|
+
*/
|
|
10844
|
+
ContentfulWorkoutPlaylistCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10845
|
+
|
|
10846
|
+
/**
|
|
10847
|
+
* Creates a new ContentfulWorkoutPlaylistCreated instance using the specified properties.
|
|
10848
|
+
* @function create
|
|
10849
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10850
|
+
* @static
|
|
10851
|
+
* @param {IContentfulWorkoutPlaylistCreated=} [properties] Properties to set
|
|
10852
|
+
* @returns {ContentfulWorkoutPlaylistCreated} ContentfulWorkoutPlaylistCreated instance
|
|
10853
|
+
*/
|
|
10854
|
+
ContentfulWorkoutPlaylistCreated.create = function create(properties) {
|
|
10855
|
+
return new ContentfulWorkoutPlaylistCreated(properties);
|
|
10856
|
+
};
|
|
10857
|
+
|
|
10858
|
+
/**
|
|
10859
|
+
* Encodes the specified ContentfulWorkoutPlaylistCreated message. Does not implicitly {@link ContentfulWorkoutPlaylistCreated.verify|verify} messages.
|
|
10860
|
+
* @function encode
|
|
10861
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10862
|
+
* @static
|
|
10863
|
+
* @param {IContentfulWorkoutPlaylistCreated} message ContentfulWorkoutPlaylistCreated message or plain object to encode
|
|
10864
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10865
|
+
* @returns {$protobuf.Writer} Writer
|
|
10866
|
+
*/
|
|
10867
|
+
ContentfulWorkoutPlaylistCreated.encode = function encode(message, writer) {
|
|
10868
|
+
if (!writer)
|
|
10869
|
+
writer = $Writer.create();
|
|
10870
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
10871
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
10872
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
10873
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
10874
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
10875
|
+
for (var keys = Object.keys(message.type), i = 0; i < keys.length; ++i)
|
|
10876
|
+
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();
|
|
10877
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
10878
|
+
for (var keys = Object.keys(message.title), i = 0; i < keys.length; ++i)
|
|
10879
|
+
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();
|
|
10880
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
10881
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
10882
|
+
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();
|
|
10883
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
10884
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
10885
|
+
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();
|
|
10886
|
+
if (message.playerOrientation != null && message.hasOwnProperty("playerOrientation"))
|
|
10887
|
+
for (var keys = Object.keys(message.playerOrientation), i = 0; i < keys.length; ++i)
|
|
10888
|
+
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();
|
|
10889
|
+
if (message.videoSegments != null && message.hasOwnProperty("videoSegments"))
|
|
10890
|
+
for (var keys = Object.keys(message.videoSegments), i = 0; i < keys.length; ++i) {
|
|
10891
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
10892
|
+
$root.contentful.IdReferences.encode(message.videoSegments[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
10893
|
+
}
|
|
10894
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
10895
|
+
for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
|
|
10896
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
|
|
10897
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
10898
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
10899
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
10900
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
10901
|
+
}
|
|
10902
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
|
|
10903
|
+
for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
10904
|
+
writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
10905
|
+
$root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
10906
|
+
}
|
|
10907
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
10908
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
10909
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
10910
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
10911
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.createdAt);
|
|
10912
|
+
return writer;
|
|
10913
|
+
};
|
|
10914
|
+
|
|
10915
|
+
/**
|
|
10916
|
+
* Encodes the specified ContentfulWorkoutPlaylistCreated message, length delimited. Does not implicitly {@link ContentfulWorkoutPlaylistCreated.verify|verify} messages.
|
|
10917
|
+
* @function encodeDelimited
|
|
10918
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10919
|
+
* @static
|
|
10920
|
+
* @param {IContentfulWorkoutPlaylistCreated} message ContentfulWorkoutPlaylistCreated message or plain object to encode
|
|
10921
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10922
|
+
* @returns {$protobuf.Writer} Writer
|
|
10923
|
+
*/
|
|
10924
|
+
ContentfulWorkoutPlaylistCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10925
|
+
return this.encode(message, writer).ldelim();
|
|
10926
|
+
};
|
|
10927
|
+
|
|
10928
|
+
/**
|
|
10929
|
+
* Decodes a ContentfulWorkoutPlaylistCreated message from the specified reader or buffer.
|
|
10930
|
+
* @function decode
|
|
10931
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
10932
|
+
* @static
|
|
10933
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10934
|
+
* @param {number} [length] Message length if known beforehand
|
|
10935
|
+
* @returns {ContentfulWorkoutPlaylistCreated} ContentfulWorkoutPlaylistCreated
|
|
10936
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10937
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10938
|
+
*/
|
|
10939
|
+
ContentfulWorkoutPlaylistCreated.decode = function decode(reader, length) {
|
|
10940
|
+
if (!(reader instanceof $Reader))
|
|
10941
|
+
reader = $Reader.create(reader);
|
|
10942
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulWorkoutPlaylistCreated(), key;
|
|
10943
|
+
while (reader.pos < end) {
|
|
10944
|
+
var tag = reader.uint32();
|
|
10945
|
+
switch (tag >>> 3) {
|
|
10946
|
+
case 1:
|
|
10947
|
+
message.slug = reader.string();
|
|
10948
|
+
break;
|
|
10949
|
+
case 2:
|
|
10950
|
+
message.contentType = reader.string();
|
|
10951
|
+
break;
|
|
10952
|
+
case 3:
|
|
10953
|
+
reader.skip().pos++;
|
|
10954
|
+
if (message.type === $util.emptyObject)
|
|
10955
|
+
message.type = {};
|
|
10956
|
+
key = reader.string();
|
|
10957
|
+
reader.pos++;
|
|
10958
|
+
message.type[key] = reader.string();
|
|
10959
|
+
break;
|
|
10960
|
+
case 4:
|
|
10961
|
+
reader.skip().pos++;
|
|
10962
|
+
if (message.title === $util.emptyObject)
|
|
10963
|
+
message.title = {};
|
|
10964
|
+
key = reader.string();
|
|
10965
|
+
reader.pos++;
|
|
10966
|
+
message.title[key] = reader.string();
|
|
10967
|
+
break;
|
|
10968
|
+
case 5:
|
|
10969
|
+
reader.skip().pos++;
|
|
10970
|
+
if (message.teaser === $util.emptyObject)
|
|
10971
|
+
message.teaser = {};
|
|
10972
|
+
key = reader.string();
|
|
10973
|
+
reader.pos++;
|
|
10974
|
+
message.teaser[key] = reader.string();
|
|
10975
|
+
break;
|
|
10976
|
+
case 6:
|
|
10977
|
+
reader.skip().pos++;
|
|
10978
|
+
if (message.description === $util.emptyObject)
|
|
10979
|
+
message.description = {};
|
|
10980
|
+
key = reader.string();
|
|
10981
|
+
reader.pos++;
|
|
10982
|
+
message.description[key] = reader.string();
|
|
10983
|
+
break;
|
|
10984
|
+
case 7:
|
|
10985
|
+
reader.skip().pos++;
|
|
10986
|
+
if (message.playerOrientation === $util.emptyObject)
|
|
10987
|
+
message.playerOrientation = {};
|
|
10988
|
+
key = reader.string();
|
|
10989
|
+
reader.pos++;
|
|
10990
|
+
message.playerOrientation[key] = reader.string();
|
|
10991
|
+
break;
|
|
10992
|
+
case 8:
|
|
10993
|
+
reader.skip().pos++;
|
|
10994
|
+
if (message.videoSegments === $util.emptyObject)
|
|
10995
|
+
message.videoSegments = {};
|
|
10996
|
+
key = reader.string();
|
|
10997
|
+
reader.pos++;
|
|
10998
|
+
message.videoSegments[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
10999
|
+
break;
|
|
11000
|
+
case 9:
|
|
11001
|
+
reader.skip().pos++;
|
|
11002
|
+
if (message.duration === $util.emptyObject)
|
|
11003
|
+
message.duration = {};
|
|
11004
|
+
key = reader.string();
|
|
11005
|
+
reader.pos++;
|
|
11006
|
+
message.duration[key] = reader.int32();
|
|
11007
|
+
break;
|
|
11008
|
+
case 10:
|
|
11009
|
+
reader.skip().pos++;
|
|
11010
|
+
if (message.tileMedia === $util.emptyObject)
|
|
11011
|
+
message.tileMedia = {};
|
|
11012
|
+
key = reader.string();
|
|
11013
|
+
reader.pos++;
|
|
11014
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
11015
|
+
break;
|
|
11016
|
+
case 11:
|
|
11017
|
+
reader.skip().pos++;
|
|
11018
|
+
if (message.headerImageMedia === $util.emptyObject)
|
|
11019
|
+
message.headerImageMedia = {};
|
|
11020
|
+
key = reader.string();
|
|
11021
|
+
reader.pos++;
|
|
11022
|
+
message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
11023
|
+
break;
|
|
11024
|
+
case 12:
|
|
11025
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
11026
|
+
message.accessGroups = [];
|
|
11027
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
11028
|
+
break;
|
|
11029
|
+
case 13:
|
|
11030
|
+
message.createdAt = reader.uint64();
|
|
11031
|
+
break;
|
|
11032
|
+
default:
|
|
11033
|
+
reader.skipType(tag & 7);
|
|
11034
|
+
break;
|
|
11035
|
+
}
|
|
11036
|
+
}
|
|
11037
|
+
return message;
|
|
11038
|
+
};
|
|
11039
|
+
|
|
11040
|
+
/**
|
|
11041
|
+
* Decodes a ContentfulWorkoutPlaylistCreated message from the specified reader or buffer, length delimited.
|
|
11042
|
+
* @function decodeDelimited
|
|
11043
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
11044
|
+
* @static
|
|
11045
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11046
|
+
* @returns {ContentfulWorkoutPlaylistCreated} ContentfulWorkoutPlaylistCreated
|
|
11047
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11048
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11049
|
+
*/
|
|
11050
|
+
ContentfulWorkoutPlaylistCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
11051
|
+
if (!(reader instanceof $Reader))
|
|
11052
|
+
reader = new $Reader(reader);
|
|
11053
|
+
return this.decode(reader, reader.uint32());
|
|
11054
|
+
};
|
|
11055
|
+
|
|
11056
|
+
/**
|
|
11057
|
+
* Verifies a ContentfulWorkoutPlaylistCreated message.
|
|
11058
|
+
* @function verify
|
|
11059
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
11060
|
+
* @static
|
|
11061
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11062
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11063
|
+
*/
|
|
11064
|
+
ContentfulWorkoutPlaylistCreated.verify = function verify(message) {
|
|
11065
|
+
if (typeof message !== "object" || message === null)
|
|
11066
|
+
return "object expected";
|
|
11067
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11068
|
+
if (!$util.isString(message.slug))
|
|
11069
|
+
return "slug: string expected";
|
|
11070
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
11071
|
+
if (!$util.isString(message.contentType))
|
|
11072
|
+
return "contentType: string expected";
|
|
11073
|
+
if (message.type != null && message.hasOwnProperty("type")) {
|
|
11074
|
+
if (!$util.isObject(message.type))
|
|
11075
|
+
return "type: object expected";
|
|
11076
|
+
var key = Object.keys(message.type);
|
|
11077
|
+
for (var i = 0; i < key.length; ++i)
|
|
11078
|
+
if (!$util.isString(message.type[key[i]]))
|
|
11079
|
+
return "type: string{k:string} expected";
|
|
11080
|
+
}
|
|
11081
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
11082
|
+
if (!$util.isObject(message.title))
|
|
11083
|
+
return "title: object expected";
|
|
11084
|
+
var key = Object.keys(message.title);
|
|
11085
|
+
for (var i = 0; i < key.length; ++i)
|
|
11086
|
+
if (!$util.isString(message.title[key[i]]))
|
|
11087
|
+
return "title: string{k:string} expected";
|
|
11088
|
+
}
|
|
11089
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
11090
|
+
if (!$util.isObject(message.teaser))
|
|
11091
|
+
return "teaser: object expected";
|
|
11092
|
+
var key = Object.keys(message.teaser);
|
|
11093
|
+
for (var i = 0; i < key.length; ++i)
|
|
11094
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
11095
|
+
return "teaser: string{k:string} expected";
|
|
11096
|
+
}
|
|
11097
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
11098
|
+
if (!$util.isObject(message.description))
|
|
11099
|
+
return "description: object expected";
|
|
11100
|
+
var key = Object.keys(message.description);
|
|
11101
|
+
for (var i = 0; i < key.length; ++i)
|
|
11102
|
+
if (!$util.isString(message.description[key[i]]))
|
|
11103
|
+
return "description: string{k:string} expected";
|
|
11104
|
+
}
|
|
11105
|
+
if (message.playerOrientation != null && message.hasOwnProperty("playerOrientation")) {
|
|
11106
|
+
if (!$util.isObject(message.playerOrientation))
|
|
11107
|
+
return "playerOrientation: object expected";
|
|
11108
|
+
var key = Object.keys(message.playerOrientation);
|
|
11109
|
+
for (var i = 0; i < key.length; ++i)
|
|
11110
|
+
if (!$util.isString(message.playerOrientation[key[i]]))
|
|
11111
|
+
return "playerOrientation: string{k:string} expected";
|
|
11112
|
+
}
|
|
11113
|
+
if (message.videoSegments != null && message.hasOwnProperty("videoSegments")) {
|
|
11114
|
+
if (!$util.isObject(message.videoSegments))
|
|
11115
|
+
return "videoSegments: object expected";
|
|
11116
|
+
var key = Object.keys(message.videoSegments);
|
|
11117
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11118
|
+
var error = $root.contentful.IdReferences.verify(message.videoSegments[key[i]]);
|
|
11119
|
+
if (error)
|
|
11120
|
+
return "videoSegments." + error;
|
|
11121
|
+
}
|
|
11122
|
+
}
|
|
11123
|
+
if (message.duration != null && message.hasOwnProperty("duration")) {
|
|
11124
|
+
if (!$util.isObject(message.duration))
|
|
11125
|
+
return "duration: object expected";
|
|
11126
|
+
var key = Object.keys(message.duration);
|
|
11127
|
+
for (var i = 0; i < key.length; ++i)
|
|
11128
|
+
if (!$util.isInteger(message.duration[key[i]]))
|
|
11129
|
+
return "duration: integer{k:string} expected";
|
|
11130
|
+
}
|
|
11131
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
11132
|
+
if (!$util.isObject(message.tileMedia))
|
|
11133
|
+
return "tileMedia: object expected";
|
|
11134
|
+
var key = Object.keys(message.tileMedia);
|
|
11135
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11136
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
11137
|
+
if (error)
|
|
11138
|
+
return "tileMedia." + error;
|
|
11139
|
+
}
|
|
11140
|
+
}
|
|
11141
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
|
|
11142
|
+
if (!$util.isObject(message.headerImageMedia))
|
|
11143
|
+
return "headerImageMedia: object expected";
|
|
11144
|
+
var key = Object.keys(message.headerImageMedia);
|
|
11145
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11146
|
+
var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
|
|
11147
|
+
if (error)
|
|
11148
|
+
return "headerImageMedia." + error;
|
|
11149
|
+
}
|
|
11150
|
+
}
|
|
11151
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
11152
|
+
if (!Array.isArray(message.accessGroups))
|
|
11153
|
+
return "accessGroups: array expected";
|
|
11154
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
11155
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
11156
|
+
if (error)
|
|
11157
|
+
return "accessGroups." + error;
|
|
11158
|
+
}
|
|
11159
|
+
}
|
|
11160
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11161
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
11162
|
+
return "createdAt: integer|Long expected";
|
|
11163
|
+
return null;
|
|
11164
|
+
};
|
|
11165
|
+
|
|
11166
|
+
/**
|
|
11167
|
+
* Creates a ContentfulWorkoutPlaylistCreated message from a plain object. Also converts values to their respective internal types.
|
|
11168
|
+
* @function fromObject
|
|
11169
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
11170
|
+
* @static
|
|
11171
|
+
* @param {Object.<string,*>} object Plain object
|
|
11172
|
+
* @returns {ContentfulWorkoutPlaylistCreated} ContentfulWorkoutPlaylistCreated
|
|
11173
|
+
*/
|
|
11174
|
+
ContentfulWorkoutPlaylistCreated.fromObject = function fromObject(object) {
|
|
11175
|
+
if (object instanceof $root.ContentfulWorkoutPlaylistCreated)
|
|
11176
|
+
return object;
|
|
11177
|
+
var message = new $root.ContentfulWorkoutPlaylistCreated();
|
|
11178
|
+
if (object.slug != null)
|
|
11179
|
+
message.slug = String(object.slug);
|
|
11180
|
+
if (object.contentType != null)
|
|
11181
|
+
message.contentType = String(object.contentType);
|
|
11182
|
+
if (object.type) {
|
|
11183
|
+
if (typeof object.type !== "object")
|
|
11184
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.type: object expected");
|
|
11185
|
+
message.type = {};
|
|
11186
|
+
for (var keys = Object.keys(object.type), i = 0; i < keys.length; ++i)
|
|
11187
|
+
message.type[keys[i]] = String(object.type[keys[i]]);
|
|
11188
|
+
}
|
|
11189
|
+
if (object.title) {
|
|
11190
|
+
if (typeof object.title !== "object")
|
|
11191
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.title: object expected");
|
|
11192
|
+
message.title = {};
|
|
11193
|
+
for (var keys = Object.keys(object.title), i = 0; i < keys.length; ++i)
|
|
11194
|
+
message.title[keys[i]] = String(object.title[keys[i]]);
|
|
11195
|
+
}
|
|
11196
|
+
if (object.teaser) {
|
|
11197
|
+
if (typeof object.teaser !== "object")
|
|
11198
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.teaser: object expected");
|
|
11199
|
+
message.teaser = {};
|
|
11200
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
11201
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
11202
|
+
}
|
|
11203
|
+
if (object.description) {
|
|
11204
|
+
if (typeof object.description !== "object")
|
|
11205
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.description: object expected");
|
|
11206
|
+
message.description = {};
|
|
11207
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
11208
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
11209
|
+
}
|
|
11210
|
+
if (object.playerOrientation) {
|
|
11211
|
+
if (typeof object.playerOrientation !== "object")
|
|
11212
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.playerOrientation: object expected");
|
|
11213
|
+
message.playerOrientation = {};
|
|
11214
|
+
for (var keys = Object.keys(object.playerOrientation), i = 0; i < keys.length; ++i)
|
|
11215
|
+
message.playerOrientation[keys[i]] = String(object.playerOrientation[keys[i]]);
|
|
11216
|
+
}
|
|
11217
|
+
if (object.videoSegments) {
|
|
11218
|
+
if (typeof object.videoSegments !== "object")
|
|
11219
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.videoSegments: object expected");
|
|
11220
|
+
message.videoSegments = {};
|
|
11221
|
+
for (var keys = Object.keys(object.videoSegments), i = 0; i < keys.length; ++i) {
|
|
11222
|
+
if (typeof object.videoSegments[keys[i]] !== "object")
|
|
11223
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.videoSegments: object expected");
|
|
11224
|
+
message.videoSegments[keys[i]] = $root.contentful.IdReferences.fromObject(object.videoSegments[keys[i]]);
|
|
11225
|
+
}
|
|
11226
|
+
}
|
|
11227
|
+
if (object.duration) {
|
|
11228
|
+
if (typeof object.duration !== "object")
|
|
11229
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.duration: object expected");
|
|
11230
|
+
message.duration = {};
|
|
11231
|
+
for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
|
|
11232
|
+
message.duration[keys[i]] = object.duration[keys[i]] | 0;
|
|
11233
|
+
}
|
|
11234
|
+
if (object.tileMedia) {
|
|
11235
|
+
if (typeof object.tileMedia !== "object")
|
|
11236
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.tileMedia: object expected");
|
|
11237
|
+
message.tileMedia = {};
|
|
11238
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
11239
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
11240
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.tileMedia: object expected");
|
|
11241
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
11242
|
+
}
|
|
11243
|
+
}
|
|
11244
|
+
if (object.headerImageMedia) {
|
|
11245
|
+
if (typeof object.headerImageMedia !== "object")
|
|
11246
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.headerImageMedia: object expected");
|
|
11247
|
+
message.headerImageMedia = {};
|
|
11248
|
+
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
11249
|
+
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
11250
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.headerImageMedia: object expected");
|
|
11251
|
+
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
11252
|
+
}
|
|
11253
|
+
}
|
|
11254
|
+
if (object.accessGroups) {
|
|
11255
|
+
if (!Array.isArray(object.accessGroups))
|
|
11256
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.accessGroups: array expected");
|
|
11257
|
+
message.accessGroups = [];
|
|
11258
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
11259
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
11260
|
+
throw TypeError(".ContentfulWorkoutPlaylistCreated.accessGroups: object expected");
|
|
11261
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
11262
|
+
}
|
|
11263
|
+
}
|
|
11264
|
+
if (object.createdAt != null)
|
|
11265
|
+
if ($util.Long)
|
|
11266
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
11267
|
+
else if (typeof object.createdAt === "string")
|
|
11268
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
11269
|
+
else if (typeof object.createdAt === "number")
|
|
11270
|
+
message.createdAt = object.createdAt;
|
|
11271
|
+
else if (typeof object.createdAt === "object")
|
|
11272
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
11273
|
+
return message;
|
|
11274
|
+
};
|
|
11275
|
+
|
|
11276
|
+
/**
|
|
11277
|
+
* Creates a plain object from a ContentfulWorkoutPlaylistCreated message. Also converts values to other types if specified.
|
|
11278
|
+
* @function toObject
|
|
11279
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
11280
|
+
* @static
|
|
11281
|
+
* @param {ContentfulWorkoutPlaylistCreated} message ContentfulWorkoutPlaylistCreated
|
|
11282
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11283
|
+
* @returns {Object.<string,*>} Plain object
|
|
11284
|
+
*/
|
|
11285
|
+
ContentfulWorkoutPlaylistCreated.toObject = function toObject(message, options) {
|
|
11286
|
+
if (!options)
|
|
11287
|
+
options = {};
|
|
11288
|
+
var object = {};
|
|
11289
|
+
if (options.arrays || options.defaults)
|
|
11290
|
+
object.accessGroups = [];
|
|
11291
|
+
if (options.objects || options.defaults) {
|
|
11292
|
+
object.type = {};
|
|
11293
|
+
object.title = {};
|
|
11294
|
+
object.teaser = {};
|
|
11295
|
+
object.description = {};
|
|
11296
|
+
object.playerOrientation = {};
|
|
11297
|
+
object.videoSegments = {};
|
|
11298
|
+
object.duration = {};
|
|
11299
|
+
object.tileMedia = {};
|
|
11300
|
+
object.headerImageMedia = {};
|
|
11301
|
+
}
|
|
11302
|
+
if (options.defaults) {
|
|
11303
|
+
object.slug = "";
|
|
11304
|
+
object.contentType = "";
|
|
11305
|
+
if ($util.Long) {
|
|
11306
|
+
var long = new $util.Long(0, 0, true);
|
|
11307
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11308
|
+
} else
|
|
11309
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
11310
|
+
}
|
|
11311
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11312
|
+
object.slug = message.slug;
|
|
11313
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
11314
|
+
object.contentType = message.contentType;
|
|
11315
|
+
var keys2;
|
|
11316
|
+
if (message.type && (keys2 = Object.keys(message.type)).length) {
|
|
11317
|
+
object.type = {};
|
|
11318
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11319
|
+
object.type[keys2[j]] = message.type[keys2[j]];
|
|
11320
|
+
}
|
|
11321
|
+
if (message.title && (keys2 = Object.keys(message.title)).length) {
|
|
11322
|
+
object.title = {};
|
|
11323
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11324
|
+
object.title[keys2[j]] = message.title[keys2[j]];
|
|
11325
|
+
}
|
|
11326
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
11327
|
+
object.teaser = {};
|
|
11328
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11329
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
11330
|
+
}
|
|
11331
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
11332
|
+
object.description = {};
|
|
11333
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11334
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
11335
|
+
}
|
|
11336
|
+
if (message.playerOrientation && (keys2 = Object.keys(message.playerOrientation)).length) {
|
|
11337
|
+
object.playerOrientation = {};
|
|
11338
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11339
|
+
object.playerOrientation[keys2[j]] = message.playerOrientation[keys2[j]];
|
|
11340
|
+
}
|
|
11341
|
+
if (message.videoSegments && (keys2 = Object.keys(message.videoSegments)).length) {
|
|
11342
|
+
object.videoSegments = {};
|
|
11343
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11344
|
+
object.videoSegments[keys2[j]] = $root.contentful.IdReferences.toObject(message.videoSegments[keys2[j]], options);
|
|
11345
|
+
}
|
|
11346
|
+
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
11347
|
+
object.duration = {};
|
|
11348
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11349
|
+
object.duration[keys2[j]] = message.duration[keys2[j]];
|
|
11350
|
+
}
|
|
11351
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
11352
|
+
object.tileMedia = {};
|
|
11353
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11354
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
11355
|
+
}
|
|
11356
|
+
if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
|
|
11357
|
+
object.headerImageMedia = {};
|
|
11358
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11359
|
+
object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
|
|
11360
|
+
}
|
|
11361
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
11362
|
+
object.accessGroups = [];
|
|
11363
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
11364
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
11365
|
+
}
|
|
11366
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11367
|
+
if (typeof message.createdAt === "number")
|
|
11368
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
11369
|
+
else
|
|
11370
|
+
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;
|
|
11371
|
+
return object;
|
|
11372
|
+
};
|
|
11373
|
+
|
|
11374
|
+
/**
|
|
11375
|
+
* Converts this ContentfulWorkoutPlaylistCreated to JSON.
|
|
11376
|
+
* @function toJSON
|
|
11377
|
+
* @memberof ContentfulWorkoutPlaylistCreated
|
|
11378
|
+
* @instance
|
|
11379
|
+
* @returns {Object.<string,*>} JSON object
|
|
11380
|
+
*/
|
|
11381
|
+
ContentfulWorkoutPlaylistCreated.prototype.toJSON = function toJSON() {
|
|
11382
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11383
|
+
};
|
|
11384
|
+
|
|
11385
|
+
return ContentfulWorkoutPlaylistCreated;
|
|
11386
|
+
})();
|
|
11387
|
+
|
|
11388
|
+
$root.ContentfulWorkoutPlaylistUpdated = (function() {
|
|
11389
|
+
|
|
11390
|
+
/**
|
|
11391
|
+
* Properties of a ContentfulWorkoutPlaylistUpdated.
|
|
11392
|
+
* @exports IContentfulWorkoutPlaylistUpdated
|
|
11393
|
+
* @interface IContentfulWorkoutPlaylistUpdated
|
|
11394
|
+
* @property {string|null} [slug] ContentfulWorkoutPlaylistUpdated slug
|
|
11395
|
+
* @property {string|null} [contentType] ContentfulWorkoutPlaylistUpdated contentType
|
|
11396
|
+
* @property {Object.<string,string>|null} [type] ContentfulWorkoutPlaylistUpdated type
|
|
11397
|
+
* @property {Object.<string,string>|null} [title] ContentfulWorkoutPlaylistUpdated title
|
|
11398
|
+
* @property {Object.<string,string>|null} [teaser] ContentfulWorkoutPlaylistUpdated teaser
|
|
11399
|
+
* @property {Object.<string,string>|null} [description] ContentfulWorkoutPlaylistUpdated description
|
|
11400
|
+
* @property {Object.<string,string>|null} [playerOrientation] ContentfulWorkoutPlaylistUpdated playerOrientation
|
|
11401
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [videoSegments] ContentfulWorkoutPlaylistUpdated videoSegments
|
|
11402
|
+
* @property {Object.<string,number>|null} [duration] ContentfulWorkoutPlaylistUpdated duration
|
|
11403
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulWorkoutPlaylistUpdated tileMedia
|
|
11404
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] ContentfulWorkoutPlaylistUpdated headerImageMedia
|
|
11405
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulWorkoutPlaylistUpdated accessGroups
|
|
11406
|
+
* @property {number|Long|null} [updatedAt] ContentfulWorkoutPlaylistUpdated updatedAt
|
|
11407
|
+
*/
|
|
11408
|
+
|
|
11409
|
+
/**
|
|
11410
|
+
* Constructs a new ContentfulWorkoutPlaylistUpdated.
|
|
11411
|
+
* @exports ContentfulWorkoutPlaylistUpdated
|
|
11412
|
+
* @classdesc Represents a ContentfulWorkoutPlaylistUpdated.
|
|
11413
|
+
* @implements IContentfulWorkoutPlaylistUpdated
|
|
11414
|
+
* @constructor
|
|
11415
|
+
* @param {IContentfulWorkoutPlaylistUpdated=} [properties] Properties to set
|
|
11416
|
+
*/
|
|
11417
|
+
function ContentfulWorkoutPlaylistUpdated(properties) {
|
|
11418
|
+
this.type = {};
|
|
11419
|
+
this.title = {};
|
|
11420
|
+
this.teaser = {};
|
|
11421
|
+
this.description = {};
|
|
11422
|
+
this.playerOrientation = {};
|
|
11423
|
+
this.videoSegments = {};
|
|
11424
|
+
this.duration = {};
|
|
11425
|
+
this.tileMedia = {};
|
|
11426
|
+
this.headerImageMedia = {};
|
|
11427
|
+
this.accessGroups = [];
|
|
11428
|
+
if (properties)
|
|
11429
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11430
|
+
if (properties[keys[i]] != null)
|
|
11431
|
+
this[keys[i]] = properties[keys[i]];
|
|
11432
|
+
}
|
|
11433
|
+
|
|
11434
|
+
/**
|
|
11435
|
+
* ContentfulWorkoutPlaylistUpdated slug.
|
|
11436
|
+
* @member {string} slug
|
|
11437
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11438
|
+
* @instance
|
|
11439
|
+
*/
|
|
11440
|
+
ContentfulWorkoutPlaylistUpdated.prototype.slug = "";
|
|
11441
|
+
|
|
11442
|
+
/**
|
|
11443
|
+
* ContentfulWorkoutPlaylistUpdated contentType.
|
|
11444
|
+
* @member {string} contentType
|
|
11445
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11446
|
+
* @instance
|
|
11447
|
+
*/
|
|
11448
|
+
ContentfulWorkoutPlaylistUpdated.prototype.contentType = "";
|
|
11449
|
+
|
|
11450
|
+
/**
|
|
11451
|
+
* ContentfulWorkoutPlaylistUpdated type.
|
|
11452
|
+
* @member {Object.<string,string>} type
|
|
11453
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11454
|
+
* @instance
|
|
11455
|
+
*/
|
|
11456
|
+
ContentfulWorkoutPlaylistUpdated.prototype.type = $util.emptyObject;
|
|
11457
|
+
|
|
11458
|
+
/**
|
|
11459
|
+
* ContentfulWorkoutPlaylistUpdated title.
|
|
11460
|
+
* @member {Object.<string,string>} title
|
|
11461
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11462
|
+
* @instance
|
|
11463
|
+
*/
|
|
11464
|
+
ContentfulWorkoutPlaylistUpdated.prototype.title = $util.emptyObject;
|
|
11465
|
+
|
|
11466
|
+
/**
|
|
11467
|
+
* ContentfulWorkoutPlaylistUpdated teaser.
|
|
11468
|
+
* @member {Object.<string,string>} teaser
|
|
11469
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11470
|
+
* @instance
|
|
11471
|
+
*/
|
|
11472
|
+
ContentfulWorkoutPlaylistUpdated.prototype.teaser = $util.emptyObject;
|
|
11473
|
+
|
|
11474
|
+
/**
|
|
11475
|
+
* ContentfulWorkoutPlaylistUpdated description.
|
|
11476
|
+
* @member {Object.<string,string>} description
|
|
11477
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11478
|
+
* @instance
|
|
11479
|
+
*/
|
|
11480
|
+
ContentfulWorkoutPlaylistUpdated.prototype.description = $util.emptyObject;
|
|
11481
|
+
|
|
11482
|
+
/**
|
|
11483
|
+
* ContentfulWorkoutPlaylistUpdated playerOrientation.
|
|
11484
|
+
* @member {Object.<string,string>} playerOrientation
|
|
11485
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11486
|
+
* @instance
|
|
11487
|
+
*/
|
|
11488
|
+
ContentfulWorkoutPlaylistUpdated.prototype.playerOrientation = $util.emptyObject;
|
|
11489
|
+
|
|
11490
|
+
/**
|
|
11491
|
+
* ContentfulWorkoutPlaylistUpdated videoSegments.
|
|
11492
|
+
* @member {Object.<string,contentful.IIdReferences>} videoSegments
|
|
11493
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11494
|
+
* @instance
|
|
11495
|
+
*/
|
|
11496
|
+
ContentfulWorkoutPlaylistUpdated.prototype.videoSegments = $util.emptyObject;
|
|
11497
|
+
|
|
11498
|
+
/**
|
|
11499
|
+
* ContentfulWorkoutPlaylistUpdated duration.
|
|
11500
|
+
* @member {Object.<string,number>} duration
|
|
11501
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11502
|
+
* @instance
|
|
11503
|
+
*/
|
|
11504
|
+
ContentfulWorkoutPlaylistUpdated.prototype.duration = $util.emptyObject;
|
|
11505
|
+
|
|
11506
|
+
/**
|
|
11507
|
+
* ContentfulWorkoutPlaylistUpdated tileMedia.
|
|
11508
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
11509
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11510
|
+
* @instance
|
|
11511
|
+
*/
|
|
11512
|
+
ContentfulWorkoutPlaylistUpdated.prototype.tileMedia = $util.emptyObject;
|
|
11513
|
+
|
|
11514
|
+
/**
|
|
11515
|
+
* ContentfulWorkoutPlaylistUpdated headerImageMedia.
|
|
11516
|
+
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
11517
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11518
|
+
* @instance
|
|
11519
|
+
*/
|
|
11520
|
+
ContentfulWorkoutPlaylistUpdated.prototype.headerImageMedia = $util.emptyObject;
|
|
11521
|
+
|
|
11522
|
+
/**
|
|
11523
|
+
* ContentfulWorkoutPlaylistUpdated accessGroups.
|
|
11524
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
11525
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11526
|
+
* @instance
|
|
11527
|
+
*/
|
|
11528
|
+
ContentfulWorkoutPlaylistUpdated.prototype.accessGroups = $util.emptyArray;
|
|
11529
|
+
|
|
11530
|
+
/**
|
|
11531
|
+
* ContentfulWorkoutPlaylistUpdated updatedAt.
|
|
11532
|
+
* @member {number|Long} updatedAt
|
|
11533
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11534
|
+
* @instance
|
|
11535
|
+
*/
|
|
11536
|
+
ContentfulWorkoutPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11537
|
+
|
|
11538
|
+
/**
|
|
11539
|
+
* Creates a new ContentfulWorkoutPlaylistUpdated instance using the specified properties.
|
|
11540
|
+
* @function create
|
|
11541
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11542
|
+
* @static
|
|
11543
|
+
* @param {IContentfulWorkoutPlaylistUpdated=} [properties] Properties to set
|
|
11544
|
+
* @returns {ContentfulWorkoutPlaylistUpdated} ContentfulWorkoutPlaylistUpdated instance
|
|
11545
|
+
*/
|
|
11546
|
+
ContentfulWorkoutPlaylistUpdated.create = function create(properties) {
|
|
11547
|
+
return new ContentfulWorkoutPlaylistUpdated(properties);
|
|
11548
|
+
};
|
|
11549
|
+
|
|
11550
|
+
/**
|
|
11551
|
+
* Encodes the specified ContentfulWorkoutPlaylistUpdated message. Does not implicitly {@link ContentfulWorkoutPlaylistUpdated.verify|verify} messages.
|
|
11552
|
+
* @function encode
|
|
11553
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11554
|
+
* @static
|
|
11555
|
+
* @param {IContentfulWorkoutPlaylistUpdated} message ContentfulWorkoutPlaylistUpdated message or plain object to encode
|
|
11556
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11557
|
+
* @returns {$protobuf.Writer} Writer
|
|
11558
|
+
*/
|
|
11559
|
+
ContentfulWorkoutPlaylistUpdated.encode = function encode(message, writer) {
|
|
11560
|
+
if (!writer)
|
|
11561
|
+
writer = $Writer.create();
|
|
11562
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11563
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
11564
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
11565
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
11566
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
11567
|
+
for (var keys = Object.keys(message.type), i = 0; i < keys.length; ++i)
|
|
11568
|
+
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();
|
|
11569
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
11570
|
+
for (var keys = Object.keys(message.title), i = 0; i < keys.length; ++i)
|
|
11571
|
+
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();
|
|
11572
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
11573
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
11574
|
+
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();
|
|
11575
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
11576
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
11577
|
+
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();
|
|
11578
|
+
if (message.playerOrientation != null && message.hasOwnProperty("playerOrientation"))
|
|
11579
|
+
for (var keys = Object.keys(message.playerOrientation), i = 0; i < keys.length; ++i)
|
|
11580
|
+
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();
|
|
11581
|
+
if (message.videoSegments != null && message.hasOwnProperty("videoSegments"))
|
|
11582
|
+
for (var keys = Object.keys(message.videoSegments), i = 0; i < keys.length; ++i) {
|
|
11583
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11584
|
+
$root.contentful.IdReferences.encode(message.videoSegments[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11585
|
+
}
|
|
11586
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
11587
|
+
for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
|
|
11588
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
|
|
11589
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
11590
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
11591
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11592
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11593
|
+
}
|
|
11594
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
|
|
11595
|
+
for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
11596
|
+
writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11597
|
+
$root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11598
|
+
}
|
|
11599
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
11600
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
11601
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
11602
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
11603
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
|
|
11604
|
+
return writer;
|
|
11605
|
+
};
|
|
11606
|
+
|
|
11607
|
+
/**
|
|
11608
|
+
* Encodes the specified ContentfulWorkoutPlaylistUpdated message, length delimited. Does not implicitly {@link ContentfulWorkoutPlaylistUpdated.verify|verify} messages.
|
|
11609
|
+
* @function encodeDelimited
|
|
11610
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11611
|
+
* @static
|
|
11612
|
+
* @param {IContentfulWorkoutPlaylistUpdated} message ContentfulWorkoutPlaylistUpdated message or plain object to encode
|
|
11613
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11614
|
+
* @returns {$protobuf.Writer} Writer
|
|
11615
|
+
*/
|
|
11616
|
+
ContentfulWorkoutPlaylistUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11617
|
+
return this.encode(message, writer).ldelim();
|
|
11618
|
+
};
|
|
11619
|
+
|
|
11620
|
+
/**
|
|
11621
|
+
* Decodes a ContentfulWorkoutPlaylistUpdated message from the specified reader or buffer.
|
|
11622
|
+
* @function decode
|
|
11623
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11624
|
+
* @static
|
|
11625
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11626
|
+
* @param {number} [length] Message length if known beforehand
|
|
11627
|
+
* @returns {ContentfulWorkoutPlaylistUpdated} ContentfulWorkoutPlaylistUpdated
|
|
11628
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11629
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11630
|
+
*/
|
|
11631
|
+
ContentfulWorkoutPlaylistUpdated.decode = function decode(reader, length) {
|
|
11632
|
+
if (!(reader instanceof $Reader))
|
|
11633
|
+
reader = $Reader.create(reader);
|
|
11634
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulWorkoutPlaylistUpdated(), key;
|
|
11635
|
+
while (reader.pos < end) {
|
|
11636
|
+
var tag = reader.uint32();
|
|
11637
|
+
switch (tag >>> 3) {
|
|
11638
|
+
case 1:
|
|
11639
|
+
message.slug = reader.string();
|
|
11640
|
+
break;
|
|
11641
|
+
case 2:
|
|
11642
|
+
message.contentType = reader.string();
|
|
11643
|
+
break;
|
|
11644
|
+
case 3:
|
|
11645
|
+
reader.skip().pos++;
|
|
11646
|
+
if (message.type === $util.emptyObject)
|
|
11647
|
+
message.type = {};
|
|
11648
|
+
key = reader.string();
|
|
11649
|
+
reader.pos++;
|
|
11650
|
+
message.type[key] = reader.string();
|
|
11651
|
+
break;
|
|
11652
|
+
case 4:
|
|
11653
|
+
reader.skip().pos++;
|
|
11654
|
+
if (message.title === $util.emptyObject)
|
|
11655
|
+
message.title = {};
|
|
11656
|
+
key = reader.string();
|
|
11657
|
+
reader.pos++;
|
|
11658
|
+
message.title[key] = reader.string();
|
|
11659
|
+
break;
|
|
11660
|
+
case 5:
|
|
11661
|
+
reader.skip().pos++;
|
|
11662
|
+
if (message.teaser === $util.emptyObject)
|
|
11663
|
+
message.teaser = {};
|
|
11664
|
+
key = reader.string();
|
|
11665
|
+
reader.pos++;
|
|
11666
|
+
message.teaser[key] = reader.string();
|
|
11667
|
+
break;
|
|
11668
|
+
case 6:
|
|
11669
|
+
reader.skip().pos++;
|
|
11670
|
+
if (message.description === $util.emptyObject)
|
|
11671
|
+
message.description = {};
|
|
11672
|
+
key = reader.string();
|
|
11673
|
+
reader.pos++;
|
|
11674
|
+
message.description[key] = reader.string();
|
|
11675
|
+
break;
|
|
11676
|
+
case 7:
|
|
11677
|
+
reader.skip().pos++;
|
|
11678
|
+
if (message.playerOrientation === $util.emptyObject)
|
|
11679
|
+
message.playerOrientation = {};
|
|
11680
|
+
key = reader.string();
|
|
11681
|
+
reader.pos++;
|
|
11682
|
+
message.playerOrientation[key] = reader.string();
|
|
11683
|
+
break;
|
|
11684
|
+
case 8:
|
|
11685
|
+
reader.skip().pos++;
|
|
11686
|
+
if (message.videoSegments === $util.emptyObject)
|
|
11687
|
+
message.videoSegments = {};
|
|
11688
|
+
key = reader.string();
|
|
11689
|
+
reader.pos++;
|
|
11690
|
+
message.videoSegments[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
11691
|
+
break;
|
|
11692
|
+
case 9:
|
|
11693
|
+
reader.skip().pos++;
|
|
11694
|
+
if (message.duration === $util.emptyObject)
|
|
11695
|
+
message.duration = {};
|
|
11696
|
+
key = reader.string();
|
|
11697
|
+
reader.pos++;
|
|
11698
|
+
message.duration[key] = reader.int32();
|
|
11699
|
+
break;
|
|
11700
|
+
case 10:
|
|
11701
|
+
reader.skip().pos++;
|
|
11702
|
+
if (message.tileMedia === $util.emptyObject)
|
|
11703
|
+
message.tileMedia = {};
|
|
11704
|
+
key = reader.string();
|
|
11705
|
+
reader.pos++;
|
|
11706
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
11707
|
+
break;
|
|
11708
|
+
case 11:
|
|
11709
|
+
reader.skip().pos++;
|
|
11710
|
+
if (message.headerImageMedia === $util.emptyObject)
|
|
11711
|
+
message.headerImageMedia = {};
|
|
11712
|
+
key = reader.string();
|
|
11713
|
+
reader.pos++;
|
|
11714
|
+
message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
11715
|
+
break;
|
|
11716
|
+
case 12:
|
|
11717
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
11718
|
+
message.accessGroups = [];
|
|
11719
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
11720
|
+
break;
|
|
11721
|
+
case 13:
|
|
11722
|
+
message.updatedAt = reader.uint64();
|
|
11723
|
+
break;
|
|
11724
|
+
default:
|
|
11725
|
+
reader.skipType(tag & 7);
|
|
11726
|
+
break;
|
|
11727
|
+
}
|
|
11728
|
+
}
|
|
11729
|
+
return message;
|
|
11730
|
+
};
|
|
11731
|
+
|
|
11732
|
+
/**
|
|
11733
|
+
* Decodes a ContentfulWorkoutPlaylistUpdated message from the specified reader or buffer, length delimited.
|
|
11734
|
+
* @function decodeDelimited
|
|
11735
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11736
|
+
* @static
|
|
11737
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11738
|
+
* @returns {ContentfulWorkoutPlaylistUpdated} ContentfulWorkoutPlaylistUpdated
|
|
11739
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11740
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11741
|
+
*/
|
|
11742
|
+
ContentfulWorkoutPlaylistUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
11743
|
+
if (!(reader instanceof $Reader))
|
|
11744
|
+
reader = new $Reader(reader);
|
|
11745
|
+
return this.decode(reader, reader.uint32());
|
|
11746
|
+
};
|
|
11747
|
+
|
|
11748
|
+
/**
|
|
11749
|
+
* Verifies a ContentfulWorkoutPlaylistUpdated message.
|
|
11750
|
+
* @function verify
|
|
11751
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11752
|
+
* @static
|
|
11753
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11754
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11755
|
+
*/
|
|
11756
|
+
ContentfulWorkoutPlaylistUpdated.verify = function verify(message) {
|
|
11757
|
+
if (typeof message !== "object" || message === null)
|
|
11758
|
+
return "object expected";
|
|
11759
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11760
|
+
if (!$util.isString(message.slug))
|
|
11761
|
+
return "slug: string expected";
|
|
11762
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
11763
|
+
if (!$util.isString(message.contentType))
|
|
11764
|
+
return "contentType: string expected";
|
|
11765
|
+
if (message.type != null && message.hasOwnProperty("type")) {
|
|
11766
|
+
if (!$util.isObject(message.type))
|
|
11767
|
+
return "type: object expected";
|
|
11768
|
+
var key = Object.keys(message.type);
|
|
11769
|
+
for (var i = 0; i < key.length; ++i)
|
|
11770
|
+
if (!$util.isString(message.type[key[i]]))
|
|
11771
|
+
return "type: string{k:string} expected";
|
|
11772
|
+
}
|
|
11773
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
11774
|
+
if (!$util.isObject(message.title))
|
|
11775
|
+
return "title: object expected";
|
|
11776
|
+
var key = Object.keys(message.title);
|
|
11777
|
+
for (var i = 0; i < key.length; ++i)
|
|
11778
|
+
if (!$util.isString(message.title[key[i]]))
|
|
11779
|
+
return "title: string{k:string} expected";
|
|
11780
|
+
}
|
|
11781
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
11782
|
+
if (!$util.isObject(message.teaser))
|
|
11783
|
+
return "teaser: object expected";
|
|
11784
|
+
var key = Object.keys(message.teaser);
|
|
11785
|
+
for (var i = 0; i < key.length; ++i)
|
|
11786
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
11787
|
+
return "teaser: string{k:string} expected";
|
|
11788
|
+
}
|
|
11789
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
11790
|
+
if (!$util.isObject(message.description))
|
|
11791
|
+
return "description: object expected";
|
|
11792
|
+
var key = Object.keys(message.description);
|
|
11793
|
+
for (var i = 0; i < key.length; ++i)
|
|
11794
|
+
if (!$util.isString(message.description[key[i]]))
|
|
11795
|
+
return "description: string{k:string} expected";
|
|
11796
|
+
}
|
|
11797
|
+
if (message.playerOrientation != null && message.hasOwnProperty("playerOrientation")) {
|
|
11798
|
+
if (!$util.isObject(message.playerOrientation))
|
|
11799
|
+
return "playerOrientation: object expected";
|
|
11800
|
+
var key = Object.keys(message.playerOrientation);
|
|
11801
|
+
for (var i = 0; i < key.length; ++i)
|
|
11802
|
+
if (!$util.isString(message.playerOrientation[key[i]]))
|
|
11803
|
+
return "playerOrientation: string{k:string} expected";
|
|
11804
|
+
}
|
|
11805
|
+
if (message.videoSegments != null && message.hasOwnProperty("videoSegments")) {
|
|
11806
|
+
if (!$util.isObject(message.videoSegments))
|
|
11807
|
+
return "videoSegments: object expected";
|
|
11808
|
+
var key = Object.keys(message.videoSegments);
|
|
11809
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11810
|
+
var error = $root.contentful.IdReferences.verify(message.videoSegments[key[i]]);
|
|
11811
|
+
if (error)
|
|
11812
|
+
return "videoSegments." + error;
|
|
11813
|
+
}
|
|
11814
|
+
}
|
|
11815
|
+
if (message.duration != null && message.hasOwnProperty("duration")) {
|
|
11816
|
+
if (!$util.isObject(message.duration))
|
|
11817
|
+
return "duration: object expected";
|
|
11818
|
+
var key = Object.keys(message.duration);
|
|
11819
|
+
for (var i = 0; i < key.length; ++i)
|
|
11820
|
+
if (!$util.isInteger(message.duration[key[i]]))
|
|
11821
|
+
return "duration: integer{k:string} expected";
|
|
11822
|
+
}
|
|
11823
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
11824
|
+
if (!$util.isObject(message.tileMedia))
|
|
11825
|
+
return "tileMedia: object expected";
|
|
11826
|
+
var key = Object.keys(message.tileMedia);
|
|
11827
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11828
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
11829
|
+
if (error)
|
|
11830
|
+
return "tileMedia." + error;
|
|
11831
|
+
}
|
|
11832
|
+
}
|
|
11833
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
|
|
11834
|
+
if (!$util.isObject(message.headerImageMedia))
|
|
11835
|
+
return "headerImageMedia: object expected";
|
|
11836
|
+
var key = Object.keys(message.headerImageMedia);
|
|
11837
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11838
|
+
var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
|
|
11839
|
+
if (error)
|
|
11840
|
+
return "headerImageMedia." + error;
|
|
11841
|
+
}
|
|
11842
|
+
}
|
|
11843
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
11844
|
+
if (!Array.isArray(message.accessGroups))
|
|
11845
|
+
return "accessGroups: array expected";
|
|
11846
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
11847
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
11848
|
+
if (error)
|
|
11849
|
+
return "accessGroups." + error;
|
|
11850
|
+
}
|
|
11851
|
+
}
|
|
11852
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
11853
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
11854
|
+
return "updatedAt: integer|Long expected";
|
|
11855
|
+
return null;
|
|
11856
|
+
};
|
|
11857
|
+
|
|
11858
|
+
/**
|
|
11859
|
+
* Creates a ContentfulWorkoutPlaylistUpdated message from a plain object. Also converts values to their respective internal types.
|
|
11860
|
+
* @function fromObject
|
|
11861
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11862
|
+
* @static
|
|
11863
|
+
* @param {Object.<string,*>} object Plain object
|
|
11864
|
+
* @returns {ContentfulWorkoutPlaylistUpdated} ContentfulWorkoutPlaylistUpdated
|
|
11865
|
+
*/
|
|
11866
|
+
ContentfulWorkoutPlaylistUpdated.fromObject = function fromObject(object) {
|
|
11867
|
+
if (object instanceof $root.ContentfulWorkoutPlaylistUpdated)
|
|
11868
|
+
return object;
|
|
11869
|
+
var message = new $root.ContentfulWorkoutPlaylistUpdated();
|
|
11870
|
+
if (object.slug != null)
|
|
11871
|
+
message.slug = String(object.slug);
|
|
11872
|
+
if (object.contentType != null)
|
|
11873
|
+
message.contentType = String(object.contentType);
|
|
11874
|
+
if (object.type) {
|
|
11875
|
+
if (typeof object.type !== "object")
|
|
11876
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.type: object expected");
|
|
11877
|
+
message.type = {};
|
|
11878
|
+
for (var keys = Object.keys(object.type), i = 0; i < keys.length; ++i)
|
|
11879
|
+
message.type[keys[i]] = String(object.type[keys[i]]);
|
|
11880
|
+
}
|
|
11881
|
+
if (object.title) {
|
|
11882
|
+
if (typeof object.title !== "object")
|
|
11883
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.title: object expected");
|
|
11884
|
+
message.title = {};
|
|
11885
|
+
for (var keys = Object.keys(object.title), i = 0; i < keys.length; ++i)
|
|
11886
|
+
message.title[keys[i]] = String(object.title[keys[i]]);
|
|
11887
|
+
}
|
|
11888
|
+
if (object.teaser) {
|
|
11889
|
+
if (typeof object.teaser !== "object")
|
|
11890
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.teaser: object expected");
|
|
11891
|
+
message.teaser = {};
|
|
11892
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
11893
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
11894
|
+
}
|
|
11895
|
+
if (object.description) {
|
|
11896
|
+
if (typeof object.description !== "object")
|
|
11897
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.description: object expected");
|
|
11898
|
+
message.description = {};
|
|
11899
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
11900
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
11901
|
+
}
|
|
11902
|
+
if (object.playerOrientation) {
|
|
11903
|
+
if (typeof object.playerOrientation !== "object")
|
|
11904
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.playerOrientation: object expected");
|
|
11905
|
+
message.playerOrientation = {};
|
|
11906
|
+
for (var keys = Object.keys(object.playerOrientation), i = 0; i < keys.length; ++i)
|
|
11907
|
+
message.playerOrientation[keys[i]] = String(object.playerOrientation[keys[i]]);
|
|
11908
|
+
}
|
|
11909
|
+
if (object.videoSegments) {
|
|
11910
|
+
if (typeof object.videoSegments !== "object")
|
|
11911
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.videoSegments: object expected");
|
|
11912
|
+
message.videoSegments = {};
|
|
11913
|
+
for (var keys = Object.keys(object.videoSegments), i = 0; i < keys.length; ++i) {
|
|
11914
|
+
if (typeof object.videoSegments[keys[i]] !== "object")
|
|
11915
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.videoSegments: object expected");
|
|
11916
|
+
message.videoSegments[keys[i]] = $root.contentful.IdReferences.fromObject(object.videoSegments[keys[i]]);
|
|
11917
|
+
}
|
|
11918
|
+
}
|
|
11919
|
+
if (object.duration) {
|
|
11920
|
+
if (typeof object.duration !== "object")
|
|
11921
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.duration: object expected");
|
|
11922
|
+
message.duration = {};
|
|
11923
|
+
for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
|
|
11924
|
+
message.duration[keys[i]] = object.duration[keys[i]] | 0;
|
|
11925
|
+
}
|
|
11926
|
+
if (object.tileMedia) {
|
|
11927
|
+
if (typeof object.tileMedia !== "object")
|
|
11928
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.tileMedia: object expected");
|
|
11929
|
+
message.tileMedia = {};
|
|
11930
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
11931
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
11932
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.tileMedia: object expected");
|
|
11933
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
11934
|
+
}
|
|
11935
|
+
}
|
|
11936
|
+
if (object.headerImageMedia) {
|
|
11937
|
+
if (typeof object.headerImageMedia !== "object")
|
|
11938
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.headerImageMedia: object expected");
|
|
11939
|
+
message.headerImageMedia = {};
|
|
11940
|
+
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
11941
|
+
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
11942
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.headerImageMedia: object expected");
|
|
11943
|
+
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
11944
|
+
}
|
|
11945
|
+
}
|
|
11946
|
+
if (object.accessGroups) {
|
|
11947
|
+
if (!Array.isArray(object.accessGroups))
|
|
11948
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.accessGroups: array expected");
|
|
11949
|
+
message.accessGroups = [];
|
|
11950
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
11951
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
11952
|
+
throw TypeError(".ContentfulWorkoutPlaylistUpdated.accessGroups: object expected");
|
|
11953
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
11954
|
+
}
|
|
11955
|
+
}
|
|
11956
|
+
if (object.updatedAt != null)
|
|
11957
|
+
if ($util.Long)
|
|
11958
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
11959
|
+
else if (typeof object.updatedAt === "string")
|
|
11960
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
11961
|
+
else if (typeof object.updatedAt === "number")
|
|
11962
|
+
message.updatedAt = object.updatedAt;
|
|
11963
|
+
else if (typeof object.updatedAt === "object")
|
|
11964
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
11965
|
+
return message;
|
|
11966
|
+
};
|
|
11967
|
+
|
|
11968
|
+
/**
|
|
11969
|
+
* Creates a plain object from a ContentfulWorkoutPlaylistUpdated message. Also converts values to other types if specified.
|
|
11970
|
+
* @function toObject
|
|
11971
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
11972
|
+
* @static
|
|
11973
|
+
* @param {ContentfulWorkoutPlaylistUpdated} message ContentfulWorkoutPlaylistUpdated
|
|
11974
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11975
|
+
* @returns {Object.<string,*>} Plain object
|
|
11976
|
+
*/
|
|
11977
|
+
ContentfulWorkoutPlaylistUpdated.toObject = function toObject(message, options) {
|
|
11978
|
+
if (!options)
|
|
11979
|
+
options = {};
|
|
11980
|
+
var object = {};
|
|
11981
|
+
if (options.arrays || options.defaults)
|
|
11982
|
+
object.accessGroups = [];
|
|
11983
|
+
if (options.objects || options.defaults) {
|
|
11984
|
+
object.type = {};
|
|
11985
|
+
object.title = {};
|
|
11986
|
+
object.teaser = {};
|
|
11987
|
+
object.description = {};
|
|
11988
|
+
object.playerOrientation = {};
|
|
11989
|
+
object.videoSegments = {};
|
|
11990
|
+
object.duration = {};
|
|
11991
|
+
object.tileMedia = {};
|
|
11992
|
+
object.headerImageMedia = {};
|
|
11993
|
+
}
|
|
11994
|
+
if (options.defaults) {
|
|
11995
|
+
object.slug = "";
|
|
11996
|
+
object.contentType = "";
|
|
11997
|
+
if ($util.Long) {
|
|
11998
|
+
var long = new $util.Long(0, 0, true);
|
|
11999
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12000
|
+
} else
|
|
12001
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
12002
|
+
}
|
|
12003
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12004
|
+
object.slug = message.slug;
|
|
12005
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
12006
|
+
object.contentType = message.contentType;
|
|
12007
|
+
var keys2;
|
|
12008
|
+
if (message.type && (keys2 = Object.keys(message.type)).length) {
|
|
12009
|
+
object.type = {};
|
|
12010
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12011
|
+
object.type[keys2[j]] = message.type[keys2[j]];
|
|
12012
|
+
}
|
|
12013
|
+
if (message.title && (keys2 = Object.keys(message.title)).length) {
|
|
12014
|
+
object.title = {};
|
|
12015
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12016
|
+
object.title[keys2[j]] = message.title[keys2[j]];
|
|
12017
|
+
}
|
|
12018
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
12019
|
+
object.teaser = {};
|
|
12020
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12021
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
12022
|
+
}
|
|
12023
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
12024
|
+
object.description = {};
|
|
12025
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12026
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
12027
|
+
}
|
|
12028
|
+
if (message.playerOrientation && (keys2 = Object.keys(message.playerOrientation)).length) {
|
|
12029
|
+
object.playerOrientation = {};
|
|
12030
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12031
|
+
object.playerOrientation[keys2[j]] = message.playerOrientation[keys2[j]];
|
|
12032
|
+
}
|
|
12033
|
+
if (message.videoSegments && (keys2 = Object.keys(message.videoSegments)).length) {
|
|
12034
|
+
object.videoSegments = {};
|
|
12035
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12036
|
+
object.videoSegments[keys2[j]] = $root.contentful.IdReferences.toObject(message.videoSegments[keys2[j]], options);
|
|
12037
|
+
}
|
|
12038
|
+
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
12039
|
+
object.duration = {};
|
|
12040
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12041
|
+
object.duration[keys2[j]] = message.duration[keys2[j]];
|
|
12042
|
+
}
|
|
12043
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
12044
|
+
object.tileMedia = {};
|
|
12045
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12046
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
12047
|
+
}
|
|
12048
|
+
if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
|
|
12049
|
+
object.headerImageMedia = {};
|
|
12050
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12051
|
+
object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
|
|
12052
|
+
}
|
|
12053
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
12054
|
+
object.accessGroups = [];
|
|
12055
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
12056
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
12057
|
+
}
|
|
12058
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
12059
|
+
if (typeof message.updatedAt === "number")
|
|
12060
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
12061
|
+
else
|
|
12062
|
+
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;
|
|
12063
|
+
return object;
|
|
12064
|
+
};
|
|
12065
|
+
|
|
12066
|
+
/**
|
|
12067
|
+
* Converts this ContentfulWorkoutPlaylistUpdated to JSON.
|
|
12068
|
+
* @function toJSON
|
|
12069
|
+
* @memberof ContentfulWorkoutPlaylistUpdated
|
|
12070
|
+
* @instance
|
|
12071
|
+
* @returns {Object.<string,*>} JSON object
|
|
12072
|
+
*/
|
|
12073
|
+
ContentfulWorkoutPlaylistUpdated.prototype.toJSON = function toJSON() {
|
|
12074
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12075
|
+
};
|
|
12076
|
+
|
|
12077
|
+
return ContentfulWorkoutPlaylistUpdated;
|
|
12078
|
+
})();
|
|
12079
|
+
|
|
12080
|
+
$root.ContentfulWorkoutPlaylistDeleted = (function() {
|
|
12081
|
+
|
|
12082
|
+
/**
|
|
12083
|
+
* Properties of a ContentfulWorkoutPlaylistDeleted.
|
|
12084
|
+
* @exports IContentfulWorkoutPlaylistDeleted
|
|
12085
|
+
* @interface IContentfulWorkoutPlaylistDeleted
|
|
12086
|
+
* @property {string|null} [slug] ContentfulWorkoutPlaylistDeleted slug
|
|
12087
|
+
* @property {number|Long|null} [deletedAt] ContentfulWorkoutPlaylistDeleted deletedAt
|
|
12088
|
+
*/
|
|
12089
|
+
|
|
12090
|
+
/**
|
|
12091
|
+
* Constructs a new ContentfulWorkoutPlaylistDeleted.
|
|
12092
|
+
* @exports ContentfulWorkoutPlaylistDeleted
|
|
12093
|
+
* @classdesc Represents a ContentfulWorkoutPlaylistDeleted.
|
|
12094
|
+
* @implements IContentfulWorkoutPlaylistDeleted
|
|
12095
|
+
* @constructor
|
|
12096
|
+
* @param {IContentfulWorkoutPlaylistDeleted=} [properties] Properties to set
|
|
12097
|
+
*/
|
|
12098
|
+
function ContentfulWorkoutPlaylistDeleted(properties) {
|
|
12099
|
+
if (properties)
|
|
12100
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12101
|
+
if (properties[keys[i]] != null)
|
|
12102
|
+
this[keys[i]] = properties[keys[i]];
|
|
12103
|
+
}
|
|
12104
|
+
|
|
12105
|
+
/**
|
|
12106
|
+
* ContentfulWorkoutPlaylistDeleted slug.
|
|
12107
|
+
* @member {string} slug
|
|
12108
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12109
|
+
* @instance
|
|
12110
|
+
*/
|
|
12111
|
+
ContentfulWorkoutPlaylistDeleted.prototype.slug = "";
|
|
12112
|
+
|
|
12113
|
+
/**
|
|
12114
|
+
* ContentfulWorkoutPlaylistDeleted deletedAt.
|
|
12115
|
+
* @member {number|Long} deletedAt
|
|
12116
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12117
|
+
* @instance
|
|
12118
|
+
*/
|
|
12119
|
+
ContentfulWorkoutPlaylistDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
12120
|
+
|
|
12121
|
+
/**
|
|
12122
|
+
* Creates a new ContentfulWorkoutPlaylistDeleted instance using the specified properties.
|
|
12123
|
+
* @function create
|
|
12124
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12125
|
+
* @static
|
|
12126
|
+
* @param {IContentfulWorkoutPlaylistDeleted=} [properties] Properties to set
|
|
12127
|
+
* @returns {ContentfulWorkoutPlaylistDeleted} ContentfulWorkoutPlaylistDeleted instance
|
|
12128
|
+
*/
|
|
12129
|
+
ContentfulWorkoutPlaylistDeleted.create = function create(properties) {
|
|
12130
|
+
return new ContentfulWorkoutPlaylistDeleted(properties);
|
|
12131
|
+
};
|
|
12132
|
+
|
|
12133
|
+
/**
|
|
12134
|
+
* Encodes the specified ContentfulWorkoutPlaylistDeleted message. Does not implicitly {@link ContentfulWorkoutPlaylistDeleted.verify|verify} messages.
|
|
12135
|
+
* @function encode
|
|
12136
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12137
|
+
* @static
|
|
12138
|
+
* @param {IContentfulWorkoutPlaylistDeleted} message ContentfulWorkoutPlaylistDeleted message or plain object to encode
|
|
12139
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12140
|
+
* @returns {$protobuf.Writer} Writer
|
|
12141
|
+
*/
|
|
12142
|
+
ContentfulWorkoutPlaylistDeleted.encode = function encode(message, writer) {
|
|
12143
|
+
if (!writer)
|
|
12144
|
+
writer = $Writer.create();
|
|
12145
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12146
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
12147
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12148
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
12149
|
+
return writer;
|
|
12150
|
+
};
|
|
12151
|
+
|
|
12152
|
+
/**
|
|
12153
|
+
* Encodes the specified ContentfulWorkoutPlaylistDeleted message, length delimited. Does not implicitly {@link ContentfulWorkoutPlaylistDeleted.verify|verify} messages.
|
|
12154
|
+
* @function encodeDelimited
|
|
12155
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12156
|
+
* @static
|
|
12157
|
+
* @param {IContentfulWorkoutPlaylistDeleted} message ContentfulWorkoutPlaylistDeleted message or plain object to encode
|
|
12158
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12159
|
+
* @returns {$protobuf.Writer} Writer
|
|
12160
|
+
*/
|
|
12161
|
+
ContentfulWorkoutPlaylistDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12162
|
+
return this.encode(message, writer).ldelim();
|
|
12163
|
+
};
|
|
12164
|
+
|
|
12165
|
+
/**
|
|
12166
|
+
* Decodes a ContentfulWorkoutPlaylistDeleted message from the specified reader or buffer.
|
|
12167
|
+
* @function decode
|
|
12168
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12169
|
+
* @static
|
|
12170
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12171
|
+
* @param {number} [length] Message length if known beforehand
|
|
12172
|
+
* @returns {ContentfulWorkoutPlaylistDeleted} ContentfulWorkoutPlaylistDeleted
|
|
12173
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12174
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12175
|
+
*/
|
|
12176
|
+
ContentfulWorkoutPlaylistDeleted.decode = function decode(reader, length) {
|
|
12177
|
+
if (!(reader instanceof $Reader))
|
|
12178
|
+
reader = $Reader.create(reader);
|
|
12179
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulWorkoutPlaylistDeleted();
|
|
12180
|
+
while (reader.pos < end) {
|
|
12181
|
+
var tag = reader.uint32();
|
|
12182
|
+
switch (tag >>> 3) {
|
|
12183
|
+
case 1:
|
|
12184
|
+
message.slug = reader.string();
|
|
12185
|
+
break;
|
|
12186
|
+
case 2:
|
|
12187
|
+
message.deletedAt = reader.uint64();
|
|
12188
|
+
break;
|
|
12189
|
+
default:
|
|
12190
|
+
reader.skipType(tag & 7);
|
|
12191
|
+
break;
|
|
12192
|
+
}
|
|
12193
|
+
}
|
|
12194
|
+
return message;
|
|
12195
|
+
};
|
|
12196
|
+
|
|
12197
|
+
/**
|
|
12198
|
+
* Decodes a ContentfulWorkoutPlaylistDeleted message from the specified reader or buffer, length delimited.
|
|
12199
|
+
* @function decodeDelimited
|
|
12200
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12201
|
+
* @static
|
|
12202
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12203
|
+
* @returns {ContentfulWorkoutPlaylistDeleted} ContentfulWorkoutPlaylistDeleted
|
|
12204
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12205
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12206
|
+
*/
|
|
12207
|
+
ContentfulWorkoutPlaylistDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
12208
|
+
if (!(reader instanceof $Reader))
|
|
12209
|
+
reader = new $Reader(reader);
|
|
12210
|
+
return this.decode(reader, reader.uint32());
|
|
12211
|
+
};
|
|
12212
|
+
|
|
12213
|
+
/**
|
|
12214
|
+
* Verifies a ContentfulWorkoutPlaylistDeleted message.
|
|
12215
|
+
* @function verify
|
|
12216
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12217
|
+
* @static
|
|
12218
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12219
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12220
|
+
*/
|
|
12221
|
+
ContentfulWorkoutPlaylistDeleted.verify = function verify(message) {
|
|
12222
|
+
if (typeof message !== "object" || message === null)
|
|
12223
|
+
return "object expected";
|
|
12224
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12225
|
+
if (!$util.isString(message.slug))
|
|
12226
|
+
return "slug: string expected";
|
|
12227
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12228
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
12229
|
+
return "deletedAt: integer|Long expected";
|
|
12230
|
+
return null;
|
|
12231
|
+
};
|
|
12232
|
+
|
|
12233
|
+
/**
|
|
12234
|
+
* Creates a ContentfulWorkoutPlaylistDeleted message from a plain object. Also converts values to their respective internal types.
|
|
12235
|
+
* @function fromObject
|
|
12236
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12237
|
+
* @static
|
|
12238
|
+
* @param {Object.<string,*>} object Plain object
|
|
12239
|
+
* @returns {ContentfulWorkoutPlaylistDeleted} ContentfulWorkoutPlaylistDeleted
|
|
12240
|
+
*/
|
|
12241
|
+
ContentfulWorkoutPlaylistDeleted.fromObject = function fromObject(object) {
|
|
12242
|
+
if (object instanceof $root.ContentfulWorkoutPlaylistDeleted)
|
|
12243
|
+
return object;
|
|
12244
|
+
var message = new $root.ContentfulWorkoutPlaylistDeleted();
|
|
12245
|
+
if (object.slug != null)
|
|
12246
|
+
message.slug = String(object.slug);
|
|
12247
|
+
if (object.deletedAt != null)
|
|
12248
|
+
if ($util.Long)
|
|
12249
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
12250
|
+
else if (typeof object.deletedAt === "string")
|
|
12251
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
12252
|
+
else if (typeof object.deletedAt === "number")
|
|
12253
|
+
message.deletedAt = object.deletedAt;
|
|
12254
|
+
else if (typeof object.deletedAt === "object")
|
|
12255
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
12256
|
+
return message;
|
|
12257
|
+
};
|
|
12258
|
+
|
|
12259
|
+
/**
|
|
12260
|
+
* Creates a plain object from a ContentfulWorkoutPlaylistDeleted message. Also converts values to other types if specified.
|
|
12261
|
+
* @function toObject
|
|
12262
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12263
|
+
* @static
|
|
12264
|
+
* @param {ContentfulWorkoutPlaylistDeleted} message ContentfulWorkoutPlaylistDeleted
|
|
12265
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12266
|
+
* @returns {Object.<string,*>} Plain object
|
|
12267
|
+
*/
|
|
12268
|
+
ContentfulWorkoutPlaylistDeleted.toObject = function toObject(message, options) {
|
|
12269
|
+
if (!options)
|
|
12270
|
+
options = {};
|
|
12271
|
+
var object = {};
|
|
12272
|
+
if (options.defaults) {
|
|
12273
|
+
object.slug = "";
|
|
12274
|
+
if ($util.Long) {
|
|
12275
|
+
var long = new $util.Long(0, 0, true);
|
|
12276
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12277
|
+
} else
|
|
12278
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
12279
|
+
}
|
|
12280
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12281
|
+
object.slug = message.slug;
|
|
12282
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12283
|
+
if (typeof message.deletedAt === "number")
|
|
12284
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
12285
|
+
else
|
|
12286
|
+
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;
|
|
12287
|
+
return object;
|
|
12288
|
+
};
|
|
12289
|
+
|
|
12290
|
+
/**
|
|
12291
|
+
* Converts this ContentfulWorkoutPlaylistDeleted to JSON.
|
|
12292
|
+
* @function toJSON
|
|
12293
|
+
* @memberof ContentfulWorkoutPlaylistDeleted
|
|
12294
|
+
* @instance
|
|
12295
|
+
* @returns {Object.<string,*>} JSON object
|
|
12296
|
+
*/
|
|
12297
|
+
ContentfulWorkoutPlaylistDeleted.prototype.toJSON = function toJSON() {
|
|
12298
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12299
|
+
};
|
|
12300
|
+
|
|
12301
|
+
return ContentfulWorkoutPlaylistDeleted;
|
|
12302
|
+
})();
|
|
12303
|
+
|
|
10696
12304
|
$root.ContentfulSubscriptionAccessGroupCreated = (function() {
|
|
10697
12305
|
|
|
10698
12306
|
/**
|
|
@@ -27793,6 +29401,8 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27793
29401
|
* @property {string|null} [entityType] WorkoutPlaylistCreated entityType
|
|
27794
29402
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistCreated accessGroups
|
|
27795
29403
|
* @property {number|Long|null} [createdAt] WorkoutPlaylistCreated createdAt
|
|
29404
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistCreated tileMedia
|
|
29405
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistCreated headerImageMedia
|
|
27796
29406
|
*/
|
|
27797
29407
|
|
|
27798
29408
|
/**
|
|
@@ -27805,6 +29415,8 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27805
29415
|
*/
|
|
27806
29416
|
function WorkoutPlaylistCreated(properties) {
|
|
27807
29417
|
this.accessGroups = [];
|
|
29418
|
+
this.tileMedia = {};
|
|
29419
|
+
this.headerImageMedia = {};
|
|
27808
29420
|
if (properties)
|
|
27809
29421
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27810
29422
|
if (properties[keys[i]] != null)
|
|
@@ -27851,6 +29463,22 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27851
29463
|
*/
|
|
27852
29464
|
WorkoutPlaylistCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
27853
29465
|
|
|
29466
|
+
/**
|
|
29467
|
+
* WorkoutPlaylistCreated tileMedia.
|
|
29468
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
29469
|
+
* @memberof WorkoutPlaylistCreated
|
|
29470
|
+
* @instance
|
|
29471
|
+
*/
|
|
29472
|
+
WorkoutPlaylistCreated.prototype.tileMedia = $util.emptyObject;
|
|
29473
|
+
|
|
29474
|
+
/**
|
|
29475
|
+
* WorkoutPlaylistCreated headerImageMedia.
|
|
29476
|
+
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
29477
|
+
* @memberof WorkoutPlaylistCreated
|
|
29478
|
+
* @instance
|
|
29479
|
+
*/
|
|
29480
|
+
WorkoutPlaylistCreated.prototype.headerImageMedia = $util.emptyObject;
|
|
29481
|
+
|
|
27854
29482
|
/**
|
|
27855
29483
|
* Creates a new WorkoutPlaylistCreated instance using the specified properties.
|
|
27856
29484
|
* @function create
|
|
@@ -27886,6 +29514,16 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27886
29514
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
27887
29515
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
27888
29516
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
29517
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
29518
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
29519
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29520
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29521
|
+
}
|
|
29522
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
|
|
29523
|
+
for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
29524
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29525
|
+
$root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29526
|
+
}
|
|
27889
29527
|
return writer;
|
|
27890
29528
|
};
|
|
27891
29529
|
|
|
@@ -27916,7 +29554,7 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27916
29554
|
WorkoutPlaylistCreated.decode = function decode(reader, length) {
|
|
27917
29555
|
if (!(reader instanceof $Reader))
|
|
27918
29556
|
reader = $Reader.create(reader);
|
|
27919
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistCreated();
|
|
29557
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistCreated(), key;
|
|
27920
29558
|
while (reader.pos < end) {
|
|
27921
29559
|
var tag = reader.uint32();
|
|
27922
29560
|
switch (tag >>> 3) {
|
|
@@ -27937,6 +29575,22 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27937
29575
|
case 5:
|
|
27938
29576
|
message.createdAt = reader.uint64();
|
|
27939
29577
|
break;
|
|
29578
|
+
case 6:
|
|
29579
|
+
reader.skip().pos++;
|
|
29580
|
+
if (message.tileMedia === $util.emptyObject)
|
|
29581
|
+
message.tileMedia = {};
|
|
29582
|
+
key = reader.string();
|
|
29583
|
+
reader.pos++;
|
|
29584
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
29585
|
+
break;
|
|
29586
|
+
case 7:
|
|
29587
|
+
reader.skip().pos++;
|
|
29588
|
+
if (message.headerImageMedia === $util.emptyObject)
|
|
29589
|
+
message.headerImageMedia = {};
|
|
29590
|
+
key = reader.string();
|
|
29591
|
+
reader.pos++;
|
|
29592
|
+
message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
29593
|
+
break;
|
|
27940
29594
|
default:
|
|
27941
29595
|
reader.skipType(tag & 7);
|
|
27942
29596
|
break;
|
|
@@ -27993,6 +29647,26 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
27993
29647
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
27994
29648
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
27995
29649
|
return "createdAt: integer|Long expected";
|
|
29650
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
29651
|
+
if (!$util.isObject(message.tileMedia))
|
|
29652
|
+
return "tileMedia: object expected";
|
|
29653
|
+
var key = Object.keys(message.tileMedia);
|
|
29654
|
+
for (var i = 0; i < key.length; ++i) {
|
|
29655
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
29656
|
+
if (error)
|
|
29657
|
+
return "tileMedia." + error;
|
|
29658
|
+
}
|
|
29659
|
+
}
|
|
29660
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
|
|
29661
|
+
if (!$util.isObject(message.headerImageMedia))
|
|
29662
|
+
return "headerImageMedia: object expected";
|
|
29663
|
+
var key = Object.keys(message.headerImageMedia);
|
|
29664
|
+
for (var i = 0; i < key.length; ++i) {
|
|
29665
|
+
var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
|
|
29666
|
+
if (error)
|
|
29667
|
+
return "headerImageMedia." + error;
|
|
29668
|
+
}
|
|
29669
|
+
}
|
|
27996
29670
|
return null;
|
|
27997
29671
|
};
|
|
27998
29672
|
|
|
@@ -28033,6 +29707,26 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
28033
29707
|
message.createdAt = object.createdAt;
|
|
28034
29708
|
else if (typeof object.createdAt === "object")
|
|
28035
29709
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
29710
|
+
if (object.tileMedia) {
|
|
29711
|
+
if (typeof object.tileMedia !== "object")
|
|
29712
|
+
throw TypeError(".WorkoutPlaylistCreated.tileMedia: object expected");
|
|
29713
|
+
message.tileMedia = {};
|
|
29714
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
29715
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
29716
|
+
throw TypeError(".WorkoutPlaylistCreated.tileMedia: object expected");
|
|
29717
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
29718
|
+
}
|
|
29719
|
+
}
|
|
29720
|
+
if (object.headerImageMedia) {
|
|
29721
|
+
if (typeof object.headerImageMedia !== "object")
|
|
29722
|
+
throw TypeError(".WorkoutPlaylistCreated.headerImageMedia: object expected");
|
|
29723
|
+
message.headerImageMedia = {};
|
|
29724
|
+
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
29725
|
+
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
29726
|
+
throw TypeError(".WorkoutPlaylistCreated.headerImageMedia: object expected");
|
|
29727
|
+
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
29728
|
+
}
|
|
29729
|
+
}
|
|
28036
29730
|
return message;
|
|
28037
29731
|
};
|
|
28038
29732
|
|
|
@@ -28051,6 +29745,10 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
28051
29745
|
var object = {};
|
|
28052
29746
|
if (options.arrays || options.defaults)
|
|
28053
29747
|
object.accessGroups = [];
|
|
29748
|
+
if (options.objects || options.defaults) {
|
|
29749
|
+
object.tileMedia = {};
|
|
29750
|
+
object.headerImageMedia = {};
|
|
29751
|
+
}
|
|
28054
29752
|
if (options.defaults) {
|
|
28055
29753
|
object.slug = "";
|
|
28056
29754
|
object.entityId = 0;
|
|
@@ -28077,6 +29775,17 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
28077
29775
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
28078
29776
|
else
|
|
28079
29777
|
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;
|
|
29778
|
+
var keys2;
|
|
29779
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
29780
|
+
object.tileMedia = {};
|
|
29781
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
29782
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
29783
|
+
}
|
|
29784
|
+
if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
|
|
29785
|
+
object.headerImageMedia = {};
|
|
29786
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
29787
|
+
object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
|
|
29788
|
+
}
|
|
28080
29789
|
return object;
|
|
28081
29790
|
};
|
|
28082
29791
|
|
|
@@ -28105,6 +29814,8 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28105
29814
|
* @property {string|null} [entityType] WorkoutPlaylistUpdated entityType
|
|
28106
29815
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistUpdated accessGroups
|
|
28107
29816
|
* @property {number|Long|null} [updatedAt] WorkoutPlaylistUpdated updatedAt
|
|
29817
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistUpdated tileMedia
|
|
29818
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistUpdated headerImageMedia
|
|
28108
29819
|
*/
|
|
28109
29820
|
|
|
28110
29821
|
/**
|
|
@@ -28117,6 +29828,8 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28117
29828
|
*/
|
|
28118
29829
|
function WorkoutPlaylistUpdated(properties) {
|
|
28119
29830
|
this.accessGroups = [];
|
|
29831
|
+
this.tileMedia = {};
|
|
29832
|
+
this.headerImageMedia = {};
|
|
28120
29833
|
if (properties)
|
|
28121
29834
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28122
29835
|
if (properties[keys[i]] != null)
|
|
@@ -28163,6 +29876,22 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28163
29876
|
*/
|
|
28164
29877
|
WorkoutPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
28165
29878
|
|
|
29879
|
+
/**
|
|
29880
|
+
* WorkoutPlaylistUpdated tileMedia.
|
|
29881
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
29882
|
+
* @memberof WorkoutPlaylistUpdated
|
|
29883
|
+
* @instance
|
|
29884
|
+
*/
|
|
29885
|
+
WorkoutPlaylistUpdated.prototype.tileMedia = $util.emptyObject;
|
|
29886
|
+
|
|
29887
|
+
/**
|
|
29888
|
+
* WorkoutPlaylistUpdated headerImageMedia.
|
|
29889
|
+
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
29890
|
+
* @memberof WorkoutPlaylistUpdated
|
|
29891
|
+
* @instance
|
|
29892
|
+
*/
|
|
29893
|
+
WorkoutPlaylistUpdated.prototype.headerImageMedia = $util.emptyObject;
|
|
29894
|
+
|
|
28166
29895
|
/**
|
|
28167
29896
|
* Creates a new WorkoutPlaylistUpdated instance using the specified properties.
|
|
28168
29897
|
* @function create
|
|
@@ -28198,6 +29927,16 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28198
29927
|
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
28199
29928
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
28200
29929
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
29930
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
29931
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
29932
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29933
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29934
|
+
}
|
|
29935
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
|
|
29936
|
+
for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
29937
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29938
|
+
$root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29939
|
+
}
|
|
28201
29940
|
return writer;
|
|
28202
29941
|
};
|
|
28203
29942
|
|
|
@@ -28228,7 +29967,7 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28228
29967
|
WorkoutPlaylistUpdated.decode = function decode(reader, length) {
|
|
28229
29968
|
if (!(reader instanceof $Reader))
|
|
28230
29969
|
reader = $Reader.create(reader);
|
|
28231
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistUpdated();
|
|
29970
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistUpdated(), key;
|
|
28232
29971
|
while (reader.pos < end) {
|
|
28233
29972
|
var tag = reader.uint32();
|
|
28234
29973
|
switch (tag >>> 3) {
|
|
@@ -28249,6 +29988,22 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28249
29988
|
case 5:
|
|
28250
29989
|
message.updatedAt = reader.uint64();
|
|
28251
29990
|
break;
|
|
29991
|
+
case 6:
|
|
29992
|
+
reader.skip().pos++;
|
|
29993
|
+
if (message.tileMedia === $util.emptyObject)
|
|
29994
|
+
message.tileMedia = {};
|
|
29995
|
+
key = reader.string();
|
|
29996
|
+
reader.pos++;
|
|
29997
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
29998
|
+
break;
|
|
29999
|
+
case 7:
|
|
30000
|
+
reader.skip().pos++;
|
|
30001
|
+
if (message.headerImageMedia === $util.emptyObject)
|
|
30002
|
+
message.headerImageMedia = {};
|
|
30003
|
+
key = reader.string();
|
|
30004
|
+
reader.pos++;
|
|
30005
|
+
message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
30006
|
+
break;
|
|
28252
30007
|
default:
|
|
28253
30008
|
reader.skipType(tag & 7);
|
|
28254
30009
|
break;
|
|
@@ -28305,6 +30060,26 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28305
30060
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
28306
30061
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
28307
30062
|
return "updatedAt: integer|Long expected";
|
|
30063
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
30064
|
+
if (!$util.isObject(message.tileMedia))
|
|
30065
|
+
return "tileMedia: object expected";
|
|
30066
|
+
var key = Object.keys(message.tileMedia);
|
|
30067
|
+
for (var i = 0; i < key.length; ++i) {
|
|
30068
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
30069
|
+
if (error)
|
|
30070
|
+
return "tileMedia." + error;
|
|
30071
|
+
}
|
|
30072
|
+
}
|
|
30073
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
|
|
30074
|
+
if (!$util.isObject(message.headerImageMedia))
|
|
30075
|
+
return "headerImageMedia: object expected";
|
|
30076
|
+
var key = Object.keys(message.headerImageMedia);
|
|
30077
|
+
for (var i = 0; i < key.length; ++i) {
|
|
30078
|
+
var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
|
|
30079
|
+
if (error)
|
|
30080
|
+
return "headerImageMedia." + error;
|
|
30081
|
+
}
|
|
30082
|
+
}
|
|
28308
30083
|
return null;
|
|
28309
30084
|
};
|
|
28310
30085
|
|
|
@@ -28345,6 +30120,26 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28345
30120
|
message.updatedAt = object.updatedAt;
|
|
28346
30121
|
else if (typeof object.updatedAt === "object")
|
|
28347
30122
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
30123
|
+
if (object.tileMedia) {
|
|
30124
|
+
if (typeof object.tileMedia !== "object")
|
|
30125
|
+
throw TypeError(".WorkoutPlaylistUpdated.tileMedia: object expected");
|
|
30126
|
+
message.tileMedia = {};
|
|
30127
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
30128
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
30129
|
+
throw TypeError(".WorkoutPlaylistUpdated.tileMedia: object expected");
|
|
30130
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
30131
|
+
}
|
|
30132
|
+
}
|
|
30133
|
+
if (object.headerImageMedia) {
|
|
30134
|
+
if (typeof object.headerImageMedia !== "object")
|
|
30135
|
+
throw TypeError(".WorkoutPlaylistUpdated.headerImageMedia: object expected");
|
|
30136
|
+
message.headerImageMedia = {};
|
|
30137
|
+
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
30138
|
+
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
30139
|
+
throw TypeError(".WorkoutPlaylistUpdated.headerImageMedia: object expected");
|
|
30140
|
+
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
30141
|
+
}
|
|
30142
|
+
}
|
|
28348
30143
|
return message;
|
|
28349
30144
|
};
|
|
28350
30145
|
|
|
@@ -28363,6 +30158,10 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28363
30158
|
var object = {};
|
|
28364
30159
|
if (options.arrays || options.defaults)
|
|
28365
30160
|
object.accessGroups = [];
|
|
30161
|
+
if (options.objects || options.defaults) {
|
|
30162
|
+
object.tileMedia = {};
|
|
30163
|
+
object.headerImageMedia = {};
|
|
30164
|
+
}
|
|
28366
30165
|
if (options.defaults) {
|
|
28367
30166
|
object.slug = "";
|
|
28368
30167
|
object.entityId = 0;
|
|
@@ -28389,6 +30188,17 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
28389
30188
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
28390
30189
|
else
|
|
28391
30190
|
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;
|
|
30191
|
+
var keys2;
|
|
30192
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
30193
|
+
object.tileMedia = {};
|
|
30194
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
30195
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
30196
|
+
}
|
|
30197
|
+
if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
|
|
30198
|
+
object.headerImageMedia = {};
|
|
30199
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
30200
|
+
object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
|
|
30201
|
+
}
|
|
28392
30202
|
return object;
|
|
28393
30203
|
};
|
|
28394
30204
|
|