@headspace/protos-events 1.203.0 → 1.204.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 CHANGED
@@ -11092,6 +11092,306 @@ export class ContentfulSleepcastDeleted implements IContentfulSleepcastDeleted {
11092
11092
  public toJSON(): { [k: string]: any };
11093
11093
  }
11094
11094
 
11095
+ /** Properties of a ContentfulVariationContainerCreated. */
11096
+ export interface IContentfulVariationContainerCreated {
11097
+
11098
+ /** ContentfulVariationContainerCreated slug */
11099
+ slug?: (string|null);
11100
+
11101
+ /** ContentfulVariationContainerCreated variations */
11102
+ variations?: ({ [k: string]: contentful.ISlugReference }|null);
11103
+
11104
+ /** ContentfulVariationContainerCreated createdAt */
11105
+ createdAt?: (number|Long|null);
11106
+ }
11107
+
11108
+ /** Represents a ContentfulVariationContainerCreated. */
11109
+ export class ContentfulVariationContainerCreated implements IContentfulVariationContainerCreated {
11110
+
11111
+ /**
11112
+ * Constructs a new ContentfulVariationContainerCreated.
11113
+ * @param [properties] Properties to set
11114
+ */
11115
+ constructor(properties?: IContentfulVariationContainerCreated);
11116
+
11117
+ /** ContentfulVariationContainerCreated slug. */
11118
+ public slug: string;
11119
+
11120
+ /** ContentfulVariationContainerCreated variations. */
11121
+ public variations: { [k: string]: contentful.ISlugReference };
11122
+
11123
+ /** ContentfulVariationContainerCreated createdAt. */
11124
+ public createdAt: (number|Long);
11125
+
11126
+ /**
11127
+ * Creates a new ContentfulVariationContainerCreated instance using the specified properties.
11128
+ * @param [properties] Properties to set
11129
+ * @returns ContentfulVariationContainerCreated instance
11130
+ */
11131
+ public static create(properties?: IContentfulVariationContainerCreated): ContentfulVariationContainerCreated;
11132
+
11133
+ /**
11134
+ * Encodes the specified ContentfulVariationContainerCreated message. Does not implicitly {@link ContentfulVariationContainerCreated.verify|verify} messages.
11135
+ * @param message ContentfulVariationContainerCreated message or plain object to encode
11136
+ * @param [writer] Writer to encode to
11137
+ * @returns Writer
11138
+ */
11139
+ public static encode(message: IContentfulVariationContainerCreated, writer?: $protobuf.Writer): $protobuf.Writer;
11140
+
11141
+ /**
11142
+ * Encodes the specified ContentfulVariationContainerCreated message, length delimited. Does not implicitly {@link ContentfulVariationContainerCreated.verify|verify} messages.
11143
+ * @param message ContentfulVariationContainerCreated message or plain object to encode
11144
+ * @param [writer] Writer to encode to
11145
+ * @returns Writer
11146
+ */
11147
+ public static encodeDelimited(message: IContentfulVariationContainerCreated, writer?: $protobuf.Writer): $protobuf.Writer;
11148
+
11149
+ /**
11150
+ * Decodes a ContentfulVariationContainerCreated message from the specified reader or buffer.
11151
+ * @param reader Reader or buffer to decode from
11152
+ * @param [length] Message length if known beforehand
11153
+ * @returns ContentfulVariationContainerCreated
11154
+ * @throws {Error} If the payload is not a reader or valid buffer
11155
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11156
+ */
11157
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulVariationContainerCreated;
11158
+
11159
+ /**
11160
+ * Decodes a ContentfulVariationContainerCreated message from the specified reader or buffer, length delimited.
11161
+ * @param reader Reader or buffer to decode from
11162
+ * @returns ContentfulVariationContainerCreated
11163
+ * @throws {Error} If the payload is not a reader or valid buffer
11164
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11165
+ */
11166
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulVariationContainerCreated;
11167
+
11168
+ /**
11169
+ * Verifies a ContentfulVariationContainerCreated message.
11170
+ * @param message Plain object to verify
11171
+ * @returns `null` if valid, otherwise the reason why it is not
11172
+ */
11173
+ public static verify(message: { [k: string]: any }): (string|null);
11174
+
11175
+ /**
11176
+ * Creates a ContentfulVariationContainerCreated message from a plain object. Also converts values to their respective internal types.
11177
+ * @param object Plain object
11178
+ * @returns ContentfulVariationContainerCreated
11179
+ */
11180
+ public static fromObject(object: { [k: string]: any }): ContentfulVariationContainerCreated;
11181
+
11182
+ /**
11183
+ * Creates a plain object from a ContentfulVariationContainerCreated message. Also converts values to other types if specified.
11184
+ * @param message ContentfulVariationContainerCreated
11185
+ * @param [options] Conversion options
11186
+ * @returns Plain object
11187
+ */
11188
+ public static toObject(message: ContentfulVariationContainerCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
11189
+
11190
+ /**
11191
+ * Converts this ContentfulVariationContainerCreated to JSON.
11192
+ * @returns JSON object
11193
+ */
11194
+ public toJSON(): { [k: string]: any };
11195
+ }
11196
+
11197
+ /** Properties of a ContentfulVariationContainerUpdated. */
11198
+ export interface IContentfulVariationContainerUpdated {
11199
+
11200
+ /** ContentfulVariationContainerUpdated slug */
11201
+ slug?: (string|null);
11202
+
11203
+ /** ContentfulVariationContainerUpdated variations */
11204
+ variations?: ({ [k: string]: contentful.ISlugReference }|null);
11205
+
11206
+ /** ContentfulVariationContainerUpdated updatedAt */
11207
+ updatedAt?: (number|Long|null);
11208
+ }
11209
+
11210
+ /** Represents a ContentfulVariationContainerUpdated. */
11211
+ export class ContentfulVariationContainerUpdated implements IContentfulVariationContainerUpdated {
11212
+
11213
+ /**
11214
+ * Constructs a new ContentfulVariationContainerUpdated.
11215
+ * @param [properties] Properties to set
11216
+ */
11217
+ constructor(properties?: IContentfulVariationContainerUpdated);
11218
+
11219
+ /** ContentfulVariationContainerUpdated slug. */
11220
+ public slug: string;
11221
+
11222
+ /** ContentfulVariationContainerUpdated variations. */
11223
+ public variations: { [k: string]: contentful.ISlugReference };
11224
+
11225
+ /** ContentfulVariationContainerUpdated updatedAt. */
11226
+ public updatedAt: (number|Long);
11227
+
11228
+ /**
11229
+ * Creates a new ContentfulVariationContainerUpdated instance using the specified properties.
11230
+ * @param [properties] Properties to set
11231
+ * @returns ContentfulVariationContainerUpdated instance
11232
+ */
11233
+ public static create(properties?: IContentfulVariationContainerUpdated): ContentfulVariationContainerUpdated;
11234
+
11235
+ /**
11236
+ * Encodes the specified ContentfulVariationContainerUpdated message. Does not implicitly {@link ContentfulVariationContainerUpdated.verify|verify} messages.
11237
+ * @param message ContentfulVariationContainerUpdated message or plain object to encode
11238
+ * @param [writer] Writer to encode to
11239
+ * @returns Writer
11240
+ */
11241
+ public static encode(message: IContentfulVariationContainerUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
11242
+
11243
+ /**
11244
+ * Encodes the specified ContentfulVariationContainerUpdated message, length delimited. Does not implicitly {@link ContentfulVariationContainerUpdated.verify|verify} messages.
11245
+ * @param message ContentfulVariationContainerUpdated message or plain object to encode
11246
+ * @param [writer] Writer to encode to
11247
+ * @returns Writer
11248
+ */
11249
+ public static encodeDelimited(message: IContentfulVariationContainerUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
11250
+
11251
+ /**
11252
+ * Decodes a ContentfulVariationContainerUpdated message from the specified reader or buffer.
11253
+ * @param reader Reader or buffer to decode from
11254
+ * @param [length] Message length if known beforehand
11255
+ * @returns ContentfulVariationContainerUpdated
11256
+ * @throws {Error} If the payload is not a reader or valid buffer
11257
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11258
+ */
11259
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulVariationContainerUpdated;
11260
+
11261
+ /**
11262
+ * Decodes a ContentfulVariationContainerUpdated message from the specified reader or buffer, length delimited.
11263
+ * @param reader Reader or buffer to decode from
11264
+ * @returns ContentfulVariationContainerUpdated
11265
+ * @throws {Error} If the payload is not a reader or valid buffer
11266
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11267
+ */
11268
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulVariationContainerUpdated;
11269
+
11270
+ /**
11271
+ * Verifies a ContentfulVariationContainerUpdated message.
11272
+ * @param message Plain object to verify
11273
+ * @returns `null` if valid, otherwise the reason why it is not
11274
+ */
11275
+ public static verify(message: { [k: string]: any }): (string|null);
11276
+
11277
+ /**
11278
+ * Creates a ContentfulVariationContainerUpdated message from a plain object. Also converts values to their respective internal types.
11279
+ * @param object Plain object
11280
+ * @returns ContentfulVariationContainerUpdated
11281
+ */
11282
+ public static fromObject(object: { [k: string]: any }): ContentfulVariationContainerUpdated;
11283
+
11284
+ /**
11285
+ * Creates a plain object from a ContentfulVariationContainerUpdated message. Also converts values to other types if specified.
11286
+ * @param message ContentfulVariationContainerUpdated
11287
+ * @param [options] Conversion options
11288
+ * @returns Plain object
11289
+ */
11290
+ public static toObject(message: ContentfulVariationContainerUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
11291
+
11292
+ /**
11293
+ * Converts this ContentfulVariationContainerUpdated to JSON.
11294
+ * @returns JSON object
11295
+ */
11296
+ public toJSON(): { [k: string]: any };
11297
+ }
11298
+
11299
+ /** Properties of a ContentfulVariationContainerDeleted. */
11300
+ export interface IContentfulVariationContainerDeleted {
11301
+
11302
+ /** ContentfulVariationContainerDeleted slug */
11303
+ slug?: (string|null);
11304
+
11305
+ /** ContentfulVariationContainerDeleted deletedAt */
11306
+ deletedAt?: (number|Long|null);
11307
+ }
11308
+
11309
+ /** Represents a ContentfulVariationContainerDeleted. */
11310
+ export class ContentfulVariationContainerDeleted implements IContentfulVariationContainerDeleted {
11311
+
11312
+ /**
11313
+ * Constructs a new ContentfulVariationContainerDeleted.
11314
+ * @param [properties] Properties to set
11315
+ */
11316
+ constructor(properties?: IContentfulVariationContainerDeleted);
11317
+
11318
+ /** ContentfulVariationContainerDeleted slug. */
11319
+ public slug: string;
11320
+
11321
+ /** ContentfulVariationContainerDeleted deletedAt. */
11322
+ public deletedAt: (number|Long);
11323
+
11324
+ /**
11325
+ * Creates a new ContentfulVariationContainerDeleted instance using the specified properties.
11326
+ * @param [properties] Properties to set
11327
+ * @returns ContentfulVariationContainerDeleted instance
11328
+ */
11329
+ public static create(properties?: IContentfulVariationContainerDeleted): ContentfulVariationContainerDeleted;
11330
+
11331
+ /**
11332
+ * Encodes the specified ContentfulVariationContainerDeleted message. Does not implicitly {@link ContentfulVariationContainerDeleted.verify|verify} messages.
11333
+ * @param message ContentfulVariationContainerDeleted message or plain object to encode
11334
+ * @param [writer] Writer to encode to
11335
+ * @returns Writer
11336
+ */
11337
+ public static encode(message: IContentfulVariationContainerDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
11338
+
11339
+ /**
11340
+ * Encodes the specified ContentfulVariationContainerDeleted message, length delimited. Does not implicitly {@link ContentfulVariationContainerDeleted.verify|verify} messages.
11341
+ * @param message ContentfulVariationContainerDeleted message or plain object to encode
11342
+ * @param [writer] Writer to encode to
11343
+ * @returns Writer
11344
+ */
11345
+ public static encodeDelimited(message: IContentfulVariationContainerDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
11346
+
11347
+ /**
11348
+ * Decodes a ContentfulVariationContainerDeleted message from the specified reader or buffer.
11349
+ * @param reader Reader or buffer to decode from
11350
+ * @param [length] Message length if known beforehand
11351
+ * @returns ContentfulVariationContainerDeleted
11352
+ * @throws {Error} If the payload is not a reader or valid buffer
11353
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11354
+ */
11355
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulVariationContainerDeleted;
11356
+
11357
+ /**
11358
+ * Decodes a ContentfulVariationContainerDeleted message from the specified reader or buffer, length delimited.
11359
+ * @param reader Reader or buffer to decode from
11360
+ * @returns ContentfulVariationContainerDeleted
11361
+ * @throws {Error} If the payload is not a reader or valid buffer
11362
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11363
+ */
11364
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulVariationContainerDeleted;
11365
+
11366
+ /**
11367
+ * Verifies a ContentfulVariationContainerDeleted message.
11368
+ * @param message Plain object to verify
11369
+ * @returns `null` if valid, otherwise the reason why it is not
11370
+ */
11371
+ public static verify(message: { [k: string]: any }): (string|null);
11372
+
11373
+ /**
11374
+ * Creates a ContentfulVariationContainerDeleted message from a plain object. Also converts values to their respective internal types.
11375
+ * @param object Plain object
11376
+ * @returns ContentfulVariationContainerDeleted
11377
+ */
11378
+ public static fromObject(object: { [k: string]: any }): ContentfulVariationContainerDeleted;
11379
+
11380
+ /**
11381
+ * Creates a plain object from a ContentfulVariationContainerDeleted message. Also converts values to other types if specified.
11382
+ * @param message ContentfulVariationContainerDeleted
11383
+ * @param [options] Conversion options
11384
+ * @returns Plain object
11385
+ */
11386
+ public static toObject(message: ContentfulVariationContainerDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
11387
+
11388
+ /**
11389
+ * Converts this ContentfulVariationContainerDeleted to JSON.
11390
+ * @returns JSON object
11391
+ */
11392
+ public toJSON(): { [k: string]: any };
11393
+ }
11394
+
11095
11395
  /** Properties of a ContentfulContentModelCreated. */
11096
11396
  export interface IContentfulContentModelCreated {
11097
11397
 
package/lib/index.js CHANGED
@@ -31569,6 +31569,780 @@ $root.ContentfulSleepcastDeleted = (function() {
31569
31569
  return ContentfulSleepcastDeleted;
31570
31570
  })();
31571
31571
 
31572
+ $root.ContentfulVariationContainerCreated = (function() {
31573
+
31574
+ /**
31575
+ * Properties of a ContentfulVariationContainerCreated.
31576
+ * @exports IContentfulVariationContainerCreated
31577
+ * @interface IContentfulVariationContainerCreated
31578
+ * @property {string|null} [slug] ContentfulVariationContainerCreated slug
31579
+ * @property {Object.<string,contentful.ISlugReference>|null} [variations] ContentfulVariationContainerCreated variations
31580
+ * @property {number|Long|null} [createdAt] ContentfulVariationContainerCreated createdAt
31581
+ */
31582
+
31583
+ /**
31584
+ * Constructs a new ContentfulVariationContainerCreated.
31585
+ * @exports ContentfulVariationContainerCreated
31586
+ * @classdesc Represents a ContentfulVariationContainerCreated.
31587
+ * @implements IContentfulVariationContainerCreated
31588
+ * @constructor
31589
+ * @param {IContentfulVariationContainerCreated=} [properties] Properties to set
31590
+ */
31591
+ function ContentfulVariationContainerCreated(properties) {
31592
+ this.variations = {};
31593
+ if (properties)
31594
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
31595
+ if (properties[keys[i]] != null)
31596
+ this[keys[i]] = properties[keys[i]];
31597
+ }
31598
+
31599
+ /**
31600
+ * ContentfulVariationContainerCreated slug.
31601
+ * @member {string} slug
31602
+ * @memberof ContentfulVariationContainerCreated
31603
+ * @instance
31604
+ */
31605
+ ContentfulVariationContainerCreated.prototype.slug = "";
31606
+
31607
+ /**
31608
+ * ContentfulVariationContainerCreated variations.
31609
+ * @member {Object.<string,contentful.ISlugReference>} variations
31610
+ * @memberof ContentfulVariationContainerCreated
31611
+ * @instance
31612
+ */
31613
+ ContentfulVariationContainerCreated.prototype.variations = $util.emptyObject;
31614
+
31615
+ /**
31616
+ * ContentfulVariationContainerCreated createdAt.
31617
+ * @member {number|Long} createdAt
31618
+ * @memberof ContentfulVariationContainerCreated
31619
+ * @instance
31620
+ */
31621
+ ContentfulVariationContainerCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
31622
+
31623
+ /**
31624
+ * Creates a new ContentfulVariationContainerCreated instance using the specified properties.
31625
+ * @function create
31626
+ * @memberof ContentfulVariationContainerCreated
31627
+ * @static
31628
+ * @param {IContentfulVariationContainerCreated=} [properties] Properties to set
31629
+ * @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated instance
31630
+ */
31631
+ ContentfulVariationContainerCreated.create = function create(properties) {
31632
+ return new ContentfulVariationContainerCreated(properties);
31633
+ };
31634
+
31635
+ /**
31636
+ * Encodes the specified ContentfulVariationContainerCreated message. Does not implicitly {@link ContentfulVariationContainerCreated.verify|verify} messages.
31637
+ * @function encode
31638
+ * @memberof ContentfulVariationContainerCreated
31639
+ * @static
31640
+ * @param {IContentfulVariationContainerCreated} message ContentfulVariationContainerCreated message or plain object to encode
31641
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31642
+ * @returns {$protobuf.Writer} Writer
31643
+ */
31644
+ ContentfulVariationContainerCreated.encode = function encode(message, writer) {
31645
+ if (!writer)
31646
+ writer = $Writer.create();
31647
+ if (message.slug != null && message.hasOwnProperty("slug"))
31648
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
31649
+ if (message.variations != null && message.hasOwnProperty("variations"))
31650
+ for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
31651
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
31652
+ $root.contentful.SlugReference.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
31653
+ }
31654
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
31655
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
31656
+ return writer;
31657
+ };
31658
+
31659
+ /**
31660
+ * Encodes the specified ContentfulVariationContainerCreated message, length delimited. Does not implicitly {@link ContentfulVariationContainerCreated.verify|verify} messages.
31661
+ * @function encodeDelimited
31662
+ * @memberof ContentfulVariationContainerCreated
31663
+ * @static
31664
+ * @param {IContentfulVariationContainerCreated} message ContentfulVariationContainerCreated message or plain object to encode
31665
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31666
+ * @returns {$protobuf.Writer} Writer
31667
+ */
31668
+ ContentfulVariationContainerCreated.encodeDelimited = function encodeDelimited(message, writer) {
31669
+ return this.encode(message, writer).ldelim();
31670
+ };
31671
+
31672
+ /**
31673
+ * Decodes a ContentfulVariationContainerCreated message from the specified reader or buffer.
31674
+ * @function decode
31675
+ * @memberof ContentfulVariationContainerCreated
31676
+ * @static
31677
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31678
+ * @param {number} [length] Message length if known beforehand
31679
+ * @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated
31680
+ * @throws {Error} If the payload is not a reader or valid buffer
31681
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31682
+ */
31683
+ ContentfulVariationContainerCreated.decode = function decode(reader, length) {
31684
+ if (!(reader instanceof $Reader))
31685
+ reader = $Reader.create(reader);
31686
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulVariationContainerCreated(), key;
31687
+ while (reader.pos < end) {
31688
+ var tag = reader.uint32();
31689
+ switch (tag >>> 3) {
31690
+ case 1:
31691
+ message.slug = reader.string();
31692
+ break;
31693
+ case 2:
31694
+ reader.skip().pos++;
31695
+ if (message.variations === $util.emptyObject)
31696
+ message.variations = {};
31697
+ key = reader.string();
31698
+ reader.pos++;
31699
+ message.variations[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
31700
+ break;
31701
+ case 3:
31702
+ message.createdAt = reader.uint64();
31703
+ break;
31704
+ default:
31705
+ reader.skipType(tag & 7);
31706
+ break;
31707
+ }
31708
+ }
31709
+ return message;
31710
+ };
31711
+
31712
+ /**
31713
+ * Decodes a ContentfulVariationContainerCreated message from the specified reader or buffer, length delimited.
31714
+ * @function decodeDelimited
31715
+ * @memberof ContentfulVariationContainerCreated
31716
+ * @static
31717
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31718
+ * @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated
31719
+ * @throws {Error} If the payload is not a reader or valid buffer
31720
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31721
+ */
31722
+ ContentfulVariationContainerCreated.decodeDelimited = function decodeDelimited(reader) {
31723
+ if (!(reader instanceof $Reader))
31724
+ reader = new $Reader(reader);
31725
+ return this.decode(reader, reader.uint32());
31726
+ };
31727
+
31728
+ /**
31729
+ * Verifies a ContentfulVariationContainerCreated message.
31730
+ * @function verify
31731
+ * @memberof ContentfulVariationContainerCreated
31732
+ * @static
31733
+ * @param {Object.<string,*>} message Plain object to verify
31734
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
31735
+ */
31736
+ ContentfulVariationContainerCreated.verify = function verify(message) {
31737
+ if (typeof message !== "object" || message === null)
31738
+ return "object expected";
31739
+ if (message.slug != null && message.hasOwnProperty("slug"))
31740
+ if (!$util.isString(message.slug))
31741
+ return "slug: string expected";
31742
+ if (message.variations != null && message.hasOwnProperty("variations")) {
31743
+ if (!$util.isObject(message.variations))
31744
+ return "variations: object expected";
31745
+ var key = Object.keys(message.variations);
31746
+ for (var i = 0; i < key.length; ++i) {
31747
+ var error = $root.contentful.SlugReference.verify(message.variations[key[i]]);
31748
+ if (error)
31749
+ return "variations." + error;
31750
+ }
31751
+ }
31752
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
31753
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
31754
+ return "createdAt: integer|Long expected";
31755
+ return null;
31756
+ };
31757
+
31758
+ /**
31759
+ * Creates a ContentfulVariationContainerCreated message from a plain object. Also converts values to their respective internal types.
31760
+ * @function fromObject
31761
+ * @memberof ContentfulVariationContainerCreated
31762
+ * @static
31763
+ * @param {Object.<string,*>} object Plain object
31764
+ * @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated
31765
+ */
31766
+ ContentfulVariationContainerCreated.fromObject = function fromObject(object) {
31767
+ if (object instanceof $root.ContentfulVariationContainerCreated)
31768
+ return object;
31769
+ var message = new $root.ContentfulVariationContainerCreated();
31770
+ if (object.slug != null)
31771
+ message.slug = String(object.slug);
31772
+ if (object.variations) {
31773
+ if (typeof object.variations !== "object")
31774
+ throw TypeError(".ContentfulVariationContainerCreated.variations: object expected");
31775
+ message.variations = {};
31776
+ for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
31777
+ if (typeof object.variations[keys[i]] !== "object")
31778
+ throw TypeError(".ContentfulVariationContainerCreated.variations: object expected");
31779
+ message.variations[keys[i]] = $root.contentful.SlugReference.fromObject(object.variations[keys[i]]);
31780
+ }
31781
+ }
31782
+ if (object.createdAt != null)
31783
+ if ($util.Long)
31784
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
31785
+ else if (typeof object.createdAt === "string")
31786
+ message.createdAt = parseInt(object.createdAt, 10);
31787
+ else if (typeof object.createdAt === "number")
31788
+ message.createdAt = object.createdAt;
31789
+ else if (typeof object.createdAt === "object")
31790
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
31791
+ return message;
31792
+ };
31793
+
31794
+ /**
31795
+ * Creates a plain object from a ContentfulVariationContainerCreated message. Also converts values to other types if specified.
31796
+ * @function toObject
31797
+ * @memberof ContentfulVariationContainerCreated
31798
+ * @static
31799
+ * @param {ContentfulVariationContainerCreated} message ContentfulVariationContainerCreated
31800
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
31801
+ * @returns {Object.<string,*>} Plain object
31802
+ */
31803
+ ContentfulVariationContainerCreated.toObject = function toObject(message, options) {
31804
+ if (!options)
31805
+ options = {};
31806
+ var object = {};
31807
+ if (options.objects || options.defaults)
31808
+ object.variations = {};
31809
+ if (options.defaults) {
31810
+ object.slug = "";
31811
+ if ($util.Long) {
31812
+ var long = new $util.Long(0, 0, true);
31813
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
31814
+ } else
31815
+ object.createdAt = options.longs === String ? "0" : 0;
31816
+ }
31817
+ if (message.slug != null && message.hasOwnProperty("slug"))
31818
+ object.slug = message.slug;
31819
+ var keys2;
31820
+ if (message.variations && (keys2 = Object.keys(message.variations)).length) {
31821
+ object.variations = {};
31822
+ for (var j = 0; j < keys2.length; ++j)
31823
+ object.variations[keys2[j]] = $root.contentful.SlugReference.toObject(message.variations[keys2[j]], options);
31824
+ }
31825
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
31826
+ if (typeof message.createdAt === "number")
31827
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
31828
+ else
31829
+ 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;
31830
+ return object;
31831
+ };
31832
+
31833
+ /**
31834
+ * Converts this ContentfulVariationContainerCreated to JSON.
31835
+ * @function toJSON
31836
+ * @memberof ContentfulVariationContainerCreated
31837
+ * @instance
31838
+ * @returns {Object.<string,*>} JSON object
31839
+ */
31840
+ ContentfulVariationContainerCreated.prototype.toJSON = function toJSON() {
31841
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
31842
+ };
31843
+
31844
+ return ContentfulVariationContainerCreated;
31845
+ })();
31846
+
31847
+ $root.ContentfulVariationContainerUpdated = (function() {
31848
+
31849
+ /**
31850
+ * Properties of a ContentfulVariationContainerUpdated.
31851
+ * @exports IContentfulVariationContainerUpdated
31852
+ * @interface IContentfulVariationContainerUpdated
31853
+ * @property {string|null} [slug] ContentfulVariationContainerUpdated slug
31854
+ * @property {Object.<string,contentful.ISlugReference>|null} [variations] ContentfulVariationContainerUpdated variations
31855
+ * @property {number|Long|null} [updatedAt] ContentfulVariationContainerUpdated updatedAt
31856
+ */
31857
+
31858
+ /**
31859
+ * Constructs a new ContentfulVariationContainerUpdated.
31860
+ * @exports ContentfulVariationContainerUpdated
31861
+ * @classdesc Represents a ContentfulVariationContainerUpdated.
31862
+ * @implements IContentfulVariationContainerUpdated
31863
+ * @constructor
31864
+ * @param {IContentfulVariationContainerUpdated=} [properties] Properties to set
31865
+ */
31866
+ function ContentfulVariationContainerUpdated(properties) {
31867
+ this.variations = {};
31868
+ if (properties)
31869
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
31870
+ if (properties[keys[i]] != null)
31871
+ this[keys[i]] = properties[keys[i]];
31872
+ }
31873
+
31874
+ /**
31875
+ * ContentfulVariationContainerUpdated slug.
31876
+ * @member {string} slug
31877
+ * @memberof ContentfulVariationContainerUpdated
31878
+ * @instance
31879
+ */
31880
+ ContentfulVariationContainerUpdated.prototype.slug = "";
31881
+
31882
+ /**
31883
+ * ContentfulVariationContainerUpdated variations.
31884
+ * @member {Object.<string,contentful.ISlugReference>} variations
31885
+ * @memberof ContentfulVariationContainerUpdated
31886
+ * @instance
31887
+ */
31888
+ ContentfulVariationContainerUpdated.prototype.variations = $util.emptyObject;
31889
+
31890
+ /**
31891
+ * ContentfulVariationContainerUpdated updatedAt.
31892
+ * @member {number|Long} updatedAt
31893
+ * @memberof ContentfulVariationContainerUpdated
31894
+ * @instance
31895
+ */
31896
+ ContentfulVariationContainerUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
31897
+
31898
+ /**
31899
+ * Creates a new ContentfulVariationContainerUpdated instance using the specified properties.
31900
+ * @function create
31901
+ * @memberof ContentfulVariationContainerUpdated
31902
+ * @static
31903
+ * @param {IContentfulVariationContainerUpdated=} [properties] Properties to set
31904
+ * @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated instance
31905
+ */
31906
+ ContentfulVariationContainerUpdated.create = function create(properties) {
31907
+ return new ContentfulVariationContainerUpdated(properties);
31908
+ };
31909
+
31910
+ /**
31911
+ * Encodes the specified ContentfulVariationContainerUpdated message. Does not implicitly {@link ContentfulVariationContainerUpdated.verify|verify} messages.
31912
+ * @function encode
31913
+ * @memberof ContentfulVariationContainerUpdated
31914
+ * @static
31915
+ * @param {IContentfulVariationContainerUpdated} message ContentfulVariationContainerUpdated message or plain object to encode
31916
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31917
+ * @returns {$protobuf.Writer} Writer
31918
+ */
31919
+ ContentfulVariationContainerUpdated.encode = function encode(message, writer) {
31920
+ if (!writer)
31921
+ writer = $Writer.create();
31922
+ if (message.slug != null && message.hasOwnProperty("slug"))
31923
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
31924
+ if (message.variations != null && message.hasOwnProperty("variations"))
31925
+ for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
31926
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
31927
+ $root.contentful.SlugReference.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
31928
+ }
31929
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
31930
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
31931
+ return writer;
31932
+ };
31933
+
31934
+ /**
31935
+ * Encodes the specified ContentfulVariationContainerUpdated message, length delimited. Does not implicitly {@link ContentfulVariationContainerUpdated.verify|verify} messages.
31936
+ * @function encodeDelimited
31937
+ * @memberof ContentfulVariationContainerUpdated
31938
+ * @static
31939
+ * @param {IContentfulVariationContainerUpdated} message ContentfulVariationContainerUpdated message or plain object to encode
31940
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31941
+ * @returns {$protobuf.Writer} Writer
31942
+ */
31943
+ ContentfulVariationContainerUpdated.encodeDelimited = function encodeDelimited(message, writer) {
31944
+ return this.encode(message, writer).ldelim();
31945
+ };
31946
+
31947
+ /**
31948
+ * Decodes a ContentfulVariationContainerUpdated message from the specified reader or buffer.
31949
+ * @function decode
31950
+ * @memberof ContentfulVariationContainerUpdated
31951
+ * @static
31952
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31953
+ * @param {number} [length] Message length if known beforehand
31954
+ * @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated
31955
+ * @throws {Error} If the payload is not a reader or valid buffer
31956
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31957
+ */
31958
+ ContentfulVariationContainerUpdated.decode = function decode(reader, length) {
31959
+ if (!(reader instanceof $Reader))
31960
+ reader = $Reader.create(reader);
31961
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulVariationContainerUpdated(), key;
31962
+ while (reader.pos < end) {
31963
+ var tag = reader.uint32();
31964
+ switch (tag >>> 3) {
31965
+ case 1:
31966
+ message.slug = reader.string();
31967
+ break;
31968
+ case 2:
31969
+ reader.skip().pos++;
31970
+ if (message.variations === $util.emptyObject)
31971
+ message.variations = {};
31972
+ key = reader.string();
31973
+ reader.pos++;
31974
+ message.variations[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
31975
+ break;
31976
+ case 3:
31977
+ message.updatedAt = reader.uint64();
31978
+ break;
31979
+ default:
31980
+ reader.skipType(tag & 7);
31981
+ break;
31982
+ }
31983
+ }
31984
+ return message;
31985
+ };
31986
+
31987
+ /**
31988
+ * Decodes a ContentfulVariationContainerUpdated message from the specified reader or buffer, length delimited.
31989
+ * @function decodeDelimited
31990
+ * @memberof ContentfulVariationContainerUpdated
31991
+ * @static
31992
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31993
+ * @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated
31994
+ * @throws {Error} If the payload is not a reader or valid buffer
31995
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31996
+ */
31997
+ ContentfulVariationContainerUpdated.decodeDelimited = function decodeDelimited(reader) {
31998
+ if (!(reader instanceof $Reader))
31999
+ reader = new $Reader(reader);
32000
+ return this.decode(reader, reader.uint32());
32001
+ };
32002
+
32003
+ /**
32004
+ * Verifies a ContentfulVariationContainerUpdated message.
32005
+ * @function verify
32006
+ * @memberof ContentfulVariationContainerUpdated
32007
+ * @static
32008
+ * @param {Object.<string,*>} message Plain object to verify
32009
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
32010
+ */
32011
+ ContentfulVariationContainerUpdated.verify = function verify(message) {
32012
+ if (typeof message !== "object" || message === null)
32013
+ return "object expected";
32014
+ if (message.slug != null && message.hasOwnProperty("slug"))
32015
+ if (!$util.isString(message.slug))
32016
+ return "slug: string expected";
32017
+ if (message.variations != null && message.hasOwnProperty("variations")) {
32018
+ if (!$util.isObject(message.variations))
32019
+ return "variations: object expected";
32020
+ var key = Object.keys(message.variations);
32021
+ for (var i = 0; i < key.length; ++i) {
32022
+ var error = $root.contentful.SlugReference.verify(message.variations[key[i]]);
32023
+ if (error)
32024
+ return "variations." + error;
32025
+ }
32026
+ }
32027
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
32028
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
32029
+ return "updatedAt: integer|Long expected";
32030
+ return null;
32031
+ };
32032
+
32033
+ /**
32034
+ * Creates a ContentfulVariationContainerUpdated message from a plain object. Also converts values to their respective internal types.
32035
+ * @function fromObject
32036
+ * @memberof ContentfulVariationContainerUpdated
32037
+ * @static
32038
+ * @param {Object.<string,*>} object Plain object
32039
+ * @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated
32040
+ */
32041
+ ContentfulVariationContainerUpdated.fromObject = function fromObject(object) {
32042
+ if (object instanceof $root.ContentfulVariationContainerUpdated)
32043
+ return object;
32044
+ var message = new $root.ContentfulVariationContainerUpdated();
32045
+ if (object.slug != null)
32046
+ message.slug = String(object.slug);
32047
+ if (object.variations) {
32048
+ if (typeof object.variations !== "object")
32049
+ throw TypeError(".ContentfulVariationContainerUpdated.variations: object expected");
32050
+ message.variations = {};
32051
+ for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
32052
+ if (typeof object.variations[keys[i]] !== "object")
32053
+ throw TypeError(".ContentfulVariationContainerUpdated.variations: object expected");
32054
+ message.variations[keys[i]] = $root.contentful.SlugReference.fromObject(object.variations[keys[i]]);
32055
+ }
32056
+ }
32057
+ if (object.updatedAt != null)
32058
+ if ($util.Long)
32059
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
32060
+ else if (typeof object.updatedAt === "string")
32061
+ message.updatedAt = parseInt(object.updatedAt, 10);
32062
+ else if (typeof object.updatedAt === "number")
32063
+ message.updatedAt = object.updatedAt;
32064
+ else if (typeof object.updatedAt === "object")
32065
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
32066
+ return message;
32067
+ };
32068
+
32069
+ /**
32070
+ * Creates a plain object from a ContentfulVariationContainerUpdated message. Also converts values to other types if specified.
32071
+ * @function toObject
32072
+ * @memberof ContentfulVariationContainerUpdated
32073
+ * @static
32074
+ * @param {ContentfulVariationContainerUpdated} message ContentfulVariationContainerUpdated
32075
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
32076
+ * @returns {Object.<string,*>} Plain object
32077
+ */
32078
+ ContentfulVariationContainerUpdated.toObject = function toObject(message, options) {
32079
+ if (!options)
32080
+ options = {};
32081
+ var object = {};
32082
+ if (options.objects || options.defaults)
32083
+ object.variations = {};
32084
+ if (options.defaults) {
32085
+ object.slug = "";
32086
+ if ($util.Long) {
32087
+ var long = new $util.Long(0, 0, true);
32088
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
32089
+ } else
32090
+ object.updatedAt = options.longs === String ? "0" : 0;
32091
+ }
32092
+ if (message.slug != null && message.hasOwnProperty("slug"))
32093
+ object.slug = message.slug;
32094
+ var keys2;
32095
+ if (message.variations && (keys2 = Object.keys(message.variations)).length) {
32096
+ object.variations = {};
32097
+ for (var j = 0; j < keys2.length; ++j)
32098
+ object.variations[keys2[j]] = $root.contentful.SlugReference.toObject(message.variations[keys2[j]], options);
32099
+ }
32100
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
32101
+ if (typeof message.updatedAt === "number")
32102
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
32103
+ else
32104
+ 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;
32105
+ return object;
32106
+ };
32107
+
32108
+ /**
32109
+ * Converts this ContentfulVariationContainerUpdated to JSON.
32110
+ * @function toJSON
32111
+ * @memberof ContentfulVariationContainerUpdated
32112
+ * @instance
32113
+ * @returns {Object.<string,*>} JSON object
32114
+ */
32115
+ ContentfulVariationContainerUpdated.prototype.toJSON = function toJSON() {
32116
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
32117
+ };
32118
+
32119
+ return ContentfulVariationContainerUpdated;
32120
+ })();
32121
+
32122
+ $root.ContentfulVariationContainerDeleted = (function() {
32123
+
32124
+ /**
32125
+ * Properties of a ContentfulVariationContainerDeleted.
32126
+ * @exports IContentfulVariationContainerDeleted
32127
+ * @interface IContentfulVariationContainerDeleted
32128
+ * @property {string|null} [slug] ContentfulVariationContainerDeleted slug
32129
+ * @property {number|Long|null} [deletedAt] ContentfulVariationContainerDeleted deletedAt
32130
+ */
32131
+
32132
+ /**
32133
+ * Constructs a new ContentfulVariationContainerDeleted.
32134
+ * @exports ContentfulVariationContainerDeleted
32135
+ * @classdesc Represents a ContentfulVariationContainerDeleted.
32136
+ * @implements IContentfulVariationContainerDeleted
32137
+ * @constructor
32138
+ * @param {IContentfulVariationContainerDeleted=} [properties] Properties to set
32139
+ */
32140
+ function ContentfulVariationContainerDeleted(properties) {
32141
+ if (properties)
32142
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
32143
+ if (properties[keys[i]] != null)
32144
+ this[keys[i]] = properties[keys[i]];
32145
+ }
32146
+
32147
+ /**
32148
+ * ContentfulVariationContainerDeleted slug.
32149
+ * @member {string} slug
32150
+ * @memberof ContentfulVariationContainerDeleted
32151
+ * @instance
32152
+ */
32153
+ ContentfulVariationContainerDeleted.prototype.slug = "";
32154
+
32155
+ /**
32156
+ * ContentfulVariationContainerDeleted deletedAt.
32157
+ * @member {number|Long} deletedAt
32158
+ * @memberof ContentfulVariationContainerDeleted
32159
+ * @instance
32160
+ */
32161
+ ContentfulVariationContainerDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
32162
+
32163
+ /**
32164
+ * Creates a new ContentfulVariationContainerDeleted instance using the specified properties.
32165
+ * @function create
32166
+ * @memberof ContentfulVariationContainerDeleted
32167
+ * @static
32168
+ * @param {IContentfulVariationContainerDeleted=} [properties] Properties to set
32169
+ * @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted instance
32170
+ */
32171
+ ContentfulVariationContainerDeleted.create = function create(properties) {
32172
+ return new ContentfulVariationContainerDeleted(properties);
32173
+ };
32174
+
32175
+ /**
32176
+ * Encodes the specified ContentfulVariationContainerDeleted message. Does not implicitly {@link ContentfulVariationContainerDeleted.verify|verify} messages.
32177
+ * @function encode
32178
+ * @memberof ContentfulVariationContainerDeleted
32179
+ * @static
32180
+ * @param {IContentfulVariationContainerDeleted} message ContentfulVariationContainerDeleted message or plain object to encode
32181
+ * @param {$protobuf.Writer} [writer] Writer to encode to
32182
+ * @returns {$protobuf.Writer} Writer
32183
+ */
32184
+ ContentfulVariationContainerDeleted.encode = function encode(message, writer) {
32185
+ if (!writer)
32186
+ writer = $Writer.create();
32187
+ if (message.slug != null && message.hasOwnProperty("slug"))
32188
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
32189
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
32190
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
32191
+ return writer;
32192
+ };
32193
+
32194
+ /**
32195
+ * Encodes the specified ContentfulVariationContainerDeleted message, length delimited. Does not implicitly {@link ContentfulVariationContainerDeleted.verify|verify} messages.
32196
+ * @function encodeDelimited
32197
+ * @memberof ContentfulVariationContainerDeleted
32198
+ * @static
32199
+ * @param {IContentfulVariationContainerDeleted} message ContentfulVariationContainerDeleted message or plain object to encode
32200
+ * @param {$protobuf.Writer} [writer] Writer to encode to
32201
+ * @returns {$protobuf.Writer} Writer
32202
+ */
32203
+ ContentfulVariationContainerDeleted.encodeDelimited = function encodeDelimited(message, writer) {
32204
+ return this.encode(message, writer).ldelim();
32205
+ };
32206
+
32207
+ /**
32208
+ * Decodes a ContentfulVariationContainerDeleted message from the specified reader or buffer.
32209
+ * @function decode
32210
+ * @memberof ContentfulVariationContainerDeleted
32211
+ * @static
32212
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
32213
+ * @param {number} [length] Message length if known beforehand
32214
+ * @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted
32215
+ * @throws {Error} If the payload is not a reader or valid buffer
32216
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32217
+ */
32218
+ ContentfulVariationContainerDeleted.decode = function decode(reader, length) {
32219
+ if (!(reader instanceof $Reader))
32220
+ reader = $Reader.create(reader);
32221
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulVariationContainerDeleted();
32222
+ while (reader.pos < end) {
32223
+ var tag = reader.uint32();
32224
+ switch (tag >>> 3) {
32225
+ case 1:
32226
+ message.slug = reader.string();
32227
+ break;
32228
+ case 2:
32229
+ message.deletedAt = reader.uint64();
32230
+ break;
32231
+ default:
32232
+ reader.skipType(tag & 7);
32233
+ break;
32234
+ }
32235
+ }
32236
+ return message;
32237
+ };
32238
+
32239
+ /**
32240
+ * Decodes a ContentfulVariationContainerDeleted message from the specified reader or buffer, length delimited.
32241
+ * @function decodeDelimited
32242
+ * @memberof ContentfulVariationContainerDeleted
32243
+ * @static
32244
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
32245
+ * @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted
32246
+ * @throws {Error} If the payload is not a reader or valid buffer
32247
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32248
+ */
32249
+ ContentfulVariationContainerDeleted.decodeDelimited = function decodeDelimited(reader) {
32250
+ if (!(reader instanceof $Reader))
32251
+ reader = new $Reader(reader);
32252
+ return this.decode(reader, reader.uint32());
32253
+ };
32254
+
32255
+ /**
32256
+ * Verifies a ContentfulVariationContainerDeleted message.
32257
+ * @function verify
32258
+ * @memberof ContentfulVariationContainerDeleted
32259
+ * @static
32260
+ * @param {Object.<string,*>} message Plain object to verify
32261
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
32262
+ */
32263
+ ContentfulVariationContainerDeleted.verify = function verify(message) {
32264
+ if (typeof message !== "object" || message === null)
32265
+ return "object expected";
32266
+ if (message.slug != null && message.hasOwnProperty("slug"))
32267
+ if (!$util.isString(message.slug))
32268
+ return "slug: string expected";
32269
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
32270
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
32271
+ return "deletedAt: integer|Long expected";
32272
+ return null;
32273
+ };
32274
+
32275
+ /**
32276
+ * Creates a ContentfulVariationContainerDeleted message from a plain object. Also converts values to their respective internal types.
32277
+ * @function fromObject
32278
+ * @memberof ContentfulVariationContainerDeleted
32279
+ * @static
32280
+ * @param {Object.<string,*>} object Plain object
32281
+ * @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted
32282
+ */
32283
+ ContentfulVariationContainerDeleted.fromObject = function fromObject(object) {
32284
+ if (object instanceof $root.ContentfulVariationContainerDeleted)
32285
+ return object;
32286
+ var message = new $root.ContentfulVariationContainerDeleted();
32287
+ if (object.slug != null)
32288
+ message.slug = String(object.slug);
32289
+ if (object.deletedAt != null)
32290
+ if ($util.Long)
32291
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
32292
+ else if (typeof object.deletedAt === "string")
32293
+ message.deletedAt = parseInt(object.deletedAt, 10);
32294
+ else if (typeof object.deletedAt === "number")
32295
+ message.deletedAt = object.deletedAt;
32296
+ else if (typeof object.deletedAt === "object")
32297
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
32298
+ return message;
32299
+ };
32300
+
32301
+ /**
32302
+ * Creates a plain object from a ContentfulVariationContainerDeleted message. Also converts values to other types if specified.
32303
+ * @function toObject
32304
+ * @memberof ContentfulVariationContainerDeleted
32305
+ * @static
32306
+ * @param {ContentfulVariationContainerDeleted} message ContentfulVariationContainerDeleted
32307
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
32308
+ * @returns {Object.<string,*>} Plain object
32309
+ */
32310
+ ContentfulVariationContainerDeleted.toObject = function toObject(message, options) {
32311
+ if (!options)
32312
+ options = {};
32313
+ var object = {};
32314
+ if (options.defaults) {
32315
+ object.slug = "";
32316
+ if ($util.Long) {
32317
+ var long = new $util.Long(0, 0, true);
32318
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
32319
+ } else
32320
+ object.deletedAt = options.longs === String ? "0" : 0;
32321
+ }
32322
+ if (message.slug != null && message.hasOwnProperty("slug"))
32323
+ object.slug = message.slug;
32324
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
32325
+ if (typeof message.deletedAt === "number")
32326
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
32327
+ else
32328
+ 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;
32329
+ return object;
32330
+ };
32331
+
32332
+ /**
32333
+ * Converts this ContentfulVariationContainerDeleted to JSON.
32334
+ * @function toJSON
32335
+ * @memberof ContentfulVariationContainerDeleted
32336
+ * @instance
32337
+ * @returns {Object.<string,*>} JSON object
32338
+ */
32339
+ ContentfulVariationContainerDeleted.prototype.toJSON = function toJSON() {
32340
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
32341
+ };
32342
+
32343
+ return ContentfulVariationContainerDeleted;
32344
+ })();
32345
+
31572
32346
  $root.ContentfulContentModelCreated = (function() {
31573
32347
 
31574
32348
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.203.0"
19
+ "version": "1.204.0"
20
20
  }