@headspace/protos-events 1.504.1-rc.0 → 1.506.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 +413 -18
  2. package/lib/index.js +1094 -207
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -72842,6 +72842,193 @@ $root.ContentEntityDeleted = (function() {
72842
72842
  return ContentEntityDeleted;
72843
72843
  })();
72844
72844
 
72845
+ $root.ContentCourseCompleted = (function() {
72846
+
72847
+ /**
72848
+ * Properties of a ContentCourseCompleted.
72849
+ * @name IContentCourseCompleted
72850
+ * @interface IContentCourseCompleted
72851
+ * @property {string|null} [userId] ContentCourseCompleted userId
72852
+ */
72853
+
72854
+ /**
72855
+ * Constructs a new ContentCourseCompleted.
72856
+ * @name ContentCourseCompleted
72857
+ * @classdesc Represents a ContentCourseCompleted.
72858
+ * @implements IContentCourseCompleted
72859
+ * @constructor
72860
+ * @param {IContentCourseCompleted=} [properties] Properties to set
72861
+ */
72862
+ function ContentCourseCompleted(properties) {
72863
+ if (properties)
72864
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
72865
+ if (properties[keys[i]] != null)
72866
+ this[keys[i]] = properties[keys[i]];
72867
+ }
72868
+
72869
+ /**
72870
+ * ContentCourseCompleted userId.
72871
+ * @member {string} userId
72872
+ * @memberof ContentCourseCompleted
72873
+ * @instance
72874
+ */
72875
+ ContentCourseCompleted.prototype.userId = "";
72876
+
72877
+ /**
72878
+ * Creates a new ContentCourseCompleted instance using the specified properties.
72879
+ * @function create
72880
+ * @memberof ContentCourseCompleted
72881
+ * @static
72882
+ * @param {IContentCourseCompleted=} [properties] Properties to set
72883
+ * @returns {ContentCourseCompleted} ContentCourseCompleted instance
72884
+ */
72885
+ ContentCourseCompleted.create = function create(properties) {
72886
+ return new ContentCourseCompleted(properties);
72887
+ };
72888
+
72889
+ /**
72890
+ * Encodes the specified ContentCourseCompleted message. Does not implicitly {@link ContentCourseCompleted.verify|verify} messages.
72891
+ * @function encode
72892
+ * @memberof ContentCourseCompleted
72893
+ * @static
72894
+ * @param {IContentCourseCompleted} message ContentCourseCompleted message or plain object to encode
72895
+ * @param {$protobuf.Writer} [writer] Writer to encode to
72896
+ * @returns {$protobuf.Writer} Writer
72897
+ */
72898
+ ContentCourseCompleted.encode = function encode(message, writer) {
72899
+ if (!writer)
72900
+ writer = $Writer.create();
72901
+ if (message.userId != null && message.hasOwnProperty("userId"))
72902
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
72903
+ return writer;
72904
+ };
72905
+
72906
+ /**
72907
+ * Encodes the specified ContentCourseCompleted message, length delimited. Does not implicitly {@link ContentCourseCompleted.verify|verify} messages.
72908
+ * @function encodeDelimited
72909
+ * @memberof ContentCourseCompleted
72910
+ * @static
72911
+ * @param {IContentCourseCompleted} message ContentCourseCompleted message or plain object to encode
72912
+ * @param {$protobuf.Writer} [writer] Writer to encode to
72913
+ * @returns {$protobuf.Writer} Writer
72914
+ */
72915
+ ContentCourseCompleted.encodeDelimited = function encodeDelimited(message, writer) {
72916
+ return this.encode(message, writer).ldelim();
72917
+ };
72918
+
72919
+ /**
72920
+ * Decodes a ContentCourseCompleted message from the specified reader or buffer.
72921
+ * @function decode
72922
+ * @memberof ContentCourseCompleted
72923
+ * @static
72924
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
72925
+ * @param {number} [length] Message length if known beforehand
72926
+ * @returns {ContentCourseCompleted} ContentCourseCompleted
72927
+ * @throws {Error} If the payload is not a reader or valid buffer
72928
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
72929
+ */
72930
+ ContentCourseCompleted.decode = function decode(reader, length) {
72931
+ if (!(reader instanceof $Reader))
72932
+ reader = $Reader.create(reader);
72933
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentCourseCompleted();
72934
+ while (reader.pos < end) {
72935
+ var tag = reader.uint32();
72936
+ switch (tag >>> 3) {
72937
+ case 1:
72938
+ message.userId = reader.string();
72939
+ break;
72940
+ default:
72941
+ reader.skipType(tag & 7);
72942
+ break;
72943
+ }
72944
+ }
72945
+ return message;
72946
+ };
72947
+
72948
+ /**
72949
+ * Decodes a ContentCourseCompleted message from the specified reader or buffer, length delimited.
72950
+ * @function decodeDelimited
72951
+ * @memberof ContentCourseCompleted
72952
+ * @static
72953
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
72954
+ * @returns {ContentCourseCompleted} ContentCourseCompleted
72955
+ * @throws {Error} If the payload is not a reader or valid buffer
72956
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
72957
+ */
72958
+ ContentCourseCompleted.decodeDelimited = function decodeDelimited(reader) {
72959
+ if (!(reader instanceof $Reader))
72960
+ reader = new $Reader(reader);
72961
+ return this.decode(reader, reader.uint32());
72962
+ };
72963
+
72964
+ /**
72965
+ * Verifies a ContentCourseCompleted message.
72966
+ * @function verify
72967
+ * @memberof ContentCourseCompleted
72968
+ * @static
72969
+ * @param {Object.<string,*>} message Plain object to verify
72970
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
72971
+ */
72972
+ ContentCourseCompleted.verify = function verify(message) {
72973
+ if (typeof message !== "object" || message === null)
72974
+ return "object expected";
72975
+ if (message.userId != null && message.hasOwnProperty("userId"))
72976
+ if (!$util.isString(message.userId))
72977
+ return "userId: string expected";
72978
+ return null;
72979
+ };
72980
+
72981
+ /**
72982
+ * Creates a ContentCourseCompleted message from a plain object. Also converts values to their respective internal types.
72983
+ * @function fromObject
72984
+ * @memberof ContentCourseCompleted
72985
+ * @static
72986
+ * @param {Object.<string,*>} object Plain object
72987
+ * @returns {ContentCourseCompleted} ContentCourseCompleted
72988
+ */
72989
+ ContentCourseCompleted.fromObject = function fromObject(object) {
72990
+ if (object instanceof $root.ContentCourseCompleted)
72991
+ return object;
72992
+ var message = new $root.ContentCourseCompleted();
72993
+ if (object.userId != null)
72994
+ message.userId = String(object.userId);
72995
+ return message;
72996
+ };
72997
+
72998
+ /**
72999
+ * Creates a plain object from a ContentCourseCompleted message. Also converts values to other types if specified.
73000
+ * @function toObject
73001
+ * @memberof ContentCourseCompleted
73002
+ * @static
73003
+ * @param {ContentCourseCompleted} message ContentCourseCompleted
73004
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
73005
+ * @returns {Object.<string,*>} Plain object
73006
+ */
73007
+ ContentCourseCompleted.toObject = function toObject(message, options) {
73008
+ if (!options)
73009
+ options = {};
73010
+ var object = {};
73011
+ if (options.defaults)
73012
+ object.userId = "";
73013
+ if (message.userId != null && message.hasOwnProperty("userId"))
73014
+ object.userId = message.userId;
73015
+ return object;
73016
+ };
73017
+
73018
+ /**
73019
+ * Converts this ContentCourseCompleted to JSON.
73020
+ * @function toJSON
73021
+ * @memberof ContentCourseCompleted
73022
+ * @instance
73023
+ * @returns {Object.<string,*>} JSON object
73024
+ */
73025
+ ContentCourseCompleted.prototype.toJSON = function toJSON() {
73026
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
73027
+ };
73028
+
73029
+ return ContentCourseCompleted;
73030
+ })();
73031
+
72845
73032
  $root.TopicCreated = (function() {
72846
73033
 
72847
73034
  /**
@@ -95162,25 +95349,25 @@ $root.UserEnabledWakeupNotifications = (function() {
95162
95349
  return UserEnabledWakeupNotifications;
95163
95350
  })();
95164
95351
 
95165
- $root.ElfNormalizationJobCompleted = (function() {
95352
+ $root.DiscussionUser = (function() {
95166
95353
 
95167
95354
  /**
95168
- * Properties of an ElfNormalizationJobCompleted.
95169
- * @name IElfNormalizationJobCompleted
95170
- * @interface IElfNormalizationJobCompleted
95171
- * @property {elf.INormalizationJob|null} [job] ElfNormalizationJobCompleted job
95172
- * @property {elf.INormalizationJobResult|null} [result] ElfNormalizationJobCompleted result
95355
+ * Properties of a DiscussionUser.
95356
+ * @name IDiscussionUser
95357
+ * @interface IDiscussionUser
95358
+ * @property {string|null} [userId] DiscussionUser userId
95359
+ * @property {string|null} [displayName] DiscussionUser displayName
95173
95360
  */
95174
95361
 
95175
95362
  /**
95176
- * Constructs a new ElfNormalizationJobCompleted.
95177
- * @name ElfNormalizationJobCompleted
95178
- * @classdesc Represents an ElfNormalizationJobCompleted.
95179
- * @implements IElfNormalizationJobCompleted
95363
+ * Constructs a new DiscussionUser.
95364
+ * @name DiscussionUser
95365
+ * @classdesc Represents a DiscussionUser.
95366
+ * @implements IDiscussionUser
95180
95367
  * @constructor
95181
- * @param {IElfNormalizationJobCompleted=} [properties] Properties to set
95368
+ * @param {IDiscussionUser=} [properties] Properties to set
95182
95369
  */
95183
- function ElfNormalizationJobCompleted(properties) {
95370
+ function DiscussionUser(properties) {
95184
95371
  if (properties)
95185
95372
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
95186
95373
  if (properties[keys[i]] != null)
@@ -95188,88 +95375,88 @@ $root.ElfNormalizationJobCompleted = (function() {
95188
95375
  }
95189
95376
 
95190
95377
  /**
95191
- * ElfNormalizationJobCompleted job.
95192
- * @member {elf.INormalizationJob|null|undefined} job
95193
- * @memberof ElfNormalizationJobCompleted
95378
+ * DiscussionUser userId.
95379
+ * @member {string} userId
95380
+ * @memberof DiscussionUser
95194
95381
  * @instance
95195
95382
  */
95196
- ElfNormalizationJobCompleted.prototype.job = null;
95383
+ DiscussionUser.prototype.userId = "";
95197
95384
 
95198
95385
  /**
95199
- * ElfNormalizationJobCompleted result.
95200
- * @member {elf.INormalizationJobResult|null|undefined} result
95201
- * @memberof ElfNormalizationJobCompleted
95386
+ * DiscussionUser displayName.
95387
+ * @member {string} displayName
95388
+ * @memberof DiscussionUser
95202
95389
  * @instance
95203
95390
  */
95204
- ElfNormalizationJobCompleted.prototype.result = null;
95391
+ DiscussionUser.prototype.displayName = "";
95205
95392
 
95206
95393
  /**
95207
- * Creates a new ElfNormalizationJobCompleted instance using the specified properties.
95394
+ * Creates a new DiscussionUser instance using the specified properties.
95208
95395
  * @function create
95209
- * @memberof ElfNormalizationJobCompleted
95396
+ * @memberof DiscussionUser
95210
95397
  * @static
95211
- * @param {IElfNormalizationJobCompleted=} [properties] Properties to set
95212
- * @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted instance
95398
+ * @param {IDiscussionUser=} [properties] Properties to set
95399
+ * @returns {DiscussionUser} DiscussionUser instance
95213
95400
  */
95214
- ElfNormalizationJobCompleted.create = function create(properties) {
95215
- return new ElfNormalizationJobCompleted(properties);
95401
+ DiscussionUser.create = function create(properties) {
95402
+ return new DiscussionUser(properties);
95216
95403
  };
95217
95404
 
95218
95405
  /**
95219
- * Encodes the specified ElfNormalizationJobCompleted message. Does not implicitly {@link ElfNormalizationJobCompleted.verify|verify} messages.
95406
+ * Encodes the specified DiscussionUser message. Does not implicitly {@link DiscussionUser.verify|verify} messages.
95220
95407
  * @function encode
95221
- * @memberof ElfNormalizationJobCompleted
95408
+ * @memberof DiscussionUser
95222
95409
  * @static
95223
- * @param {IElfNormalizationJobCompleted} message ElfNormalizationJobCompleted message or plain object to encode
95410
+ * @param {IDiscussionUser} message DiscussionUser message or plain object to encode
95224
95411
  * @param {$protobuf.Writer} [writer] Writer to encode to
95225
95412
  * @returns {$protobuf.Writer} Writer
95226
95413
  */
95227
- ElfNormalizationJobCompleted.encode = function encode(message, writer) {
95414
+ DiscussionUser.encode = function encode(message, writer) {
95228
95415
  if (!writer)
95229
95416
  writer = $Writer.create();
95230
- if (message.job != null && message.hasOwnProperty("job"))
95231
- $root.elf.NormalizationJob.encode(message.job, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
95232
- if (message.result != null && message.hasOwnProperty("result"))
95233
- $root.elf.NormalizationJobResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
95417
+ if (message.userId != null && message.hasOwnProperty("userId"))
95418
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
95419
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
95420
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
95234
95421
  return writer;
95235
95422
  };
95236
95423
 
95237
95424
  /**
95238
- * Encodes the specified ElfNormalizationJobCompleted message, length delimited. Does not implicitly {@link ElfNormalizationJobCompleted.verify|verify} messages.
95425
+ * Encodes the specified DiscussionUser message, length delimited. Does not implicitly {@link DiscussionUser.verify|verify} messages.
95239
95426
  * @function encodeDelimited
95240
- * @memberof ElfNormalizationJobCompleted
95427
+ * @memberof DiscussionUser
95241
95428
  * @static
95242
- * @param {IElfNormalizationJobCompleted} message ElfNormalizationJobCompleted message or plain object to encode
95429
+ * @param {IDiscussionUser} message DiscussionUser message or plain object to encode
95243
95430
  * @param {$protobuf.Writer} [writer] Writer to encode to
95244
95431
  * @returns {$protobuf.Writer} Writer
95245
95432
  */
95246
- ElfNormalizationJobCompleted.encodeDelimited = function encodeDelimited(message, writer) {
95433
+ DiscussionUser.encodeDelimited = function encodeDelimited(message, writer) {
95247
95434
  return this.encode(message, writer).ldelim();
95248
95435
  };
95249
95436
 
95250
95437
  /**
95251
- * Decodes an ElfNormalizationJobCompleted message from the specified reader or buffer.
95438
+ * Decodes a DiscussionUser message from the specified reader or buffer.
95252
95439
  * @function decode
95253
- * @memberof ElfNormalizationJobCompleted
95440
+ * @memberof DiscussionUser
95254
95441
  * @static
95255
95442
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95256
95443
  * @param {number} [length] Message length if known beforehand
95257
- * @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted
95444
+ * @returns {DiscussionUser} DiscussionUser
95258
95445
  * @throws {Error} If the payload is not a reader or valid buffer
95259
95446
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
95260
95447
  */
95261
- ElfNormalizationJobCompleted.decode = function decode(reader, length) {
95448
+ DiscussionUser.decode = function decode(reader, length) {
95262
95449
  if (!(reader instanceof $Reader))
95263
95450
  reader = $Reader.create(reader);
95264
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfNormalizationJobCompleted();
95451
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionUser();
95265
95452
  while (reader.pos < end) {
95266
95453
  var tag = reader.uint32();
95267
95454
  switch (tag >>> 3) {
95268
95455
  case 1:
95269
- message.job = $root.elf.NormalizationJob.decode(reader, reader.uint32());
95456
+ message.userId = reader.string();
95270
95457
  break;
95271
95458
  case 2:
95272
- message.result = $root.elf.NormalizationJobResult.decode(reader, reader.uint32());
95459
+ message.displayName = reader.string();
95273
95460
  break;
95274
95461
  default:
95275
95462
  reader.skipType(tag & 7);
@@ -95280,117 +95467,925 @@ $root.ElfNormalizationJobCompleted = (function() {
95280
95467
  };
95281
95468
 
95282
95469
  /**
95283
- * Decodes an ElfNormalizationJobCompleted message from the specified reader or buffer, length delimited.
95470
+ * Decodes a DiscussionUser message from the specified reader or buffer, length delimited.
95284
95471
  * @function decodeDelimited
95285
- * @memberof ElfNormalizationJobCompleted
95472
+ * @memberof DiscussionUser
95286
95473
  * @static
95287
95474
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95288
- * @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted
95475
+ * @returns {DiscussionUser} DiscussionUser
95289
95476
  * @throws {Error} If the payload is not a reader or valid buffer
95290
95477
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
95291
95478
  */
95292
- ElfNormalizationJobCompleted.decodeDelimited = function decodeDelimited(reader) {
95479
+ DiscussionUser.decodeDelimited = function decodeDelimited(reader) {
95293
95480
  if (!(reader instanceof $Reader))
95294
95481
  reader = new $Reader(reader);
95295
95482
  return this.decode(reader, reader.uint32());
95296
95483
  };
95297
95484
 
95298
95485
  /**
95299
- * Verifies an ElfNormalizationJobCompleted message.
95486
+ * Verifies a DiscussionUser message.
95300
95487
  * @function verify
95301
- * @memberof ElfNormalizationJobCompleted
95488
+ * @memberof DiscussionUser
95302
95489
  * @static
95303
95490
  * @param {Object.<string,*>} message Plain object to verify
95304
95491
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
95305
95492
  */
95306
- ElfNormalizationJobCompleted.verify = function verify(message) {
95493
+ DiscussionUser.verify = function verify(message) {
95307
95494
  if (typeof message !== "object" || message === null)
95308
95495
  return "object expected";
95309
- if (message.job != null && message.hasOwnProperty("job")) {
95310
- var error = $root.elf.NormalizationJob.verify(message.job);
95311
- if (error)
95312
- return "job." + error;
95313
- }
95314
- if (message.result != null && message.hasOwnProperty("result")) {
95315
- var error = $root.elf.NormalizationJobResult.verify(message.result);
95316
- if (error)
95317
- return "result." + error;
95318
- }
95496
+ if (message.userId != null && message.hasOwnProperty("userId"))
95497
+ if (!$util.isString(message.userId))
95498
+ return "userId: string expected";
95499
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
95500
+ if (!$util.isString(message.displayName))
95501
+ return "displayName: string expected";
95319
95502
  return null;
95320
95503
  };
95321
95504
 
95322
95505
  /**
95323
- * Creates an ElfNormalizationJobCompleted message from a plain object. Also converts values to their respective internal types.
95506
+ * Creates a DiscussionUser message from a plain object. Also converts values to their respective internal types.
95324
95507
  * @function fromObject
95325
- * @memberof ElfNormalizationJobCompleted
95508
+ * @memberof DiscussionUser
95326
95509
  * @static
95327
95510
  * @param {Object.<string,*>} object Plain object
95328
- * @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted
95511
+ * @returns {DiscussionUser} DiscussionUser
95329
95512
  */
95330
- ElfNormalizationJobCompleted.fromObject = function fromObject(object) {
95331
- if (object instanceof $root.ElfNormalizationJobCompleted)
95513
+ DiscussionUser.fromObject = function fromObject(object) {
95514
+ if (object instanceof $root.DiscussionUser)
95332
95515
  return object;
95333
- var message = new $root.ElfNormalizationJobCompleted();
95334
- if (object.job != null) {
95335
- if (typeof object.job !== "object")
95336
- throw TypeError(".ElfNormalizationJobCompleted.job: object expected");
95337
- message.job = $root.elf.NormalizationJob.fromObject(object.job);
95338
- }
95339
- if (object.result != null) {
95340
- if (typeof object.result !== "object")
95341
- throw TypeError(".ElfNormalizationJobCompleted.result: object expected");
95342
- message.result = $root.elf.NormalizationJobResult.fromObject(object.result);
95343
- }
95516
+ var message = new $root.DiscussionUser();
95517
+ if (object.userId != null)
95518
+ message.userId = String(object.userId);
95519
+ if (object.displayName != null)
95520
+ message.displayName = String(object.displayName);
95344
95521
  return message;
95345
95522
  };
95346
95523
 
95347
95524
  /**
95348
- * Creates a plain object from an ElfNormalizationJobCompleted message. Also converts values to other types if specified.
95525
+ * Creates a plain object from a DiscussionUser message. Also converts values to other types if specified.
95349
95526
  * @function toObject
95350
- * @memberof ElfNormalizationJobCompleted
95527
+ * @memberof DiscussionUser
95351
95528
  * @static
95352
- * @param {ElfNormalizationJobCompleted} message ElfNormalizationJobCompleted
95529
+ * @param {DiscussionUser} message DiscussionUser
95353
95530
  * @param {$protobuf.IConversionOptions} [options] Conversion options
95354
95531
  * @returns {Object.<string,*>} Plain object
95355
95532
  */
95356
- ElfNormalizationJobCompleted.toObject = function toObject(message, options) {
95533
+ DiscussionUser.toObject = function toObject(message, options) {
95357
95534
  if (!options)
95358
95535
  options = {};
95359
95536
  var object = {};
95360
95537
  if (options.defaults) {
95361
- object.job = null;
95362
- object.result = null;
95538
+ object.userId = "";
95539
+ object.displayName = "";
95363
95540
  }
95364
- if (message.job != null && message.hasOwnProperty("job"))
95365
- object.job = $root.elf.NormalizationJob.toObject(message.job, options);
95366
- if (message.result != null && message.hasOwnProperty("result"))
95367
- object.result = $root.elf.NormalizationJobResult.toObject(message.result, options);
95541
+ if (message.userId != null && message.hasOwnProperty("userId"))
95542
+ object.userId = message.userId;
95543
+ if (message.displayName != null && message.hasOwnProperty("displayName"))
95544
+ object.displayName = message.displayName;
95368
95545
  return object;
95369
95546
  };
95370
95547
 
95371
95548
  /**
95372
- * Converts this ElfNormalizationJobCompleted to JSON.
95549
+ * Converts this DiscussionUser to JSON.
95373
95550
  * @function toJSON
95374
- * @memberof ElfNormalizationJobCompleted
95551
+ * @memberof DiscussionUser
95375
95552
  * @instance
95376
95553
  * @returns {Object.<string,*>} JSON object
95377
95554
  */
95378
- ElfNormalizationJobCompleted.prototype.toJSON = function toJSON() {
95555
+ DiscussionUser.prototype.toJSON = function toJSON() {
95379
95556
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
95380
95557
  };
95381
95558
 
95382
- return ElfNormalizationJobCompleted;
95559
+ return DiscussionUser;
95383
95560
  })();
95384
95561
 
95385
- $root.ElfNormalizationJobFailed = (function() {
95562
+ $root.DiscussionPost = (function() {
95386
95563
 
95387
95564
  /**
95388
- * Properties of an ElfNormalizationJobFailed.
95389
- * @name IElfNormalizationJobFailed
95390
- * @interface IElfNormalizationJobFailed
95391
- * @property {elf.INormalizationJob|null} [job] ElfNormalizationJobFailed job
95392
- * @property {elf.INormalizationJobError|null} [error] ElfNormalizationJobFailed error
95393
- * @property {boolean|null} [gingerShouldProcess] ElfNormalizationJobFailed gingerShouldProcess
95565
+ * Properties of a DiscussionPost.
95566
+ * @name IDiscussionPost
95567
+ * @interface IDiscussionPost
95568
+ * @property {string|null} [id] DiscussionPost id
95569
+ * @property {IDiscussionUser|null} [author] DiscussionPost author
95570
+ */
95571
+
95572
+ /**
95573
+ * Constructs a new DiscussionPost.
95574
+ * @name DiscussionPost
95575
+ * @classdesc Represents a DiscussionPost.
95576
+ * @implements IDiscussionPost
95577
+ * @constructor
95578
+ * @param {IDiscussionPost=} [properties] Properties to set
95579
+ */
95580
+ function DiscussionPost(properties) {
95581
+ if (properties)
95582
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
95583
+ if (properties[keys[i]] != null)
95584
+ this[keys[i]] = properties[keys[i]];
95585
+ }
95586
+
95587
+ /**
95588
+ * DiscussionPost id.
95589
+ * @member {string} id
95590
+ * @memberof DiscussionPost
95591
+ * @instance
95592
+ */
95593
+ DiscussionPost.prototype.id = "";
95594
+
95595
+ /**
95596
+ * DiscussionPost author.
95597
+ * @member {IDiscussionUser|null|undefined} author
95598
+ * @memberof DiscussionPost
95599
+ * @instance
95600
+ */
95601
+ DiscussionPost.prototype.author = null;
95602
+
95603
+ /**
95604
+ * Creates a new DiscussionPost instance using the specified properties.
95605
+ * @function create
95606
+ * @memberof DiscussionPost
95607
+ * @static
95608
+ * @param {IDiscussionPost=} [properties] Properties to set
95609
+ * @returns {DiscussionPost} DiscussionPost instance
95610
+ */
95611
+ DiscussionPost.create = function create(properties) {
95612
+ return new DiscussionPost(properties);
95613
+ };
95614
+
95615
+ /**
95616
+ * Encodes the specified DiscussionPost message. Does not implicitly {@link DiscussionPost.verify|verify} messages.
95617
+ * @function encode
95618
+ * @memberof DiscussionPost
95619
+ * @static
95620
+ * @param {IDiscussionPost} message DiscussionPost message or plain object to encode
95621
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95622
+ * @returns {$protobuf.Writer} Writer
95623
+ */
95624
+ DiscussionPost.encode = function encode(message, writer) {
95625
+ if (!writer)
95626
+ writer = $Writer.create();
95627
+ if (message.id != null && message.hasOwnProperty("id"))
95628
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
95629
+ if (message.author != null && message.hasOwnProperty("author"))
95630
+ $root.DiscussionUser.encode(message.author, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
95631
+ return writer;
95632
+ };
95633
+
95634
+ /**
95635
+ * Encodes the specified DiscussionPost message, length delimited. Does not implicitly {@link DiscussionPost.verify|verify} messages.
95636
+ * @function encodeDelimited
95637
+ * @memberof DiscussionPost
95638
+ * @static
95639
+ * @param {IDiscussionPost} message DiscussionPost message or plain object to encode
95640
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95641
+ * @returns {$protobuf.Writer} Writer
95642
+ */
95643
+ DiscussionPost.encodeDelimited = function encodeDelimited(message, writer) {
95644
+ return this.encode(message, writer).ldelim();
95645
+ };
95646
+
95647
+ /**
95648
+ * Decodes a DiscussionPost message from the specified reader or buffer.
95649
+ * @function decode
95650
+ * @memberof DiscussionPost
95651
+ * @static
95652
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95653
+ * @param {number} [length] Message length if known beforehand
95654
+ * @returns {DiscussionPost} DiscussionPost
95655
+ * @throws {Error} If the payload is not a reader or valid buffer
95656
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95657
+ */
95658
+ DiscussionPost.decode = function decode(reader, length) {
95659
+ if (!(reader instanceof $Reader))
95660
+ reader = $Reader.create(reader);
95661
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionPost();
95662
+ while (reader.pos < end) {
95663
+ var tag = reader.uint32();
95664
+ switch (tag >>> 3) {
95665
+ case 1:
95666
+ message.id = reader.string();
95667
+ break;
95668
+ case 2:
95669
+ message.author = $root.DiscussionUser.decode(reader, reader.uint32());
95670
+ break;
95671
+ default:
95672
+ reader.skipType(tag & 7);
95673
+ break;
95674
+ }
95675
+ }
95676
+ return message;
95677
+ };
95678
+
95679
+ /**
95680
+ * Decodes a DiscussionPost message from the specified reader or buffer, length delimited.
95681
+ * @function decodeDelimited
95682
+ * @memberof DiscussionPost
95683
+ * @static
95684
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95685
+ * @returns {DiscussionPost} DiscussionPost
95686
+ * @throws {Error} If the payload is not a reader or valid buffer
95687
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95688
+ */
95689
+ DiscussionPost.decodeDelimited = function decodeDelimited(reader) {
95690
+ if (!(reader instanceof $Reader))
95691
+ reader = new $Reader(reader);
95692
+ return this.decode(reader, reader.uint32());
95693
+ };
95694
+
95695
+ /**
95696
+ * Verifies a DiscussionPost message.
95697
+ * @function verify
95698
+ * @memberof DiscussionPost
95699
+ * @static
95700
+ * @param {Object.<string,*>} message Plain object to verify
95701
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
95702
+ */
95703
+ DiscussionPost.verify = function verify(message) {
95704
+ if (typeof message !== "object" || message === null)
95705
+ return "object expected";
95706
+ if (message.id != null && message.hasOwnProperty("id"))
95707
+ if (!$util.isString(message.id))
95708
+ return "id: string expected";
95709
+ if (message.author != null && message.hasOwnProperty("author")) {
95710
+ var error = $root.DiscussionUser.verify(message.author);
95711
+ if (error)
95712
+ return "author." + error;
95713
+ }
95714
+ return null;
95715
+ };
95716
+
95717
+ /**
95718
+ * Creates a DiscussionPost message from a plain object. Also converts values to their respective internal types.
95719
+ * @function fromObject
95720
+ * @memberof DiscussionPost
95721
+ * @static
95722
+ * @param {Object.<string,*>} object Plain object
95723
+ * @returns {DiscussionPost} DiscussionPost
95724
+ */
95725
+ DiscussionPost.fromObject = function fromObject(object) {
95726
+ if (object instanceof $root.DiscussionPost)
95727
+ return object;
95728
+ var message = new $root.DiscussionPost();
95729
+ if (object.id != null)
95730
+ message.id = String(object.id);
95731
+ if (object.author != null) {
95732
+ if (typeof object.author !== "object")
95733
+ throw TypeError(".DiscussionPost.author: object expected");
95734
+ message.author = $root.DiscussionUser.fromObject(object.author);
95735
+ }
95736
+ return message;
95737
+ };
95738
+
95739
+ /**
95740
+ * Creates a plain object from a DiscussionPost message. Also converts values to other types if specified.
95741
+ * @function toObject
95742
+ * @memberof DiscussionPost
95743
+ * @static
95744
+ * @param {DiscussionPost} message DiscussionPost
95745
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
95746
+ * @returns {Object.<string,*>} Plain object
95747
+ */
95748
+ DiscussionPost.toObject = function toObject(message, options) {
95749
+ if (!options)
95750
+ options = {};
95751
+ var object = {};
95752
+ if (options.defaults) {
95753
+ object.id = "";
95754
+ object.author = null;
95755
+ }
95756
+ if (message.id != null && message.hasOwnProperty("id"))
95757
+ object.id = message.id;
95758
+ if (message.author != null && message.hasOwnProperty("author"))
95759
+ object.author = $root.DiscussionUser.toObject(message.author, options);
95760
+ return object;
95761
+ };
95762
+
95763
+ /**
95764
+ * Converts this DiscussionPost to JSON.
95765
+ * @function toJSON
95766
+ * @memberof DiscussionPost
95767
+ * @instance
95768
+ * @returns {Object.<string,*>} JSON object
95769
+ */
95770
+ DiscussionPost.prototype.toJSON = function toJSON() {
95771
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
95772
+ };
95773
+
95774
+ return DiscussionPost;
95775
+ })();
95776
+
95777
+ $root.DiscussionPostReactionCreated = (function() {
95778
+
95779
+ /**
95780
+ * Properties of a DiscussionPostReactionCreated.
95781
+ * @name IDiscussionPostReactionCreated
95782
+ * @interface IDiscussionPostReactionCreated
95783
+ * @property {string|null} [reactionId] DiscussionPostReactionCreated reactionId
95784
+ * @property {DiscussionPostReactionCreated.ReactionType|null} [reactionType] DiscussionPostReactionCreated reactionType
95785
+ * @property {IDiscussionPost|null} [post] DiscussionPostReactionCreated post
95786
+ * @property {IDiscussionUser|null} [reactionAuthor] DiscussionPostReactionCreated reactionAuthor
95787
+ * @property {number|Long|null} [createdAt] DiscussionPostReactionCreated createdAt
95788
+ */
95789
+
95790
+ /**
95791
+ * Constructs a new DiscussionPostReactionCreated.
95792
+ * @name DiscussionPostReactionCreated
95793
+ * @classdesc Represents a DiscussionPostReactionCreated.
95794
+ * @implements IDiscussionPostReactionCreated
95795
+ * @constructor
95796
+ * @param {IDiscussionPostReactionCreated=} [properties] Properties to set
95797
+ */
95798
+ function DiscussionPostReactionCreated(properties) {
95799
+ if (properties)
95800
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
95801
+ if (properties[keys[i]] != null)
95802
+ this[keys[i]] = properties[keys[i]];
95803
+ }
95804
+
95805
+ /**
95806
+ * DiscussionPostReactionCreated reactionId.
95807
+ * @member {string} reactionId
95808
+ * @memberof DiscussionPostReactionCreated
95809
+ * @instance
95810
+ */
95811
+ DiscussionPostReactionCreated.prototype.reactionId = "";
95812
+
95813
+ /**
95814
+ * DiscussionPostReactionCreated reactionType.
95815
+ * @member {DiscussionPostReactionCreated.ReactionType} reactionType
95816
+ * @memberof DiscussionPostReactionCreated
95817
+ * @instance
95818
+ */
95819
+ DiscussionPostReactionCreated.prototype.reactionType = 0;
95820
+
95821
+ /**
95822
+ * DiscussionPostReactionCreated post.
95823
+ * @member {IDiscussionPost|null|undefined} post
95824
+ * @memberof DiscussionPostReactionCreated
95825
+ * @instance
95826
+ */
95827
+ DiscussionPostReactionCreated.prototype.post = null;
95828
+
95829
+ /**
95830
+ * DiscussionPostReactionCreated reactionAuthor.
95831
+ * @member {IDiscussionUser|null|undefined} reactionAuthor
95832
+ * @memberof DiscussionPostReactionCreated
95833
+ * @instance
95834
+ */
95835
+ DiscussionPostReactionCreated.prototype.reactionAuthor = null;
95836
+
95837
+ /**
95838
+ * DiscussionPostReactionCreated createdAt.
95839
+ * @member {number|Long} createdAt
95840
+ * @memberof DiscussionPostReactionCreated
95841
+ * @instance
95842
+ */
95843
+ DiscussionPostReactionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
95844
+
95845
+ /**
95846
+ * Creates a new DiscussionPostReactionCreated instance using the specified properties.
95847
+ * @function create
95848
+ * @memberof DiscussionPostReactionCreated
95849
+ * @static
95850
+ * @param {IDiscussionPostReactionCreated=} [properties] Properties to set
95851
+ * @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated instance
95852
+ */
95853
+ DiscussionPostReactionCreated.create = function create(properties) {
95854
+ return new DiscussionPostReactionCreated(properties);
95855
+ };
95856
+
95857
+ /**
95858
+ * Encodes the specified DiscussionPostReactionCreated message. Does not implicitly {@link DiscussionPostReactionCreated.verify|verify} messages.
95859
+ * @function encode
95860
+ * @memberof DiscussionPostReactionCreated
95861
+ * @static
95862
+ * @param {IDiscussionPostReactionCreated} message DiscussionPostReactionCreated message or plain object to encode
95863
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95864
+ * @returns {$protobuf.Writer} Writer
95865
+ */
95866
+ DiscussionPostReactionCreated.encode = function encode(message, writer) {
95867
+ if (!writer)
95868
+ writer = $Writer.create();
95869
+ if (message.reactionId != null && message.hasOwnProperty("reactionId"))
95870
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.reactionId);
95871
+ if (message.reactionType != null && message.hasOwnProperty("reactionType"))
95872
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.reactionType);
95873
+ if (message.post != null && message.hasOwnProperty("post"))
95874
+ $root.DiscussionPost.encode(message.post, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
95875
+ if (message.reactionAuthor != null && message.hasOwnProperty("reactionAuthor"))
95876
+ $root.DiscussionUser.encode(message.reactionAuthor, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
95877
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
95878
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
95879
+ return writer;
95880
+ };
95881
+
95882
+ /**
95883
+ * Encodes the specified DiscussionPostReactionCreated message, length delimited. Does not implicitly {@link DiscussionPostReactionCreated.verify|verify} messages.
95884
+ * @function encodeDelimited
95885
+ * @memberof DiscussionPostReactionCreated
95886
+ * @static
95887
+ * @param {IDiscussionPostReactionCreated} message DiscussionPostReactionCreated message or plain object to encode
95888
+ * @param {$protobuf.Writer} [writer] Writer to encode to
95889
+ * @returns {$protobuf.Writer} Writer
95890
+ */
95891
+ DiscussionPostReactionCreated.encodeDelimited = function encodeDelimited(message, writer) {
95892
+ return this.encode(message, writer).ldelim();
95893
+ };
95894
+
95895
+ /**
95896
+ * Decodes a DiscussionPostReactionCreated message from the specified reader or buffer.
95897
+ * @function decode
95898
+ * @memberof DiscussionPostReactionCreated
95899
+ * @static
95900
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95901
+ * @param {number} [length] Message length if known beforehand
95902
+ * @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated
95903
+ * @throws {Error} If the payload is not a reader or valid buffer
95904
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95905
+ */
95906
+ DiscussionPostReactionCreated.decode = function decode(reader, length) {
95907
+ if (!(reader instanceof $Reader))
95908
+ reader = $Reader.create(reader);
95909
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionPostReactionCreated();
95910
+ while (reader.pos < end) {
95911
+ var tag = reader.uint32();
95912
+ switch (tag >>> 3) {
95913
+ case 1:
95914
+ message.reactionId = reader.string();
95915
+ break;
95916
+ case 2:
95917
+ message.reactionType = reader.int32();
95918
+ break;
95919
+ case 3:
95920
+ message.post = $root.DiscussionPost.decode(reader, reader.uint32());
95921
+ break;
95922
+ case 4:
95923
+ message.reactionAuthor = $root.DiscussionUser.decode(reader, reader.uint32());
95924
+ break;
95925
+ case 5:
95926
+ message.createdAt = reader.uint64();
95927
+ break;
95928
+ default:
95929
+ reader.skipType(tag & 7);
95930
+ break;
95931
+ }
95932
+ }
95933
+ return message;
95934
+ };
95935
+
95936
+ /**
95937
+ * Decodes a DiscussionPostReactionCreated message from the specified reader or buffer, length delimited.
95938
+ * @function decodeDelimited
95939
+ * @memberof DiscussionPostReactionCreated
95940
+ * @static
95941
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
95942
+ * @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated
95943
+ * @throws {Error} If the payload is not a reader or valid buffer
95944
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
95945
+ */
95946
+ DiscussionPostReactionCreated.decodeDelimited = function decodeDelimited(reader) {
95947
+ if (!(reader instanceof $Reader))
95948
+ reader = new $Reader(reader);
95949
+ return this.decode(reader, reader.uint32());
95950
+ };
95951
+
95952
+ /**
95953
+ * Verifies a DiscussionPostReactionCreated message.
95954
+ * @function verify
95955
+ * @memberof DiscussionPostReactionCreated
95956
+ * @static
95957
+ * @param {Object.<string,*>} message Plain object to verify
95958
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
95959
+ */
95960
+ DiscussionPostReactionCreated.verify = function verify(message) {
95961
+ if (typeof message !== "object" || message === null)
95962
+ return "object expected";
95963
+ if (message.reactionId != null && message.hasOwnProperty("reactionId"))
95964
+ if (!$util.isString(message.reactionId))
95965
+ return "reactionId: string expected";
95966
+ if (message.reactionType != null && message.hasOwnProperty("reactionType"))
95967
+ switch (message.reactionType) {
95968
+ default:
95969
+ return "reactionType: enum value expected";
95970
+ case 0:
95971
+ case 1:
95972
+ case 2:
95973
+ case 3:
95974
+ case 4:
95975
+ case 5:
95976
+ case 6:
95977
+ case 7:
95978
+ case 8:
95979
+ case 9:
95980
+ break;
95981
+ }
95982
+ if (message.post != null && message.hasOwnProperty("post")) {
95983
+ var error = $root.DiscussionPost.verify(message.post);
95984
+ if (error)
95985
+ return "post." + error;
95986
+ }
95987
+ if (message.reactionAuthor != null && message.hasOwnProperty("reactionAuthor")) {
95988
+ var error = $root.DiscussionUser.verify(message.reactionAuthor);
95989
+ if (error)
95990
+ return "reactionAuthor." + error;
95991
+ }
95992
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
95993
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
95994
+ return "createdAt: integer|Long expected";
95995
+ return null;
95996
+ };
95997
+
95998
+ /**
95999
+ * Creates a DiscussionPostReactionCreated message from a plain object. Also converts values to their respective internal types.
96000
+ * @function fromObject
96001
+ * @memberof DiscussionPostReactionCreated
96002
+ * @static
96003
+ * @param {Object.<string,*>} object Plain object
96004
+ * @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated
96005
+ */
96006
+ DiscussionPostReactionCreated.fromObject = function fromObject(object) {
96007
+ if (object instanceof $root.DiscussionPostReactionCreated)
96008
+ return object;
96009
+ var message = new $root.DiscussionPostReactionCreated();
96010
+ if (object.reactionId != null)
96011
+ message.reactionId = String(object.reactionId);
96012
+ switch (object.reactionType) {
96013
+ case "REACTION_TYPE_UNKNOWN":
96014
+ case 0:
96015
+ message.reactionType = 0;
96016
+ break;
96017
+ case "REACTION_TYPE_LOVE_THIS":
96018
+ case 1:
96019
+ message.reactionType = 1;
96020
+ break;
96021
+ case "REACTION_TYPE_JUST_SAYING_HI":
96022
+ case 2:
96023
+ message.reactionType = 2;
96024
+ break;
96025
+ case "REACTION_TYPE_KEEP_IT_UP":
96026
+ case 3:
96027
+ message.reactionType = 3;
96028
+ break;
96029
+ case "REACTION_TYPE_GREAT_QUESTION":
96030
+ case 4:
96031
+ message.reactionType = 4;
96032
+ break;
96033
+ case "REACTION_TYPE_HIGH_FIVE":
96034
+ case 5:
96035
+ message.reactionType = 5;
96036
+ break;
96037
+ case "REACTION_TYPE_LOL":
96038
+ case 6:
96039
+ message.reactionType = 6;
96040
+ break;
96041
+ case "REACTION_TYPE_YOU_ARE_NOT_ALONE":
96042
+ case 7:
96043
+ message.reactionType = 7;
96044
+ break;
96045
+ case "REACTION_TYPE_SORRY_TO_HEAR":
96046
+ case 8:
96047
+ message.reactionType = 8;
96048
+ break;
96049
+ case "REACTION_TYPE_SENDING_HUGS":
96050
+ case 9:
96051
+ message.reactionType = 9;
96052
+ break;
96053
+ }
96054
+ if (object.post != null) {
96055
+ if (typeof object.post !== "object")
96056
+ throw TypeError(".DiscussionPostReactionCreated.post: object expected");
96057
+ message.post = $root.DiscussionPost.fromObject(object.post);
96058
+ }
96059
+ if (object.reactionAuthor != null) {
96060
+ if (typeof object.reactionAuthor !== "object")
96061
+ throw TypeError(".DiscussionPostReactionCreated.reactionAuthor: object expected");
96062
+ message.reactionAuthor = $root.DiscussionUser.fromObject(object.reactionAuthor);
96063
+ }
96064
+ if (object.createdAt != null)
96065
+ if ($util.Long)
96066
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
96067
+ else if (typeof object.createdAt === "string")
96068
+ message.createdAt = parseInt(object.createdAt, 10);
96069
+ else if (typeof object.createdAt === "number")
96070
+ message.createdAt = object.createdAt;
96071
+ else if (typeof object.createdAt === "object")
96072
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
96073
+ return message;
96074
+ };
96075
+
96076
+ /**
96077
+ * Creates a plain object from a DiscussionPostReactionCreated message. Also converts values to other types if specified.
96078
+ * @function toObject
96079
+ * @memberof DiscussionPostReactionCreated
96080
+ * @static
96081
+ * @param {DiscussionPostReactionCreated} message DiscussionPostReactionCreated
96082
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
96083
+ * @returns {Object.<string,*>} Plain object
96084
+ */
96085
+ DiscussionPostReactionCreated.toObject = function toObject(message, options) {
96086
+ if (!options)
96087
+ options = {};
96088
+ var object = {};
96089
+ if (options.defaults) {
96090
+ object.reactionId = "";
96091
+ object.reactionType = options.enums === String ? "REACTION_TYPE_UNKNOWN" : 0;
96092
+ object.post = null;
96093
+ object.reactionAuthor = null;
96094
+ if ($util.Long) {
96095
+ var long = new $util.Long(0, 0, true);
96096
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
96097
+ } else
96098
+ object.createdAt = options.longs === String ? "0" : 0;
96099
+ }
96100
+ if (message.reactionId != null && message.hasOwnProperty("reactionId"))
96101
+ object.reactionId = message.reactionId;
96102
+ if (message.reactionType != null && message.hasOwnProperty("reactionType"))
96103
+ object.reactionType = options.enums === String ? $root.DiscussionPostReactionCreated.ReactionType[message.reactionType] : message.reactionType;
96104
+ if (message.post != null && message.hasOwnProperty("post"))
96105
+ object.post = $root.DiscussionPost.toObject(message.post, options);
96106
+ if (message.reactionAuthor != null && message.hasOwnProperty("reactionAuthor"))
96107
+ object.reactionAuthor = $root.DiscussionUser.toObject(message.reactionAuthor, options);
96108
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
96109
+ if (typeof message.createdAt === "number")
96110
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
96111
+ else
96112
+ 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;
96113
+ return object;
96114
+ };
96115
+
96116
+ /**
96117
+ * Converts this DiscussionPostReactionCreated to JSON.
96118
+ * @function toJSON
96119
+ * @memberof DiscussionPostReactionCreated
96120
+ * @instance
96121
+ * @returns {Object.<string,*>} JSON object
96122
+ */
96123
+ DiscussionPostReactionCreated.prototype.toJSON = function toJSON() {
96124
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
96125
+ };
96126
+
96127
+ /**
96128
+ * ReactionType enum.
96129
+ * @name DiscussionPostReactionCreated.ReactionType
96130
+ * @enum {string}
96131
+ * @property {number} REACTION_TYPE_UNKNOWN=0 REACTION_TYPE_UNKNOWN value
96132
+ * @property {number} REACTION_TYPE_LOVE_THIS=1 REACTION_TYPE_LOVE_THIS value
96133
+ * @property {number} REACTION_TYPE_JUST_SAYING_HI=2 REACTION_TYPE_JUST_SAYING_HI value
96134
+ * @property {number} REACTION_TYPE_KEEP_IT_UP=3 REACTION_TYPE_KEEP_IT_UP value
96135
+ * @property {number} REACTION_TYPE_GREAT_QUESTION=4 REACTION_TYPE_GREAT_QUESTION value
96136
+ * @property {number} REACTION_TYPE_HIGH_FIVE=5 REACTION_TYPE_HIGH_FIVE value
96137
+ * @property {number} REACTION_TYPE_LOL=6 REACTION_TYPE_LOL value
96138
+ * @property {number} REACTION_TYPE_YOU_ARE_NOT_ALONE=7 REACTION_TYPE_YOU_ARE_NOT_ALONE value
96139
+ * @property {number} REACTION_TYPE_SORRY_TO_HEAR=8 REACTION_TYPE_SORRY_TO_HEAR value
96140
+ * @property {number} REACTION_TYPE_SENDING_HUGS=9 REACTION_TYPE_SENDING_HUGS value
96141
+ */
96142
+ DiscussionPostReactionCreated.ReactionType = (function() {
96143
+ var valuesById = {}, values = Object.create(valuesById);
96144
+ values[valuesById[0] = "REACTION_TYPE_UNKNOWN"] = 0;
96145
+ values[valuesById[1] = "REACTION_TYPE_LOVE_THIS"] = 1;
96146
+ values[valuesById[2] = "REACTION_TYPE_JUST_SAYING_HI"] = 2;
96147
+ values[valuesById[3] = "REACTION_TYPE_KEEP_IT_UP"] = 3;
96148
+ values[valuesById[4] = "REACTION_TYPE_GREAT_QUESTION"] = 4;
96149
+ values[valuesById[5] = "REACTION_TYPE_HIGH_FIVE"] = 5;
96150
+ values[valuesById[6] = "REACTION_TYPE_LOL"] = 6;
96151
+ values[valuesById[7] = "REACTION_TYPE_YOU_ARE_NOT_ALONE"] = 7;
96152
+ values[valuesById[8] = "REACTION_TYPE_SORRY_TO_HEAR"] = 8;
96153
+ values[valuesById[9] = "REACTION_TYPE_SENDING_HUGS"] = 9;
96154
+ return values;
96155
+ })();
96156
+
96157
+ return DiscussionPostReactionCreated;
96158
+ })();
96159
+
96160
+ $root.ElfNormalizationJobCompleted = (function() {
96161
+
96162
+ /**
96163
+ * Properties of an ElfNormalizationJobCompleted.
96164
+ * @name IElfNormalizationJobCompleted
96165
+ * @interface IElfNormalizationJobCompleted
96166
+ * @property {elf.INormalizationJob|null} [job] ElfNormalizationJobCompleted job
96167
+ * @property {elf.INormalizationJobResult|null} [result] ElfNormalizationJobCompleted result
96168
+ */
96169
+
96170
+ /**
96171
+ * Constructs a new ElfNormalizationJobCompleted.
96172
+ * @name ElfNormalizationJobCompleted
96173
+ * @classdesc Represents an ElfNormalizationJobCompleted.
96174
+ * @implements IElfNormalizationJobCompleted
96175
+ * @constructor
96176
+ * @param {IElfNormalizationJobCompleted=} [properties] Properties to set
96177
+ */
96178
+ function ElfNormalizationJobCompleted(properties) {
96179
+ if (properties)
96180
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
96181
+ if (properties[keys[i]] != null)
96182
+ this[keys[i]] = properties[keys[i]];
96183
+ }
96184
+
96185
+ /**
96186
+ * ElfNormalizationJobCompleted job.
96187
+ * @member {elf.INormalizationJob|null|undefined} job
96188
+ * @memberof ElfNormalizationJobCompleted
96189
+ * @instance
96190
+ */
96191
+ ElfNormalizationJobCompleted.prototype.job = null;
96192
+
96193
+ /**
96194
+ * ElfNormalizationJobCompleted result.
96195
+ * @member {elf.INormalizationJobResult|null|undefined} result
96196
+ * @memberof ElfNormalizationJobCompleted
96197
+ * @instance
96198
+ */
96199
+ ElfNormalizationJobCompleted.prototype.result = null;
96200
+
96201
+ /**
96202
+ * Creates a new ElfNormalizationJobCompleted instance using the specified properties.
96203
+ * @function create
96204
+ * @memberof ElfNormalizationJobCompleted
96205
+ * @static
96206
+ * @param {IElfNormalizationJobCompleted=} [properties] Properties to set
96207
+ * @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted instance
96208
+ */
96209
+ ElfNormalizationJobCompleted.create = function create(properties) {
96210
+ return new ElfNormalizationJobCompleted(properties);
96211
+ };
96212
+
96213
+ /**
96214
+ * Encodes the specified ElfNormalizationJobCompleted message. Does not implicitly {@link ElfNormalizationJobCompleted.verify|verify} messages.
96215
+ * @function encode
96216
+ * @memberof ElfNormalizationJobCompleted
96217
+ * @static
96218
+ * @param {IElfNormalizationJobCompleted} message ElfNormalizationJobCompleted message or plain object to encode
96219
+ * @param {$protobuf.Writer} [writer] Writer to encode to
96220
+ * @returns {$protobuf.Writer} Writer
96221
+ */
96222
+ ElfNormalizationJobCompleted.encode = function encode(message, writer) {
96223
+ if (!writer)
96224
+ writer = $Writer.create();
96225
+ if (message.job != null && message.hasOwnProperty("job"))
96226
+ $root.elf.NormalizationJob.encode(message.job, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
96227
+ if (message.result != null && message.hasOwnProperty("result"))
96228
+ $root.elf.NormalizationJobResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
96229
+ return writer;
96230
+ };
96231
+
96232
+ /**
96233
+ * Encodes the specified ElfNormalizationJobCompleted message, length delimited. Does not implicitly {@link ElfNormalizationJobCompleted.verify|verify} messages.
96234
+ * @function encodeDelimited
96235
+ * @memberof ElfNormalizationJobCompleted
96236
+ * @static
96237
+ * @param {IElfNormalizationJobCompleted} message ElfNormalizationJobCompleted message or plain object to encode
96238
+ * @param {$protobuf.Writer} [writer] Writer to encode to
96239
+ * @returns {$protobuf.Writer} Writer
96240
+ */
96241
+ ElfNormalizationJobCompleted.encodeDelimited = function encodeDelimited(message, writer) {
96242
+ return this.encode(message, writer).ldelim();
96243
+ };
96244
+
96245
+ /**
96246
+ * Decodes an ElfNormalizationJobCompleted message from the specified reader or buffer.
96247
+ * @function decode
96248
+ * @memberof ElfNormalizationJobCompleted
96249
+ * @static
96250
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
96251
+ * @param {number} [length] Message length if known beforehand
96252
+ * @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted
96253
+ * @throws {Error} If the payload is not a reader or valid buffer
96254
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
96255
+ */
96256
+ ElfNormalizationJobCompleted.decode = function decode(reader, length) {
96257
+ if (!(reader instanceof $Reader))
96258
+ reader = $Reader.create(reader);
96259
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfNormalizationJobCompleted();
96260
+ while (reader.pos < end) {
96261
+ var tag = reader.uint32();
96262
+ switch (tag >>> 3) {
96263
+ case 1:
96264
+ message.job = $root.elf.NormalizationJob.decode(reader, reader.uint32());
96265
+ break;
96266
+ case 2:
96267
+ message.result = $root.elf.NormalizationJobResult.decode(reader, reader.uint32());
96268
+ break;
96269
+ default:
96270
+ reader.skipType(tag & 7);
96271
+ break;
96272
+ }
96273
+ }
96274
+ return message;
96275
+ };
96276
+
96277
+ /**
96278
+ * Decodes an ElfNormalizationJobCompleted message from the specified reader or buffer, length delimited.
96279
+ * @function decodeDelimited
96280
+ * @memberof ElfNormalizationJobCompleted
96281
+ * @static
96282
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
96283
+ * @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted
96284
+ * @throws {Error} If the payload is not a reader or valid buffer
96285
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
96286
+ */
96287
+ ElfNormalizationJobCompleted.decodeDelimited = function decodeDelimited(reader) {
96288
+ if (!(reader instanceof $Reader))
96289
+ reader = new $Reader(reader);
96290
+ return this.decode(reader, reader.uint32());
96291
+ };
96292
+
96293
+ /**
96294
+ * Verifies an ElfNormalizationJobCompleted message.
96295
+ * @function verify
96296
+ * @memberof ElfNormalizationJobCompleted
96297
+ * @static
96298
+ * @param {Object.<string,*>} message Plain object to verify
96299
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
96300
+ */
96301
+ ElfNormalizationJobCompleted.verify = function verify(message) {
96302
+ if (typeof message !== "object" || message === null)
96303
+ return "object expected";
96304
+ if (message.job != null && message.hasOwnProperty("job")) {
96305
+ var error = $root.elf.NormalizationJob.verify(message.job);
96306
+ if (error)
96307
+ return "job." + error;
96308
+ }
96309
+ if (message.result != null && message.hasOwnProperty("result")) {
96310
+ var error = $root.elf.NormalizationJobResult.verify(message.result);
96311
+ if (error)
96312
+ return "result." + error;
96313
+ }
96314
+ return null;
96315
+ };
96316
+
96317
+ /**
96318
+ * Creates an ElfNormalizationJobCompleted message from a plain object. Also converts values to their respective internal types.
96319
+ * @function fromObject
96320
+ * @memberof ElfNormalizationJobCompleted
96321
+ * @static
96322
+ * @param {Object.<string,*>} object Plain object
96323
+ * @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted
96324
+ */
96325
+ ElfNormalizationJobCompleted.fromObject = function fromObject(object) {
96326
+ if (object instanceof $root.ElfNormalizationJobCompleted)
96327
+ return object;
96328
+ var message = new $root.ElfNormalizationJobCompleted();
96329
+ if (object.job != null) {
96330
+ if (typeof object.job !== "object")
96331
+ throw TypeError(".ElfNormalizationJobCompleted.job: object expected");
96332
+ message.job = $root.elf.NormalizationJob.fromObject(object.job);
96333
+ }
96334
+ if (object.result != null) {
96335
+ if (typeof object.result !== "object")
96336
+ throw TypeError(".ElfNormalizationJobCompleted.result: object expected");
96337
+ message.result = $root.elf.NormalizationJobResult.fromObject(object.result);
96338
+ }
96339
+ return message;
96340
+ };
96341
+
96342
+ /**
96343
+ * Creates a plain object from an ElfNormalizationJobCompleted message. Also converts values to other types if specified.
96344
+ * @function toObject
96345
+ * @memberof ElfNormalizationJobCompleted
96346
+ * @static
96347
+ * @param {ElfNormalizationJobCompleted} message ElfNormalizationJobCompleted
96348
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
96349
+ * @returns {Object.<string,*>} Plain object
96350
+ */
96351
+ ElfNormalizationJobCompleted.toObject = function toObject(message, options) {
96352
+ if (!options)
96353
+ options = {};
96354
+ var object = {};
96355
+ if (options.defaults) {
96356
+ object.job = null;
96357
+ object.result = null;
96358
+ }
96359
+ if (message.job != null && message.hasOwnProperty("job"))
96360
+ object.job = $root.elf.NormalizationJob.toObject(message.job, options);
96361
+ if (message.result != null && message.hasOwnProperty("result"))
96362
+ object.result = $root.elf.NormalizationJobResult.toObject(message.result, options);
96363
+ return object;
96364
+ };
96365
+
96366
+ /**
96367
+ * Converts this ElfNormalizationJobCompleted to JSON.
96368
+ * @function toJSON
96369
+ * @memberof ElfNormalizationJobCompleted
96370
+ * @instance
96371
+ * @returns {Object.<string,*>} JSON object
96372
+ */
96373
+ ElfNormalizationJobCompleted.prototype.toJSON = function toJSON() {
96374
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
96375
+ };
96376
+
96377
+ return ElfNormalizationJobCompleted;
96378
+ })();
96379
+
96380
+ $root.ElfNormalizationJobFailed = (function() {
96381
+
96382
+ /**
96383
+ * Properties of an ElfNormalizationJobFailed.
96384
+ * @name IElfNormalizationJobFailed
96385
+ * @interface IElfNormalizationJobFailed
96386
+ * @property {elf.INormalizationJob|null} [job] ElfNormalizationJobFailed job
96387
+ * @property {elf.INormalizationJobError|null} [error] ElfNormalizationJobFailed error
96388
+ * @property {boolean|null} [gingerShouldProcess] ElfNormalizationJobFailed gingerShouldProcess
95394
96389
  * @property {boolean|null} [headspaceShouldProcess] ElfNormalizationJobFailed headspaceShouldProcess
95395
96390
  * @property {string|null} [elfErrorsCsvUrl] ElfNormalizationJobFailed elfErrorsCsvUrl
95396
96391
  */
@@ -98217,7 +99212,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98217
99212
  * @property {string|null} [ssoType] EnterpriseUserEnrollmentCreated ssoType
98218
99213
  * @property {EnrollmentFlow|null} [enrollmentFlow] EnterpriseUserEnrollmentCreated enrollmentFlow
98219
99214
  * @property {string|null} [workEmail] EnterpriseUserEnrollmentCreated workEmail
98220
- * @property {number|Long|null} [gracePeriodEndsAt] EnterpriseUserEnrollmentCreated gracePeriodEndsAt
98221
99215
  */
98222
99216
 
98223
99217
  /**
@@ -98459,14 +99453,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98459
99453
  */
98460
99454
  EnterpriseUserEnrollmentCreated.prototype.workEmail = "";
98461
99455
 
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
99456
  /**
98471
99457
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
98472
99458
  * @function create
@@ -98547,8 +99533,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98547
99533
  writer.uint32(/* id 31, wireType 0 =*/248).int32(message.enrollmentFlow);
98548
99534
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
98549
99535
  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
99536
  return writer;
98553
99537
  };
98554
99538
 
@@ -98667,9 +99651,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98667
99651
  case 32:
98668
99652
  message.workEmail = reader.string();
98669
99653
  break;
98670
- case 33:
98671
- message.gracePeriodEndsAt = reader.uint64();
98672
- break;
98673
99654
  default:
98674
99655
  reader.skipType(tag & 7);
98675
99656
  break;
@@ -98818,9 +99799,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98818
99799
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
98819
99800
  if (!$util.isString(message.workEmail))
98820
99801
  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
99802
  return null;
98825
99803
  };
98826
99804
 
@@ -98995,15 +99973,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
98995
99973
  }
98996
99974
  if (object.workEmail != null)
98997
99975
  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
99976
  return message;
99008
99977
  };
99009
99978
 
@@ -99069,11 +100038,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
99069
100038
  object.ssoType = "";
99070
100039
  object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
99071
100040
  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
100041
  }
99078
100042
  if (message.userId != null && message.hasOwnProperty("userId"))
99079
100043
  object.userId = message.userId;
@@ -99146,11 +100110,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
99146
100110
  object.enrollmentFlow = options.enums === String ? $root.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
99147
100111
  if (message.workEmail != null && message.hasOwnProperty("workEmail"))
99148
100112
  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
100113
  return object;
99155
100114
  };
99156
100115
 
@@ -99202,7 +100161,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
99202
100161
  * @property {boolean|null} [gingerBundlingEnabled] EnterpriseUserEnrollmentRemoved gingerBundlingEnabled
99203
100162
  * @property {string|null} [ssoType] EnterpriseUserEnrollmentRemoved ssoType
99204
100163
  * @property {EnrollmentFlow|null} [enrollmentFlow] EnterpriseUserEnrollmentRemoved enrollmentFlow
99205
- * @property {number|Long|null} [gracePeriodEndsAt] EnterpriseUserEnrollmentRemoved gracePeriodEndsAt
99206
100164
  */
99207
100165
 
99208
100166
  /**
@@ -99444,14 +100402,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
99444
100402
  */
99445
100403
  EnterpriseUserEnrollmentRemoved.prototype.enrollmentFlow = 0;
99446
100404
 
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
100405
  /**
99456
100406
  * Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
99457
100407
  * @function create
@@ -99532,8 +100482,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
99532
100482
  writer.uint32(/* id 31, wireType 2 =*/250).string(message.ssoType);
99533
100483
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
99534
100484
  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
100485
  return writer;
99538
100486
  };
99539
100487
 
@@ -99652,9 +100600,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
99652
100600
  case 32:
99653
100601
  message.enrollmentFlow = reader.int32();
99654
100602
  break;
99655
- case 33:
99656
- message.gracePeriodEndsAt = reader.uint64();
99657
- break;
99658
100603
  default:
99659
100604
  reader.skipType(tag & 7);
99660
100605
  break;
@@ -99818,9 +100763,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
99818
100763
  case 3:
99819
100764
  break;
99820
100765
  }
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
100766
  return null;
99825
100767
  };
99826
100768
 
@@ -100043,15 +100985,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
100043
100985
  message.enrollmentFlow = 3;
100044
100986
  break;
100045
100987
  }
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
100988
  return message;
100056
100989
  };
100057
100990
 
@@ -100117,11 +101050,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
100117
101050
  object.gingerBundlingEnabled = false;
100118
101051
  object.ssoType = "";
100119
101052
  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
101053
  }
100126
101054
  if (message.userId != null && message.hasOwnProperty("userId"))
100127
101055
  object.userId = message.userId;
@@ -100194,11 +101122,6 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
100194
101122
  object.ssoType = message.ssoType;
100195
101123
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
100196
101124
  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
101125
  return object;
100203
101126
  };
100204
101127
 
@@ -100249,7 +101172,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
100249
101172
  * @property {boolean|null} [gingerBundlingEnabled] EnterpriseUserEnrollmentAmended gingerBundlingEnabled
100250
101173
  * @property {string|null} [ssoType] EnterpriseUserEnrollmentAmended ssoType
100251
101174
  * @property {EnrollmentFlow|null} [enrollmentFlow] EnterpriseUserEnrollmentAmended enrollmentFlow
100252
- * @property {number|Long|null} [gracePeriodEndsAt] EnterpriseUserEnrollmentAmended gracePeriodEndsAt
100253
101175
  */
100254
101176
 
100255
101177
  /**
@@ -100483,14 +101405,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
100483
101405
  */
100484
101406
  EnterpriseUserEnrollmentAmended.prototype.enrollmentFlow = 0;
100485
101407
 
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
101408
  /**
100495
101409
  * Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
100496
101410
  * @function create
@@ -100569,8 +101483,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
100569
101483
  writer.uint32(/* id 30, wireType 2 =*/242).string(message.ssoType);
100570
101484
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
100571
101485
  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
101486
  return writer;
100575
101487
  };
100576
101488
 
@@ -100686,9 +101598,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
100686
101598
  case 31:
100687
101599
  message.enrollmentFlow = reader.int32();
100688
101600
  break;
100689
- case 32:
100690
- message.gracePeriodEndsAt = reader.uint64();
100691
- break;
100692
101601
  default:
100693
101602
  reader.skipType(tag & 7);
100694
101603
  break;
@@ -100834,9 +101743,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
100834
101743
  case 3:
100835
101744
  break;
100836
101745
  }
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
101746
  return null;
100841
101747
  };
100842
101748
 
@@ -101009,15 +101915,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
101009
101915
  message.enrollmentFlow = 3;
101010
101916
  break;
101011
101917
  }
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
101918
  return message;
101022
101919
  };
101023
101920
 
@@ -101082,11 +101979,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
101082
101979
  object.gingerBundlingEnabled = false;
101083
101980
  object.ssoType = "";
101084
101981
  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
101982
  }
101091
101983
  if (message.userId != null && message.hasOwnProperty("userId"))
101092
101984
  object.userId = message.userId;
@@ -101157,11 +102049,6 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
101157
102049
  object.ssoType = message.ssoType;
101158
102050
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
101159
102051
  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
102052
  return object;
101166
102053
  };
101167
102054