@headspace/protos-events 1.504.1-rc.0 → 1.505.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +323 -18
  2. package/lib/index.js +808 -108
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -95162,6 +95162,814 @@ $root.UserEnabledWakeupNotifications = (function() {
95162
95162
  return UserEnabledWakeupNotifications;
95163
95163
  })();
95164
95164
 
95165
+ $root.DiscussionUser = (function() {
95166
+
95167
+ /**
95168
+ * Properties of a DiscussionUser.
95169
+ * @name IDiscussionUser
95170
+ * @interface IDiscussionUser
95171
+ * @property {string|null} [userId] DiscussionUser userId
95172
+ * @property {string|null} [displayName] DiscussionUser displayName
95173
+ */
95174
+
95175
+ /**
95176
+ * Constructs a new DiscussionUser.
95177
+ * @name DiscussionUser
95178
+ * @classdesc Represents a DiscussionUser.
95179
+ * @implements IDiscussionUser
95180
+ * @constructor
95181
+ * @param {IDiscussionUser=} [properties] Properties to set
95182
+ */
95183
+ function DiscussionUser(properties) {
95184
+ if (properties)
95185
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
95186
+ if (properties[keys[i]] != null)
95187
+ this[keys[i]] = properties[keys[i]];
95188
+ }
95189
+
95190
+ /**
95191
+ * DiscussionUser userId.
95192
+ * @member {string} userId
95193
+ * @memberof DiscussionUser
95194
+ * @instance
95195
+ */
95196
+ DiscussionUser.prototype.userId = "";
95197
+
95198
+ /**
95199
+ * DiscussionUser displayName.
95200
+ * @member {string} displayName
95201
+ * @memberof DiscussionUser
95202
+ * @instance
95203
+ */
95204
+ DiscussionUser.prototype.displayName = "";
95205
+
95206
+ /**
95207
+ * Creates a new DiscussionUser instance using the specified properties.
95208
+ * @function create
95209
+ * @memberof DiscussionUser
95210
+ * @static
95211
+ * @param {IDiscussionUser=} [properties] Properties to set
95212
+ * @returns {DiscussionUser} DiscussionUser instance
95213
+ */
95214
+ DiscussionUser.create = function create(properties) {
95215
+ return new DiscussionUser(properties);
95216
+ };
95217
+
95218
+ /**
95219
+ * Encodes the specified DiscussionUser message. Does not implicitly {@link DiscussionUser.verify|verify} messages.
95220
+ * @function encode
95221
+ * @memberof DiscussionUser
95222
+ * @static
95223
+ * @param {IDiscussionUser} message DiscussionUser message or plain object to encode
95224
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95225
+ * @returns {$protobuf.Writer} Writer
95226
+ */
95227
+ DiscussionUser.encode = function encode(message, writer) {
95228
+ if (!writer)
95229
+ writer = $Writer.create();
95230
+ if (message.userId != null && message.hasOwnProperty("userId"))
95231
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
95232
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
95233
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
95234
+ return writer;
95235
+ };
95236
+
95237
+ /**
95238
+ * Encodes the specified DiscussionUser message, length delimited. Does not implicitly {@link DiscussionUser.verify|verify} messages.
95239
+ * @function encodeDelimited
95240
+ * @memberof DiscussionUser
95241
+ * @static
95242
+ * @param {IDiscussionUser} message DiscussionUser message or plain object to encode
95243
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95244
+ * @returns {$protobuf.Writer} Writer
95245
+ */
95246
+ DiscussionUser.encodeDelimited = function encodeDelimited(message, writer) {
95247
+ return this.encode(message, writer).ldelim();
95248
+ };
95249
+
95250
+ /**
95251
+ * Decodes a DiscussionUser message from the specified reader or buffer.
95252
+ * @function decode
95253
+ * @memberof DiscussionUser
95254
+ * @static
95255
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95256
+ * @param {number} [length] Message length if known beforehand
95257
+ * @returns {DiscussionUser} DiscussionUser
95258
+ * @throws {Error} If the payload is not a reader or valid buffer
95259
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95260
+ */
95261
+ DiscussionUser.decode = function decode(reader, length) {
95262
+ if (!(reader instanceof $Reader))
95263
+ reader = $Reader.create(reader);
95264
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionUser();
95265
+ while (reader.pos < end) {
95266
+ var tag = reader.uint32();
95267
+ switch (tag >>> 3) {
95268
+ case 1:
95269
+ message.userId = reader.string();
95270
+ break;
95271
+ case 2:
95272
+ message.displayName = reader.string();
95273
+ break;
95274
+ default:
95275
+ reader.skipType(tag & 7);
95276
+ break;
95277
+ }
95278
+ }
95279
+ return message;
95280
+ };
95281
+
95282
+ /**
95283
+ * Decodes a DiscussionUser message from the specified reader or buffer, length delimited.
95284
+ * @function decodeDelimited
95285
+ * @memberof DiscussionUser
95286
+ * @static
95287
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95288
+ * @returns {DiscussionUser} DiscussionUser
95289
+ * @throws {Error} If the payload is not a reader or valid buffer
95290
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95291
+ */
95292
+ DiscussionUser.decodeDelimited = function decodeDelimited(reader) {
95293
+ if (!(reader instanceof $Reader))
95294
+ reader = new $Reader(reader);
95295
+ return this.decode(reader, reader.uint32());
95296
+ };
95297
+
95298
+ /**
95299
+ * Verifies a DiscussionUser message.
95300
+ * @function verify
95301
+ * @memberof DiscussionUser
95302
+ * @static
95303
+ * @param {Object.<string,*>} message Plain object to verify
95304
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
95305
+ */
95306
+ DiscussionUser.verify = function verify(message) {
95307
+ if (typeof message !== "object" || message === null)
95308
+ return "object expected";
95309
+ if (message.userId != null && message.hasOwnProperty("userId"))
95310
+ if (!$util.isString(message.userId))
95311
+ return "userId: string expected";
95312
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
95313
+ if (!$util.isString(message.displayName))
95314
+ return "displayName: string expected";
95315
+ return null;
95316
+ };
95317
+
95318
+ /**
95319
+ * Creates a DiscussionUser message from a plain object. Also converts values to their respective internal types.
95320
+ * @function fromObject
95321
+ * @memberof DiscussionUser
95322
+ * @static
95323
+ * @param {Object.<string,*>} object Plain object
95324
+ * @returns {DiscussionUser} DiscussionUser
95325
+ */
95326
+ DiscussionUser.fromObject = function fromObject(object) {
95327
+ if (object instanceof $root.DiscussionUser)
95328
+ return object;
95329
+ var message = new $root.DiscussionUser();
95330
+ if (object.userId != null)
95331
+ message.userId = String(object.userId);
95332
+ if (object.displayName != null)
95333
+ message.displayName = String(object.displayName);
95334
+ return message;
95335
+ };
95336
+
95337
+ /**
95338
+ * Creates a plain object from a DiscussionUser message. Also converts values to other types if specified.
95339
+ * @function toObject
95340
+ * @memberof DiscussionUser
95341
+ * @static
95342
+ * @param {DiscussionUser} message DiscussionUser
95343
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
95344
+ * @returns {Object.<string,*>} Plain object
95345
+ */
95346
+ DiscussionUser.toObject = function toObject(message, options) {
95347
+ if (!options)
95348
+ options = {};
95349
+ var object = {};
95350
+ if (options.defaults) {
95351
+ object.userId = "";
95352
+ object.displayName = "";
95353
+ }
95354
+ if (message.userId != null && message.hasOwnProperty("userId"))
95355
+ object.userId = message.userId;
95356
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
95357
+ object.displayName = message.displayName;
95358
+ return object;
95359
+ };
95360
+
95361
+ /**
95362
+ * Converts this DiscussionUser to JSON.
95363
+ * @function toJSON
95364
+ * @memberof DiscussionUser
95365
+ * @instance
95366
+ * @returns {Object.<string,*>} JSON object
95367
+ */
95368
+ DiscussionUser.prototype.toJSON = function toJSON() {
95369
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
95370
+ };
95371
+
95372
+ return DiscussionUser;
95373
+ })();
95374
+
95375
+ $root.DiscussionPost = (function() {
95376
+
95377
+ /**
95378
+ * Properties of a DiscussionPost.
95379
+ * @name IDiscussionPost
95380
+ * @interface IDiscussionPost
95381
+ * @property {string|null} [id] DiscussionPost id
95382
+ * @property {IDiscussionUser|null} [author] DiscussionPost author
95383
+ */
95384
+
95385
+ /**
95386
+ * Constructs a new DiscussionPost.
95387
+ * @name DiscussionPost
95388
+ * @classdesc Represents a DiscussionPost.
95389
+ * @implements IDiscussionPost
95390
+ * @constructor
95391
+ * @param {IDiscussionPost=} [properties] Properties to set
95392
+ */
95393
+ function DiscussionPost(properties) {
95394
+ if (properties)
95395
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
95396
+ if (properties[keys[i]] != null)
95397
+ this[keys[i]] = properties[keys[i]];
95398
+ }
95399
+
95400
+ /**
95401
+ * DiscussionPost id.
95402
+ * @member {string} id
95403
+ * @memberof DiscussionPost
95404
+ * @instance
95405
+ */
95406
+ DiscussionPost.prototype.id = "";
95407
+
95408
+ /**
95409
+ * DiscussionPost author.
95410
+ * @member {IDiscussionUser|null|undefined} author
95411
+ * @memberof DiscussionPost
95412
+ * @instance
95413
+ */
95414
+ DiscussionPost.prototype.author = null;
95415
+
95416
+ /**
95417
+ * Creates a new DiscussionPost instance using the specified properties.
95418
+ * @function create
95419
+ * @memberof DiscussionPost
95420
+ * @static
95421
+ * @param {IDiscussionPost=} [properties] Properties to set
95422
+ * @returns {DiscussionPost} DiscussionPost instance
95423
+ */
95424
+ DiscussionPost.create = function create(properties) {
95425
+ return new DiscussionPost(properties);
95426
+ };
95427
+
95428
+ /**
95429
+ * Encodes the specified DiscussionPost message. Does not implicitly {@link DiscussionPost.verify|verify} messages.
95430
+ * @function encode
95431
+ * @memberof DiscussionPost
95432
+ * @static
95433
+ * @param {IDiscussionPost} message DiscussionPost message or plain object to encode
95434
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95435
+ * @returns {$protobuf.Writer} Writer
95436
+ */
95437
+ DiscussionPost.encode = function encode(message, writer) {
95438
+ if (!writer)
95439
+ writer = $Writer.create();
95440
+ if (message.id != null && message.hasOwnProperty("id"))
95441
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
95442
+ if (message.author != null && message.hasOwnProperty("author"))
95443
+ $root.DiscussionUser.encode(message.author, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
95444
+ return writer;
95445
+ };
95446
+
95447
+ /**
95448
+ * Encodes the specified DiscussionPost message, length delimited. Does not implicitly {@link DiscussionPost.verify|verify} messages.
95449
+ * @function encodeDelimited
95450
+ * @memberof DiscussionPost
95451
+ * @static
95452
+ * @param {IDiscussionPost} message DiscussionPost message or plain object to encode
95453
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95454
+ * @returns {$protobuf.Writer} Writer
95455
+ */
95456
+ DiscussionPost.encodeDelimited = function encodeDelimited(message, writer) {
95457
+ return this.encode(message, writer).ldelim();
95458
+ };
95459
+
95460
+ /**
95461
+ * Decodes a DiscussionPost message from the specified reader or buffer.
95462
+ * @function decode
95463
+ * @memberof DiscussionPost
95464
+ * @static
95465
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95466
+ * @param {number} [length] Message length if known beforehand
95467
+ * @returns {DiscussionPost} DiscussionPost
95468
+ * @throws {Error} If the payload is not a reader or valid buffer
95469
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95470
+ */
95471
+ DiscussionPost.decode = function decode(reader, length) {
95472
+ if (!(reader instanceof $Reader))
95473
+ reader = $Reader.create(reader);
95474
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionPost();
95475
+ while (reader.pos < end) {
95476
+ var tag = reader.uint32();
95477
+ switch (tag >>> 3) {
95478
+ case 1:
95479
+ message.id = reader.string();
95480
+ break;
95481
+ case 2:
95482
+ message.author = $root.DiscussionUser.decode(reader, reader.uint32());
95483
+ break;
95484
+ default:
95485
+ reader.skipType(tag & 7);
95486
+ break;
95487
+ }
95488
+ }
95489
+ return message;
95490
+ };
95491
+
95492
+ /**
95493
+ * Decodes a DiscussionPost message from the specified reader or buffer, length delimited.
95494
+ * @function decodeDelimited
95495
+ * @memberof DiscussionPost
95496
+ * @static
95497
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95498
+ * @returns {DiscussionPost} DiscussionPost
95499
+ * @throws {Error} If the payload is not a reader or valid buffer
95500
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95501
+ */
95502
+ DiscussionPost.decodeDelimited = function decodeDelimited(reader) {
95503
+ if (!(reader instanceof $Reader))
95504
+ reader = new $Reader(reader);
95505
+ return this.decode(reader, reader.uint32());
95506
+ };
95507
+
95508
+ /**
95509
+ * Verifies a DiscussionPost message.
95510
+ * @function verify
95511
+ * @memberof DiscussionPost
95512
+ * @static
95513
+ * @param {Object.<string,*>} message Plain object to verify
95514
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
95515
+ */
95516
+ DiscussionPost.verify = function verify(message) {
95517
+ if (typeof message !== "object" || message === null)
95518
+ return "object expected";
95519
+ if (message.id != null && message.hasOwnProperty("id"))
95520
+ if (!$util.isString(message.id))
95521
+ return "id: string expected";
95522
+ if (message.author != null && message.hasOwnProperty("author")) {
95523
+ var error = $root.DiscussionUser.verify(message.author);
95524
+ if (error)
95525
+ return "author." + error;
95526
+ }
95527
+ return null;
95528
+ };
95529
+
95530
+ /**
95531
+ * Creates a DiscussionPost message from a plain object. Also converts values to their respective internal types.
95532
+ * @function fromObject
95533
+ * @memberof DiscussionPost
95534
+ * @static
95535
+ * @param {Object.<string,*>} object Plain object
95536
+ * @returns {DiscussionPost} DiscussionPost
95537
+ */
95538
+ DiscussionPost.fromObject = function fromObject(object) {
95539
+ if (object instanceof $root.DiscussionPost)
95540
+ return object;
95541
+ var message = new $root.DiscussionPost();
95542
+ if (object.id != null)
95543
+ message.id = String(object.id);
95544
+ if (object.author != null) {
95545
+ if (typeof object.author !== "object")
95546
+ throw TypeError(".DiscussionPost.author: object expected");
95547
+ message.author = $root.DiscussionUser.fromObject(object.author);
95548
+ }
95549
+ return message;
95550
+ };
95551
+
95552
+ /**
95553
+ * Creates a plain object from a DiscussionPost message. Also converts values to other types if specified.
95554
+ * @function toObject
95555
+ * @memberof DiscussionPost
95556
+ * @static
95557
+ * @param {DiscussionPost} message DiscussionPost
95558
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
95559
+ * @returns {Object.<string,*>} Plain object
95560
+ */
95561
+ DiscussionPost.toObject = function toObject(message, options) {
95562
+ if (!options)
95563
+ options = {};
95564
+ var object = {};
95565
+ if (options.defaults) {
95566
+ object.id = "";
95567
+ object.author = null;
95568
+ }
95569
+ if (message.id != null && message.hasOwnProperty("id"))
95570
+ object.id = message.id;
95571
+ if (message.author != null && message.hasOwnProperty("author"))
95572
+ object.author = $root.DiscussionUser.toObject(message.author, options);
95573
+ return object;
95574
+ };
95575
+
95576
+ /**
95577
+ * Converts this DiscussionPost to JSON.
95578
+ * @function toJSON
95579
+ * @memberof DiscussionPost
95580
+ * @instance
95581
+ * @returns {Object.<string,*>} JSON object
95582
+ */
95583
+ DiscussionPost.prototype.toJSON = function toJSON() {
95584
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
95585
+ };
95586
+
95587
+ return DiscussionPost;
95588
+ })();
95589
+
95590
+ $root.DiscussionPostReactionCreated = (function() {
95591
+
95592
+ /**
95593
+ * Properties of a DiscussionPostReactionCreated.
95594
+ * @name IDiscussionPostReactionCreated
95595
+ * @interface IDiscussionPostReactionCreated
95596
+ * @property {string|null} [reactionId] DiscussionPostReactionCreated reactionId
95597
+ * @property {DiscussionPostReactionCreated.ReactionType|null} [reactionType] DiscussionPostReactionCreated reactionType
95598
+ * @property {IDiscussionPost|null} [post] DiscussionPostReactionCreated post
95599
+ * @property {IDiscussionUser|null} [reactionAuthor] DiscussionPostReactionCreated reactionAuthor
95600
+ * @property {number|Long|null} [createdAt] DiscussionPostReactionCreated createdAt
95601
+ */
95602
+
95603
+ /**
95604
+ * Constructs a new DiscussionPostReactionCreated.
95605
+ * @name DiscussionPostReactionCreated
95606
+ * @classdesc Represents a DiscussionPostReactionCreated.
95607
+ * @implements IDiscussionPostReactionCreated
95608
+ * @constructor
95609
+ * @param {IDiscussionPostReactionCreated=} [properties] Properties to set
95610
+ */
95611
+ function DiscussionPostReactionCreated(properties) {
95612
+ if (properties)
95613
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
95614
+ if (properties[keys[i]] != null)
95615
+ this[keys[i]] = properties[keys[i]];
95616
+ }
95617
+
95618
+ /**
95619
+ * DiscussionPostReactionCreated reactionId.
95620
+ * @member {string} reactionId
95621
+ * @memberof DiscussionPostReactionCreated
95622
+ * @instance
95623
+ */
95624
+ DiscussionPostReactionCreated.prototype.reactionId = "";
95625
+
95626
+ /**
95627
+ * DiscussionPostReactionCreated reactionType.
95628
+ * @member {DiscussionPostReactionCreated.ReactionType} reactionType
95629
+ * @memberof DiscussionPostReactionCreated
95630
+ * @instance
95631
+ */
95632
+ DiscussionPostReactionCreated.prototype.reactionType = 0;
95633
+
95634
+ /**
95635
+ * DiscussionPostReactionCreated post.
95636
+ * @member {IDiscussionPost|null|undefined} post
95637
+ * @memberof DiscussionPostReactionCreated
95638
+ * @instance
95639
+ */
95640
+ DiscussionPostReactionCreated.prototype.post = null;
95641
+
95642
+ /**
95643
+ * DiscussionPostReactionCreated reactionAuthor.
95644
+ * @member {IDiscussionUser|null|undefined} reactionAuthor
95645
+ * @memberof DiscussionPostReactionCreated
95646
+ * @instance
95647
+ */
95648
+ DiscussionPostReactionCreated.prototype.reactionAuthor = null;
95649
+
95650
+ /**
95651
+ * DiscussionPostReactionCreated createdAt.
95652
+ * @member {number|Long} createdAt
95653
+ * @memberof DiscussionPostReactionCreated
95654
+ * @instance
95655
+ */
95656
+ DiscussionPostReactionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
95657
+
95658
+ /**
95659
+ * Creates a new DiscussionPostReactionCreated instance using the specified properties.
95660
+ * @function create
95661
+ * @memberof DiscussionPostReactionCreated
95662
+ * @static
95663
+ * @param {IDiscussionPostReactionCreated=} [properties] Properties to set
95664
+ * @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated instance
95665
+ */
95666
+ DiscussionPostReactionCreated.create = function create(properties) {
95667
+ return new DiscussionPostReactionCreated(properties);
95668
+ };
95669
+
95670
+ /**
95671
+ * Encodes the specified DiscussionPostReactionCreated message. Does not implicitly {@link DiscussionPostReactionCreated.verify|verify} messages.
95672
+ * @function encode
95673
+ * @memberof DiscussionPostReactionCreated
95674
+ * @static
95675
+ * @param {IDiscussionPostReactionCreated} message DiscussionPostReactionCreated message or plain object to encode
95676
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95677
+ * @returns {$protobuf.Writer} Writer
95678
+ */
95679
+ DiscussionPostReactionCreated.encode = function encode(message, writer) {
95680
+ if (!writer)
95681
+ writer = $Writer.create();
95682
+ if (message.reactionId != null && message.hasOwnProperty("reactionId"))
95683
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.reactionId);
95684
+ if (message.reactionType != null && message.hasOwnProperty("reactionType"))
95685
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.reactionType);
95686
+ if (message.post != null && message.hasOwnProperty("post"))
95687
+ $root.DiscussionPost.encode(message.post, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
95688
+ if (message.reactionAuthor != null && message.hasOwnProperty("reactionAuthor"))
95689
+ $root.DiscussionUser.encode(message.reactionAuthor, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
95690
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
95691
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
95692
+ return writer;
95693
+ };
95694
+
95695
+ /**
95696
+ * Encodes the specified DiscussionPostReactionCreated message, length delimited. Does not implicitly {@link DiscussionPostReactionCreated.verify|verify} messages.
95697
+ * @function encodeDelimited
95698
+ * @memberof DiscussionPostReactionCreated
95699
+ * @static
95700
+ * @param {IDiscussionPostReactionCreated} message DiscussionPostReactionCreated message or plain object to encode
95701
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95702
+ * @returns {$protobuf.Writer} Writer
95703
+ */
95704
+ DiscussionPostReactionCreated.encodeDelimited = function encodeDelimited(message, writer) {
95705
+ return this.encode(message, writer).ldelim();
95706
+ };
95707
+
95708
+ /**
95709
+ * Decodes a DiscussionPostReactionCreated message from the specified reader or buffer.
95710
+ * @function decode
95711
+ * @memberof DiscussionPostReactionCreated
95712
+ * @static
95713
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95714
+ * @param {number} [length] Message length if known beforehand
95715
+ * @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated
95716
+ * @throws {Error} If the payload is not a reader or valid buffer
95717
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95718
+ */
95719
+ DiscussionPostReactionCreated.decode = function decode(reader, length) {
95720
+ if (!(reader instanceof $Reader))
95721
+ reader = $Reader.create(reader);
95722
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionPostReactionCreated();
95723
+ while (reader.pos < end) {
95724
+ var tag = reader.uint32();
95725
+ switch (tag >>> 3) {
95726
+ case 1:
95727
+ message.reactionId = reader.string();
95728
+ break;
95729
+ case 2:
95730
+ message.reactionType = reader.int32();
95731
+ break;
95732
+ case 3:
95733
+ message.post = $root.DiscussionPost.decode(reader, reader.uint32());
95734
+ break;
95735
+ case 4:
95736
+ message.reactionAuthor = $root.DiscussionUser.decode(reader, reader.uint32());
95737
+ break;
95738
+ case 5:
95739
+ message.createdAt = reader.uint64();
95740
+ break;
95741
+ default:
95742
+ reader.skipType(tag & 7);
95743
+ break;
95744
+ }
95745
+ }
95746
+ return message;
95747
+ };
95748
+
95749
+ /**
95750
+ * Decodes a DiscussionPostReactionCreated message from the specified reader or buffer, length delimited.
95751
+ * @function decodeDelimited
95752
+ * @memberof DiscussionPostReactionCreated
95753
+ * @static
95754
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95755
+ * @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated
95756
+ * @throws {Error} If the payload is not a reader or valid buffer
95757
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95758
+ */
95759
+ DiscussionPostReactionCreated.decodeDelimited = function decodeDelimited(reader) {
95760
+ if (!(reader instanceof $Reader))
95761
+ reader = new $Reader(reader);
95762
+ return this.decode(reader, reader.uint32());
95763
+ };
95764
+
95765
+ /**
95766
+ * Verifies a DiscussionPostReactionCreated message.
95767
+ * @function verify
95768
+ * @memberof DiscussionPostReactionCreated
95769
+ * @static
95770
+ * @param {Object.<string,*>} message Plain object to verify
95771
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
95772
+ */
95773
+ DiscussionPostReactionCreated.verify = function verify(message) {
95774
+ if (typeof message !== "object" || message === null)
95775
+ return "object expected";
95776
+ if (message.reactionId != null && message.hasOwnProperty("reactionId"))
95777
+ if (!$util.isString(message.reactionId))
95778
+ return "reactionId: string expected";
95779
+ if (message.reactionType != null && message.hasOwnProperty("reactionType"))
95780
+ switch (message.reactionType) {
95781
+ default:
95782
+ return "reactionType: enum value expected";
95783
+ case 0:
95784
+ case 1:
95785
+ case 2:
95786
+ case 3:
95787
+ case 4:
95788
+ case 5:
95789
+ case 6:
95790
+ case 7:
95791
+ case 8:
95792
+ case 9:
95793
+ break;
95794
+ }
95795
+ if (message.post != null && message.hasOwnProperty("post")) {
95796
+ var error = $root.DiscussionPost.verify(message.post);
95797
+ if (error)
95798
+ return "post." + error;
95799
+ }
95800
+ if (message.reactionAuthor != null && message.hasOwnProperty("reactionAuthor")) {
95801
+ var error = $root.DiscussionUser.verify(message.reactionAuthor);
95802
+ if (error)
95803
+ return "reactionAuthor." + error;
95804
+ }
95805
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
95806
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
95807
+ return "createdAt: integer|Long expected";
95808
+ return null;
95809
+ };
95810
+
95811
+ /**
95812
+ * Creates a DiscussionPostReactionCreated message from a plain object. Also converts values to their respective internal types.
95813
+ * @function fromObject
95814
+ * @memberof DiscussionPostReactionCreated
95815
+ * @static
95816
+ * @param {Object.<string,*>} object Plain object
95817
+ * @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated
95818
+ */
95819
+ DiscussionPostReactionCreated.fromObject = function fromObject(object) {
95820
+ if (object instanceof $root.DiscussionPostReactionCreated)
95821
+ return object;
95822
+ var message = new $root.DiscussionPostReactionCreated();
95823
+ if (object.reactionId != null)
95824
+ message.reactionId = String(object.reactionId);
95825
+ switch (object.reactionType) {
95826
+ case "REACTION_TYPE_UNKNOWN":
95827
+ case 0:
95828
+ message.reactionType = 0;
95829
+ break;
95830
+ case "REACTION_TYPE_LOVE_THIS":
95831
+ case 1:
95832
+ message.reactionType = 1;
95833
+ break;
95834
+ case "REACTION_TYPE_JUST_SAYING_HI":
95835
+ case 2:
95836
+ message.reactionType = 2;
95837
+ break;
95838
+ case "REACTION_TYPE_KEEP_IT_UP":
95839
+ case 3:
95840
+ message.reactionType = 3;
95841
+ break;
95842
+ case "REACTION_TYPE_GREAT_QUESTION":
95843
+ case 4:
95844
+ message.reactionType = 4;
95845
+ break;
95846
+ case "REACTION_TYPE_HIGH_FIVE":
95847
+ case 5:
95848
+ message.reactionType = 5;
95849
+ break;
95850
+ case "REACTION_TYPE_LOL":
95851
+ case 6:
95852
+ message.reactionType = 6;
95853
+ break;
95854
+ case "REACTION_TYPE_YOU_ARE_NOT_ALONE":
95855
+ case 7:
95856
+ message.reactionType = 7;
95857
+ break;
95858
+ case "REACTION_TYPE_SORRY_TO_HEAR":
95859
+ case 8:
95860
+ message.reactionType = 8;
95861
+ break;
95862
+ case "REACTION_TYPE_SENDING_HUGS":
95863
+ case 9:
95864
+ message.reactionType = 9;
95865
+ break;
95866
+ }
95867
+ if (object.post != null) {
95868
+ if (typeof object.post !== "object")
95869
+ throw TypeError(".DiscussionPostReactionCreated.post: object expected");
95870
+ message.post = $root.DiscussionPost.fromObject(object.post);
95871
+ }
95872
+ if (object.reactionAuthor != null) {
95873
+ if (typeof object.reactionAuthor !== "object")
95874
+ throw TypeError(".DiscussionPostReactionCreated.reactionAuthor: object expected");
95875
+ message.reactionAuthor = $root.DiscussionUser.fromObject(object.reactionAuthor);
95876
+ }
95877
+ if (object.createdAt != null)
95878
+ if ($util.Long)
95879
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
95880
+ else if (typeof object.createdAt === "string")
95881
+ message.createdAt = parseInt(object.createdAt, 10);
95882
+ else if (typeof object.createdAt === "number")
95883
+ message.createdAt = object.createdAt;
95884
+ else if (typeof object.createdAt === "object")
95885
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
95886
+ return message;
95887
+ };
95888
+
95889
+ /**
95890
+ * Creates a plain object from a DiscussionPostReactionCreated message. Also converts values to other types if specified.
95891
+ * @function toObject
95892
+ * @memberof DiscussionPostReactionCreated
95893
+ * @static
95894
+ * @param {DiscussionPostReactionCreated} message DiscussionPostReactionCreated
95895
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
95896
+ * @returns {Object.<string,*>} Plain object
95897
+ */
95898
+ DiscussionPostReactionCreated.toObject = function toObject(message, options) {
95899
+ if (!options)
95900
+ options = {};
95901
+ var object = {};
95902
+ if (options.defaults) {
95903
+ object.reactionId = "";
95904
+ object.reactionType = options.enums === String ? "REACTION_TYPE_UNKNOWN" : 0;
95905
+ object.post = null;
95906
+ object.reactionAuthor = null;
95907
+ if ($util.Long) {
95908
+ var long = new $util.Long(0, 0, true);
95909
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
95910
+ } else
95911
+ object.createdAt = options.longs === String ? "0" : 0;
95912
+ }
95913
+ if (message.reactionId != null && message.hasOwnProperty("reactionId"))
95914
+ object.reactionId = message.reactionId;
95915
+ if (message.reactionType != null && message.hasOwnProperty("reactionType"))
95916
+ object.reactionType = options.enums === String ? $root.DiscussionPostReactionCreated.ReactionType[message.reactionType] : message.reactionType;
95917
+ if (message.post != null && message.hasOwnProperty("post"))
95918
+ object.post = $root.DiscussionPost.toObject(message.post, options);
95919
+ if (message.reactionAuthor != null && message.hasOwnProperty("reactionAuthor"))
95920
+ object.reactionAuthor = $root.DiscussionUser.toObject(message.reactionAuthor, options);
95921
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
95922
+ if (typeof message.createdAt === "number")
95923
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
95924
+ else
95925
+ 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;
95926
+ return object;
95927
+ };
95928
+
95929
+ /**
95930
+ * Converts this DiscussionPostReactionCreated to JSON.
95931
+ * @function toJSON
95932
+ * @memberof DiscussionPostReactionCreated
95933
+ * @instance
95934
+ * @returns {Object.<string,*>} JSON object
95935
+ */
95936
+ DiscussionPostReactionCreated.prototype.toJSON = function toJSON() {
95937
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
95938
+ };
95939
+
95940
+ /**
95941
+ * ReactionType enum.
95942
+ * @name DiscussionPostReactionCreated.ReactionType
95943
+ * @enum {string}
95944
+ * @property {number} REACTION_TYPE_UNKNOWN=0 REACTION_TYPE_UNKNOWN value
95945
+ * @property {number} REACTION_TYPE_LOVE_THIS=1 REACTION_TYPE_LOVE_THIS value
95946
+ * @property {number} REACTION_TYPE_JUST_SAYING_HI=2 REACTION_TYPE_JUST_SAYING_HI value
95947
+ * @property {number} REACTION_TYPE_KEEP_IT_UP=3 REACTION_TYPE_KEEP_IT_UP value
95948
+ * @property {number} REACTION_TYPE_GREAT_QUESTION=4 REACTION_TYPE_GREAT_QUESTION value
95949
+ * @property {number} REACTION_TYPE_HIGH_FIVE=5 REACTION_TYPE_HIGH_FIVE value
95950
+ * @property {number} REACTION_TYPE_LOL=6 REACTION_TYPE_LOL value
95951
+ * @property {number} REACTION_TYPE_YOU_ARE_NOT_ALONE=7 REACTION_TYPE_YOU_ARE_NOT_ALONE value
95952
+ * @property {number} REACTION_TYPE_SORRY_TO_HEAR=8 REACTION_TYPE_SORRY_TO_HEAR value
95953
+ * @property {number} REACTION_TYPE_SENDING_HUGS=9 REACTION_TYPE_SENDING_HUGS value
95954
+ */
95955
+ DiscussionPostReactionCreated.ReactionType = (function() {
95956
+ var valuesById = {}, values = Object.create(valuesById);
95957
+ values[valuesById[0] = "REACTION_TYPE_UNKNOWN"] = 0;
95958
+ values[valuesById[1] = "REACTION_TYPE_LOVE_THIS"] = 1;
95959
+ values[valuesById[2] = "REACTION_TYPE_JUST_SAYING_HI"] = 2;
95960
+ values[valuesById[3] = "REACTION_TYPE_KEEP_IT_UP"] = 3;
95961
+ values[valuesById[4] = "REACTION_TYPE_GREAT_QUESTION"] = 4;
95962
+ values[valuesById[5] = "REACTION_TYPE_HIGH_FIVE"] = 5;
95963
+ values[valuesById[6] = "REACTION_TYPE_LOL"] = 6;
95964
+ values[valuesById[7] = "REACTION_TYPE_YOU_ARE_NOT_ALONE"] = 7;
95965
+ values[valuesById[8] = "REACTION_TYPE_SORRY_TO_HEAR"] = 8;
95966
+ values[valuesById[9] = "REACTION_TYPE_SENDING_HUGS"] = 9;
95967
+ return values;
95968
+ })();
95969
+
95970
+ return DiscussionPostReactionCreated;
95971
+ })();
95972
+
95165
95973
  $root.ElfNormalizationJobCompleted = (function() {
95166
95974
 
95167
95975
  /**
@@ -98217,7 +99025,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98217
99025
  * @property {string|null} [ssoType] EnterpriseUserEnrollmentCreated ssoType
98218
99026
  * @property {EnrollmentFlow|null} [enrollmentFlow] EnterpriseUserEnrollmentCreated enrollmentFlow
98219
99027
  * @property {string|null} [workEmail] EnterpriseUserEnrollmentCreated workEmail
98220
- * @property {number|Long|null} [gracePeriodEndsAt] EnterpriseUserEnrollmentCreated gracePeriodEndsAt
98221
99028
  */
98222
99029
 
98223
99030
  /**
@@ -98459,14 +99266,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98459
99266
  */
98460
99267
  EnterpriseUserEnrollmentCreated.prototype.workEmail = "";
98461
99268
 
98462
- /**
98463
- * EnterpriseUserEnrollmentCreated gracePeriodEndsAt.
98464
- * @member {number|Long} gracePeriodEndsAt
98465
- * @memberof EnterpriseUserEnrollmentCreated
98466
- * @instance
98467
- */
98468
- EnterpriseUserEnrollmentCreated.prototype.gracePeriodEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
98469
-
98470
99269
  /**
98471
99270
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
98472
99271
  * @function create
@@ -98547,8 +99346,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98547
99346
  writer.uint32(/* id 31, wireType 0 =*/248).int32(message.enrollmentFlow);
98548
99347
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
98549
99348
  writer.uint32(/* id 32, wireType 2 =*/258).string(message.workEmail);
98550
- if (message.gracePeriodEndsAt != null && message.hasOwnProperty("gracePeriodEndsAt"))
98551
- writer.uint32(/* id 33, wireType 0 =*/264).uint64(message.gracePeriodEndsAt);
98552
99349
  return writer;
98553
99350
  };
98554
99351
 
@@ -98667,9 +99464,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98667
99464
  case 32:
98668
99465
  message.workEmail = reader.string();
98669
99466
  break;
98670
- case 33:
98671
- message.gracePeriodEndsAt = reader.uint64();
98672
- break;
98673
99467
  default:
98674
99468
  reader.skipType(tag & 7);
98675
99469
  break;
@@ -98818,9 +99612,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98818
99612
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
98819
99613
  if (!$util.isString(message.workEmail))
98820
99614
  return "workEmail: string expected";
98821
- if (message.gracePeriodEndsAt != null && message.hasOwnProperty("gracePeriodEndsAt"))
98822
- if (!$util.isInteger(message.gracePeriodEndsAt) && !(message.gracePeriodEndsAt && $util.isInteger(message.gracePeriodEndsAt.low) && $util.isInteger(message.gracePeriodEndsAt.high)))
98823
- return "gracePeriodEndsAt: integer|Long expected";
98824
99615
  return null;
98825
99616
  };
