@headspace/protos-events 1.850.0 → 1.851.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 +297 -0
- package/lib/index.js +727 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -110347,6 +110347,303 @@ export enum UserServiceAppClient {
|
|
|
110347
110347
|
USER_SERVICE_APP_CLIENT_CROCPIT = 3
|
|
110348
110348
|
}
|
|
110349
110349
|
|
|
110350
|
+
/**
|
|
110351
|
+
* Properties of a UserProfileCreated.
|
|
110352
|
+
* @deprecated Use UserProfileCreated.$Properties instead.
|
|
110353
|
+
*/
|
|
110354
|
+
export interface IUserProfileCreated extends UserProfileCreated.$Properties {
|
|
110355
|
+
}
|
|
110356
|
+
|
|
110357
|
+
/**
|
|
110358
|
+
* Sent when a Headspace Jr. child profile is created.
|
|
110359
|
+
*
|
|
110360
|
+
* "Profile" here is the Headspace Jr. child-profile identity concept. It is a different
|
|
110361
|
+
* bounded concept from the pre-existing, apparently-unused UserProfileResponse /
|
|
110362
|
+
* UserProfileManager RPC schema in protos/services/user/user_profile.proto (an Amplitude
|
|
110363
|
+
* profile lookup) — do not conflate the two.
|
|
110364
|
+
*
|
|
110365
|
+
* display_name and birth_year_month are intentionally carried on this event for
|
|
110366
|
+
* data-lake-only routing. Do not remove them assuming they are an oversight.
|
|
110367
|
+
*
|
|
110368
|
+
* Consumers: published by hs-user-service; consumed by Braze/lifecycle and the data lake.
|
|
110369
|
+
*/
|
|
110370
|
+
export class UserProfileCreated {
|
|
110371
|
+
|
|
110372
|
+
/**
|
|
110373
|
+
* Constructs a new UserProfileCreated.
|
|
110374
|
+
* @param [properties] Properties to set
|
|
110375
|
+
*/
|
|
110376
|
+
constructor(properties?: UserProfileCreated.$Properties);
|
|
110377
|
+
|
|
110378
|
+
/** Unknown fields preserved while decoding */
|
|
110379
|
+
$unknowns?: Uint8Array[];
|
|
110380
|
+
|
|
110381
|
+
/** UserProfileCreated hsUserId. */
|
|
110382
|
+
hsUserId: string;
|
|
110383
|
+
|
|
110384
|
+
/** UserProfileCreated profileId. */
|
|
110385
|
+
profileId: string;
|
|
110386
|
+
|
|
110387
|
+
/** UserProfileCreated displayName. */
|
|
110388
|
+
displayName: string;
|
|
110389
|
+
|
|
110390
|
+
/** UserProfileCreated birthYearMonth. */
|
|
110391
|
+
birthYearMonth: string;
|
|
110392
|
+
|
|
110393
|
+
/** UserProfileCreated timestamp. */
|
|
110394
|
+
timestamp: (number|Long);
|
|
110395
|
+
|
|
110396
|
+
/**
|
|
110397
|
+
* Creates a new UserProfileCreated instance using the specified properties.
|
|
110398
|
+
* @param [properties] Properties to set
|
|
110399
|
+
* @returns UserProfileCreated instance
|
|
110400
|
+
*/
|
|
110401
|
+
static create(properties: UserProfileCreated.$Shape): UserProfileCreated & UserProfileCreated.$Shape;
|
|
110402
|
+
static create(properties?: UserProfileCreated.$Properties): UserProfileCreated;
|
|
110403
|
+
|
|
110404
|
+
/**
|
|
110405
|
+
* Encodes the specified UserProfileCreated message. Does not implicitly {@link UserProfileCreated.verify|verify} messages.
|
|
110406
|
+
* @param message UserProfileCreated message or plain object to encode
|
|
110407
|
+
* @param [writer] Writer to encode to
|
|
110408
|
+
* @returns Writer
|
|
110409
|
+
*/
|
|
110410
|
+
static encode(message: UserProfileCreated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
110411
|
+
|
|
110412
|
+
/**
|
|
110413
|
+
* Encodes the specified UserProfileCreated message, length delimited. Does not implicitly {@link UserProfileCreated.verify|verify} messages.
|
|
110414
|
+
* @param message UserProfileCreated message or plain object to encode
|
|
110415
|
+
* @param [writer] Writer to encode to
|
|
110416
|
+
* @returns Writer
|
|
110417
|
+
*/
|
|
110418
|
+
static encodeDelimited(message: UserProfileCreated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
110419
|
+
|
|
110420
|
+
/**
|
|
110421
|
+
* Decodes a UserProfileCreated message from the specified reader or buffer.
|
|
110422
|
+
* @param reader Reader or buffer to decode from
|
|
110423
|
+
* @param [length] Message length if known beforehand
|
|
110424
|
+
* @returns {UserProfileCreated & UserProfileCreated.$Shape} UserProfileCreated
|
|
110425
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110426
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110427
|
+
*/
|
|
110428
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserProfileCreated & UserProfileCreated.$Shape;
|
|
110429
|
+
|
|
110430
|
+
/**
|
|
110431
|
+
* Decodes a UserProfileCreated message from the specified reader or buffer, length delimited.
|
|
110432
|
+
* @param reader Reader or buffer to decode from
|
|
110433
|
+
* @returns {UserProfileCreated & UserProfileCreated.$Shape} UserProfileCreated
|
|
110434
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110435
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110436
|
+
*/
|
|
110437
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserProfileCreated & UserProfileCreated.$Shape;
|
|
110438
|
+
|
|
110439
|
+
/**
|
|
110440
|
+
* Verifies a UserProfileCreated message.
|
|
110441
|
+
* @param message Plain object to verify
|
|
110442
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
110443
|
+
*/
|
|
110444
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
110445
|
+
|
|
110446
|
+
/**
|
|
110447
|
+
* Creates a UserProfileCreated message from a plain object. Also converts values to their respective internal types.
|
|
110448
|
+
* @param object Plain object
|
|
110449
|
+
* @returns UserProfileCreated
|
|
110450
|
+
*/
|
|
110451
|
+
static fromObject(object: { [k: string]: any }): UserProfileCreated;
|
|
110452
|
+
|
|
110453
|
+
/**
|
|
110454
|
+
* Creates a plain object from a UserProfileCreated message. Also converts values to other types if specified.
|
|
110455
|
+
* @param message UserProfileCreated
|
|
110456
|
+
* @param [options] Conversion options
|
|
110457
|
+
* @returns Plain object
|
|
110458
|
+
*/
|
|
110459
|
+
static toObject(message: UserProfileCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
110460
|
+
|
|
110461
|
+
/**
|
|
110462
|
+
* Converts this UserProfileCreated to JSON.
|
|
110463
|
+
* @returns JSON object
|
|
110464
|
+
*/
|
|
110465
|
+
toJSON(): { [k: string]: any };
|
|
110466
|
+
|
|
110467
|
+
/**
|
|
110468
|
+
* Gets the type url for UserProfileCreated
|
|
110469
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
110470
|
+
* @returns The type url
|
|
110471
|
+
*/
|
|
110472
|
+
static getTypeUrl(prefix?: string): string;
|
|
110473
|
+
}
|
|
110474
|
+
|
|
110475
|
+
export namespace UserProfileCreated {
|
|
110476
|
+
|
|
110477
|
+
/** Properties of a UserProfileCreated. */
|
|
110478
|
+
interface $Properties {
|
|
110479
|
+
|
|
110480
|
+
/** UserProfileCreated hsUserId */
|
|
110481
|
+
hsUserId?: (string|null);
|
|
110482
|
+
|
|
110483
|
+
/** UserProfileCreated profileId */
|
|
110484
|
+
profileId?: (string|null);
|
|
110485
|
+
|
|
110486
|
+
/** UserProfileCreated displayName */
|
|
110487
|
+
displayName?: (string|null);
|
|
110488
|
+
|
|
110489
|
+
/** UserProfileCreated birthYearMonth */
|
|
110490
|
+
birthYearMonth?: (string|null);
|
|
110491
|
+
|
|
110492
|
+
/** UserProfileCreated timestamp */
|
|
110493
|
+
timestamp?: (number|Long|null);
|
|
110494
|
+
|
|
110495
|
+
/** Unknown fields preserved while decoding */
|
|
110496
|
+
$unknowns?: Uint8Array[];
|
|
110497
|
+
}
|
|
110498
|
+
|
|
110499
|
+
/** Shape of a UserProfileCreated. */
|
|
110500
|
+
type $Shape = UserProfileCreated.$Properties;
|
|
110501
|
+
}
|
|
110502
|
+
|
|
110503
|
+
/**
|
|
110504
|
+
* Properties of a UserProfileDeleted.
|
|
110505
|
+
* @deprecated Use UserProfileDeleted.$Properties instead.
|
|
110506
|
+
*/
|
|
110507
|
+
export interface IUserProfileDeleted extends UserProfileDeleted.$Properties {
|
|
110508
|
+
}
|
|
110509
|
+
|
|
110510
|
+
/**
|
|
110511
|
+
* Sent when a Headspace Jr. child profile is deleted.
|
|
110512
|
+
*
|
|
110513
|
+
* "Profile" here is the Headspace Jr. child-profile identity concept. It is a different
|
|
110514
|
+
* bounded concept from the pre-existing, apparently-unused UserProfileResponse /
|
|
110515
|
+
* UserProfileManager RPC schema in protos/services/user/user_profile.proto (an Amplitude
|
|
110516
|
+
* profile lookup) — do not conflate the two.
|
|
110517
|
+
*
|
|
110518
|
+
* Consumers: published by hs-user-service; consumed by hs-content-engagement-service to
|
|
110519
|
+
* cascade-delete the profile's passports.
|
|
110520
|
+
*
|
|
110521
|
+
* That cascade delete is eventually consistent, not atomic: this event fires after the
|
|
110522
|
+
* profile row is already gone, and passport cleanup happens asynchronously on the consumer
|
|
110523
|
+
* side afterward. A caller can briefly still see a just-deleted profile's passports until
|
|
110524
|
+
* this event is consumed. This is an accepted tradeoff, not a bug.
|
|
110525
|
+
*/
|
|
110526
|
+
export class UserProfileDeleted {
|
|
110527
|
+
|
|
110528
|
+
/**
|
|
110529
|
+
* Constructs a new UserProfileDeleted.
|
|
110530
|
+
* @param [properties] Properties to set
|
|
110531
|
+
*/
|
|
110532
|
+
constructor(properties?: UserProfileDeleted.$Properties);
|
|
110533
|
+
|
|
110534
|
+
/** Unknown fields preserved while decoding */
|
|
110535
|
+
$unknowns?: Uint8Array[];
|
|
110536
|
+
|
|
110537
|
+
/** UserProfileDeleted hsUserId. */
|
|
110538
|
+
hsUserId: string;
|
|
110539
|
+
|
|
110540
|
+
/** UserProfileDeleted profileId. */
|
|
110541
|
+
profileId: string;
|
|
110542
|
+
|
|
110543
|
+
/** UserProfileDeleted timestamp. */
|
|
110544
|
+
timestamp: (number|Long);
|
|
110545
|
+
|
|
110546
|
+
/**
|
|
110547
|
+
* Creates a new UserProfileDeleted instance using the specified properties.
|
|
110548
|
+
* @param [properties] Properties to set
|
|
110549
|
+
* @returns UserProfileDeleted instance
|
|
110550
|
+
*/
|
|
110551
|
+
static create(properties: UserProfileDeleted.$Shape): UserProfileDeleted & UserProfileDeleted.$Shape;
|
|
110552
|
+
static create(properties?: UserProfileDeleted.$Properties): UserProfileDeleted;
|
|
110553
|
+
|
|
110554
|
+
/**
|
|
110555
|
+
* Encodes the specified UserProfileDeleted message. Does not implicitly {@link UserProfileDeleted.verify|verify} messages.
|
|
110556
|
+
* @param message UserProfileDeleted message or plain object to encode
|
|
110557
|
+
* @param [writer] Writer to encode to
|
|
110558
|
+
* @returns Writer
|
|
110559
|
+
*/
|
|
110560
|
+
static encode(message: UserProfileDeleted.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
110561
|
+
|
|
110562
|
+
/**
|
|
110563
|
+
* Encodes the specified UserProfileDeleted message, length delimited. Does not implicitly {@link UserProfileDeleted.verify|verify} messages.
|
|
110564
|
+
* @param message UserProfileDeleted message or plain object to encode
|
|
110565
|
+
* @param [writer] Writer to encode to
|
|
110566
|
+
* @returns Writer
|
|
110567
|
+
*/
|
|
110568
|
+
static encodeDelimited(message: UserProfileDeleted.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
110569
|
+
|
|
110570
|
+
/**
|
|
110571
|
+
* Decodes a UserProfileDeleted message from the specified reader or buffer.
|
|
110572
|
+
* @param reader Reader or buffer to decode from
|
|
110573
|
+
* @param [length] Message length if known beforehand
|
|
110574
|
+
* @returns {UserProfileDeleted & UserProfileDeleted.$Shape} UserProfileDeleted
|
|
110575
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110576
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110577
|
+
*/
|
|
110578
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserProfileDeleted & UserProfileDeleted.$Shape;
|
|
110579
|
+
|
|
110580
|
+
/**
|
|
110581
|
+
* Decodes a UserProfileDeleted message from the specified reader or buffer, length delimited.
|
|
110582
|
+
* @param reader Reader or buffer to decode from
|
|
110583
|
+
* @returns {UserProfileDeleted & UserProfileDeleted.$Shape} UserProfileDeleted
|
|
110584
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110585
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110586
|
+
*/
|
|
110587
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserProfileDeleted & UserProfileDeleted.$Shape;
|
|
110588
|
+
|
|
110589
|
+
/**
|
|
110590
|
+
* Verifies a UserProfileDeleted message.
|
|
110591
|
+
* @param message Plain object to verify
|
|
110592
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
110593
|
+
*/
|
|
110594
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
110595
|
+
|
|
110596
|
+
/**
|
|
110597
|
+
* Creates a UserProfileDeleted message from a plain object. Also converts values to their respective internal types.
|
|
110598
|
+
* @param object Plain object
|
|
110599
|
+
* @returns UserProfileDeleted
|
|
110600
|
+
*/
|
|
110601
|
+
static fromObject(object: { [k: string]: any }): UserProfileDeleted;
|
|
110602
|
+
|
|
110603
|
+
/**
|
|
110604
|
+
* Creates a plain object from a UserProfileDeleted message. Also converts values to other types if specified.
|
|
110605
|
+
* @param message UserProfileDeleted
|
|
110606
|
+
* @param [options] Conversion options
|
|
110607
|
+
* @returns Plain object
|
|
110608
|
+
*/
|
|
110609
|
+
static toObject(message: UserProfileDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
110610
|
+
|
|
110611
|
+
/**
|
|
110612
|
+
* Converts this UserProfileDeleted to JSON.
|
|
110613
|
+
* @returns JSON object
|
|
110614
|
+
*/
|
|
110615
|
+
toJSON(): { [k: string]: any };
|
|
110616
|
+
|
|
110617
|
+
/**
|
|
110618
|
+
* Gets the type url for UserProfileDeleted
|
|
110619
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
110620
|
+
* @returns The type url
|
|
110621
|
+
*/
|
|
110622
|
+
static getTypeUrl(prefix?: string): string;
|
|
110623
|
+
}
|
|
110624
|
+
|
|
110625
|
+
export namespace UserProfileDeleted {
|
|
110626
|
+
|
|
110627
|
+
/** Properties of a UserProfileDeleted. */
|
|
110628
|
+
interface $Properties {
|
|
110629
|
+
|
|
110630
|
+
/** UserProfileDeleted hsUserId */
|
|
110631
|
+
hsUserId?: (string|null);
|
|
110632
|
+
|
|
110633
|
+
/** UserProfileDeleted profileId */
|
|
110634
|
+
profileId?: (string|null);
|
|
110635
|
+
|
|
110636
|
+
/** UserProfileDeleted timestamp */
|
|
110637
|
+
timestamp?: (number|Long|null);
|
|
110638
|
+
|
|
110639
|
+
/** Unknown fields preserved while decoding */
|
|
110640
|
+
$unknowns?: Uint8Array[];
|
|
110641
|
+
}
|
|
110642
|
+
|
|
110643
|
+
/** Shape of a UserProfileDeleted. */
|
|
110644
|
+
type $Shape = UserProfileDeleted.$Properties;
|
|
110645
|
+
}
|
|
110646
|
+
|
|
110350
110647
|
/**
|
|
110351
110648
|
* Properties of a CareCoachingInteractionStarted.
|
|
110352
110649
|
* @deprecated Use CareCoachingInteractionStarted.$Properties instead.
|
package/lib/index.js
CHANGED
|
@@ -324017,6 +324017,733 @@ $root.UserServiceAppClient = (function() {
|
|
|
324017
324017
|
return values;
|
|
324018
324018
|
})();
|
|
324019
324019
|
|
|
324020
|
+
$root.UserProfileCreated = (function() {
|
|
324021
|
+
|
|
324022
|
+
/**
|
|
324023
|
+
* Properties of a UserProfileCreated.
|
|
324024
|
+
* @typedef {Object} UserProfileCreated.$Properties
|
|
324025
|
+
* @property {string|null} [hsUserId] UserProfileCreated hsUserId
|
|
324026
|
+
* @property {string|null} [profileId] UserProfileCreated profileId
|
|
324027
|
+
* @property {string|null} [displayName] UserProfileCreated displayName
|
|
324028
|
+
* @property {string|null} [birthYearMonth] UserProfileCreated birthYearMonth
|
|
324029
|
+
* @property {number|Long|null} [timestamp] UserProfileCreated timestamp
|
|
324030
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
324031
|
+
*/
|
|
324032
|
+
|
|
324033
|
+
/**
|
|
324034
|
+
* Properties of a UserProfileCreated.
|
|
324035
|
+
* @name IUserProfileCreated
|
|
324036
|
+
* @interface IUserProfileCreated
|
|
324037
|
+
* @augments UserProfileCreated.$Properties
|
|
324038
|
+
* @deprecated Use UserProfileCreated.$Properties instead.
|
|
324039
|
+
*/
|
|
324040
|
+
|
|
324041
|
+
/**
|
|
324042
|
+
* Shape of a UserProfileCreated.
|
|
324043
|
+
* @typedef {UserProfileCreated.$Properties} UserProfileCreated.$Shape
|
|
324044
|
+
*/
|
|
324045
|
+
|
|
324046
|
+
/**
|
|
324047
|
+
* Constructs a new UserProfileCreated.
|
|
324048
|
+
* @name UserProfileCreated
|
|
324049
|
+
* @classdesc Sent when a Headspace Jr. child profile is created.
|
|
324050
|
+
*
|
|
324051
|
+
* "Profile" here is the Headspace Jr. child-profile identity concept. It is a different
|
|
324052
|
+
* bounded concept from the pre-existing, apparently-unused UserProfileResponse /
|
|
324053
|
+
* UserProfileManager RPC schema in protos/services/user/user_profile.proto (an Amplitude
|
|
324054
|
+
* profile lookup) — do not conflate the two.
|
|
324055
|
+
*
|
|
324056
|
+
* display_name and birth_year_month are intentionally carried on this event for
|
|
324057
|
+
* data-lake-only routing. Do not remove them assuming they are an oversight.
|
|
324058
|
+
*
|
|
324059
|
+
* Consumers: published by hs-user-service; consumed by Braze/lifecycle and the data lake.
|
|
324060
|
+
* @constructor
|
|
324061
|
+
* @param {UserProfileCreated.$Properties=} [properties] Properties to set
|
|
324062
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
324063
|
+
*/
|
|
324064
|
+
function UserProfileCreated(properties) {
|
|
324065
|
+
if (properties)
|
|
324066
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
324067
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
324068
|
+
this[keys[i]] = properties[keys[i]];
|
|
324069
|
+
}
|
|
324070
|
+
|
|
324071
|
+
/**
|
|
324072
|
+
* UserProfileCreated hsUserId.
|
|
324073
|
+
* @member {string} hsUserId
|
|
324074
|
+
* @memberof UserProfileCreated
|
|
324075
|
+
* @instance
|
|
324076
|
+
*/
|
|
324077
|
+
UserProfileCreated.prototype.hsUserId = "";
|
|
324078
|
+
|
|
324079
|
+
/**
|
|
324080
|
+
* UserProfileCreated profileId.
|
|
324081
|
+
* @member {string} profileId
|
|
324082
|
+
* @memberof UserProfileCreated
|
|
324083
|
+
* @instance
|
|
324084
|
+
*/
|
|
324085
|
+
UserProfileCreated.prototype.profileId = "";
|
|
324086
|
+
|
|
324087
|
+
/**
|
|
324088
|
+
* UserProfileCreated displayName.
|
|
324089
|
+
* @member {string} displayName
|
|
324090
|
+
* @memberof UserProfileCreated
|
|
324091
|
+
* @instance
|
|
324092
|
+
*/
|
|
324093
|
+
UserProfileCreated.prototype.displayName = "";
|
|
324094
|
+
|
|
324095
|
+
/**
|
|
324096
|
+
* UserProfileCreated birthYearMonth.
|
|
324097
|
+
* @member {string} birthYearMonth
|
|
324098
|
+
* @memberof UserProfileCreated
|
|
324099
|
+
* @instance
|
|
324100
|
+
*/
|
|
324101
|
+
UserProfileCreated.prototype.birthYearMonth = "";
|
|
324102
|
+
|
|
324103
|
+
/**
|
|
324104
|
+
* UserProfileCreated timestamp.
|
|
324105
|
+
* @member {number|Long} timestamp
|
|
324106
|
+
* @memberof UserProfileCreated
|
|
324107
|
+
* @instance
|
|
324108
|
+
*/
|
|
324109
|
+
UserProfileCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
324110
|
+
|
|
324111
|
+
/**
|
|
324112
|
+
* Creates a new UserProfileCreated instance using the specified properties.
|
|
324113
|
+
* @function create
|
|
324114
|
+
* @memberof UserProfileCreated
|
|
324115
|
+
* @static
|
|
324116
|
+
* @param {UserProfileCreated.$Properties=} [properties] Properties to set
|
|
324117
|
+
* @returns {UserProfileCreated} UserProfileCreated instance
|
|
324118
|
+
* @type {{
|
|
324119
|
+
* (properties: UserProfileCreated.$Shape): UserProfileCreated & UserProfileCreated.$Shape;
|
|
324120
|
+
* (properties?: UserProfileCreated.$Properties): UserProfileCreated;
|
|
324121
|
+
* }}
|
|
324122
|
+
*/
|
|
324123
|
+
UserProfileCreated.create = function create(properties) {
|
|
324124
|
+
return new UserProfileCreated(properties);
|
|
324125
|
+
};
|
|
324126
|
+
|
|
324127
|
+
/**
|
|
324128
|
+
* Encodes the specified UserProfileCreated message. Does not implicitly {@link UserProfileCreated.verify|verify} messages.
|
|
324129
|
+
* @function encode
|
|
324130
|
+
* @memberof UserProfileCreated
|
|
324131
|
+
* @static
|
|
324132
|
+
* @param {UserProfileCreated.$Properties} message UserProfileCreated message or plain object to encode
|
|
324133
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
324134
|
+
* @returns {$protobuf.Writer} Writer
|
|
324135
|
+
*/
|
|
324136
|
+
UserProfileCreated.encode = function encode(message, writer) {
|
|
324137
|
+
if (!writer)
|
|
324138
|
+
writer = $Writer.create();
|
|
324139
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
324140
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
324141
|
+
if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
|
|
324142
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
|
|
324143
|
+
if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
|
|
324144
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName);
|
|
324145
|
+
if (message.birthYearMonth != null && Object.hasOwnProperty.call(message, "birthYearMonth"))
|
|
324146
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.birthYearMonth);
|
|
324147
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
324148
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.timestamp);
|
|
324149
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
324150
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
324151
|
+
writer.raw(message.$unknowns[i]);
|
|
324152
|
+
return writer;
|
|
324153
|
+
};
|
|
324154
|
+
|
|
324155
|
+
/**
|
|
324156
|
+
* Encodes the specified UserProfileCreated message, length delimited. Does not implicitly {@link UserProfileCreated.verify|verify} messages.
|
|
324157
|
+
* @function encodeDelimited
|
|
324158
|
+
* @memberof UserProfileCreated
|
|
324159
|
+
* @static
|
|
324160
|
+
* @param {UserProfileCreated.$Properties} message UserProfileCreated message or plain object to encode
|
|
324161
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
324162
|
+
* @returns {$protobuf.Writer} Writer
|
|
324163
|
+
*/
|
|
324164
|
+
UserProfileCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
324165
|
+
return this.encode(message, writer).ldelim();
|
|
324166
|
+
};
|
|
324167
|
+
|
|
324168
|
+
/**
|
|
324169
|
+
* Decodes a UserProfileCreated message from the specified reader or buffer.
|
|
324170
|
+
* @function decode
|
|
324171
|
+
* @memberof UserProfileCreated
|
|
324172
|
+
* @static
|
|
324173
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
324174
|
+
* @param {number} [length] Message length if known beforehand
|
|
324175
|
+
* @returns {UserProfileCreated & UserProfileCreated.$Shape} UserProfileCreated
|
|
324176
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324177
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324178
|
+
*/
|
|
324179
|
+
UserProfileCreated.decode = function decode(reader, length, _end, _depth, _target) {
|
|
324180
|
+
if (!(reader instanceof $Reader))
|
|
324181
|
+
reader = $Reader.create(reader);
|
|
324182
|
+
if (_depth === undefined)
|
|
324183
|
+
_depth = 0;
|
|
324184
|
+
if (_depth > $Reader.recursionLimit)
|
|
324185
|
+
throw Error("max depth exceeded");
|
|
324186
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserProfileCreated(), value;
|
|
324187
|
+
while (reader.pos < end) {
|
|
324188
|
+
var start = reader.pos;
|
|
324189
|
+
var tag = reader.tag();
|
|
324190
|
+
if (tag === _end) {
|
|
324191
|
+
_end = undefined;
|
|
324192
|
+
break;
|
|
324193
|
+
}
|
|
324194
|
+
var wireType = tag & 7;
|
|
324195
|
+
switch (tag >>>= 3) {
|
|
324196
|
+
case 1: {
|
|
324197
|
+
if (wireType !== 2)
|
|
324198
|
+
break;
|
|
324199
|
+
if ((value = reader.string()).length)
|
|
324200
|
+
message.hsUserId = value;
|
|
324201
|
+
else
|
|
324202
|
+
delete message.hsUserId;
|
|
324203
|
+
continue;
|
|
324204
|
+
}
|
|
324205
|
+
case 2: {
|
|
324206
|
+
if (wireType !== 2)
|
|
324207
|
+
break;
|
|
324208
|
+
if ((value = reader.string()).length)
|
|
324209
|
+
message.profileId = value;
|
|
324210
|
+
else
|
|
324211
|
+
delete message.profileId;
|
|
324212
|
+
continue;
|
|
324213
|
+
}
|
|
324214
|
+
case 3: {
|
|
324215
|
+
if (wireType !== 2)
|
|
324216
|
+
break;
|
|
324217
|
+
if ((value = reader.string()).length)
|
|
324218
|
+
message.displayName = value;
|
|
324219
|
+
else
|
|
324220
|
+
delete message.displayName;
|
|
324221
|
+
continue;
|
|
324222
|
+
}
|
|
324223
|
+
case 4: {
|
|
324224
|
+
if (wireType !== 2)
|
|
324225
|
+
break;
|
|
324226
|
+
if ((value = reader.string()).length)
|
|
324227
|
+
message.birthYearMonth = value;
|
|
324228
|
+
else
|
|
324229
|
+
delete message.birthYearMonth;
|
|
324230
|
+
continue;
|
|
324231
|
+
}
|
|
324232
|
+
case 5: {
|
|
324233
|
+
if (wireType !== 0)
|
|
324234
|
+
break;
|
|
324235
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
324236
|
+
message.timestamp = value;
|
|
324237
|
+
else
|
|
324238
|
+
delete message.timestamp;
|
|
324239
|
+
continue;
|
|
324240
|
+
}
|
|
324241
|
+
}
|
|
324242
|
+
reader.skipType(wireType, _depth, tag);
|
|
324243
|
+
$util.makeProp(message, "$unknowns", false);
|
|
324244
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
324245
|
+
}
|
|
324246
|
+
if (_end !== undefined)
|
|
324247
|
+
throw Error("missing end group");
|
|
324248
|
+
return message;
|
|
324249
|
+
};
|
|
324250
|
+
|
|
324251
|
+
/**
|
|
324252
|
+
* Decodes a UserProfileCreated message from the specified reader or buffer, length delimited.
|
|
324253
|
+
* @function decodeDelimited
|
|
324254
|
+
* @memberof UserProfileCreated
|
|
324255
|
+
* @static
|
|
324256
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
324257
|
+
* @returns {UserProfileCreated & UserProfileCreated.$Shape} UserProfileCreated
|
|
324258
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324259
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324260
|
+
*/
|
|
324261
|
+
UserProfileCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
324262
|
+
if (!(reader instanceof $Reader))
|
|
324263
|
+
reader = new $Reader(reader);
|
|
324264
|
+
return this.decode(reader, reader.uint32());
|
|
324265
|
+
};
|
|
324266
|
+
|
|
324267
|
+
/**
|
|
324268
|
+
* Verifies a UserProfileCreated message.
|
|
324269
|
+
* @function verify
|
|
324270
|
+
* @memberof UserProfileCreated
|
|
324271
|
+
* @static
|
|
324272
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
324273
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
324274
|
+
*/
|
|
324275
|
+
UserProfileCreated.verify = function verify(message, _depth) {
|
|
324276
|
+
if (typeof message !== "object" || message === null)
|
|
324277
|
+
return "object expected";
|
|
324278
|
+
if (_depth === undefined)
|
|
324279
|
+
_depth = 0;
|
|
324280
|
+
if (_depth > $util.recursionLimit)
|
|
324281
|
+
return "max depth exceeded";
|
|
324282
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
324283
|
+
if (!$util.isString(message.hsUserId))
|
|
324284
|
+
return "hsUserId: string expected";
|
|
324285
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
324286
|
+
if (!$util.isString(message.profileId))
|
|
324287
|
+
return "profileId: string expected";
|
|
324288
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
324289
|
+
if (!$util.isString(message.displayName))
|
|
324290
|
+
return "displayName: string expected";
|
|
324291
|
+
if (message.birthYearMonth != null && message.hasOwnProperty("birthYearMonth"))
|
|
324292
|
+
if (!$util.isString(message.birthYearMonth))
|
|
324293
|
+
return "birthYearMonth: string expected";
|
|
324294
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
324295
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
324296
|
+
return "timestamp: integer|Long expected";
|
|
324297
|
+
return null;
|
|
324298
|
+
};
|
|
324299
|
+
|
|
324300
|
+
/**
|
|
324301
|
+
* Creates a UserProfileCreated message from a plain object. Also converts values to their respective internal types.
|
|
324302
|
+
* @function fromObject
|
|
324303
|
+
* @memberof UserProfileCreated
|
|
324304
|
+
* @static
|
|
324305
|
+
* @param {Object.<string,*>} object Plain object
|
|
324306
|
+
* @returns {UserProfileCreated} UserProfileCreated
|
|
324307
|
+
*/
|
|
324308
|
+
UserProfileCreated.fromObject = function fromObject(object, _depth) {
|
|
324309
|
+
if (object instanceof $root.UserProfileCreated)
|
|
324310
|
+
return object;
|
|
324311
|
+
if (_depth === undefined)
|
|
324312
|
+
_depth = 0;
|
|
324313
|
+
if (_depth > $util.recursionLimit)
|
|
324314
|
+
throw Error("max depth exceeded");
|
|
324315
|
+
var message = new $root.UserProfileCreated();
|
|
324316
|
+
if (object.hsUserId != null)
|
|
324317
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
324318
|
+
message.hsUserId = String(object.hsUserId);
|
|
324319
|
+
if (object.profileId != null)
|
|
324320
|
+
if (typeof object.profileId !== "string" || object.profileId.length)
|
|
324321
|
+
message.profileId = String(object.profileId);
|
|
324322
|
+
if (object.displayName != null)
|
|
324323
|
+
if (typeof object.displayName !== "string" || object.displayName.length)
|
|
324324
|
+
message.displayName = String(object.displayName);
|
|
324325
|
+
if (object.birthYearMonth != null)
|
|
324326
|
+
if (typeof object.birthYearMonth !== "string" || object.birthYearMonth.length)
|
|
324327
|
+
message.birthYearMonth = String(object.birthYearMonth);
|
|
324328
|
+
if (object.timestamp != null)
|
|
324329
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
324330
|
+
if ($util.Long)
|
|
324331
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
324332
|
+
else if (typeof object.timestamp === "string")
|
|
324333
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
324334
|
+
else if (typeof object.timestamp === "number")
|
|
324335
|
+
message.timestamp = object.timestamp;
|
|
324336
|
+
else if (typeof object.timestamp === "object")
|
|
324337
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
324338
|
+
return message;
|
|
324339
|
+
};
|
|
324340
|
+
|
|
324341
|
+
/**
|
|
324342
|
+
* Creates a plain object from a UserProfileCreated message. Also converts values to other types if specified.
|
|
324343
|
+
* @function toObject
|
|
324344
|
+
* @memberof UserProfileCreated
|
|
324345
|
+
* @static
|
|
324346
|
+
* @param {UserProfileCreated} message UserProfileCreated
|
|
324347
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
324348
|
+
* @returns {Object.<string,*>} Plain object
|
|
324349
|
+
*/
|
|
324350
|
+
UserProfileCreated.toObject = function toObject(message, options) {
|
|
324351
|
+
if (!options)
|
|
324352
|
+
options = {};
|
|
324353
|
+
var object = {};
|
|
324354
|
+
if (options.defaults) {
|
|
324355
|
+
object.hsUserId = "";
|
|
324356
|
+
object.profileId = "";
|
|
324357
|
+
object.displayName = "";
|
|
324358
|
+
object.birthYearMonth = "";
|
|
324359
|
+
if ($util.Long) {
|
|
324360
|
+
var long = new $util.Long(0, 0, true);
|
|
324361
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
324362
|
+
} else
|
|
324363
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
324364
|
+
}
|
|
324365
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
324366
|
+
object.hsUserId = message.hsUserId;
|
|
324367
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
324368
|
+
object.profileId = message.profileId;
|
|
324369
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
324370
|
+
object.displayName = message.displayName;
|
|
324371
|
+
if (message.birthYearMonth != null && message.hasOwnProperty("birthYearMonth"))
|
|
324372
|
+
object.birthYearMonth = message.birthYearMonth;
|
|
324373
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
324374
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
324375
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
324376
|
+
else if (typeof message.timestamp === "number")
|
|
324377
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
324378
|
+
else
|
|
324379
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
324380
|
+
return object;
|
|
324381
|
+
};
|
|
324382
|
+
|
|
324383
|
+
/**
|
|
324384
|
+
* Converts this UserProfileCreated to JSON.
|
|
324385
|
+
* @function toJSON
|
|
324386
|
+
* @memberof UserProfileCreated
|
|
324387
|
+
* @instance
|
|
324388
|
+
* @returns {Object.<string,*>} JSON object
|
|
324389
|
+
*/
|
|
324390
|
+
UserProfileCreated.prototype.toJSON = function toJSON() {
|
|
324391
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
324392
|
+
};
|
|
324393
|
+
|
|
324394
|
+
/**
|
|
324395
|
+
* Gets the type url for UserProfileCreated
|
|
324396
|
+
* @function getTypeUrl
|
|
324397
|
+
* @memberof UserProfileCreated
|
|
324398
|
+
* @static
|
|
324399
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
324400
|
+
* @returns {string} The type url
|
|
324401
|
+
*/
|
|
324402
|
+
UserProfileCreated.getTypeUrl = function getTypeUrl(prefix) {
|
|
324403
|
+
if (prefix === undefined)
|
|
324404
|
+
prefix = "type.googleapis.com";
|
|
324405
|
+
return prefix + "/UserProfileCreated";
|
|
324406
|
+
};
|
|
324407
|
+
|
|
324408
|
+
return UserProfileCreated;
|
|
324409
|
+
})();
|
|
324410
|
+
|
|
324411
|
+
$root.UserProfileDeleted = (function() {
|
|
324412
|
+
|
|
324413
|
+
/**
|
|
324414
|
+
* Properties of a UserProfileDeleted.
|
|
324415
|
+
* @typedef {Object} UserProfileDeleted.$Properties
|
|
324416
|
+
* @property {string|null} [hsUserId] UserProfileDeleted hsUserId
|
|
324417
|
+
* @property {string|null} [profileId] UserProfileDeleted profileId
|
|
324418
|
+
* @property {number|Long|null} [timestamp] UserProfileDeleted timestamp
|
|
324419
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
324420
|
+
*/
|
|
324421
|
+
|
|
324422
|
+
/**
|
|
324423
|
+
* Properties of a UserProfileDeleted.
|
|
324424
|
+
* @name IUserProfileDeleted
|
|
324425
|
+
* @interface IUserProfileDeleted
|
|
324426
|
+
* @augments UserProfileDeleted.$Properties
|
|
324427
|
+
* @deprecated Use UserProfileDeleted.$Properties instead.
|
|
324428
|
+
*/
|
|
324429
|
+
|
|
324430
|
+
/**
|
|
324431
|
+
* Shape of a UserProfileDeleted.
|
|
324432
|
+
* @typedef {UserProfileDeleted.$Properties} UserProfileDeleted.$Shape
|
|
324433
|
+
*/
|
|
324434
|
+
|
|
324435
|
+
/**
|
|
324436
|
+
* Constructs a new UserProfileDeleted.
|
|
324437
|
+
* @name UserProfileDeleted
|
|
324438
|
+
* @classdesc Sent when a Headspace Jr. child profile is deleted.
|
|
324439
|
+
*
|
|
324440
|
+
* "Profile" here is the Headspace Jr. child-profile identity concept. It is a different
|
|
324441
|
+
* bounded concept from the pre-existing, apparently-unused UserProfileResponse /
|
|
324442
|
+
* UserProfileManager RPC schema in protos/services/user/user_profile.proto (an Amplitude
|
|
324443
|
+
* profile lookup) — do not conflate the two.
|
|
324444
|
+
*
|
|
324445
|
+
* Consumers: published by hs-user-service; consumed by hs-content-engagement-service to
|
|
324446
|
+
* cascade-delete the profile's passports.
|
|
324447
|
+
*
|
|
324448
|
+
* That cascade delete is eventually consistent, not atomic: this event fires after the
|
|
324449
|
+
* profile row is already gone, and passport cleanup happens asynchronously on the consumer
|
|
324450
|
+
* side afterward. A caller can briefly still see a just-deleted profile's passports until
|
|
324451
|
+
* this event is consumed. This is an accepted tradeoff, not a bug.
|
|
324452
|
+
* @constructor
|
|
324453
|
+
* @param {UserProfileDeleted.$Properties=} [properties] Properties to set
|
|
324454
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
324455
|
+
*/
|
|
324456
|
+
function UserProfileDeleted(properties) {
|
|
324457
|
+
if (properties)
|
|
324458
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
324459
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
324460
|
+
this[keys[i]] = properties[keys[i]];
|
|
324461
|
+
}
|
|
324462
|
+
|
|
324463
|
+
/**
|
|
324464
|
+
* UserProfileDeleted hsUserId.
|
|
324465
|
+
* @member {string} hsUserId
|
|
324466
|
+
* @memberof UserProfileDeleted
|
|
324467
|
+
* @instance
|
|
324468
|
+
*/
|
|
324469
|
+
UserProfileDeleted.prototype.hsUserId = "";
|
|
324470
|
+
|
|
324471
|
+
/**
|
|
324472
|
+
* UserProfileDeleted profileId.
|
|
324473
|
+
* @member {string} profileId
|
|
324474
|
+
* @memberof UserProfileDeleted
|
|
324475
|
+
* @instance
|
|
324476
|
+
*/
|
|
324477
|
+
UserProfileDeleted.prototype.profileId = "";
|
|
324478
|
+
|
|
324479
|
+
/**
|
|
324480
|
+
* UserProfileDeleted timestamp.
|
|
324481
|
+
* @member {number|Long} timestamp
|
|
324482
|
+
* @memberof UserProfileDeleted
|
|
324483
|
+
* @instance
|
|
324484
|
+
*/
|
|
324485
|
+
UserProfileDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
324486
|
+
|
|
324487
|
+
/**
|
|
324488
|
+
* Creates a new UserProfileDeleted instance using the specified properties.
|
|
324489
|
+
* @function create
|
|
324490
|
+
* @memberof UserProfileDeleted
|
|
324491
|
+
* @static
|
|
324492
|
+
* @param {UserProfileDeleted.$Properties=} [properties] Properties to set
|
|
324493
|
+
* @returns {UserProfileDeleted} UserProfileDeleted instance
|
|
324494
|
+
* @type {{
|
|
324495
|
+
* (properties: UserProfileDeleted.$Shape): UserProfileDeleted & UserProfileDeleted.$Shape;
|
|
324496
|
+
* (properties?: UserProfileDeleted.$Properties): UserProfileDeleted;
|
|
324497
|
+
* }}
|
|
324498
|
+
*/
|
|
324499
|
+
UserProfileDeleted.create = function create(properties) {
|
|
324500
|
+
return new UserProfileDeleted(properties);
|
|
324501
|
+
};
|
|
324502
|
+
|
|
324503
|
+
/**
|
|
324504
|
+
* Encodes the specified UserProfileDeleted message. Does not implicitly {@link UserProfileDeleted.verify|verify} messages.
|
|
324505
|
+
* @function encode
|
|
324506
|
+
* @memberof UserProfileDeleted
|
|
324507
|
+
* @static
|
|
324508
|
+
* @param {UserProfileDeleted.$Properties} message UserProfileDeleted message or plain object to encode
|
|
324509
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
324510
|
+
* @returns {$protobuf.Writer} Writer
|
|
324511
|
+
*/
|
|
324512
|
+
UserProfileDeleted.encode = function encode(message, writer) {
|
|
324513
|
+
if (!writer)
|
|
324514
|
+
writer = $Writer.create();
|
|
324515
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
324516
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
324517
|
+
if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
|
|
324518
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
|
|
324519
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
324520
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
324521
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
324522
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
324523
|
+
writer.raw(message.$unknowns[i]);
|
|
324524
|
+
return writer;
|
|
324525
|
+
};
|
|
324526
|
+
|
|
324527
|
+
/**
|
|
324528
|
+
* Encodes the specified UserProfileDeleted message, length delimited. Does not implicitly {@link UserProfileDeleted.verify|verify} messages.
|
|
324529
|
+
* @function encodeDelimited
|
|
324530
|
+
* @memberof UserProfileDeleted
|
|
324531
|
+
* @static
|
|
324532
|
+
* @param {UserProfileDeleted.$Properties} message UserProfileDeleted message or plain object to encode
|
|
324533
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
324534
|
+
* @returns {$protobuf.Writer} Writer
|
|
324535
|
+
*/
|
|
324536
|
+
UserProfileDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
324537
|
+
return this.encode(message, writer).ldelim();
|
|
324538
|
+
};
|
|
324539
|
+
|
|
324540
|
+
/**
|
|
324541
|
+
* Decodes a UserProfileDeleted message from the specified reader or buffer.
|
|
324542
|
+
* @function decode
|
|
324543
|
+
* @memberof UserProfileDeleted
|
|
324544
|
+
* @static
|
|
324545
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
324546
|
+
* @param {number} [length] Message length if known beforehand
|
|
324547
|
+
* @returns {UserProfileDeleted & UserProfileDeleted.$Shape} UserProfileDeleted
|
|
324548
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324549
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324550
|
+
*/
|
|
324551
|
+
UserProfileDeleted.decode = function decode(reader, length, _end, _depth, _target) {
|
|
324552
|
+
if (!(reader instanceof $Reader))
|
|
324553
|
+
reader = $Reader.create(reader);
|
|
324554
|
+
if (_depth === undefined)
|
|
324555
|
+
_depth = 0;
|
|
324556
|
+
if (_depth > $Reader.recursionLimit)
|
|
324557
|
+
throw Error("max depth exceeded");
|
|
324558
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserProfileDeleted(), value;
|
|
324559
|
+
while (reader.pos < end) {
|
|
324560
|
+
var start = reader.pos;
|
|
324561
|
+
var tag = reader.tag();
|
|
324562
|
+
if (tag === _end) {
|
|
324563
|
+
_end = undefined;
|
|
324564
|
+
break;
|
|
324565
|
+
}
|
|
324566
|
+
var wireType = tag & 7;
|
|
324567
|
+
switch (tag >>>= 3) {
|
|
324568
|
+
case 1: {
|
|
324569
|
+
if (wireType !== 2)
|
|
324570
|
+
break;
|
|
324571
|
+
if ((value = reader.string()).length)
|
|
324572
|
+
message.hsUserId = value;
|
|
324573
|
+
else
|
|
324574
|
+
delete message.hsUserId;
|
|
324575
|
+
continue;
|
|
324576
|
+
}
|
|
324577
|
+
case 2: {
|
|
324578
|
+
if (wireType !== 2)
|
|
324579
|
+
break;
|
|
324580
|
+
if ((value = reader.string()).length)
|
|
324581
|
+
message.profileId = value;
|
|
324582
|
+
else
|
|
324583
|
+
delete message.profileId;
|
|
324584
|
+
continue;
|
|
324585
|
+
}
|
|
324586
|
+
case 3: {
|
|
324587
|
+
if (wireType !== 0)
|
|
324588
|
+
break;
|
|
324589
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
324590
|
+
message.timestamp = value;
|
|
324591
|
+
else
|
|
324592
|
+
delete message.timestamp;
|
|
324593
|
+
continue;
|
|
324594
|
+
}
|
|
324595
|
+
}
|
|
324596
|
+
reader.skipType(wireType, _depth, tag);
|
|
324597
|
+
$util.makeProp(message, "$unknowns", false);
|
|
324598
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
324599
|
+
}
|
|
324600
|
+
if (_end !== undefined)
|
|
324601
|
+
throw Error("missing end group");
|
|
324602
|
+
return message;
|
|
324603
|
+
};
|
|
324604
|
+
|
|
324605
|
+
/**
|
|
324606
|
+
* Decodes a UserProfileDeleted message from the specified reader or buffer, length delimited.
|
|
324607
|
+
* @function decodeDelimited
|
|
324608
|
+
* @memberof UserProfileDeleted
|
|
324609
|
+
* @static
|
|
324610
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
324611
|
+
* @returns {UserProfileDeleted & UserProfileDeleted.$Shape} UserProfileDeleted
|
|
324612
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324613
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324614
|
+
*/
|
|
324615
|
+
UserProfileDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
324616
|
+
if (!(reader instanceof $Reader))
|
|
324617
|
+
reader = new $Reader(reader);
|
|
324618
|
+
return this.decode(reader, reader.uint32());
|
|
324619
|
+
};
|
|
324620
|
+
|
|
324621
|
+
/**
|
|
324622
|
+
* Verifies a UserProfileDeleted message.
|
|
324623
|
+
* @function verify
|
|
324624
|
+
* @memberof UserProfileDeleted
|
|
324625
|
+
* @static
|
|
324626
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
324627
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
324628
|
+
*/
|
|
324629
|
+
UserProfileDeleted.verify = function verify(message, _depth) {
|
|
324630
|
+
if (typeof message !== "object" || message === null)
|
|
324631
|
+
return "object expected";
|
|
324632
|
+
if (_depth === undefined)
|
|
324633
|
+
_depth = 0;
|
|
324634
|
+
if (_depth > $util.recursionLimit)
|
|
324635
|
+
return "max depth exceeded";
|
|
324636
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
324637
|
+
if (!$util.isString(message.hsUserId))
|
|
324638
|
+
return "hsUserId: string expected";
|
|
324639
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
324640
|
+
if (!$util.isString(message.profileId))
|
|
324641
|
+
return "profileId: string expected";
|
|
324642
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
324643
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
324644
|
+
return "timestamp: integer|Long expected";
|
|
324645
|
+
return null;
|
|
324646
|
+
};
|
|
324647
|
+
|
|
324648
|
+
/**
|
|
324649
|
+
* Creates a UserProfileDeleted message from a plain object. Also converts values to their respective internal types.
|
|
324650
|
+
* @function fromObject
|
|
324651
|
+
* @memberof UserProfileDeleted
|
|
324652
|
+
* @static
|
|
324653
|
+
* @param {Object.<string,*>} object Plain object
|
|
324654
|
+
* @returns {UserProfileDeleted} UserProfileDeleted
|
|
324655
|
+
*/
|
|
324656
|
+
UserProfileDeleted.fromObject = function fromObject(object, _depth) {
|
|
324657
|
+
if (object instanceof $root.UserProfileDeleted)
|
|
324658
|
+
return object;
|
|
324659
|
+
if (_depth === undefined)
|
|
324660
|
+
_depth = 0;
|
|
324661
|
+
if (_depth > $util.recursionLimit)
|
|
324662
|
+
throw Error("max depth exceeded");
|
|
324663
|
+
var message = new $root.UserProfileDeleted();
|
|
324664
|
+
if (object.hsUserId != null)
|
|
324665
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
324666
|
+
message.hsUserId = String(object.hsUserId);
|
|
324667
|
+
if (object.profileId != null)
|
|
324668
|
+
if (typeof object.profileId !== "string" || object.profileId.length)
|
|
324669
|
+
message.profileId = String(object.profileId);
|
|
324670
|
+
if (object.timestamp != null)
|
|
324671
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
324672
|
+
if ($util.Long)
|
|
324673
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
324674
|
+
else if (typeof object.timestamp === "string")
|
|
324675
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
324676
|
+
else if (typeof object.timestamp === "number")
|
|
324677
|
+
message.timestamp = object.timestamp;
|
|
324678
|
+
else if (typeof object.timestamp === "object")
|
|
324679
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
324680
|
+
return message;
|
|
324681
|
+
};
|
|
324682
|
+
|
|
324683
|
+
/**
|
|
324684
|
+
* Creates a plain object from a UserProfileDeleted message. Also converts values to other types if specified.
|
|
324685
|
+
* @function toObject
|
|
324686
|
+
* @memberof UserProfileDeleted
|
|
324687
|
+
* @static
|
|
324688
|
+
* @param {UserProfileDeleted} message UserProfileDeleted
|
|
324689
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
324690
|
+
* @returns {Object.<string,*>} Plain object
|
|
324691
|
+
*/
|
|
324692
|
+
UserProfileDeleted.toObject = function toObject(message, options) {
|
|
324693
|
+
if (!options)
|
|
324694
|
+
options = {};
|
|
324695
|
+
var object = {};
|
|
324696
|
+
if (options.defaults) {
|
|
324697
|
+
object.hsUserId = "";
|
|
324698
|
+
object.profileId = "";
|
|
324699
|
+
if ($util.Long) {
|
|
324700
|
+
var long = new $util.Long(0, 0, true);
|
|
324701
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
324702
|
+
} else
|
|
324703
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
324704
|
+
}
|
|
324705
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
324706
|
+
object.hsUserId = message.hsUserId;
|
|
324707
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
324708
|
+
object.profileId = message.profileId;
|
|
324709
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
324710
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
324711
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
324712
|
+
else if (typeof message.timestamp === "number")
|
|
324713
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
324714
|
+
else
|
|
324715
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
324716
|
+
return object;
|
|
324717
|
+
};
|
|
324718
|
+
|
|
324719
|
+
/**
|
|
324720
|
+
* Converts this UserProfileDeleted to JSON.
|
|
324721
|
+
* @function toJSON
|
|
324722
|
+
* @memberof UserProfileDeleted
|
|
324723
|
+
* @instance
|
|
324724
|
+
* @returns {Object.<string,*>} JSON object
|
|
324725
|
+
*/
|
|
324726
|
+
UserProfileDeleted.prototype.toJSON = function toJSON() {
|
|
324727
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
324728
|
+
};
|
|
324729
|
+
|
|
324730
|
+
/**
|
|
324731
|
+
* Gets the type url for UserProfileDeleted
|
|
324732
|
+
* @function getTypeUrl
|
|
324733
|
+
* @memberof UserProfileDeleted
|
|
324734
|
+
* @static
|
|
324735
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
324736
|
+
* @returns {string} The type url
|
|
324737
|
+
*/
|
|
324738
|
+
UserProfileDeleted.getTypeUrl = function getTypeUrl(prefix) {
|
|
324739
|
+
if (prefix === undefined)
|
|
324740
|
+
prefix = "type.googleapis.com";
|
|
324741
|
+
return prefix + "/UserProfileDeleted";
|
|
324742
|
+
};
|
|
324743
|
+
|
|
324744
|
+
return UserProfileDeleted;
|
|
324745
|
+
})();
|
|
324746
|
+
|
|
324020
324747
|
$root.CareCoachingInteractionStarted = (function() {
|
|
324021
324748
|
|
|
324022
324749
|
/**
|
package/package.json
CHANGED