@headspace/protos-events 1.743.0 → 1.745.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 +930 -0
- package/lib/index.js +2132 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -3366,6 +3366,7 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
3366
3366
|
* @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageCreated clinicalCoverageType
|
|
3367
3367
|
* @property {string|null} [externalOrgId] ClinicalCoverageCreated externalOrgId
|
|
3368
3368
|
* @property {number|Long|null} [orgSubscriptionStartDate] ClinicalCoverageCreated orgSubscriptionStartDate
|
|
3369
|
+
* @property {string|null} [phoneNumber] ClinicalCoverageCreated phoneNumber
|
|
3369
3370
|
*/
|
|
3370
3371
|
|
|
3371
3372
|
/**
|
|
@@ -3455,6 +3456,14 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
3455
3456
|
*/
|
|
3456
3457
|
ClinicalCoverageCreated.prototype.orgSubscriptionStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
3457
3458
|
|
|
3459
|
+
/**
|
|
3460
|
+
* ClinicalCoverageCreated phoneNumber.
|
|
3461
|
+
* @member {string} phoneNumber
|
|
3462
|
+
* @memberof ClinicalCoverageCreated
|
|
3463
|
+
* @instance
|
|
3464
|
+
*/
|
|
3465
|
+
ClinicalCoverageCreated.prototype.phoneNumber = "";
|
|
3466
|
+
|
|
3458
3467
|
/**
|
|
3459
3468
|
* Creates a new ClinicalCoverageCreated instance using the specified properties.
|
|
3460
3469
|
* @function create
|
|
@@ -3497,6 +3506,8 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
3497
3506
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.externalOrgId);
|
|
3498
3507
|
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
3499
3508
|
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.orgSubscriptionStartDate);
|
|
3509
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
3510
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.phoneNumber);
|
|
3500
3511
|
return writer;
|
|
3501
3512
|
};
|
|
3502
3513
|
|
|
@@ -3558,6 +3569,9 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
3558
3569
|
case 9:
|
|
3559
3570
|
message.orgSubscriptionStartDate = reader.uint64();
|
|
3560
3571
|
break;
|
|
3572
|
+
case 10:
|
|
3573
|
+
message.phoneNumber = reader.string();
|
|
3574
|
+
break;
|
|
3561
3575
|
default:
|
|
3562
3576
|
reader.skipType(tag & 7);
|
|
3563
3577
|
break;
|
|
@@ -3641,6 +3655,9 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
3641
3655
|
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
3642
3656
|
if (!$util.isInteger(message.orgSubscriptionStartDate) && !(message.orgSubscriptionStartDate && $util.isInteger(message.orgSubscriptionStartDate.low) && $util.isInteger(message.orgSubscriptionStartDate.high)))
|
|
3643
3657
|
return "orgSubscriptionStartDate: integer|Long expected";
|
|
3658
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
3659
|
+
if (!$util.isString(message.phoneNumber))
|
|
3660
|
+
return "phoneNumber: string expected";
|
|
3644
3661
|
return null;
|
|
3645
3662
|
};
|
|
3646
3663
|
|
|
@@ -3757,6 +3774,8 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
3757
3774
|
message.orgSubscriptionStartDate = object.orgSubscriptionStartDate;
|
|
3758
3775
|
else if (typeof object.orgSubscriptionStartDate === "object")
|
|
3759
3776
|
message.orgSubscriptionStartDate = new $util.LongBits(object.orgSubscriptionStartDate.low >>> 0, object.orgSubscriptionStartDate.high >>> 0).toNumber(true);
|
|
3777
|
+
if (object.phoneNumber != null)
|
|
3778
|
+
message.phoneNumber = String(object.phoneNumber);
|
|
3760
3779
|
return message;
|
|
3761
3780
|
};
|
|
3762
3781
|
|
|
@@ -3803,6 +3822,7 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
3803
3822
|
object.orgSubscriptionStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
3804
3823
|
} else
|
|
3805
3824
|
object.orgSubscriptionStartDate = options.longs === String ? "0" : 0;
|
|
3825
|
+
object.phoneNumber = "";
|
|
3806
3826
|
}
|
|
3807
3827
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
3808
3828
|
if (typeof message.orgId === "number")
|
|
@@ -3837,6 +3857,8 @@ $root.ClinicalCoverageCreated = (function() {
|
|
|
3837
3857
|
object.orgSubscriptionStartDate = options.longs === String ? String(message.orgSubscriptionStartDate) : message.orgSubscriptionStartDate;
|
|
3838
3858
|
else
|
|
3839
3859
|
object.orgSubscriptionStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionStartDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionStartDate.low >>> 0, message.orgSubscriptionStartDate.high >>> 0).toNumber(true) : message.orgSubscriptionStartDate;
|
|
3860
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
3861
|
+
object.phoneNumber = message.phoneNumber;
|
|
3840
3862
|
return object;
|
|
3841
3863
|
};
|
|
3842
3864
|
|
|
@@ -3869,6 +3891,7 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
3869
3891
|
* @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageUpdated clinicalCoverageType
|
|
3870
3892
|
* @property {string|null} [externalOrgId] ClinicalCoverageUpdated externalOrgId
|
|
3871
3893
|
* @property {number|Long|null} [orgSubscriptionStartDate] ClinicalCoverageUpdated orgSubscriptionStartDate
|
|
3894
|
+
* @property {string|null} [phoneNumber] ClinicalCoverageUpdated phoneNumber
|
|
3872
3895
|
*/
|
|
3873
3896
|
|
|
3874
3897
|
/**
|
|
@@ -3958,6 +3981,14 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
3958
3981
|
*/
|
|
3959
3982
|
ClinicalCoverageUpdated.prototype.orgSubscriptionStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
3960
3983
|
|
|
3984
|
+
/**
|
|
3985
|
+
* ClinicalCoverageUpdated phoneNumber.
|
|
3986
|
+
* @member {string} phoneNumber
|
|
3987
|
+
* @memberof ClinicalCoverageUpdated
|
|
3988
|
+
* @instance
|
|
3989
|
+
*/
|
|
3990
|
+
ClinicalCoverageUpdated.prototype.phoneNumber = "";
|
|
3991
|
+
|
|
3961
3992
|
/**
|
|
3962
3993
|
* Creates a new ClinicalCoverageUpdated instance using the specified properties.
|
|
3963
3994
|
* @function create
|
|
@@ -4000,6 +4031,8 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
4000
4031
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.externalOrgId);
|
|
4001
4032
|
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
4002
4033
|
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.orgSubscriptionStartDate);
|
|
4034
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
4035
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.phoneNumber);
|
|
4003
4036
|
return writer;
|
|
4004
4037
|
};
|
|
4005
4038
|
|
|
@@ -4061,6 +4094,9 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
4061
4094
|
case 9:
|
|
4062
4095
|
message.orgSubscriptionStartDate = reader.uint64();
|
|
4063
4096
|
break;
|
|
4097
|
+
case 10:
|
|
4098
|
+
message.phoneNumber = reader.string();
|
|
4099
|
+
break;
|
|
4064
4100
|
default:
|
|
4065
4101
|
reader.skipType(tag & 7);
|
|
4066
4102
|
break;
|
|
@@ -4144,6 +4180,9 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
4144
4180
|
if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
|
|
4145
4181
|
if (!$util.isInteger(message.orgSubscriptionStartDate) && !(message.orgSubscriptionStartDate && $util.isInteger(message.orgSubscriptionStartDate.low) && $util.isInteger(message.orgSubscriptionStartDate.high)))
|
|
4146
4182
|
return "orgSubscriptionStartDate: integer|Long expected";
|
|
4183
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
4184
|
+
if (!$util.isString(message.phoneNumber))
|
|
4185
|
+
return "phoneNumber: string expected";
|
|
4147
4186
|
return null;
|
|
4148
4187
|
};
|
|
4149
4188
|
|
|
@@ -4260,6 +4299,8 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
4260
4299
|
message.orgSubscriptionStartDate = object.orgSubscriptionStartDate;
|
|
4261
4300
|
else if (typeof object.orgSubscriptionStartDate === "object")
|
|
4262
4301
|
message.orgSubscriptionStartDate = new $util.LongBits(object.orgSubscriptionStartDate.low >>> 0, object.orgSubscriptionStartDate.high >>> 0).toNumber(true);
|
|
4302
|
+
if (object.phoneNumber != null)
|
|
4303
|
+
message.phoneNumber = String(object.phoneNumber);
|
|
4263
4304
|
return message;
|
|
4264
4305
|
};
|
|
4265
4306
|
|
|
@@ -4306,6 +4347,7 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
4306
4347
|
object.orgSubscriptionStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
4307
4348
|
} else
|
|
4308
4349
|
object.orgSubscriptionStartDate = options.longs === String ? "0" : 0;
|
|
4350
|
+
object.phoneNumber = "";
|
|
4309
4351
|
}
|
|
4310
4352
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
4311
4353
|
if (typeof message.orgId === "number")
|
|
@@ -4340,6 +4382,8 @@ $root.ClinicalCoverageUpdated = (function() {
|
|
|
4340
4382
|
object.orgSubscriptionStartDate = options.longs === String ? String(message.orgSubscriptionStartDate) : message.orgSubscriptionStartDate;
|
|
4341
4383
|
else
|
|
4342
4384
|
object.orgSubscriptionStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionStartDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionStartDate.low >>> 0, message.orgSubscriptionStartDate.high >>> 0).toNumber(true) : message.orgSubscriptionStartDate;
|
|
4385
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
4386
|
+
object.phoneNumber = message.phoneNumber;
|
|
4343
4387
|
return object;
|
|
4344
4388
|
};
|
|
4345
4389
|
|
|
@@ -114443,6 +114487,702 @@ $root.EligibleMemberUpgraded = (function() {
|
|
|
114443
114487
|
return EligibleMemberUpgraded;
|
|
114444
114488
|
})();
|
|
114445
114489
|
|
|
114490
|
+
$root.GADAssessmentAssigned = (function() {
|
|
114491
|
+
|
|
114492
|
+
/**
|
|
114493
|
+
* Properties of a GADAssessmentAssigned.
|
|
114494
|
+
* @name IGADAssessmentAssigned
|
|
114495
|
+
* @interface IGADAssessmentAssigned
|
|
114496
|
+
* @property {string|null} [hsUserId] GADAssessmentAssigned hsUserId
|
|
114497
|
+
* @property {number|null} [gingerUserId] GADAssessmentAssigned gingerUserId
|
|
114498
|
+
* @property {string|null} [assignedAtIsoDate] GADAssessmentAssigned assignedAtIsoDate
|
|
114499
|
+
*/
|
|
114500
|
+
|
|
114501
|
+
/**
|
|
114502
|
+
* Constructs a new GADAssessmentAssigned.
|
|
114503
|
+
* @name GADAssessmentAssigned
|
|
114504
|
+
* @classdesc Represents a GADAssessmentAssigned.
|
|
114505
|
+
* @implements IGADAssessmentAssigned
|
|
114506
|
+
* @constructor
|
|
114507
|
+
* @param {IGADAssessmentAssigned=} [properties] Properties to set
|
|
114508
|
+
*/
|
|
114509
|
+
function GADAssessmentAssigned(properties) {
|
|
114510
|
+
if (properties)
|
|
114511
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
114512
|
+
if (properties[keys[i]] != null)
|
|
114513
|
+
this[keys[i]] = properties[keys[i]];
|
|
114514
|
+
}
|
|
114515
|
+
|
|
114516
|
+
/**
|
|
114517
|
+
* GADAssessmentAssigned hsUserId.
|
|
114518
|
+
* @member {string} hsUserId
|
|
114519
|
+
* @memberof GADAssessmentAssigned
|
|
114520
|
+
* @instance
|
|
114521
|
+
*/
|
|
114522
|
+
GADAssessmentAssigned.prototype.hsUserId = "";
|
|
114523
|
+
|
|
114524
|
+
/**
|
|
114525
|
+
* GADAssessmentAssigned gingerUserId.
|
|
114526
|
+
* @member {number} gingerUserId
|
|
114527
|
+
* @memberof GADAssessmentAssigned
|
|
114528
|
+
* @instance
|
|
114529
|
+
*/
|
|
114530
|
+
GADAssessmentAssigned.prototype.gingerUserId = 0;
|
|
114531
|
+
|
|
114532
|
+
/**
|
|
114533
|
+
* GADAssessmentAssigned assignedAtIsoDate.
|
|
114534
|
+
* @member {string} assignedAtIsoDate
|
|
114535
|
+
* @memberof GADAssessmentAssigned
|
|
114536
|
+
* @instance
|
|
114537
|
+
*/
|
|
114538
|
+
GADAssessmentAssigned.prototype.assignedAtIsoDate = "";
|
|
114539
|
+
|
|
114540
|
+
/**
|
|
114541
|
+
* Creates a new GADAssessmentAssigned instance using the specified properties.
|
|
114542
|
+
* @function create
|
|
114543
|
+
* @memberof GADAssessmentAssigned
|
|
114544
|
+
* @static
|
|
114545
|
+
* @param {IGADAssessmentAssigned=} [properties] Properties to set
|
|
114546
|
+
* @returns {GADAssessmentAssigned} GADAssessmentAssigned instance
|
|
114547
|
+
*/
|
|
114548
|
+
GADAssessmentAssigned.create = function create(properties) {
|
|
114549
|
+
return new GADAssessmentAssigned(properties);
|
|
114550
|
+
};
|
|
114551
|
+
|
|
114552
|
+
/**
|
|
114553
|
+
* Encodes the specified GADAssessmentAssigned message. Does not implicitly {@link GADAssessmentAssigned.verify|verify} messages.
|
|
114554
|
+
* @function encode
|
|
114555
|
+
* @memberof GADAssessmentAssigned
|
|
114556
|
+
* @static
|
|
114557
|
+
* @param {IGADAssessmentAssigned} message GADAssessmentAssigned message or plain object to encode
|
|
114558
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114559
|
+
* @returns {$protobuf.Writer} Writer
|
|
114560
|
+
*/
|
|
114561
|
+
GADAssessmentAssigned.encode = function encode(message, writer) {
|
|
114562
|
+
if (!writer)
|
|
114563
|
+
writer = $Writer.create();
|
|
114564
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114565
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
114566
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114567
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
114568
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
114569
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
114570
|
+
return writer;
|
|
114571
|
+
};
|
|
114572
|
+
|
|
114573
|
+
/**
|
|
114574
|
+
* Encodes the specified GADAssessmentAssigned message, length delimited. Does not implicitly {@link GADAssessmentAssigned.verify|verify} messages.
|
|
114575
|
+
* @function encodeDelimited
|
|
114576
|
+
* @memberof GADAssessmentAssigned
|
|
114577
|
+
* @static
|
|
114578
|
+
* @param {IGADAssessmentAssigned} message GADAssessmentAssigned message or plain object to encode
|
|
114579
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114580
|
+
* @returns {$protobuf.Writer} Writer
|
|
114581
|
+
*/
|
|
114582
|
+
GADAssessmentAssigned.encodeDelimited = function encodeDelimited(message, writer) {
|
|
114583
|
+
return this.encode(message, writer).ldelim();
|
|
114584
|
+
};
|
|
114585
|
+
|
|
114586
|
+
/**
|
|
114587
|
+
* Decodes a GADAssessmentAssigned message from the specified reader or buffer.
|
|
114588
|
+
* @function decode
|
|
114589
|
+
* @memberof GADAssessmentAssigned
|
|
114590
|
+
* @static
|
|
114591
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114592
|
+
* @param {number} [length] Message length if known beforehand
|
|
114593
|
+
* @returns {GADAssessmentAssigned} GADAssessmentAssigned
|
|
114594
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114595
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114596
|
+
*/
|
|
114597
|
+
GADAssessmentAssigned.decode = function decode(reader, length) {
|
|
114598
|
+
if (!(reader instanceof $Reader))
|
|
114599
|
+
reader = $Reader.create(reader);
|
|
114600
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GADAssessmentAssigned();
|
|
114601
|
+
while (reader.pos < end) {
|
|
114602
|
+
var tag = reader.uint32();
|
|
114603
|
+
switch (tag >>> 3) {
|
|
114604
|
+
case 1:
|
|
114605
|
+
message.hsUserId = reader.string();
|
|
114606
|
+
break;
|
|
114607
|
+
case 2:
|
|
114608
|
+
message.gingerUserId = reader.uint32();
|
|
114609
|
+
break;
|
|
114610
|
+
case 3:
|
|
114611
|
+
message.assignedAtIsoDate = reader.string();
|
|
114612
|
+
break;
|
|
114613
|
+
default:
|
|
114614
|
+
reader.skipType(tag & 7);
|
|
114615
|
+
break;
|
|
114616
|
+
}
|
|
114617
|
+
}
|
|
114618
|
+
return message;
|
|
114619
|
+
};
|
|
114620
|
+
|
|
114621
|
+
/**
|
|
114622
|
+
* Decodes a GADAssessmentAssigned message from the specified reader or buffer, length delimited.
|
|
114623
|
+
* @function decodeDelimited
|
|
114624
|
+
* @memberof GADAssessmentAssigned
|
|
114625
|
+
* @static
|
|
114626
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114627
|
+
* @returns {GADAssessmentAssigned} GADAssessmentAssigned
|
|
114628
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114629
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114630
|
+
*/
|
|
114631
|
+
GADAssessmentAssigned.decodeDelimited = function decodeDelimited(reader) {
|
|
114632
|
+
if (!(reader instanceof $Reader))
|
|
114633
|
+
reader = new $Reader(reader);
|
|
114634
|
+
return this.decode(reader, reader.uint32());
|
|
114635
|
+
};
|
|
114636
|
+
|
|
114637
|
+
/**
|
|
114638
|
+
* Verifies a GADAssessmentAssigned message.
|
|
114639
|
+
* @function verify
|
|
114640
|
+
* @memberof GADAssessmentAssigned
|
|
114641
|
+
* @static
|
|
114642
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
114643
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
114644
|
+
*/
|
|
114645
|
+
GADAssessmentAssigned.verify = function verify(message) {
|
|
114646
|
+
if (typeof message !== "object" || message === null)
|
|
114647
|
+
return "object expected";
|
|
114648
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114649
|
+
if (!$util.isString(message.hsUserId))
|
|
114650
|
+
return "hsUserId: string expected";
|
|
114651
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114652
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
114653
|
+
return "gingerUserId: integer expected";
|
|
114654
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
114655
|
+
if (!$util.isString(message.assignedAtIsoDate))
|
|
114656
|
+
return "assignedAtIsoDate: string expected";
|
|
114657
|
+
return null;
|
|
114658
|
+
};
|
|
114659
|
+
|
|
114660
|
+
/**
|
|
114661
|
+
* Creates a GADAssessmentAssigned message from a plain object. Also converts values to their respective internal types.
|
|
114662
|
+
* @function fromObject
|
|
114663
|
+
* @memberof GADAssessmentAssigned
|
|
114664
|
+
* @static
|
|
114665
|
+
* @param {Object.<string,*>} object Plain object
|
|
114666
|
+
* @returns {GADAssessmentAssigned} GADAssessmentAssigned
|
|
114667
|
+
*/
|
|
114668
|
+
GADAssessmentAssigned.fromObject = function fromObject(object) {
|
|
114669
|
+
if (object instanceof $root.GADAssessmentAssigned)
|
|
114670
|
+
return object;
|
|
114671
|
+
var message = new $root.GADAssessmentAssigned();
|
|
114672
|
+
if (object.hsUserId != null)
|
|
114673
|
+
message.hsUserId = String(object.hsUserId);
|
|
114674
|
+
if (object.gingerUserId != null)
|
|
114675
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
114676
|
+
if (object.assignedAtIsoDate != null)
|
|
114677
|
+
message.assignedAtIsoDate = String(object.assignedAtIsoDate);
|
|
114678
|
+
return message;
|
|
114679
|
+
};
|
|
114680
|
+
|
|
114681
|
+
/**
|
|
114682
|
+
* Creates a plain object from a GADAssessmentAssigned message. Also converts values to other types if specified.
|
|
114683
|
+
* @function toObject
|
|
114684
|
+
* @memberof GADAssessmentAssigned
|
|
114685
|
+
* @static
|
|
114686
|
+
* @param {GADAssessmentAssigned} message GADAssessmentAssigned
|
|
114687
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
114688
|
+
* @returns {Object.<string,*>} Plain object
|
|
114689
|
+
*/
|
|
114690
|
+
GADAssessmentAssigned.toObject = function toObject(message, options) {
|
|
114691
|
+
if (!options)
|
|
114692
|
+
options = {};
|
|
114693
|
+
var object = {};
|
|
114694
|
+
if (options.defaults) {
|
|
114695
|
+
object.hsUserId = "";
|
|
114696
|
+
object.gingerUserId = 0;
|
|
114697
|
+
object.assignedAtIsoDate = "";
|
|
114698
|
+
}
|
|
114699
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114700
|
+
object.hsUserId = message.hsUserId;
|
|
114701
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114702
|
+
object.gingerUserId = message.gingerUserId;
|
|
114703
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
114704
|
+
object.assignedAtIsoDate = message.assignedAtIsoDate;
|
|
114705
|
+
return object;
|
|
114706
|
+
};
|
|
114707
|
+
|
|
114708
|
+
/**
|
|
114709
|
+
* Converts this GADAssessmentAssigned to JSON.
|
|
114710
|
+
* @function toJSON
|
|
114711
|
+
* @memberof GADAssessmentAssigned
|
|
114712
|
+
* @instance
|
|
114713
|
+
* @returns {Object.<string,*>} JSON object
|
|
114714
|
+
*/
|
|
114715
|
+
GADAssessmentAssigned.prototype.toJSON = function toJSON() {
|
|
114716
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
114717
|
+
};
|
|
114718
|
+
|
|
114719
|
+
return GADAssessmentAssigned;
|
|
114720
|
+
})();
|
|
114721
|
+
|
|
114722
|
+
$root.GADAssessmentStarted = (function() {
|
|
114723
|
+
|
|
114724
|
+
/**
|
|
114725
|
+
* Properties of a GADAssessmentStarted.
|
|
114726
|
+
* @name IGADAssessmentStarted
|
|
114727
|
+
* @interface IGADAssessmentStarted
|
|
114728
|
+
* @property {string|null} [hsUserId] GADAssessmentStarted hsUserId
|
|
114729
|
+
* @property {number|null} [gingerUserId] GADAssessmentStarted gingerUserId
|
|
114730
|
+
* @property {string|null} [startedAtIsoDate] GADAssessmentStarted startedAtIsoDate
|
|
114731
|
+
*/
|
|
114732
|
+
|
|
114733
|
+
/**
|
|
114734
|
+
* Constructs a new GADAssessmentStarted.
|
|
114735
|
+
* @name GADAssessmentStarted
|
|
114736
|
+
* @classdesc Represents a GADAssessmentStarted.
|
|
114737
|
+
* @implements IGADAssessmentStarted
|
|
114738
|
+
* @constructor
|
|
114739
|
+
* @param {IGADAssessmentStarted=} [properties] Properties to set
|
|
114740
|
+
*/
|
|
114741
|
+
function GADAssessmentStarted(properties) {
|
|
114742
|
+
if (properties)
|
|
114743
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
114744
|
+
if (properties[keys[i]] != null)
|
|
114745
|
+
this[keys[i]] = properties[keys[i]];
|
|
114746
|
+
}
|
|
114747
|
+
|
|
114748
|
+
/**
|
|
114749
|
+
* GADAssessmentStarted hsUserId.
|
|
114750
|
+
* @member {string} hsUserId
|
|
114751
|
+
* @memberof GADAssessmentStarted
|
|
114752
|
+
* @instance
|
|
114753
|
+
*/
|
|
114754
|
+
GADAssessmentStarted.prototype.hsUserId = "";
|
|
114755
|
+
|
|
114756
|
+
/**
|
|
114757
|
+
* GADAssessmentStarted gingerUserId.
|
|
114758
|
+
* @member {number} gingerUserId
|
|
114759
|
+
* @memberof GADAssessmentStarted
|
|
114760
|
+
* @instance
|
|
114761
|
+
*/
|
|
114762
|
+
GADAssessmentStarted.prototype.gingerUserId = 0;
|
|
114763
|
+
|
|
114764
|
+
/**
|
|
114765
|
+
* GADAssessmentStarted startedAtIsoDate.
|
|
114766
|
+
* @member {string} startedAtIsoDate
|
|
114767
|
+
* @memberof GADAssessmentStarted
|
|
114768
|
+
* @instance
|
|
114769
|
+
*/
|
|
114770
|
+
GADAssessmentStarted.prototype.startedAtIsoDate = "";
|
|
114771
|
+
|
|
114772
|
+
/**
|
|
114773
|
+
* Creates a new GADAssessmentStarted instance using the specified properties.
|
|
114774
|
+
* @function create
|
|
114775
|
+
* @memberof GADAssessmentStarted
|
|
114776
|
+
* @static
|
|
114777
|
+
* @param {IGADAssessmentStarted=} [properties] Properties to set
|
|
114778
|
+
* @returns {GADAssessmentStarted} GADAssessmentStarted instance
|
|
114779
|
+
*/
|
|
114780
|
+
GADAssessmentStarted.create = function create(properties) {
|
|
114781
|
+
return new GADAssessmentStarted(properties);
|
|
114782
|
+
};
|
|
114783
|
+
|
|
114784
|
+
/**
|
|
114785
|
+
* Encodes the specified GADAssessmentStarted message. Does not implicitly {@link GADAssessmentStarted.verify|verify} messages.
|
|
114786
|
+
* @function encode
|
|
114787
|
+
* @memberof GADAssessmentStarted
|
|
114788
|
+
* @static
|
|
114789
|
+
* @param {IGADAssessmentStarted} message GADAssessmentStarted message or plain object to encode
|
|
114790
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114791
|
+
* @returns {$protobuf.Writer} Writer
|
|
114792
|
+
*/
|
|
114793
|
+
GADAssessmentStarted.encode = function encode(message, writer) {
|
|
114794
|
+
if (!writer)
|
|
114795
|
+
writer = $Writer.create();
|
|
114796
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114797
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
114798
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114799
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
114800
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
114801
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.startedAtIsoDate);
|
|
114802
|
+
return writer;
|
|
114803
|
+
};
|
|
114804
|
+
|
|
114805
|
+
/**
|
|
114806
|
+
* Encodes the specified GADAssessmentStarted message, length delimited. Does not implicitly {@link GADAssessmentStarted.verify|verify} messages.
|
|
114807
|
+
* @function encodeDelimited
|
|
114808
|
+
* @memberof GADAssessmentStarted
|
|
114809
|
+
* @static
|
|
114810
|
+
* @param {IGADAssessmentStarted} message GADAssessmentStarted message or plain object to encode
|
|
114811
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114812
|
+
* @returns {$protobuf.Writer} Writer
|
|
114813
|
+
*/
|
|
114814
|
+
GADAssessmentStarted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
114815
|
+
return this.encode(message, writer).ldelim();
|
|
114816
|
+
};
|
|
114817
|
+
|
|
114818
|
+
/**
|
|
114819
|
+
* Decodes a GADAssessmentStarted message from the specified reader or buffer.
|
|
114820
|
+
* @function decode
|
|
114821
|
+
* @memberof GADAssessmentStarted
|
|
114822
|
+
* @static
|
|
114823
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114824
|
+
* @param {number} [length] Message length if known beforehand
|
|
114825
|
+
* @returns {GADAssessmentStarted} GADAssessmentStarted
|
|
114826
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114827
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114828
|
+
*/
|
|
114829
|
+
GADAssessmentStarted.decode = function decode(reader, length) {
|
|
114830
|
+
if (!(reader instanceof $Reader))
|
|
114831
|
+
reader = $Reader.create(reader);
|
|
114832
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GADAssessmentStarted();
|
|
114833
|
+
while (reader.pos < end) {
|
|
114834
|
+
var tag = reader.uint32();
|
|
114835
|
+
switch (tag >>> 3) {
|
|
114836
|
+
case 1:
|
|
114837
|
+
message.hsUserId = reader.string();
|
|
114838
|
+
break;
|
|
114839
|
+
case 2:
|
|
114840
|
+
message.gingerUserId = reader.uint32();
|
|
114841
|
+
break;
|
|
114842
|
+
case 3:
|
|
114843
|
+
message.startedAtIsoDate = reader.string();
|
|
114844
|
+
break;
|
|
114845
|
+
default:
|
|
114846
|
+
reader.skipType(tag & 7);
|
|
114847
|
+
break;
|
|
114848
|
+
}
|
|
114849
|
+
}
|
|
114850
|
+
return message;
|
|
114851
|
+
};
|
|
114852
|
+
|
|
114853
|
+
/**
|
|
114854
|
+
* Decodes a GADAssessmentStarted message from the specified reader or buffer, length delimited.
|
|
114855
|
+
* @function decodeDelimited
|
|
114856
|
+
* @memberof GADAssessmentStarted
|
|
114857
|
+
* @static
|
|
114858
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114859
|
+
* @returns {GADAssessmentStarted} GADAssessmentStarted
|
|
114860
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114861
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114862
|
+
*/
|
|
114863
|
+
GADAssessmentStarted.decodeDelimited = function decodeDelimited(reader) {
|
|
114864
|
+
if (!(reader instanceof $Reader))
|
|
114865
|
+
reader = new $Reader(reader);
|
|
114866
|
+
return this.decode(reader, reader.uint32());
|
|
114867
|
+
};
|
|
114868
|
+
|
|
114869
|
+
/**
|
|
114870
|
+
* Verifies a GADAssessmentStarted message.
|
|
114871
|
+
* @function verify
|
|
114872
|
+
* @memberof GADAssessmentStarted
|
|
114873
|
+
* @static
|
|
114874
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
114875
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
114876
|
+
*/
|
|
114877
|
+
GADAssessmentStarted.verify = function verify(message) {
|
|
114878
|
+
if (typeof message !== "object" || message === null)
|
|
114879
|
+
return "object expected";
|
|
114880
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114881
|
+
if (!$util.isString(message.hsUserId))
|
|
114882
|
+
return "hsUserId: string expected";
|
|
114883
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114884
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
114885
|
+
return "gingerUserId: integer expected";
|
|
114886
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
114887
|
+
if (!$util.isString(message.startedAtIsoDate))
|
|
114888
|
+
return "startedAtIsoDate: string expected";
|
|
114889
|
+
return null;
|
|
114890
|
+
};
|
|
114891
|
+
|
|
114892
|
+
/**
|
|
114893
|
+
* Creates a GADAssessmentStarted message from a plain object. Also converts values to their respective internal types.
|
|
114894
|
+
* @function fromObject
|
|
114895
|
+
* @memberof GADAssessmentStarted
|
|
114896
|
+
* @static
|
|
114897
|
+
* @param {Object.<string,*>} object Plain object
|
|
114898
|
+
* @returns {GADAssessmentStarted} GADAssessmentStarted
|
|
114899
|
+
*/
|
|
114900
|
+
GADAssessmentStarted.fromObject = function fromObject(object) {
|
|
114901
|
+
if (object instanceof $root.GADAssessmentStarted)
|
|
114902
|
+
return object;
|
|
114903
|
+
var message = new $root.GADAssessmentStarted();
|
|
114904
|
+
if (object.hsUserId != null)
|
|
114905
|
+
message.hsUserId = String(object.hsUserId);
|
|
114906
|
+
if (object.gingerUserId != null)
|
|
114907
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
114908
|
+
if (object.startedAtIsoDate != null)
|
|
114909
|
+
message.startedAtIsoDate = String(object.startedAtIsoDate);
|
|
114910
|
+
return message;
|
|
114911
|
+
};
|
|
114912
|
+
|
|
114913
|
+
/**
|
|
114914
|
+
* Creates a plain object from a GADAssessmentStarted message. Also converts values to other types if specified.
|
|
114915
|
+
* @function toObject
|
|
114916
|
+
* @memberof GADAssessmentStarted
|
|
114917
|
+
* @static
|
|
114918
|
+
* @param {GADAssessmentStarted} message GADAssessmentStarted
|
|
114919
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
114920
|
+
* @returns {Object.<string,*>} Plain object
|
|
114921
|
+
*/
|
|
114922
|
+
GADAssessmentStarted.toObject = function toObject(message, options) {
|
|
114923
|
+
if (!options)
|
|
114924
|
+
options = {};
|
|
114925
|
+
var object = {};
|
|
114926
|
+
if (options.defaults) {
|
|
114927
|
+
object.hsUserId = "";
|
|
114928
|
+
object.gingerUserId = 0;
|
|
114929
|
+
object.startedAtIsoDate = "";
|
|
114930
|
+
}
|
|
114931
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114932
|
+
object.hsUserId = message.hsUserId;
|
|
114933
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114934
|
+
object.gingerUserId = message.gingerUserId;
|
|
114935
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
114936
|
+
object.startedAtIsoDate = message.startedAtIsoDate;
|
|
114937
|
+
return object;
|
|
114938
|
+
};
|
|
114939
|
+
|
|
114940
|
+
/**
|
|
114941
|
+
* Converts this GADAssessmentStarted to JSON.
|
|
114942
|
+
* @function toJSON
|
|
114943
|
+
* @memberof GADAssessmentStarted
|
|
114944
|
+
* @instance
|
|
114945
|
+
* @returns {Object.<string,*>} JSON object
|
|
114946
|
+
*/
|
|
114947
|
+
GADAssessmentStarted.prototype.toJSON = function toJSON() {
|
|
114948
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
114949
|
+
};
|
|
114950
|
+
|
|
114951
|
+
return GADAssessmentStarted;
|
|
114952
|
+
})();
|
|
114953
|
+
|
|
114954
|
+
$root.GADAssessmentCompleted = (function() {
|
|
114955
|
+
|
|
114956
|
+
/**
|
|
114957
|
+
* Properties of a GADAssessmentCompleted.
|
|
114958
|
+
* @name IGADAssessmentCompleted
|
|
114959
|
+
* @interface IGADAssessmentCompleted
|
|
114960
|
+
* @property {string|null} [hsUserId] GADAssessmentCompleted hsUserId
|
|
114961
|
+
* @property {number|null} [gingerUserId] GADAssessmentCompleted gingerUserId
|
|
114962
|
+
* @property {string|null} [completedAtIsoDate] GADAssessmentCompleted completedAtIsoDate
|
|
114963
|
+
*/
|
|
114964
|
+
|
|
114965
|
+
/**
|
|
114966
|
+
* Constructs a new GADAssessmentCompleted.
|
|
114967
|
+
* @name GADAssessmentCompleted
|
|
114968
|
+
* @classdesc Represents a GADAssessmentCompleted.
|
|
114969
|
+
* @implements IGADAssessmentCompleted
|
|
114970
|
+
* @constructor
|
|
114971
|
+
* @param {IGADAssessmentCompleted=} [properties] Properties to set
|
|
114972
|
+
*/
|
|
114973
|
+
function GADAssessmentCompleted(properties) {
|
|
114974
|
+
if (properties)
|
|
114975
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
114976
|
+
if (properties[keys[i]] != null)
|
|
114977
|
+
this[keys[i]] = properties[keys[i]];
|
|
114978
|
+
}
|
|
114979
|
+
|
|
114980
|
+
/**
|
|
114981
|
+
* GADAssessmentCompleted hsUserId.
|
|
114982
|
+
* @member {string} hsUserId
|
|
114983
|
+
* @memberof GADAssessmentCompleted
|
|
114984
|
+
* @instance
|
|
114985
|
+
*/
|
|
114986
|
+
GADAssessmentCompleted.prototype.hsUserId = "";
|
|
114987
|
+
|
|
114988
|
+
/**
|
|
114989
|
+
* GADAssessmentCompleted gingerUserId.
|
|
114990
|
+
* @member {number} gingerUserId
|
|
114991
|
+
* @memberof GADAssessmentCompleted
|
|
114992
|
+
* @instance
|
|
114993
|
+
*/
|
|
114994
|
+
GADAssessmentCompleted.prototype.gingerUserId = 0;
|
|
114995
|
+
|
|
114996
|
+
/**
|
|
114997
|
+
* GADAssessmentCompleted completedAtIsoDate.
|
|
114998
|
+
* @member {string} completedAtIsoDate
|
|
114999
|
+
* @memberof GADAssessmentCompleted
|
|
115000
|
+
* @instance
|
|
115001
|
+
*/
|
|
115002
|
+
GADAssessmentCompleted.prototype.completedAtIsoDate = "";
|
|
115003
|
+
|
|
115004
|
+
/**
|
|
115005
|
+
* Creates a new GADAssessmentCompleted instance using the specified properties.
|
|
115006
|
+
* @function create
|
|
115007
|
+
* @memberof GADAssessmentCompleted
|
|
115008
|
+
* @static
|
|
115009
|
+
* @param {IGADAssessmentCompleted=} [properties] Properties to set
|
|
115010
|
+
* @returns {GADAssessmentCompleted} GADAssessmentCompleted instance
|
|
115011
|
+
*/
|
|
115012
|
+
GADAssessmentCompleted.create = function create(properties) {
|
|
115013
|
+
return new GADAssessmentCompleted(properties);
|
|
115014
|
+
};
|
|
115015
|
+
|
|
115016
|
+
/**
|
|
115017
|
+
* Encodes the specified GADAssessmentCompleted message. Does not implicitly {@link GADAssessmentCompleted.verify|verify} messages.
|
|
115018
|
+
* @function encode
|
|
115019
|
+
* @memberof GADAssessmentCompleted
|
|
115020
|
+
* @static
|
|
115021
|
+
* @param {IGADAssessmentCompleted} message GADAssessmentCompleted message or plain object to encode
|
|
115022
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
115023
|
+
* @returns {$protobuf.Writer} Writer
|
|
115024
|
+
*/
|
|
115025
|
+
GADAssessmentCompleted.encode = function encode(message, writer) {
|
|
115026
|
+
if (!writer)
|
|
115027
|
+
writer = $Writer.create();
|
|
115028
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
115029
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
115030
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
115031
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
115032
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
115033
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
|
|
115034
|
+
return writer;
|
|
115035
|
+
};
|
|
115036
|
+
|
|
115037
|
+
/**
|
|
115038
|
+
* Encodes the specified GADAssessmentCompleted message, length delimited. Does not implicitly {@link GADAssessmentCompleted.verify|verify} messages.
|
|
115039
|
+
* @function encodeDelimited
|
|
115040
|
+
* @memberof GADAssessmentCompleted
|
|
115041
|
+
* @static
|
|
115042
|
+
* @param {IGADAssessmentCompleted} message GADAssessmentCompleted message or plain object to encode
|
|
115043
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
115044
|
+
* @returns {$protobuf.Writer} Writer
|
|
115045
|
+
*/
|
|
115046
|
+
GADAssessmentCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
115047
|
+
return this.encode(message, writer).ldelim();
|
|
115048
|
+
};
|
|
115049
|
+
|
|
115050
|
+
/**
|
|
115051
|
+
* Decodes a GADAssessmentCompleted message from the specified reader or buffer.
|
|
115052
|
+
* @function decode
|
|
115053
|
+
* @memberof GADAssessmentCompleted
|
|
115054
|
+
* @static
|
|
115055
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
115056
|
+
* @param {number} [length] Message length if known beforehand
|
|
115057
|
+
* @returns {GADAssessmentCompleted} GADAssessmentCompleted
|
|
115058
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
115059
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
115060
|
+
*/
|
|
115061
|
+
GADAssessmentCompleted.decode = function decode(reader, length) {
|
|
115062
|
+
if (!(reader instanceof $Reader))
|
|
115063
|
+
reader = $Reader.create(reader);
|
|
115064
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GADAssessmentCompleted();
|
|
115065
|
+
while (reader.pos < end) {
|
|
115066
|
+
var tag = reader.uint32();
|
|
115067
|
+
switch (tag >>> 3) {
|
|
115068
|
+
case 1:
|
|
115069
|
+
message.hsUserId = reader.string();
|
|
115070
|
+
break;
|
|
115071
|
+
case 2:
|
|
115072
|
+
message.gingerUserId = reader.uint32();
|
|
115073
|
+
break;
|
|
115074
|
+
case 3:
|
|
115075
|
+
message.completedAtIsoDate = reader.string();
|
|
115076
|
+
break;
|
|
115077
|
+
default:
|
|
115078
|
+
reader.skipType(tag & 7);
|
|
115079
|
+
break;
|
|
115080
|
+
}
|
|
115081
|
+
}
|
|
115082
|
+
return message;
|
|
115083
|
+
};
|
|
115084
|
+
|
|
115085
|
+
/**
|
|
115086
|
+
* Decodes a GADAssessmentCompleted message from the specified reader or buffer, length delimited.
|
|
115087
|
+
* @function decodeDelimited
|
|
115088
|
+
* @memberof GADAssessmentCompleted
|
|
115089
|
+
* @static
|
|
115090
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
115091
|
+
* @returns {GADAssessmentCompleted} GADAssessmentCompleted
|
|
115092
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
115093
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
115094
|
+
*/
|
|
115095
|
+
GADAssessmentCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
115096
|
+
if (!(reader instanceof $Reader))
|
|
115097
|
+
reader = new $Reader(reader);
|
|
115098
|
+
return this.decode(reader, reader.uint32());
|
|
115099
|
+
};
|
|
115100
|
+
|
|
115101
|
+
/**
|
|
115102
|
+
* Verifies a GADAssessmentCompleted message.
|
|
115103
|
+
* @function verify
|
|
115104
|
+
* @memberof GADAssessmentCompleted
|
|
115105
|
+
* @static
|
|
115106
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
115107
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
115108
|
+
*/
|
|
115109
|
+
GADAssessmentCompleted.verify = function verify(message) {
|
|
115110
|
+
if (typeof message !== "object" || message === null)
|
|
115111
|
+
return "object expected";
|
|
115112
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
115113
|
+
if (!$util.isString(message.hsUserId))
|
|
115114
|
+
return "hsUserId: string expected";
|
|
115115
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
115116
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
115117
|
+
return "gingerUserId: integer expected";
|
|
115118
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
115119
|
+
if (!$util.isString(message.completedAtIsoDate))
|
|
115120
|
+
return "completedAtIsoDate: string expected";
|
|
115121
|
+
return null;
|
|
115122
|
+
};
|
|
115123
|
+
|
|
115124
|
+
/**
|
|
115125
|
+
* Creates a GADAssessmentCompleted message from a plain object. Also converts values to their respective internal types.
|
|
115126
|
+
* @function fromObject
|
|
115127
|
+
* @memberof GADAssessmentCompleted
|
|
115128
|
+
* @static
|
|
115129
|
+
* @param {Object.<string,*>} object Plain object
|
|
115130
|
+
* @returns {GADAssessmentCompleted} GADAssessmentCompleted
|
|
115131
|
+
*/
|
|
115132
|
+
GADAssessmentCompleted.fromObject = function fromObject(object) {
|
|
115133
|
+
if (object instanceof $root.GADAssessmentCompleted)
|
|
115134
|
+
return object;
|
|
115135
|
+
var message = new $root.GADAssessmentCompleted();
|
|
115136
|
+
if (object.hsUserId != null)
|
|
115137
|
+
message.hsUserId = String(object.hsUserId);
|
|
115138
|
+
if (object.gingerUserId != null)
|
|
115139
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
115140
|
+
if (object.completedAtIsoDate != null)
|
|
115141
|
+
message.completedAtIsoDate = String(object.completedAtIsoDate);
|
|
115142
|
+
return message;
|
|
115143
|
+
};
|
|
115144
|
+
|
|
115145
|
+
/**
|
|
115146
|
+
* Creates a plain object from a GADAssessmentCompleted message. Also converts values to other types if specified.
|
|
115147
|
+
* @function toObject
|
|
115148
|
+
* @memberof GADAssessmentCompleted
|
|
115149
|
+
* @static
|
|
115150
|
+
* @param {GADAssessmentCompleted} message GADAssessmentCompleted
|
|
115151
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
115152
|
+
* @returns {Object.<string,*>} Plain object
|
|
115153
|
+
*/
|
|
115154
|
+
GADAssessmentCompleted.toObject = function toObject(message, options) {
|
|
115155
|
+
if (!options)
|
|
115156
|
+
options = {};
|
|
115157
|
+
var object = {};
|
|
115158
|
+
if (options.defaults) {
|
|
115159
|
+
object.hsUserId = "";
|
|
115160
|
+
object.gingerUserId = 0;
|
|
115161
|
+
object.completedAtIsoDate = "";
|
|
115162
|
+
}
|
|
115163
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
115164
|
+
object.hsUserId = message.hsUserId;
|
|
115165
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
115166
|
+
object.gingerUserId = message.gingerUserId;
|
|
115167
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
115168
|
+
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
115169
|
+
return object;
|
|
115170
|
+
};
|
|
115171
|
+
|
|
115172
|
+
/**
|
|
115173
|
+
* Converts this GADAssessmentCompleted to JSON.
|
|
115174
|
+
* @function toJSON
|
|
115175
|
+
* @memberof GADAssessmentCompleted
|
|
115176
|
+
* @instance
|
|
115177
|
+
* @returns {Object.<string,*>} JSON object
|
|
115178
|
+
*/
|
|
115179
|
+
GADAssessmentCompleted.prototype.toJSON = function toJSON() {
|
|
115180
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
115181
|
+
};
|
|
115182
|
+
|
|
115183
|
+
return GADAssessmentCompleted;
|
|
115184
|
+
})();
|
|
115185
|
+
|
|
114446
115186
|
$root.GiftRedeemed = (function() {
|
|
114447
115187
|
|
|
114448
115188
|
/**
|
|
@@ -132965,6 +133705,702 @@ $root.PartnerRedemptionRevoked = (function() {
|
|
|
132965
133705
|
return PartnerRedemptionRevoked;
|
|
132966
133706
|
})();
|
|
132967
133707
|
|
|
133708
|
+
$root.PHQAssessmentAssigned = (function() {
|
|
133709
|
+
|
|
133710
|
+
/**
|
|
133711
|
+
* Properties of a PHQAssessmentAssigned.
|
|
133712
|
+
* @name IPHQAssessmentAssigned
|
|
133713
|
+
* @interface IPHQAssessmentAssigned
|
|
133714
|
+
* @property {string|null} [hsUserId] PHQAssessmentAssigned hsUserId
|
|
133715
|
+
* @property {number|null} [gingerUserId] PHQAssessmentAssigned gingerUserId
|
|
133716
|
+
* @property {string|null} [assignedAtIsoDate] PHQAssessmentAssigned assignedAtIsoDate
|
|
133717
|
+
*/
|
|
133718
|
+
|
|
133719
|
+
/**
|
|
133720
|
+
* Constructs a new PHQAssessmentAssigned.
|
|
133721
|
+
* @name PHQAssessmentAssigned
|
|
133722
|
+
* @classdesc Represents a PHQAssessmentAssigned.
|
|
133723
|
+
* @implements IPHQAssessmentAssigned
|
|
133724
|
+
* @constructor
|
|
133725
|
+
* @param {IPHQAssessmentAssigned=} [properties] Properties to set
|
|
133726
|
+
*/
|
|
133727
|
+
function PHQAssessmentAssigned(properties) {
|
|
133728
|
+
if (properties)
|
|
133729
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
133730
|
+
if (properties[keys[i]] != null)
|
|
133731
|
+
this[keys[i]] = properties[keys[i]];
|
|
133732
|
+
}
|
|
133733
|
+
|
|
133734
|
+
/**
|
|
133735
|
+
* PHQAssessmentAssigned hsUserId.
|
|
133736
|
+
* @member {string} hsUserId
|
|
133737
|
+
* @memberof PHQAssessmentAssigned
|
|
133738
|
+
* @instance
|
|
133739
|
+
*/
|
|
133740
|
+
PHQAssessmentAssigned.prototype.hsUserId = "";
|
|
133741
|
+
|
|
133742
|
+
/**
|
|
133743
|
+
* PHQAssessmentAssigned gingerUserId.
|
|
133744
|
+
* @member {number} gingerUserId
|
|
133745
|
+
* @memberof PHQAssessmentAssigned
|
|
133746
|
+
* @instance
|
|
133747
|
+
*/
|
|
133748
|
+
PHQAssessmentAssigned.prototype.gingerUserId = 0;
|
|
133749
|
+
|
|
133750
|
+
/**
|
|
133751
|
+
* PHQAssessmentAssigned assignedAtIsoDate.
|
|
133752
|
+
* @member {string} assignedAtIsoDate
|
|
133753
|
+
* @memberof PHQAssessmentAssigned
|
|
133754
|
+
* @instance
|
|
133755
|
+
*/
|
|
133756
|
+
PHQAssessmentAssigned.prototype.assignedAtIsoDate = "";
|
|
133757
|
+
|
|
133758
|
+
/**
|
|
133759
|
+
* Creates a new PHQAssessmentAssigned instance using the specified properties.
|
|
133760
|
+
* @function create
|
|
133761
|
+
* @memberof PHQAssessmentAssigned
|
|
133762
|
+
* @static
|
|
133763
|
+
* @param {IPHQAssessmentAssigned=} [properties] Properties to set
|
|
133764
|
+
* @returns {PHQAssessmentAssigned} PHQAssessmentAssigned instance
|
|
133765
|
+
*/
|
|
133766
|
+
PHQAssessmentAssigned.create = function create(properties) {
|
|
133767
|
+
return new PHQAssessmentAssigned(properties);
|
|
133768
|
+
};
|
|
133769
|
+
|
|
133770
|
+
/**
|
|
133771
|
+
* Encodes the specified PHQAssessmentAssigned message. Does not implicitly {@link PHQAssessmentAssigned.verify|verify} messages.
|
|
133772
|
+
* @function encode
|
|
133773
|
+
* @memberof PHQAssessmentAssigned
|
|
133774
|
+
* @static
|
|
133775
|
+
* @param {IPHQAssessmentAssigned} message PHQAssessmentAssigned message or plain object to encode
|
|
133776
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
133777
|
+
* @returns {$protobuf.Writer} Writer
|
|
133778
|
+
*/
|
|
133779
|
+
PHQAssessmentAssigned.encode = function encode(message, writer) {
|
|
133780
|
+
if (!writer)
|
|
133781
|
+
writer = $Writer.create();
|
|
133782
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
133783
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
133784
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
133785
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
133786
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
133787
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
133788
|
+
return writer;
|
|
133789
|
+
};
|
|
133790
|
+
|
|
133791
|
+
/**
|
|
133792
|
+
* Encodes the specified PHQAssessmentAssigned message, length delimited. Does not implicitly {@link PHQAssessmentAssigned.verify|verify} messages.
|
|
133793
|
+
* @function encodeDelimited
|
|
133794
|
+
* @memberof PHQAssessmentAssigned
|
|
133795
|
+
* @static
|
|
133796
|
+
* @param {IPHQAssessmentAssigned} message PHQAssessmentAssigned message or plain object to encode
|
|
133797
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
133798
|
+
* @returns {$protobuf.Writer} Writer
|
|
133799
|
+
*/
|
|
133800
|
+
PHQAssessmentAssigned.encodeDelimited = function encodeDelimited(message, writer) {
|
|
133801
|
+
return this.encode(message, writer).ldelim();
|
|
133802
|
+
};
|
|
133803
|
+
|
|
133804
|
+
/**
|
|
133805
|
+
* Decodes a PHQAssessmentAssigned message from the specified reader or buffer.
|
|
133806
|
+
* @function decode
|
|
133807
|
+
* @memberof PHQAssessmentAssigned
|
|
133808
|
+
* @static
|
|
133809
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
133810
|
+
* @param {number} [length] Message length if known beforehand
|
|
133811
|
+
* @returns {PHQAssessmentAssigned} PHQAssessmentAssigned
|
|
133812
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
133813
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
133814
|
+
*/
|
|
133815
|
+
PHQAssessmentAssigned.decode = function decode(reader, length) {
|
|
133816
|
+
if (!(reader instanceof $Reader))
|
|
133817
|
+
reader = $Reader.create(reader);
|
|
133818
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PHQAssessmentAssigned();
|
|
133819
|
+
while (reader.pos < end) {
|
|
133820
|
+
var tag = reader.uint32();
|
|
133821
|
+
switch (tag >>> 3) {
|
|
133822
|
+
case 1:
|
|
133823
|
+
message.hsUserId = reader.string();
|
|
133824
|
+
break;
|
|
133825
|
+
case 2:
|
|
133826
|
+
message.gingerUserId = reader.uint32();
|
|
133827
|
+
break;
|
|
133828
|
+
case 3:
|
|
133829
|
+
message.assignedAtIsoDate = reader.string();
|
|
133830
|
+
break;
|
|
133831
|
+
default:
|
|
133832
|
+
reader.skipType(tag & 7);
|
|
133833
|
+
break;
|
|
133834
|
+
}
|
|
133835
|
+
}
|
|
133836
|
+
return message;
|
|
133837
|
+
};
|
|
133838
|
+
|
|
133839
|
+
/**
|
|
133840
|
+
* Decodes a PHQAssessmentAssigned message from the specified reader or buffer, length delimited.
|
|
133841
|
+
* @function decodeDelimited
|
|
133842
|
+
* @memberof PHQAssessmentAssigned
|
|
133843
|
+
* @static
|
|
133844
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
133845
|
+
* @returns {PHQAssessmentAssigned} PHQAssessmentAssigned
|
|
133846
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
133847
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
133848
|
+
*/
|
|
133849
|
+
PHQAssessmentAssigned.decodeDelimited = function decodeDelimited(reader) {
|
|
133850
|
+
if (!(reader instanceof $Reader))
|
|
133851
|
+
reader = new $Reader(reader);
|
|
133852
|
+
return this.decode(reader, reader.uint32());
|
|
133853
|
+
};
|
|
133854
|
+
|
|
133855
|
+
/**
|
|
133856
|
+
* Verifies a PHQAssessmentAssigned message.
|
|
133857
|
+
* @function verify
|
|
133858
|
+
* @memberof PHQAssessmentAssigned
|
|
133859
|
+
* @static
|
|
133860
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
133861
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
133862
|
+
*/
|
|
133863
|
+
PHQAssessmentAssigned.verify = function verify(message) {
|
|
133864
|
+
if (typeof message !== "object" || message === null)
|
|
133865
|
+
return "object expected";
|
|
133866
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
133867
|
+
if (!$util.isString(message.hsUserId))
|
|
133868
|
+
return "hsUserId: string expected";
|
|
133869
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
133870
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
133871
|
+
return "gingerUserId: integer expected";
|
|
133872
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
133873
|
+
if (!$util.isString(message.assignedAtIsoDate))
|
|
133874
|
+
return "assignedAtIsoDate: string expected";
|
|
133875
|
+
return null;
|
|
133876
|
+
};
|
|
133877
|
+
|
|
133878
|
+
/**
|
|
133879
|
+
* Creates a PHQAssessmentAssigned message from a plain object. Also converts values to their respective internal types.
|
|
133880
|
+
* @function fromObject
|
|
133881
|
+
* @memberof PHQAssessmentAssigned
|
|
133882
|
+
* @static
|
|
133883
|
+
* @param {Object.<string,*>} object Plain object
|
|
133884
|
+
* @returns {PHQAssessmentAssigned} PHQAssessmentAssigned
|
|
133885
|
+
*/
|
|
133886
|
+
PHQAssessmentAssigned.fromObject = function fromObject(object) {
|
|
133887
|
+
if (object instanceof $root.PHQAssessmentAssigned)
|
|
133888
|
+
return object;
|
|
133889
|
+
var message = new $root.PHQAssessmentAssigned();
|
|
133890
|
+
if (object.hsUserId != null)
|
|
133891
|
+
message.hsUserId = String(object.hsUserId);
|
|
133892
|
+
if (object.gingerUserId != null)
|
|
133893
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
133894
|
+
if (object.assignedAtIsoDate != null)
|
|
133895
|
+
message.assignedAtIsoDate = String(object.assignedAtIsoDate);
|
|
133896
|
+
return message;
|
|
133897
|
+
};
|
|
133898
|
+
|
|
133899
|
+
/**
|
|
133900
|
+
* Creates a plain object from a PHQAssessmentAssigned message. Also converts values to other types if specified.
|
|
133901
|
+
* @function toObject
|
|
133902
|
+
* @memberof PHQAssessmentAssigned
|
|
133903
|
+
* @static
|
|
133904
|
+
* @param {PHQAssessmentAssigned} message PHQAssessmentAssigned
|
|
133905
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
133906
|
+
* @returns {Object.<string,*>} Plain object
|
|
133907
|
+
*/
|
|
133908
|
+
PHQAssessmentAssigned.toObject = function toObject(message, options) {
|
|
133909
|
+
if (!options)
|
|
133910
|
+
options = {};
|
|
133911
|
+
var object = {};
|
|
133912
|
+
if (options.defaults) {
|
|
133913
|
+
object.hsUserId = "";
|
|
133914
|
+
object.gingerUserId = 0;
|
|
133915
|
+
object.assignedAtIsoDate = "";
|
|
133916
|
+
}
|
|
133917
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
133918
|
+
object.hsUserId = message.hsUserId;
|
|
133919
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
133920
|
+
object.gingerUserId = message.gingerUserId;
|
|
133921
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
133922
|
+
object.assignedAtIsoDate = message.assignedAtIsoDate;
|
|
133923
|
+
return object;
|
|
133924
|
+
};
|
|
133925
|
+
|
|
133926
|
+
/**
|
|
133927
|
+
* Converts this PHQAssessmentAssigned to JSON.
|
|
133928
|
+
* @function toJSON
|
|
133929
|
+
* @memberof PHQAssessmentAssigned
|
|
133930
|
+
* @instance
|
|
133931
|
+
* @returns {Object.<string,*>} JSON object
|
|
133932
|
+
*/
|
|
133933
|
+
PHQAssessmentAssigned.prototype.toJSON = function toJSON() {
|
|
133934
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
133935
|
+
};
|
|
133936
|
+
|
|
133937
|
+
return PHQAssessmentAssigned;
|
|
133938
|
+
})();
|
|
133939
|
+
|
|
133940
|
+
$root.PHQAssessmentStarted = (function() {
|
|
133941
|
+
|
|
133942
|
+
/**
|
|
133943
|
+
* Properties of a PHQAssessmentStarted.
|
|
133944
|
+
* @name IPHQAssessmentStarted
|
|
133945
|
+
* @interface IPHQAssessmentStarted
|
|
133946
|
+
* @property {string|null} [hsUserId] PHQAssessmentStarted hsUserId
|
|
133947
|
+
* @property {number|null} [gingerUserId] PHQAssessmentStarted gingerUserId
|
|
133948
|
+
* @property {string|null} [startedAtIsoDate] PHQAssessmentStarted startedAtIsoDate
|
|
133949
|
+
*/
|
|
133950
|
+
|
|
133951
|
+
/**
|
|
133952
|
+
* Constructs a new PHQAssessmentStarted.
|
|
133953
|
+
* @name PHQAssessmentStarted
|
|
133954
|
+
* @classdesc Represents a PHQAssessmentStarted.
|
|
133955
|
+
* @implements IPHQAssessmentStarted
|
|
133956
|
+
* @constructor
|
|
133957
|
+
* @param {IPHQAssessmentStarted=} [properties] Properties to set
|
|
133958
|
+
*/
|
|
133959
|
+
function PHQAssessmentStarted(properties) {
|
|
133960
|
+
if (properties)
|
|
133961
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
133962
|
+
if (properties[keys[i]] != null)
|
|
133963
|
+
this[keys[i]] = properties[keys[i]];
|
|
133964
|
+
}
|
|
133965
|
+
|
|
133966
|
+
/**
|
|
133967
|
+
* PHQAssessmentStarted hsUserId.
|
|
133968
|
+
* @member {string} hsUserId
|
|
133969
|
+
* @memberof PHQAssessmentStarted
|
|
133970
|
+
* @instance
|
|
133971
|
+
*/
|
|
133972
|
+
PHQAssessmentStarted.prototype.hsUserId = "";
|
|
133973
|
+
|
|
133974
|
+
/**
|
|
133975
|
+
* PHQAssessmentStarted gingerUserId.
|
|
133976
|
+
* @member {number} gingerUserId
|
|
133977
|
+
* @memberof PHQAssessmentStarted
|
|
133978
|
+
* @instance
|
|
133979
|
+
*/
|
|
133980
|
+
PHQAssessmentStarted.prototype.gingerUserId = 0;
|
|
133981
|
+
|
|
133982
|
+
/**
|
|
133983
|
+
* PHQAssessmentStarted startedAtIsoDate.
|
|
133984
|
+
* @member {string} startedAtIsoDate
|
|
133985
|
+
* @memberof PHQAssessmentStarted
|
|
133986
|
+
* @instance
|
|
133987
|
+
*/
|
|
133988
|
+
PHQAssessmentStarted.prototype.startedAtIsoDate = "";
|
|
133989
|
+
|
|
133990
|
+
/**
|
|
133991
|
+
* Creates a new PHQAssessmentStarted instance using the specified properties.
|
|
133992
|
+
* @function create
|
|
133993
|
+
* @memberof PHQAssessmentStarted
|
|
133994
|
+
* @static
|
|
133995
|
+
* @param {IPHQAssessmentStarted=} [properties] Properties to set
|
|
133996
|
+
* @returns {PHQAssessmentStarted} PHQAssessmentStarted instance
|
|
133997
|
+
*/
|
|
133998
|
+
PHQAssessmentStarted.create = function create(properties) {
|
|
133999
|
+
return new PHQAssessmentStarted(properties);
|
|
134000
|
+
};
|
|
134001
|
+
|
|
134002
|
+
/**
|
|
134003
|
+
* Encodes the specified PHQAssessmentStarted message. Does not implicitly {@link PHQAssessmentStarted.verify|verify} messages.
|
|
134004
|
+
* @function encode
|
|
134005
|
+
* @memberof PHQAssessmentStarted
|
|
134006
|
+
* @static
|
|
134007
|
+
* @param {IPHQAssessmentStarted} message PHQAssessmentStarted message or plain object to encode
|
|
134008
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
134009
|
+
* @returns {$protobuf.Writer} Writer
|
|
134010
|
+
*/
|
|
134011
|
+
PHQAssessmentStarted.encode = function encode(message, writer) {
|
|
134012
|
+
if (!writer)
|
|
134013
|
+
writer = $Writer.create();
|
|
134014
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134015
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
134016
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134017
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
134018
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
134019
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.startedAtIsoDate);
|
|
134020
|
+
return writer;
|
|
134021
|
+
};
|
|
134022
|
+
|
|
134023
|
+
/**
|
|
134024
|
+
* Encodes the specified PHQAssessmentStarted message, length delimited. Does not implicitly {@link PHQAssessmentStarted.verify|verify} messages.
|
|
134025
|
+
* @function encodeDelimited
|
|
134026
|
+
* @memberof PHQAssessmentStarted
|
|
134027
|
+
* @static
|
|
134028
|
+
* @param {IPHQAssessmentStarted} message PHQAssessmentStarted message or plain object to encode
|
|
134029
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
134030
|
+
* @returns {$protobuf.Writer} Writer
|
|
134031
|
+
*/
|
|
134032
|
+
PHQAssessmentStarted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
134033
|
+
return this.encode(message, writer).ldelim();
|
|
134034
|
+
};
|
|
134035
|
+
|
|
134036
|
+
/**
|
|
134037
|
+
* Decodes a PHQAssessmentStarted message from the specified reader or buffer.
|
|
134038
|
+
* @function decode
|
|
134039
|
+
* @memberof PHQAssessmentStarted
|
|
134040
|
+
* @static
|
|
134041
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
134042
|
+
* @param {number} [length] Message length if known beforehand
|
|
134043
|
+
* @returns {PHQAssessmentStarted} PHQAssessmentStarted
|
|
134044
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
134045
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134046
|
+
*/
|
|
134047
|
+
PHQAssessmentStarted.decode = function decode(reader, length) {
|
|
134048
|
+
if (!(reader instanceof $Reader))
|
|
134049
|
+
reader = $Reader.create(reader);
|
|
134050
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PHQAssessmentStarted();
|
|
134051
|
+
while (reader.pos < end) {
|
|
134052
|
+
var tag = reader.uint32();
|
|
134053
|
+
switch (tag >>> 3) {
|
|
134054
|
+
case 1:
|
|
134055
|
+
message.hsUserId = reader.string();
|
|
134056
|
+
break;
|
|
134057
|
+
case 2:
|
|
134058
|
+
message.gingerUserId = reader.uint32();
|
|
134059
|
+
break;
|
|
134060
|
+
case 3:
|
|
134061
|
+
message.startedAtIsoDate = reader.string();
|
|
134062
|
+
break;
|
|
134063
|
+
default:
|
|
134064
|
+
reader.skipType(tag & 7);
|
|
134065
|
+
break;
|
|
134066
|
+
}
|
|
134067
|
+
}
|
|
134068
|
+
return message;
|
|
134069
|
+
};
|
|
134070
|
+
|
|
134071
|
+
/**
|
|
134072
|
+
* Decodes a PHQAssessmentStarted message from the specified reader or buffer, length delimited.
|
|
134073
|
+
* @function decodeDelimited
|
|
134074
|
+
* @memberof PHQAssessmentStarted
|
|
134075
|
+
* @static
|
|
134076
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
134077
|
+
* @returns {PHQAssessmentStarted} PHQAssessmentStarted
|
|
134078
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
134079
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134080
|
+
*/
|
|
134081
|
+
PHQAssessmentStarted.decodeDelimited = function decodeDelimited(reader) {
|
|
134082
|
+
if (!(reader instanceof $Reader))
|
|
134083
|
+
reader = new $Reader(reader);
|
|
134084
|
+
return this.decode(reader, reader.uint32());
|
|
134085
|
+
};
|
|
134086
|
+
|
|
134087
|
+
/**
|
|
134088
|
+
* Verifies a PHQAssessmentStarted message.
|
|
134089
|
+
* @function verify
|
|
134090
|
+
* @memberof PHQAssessmentStarted
|
|
134091
|
+
* @static
|
|
134092
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
134093
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
134094
|
+
*/
|
|
134095
|
+
PHQAssessmentStarted.verify = function verify(message) {
|
|
134096
|
+
if (typeof message !== "object" || message === null)
|
|
134097
|
+
return "object expected";
|
|
134098
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134099
|
+
if (!$util.isString(message.hsUserId))
|
|
134100
|
+
return "hsUserId: string expected";
|
|
134101
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134102
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
134103
|
+
return "gingerUserId: integer expected";
|
|
134104
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
134105
|
+
if (!$util.isString(message.startedAtIsoDate))
|
|
134106
|
+
return "startedAtIsoDate: string expected";
|
|
134107
|
+
return null;
|
|
134108
|
+
};
|
|
134109
|
+
|
|
134110
|
+
/**
|
|
134111
|
+
* Creates a PHQAssessmentStarted message from a plain object. Also converts values to their respective internal types.
|
|
134112
|
+
* @function fromObject
|
|
134113
|
+
* @memberof PHQAssessmentStarted
|
|
134114
|
+
* @static
|
|
134115
|
+
* @param {Object.<string,*>} object Plain object
|
|
134116
|
+
* @returns {PHQAssessmentStarted} PHQAssessmentStarted
|
|
134117
|
+
*/
|
|
134118
|
+
PHQAssessmentStarted.fromObject = function fromObject(object) {
|
|
134119
|
+
if (object instanceof $root.PHQAssessmentStarted)
|
|
134120
|
+
return object;
|
|
134121
|
+
var message = new $root.PHQAssessmentStarted();
|
|
134122
|
+
if (object.hsUserId != null)
|
|
134123
|
+
message.hsUserId = String(object.hsUserId);
|
|
134124
|
+
if (object.gingerUserId != null)
|
|
134125
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
134126
|
+
if (object.startedAtIsoDate != null)
|
|
134127
|
+
message.startedAtIsoDate = String(object.startedAtIsoDate);
|
|
134128
|
+
return message;
|
|
134129
|
+
};
|
|
134130
|
+
|
|
134131
|
+
/**
|
|
134132
|
+
* Creates a plain object from a PHQAssessmentStarted message. Also converts values to other types if specified.
|
|
134133
|
+
* @function toObject
|
|
134134
|
+
* @memberof PHQAssessmentStarted
|
|
134135
|
+
* @static
|
|
134136
|
+
* @param {PHQAssessmentStarted} message PHQAssessmentStarted
|
|
134137
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
134138
|
+
* @returns {Object.<string,*>} Plain object
|
|
134139
|
+
*/
|
|
134140
|
+
PHQAssessmentStarted.toObject = function toObject(message, options) {
|
|
134141
|
+
if (!options)
|
|
134142
|
+
options = {};
|
|
134143
|
+
var object = {};
|
|
134144
|
+
if (options.defaults) {
|
|
134145
|
+
object.hsUserId = "";
|
|
134146
|
+
object.gingerUserId = 0;
|
|
134147
|
+
object.startedAtIsoDate = "";
|
|
134148
|
+
}
|
|
134149
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134150
|
+
object.hsUserId = message.hsUserId;
|
|
134151
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134152
|
+
object.gingerUserId = message.gingerUserId;
|
|
134153
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
134154
|
+
object.startedAtIsoDate = message.startedAtIsoDate;
|
|
134155
|
+
return object;
|
|
134156
|
+
};
|
|
134157
|
+
|
|
134158
|
+
/**
|
|
134159
|
+
* Converts this PHQAssessmentStarted to JSON.
|
|
134160
|
+
* @function toJSON
|
|
134161
|
+
* @memberof PHQAssessmentStarted
|
|
134162
|
+
* @instance
|
|
134163
|
+
* @returns {Object.<string,*>} JSON object
|
|
134164
|
+
*/
|
|
134165
|
+
PHQAssessmentStarted.prototype.toJSON = function toJSON() {
|
|
134166
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
134167
|
+
};
|
|
134168
|
+
|
|
134169
|
+
return PHQAssessmentStarted;
|
|
134170
|
+
})();
|
|
134171
|
+
|
|
134172
|
+
$root.PHQAssessmentCompleted = (function() {
|
|
134173
|
+
|
|
134174
|
+
/**
|
|
134175
|
+
* Properties of a PHQAssessmentCompleted.
|
|
134176
|
+
* @name IPHQAssessmentCompleted
|
|
134177
|
+
* @interface IPHQAssessmentCompleted
|
|
134178
|
+
* @property {string|null} [hsUserId] PHQAssessmentCompleted hsUserId
|
|
134179
|
+
* @property {number|null} [gingerUserId] PHQAssessmentCompleted gingerUserId
|
|
134180
|
+
* @property {string|null} [completedAtIsoDate] PHQAssessmentCompleted completedAtIsoDate
|
|
134181
|
+
*/
|
|
134182
|
+
|
|
134183
|
+
/**
|
|
134184
|
+
* Constructs a new PHQAssessmentCompleted.
|
|
134185
|
+
* @name PHQAssessmentCompleted
|
|
134186
|
+
* @classdesc Represents a PHQAssessmentCompleted.
|
|
134187
|
+
* @implements IPHQAssessmentCompleted
|
|
134188
|
+
* @constructor
|
|
134189
|
+
* @param {IPHQAssessmentCompleted=} [properties] Properties to set
|
|
134190
|
+
*/
|
|
134191
|
+
function PHQAssessmentCompleted(properties) {
|
|
134192
|
+
if (properties)
|
|
134193
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
134194
|
+
if (properties[keys[i]] != null)
|
|
134195
|
+
this[keys[i]] = properties[keys[i]];
|
|
134196
|
+
}
|
|
134197
|
+
|
|
134198
|
+
/**
|
|
134199
|
+
* PHQAssessmentCompleted hsUserId.
|
|
134200
|
+
* @member {string} hsUserId
|
|
134201
|
+
* @memberof PHQAssessmentCompleted
|
|
134202
|
+
* @instance
|
|
134203
|
+
*/
|
|
134204
|
+
PHQAssessmentCompleted.prototype.hsUserId = "";
|
|
134205
|
+
|
|
134206
|
+
/**
|
|
134207
|
+
* PHQAssessmentCompleted gingerUserId.
|
|
134208
|
+
* @member {number} gingerUserId
|
|
134209
|
+
* @memberof PHQAssessmentCompleted
|
|
134210
|
+
* @instance
|
|
134211
|
+
*/
|
|
134212
|
+
PHQAssessmentCompleted.prototype.gingerUserId = 0;
|
|
134213
|
+
|
|
134214
|
+
/**
|
|
134215
|
+
* PHQAssessmentCompleted completedAtIsoDate.
|
|
134216
|
+
* @member {string} completedAtIsoDate
|
|
134217
|
+
* @memberof PHQAssessmentCompleted
|
|
134218
|
+
* @instance
|
|
134219
|
+
*/
|
|
134220
|
+
PHQAssessmentCompleted.prototype.completedAtIsoDate = "";
|
|
134221
|
+
|
|
134222
|
+
/**
|
|
134223
|
+
* Creates a new PHQAssessmentCompleted instance using the specified properties.
|
|
134224
|
+
* @function create
|
|
134225
|
+
* @memberof PHQAssessmentCompleted
|
|
134226
|
+
* @static
|
|
134227
|
+
* @param {IPHQAssessmentCompleted=} [properties] Properties to set
|
|
134228
|
+
* @returns {PHQAssessmentCompleted} PHQAssessmentCompleted instance
|
|
134229
|
+
*/
|
|
134230
|
+
PHQAssessmentCompleted.create = function create(properties) {
|
|
134231
|
+
return new PHQAssessmentCompleted(properties);
|
|
134232
|
+
};
|
|
134233
|
+
|
|
134234
|
+
/**
|
|
134235
|
+
* Encodes the specified PHQAssessmentCompleted message. Does not implicitly {@link PHQAssessmentCompleted.verify|verify} messages.
|
|
134236
|
+
* @function encode
|
|
134237
|
+
* @memberof PHQAssessmentCompleted
|
|
134238
|
+
* @static
|
|
134239
|
+
* @param {IPHQAssessmentCompleted} message PHQAssessmentCompleted message or plain object to encode
|
|
134240
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
134241
|
+
* @returns {$protobuf.Writer} Writer
|
|
134242
|
+
*/
|
|
134243
|
+
PHQAssessmentCompleted.encode = function encode(message, writer) {
|
|
134244
|
+
if (!writer)
|
|
134245
|
+
writer = $Writer.create();
|
|
134246
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134247
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
134248
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134249
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
134250
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
134251
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
|
|
134252
|
+
return writer;
|
|
134253
|
+
};
|
|
134254
|
+
|
|
134255
|
+
/**
|
|
134256
|
+
* Encodes the specified PHQAssessmentCompleted message, length delimited. Does not implicitly {@link PHQAssessmentCompleted.verify|verify} messages.
|
|
134257
|
+
* @function encodeDelimited
|
|
134258
|
+
* @memberof PHQAssessmentCompleted
|
|
134259
|
+
* @static
|
|
134260
|
+
* @param {IPHQAssessmentCompleted} message PHQAssessmentCompleted message or plain object to encode
|
|
134261
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
134262
|
+
* @returns {$protobuf.Writer} Writer
|
|
134263
|
+
*/
|
|
134264
|
+
PHQAssessmentCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
134265
|
+
return this.encode(message, writer).ldelim();
|
|
134266
|
+
};
|
|
134267
|
+
|
|
134268
|
+
/**
|
|
134269
|
+
* Decodes a PHQAssessmentCompleted message from the specified reader or buffer.
|
|
134270
|
+
* @function decode
|
|
134271
|
+
* @memberof PHQAssessmentCompleted
|
|
134272
|
+
* @static
|
|
134273
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
134274
|
+
* @param {number} [length] Message length if known beforehand
|
|
134275
|
+
* @returns {PHQAssessmentCompleted} PHQAssessmentCompleted
|
|
134276
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
134277
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134278
|
+
*/
|
|
134279
|
+
PHQAssessmentCompleted.decode = function decode(reader, length) {
|
|
134280
|
+
if (!(reader instanceof $Reader))
|
|
134281
|
+
reader = $Reader.create(reader);
|
|
134282
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PHQAssessmentCompleted();
|
|
134283
|
+
while (reader.pos < end) {
|
|
134284
|
+
var tag = reader.uint32();
|
|
134285
|
+
switch (tag >>> 3) {
|
|
134286
|
+
case 1:
|
|
134287
|
+
message.hsUserId = reader.string();
|
|
134288
|
+
break;
|
|
134289
|
+
case 2:
|
|
134290
|
+
message.gingerUserId = reader.uint32();
|
|
134291
|
+
break;
|
|
134292
|
+
case 3:
|
|
134293
|
+
message.completedAtIsoDate = reader.string();
|
|
134294
|
+
break;
|
|
134295
|
+
default:
|
|
134296
|
+
reader.skipType(tag & 7);
|
|
134297
|
+
break;
|
|
134298
|
+
}
|
|
134299
|
+
}
|
|
134300
|
+
return message;
|
|
134301
|
+
};
|
|
134302
|
+
|
|
134303
|
+
/**
|
|
134304
|
+
* Decodes a PHQAssessmentCompleted message from the specified reader or buffer, length delimited.
|
|
134305
|
+
* @function decodeDelimited
|
|
134306
|
+
* @memberof PHQAssessmentCompleted
|
|
134307
|
+
* @static
|
|
134308
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
134309
|
+
* @returns {PHQAssessmentCompleted} PHQAssessmentCompleted
|
|
134310
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
134311
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134312
|
+
*/
|
|
134313
|
+
PHQAssessmentCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
134314
|
+
if (!(reader instanceof $Reader))
|
|
134315
|
+
reader = new $Reader(reader);
|
|
134316
|
+
return this.decode(reader, reader.uint32());
|
|
134317
|
+
};
|
|
134318
|
+
|
|
134319
|
+
/**
|
|
134320
|
+
* Verifies a PHQAssessmentCompleted message.
|
|
134321
|
+
* @function verify
|
|
134322
|
+
* @memberof PHQAssessmentCompleted
|
|
134323
|
+
* @static
|
|
134324
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
134325
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
134326
|
+
*/
|
|
134327
|
+
PHQAssessmentCompleted.verify = function verify(message) {
|
|
134328
|
+
if (typeof message !== "object" || message === null)
|
|
134329
|
+
return "object expected";
|
|
134330
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134331
|
+
if (!$util.isString(message.hsUserId))
|
|
134332
|
+
return "hsUserId: string expected";
|
|
134333
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134334
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
134335
|
+
return "gingerUserId: integer expected";
|
|
134336
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
134337
|
+
if (!$util.isString(message.completedAtIsoDate))
|
|
134338
|
+
return "completedAtIsoDate: string expected";
|
|
134339
|
+
return null;
|
|
134340
|
+
};
|
|
134341
|
+
|
|
134342
|
+
/**
|
|
134343
|
+
* Creates a PHQAssessmentCompleted message from a plain object. Also converts values to their respective internal types.
|
|
134344
|
+
* @function fromObject
|
|
134345
|
+
* @memberof PHQAssessmentCompleted
|
|
134346
|
+
* @static
|
|
134347
|
+
* @param {Object.<string,*>} object Plain object
|
|
134348
|
+
* @returns {PHQAssessmentCompleted} PHQAssessmentCompleted
|
|
134349
|
+
*/
|
|
134350
|
+
PHQAssessmentCompleted.fromObject = function fromObject(object) {
|
|
134351
|
+
if (object instanceof $root.PHQAssessmentCompleted)
|
|
134352
|
+
return object;
|
|
134353
|
+
var message = new $root.PHQAssessmentCompleted();
|
|
134354
|
+
if (object.hsUserId != null)
|
|
134355
|
+
message.hsUserId = String(object.hsUserId);
|
|
134356
|
+
if (object.gingerUserId != null)
|
|
134357
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
134358
|
+
if (object.completedAtIsoDate != null)
|
|
134359
|
+
message.completedAtIsoDate = String(object.completedAtIsoDate);
|
|
134360
|
+
return message;
|
|
134361
|
+
};
|
|
134362
|
+
|
|
134363
|
+
/**
|
|
134364
|
+
* Creates a plain object from a PHQAssessmentCompleted message. Also converts values to other types if specified.
|
|
134365
|
+
* @function toObject
|
|
134366
|
+
* @memberof PHQAssessmentCompleted
|
|
134367
|
+
* @static
|
|
134368
|
+
* @param {PHQAssessmentCompleted} message PHQAssessmentCompleted
|
|
134369
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
134370
|
+
* @returns {Object.<string,*>} Plain object
|
|
134371
|
+
*/
|
|
134372
|
+
PHQAssessmentCompleted.toObject = function toObject(message, options) {
|
|
134373
|
+
if (!options)
|
|
134374
|
+
options = {};
|
|
134375
|
+
var object = {};
|
|
134376
|
+
if (options.defaults) {
|
|
134377
|
+
object.hsUserId = "";
|
|
134378
|
+
object.gingerUserId = 0;
|
|
134379
|
+
object.completedAtIsoDate = "";
|
|
134380
|
+
}
|
|
134381
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134382
|
+
object.hsUserId = message.hsUserId;
|
|
134383
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134384
|
+
object.gingerUserId = message.gingerUserId;
|
|
134385
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
134386
|
+
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
134387
|
+
return object;
|
|
134388
|
+
};
|
|
134389
|
+
|
|
134390
|
+
/**
|
|
134391
|
+
* Converts this PHQAssessmentCompleted to JSON.
|
|
134392
|
+
* @function toJSON
|
|
134393
|
+
* @memberof PHQAssessmentCompleted
|
|
134394
|
+
* @instance
|
|
134395
|
+
* @returns {Object.<string,*>} JSON object
|
|
134396
|
+
*/
|
|
134397
|
+
PHQAssessmentCompleted.prototype.toJSON = function toJSON() {
|
|
134398
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
134399
|
+
};
|
|
134400
|
+
|
|
134401
|
+
return PHQAssessmentCompleted;
|
|
134402
|
+
})();
|
|
134403
|
+
|
|
132968
134404
|
$root.WakeupPlaylistCreated = (function() {
|
|
132969
134405
|
|
|
132970
134406
|
/**
|
|
@@ -140957,6 +142393,702 @@ $root.ProductSkuVersioned = (function() {
|
|
|
140957
142393
|
return ProductSkuVersioned;
|
|
140958
142394
|
})();
|
|
140959
142395
|
|
|
142396
|
+
$root.PSSAssessmentAssigned = (function() {
|
|
142397
|
+
|
|
142398
|
+
/**
|
|
142399
|
+
* Properties of a PSSAssessmentAssigned.
|
|
142400
|
+
* @name IPSSAssessmentAssigned
|
|
142401
|
+
* @interface IPSSAssessmentAssigned
|
|
142402
|
+
* @property {string|null} [hsUserId] PSSAssessmentAssigned hsUserId
|
|
142403
|
+
* @property {number|null} [gingerUserId] PSSAssessmentAssigned gingerUserId
|
|
142404
|
+
* @property {string|null} [assignedAtIsoDate] PSSAssessmentAssigned assignedAtIsoDate
|
|
142405
|
+
*/
|
|
142406
|
+
|
|
142407
|
+
/**
|
|
142408
|
+
* Constructs a new PSSAssessmentAssigned.
|
|
142409
|
+
* @name PSSAssessmentAssigned
|
|
142410
|
+
* @classdesc Represents a PSSAssessmentAssigned.
|
|
142411
|
+
* @implements IPSSAssessmentAssigned
|
|
142412
|
+
* @constructor
|
|
142413
|
+
* @param {IPSSAssessmentAssigned=} [properties] Properties to set
|
|
142414
|
+
*/
|
|
142415
|
+
function PSSAssessmentAssigned(properties) {
|
|
142416
|
+
if (properties)
|
|
142417
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
142418
|
+
if (properties[keys[i]] != null)
|
|
142419
|
+
this[keys[i]] = properties[keys[i]];
|
|
142420
|
+
}
|
|
142421
|
+
|
|
142422
|
+
/**
|
|
142423
|
+
* PSSAssessmentAssigned hsUserId.
|
|
142424
|
+
* @member {string} hsUserId
|
|
142425
|
+
* @memberof PSSAssessmentAssigned
|
|
142426
|
+
* @instance
|
|
142427
|
+
*/
|
|
142428
|
+
PSSAssessmentAssigned.prototype.hsUserId = "";
|
|
142429
|
+
|
|
142430
|
+
/**
|
|
142431
|
+
* PSSAssessmentAssigned gingerUserId.
|
|
142432
|
+
* @member {number} gingerUserId
|
|
142433
|
+
* @memberof PSSAssessmentAssigned
|
|
142434
|
+
* @instance
|
|
142435
|
+
*/
|
|
142436
|
+
PSSAssessmentAssigned.prototype.gingerUserId = 0;
|
|
142437
|
+
|
|
142438
|
+
/**
|
|
142439
|
+
* PSSAssessmentAssigned assignedAtIsoDate.
|
|
142440
|
+
* @member {string} assignedAtIsoDate
|
|
142441
|
+
* @memberof PSSAssessmentAssigned
|
|
142442
|
+
* @instance
|
|
142443
|
+
*/
|
|
142444
|
+
PSSAssessmentAssigned.prototype.assignedAtIsoDate = "";
|
|
142445
|
+
|
|
142446
|
+
/**
|
|
142447
|
+
* Creates a new PSSAssessmentAssigned instance using the specified properties.
|
|
142448
|
+
* @function create
|
|
142449
|
+
* @memberof PSSAssessmentAssigned
|
|
142450
|
+
* @static
|
|
142451
|
+
* @param {IPSSAssessmentAssigned=} [properties] Properties to set
|
|
142452
|
+
* @returns {PSSAssessmentAssigned} PSSAssessmentAssigned instance
|
|
142453
|
+
*/
|
|
142454
|
+
PSSAssessmentAssigned.create = function create(properties) {
|
|
142455
|
+
return new PSSAssessmentAssigned(properties);
|
|
142456
|
+
};
|
|
142457
|
+
|
|
142458
|
+
/**
|
|
142459
|
+
* Encodes the specified PSSAssessmentAssigned message. Does not implicitly {@link PSSAssessmentAssigned.verify|verify} messages.
|
|
142460
|
+
* @function encode
|
|
142461
|
+
* @memberof PSSAssessmentAssigned
|
|
142462
|
+
* @static
|
|
142463
|
+
* @param {IPSSAssessmentAssigned} message PSSAssessmentAssigned message or plain object to encode
|
|
142464
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142465
|
+
* @returns {$protobuf.Writer} Writer
|
|
142466
|
+
*/
|
|
142467
|
+
PSSAssessmentAssigned.encode = function encode(message, writer) {
|
|
142468
|
+
if (!writer)
|
|
142469
|
+
writer = $Writer.create();
|
|
142470
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142471
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
142472
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142473
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
142474
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
142475
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
142476
|
+
return writer;
|
|
142477
|
+
};
|
|
142478
|
+
|
|
142479
|
+
/**
|
|
142480
|
+
* Encodes the specified PSSAssessmentAssigned message, length delimited. Does not implicitly {@link PSSAssessmentAssigned.verify|verify} messages.
|
|
142481
|
+
* @function encodeDelimited
|
|
142482
|
+
* @memberof PSSAssessmentAssigned
|
|
142483
|
+
* @static
|
|
142484
|
+
* @param {IPSSAssessmentAssigned} message PSSAssessmentAssigned message or plain object to encode
|
|
142485
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142486
|
+
* @returns {$protobuf.Writer} Writer
|
|
142487
|
+
*/
|
|
142488
|
+
PSSAssessmentAssigned.encodeDelimited = function encodeDelimited(message, writer) {
|
|
142489
|
+
return this.encode(message, writer).ldelim();
|
|
142490
|
+
};
|
|
142491
|
+
|
|
142492
|
+
/**
|
|
142493
|
+
* Decodes a PSSAssessmentAssigned message from the specified reader or buffer.
|
|
142494
|
+
* @function decode
|
|
142495
|
+
* @memberof PSSAssessmentAssigned
|
|
142496
|
+
* @static
|
|
142497
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142498
|
+
* @param {number} [length] Message length if known beforehand
|
|
142499
|
+
* @returns {PSSAssessmentAssigned} PSSAssessmentAssigned
|
|
142500
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142501
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142502
|
+
*/
|
|
142503
|
+
PSSAssessmentAssigned.decode = function decode(reader, length) {
|
|
142504
|
+
if (!(reader instanceof $Reader))
|
|
142505
|
+
reader = $Reader.create(reader);
|
|
142506
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PSSAssessmentAssigned();
|
|
142507
|
+
while (reader.pos < end) {
|
|
142508
|
+
var tag = reader.uint32();
|
|
142509
|
+
switch (tag >>> 3) {
|
|
142510
|
+
case 1:
|
|
142511
|
+
message.hsUserId = reader.string();
|
|
142512
|
+
break;
|
|
142513
|
+
case 2:
|
|
142514
|
+
message.gingerUserId = reader.uint32();
|
|
142515
|
+
break;
|
|
142516
|
+
case 3:
|
|
142517
|
+
message.assignedAtIsoDate = reader.string();
|
|
142518
|
+
break;
|
|
142519
|
+
default:
|
|
142520
|
+
reader.skipType(tag & 7);
|
|
142521
|
+
break;
|
|
142522
|
+
}
|
|
142523
|
+
}
|
|
142524
|
+
return message;
|
|
142525
|
+
};
|
|
142526
|
+
|
|
142527
|
+
/**
|
|
142528
|
+
* Decodes a PSSAssessmentAssigned message from the specified reader or buffer, length delimited.
|
|
142529
|
+
* @function decodeDelimited
|
|
142530
|
+
* @memberof PSSAssessmentAssigned
|
|
142531
|
+
* @static
|
|
142532
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142533
|
+
* @returns {PSSAssessmentAssigned} PSSAssessmentAssigned
|
|
142534
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142535
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142536
|
+
*/
|
|
142537
|
+
PSSAssessmentAssigned.decodeDelimited = function decodeDelimited(reader) {
|
|
142538
|
+
if (!(reader instanceof $Reader))
|
|
142539
|
+
reader = new $Reader(reader);
|
|
142540
|
+
return this.decode(reader, reader.uint32());
|
|
142541
|
+
};
|
|
142542
|
+
|
|
142543
|
+
/**
|
|
142544
|
+
* Verifies a PSSAssessmentAssigned message.
|
|
142545
|
+
* @function verify
|
|
142546
|
+
* @memberof PSSAssessmentAssigned
|
|
142547
|
+
* @static
|
|
142548
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
142549
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
142550
|
+
*/
|
|
142551
|
+
PSSAssessmentAssigned.verify = function verify(message) {
|
|
142552
|
+
if (typeof message !== "object" || message === null)
|
|
142553
|
+
return "object expected";
|
|
142554
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142555
|
+
if (!$util.isString(message.hsUserId))
|
|
142556
|
+
return "hsUserId: string expected";
|
|
142557
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142558
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
142559
|
+
return "gingerUserId: integer expected";
|
|
142560
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
142561
|
+
if (!$util.isString(message.assignedAtIsoDate))
|
|
142562
|
+
return "assignedAtIsoDate: string expected";
|
|
142563
|
+
return null;
|
|
142564
|
+
};
|
|
142565
|
+
|
|
142566
|
+
/**
|
|
142567
|
+
* Creates a PSSAssessmentAssigned message from a plain object. Also converts values to their respective internal types.
|
|
142568
|
+
* @function fromObject
|
|
142569
|
+
* @memberof PSSAssessmentAssigned
|
|
142570
|
+
* @static
|
|
142571
|
+
* @param {Object.<string,*>} object Plain object
|
|
142572
|
+
* @returns {PSSAssessmentAssigned} PSSAssessmentAssigned
|
|
142573
|
+
*/
|
|
142574
|
+
PSSAssessmentAssigned.fromObject = function fromObject(object) {
|
|
142575
|
+
if (object instanceof $root.PSSAssessmentAssigned)
|
|
142576
|
+
return object;
|
|
142577
|
+
var message = new $root.PSSAssessmentAssigned();
|
|
142578
|
+
if (object.hsUserId != null)
|
|
142579
|
+
message.hsUserId = String(object.hsUserId);
|
|
142580
|
+
if (object.gingerUserId != null)
|
|
142581
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
142582
|
+
if (object.assignedAtIsoDate != null)
|
|
142583
|
+
message.assignedAtIsoDate = String(object.assignedAtIsoDate);
|
|
142584
|
+
return message;
|
|
142585
|
+
};
|
|
142586
|
+
|
|
142587
|
+
/**
|
|
142588
|
+
* Creates a plain object from a PSSAssessmentAssigned message. Also converts values to other types if specified.
|
|
142589
|
+
* @function toObject
|
|
142590
|
+
* @memberof PSSAssessmentAssigned
|
|
142591
|
+
* @static
|
|
142592
|
+
* @param {PSSAssessmentAssigned} message PSSAssessmentAssigned
|
|
142593
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
142594
|
+
* @returns {Object.<string,*>} Plain object
|
|
142595
|
+
*/
|
|
142596
|
+
PSSAssessmentAssigned.toObject = function toObject(message, options) {
|
|
142597
|
+
if (!options)
|
|
142598
|
+
options = {};
|
|
142599
|
+
var object = {};
|
|
142600
|
+
if (options.defaults) {
|
|
142601
|
+
object.hsUserId = "";
|
|
142602
|
+
object.gingerUserId = 0;
|
|
142603
|
+
object.assignedAtIsoDate = "";
|
|
142604
|
+
}
|
|
142605
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142606
|
+
object.hsUserId = message.hsUserId;
|
|
142607
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142608
|
+
object.gingerUserId = message.gingerUserId;
|
|
142609
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
142610
|
+
object.assignedAtIsoDate = message.assignedAtIsoDate;
|
|
142611
|
+
return object;
|
|
142612
|
+
};
|
|
142613
|
+
|
|
142614
|
+
/**
|
|
142615
|
+
* Converts this PSSAssessmentAssigned to JSON.
|
|
142616
|
+
* @function toJSON
|
|
142617
|
+
* @memberof PSSAssessmentAssigned
|
|
142618
|
+
* @instance
|
|
142619
|
+
* @returns {Object.<string,*>} JSON object
|
|
142620
|
+
*/
|
|
142621
|
+
PSSAssessmentAssigned.prototype.toJSON = function toJSON() {
|
|
142622
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
142623
|
+
};
|
|
142624
|
+
|
|
142625
|
+
return PSSAssessmentAssigned;
|
|
142626
|
+
})();
|
|
142627
|
+
|
|
142628
|
+
$root.PSSAssessmentStarted = (function() {
|
|
142629
|
+
|
|
142630
|
+
/**
|
|
142631
|
+
* Properties of a PSSAssessmentStarted.
|
|
142632
|
+
* @name IPSSAssessmentStarted
|
|
142633
|
+
* @interface IPSSAssessmentStarted
|
|
142634
|
+
* @property {string|null} [hsUserId] PSSAssessmentStarted hsUserId
|
|
142635
|
+
* @property {number|null} [gingerUserId] PSSAssessmentStarted gingerUserId
|
|
142636
|
+
* @property {string|null} [startedAtIsoDate] PSSAssessmentStarted startedAtIsoDate
|
|
142637
|
+
*/
|
|
142638
|
+
|
|
142639
|
+
/**
|
|
142640
|
+
* Constructs a new PSSAssessmentStarted.
|
|
142641
|
+
* @name PSSAssessmentStarted
|
|
142642
|
+
* @classdesc Represents a PSSAssessmentStarted.
|
|
142643
|
+
* @implements IPSSAssessmentStarted
|
|
142644
|
+
* @constructor
|
|
142645
|
+
* @param {IPSSAssessmentStarted=} [properties] Properties to set
|
|
142646
|
+
*/
|
|
142647
|
+
function PSSAssessmentStarted(properties) {
|
|
142648
|
+
if (properties)
|
|
142649
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
142650
|
+
if (properties[keys[i]] != null)
|
|
142651
|
+
this[keys[i]] = properties[keys[i]];
|
|
142652
|
+
}
|
|
142653
|
+
|
|
142654
|
+
/**
|
|
142655
|
+
* PSSAssessmentStarted hsUserId.
|
|
142656
|
+
* @member {string} hsUserId
|
|
142657
|
+
* @memberof PSSAssessmentStarted
|
|
142658
|
+
* @instance
|
|
142659
|
+
*/
|
|
142660
|
+
PSSAssessmentStarted.prototype.hsUserId = "";
|
|
142661
|
+
|
|
142662
|
+
/**
|
|
142663
|
+
* PSSAssessmentStarted gingerUserId.
|
|
142664
|
+
* @member {number} gingerUserId
|
|
142665
|
+
* @memberof PSSAssessmentStarted
|
|
142666
|
+
* @instance
|
|
142667
|
+
*/
|
|
142668
|
+
PSSAssessmentStarted.prototype.gingerUserId = 0;
|
|
142669
|
+
|
|
142670
|
+
/**
|
|
142671
|
+
* PSSAssessmentStarted startedAtIsoDate.
|
|
142672
|
+
* @member {string} startedAtIsoDate
|
|
142673
|
+
* @memberof PSSAssessmentStarted
|
|
142674
|
+
* @instance
|
|
142675
|
+
*/
|
|
142676
|
+
PSSAssessmentStarted.prototype.startedAtIsoDate = "";
|
|
142677
|
+
|
|
142678
|
+
/**
|
|
142679
|
+
* Creates a new PSSAssessmentStarted instance using the specified properties.
|
|
142680
|
+
* @function create
|
|
142681
|
+
* @memberof PSSAssessmentStarted
|
|
142682
|
+
* @static
|
|
142683
|
+
* @param {IPSSAssessmentStarted=} [properties] Properties to set
|
|
142684
|
+
* @returns {PSSAssessmentStarted} PSSAssessmentStarted instance
|
|
142685
|
+
*/
|
|
142686
|
+
PSSAssessmentStarted.create = function create(properties) {
|
|
142687
|
+
return new PSSAssessmentStarted(properties);
|
|
142688
|
+
};
|
|
142689
|
+
|
|
142690
|
+
/**
|
|
142691
|
+
* Encodes the specified PSSAssessmentStarted message. Does not implicitly {@link PSSAssessmentStarted.verify|verify} messages.
|
|
142692
|
+
* @function encode
|
|
142693
|
+
* @memberof PSSAssessmentStarted
|
|
142694
|
+
* @static
|
|
142695
|
+
* @param {IPSSAssessmentStarted} message PSSAssessmentStarted message or plain object to encode
|
|
142696
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142697
|
+
* @returns {$protobuf.Writer} Writer
|
|
142698
|
+
*/
|
|
142699
|
+
PSSAssessmentStarted.encode = function encode(message, writer) {
|
|
142700
|
+
if (!writer)
|
|
142701
|
+
writer = $Writer.create();
|
|
142702
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142703
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
142704
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142705
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
142706
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
142707
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.startedAtIsoDate);
|
|
142708
|
+
return writer;
|
|
142709
|
+
};
|
|
142710
|
+
|
|
142711
|
+
/**
|
|
142712
|
+
* Encodes the specified PSSAssessmentStarted message, length delimited. Does not implicitly {@link PSSAssessmentStarted.verify|verify} messages.
|
|
142713
|
+
* @function encodeDelimited
|
|
142714
|
+
* @memberof PSSAssessmentStarted
|
|
142715
|
+
* @static
|
|
142716
|
+
* @param {IPSSAssessmentStarted} message PSSAssessmentStarted message or plain object to encode
|
|
142717
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142718
|
+
* @returns {$protobuf.Writer} Writer
|
|
142719
|
+
*/
|
|
142720
|
+
PSSAssessmentStarted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
142721
|
+
return this.encode(message, writer).ldelim();
|
|
142722
|
+
};
|
|
142723
|
+
|
|
142724
|
+
/**
|
|
142725
|
+
* Decodes a PSSAssessmentStarted message from the specified reader or buffer.
|
|
142726
|
+
* @function decode
|
|
142727
|
+
* @memberof PSSAssessmentStarted
|
|
142728
|
+
* @static
|
|
142729
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142730
|
+
* @param {number} [length] Message length if known beforehand
|
|
142731
|
+
* @returns {PSSAssessmentStarted} PSSAssessmentStarted
|
|
142732
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142733
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142734
|
+
*/
|
|
142735
|
+
PSSAssessmentStarted.decode = function decode(reader, length) {
|
|
142736
|
+
if (!(reader instanceof $Reader))
|
|
142737
|
+
reader = $Reader.create(reader);
|
|
142738
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PSSAssessmentStarted();
|
|
142739
|
+
while (reader.pos < end) {
|
|
142740
|
+
var tag = reader.uint32();
|
|
142741
|
+
switch (tag >>> 3) {
|
|
142742
|
+
case 1:
|
|
142743
|
+
message.hsUserId = reader.string();
|
|
142744
|
+
break;
|
|
142745
|
+
case 2:
|
|
142746
|
+
message.gingerUserId = reader.uint32();
|
|
142747
|
+
break;
|
|
142748
|
+
case 3:
|
|
142749
|
+
message.startedAtIsoDate = reader.string();
|
|
142750
|
+
break;
|
|
142751
|
+
default:
|
|
142752
|
+
reader.skipType(tag & 7);
|
|
142753
|
+
break;
|
|
142754
|
+
}
|
|
142755
|
+
}
|
|
142756
|
+
return message;
|
|
142757
|
+
};
|
|
142758
|
+
|
|
142759
|
+
/**
|
|
142760
|
+
* Decodes a PSSAssessmentStarted message from the specified reader or buffer, length delimited.
|
|
142761
|
+
* @function decodeDelimited
|
|
142762
|
+
* @memberof PSSAssessmentStarted
|
|
142763
|
+
* @static
|
|
142764
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142765
|
+
* @returns {PSSAssessmentStarted} PSSAssessmentStarted
|
|
142766
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142767
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142768
|
+
*/
|
|
142769
|
+
PSSAssessmentStarted.decodeDelimited = function decodeDelimited(reader) {
|
|
142770
|
+
if (!(reader instanceof $Reader))
|
|
142771
|
+
reader = new $Reader(reader);
|
|
142772
|
+
return this.decode(reader, reader.uint32());
|
|
142773
|
+
};
|
|
142774
|
+
|
|
142775
|
+
/**
|
|
142776
|
+
* Verifies a PSSAssessmentStarted message.
|
|
142777
|
+
* @function verify
|
|
142778
|
+
* @memberof PSSAssessmentStarted
|
|
142779
|
+
* @static
|
|
142780
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
142781
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
142782
|
+
*/
|
|
142783
|
+
PSSAssessmentStarted.verify = function verify(message) {
|
|
142784
|
+
if (typeof message !== "object" || message === null)
|
|
142785
|
+
return "object expected";
|
|
142786
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142787
|
+
if (!$util.isString(message.hsUserId))
|
|
142788
|
+
return "hsUserId: string expected";
|
|
142789
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142790
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
142791
|
+
return "gingerUserId: integer expected";
|
|
142792
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
142793
|
+
if (!$util.isString(message.startedAtIsoDate))
|
|
142794
|
+
return "startedAtIsoDate: string expected";
|
|
142795
|
+
return null;
|
|
142796
|
+
};
|
|
142797
|
+
|
|
142798
|
+
/**
|
|
142799
|
+
* Creates a PSSAssessmentStarted message from a plain object. Also converts values to their respective internal types.
|
|
142800
|
+
* @function fromObject
|
|
142801
|
+
* @memberof PSSAssessmentStarted
|
|
142802
|
+
* @static
|
|
142803
|
+
* @param {Object.<string,*>} object Plain object
|
|
142804
|
+
* @returns {PSSAssessmentStarted} PSSAssessmentStarted
|
|
142805
|
+
*/
|
|
142806
|
+
PSSAssessmentStarted.fromObject = function fromObject(object) {
|
|
142807
|
+
if (object instanceof $root.PSSAssessmentStarted)
|
|
142808
|
+
return object;
|
|
142809
|
+
var message = new $root.PSSAssessmentStarted();
|
|
142810
|
+
if (object.hsUserId != null)
|
|
142811
|
+
message.hsUserId = String(object.hsUserId);
|
|
142812
|
+
if (object.gingerUserId != null)
|
|
142813
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
142814
|
+
if (object.startedAtIsoDate != null)
|
|
142815
|
+
message.startedAtIsoDate = String(object.startedAtIsoDate);
|
|
142816
|
+
return message;
|
|
142817
|
+
};
|
|
142818
|
+
|
|
142819
|
+
/**
|
|
142820
|
+
* Creates a plain object from a PSSAssessmentStarted message. Also converts values to other types if specified.
|
|
142821
|
+
* @function toObject
|
|
142822
|
+
* @memberof PSSAssessmentStarted
|
|
142823
|
+
* @static
|
|
142824
|
+
* @param {PSSAssessmentStarted} message PSSAssessmentStarted
|
|
142825
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
142826
|
+
* @returns {Object.<string,*>} Plain object
|
|
142827
|
+
*/
|
|
142828
|
+
PSSAssessmentStarted.toObject = function toObject(message, options) {
|
|
142829
|
+
if (!options)
|
|
142830
|
+
options = {};
|
|
142831
|
+
var object = {};
|
|
142832
|
+
if (options.defaults) {
|
|
142833
|
+
object.hsUserId = "";
|
|
142834
|
+
object.gingerUserId = 0;
|
|
142835
|
+
object.startedAtIsoDate = "";
|
|
142836
|
+
}
|
|
142837
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142838
|
+
object.hsUserId = message.hsUserId;
|
|
142839
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142840
|
+
object.gingerUserId = message.gingerUserId;
|
|
142841
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
142842
|
+
object.startedAtIsoDate = message.startedAtIsoDate;
|
|
142843
|
+
return object;
|
|
142844
|
+
};
|
|
142845
|
+
|
|
142846
|
+
/**
|
|
142847
|
+
* Converts this PSSAssessmentStarted to JSON.
|
|
142848
|
+
* @function toJSON
|
|
142849
|
+
* @memberof PSSAssessmentStarted
|
|
142850
|
+
* @instance
|
|
142851
|
+
* @returns {Object.<string,*>} JSON object
|
|
142852
|
+
*/
|
|
142853
|
+
PSSAssessmentStarted.prototype.toJSON = function toJSON() {
|
|
142854
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
142855
|
+
};
|
|
142856
|
+
|
|
142857
|
+
return PSSAssessmentStarted;
|
|
142858
|
+
})();
|
|
142859
|
+
|
|
142860
|
+
$root.PSSAssessmentCompleted = (function() {
|
|
142861
|
+
|
|
142862
|
+
/**
|
|
142863
|
+
* Properties of a PSSAssessmentCompleted.
|
|
142864
|
+
* @name IPSSAssessmentCompleted
|
|
142865
|
+
* @interface IPSSAssessmentCompleted
|
|
142866
|
+
* @property {string|null} [hsUserId] PSSAssessmentCompleted hsUserId
|
|
142867
|
+
* @property {number|null} [gingerUserId] PSSAssessmentCompleted gingerUserId
|
|
142868
|
+
* @property {string|null} [completedAtIsoDate] PSSAssessmentCompleted completedAtIsoDate
|
|
142869
|
+
*/
|
|
142870
|
+
|
|
142871
|
+
/**
|
|
142872
|
+
* Constructs a new PSSAssessmentCompleted.
|
|
142873
|
+
* @name PSSAssessmentCompleted
|
|
142874
|
+
* @classdesc Represents a PSSAssessmentCompleted.
|
|
142875
|
+
* @implements IPSSAssessmentCompleted
|
|
142876
|
+
* @constructor
|
|
142877
|
+
* @param {IPSSAssessmentCompleted=} [properties] Properties to set
|
|
142878
|
+
*/
|
|
142879
|
+
function PSSAssessmentCompleted(properties) {
|
|
142880
|
+
if (properties)
|
|
142881
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
142882
|
+
if (properties[keys[i]] != null)
|
|
142883
|
+
this[keys[i]] = properties[keys[i]];
|
|
142884
|
+
}
|
|
142885
|
+
|
|
142886
|
+
/**
|
|
142887
|
+
* PSSAssessmentCompleted hsUserId.
|
|
142888
|
+
* @member {string} hsUserId
|
|
142889
|
+
* @memberof PSSAssessmentCompleted
|
|
142890
|
+
* @instance
|
|
142891
|
+
*/
|
|
142892
|
+
PSSAssessmentCompleted.prototype.hsUserId = "";
|
|
142893
|
+
|
|
142894
|
+
/**
|
|
142895
|
+
* PSSAssessmentCompleted gingerUserId.
|
|
142896
|
+
* @member {number} gingerUserId
|
|
142897
|
+
* @memberof PSSAssessmentCompleted
|
|
142898
|
+
* @instance
|
|
142899
|
+
*/
|
|
142900
|
+
PSSAssessmentCompleted.prototype.gingerUserId = 0;
|
|
142901
|
+
|
|
142902
|
+
/**
|
|
142903
|
+
* PSSAssessmentCompleted completedAtIsoDate.
|
|
142904
|
+
* @member {string} completedAtIsoDate
|
|
142905
|
+
* @memberof PSSAssessmentCompleted
|
|
142906
|
+
* @instance
|
|
142907
|
+
*/
|
|
142908
|
+
PSSAssessmentCompleted.prototype.completedAtIsoDate = "";
|
|
142909
|
+
|
|
142910
|
+
/**
|
|
142911
|
+
* Creates a new PSSAssessmentCompleted instance using the specified properties.
|
|
142912
|
+
* @function create
|
|
142913
|
+
* @memberof PSSAssessmentCompleted
|
|
142914
|
+
* @static
|
|
142915
|
+
* @param {IPSSAssessmentCompleted=} [properties] Properties to set
|
|
142916
|
+
* @returns {PSSAssessmentCompleted} PSSAssessmentCompleted instance
|
|
142917
|
+
*/
|
|
142918
|
+
PSSAssessmentCompleted.create = function create(properties) {
|
|
142919
|
+
return new PSSAssessmentCompleted(properties);
|
|
142920
|
+
};
|
|
142921
|
+
|
|
142922
|
+
/**
|
|
142923
|
+
* Encodes the specified PSSAssessmentCompleted message. Does not implicitly {@link PSSAssessmentCompleted.verify|verify} messages.
|
|
142924
|
+
* @function encode
|
|
142925
|
+
* @memberof PSSAssessmentCompleted
|
|
142926
|
+
* @static
|
|
142927
|
+
* @param {IPSSAssessmentCompleted} message PSSAssessmentCompleted message or plain object to encode
|
|
142928
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142929
|
+
* @returns {$protobuf.Writer} Writer
|
|
142930
|
+
*/
|
|
142931
|
+
PSSAssessmentCompleted.encode = function encode(message, writer) {
|
|
142932
|
+
if (!writer)
|
|
142933
|
+
writer = $Writer.create();
|
|
142934
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142935
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
142936
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142937
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
142938
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
142939
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
|
|
142940
|
+
return writer;
|
|
142941
|
+
};
|
|
142942
|
+
|
|
142943
|
+
/**
|
|
142944
|
+
* Encodes the specified PSSAssessmentCompleted message, length delimited. Does not implicitly {@link PSSAssessmentCompleted.verify|verify} messages.
|
|
142945
|
+
* @function encodeDelimited
|
|
142946
|
+
* @memberof PSSAssessmentCompleted
|
|
142947
|
+
* @static
|
|
142948
|
+
* @param {IPSSAssessmentCompleted} message PSSAssessmentCompleted message or plain object to encode
|
|
142949
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142950
|
+
* @returns {$protobuf.Writer} Writer
|
|
142951
|
+
*/
|
|
142952
|
+
PSSAssessmentCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
142953
|
+
return this.encode(message, writer).ldelim();
|
|
142954
|
+
};
|
|
142955
|
+
|
|
142956
|
+
/**
|
|
142957
|
+
* Decodes a PSSAssessmentCompleted message from the specified reader or buffer.
|
|
142958
|
+
* @function decode
|
|
142959
|
+
* @memberof PSSAssessmentCompleted
|
|
142960
|
+
* @static
|
|
142961
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142962
|
+
* @param {number} [length] Message length if known beforehand
|
|
142963
|
+
* @returns {PSSAssessmentCompleted} PSSAssessmentCompleted
|
|
142964
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142965
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142966
|
+
*/
|
|
142967
|
+
PSSAssessmentCompleted.decode = function decode(reader, length) {
|
|
142968
|
+
if (!(reader instanceof $Reader))
|
|
142969
|
+
reader = $Reader.create(reader);
|
|
142970
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PSSAssessmentCompleted();
|
|
142971
|
+
while (reader.pos < end) {
|
|
142972
|
+
var tag = reader.uint32();
|
|
142973
|
+
switch (tag >>> 3) {
|
|
142974
|
+
case 1:
|
|
142975
|
+
message.hsUserId = reader.string();
|
|
142976
|
+
break;
|
|
142977
|
+
case 2:
|
|
142978
|
+
message.gingerUserId = reader.uint32();
|
|
142979
|
+
break;
|
|
142980
|
+
case 3:
|
|
142981
|
+
message.completedAtIsoDate = reader.string();
|
|
142982
|
+
break;
|
|
142983
|
+
default:
|
|
142984
|
+
reader.skipType(tag & 7);
|
|
142985
|
+
break;
|
|
142986
|
+
}
|
|
142987
|
+
}
|
|
142988
|
+
return message;
|
|
142989
|
+
};
|
|
142990
|
+
|
|
142991
|
+
/**
|
|
142992
|
+
* Decodes a PSSAssessmentCompleted message from the specified reader or buffer, length delimited.
|
|
142993
|
+
* @function decodeDelimited
|
|
142994
|
+
* @memberof PSSAssessmentCompleted
|
|
142995
|
+
* @static
|
|
142996
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142997
|
+
* @returns {PSSAssessmentCompleted} PSSAssessmentCompleted
|
|
142998
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142999
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
143000
|
+
*/
|
|
143001
|
+
PSSAssessmentCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
143002
|
+
if (!(reader instanceof $Reader))
|
|
143003
|
+
reader = new $Reader(reader);
|
|
143004
|
+
return this.decode(reader, reader.uint32());
|
|
143005
|
+
};
|
|
143006
|
+
|
|
143007
|
+
/**
|
|
143008
|
+
* Verifies a PSSAssessmentCompleted message.
|
|
143009
|
+
* @function verify
|
|
143010
|
+
* @memberof PSSAssessmentCompleted
|
|
143011
|
+
* @static
|
|
143012
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
143013
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
143014
|
+
*/
|
|
143015
|
+
PSSAssessmentCompleted.verify = function verify(message) {
|
|
143016
|
+
if (typeof message !== "object" || message === null)
|
|
143017
|
+
return "object expected";
|
|
143018
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
143019
|
+
if (!$util.isString(message.hsUserId))
|
|
143020
|
+
return "hsUserId: string expected";
|
|
143021
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
143022
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
143023
|
+
return "gingerUserId: integer expected";
|
|
143024
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
143025
|
+
if (!$util.isString(message.completedAtIsoDate))
|
|
143026
|
+
return "completedAtIsoDate: string expected";
|
|
143027
|
+
return null;
|
|
143028
|
+
};
|
|
143029
|
+
|
|
143030
|
+
/**
|
|
143031
|
+
* Creates a PSSAssessmentCompleted message from a plain object. Also converts values to their respective internal types.
|
|
143032
|
+
* @function fromObject
|
|
143033
|
+
* @memberof PSSAssessmentCompleted
|
|
143034
|
+
* @static
|
|
143035
|
+
* @param {Object.<string,*>} object Plain object
|
|
143036
|
+
* @returns {PSSAssessmentCompleted} PSSAssessmentCompleted
|
|
143037
|
+
*/
|
|
143038
|
+
PSSAssessmentCompleted.fromObject = function fromObject(object) {
|
|
143039
|
+
if (object instanceof $root.PSSAssessmentCompleted)
|
|
143040
|
+
return object;
|
|
143041
|
+
var message = new $root.PSSAssessmentCompleted();
|
|
143042
|
+
if (object.hsUserId != null)
|
|
143043
|
+
message.hsUserId = String(object.hsUserId);
|
|
143044
|
+
if (object.gingerUserId != null)
|
|
143045
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
143046
|
+
if (object.completedAtIsoDate != null)
|
|
143047
|
+
message.completedAtIsoDate = String(object.completedAtIsoDate);
|
|
143048
|
+
return message;
|
|
143049
|
+
};
|
|
143050
|
+
|
|
143051
|
+
/**
|
|
143052
|
+
* Creates a plain object from a PSSAssessmentCompleted message. Also converts values to other types if specified.
|
|
143053
|
+
* @function toObject
|
|
143054
|
+
* @memberof PSSAssessmentCompleted
|
|
143055
|
+
* @static
|
|
143056
|
+
* @param {PSSAssessmentCompleted} message PSSAssessmentCompleted
|
|
143057
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
143058
|
+
* @returns {Object.<string,*>} Plain object
|
|
143059
|
+
*/
|
|
143060
|
+
PSSAssessmentCompleted.toObject = function toObject(message, options) {
|
|
143061
|
+
if (!options)
|
|
143062
|
+
options = {};
|
|
143063
|
+
var object = {};
|
|
143064
|
+
if (options.defaults) {
|
|
143065
|
+
object.hsUserId = "";
|
|
143066
|
+
object.gingerUserId = 0;
|
|
143067
|
+
object.completedAtIsoDate = "";
|
|
143068
|
+
}
|
|
143069
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
143070
|
+
object.hsUserId = message.hsUserId;
|
|
143071
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
143072
|
+
object.gingerUserId = message.gingerUserId;
|
|
143073
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
143074
|
+
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
143075
|
+
return object;
|
|
143076
|
+
};
|
|
143077
|
+
|
|
143078
|
+
/**
|
|
143079
|
+
* Converts this PSSAssessmentCompleted to JSON.
|
|
143080
|
+
* @function toJSON
|
|
143081
|
+
* @memberof PSSAssessmentCompleted
|
|
143082
|
+
* @instance
|
|
143083
|
+
* @returns {Object.<string,*>} JSON object
|
|
143084
|
+
*/
|
|
143085
|
+
PSSAssessmentCompleted.prototype.toJSON = function toJSON() {
|
|
143086
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
143087
|
+
};
|
|
143088
|
+
|
|
143089
|
+
return PSSAssessmentCompleted;
|
|
143090
|
+
})();
|
|
143091
|
+
|
|
140960
143092
|
$root.PubnubChatMessage = (function() {
|
|
140961
143093
|
|
|
140962
143094
|
/**
|