98826
99617
 
@@ -98995,15 +99786,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98995
99786
  }
98996
99787
  if (object.workEmail != null)
98997
99788
  message.workEmail = String(object.workEmail);
98998
- if (object.gracePeriodEndsAt != null)
98999
- if ($util.Long)
99000
- (message.gracePeriodEndsAt = $util.Long.fromValue(object.gracePeriodEndsAt)).unsigned = true;
99001
- else if (typeof object.gracePeriodEndsAt === "string")
99002
- message.gracePeriodEndsAt = parseInt(object.gracePeriodEndsAt, 10);
99003
- else if (typeof object.gracePeriodEndsAt === "number")
99004
- message.gracePeriodEndsAt = object.gracePeriodEndsAt;
99005
- else if (typeof object.gracePeriodEndsAt === "object")
99006
- message.gracePeriodEndsAt = new $util.LongBits(object.gracePeriodEndsAt.low >>> 0, object.gracePeriodEndsAt.high >>> 0).toNumber(true);
99007
99789
  return message;
99008
99790
  };
99009
99791
 
@@ -99069,11 +99851,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
99069
99851
  object.ssoType = "";
99070
99852
  object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
99071
99853
  object.workEmail = "";
99072
- if ($util.Long) {
99073
- var long = new $util.Long(0, 0, true);
99074
- object.gracePeriodEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
99075
- } else
99076
- object.gracePeriodEndsAt = options.longs === String ? "0" : 0;
99077
99854
  }
