@headspace/protos-events 1.173.0 → 1.175.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
@@ -9900,6 +9900,330 @@ export class ContentfulFeaturedContentDeleted implements IContentfulFeaturedCont
9900
9900
  public toJSON(): { [k: string]: any };
9901
9901
  }
9902
9902
 
9903
+ /** Properties of a ContentfulAccessRuleCreated. */
9904
+ export interface IContentfulAccessRuleCreated {
9905
+
9906
+ /** ContentfulAccessRuleCreated name */
9907
+ name?: (string|null);
9908
+
9909
+ /** ContentfulAccessRuleCreated slug */
9910
+ slug?: (string|null);
9911
+
9912
+ /** ContentfulAccessRuleCreated accessGroup */
9913
+ accessGroup?: (contentful.ISlugReference|null);
9914
+
9915
+ /** ContentfulAccessRuleCreated isHidden */
9916
+ isHidden?: (boolean|null);
9917
+
9918
+ /** ContentfulAccessRuleCreated createdAt */
9919
+ createdAt?: (number|Long|null);
9920
+ }
9921
+
9922
+ /** Represents a ContentfulAccessRuleCreated. */
9923
+ export class ContentfulAccessRuleCreated implements IContentfulAccessRuleCreated {
9924
+
9925
+ /**
9926
+ * Constructs a new ContentfulAccessRuleCreated.
9927
+ * @param [properties] Properties to set
9928
+ */
9929
+ constructor(properties?: IContentfulAccessRuleCreated);
9930
+
9931
+ /** ContentfulAccessRuleCreated name. */
9932
+ public name: string;
9933
+
9934
+ /** ContentfulAccessRuleCreated slug. */
9935
+ public slug: string;
9936
+
9937
+ /** ContentfulAccessRuleCreated accessGroup. */
9938
+ public accessGroup?: (contentful.ISlugReference|null);
9939
+
9940
+ /** ContentfulAccessRuleCreated isHidden. */
9941
+ public isHidden: boolean;
9942
+
9943
+ /** ContentfulAccessRuleCreated createdAt. */
9944
+ public createdAt: (number|Long);
9945
+
9946
+ /**
9947
+ * Creates a new ContentfulAccessRuleCreated instance using the specified properties.
9948
+ * @param [properties] Properties to set
9949
+ * @returns ContentfulAccessRuleCreated instance
9950
+ */
9951
+ public static create(properties?: IContentfulAccessRuleCreated): ContentfulAccessRuleCreated;
9952
+
9953
+ /**
9954
+ * Encodes the specified ContentfulAccessRuleCreated message. Does not implicitly {@link ContentfulAccessRuleCreated.verify|verify} messages.
9955
+ * @param message ContentfulAccessRuleCreated message or plain object to encode
9956
+ * @param [writer] Writer to encode to
9957
+ * @returns Writer
9958
+ */
9959
+ public static encode(message: IContentfulAccessRuleCreated, writer?: $protobuf.Writer): $protobuf.Writer;
9960
+
9961
+ /**
9962
+ * Encodes the specified ContentfulAccessRuleCreated message, length delimited. Does not implicitly {@link ContentfulAccessRuleCreated.verify|verify} messages.
9963
+ * @param message ContentfulAccessRuleCreated message or plain object to encode
9964
+ * @param [writer] Writer to encode to
9965
+ * @returns Writer
9966
+ */
9967
+ public static encodeDelimited(message: IContentfulAccessRuleCreated, writer?: $protobuf.Writer): $protobuf.Writer;
9968
+
9969
+ /**
9970
+ * Decodes a ContentfulAccessRuleCreated message from the specified reader or buffer.
9971
+ * @param reader Reader or buffer to decode from
9972
+ * @param [length] Message length if known beforehand
9973
+ * @returns ContentfulAccessRuleCreated
9974
+ * @throws {Error} If the payload is not a reader or valid buffer
9975
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9976
+ */
9977
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulAccessRuleCreated;
9978
+
9979
+ /**
9980
+ * Decodes a ContentfulAccessRuleCreated message from the specified reader or buffer, length delimited.
9981
+ * @param reader Reader or buffer to decode from
9982
+ * @returns ContentfulAccessRuleCreated
9983
+ * @throws {Error} If the payload is not a reader or valid buffer
9984
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9985
+ */
9986
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulAccessRuleCreated;
9987
+
9988
+ /**
9989
+ * Verifies a ContentfulAccessRuleCreated message.
9990
+ * @param message Plain object to verify
9991
+ * @returns `null` if valid, otherwise the reason why it is not
9992
+ */
9993
+ public static verify(message: { [k: string]: any }): (string|null);
9994
+
9995
+ /**
9996
+ * Creates a ContentfulAccessRuleCreated message from a plain object. Also converts values to their respective internal types.
9997
+ * @param object Plain object
9998
+ * @returns ContentfulAccessRuleCreated
9999
+ */
10000
+ public static fromObject(object: { [k: string]: any }): ContentfulAccessRuleCreated;
10001
+
10002
+ /**
10003
+ * Creates a plain object from a ContentfulAccessRuleCreated message. Also converts values to other types if specified.
10004
+ * @param message ContentfulAccessRuleCreated
10005
+ * @param [options] Conversion options
10006
+ * @returns Plain object
10007
+ */
10008
+ public static toObject(message: ContentfulAccessRuleCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
10009
+
10010
+ /**
10011
+ * Converts this ContentfulAccessRuleCreated to JSON.
10012
+ * @returns JSON object
10013
+ */
10014
+ public toJSON(): { [k: string]: any };
10015
+ }
10016
+
10017
+ /** Properties of a ContentfulAccessRuleUpdated. */
10018
+ export interface IContentfulAccessRuleUpdated {
10019
+
10020
+ /** ContentfulAccessRuleUpdated name */
10021
+ name?: (string|null);
10022
+
10023
+ /** ContentfulAccessRuleUpdated slug */
10024
+ slug?: (string|null);
10025
+
10026
+ /** ContentfulAccessRuleUpdated accessGroup */
10027
+ accessGroup?: (contentful.ISlugReference|null);
10028
+
10029
+ /** ContentfulAccessRuleUpdated isHidden */
10030
+ isHidden?: (boolean|null);
10031
+
10032
+ /** ContentfulAccessRuleUpdated updatedAt */
10033
+ updatedAt?: (number|Long|null);
10034
+ }
10035
+
10036
+ /** Represents a ContentfulAccessRuleUpdated. */
10037
+ export class ContentfulAccessRuleUpdated implements IContentfulAccessRuleUpdated {
10038
+
10039
+ /**
10040
+ * Constructs a new ContentfulAccessRuleUpdated.
10041
+ * @param [properties] Properties to set
10042
+ */
10043
+ constructor(properties?: IContentfulAccessRuleUpdated);
10044
+
10045
+ /** ContentfulAccessRuleUpdated name. */
10046
+ public name: string;
10047
+
10048
+ /** ContentfulAccessRuleUpdated slug. */
10049
+ public slug: string;
10050
+
10051
+ /** ContentfulAccessRuleUpdated accessGroup. */
10052
+ public accessGroup?: (contentful.ISlugReference|null);
10053
+
10054
+ /** ContentfulAccessRuleUpdated isHidden. */
10055
+ public isHidden: boolean;
10056
+
10057
+ /** ContentfulAccessRuleUpdated updatedAt. */
10058
+ public updatedAt: (number|Long);
10059
+
10060
+ /**
10061
+ * Creates a new ContentfulAccessRuleUpdated instance using the specified properties.
10062
+ * @param [properties] Properties to set
10063
+ * @returns ContentfulAccessRuleUpdated instance
10064
+ */
10065
+ public static create(properties?: IContentfulAccessRuleUpdated): ContentfulAccessRuleUpdated;
10066
+
10067
+ /**
10068
+ * Encodes the specified ContentfulAccessRuleUpdated message. Does not implicitly {@link ContentfulAccessRuleUpdated.verify|verify} messages.
10069
+ * @param message ContentfulAccessRuleUpdated message or plain object to encode
10070
+ * @param [writer] Writer to encode to
10071
+ * @returns Writer
10072
+ */
10073
+ public static encode(message: IContentfulAccessRuleUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
10074
+
10075
+ /**
10076
+ * Encodes the specified ContentfulAccessRuleUpdated message, length delimited. Does not implicitly {@link ContentfulAccessRuleUpdated.verify|verify} messages.
10077
+ * @param message ContentfulAccessRuleUpdated message or plain object to encode
10078
+ * @param [writer] Writer to encode to
10079
+ * @returns Writer
10080
+ */
10081
+ public static encodeDelimited(message: IContentfulAccessRuleUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
10082
+
10083
+ /**
10084
+ * Decodes a ContentfulAccessRuleUpdated message from the specified reader or buffer.
10085
+ * @param reader Reader or buffer to decode from
10086
+ * @param [length] Message length if known beforehand
10087
+ * @returns ContentfulAccessRuleUpdated
10088
+ * @throws {Error} If the payload is not a reader or valid buffer
10089
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10090
+ */
10091
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulAccessRuleUpdated;
10092
+
10093
+ /**
10094
+ * Decodes a ContentfulAccessRuleUpdated message from the specified reader or buffer, length delimited.
10095
+ * @param reader Reader or buffer to decode from
10096
+ * @returns ContentfulAccessRuleUpdated
10097
+ * @throws {Error} If the payload is not a reader or valid buffer
10098
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10099
+ */
10100
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulAccessRuleUpdated;
10101
+
10102
+ /**
10103
+ * Verifies a ContentfulAccessRuleUpdated message.
10104
+ * @param message Plain object to verify
10105
+ * @returns `null` if valid, otherwise the reason why it is not
10106
+ */
10107
+ public static verify(message: { [k: string]: any }): (string|null);
10108
+
10109
+ /**
10110
+ * Creates a ContentfulAccessRuleUpdated message from a plain object. Also converts values to their respective internal types.
10111
+ * @param object Plain object
10112
+ * @returns ContentfulAccessRuleUpdated
10113
+ */
10114
+ public static fromObject(object: { [k: string]: any }): ContentfulAccessRuleUpdated;
10115
+
10116
+ /**
10117
+ * Creates a plain object from a ContentfulAccessRuleUpdated message. Also converts values to other types if specified.
10118
+ * @param message ContentfulAccessRuleUpdated
10119
+ * @param [options] Conversion options
10120
+ * @returns Plain object
10121
+ */
10122
+ public static toObject(message: ContentfulAccessRuleUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
10123
+
10124
+ /**
10125
+ * Converts this ContentfulAccessRuleUpdated to JSON.
10126
+ * @returns JSON object
10127
+ */
10128
+ public toJSON(): { [k: string]: any };
10129
+ }
10130
+
10131
+ /** Properties of a ContentfulAccessRuleDeleted. */
10132
+ export interface IContentfulAccessRuleDeleted {
10133
+
10134
+ /** ContentfulAccessRuleDeleted slug */
10135
+ slug?: (string|null);
10136
+
10137
+ /** ContentfulAccessRuleDeleted deletedAt */
10138
+ deletedAt?: (number|Long|null);
10139
+ }
10140
+
10141
+ /** Represents a ContentfulAccessRuleDeleted. */
10142
+ export class ContentfulAccessRuleDeleted implements IContentfulAccessRuleDeleted {
10143
+
10144
+ /**
10145
+ * Constructs a new ContentfulAccessRuleDeleted.
10146
+ * @param [properties] Properties to set
10147
+ */
10148
+ constructor(properties?: IContentfulAccessRuleDeleted);
10149
+
10150
+ /** ContentfulAccessRuleDeleted slug. */
10151
+ public slug: string;
10152
+
10153
+ /** ContentfulAccessRuleDeleted deletedAt. */
10154
+ public deletedAt: (number|Long);
10155
+
10156
+ /**
10157
+ * Creates a new ContentfulAccessRuleDeleted instance using the specified properties.
10158
+ * @param [properties] Properties to set
10159
+ * @returns ContentfulAccessRuleDeleted instance
10160
+ */
10161
+ public static create(properties?: IContentfulAccessRuleDeleted): ContentfulAccessRuleDeleted;
10162
+
10163
+ /**
10164
+ * Encodes the specified ContentfulAccessRuleDeleted message. Does not implicitly {@link ContentfulAccessRuleDeleted.verify|verify} messages.
10165
+ * @param message ContentfulAccessRuleDeleted message or plain object to encode
10166
+ * @param [writer] Writer to encode to
10167
+ * @returns Writer
10168
+ */
10169
+ public static encode(message: IContentfulAccessRuleDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
10170
+
10171
+ /**
10172
+ * Encodes the specified ContentfulAccessRuleDeleted message, length delimited. Does not implicitly {@link ContentfulAccessRuleDeleted.verify|verify} messages.
10173
+ * @param message ContentfulAccessRuleDeleted message or plain object to encode
10174
+ * @param [writer] Writer to encode to
10175
+ * @returns Writer
10176
+ */
10177
+ public static encodeDelimited(message: IContentfulAccessRuleDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
10178
+
10179
+ /**
10180
+ * Decodes a ContentfulAccessRuleDeleted message from the specified reader or buffer.
10181
+ * @param reader Reader or buffer to decode from
10182
+ * @param [length] Message length if known beforehand
10183
+ * @returns ContentfulAccessRuleDeleted
10184
+ * @throws {Error} If the payload is not a reader or valid buffer
10185
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10186
+ */
10187
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulAccessRuleDeleted;
10188
+
10189
+ /**
10190
+ * Decodes a ContentfulAccessRuleDeleted message from the specified reader or buffer, length delimited.
10191
+ * @param reader Reader or buffer to decode from
10192
+ * @returns ContentfulAccessRuleDeleted
10193
+ * @throws {Error} If the payload is not a reader or valid buffer
10194
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10195
+ */
10196
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulAccessRuleDeleted;
10197
+
10198
+ /**
10199
+ * Verifies a ContentfulAccessRuleDeleted message.
10200
+ * @param message Plain object to verify
10201
+ * @returns `null` if valid, otherwise the reason why it is not
10202
+ */
10203
+ public static verify(message: { [k: string]: any }): (string|null);
10204
+
10205
+ /**
10206
+ * Creates a ContentfulAccessRuleDeleted message from a plain object. Also converts values to their respective internal types.
10207
+ * @param object Plain object
10208
+ * @returns ContentfulAccessRuleDeleted
10209
+ */
10210
+ public static fromObject(object: { [k: string]: any }): ContentfulAccessRuleDeleted;
10211
+
10212
+ /**
10213
+ * Creates a plain object from a ContentfulAccessRuleDeleted message. Also converts values to other types if specified.
10214
+ * @param message ContentfulAccessRuleDeleted
10215
+ * @param [options] Conversion options
10216
+ * @returns Plain object
10217
+ */
10218
+ public static toObject(message: ContentfulAccessRuleDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
10219
+
10220
+ /**
10221
+ * Converts this ContentfulAccessRuleDeleted to JSON.
10222
+ * @returns JSON object
10223
+ */
10224
+ public toJSON(): { [k: string]: any };
10225
+ }
10226
+
9903
10227
  /** Properties of a ContentfulContentModelCreated. */
9904
10228
  export interface IContentfulContentModelCreated {
9905
10229
 
package/lib/index.js CHANGED
@@ -27388,6 +27388,820 @@ $root.ContentfulFeaturedContentDeleted = (function() {
27388
27388
  return ContentfulFeaturedContentDeleted;
27389
27389
  })();
27390
27390
 
27391
+ $root.ContentfulAccessRuleCreated = (function() {
27392
+
27393
+ /**
27394
+ * Properties of a ContentfulAccessRuleCreated.
27395
+ * @exports IContentfulAccessRuleCreated
27396
+ * @interface IContentfulAccessRuleCreated
27397
+ * @property {string|null} [name] ContentfulAccessRuleCreated name
27398
+ * @property {string|null} [slug] ContentfulAccessRuleCreated slug
27399
+ * @property {contentful.ISlugReference|null} [accessGroup] ContentfulAccessRuleCreated accessGroup
27400
+ * @property {boolean|null} [isHidden] ContentfulAccessRuleCreated isHidden
27401
+ * @property {number|Long|null} [createdAt] ContentfulAccessRuleCreated createdAt
27402
+ */
27403
+
27404
+ /**
27405
+ * Constructs a new ContentfulAccessRuleCreated.
27406
+ * @exports ContentfulAccessRuleCreated
27407
+ * @classdesc Represents a ContentfulAccessRuleCreated.
27408
+ * @implements IContentfulAccessRuleCreated
27409
+ * @constructor
27410
+ * @param {IContentfulAccessRuleCreated=} [properties] Properties to set
27411
+ */
27412
+ function ContentfulAccessRuleCreated(properties) {
27413
+ if (properties)
27414
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27415
+ if (properties[keys[i]] != null)
27416
+ this[keys[i]] = properties[keys[i]];
27417
+ }
27418
+
27419
+ /**
27420
+ * ContentfulAccessRuleCreated name.
27421
+ * @member {string} name
27422
+ * @memberof ContentfulAccessRuleCreated
27423
+ * @instance
27424
+ */
27425
+ ContentfulAccessRuleCreated.prototype.name = "";
27426
+
27427
+ /**
27428
+ * ContentfulAccessRuleCreated slug.
27429
+ * @member {string} slug
27430
+ * @memberof ContentfulAccessRuleCreated
27431
+ * @instance
27432
+ */
27433
+ ContentfulAccessRuleCreated.prototype.slug = "";
27434
+
27435
+ /**
27436
+ * ContentfulAccessRuleCreated accessGroup.
27437
+ * @member {contentful.ISlugReference|null|undefined} accessGroup
27438
+ * @memberof ContentfulAccessRuleCreated
27439
+ * @instance
27440
+ */
27441
+ ContentfulAccessRuleCreated.prototype.accessGroup = null;
27442
+
27443
+ /**
27444
+ * ContentfulAccessRuleCreated isHidden.
27445
+ * @member {boolean} isHidden
27446
+ * @memberof ContentfulAccessRuleCreated
27447
+ * @instance
27448
+ */
27449
+ ContentfulAccessRuleCreated.prototype.isHidden = false;
27450
+
27451
+ /**
27452
+ * ContentfulAccessRuleCreated createdAt.
27453
+ * @member {number|Long} createdAt
27454
+ * @memberof ContentfulAccessRuleCreated
27455
+ * @instance
27456
+ */
27457
+ ContentfulAccessRuleCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
27458
+
27459
+ /**
27460
+ * Creates a new ContentfulAccessRuleCreated instance using the specified properties.
27461
+ * @function create
27462
+ * @memberof ContentfulAccessRuleCreated
27463
+ * @static
27464
+ * @param {IContentfulAccessRuleCreated=} [properties] Properties to set
27465
+ * @returns {ContentfulAccessRuleCreated} ContentfulAccessRuleCreated instance
27466
+ */
27467
+ ContentfulAccessRuleCreated.create = function create(properties) {
27468
+ return new ContentfulAccessRuleCreated(properties);
27469
+ };
27470
+
27471
+ /**
27472
+ * Encodes the specified ContentfulAccessRuleCreated message. Does not implicitly {@link ContentfulAccessRuleCreated.verify|verify} messages.
27473
+ * @function encode
27474
+ * @memberof ContentfulAccessRuleCreated
27475
+ * @static
27476
+ * @param {IContentfulAccessRuleCreated} message ContentfulAccessRuleCreated message or plain object to encode
27477
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27478
+ * @returns {$protobuf.Writer} Writer
27479
+ */
27480
+ ContentfulAccessRuleCreated.encode = function encode(message, writer) {
27481
+ if (!writer)
27482
+ writer = $Writer.create();
27483
+ if (message.name != null && message.hasOwnProperty("name"))
27484
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
27485
+ if (message.slug != null && message.hasOwnProperty("slug"))
27486
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
27487
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
27488
+ $root.contentful.SlugReference.encode(message.accessGroup, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
27489
+ if (message.isHidden != null && message.hasOwnProperty("isHidden"))
27490
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isHidden);
27491
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
27492
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
27493
+ return writer;
27494
+ };
27495
+
27496
+ /**
27497
+ * Encodes the specified ContentfulAccessRuleCreated message, length delimited. Does not implicitly {@link ContentfulAccessRuleCreated.verify|verify} messages.
27498
+ * @function encodeDelimited
27499
+ * @memberof ContentfulAccessRuleCreated
27500
+ * @static
27501
+ * @param {IContentfulAccessRuleCreated} message ContentfulAccessRuleCreated message or plain object to encode
27502
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27503
+ * @returns {$protobuf.Writer} Writer
27504
+ */
27505
+ ContentfulAccessRuleCreated.encodeDelimited = function encodeDelimited(message, writer) {
27506
+ return this.encode(message, writer).ldelim();
27507
+ };
27508
+
27509
+ /**
27510
+ * Decodes a ContentfulAccessRuleCreated message from the specified reader or buffer.
27511
+ * @function decode
27512
+ * @memberof ContentfulAccessRuleCreated
27513
+ * @static
27514
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27515
+ * @param {number} [length] Message length if known beforehand
27516
+ * @returns {ContentfulAccessRuleCreated} ContentfulAccessRuleCreated
27517
+ * @throws {Error} If the payload is not a reader or valid buffer
27518
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27519
+ */
27520
+ ContentfulAccessRuleCreated.decode = function decode(reader, length) {
27521
+ if (!(reader instanceof $Reader))
27522
+ reader = $Reader.create(reader);
27523
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulAccessRuleCreated();
27524
+ while (reader.pos < end) {
27525
+ var tag = reader.uint32();
27526
+ switch (tag >>> 3) {
27527
+ case 1:
27528
+ message.name = reader.string();
27529
+ break;
27530
+ case 2:
27531
+ message.slug = reader.string();
27532
+ break;
27533
+ case 3:
27534
+ message.accessGroup = $root.contentful.SlugReference.decode(reader, reader.uint32());
27535
+ break;
27536
+ case 4:
27537
+ message.isHidden = reader.bool();
27538
+ break;
27539
+ case 5:
27540
+ message.createdAt = reader.uint64();
27541
+ break;
27542
+ default:
27543
+ reader.skipType(tag & 7);
27544
+ break;
27545
+ }
27546
+ }
27547
+ return message;
27548
+ };
27549
+
27550
+ /**
27551
+ * Decodes a ContentfulAccessRuleCreated message from the specified reader or buffer, length delimited.
27552
+ * @function decodeDelimited
27553
+ * @memberof ContentfulAccessRuleCreated
27554
+ * @static
27555
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27556
+ * @returns {ContentfulAccessRuleCreated} ContentfulAccessRuleCreated
27557
+ * @throws {Error} If the payload is not a reader or valid buffer
27558
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27559
+ */
27560
+ ContentfulAccessRuleCreated.decodeDelimited = function decodeDelimited(reader) {
27561
+ if (!(reader instanceof $Reader))
27562
+ reader = new $Reader(reader);
27563
+ return this.decode(reader, reader.uint32());
27564
+ };
27565
+
27566
+ /**
27567
+ * Verifies a ContentfulAccessRuleCreated message.
27568
+ * @function verify
27569
+ * @memberof ContentfulAccessRuleCreated
27570
+ * @static
27571
+ * @param {Object.<string,*>} message Plain object to verify
27572
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
27573
+ */
27574
+ ContentfulAccessRuleCreated.verify = function verify(message) {
27575
+ if (typeof message !== "object" || message === null)
27576
+ return "object expected";
27577
+ if (message.name != null && message.hasOwnProperty("name"))
27578
+ if (!$util.isString(message.name))
27579
+ return "name: string expected";
27580
+ if (message.slug != null && message.hasOwnProperty("slug"))
27581
+ if (!$util.isString(message.slug))
27582
+ return "slug: string expected";
27583
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
27584
+ var error = $root.contentful.SlugReference.verify(message.accessGroup);
27585
+ if (error)
27586
+ return "accessGroup." + error;
27587
+ }
27588
+ if (message.isHidden != null && message.hasOwnProperty("isHidden"))
27589
+ if (typeof message.isHidden !== "boolean")
27590
+ return "isHidden: boolean expected";
27591
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
27592
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
27593
+ return "createdAt: integer|Long expected";
27594
+ return null;
27595
+ };
27596
+
27597
+ /**
27598
+ * Creates a ContentfulAccessRuleCreated message from a plain object. Also converts values to their respective internal types.
27599
+ * @function fromObject
27600
+ * @memberof ContentfulAccessRuleCreated
27601
+ * @static
27602
+ * @param {Object.<string,*>} object Plain object
27603
+ * @returns {ContentfulAccessRuleCreated} ContentfulAccessRuleCreated
27604
+ */
27605
+ ContentfulAccessRuleCreated.fromObject = function fromObject(object) {
27606
+ if (object instanceof $root.ContentfulAccessRuleCreated)
27607
+ return object;
27608
+ var message = new $root.ContentfulAccessRuleCreated();
27609
+ if (object.name != null)
27610
+ message.name = String(object.name);
27611
+ if (object.slug != null)
27612
+ message.slug = String(object.slug);
27613
+ if (object.accessGroup != null) {
27614
+ if (typeof object.accessGroup !== "object")
27615
+ throw TypeError(".ContentfulAccessRuleCreated.accessGroup: object expected");
27616
+ message.accessGroup = $root.contentful.SlugReference.fromObject(object.accessGroup);
27617
+ }
27618
+ if (object.isHidden != null)
27619
+ message.isHidden = Boolean(object.isHidden);
27620
+ if (object.createdAt != null)
27621
+ if ($util.Long)
27622
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
27623
+ else if (typeof object.createdAt === "string")
27624
+ message.createdAt = parseInt(object.createdAt, 10);
27625
+ else if (typeof object.createdAt === "number")
27626
+ message.createdAt = object.createdAt;
27627
+ else if (typeof object.createdAt === "object")
27628
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
27629
+ return message;
27630
+ };
27631
+
27632
+ /**
27633
+ * Creates a plain object from a ContentfulAccessRuleCreated message. Also converts values to other types if specified.
27634
+ * @function toObject
27635
+ * @memberof ContentfulAccessRuleCreated
27636
+ * @static
27637
+ * @param {ContentfulAccessRuleCreated} message ContentfulAccessRuleCreated
27638
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
27639
+ * @returns {Object.<string,*>} Plain object
27640
+ */
27641
+ ContentfulAccessRuleCreated.toObject = function toObject(message, options) {
27642
+ if (!options)
27643
+ options = {};
27644
+ var object = {};
27645
+ if (options.defaults) {
27646
+ object.name = "";
27647
+ object.slug = "";
27648
+ object.accessGroup = null;
27649
+ object.isHidden = false;
27650
+ if ($util.Long) {
27651
+ var long = new $util.Long(0, 0, true);
27652
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
27653
+ } else
27654
+ object.createdAt = options.longs === String ? "0" : 0;
27655
+ }
27656
+ if (message.name != null && message.hasOwnProperty("name"))
27657
+ object.name = message.name;
27658
+ if (message.slug != null && message.hasOwnProperty("slug"))
27659
+ object.slug = message.slug;
27660
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
27661
+ object.accessGroup = $root.contentful.SlugReference.toObject(message.accessGroup, options);
27662
+ if (message.isHidden != null && message.hasOwnProperty("isHidden"))
27663
+ object.isHidden = message.isHidden;
27664
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
27665
+ if (typeof message.createdAt === "number")
27666
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
27667
+ else
27668
+ 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;
27669
+ return object;
27670
+ };
27671
+
27672
+ /**
27673
+ * Converts this ContentfulAccessRuleCreated to JSON.
27674
+ * @function toJSON
27675
+ * @memberof ContentfulAccessRuleCreated
27676
+ * @instance
27677
+ * @returns {Object.<string,*>} JSON object
27678
+ */
27679
+ ContentfulAccessRuleCreated.prototype.toJSON = function toJSON() {
27680
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27681
+ };
27682
+
27683
+ return ContentfulAccessRuleCreated;
27684
+ })();
27685
+
27686
+ $root.ContentfulAccessRuleUpdated = (function() {
27687
+
27688
+ /**
27689
+ * Properties of a ContentfulAccessRuleUpdated.
27690
+ * @exports IContentfulAccessRuleUpdated
27691
+ * @interface IContentfulAccessRuleUpdated
27692
+ * @property {string|null} [name] ContentfulAccessRuleUpdated name
27693
+ * @property {string|null} [slug] ContentfulAccessRuleUpdated slug
27694
+ * @property {contentful.ISlugReference|null} [accessGroup] ContentfulAccessRuleUpdated accessGroup
27695
+ * @property {boolean|null} [isHidden] ContentfulAccessRuleUpdated isHidden
27696
+ * @property {number|Long|null} [updatedAt] ContentfulAccessRuleUpdated updatedAt
27697
+ */
27698
+
27699
+ /**
27700
+ * Constructs a new ContentfulAccessRuleUpdated.
27701
+ * @exports ContentfulAccessRuleUpdated
27702
+ * @classdesc Represents a ContentfulAccessRuleUpdated.
27703
+ * @implements IContentfulAccessRuleUpdated
27704
+ * @constructor
27705
+ * @param {IContentfulAccessRuleUpdated=} [properties] Properties to set
27706
+ */
27707
+ function ContentfulAccessRuleUpdated(properties) {
27708
+ if (properties)
27709
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
27710
+ if (properties[keys[i]] != null)
27711
+ this[keys[i]] = properties[keys[i]];
27712
+ }
27713
+
27714
+ /**
27715
+ * ContentfulAccessRuleUpdated name.
27716
+ * @member {string} name
27717
+ * @memberof ContentfulAccessRuleUpdated
27718
+ * @instance
27719
+ */
27720
+ ContentfulAccessRuleUpdated.prototype.name = "";
27721
+
27722
+ /**
27723
+ * ContentfulAccessRuleUpdated slug.
27724
+ * @member {string} slug
27725
+ * @memberof ContentfulAccessRuleUpdated
27726
+ * @instance
27727
+ */
27728
+ ContentfulAccessRuleUpdated.prototype.slug = "";
27729
+
27730
+ /**
27731
+ * ContentfulAccessRuleUpdated accessGroup.
27732
+ * @member {contentful.ISlugReference|null|undefined} accessGroup
27733
+ * @memberof ContentfulAccessRuleUpdated
27734
+ * @instance
27735
+ */
27736
+ ContentfulAccessRuleUpdated.prototype.accessGroup = null;
27737
+
27738
+ /**
27739
+ * ContentfulAccessRuleUpdated isHidden.
27740
+ * @member {boolean} isHidden
27741
+ * @memberof ContentfulAccessRuleUpdated
27742
+ * @instance
27743
+ */
27744
+ ContentfulAccessRuleUpdated.prototype.isHidden = false;
27745
+
27746
+ /**
27747
+ * ContentfulAccessRuleUpdated updatedAt.
27748
+ * @member {number|Long} updatedAt
27749
+ * @memberof ContentfulAccessRuleUpdated
27750
+ * @instance
27751
+ */
27752
+ ContentfulAccessRuleUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
27753
+
27754
+ /**
27755
+ * Creates a new ContentfulAccessRuleUpdated instance using the specified properties.
27756
+ * @function create
27757
+ * @memberof ContentfulAccessRuleUpdated
27758
+ * @static
27759
+ * @param {IContentfulAccessRuleUpdated=} [properties] Properties to set
27760
+ * @returns {ContentfulAccessRuleUpdated} ContentfulAccessRuleUpdated instance
27761
+ */
27762
+ ContentfulAccessRuleUpdated.create = function create(properties) {
27763
+ return new ContentfulAccessRuleUpdated(properties);
27764
+ };
27765
+
27766
+ /**
27767
+ * Encodes the specified ContentfulAccessRuleUpdated message. Does not implicitly {@link ContentfulAccessRuleUpdated.verify|verify} messages.
27768
+ * @function encode
27769
+ * @memberof ContentfulAccessRuleUpdated
27770
+ * @static
27771
+ * @param {IContentfulAccessRuleUpdated} message ContentfulAccessRuleUpdated message or plain object to encode
27772
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27773
+ * @returns {$protobuf.Writer} Writer
27774
+ */
27775
+ ContentfulAccessRuleUpdated.encode = function encode(message, writer) {
27776
+ if (!writer)
27777
+ writer = $Writer.create();
27778
+ if (message.name != null && message.hasOwnProperty("name"))
27779
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
27780
+ if (message.slug != null && message.hasOwnProperty("slug"))
27781
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
27782
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
27783
+ $root.contentful.SlugReference.encode(message.accessGroup, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
27784
+ if (message.isHidden != null && message.hasOwnProperty("isHidden"))
27785
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isHidden);
27786
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
27787
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
27788
+ return writer;
27789
+ };
27790
+
27791
+ /**
27792
+ * Encodes the specified ContentfulAccessRuleUpdated message, length delimited. Does not implicitly {@link ContentfulAccessRuleUpdated.verify|verify} messages.
27793
+ * @function encodeDelimited
27794
+ * @memberof ContentfulAccessRuleUpdated
27795
+ * @static
27796
+ * @param {IContentfulAccessRuleUpdated} message ContentfulAccessRuleUpdated message or plain object to encode
27797
+ * @param {$protobuf.Writer} [writer] Writer to encode to
27798
+ * @returns {$protobuf.Writer} Writer
27799
+ */
27800
+ ContentfulAccessRuleUpdated.encodeDelimited = function encodeDelimited(message, writer) {
27801
+ return this.encode(message, writer).ldelim();
27802
+ };
27803
+
27804
+ /**
27805
+ * Decodes a ContentfulAccessRuleUpdated message from the specified reader or buffer.
27806
+ * @function decode
27807
+ * @memberof ContentfulAccessRuleUpdated
27808
+ * @static
27809
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27810
+ * @param {number} [length] Message length if known beforehand
27811
+ * @returns {ContentfulAccessRuleUpdated} ContentfulAccessRuleUpdated
27812
+ * @throws {Error} If the payload is not a reader or valid buffer
27813
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27814
+ */
27815
+ ContentfulAccessRuleUpdated.decode = function decode(reader, length) {
27816
+ if (!(reader instanceof $Reader))
27817
+ reader = $Reader.create(reader);
27818
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulAccessRuleUpdated();
27819
+ while (reader.pos < end) {
27820
+ var tag = reader.uint32();
27821
+ switch (tag >>> 3) {
27822
+ case 1:
27823
+ message.name = reader.string();
27824
+ break;
27825
+ case 2:
27826
+ message.slug = reader.string();
27827
+ break;
27828
+ case 3:
27829
+ message.accessGroup = $root.contentful.SlugReference.decode(reader, reader.uint32());
27830
+ break;
27831
+ case 4:
27832
+ message.isHidden = reader.bool();
27833
+ break;
27834
+ case 5:
27835
+ message.updatedAt = reader.uint64();
27836
+ break;
27837
+ default:
27838
+ reader.skipType(tag & 7);
27839
+ break;
27840
+ }
27841
+ }
27842
+ return message;
27843
+ };
27844
+
27845
+ /**
27846
+ * Decodes a ContentfulAccessRuleUpdated message from the specified reader or buffer, length delimited.
27847
+ * @function decodeDelimited
27848
+ * @memberof ContentfulAccessRuleUpdated
27849
+ * @static
27850
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
27851
+ * @returns {ContentfulAccessRuleUpdated} ContentfulAccessRuleUpdated
27852
+ * @throws {Error} If the payload is not a reader or valid buffer
27853
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27854
+ */
27855
+ ContentfulAccessRuleUpdated.decodeDelimited = function decodeDelimited(reader) {
27856
+ if (!(reader instanceof $Reader))
27857
+ reader = new $Reader(reader);
27858
+ return this.decode(reader, reader.uint32());
27859
+ };
27860
+
27861
+ /**
27862
+ * Verifies a ContentfulAccessRuleUpdated message.
27863
+ * @function verify
27864
+ * @memberof ContentfulAccessRuleUpdated
27865
+ * @static
27866
+ * @param {Object.<string,*>} message Plain object to verify
27867
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
27868
+ */
27869
+ ContentfulAccessRuleUpdated.verify = function verify(message) {
27870
+ if (typeof message !== "object" || message === null)
27871
+ return "object expected";
27872
+ if (message.name != null && message.hasOwnProperty("name"))
27873
+ if (!$util.isString(message.name))
27874
+ return "name: string expected";
27875
+ if (message.slug != null && message.hasOwnProperty("slug"))
27876
+ if (!$util.isString(message.slug))
27877
+ return "slug: string expected";
27878
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
27879
+ var error = $root.contentful.SlugReference.verify(message.accessGroup);
27880
+ if (error)
27881
+ return "accessGroup." + error;
27882
+ }
27883
+ if (message.isHidden != null && message.hasOwnProperty("isHidden"))
27884
+ if (typeof message.isHidden !== "boolean")
27885
+ return "isHidden: boolean expected";
27886
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
27887
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
27888
+ return "updatedAt: integer|Long expected";
27889
+ return null;
27890
+ };
27891
+
27892
+ /**
27893
+ * Creates a ContentfulAccessRuleUpdated message from a plain object. Also converts values to their respective internal types.
27894
+ * @function fromObject
27895
+ * @memberof ContentfulAccessRuleUpdated
27896
+ * @static
27897
+ * @param {Object.<string,*>} object Plain object
27898
+ * @returns {ContentfulAccessRuleUpdated} ContentfulAccessRuleUpdated
27899
+ */
27900
+ ContentfulAccessRuleUpdated.fromObject = function fromObject(object) {
27901
+ if (object instanceof $root.ContentfulAccessRuleUpdated)
27902
+ return object;
27903
+ var message = new $root.ContentfulAccessRuleUpdated();
27904
+ if (object.name != null)
27905
+ message.name = String(object.name);
27906
+ if (object.slug != null)
27907
+ message.slug = String(object.slug);
27908
+ if (object.accessGroup != null) {
27909
+ if (typeof object.accessGroup !== "object")
27910
+ throw TypeError(".ContentfulAccessRuleUpdated.accessGroup: object expected");
27911
+ message.accessGroup = $root.contentful.SlugReference.fromObject(object.accessGroup);
27912
+ }
27913
+ if (object.isHidden != null)
27914
+ message.isHidden = Boolean(object.isHidden);
27915
+ if (object.updatedAt != null)
27916
+ if ($util.Long)
27917
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
27918
+ else if (typeof object.updatedAt === "string")
27919
+ message.updatedAt = parseInt(object.updatedAt, 10);
27920
+ else if (typeof object.updatedAt === "number")
27921
+ message.updatedAt = object.updatedAt;
27922
+ else if (typeof object.updatedAt === "object")
27923
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
27924
+ return message;
27925
+ };
27926
+
27927
+ /**
27928
+ * Creates a plain object from a ContentfulAccessRuleUpdated message. Also converts values to other types if specified.
27929
+ * @function toObject
27930
+ * @memberof ContentfulAccessRuleUpdated
27931
+ * @static
27932
+ * @param {ContentfulAccessRuleUpdated} message ContentfulAccessRuleUpdated
27933
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
27934
+ * @returns {Object.<string,*>} Plain object
27935
+ */
27936
+ ContentfulAccessRuleUpdated.toObject = function toObject(message, options) {
27937
+ if (!options)
27938
+ options = {};
27939
+ var object = {};
27940
+ if (options.defaults) {
27941
+ object.name = "";
27942
+ object.slug = "";
27943
+ object.accessGroup = null;
27944
+ object.isHidden = false;
27945
+ if ($util.Long) {
27946
+ var long = new $util.Long(0, 0, true);
27947
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
27948
+ } else
27949
+ object.updatedAt = options.longs === String ? "0" : 0;
27950
+ }
27951
+ if (message.name != null && message.hasOwnProperty("name"))
27952
+ object.name = message.name;
27953
+ if (message.slug != null && message.hasOwnProperty("slug"))
27954
+ object.slug = message.slug;
27955
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
27956
+ object.accessGroup = $root.contentful.SlugReference.toObject(message.accessGroup, options);
27957
+ if (message.isHidden != null && message.hasOwnProperty("isHidden"))
27958
+ object.isHidden = message.isHidden;
27959
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
27960
+ if (typeof message.updatedAt === "number")
27961
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
27962
+ else
27963
+ 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;
27964
+ return object;
27965
+ };
27966
+
27967
+ /**
27968
+ * Converts this ContentfulAccessRuleUpdated to JSON.
27969
+ * @function toJSON
27970
+ * @memberof ContentfulAccessRuleUpdated
27971
+ * @instance
27972
+ * @returns {Object.<string,*>} JSON object
27973
+ */
27974
+ ContentfulAccessRuleUpdated.prototype.toJSON = function toJSON() {
27975
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
27976
+ };
27977
+
27978
+ return ContentfulAccessRuleUpdated;
27979
+ })();
27980
+
27981
+ $root.ContentfulAccessRuleDeleted = (function() {
27982
+
27983
+ /**
27984
+ * Properties of a ContentfulAccessRuleDeleted.
27985
+ * @exports IContentfulAccessRuleDeleted
27986
+ * @interface IContentfulAccessRuleDeleted
27987
+ * @property {string|null} [slug] ContentfulAccessRuleDeleted slug
27988
+ * @property {number|Long|null} [deletedAt] ContentfulAccessRuleDeleted deletedAt
27989
+ */
27990
+
27991
+ /**
27992
+ * Constructs a new ContentfulAccessRuleDeleted.
27993
+ * @exports ContentfulAccessRuleDeleted
27994
+ * @classdesc Represents a ContentfulAccessRuleDeleted.
27995
+ * @implements IContentfulAccessRuleDeleted
27996
+ * @constructor
27997
+ * @param {IContentfulAccessRuleDeleted=} [properties] Properties to set
27998
+ */
27999
+ function ContentfulAccessRuleDeleted(properties) {
28000
+ if (properties)
28001
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28002
+ if (properties[keys[i]] != null)
28003
+ this[keys[i]] = properties[keys[i]];
28004
+ }
28005
+
28006
+ /**
28007
+ * ContentfulAccessRuleDeleted slug.
28008
+ * @member {string} slug
28009
+ * @memberof ContentfulAccessRuleDeleted
28010
+ * @instance
28011
+ */
28012
+ ContentfulAccessRuleDeleted.prototype.slug = "";
28013
+
28014
+ /**
28015
+ * ContentfulAccessRuleDeleted deletedAt.
28016
+ * @member {number|Long} deletedAt
28017
+ * @memberof ContentfulAccessRuleDeleted
28018
+ * @instance
28019
+ */
28020
+ ContentfulAccessRuleDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
28021
+
28022
+ /**
28023
+ * Creates a new ContentfulAccessRuleDeleted instance using the specified properties.
28024
+ * @function create
28025
+ * @memberof ContentfulAccessRuleDeleted
28026
+ * @static
28027
+ * @param {IContentfulAccessRuleDeleted=} [properties] Properties to set
28028
+ * @returns {ContentfulAccessRuleDeleted} ContentfulAccessRuleDeleted instance
28029
+ */
28030
+ ContentfulAccessRuleDeleted.create = function create(properties) {
28031
+ return new ContentfulAccessRuleDeleted(properties);
28032
+ };
28033
+
28034
+ /**
28035
+ * Encodes the specified ContentfulAccessRuleDeleted message. Does not implicitly {@link ContentfulAccessRuleDeleted.verify|verify} messages.
28036
+ * @function encode
28037
+ * @memberof ContentfulAccessRuleDeleted
28038
+ * @static
28039
+ * @param {IContentfulAccessRuleDeleted} message ContentfulAccessRuleDeleted message or plain object to encode
28040
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28041
+ * @returns {$protobuf.Writer} Writer
28042
+ */
28043
+ ContentfulAccessRuleDeleted.encode = function encode(message, writer) {
28044
+ if (!writer)
28045
+ writer = $Writer.create();
28046
+ if (message.slug != null && message.hasOwnProperty("slug"))
28047
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
28048
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
28049
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
28050
+ return writer;
28051
+ };
28052
+
28053
+ /**
28054
+ * Encodes the specified ContentfulAccessRuleDeleted message, length delimited. Does not implicitly {@link ContentfulAccessRuleDeleted.verify|verify} messages.
28055
+ * @function encodeDelimited
28056
+ * @memberof ContentfulAccessRuleDeleted
28057
+ * @static
28058
+ * @param {IContentfulAccessRuleDeleted} message ContentfulAccessRuleDeleted message or plain object to encode
28059
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28060
+ * @returns {$protobuf.Writer} Writer
28061
+ */
28062
+ ContentfulAccessRuleDeleted.encodeDelimited = function encodeDelimited(message, writer) {
28063
+ return this.encode(message, writer).ldelim();
28064
+ };
28065
+
28066
+ /**
28067
+ * Decodes a ContentfulAccessRuleDeleted message from the specified reader or buffer.
28068
+ * @function decode
28069
+ * @memberof ContentfulAccessRuleDeleted
28070
+ * @static
28071
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28072
+ * @param {number} [length] Message length if known beforehand
28073
+ * @returns {ContentfulAccessRuleDeleted} ContentfulAccessRuleDeleted
28074
+ * @throws {Error} If the payload is not a reader or valid buffer
28075
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28076
+ */
28077
+ ContentfulAccessRuleDeleted.decode = function decode(reader, length) {
28078
+ if (!(reader instanceof $Reader))
28079
+ reader = $Reader.create(reader);
28080
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulAccessRuleDeleted();
28081
+ while (reader.pos < end) {
28082
+ var tag = reader.uint32();
28083
+ switch (tag >>> 3) {
28084
+ case 1:
28085
+ message.slug = reader.string();
28086
+ break;
28087
+ case 2:
28088
+ message.deletedAt = reader.uint64();
28089
+ break;
28090
+ default:
28091
+ reader.skipType(tag & 7);
28092
+ break;
28093
+ }
28094
+ }
28095
+ return message;
28096
+ };
28097
+
28098
+ /**
28099
+ * Decodes a ContentfulAccessRuleDeleted message from the specified reader or buffer, length delimited.
28100
+ * @function decodeDelimited
28101
+ * @memberof ContentfulAccessRuleDeleted
28102
+ * @static
28103
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28104
+ * @returns {ContentfulAccessRuleDeleted} ContentfulAccessRuleDeleted
28105
+ * @throws {Error} If the payload is not a reader or valid buffer
28106
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28107
+ */
28108
+ ContentfulAccessRuleDeleted.decodeDelimited = function decodeDelimited(reader) {
28109
+ if (!(reader instanceof $Reader))
28110
+ reader = new $Reader(reader);
28111
+ return this.decode(reader, reader.uint32());
28112
+ };
28113
+
28114
+ /**
28115
+ * Verifies a ContentfulAccessRuleDeleted message.
28116
+ * @function verify
28117
+ * @memberof ContentfulAccessRuleDeleted
28118
+ * @static
28119
+ * @param {Object.<string,*>} message Plain object to verify
28120
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
28121
+ */
28122
+ ContentfulAccessRuleDeleted.verify = function verify(message) {
28123
+ if (typeof message !== "object" || message === null)
28124
+ return "object expected";
28125
+ if (message.slug != null && message.hasOwnProperty("slug"))
28126
+ if (!$util.isString(message.slug))
28127
+ return "slug: string expected";
28128
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
28129
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
28130
+ return "deletedAt: integer|Long expected";
28131
+ return null;
28132
+ };
28133
+
28134
+ /**
28135
+ * Creates a ContentfulAccessRuleDeleted message from a plain object. Also converts values to their respective internal types.
28136
+ * @function fromObject
28137
+ * @memberof ContentfulAccessRuleDeleted
28138
+ * @static
28139
+ * @param {Object.<string,*>} object Plain object
28140
+ * @returns {ContentfulAccessRuleDeleted} ContentfulAccessRuleDeleted
28141
+ */
28142
+ ContentfulAccessRuleDeleted.fromObject = function fromObject(object) {
28143
+ if (object instanceof $root.ContentfulAccessRuleDeleted)
28144
+ return object;
28145
+ var message = new $root.ContentfulAccessRuleDeleted();
28146
+ if (object.slug != null)
28147
+ message.slug = String(object.slug);
28148
+ if (object.deletedAt != null)
28149
+ if ($util.Long)
28150
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
28151
+ else if (typeof object.deletedAt === "string")
28152
+ message.deletedAt = parseInt(object.deletedAt, 10);
28153
+ else if (typeof object.deletedAt === "number")
28154
+ message.deletedAt = object.deletedAt;
28155
+ else if (typeof object.deletedAt === "object")
28156
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
28157
+ return message;
28158
+ };
28159
+
28160
+ /**
28161
+ * Creates a plain object from a ContentfulAccessRuleDeleted message. Also converts values to other types if specified.
28162
+ * @function toObject
28163
+ * @memberof ContentfulAccessRuleDeleted
28164
+ * @static
28165
+ * @param {ContentfulAccessRuleDeleted} message ContentfulAccessRuleDeleted
28166
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
28167
+ * @returns {Object.<string,*>} Plain object
28168
+ */
28169
+ ContentfulAccessRuleDeleted.toObject = function toObject(message, options) {
28170
+ if (!options)
28171
+ options = {};
28172
+ var object = {};
28173
+ if (options.defaults) {
28174
+ object.slug = "";
28175
+ if ($util.Long) {
28176
+ var long = new $util.Long(0, 0, true);
28177
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
28178
+ } else
28179
+ object.deletedAt = options.longs === String ? "0" : 0;
28180
+ }
28181
+ if (message.slug != null && message.hasOwnProperty("slug"))
28182
+ object.slug = message.slug;
28183
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
28184
+ if (typeof message.deletedAt === "number")
28185
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
28186
+ else
28187
+ 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;
28188
+ return object;
28189
+ };
28190
+
28191
+ /**
28192
+ * Converts this ContentfulAccessRuleDeleted to JSON.
28193
+ * @function toJSON
28194
+ * @memberof ContentfulAccessRuleDeleted
28195
+ * @instance
28196
+ * @returns {Object.<string,*>} JSON object
28197
+ */
28198
+ ContentfulAccessRuleDeleted.prototype.toJSON = function toJSON() {
28199
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
28200
+ };
28201
+
28202
+ return ContentfulAccessRuleDeleted;
28203
+ })();
28204
+
27391
28205
  $root.ContentfulContentModelCreated = (function() {
27392
28206
 
27393
28207
  /**
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.173.0"
19
+ "version": "1.175.0"
20
20
  }