@headspace/protos-events 1.504.0 → 1.505.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +323 -0
- package/lib/index.js +808 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -34236,6 +34236,329 @@ export class UserEnabledWakeupNotifications implements IUserEnabledWakeupNotific
|
|
|
34236
34236
|
public toJSON(): { [k: string]: any };
|
|
34237
34237
|
}
|
|
34238
34238
|
|
|
34239
|
+
/** Properties of a DiscussionUser. */
|
|
34240
|
+
export interface IDiscussionUser {
|
|
34241
|
+
|
|
34242
|
+
/** DiscussionUser userId */
|
|
34243
|
+
userId?: (string|null);
|
|
34244
|
+
|
|
34245
|
+
/** DiscussionUser displayName */
|
|
34246
|
+
displayName?: (string|null);
|
|
34247
|
+
}
|
|
34248
|
+
|
|
34249
|
+
/** Represents a DiscussionUser. */
|
|
34250
|
+
export class DiscussionUser implements IDiscussionUser {
|
|
34251
|
+
|
|
34252
|
+
/**
|
|
34253
|
+
* Constructs a new DiscussionUser.
|
|
34254
|
+
* @param [properties] Properties to set
|
|
34255
|
+
*/
|
|
34256
|
+
constructor(properties?: IDiscussionUser);
|
|
34257
|
+
|
|
34258
|
+
/** DiscussionUser userId. */
|
|
34259
|
+
public userId: string;
|
|
34260
|
+
|
|
34261
|
+
/** DiscussionUser displayName. */
|
|
34262
|
+
public displayName: string;
|
|
34263
|
+
|
|
34264
|
+
/**
|
|
34265
|
+
* Creates a new DiscussionUser instance using the specified properties.
|
|
34266
|
+
* @param [properties] Properties to set
|
|
34267
|
+
* @returns DiscussionUser instance
|
|
34268
|
+
*/
|
|
34269
|
+
public static create(properties?: IDiscussionUser): DiscussionUser;
|
|
34270
|
+
|
|
34271
|
+
/**
|
|
34272
|
+
* Encodes the specified DiscussionUser message. Does not implicitly {@link DiscussionUser.verify|verify} messages.
|
|
34273
|
+
* @param message DiscussionUser message or plain object to encode
|
|
34274
|
+
* @param [writer] Writer to encode to
|
|
34275
|
+
* @returns Writer
|
|
34276
|
+
*/
|
|
34277
|
+
public static encode(message: IDiscussionUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
34278
|
+
|
|
34279
|
+
/**
|
|
34280
|
+
* Encodes the specified DiscussionUser message, length delimited. Does not implicitly {@link DiscussionUser.verify|verify} messages.
|
|
34281
|
+
* @param message DiscussionUser message or plain object to encode
|
|
34282
|
+
* @param [writer] Writer to encode to
|
|
34283
|
+
* @returns Writer
|
|
34284
|
+
*/
|
|
34285
|
+
public static encodeDelimited(message: IDiscussionUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
34286
|
+
|
|
34287
|
+
/**
|
|
34288
|
+
* Decodes a DiscussionUser message from the specified reader or buffer.
|
|
34289
|
+
* @param reader Reader or buffer to decode from
|
|
34290
|
+
* @param [length] Message length if known beforehand
|
|
34291
|
+
* @returns DiscussionUser
|
|
34292
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
34293
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
34294
|
+
*/
|
|
34295
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DiscussionUser;
|
|
34296
|
+
|
|
34297
|
+
/**
|
|
34298
|
+
* Decodes a DiscussionUser message from the specified reader or buffer, length delimited.
|
|
34299
|
+
* @param reader Reader or buffer to decode from
|
|
34300
|
+
* @returns DiscussionUser
|
|
34301
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
34302
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
34303
|
+
*/
|
|
34304
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DiscussionUser;
|
|
34305
|
+
|
|
34306
|
+
/**
|
|
34307
|
+
* Verifies a DiscussionUser message.
|
|
34308
|
+
* @param message Plain object to verify
|
|
34309
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
34310
|
+
*/
|
|
34311
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
34312
|
+
|
|
34313
|
+
/**
|
|
34314
|
+
* Creates a DiscussionUser message from a plain object. Also converts values to their respective internal types.
|
|
34315
|
+
* @param object Plain object
|
|
34316
|
+
* @returns DiscussionUser
|
|
34317
|
+
*/
|
|
34318
|
+
public static fromObject(object: { [k: string]: any }): DiscussionUser;
|
|
34319
|
+
|
|
34320
|
+
/**
|
|
34321
|
+
* Creates a plain object from a DiscussionUser message. Also converts values to other types if specified.
|
|
34322
|
+
* @param message DiscussionUser
|
|
34323
|
+
* @param [options] Conversion options
|
|
34324
|
+
* @returns Plain object
|
|
34325
|
+
*/
|
|
34326
|
+
public static toObject(message: DiscussionUser, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
34327
|
+
|
|
34328
|
+
/**
|
|
34329
|
+
* Converts this DiscussionUser to JSON.
|
|
34330
|
+
* @returns JSON object
|
|
34331
|
+
*/
|
|
34332
|
+
public toJSON(): { [k: string]: any };
|
|
34333
|
+
}
|
|
34334
|
+
|
|
34335
|
+
/** Properties of a DiscussionPost. */
|
|
34336
|
+
export interface IDiscussionPost {
|
|
34337
|
+
|
|
34338
|
+
/** DiscussionPost id */
|
|
34339
|
+
id?: (string|null);
|
|
34340
|
+
|
|
34341
|
+
/** DiscussionPost author */
|
|
34342
|
+
author?: (IDiscussionUser|null);
|
|
34343
|
+
}
|
|
34344
|
+
|
|
34345
|
+
/** Represents a DiscussionPost. */
|
|
34346
|
+
export class DiscussionPost implements IDiscussionPost {
|
|
34347
|
+
|
|
34348
|
+
/**
|
|
34349
|
+
* Constructs a new DiscussionPost.
|
|
34350
|
+
* @param [properties] Properties to set
|
|
34351
|
+
*/
|
|
34352
|
+
constructor(properties?: IDiscussionPost);
|
|
34353
|
+
|
|
34354
|
+
/** DiscussionPost id. */
|
|
34355
|
+
public id: string;
|
|
34356
|
+
|
|
34357
|
+
/** DiscussionPost author. */
|
|
34358
|
+
public author?: (IDiscussionUser|null);
|
|
34359
|
+
|
|
34360
|
+
/**
|
|
34361
|
+
* Creates a new DiscussionPost instance using the specified properties.
|
|
34362
|
+
* @param [properties] Properties to set
|
|
34363
|
+
* @returns DiscussionPost instance
|
|
34364
|
+
*/
|
|
34365
|
+
public static create(properties?: IDiscussionPost): DiscussionPost;
|
|
34366
|
+
|
|
34367
|
+
/**
|
|
34368
|
+
* Encodes the specified DiscussionPost message. Does not implicitly {@link DiscussionPost.verify|verify} messages.
|
|
34369
|
+
* @param message DiscussionPost message or plain object to encode
|
|
34370
|
+
* @param [writer] Writer to encode to
|
|
34371
|
+
* @returns Writer
|
|
34372
|
+
*/
|
|
34373
|
+
public static encode(message: IDiscussionPost, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
34374
|
+
|
|
34375
|
+
/**
|
|
34376
|
+
* Encodes the specified DiscussionPost message, length delimited. Does not implicitly {@link DiscussionPost.verify|verify} messages.
|
|
34377
|
+
* @param message DiscussionPost message or plain object to encode
|
|
34378
|
+
* @param [writer] Writer to encode to
|
|
34379
|
+
* @returns Writer
|
|
34380
|
+
*/
|
|
34381
|
+
public static encodeDelimited(message: IDiscussionPost, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
34382
|
+
|
|
34383
|
+
/**
|
|
34384
|
+
* Decodes a DiscussionPost message from the specified reader or buffer.
|
|
34385
|
+
* @param reader Reader or buffer to decode from
|
|
34386
|
+
* @param [length] Message length if known beforehand
|
|
34387
|
+
* @returns DiscussionPost
|
|
34388
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
34389
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
34390
|
+
*/
|
|
34391
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DiscussionPost;
|
|
34392
|
+
|
|
34393
|
+
/**
|
|
34394
|
+
* Decodes a DiscussionPost message from the specified reader or buffer, length delimited.
|
|
34395
|
+
* @param reader Reader or buffer to decode from
|
|
34396
|
+
* @returns DiscussionPost
|
|
34397
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
34398
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
34399
|
+
*/
|
|
34400
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DiscussionPost;
|
|
34401
|
+
|
|
34402
|
+
/**
|
|
34403
|
+
* Verifies a DiscussionPost message.
|
|
34404
|
+
* @param message Plain object to verify
|
|
34405
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
34406
|
+
*/
|
|
34407
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
34408
|
+
|
|
34409
|
+
/**
|
|
34410
|
+
* Creates a DiscussionPost message from a plain object. Also converts values to their respective internal types.
|
|
34411
|
+
* @param object Plain object
|
|
34412
|
+
* @returns DiscussionPost
|
|
34413
|
+
*/
|
|
34414
|
+
public static fromObject(object: { [k: string]: any }): DiscussionPost;
|
|
34415
|
+
|
|
34416
|
+
/**
|
|
34417
|
+
* Creates a plain object from a DiscussionPost message. Also converts values to other types if specified.
|
|
34418
|
+
* @param message DiscussionPost
|
|
34419
|
+
* @param [options] Conversion options
|
|
34420
|
+
* @returns Plain object
|
|
34421
|
+
*/
|
|
34422
|
+
public static toObject(message: DiscussionPost, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
34423
|
+
|
|
34424
|
+
/**
|
|
34425
|
+
* Converts this DiscussionPost to JSON.
|
|
34426
|
+
* @returns JSON object
|
|
34427
|
+
*/
|
|
34428
|
+
public toJSON(): { [k: string]: any };
|
|
34429
|
+
}
|
|
34430
|
+
|
|
34431
|
+
/** Properties of a DiscussionPostReactionCreated. */
|
|
34432
|
+
export interface IDiscussionPostReactionCreated {
|
|
34433
|
+
|
|
34434
|
+
/** DiscussionPostReactionCreated reactionId */
|
|
34435
|
+
reactionId?: (string|null);
|
|
34436
|
+
|
|
34437
|
+
/** DiscussionPostReactionCreated reactionType */
|
|
34438
|
+
reactionType?: (DiscussionPostReactionCreated.ReactionType|null);
|
|
34439
|
+
|
|
34440
|
+
/** DiscussionPostReactionCreated post */
|
|
34441
|
+
post?: (IDiscussionPost|null);
|
|
34442
|
+
|
|
34443
|
+
/** DiscussionPostReactionCreated reactionAuthor */
|
|
34444
|
+
reactionAuthor?: (IDiscussionUser|null);
|
|
34445
|
+
|
|
34446
|
+
/** DiscussionPostReactionCreated createdAt */
|
|
34447
|
+
createdAt?: (number|Long|null);
|
|
34448
|
+
}
|
|
34449
|
+
|
|
34450
|
+
/** Represents a DiscussionPostReactionCreated. */
|
|
34451
|
+
export class DiscussionPostReactionCreated implements IDiscussionPostReactionCreated {
|
|
34452
|
+
|
|
34453
|
+
/**
|
|
34454
|
+
* Constructs a new DiscussionPostReactionCreated.
|
|
34455
|
+
* @param [properties] Properties to set
|
|
34456
|
+
*/
|
|
34457
|
+
constructor(properties?: IDiscussionPostReactionCreated);
|
|
34458
|
+
|
|
34459
|
+
/** DiscussionPostReactionCreated reactionId. */
|
|
34460
|
+
public reactionId: string;
|
|
34461
|
+
|
|
34462
|
+
/** DiscussionPostReactionCreated reactionType. */
|
|
34463
|
+
public reactionType: DiscussionPostReactionCreated.ReactionType;
|
|
34464
|
+
|
|
34465
|
+
/** DiscussionPostReactionCreated post. */
|
|
34466
|
+
public post?: (IDiscussionPost|null);
|
|
34467
|
+
|
|
34468
|
+
/** DiscussionPostReactionCreated reactionAuthor. */
|
|
34469
|
+
public reactionAuthor?: (IDiscussionUser|null);
|
|
34470
|
+
|
|
34471
|
+
/** DiscussionPostReactionCreated createdAt. */
|
|
34472
|
+
public createdAt: (number|Long);
|
|
34473
|
+
|
|
34474
|
+
/**
|
|
34475
|
+
* Creates a new DiscussionPostReactionCreated instance using the specified properties.
|
|
34476
|
+
* @param [properties] Properties to set
|
|
34477
|
+
* @returns DiscussionPostReactionCreated instance
|
|
34478
|
+
*/
|
|
34479
|
+
public static create(properties?: IDiscussionPostReactionCreated): DiscussionPostReactionCreated;
|
|
34480
|
+
|
|
34481
|
+
/**
|
|
34482
|
+
* Encodes the specified DiscussionPostReactionCreated message. Does not implicitly {@link DiscussionPostReactionCreated.verify|verify} messages.
|
|
34483
|
+
* @param message DiscussionPostReactionCreated message or plain object to encode
|
|
34484
|
+
* @param [writer] Writer to encode to
|
|
34485
|
+
* @returns Writer
|
|
34486
|
+
*/
|
|
34487
|
+
public static encode(message: IDiscussionPostReactionCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
34488
|
+
|
|
34489
|
+
/**
|
|
34490
|
+
* Encodes the specified DiscussionPostReactionCreated message, length delimited. Does not implicitly {@link DiscussionPostReactionCreated.verify|verify} messages.
|
|
34491
|
+
* @param message DiscussionPostReactionCreated message or plain object to encode
|
|
34492
|
+
* @param [writer] Writer to encode to
|
|
34493
|
+
* @returns Writer
|
|
34494
|
+
*/
|
|
34495
|
+
public static encodeDelimited(message: IDiscussionPostReactionCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
34496
|
+
|
|
34497
|
+
/**
|
|
34498
|
+
* Decodes a DiscussionPostReactionCreated message from the specified reader or buffer.
|
|
34499
|
+
* @param reader Reader or buffer to decode from
|
|
34500
|
+
* @param [length] Message length if known beforehand
|
|
34501
|
+
* @returns DiscussionPostReactionCreated
|
|
34502
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
34503
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
34504
|
+
*/
|
|
34505
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DiscussionPostReactionCreated;
|
|
34506
|
+
|
|
34507
|
+
/**
|
|
34508
|
+
* Decodes a DiscussionPostReactionCreated message from the specified reader or buffer, length delimited.
|
|
34509
|
+
* @param reader Reader or buffer to decode from
|
|
34510
|
+
* @returns DiscussionPostReactionCreated
|
|
34511
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
34512
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
34513
|
+
*/
|
|
34514
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DiscussionPostReactionCreated;
|
|
34515
|
+
|
|
34516
|
+
/**
|
|
34517
|
+
* Verifies a DiscussionPostReactionCreated message.
|
|
34518
|
+
* @param message Plain object to verify
|
|
34519
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
34520
|
+
*/
|
|
34521
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
34522
|
+
|
|
34523
|
+
/**
|
|
34524
|
+
* Creates a DiscussionPostReactionCreated message from a plain object. Also converts values to their respective internal types.
|
|
34525
|
+
* @param object Plain object
|
|
34526
|
+
* @returns DiscussionPostReactionCreated
|
|
34527
|
+
*/
|
|
34528
|
+
public static fromObject(object: { [k: string]: any }): DiscussionPostReactionCreated;
|
|
34529
|
+
|
|
34530
|
+
/**
|
|
34531
|
+
* Creates a plain object from a DiscussionPostReactionCreated message. Also converts values to other types if specified.
|
|
34532
|
+
* @param message DiscussionPostReactionCreated
|
|
34533
|
+
* @param [options] Conversion options
|
|
34534
|
+
* @returns Plain object
|
|
34535
|
+
*/
|
|
34536
|
+
public static toObject(message: DiscussionPostReactionCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
34537
|
+
|
|
34538
|
+
/**
|
|
34539
|
+
* Converts this DiscussionPostReactionCreated to JSON.
|
|
34540
|
+
* @returns JSON object
|
|
34541
|
+
*/
|
|
34542
|
+
public toJSON(): { [k: string]: any };
|
|
34543
|
+
}
|
|
34544
|
+
|
|
34545
|
+
export namespace DiscussionPostReactionCreated {
|
|
34546
|
+
|
|
34547
|
+
/** ReactionType enum. */
|
|
34548
|
+
enum ReactionType {
|
|
34549
|
+
REACTION_TYPE_UNKNOWN = 0,
|
|
34550
|
+
REACTION_TYPE_LOVE_THIS = 1,
|
|
34551
|
+
REACTION_TYPE_JUST_SAYING_HI = 2,
|
|
34552
|
+
REACTION_TYPE_KEEP_IT_UP = 3,
|
|
34553
|
+
REACTION_TYPE_GREAT_QUESTION = 4,
|
|
34554
|
+
REACTION_TYPE_HIGH_FIVE = 5,
|
|
34555
|
+
REACTION_TYPE_LOL = 6,
|
|
34556
|
+
REACTION_TYPE_YOU_ARE_NOT_ALONE = 7,
|
|
34557
|
+
REACTION_TYPE_SORRY_TO_HEAR = 8,
|
|
34558
|
+
REACTION_TYPE_SENDING_HUGS = 9
|
|
34559
|
+
}
|
|
34560
|
+
}
|
|
34561
|
+
|
|
34239
34562
|
/** Properties of an ElfNormalizationJobCompleted. */
|
|
34240
34563
|
export interface IElfNormalizationJobCompleted {
|
|
34241
34564
|
|
package/lib/index.js
CHANGED
|
@@ -95162,6 +95162,814 @@ $root.UserEnabledWakeupNotifications = (function() {
|
|
|
95162
95162
|
return UserEnabledWakeupNotifications;
|
|
95163
95163
|
})();
|
|
95164
95164
|
|
|
95165
|
+
$root.DiscussionUser = (function() {
|
|
95166
|
+
|
|
95167
|
+
/**
|
|
95168
|
+
* Properties of a DiscussionUser.
|
|
95169
|
+
* @name IDiscussionUser
|
|
95170
|
+
* @interface IDiscussionUser
|
|
95171
|
+
* @property {string|null} [userId] DiscussionUser userId
|
|
95172
|
+
* @property {string|null} [displayName] DiscussionUser displayName
|
|
95173
|
+
*/
|
|
95174
|
+
|
|
95175
|
+
/**
|
|
95176
|
+
* Constructs a new DiscussionUser.
|
|
95177
|
+
* @name DiscussionUser
|
|
95178
|
+
* @classdesc Represents a DiscussionUser.
|
|
95179
|
+
* @implements IDiscussionUser
|
|
95180
|
+
* @constructor
|
|
95181
|
+
* @param {IDiscussionUser=} [properties] Properties to set
|
|
95182
|
+
*/
|
|
95183
|
+
function DiscussionUser(properties) {
|
|
95184
|
+
if (properties)
|
|
95185
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
95186
|
+
if (properties[keys[i]] != null)
|
|
95187
|
+
this[keys[i]] = properties[keys[i]];
|
|
95188
|
+
}
|
|
95189
|
+
|
|
95190
|
+
/**
|
|
95191
|
+
* DiscussionUser userId.
|
|
95192
|
+
* @member {string} userId
|
|
95193
|
+
* @memberof DiscussionUser
|
|
95194
|
+
* @instance
|
|
95195
|
+
*/
|
|
95196
|
+
DiscussionUser.prototype.userId = "";
|
|
95197
|
+
|
|
95198
|
+
/**
|
|
95199
|
+
* DiscussionUser displayName.
|
|
95200
|
+
* @member {string} displayName
|
|
95201
|
+
* @memberof DiscussionUser
|
|
95202
|
+
* @instance
|
|
95203
|
+
*/
|
|
95204
|
+
DiscussionUser.prototype.displayName = "";
|
|
95205
|
+
|
|
95206
|
+
/**
|
|
95207
|
+
* Creates a new DiscussionUser instance using the specified properties.
|
|
95208
|
+
* @function create
|
|
95209
|
+
* @memberof DiscussionUser
|
|
95210
|
+
* @static
|
|
95211
|
+
* @param {IDiscussionUser=} [properties] Properties to set
|
|
95212
|
+
* @returns {DiscussionUser} DiscussionUser instance
|
|
95213
|
+
*/
|
|
95214
|
+
DiscussionUser.create = function create(properties) {
|
|
95215
|
+
return new DiscussionUser(properties);
|
|
95216
|
+
};
|
|
95217
|
+
|
|
95218
|
+
/**
|
|
95219
|
+
* Encodes the specified DiscussionUser message. Does not implicitly {@link DiscussionUser.verify|verify} messages.
|
|
95220
|
+
* @function encode
|
|
95221
|
+
* @memberof DiscussionUser
|
|
95222
|
+
* @static
|
|
95223
|
+
* @param {IDiscussionUser} message DiscussionUser message or plain object to encode
|
|
95224
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
95225
|
+
* @returns {$protobuf.Writer} Writer
|
|
95226
|
+
*/
|
|
95227
|
+
DiscussionUser.encode = function encode(message, writer) {
|
|
95228
|
+
if (!writer)
|
|
95229
|
+
writer = $Writer.create();
|
|
95230
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
95231
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
95232
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
95233
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
|
|
95234
|
+
return writer;
|
|
95235
|
+
};
|
|
95236
|
+
|
|
95237
|
+
/**
|
|
95238
|
+
* Encodes the specified DiscussionUser message, length delimited. Does not implicitly {@link DiscussionUser.verify|verify} messages.
|
|
95239
|
+
* @function encodeDelimited
|
|
95240
|
+
* @memberof DiscussionUser
|
|
95241
|
+
* @static
|
|
95242
|
+
* @param {IDiscussionUser} message DiscussionUser message or plain object to encode
|
|
95243
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
95244
|
+
* @returns {$protobuf.Writer} Writer
|
|
95245
|
+
*/
|
|
95246
|
+
DiscussionUser.encodeDelimited = function encodeDelimited(message, writer) {
|
|
95247
|
+
return this.encode(message, writer).ldelim();
|
|
95248
|
+
};
|
|
95249
|
+
|
|
95250
|
+
/**
|
|
95251
|
+
* Decodes a DiscussionUser message from the specified reader or buffer.
|
|
95252
|
+
* @function decode
|
|
95253
|
+
* @memberof DiscussionUser
|
|
95254
|
+
* @static
|
|
95255
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
95256
|
+
* @param {number} [length] Message length if known beforehand
|
|
95257
|
+
* @returns {DiscussionUser} DiscussionUser
|
|
95258
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95259
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95260
|
+
*/
|
|
95261
|
+
DiscussionUser.decode = function decode(reader, length) {
|
|
95262
|
+
if (!(reader instanceof $Reader))
|
|
95263
|
+
reader = $Reader.create(reader);
|
|
95264
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionUser();
|
|
95265
|
+
while (reader.pos < end) {
|
|
95266
|
+
var tag = reader.uint32();
|
|
95267
|
+
switch (tag >>> 3) {
|
|
95268
|
+
case 1:
|
|
95269
|
+
message.userId = reader.string();
|
|
95270
|
+
break;
|
|
95271
|
+
case 2:
|
|
95272
|
+
message.displayName = reader.string();
|
|
95273
|
+
break;
|
|
95274
|
+
default:
|
|
95275
|
+
reader.skipType(tag & 7);
|
|
95276
|
+
break;
|
|
95277
|
+
}
|
|
95278
|
+
}
|
|
95279
|
+
return message;
|
|
95280
|
+
};
|
|
95281
|
+
|
|
95282
|
+
/**
|
|
95283
|
+
* Decodes a DiscussionUser message from the specified reader or buffer, length delimited.
|
|
95284
|
+
* @function decodeDelimited
|
|
95285
|
+
* @memberof DiscussionUser
|
|
95286
|
+
* @static
|
|
95287
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
95288
|
+
* @returns {DiscussionUser} DiscussionUser
|
|
95289
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95290
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95291
|
+
*/
|
|
95292
|
+
DiscussionUser.decodeDelimited = function decodeDelimited(reader) {
|
|
95293
|
+
if (!(reader instanceof $Reader))
|
|
95294
|
+
reader = new $Reader(reader);
|
|
95295
|
+
return this.decode(reader, reader.uint32());
|
|
95296
|
+
};
|
|
95297
|
+
|
|
95298
|
+
/**
|
|
95299
|
+
* Verifies a DiscussionUser message.
|
|
95300
|
+
* @function verify
|
|
95301
|
+
* @memberof DiscussionUser
|
|
95302
|
+
* @static
|
|
95303
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
95304
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
95305
|
+
*/
|
|
95306
|
+
DiscussionUser.verify = function verify(message) {
|
|
95307
|
+
if (typeof message !== "object" || message === null)
|
|
95308
|
+
return "object expected";
|
|
95309
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
95310
|
+
if (!$util.isString(message.userId))
|
|
95311
|
+
return "userId: string expected";
|
|
95312
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
95313
|
+
if (!$util.isString(message.displayName))
|
|
95314
|
+
return "displayName: string expected";
|
|
95315
|
+
return null;
|
|
95316
|
+
};
|
|
95317
|
+
|
|
95318
|
+
/**
|
|
95319
|
+
* Creates a DiscussionUser message from a plain object. Also converts values to their respective internal types.
|
|
95320
|
+
* @function fromObject
|
|
95321
|
+
* @memberof DiscussionUser
|
|
95322
|
+
* @static
|
|
95323
|
+
* @param {Object.<string,*>} object Plain object
|
|
95324
|
+
* @returns {DiscussionUser} DiscussionUser
|
|
95325
|
+
*/
|
|
95326
|
+
DiscussionUser.fromObject = function fromObject(object) {
|
|
95327
|
+
if (object instanceof $root.DiscussionUser)
|
|
95328
|
+
return object;
|
|
95329
|
+
var message = new $root.DiscussionUser();
|
|
95330
|
+
if (object.userId != null)
|
|
95331
|
+
message.userId = String(object.userId);
|
|
95332
|
+
if (object.displayName != null)
|
|
95333
|
+
message.displayName = String(object.displayName);
|
|
95334
|
+
return message;
|
|
95335
|
+
};
|
|
95336
|
+
|
|
95337
|
+
/**
|
|
95338
|
+
* Creates a plain object from a DiscussionUser message. Also converts values to other types if specified.
|
|
95339
|
+
* @function toObject
|
|
95340
|
+
* @memberof DiscussionUser
|
|
95341
|
+
* @static
|
|
95342
|
+
* @param {DiscussionUser} message DiscussionUser
|
|
95343
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
95344
|
+
* @returns {Object.<string,*>} Plain object
|
|
95345
|
+
*/
|
|
95346
|
+
DiscussionUser.toObject = function toObject(message, options) {
|
|
95347
|
+
if (!options)
|
|
95348
|
+
options = {};
|
|
95349
|
+
var object = {};
|
|
95350
|
+
if (options.defaults) {
|
|
95351
|
+
object.userId = "";
|
|
95352
|
+
object.displayName = "";
|
|
95353
|
+
}
|
|
95354
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
95355
|
+
object.userId = message.userId;
|
|
95356
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
95357
|
+
object.displayName = message.displayName;
|
|
95358
|
+
return object;
|
|
95359
|
+
};
|
|
95360
|
+
|
|
95361
|
+
/**
|
|
95362
|
+
* Converts this DiscussionUser to JSON.
|
|
95363
|
+
* @function toJSON
|
|
95364
|
+
* @memberof DiscussionUser
|
|
95365
|
+
* @instance
|
|
95366
|
+
* @returns {Object.<string,*>} JSON object
|
|
95367
|
+
*/
|
|
95368
|
+
DiscussionUser.prototype.toJSON = function toJSON() {
|
|
95369
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
95370
|
+
};
|
|
95371
|
+
|
|
95372
|
+
return DiscussionUser;
|
|
95373
|
+
})();
|
|
95374
|
+
|
|
95375
|
+
$root.DiscussionPost = (function() {
|
|
95376
|
+
|
|
95377
|
+
/**
|
|
95378
|
+
* Properties of a DiscussionPost.
|
|
95379
|
+
* @name IDiscussionPost
|
|
95380
|
+
* @interface IDiscussionPost
|
|
95381
|
+
* @property {string|null} [id] DiscussionPost id
|
|
95382
|
+
* @property {IDiscussionUser|null} [author] DiscussionPost author
|
|
95383
|
+
*/
|
|
95384
|
+
|
|
95385
|
+
/**
|
|
95386
|
+
* Constructs a new DiscussionPost.
|
|
95387
|
+
* @name DiscussionPost
|
|
95388
|
+
* @classdesc Represents a DiscussionPost.
|
|
95389
|
+
* @implements IDiscussionPost
|
|
95390
|
+
* @constructor
|
|
95391
|
+
* @param {IDiscussionPost=} [properties] Properties to set
|
|
95392
|
+
*/
|
|
95393
|
+
function DiscussionPost(properties) {
|
|
95394
|
+
if (properties)
|
|
95395
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
95396
|
+
if (properties[keys[i]] != null)
|
|
95397
|
+
this[keys[i]] = properties[keys[i]];
|
|
95398
|
+
}
|
|
95399
|
+
|
|
95400
|
+
/**
|
|
95401
|
+
* DiscussionPost id.
|
|
95402
|
+
* @member {string} id
|
|
95403
|
+
* @memberof DiscussionPost
|
|
95404
|
+
* @instance
|
|
95405
|
+
*/
|
|
95406
|
+
DiscussionPost.prototype.id = "";
|
|
95407
|
+
|
|
95408
|
+
/**
|
|
95409
|
+
* DiscussionPost author.
|
|
95410
|
+
* @member {IDiscussionUser|null|undefined} author
|
|
95411
|
+
* @memberof DiscussionPost
|
|
95412
|
+
* @instance
|
|
95413
|
+
*/
|
|
95414
|
+
DiscussionPost.prototype.author = null;
|
|
95415
|
+
|
|
95416
|
+
/**
|
|
95417
|
+
* Creates a new DiscussionPost instance using the specified properties.
|
|
95418
|
+
* @function create
|
|
95419
|
+
* @memberof DiscussionPost
|
|
95420
|
+
* @static
|
|
95421
|
+
* @param {IDiscussionPost=} [properties] Properties to set
|
|
95422
|
+
* @returns {DiscussionPost} DiscussionPost instance
|
|
95423
|
+
*/
|
|
95424
|
+
DiscussionPost.create = function create(properties) {
|
|
95425
|
+
return new DiscussionPost(properties);
|
|
95426
|
+
};
|
|
95427
|
+
|
|
95428
|
+
/**
|
|
95429
|
+
* Encodes the specified DiscussionPost message. Does not implicitly {@link DiscussionPost.verify|verify} messages.
|
|
95430
|
+
* @function encode
|
|
95431
|
+
* @memberof DiscussionPost
|
|
95432
|
+
* @static
|
|
95433
|
+
* @param {IDiscussionPost} message DiscussionPost message or plain object to encode
|
|
95434
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
95435
|
+
* @returns {$protobuf.Writer} Writer
|
|
95436
|
+
*/
|
|
95437
|
+
DiscussionPost.encode = function encode(message, writer) {
|
|
95438
|
+
if (!writer)
|
|
95439
|
+
writer = $Writer.create();
|
|
95440
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
95441
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
95442
|
+
if (message.author != null && message.hasOwnProperty("author"))
|
|
95443
|
+
$root.DiscussionUser.encode(message.author, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
95444
|
+
return writer;
|
|
95445
|
+
};
|
|
95446
|
+
|
|
95447
|
+
/**
|
|
95448
|
+
* Encodes the specified DiscussionPost message, length delimited. Does not implicitly {@link DiscussionPost.verify|verify} messages.
|
|
95449
|
+
* @function encodeDelimited
|
|
95450
|
+
* @memberof DiscussionPost
|
|
95451
|
+
* @static
|
|
95452
|
+
* @param {IDiscussionPost} message DiscussionPost message or plain object to encode
|
|
95453
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
95454
|
+
* @returns {$protobuf.Writer} Writer
|
|
95455
|
+
*/
|
|
95456
|
+
DiscussionPost.encodeDelimited = function encodeDelimited(message, writer) {
|
|
95457
|
+
return this.encode(message, writer).ldelim();
|
|
95458
|
+
};
|
|
95459
|
+
|
|
95460
|
+
/**
|
|
95461
|
+
* Decodes a DiscussionPost message from the specified reader or buffer.
|
|
95462
|
+
* @function decode
|
|
95463
|
+
* @memberof DiscussionPost
|
|
95464
|
+
* @static
|
|
95465
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
95466
|
+
* @param {number} [length] Message length if known beforehand
|
|
95467
|
+
* @returns {DiscussionPost} DiscussionPost
|
|
95468
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95469
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95470
|
+
*/
|
|
95471
|
+
DiscussionPost.decode = function decode(reader, length) {
|
|
95472
|
+
if (!(reader instanceof $Reader))
|
|
95473
|
+
reader = $Reader.create(reader);
|
|
95474
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionPost();
|
|
95475
|
+
while (reader.pos < end) {
|
|
95476
|
+
var tag = reader.uint32();
|
|
95477
|
+
switch (tag >>> 3) {
|
|
95478
|
+
case 1:
|
|
95479
|
+
message.id = reader.string();
|
|
95480
|
+
break;
|
|
95481
|
+
case 2:
|
|
95482
|
+
message.author = $root.DiscussionUser.decode(reader, reader.uint32());
|
|
95483
|
+
break;
|
|
95484
|
+
default:
|
|
95485
|
+
reader.skipType(tag & 7);
|
|
95486
|
+
break;
|
|
95487
|
+
}
|
|
95488
|
+
}
|
|
95489
|
+
return message;
|
|
95490
|
+
};
|
|
95491
|
+
|
|
95492
|
+
/**
|
|
95493
|
+
* Decodes a DiscussionPost message from the specified reader or buffer, length delimited.
|
|
95494
|
+
* @function decodeDelimited
|
|
95495
|
+
* @memberof DiscussionPost
|
|
95496
|
+
* @static
|
|
95497
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
95498
|
+
* @returns {DiscussionPost} DiscussionPost
|
|
95499
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95500
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95501
|
+
*/
|
|
95502
|
+
DiscussionPost.decodeDelimited = function decodeDelimited(reader) {
|
|
95503
|
+
if (!(reader instanceof $Reader))
|
|
95504
|
+
reader = new $Reader(reader);
|
|
95505
|
+
return this.decode(reader, reader.uint32());
|
|
95506
|
+
};
|
|
95507
|
+
|
|
95508
|
+
/**
|
|
95509
|
+
* Verifies a DiscussionPost message.
|
|
95510
|
+
* @function verify
|
|
95511
|
+
* @memberof DiscussionPost
|
|
95512
|
+
* @static
|
|
95513
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
95514
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
95515
|
+
*/
|
|
95516
|
+
DiscussionPost.verify = function verify(message) {
|
|
95517
|
+
if (typeof message !== "object" || message === null)
|
|
95518
|
+
return "object expected";
|
|
95519
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
95520
|
+
if (!$util.isString(message.id))
|
|
95521
|
+
return "id: string expected";
|
|
95522
|
+
if (message.author != null && message.hasOwnProperty("author")) {
|
|
95523
|
+
var error = $root.DiscussionUser.verify(message.author);
|
|
95524
|
+
if (error)
|
|
95525
|
+
return "author." + error;
|
|
95526
|
+
}
|
|
95527
|
+
return null;
|
|
95528
|
+
};
|
|
95529
|
+
|
|
95530
|
+
/**
|
|
95531
|
+
* Creates a DiscussionPost message from a plain object. Also converts values to their respective internal types.
|
|
95532
|
+
* @function fromObject
|
|
95533
|
+
* @memberof DiscussionPost
|
|
95534
|
+
* @static
|
|
95535
|
+
* @param {Object.<string,*>} object Plain object
|
|
95536
|
+
* @returns {DiscussionPost} DiscussionPost
|
|
95537
|
+
*/
|
|
95538
|
+
DiscussionPost.fromObject = function fromObject(object) {
|
|
95539
|
+
if (object instanceof $root.DiscussionPost)
|
|
95540
|
+
return object;
|
|
95541
|
+
var message = new $root.DiscussionPost();
|
|
95542
|
+
if (object.id != null)
|
|
95543
|
+
message.id = String(object.id);
|
|
95544
|
+
if (object.author != null) {
|
|
95545
|
+
if (typeof object.author !== "object")
|
|
95546
|
+
throw TypeError(".DiscussionPost.author: object expected");
|
|
95547
|
+
message.author = $root.DiscussionUser.fromObject(object.author);
|
|
95548
|
+
}
|
|
95549
|
+
return message;
|
|
95550
|
+
};
|
|
95551
|
+
|
|
95552
|
+
/**
|
|
95553
|
+
* Creates a plain object from a DiscussionPost message. Also converts values to other types if specified.
|
|
95554
|
+
* @function toObject
|
|
95555
|
+
* @memberof DiscussionPost
|
|
95556
|
+
* @static
|
|
95557
|
+
* @param {DiscussionPost} message DiscussionPost
|
|
95558
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
95559
|
+
* @returns {Object.<string,*>} Plain object
|
|
95560
|
+
*/
|
|
95561
|
+
DiscussionPost.toObject = function toObject(message, options) {
|
|
95562
|
+
if (!options)
|
|
95563
|
+
options = {};
|
|
95564
|
+
var object = {};
|
|
95565
|
+
if (options.defaults) {
|
|
95566
|
+
object.id = "";
|
|
95567
|
+
object.author = null;
|
|
95568
|
+
}
|
|
95569
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
95570
|
+
object.id = message.id;
|
|
95571
|
+
if (message.author != null && message.hasOwnProperty("author"))
|
|
95572
|
+
object.author = $root.DiscussionUser.toObject(message.author, options);
|
|
95573
|
+
return object;
|
|
95574
|
+
};
|
|
95575
|
+
|
|
95576
|
+
/**
|
|
95577
|
+
* Converts this DiscussionPost to JSON.
|
|
95578
|
+
* @function toJSON
|
|
95579
|
+
* @memberof DiscussionPost
|
|
95580
|
+
* @instance
|
|
95581
|
+
* @returns {Object.<string,*>} JSON object
|
|
95582
|
+
*/
|
|
95583
|
+
DiscussionPost.prototype.toJSON = function toJSON() {
|
|
95584
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
95585
|
+
};
|
|
95586
|
+
|
|
95587
|
+
return DiscussionPost;
|
|
95588
|
+
})();
|
|
95589
|
+
|
|
95590
|
+
$root.DiscussionPostReactionCreated = (function() {
|
|
95591
|
+
|
|
95592
|
+
/**
|
|
95593
|
+
* Properties of a DiscussionPostReactionCreated.
|
|
95594
|
+
* @name IDiscussionPostReactionCreated
|
|
95595
|
+
* @interface IDiscussionPostReactionCreated
|
|
95596
|
+
* @property {string|null} [reactionId] DiscussionPostReactionCreated reactionId
|
|
95597
|
+
* @property {DiscussionPostReactionCreated.ReactionType|null} [reactionType] DiscussionPostReactionCreated reactionType
|
|
95598
|
+
* @property {IDiscussionPost|null} [post] DiscussionPostReactionCreated post
|
|
95599
|
+
* @property {IDiscussionUser|null} [reactionAuthor] DiscussionPostReactionCreated reactionAuthor
|
|
95600
|
+
* @property {number|Long|null} [createdAt] DiscussionPostReactionCreated createdAt
|
|
95601
|
+
*/
|
|
95602
|
+
|
|
95603
|
+
/**
|
|
95604
|
+
* Constructs a new DiscussionPostReactionCreated.
|
|
95605
|
+
* @name DiscussionPostReactionCreated
|
|
95606
|
+
* @classdesc Represents a DiscussionPostReactionCreated.
|
|
95607
|
+
* @implements IDiscussionPostReactionCreated
|
|
95608
|
+
* @constructor
|
|
95609
|
+
* @param {IDiscussionPostReactionCreated=} [properties] Properties to set
|
|
95610
|
+
*/
|
|
95611
|
+
function DiscussionPostReactionCreated(properties) {
|
|
95612
|
+
if (properties)
|
|
95613
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
95614
|
+
if (properties[keys[i]] != null)
|
|
95615
|
+
this[keys[i]] = properties[keys[i]];
|
|
95616
|
+
}
|
|
95617
|
+
|
|
95618
|
+
/**
|
|
95619
|
+
* DiscussionPostReactionCreated reactionId.
|
|
95620
|
+
* @member {string} reactionId
|
|
95621
|
+
* @memberof DiscussionPostReactionCreated
|
|
95622
|
+
* @instance
|
|
95623
|
+
*/
|
|
95624
|
+
DiscussionPostReactionCreated.prototype.reactionId = "";
|
|
95625
|
+
|
|
95626
|
+
/**
|
|
95627
|
+
* DiscussionPostReactionCreated reactionType.
|
|
95628
|
+
* @member {DiscussionPostReactionCreated.ReactionType} reactionType
|
|
95629
|
+
* @memberof DiscussionPostReactionCreated
|
|
95630
|
+
* @instance
|
|
95631
|
+
*/
|
|
95632
|
+
DiscussionPostReactionCreated.prototype.reactionType = 0;
|
|
95633
|
+
|
|
95634
|
+
/**
|
|
95635
|
+
* DiscussionPostReactionCreated post.
|
|
95636
|
+
* @member {IDiscussionPost|null|undefined} post
|
|
95637
|
+
* @memberof DiscussionPostReactionCreated
|
|
95638
|
+
* @instance
|
|
95639
|
+
*/
|
|
95640
|
+
DiscussionPostReactionCreated.prototype.post = null;
|
|
95641
|
+
|
|
95642
|
+
/**
|
|
95643
|
+
* DiscussionPostReactionCreated reactionAuthor.
|
|
95644
|
+
* @member {IDiscussionUser|null|undefined} reactionAuthor
|
|
95645
|
+
* @memberof DiscussionPostReactionCreated
|
|
95646
|
+
* @instance
|
|
95647
|
+
*/
|
|
95648
|
+
DiscussionPostReactionCreated.prototype.reactionAuthor = null;
|
|
95649
|
+
|
|
95650
|
+
/**
|
|
95651
|
+
* DiscussionPostReactionCreated createdAt.
|
|
95652
|
+
* @member {number|Long} createdAt
|
|
95653
|
+
* @memberof DiscussionPostReactionCreated
|
|
95654
|
+
* @instance
|
|
95655
|
+
*/
|
|
95656
|
+
DiscussionPostReactionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
95657
|
+
|
|
95658
|
+
/**
|
|
95659
|
+
* Creates a new DiscussionPostReactionCreated instance using the specified properties.
|
|
95660
|
+
* @function create
|
|
95661
|
+
* @memberof DiscussionPostReactionCreated
|
|
95662
|
+
* @static
|
|
95663
|
+
* @param {IDiscussionPostReactionCreated=} [properties] Properties to set
|
|
95664
|
+
* @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated instance
|
|
95665
|
+
*/
|
|
95666
|
+
DiscussionPostReactionCreated.create = function create(properties) {
|
|
95667
|
+
return new DiscussionPostReactionCreated(properties);
|
|
95668
|
+
};
|
|
95669
|
+
|
|
95670
|
+
/**
|
|
95671
|
+
* Encodes the specified DiscussionPostReactionCreated message. Does not implicitly {@link DiscussionPostReactionCreated.verify|verify} messages.
|
|
95672
|
+
* @function encode
|
|
95673
|
+
* @memberof DiscussionPostReactionCreated
|
|
95674
|
+
* @static
|
|
95675
|
+
* @param {IDiscussionPostReactionCreated} message DiscussionPostReactionCreated message or plain object to encode
|
|
95676
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
95677
|
+
* @returns {$protobuf.Writer} Writer
|
|
95678
|
+
*/
|
|
95679
|
+
DiscussionPostReactionCreated.encode = function encode(message, writer) {
|
|
95680
|
+
if (!writer)
|
|
95681
|
+
writer = $Writer.create();
|
|
95682
|
+
if (message.reactionId != null && message.hasOwnProperty("reactionId"))
|
|
95683
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.reactionId);
|
|
95684
|
+
if (message.reactionType != null && message.hasOwnProperty("reactionType"))
|
|
95685
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.reactionType);
|
|
95686
|
+
if (message.post != null && message.hasOwnProperty("post"))
|
|
95687
|
+
$root.DiscussionPost.encode(message.post, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
95688
|
+
if (message.reactionAuthor != null && message.hasOwnProperty("reactionAuthor"))
|
|
95689
|
+
$root.DiscussionUser.encode(message.reactionAuthor, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
95690
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
95691
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
95692
|
+
return writer;
|
|
95693
|
+
};
|
|
95694
|
+
|
|
95695
|
+
/**
|
|
95696
|
+
* Encodes the specified DiscussionPostReactionCreated message, length delimited. Does not implicitly {@link DiscussionPostReactionCreated.verify|verify} messages.
|
|
95697
|
+
* @function encodeDelimited
|
|
95698
|
+
* @memberof DiscussionPostReactionCreated
|
|
95699
|
+
* @static
|
|
95700
|
+
* @param {IDiscussionPostReactionCreated} message DiscussionPostReactionCreated message or plain object to encode
|
|
95701
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
95702
|
+
* @returns {$protobuf.Writer} Writer
|
|
95703
|
+
*/
|
|
95704
|
+
DiscussionPostReactionCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
95705
|
+
return this.encode(message, writer).ldelim();
|
|
95706
|
+
};
|
|
95707
|
+
|
|
95708
|
+
/**
|
|
95709
|
+
* Decodes a DiscussionPostReactionCreated message from the specified reader or buffer.
|
|
95710
|
+
* @function decode
|
|
95711
|
+
* @memberof DiscussionPostReactionCreated
|
|
95712
|
+
* @static
|
|
95713
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
95714
|
+
* @param {number} [length] Message length if known beforehand
|
|
95715
|
+
* @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated
|
|
95716
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95717
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95718
|
+
*/
|
|
95719
|
+
DiscussionPostReactionCreated.decode = function decode(reader, length) {
|
|
95720
|
+
if (!(reader instanceof $Reader))
|
|
95721
|
+
reader = $Reader.create(reader);
|
|
95722
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DiscussionPostReactionCreated();
|
|
95723
|
+
while (reader.pos < end) {
|
|
95724
|
+
var tag = reader.uint32();
|
|
95725
|
+
switch (tag >>> 3) {
|
|
95726
|
+
case 1:
|
|
95727
|
+
message.reactionId = reader.string();
|
|
95728
|
+
break;
|
|
95729
|
+
case 2:
|
|
95730
|
+
message.reactionType = reader.int32();
|
|
95731
|
+
break;
|
|
95732
|
+
case 3:
|
|
95733
|
+
message.post = $root.DiscussionPost.decode(reader, reader.uint32());
|
|
95734
|
+
break;
|
|
95735
|
+
case 4:
|
|
95736
|
+
message.reactionAuthor = $root.DiscussionUser.decode(reader, reader.uint32());
|
|
95737
|
+
break;
|
|
95738
|
+
case 5:
|
|
95739
|
+
message.createdAt = reader.uint64();
|
|
95740
|
+
break;
|
|
95741
|
+
default:
|
|
95742
|
+
reader.skipType(tag & 7);
|
|
95743
|
+
break;
|
|
95744
|
+
}
|
|
95745
|
+
}
|
|
95746
|
+
return message;
|
|
95747
|
+
};
|
|
95748
|
+
|
|
95749
|
+
/**
|
|
95750
|
+
* Decodes a DiscussionPostReactionCreated message from the specified reader or buffer, length delimited.
|
|
95751
|
+
* @function decodeDelimited
|
|
95752
|
+
* @memberof DiscussionPostReactionCreated
|
|
95753
|
+
* @static
|
|
95754
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
95755
|
+
* @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated
|
|
95756
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
95757
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
95758
|
+
*/
|
|
95759
|
+
DiscussionPostReactionCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
95760
|
+
if (!(reader instanceof $Reader))
|
|
95761
|
+
reader = new $Reader(reader);
|
|
95762
|
+
return this.decode(reader, reader.uint32());
|
|
95763
|
+
};
|
|
95764
|
+
|
|
95765
|
+
/**
|
|
95766
|
+
* Verifies a DiscussionPostReactionCreated message.
|
|
95767
|
+
* @function verify
|
|
95768
|
+
* @memberof DiscussionPostReactionCreated
|
|
95769
|
+
* @static
|
|
95770
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
95771
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
95772
|
+
*/
|
|
95773
|
+
DiscussionPostReactionCreated.verify = function verify(message) {
|
|
95774
|
+
if (typeof message !== "object" || message === null)
|
|
95775
|
+
return "object expected";
|
|
95776
|
+
if (message.reactionId != null && message.hasOwnProperty("reactionId"))
|
|
95777
|
+
if (!$util.isString(message.reactionId))
|
|
95778
|
+
return "reactionId: string expected";
|
|
95779
|
+
if (message.reactionType != null && message.hasOwnProperty("reactionType"))
|
|
95780
|
+
switch (message.reactionType) {
|
|
95781
|
+
default:
|
|
95782
|
+
return "reactionType: enum value expected";
|
|
95783
|
+
case 0:
|
|
95784
|
+
case 1:
|
|
95785
|
+
case 2:
|
|
95786
|
+
case 3:
|
|
95787
|
+
case 4:
|
|
95788
|
+
case 5:
|
|
95789
|
+
case 6:
|
|
95790
|
+
case 7:
|
|
95791
|
+
case 8:
|
|
95792
|
+
case 9:
|
|
95793
|
+
break;
|
|
95794
|
+
}
|
|
95795
|
+
if (message.post != null && message.hasOwnProperty("post")) {
|
|
95796
|
+
var error = $root.DiscussionPost.verify(message.post);
|
|
95797
|
+
if (error)
|
|
95798
|
+
return "post." + error;
|
|
95799
|
+
}
|
|
95800
|
+
if (message.reactionAuthor != null && message.hasOwnProperty("reactionAuthor")) {
|
|
95801
|
+
var error = $root.DiscussionUser.verify(message.reactionAuthor);
|
|
95802
|
+
if (error)
|
|
95803
|
+
return "reactionAuthor." + error;
|
|
95804
|
+
}
|
|
95805
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
95806
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
95807
|
+
return "createdAt: integer|Long expected";
|
|
95808
|
+
return null;
|
|
95809
|
+
};
|
|
95810
|
+
|
|
95811
|
+
/**
|
|
95812
|
+
* Creates a DiscussionPostReactionCreated message from a plain object. Also converts values to their respective internal types.
|
|
95813
|
+
* @function fromObject
|
|
95814
|
+
* @memberof DiscussionPostReactionCreated
|
|
95815
|
+
* @static
|
|
95816
|
+
* @param {Object.<string,*>} object Plain object
|
|
95817
|
+
* @returns {DiscussionPostReactionCreated} DiscussionPostReactionCreated
|
|
95818
|
+
*/
|
|
95819
|
+
DiscussionPostReactionCreated.fromObject = function fromObject(object) {
|
|
95820
|
+
if (object instanceof $root.DiscussionPostReactionCreated)
|
|
95821
|
+
return object;
|
|
95822
|
+
var message = new $root.DiscussionPostReactionCreated();
|
|
95823
|
+
if (object.reactionId != null)
|
|
95824
|
+
message.reactionId = String(object.reactionId);
|
|
95825
|
+
switch (object.reactionType) {
|
|
95826
|
+
case "REACTION_TYPE_UNKNOWN":
|
|
95827
|
+
case 0:
|
|
95828
|
+
message.reactionType = 0;
|
|
95829
|
+
break;
|
|
95830
|
+
case "REACTION_TYPE_LOVE_THIS":
|
|
95831
|
+
case 1:
|
|
95832
|
+
message.reactionType = 1;
|
|
95833
|
+
break;
|
|
95834
|
+
case "REACTION_TYPE_JUST_SAYING_HI":
|
|
95835
|
+
case 2:
|
|
95836
|
+
message.reactionType = 2;
|
|
95837
|
+
break;
|
|
95838
|
+
case "REACTION_TYPE_KEEP_IT_UP":
|
|
95839
|
+
case 3:
|
|
95840
|
+
message.reactionType = 3;
|
|
95841
|
+
break;
|
|
95842
|
+
case "REACTION_TYPE_GREAT_QUESTION":
|
|
95843
|
+
case 4:
|
|
95844
|
+
message.reactionType = 4;
|
|
95845
|
+
break;
|
|
95846
|
+
case "REACTION_TYPE_HIGH_FIVE":
|
|
95847
|
+
case 5:
|
|
95848
|
+
message.reactionType = 5;
|
|
95849
|
+
break;
|
|
95850
|
+
case "REACTION_TYPE_LOL":
|
|
95851
|
+
case 6:
|
|
95852
|
+
message.reactionType = 6;
|
|
95853
|
+
break;
|
|
95854
|
+
case "REACTION_TYPE_YOU_ARE_NOT_ALONE":
|
|
95855
|
+
case 7:
|
|
95856
|
+
message.reactionType = 7;
|
|
95857
|
+
break;
|
|
95858
|
+
case "REACTION_TYPE_SORRY_TO_HEAR":
|
|
95859
|
+
case 8:
|
|
95860
|
+
message.reactionType = 8;
|
|
95861
|
+
break;
|
|
95862
|
+
case "REACTION_TYPE_SENDING_HUGS":
|
|
95863
|
+
case 9:
|
|
95864
|
+
message.reactionType = 9;
|
|
95865
|
+
break;
|
|
95866
|
+
}
|
|
95867
|
+
if (object.post != null) {
|
|
95868
|
+
if (typeof object.post !== "object")
|
|
95869
|
+
throw TypeError(".DiscussionPostReactionCreated.post: object expected");
|
|
95870
|
+
message.post = $root.DiscussionPost.fromObject(object.post);
|
|
95871
|
+
}
|
|
95872
|
+
if (object.reactionAuthor != null) {
|
|
95873
|
+
if (typeof object.reactionAuthor !== "object")
|
|
95874
|
+
throw TypeError(".DiscussionPostReactionCreated.reactionAuthor: object expected");
|
|
95875
|
+
message.reactionAuthor = $root.DiscussionUser.fromObject(object.reactionAuthor);
|
|
95876
|
+
}
|
|
95877
|
+
if (object.createdAt != null)
|
|
95878
|
+
if ($util.Long)
|
|
95879
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
95880
|
+
else if (typeof object.createdAt === "string")
|
|
95881
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
95882
|
+
else if (typeof object.createdAt === "number")
|
|
95883
|
+
message.createdAt = object.createdAt;
|
|
95884
|
+
else if (typeof object.createdAt === "object")
|
|
95885
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
95886
|
+
return message;
|
|
95887
|
+
};
|
|
95888
|
+
|
|
95889
|
+
/**
|
|
95890
|
+
* Creates a plain object from a DiscussionPostReactionCreated message. Also converts values to other types if specified.
|
|
95891
|
+
* @function toObject
|
|
95892
|
+
* @memberof DiscussionPostReactionCreated
|
|
95893
|
+
* @static
|
|
95894
|
+
* @param {DiscussionPostReactionCreated} message DiscussionPostReactionCreated
|
|
95895
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
95896
|
+
* @returns {Object.<string,*>} Plain object
|
|
95897
|
+
*/
|
|
95898
|
+
DiscussionPostReactionCreated.toObject = function toObject(message, options) {
|
|
95899
|
+
if (!options)
|
|
95900
|
+
options = {};
|
|
95901
|
+
var object = {};
|
|
95902
|
+
if (options.defaults) {
|
|
95903
|
+
object.reactionId = "";
|
|
95904
|
+
object.reactionType = options.enums === String ? "REACTION_TYPE_UNKNOWN" : 0;
|
|
95905
|
+
object.post = null;
|
|
95906
|
+
object.reactionAuthor = null;
|
|
95907
|
+
if ($util.Long) {
|
|
95908
|
+
var long = new $util.Long(0, 0, true);
|
|
95909
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
95910
|
+
} else
|
|
95911
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
95912
|
+
}
|
|
95913
|
+
if (message.reactionId != null && message.hasOwnProperty("reactionId"))
|
|
95914
|
+
object.reactionId = message.reactionId;
|
|
95915
|
+
if (message.reactionType != null && message.hasOwnProperty("reactionType"))
|
|
95916
|
+
object.reactionType = options.enums === String ? $root.DiscussionPostReactionCreated.ReactionType[message.reactionType] : message.reactionType;
|
|
95917
|
+
if (message.post != null && message.hasOwnProperty("post"))
|
|
95918
|
+
object.post = $root.DiscussionPost.toObject(message.post, options);
|
|
95919
|
+
if (message.reactionAuthor != null && message.hasOwnProperty("reactionAuthor"))
|
|
95920
|
+
object.reactionAuthor = $root.DiscussionUser.toObject(message.reactionAuthor, options);
|
|
95921
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
95922
|
+
if (typeof message.createdAt === "number")
|
|
95923
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
95924
|
+
else
|
|
95925
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
95926
|
+
return object;
|
|
95927
|
+
};
|
|
95928
|
+
|
|
95929
|
+
/**
|
|
95930
|
+
* Converts this DiscussionPostReactionCreated to JSON.
|
|
95931
|
+
* @function toJSON
|
|
95932
|
+
* @memberof DiscussionPostReactionCreated
|
|
95933
|
+
* @instance
|
|
95934
|
+
* @returns {Object.<string,*>} JSON object
|
|
95935
|
+
*/
|
|
95936
|
+
DiscussionPostReactionCreated.prototype.toJSON = function toJSON() {
|
|
95937
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
95938
|
+
};
|
|
95939
|
+
|
|
95940
|
+
/**
|
|
95941
|
+
* ReactionType enum.
|
|
95942
|
+
* @name DiscussionPostReactionCreated.ReactionType
|
|
95943
|
+
* @enum {string}
|
|
95944
|
+
* @property {number} REACTION_TYPE_UNKNOWN=0 REACTION_TYPE_UNKNOWN value
|
|
95945
|
+
* @property {number} REACTION_TYPE_LOVE_THIS=1 REACTION_TYPE_LOVE_THIS value
|
|
95946
|
+
* @property {number} REACTION_TYPE_JUST_SAYING_HI=2 REACTION_TYPE_JUST_SAYING_HI value
|
|
95947
|
+
* @property {number} REACTION_TYPE_KEEP_IT_UP=3 REACTION_TYPE_KEEP_IT_UP value
|
|
95948
|
+
* @property {number} REACTION_TYPE_GREAT_QUESTION=4 REACTION_TYPE_GREAT_QUESTION value
|
|
95949
|
+
* @property {number} REACTION_TYPE_HIGH_FIVE=5 REACTION_TYPE_HIGH_FIVE value
|
|
95950
|
+
* @property {number} REACTION_TYPE_LOL=6 REACTION_TYPE_LOL value
|
|
95951
|
+
* @property {number} REACTION_TYPE_YOU_ARE_NOT_ALONE=7 REACTION_TYPE_YOU_ARE_NOT_ALONE value
|
|
95952
|
+
* @property {number} REACTION_TYPE_SORRY_TO_HEAR=8 REACTION_TYPE_SORRY_TO_HEAR value
|
|
95953
|
+
* @property {number} REACTION_TYPE_SENDING_HUGS=9 REACTION_TYPE_SENDING_HUGS value
|
|
95954
|
+
*/
|
|
95955
|
+
DiscussionPostReactionCreated.ReactionType = (function() {
|
|
95956
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
95957
|
+
values[valuesById[0] = "REACTION_TYPE_UNKNOWN"] = 0;
|
|
95958
|
+
values[valuesById[1] = "REACTION_TYPE_LOVE_THIS"] = 1;
|
|
95959
|
+
values[valuesById[2] = "REACTION_TYPE_JUST_SAYING_HI"] = 2;
|
|
95960
|
+
values[valuesById[3] = "REACTION_TYPE_KEEP_IT_UP"] = 3;
|
|
95961
|
+
values[valuesById[4] = "REACTION_TYPE_GREAT_QUESTION"] = 4;
|
|
95962
|
+
values[valuesById[5] = "REACTION_TYPE_HIGH_FIVE"] = 5;
|
|
95963
|
+
values[valuesById[6] = "REACTION_TYPE_LOL"] = 6;
|
|
95964
|
+
values[valuesById[7] = "REACTION_TYPE_YOU_ARE_NOT_ALONE"] = 7;
|
|
95965
|
+
values[valuesById[8] = "REACTION_TYPE_SORRY_TO_HEAR"] = 8;
|
|
95966
|
+
values[valuesById[9] = "REACTION_TYPE_SENDING_HUGS"] = 9;
|
|
95967
|
+
return values;
|
|
95968
|
+
})();
|
|
95969
|
+
|
|
95970
|
+
return DiscussionPostReactionCreated;
|
|
95971
|
+
})();
|
|
95972
|
+
|
|
95165
95973
|
$root.ElfNormalizationJobCompleted = (function() {
|
|
95166
95974
|
|
|
95167
95975
|
/**
|
package/package.json
CHANGED