99078
99855
  if (message.userId != null && message.hasOwnProperty("userId"))
99079
99856
  object.userId = message.userId;
@@ -99146,11 +99923,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
99146
99923
  object.enrollmentFlow = options.enums === String ? $root.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
99147
99924
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
99148
99925
  object.workEmail = message.workEmail;
99149
- if (message.gracePeriodEndsAt != null && message.hasOwnProperty("gracePeriodEndsAt"))
99150
- if (typeof message.gracePeriodEndsAt === "number")
99151
- object.gracePeriodEndsAt = options.longs === String ? String(message.gracePeriodEndsAt) : message.gracePeriodEndsAt;
99152
- else
99153
- object.gracePeriodEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.gracePeriodEndsAt) : options.longs === Number ? new $util.LongBits(message.gracePeriodEndsAt.low >>> 0, message.gracePeriodEndsAt.high >>> 0).toNumber(true) : message.gracePeriodEndsAt;
99154
99926
  return object;
99155
99927
  };
99156
99928
 
@@ -99202,7 +99974,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
99202
99974
  * @property {boolean|null} [gingerBundlingEnabled] EnterpriseUserEnrollmentRemoved gingerBundlingEnabled
99203
99975
  * @property {string|null} [ssoType] EnterpriseUserEnrollmentRemoved ssoType
