@headspace/protos-events 1.122.0 → 1.123.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 +336 -0
- package/lib/index.js +950 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4474,6 +4474,342 @@ export class ContentfulSubscriptionAccessGroupDeleted implements IContentfulSubs
|
|
|
4474
4474
|
public toJSON(): { [k: string]: any };
|
|
4475
4475
|
}
|
|
4476
4476
|
|
|
4477
|
+
/** Properties of a ContentfulCategoryCreated. */
|
|
4478
|
+
export interface IContentfulCategoryCreated {
|
|
4479
|
+
|
|
4480
|
+
/** ContentfulCategoryCreated name */
|
|
4481
|
+
name?: (string|null);
|
|
4482
|
+
|
|
4483
|
+
/** ContentfulCategoryCreated slug */
|
|
4484
|
+
slug?: (string|null);
|
|
4485
|
+
|
|
4486
|
+
/** ContentfulCategoryCreated topic */
|
|
4487
|
+
topic?: ({ [k: string]: contentful.ISlugReference }|null);
|
|
4488
|
+
|
|
4489
|
+
/** ContentfulCategoryCreated type */
|
|
4490
|
+
type?: (string|null);
|
|
4491
|
+
|
|
4492
|
+
/** ContentfulCategoryCreated content */
|
|
4493
|
+
content?: (contentful.ISlugReference[]|null);
|
|
4494
|
+
|
|
4495
|
+
/** ContentfulCategoryCreated createdAt */
|
|
4496
|
+
createdAt?: (number|Long|null);
|
|
4497
|
+
}
|
|
4498
|
+
|
|
4499
|
+
/** Represents a ContentfulCategoryCreated. */
|
|
4500
|
+
export class ContentfulCategoryCreated implements IContentfulCategoryCreated {
|
|
4501
|
+
|
|
4502
|
+
/**
|
|
4503
|
+
* Constructs a new ContentfulCategoryCreated.
|
|
4504
|
+
* @param [properties] Properties to set
|
|
4505
|
+
*/
|
|
4506
|
+
constructor(properties?: IContentfulCategoryCreated);
|
|
4507
|
+
|
|
4508
|
+
/** ContentfulCategoryCreated name. */
|
|
4509
|
+
public name: string;
|
|
4510
|
+
|
|
4511
|
+
/** ContentfulCategoryCreated slug. */
|
|
4512
|
+
public slug: string;
|
|
4513
|
+
|
|
4514
|
+
/** ContentfulCategoryCreated topic. */
|
|
4515
|
+
public topic: { [k: string]: contentful.ISlugReference };
|
|
4516
|
+
|
|
4517
|
+
/** ContentfulCategoryCreated type. */
|
|
4518
|
+
public type: string;
|
|
4519
|
+
|
|
4520
|
+
/** ContentfulCategoryCreated content. */
|
|
4521
|
+
public content: contentful.ISlugReference[];
|
|
4522
|
+
|
|
4523
|
+
/** ContentfulCategoryCreated createdAt. */
|
|
4524
|
+
public createdAt: (number|Long);
|
|
4525
|
+
|
|
4526
|
+
/**
|
|
4527
|
+
* Creates a new ContentfulCategoryCreated instance using the specified properties.
|
|
4528
|
+
* @param [properties] Properties to set
|
|
4529
|
+
* @returns ContentfulCategoryCreated instance
|
|
4530
|
+
*/
|
|
4531
|
+
public static create(properties?: IContentfulCategoryCreated): ContentfulCategoryCreated;
|
|
4532
|
+
|
|
4533
|
+
/**
|
|
4534
|
+
* Encodes the specified ContentfulCategoryCreated message. Does not implicitly {@link ContentfulCategoryCreated.verify|verify} messages.
|
|
4535
|
+
* @param message ContentfulCategoryCreated message or plain object to encode
|
|
4536
|
+
* @param [writer] Writer to encode to
|
|
4537
|
+
* @returns Writer
|
|
4538
|
+
*/
|
|
4539
|
+
public static encode(message: IContentfulCategoryCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4540
|
+
|
|
4541
|
+
/**
|
|
4542
|
+
* Encodes the specified ContentfulCategoryCreated message, length delimited. Does not implicitly {@link ContentfulCategoryCreated.verify|verify} messages.
|
|
4543
|
+
* @param message ContentfulCategoryCreated message or plain object to encode
|
|
4544
|
+
* @param [writer] Writer to encode to
|
|
4545
|
+
* @returns Writer
|
|
4546
|
+
*/
|
|
4547
|
+
public static encodeDelimited(message: IContentfulCategoryCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4548
|
+
|
|
4549
|
+
/**
|
|
4550
|
+
* Decodes a ContentfulCategoryCreated message from the specified reader or buffer.
|
|
4551
|
+
* @param reader Reader or buffer to decode from
|
|
4552
|
+
* @param [length] Message length if known beforehand
|
|
4553
|
+
* @returns ContentfulCategoryCreated
|
|
4554
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4555
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4556
|
+
*/
|
|
4557
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulCategoryCreated;
|
|
4558
|
+
|
|
4559
|
+
/**
|
|
4560
|
+
* Decodes a ContentfulCategoryCreated message from the specified reader or buffer, length delimited.
|
|
4561
|
+
* @param reader Reader or buffer to decode from
|
|
4562
|
+
* @returns ContentfulCategoryCreated
|
|
4563
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4564
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4565
|
+
*/
|
|
4566
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulCategoryCreated;
|
|
4567
|
+
|
|
4568
|
+
/**
|
|
4569
|
+
* Verifies a ContentfulCategoryCreated message.
|
|
4570
|
+
* @param message Plain object to verify
|
|
4571
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4572
|
+
*/
|
|
4573
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4574
|
+
|
|
4575
|
+
/**
|
|
4576
|
+
* Creates a ContentfulCategoryCreated message from a plain object. Also converts values to their respective internal types.
|
|
4577
|
+
* @param object Plain object
|
|
4578
|
+
* @returns ContentfulCategoryCreated
|
|
4579
|
+
*/
|
|
4580
|
+
public static fromObject(object: { [k: string]: any }): ContentfulCategoryCreated;
|
|
4581
|
+
|
|
4582
|
+
/**
|
|
4583
|
+
* Creates a plain object from a ContentfulCategoryCreated message. Also converts values to other types if specified.
|
|
4584
|
+
* @param message ContentfulCategoryCreated
|
|
4585
|
+
* @param [options] Conversion options
|
|
4586
|
+
* @returns Plain object
|
|
4587
|
+
*/
|
|
4588
|
+
public static toObject(message: ContentfulCategoryCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4589
|
+
|
|
4590
|
+
/**
|
|
4591
|
+
* Converts this ContentfulCategoryCreated to JSON.
|
|
4592
|
+
* @returns JSON object
|
|
4593
|
+
*/
|
|
4594
|
+
public toJSON(): { [k: string]: any };
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
/** Properties of a ContentfulCategoryUpdated. */
|
|
4598
|
+
export interface IContentfulCategoryUpdated {
|
|
4599
|
+
|
|
4600
|
+
/** ContentfulCategoryUpdated name */
|
|
4601
|
+
name?: (string|null);
|
|
4602
|
+
|
|
4603
|
+
/** ContentfulCategoryUpdated slug */
|
|
4604
|
+
slug?: (string|null);
|
|
4605
|
+
|
|
4606
|
+
/** ContentfulCategoryUpdated topic */
|
|
4607
|
+
topic?: ({ [k: string]: contentful.ISlugReference }|null);
|
|
4608
|
+
|
|
4609
|
+
/** ContentfulCategoryUpdated type */
|
|
4610
|
+
type?: (string|null);
|
|
4611
|
+
|
|
4612
|
+
/** ContentfulCategoryUpdated content */
|
|
4613
|
+
content?: (contentful.ISlugReference[]|null);
|
|
4614
|
+
|
|
4615
|
+
/** ContentfulCategoryUpdated updatedAt */
|
|
4616
|
+
updatedAt?: (number|Long|null);
|
|
4617
|
+
}
|
|
4618
|
+
|
|
4619
|
+
/** Represents a ContentfulCategoryUpdated. */
|
|
4620
|
+
export class ContentfulCategoryUpdated implements IContentfulCategoryUpdated {
|
|
4621
|
+
|
|
4622
|
+
/**
|
|
4623
|
+
* Constructs a new ContentfulCategoryUpdated.
|
|
4624
|
+
* @param [properties] Properties to set
|
|
4625
|
+
*/
|
|
4626
|
+
constructor(properties?: IContentfulCategoryUpdated);
|
|
4627
|
+
|
|
4628
|
+
/** ContentfulCategoryUpdated name. */
|
|
4629
|
+
public name: string;
|
|
4630
|
+
|
|
4631
|
+
/** ContentfulCategoryUpdated slug. */
|
|
4632
|
+
public slug: string;
|
|
4633
|
+
|
|
4634
|
+
/** ContentfulCategoryUpdated topic. */
|
|
4635
|
+
public topic: { [k: string]: contentful.ISlugReference };
|
|
4636
|
+
|
|
4637
|
+
/** ContentfulCategoryUpdated type. */
|
|
4638
|
+
public type: string;
|
|
4639
|
+
|
|
4640
|
+
/** ContentfulCategoryUpdated content. */
|
|
4641
|
+
public content: contentful.ISlugReference[];
|
|
4642
|
+
|
|
4643
|
+
/** ContentfulCategoryUpdated updatedAt. */
|
|
4644
|
+
public updatedAt: (number|Long);
|
|
4645
|
+
|
|
4646
|
+
/**
|
|
4647
|
+
* Creates a new ContentfulCategoryUpdated instance using the specified properties.
|
|
4648
|
+
* @param [properties] Properties to set
|
|
4649
|
+
* @returns ContentfulCategoryUpdated instance
|
|
4650
|
+
*/
|
|
4651
|
+
public static create(properties?: IContentfulCategoryUpdated): ContentfulCategoryUpdated;
|
|
4652
|
+
|
|
4653
|
+
/**
|
|
4654
|
+
* Encodes the specified ContentfulCategoryUpdated message. Does not implicitly {@link ContentfulCategoryUpdated.verify|verify} messages.
|
|
4655
|
+
* @param message ContentfulCategoryUpdated message or plain object to encode
|
|
4656
|
+
* @param [writer] Writer to encode to
|
|
4657
|
+
* @returns Writer
|
|
4658
|
+
*/
|
|
4659
|
+
public static encode(message: IContentfulCategoryUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4660
|
+
|
|
4661
|
+
/**
|
|
4662
|
+
* Encodes the specified ContentfulCategoryUpdated message, length delimited. Does not implicitly {@link ContentfulCategoryUpdated.verify|verify} messages.
|
|
4663
|
+
* @param message ContentfulCategoryUpdated message or plain object to encode
|
|
4664
|
+
* @param [writer] Writer to encode to
|
|
4665
|
+
* @returns Writer
|
|
4666
|
+
*/
|
|
4667
|
+
public static encodeDelimited(message: IContentfulCategoryUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4668
|
+
|
|
4669
|
+
/**
|
|
4670
|
+
* Decodes a ContentfulCategoryUpdated message from the specified reader or buffer.
|
|
4671
|
+
* @param reader Reader or buffer to decode from
|
|
4672
|
+
* @param [length] Message length if known beforehand
|
|
4673
|
+
* @returns ContentfulCategoryUpdated
|
|
4674
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4675
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4676
|
+
*/
|
|
4677
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulCategoryUpdated;
|
|
4678
|
+
|
|
4679
|
+
/**
|
|
4680
|
+
* Decodes a ContentfulCategoryUpdated message from the specified reader or buffer, length delimited.
|
|
4681
|
+
* @param reader Reader or buffer to decode from
|
|
4682
|
+
* @returns ContentfulCategoryUpdated
|
|
4683
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4684
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4685
|
+
*/
|
|
4686
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulCategoryUpdated;
|
|
4687
|
+
|
|
4688
|
+
/**
|
|
4689
|
+
* Verifies a ContentfulCategoryUpdated message.
|
|
4690
|
+
* @param message Plain object to verify
|
|
4691
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4692
|
+
*/
|
|
4693
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4694
|
+
|
|
4695
|
+
/**
|
|
4696
|
+
* Creates a ContentfulCategoryUpdated message from a plain object. Also converts values to their respective internal types.
|
|
4697
|
+
* @param object Plain object
|
|
4698
|
+
* @returns ContentfulCategoryUpdated
|
|
4699
|
+
*/
|
|
4700
|
+
public static fromObject(object: { [k: string]: any }): ContentfulCategoryUpdated;
|
|
4701
|
+
|
|
4702
|
+
/**
|
|
4703
|
+
* Creates a plain object from a ContentfulCategoryUpdated message. Also converts values to other types if specified.
|
|
4704
|
+
* @param message ContentfulCategoryUpdated
|
|
4705
|
+
* @param [options] Conversion options
|
|
4706
|
+
* @returns Plain object
|
|
4707
|
+
*/
|
|
4708
|
+
public static toObject(message: ContentfulCategoryUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4709
|
+
|
|
4710
|
+
/**
|
|
4711
|
+
* Converts this ContentfulCategoryUpdated to JSON.
|
|
4712
|
+
* @returns JSON object
|
|
4713
|
+
*/
|
|
4714
|
+
public toJSON(): { [k: string]: any };
|
|
4715
|
+
}
|
|
4716
|
+
|
|
4717
|
+
/** Properties of a ContentfulCategoryDeleted. */
|
|
4718
|
+
export interface IContentfulCategoryDeleted {
|
|
4719
|
+
|
|
4720
|
+
/** ContentfulCategoryDeleted slug */
|
|
4721
|
+
slug?: (string|null);
|
|
4722
|
+
|
|
4723
|
+
/** ContentfulCategoryDeleted deletedAt */
|
|
4724
|
+
deletedAt?: (number|Long|null);
|
|
4725
|
+
}
|
|
4726
|
+
|
|
4727
|
+
/** Represents a ContentfulCategoryDeleted. */
|
|
4728
|
+
export class ContentfulCategoryDeleted implements IContentfulCategoryDeleted {
|
|
4729
|
+
|
|
4730
|
+
/**
|
|
4731
|
+
* Constructs a new ContentfulCategoryDeleted.
|
|
4732
|
+
* @param [properties] Properties to set
|
|
4733
|
+
*/
|
|
4734
|
+
constructor(properties?: IContentfulCategoryDeleted);
|
|
4735
|
+
|
|
4736
|
+
/** ContentfulCategoryDeleted slug. */
|
|
4737
|
+
public slug: string;
|
|
4738
|
+
|
|
4739
|
+
/** ContentfulCategoryDeleted deletedAt. */
|
|
4740
|
+
public deletedAt: (number|Long);
|
|
4741
|
+
|
|
4742
|
+
/**
|
|
4743
|
+
* Creates a new ContentfulCategoryDeleted instance using the specified properties.
|
|
4744
|
+
* @param [properties] Properties to set
|
|
4745
|
+
* @returns ContentfulCategoryDeleted instance
|
|
4746
|
+
*/
|
|
4747
|
+
public static create(properties?: IContentfulCategoryDeleted): ContentfulCategoryDeleted;
|
|
4748
|
+
|
|
4749
|
+
/**
|
|
4750
|
+
* Encodes the specified ContentfulCategoryDeleted message. Does not implicitly {@link ContentfulCategoryDeleted.verify|verify} messages.
|
|
4751
|
+
* @param message ContentfulCategoryDeleted message or plain object to encode
|
|
4752
|
+
* @param [writer] Writer to encode to
|
|
4753
|
+
* @returns Writer
|
|
4754
|
+
*/
|
|
4755
|
+
public static encode(message: IContentfulCategoryDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4756
|
+
|
|
4757
|
+
/**
|
|
4758
|
+
* Encodes the specified ContentfulCategoryDeleted message, length delimited. Does not implicitly {@link ContentfulCategoryDeleted.verify|verify} messages.
|
|
4759
|
+
* @param message ContentfulCategoryDeleted message or plain object to encode
|
|
4760
|
+
* @param [writer] Writer to encode to
|
|
4761
|
+
* @returns Writer
|
|
4762
|
+
*/
|
|
4763
|
+
public static encodeDelimited(message: IContentfulCategoryDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4764
|
+
|
|
4765
|
+
/**
|
|
4766
|
+
* Decodes a ContentfulCategoryDeleted message from the specified reader or buffer.
|
|
4767
|
+
* @param reader Reader or buffer to decode from
|
|
4768
|
+
* @param [length] Message length if known beforehand
|
|
4769
|
+
* @returns ContentfulCategoryDeleted
|
|
4770
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4771
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4772
|
+
*/
|
|
4773
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulCategoryDeleted;
|
|
4774
|
+
|
|
4775
|
+
/**
|
|
4776
|
+
* Decodes a ContentfulCategoryDeleted message from the specified reader or buffer, length delimited.
|
|
4777
|
+
* @param reader Reader or buffer to decode from
|
|
4778
|
+
* @returns ContentfulCategoryDeleted
|
|
4779
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4780
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4781
|
+
*/
|
|
4782
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulCategoryDeleted;
|
|
4783
|
+
|
|
4784
|
+
/**
|
|
4785
|
+
* Verifies a ContentfulCategoryDeleted message.
|
|
4786
|
+
* @param message Plain object to verify
|
|
4787
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4788
|
+
*/
|
|
4789
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4790
|
+
|
|
4791
|
+
/**
|
|
4792
|
+
* Creates a ContentfulCategoryDeleted message from a plain object. Also converts values to their respective internal types.
|
|
4793
|
+
* @param object Plain object
|
|
4794
|
+
* @returns ContentfulCategoryDeleted
|
|
4795
|
+
*/
|
|
4796
|
+
public static fromObject(object: { [k: string]: any }): ContentfulCategoryDeleted;
|
|
4797
|
+
|
|
4798
|
+
/**
|
|
4799
|
+
* Creates a plain object from a ContentfulCategoryDeleted message. Also converts values to other types if specified.
|
|
4800
|
+
* @param message ContentfulCategoryDeleted
|
|
4801
|
+
* @param [options] Conversion options
|
|
4802
|
+
* @returns Plain object
|
|
4803
|
+
*/
|
|
4804
|
+
public static toObject(message: ContentfulCategoryDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4805
|
+
|
|
4806
|
+
/**
|
|
4807
|
+
* Converts this ContentfulCategoryDeleted to JSON.
|
|
4808
|
+
* @returns JSON object
|
|
4809
|
+
*/
|
|
4810
|
+
public toJSON(): { [k: string]: any };
|
|
4811
|
+
}
|
|
4812
|
+
|
|
4477
4813
|
/** Properties of a ContentfulContentModelCreated. */
|
|
4478
4814
|
export interface IContentfulContentModelCreated {
|
|
4479
4815
|
|
package/lib/index.js
CHANGED
|
@@ -11517,6 +11517,956 @@ $root.ContentfulSubscriptionAccessGroupDeleted = (function() {
|
|
|
11517
11517
|
return ContentfulSubscriptionAccessGroupDeleted;
|
|
11518
11518
|
})();
|
|
11519
11519
|
|
|
11520
|
+
$root.ContentfulCategoryCreated = (function() {
|
|
11521
|
+
|
|
11522
|
+
/**
|
|
11523
|
+
* Properties of a ContentfulCategoryCreated.
|
|
11524
|
+
* @exports IContentfulCategoryCreated
|
|
11525
|
+
* @interface IContentfulCategoryCreated
|
|
11526
|
+
* @property {string|null} [name] ContentfulCategoryCreated name
|
|
11527
|
+
* @property {string|null} [slug] ContentfulCategoryCreated slug
|
|
11528
|
+
* @property {Object.<string,contentful.ISlugReference>|null} [topic] ContentfulCategoryCreated topic
|
|
11529
|
+
* @property {string|null} [type] ContentfulCategoryCreated type
|
|
11530
|
+
* @property {Array.<contentful.ISlugReference>|null} [content] ContentfulCategoryCreated content
|
|
11531
|
+
* @property {number|Long|null} [createdAt] ContentfulCategoryCreated createdAt
|
|
11532
|
+
*/
|
|
11533
|
+
|
|
11534
|
+
/**
|
|
11535
|
+
* Constructs a new ContentfulCategoryCreated.
|
|
11536
|
+
* @exports ContentfulCategoryCreated
|
|
11537
|
+
* @classdesc Represents a ContentfulCategoryCreated.
|
|
11538
|
+
* @implements IContentfulCategoryCreated
|
|
11539
|
+
* @constructor
|
|
11540
|
+
* @param {IContentfulCategoryCreated=} [properties] Properties to set
|
|
11541
|
+
*/
|
|
11542
|
+
function ContentfulCategoryCreated(properties) {
|
|
11543
|
+
this.topic = {};
|
|
11544
|
+
this.content = [];
|
|
11545
|
+
if (properties)
|
|
11546
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11547
|
+
if (properties[keys[i]] != null)
|
|
11548
|
+
this[keys[i]] = properties[keys[i]];
|
|
11549
|
+
}
|
|
11550
|
+
|
|
11551
|
+
/**
|
|
11552
|
+
* ContentfulCategoryCreated name.
|
|
11553
|
+
* @member {string} name
|
|
11554
|
+
* @memberof ContentfulCategoryCreated
|
|
11555
|
+
* @instance
|
|
11556
|
+
*/
|
|
11557
|
+
ContentfulCategoryCreated.prototype.name = "";
|
|
11558
|
+
|
|
11559
|
+
/**
|
|
11560
|
+
* ContentfulCategoryCreated slug.
|
|
11561
|
+
* @member {string} slug
|
|
11562
|
+
* @memberof ContentfulCategoryCreated
|
|
11563
|
+
* @instance
|
|
11564
|
+
*/
|
|
11565
|
+
ContentfulCategoryCreated.prototype.slug = "";
|
|
11566
|
+
|
|
11567
|
+
/**
|
|
11568
|
+
* ContentfulCategoryCreated topic.
|
|
11569
|
+
* @member {Object.<string,contentful.ISlugReference>} topic
|
|
11570
|
+
* @memberof ContentfulCategoryCreated
|
|
11571
|
+
* @instance
|
|
11572
|
+
*/
|
|
11573
|
+
ContentfulCategoryCreated.prototype.topic = $util.emptyObject;
|
|
11574
|
+
|
|
11575
|
+
/**
|
|
11576
|
+
* ContentfulCategoryCreated type.
|
|
11577
|
+
* @member {string} type
|
|
11578
|
+
* @memberof ContentfulCategoryCreated
|
|
11579
|
+
* @instance
|
|
11580
|
+
*/
|
|
11581
|
+
ContentfulCategoryCreated.prototype.type = "";
|
|
11582
|
+
|
|
11583
|
+
/**
|
|
11584
|
+
* ContentfulCategoryCreated content.
|
|
11585
|
+
* @member {Array.<contentful.ISlugReference>} content
|
|
11586
|
+
* @memberof ContentfulCategoryCreated
|
|
11587
|
+
* @instance
|
|
11588
|
+
*/
|
|
11589
|
+
ContentfulCategoryCreated.prototype.content = $util.emptyArray;
|
|
11590
|
+
|
|
11591
|
+
/**
|
|
11592
|
+
* ContentfulCategoryCreated createdAt.
|
|
11593
|
+
* @member {number|Long} createdAt
|
|
11594
|
+
* @memberof ContentfulCategoryCreated
|
|
11595
|
+
* @instance
|
|
11596
|
+
*/
|
|
11597
|
+
ContentfulCategoryCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11598
|
+
|
|
11599
|
+
/**
|
|
11600
|
+
* Creates a new ContentfulCategoryCreated instance using the specified properties.
|
|
11601
|
+
* @function create
|
|
11602
|
+
* @memberof ContentfulCategoryCreated
|
|
11603
|
+
* @static
|
|
11604
|
+
* @param {IContentfulCategoryCreated=} [properties] Properties to set
|
|
11605
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated instance
|
|
11606
|
+
*/
|
|
11607
|
+
ContentfulCategoryCreated.create = function create(properties) {
|
|
11608
|
+
return new ContentfulCategoryCreated(properties);
|
|
11609
|
+
};
|
|
11610
|
+
|
|
11611
|
+
/**
|
|
11612
|
+
* Encodes the specified ContentfulCategoryCreated message. Does not implicitly {@link ContentfulCategoryCreated.verify|verify} messages.
|
|
11613
|
+
* @function encode
|
|
11614
|
+
* @memberof ContentfulCategoryCreated
|
|
11615
|
+
* @static
|
|
11616
|
+
* @param {IContentfulCategoryCreated} message ContentfulCategoryCreated message or plain object to encode
|
|
11617
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11618
|
+
* @returns {$protobuf.Writer} Writer
|
|
11619
|
+
*/
|
|
11620
|
+
ContentfulCategoryCreated.encode = function encode(message, writer) {
|
|
11621
|
+
if (!writer)
|
|
11622
|
+
writer = $Writer.create();
|
|
11623
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11624
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
11625
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11626
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
11627
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
11628
|
+
for (var keys = Object.keys(message.topic), i = 0; i < keys.length; ++i) {
|
|
11629
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11630
|
+
$root.contentful.SlugReference.encode(message.topic[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11631
|
+
}
|
|
11632
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
11633
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
|
|
11634
|
+
if (message.content != null && message.content.length)
|
|
11635
|
+
for (var i = 0; i < message.content.length; ++i)
|
|
11636
|
+
$root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
11637
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11638
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
|
|
11639
|
+
return writer;
|
|
11640
|
+
};
|
|
11641
|
+
|
|
11642
|
+
/**
|
|
11643
|
+
* Encodes the specified ContentfulCategoryCreated message, length delimited. Does not implicitly {@link ContentfulCategoryCreated.verify|verify} messages.
|
|
11644
|
+
* @function encodeDelimited
|
|
11645
|
+
* @memberof ContentfulCategoryCreated
|
|
11646
|
+
* @static
|
|
11647
|
+
* @param {IContentfulCategoryCreated} message ContentfulCategoryCreated message or plain object to encode
|
|
11648
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11649
|
+
* @returns {$protobuf.Writer} Writer
|
|
11650
|
+
*/
|
|
11651
|
+
ContentfulCategoryCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11652
|
+
return this.encode(message, writer).ldelim();
|
|
11653
|
+
};
|
|
11654
|
+
|
|
11655
|
+
/**
|
|
11656
|
+
* Decodes a ContentfulCategoryCreated message from the specified reader or buffer.
|
|
11657
|
+
* @function decode
|
|
11658
|
+
* @memberof ContentfulCategoryCreated
|
|
11659
|
+
* @static
|
|
11660
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11661
|
+
* @param {number} [length] Message length if known beforehand
|
|
11662
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated
|
|
11663
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11664
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11665
|
+
*/
|
|
11666
|
+
ContentfulCategoryCreated.decode = function decode(reader, length) {
|
|
11667
|
+
if (!(reader instanceof $Reader))
|
|
11668
|
+
reader = $Reader.create(reader);
|
|
11669
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryCreated(), key;
|
|
11670
|
+
while (reader.pos < end) {
|
|
11671
|
+
var tag = reader.uint32();
|
|
11672
|
+
switch (tag >>> 3) {
|
|
11673
|
+
case 1:
|
|
11674
|
+
message.name = reader.string();
|
|
11675
|
+
break;
|
|
11676
|
+
case 2:
|
|
11677
|
+
message.slug = reader.string();
|
|
11678
|
+
break;
|
|
11679
|
+
case 3:
|
|
11680
|
+
reader.skip().pos++;
|
|
11681
|
+
if (message.topic === $util.emptyObject)
|
|
11682
|
+
message.topic = {};
|
|
11683
|
+
key = reader.string();
|
|
11684
|
+
reader.pos++;
|
|
11685
|
+
message.topic[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
11686
|
+
break;
|
|
11687
|
+
case 4:
|
|
11688
|
+
message.type = reader.string();
|
|
11689
|
+
break;
|
|
11690
|
+
case 5:
|
|
11691
|
+
if (!(message.content && message.content.length))
|
|
11692
|
+
message.content = [];
|
|
11693
|
+
message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
11694
|
+
break;
|
|
11695
|
+
case 6:
|
|
11696
|
+
message.createdAt = reader.uint64();
|
|
11697
|
+
break;
|
|
11698
|
+
default:
|
|
11699
|
+
reader.skipType(tag & 7);
|
|
11700
|
+
break;
|
|
11701
|
+
}
|
|
11702
|
+
}
|
|
11703
|
+
return message;
|
|
11704
|
+
};
|
|
11705
|
+
|
|
11706
|
+
/**
|
|
11707
|
+
* Decodes a ContentfulCategoryCreated message from the specified reader or buffer, length delimited.
|
|
11708
|
+
* @function decodeDelimited
|
|
11709
|
+
* @memberof ContentfulCategoryCreated
|
|
11710
|
+
* @static
|
|
11711
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11712
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated
|
|
11713
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11714
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11715
|
+
*/
|
|
11716
|
+
ContentfulCategoryCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
11717
|
+
if (!(reader instanceof $Reader))
|
|
11718
|
+
reader = new $Reader(reader);
|
|
11719
|
+
return this.decode(reader, reader.uint32());
|
|
11720
|
+
};
|
|
11721
|
+
|
|
11722
|
+
/**
|
|
11723
|
+
* Verifies a ContentfulCategoryCreated message.
|
|
11724
|
+
* @function verify
|
|
11725
|
+
* @memberof ContentfulCategoryCreated
|
|
11726
|
+
* @static
|
|
11727
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11728
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11729
|
+
*/
|
|
11730
|
+
ContentfulCategoryCreated.verify = function verify(message) {
|
|
11731
|
+
if (typeof message !== "object" || message === null)
|
|
11732
|
+
return "object expected";
|
|
11733
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11734
|
+
if (!$util.isString(message.name))
|
|
11735
|
+
return "name: string expected";
|
|
11736
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11737
|
+
if (!$util.isString(message.slug))
|
|
11738
|
+
return "slug: string expected";
|
|
11739
|
+
if (message.topic != null && message.hasOwnProperty("topic")) {
|
|
11740
|
+
if (!$util.isObject(message.topic))
|
|
11741
|
+
return "topic: object expected";
|
|
11742
|
+
var key = Object.keys(message.topic);
|
|
11743
|
+
for (var i = 0; i < key.length; ++i) {
|
|
11744
|
+
var error = $root.contentful.SlugReference.verify(message.topic[key[i]]);
|
|
11745
|
+
if (error)
|
|
11746
|
+
return "topic." + error;
|
|
11747
|
+
}
|
|
11748
|
+
}
|
|
11749
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
11750
|
+
if (!$util.isString(message.type))
|
|
11751
|
+
return "type: string expected";
|
|
11752
|
+
if (message.content != null && message.hasOwnProperty("content")) {
|
|
11753
|
+
if (!Array.isArray(message.content))
|
|
11754
|
+
return "content: array expected";
|
|
11755
|
+
for (var i = 0; i < message.content.length; ++i) {
|
|
11756
|
+
var error = $root.contentful.SlugReference.verify(message.content[i]);
|
|
11757
|
+
if (error)
|
|
11758
|
+
return "content." + error;
|
|
11759
|
+
}
|
|
11760
|
+
}
|
|
11761
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11762
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
11763
|
+
return "createdAt: integer|Long expected";
|
|
11764
|
+
return null;
|
|
11765
|
+
};
|
|
11766
|
+
|
|
11767
|
+
/**
|
|
11768
|
+
* Creates a ContentfulCategoryCreated message from a plain object. Also converts values to their respective internal types.
|
|
11769
|
+
* @function fromObject
|
|
11770
|
+
* @memberof ContentfulCategoryCreated
|
|
11771
|
+
* @static
|
|
11772
|
+
* @param {Object.<string,*>} object Plain object
|
|
11773
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated
|
|
11774
|
+
*/
|
|
11775
|
+
ContentfulCategoryCreated.fromObject = function fromObject(object) {
|
|
11776
|
+
if (object instanceof $root.ContentfulCategoryCreated)
|
|
11777
|
+
return object;
|
|
11778
|
+
var message = new $root.ContentfulCategoryCreated();
|
|
11779
|
+
if (object.name != null)
|
|
11780
|
+
message.name = String(object.name);
|
|
11781
|
+
if (object.slug != null)
|
|
11782
|
+
message.slug = String(object.slug);
|
|
11783
|
+
if (object.topic) {
|
|
11784
|
+
if (typeof object.topic !== "object")
|
|
11785
|
+
throw TypeError(".ContentfulCategoryCreated.topic: object expected");
|
|
11786
|
+
message.topic = {};
|
|
11787
|
+
for (var keys = Object.keys(object.topic), i = 0; i < keys.length; ++i) {
|
|
11788
|
+
if (typeof object.topic[keys[i]] !== "object")
|
|
11789
|
+
throw TypeError(".ContentfulCategoryCreated.topic: object expected");
|
|
11790
|
+
message.topic[keys[i]] = $root.contentful.SlugReference.fromObject(object.topic[keys[i]]);
|
|
11791
|
+
}
|
|
11792
|
+
}
|
|
11793
|
+
if (object.type != null)
|
|
11794
|
+
message.type = String(object.type);
|
|
11795
|
+
if (object.content) {
|
|
11796
|
+
if (!Array.isArray(object.content))
|
|
11797
|
+
throw TypeError(".ContentfulCategoryCreated.content: array expected");
|
|
11798
|
+
message.content = [];
|
|
11799
|
+
for (var i = 0; i < object.content.length; ++i) {
|
|
11800
|
+
if (typeof object.content[i] !== "object")
|
|
11801
|
+
throw TypeError(".ContentfulCategoryCreated.content: object expected");
|
|
11802
|
+
message.content[i] = $root.contentful.SlugReference.fromObject(object.content[i]);
|
|
11803
|
+
}
|
|
11804
|
+
}
|
|
11805
|
+
if (object.createdAt != null)
|
|
11806
|
+
if ($util.Long)
|
|
11807
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
11808
|
+
else if (typeof object.createdAt === "string")
|
|
11809
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
11810
|
+
else if (typeof object.createdAt === "number")
|
|
11811
|
+
message.createdAt = object.createdAt;
|
|
11812
|
+
else if (typeof object.createdAt === "object")
|
|
11813
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
11814
|
+
return message;
|
|
11815
|
+
};
|
|
11816
|
+
|
|
11817
|
+
/**
|
|
11818
|
+
* Creates a plain object from a ContentfulCategoryCreated message. Also converts values to other types if specified.
|
|
11819
|
+
* @function toObject
|
|
11820
|
+
* @memberof ContentfulCategoryCreated
|
|
11821
|
+
* @static
|
|
11822
|
+
* @param {ContentfulCategoryCreated} message ContentfulCategoryCreated
|
|
11823
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11824
|
+
* @returns {Object.<string,*>} Plain object
|
|
11825
|
+
*/
|
|
11826
|
+
ContentfulCategoryCreated.toObject = function toObject(message, options) {
|
|
11827
|
+
if (!options)
|
|
11828
|
+
options = {};
|
|
11829
|
+
var object = {};
|
|
11830
|
+
if (options.arrays || options.defaults)
|
|
11831
|
+
object.content = [];
|
|
11832
|
+
if (options.objects || options.defaults)
|
|
11833
|
+
object.topic = {};
|
|
11834
|
+
if (options.defaults) {
|
|
11835
|
+
object.name = "";
|
|
11836
|
+
object.slug = "";
|
|
11837
|
+
object.type = "";
|
|
11838
|
+
if ($util.Long) {
|
|
11839
|
+
var long = new $util.Long(0, 0, true);
|
|
11840
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11841
|
+
} else
|
|
11842
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
11843
|
+
}
|
|
11844
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11845
|
+
object.name = message.name;
|
|
11846
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11847
|
+
object.slug = message.slug;
|
|
11848
|
+
var keys2;
|
|
11849
|
+
if (message.topic && (keys2 = Object.keys(message.topic)).length) {
|
|
11850
|
+
object.topic = {};
|
|
11851
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11852
|
+
object.topic[keys2[j]] = $root.contentful.SlugReference.toObject(message.topic[keys2[j]], options);
|
|
11853
|
+
}
|
|
11854
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
11855
|
+
object.type = message.type;
|
|
11856
|
+
if (message.content && message.content.length) {
|
|
11857
|
+
object.content = [];
|
|
11858
|
+
for (var j = 0; j < message.content.length; ++j)
|
|
11859
|
+
object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
|
|
11860
|
+
}
|
|
11861
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11862
|
+
if (typeof message.createdAt === "number")
|
|
11863
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
11864
|
+
else
|
|
11865
|
+
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;
|
|
11866
|
+
return object;
|
|
11867
|
+
};
|
|
11868
|
+
|
|
11869
|
+
/**
|
|
11870
|
+
* Converts this ContentfulCategoryCreated to JSON.
|
|
11871
|
+
* @function toJSON
|
|
11872
|
+
* @memberof ContentfulCategoryCreated
|
|
11873
|
+
* @instance
|
|
11874
|
+
* @returns {Object.<string,*>} JSON object
|
|
11875
|
+
*/
|
|
11876
|
+
ContentfulCategoryCreated.prototype.toJSON = function toJSON() {
|
|
11877
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11878
|
+
};
|
|
11879
|
+
|
|
11880
|
+
return ContentfulCategoryCreated;
|
|
11881
|
+
})();
|
|
11882
|
+
|
|
11883
|
+
$root.ContentfulCategoryUpdated = (function() {
|
|
11884
|
+
|
|
11885
|
+
/**
|
|
11886
|
+
* Properties of a ContentfulCategoryUpdated.
|
|
11887
|
+
* @exports IContentfulCategoryUpdated
|
|
11888
|
+
* @interface IContentfulCategoryUpdated
|
|
11889
|
+
* @property {string|null} [name] ContentfulCategoryUpdated name
|
|
11890
|
+
* @property {string|null} [slug] ContentfulCategoryUpdated slug
|
|
11891
|
+
* @property {Object.<string,contentful.ISlugReference>|null} [topic] ContentfulCategoryUpdated topic
|
|
11892
|
+
* @property {string|null} [type] ContentfulCategoryUpdated type
|
|
11893
|
+
* @property {Array.<contentful.ISlugReference>|null} [content] ContentfulCategoryUpdated content
|
|
11894
|
+
* @property {number|Long|null} [updatedAt] ContentfulCategoryUpdated updatedAt
|
|
11895
|
+
*/
|
|
11896
|
+
|
|
11897
|
+
/**
|
|
11898
|
+
* Constructs a new ContentfulCategoryUpdated.
|
|
11899
|
+
* @exports ContentfulCategoryUpdated
|
|
11900
|
+
* @classdesc Represents a ContentfulCategoryUpdated.
|
|
11901
|
+
* @implements IContentfulCategoryUpdated
|
|
11902
|
+
* @constructor
|
|
11903
|
+
* @param {IContentfulCategoryUpdated=} [properties] Properties to set
|
|
11904
|
+
*/
|
|
11905
|
+
function ContentfulCategoryUpdated(properties) {
|
|
11906
|
+
this.topic = {};
|
|
11907
|
+
this.content = [];
|
|
11908
|
+
if (properties)
|
|
11909
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11910
|
+
if (properties[keys[i]] != null)
|
|
11911
|
+
this[keys[i]] = properties[keys[i]];
|
|
11912
|
+
}
|
|
11913
|
+
|
|
11914
|
+
/**
|
|
11915
|
+
* ContentfulCategoryUpdated name.
|
|
11916
|
+
* @member {string} name
|
|
11917
|
+
* @memberof ContentfulCategoryUpdated
|
|
11918
|
+
* @instance
|
|
11919
|
+
*/
|
|
11920
|
+
ContentfulCategoryUpdated.prototype.name = "";
|
|
11921
|
+
|
|
11922
|
+
/**
|
|
11923
|
+
* ContentfulCategoryUpdated slug.
|
|
11924
|
+
* @member {string} slug
|
|
11925
|
+
* @memberof ContentfulCategoryUpdated
|
|
11926
|
+
* @instance
|
|
11927
|
+
*/
|
|
11928
|
+
ContentfulCategoryUpdated.prototype.slug = "";
|
|
11929
|
+
|
|
11930
|
+
/**
|
|
11931
|
+
* ContentfulCategoryUpdated topic.
|
|
11932
|
+
* @member {Object.<string,contentful.ISlugReference>} topic
|
|
11933
|
+
* @memberof ContentfulCategoryUpdated
|
|
11934
|
+
* @instance
|
|
11935
|
+
*/
|
|
11936
|
+
ContentfulCategoryUpdated.prototype.topic = $util.emptyObject;
|
|
11937
|
+
|
|
11938
|
+
/**
|
|
11939
|
+
* ContentfulCategoryUpdated type.
|
|
11940
|
+
* @member {string} type
|
|
11941
|
+
* @memberof ContentfulCategoryUpdated
|
|
11942
|
+
* @instance
|
|
11943
|
+
*/
|
|
11944
|
+
ContentfulCategoryUpdated.prototype.type = "";
|
|
11945
|
+
|
|
11946
|
+
/**
|
|
11947
|
+
* ContentfulCategoryUpdated content.
|
|
11948
|
+
* @member {Array.<contentful.ISlugReference>} content
|
|
11949
|
+
* @memberof ContentfulCategoryUpdated
|
|
11950
|
+
* @instance
|
|
11951
|
+
*/
|
|
11952
|
+
ContentfulCategoryUpdated.prototype.content = $util.emptyArray;
|
|
11953
|
+
|
|
11954
|
+
/**
|
|
11955
|
+
* ContentfulCategoryUpdated updatedAt.
|
|
11956
|
+
* @member {number|Long} updatedAt
|
|
11957
|
+
* @memberof ContentfulCategoryUpdated
|
|
11958
|
+
* @instance
|
|
11959
|
+
*/
|
|
11960
|
+
ContentfulCategoryUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11961
|
+
|
|
11962
|
+
/**
|
|
11963
|
+
* Creates a new ContentfulCategoryUpdated instance using the specified properties.
|
|
11964
|
+
* @function create
|
|
11965
|
+
* @memberof ContentfulCategoryUpdated
|
|
11966
|
+
* @static
|
|
11967
|
+
* @param {IContentfulCategoryUpdated=} [properties] Properties to set
|
|
11968
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated instance
|
|
11969
|
+
*/
|
|
11970
|
+
ContentfulCategoryUpdated.create = function create(properties) {
|
|
11971
|
+
return new ContentfulCategoryUpdated(properties);
|
|
11972
|
+
};
|
|
11973
|
+
|
|
11974
|
+
/**
|
|
11975
|
+
* Encodes the specified ContentfulCategoryUpdated message. Does not implicitly {@link ContentfulCategoryUpdated.verify|verify} messages.
|
|
11976
|
+
* @function encode
|
|
11977
|
+
* @memberof ContentfulCategoryUpdated
|
|
11978
|
+
* @static
|
|
11979
|
+
* @param {IContentfulCategoryUpdated} message ContentfulCategoryUpdated message or plain object to encode
|
|
11980
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11981
|
+
* @returns {$protobuf.Writer} Writer
|
|
11982
|
+
*/
|
|
11983
|
+
ContentfulCategoryUpdated.encode = function encode(message, writer) {
|
|
11984
|
+
if (!writer)
|
|
11985
|
+
writer = $Writer.create();
|
|
11986
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11987
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
11988
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11989
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
11990
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
11991
|
+
for (var keys = Object.keys(message.topic), i = 0; i < keys.length; ++i) {
|
|
11992
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
11993
|
+
$root.contentful.SlugReference.encode(message.topic[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
11994
|
+
}
|
|
11995
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
11996
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
|
|
11997
|
+
if (message.content != null && message.content.length)
|
|
11998
|
+
for (var i = 0; i < message.content.length; ++i)
|
|
11999
|
+
$root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
12000
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
12001
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
|
|
12002
|
+
return writer;
|
|
12003
|
+
};
|
|
12004
|
+
|
|
12005
|
+
/**
|
|
12006
|
+
* Encodes the specified ContentfulCategoryUpdated message, length delimited. Does not implicitly {@link ContentfulCategoryUpdated.verify|verify} messages.
|
|
12007
|
+
* @function encodeDelimited
|
|
12008
|
+
* @memberof ContentfulCategoryUpdated
|
|
12009
|
+
* @static
|
|
12010
|
+
* @param {IContentfulCategoryUpdated} message ContentfulCategoryUpdated message or plain object to encode
|
|
12011
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12012
|
+
* @returns {$protobuf.Writer} Writer
|
|
12013
|
+
*/
|
|
12014
|
+
ContentfulCategoryUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12015
|
+
return this.encode(message, writer).ldelim();
|
|
12016
|
+
};
|
|
12017
|
+
|
|
12018
|
+
/**
|
|
12019
|
+
* Decodes a ContentfulCategoryUpdated message from the specified reader or buffer.
|
|
12020
|
+
* @function decode
|
|
12021
|
+
* @memberof ContentfulCategoryUpdated
|
|
12022
|
+
* @static
|
|
12023
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12024
|
+
* @param {number} [length] Message length if known beforehand
|
|
12025
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated
|
|
12026
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12027
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12028
|
+
*/
|
|
12029
|
+
ContentfulCategoryUpdated.decode = function decode(reader, length) {
|
|
12030
|
+
if (!(reader instanceof $Reader))
|
|
12031
|
+
reader = $Reader.create(reader);
|
|
12032
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryUpdated(), key;
|
|
12033
|
+
while (reader.pos < end) {
|
|
12034
|
+
var tag = reader.uint32();
|
|
12035
|
+
switch (tag >>> 3) {
|
|
12036
|
+
case 1:
|
|
12037
|
+
message.name = reader.string();
|
|
12038
|
+
break;
|
|
12039
|
+
case 2:
|
|
12040
|
+
message.slug = reader.string();
|
|
12041
|
+
break;
|
|
12042
|
+
case 3:
|
|
12043
|
+
reader.skip().pos++;
|
|
12044
|
+
if (message.topic === $util.emptyObject)
|
|
12045
|
+
message.topic = {};
|
|
12046
|
+
key = reader.string();
|
|
12047
|
+
reader.pos++;
|
|
12048
|
+
message.topic[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
12049
|
+
break;
|
|
12050
|
+
case 4:
|
|
12051
|
+
message.type = reader.string();
|
|
12052
|
+
break;
|
|
12053
|
+
case 5:
|
|
12054
|
+
if (!(message.content && message.content.length))
|
|
12055
|
+
message.content = [];
|
|
12056
|
+
message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
12057
|
+
break;
|
|
12058
|
+
case 6:
|
|
12059
|
+
message.updatedAt = reader.uint64();
|
|
12060
|
+
break;
|
|
12061
|
+
default:
|
|
12062
|
+
reader.skipType(tag & 7);
|
|
12063
|
+
break;
|
|
12064
|
+
}
|
|
12065
|
+
}
|
|
12066
|
+
return message;
|
|
12067
|
+
};
|
|
12068
|
+
|
|
12069
|
+
/**
|
|
12070
|
+
* Decodes a ContentfulCategoryUpdated message from the specified reader or buffer, length delimited.
|
|
12071
|
+
* @function decodeDelimited
|
|
12072
|
+
* @memberof ContentfulCategoryUpdated
|
|
12073
|
+
* @static
|
|
12074
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12075
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated
|
|
12076
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12077
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12078
|
+
*/
|
|
12079
|
+
ContentfulCategoryUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
12080
|
+
if (!(reader instanceof $Reader))
|
|
12081
|
+
reader = new $Reader(reader);
|
|
12082
|
+
return this.decode(reader, reader.uint32());
|
|
12083
|
+
};
|
|
12084
|
+
|
|
12085
|
+
/**
|
|
12086
|
+
* Verifies a ContentfulCategoryUpdated message.
|
|
12087
|
+
* @function verify
|
|
12088
|
+
* @memberof ContentfulCategoryUpdated
|
|
12089
|
+
* @static
|
|
12090
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12091
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12092
|
+
*/
|
|
12093
|
+
ContentfulCategoryUpdated.verify = function verify(message) {
|
|
12094
|
+
if (typeof message !== "object" || message === null)
|
|
12095
|
+
return "object expected";
|
|
12096
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
12097
|
+
if (!$util.isString(message.name))
|
|
12098
|
+
return "name: string expected";
|
|
12099
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12100
|
+
if (!$util.isString(message.slug))
|
|
12101
|
+
return "slug: string expected";
|
|
12102
|
+
if (message.topic != null && message.hasOwnProperty("topic")) {
|
|
12103
|
+
if (!$util.isObject(message.topic))
|
|
12104
|
+
return "topic: object expected";
|
|
12105
|
+
var key = Object.keys(message.topic);
|
|
12106
|
+
for (var i = 0; i < key.length; ++i) {
|
|
12107
|
+
var error = $root.contentful.SlugReference.verify(message.topic[key[i]]);
|
|
12108
|
+
if (error)
|
|
12109
|
+
return "topic." + error;
|
|
12110
|
+
}
|
|
12111
|
+
}
|
|
12112
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
12113
|
+
if (!$util.isString(message.type))
|
|
12114
|
+
return "type: string expected";
|
|
12115
|
+
if (message.content != null && message.hasOwnProperty("content")) {
|
|
12116
|
+
if (!Array.isArray(message.content))
|
|
12117
|
+
return "content: array expected";
|
|
12118
|
+
for (var i = 0; i < message.content.length; ++i) {
|
|
12119
|
+
var error = $root.contentful.SlugReference.verify(message.content[i]);
|
|
12120
|
+
if (error)
|
|
12121
|
+
return "content." + error;
|
|
12122
|
+
}
|
|
12123
|
+
}
|
|
12124
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
12125
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
12126
|
+
return "updatedAt: integer|Long expected";
|
|
12127
|
+
return null;
|
|
12128
|
+
};
|
|
12129
|
+
|
|
12130
|
+
/**
|
|
12131
|
+
* Creates a ContentfulCategoryUpdated message from a plain object. Also converts values to their respective internal types.
|
|
12132
|
+
* @function fromObject
|
|
12133
|
+
* @memberof ContentfulCategoryUpdated
|
|
12134
|
+
* @static
|
|
12135
|
+
* @param {Object.<string,*>} object Plain object
|
|
12136
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated
|
|
12137
|
+
*/
|
|
12138
|
+
ContentfulCategoryUpdated.fromObject = function fromObject(object) {
|
|
12139
|
+
if (object instanceof $root.ContentfulCategoryUpdated)
|
|
12140
|
+
return object;
|
|
12141
|
+
var message = new $root.ContentfulCategoryUpdated();
|
|
12142
|
+
if (object.name != null)
|
|
12143
|
+
message.name = String(object.name);
|
|
12144
|
+
if (object.slug != null)
|
|
12145
|
+
message.slug = String(object.slug);
|
|
12146
|
+
if (object.topic) {
|
|
12147
|
+
if (typeof object.topic !== "object")
|
|
12148
|
+
throw TypeError(".ContentfulCategoryUpdated.topic: object expected");
|
|
12149
|
+
message.topic = {};
|
|
12150
|
+
for (var keys = Object.keys(object.topic), i = 0; i < keys.length; ++i) {
|
|
12151
|
+
if (typeof object.topic[keys[i]] !== "object")
|
|
12152
|
+
throw TypeError(".ContentfulCategoryUpdated.topic: object expected");
|
|
12153
|
+
message.topic[keys[i]] = $root.contentful.SlugReference.fromObject(object.topic[keys[i]]);
|
|
12154
|
+
}
|
|
12155
|
+
}
|
|
12156
|
+
if (object.type != null)
|
|
12157
|
+
message.type = String(object.type);
|
|
12158
|
+
if (object.content) {
|
|
12159
|
+
if (!Array.isArray(object.content))
|
|
12160
|
+
throw TypeError(".ContentfulCategoryUpdated.content: array expected");
|
|
12161
|
+
message.content = [];
|
|
12162
|
+
for (var i = 0; i < object.content.length; ++i) {
|
|
12163
|
+
if (typeof object.content[i] !== "object")
|
|
12164
|
+
throw TypeError(".ContentfulCategoryUpdated.content: object expected");
|
|
12165
|
+
message.content[i] = $root.contentful.SlugReference.fromObject(object.content[i]);
|
|
12166
|
+
}
|
|
12167
|
+
}
|
|
12168
|
+
if (object.updatedAt != null)
|
|
12169
|
+
if ($util.Long)
|
|
12170
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
12171
|
+
else if (typeof object.updatedAt === "string")
|
|
12172
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
12173
|
+
else if (typeof object.updatedAt === "number")
|
|
12174
|
+
message.updatedAt = object.updatedAt;
|
|
12175
|
+
else if (typeof object.updatedAt === "object")
|
|
12176
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
12177
|
+
return message;
|
|
12178
|
+
};
|
|
12179
|
+
|
|
12180
|
+
/**
|
|
12181
|
+
* Creates a plain object from a ContentfulCategoryUpdated message. Also converts values to other types if specified.
|
|
12182
|
+
* @function toObject
|
|
12183
|
+
* @memberof ContentfulCategoryUpdated
|
|
12184
|
+
* @static
|
|
12185
|
+
* @param {ContentfulCategoryUpdated} message ContentfulCategoryUpdated
|
|
12186
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12187
|
+
* @returns {Object.<string,*>} Plain object
|
|
12188
|
+
*/
|
|
12189
|
+
ContentfulCategoryUpdated.toObject = function toObject(message, options) {
|
|
12190
|
+
if (!options)
|
|
12191
|
+
options = {};
|
|
12192
|
+
var object = {};
|
|
12193
|
+
if (options.arrays || options.defaults)
|
|
12194
|
+
object.content = [];
|
|
12195
|
+
if (options.objects || options.defaults)
|
|
12196
|
+
object.topic = {};
|
|
12197
|
+
if (options.defaults) {
|
|
12198
|
+
object.name = "";
|
|
12199
|
+
object.slug = "";
|
|
12200
|
+
object.type = "";
|
|
12201
|
+
if ($util.Long) {
|
|
12202
|
+
var long = new $util.Long(0, 0, true);
|
|
12203
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12204
|
+
} else
|
|
12205
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
12206
|
+
}
|
|
12207
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
12208
|
+
object.name = message.name;
|
|
12209
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12210
|
+
object.slug = message.slug;
|
|
12211
|
+
var keys2;
|
|
12212
|
+
if (message.topic && (keys2 = Object.keys(message.topic)).length) {
|
|
12213
|
+
object.topic = {};
|
|
12214
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12215
|
+
object.topic[keys2[j]] = $root.contentful.SlugReference.toObject(message.topic[keys2[j]], options);
|
|
12216
|
+
}
|
|
12217
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
12218
|
+
object.type = message.type;
|
|
12219
|
+
if (message.content && message.content.length) {
|
|
12220
|
+
object.content = [];
|
|
12221
|
+
for (var j = 0; j < message.content.length; ++j)
|
|
12222
|
+
object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
|
|
12223
|
+
}
|
|
12224
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
12225
|
+
if (typeof message.updatedAt === "number")
|
|
12226
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
12227
|
+
else
|
|
12228
|
+
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;
|
|
12229
|
+
return object;
|
|
12230
|
+
};
|
|
12231
|
+
|
|
12232
|
+
/**
|
|
12233
|
+
* Converts this ContentfulCategoryUpdated to JSON.
|
|
12234
|
+
* @function toJSON
|
|
12235
|
+
* @memberof ContentfulCategoryUpdated
|
|
12236
|
+
* @instance
|
|
12237
|
+
* @returns {Object.<string,*>} JSON object
|
|
12238
|
+
*/
|
|
12239
|
+
ContentfulCategoryUpdated.prototype.toJSON = function toJSON() {
|
|
12240
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12241
|
+
};
|
|
12242
|
+
|
|
12243
|
+
return ContentfulCategoryUpdated;
|
|
12244
|
+
})();
|
|
12245
|
+
|
|
12246
|
+
$root.ContentfulCategoryDeleted = (function() {
|
|
12247
|
+
|
|
12248
|
+
/**
|
|
12249
|
+
* Properties of a ContentfulCategoryDeleted.
|
|
12250
|
+
* @exports IContentfulCategoryDeleted
|
|
12251
|
+
* @interface IContentfulCategoryDeleted
|
|
12252
|
+
* @property {string|null} [slug] ContentfulCategoryDeleted slug
|
|
12253
|
+
* @property {number|Long|null} [deletedAt] ContentfulCategoryDeleted deletedAt
|
|
12254
|
+
*/
|
|
12255
|
+
|
|
12256
|
+
/**
|
|
12257
|
+
* Constructs a new ContentfulCategoryDeleted.
|
|
12258
|
+
* @exports ContentfulCategoryDeleted
|
|
12259
|
+
* @classdesc Represents a ContentfulCategoryDeleted.
|
|
12260
|
+
* @implements IContentfulCategoryDeleted
|
|
12261
|
+
* @constructor
|
|
12262
|
+
* @param {IContentfulCategoryDeleted=} [properties] Properties to set
|
|
12263
|
+
*/
|
|
12264
|
+
function ContentfulCategoryDeleted(properties) {
|
|
12265
|
+
if (properties)
|
|
12266
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12267
|
+
if (properties[keys[i]] != null)
|
|
12268
|
+
this[keys[i]] = properties[keys[i]];
|
|
12269
|
+
}
|
|
12270
|
+
|
|
12271
|
+
/**
|
|
12272
|
+
* ContentfulCategoryDeleted slug.
|
|
12273
|
+
* @member {string} slug
|
|
12274
|
+
* @memberof ContentfulCategoryDeleted
|
|
12275
|
+
* @instance
|
|
12276
|
+
*/
|
|
12277
|
+
ContentfulCategoryDeleted.prototype.slug = "";
|
|
12278
|
+
|
|
12279
|
+
/**
|
|
12280
|
+
* ContentfulCategoryDeleted deletedAt.
|
|
12281
|
+
* @member {number|Long} deletedAt
|
|
12282
|
+
* @memberof ContentfulCategoryDeleted
|
|
12283
|
+
* @instance
|
|
12284
|
+
*/
|
|
12285
|
+
ContentfulCategoryDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
12286
|
+
|
|
12287
|
+
/**
|
|
12288
|
+
* Creates a new ContentfulCategoryDeleted instance using the specified properties.
|
|
12289
|
+
* @function create
|
|
12290
|
+
* @memberof ContentfulCategoryDeleted
|
|
12291
|
+
* @static
|
|
12292
|
+
* @param {IContentfulCategoryDeleted=} [properties] Properties to set
|
|
12293
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted instance
|
|
12294
|
+
*/
|
|
12295
|
+
ContentfulCategoryDeleted.create = function create(properties) {
|
|
12296
|
+
return new ContentfulCategoryDeleted(properties);
|
|
12297
|
+
};
|
|
12298
|
+
|
|
12299
|
+
/**
|
|
12300
|
+
* Encodes the specified ContentfulCategoryDeleted message. Does not implicitly {@link ContentfulCategoryDeleted.verify|verify} messages.
|
|
12301
|
+
* @function encode
|
|
12302
|
+
* @memberof ContentfulCategoryDeleted
|
|
12303
|
+
* @static
|
|
12304
|
+
* @param {IContentfulCategoryDeleted} message ContentfulCategoryDeleted message or plain object to encode
|
|
12305
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12306
|
+
* @returns {$protobuf.Writer} Writer
|
|
12307
|
+
*/
|
|
12308
|
+
ContentfulCategoryDeleted.encode = function encode(message, writer) {
|
|
12309
|
+
if (!writer)
|
|
12310
|
+
writer = $Writer.create();
|
|
12311
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12312
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
12313
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12314
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
12315
|
+
return writer;
|
|
12316
|
+
};
|
|
12317
|
+
|
|
12318
|
+
/**
|
|
12319
|
+
* Encodes the specified ContentfulCategoryDeleted message, length delimited. Does not implicitly {@link ContentfulCategoryDeleted.verify|verify} messages.
|
|
12320
|
+
* @function encodeDelimited
|
|
12321
|
+
* @memberof ContentfulCategoryDeleted
|
|
12322
|
+
* @static
|
|
12323
|
+
* @param {IContentfulCategoryDeleted} message ContentfulCategoryDeleted message or plain object to encode
|
|
12324
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12325
|
+
* @returns {$protobuf.Writer} Writer
|
|
12326
|
+
*/
|
|
12327
|
+
ContentfulCategoryDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12328
|
+
return this.encode(message, writer).ldelim();
|
|
12329
|
+
};
|
|
12330
|
+
|
|
12331
|
+
/**
|
|
12332
|
+
* Decodes a ContentfulCategoryDeleted message from the specified reader or buffer.
|
|
12333
|
+
* @function decode
|
|
12334
|
+
* @memberof ContentfulCategoryDeleted
|
|
12335
|
+
* @static
|
|
12336
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12337
|
+
* @param {number} [length] Message length if known beforehand
|
|
12338
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted
|
|
12339
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12340
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12341
|
+
*/
|
|
12342
|
+
ContentfulCategoryDeleted.decode = function decode(reader, length) {
|
|
12343
|
+
if (!(reader instanceof $Reader))
|
|
12344
|
+
reader = $Reader.create(reader);
|
|
12345
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryDeleted();
|
|
12346
|
+
while (reader.pos < end) {
|
|
12347
|
+
var tag = reader.uint32();
|
|
12348
|
+
switch (tag >>> 3) {
|
|
12349
|
+
case 1:
|
|
12350
|
+
message.slug = reader.string();
|
|
12351
|
+
break;
|
|
12352
|
+
case 2:
|
|
12353
|
+
message.deletedAt = reader.uint64();
|
|
12354
|
+
break;
|
|
12355
|
+
default:
|
|
12356
|
+
reader.skipType(tag & 7);
|
|
12357
|
+
break;
|
|
12358
|
+
}
|
|
12359
|
+
}
|
|
12360
|
+
return message;
|
|
12361
|
+
};
|
|
12362
|
+
|
|
12363
|
+
/**
|
|
12364
|
+
* Decodes a ContentfulCategoryDeleted message from the specified reader or buffer, length delimited.
|
|
12365
|
+
* @function decodeDelimited
|
|
12366
|
+
* @memberof ContentfulCategoryDeleted
|
|
12367
|
+
* @static
|
|
12368
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12369
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted
|
|
12370
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12371
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12372
|
+
*/
|
|
12373
|
+
ContentfulCategoryDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
12374
|
+
if (!(reader instanceof $Reader))
|
|
12375
|
+
reader = new $Reader(reader);
|
|
12376
|
+
return this.decode(reader, reader.uint32());
|
|
12377
|
+
};
|
|
12378
|
+
|
|
12379
|
+
/**
|
|
12380
|
+
* Verifies a ContentfulCategoryDeleted message.
|
|
12381
|
+
* @function verify
|
|
12382
|
+
* @memberof ContentfulCategoryDeleted
|
|
12383
|
+
* @static
|
|
12384
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12385
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12386
|
+
*/
|
|
12387
|
+
ContentfulCategoryDeleted.verify = function verify(message) {
|
|
12388
|
+
if (typeof message !== "object" || message === null)
|
|
12389
|
+
return "object expected";
|
|
12390
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12391
|
+
if (!$util.isString(message.slug))
|
|
12392
|
+
return "slug: string expected";
|
|
12393
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12394
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
12395
|
+
return "deletedAt: integer|Long expected";
|
|
12396
|
+
return null;
|
|
12397
|
+
};
|
|
12398
|
+
|
|
12399
|
+
/**
|
|
12400
|
+
* Creates a ContentfulCategoryDeleted message from a plain object. Also converts values to their respective internal types.
|
|
12401
|
+
* @function fromObject
|
|
12402
|
+
* @memberof ContentfulCategoryDeleted
|
|
12403
|
+
* @static
|
|
12404
|
+
* @param {Object.<string,*>} object Plain object
|
|
12405
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted
|
|
12406
|
+
*/
|
|
12407
|
+
ContentfulCategoryDeleted.fromObject = function fromObject(object) {
|
|
12408
|
+
if (object instanceof $root.ContentfulCategoryDeleted)
|
|
12409
|
+
return object;
|
|
12410
|
+
var message = new $root.ContentfulCategoryDeleted();
|
|
12411
|
+
if (object.slug != null)
|
|
12412
|
+
message.slug = String(object.slug);
|
|
12413
|
+
if (object.deletedAt != null)
|
|
12414
|
+
if ($util.Long)
|
|
12415
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
12416
|
+
else if (typeof object.deletedAt === "string")
|
|
12417
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
12418
|
+
else if (typeof object.deletedAt === "number")
|
|
12419
|
+
message.deletedAt = object.deletedAt;
|
|
12420
|
+
else if (typeof object.deletedAt === "object")
|
|
12421
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
12422
|
+
return message;
|
|
12423
|
+
};
|
|
12424
|
+
|
|
12425
|
+
/**
|
|
12426
|
+
* Creates a plain object from a ContentfulCategoryDeleted message. Also converts values to other types if specified.
|
|
12427
|
+
* @function toObject
|
|
12428
|
+
* @memberof ContentfulCategoryDeleted
|
|
12429
|
+
* @static
|
|
12430
|
+
* @param {ContentfulCategoryDeleted} message ContentfulCategoryDeleted
|
|
12431
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12432
|
+
* @returns {Object.<string,*>} Plain object
|
|
12433
|
+
*/
|
|
12434
|
+
ContentfulCategoryDeleted.toObject = function toObject(message, options) {
|
|
12435
|
+
if (!options)
|
|
12436
|
+
options = {};
|
|
12437
|
+
var object = {};
|
|
12438
|
+
if (options.defaults) {
|
|
12439
|
+
object.slug = "";
|
|
12440
|
+
if ($util.Long) {
|
|
12441
|
+
var long = new $util.Long(0, 0, true);
|
|
12442
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12443
|
+
} else
|
|
12444
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
12445
|
+
}
|
|
12446
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12447
|
+
object.slug = message.slug;
|
|
12448
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
12449
|
+
if (typeof message.deletedAt === "number")
|
|
12450
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
12451
|
+
else
|
|
12452
|
+
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;
|
|
12453
|
+
return object;
|
|
12454
|
+
};
|
|
12455
|
+
|
|
12456
|
+
/**
|
|
12457
|
+
* Converts this ContentfulCategoryDeleted to JSON.
|
|
12458
|
+
* @function toJSON
|
|
12459
|
+
* @memberof ContentfulCategoryDeleted
|
|
12460
|
+
* @instance
|
|
12461
|
+
* @returns {Object.<string,*>} JSON object
|
|
12462
|
+
*/
|
|
12463
|
+
ContentfulCategoryDeleted.prototype.toJSON = function toJSON() {
|
|
12464
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12465
|
+
};
|
|
12466
|
+
|
|
12467
|
+
return ContentfulCategoryDeleted;
|
|
12468
|
+
})();
|
|
12469
|
+
|
|
11520
12470
|
$root.ContentfulContentModelCreated = (function() {
|
|
11521
12471
|
|
|
11522
12472
|
/**
|
package/package.json
CHANGED