@headspace/protos-events 1.520.0 → 1.522.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 +336 -0
  2. package/lib/index.js +970 -86
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -95351,6 +95351,395 @@ $root.FamilyMemberRemoved = (function() {
95351
95351
  return FamilyMemberRemoved;
95352
95352
  })();
95353
95353
 
95354
+ $root.InviteRemoved = (function() {
95355
+
95356
+ /**
95357
+ * Properties of an InviteRemoved.
95358
+ * @name IInviteRemoved
95359
+ * @interface IInviteRemoved
95360
+ * @property {number|Long|null} [timestamp] InviteRemoved timestamp
95361
+ * @property {string|null} [email] InviteRemoved email
95362
+ * @property {string|null} [groupOwnerHsUserId] InviteRemoved groupOwnerHsUserId
95363
+ * @property {number|null} [dependentGroupId] InviteRemoved dependentGroupId
95364
+ * @property {Array.<GroupType>|null} [groupType] InviteRemoved groupType
95365
+ * @property {number|null} [orgId] InviteRemoved orgId
95366
+ * @property {number|null} [b2bOrgSubscriptionId] InviteRemoved b2bOrgSubscriptionId
95367
+ */
95368
+
95369
+ /**
95370
+ * Constructs a new InviteRemoved.
95371
+ * @name InviteRemoved
95372
+ * @classdesc Represents an InviteRemoved.
95373
+ * @implements IInviteRemoved
95374
+ * @constructor
95375
+ * @param {IInviteRemoved=} [properties] Properties to set
95376
+ */
95377
+ function InviteRemoved(properties) {
95378
+ this.groupType = [];
95379
+ if (properties)
95380
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
95381
+ if (properties[keys[i]] != null)
95382
+ this[keys[i]] = properties[keys[i]];
95383
+ }
95384
+
95385
+ /**
95386
+ * InviteRemoved timestamp.
95387
+ * @member {number|Long} timestamp
95388
+ * @memberof InviteRemoved
95389
+ * @instance
95390
+ */
95391
+ InviteRemoved.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
95392
+
95393
+ /**
95394
+ * InviteRemoved email.
95395
+ * @member {string} email
95396
+ * @memberof InviteRemoved
95397
+ * @instance
95398
+ */
95399
+ InviteRemoved.prototype.email = "";
95400
+
95401
+ /**
95402
+ * InviteRemoved groupOwnerHsUserId.
95403
+ * @member {string} groupOwnerHsUserId
95404
+ * @memberof InviteRemoved
95405
+ * @instance
95406
+ */
95407
+ InviteRemoved.prototype.groupOwnerHsUserId = "";
95408
+
95409
+ /**
95410
+ * InviteRemoved dependentGroupId.
95411
+ * @member {number} dependentGroupId
95412
+ * @memberof InviteRemoved
95413
+ * @instance
95414
+ */
95415
+ InviteRemoved.prototype.dependentGroupId = 0;
95416
+
95417
+ /**
95418
+ * InviteRemoved groupType.
95419
+ * @member {Array.<GroupType>} groupType
95420
+ * @memberof InviteRemoved
95421
+ * @instance
95422
+ */
95423
+ InviteRemoved.prototype.groupType = $util.emptyArray;
95424
+
95425
+ /**
95426
+ * InviteRemoved orgId.
95427
+ * @member {number} orgId
95428
+ * @memberof InviteRemoved
95429
+ * @instance
95430
+ */
95431
+ InviteRemoved.prototype.orgId = 0;
95432
+
95433
+ /**
95434
+ * InviteRemoved b2bOrgSubscriptionId.
95435
+ * @member {number} b2bOrgSubscriptionId
95436
+ * @memberof InviteRemoved
95437
+ * @instance
95438
+ */
95439
+ InviteRemoved.prototype.b2bOrgSubscriptionId = 0;
95440
+
95441
+ /**
95442
+ * Creates a new InviteRemoved instance using the specified properties.
95443
+ * @function create
95444
+ * @memberof InviteRemoved
95445
+ * @static
95446
+ * @param {IInviteRemoved=} [properties] Properties to set
95447
+ * @returns {InviteRemoved} InviteRemoved instance
95448
+ */
95449
+ InviteRemoved.create = function create(properties) {
95450
+ return new InviteRemoved(properties);
95451
+ };
95452
+
95453
+ /**
95454
+ * Encodes the specified InviteRemoved message. Does not implicitly {@link InviteRemoved.verify|verify} messages.
95455
+ * @function encode
95456
+ * @memberof InviteRemoved
95457
+ * @static
95458
+ * @param {IInviteRemoved} message InviteRemoved message or plain object to encode
95459
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95460
+ * @returns {$protobuf.Writer} Writer
95461
+ */
95462
+ InviteRemoved.encode = function encode(message, writer) {
95463
+ if (!writer)
95464
+ writer = $Writer.create();
95465
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
95466
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
95467
+ if (message.email != null && message.hasOwnProperty("email"))
95468
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
95469
+ if (message.groupOwnerHsUserId != null && message.hasOwnProperty("groupOwnerHsUserId"))
95470
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.groupOwnerHsUserId);
95471
+ if (message.dependentGroupId != null && message.hasOwnProperty("dependentGroupId"))
95472
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.dependentGroupId);
95473
+ if (message.groupType != null && message.groupType.length) {
95474
+ writer.uint32(/* id 5, wireType 2 =*/42).fork();
95475
+ for (var i = 0; i < message.groupType.length; ++i)
95476
+ writer.int32(message.groupType[i]);
95477
+ writer.ldelim();
95478
+ }
95479
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
95480
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.orgId);
95481
+ if (message.b2bOrgSubscriptionId != null && message.hasOwnProperty("b2bOrgSubscriptionId"))
95482
+ writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.b2bOrgSubscriptionId);
95483
+ return writer;
95484
+ };
95485
+
95486
+ /**
95487
+ * Encodes the specified InviteRemoved message, length delimited. Does not implicitly {@link InviteRemoved.verify|verify} messages.
95488
+ * @function encodeDelimited
95489
+ * @memberof InviteRemoved
95490
+ * @static
95491
+ * @param {IInviteRemoved} message InviteRemoved message or plain object to encode
95492
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95493
+ * @returns {$protobuf.Writer} Writer
95494
+ */
95495
+ InviteRemoved.encodeDelimited = function encodeDelimited(message, writer) {
95496
+ return this.encode(message, writer).ldelim();
95497
+ };
95498
+
95499
+ /**
95500
+ * Decodes an InviteRemoved message from the specified reader or buffer.
95501
+ * @function decode
95502
+ * @memberof InviteRemoved
95503
+ * @static
95504
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95505
+ * @param {number} [length] Message length if known beforehand
95506
+ * @returns {InviteRemoved} InviteRemoved
95507
+ * @throws {Error} If the payload is not a reader or valid buffer
95508
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95509
+ */
95510
+ InviteRemoved.decode = function decode(reader, length) {
95511
+ if (!(reader instanceof $Reader))
95512
+ reader = $Reader.create(reader);
95513
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InviteRemoved();
95514
+ while (reader.pos < end) {
95515
+ var tag = reader.uint32();
95516
+ switch (tag >>> 3) {
95517
+ case 1:
95518
+ message.timestamp = reader.uint64();
95519
+ break;
95520
+ case 2:
95521
+ message.email = reader.string();
95522
+ break;
95523
+ case 3:
95524
+ message.groupOwnerHsUserId = reader.string();
95525
+ break;
95526
+ case 4:
95527
+ message.dependentGroupId = reader.uint32();
95528
+ break;
95529
+ case 5:
95530
+ if (!(message.groupType && message.groupType.length))
95531
+ message.groupType = [];
95532
+ if ((tag & 7) === 2) {
95533
+ var end2 = reader.uint32() + reader.pos;
95534
+ while (reader.pos < end2)
95535
+ message.groupType.push(reader.int32());
95536
+ } else
95537
+ message.groupType.push(reader.int32());
95538
+ break;
95539
+ case 6:
95540
+ message.orgId = reader.int32();
95541
+ break;
95542
+ case 7:
95543
+ message.b2bOrgSubscriptionId = reader.uint32();
95544
+ break;
95545
+ default:
95546
+ reader.skipType(tag & 7);
95547
+ break;
95548
+ }
95549
+ }
95550
+ return message;
95551
+ };
95552
+
95553
+ /**
95554
+ * Decodes an InviteRemoved message from the specified reader or buffer, length delimited.
95555
+ * @function decodeDelimited
95556
+ * @memberof InviteRemoved
95557
+ * @static
95558
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95559
+ * @returns {InviteRemoved} InviteRemoved
95560
+ * @throws {Error} If the payload is not a reader or valid buffer
95561
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95562
+ */
95563
+ InviteRemoved.decodeDelimited = function decodeDelimited(reader) {
95564
+ if (!(reader instanceof $Reader))
95565
+ reader = new $Reader(reader);
95566
+ return this.decode(reader, reader.uint32());
95567
+ };
95568
+
95569
+ /**
95570
+ * Verifies an InviteRemoved message.
95571
+ * @function verify
95572
+ * @memberof InviteRemoved
95573
+ * @static
95574
+ * @param {Object.<string,*>} message Plain object to verify
95575
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
95576
+ */
95577
+ InviteRemoved.verify = function verify(message) {
95578
+ if (typeof message !== "object" || message === null)
95579
+ return "object expected";
95580
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
95581
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
95582
+ return "timestamp: integer|Long expected";
95583
+ if (message.email != null && message.hasOwnProperty("email"))
95584
+ if (!$util.isString(message.email))
95585
+ return "email: string expected";
95586
+ if (message.groupOwnerHsUserId != null && message.hasOwnProperty("groupOwnerHsUserId"))
95587
+ if (!$util.isString(message.groupOwnerHsUserId))
95588
+ return "groupOwnerHsUserId: string expected";
95589
+ if (message.dependentGroupId != null && message.hasOwnProperty("dependentGroupId"))
95590
+ if (!$util.isInteger(message.dependentGroupId))
95591
+ return "dependentGroupId: integer expected";
95592
+ if (message.groupType != null && message.hasOwnProperty("groupType")) {
95593
+ if (!Array.isArray(message.groupType))
95594
+ return "groupType: array expected";
95595
+ for (var i = 0; i < message.groupType.length; ++i)
95596
+ switch (message.groupType[i]) {
95597
+ default:
95598
+ return "groupType: enum value[] expected";
95599
+ case 0:
95600
+ case 1:
95601
+ case 2:
95602
+ case 3:
95603
+ case 4:
95604
+ break;
95605
+ }
95606
+ }
95607
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
95608
+ if (!$util.isInteger(message.orgId))
95609
+ return "orgId: integer expected";
95610
+ if (message.b2bOrgSubscriptionId != null && message.hasOwnProperty("b2bOrgSubscriptionId"))
95611
+ if (!$util.isInteger(message.b2bOrgSubscriptionId))
95612
+ return "b2bOrgSubscriptionId: integer expected";
95613
+ return null;
95614
+ };
95615
+
95616
+ /**
95617
+ * Creates an InviteRemoved message from a plain object. Also converts values to their respective internal types.
95618
+ * @function fromObject
95619
+ * @memberof InviteRemoved
95620
+ * @static
95621
+ * @param {Object.<string,*>} object Plain object
95622
+ * @returns {InviteRemoved} InviteRemoved
95623
+ */
95624
+ InviteRemoved.fromObject = function fromObject(object) {
95625
+ if (object instanceof $root.InviteRemoved)
95626
+ return object;
95627
+ var message = new $root.InviteRemoved();
95628
+ if (object.timestamp != null)
95629
+ if ($util.Long)
95630
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
95631
+ else if (typeof object.timestamp === "string")
95632
+ message.timestamp = parseInt(object.timestamp, 10);
95633
+ else if (typeof object.timestamp === "number")
95634
+ message.timestamp = object.timestamp;
95635
+ else if (typeof object.timestamp === "object")
95636
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
95637
+ if (object.email != null)
95638
+ message.email = String(object.email);
95639
+ if (object.groupOwnerHsUserId != null)
95640
+ message.groupOwnerHsUserId = String(object.groupOwnerHsUserId);
95641
+ if (object.dependentGroupId != null)
95642
+ message.dependentGroupId = object.dependentGroupId >>> 0;
95643
+ if (object.groupType) {
95644
+ if (!Array.isArray(object.groupType))
95645
+ throw TypeError(".InviteRemoved.groupType: array expected");
95646
+ message.groupType = [];
95647
+ for (var i = 0; i < object.groupType.length; ++i)
95648
+ switch (object.groupType[i]) {
95649
+ default:
95650
+ case "GROUP_TYPE_UNKNOWN":
95651
+ case 0:
95652
+ message.groupType[i] = 0;
95653
+ break;
95654
+ case "GROUP_TYPE_D2C":
95655
+ case 1:
95656
+ message.groupType[i] = 1;
95657
+ break;
95658
+ case "GROUP_TYPE_PFP":
95659
+ case 2:
95660
+ message.groupType[i] = 2;
95661
+ break;
95662
+ case "GROUP_TYPE_FUSION":
95663
+ case 3:
95664
+ message.groupType[i] = 3;
95665
+ break;
95666
+ case "GROUP_TYPE_EAP":
95667
+ case 4:
95668
+ message.groupType[i] = 4;
95669
+ break;
95670
+ }
95671
+ }
95672
+ if (object.orgId != null)
95673
+ message.orgId = object.orgId | 0;
95674
+ if (object.b2bOrgSubscriptionId != null)
95675
+ message.b2bOrgSubscriptionId = object.b2bOrgSubscriptionId >>> 0;
95676
+ return message;
95677
+ };
95678
+
95679
+ /**
95680
+ * Creates a plain object from an InviteRemoved message. Also converts values to other types if specified.
95681
+ * @function toObject
95682
+ * @memberof InviteRemoved
95683
+ * @static
95684
+ * @param {InviteRemoved} message InviteRemoved
95685
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
95686
+ * @returns {Object.<string,*>} Plain object
95687
+ */
95688
+ InviteRemoved.toObject = function toObject(message, options) {
95689
+ if (!options)
95690
+ options = {};
95691
+ var object = {};
95692
+ if (options.arrays || options.defaults)
95693
+ object.groupType = [];
95694
+ if (options.defaults) {
95695
+ if ($util.Long) {
95696
+ var long = new $util.Long(0, 0, true);
95697
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
95698
+ } else
95699
+ object.timestamp = options.longs === String ? "0" : 0;
95700
+ object.email = "";
95701
+ object.groupOwnerHsUserId = "";
95702
+ object.dependentGroupId = 0;
95703
+ object.orgId = 0;
95704
+ object.b2bOrgSubscriptionId = 0;
95705
+ }
95706
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
95707
+ if (typeof message.timestamp === "number")
95708
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
95709
+ else
95710
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
95711
+ if (message.email != null && message.hasOwnProperty("email"))
95712
+ object.email = message.email;
95713
+ if (message.groupOwnerHsUserId != null && message.hasOwnProperty("groupOwnerHsUserId"))
95714
+ object.groupOwnerHsUserId = message.groupOwnerHsUserId;
95715
+ if (message.dependentGroupId != null && message.hasOwnProperty("dependentGroupId"))
95716
+ object.dependentGroupId = message.dependentGroupId;
95717
+ if (message.groupType && message.groupType.length) {
95718
+ object.groupType = [];
95719
+ for (var j = 0; j < message.groupType.length; ++j)
95720
+ object.groupType[j] = options.enums === String ? $root.GroupType[message.groupType[j]] : message.groupType[j];
95721
+ }
95722
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
95723
+ object.orgId = message.orgId;
95724
+ if (message.b2bOrgSubscriptionId != null && message.hasOwnProperty("b2bOrgSubscriptionId"))
95725
+ object.b2bOrgSubscriptionId = message.b2bOrgSubscriptionId;
95726
+ return object;
95727
+ };
95728
+
95729
+ /**
95730
+ * Converts this InviteRemoved to JSON.
95731
+ * @function toJSON
95732
+ * @memberof InviteRemoved
95733
+ * @instance
95734
+ * @returns {Object.<string,*>} JSON object
95735
+ */
95736
+ InviteRemoved.prototype.toJSON = function toJSON() {
95737
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
95738
+ };
95739
+
95740
+ return InviteRemoved;
95741
+ })();
95742
+
95354
95743
  $root.VoiceDeviceConnected = (function() {
95355
95744
 
95356
95745
  /**
@@ -96294,38 +96683,248 @@ $root.UserEnabledWakeupNotifications = (function() {
96294
96683
  };
96295
96684
 
96296
96685
  /**
96297
- * Converts this UserEnabledWakeupNotifications to JSON.
96686
+ * Converts this UserEnabledWakeupNotifications to JSON.
96687
+ * @function toJSON
96688
+ * @memberof UserEnabledWakeupNotifications
96689
+ * @instance
96690
+ * @returns {Object.<string,*>} JSON object
96691
+ */
96692
+ UserEnabledWakeupNotifications.prototype.toJSON = function toJSON() {
96693
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
96694
+ };
96695
+
96696
+ return UserEnabledWakeupNotifications;
96697
+ })();
96698
+
96699
+ $root.DiscussionUser = (function() {
96700
+
96701
+ /**
96702
+ * Properties of a DiscussionUser.
96703
+ * @name IDiscussionUser
96704
+ * @interface IDiscussionUser
96705
+ * @property {string|null} [userId] DiscussionUser userId
96706
+ * @property {string|null} [displayName] DiscussionUser displayName
96707
+ */
96708
+
96709
+ /**
96710
+ * Constructs a new DiscussionUser.
96711
+ * @name DiscussionUser
96712
+ * @classdesc Represents a DiscussionUser.
96713
+ * @implements IDiscussionUser
96714
+ * @constructor
96715
+ * @param {IDiscussionUser=} [properties] Properties to set
96716
+ */
96717
+ function DiscussionUser(properties) {
96718
+ if (properties)
96719
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
96720
+ if (properties[keys[i]] != null)
96721
+ this[keys[i]] = properties[keys[i]];
96722
+ }
96723
+
96724
+ /**
96725
+ * DiscussionUser userId.
96726
+ * @member {string} userId
96727
+ * @memberof DiscussionUser
96728
+ * @instance
96729
+ */
96730
+ DiscussionUser.prototype.userId = "";
96731
+
96732
+ /**
96733
+ * DiscussionUser displayName.
96734
+ * @member {string} displayName
96735
+ * @memberof DiscussionUser
96736
+ * @instance
96737
+ */
96738
+ DiscussionUser.prototype.displayName = "";
96739
+
96740
+ /**
96741
+ * Creates a new DiscussionUser instance using the specified properties.
96742
+ * @function create
96743
+ * @memberof DiscussionUser
96744
+ * @static
96745
+ * @param {IDiscussionUser=} [properties] Properties to set
96746
+ * @returns {DiscussionUser} DiscussionUser instance
96747
+ */
96748
+ DiscussionUser.create = function create(properties) {
96749
+ return new DiscussionUser(properties);
96750
+ };
96751
+
96752
+ /**
96753
+ * Encodes the specified DiscussionUser message. Does not implicitly {@link DiscussionUser.verify|verify} messages.
96754
+ * @function encode
96755
+ * @memberof DiscussionUser
96756
+ * @static
96757
+ * @param {IDiscussionUser} message DiscussionUser message or plain object to encode
96758
+ * @param {$protobuf.Writer} [writer] Writer to encode to
96759
+ * @returns {$protobuf.Writer} Writer
96760
+ */
96761
+ DiscussionUser.encode = function encode(message, writer) {
96762
+ if (!writer)
96763
+ writer = $Writer.create();
96764
+ if (message.userId != null && message.hasOwnProperty("userId"))
96765
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
96766
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
96767
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
96768
+ return writer;
96769
+ };
96770
+
96771
+ /**
96772
+ * Encodes the specified DiscussionUser message, length delimited. Does not implicitly {@link DiscussionUser.verify|verify} messages.
96773
+ * @function encodeDelimited
96774
+ * @memberof DiscussionUser
96775
+ * @static
96776
+ * @param {IDiscussionUser} message DiscussionUser message or plain object to encode
96777
+ * @param {$protobuf.Writer} [writer] Writer to encode to
96778
+ * @returns {$protobuf.Writer} Writer
96779
+ */
96780
+ DiscussionUser.encodeDelimited = function encodeDelimited(message, writer) {
96781
+ return this.encode(message, writer).ldelim();
96782
+ };
96783
+
96784
+ /**
96785
+ * Decodes a DiscussionUser message from the specified reader or buffer.
96786
+ * @function decode
96787
+ * @memberof DiscussionUser
96788
+ * @static
96789
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
96790
+ * @param {number} [length] Message length if known beforehand
96791
+ * @returns {DiscussionUser} DiscussionUser
96792
+ * @throws {Error} If the payload is not a reader or valid buffer
96793
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
96794
+ */
96795
+ DiscussionUser.decode = function decode(reader, length) {
96796
+ if (!(reader instanceof $Reader))
96797
+ reader = $Reader.create(reader);
96798
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionUser();
96799
+ while (reader.pos < end) {
96800
+ var tag = reader.uint32();
96801
+ switch (tag >>> 3) {
96802
+ case 1:
96803
+ message.userId = reader.string();
96804
+ break;
96805
+ case 2:
96806
+ message.displayName = reader.string();
96807
+ break;
96808
+ default:
96809
+ reader.skipType(tag & 7);
96810
+ break;
96811
+ }
96812
+ }
96813
+ return message;
96814
+ };
96815
+
96816
+ /**
96817
+ * Decodes a DiscussionUser message from the specified reader or buffer, length delimited.
96818
+ * @function decodeDelimited
96819
+ * @memberof DiscussionUser
96820
+ * @static
96821
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
96822
+ * @returns {DiscussionUser} DiscussionUser
96823
+ * @throws {Error} If the payload is not a reader or valid buffer
96824
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
96825
+ */
96826
+ DiscussionUser.decodeDelimited = function decodeDelimited(reader) {
96827
+ if (!(reader instanceof $Reader))
96828
+ reader = new $Reader(reader);
96829
+ return this.decode(reader, reader.uint32());
96830
+ };
96831
+
96832
+ /**
96833
+ * Verifies a DiscussionUser message.
96834
+ * @function verify
96835
+ * @memberof DiscussionUser
96836
+ * @static
96837
+ * @param {Object.<string,*>} message Plain object to verify
96838
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
96839
+ */
96840
+ DiscussionUser.verify = function verify(message) {
96841
+ if (typeof message !== "object" || message === null)
96842
+ return "object expected";
96843
+ if (message.userId != null && message.hasOwnProperty("userId"))
96844
+ if (!$util.isString(message.userId))
96845
+ return "userId: string expected";
96846
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
96847
+ if (!$util.isString(message.displayName))
96848
+ return "displayName: string expected";
96849
+ return null;
96850
+ };
96851
+
96852
+ /**
96853
+ * Creates a DiscussionUser message from a plain object. Also converts values to their respective internal types.
96854
+ * @function fromObject
96855
+ * @memberof DiscussionUser
96856
+ * @static
96857
+ * @param {Object.<string,*>} object Plain object
96858
+ * @returns {DiscussionUser} DiscussionUser
96859
+ */
96860
+ DiscussionUser.fromObject = function fromObject(object) {
96861
+ if (object instanceof $root.DiscussionUser)
96862
+ return object;
96863
+ var message = new $root.DiscussionUser();
96864
+ if (object.userId != null)
96865
+ message.userId = String(object.userId);
96866
+ if (object.displayName != null)
96867
+ message.displayName = String(object.displayName);
96868
+ return message;
96869
+ };
96870
+
96871
+ /**
96872
+ * Creates a plain object from a DiscussionUser message. Also converts values to other types if specified.
96873
+ * @function toObject
96874
+ * @memberof DiscussionUser
96875
+ * @static
96876
+ * @param {DiscussionUser} message DiscussionUser
96877
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
96878
+ * @returns {Object.<string,*>} Plain object
96879
+ */
96880
+ DiscussionUser.toObject = function toObject(message, options) {
96881
+ if (!options)
96882
+ options = {};
96883
+ var object = {};
96884
+ if (options.defaults) {
96885
+ object.userId = "";
96886
+ object.displayName = "";
96887
+ }
96888
+ if (message.userId != null && message.hasOwnProperty("userId"))
96889
+ object.userId = message.userId;
96890
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
96891
+ object.displayName = message.displayName;
96892
+ return object;
96893
+ };
96894
+
96895
+ /**
96896
+ * Converts this DiscussionUser to JSON.
96298
96897
  * @function toJSON
96299
- * @memberof UserEnabledWakeupNotifications
96898
+ * @memberof DiscussionUser
96300
96899
  * @instance
96301
96900
  * @returns {Object.<string,*>} JSON object
96302
96901
  */
96303
- UserEnabledWakeupNotifications.prototype.toJSON = function toJSON() {
96902
+ DiscussionUser.prototype.toJSON = function toJSON() {
96304
96903
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
96305
96904
  };
96306
96905
 
96307
- return UserEnabledWakeupNotifications;
96906
+ return DiscussionUser;
96308
96907
  })();
96309
96908
 
96310
- $root.DiscussionUser = (function() {
96909
+ $root.CourseInfo = (function() {
96311
96910
 
96312
96911
  /**
96313
- * Properties of a DiscussionUser.
96314
- * @name IDiscussionUser
96315
- * @interface IDiscussionUser
96316
- * @property {string|null} [userId] DiscussionUser userId
96317
- * @property {string|null} [displayName] DiscussionUser displayName
96912
+ * Properties of a CourseInfo.
96913
+ * @name ICourseInfo
96914
+ * @interface ICourseInfo
96915
+ * @property {string|null} [courseId] CourseInfo courseId
96916
+ * @property {string|null} [courseName] CourseInfo courseName
96318
96917
  */
96319
96918
 
96320
96919
  /**
96321
- * Constructs a new DiscussionUser.
96322
- * @name DiscussionUser
96323
- * @classdesc Represents a DiscussionUser.
96324
- * @implements IDiscussionUser
96920
+ * Constructs a new CourseInfo.
96921
+ * @name CourseInfo
96922
+ * @classdesc Represents a CourseInfo.
96923
+ * @implements ICourseInfo
96325
96924
  * @constructor
96326
- * @param {IDiscussionUser=} [properties] Properties to set
96925
+ * @param {ICourseInfo=} [properties] Properties to set
96327
96926
  */
96328
- function DiscussionUser(properties) {
96927
+ function CourseInfo(properties) {
96329
96928
  if (properties)
96330
96929
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
96331
96930
  if (properties[keys[i]] != null)
@@ -96333,88 +96932,88 @@ $root.DiscussionUser = (function() {
96333
96932
  }
96334
96933
 
96335
96934
  /**
96336
- * DiscussionUser userId.
96337
- * @member {string} userId
96338
- * @memberof DiscussionUser
96935
+ * CourseInfo courseId.
96936
+ * @member {string} courseId
96937
+ * @memberof CourseInfo
96339
96938
  * @instance
96340
96939
  */
96341
- DiscussionUser.prototype.userId = "";
96940
+ CourseInfo.prototype.courseId = "";
96342
96941
 
96343
96942
  /**
96344
- * DiscussionUser displayName.
96345
- * @member {string} displayName
96346
- * @memberof DiscussionUser
96943
+ * CourseInfo courseName.
96944
+ * @member {string} courseName
96945
+ * @memberof CourseInfo
96347
96946
  * @instance
96348
96947
  */
96349
- DiscussionUser.prototype.displayName = "";
96948
+ CourseInfo.prototype.courseName = "";
96350
96949
 
96351
96950
  /**
96352
- * Creates a new DiscussionUser instance using the specified properties.
96951
+ * Creates a new CourseInfo instance using the specified properties.
96353
96952
  * @function create
96354
- * @memberof DiscussionUser
96953
+ * @memberof CourseInfo
96355
96954
  * @static
96356
- * @param {IDiscussionUser=} [properties] Properties to set
96357
- * @returns {DiscussionUser} DiscussionUser instance
96955
+ * @param {ICourseInfo=} [properties] Properties to set
96956
+ * @returns {CourseInfo} CourseInfo instance
96358
96957
  */
96359
- DiscussionUser.create = function create(properties) {
96360
- return new DiscussionUser(properties);
96958
+ CourseInfo.create = function create(properties) {
96959
+ return new CourseInfo(properties);
96361
96960
  };
96362
96961
 
96363
96962
  /**
96364
- * Encodes the specified DiscussionUser message. Does not implicitly {@link DiscussionUser.verify|verify} messages.
96963
+ * Encodes the specified CourseInfo message. Does not implicitly {@link CourseInfo.verify|verify} messages.
96365
96964
  * @function encode
96366
- * @memberof DiscussionUser
96965
+ * @memberof CourseInfo
96367
96966
  * @static
96368
- * @param {IDiscussionUser} message DiscussionUser message or plain object to encode
96967
+ * @param {ICourseInfo} message CourseInfo message or plain object to encode
96369
96968
  * @param {$protobuf.Writer} [writer] Writer to encode to
96370
96969
  * @returns {$protobuf.Writer} Writer
96371
96970
  */
96372
- DiscussionUser.encode = function encode(message, writer) {
96971
+ CourseInfo.encode = function encode(message, writer) {
96373
96972
  if (!writer)
96374
96973
  writer = $Writer.create();
96375
- if (message.userId != null && message.hasOwnProperty("userId"))
96376
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
96377
- if (message.displayName != null && message.hasOwnProperty("displayName"))
96378
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
96974
+ if (message.courseId != null && message.hasOwnProperty("courseId"))
96975
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.courseId);
96976
+ if (message.courseName != null && message.hasOwnProperty("courseName"))
96977
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.courseName);
96379
96978
  return writer;
96380
96979
  };
96381
96980
 
96382
96981
  /**
96383
- * Encodes the specified DiscussionUser message, length delimited. Does not implicitly {@link DiscussionUser.verify|verify} messages.
96982
+ * Encodes the specified CourseInfo message, length delimited. Does not implicitly {@link CourseInfo.verify|verify} messages.
96384
96983
  * @function encodeDelimited
96385
- * @memberof DiscussionUser
96984
+ * @memberof CourseInfo
96386
96985
  * @static
96387
- * @param {IDiscussionUser} message DiscussionUser message or plain object to encode
96986
+ * @param {ICourseInfo} message CourseInfo message or plain object to encode
96388
96987
  * @param {$protobuf.Writer} [writer] Writer to encode to
96389
96988
  * @returns {$protobuf.Writer} Writer
96390
96989
  */
96391
- DiscussionUser.encodeDelimited = function encodeDelimited(message, writer) {
96990
+ CourseInfo.encodeDelimited = function encodeDelimited(message, writer) {
96392
96991
  return this.encode(message, writer).ldelim();
96393
96992
  };
96394
96993
 
96395
96994
  /**
96396
- * Decodes a DiscussionUser message from the specified reader or buffer.
96995
+ * Decodes a CourseInfo message from the specified reader or buffer.
96397
96996
  * @function decode
96398
- * @memberof DiscussionUser
96997
+ * @memberof CourseInfo
96399
96998
  * @static
96400
96999
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
96401
97000
  * @param {number} [length] Message length if known beforehand
96402
- * @returns {DiscussionUser} DiscussionUser
97001
+ * @returns {CourseInfo} CourseInfo
96403
97002
  * @throws {Error} If the payload is not a reader or valid buffer
96404
97003
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
96405
97004
  */
96406
- DiscussionUser.decode = function decode(reader, length) {
97005
+ CourseInfo.decode = function decode(reader, length) {
96407
97006
  if (!(reader instanceof $Reader))
96408
97007
  reader = $Reader.create(reader);
96409
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionUser();
97008
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CourseInfo();
96410
97009
  while (reader.pos < end) {
96411
97010
  var tag = reader.uint32();
96412
97011
  switch (tag >>> 3) {
96413
97012
  case 1:
96414
- message.userId = reader.string();
97013
+ message.courseId = reader.string();
96415
97014
  break;
96416
97015
  case 2:
96417
- message.displayName = reader.string();
97016
+ message.courseName = reader.string();
96418
97017
  break;
96419
97018
  default:
96420
97019
  reader.skipType(tag & 7);
@@ -96425,96 +97024,96 @@ $root.DiscussionUser = (function() {
96425
97024
  };
96426
97025
 
96427
97026
  /**
96428
- * Decodes a DiscussionUser message from the specified reader or buffer, length delimited.
97027
+ * Decodes a CourseInfo message from the specified reader or buffer, length delimited.
96429
97028
  * @function decodeDelimited
96430
- * @memberof DiscussionUser
97029
+ * @memberof CourseInfo
96431
97030
  * @static
96432
97031
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
96433
- * @returns {DiscussionUser} DiscussionUser
97032
+ * @returns {CourseInfo} CourseInfo
96434
97033
  * @throws {Error} If the payload is not a reader or valid buffer
96435
97034
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
96436
97035
  */
96437
- DiscussionUser.decodeDelimited = function decodeDelimited(reader) {
97036
+ CourseInfo.decodeDelimited = function decodeDelimited(reader) {
96438
97037
  if (!(reader instanceof $Reader))
96439
97038
  reader = new $Reader(reader);
96440
97039
  return this.decode(reader, reader.uint32());
96441
97040
  };
96442
97041
 
96443
97042
  /**
96444
- * Verifies a DiscussionUser message.
97043
+ * Verifies a CourseInfo message.
96445
97044
  * @function verify
96446
- * @memberof DiscussionUser
97045
+ * @memberof CourseInfo
96447
97046
  * @static
96448
97047
  * @param {Object.<string,*>} message Plain object to verify
96449
97048
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
96450
97049
  */
96451
- DiscussionUser.verify = function verify(message) {
97050
+ CourseInfo.verify = function verify(message) {
96452
97051
  if (typeof message !== "object" || message === null)
96453
97052
  return "object expected";
96454
- if (message.userId != null && message.hasOwnProperty("userId"))
96455
- if (!$util.isString(message.userId))
96456
- return "userId: string expected";
96457
- if (message.displayName != null && message.hasOwnProperty("displayName"))
96458
- if (!$util.isString(message.displayName))
96459
- return "displayName: string expected";
97053
+ if (message.courseId != null && message.hasOwnProperty("courseId"))
97054
+ if (!$util.isString(message.courseId))
97055
+ return "courseId: string expected";
97056
+ if (message.courseName != null && message.hasOwnProperty("courseName"))
97057
+ if (!$util.isString(message.courseName))
97058
+ return "courseName: string expected";
96460
97059
  return null;
96461
97060
  };
96462
97061
 
96463
97062
  /**
96464
- * Creates a DiscussionUser message from a plain object. Also converts values to their respective internal types.
97063
+ * Creates a CourseInfo message from a plain object. Also converts values to their respective internal types.
96465
97064
  * @function fromObject
96466
- * @memberof DiscussionUser
97065
+ * @memberof CourseInfo
96467
97066
  * @static
96468
97067
  * @param {Object.<string,*>} object Plain object
96469
- * @returns {DiscussionUser} DiscussionUser
97068
+ * @returns {CourseInfo} CourseInfo
96470
97069
  */
96471
- DiscussionUser.fromObject = function fromObject(object) {
96472
- if (object instanceof $root.DiscussionUser)
97070
+ CourseInfo.fromObject = function fromObject(object) {
97071
+ if (object instanceof $root.CourseInfo)
96473
97072
  return object;
96474
- var message = new $root.DiscussionUser();
96475
- if (object.userId != null)
96476
- message.userId = String(object.userId);
96477
- if (object.displayName != null)
96478
- message.displayName = String(object.displayName);
97073
+ var message = new $root.CourseInfo();
97074
+ if (object.courseId != null)
97075
+ message.courseId = String(object.courseId);
97076
+ if (object.courseName != null)
97077
+ message.courseName = String(object.courseName);
96479
97078
  return message;
96480
97079
  };
96481
97080
 
96482
97081
  /**
96483
- * Creates a plain object from a DiscussionUser message. Also converts values to other types if specified.
97082
+ * Creates a plain object from a CourseInfo message. Also converts values to other types if specified.
96484
97083
  * @function toObject
96485
- * @memberof DiscussionUser
97084
+ * @memberof CourseInfo
96486
97085
  * @static
96487
- * @param {DiscussionUser} message DiscussionUser
97086
+ * @param {CourseInfo} message CourseInfo
96488
97087
  * @param {$protobuf.IConversionOptions} [options] Conversion options
96489
97088
  * @returns {Object.<string,*>} Plain object
96490
97089
  */
96491
- DiscussionUser.toObject = function toObject(message, options) {
97090
+ CourseInfo.toObject = function toObject(message, options) {
96492
97091
  if (!options)
96493
97092
  options = {};
96494
97093
  var object = {};
96495
97094
  if (options.defaults) {
96496
- object.userId = "";
96497
- object.displayName = "";
97095
+ object.courseId = "";
97096
+ object.courseName = "";
96498
97097
  }
96499
- if (message.userId != null && message.hasOwnProperty("userId"))
96500
- object.userId = message.userId;
96501
- if (message.displayName != null && message.hasOwnProperty("displayName"))
96502
- object.displayName = message.displayName;
97098
+ if (message.courseId != null && message.hasOwnProperty("courseId"))
97099
+ object.courseId = message.courseId;
97100
+ if (message.courseName != null && message.hasOwnProperty("courseName"))
97101
+ object.courseName = message.courseName;
96503
97102
  return object;
96504
97103
  };
96505
97104
 
96506
97105
  /**
96507
- * Converts this DiscussionUser to JSON.
97106
+ * Converts this CourseInfo to JSON.
96508
97107
  * @function toJSON
96509
- * @memberof DiscussionUser
97108
+ * @memberof CourseInfo
96510
97109
  * @instance
96511
97110
  * @returns {Object.<string,*>} JSON object
96512
97111
  */
96513
- DiscussionUser.prototype.toJSON = function toJSON() {
97112
+ CourseInfo.prototype.toJSON = function toJSON() {
96514
97113
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
96515
97114
  };
96516
97115
 
96517
- return DiscussionUser;
97116
+ return CourseInfo;
96518
97117
  })();
96519
97118
 
96520
97119
  $root.DiscussionPost = (function() {
@@ -96525,6 +97124,10 @@ $root.DiscussionPost = (function() {
96525
97124
  * @interface IDiscussionPost
96526
97125
  * @property {string|null} [id] DiscussionPost id
96527
97126
  * @property {IDiscussionUser|null} [author] DiscussionPost author
97127
+ * @property {ICourseInfo|null} [courseInfo] DiscussionPost courseInfo
97128
+ * @property {string|null} [parentId] DiscussionPost parentId
97129
+ * @property {string|null} [discussionGroupId] DiscussionPost discussionGroupId
97130
+ * @property {string|null} [messageBody] DiscussionPost messageBody
96528
97131
  */
96529
97132
 
96530
97133
  /**
@@ -96558,6 +97161,38 @@ $root.DiscussionPost = (function() {
96558
97161
  */
96559
97162
  DiscussionPost.prototype.author = null;
96560
97163
 
97164
+ /**
97165
+ * DiscussionPost courseInfo.
97166
+ * @member {ICourseInfo|null|undefined} courseInfo
97167
+ * @memberof DiscussionPost
97168
+ * @instance
97169
+ */
97170
+ DiscussionPost.prototype.courseInfo = null;
97171
+
97172
+ /**
97173
+ * DiscussionPost parentId.
97174
+ * @member {string} parentId
97175
+ * @memberof DiscussionPost
97176
+ * @instance
97177
+ */
97178
+ DiscussionPost.prototype.parentId = "";
97179
+
97180
+ /**
97181
+ * DiscussionPost discussionGroupId.
97182
+ * @member {string} discussionGroupId
97183
+ * @memberof DiscussionPost
97184
+ * @instance
97185
+ */
97186
+ DiscussionPost.prototype.discussionGroupId = "";
97187
+
97188
+ /**
97189
+ * DiscussionPost messageBody.
97190
+ * @member {string} messageBody
97191
+ * @memberof DiscussionPost
97192
+ * @instance
97193
+ */
97194
+ DiscussionPost.prototype.messageBody = "";
97195
+
96561
97196
  /**
96562
97197
  * Creates a new DiscussionPost instance using the specified properties.
96563
97198
  * @function create
@@ -96586,6 +97221,14 @@ $root.DiscussionPost = (function() {
96586
97221
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
96587
97222
  if (message.author != null && message.hasOwnProperty("author"))
96588
97223
  $root.DiscussionUser.encode(message.author, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
97224
+ if (message.courseInfo != null && message.hasOwnProperty("courseInfo"))
97225
+ $root.CourseInfo.encode(message.courseInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
97226
+ if (message.parentId != null && message.hasOwnProperty("parentId"))
97227
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.parentId);
97228
+ if (message.discussionGroupId != null && message.hasOwnProperty("discussionGroupId"))
97229
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.discussionGroupId);
97230
+ if (message.messageBody != null && message.hasOwnProperty("messageBody"))
97231
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.messageBody);
96589
97232
  return writer;
96590
97233
  };
96591
97234
 
@@ -96626,6 +97269,18 @@ $root.DiscussionPost = (function() {
96626
97269
  case 2:
96627
97270
  message.author = $root.DiscussionUser.decode(reader, reader.uint32());
96628
97271
  break;
97272
+ case 3:
97273
+ message.courseInfo = $root.CourseInfo.decode(reader, reader.uint32());
97274
+ break;
97275
+ case 4:
97276
+ message.parentId = reader.string();
97277
+ break;
97278
+ case 5:
97279
+ message.discussionGroupId = reader.string();
97280
+ break;
97281
+ case 6:
97282
+ message.messageBody = reader.string();
97283
+ break;
96629
97284
  default:
96630
97285
  reader.skipType(tag & 7);
96631
97286
  break;
@@ -96669,6 +97324,20 @@ $root.DiscussionPost = (function() {
96669
97324
  if (error)
96670
97325
  return "author." + error;
96671
97326
  }
97327
+ if (message.courseInfo != null && message.hasOwnProperty("courseInfo")) {
97328
+ var error = $root.CourseInfo.verify(message.courseInfo);
97329
+ if (error)
97330
+ return "courseInfo." + error;
97331
+ }
97332
+ if (message.parentId != null && message.hasOwnProperty("parentId"))
97333
+ if (!$util.isString(message.parentId))
97334
+ return "parentId: string expected";
97335
+ if (message.discussionGroupId != null && message.hasOwnProperty("discussionGroupId"))
97336
+ if (!$util.isString(message.discussionGroupId))
97337
+ return "discussionGroupId: string expected";
97338
+ if (message.messageBody != null && message.hasOwnProperty("messageBody"))
97339
+ if (!$util.isString(message.messageBody))
97340
+ return "messageBody: string expected";
96672
97341
  return null;
96673
97342
  };
96674
97343
 
@@ -96691,6 +97360,17 @@ $root.DiscussionPost = (function() {
96691
97360
  throw TypeError(".DiscussionPost.author: object expected");
96692
97361
  message.author = $root.DiscussionUser.fromObject(object.author);
96693
97362
  }
97363
+ if (object.courseInfo != null) {
97364
+ if (typeof object.courseInfo !== "object")
97365
+ throw TypeError(".DiscussionPost.courseInfo: object expected");
97366
+ message.courseInfo = $root.CourseInfo.fromObject(object.courseInfo);
97367
+ }
97368
+ if (object.parentId != null)
97369
+ message.parentId = String(object.parentId);
97370
+ if (object.discussionGroupId != null)
97371
+ message.discussionGroupId = String(object.discussionGroupId);
97372
+ if (object.messageBody != null)
97373
+ message.messageBody = String(object.messageBody);
96694
97374
  return message;
96695
97375
  };
96696
97376
 
@@ -96710,11 +97390,23 @@ $root.DiscussionPost = (function() {
96710
97390
  if (options.defaults) {
96711
97391
  object.id = "";
96712
97392
  object.author = null;
97393
+ object.courseInfo = null;
97394
+ object.parentId = "";
97395
+ object.discussionGroupId = "";
97396
+ object.messageBody = "";
96713
97397
  }
96714
97398
  if (message.id != null && message.hasOwnProperty("id"))
96715
97399
  object.id = message.id;
96716
97400
  if (message.author != null && message.hasOwnProperty("author"))
96717
97401
  object.author = $root.DiscussionUser.toObject(message.author, options);
97402
+ if (message.courseInfo != null && message.hasOwnProperty("courseInfo"))
97403
+ object.courseInfo = $root.CourseInfo.toObject(message.courseInfo, options);
97404
+ if (message.parentId != null && message.hasOwnProperty("parentId"))
97405
+ object.parentId = message.parentId;
97406
+ if (message.discussionGroupId != null && message.hasOwnProperty("discussionGroupId"))
97407
+ object.discussionGroupId = message.discussionGroupId;
97408
+ if (message.messageBody != null && message.hasOwnProperty("messageBody"))
97409
+ object.messageBody = message.messageBody;
96718
97410
  return object;
96719
97411
  };
96720
97412
 
@@ -97115,6 +97807,198 @@ $root.DiscussionPostReactionCreated = (function() {
97115
97807
  return DiscussionPostReactionCreated;
97116
97808
  })();
97117
97809
 
97810
+ $root.DiscussionPostCreated = (function() {
97811
+
97812
+ /**
97813
+ * Properties of a DiscussionPostCreated.
97814
+ * @name IDiscussionPostCreated
97815
+ * @interface IDiscussionPostCreated
97816
+ * @property {IDiscussionPost|null} [post] DiscussionPostCreated post
97817
+ */
97818
+
97819
+ /**
97820
+ * Constructs a new DiscussionPostCreated.
97821
+ * @name DiscussionPostCreated
97822
+ * @classdesc Represents a DiscussionPostCreated.
97823
+ * @implements IDiscussionPostCreated
97824
+ * @constructor
97825
+ * @param {IDiscussionPostCreated=} [properties] Properties to set
97826
+ */
97827
+ function DiscussionPostCreated(properties) {
97828
+ if (properties)
97829
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
97830
+ if (properties[keys[i]] != null)
97831
+ this[keys[i]] = properties[keys[i]];
97832
+ }
97833
+
97834
+ /**
97835
+ * DiscussionPostCreated post.
97836
+ * @member {IDiscussionPost|null|undefined} post
97837
+ * @memberof DiscussionPostCreated
97838
+ * @instance
97839
+ */
97840
+ DiscussionPostCreated.prototype.post = null;
97841
+
97842
+ /**
97843
+ * Creates a new DiscussionPostCreated instance using the specified properties.
97844
+ * @function create
97845
+ * @memberof DiscussionPostCreated
97846
+ * @static
97847
+ * @param {IDiscussionPostCreated=} [properties] Properties to set
97848
+ * @returns {DiscussionPostCreated} DiscussionPostCreated instance
97849
+ */
97850
+ DiscussionPostCreated.create = function create(properties) {
97851
+ return new DiscussionPostCreated(properties);
97852
+ };
97853
+
97854
+ /**
97855
+ * Encodes the specified DiscussionPostCreated message. Does not implicitly {@link DiscussionPostCreated.verify|verify} messages.
97856
+ * @function encode
97857
+ * @memberof DiscussionPostCreated
97858
+ * @static
97859
+ * @param {IDiscussionPostCreated} message DiscussionPostCreated message or plain object to encode
97860
+ * @param {$protobuf.Writer} [writer] Writer to encode to
97861
+ * @returns {$protobuf.Writer} Writer
97862
+ */
97863
+ DiscussionPostCreated.encode = function encode(message, writer) {
97864
+ if (!writer)
97865
+ writer = $Writer.create();
97866
+ if (message.post != null && message.hasOwnProperty("post"))
97867
+ $root.DiscussionPost.encode(message.post, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
97868
+ return writer;
97869
+ };
97870
+
97871
+ /**
97872
+ * Encodes the specified DiscussionPostCreated message, length delimited. Does not implicitly {@link DiscussionPostCreated.verify|verify} messages.
97873
+ * @function encodeDelimited
97874
+ * @memberof DiscussionPostCreated
97875
+ * @static
97876
+ * @param {IDiscussionPostCreated} message DiscussionPostCreated message or plain object to encode
97877
+ * @param {$protobuf.Writer} [writer] Writer to encode to
97878
+ * @returns {$protobuf.Writer} Writer
97879
+ */
97880
+ DiscussionPostCreated.encodeDelimited = function encodeDelimited(message, writer) {
97881
+ return this.encode(message, writer).ldelim();
97882
+ };
97883
+
97884
+ /**
97885
+ * Decodes a DiscussionPostCreated message from the specified reader or buffer.
97886
+ * @function decode
97887
+ * @memberof DiscussionPostCreated
97888
+ * @static
97889
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
97890
+ * @param {number} [length] Message length if known beforehand
97891
+ * @returns {DiscussionPostCreated} DiscussionPostCreated
97892
+ * @throws {Error} If the payload is not a reader or valid buffer
97893
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
97894
+ */
97895
+ DiscussionPostCreated.decode = function decode(reader, length) {
97896
+ if (!(reader instanceof $Reader))
97897
+ reader = $Reader.create(reader);
97898
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionPostCreated();
97899
+ while (reader.pos < end) {
97900
+ var tag = reader.uint32();
97901
+ switch (tag >>> 3) {
97902
+ case 1:
97903
+ message.post = $root.DiscussionPost.decode(reader, reader.uint32());
97904
+ break;
97905
+ default:
97906
+ reader.skipType(tag & 7);
97907
+ break;
97908
+ }
97909
+ }
97910
+ return message;
97911
+ };
97912
+
97913
+ /**
97914
+ * Decodes a DiscussionPostCreated message from the specified reader or buffer, length delimited.
97915
+ * @function decodeDelimited
97916
+ * @memberof DiscussionPostCreated
97917
+ * @static
97918
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
97919
+ * @returns {DiscussionPostCreated} DiscussionPostCreated
97920
+ * @throws {Error} If the payload is not a reader or valid buffer
97921
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
97922
+ */
97923
+ DiscussionPostCreated.decodeDelimited = function decodeDelimited(reader) {
97924
+ if (!(reader instanceof $Reader))
97925
+ reader = new $Reader(reader);
97926
+ return this.decode(reader, reader.uint32());
97927
+ };
97928
+
97929
+ /**
97930
+ * Verifies a DiscussionPostCreated message.
97931
+ * @function verify
97932
+ * @memberof DiscussionPostCreated
97933
+ * @static
97934
+ * @param {Object.<string,*>} message Plain object to verify
97935
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
97936
+ */
97937
+ DiscussionPostCreated.verify = function verify(message) {
97938
+ if (typeof message !== "object" || message === null)
97939
+ return "object expected";
97940
+ if (message.post != null && message.hasOwnProperty("post")) {
97941
+ var error = $root.DiscussionPost.verify(message.post);
97942
+ if (error)
97943
+ return "post." + error;
97944
+ }
97945
+ return null;
97946
+ };
97947
+
97948
+ /**
97949
+ * Creates a DiscussionPostCreated message from a plain object. Also converts values to their respective internal types.
97950
+ * @function fromObject
97951
+ * @memberof DiscussionPostCreated
97952
+ * @static
97953
+ * @param {Object.<string,*>} object Plain object
97954
+ * @returns {DiscussionPostCreated} DiscussionPostCreated
97955
+ */
97956
+ DiscussionPostCreated.fromObject = function fromObject(object) {
97957
+ if (object instanceof $root.DiscussionPostCreated)
97958
+ return object;
97959
+ var message = new $root.DiscussionPostCreated();
97960
+ if (object.post != null) {
97961
+ if (typeof object.post !== "object")
97962
+ throw TypeError(".DiscussionPostCreated.post: object expected");
97963
+ message.post = $root.DiscussionPost.fromObject(object.post);
97964
+ }
97965
+ return message;
97966
+ };
97967
+
97968
+ /**
97969
+ * Creates a plain object from a DiscussionPostCreated message. Also converts values to other types if specified.
97970
+ * @function toObject
97971
+ * @memberof DiscussionPostCreated
97972
+ * @static
97973
+ * @param {DiscussionPostCreated} message DiscussionPostCreated
97974
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
97975
+ * @returns {Object.<string,*>} Plain object
97976
+ */
97977
+ DiscussionPostCreated.toObject = function toObject(message, options) {
97978
+ if (!options)
97979
+ options = {};
97980
+ var object = {};
97981
+ if (options.defaults)
97982
+ object.post = null;
97983
+ if (message.post != null && message.hasOwnProperty("post"))
97984
+ object.post = $root.DiscussionPost.toObject(message.post, options);
97985
+ return object;
97986
+ };
97987
+
97988
+ /**
97989
+ * Converts this DiscussionPostCreated to JSON.
97990
+ * @function toJSON
97991
+ * @memberof DiscussionPostCreated
97992
+ * @instance
97993
+ * @returns {Object.<string,*>} JSON object
97994
+ */
97995
+ DiscussionPostCreated.prototype.toJSON = function toJSON() {
97996
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
97997
+ };
97998
+
97999
+ return DiscussionPostCreated;
98000
+ })();
98001
+
97118
98002
  $root.ElfProcessingStarted = (function() {
97119
98003
 
97120
98004
  /**