99204
99976
  * @property {EnrollmentFlow|null} [enrollmentFlow] EnterpriseUserEnrollmentRemoved enrollmentFlow
99205
- * @property {number|Long|null} [gracePeriodEndsAt] EnterpriseUserEnrollmentRemoved gracePeriodEndsAt
99206
99977
  */
99207
99978
 
99208
99979
  /**
@@ -99444,14 +100215,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
99444
100215
  */
99445
100216
  EnterpriseUserEnrollmentRemoved.prototype.enrollmentFlow = 0;
99446
100217
 
99447
- /**
99448
- * EnterpriseUserEnrollmentRemoved gracePeriodEndsAt.
99449
- * @member {number|Long} gracePeriodEndsAt
99450
- * @memberof EnterpriseUserEnrollmentRemoved
99451
- * @instance
99452
- */
99453
- EnterpriseUserEnrollmentRemoved.prototype.gracePeriodEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
99454
-
99455
100218
  /**
99456
100219
  * Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
99457
100220
  * @function create
@@ -99532,8 +100295,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
99532
100295
  writer.uint32(/* id 31, wireType 2 =*/250).string(message.ssoType);
99533
100296
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
99534
100297
  writer.uint32(/* id 32, wireType 0 =*/256).int32(message.enrollmentFlow);
