@headspace/protos-events 1.637.0 → 1.639.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 +309 -0
- package/lib/index.js +846 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3264,6 +3264,195 @@ export namespace coaching {
|
|
|
3264
3264
|
public toJSON(): { [k: string]: any };
|
|
3265
3265
|
}
|
|
3266
3266
|
|
|
3267
|
+
/** ExperimentVariant enum. */
|
|
3268
|
+
enum ExperimentVariant {
|
|
3269
|
+
EXPERIMENT_VARIANT_UNKNOWN = 0,
|
|
3270
|
+
EXPERIMENT_VARIANT_A = 1,
|
|
3271
|
+
EXPERIMENT_VARIANT_B = 2
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
/** Properties of a ListenerCoachingExperimentalChatRatingCreated. */
|
|
3275
|
+
interface IListenerCoachingExperimentalChatRatingCreated {
|
|
3276
|
+
|
|
3277
|
+
/** ListenerCoachingExperimentalChatRatingCreated id */
|
|
3278
|
+
id?: (string|null);
|
|
3279
|
+
|
|
3280
|
+
/** ListenerCoachingExperimentalChatRatingCreated chatConversationId */
|
|
3281
|
+
chatConversationId?: (number|null);
|
|
3282
|
+
|
|
3283
|
+
/** ListenerCoachingExperimentalChatRatingCreated messageCount */
|
|
3284
|
+
messageCount?: (number|null);
|
|
3285
|
+
|
|
3286
|
+
/** ListenerCoachingExperimentalChatRatingCreated createdAtTimestamp */
|
|
3287
|
+
createdAtTimestamp?: (number|Long|null);
|
|
3288
|
+
|
|
3289
|
+
/** ListenerCoachingExperimentalChatRatingCreated coachId */
|
|
3290
|
+
coachId?: (string|null);
|
|
3291
|
+
|
|
3292
|
+
/** ListenerCoachingExperimentalChatRatingCreated rating */
|
|
3293
|
+
rating?: (number|null);
|
|
3294
|
+
|
|
3295
|
+
/** ListenerCoachingExperimentalChatRatingCreated variant */
|
|
3296
|
+
variant?: (coaching.ExperimentVariant|null);
|
|
3297
|
+
|
|
3298
|
+
/** ListenerCoachingExperimentalChatRatingCreated seenAndHeardRating */
|
|
3299
|
+
seenAndHeardRating?: (number|null);
|
|
3300
|
+
|
|
3301
|
+
/** ListenerCoachingExperimentalChatRatingCreated understoodRating */
|
|
3302
|
+
understoodRating?: (number|null);
|
|
3303
|
+
|
|
3304
|
+
/** ListenerCoachingExperimentalChatRatingCreated feltSupportedRating */
|
|
3305
|
+
feltSupportedRating?: (number|null);
|
|
3306
|
+
|
|
3307
|
+
/** ListenerCoachingExperimentalChatRatingCreated approachRating */
|
|
3308
|
+
approachRating?: (number|null);
|
|
3309
|
+
|
|
3310
|
+
/** ListenerCoachingExperimentalChatRatingCreated ratingComment */
|
|
3311
|
+
ratingComment?: (string|null);
|
|
3312
|
+
|
|
3313
|
+
/** ListenerCoachingExperimentalChatRatingCreated gingerUserId */
|
|
3314
|
+
gingerUserId?: (number|null);
|
|
3315
|
+
|
|
3316
|
+
/** ListenerCoachingExperimentalChatRatingCreated hsUserId */
|
|
3317
|
+
hsUserId?: (string|null);
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
/**
|
|
3321
|
+
* An experimental coaching rating represents a group of possible ratings
|
|
3322
|
+
* we're trying to figure out what is the best way to rate coaches.
|
|
3323
|
+
* This experiment have two variants.
|
|
3324
|
+
* Variant A:
|
|
3325
|
+
* Contains seen_and_heard_rating and represents number based way to rate coaches.
|
|
3326
|
+
* For this case seen_and_heard_rating and rating will be the same.
|
|
3327
|
+
* Variant B:
|
|
3328
|
+
* Contains understood_rating, felt_supported_rating and approach_rating
|
|
3329
|
+
* and represents also a numbered way to rate coaches but with more questions.
|
|
3330
|
+
* For this case, rating will contain the avg of the 3 questions.
|
|
3331
|
+
* All questions have a 1 to 5 ratio, and will be 0 when user didin't answer them.
|
|
3332
|
+
* When variant is B, only the first (understood_rating) question is mandatory.
|
|
3333
|
+
* PRD: https://docs.google.com/document/d/1XziQDdUDcw8hDiRge3ede_DY59txRVpL9_dcw1Msepc/edit?usp=sharing
|
|
3334
|
+
*/
|
|
3335
|
+
class ListenerCoachingExperimentalChatRatingCreated implements IListenerCoachingExperimentalChatRatingCreated {
|
|
3336
|
+
|
|
3337
|
+
/**
|
|
3338
|
+
* Constructs a new ListenerCoachingExperimentalChatRatingCreated.
|
|
3339
|
+
* @param [properties] Properties to set
|
|
3340
|
+
*/
|
|
3341
|
+
constructor(properties?: coaching.IListenerCoachingExperimentalChatRatingCreated);
|
|
3342
|
+
|
|
3343
|
+
/** ListenerCoachingExperimentalChatRatingCreated id. */
|
|
3344
|
+
public id: string;
|
|
3345
|
+
|
|
3346
|
+
/** ListenerCoachingExperimentalChatRatingCreated chatConversationId. */
|
|
3347
|
+
public chatConversationId: number;
|
|
3348
|
+
|
|
3349
|
+
/** ListenerCoachingExperimentalChatRatingCreated messageCount. */
|
|
3350
|
+
public messageCount: number;
|
|
3351
|
+
|
|
3352
|
+
/** ListenerCoachingExperimentalChatRatingCreated createdAtTimestamp. */
|
|
3353
|
+
public createdAtTimestamp: (number|Long);
|
|
3354
|
+
|
|
3355
|
+
/** ListenerCoachingExperimentalChatRatingCreated coachId. */
|
|
3356
|
+
public coachId: string;
|
|
3357
|
+
|
|
3358
|
+
/** ListenerCoachingExperimentalChatRatingCreated rating. */
|
|
3359
|
+
public rating: number;
|
|
3360
|
+
|
|
3361
|
+
/** ListenerCoachingExperimentalChatRatingCreated variant. */
|
|
3362
|
+
public variant: coaching.ExperimentVariant;
|
|
3363
|
+
|
|
3364
|
+
/** ListenerCoachingExperimentalChatRatingCreated seenAndHeardRating. */
|
|
3365
|
+
public seenAndHeardRating: number;
|
|
3366
|
+
|
|
3367
|
+
/** ListenerCoachingExperimentalChatRatingCreated understoodRating. */
|
|
3368
|
+
public understoodRating: number;
|
|
3369
|
+
|
|
3370
|
+
/** ListenerCoachingExperimentalChatRatingCreated feltSupportedRating. */
|
|
3371
|
+
public feltSupportedRating: number;
|
|
3372
|
+
|
|
3373
|
+
/** ListenerCoachingExperimentalChatRatingCreated approachRating. */
|
|
3374
|
+
public approachRating: number;
|
|
3375
|
+
|
|
3376
|
+
/** ListenerCoachingExperimentalChatRatingCreated ratingComment. */
|
|
3377
|
+
public ratingComment: string;
|
|
3378
|
+
|
|
3379
|
+
/** ListenerCoachingExperimentalChatRatingCreated gingerUserId. */
|
|
3380
|
+
public gingerUserId: number;
|
|
3381
|
+
|
|
3382
|
+
/** ListenerCoachingExperimentalChatRatingCreated hsUserId. */
|
|
3383
|
+
public hsUserId: string;
|
|
3384
|
+
|
|
3385
|
+
/**
|
|
3386
|
+
* Creates a new ListenerCoachingExperimentalChatRatingCreated instance using the specified properties.
|
|
3387
|
+
* @param [properties] Properties to set
|
|
3388
|
+
* @returns ListenerCoachingExperimentalChatRatingCreated instance
|
|
3389
|
+
*/
|
|
3390
|
+
public static create(properties?: coaching.IListenerCoachingExperimentalChatRatingCreated): coaching.ListenerCoachingExperimentalChatRatingCreated;
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* Encodes the specified ListenerCoachingExperimentalChatRatingCreated message. Does not implicitly {@link coaching.ListenerCoachingExperimentalChatRatingCreated.verify|verify} messages.
|
|
3394
|
+
* @param message ListenerCoachingExperimentalChatRatingCreated message or plain object to encode
|
|
3395
|
+
* @param [writer] Writer to encode to
|
|
3396
|
+
* @returns Writer
|
|
3397
|
+
*/
|
|
3398
|
+
public static encode(message: coaching.IListenerCoachingExperimentalChatRatingCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3399
|
+
|
|
3400
|
+
/**
|
|
3401
|
+
* Encodes the specified ListenerCoachingExperimentalChatRatingCreated message, length delimited. Does not implicitly {@link coaching.ListenerCoachingExperimentalChatRatingCreated.verify|verify} messages.
|
|
3402
|
+
* @param message ListenerCoachingExperimentalChatRatingCreated message or plain object to encode
|
|
3403
|
+
* @param [writer] Writer to encode to
|
|
3404
|
+
* @returns Writer
|
|
3405
|
+
*/
|
|
3406
|
+
public static encodeDelimited(message: coaching.IListenerCoachingExperimentalChatRatingCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3407
|
+
|
|
3408
|
+
/**
|
|
3409
|
+
* Decodes a ListenerCoachingExperimentalChatRatingCreated message from the specified reader or buffer.
|
|
3410
|
+
* @param reader Reader or buffer to decode from
|
|
3411
|
+
* @param [length] Message length if known beforehand
|
|
3412
|
+
* @returns ListenerCoachingExperimentalChatRatingCreated
|
|
3413
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3414
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3415
|
+
*/
|
|
3416
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coaching.ListenerCoachingExperimentalChatRatingCreated;
|
|
3417
|
+
|
|
3418
|
+
/**
|
|
3419
|
+
* Decodes a ListenerCoachingExperimentalChatRatingCreated message from the specified reader or buffer, length delimited.
|
|
3420
|
+
* @param reader Reader or buffer to decode from
|
|
3421
|
+
* @returns ListenerCoachingExperimentalChatRatingCreated
|
|
3422
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3423
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3424
|
+
*/
|
|
3425
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coaching.ListenerCoachingExperimentalChatRatingCreated;
|
|
3426
|
+
|
|
3427
|
+
/**
|
|
3428
|
+
* Verifies a ListenerCoachingExperimentalChatRatingCreated message.
|
|
3429
|
+
* @param message Plain object to verify
|
|
3430
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3431
|
+
*/
|
|
3432
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3433
|
+
|
|
3434
|
+
/**
|
|
3435
|
+
* Creates a ListenerCoachingExperimentalChatRatingCreated message from a plain object. Also converts values to their respective internal types.
|
|
3436
|
+
* @param object Plain object
|
|
3437
|
+
* @returns ListenerCoachingExperimentalChatRatingCreated
|
|
3438
|
+
*/
|
|
3439
|
+
public static fromObject(object: { [k: string]: any }): coaching.ListenerCoachingExperimentalChatRatingCreated;
|
|
3440
|
+
|
|
3441
|
+
/**
|
|
3442
|
+
* Creates a plain object from a ListenerCoachingExperimentalChatRatingCreated message. Also converts values to other types if specified.
|
|
3443
|
+
* @param message ListenerCoachingExperimentalChatRatingCreated
|
|
3444
|
+
* @param [options] Conversion options
|
|
3445
|
+
* @returns Plain object
|
|
3446
|
+
*/
|
|
3447
|
+
public static toObject(message: coaching.ListenerCoachingExperimentalChatRatingCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3448
|
+
|
|
3449
|
+
/**
|
|
3450
|
+
* Converts this ListenerCoachingExperimentalChatRatingCreated to JSON.
|
|
3451
|
+
* @returns JSON object
|
|
3452
|
+
*/
|
|
3453
|
+
public toJSON(): { [k: string]: any };
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3267
3456
|
/** Properties of a CoachingShift. */
|
|
3268
3457
|
interface ICoachingShift {
|
|
3269
3458
|
|
|
@@ -52829,6 +53018,126 @@ export enum EligibilityType {
|
|
|
52829
53018
|
ELIGIBILITY_TYPE_D2C_CARE_UPSELL = 3
|
|
52830
53019
|
}
|
|
52831
53020
|
|
|
53021
|
+
/** Properties of a ChangedEnrollmentComparisonCompleted. */
|
|
53022
|
+
export interface IChangedEnrollmentComparisonCompleted {
|
|
53023
|
+
|
|
53024
|
+
/** ChangedEnrollmentComparisonCompleted timestamp */
|
|
53025
|
+
timestamp?: (number|Long|null);
|
|
53026
|
+
|
|
53027
|
+
/** ChangedEnrollmentComparisonCompleted existingCollectiveUuid */
|
|
53028
|
+
existingCollectiveUuid?: (string|null);
|
|
53029
|
+
|
|
53030
|
+
/** ChangedEnrollmentComparisonCompleted pendingCollectiveUuid */
|
|
53031
|
+
pendingCollectiveUuid?: (string|null);
|
|
53032
|
+
|
|
53033
|
+
/** ChangedEnrollmentComparisonCompleted addedRecords */
|
|
53034
|
+
addedRecords?: (number|null);
|
|
53035
|
+
|
|
53036
|
+
/** ChangedEnrollmentComparisonCompleted removedRecords */
|
|
53037
|
+
removedRecords?: (number|null);
|
|
53038
|
+
|
|
53039
|
+
/** ChangedEnrollmentComparisonCompleted matchedRecords */
|
|
53040
|
+
matchedRecords?: (number|null);
|
|
53041
|
+
}
|
|
53042
|
+
|
|
53043
|
+
/** Represents a ChangedEnrollmentComparisonCompleted. */
|
|
53044
|
+
export class ChangedEnrollmentComparisonCompleted implements IChangedEnrollmentComparisonCompleted {
|
|
53045
|
+
|
|
53046
|
+
/**
|
|
53047
|
+
* Constructs a new ChangedEnrollmentComparisonCompleted.
|
|
53048
|
+
* @param [properties] Properties to set
|
|
53049
|
+
*/
|
|
53050
|
+
constructor(properties?: IChangedEnrollmentComparisonCompleted);
|
|
53051
|
+
|
|
53052
|
+
/** ChangedEnrollmentComparisonCompleted timestamp. */
|
|
53053
|
+
public timestamp: (number|Long);
|
|
53054
|
+
|
|
53055
|
+
/** ChangedEnrollmentComparisonCompleted existingCollectiveUuid. */
|
|
53056
|
+
public existingCollectiveUuid: string;
|
|
53057
|
+
|
|
53058
|
+
/** ChangedEnrollmentComparisonCompleted pendingCollectiveUuid. */
|
|
53059
|
+
public pendingCollectiveUuid: string;
|
|
53060
|
+
|
|
53061
|
+
/** ChangedEnrollmentComparisonCompleted addedRecords. */
|
|
53062
|
+
public addedRecords: number;
|
|
53063
|
+
|
|
53064
|
+
/** ChangedEnrollmentComparisonCompleted removedRecords. */
|
|
53065
|
+
public removedRecords: number;
|
|
53066
|
+
|
|
53067
|
+
/** ChangedEnrollmentComparisonCompleted matchedRecords. */
|
|
53068
|
+
public matchedRecords: number;
|
|
53069
|
+
|
|
53070
|
+
/**
|
|
53071
|
+
* Creates a new ChangedEnrollmentComparisonCompleted instance using the specified properties.
|
|
53072
|
+
* @param [properties] Properties to set
|
|
53073
|
+
* @returns ChangedEnrollmentComparisonCompleted instance
|
|
53074
|
+
*/
|
|
53075
|
+
public static create(properties?: IChangedEnrollmentComparisonCompleted): ChangedEnrollmentComparisonCompleted;
|
|
53076
|
+
|
|
53077
|
+
/**
|
|
53078
|
+
* Encodes the specified ChangedEnrollmentComparisonCompleted message. Does not implicitly {@link ChangedEnrollmentComparisonCompleted.verify|verify} messages.
|
|
53079
|
+
* @param message ChangedEnrollmentComparisonCompleted message or plain object to encode
|
|
53080
|
+
* @param [writer] Writer to encode to
|
|
53081
|
+
* @returns Writer
|
|
53082
|
+
*/
|
|
53083
|
+
public static encode(message: IChangedEnrollmentComparisonCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
53084
|
+
|
|
53085
|
+
/**
|
|
53086
|
+
* Encodes the specified ChangedEnrollmentComparisonCompleted message, length delimited. Does not implicitly {@link ChangedEnrollmentComparisonCompleted.verify|verify} messages.
|
|
53087
|
+
* @param message ChangedEnrollmentComparisonCompleted message or plain object to encode
|
|
53088
|
+
* @param [writer] Writer to encode to
|
|
53089
|
+
* @returns Writer
|
|
53090
|
+
*/
|
|
53091
|
+
public static encodeDelimited(message: IChangedEnrollmentComparisonCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
53092
|
+
|
|
53093
|
+
/**
|
|
53094
|
+
* Decodes a ChangedEnrollmentComparisonCompleted message from the specified reader or buffer.
|
|
53095
|
+
* @param reader Reader or buffer to decode from
|
|
53096
|
+
* @param [length] Message length if known beforehand
|
|
53097
|
+
* @returns ChangedEnrollmentComparisonCompleted
|
|
53098
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53099
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53100
|
+
*/
|
|
53101
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ChangedEnrollmentComparisonCompleted;
|
|
53102
|
+
|
|
53103
|
+
/**
|
|
53104
|
+
* Decodes a ChangedEnrollmentComparisonCompleted message from the specified reader or buffer, length delimited.
|
|
53105
|
+
* @param reader Reader or buffer to decode from
|
|
53106
|
+
* @returns ChangedEnrollmentComparisonCompleted
|
|
53107
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53108
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53109
|
+
*/
|
|
53110
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ChangedEnrollmentComparisonCompleted;
|
|
53111
|
+
|
|
53112
|
+
/**
|
|
53113
|
+
* Verifies a ChangedEnrollmentComparisonCompleted message.
|
|
53114
|
+
* @param message Plain object to verify
|
|
53115
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
53116
|
+
*/
|
|
53117
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
53118
|
+
|
|
53119
|
+
/**
|
|
53120
|
+
* Creates a ChangedEnrollmentComparisonCompleted message from a plain object. Also converts values to their respective internal types.
|
|
53121
|
+
* @param object Plain object
|
|
53122
|
+
* @returns ChangedEnrollmentComparisonCompleted
|
|
53123
|
+
*/
|
|
53124
|
+
public static fromObject(object: { [k: string]: any }): ChangedEnrollmentComparisonCompleted;
|
|
53125
|
+
|
|
53126
|
+
/**
|
|
53127
|
+
* Creates a plain object from a ChangedEnrollmentComparisonCompleted message. Also converts values to other types if specified.
|
|
53128
|
+
* @param message ChangedEnrollmentComparisonCompleted
|
|
53129
|
+
* @param [options] Conversion options
|
|
53130
|
+
* @returns Plain object
|
|
53131
|
+
*/
|
|
53132
|
+
public static toObject(message: ChangedEnrollmentComparisonCompleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
53133
|
+
|
|
53134
|
+
/**
|
|
53135
|
+
* Converts this ChangedEnrollmentComparisonCompleted to JSON.
|
|
53136
|
+
* @returns JSON object
|
|
53137
|
+
*/
|
|
53138
|
+
public toJSON(): { [k: string]: any };
|
|
53139
|
+
}
|
|
53140
|
+
|
|
52832
53141
|
/** Properties of an EnterpriseUserOnboarded. */
|
|
52833
53142
|
export interface IEnterpriseUserOnboarded {
|
|
52834
53143
|
|
package/lib/index.js
CHANGED
|
@@ -10614,6 +10614,540 @@ $root.coaching = (function() {
|
|
|
10614
10614
|
return CoachingChatRating;
|
|
10615
10615
|
})();
|
|
10616
10616
|
|
|
10617
|
+
/**
|
|
10618
|
+
* ExperimentVariant enum.
|
|
10619
|
+
* @name coaching.ExperimentVariant
|
|
10620
|
+
* @enum {string}
|
|
10621
|
+
* @property {number} EXPERIMENT_VARIANT_UNKNOWN=0 EXPERIMENT_VARIANT_UNKNOWN value
|
|
10622
|
+
* @property {number} EXPERIMENT_VARIANT_A=1 EXPERIMENT_VARIANT_A value
|
|
10623
|
+
* @property {number} EXPERIMENT_VARIANT_B=2 EXPERIMENT_VARIANT_B value
|
|
10624
|
+
*/
|
|
10625
|
+
coaching.ExperimentVariant = (function() {
|
|
10626
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
10627
|
+
values[valuesById[0] = "EXPERIMENT_VARIANT_UNKNOWN"] = 0;
|
|
10628
|
+
values[valuesById[1] = "EXPERIMENT_VARIANT_A"] = 1;
|
|
10629
|
+
values[valuesById[2] = "EXPERIMENT_VARIANT_B"] = 2;
|
|
10630
|
+
return values;
|
|
10631
|
+
})();
|
|
10632
|
+
|
|
10633
|
+
coaching.ListenerCoachingExperimentalChatRatingCreated = (function() {
|
|
10634
|
+
|
|
10635
|
+
/**
|
|
10636
|
+
* Properties of a ListenerCoachingExperimentalChatRatingCreated.
|
|
10637
|
+
* @memberof coaching
|
|
10638
|
+
* @interface IListenerCoachingExperimentalChatRatingCreated
|
|
10639
|
+
* @property {string|null} [id] ListenerCoachingExperimentalChatRatingCreated id
|
|
10640
|
+
* @property {number|null} [chatConversationId] ListenerCoachingExperimentalChatRatingCreated chatConversationId
|
|
10641
|
+
* @property {number|null} [messageCount] ListenerCoachingExperimentalChatRatingCreated messageCount
|
|
10642
|
+
* @property {number|Long|null} [createdAtTimestamp] ListenerCoachingExperimentalChatRatingCreated createdAtTimestamp
|
|
10643
|
+
* @property {string|null} [coachId] ListenerCoachingExperimentalChatRatingCreated coachId
|
|
10644
|
+
* @property {number|null} [rating] ListenerCoachingExperimentalChatRatingCreated rating
|
|
10645
|
+
* @property {coaching.ExperimentVariant|null} [variant] ListenerCoachingExperimentalChatRatingCreated variant
|
|
10646
|
+
* @property {number|null} [seenAndHeardRating] ListenerCoachingExperimentalChatRatingCreated seenAndHeardRating
|
|
10647
|
+
* @property {number|null} [understoodRating] ListenerCoachingExperimentalChatRatingCreated understoodRating
|
|
10648
|
+
* @property {number|null} [feltSupportedRating] ListenerCoachingExperimentalChatRatingCreated feltSupportedRating
|
|
10649
|
+
* @property {number|null} [approachRating] ListenerCoachingExperimentalChatRatingCreated approachRating
|
|
10650
|
+
* @property {string|null} [ratingComment] ListenerCoachingExperimentalChatRatingCreated ratingComment
|
|
10651
|
+
* @property {number|null} [gingerUserId] ListenerCoachingExperimentalChatRatingCreated gingerUserId
|
|
10652
|
+
* @property {string|null} [hsUserId] ListenerCoachingExperimentalChatRatingCreated hsUserId
|
|
10653
|
+
*/
|
|
10654
|
+
|
|
10655
|
+
/**
|
|
10656
|
+
* Constructs a new ListenerCoachingExperimentalChatRatingCreated.
|
|
10657
|
+
* @memberof coaching
|
|
10658
|
+
* @classdesc An experimental coaching rating represents a group of possible ratings
|
|
10659
|
+
* we're trying to figure out what is the best way to rate coaches.
|
|
10660
|
+
* This experiment have two variants.
|
|
10661
|
+
* Variant A:
|
|
10662
|
+
* Contains seen_and_heard_rating and represents number based way to rate coaches.
|
|
10663
|
+
* For this case seen_and_heard_rating and rating will be the same.
|
|
10664
|
+
* Variant B:
|
|
10665
|
+
* Contains understood_rating, felt_supported_rating and approach_rating
|
|
10666
|
+
* and represents also a numbered way to rate coaches but with more questions.
|
|
10667
|
+
* For this case, rating will contain the avg of the 3 questions.
|
|
10668
|
+
* All questions have a 1 to 5 ratio, and will be 0 when user didin't answer them.
|
|
10669
|
+
* When variant is B, only the first (understood_rating) question is mandatory.
|
|
10670
|
+
* PRD: https://docs.google.com/document/d/1XziQDdUDcw8hDiRge3ede_DY59txRVpL9_dcw1Msepc/edit?usp=sharing
|
|
10671
|
+
* @implements IListenerCoachingExperimentalChatRatingCreated
|
|
10672
|
+
* @constructor
|
|
10673
|
+
* @param {coaching.IListenerCoachingExperimentalChatRatingCreated=} [properties] Properties to set
|
|
10674
|
+
*/
|
|
10675
|
+
function ListenerCoachingExperimentalChatRatingCreated(properties) {
|
|
10676
|
+
if (properties)
|
|
10677
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10678
|
+
if (properties[keys[i]] != null)
|
|
10679
|
+
this[keys[i]] = properties[keys[i]];
|
|
10680
|
+
}
|
|
10681
|
+
|
|
10682
|
+
/**
|
|
10683
|
+
* ListenerCoachingExperimentalChatRatingCreated id.
|
|
10684
|
+
* @member {string} id
|
|
10685
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10686
|
+
* @instance
|
|
10687
|
+
*/
|
|
10688
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.id = "";
|
|
10689
|
+
|
|
10690
|
+
/**
|
|
10691
|
+
* ListenerCoachingExperimentalChatRatingCreated chatConversationId.
|
|
10692
|
+
* @member {number} chatConversationId
|
|
10693
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10694
|
+
* @instance
|
|
10695
|
+
*/
|
|
10696
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.chatConversationId = 0;
|
|
10697
|
+
|
|
10698
|
+
/**
|
|
10699
|
+
* ListenerCoachingExperimentalChatRatingCreated messageCount.
|
|
10700
|
+
* @member {number} messageCount
|
|
10701
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10702
|
+
* @instance
|
|
10703
|
+
*/
|
|
10704
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.messageCount = 0;
|
|
10705
|
+
|
|
10706
|
+
/**
|
|
10707
|
+
* ListenerCoachingExperimentalChatRatingCreated createdAtTimestamp.
|
|
10708
|
+
* @member {number|Long} createdAtTimestamp
|
|
10709
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10710
|
+
* @instance
|
|
10711
|
+
*/
|
|
10712
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.createdAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10713
|
+
|
|
10714
|
+
/**
|
|
10715
|
+
* ListenerCoachingExperimentalChatRatingCreated coachId.
|
|
10716
|
+
* @member {string} coachId
|
|
10717
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10718
|
+
* @instance
|
|
10719
|
+
*/
|
|
10720
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.coachId = "";
|
|
10721
|
+
|
|
10722
|
+
/**
|
|
10723
|
+
* ListenerCoachingExperimentalChatRatingCreated rating.
|
|
10724
|
+
* @member {number} rating
|
|
10725
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10726
|
+
* @instance
|
|
10727
|
+
*/
|
|
10728
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.rating = 0;
|
|
10729
|
+
|
|
10730
|
+
/**
|
|
10731
|
+
* ListenerCoachingExperimentalChatRatingCreated variant.
|
|
10732
|
+
* @member {coaching.ExperimentVariant} variant
|
|
10733
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10734
|
+
* @instance
|
|
10735
|
+
*/
|
|
10736
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.variant = 0;
|
|
10737
|
+
|
|
10738
|
+
/**
|
|
10739
|
+
* ListenerCoachingExperimentalChatRatingCreated seenAndHeardRating.
|
|
10740
|
+
* @member {number} seenAndHeardRating
|
|
10741
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10742
|
+
* @instance
|
|
10743
|
+
*/
|
|
10744
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.seenAndHeardRating = 0;
|
|
10745
|
+
|
|
10746
|
+
/**
|
|
10747
|
+
* ListenerCoachingExperimentalChatRatingCreated understoodRating.
|
|
10748
|
+
* @member {number} understoodRating
|
|
10749
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10750
|
+
* @instance
|
|
10751
|
+
*/
|
|
10752
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.understoodRating = 0;
|
|
10753
|
+
|
|
10754
|
+
/**
|
|
10755
|
+
* ListenerCoachingExperimentalChatRatingCreated feltSupportedRating.
|
|
10756
|
+
* @member {number} feltSupportedRating
|
|
10757
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10758
|
+
* @instance
|
|
10759
|
+
*/
|
|
10760
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.feltSupportedRating = 0;
|
|
10761
|
+
|
|
10762
|
+
/**
|
|
10763
|
+
* ListenerCoachingExperimentalChatRatingCreated approachRating.
|
|
10764
|
+
* @member {number} approachRating
|
|
10765
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10766
|
+
* @instance
|
|
10767
|
+
*/
|
|
10768
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.approachRating = 0;
|
|
10769
|
+
|
|
10770
|
+
/**
|
|
10771
|
+
* ListenerCoachingExperimentalChatRatingCreated ratingComment.
|
|
10772
|
+
* @member {string} ratingComment
|
|
10773
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10774
|
+
* @instance
|
|
10775
|
+
*/
|
|
10776
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.ratingComment = "";
|
|
10777
|
+
|
|
10778
|
+
/**
|
|
10779
|
+
* ListenerCoachingExperimentalChatRatingCreated gingerUserId.
|
|
10780
|
+
* @member {number} gingerUserId
|
|
10781
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10782
|
+
* @instance
|
|
10783
|
+
*/
|
|
10784
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.gingerUserId = 0;
|
|
10785
|
+
|
|
10786
|
+
/**
|
|
10787
|
+
* ListenerCoachingExperimentalChatRatingCreated hsUserId.
|
|
10788
|
+
* @member {string} hsUserId
|
|
10789
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10790
|
+
* @instance
|
|
10791
|
+
*/
|
|
10792
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.hsUserId = "";
|
|
10793
|
+
|
|
10794
|
+
/**
|
|
10795
|
+
* Creates a new ListenerCoachingExperimentalChatRatingCreated instance using the specified properties.
|
|
10796
|
+
* @function create
|
|
10797
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10798
|
+
* @static
|
|
10799
|
+
* @param {coaching.IListenerCoachingExperimentalChatRatingCreated=} [properties] Properties to set
|
|
10800
|
+
* @returns {coaching.ListenerCoachingExperimentalChatRatingCreated} ListenerCoachingExperimentalChatRatingCreated instance
|
|
10801
|
+
*/
|
|
10802
|
+
ListenerCoachingExperimentalChatRatingCreated.create = function create(properties) {
|
|
10803
|
+
return new ListenerCoachingExperimentalChatRatingCreated(properties);
|
|
10804
|
+
};
|
|
10805
|
+
|
|
10806
|
+
/**
|
|
10807
|
+
* Encodes the specified ListenerCoachingExperimentalChatRatingCreated message. Does not implicitly {@link coaching.ListenerCoachingExperimentalChatRatingCreated.verify|verify} messages.
|
|
10808
|
+
* @function encode
|
|
10809
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10810
|
+
* @static
|
|
10811
|
+
* @param {coaching.IListenerCoachingExperimentalChatRatingCreated} message ListenerCoachingExperimentalChatRatingCreated message or plain object to encode
|
|
10812
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10813
|
+
* @returns {$protobuf.Writer} Writer
|
|
10814
|
+
*/
|
|
10815
|
+
ListenerCoachingExperimentalChatRatingCreated.encode = function encode(message, writer) {
|
|
10816
|
+
if (!writer)
|
|
10817
|
+
writer = $Writer.create();
|
|
10818
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
10819
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
10820
|
+
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
10821
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.chatConversationId);
|
|
10822
|
+
if (message.messageCount != null && message.hasOwnProperty("messageCount"))
|
|
10823
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.messageCount);
|
|
10824
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
10825
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAtTimestamp);
|
|
10826
|
+
if (message.coachId != null && message.hasOwnProperty("coachId"))
|
|
10827
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.coachId);
|
|
10828
|
+
if (message.rating != null && message.hasOwnProperty("rating"))
|
|
10829
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.rating);
|
|
10830
|
+
if (message.variant != null && message.hasOwnProperty("variant"))
|
|
10831
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.variant);
|
|
10832
|
+
if (message.seenAndHeardRating != null && message.hasOwnProperty("seenAndHeardRating"))
|
|
10833
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.seenAndHeardRating);
|
|
10834
|
+
if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
|
|
10835
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.understoodRating);
|
|
10836
|
+
if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
|
|
10837
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.feltSupportedRating);
|
|
10838
|
+
if (message.approachRating != null && message.hasOwnProperty("approachRating"))
|
|
10839
|
+
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.approachRating);
|
|
10840
|
+
if (message.ratingComment != null && message.hasOwnProperty("ratingComment"))
|
|
10841
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.ratingComment);
|
|
10842
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
10843
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint32(message.gingerUserId);
|
|
10844
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
10845
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.hsUserId);
|
|
10846
|
+
return writer;
|
|
10847
|
+
};
|
|
10848
|
+
|
|
10849
|
+
/**
|
|
10850
|
+
* Encodes the specified ListenerCoachingExperimentalChatRatingCreated message, length delimited. Does not implicitly {@link coaching.ListenerCoachingExperimentalChatRatingCreated.verify|verify} messages.
|
|
10851
|
+
* @function encodeDelimited
|
|
10852
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10853
|
+
* @static
|
|
10854
|
+
* @param {coaching.IListenerCoachingExperimentalChatRatingCreated} message ListenerCoachingExperimentalChatRatingCreated message or plain object to encode
|
|
10855
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10856
|
+
* @returns {$protobuf.Writer} Writer
|
|
10857
|
+
*/
|
|
10858
|
+
ListenerCoachingExperimentalChatRatingCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10859
|
+
return this.encode(message, writer).ldelim();
|
|
10860
|
+
};
|
|
10861
|
+
|
|
10862
|
+
/**
|
|
10863
|
+
* Decodes a ListenerCoachingExperimentalChatRatingCreated message from the specified reader or buffer.
|
|
10864
|
+
* @function decode
|
|
10865
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10866
|
+
* @static
|
|
10867
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10868
|
+
* @param {number} [length] Message length if known beforehand
|
|
10869
|
+
* @returns {coaching.ListenerCoachingExperimentalChatRatingCreated} ListenerCoachingExperimentalChatRatingCreated
|
|
10870
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10871
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10872
|
+
*/
|
|
10873
|
+
ListenerCoachingExperimentalChatRatingCreated.decode = function decode(reader, length) {
|
|
10874
|
+
if (!(reader instanceof $Reader))
|
|
10875
|
+
reader = $Reader.create(reader);
|
|
10876
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.coaching.ListenerCoachingExperimentalChatRatingCreated();
|
|
10877
|
+
while (reader.pos < end) {
|
|
10878
|
+
var tag = reader.uint32();
|
|
10879
|
+
switch (tag >>> 3) {
|
|
10880
|
+
case 1:
|
|
10881
|
+
message.id = reader.string();
|
|
10882
|
+
break;
|
|
10883
|
+
case 2:
|
|
10884
|
+
message.chatConversationId = reader.uint32();
|
|
10885
|
+
break;
|
|
10886
|
+
case 3:
|
|
10887
|
+
message.messageCount = reader.uint32();
|
|
10888
|
+
break;
|
|
10889
|
+
case 4:
|
|
10890
|
+
message.createdAtTimestamp = reader.uint64();
|
|
10891
|
+
break;
|
|
10892
|
+
case 5:
|
|
10893
|
+
message.coachId = reader.string();
|
|
10894
|
+
break;
|
|
10895
|
+
case 6:
|
|
10896
|
+
message.rating = reader.int32();
|
|
10897
|
+
break;
|
|
10898
|
+
case 7:
|
|
10899
|
+
message.variant = reader.int32();
|
|
10900
|
+
break;
|
|
10901
|
+
case 8:
|
|
10902
|
+
message.seenAndHeardRating = reader.int32();
|
|
10903
|
+
break;
|
|
10904
|
+
case 9:
|
|
10905
|
+
message.understoodRating = reader.int32();
|
|
10906
|
+
break;
|
|
10907
|
+
case 10:
|
|
10908
|
+
message.feltSupportedRating = reader.int32();
|
|
10909
|
+
break;
|
|
10910
|
+
case 11:
|
|
10911
|
+
message.approachRating = reader.int32();
|
|
10912
|
+
break;
|
|
10913
|
+
case 12:
|
|
10914
|
+
message.ratingComment = reader.string();
|
|
10915
|
+
break;
|
|
10916
|
+
case 13:
|
|
10917
|
+
message.gingerUserId = reader.uint32();
|
|
10918
|
+
break;
|
|
10919
|
+
case 14:
|
|
10920
|
+
message.hsUserId = reader.string();
|
|
10921
|
+
break;
|
|
10922
|
+
default:
|
|
10923
|
+
reader.skipType(tag & 7);
|
|
10924
|
+
break;
|
|
10925
|
+
}
|
|
10926
|
+
}
|
|
10927
|
+
return message;
|
|
10928
|
+
};
|
|
10929
|
+
|
|
10930
|
+
/**
|
|
10931
|
+
* Decodes a ListenerCoachingExperimentalChatRatingCreated message from the specified reader or buffer, length delimited.
|
|
10932
|
+
* @function decodeDelimited
|
|
10933
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10934
|
+
* @static
|
|
10935
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10936
|
+
* @returns {coaching.ListenerCoachingExperimentalChatRatingCreated} ListenerCoachingExperimentalChatRatingCreated
|
|
10937
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10938
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10939
|
+
*/
|
|
10940
|
+
ListenerCoachingExperimentalChatRatingCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
10941
|
+
if (!(reader instanceof $Reader))
|
|
10942
|
+
reader = new $Reader(reader);
|
|
10943
|
+
return this.decode(reader, reader.uint32());
|
|
10944
|
+
};
|
|
10945
|
+
|
|
10946
|
+
/**
|
|
10947
|
+
* Verifies a ListenerCoachingExperimentalChatRatingCreated message.
|
|
10948
|
+
* @function verify
|
|
10949
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
10950
|
+
* @static
|
|
10951
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10952
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10953
|
+
*/
|
|
10954
|
+
ListenerCoachingExperimentalChatRatingCreated.verify = function verify(message) {
|
|
10955
|
+
if (typeof message !== "object" || message === null)
|
|
10956
|
+
return "object expected";
|
|
10957
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
10958
|
+
if (!$util.isString(message.id))
|
|
10959
|
+
return "id: string expected";
|
|
10960
|
+
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
10961
|
+
if (!$util.isInteger(message.chatConversationId))
|
|
10962
|
+
return "chatConversationId: integer expected";
|
|
10963
|
+
if (message.messageCount != null && message.hasOwnProperty("messageCount"))
|
|
10964
|
+
if (!$util.isInteger(message.messageCount))
|
|
10965
|
+
return "messageCount: integer expected";
|
|
10966
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
10967
|
+
if (!$util.isInteger(message.createdAtTimestamp) && !(message.createdAtTimestamp && $util.isInteger(message.createdAtTimestamp.low) && $util.isInteger(message.createdAtTimestamp.high)))
|
|
10968
|
+
return "createdAtTimestamp: integer|Long expected";
|
|
10969
|
+
if (message.coachId != null && message.hasOwnProperty("coachId"))
|
|
10970
|
+
if (!$util.isString(message.coachId))
|
|
10971
|
+
return "coachId: string expected";
|
|
10972
|
+
if (message.rating != null && message.hasOwnProperty("rating"))
|
|
10973
|
+
if (!$util.isInteger(message.rating))
|
|
10974
|
+
return "rating: integer expected";
|
|
10975
|
+
if (message.variant != null && message.hasOwnProperty("variant"))
|
|
10976
|
+
switch (message.variant) {
|
|
10977
|
+
default:
|
|
10978
|
+
return "variant: enum value expected";
|
|
10979
|
+
case 0:
|
|
10980
|
+
case 1:
|
|
10981
|
+
case 2:
|
|
10982
|
+
break;
|
|
10983
|
+
}
|
|
10984
|
+
if (message.seenAndHeardRating != null && message.hasOwnProperty("seenAndHeardRating"))
|
|
10985
|
+
if (!$util.isInteger(message.seenAndHeardRating))
|
|
10986
|
+
return "seenAndHeardRating: integer expected";
|
|
10987
|
+
if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
|
|
10988
|
+
if (!$util.isInteger(message.understoodRating))
|
|
10989
|
+
return "understoodRating: integer expected";
|
|
10990
|
+
if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
|
|
10991
|
+
if (!$util.isInteger(message.feltSupportedRating))
|
|
10992
|
+
return "feltSupportedRating: integer expected";
|
|
10993
|
+
if (message.approachRating != null && message.hasOwnProperty("approachRating"))
|
|
10994
|
+
if (!$util.isInteger(message.approachRating))
|
|
10995
|
+
return "approachRating: integer expected";
|
|
10996
|
+
if (message.ratingComment != null && message.hasOwnProperty("ratingComment"))
|
|
10997
|
+
if (!$util.isString(message.ratingComment))
|
|
10998
|
+
return "ratingComment: string expected";
|
|
10999
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
11000
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
11001
|
+
return "gingerUserId: integer expected";
|
|
11002
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
11003
|
+
if (!$util.isString(message.hsUserId))
|
|
11004
|
+
return "hsUserId: string expected";
|
|
11005
|
+
return null;
|
|
11006
|
+
};
|
|
11007
|
+
|
|
11008
|
+
/**
|
|
11009
|
+
* Creates a ListenerCoachingExperimentalChatRatingCreated message from a plain object. Also converts values to their respective internal types.
|
|
11010
|
+
* @function fromObject
|
|
11011
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
11012
|
+
* @static
|
|
11013
|
+
* @param {Object.<string,*>} object Plain object
|
|
11014
|
+
* @returns {coaching.ListenerCoachingExperimentalChatRatingCreated} ListenerCoachingExperimentalChatRatingCreated
|
|
11015
|
+
*/
|
|
11016
|
+
ListenerCoachingExperimentalChatRatingCreated.fromObject = function fromObject(object) {
|
|
11017
|
+
if (object instanceof $root.coaching.ListenerCoachingExperimentalChatRatingCreated)
|
|
11018
|
+
return object;
|
|
11019
|
+
var message = new $root.coaching.ListenerCoachingExperimentalChatRatingCreated();
|
|
11020
|
+
if (object.id != null)
|
|
11021
|
+
message.id = String(object.id);
|
|
11022
|
+
if (object.chatConversationId != null)
|
|
11023
|
+
message.chatConversationId = object.chatConversationId >>> 0;
|
|
11024
|
+
if (object.messageCount != null)
|
|
11025
|
+
message.messageCount = object.messageCount >>> 0;
|
|
11026
|
+
if (object.createdAtTimestamp != null)
|
|
11027
|
+
if ($util.Long)
|
|
11028
|
+
(message.createdAtTimestamp = $util.Long.fromValue(object.createdAtTimestamp)).unsigned = true;
|
|
11029
|
+
else if (typeof object.createdAtTimestamp === "string")
|
|
11030
|
+
message.createdAtTimestamp = parseInt(object.createdAtTimestamp, 10);
|
|
11031
|
+
else if (typeof object.createdAtTimestamp === "number")
|
|
11032
|
+
message.createdAtTimestamp = object.createdAtTimestamp;
|
|
11033
|
+
else if (typeof object.createdAtTimestamp === "object")
|
|
11034
|
+
message.createdAtTimestamp = new $util.LongBits(object.createdAtTimestamp.low >>> 0, object.createdAtTimestamp.high >>> 0).toNumber(true);
|
|
11035
|
+
if (object.coachId != null)
|
|
11036
|
+
message.coachId = String(object.coachId);
|
|
11037
|
+
if (object.rating != null)
|
|
11038
|
+
message.rating = object.rating | 0;
|
|
11039
|
+
switch (object.variant) {
|
|
11040
|
+
case "EXPERIMENT_VARIANT_UNKNOWN":
|
|
11041
|
+
case 0:
|
|
11042
|
+
message.variant = 0;
|
|
11043
|
+
break;
|
|
11044
|
+
case "EXPERIMENT_VARIANT_A":
|
|
11045
|
+
case 1:
|
|
11046
|
+
message.variant = 1;
|
|
11047
|
+
break;
|
|
11048
|
+
case "EXPERIMENT_VARIANT_B":
|
|
11049
|
+
case 2:
|
|
11050
|
+
message.variant = 2;
|
|
11051
|
+
break;
|
|
11052
|
+
}
|
|
11053
|
+
if (object.seenAndHeardRating != null)
|
|
11054
|
+
message.seenAndHeardRating = object.seenAndHeardRating | 0;
|
|
11055
|
+
if (object.understoodRating != null)
|
|
11056
|
+
message.understoodRating = object.understoodRating | 0;
|
|
11057
|
+
if (object.feltSupportedRating != null)
|
|
11058
|
+
message.feltSupportedRating = object.feltSupportedRating | 0;
|
|
11059
|
+
if (object.approachRating != null)
|
|
11060
|
+
message.approachRating = object.approachRating | 0;
|
|
11061
|
+
if (object.ratingComment != null)
|
|
11062
|
+
message.ratingComment = String(object.ratingComment);
|
|
11063
|
+
if (object.gingerUserId != null)
|
|
11064
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
11065
|
+
if (object.hsUserId != null)
|
|
11066
|
+
message.hsUserId = String(object.hsUserId);
|
|
11067
|
+
return message;
|
|
11068
|
+
};
|
|
11069
|
+
|
|
11070
|
+
/**
|
|
11071
|
+
* Creates a plain object from a ListenerCoachingExperimentalChatRatingCreated message. Also converts values to other types if specified.
|
|
11072
|
+
* @function toObject
|
|
11073
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
11074
|
+
* @static
|
|
11075
|
+
* @param {coaching.ListenerCoachingExperimentalChatRatingCreated} message ListenerCoachingExperimentalChatRatingCreated
|
|
11076
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11077
|
+
* @returns {Object.<string,*>} Plain object
|
|
11078
|
+
*/
|
|
11079
|
+
ListenerCoachingExperimentalChatRatingCreated.toObject = function toObject(message, options) {
|
|
11080
|
+
if (!options)
|
|
11081
|
+
options = {};
|
|
11082
|
+
var object = {};
|
|
11083
|
+
if (options.defaults) {
|
|
11084
|
+
object.id = "";
|
|
11085
|
+
object.chatConversationId = 0;
|
|
11086
|
+
object.messageCount = 0;
|
|
11087
|
+
if ($util.Long) {
|
|
11088
|
+
var long = new $util.Long(0, 0, true);
|
|
11089
|
+
object.createdAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11090
|
+
} else
|
|
11091
|
+
object.createdAtTimestamp = options.longs === String ? "0" : 0;
|
|
11092
|
+
object.coachId = "";
|
|
11093
|
+
object.rating = 0;
|
|
11094
|
+
object.variant = options.enums === String ? "EXPERIMENT_VARIANT_UNKNOWN" : 0;
|
|
11095
|
+
object.seenAndHeardRating = 0;
|
|
11096
|
+
object.understoodRating = 0;
|
|
11097
|
+
object.feltSupportedRating = 0;
|
|
11098
|
+
object.approachRating = 0;
|
|
11099
|
+
object.ratingComment = "";
|
|
11100
|
+
object.gingerUserId = 0;
|
|
11101
|
+
object.hsUserId = "";
|
|
11102
|
+
}
|
|
11103
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11104
|
+
object.id = message.id;
|
|
11105
|
+
if (message.chatConversationId != null && message.hasOwnProperty("chatConversationId"))
|
|
11106
|
+
object.chatConversationId = message.chatConversationId;
|
|
11107
|
+
if (message.messageCount != null && message.hasOwnProperty("messageCount"))
|
|
11108
|
+
object.messageCount = message.messageCount;
|
|
11109
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
11110
|
+
if (typeof message.createdAtTimestamp === "number")
|
|
11111
|
+
object.createdAtTimestamp = options.longs === String ? String(message.createdAtTimestamp) : message.createdAtTimestamp;
|
|
11112
|
+
else
|
|
11113
|
+
object.createdAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.createdAtTimestamp) : options.longs === Number ? new $util.LongBits(message.createdAtTimestamp.low >>> 0, message.createdAtTimestamp.high >>> 0).toNumber(true) : message.createdAtTimestamp;
|
|
11114
|
+
if (message.coachId != null && message.hasOwnProperty("coachId"))
|
|
11115
|
+
object.coachId = message.coachId;
|
|
11116
|
+
if (message.rating != null && message.hasOwnProperty("rating"))
|
|
11117
|
+
object.rating = message.rating;
|
|
11118
|
+
if (message.variant != null && message.hasOwnProperty("variant"))
|
|
11119
|
+
object.variant = options.enums === String ? $root.coaching.ExperimentVariant[message.variant] : message.variant;
|
|
11120
|
+
if (message.seenAndHeardRating != null && message.hasOwnProperty("seenAndHeardRating"))
|
|
11121
|
+
object.seenAndHeardRating = message.seenAndHeardRating;
|
|
11122
|
+
if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
|
|
11123
|
+
object.understoodRating = message.understoodRating;
|
|
11124
|
+
if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
|
|
11125
|
+
object.feltSupportedRating = message.feltSupportedRating;
|
|
11126
|
+
if (message.approachRating != null && message.hasOwnProperty("approachRating"))
|
|
11127
|
+
object.approachRating = message.approachRating;
|
|
11128
|
+
if (message.ratingComment != null && message.hasOwnProperty("ratingComment"))
|
|
11129
|
+
object.ratingComment = message.ratingComment;
|
|
11130
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
11131
|
+
object.gingerUserId = message.gingerUserId;
|
|
11132
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
11133
|
+
object.hsUserId = message.hsUserId;
|
|
11134
|
+
return object;
|
|
11135
|
+
};
|
|
11136
|
+
|
|
11137
|
+
/**
|
|
11138
|
+
* Converts this ListenerCoachingExperimentalChatRatingCreated to JSON.
|
|
11139
|
+
* @function toJSON
|
|
11140
|
+
* @memberof coaching.ListenerCoachingExperimentalChatRatingCreated
|
|
11141
|
+
* @instance
|
|
11142
|
+
* @returns {Object.<string,*>} JSON object
|
|
11143
|
+
*/
|
|
11144
|
+
ListenerCoachingExperimentalChatRatingCreated.prototype.toJSON = function toJSON() {
|
|
11145
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11146
|
+
};
|
|
11147
|
+
|
|
11148
|
+
return ListenerCoachingExperimentalChatRatingCreated;
|
|
11149
|
+
})();
|
|
11150
|
+
|
|
10617
11151
|
coaching.CoachingShift = (function() {
|
|
10618
11152
|
|
|
10619
11153
|
/**
|
|
@@ -145967,6 +146501,318 @@ $root.EligibilityType = (function() {
|
|
|
145967
146501
|
return values;
|
|
145968
146502
|
})();
|
|
145969
146503
|
|
|
146504
|
+
$root.ChangedEnrollmentComparisonCompleted = (function() {
|
|
146505
|
+
|
|
146506
|
+
/**
|
|
146507
|
+
* Properties of a ChangedEnrollmentComparisonCompleted.
|
|
146508
|
+
* @name IChangedEnrollmentComparisonCompleted
|
|
146509
|
+
* @interface IChangedEnrollmentComparisonCompleted
|
|
146510
|
+
* @property {number|Long|null} [timestamp] ChangedEnrollmentComparisonCompleted timestamp
|
|
146511
|
+
* @property {string|null} [existingCollectiveUuid] ChangedEnrollmentComparisonCompleted existingCollectiveUuid
|
|
146512
|
+
* @property {string|null} [pendingCollectiveUuid] ChangedEnrollmentComparisonCompleted pendingCollectiveUuid
|
|
146513
|
+
* @property {number|null} [addedRecords] ChangedEnrollmentComparisonCompleted addedRecords
|
|
146514
|
+
* @property {number|null} [removedRecords] ChangedEnrollmentComparisonCompleted removedRecords
|
|
146515
|
+
* @property {number|null} [matchedRecords] ChangedEnrollmentComparisonCompleted matchedRecords
|
|
146516
|
+
*/
|
|
146517
|
+
|
|
146518
|
+
/**
|
|
146519
|
+
* Constructs a new ChangedEnrollmentComparisonCompleted.
|
|
146520
|
+
* @name ChangedEnrollmentComparisonCompleted
|
|
146521
|
+
* @classdesc Represents a ChangedEnrollmentComparisonCompleted.
|
|
146522
|
+
* @implements IChangedEnrollmentComparisonCompleted
|
|
146523
|
+
* @constructor
|
|
146524
|
+
* @param {IChangedEnrollmentComparisonCompleted=} [properties] Properties to set
|
|
146525
|
+
*/
|
|
146526
|
+
function ChangedEnrollmentComparisonCompleted(properties) {
|
|
146527
|
+
if (properties)
|
|
146528
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
146529
|
+
if (properties[keys[i]] != null)
|
|
146530
|
+
this[keys[i]] = properties[keys[i]];
|
|
146531
|
+
}
|
|
146532
|
+
|
|
146533
|
+
/**
|
|
146534
|
+
* ChangedEnrollmentComparisonCompleted timestamp.
|
|
146535
|
+
* @member {number|Long} timestamp
|
|
146536
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146537
|
+
* @instance
|
|
146538
|
+
*/
|
|
146539
|
+
ChangedEnrollmentComparisonCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
146540
|
+
|
|
146541
|
+
/**
|
|
146542
|
+
* ChangedEnrollmentComparisonCompleted existingCollectiveUuid.
|
|
146543
|
+
* @member {string} existingCollectiveUuid
|
|
146544
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146545
|
+
* @instance
|
|
146546
|
+
*/
|
|
146547
|
+
ChangedEnrollmentComparisonCompleted.prototype.existingCollectiveUuid = "";
|
|
146548
|
+
|
|
146549
|
+
/**
|
|
146550
|
+
* ChangedEnrollmentComparisonCompleted pendingCollectiveUuid.
|
|
146551
|
+
* @member {string} pendingCollectiveUuid
|
|
146552
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146553
|
+
* @instance
|
|
146554
|
+
*/
|
|
146555
|
+
ChangedEnrollmentComparisonCompleted.prototype.pendingCollectiveUuid = "";
|
|
146556
|
+
|
|
146557
|
+
/**
|
|
146558
|
+
* ChangedEnrollmentComparisonCompleted addedRecords.
|
|
146559
|
+
* @member {number} addedRecords
|
|
146560
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146561
|
+
* @instance
|
|
146562
|
+
*/
|
|
146563
|
+
ChangedEnrollmentComparisonCompleted.prototype.addedRecords = 0;
|
|
146564
|
+
|
|
146565
|
+
/**
|
|
146566
|
+
* ChangedEnrollmentComparisonCompleted removedRecords.
|
|
146567
|
+
* @member {number} removedRecords
|
|
146568
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146569
|
+
* @instance
|
|
146570
|
+
*/
|
|
146571
|
+
ChangedEnrollmentComparisonCompleted.prototype.removedRecords = 0;
|
|
146572
|
+
|
|
146573
|
+
/**
|
|
146574
|
+
* ChangedEnrollmentComparisonCompleted matchedRecords.
|
|
146575
|
+
* @member {number} matchedRecords
|
|
146576
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146577
|
+
* @instance
|
|
146578
|
+
*/
|
|
146579
|
+
ChangedEnrollmentComparisonCompleted.prototype.matchedRecords = 0;
|
|
146580
|
+
|
|
146581
|
+
/**
|
|
146582
|
+
* Creates a new ChangedEnrollmentComparisonCompleted instance using the specified properties.
|
|
146583
|
+
* @function create
|
|
146584
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146585
|
+
* @static
|
|
146586
|
+
* @param {IChangedEnrollmentComparisonCompleted=} [properties] Properties to set
|
|
146587
|
+
* @returns {ChangedEnrollmentComparisonCompleted} ChangedEnrollmentComparisonCompleted instance
|
|
146588
|
+
*/
|
|
146589
|
+
ChangedEnrollmentComparisonCompleted.create = function create(properties) {
|
|
146590
|
+
return new ChangedEnrollmentComparisonCompleted(properties);
|
|
146591
|
+
};
|
|
146592
|
+
|
|
146593
|
+
/**
|
|
146594
|
+
* Encodes the specified ChangedEnrollmentComparisonCompleted message. Does not implicitly {@link ChangedEnrollmentComparisonCompleted.verify|verify} messages.
|
|
146595
|
+
* @function encode
|
|
146596
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146597
|
+
* @static
|
|
146598
|
+
* @param {IChangedEnrollmentComparisonCompleted} message ChangedEnrollmentComparisonCompleted message or plain object to encode
|
|
146599
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
146600
|
+
* @returns {$protobuf.Writer} Writer
|
|
146601
|
+
*/
|
|
146602
|
+
ChangedEnrollmentComparisonCompleted.encode = function encode(message, writer) {
|
|
146603
|
+
if (!writer)
|
|
146604
|
+
writer = $Writer.create();
|
|
146605
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
146606
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
146607
|
+
if (message.existingCollectiveUuid != null && message.hasOwnProperty("existingCollectiveUuid"))
|
|
146608
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.existingCollectiveUuid);
|
|
146609
|
+
if (message.pendingCollectiveUuid != null && message.hasOwnProperty("pendingCollectiveUuid"))
|
|
146610
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.pendingCollectiveUuid);
|
|
146611
|
+
if (message.addedRecords != null && message.hasOwnProperty("addedRecords"))
|
|
146612
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.addedRecords);
|
|
146613
|
+
if (message.removedRecords != null && message.hasOwnProperty("removedRecords"))
|
|
146614
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.removedRecords);
|
|
146615
|
+
if (message.matchedRecords != null && message.hasOwnProperty("matchedRecords"))
|
|
146616
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.matchedRecords);
|
|
146617
|
+
return writer;
|
|
146618
|
+
};
|
|
146619
|
+
|
|
146620
|
+
/**
|
|
146621
|
+
* Encodes the specified ChangedEnrollmentComparisonCompleted message, length delimited. Does not implicitly {@link ChangedEnrollmentComparisonCompleted.verify|verify} messages.
|
|
146622
|
+
* @function encodeDelimited
|
|
146623
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146624
|
+
* @static
|
|
146625
|
+
* @param {IChangedEnrollmentComparisonCompleted} message ChangedEnrollmentComparisonCompleted message or plain object to encode
|
|
146626
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
146627
|
+
* @returns {$protobuf.Writer} Writer
|
|
146628
|
+
*/
|
|
146629
|
+
ChangedEnrollmentComparisonCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
146630
|
+
return this.encode(message, writer).ldelim();
|
|
146631
|
+
};
|
|
146632
|
+
|
|
146633
|
+
/**
|
|
146634
|
+
* Decodes a ChangedEnrollmentComparisonCompleted message from the specified reader or buffer.
|
|
146635
|
+
* @function decode
|
|
146636
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146637
|
+
* @static
|
|
146638
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
146639
|
+
* @param {number} [length] Message length if known beforehand
|
|
146640
|
+
* @returns {ChangedEnrollmentComparisonCompleted} ChangedEnrollmentComparisonCompleted
|
|
146641
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
146642
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
146643
|
+
*/
|
|
146644
|
+
ChangedEnrollmentComparisonCompleted.decode = function decode(reader, length) {
|
|
146645
|
+
if (!(reader instanceof $Reader))
|
|
146646
|
+
reader = $Reader.create(reader);
|
|
146647
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ChangedEnrollmentComparisonCompleted();
|
|
146648
|
+
while (reader.pos < end) {
|
|
146649
|
+
var tag = reader.uint32();
|
|
146650
|
+
switch (tag >>> 3) {
|
|
146651
|
+
case 1:
|
|
146652
|
+
message.timestamp = reader.uint64();
|
|
146653
|
+
break;
|
|
146654
|
+
case 2:
|
|
146655
|
+
message.existingCollectiveUuid = reader.string();
|
|
146656
|
+
break;
|
|
146657
|
+
case 3:
|
|
146658
|
+
message.pendingCollectiveUuid = reader.string();
|
|
146659
|
+
break;
|
|
146660
|
+
case 4:
|
|
146661
|
+
message.addedRecords = reader.uint32();
|
|
146662
|
+
break;
|
|
146663
|
+
case 5:
|
|
146664
|
+
message.removedRecords = reader.uint32();
|
|
146665
|
+
break;
|
|
146666
|
+
case 6:
|
|
146667
|
+
message.matchedRecords = reader.uint32();
|
|
146668
|
+
break;
|
|
146669
|
+
default:
|
|
146670
|
+
reader.skipType(tag & 7);
|
|
146671
|
+
break;
|
|
146672
|
+
}
|
|
146673
|
+
}
|
|
146674
|
+
return message;
|
|
146675
|
+
};
|
|
146676
|
+
|
|
146677
|
+
/**
|
|
146678
|
+
* Decodes a ChangedEnrollmentComparisonCompleted message from the specified reader or buffer, length delimited.
|
|
146679
|
+
* @function decodeDelimited
|
|
146680
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146681
|
+
* @static
|
|
146682
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
146683
|
+
* @returns {ChangedEnrollmentComparisonCompleted} ChangedEnrollmentComparisonCompleted
|
|
146684
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
146685
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
146686
|
+
*/
|
|
146687
|
+
ChangedEnrollmentComparisonCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
146688
|
+
if (!(reader instanceof $Reader))
|
|
146689
|
+
reader = new $Reader(reader);
|
|
146690
|
+
return this.decode(reader, reader.uint32());
|
|
146691
|
+
};
|
|
146692
|
+
|
|
146693
|
+
/**
|
|
146694
|
+
* Verifies a ChangedEnrollmentComparisonCompleted message.
|
|
146695
|
+
* @function verify
|
|
146696
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146697
|
+
* @static
|
|
146698
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
146699
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
146700
|
+
*/
|
|
146701
|
+
ChangedEnrollmentComparisonCompleted.verify = function verify(message) {
|
|
146702
|
+
if (typeof message !== "object" || message === null)
|
|
146703
|
+
return "object expected";
|
|
146704
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
146705
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
146706
|
+
return "timestamp: integer|Long expected";
|
|
146707
|
+
if (message.existingCollectiveUuid != null && message.hasOwnProperty("existingCollectiveUuid"))
|
|
146708
|
+
if (!$util.isString(message.existingCollectiveUuid))
|
|
146709
|
+
return "existingCollectiveUuid: string expected";
|
|
146710
|
+
if (message.pendingCollectiveUuid != null && message.hasOwnProperty("pendingCollectiveUuid"))
|
|
146711
|
+
if (!$util.isString(message.pendingCollectiveUuid))
|
|
146712
|
+
return "pendingCollectiveUuid: string expected";
|
|
146713
|
+
if (message.addedRecords != null && message.hasOwnProperty("addedRecords"))
|
|
146714
|
+
if (!$util.isInteger(message.addedRecords))
|
|
146715
|
+
return "addedRecords: integer expected";
|
|
146716
|
+
if (message.removedRecords != null && message.hasOwnProperty("removedRecords"))
|
|
146717
|
+
if (!$util.isInteger(message.removedRecords))
|
|
146718
|
+
return "removedRecords: integer expected";
|
|
146719
|
+
if (message.matchedRecords != null && message.hasOwnProperty("matchedRecords"))
|
|
146720
|
+
if (!$util.isInteger(message.matchedRecords))
|
|
146721
|
+
return "matchedRecords: integer expected";
|
|
146722
|
+
return null;
|
|
146723
|
+
};
|
|
146724
|
+
|
|
146725
|
+
/**
|
|
146726
|
+
* Creates a ChangedEnrollmentComparisonCompleted message from a plain object. Also converts values to their respective internal types.
|
|
146727
|
+
* @function fromObject
|
|
146728
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146729
|
+
* @static
|
|
146730
|
+
* @param {Object.<string,*>} object Plain object
|
|
146731
|
+
* @returns {ChangedEnrollmentComparisonCompleted} ChangedEnrollmentComparisonCompleted
|
|
146732
|
+
*/
|
|
146733
|
+
ChangedEnrollmentComparisonCompleted.fromObject = function fromObject(object) {
|
|
146734
|
+
if (object instanceof $root.ChangedEnrollmentComparisonCompleted)
|
|
146735
|
+
return object;
|
|
146736
|
+
var message = new $root.ChangedEnrollmentComparisonCompleted();
|
|
146737
|
+
if (object.timestamp != null)
|
|
146738
|
+
if ($util.Long)
|
|
146739
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
146740
|
+
else if (typeof object.timestamp === "string")
|
|
146741
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
146742
|
+
else if (typeof object.timestamp === "number")
|
|
146743
|
+
message.timestamp = object.timestamp;
|
|
146744
|
+
else if (typeof object.timestamp === "object")
|
|
146745
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
146746
|
+
if (object.existingCollectiveUuid != null)
|
|
146747
|
+
message.existingCollectiveUuid = String(object.existingCollectiveUuid);
|
|
146748
|
+
if (object.pendingCollectiveUuid != null)
|
|
146749
|
+
message.pendingCollectiveUuid = String(object.pendingCollectiveUuid);
|
|
146750
|
+
if (object.addedRecords != null)
|
|
146751
|
+
message.addedRecords = object.addedRecords >>> 0;
|
|
146752
|
+
if (object.removedRecords != null)
|
|
146753
|
+
message.removedRecords = object.removedRecords >>> 0;
|
|
146754
|
+
if (object.matchedRecords != null)
|
|
146755
|
+
message.matchedRecords = object.matchedRecords >>> 0;
|
|
146756
|
+
return message;
|
|
146757
|
+
};
|
|
146758
|
+
|
|
146759
|
+
/**
|
|
146760
|
+
* Creates a plain object from a ChangedEnrollmentComparisonCompleted message. Also converts values to other types if specified.
|
|
146761
|
+
* @function toObject
|
|
146762
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146763
|
+
* @static
|
|
146764
|
+
* @param {ChangedEnrollmentComparisonCompleted} message ChangedEnrollmentComparisonCompleted
|
|
146765
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
146766
|
+
* @returns {Object.<string,*>} Plain object
|
|
146767
|
+
*/
|
|
146768
|
+
ChangedEnrollmentComparisonCompleted.toObject = function toObject(message, options) {
|
|
146769
|
+
if (!options)
|
|
146770
|
+
options = {};
|
|
146771
|
+
var object = {};
|
|
146772
|
+
if (options.defaults) {
|
|
146773
|
+
if ($util.Long) {
|
|
146774
|
+
var long = new $util.Long(0, 0, true);
|
|
146775
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
146776
|
+
} else
|
|
146777
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
146778
|
+
object.existingCollectiveUuid = "";
|
|
146779
|
+
object.pendingCollectiveUuid = "";
|
|
146780
|
+
object.addedRecords = 0;
|
|
146781
|
+
object.removedRecords = 0;
|
|
146782
|
+
object.matchedRecords = 0;
|
|
146783
|
+
}
|
|
146784
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
146785
|
+
if (typeof message.timestamp === "number")
|
|
146786
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
146787
|
+
else
|
|
146788
|
+
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;
|
|
146789
|
+
if (message.existingCollectiveUuid != null && message.hasOwnProperty("existingCollectiveUuid"))
|
|
146790
|
+
object.existingCollectiveUuid = message.existingCollectiveUuid;
|
|
146791
|
+
if (message.pendingCollectiveUuid != null && message.hasOwnProperty("pendingCollectiveUuid"))
|
|
146792
|
+
object.pendingCollectiveUuid = message.pendingCollectiveUuid;
|
|
146793
|
+
if (message.addedRecords != null && message.hasOwnProperty("addedRecords"))
|
|
146794
|
+
object.addedRecords = message.addedRecords;
|
|
146795
|
+
if (message.removedRecords != null && message.hasOwnProperty("removedRecords"))
|
|
146796
|
+
object.removedRecords = message.removedRecords;
|
|
146797
|
+
if (message.matchedRecords != null && message.hasOwnProperty("matchedRecords"))
|
|
146798
|
+
object.matchedRecords = message.matchedRecords;
|
|
146799
|
+
return object;
|
|
146800
|
+
};
|
|
146801
|
+
|
|
146802
|
+
/**
|
|
146803
|
+
* Converts this ChangedEnrollmentComparisonCompleted to JSON.
|
|
146804
|
+
* @function toJSON
|
|
146805
|
+
* @memberof ChangedEnrollmentComparisonCompleted
|
|
146806
|
+
* @instance
|
|
146807
|
+
* @returns {Object.<string,*>} JSON object
|
|
146808
|
+
*/
|
|
146809
|
+
ChangedEnrollmentComparisonCompleted.prototype.toJSON = function toJSON() {
|
|
146810
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
146811
|
+
};
|
|
146812
|
+
|
|
146813
|
+
return ChangedEnrollmentComparisonCompleted;
|
|
146814
|
+
})();
|
|
146815
|
+
|
|
145970
146816
|
$root.EnterpriseUserOnboarded = (function() {
|
|
145971
146817
|
|
|
145972
146818
|
/**
|
package/package.json
CHANGED