99535
- if (message.gracePeriodEndsAt != null && message.hasOwnProperty("gracePeriodEndsAt"))
99536
- writer.uint32(/* id 33, wireType 0 =*/264).uint64(message.gracePeriodEndsAt);
99537
100298
  return writer;
99538
100299
  };
99539
100300
 
@@ -99652,9 +100413,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
99652
100413
  case 32:
99653
100414
  message.enrollmentFlow = reader.int32();
99654
100415
  break;
99655
- case 33:
99656
- message.gracePeriodEndsAt = reader.uint64();
99657
- break;
99658
100416
  default:
99659
100417
  reader.skipType(tag & 7);
99660
100418
  break;
@@ -99818,9 +100576,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
99818
100576
  case 3:
99819
100577
  break;
99820
100578
  }
99821
- if (message.gracePeriodEndsAt != null && message.hasOwnProperty("gracePeriodEndsAt"))
99822
- if (!$util.isInteger(message.gracePeriodEndsAt) && !(message.gracePeriodEndsAt && $util.isInteger(message.gracePeriodEndsAt.low) && $util.isInteger(message.gracePeriodEndsAt.high)))
99823
- return "gracePeriodEndsAt: integer|Long expected";
99824
100579
  return null;
99825
100580
  };
99826
100581
 
@@ -100043,15 +100798,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
100043
100798
  message.enrollmentFlow = 3;
100044
100799
  break;
100045
100800
  }
100046
- if (object.gracePeriodEndsAt != null)
100047
- if ($util.Long)
100048
- (message.gracePeriodEndsAt = $util.Long.fromValue(object.gracePeriodEndsAt)).unsigned = true;
100049
- else if (typeof object.gracePeriodEndsAt === "string")
100050
- message.gracePeriodEndsAt = parseInt(object.gracePeriodEndsAt, 10);
100051
- else if (typeof object.gracePeriodEndsAt === "number")
100052
- message.gracePeriodEndsAt = object.gracePeriodEndsAt;
100053
- else if (typeof object.gracePeriodEndsAt === "object")
100054
- message.gracePeriodEndsAt = new $util.LongBits(object.gracePeriodEndsAt.low >>> 0, object.gracePeriodEndsAt.high >>> 0).toNumber(true);
100055
100801
  return message;
100056
100802
  };
100057
100803
 
@@ -100117,11 +100863,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
100117
100863
  object.gingerBundlingEnabled = false;
100118
100864
  object.ssoType = "";
100119
100865
  object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
100120
- if ($util.Long) {
100121
- var long = new $util.Long(0, 0, true);
100122
- object.gracePeriodEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
100123
- } else
100124
- object.gracePeriodEndsAt = options.longs === String ? "0" : 0;
100125
100866
  }
100126
100867
  if (message.userId != null && message.hasOwnProperty("userId"))
100127
100868
  object.userId = message.userId;
@@ -100194,11 +100935,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
100194
100935
  object.ssoType = message.ssoType;
100195
100936
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
100196
100937
  object.enrollmentFlow = options.enums === String ? $root.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
100197
- if (message.gracePeriodEndsAt != null && message.hasOwnProperty("gracePeriodEndsAt"))
100198
- if (typeof message.gracePeriodEndsAt === "number")
100199
- object.gracePeriodEndsAt = options.longs === String ? String(message.gracePeriodEndsAt) : message.gracePeriodEndsAt;
100200
- else
100201
- object.gracePeriodEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.gracePeriodEndsAt) : options.longs === Number ? new $util.LongBits(message.gracePeriodEndsAt.low >>> 0, message.gracePeriodEndsAt.high >>> 0).toNumber(true) : message.gracePeriodEndsAt;
100202
100938
  return object;
100203
100939
  };
100204
100940
 
@@ -100249,7 +100985,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
100249
100985
  * @property {boolean|null} [gingerBundlingEnabled] EnterpriseUserEnrollmentAmended gingerBundlingEnabled
100250
100986
  * @property {string|null} [ssoType] EnterpriseUserEnrollmentAmended ssoType
100251
100987
  * @property {EnrollmentFlow|null} [enrollmentFlow] EnterpriseUserEnrollmentAmended enrollmentFlow
100252
- * @property {number|Long|null} [gracePeriodEndsAt] EnterpriseUserEnrollmentAmended gracePeriodEndsAt
100253
100988
  */
100254
100989
 
100255
100990
  /**
@@ -100483,14 +101218,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
100483
101218
  */
100484
101219
  EnterpriseUserEnrollmentAmended.prototype.enrollmentFlow = 0;
100485
101220
 
100486
- /**
100487
- * EnterpriseUserEnrollmentAmended gracePeriodEndsAt.
100488
- * @member {number|Long} gracePeriodEndsAt
100489
- * @memberof EnterpriseUserEnrollmentAmended
100490
- * @instance
100491
- */
100492
- EnterpriseUserEnrollmentAmended.prototype.gracePeriodEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
100493
-
100494
101221
  /**
100495
101222
  * Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
100496
101223
  * @function create
@@ -100569,8 +101296,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
100569
101296
  writer.uint32(/* id 30, wireType 2 =*/242).string(message.ssoType);
100570
101297
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
100571
101298
  writer.uint32(/* id 31, wireType 0 =*/248).int32(message.enrollmentFlow);
100572
- if (message.gracePeriodEndsAt != null && message.hasOwnProperty("gracePeriodEndsAt"))
100573
- writer.uint32(/* id 32, wireType 0 =*/256).uint64(message.gracePeriodEndsAt);
100574
101299
  return writer;
100575
101300
  };
100576
101301
 
@@ -100686,9 +101411,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
100686
101411
  case 31:
100687
101412
  message.enrollmentFlow = reader.int32();
100688
101413
  break;
100689
- case 32:
100690
- message.gracePeriodEndsAt = reader.uint64();
100691
- break;
100692
101414
  default:
100693
101415
  reader.skipType(tag & 7);
100694
101416
  break;
@@ -100834,9 +101556,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
100834
101556
  case 3:
100835
101557
  break;
100836
101558
  }
100837
- if (message.gracePeriodEndsAt != null && message.hasOwnProperty("gracePeriodEndsAt"))
100838
- if (!$util.isInteger(message.gracePeriodEndsAt) && !(message.gracePeriodEndsAt && $util.isInteger(message.gracePeriodEndsAt.low) && $util.isInteger(message.gracePeriodEndsAt.high)))
100839
- return "gracePeriodEndsAt: integer|Long expected";
100840
101559
  return null;
100841
101560
  };
100842
101561
 
@@ -101009,15 +101728,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
101009
101728
  message.enrollmentFlow = 3;
101010
101729
  break;
101011
101730
  }
101012
- if (object.gracePeriodEndsAt != null)
101013
- if ($util.Long)
101014
- (message.gracePeriodEndsAt = $util.Long.fromValue(object.gracePeriodEndsAt)).unsigned = true;
101015
- else if (typeof object.gracePeriodEndsAt === "string")
101016
- message.gracePeriodEndsAt = parseInt(object.gracePeriodEndsAt, 10);
101017
- else if (typeof object.gracePeriodEndsAt === "number")
101018
- message.gracePeriodEndsAt = object.gracePeriodEndsAt;
101019
- else if (typeof object.gracePeriodEndsAt === "object")
101020
- message.gracePeriodEndsAt = new $util.LongBits(object.gracePeriodEndsAt.low >>> 0, object.gracePeriodEndsAt.high >>> 0).toNumber(true);
101021
101731
  return message;
101022
101732
  };
101023
101733
 
@@ -101082,11 +101792,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
101082
101792
  object.gingerBundlingEnabled = false;
101083
101793
  object.ssoType = "";
101084
101794
  object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
101085
- if ($util.Long) {
101086
- var long = new $util.Long(0, 0, true);
101087
- object.gracePeriodEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
101088
- } else
101089
- object.gracePeriodEndsAt = options.longs === String ? "0" : 0;
101090
101795
  }
101091
101796
  if (message.userId != null && message.hasOwnProperty("userId"))
101092
101797
  object.userId = message.userId;
@@ -101157,11 +101862,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
101157
101862
  object.ssoType = message.ssoType;
101158
101863
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
101159
101864
  object.enrollmentFlow = options.enums === String ? $root.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
101160
- if (message.gracePeriodEndsAt != null && message.hasOwnProperty("gracePeriodEndsAt"))
101161
- if (typeof message.gracePeriodEndsAt === "number")
101162
- object.gracePeriodEndsAt = options.longs === String ? String(message.gracePeriodEndsAt) : message.gracePeriodEndsAt;
101163
- else
101164
- object.gracePeriodEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.gracePeriodEndsAt) : options.longs === Number ? new $util.LongBits(message.gracePeriodEndsAt.low >>> 0, message.gracePeriodEndsAt.high >>> 0).toNumber(true) : message.gracePeriodEndsAt;
101165
101865
  return object;
101166
101866
  };
101167
101867