@headspace/protos-events 1.700.0 → 1.702.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 +710 -1
- package/lib/index.js +1835 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -15249,6 +15249,920 @@ $root.ClinicalAppointmentNoteType = (function() {
|
|
|
15249
15249
|
return values;
|
|
15250
15250
|
})();
|
|
15251
15251
|
|
|
15252
|
+
$root.AppointmentRatingRequested = (function() {
|
|
15253
|
+
|
|
15254
|
+
/**
|
|
15255
|
+
* Properties of an AppointmentRatingRequested.
|
|
15256
|
+
* @name IAppointmentRatingRequested
|
|
15257
|
+
* @interface IAppointmentRatingRequested
|
|
15258
|
+
* @property {string|null} [appointmentId] AppointmentRatingRequested appointmentId
|
|
15259
|
+
* @property {string|null} [gingerUserId] AppointmentRatingRequested gingerUserId
|
|
15260
|
+
* @property {string|null} [hsUserId] AppointmentRatingRequested hsUserId
|
|
15261
|
+
* @property {number|Long|null} [requestedAt] AppointmentRatingRequested requestedAt
|
|
15262
|
+
*/
|
|
15263
|
+
|
|
15264
|
+
/**
|
|
15265
|
+
* Constructs a new AppointmentRatingRequested.
|
|
15266
|
+
* @name AppointmentRatingRequested
|
|
15267
|
+
* @classdesc Represents an AppointmentRatingRequested.
|
|
15268
|
+
* @implements IAppointmentRatingRequested
|
|
15269
|
+
* @constructor
|
|
15270
|
+
* @param {IAppointmentRatingRequested=} [properties] Properties to set
|
|
15271
|
+
*/
|
|
15272
|
+
function AppointmentRatingRequested(properties) {
|
|
15273
|
+
if (properties)
|
|
15274
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15275
|
+
if (properties[keys[i]] != null)
|
|
15276
|
+
this[keys[i]] = properties[keys[i]];
|
|
15277
|
+
}
|
|
15278
|
+
|
|
15279
|
+
/**
|
|
15280
|
+
* AppointmentRatingRequested appointmentId.
|
|
15281
|
+
* @member {string} appointmentId
|
|
15282
|
+
* @memberof AppointmentRatingRequested
|
|
15283
|
+
* @instance
|
|
15284
|
+
*/
|
|
15285
|
+
AppointmentRatingRequested.prototype.appointmentId = "";
|
|
15286
|
+
|
|
15287
|
+
/**
|
|
15288
|
+
* AppointmentRatingRequested gingerUserId.
|
|
15289
|
+
* @member {string} gingerUserId
|
|
15290
|
+
* @memberof AppointmentRatingRequested
|
|
15291
|
+
* @instance
|
|
15292
|
+
*/
|
|
15293
|
+
AppointmentRatingRequested.prototype.gingerUserId = "";
|
|
15294
|
+
|
|
15295
|
+
/**
|
|
15296
|
+
* AppointmentRatingRequested hsUserId.
|
|
15297
|
+
* @member {string} hsUserId
|
|
15298
|
+
* @memberof AppointmentRatingRequested
|
|
15299
|
+
* @instance
|
|
15300
|
+
*/
|
|
15301
|
+
AppointmentRatingRequested.prototype.hsUserId = "";
|
|
15302
|
+
|
|
15303
|
+
/**
|
|
15304
|
+
* AppointmentRatingRequested requestedAt.
|
|
15305
|
+
* @member {number|Long} requestedAt
|
|
15306
|
+
* @memberof AppointmentRatingRequested
|
|
15307
|
+
* @instance
|
|
15308
|
+
*/
|
|
15309
|
+
AppointmentRatingRequested.prototype.requestedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
15310
|
+
|
|
15311
|
+
/**
|
|
15312
|
+
* Creates a new AppointmentRatingRequested instance using the specified properties.
|
|
15313
|
+
* @function create
|
|
15314
|
+
* @memberof AppointmentRatingRequested
|
|
15315
|
+
* @static
|
|
15316
|
+
* @param {IAppointmentRatingRequested=} [properties] Properties to set
|
|
15317
|
+
* @returns {AppointmentRatingRequested} AppointmentRatingRequested instance
|
|
15318
|
+
*/
|
|
15319
|
+
AppointmentRatingRequested.create = function create(properties) {
|
|
15320
|
+
return new AppointmentRatingRequested(properties);
|
|
15321
|
+
};
|
|
15322
|
+
|
|
15323
|
+
/**
|
|
15324
|
+
* Encodes the specified AppointmentRatingRequested message. Does not implicitly {@link AppointmentRatingRequested.verify|verify} messages.
|
|
15325
|
+
* @function encode
|
|
15326
|
+
* @memberof AppointmentRatingRequested
|
|
15327
|
+
* @static
|
|
15328
|
+
* @param {IAppointmentRatingRequested} message AppointmentRatingRequested message or plain object to encode
|
|
15329
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15330
|
+
* @returns {$protobuf.Writer} Writer
|
|
15331
|
+
*/
|
|
15332
|
+
AppointmentRatingRequested.encode = function encode(message, writer) {
|
|
15333
|
+
if (!writer)
|
|
15334
|
+
writer = $Writer.create();
|
|
15335
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
15336
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.appointmentId);
|
|
15337
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
15338
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.gingerUserId);
|
|
15339
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
15340
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
15341
|
+
if (message.requestedAt != null && message.hasOwnProperty("requestedAt"))
|
|
15342
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.requestedAt);
|
|
15343
|
+
return writer;
|
|
15344
|
+
};
|
|
15345
|
+
|
|
15346
|
+
/**
|
|
15347
|
+
* Encodes the specified AppointmentRatingRequested message, length delimited. Does not implicitly {@link AppointmentRatingRequested.verify|verify} messages.
|
|
15348
|
+
* @function encodeDelimited
|
|
15349
|
+
* @memberof AppointmentRatingRequested
|
|
15350
|
+
* @static
|
|
15351
|
+
* @param {IAppointmentRatingRequested} message AppointmentRatingRequested message or plain object to encode
|
|
15352
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15353
|
+
* @returns {$protobuf.Writer} Writer
|
|
15354
|
+
*/
|
|
15355
|
+
AppointmentRatingRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15356
|
+
return this.encode(message, writer).ldelim();
|
|
15357
|
+
};
|
|
15358
|
+
|
|
15359
|
+
/**
|
|
15360
|
+
* Decodes an AppointmentRatingRequested message from the specified reader or buffer.
|
|
15361
|
+
* @function decode
|
|
15362
|
+
* @memberof AppointmentRatingRequested
|
|
15363
|
+
* @static
|
|
15364
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15365
|
+
* @param {number} [length] Message length if known beforehand
|
|
15366
|
+
* @returns {AppointmentRatingRequested} AppointmentRatingRequested
|
|
15367
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15368
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15369
|
+
*/
|
|
15370
|
+
AppointmentRatingRequested.decode = function decode(reader, length) {
|
|
15371
|
+
if (!(reader instanceof $Reader))
|
|
15372
|
+
reader = $Reader.create(reader);
|
|
15373
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AppointmentRatingRequested();
|
|
15374
|
+
while (reader.pos < end) {
|
|
15375
|
+
var tag = reader.uint32();
|
|
15376
|
+
switch (tag >>> 3) {
|
|
15377
|
+
case 1:
|
|
15378
|
+
message.appointmentId = reader.string();
|
|
15379
|
+
break;
|
|
15380
|
+
case 2:
|
|
15381
|
+
message.gingerUserId = reader.string();
|
|
15382
|
+
break;
|
|
15383
|
+
case 3:
|
|
15384
|
+
message.hsUserId = reader.string();
|
|
15385
|
+
break;
|
|
15386
|
+
case 4:
|
|
15387
|
+
message.requestedAt = reader.uint64();
|
|
15388
|
+
break;
|
|
15389
|
+
default:
|
|
15390
|
+
reader.skipType(tag & 7);
|
|
15391
|
+
break;
|
|
15392
|
+
}
|
|
15393
|
+
}
|
|
15394
|
+
return message;
|
|
15395
|
+
};
|
|
15396
|
+
|
|
15397
|
+
/**
|
|
15398
|
+
* Decodes an AppointmentRatingRequested message from the specified reader or buffer, length delimited.
|
|
15399
|
+
* @function decodeDelimited
|
|
15400
|
+
* @memberof AppointmentRatingRequested
|
|
15401
|
+
* @static
|
|
15402
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15403
|
+
* @returns {AppointmentRatingRequested} AppointmentRatingRequested
|
|
15404
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15405
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15406
|
+
*/
|
|
15407
|
+
AppointmentRatingRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
15408
|
+
if (!(reader instanceof $Reader))
|
|
15409
|
+
reader = new $Reader(reader);
|
|
15410
|
+
return this.decode(reader, reader.uint32());
|
|
15411
|
+
};
|
|
15412
|
+
|
|
15413
|
+
/**
|
|
15414
|
+
* Verifies an AppointmentRatingRequested message.
|
|
15415
|
+
* @function verify
|
|
15416
|
+
* @memberof AppointmentRatingRequested
|
|
15417
|
+
* @static
|
|
15418
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15419
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15420
|
+
*/
|
|
15421
|
+
AppointmentRatingRequested.verify = function verify(message) {
|
|
15422
|
+
if (typeof message !== "object" || message === null)
|
|
15423
|
+
return "object expected";
|
|
15424
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
15425
|
+
if (!$util.isString(message.appointmentId))
|
|
15426
|
+
return "appointmentId: string expected";
|
|
15427
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
15428
|
+
if (!$util.isString(message.gingerUserId))
|
|
15429
|
+
return "gingerUserId: string expected";
|
|
15430
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
15431
|
+
if (!$util.isString(message.hsUserId))
|
|
15432
|
+
return "hsUserId: string expected";
|
|
15433
|
+
if (message.requestedAt != null && message.hasOwnProperty("requestedAt"))
|
|
15434
|
+
if (!$util.isInteger(message.requestedAt) && !(message.requestedAt && $util.isInteger(message.requestedAt.low) && $util.isInteger(message.requestedAt.high)))
|
|
15435
|
+
return "requestedAt: integer|Long expected";
|
|
15436
|
+
return null;
|
|
15437
|
+
};
|
|
15438
|
+
|
|
15439
|
+
/**
|
|
15440
|
+
* Creates an AppointmentRatingRequested message from a plain object. Also converts values to their respective internal types.
|
|
15441
|
+
* @function fromObject
|
|
15442
|
+
* @memberof AppointmentRatingRequested
|
|
15443
|
+
* @static
|
|
15444
|
+
* @param {Object.<string,*>} object Plain object
|
|
15445
|
+
* @returns {AppointmentRatingRequested} AppointmentRatingRequested
|
|
15446
|
+
*/
|
|
15447
|
+
AppointmentRatingRequested.fromObject = function fromObject(object) {
|
|
15448
|
+
if (object instanceof $root.AppointmentRatingRequested)
|
|
15449
|
+
return object;
|
|
15450
|
+
var message = new $root.AppointmentRatingRequested();
|
|
15451
|
+
if (object.appointmentId != null)
|
|
15452
|
+
message.appointmentId = String(object.appointmentId);
|
|
15453
|
+
if (object.gingerUserId != null)
|
|
15454
|
+
message.gingerUserId = String(object.gingerUserId);
|
|
15455
|
+
if (object.hsUserId != null)
|
|
15456
|
+
message.hsUserId = String(object.hsUserId);
|
|
15457
|
+
if (object.requestedAt != null)
|
|
15458
|
+
if ($util.Long)
|
|
15459
|
+
(message.requestedAt = $util.Long.fromValue(object.requestedAt)).unsigned = true;
|
|
15460
|
+
else if (typeof object.requestedAt === "string")
|
|
15461
|
+
message.requestedAt = parseInt(object.requestedAt, 10);
|
|
15462
|
+
else if (typeof object.requestedAt === "number")
|
|
15463
|
+
message.requestedAt = object.requestedAt;
|
|
15464
|
+
else if (typeof object.requestedAt === "object")
|
|
15465
|
+
message.requestedAt = new $util.LongBits(object.requestedAt.low >>> 0, object.requestedAt.high >>> 0).toNumber(true);
|
|
15466
|
+
return message;
|
|
15467
|
+
};
|
|
15468
|
+
|
|
15469
|
+
/**
|
|
15470
|
+
* Creates a plain object from an AppointmentRatingRequested message. Also converts values to other types if specified.
|
|
15471
|
+
* @function toObject
|
|
15472
|
+
* @memberof AppointmentRatingRequested
|
|
15473
|
+
* @static
|
|
15474
|
+
* @param {AppointmentRatingRequested} message AppointmentRatingRequested
|
|
15475
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15476
|
+
* @returns {Object.<string,*>} Plain object
|
|
15477
|
+
*/
|
|
15478
|
+
AppointmentRatingRequested.toObject = function toObject(message, options) {
|
|
15479
|
+
if (!options)
|
|
15480
|
+
options = {};
|
|
15481
|
+
var object = {};
|
|
15482
|
+
if (options.defaults) {
|
|
15483
|
+
object.appointmentId = "";
|
|
15484
|
+
object.gingerUserId = "";
|
|
15485
|
+
object.hsUserId = "";
|
|
15486
|
+
if ($util.Long) {
|
|
15487
|
+
var long = new $util.Long(0, 0, true);
|
|
15488
|
+
object.requestedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
15489
|
+
} else
|
|
15490
|
+
object.requestedAt = options.longs === String ? "0" : 0;
|
|
15491
|
+
}
|
|
15492
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
15493
|
+
object.appointmentId = message.appointmentId;
|
|
15494
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
15495
|
+
object.gingerUserId = message.gingerUserId;
|
|
15496
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
15497
|
+
object.hsUserId = message.hsUserId;
|
|
15498
|
+
if (message.requestedAt != null && message.hasOwnProperty("requestedAt"))
|
|
15499
|
+
if (typeof message.requestedAt === "number")
|
|
15500
|
+
object.requestedAt = options.longs === String ? String(message.requestedAt) : message.requestedAt;
|
|
15501
|
+
else
|
|
15502
|
+
object.requestedAt = options.longs === String ? $util.Long.prototype.toString.call(message.requestedAt) : options.longs === Number ? new $util.LongBits(message.requestedAt.low >>> 0, message.requestedAt.high >>> 0).toNumber(true) : message.requestedAt;
|
|
15503
|
+
return object;
|
|
15504
|
+
};
|
|
15505
|
+
|
|
15506
|
+
/**
|
|
15507
|
+
* Converts this AppointmentRatingRequested to JSON.
|
|
15508
|
+
* @function toJSON
|
|
15509
|
+
* @memberof AppointmentRatingRequested
|
|
15510
|
+
* @instance
|
|
15511
|
+
* @returns {Object.<string,*>} JSON object
|
|
15512
|
+
*/
|
|
15513
|
+
AppointmentRatingRequested.prototype.toJSON = function toJSON() {
|
|
15514
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15515
|
+
};
|
|
15516
|
+
|
|
15517
|
+
return AppointmentRatingRequested;
|
|
15518
|
+
})();
|
|
15519
|
+
|
|
15520
|
+
$root.AppointmentRatingDismissed = (function() {
|
|
15521
|
+
|
|
15522
|
+
/**
|
|
15523
|
+
* Properties of an AppointmentRatingDismissed.
|
|
15524
|
+
* @name IAppointmentRatingDismissed
|
|
15525
|
+
* @interface IAppointmentRatingDismissed
|
|
15526
|
+
* @property {string|null} [appointmentId] AppointmentRatingDismissed appointmentId
|
|
15527
|
+
* @property {string|null} [gingerUserId] AppointmentRatingDismissed gingerUserId
|
|
15528
|
+
* @property {string|null} [hsUserId] AppointmentRatingDismissed hsUserId
|
|
15529
|
+
* @property {number|Long|null} [dismissedAt] AppointmentRatingDismissed dismissedAt
|
|
15530
|
+
* @property {number|null} [dismissedCount] AppointmentRatingDismissed dismissedCount
|
|
15531
|
+
*/
|
|
15532
|
+
|
|
15533
|
+
/**
|
|
15534
|
+
* Constructs a new AppointmentRatingDismissed.
|
|
15535
|
+
* @name AppointmentRatingDismissed
|
|
15536
|
+
* @classdesc Represents an AppointmentRatingDismissed.
|
|
15537
|
+
* @implements IAppointmentRatingDismissed
|
|
15538
|
+
* @constructor
|
|
15539
|
+
* @param {IAppointmentRatingDismissed=} [properties] Properties to set
|
|
15540
|
+
*/
|
|
15541
|
+
function AppointmentRatingDismissed(properties) {
|
|
15542
|
+
if (properties)
|
|
15543
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15544
|
+
if (properties[keys[i]] != null)
|
|
15545
|
+
this[keys[i]] = properties[keys[i]];
|
|
15546
|
+
}
|
|
15547
|
+
|
|
15548
|
+
/**
|
|
15549
|
+
* AppointmentRatingDismissed appointmentId.
|
|
15550
|
+
* @member {string} appointmentId
|
|
15551
|
+
* @memberof AppointmentRatingDismissed
|
|
15552
|
+
* @instance
|
|
15553
|
+
*/
|
|
15554
|
+
AppointmentRatingDismissed.prototype.appointmentId = "";
|
|
15555
|
+
|
|
15556
|
+
/**
|
|
15557
|
+
* AppointmentRatingDismissed gingerUserId.
|
|
15558
|
+
* @member {string} gingerUserId
|
|
15559
|
+
* @memberof AppointmentRatingDismissed
|
|
15560
|
+
* @instance
|
|
15561
|
+
*/
|
|
15562
|
+
AppointmentRatingDismissed.prototype.gingerUserId = "";
|
|
15563
|
+
|
|
15564
|
+
/**
|
|
15565
|
+
* AppointmentRatingDismissed hsUserId.
|
|
15566
|
+
* @member {string} hsUserId
|
|
15567
|
+
* @memberof AppointmentRatingDismissed
|
|
15568
|
+
* @instance
|
|
15569
|
+
*/
|
|
15570
|
+
AppointmentRatingDismissed.prototype.hsUserId = "";
|
|
15571
|
+
|
|
15572
|
+
/**
|
|
15573
|
+
* AppointmentRatingDismissed dismissedAt.
|
|
15574
|
+
* @member {number|Long} dismissedAt
|
|
15575
|
+
* @memberof AppointmentRatingDismissed
|
|
15576
|
+
* @instance
|
|
15577
|
+
*/
|
|
15578
|
+
AppointmentRatingDismissed.prototype.dismissedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
15579
|
+
|
|
15580
|
+
/**
|
|
15581
|
+
* AppointmentRatingDismissed dismissedCount.
|
|
15582
|
+
* @member {number} dismissedCount
|
|
15583
|
+
* @memberof AppointmentRatingDismissed
|
|
15584
|
+
* @instance
|
|
15585
|
+
*/
|
|
15586
|
+
AppointmentRatingDismissed.prototype.dismissedCount = 0;
|
|
15587
|
+
|
|
15588
|
+
/**
|
|
15589
|
+
* Creates a new AppointmentRatingDismissed instance using the specified properties.
|
|
15590
|
+
* @function create
|
|
15591
|
+
* @memberof AppointmentRatingDismissed
|
|
15592
|
+
* @static
|
|
15593
|
+
* @param {IAppointmentRatingDismissed=} [properties] Properties to set
|
|
15594
|
+
* @returns {AppointmentRatingDismissed} AppointmentRatingDismissed instance
|
|
15595
|
+
*/
|
|
15596
|
+
AppointmentRatingDismissed.create = function create(properties) {
|
|
15597
|
+
return new AppointmentRatingDismissed(properties);
|
|
15598
|
+
};
|
|
15599
|
+
|
|
15600
|
+
/**
|
|
15601
|
+
* Encodes the specified AppointmentRatingDismissed message. Does not implicitly {@link AppointmentRatingDismissed.verify|verify} messages.
|
|
15602
|
+
* @function encode
|
|
15603
|
+
* @memberof AppointmentRatingDismissed
|
|
15604
|
+
* @static
|
|
15605
|
+
* @param {IAppointmentRatingDismissed} message AppointmentRatingDismissed message or plain object to encode
|
|
15606
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15607
|
+
* @returns {$protobuf.Writer} Writer
|
|
15608
|
+
*/
|
|
15609
|
+
AppointmentRatingDismissed.encode = function encode(message, writer) {
|
|
15610
|
+
if (!writer)
|
|
15611
|
+
writer = $Writer.create();
|
|
15612
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
15613
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.appointmentId);
|
|
15614
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
15615
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.gingerUserId);
|
|
15616
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
15617
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
15618
|
+
if (message.dismissedAt != null && message.hasOwnProperty("dismissedAt"))
|
|
15619
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.dismissedAt);
|
|
15620
|
+
if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
|
|
15621
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.dismissedCount);
|
|
15622
|
+
return writer;
|
|
15623
|
+
};
|
|
15624
|
+
|
|
15625
|
+
/**
|
|
15626
|
+
* Encodes the specified AppointmentRatingDismissed message, length delimited. Does not implicitly {@link AppointmentRatingDismissed.verify|verify} messages.
|
|
15627
|
+
* @function encodeDelimited
|
|
15628
|
+
* @memberof AppointmentRatingDismissed
|
|
15629
|
+
* @static
|
|
15630
|
+
* @param {IAppointmentRatingDismissed} message AppointmentRatingDismissed message or plain object to encode
|
|
15631
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15632
|
+
* @returns {$protobuf.Writer} Writer
|
|
15633
|
+
*/
|
|
15634
|
+
AppointmentRatingDismissed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15635
|
+
return this.encode(message, writer).ldelim();
|
|
15636
|
+
};
|
|
15637
|
+
|
|
15638
|
+
/**
|
|
15639
|
+
* Decodes an AppointmentRatingDismissed message from the specified reader or buffer.
|
|
15640
|
+
* @function decode
|
|
15641
|
+
* @memberof AppointmentRatingDismissed
|
|
15642
|
+
* @static
|
|
15643
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15644
|
+
* @param {number} [length] Message length if known beforehand
|
|
15645
|
+
* @returns {AppointmentRatingDismissed} AppointmentRatingDismissed
|
|
15646
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15647
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15648
|
+
*/
|
|
15649
|
+
AppointmentRatingDismissed.decode = function decode(reader, length) {
|
|
15650
|
+
if (!(reader instanceof $Reader))
|
|
15651
|
+
reader = $Reader.create(reader);
|
|
15652
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AppointmentRatingDismissed();
|
|
15653
|
+
while (reader.pos < end) {
|
|
15654
|
+
var tag = reader.uint32();
|
|
15655
|
+
switch (tag >>> 3) {
|
|
15656
|
+
case 1:
|
|
15657
|
+
message.appointmentId = reader.string();
|
|
15658
|
+
break;
|
|
15659
|
+
case 2:
|
|
15660
|
+
message.gingerUserId = reader.string();
|
|
15661
|
+
break;
|
|
15662
|
+
case 3:
|
|
15663
|
+
message.hsUserId = reader.string();
|
|
15664
|
+
break;
|
|
15665
|
+
case 4:
|
|
15666
|
+
message.dismissedAt = reader.uint64();
|
|
15667
|
+
break;
|
|
15668
|
+
case 5:
|
|
15669
|
+
message.dismissedCount = reader.uint32();
|
|
15670
|
+
break;
|
|
15671
|
+
default:
|
|
15672
|
+
reader.skipType(tag & 7);
|
|
15673
|
+
break;
|
|
15674
|
+
}
|
|
15675
|
+
}
|
|
15676
|
+
return message;
|
|
15677
|
+
};
|
|
15678
|
+
|
|
15679
|
+
/**
|
|
15680
|
+
* Decodes an AppointmentRatingDismissed message from the specified reader or buffer, length delimited.
|
|
15681
|
+
* @function decodeDelimited
|
|
15682
|
+
* @memberof AppointmentRatingDismissed
|
|
15683
|
+
* @static
|
|
15684
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15685
|
+
* @returns {AppointmentRatingDismissed} AppointmentRatingDismissed
|
|
15686
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15687
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15688
|
+
*/
|
|
15689
|
+
AppointmentRatingDismissed.decodeDelimited = function decodeDelimited(reader) {
|
|
15690
|
+
if (!(reader instanceof $Reader))
|
|
15691
|
+
reader = new $Reader(reader);
|
|
15692
|
+
return this.decode(reader, reader.uint32());
|
|
15693
|
+
};
|
|
15694
|
+
|
|
15695
|
+
/**
|
|
15696
|
+
* Verifies an AppointmentRatingDismissed message.
|
|
15697
|
+
* @function verify
|
|
15698
|
+
* @memberof AppointmentRatingDismissed
|
|
15699
|
+
* @static
|
|
15700
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15701
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15702
|
+
*/
|
|
15703
|
+
AppointmentRatingDismissed.verify = function verify(message) {
|
|
15704
|
+
if (typeof message !== "object" || message === null)
|
|
15705
|
+
return "object expected";
|
|
15706
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
15707
|
+
if (!$util.isString(message.appointmentId))
|
|
15708
|
+
return "appointmentId: string expected";
|
|
15709
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
15710
|
+
if (!$util.isString(message.gingerUserId))
|
|
15711
|
+
return "gingerUserId: string expected";
|
|
15712
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
15713
|
+
if (!$util.isString(message.hsUserId))
|
|
15714
|
+
return "hsUserId: string expected";
|
|
15715
|
+
if (message.dismissedAt != null && message.hasOwnProperty("dismissedAt"))
|
|
15716
|
+
if (!$util.isInteger(message.dismissedAt) && !(message.dismissedAt && $util.isInteger(message.dismissedAt.low) && $util.isInteger(message.dismissedAt.high)))
|
|
15717
|
+
return "dismissedAt: integer|Long expected";
|
|
15718
|
+
if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
|
|
15719
|
+
if (!$util.isInteger(message.dismissedCount))
|
|
15720
|
+
return "dismissedCount: integer expected";
|
|
15721
|
+
return null;
|
|
15722
|
+
};
|
|
15723
|
+
|
|
15724
|
+
/**
|
|
15725
|
+
* Creates an AppointmentRatingDismissed message from a plain object. Also converts values to their respective internal types.
|
|
15726
|
+
* @function fromObject
|
|
15727
|
+
* @memberof AppointmentRatingDismissed
|
|
15728
|
+
* @static
|
|
15729
|
+
* @param {Object.<string,*>} object Plain object
|
|
15730
|
+
* @returns {AppointmentRatingDismissed} AppointmentRatingDismissed
|
|
15731
|
+
*/
|
|
15732
|
+
AppointmentRatingDismissed.fromObject = function fromObject(object) {
|
|
15733
|
+
if (object instanceof $root.AppointmentRatingDismissed)
|
|
15734
|
+
return object;
|
|
15735
|
+
var message = new $root.AppointmentRatingDismissed();
|
|
15736
|
+
if (object.appointmentId != null)
|
|
15737
|
+
message.appointmentId = String(object.appointmentId);
|
|
15738
|
+
if (object.gingerUserId != null)
|
|
15739
|
+
message.gingerUserId = String(object.gingerUserId);
|
|
15740
|
+
if (object.hsUserId != null)
|
|
15741
|
+
message.hsUserId = String(object.hsUserId);
|
|
15742
|
+
if (object.dismissedAt != null)
|
|
15743
|
+
if ($util.Long)
|
|
15744
|
+
(message.dismissedAt = $util.Long.fromValue(object.dismissedAt)).unsigned = true;
|
|
15745
|
+
else if (typeof object.dismissedAt === "string")
|
|
15746
|
+
message.dismissedAt = parseInt(object.dismissedAt, 10);
|
|
15747
|
+
else if (typeof object.dismissedAt === "number")
|
|
15748
|
+
message.dismissedAt = object.dismissedAt;
|
|
15749
|
+
else if (typeof object.dismissedAt === "object")
|
|
15750
|
+
message.dismissedAt = new $util.LongBits(object.dismissedAt.low >>> 0, object.dismissedAt.high >>> 0).toNumber(true);
|
|
15751
|
+
if (object.dismissedCount != null)
|
|
15752
|
+
message.dismissedCount = object.dismissedCount >>> 0;
|
|
15753
|
+
return message;
|
|
15754
|
+
};
|
|
15755
|
+
|
|
15756
|
+
/**
|
|
15757
|
+
* Creates a plain object from an AppointmentRatingDismissed message. Also converts values to other types if specified.
|
|
15758
|
+
* @function toObject
|
|
15759
|
+
* @memberof AppointmentRatingDismissed
|
|
15760
|
+
* @static
|
|
15761
|
+
* @param {AppointmentRatingDismissed} message AppointmentRatingDismissed
|
|
15762
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15763
|
+
* @returns {Object.<string,*>} Plain object
|
|
15764
|
+
*/
|
|
15765
|
+
AppointmentRatingDismissed.toObject = function toObject(message, options) {
|
|
15766
|
+
if (!options)
|
|
15767
|
+
options = {};
|
|
15768
|
+
var object = {};
|
|
15769
|
+
if (options.defaults) {
|
|
15770
|
+
object.appointmentId = "";
|
|
15771
|
+
object.gingerUserId = "";
|
|
15772
|
+
object.hsUserId = "";
|
|
15773
|
+
if ($util.Long) {
|
|
15774
|
+
var long = new $util.Long(0, 0, true);
|
|
15775
|
+
object.dismissedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
15776
|
+
} else
|
|
15777
|
+
object.dismissedAt = options.longs === String ? "0" : 0;
|
|
15778
|
+
object.dismissedCount = 0;
|
|
15779
|
+
}
|
|
15780
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
15781
|
+
object.appointmentId = message.appointmentId;
|
|
15782
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
15783
|
+
object.gingerUserId = message.gingerUserId;
|
|
15784
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
15785
|
+
object.hsUserId = message.hsUserId;
|
|
15786
|
+
if (message.dismissedAt != null && message.hasOwnProperty("dismissedAt"))
|
|
15787
|
+
if (typeof message.dismissedAt === "number")
|
|
15788
|
+
object.dismissedAt = options.longs === String ? String(message.dismissedAt) : message.dismissedAt;
|
|
15789
|
+
else
|
|
15790
|
+
object.dismissedAt = options.longs === String ? $util.Long.prototype.toString.call(message.dismissedAt) : options.longs === Number ? new $util.LongBits(message.dismissedAt.low >>> 0, message.dismissedAt.high >>> 0).toNumber(true) : message.dismissedAt;
|
|
15791
|
+
if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
|
|
15792
|
+
object.dismissedCount = message.dismissedCount;
|
|
15793
|
+
return object;
|
|
15794
|
+
};
|
|
15795
|
+
|
|
15796
|
+
/**
|
|
15797
|
+
* Converts this AppointmentRatingDismissed to JSON.
|
|
15798
|
+
* @function toJSON
|
|
15799
|
+
* @memberof AppointmentRatingDismissed
|
|
15800
|
+
* @instance
|
|
15801
|
+
* @returns {Object.<string,*>} JSON object
|
|
15802
|
+
*/
|
|
15803
|
+
AppointmentRatingDismissed.prototype.toJSON = function toJSON() {
|
|
15804
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15805
|
+
};
|
|
15806
|
+
|
|
15807
|
+
return AppointmentRatingDismissed;
|
|
15808
|
+
})();
|
|
15809
|
+
|
|
15810
|
+
$root.AppointmentRatingSubmitted = (function() {
|
|
15811
|
+
|
|
15812
|
+
/**
|
|
15813
|
+
* Properties of an AppointmentRatingSubmitted.
|
|
15814
|
+
* @name IAppointmentRatingSubmitted
|
|
15815
|
+
* @interface IAppointmentRatingSubmitted
|
|
15816
|
+
* @property {string|null} [appointmentId] AppointmentRatingSubmitted appointmentId
|
|
15817
|
+
* @property {string|null} [gingerUserId] AppointmentRatingSubmitted gingerUserId
|
|
15818
|
+
* @property {string|null} [hsUserId] AppointmentRatingSubmitted hsUserId
|
|
15819
|
+
* @property {number|null} [rating] AppointmentRatingSubmitted rating
|
|
15820
|
+
* @property {number|null} [understoodRating] AppointmentRatingSubmitted understoodRating
|
|
15821
|
+
* @property {number|null} [feltSupportedRating] AppointmentRatingSubmitted feltSupportedRating
|
|
15822
|
+
* @property {number|null} [approachRating] AppointmentRatingSubmitted approachRating
|
|
15823
|
+
* @property {number|Long|null} [submittedAt] AppointmentRatingSubmitted submittedAt
|
|
15824
|
+
*/
|
|
15825
|
+
|
|
15826
|
+
/**
|
|
15827
|
+
* Constructs a new AppointmentRatingSubmitted.
|
|
15828
|
+
* @name AppointmentRatingSubmitted
|
|
15829
|
+
* @classdesc Represents an AppointmentRatingSubmitted.
|
|
15830
|
+
* @implements IAppointmentRatingSubmitted
|
|
15831
|
+
* @constructor
|
|
15832
|
+
* @param {IAppointmentRatingSubmitted=} [properties] Properties to set
|
|
15833
|
+
*/
|
|
15834
|
+
function AppointmentRatingSubmitted(properties) {
|
|
15835
|
+
if (properties)
|
|
15836
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15837
|
+
if (properties[keys[i]] != null)
|
|
15838
|
+
this[keys[i]] = properties[keys[i]];
|
|
15839
|
+
}
|
|
15840
|
+
|
|
15841
|
+
/**
|
|
15842
|
+
* AppointmentRatingSubmitted appointmentId.
|
|
15843
|
+
* @member {string} appointmentId
|
|
15844
|
+
* @memberof AppointmentRatingSubmitted
|
|
15845
|
+
* @instance
|
|
15846
|
+
*/
|
|
15847
|
+
AppointmentRatingSubmitted.prototype.appointmentId = "";
|
|
15848
|
+
|
|
15849
|
+
/**
|
|
15850
|
+
* AppointmentRatingSubmitted gingerUserId.
|
|
15851
|
+
* @member {string} gingerUserId
|
|
15852
|
+
* @memberof AppointmentRatingSubmitted
|
|
15853
|
+
* @instance
|
|
15854
|
+
*/
|
|
15855
|
+
AppointmentRatingSubmitted.prototype.gingerUserId = "";
|
|
15856
|
+
|
|
15857
|
+
/**
|
|
15858
|
+
* AppointmentRatingSubmitted hsUserId.
|
|
15859
|
+
* @member {string} hsUserId
|
|
15860
|
+
* @memberof AppointmentRatingSubmitted
|
|
15861
|
+
* @instance
|
|
15862
|
+
*/
|
|
15863
|
+
AppointmentRatingSubmitted.prototype.hsUserId = "";
|
|
15864
|
+
|
|
15865
|
+
/**
|
|
15866
|
+
* AppointmentRatingSubmitted rating.
|
|
15867
|
+
* @member {number} rating
|
|
15868
|
+
* @memberof AppointmentRatingSubmitted
|
|
15869
|
+
* @instance
|
|
15870
|
+
*/
|
|
15871
|
+
AppointmentRatingSubmitted.prototype.rating = 0;
|
|
15872
|
+
|
|
15873
|
+
/**
|
|
15874
|
+
* AppointmentRatingSubmitted understoodRating.
|
|
15875
|
+
* @member {number} understoodRating
|
|
15876
|
+
* @memberof AppointmentRatingSubmitted
|
|
15877
|
+
* @instance
|
|
15878
|
+
*/
|
|
15879
|
+
AppointmentRatingSubmitted.prototype.understoodRating = 0;
|
|
15880
|
+
|
|
15881
|
+
/**
|
|
15882
|
+
* AppointmentRatingSubmitted feltSupportedRating.
|
|
15883
|
+
* @member {number} feltSupportedRating
|
|
15884
|
+
* @memberof AppointmentRatingSubmitted
|
|
15885
|
+
* @instance
|
|
15886
|
+
*/
|
|
15887
|
+
AppointmentRatingSubmitted.prototype.feltSupportedRating = 0;
|
|
15888
|
+
|
|
15889
|
+
/**
|
|
15890
|
+
* AppointmentRatingSubmitted approachRating.
|
|
15891
|
+
* @member {number} approachRating
|
|
15892
|
+
* @memberof AppointmentRatingSubmitted
|
|
15893
|
+
* @instance
|
|
15894
|
+
*/
|
|
15895
|
+
AppointmentRatingSubmitted.prototype.approachRating = 0;
|
|
15896
|
+
|
|
15897
|
+
/**
|
|
15898
|
+
* AppointmentRatingSubmitted submittedAt.
|
|
15899
|
+
* @member {number|Long} submittedAt
|
|
15900
|
+
* @memberof AppointmentRatingSubmitted
|
|
15901
|
+
* @instance
|
|
15902
|
+
*/
|
|
15903
|
+
AppointmentRatingSubmitted.prototype.submittedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
15904
|
+
|
|
15905
|
+
/**
|
|
15906
|
+
* Creates a new AppointmentRatingSubmitted instance using the specified properties.
|
|
15907
|
+
* @function create
|
|
15908
|
+
* @memberof AppointmentRatingSubmitted
|
|
15909
|
+
* @static
|
|
15910
|
+
* @param {IAppointmentRatingSubmitted=} [properties] Properties to set
|
|
15911
|
+
* @returns {AppointmentRatingSubmitted} AppointmentRatingSubmitted instance
|
|
15912
|
+
*/
|
|
15913
|
+
AppointmentRatingSubmitted.create = function create(properties) {
|
|
15914
|
+
return new AppointmentRatingSubmitted(properties);
|
|
15915
|
+
};
|
|
15916
|
+
|
|
15917
|
+
/**
|
|
15918
|
+
* Encodes the specified AppointmentRatingSubmitted message. Does not implicitly {@link AppointmentRatingSubmitted.verify|verify} messages.
|
|
15919
|
+
* @function encode
|
|
15920
|
+
* @memberof AppointmentRatingSubmitted
|
|
15921
|
+
* @static
|
|
15922
|
+
* @param {IAppointmentRatingSubmitted} message AppointmentRatingSubmitted message or plain object to encode
|
|
15923
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15924
|
+
* @returns {$protobuf.Writer} Writer
|
|
15925
|
+
*/
|
|
15926
|
+
AppointmentRatingSubmitted.encode = function encode(message, writer) {
|
|
15927
|
+
if (!writer)
|
|
15928
|
+
writer = $Writer.create();
|
|
15929
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
15930
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.appointmentId);
|
|
15931
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
15932
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.gingerUserId);
|
|
15933
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
15934
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
15935
|
+
if (message.rating != null && message.hasOwnProperty("rating"))
|
|
15936
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.rating);
|
|
15937
|
+
if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
|
|
15938
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.understoodRating);
|
|
15939
|
+
if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
|
|
15940
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.feltSupportedRating);
|
|
15941
|
+
if (message.approachRating != null && message.hasOwnProperty("approachRating"))
|
|
15942
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.approachRating);
|
|
15943
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
15944
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.submittedAt);
|
|
15945
|
+
return writer;
|
|
15946
|
+
};
|
|
15947
|
+
|
|
15948
|
+
/**
|
|
15949
|
+
* Encodes the specified AppointmentRatingSubmitted message, length delimited. Does not implicitly {@link AppointmentRatingSubmitted.verify|verify} messages.
|
|
15950
|
+
* @function encodeDelimited
|
|
15951
|
+
* @memberof AppointmentRatingSubmitted
|
|
15952
|
+
* @static
|
|
15953
|
+
* @param {IAppointmentRatingSubmitted} message AppointmentRatingSubmitted message or plain object to encode
|
|
15954
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15955
|
+
* @returns {$protobuf.Writer} Writer
|
|
15956
|
+
*/
|
|
15957
|
+
AppointmentRatingSubmitted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15958
|
+
return this.encode(message, writer).ldelim();
|
|
15959
|
+
};
|
|
15960
|
+
|
|
15961
|
+
/**
|
|
15962
|
+
* Decodes an AppointmentRatingSubmitted message from the specified reader or buffer.
|
|
15963
|
+
* @function decode
|
|
15964
|
+
* @memberof AppointmentRatingSubmitted
|
|
15965
|
+
* @static
|
|
15966
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15967
|
+
* @param {number} [length] Message length if known beforehand
|
|
15968
|
+
* @returns {AppointmentRatingSubmitted} AppointmentRatingSubmitted
|
|
15969
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15970
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15971
|
+
*/
|
|
15972
|
+
AppointmentRatingSubmitted.decode = function decode(reader, length) {
|
|
15973
|
+
if (!(reader instanceof $Reader))
|
|
15974
|
+
reader = $Reader.create(reader);
|
|
15975
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AppointmentRatingSubmitted();
|
|
15976
|
+
while (reader.pos < end) {
|
|
15977
|
+
var tag = reader.uint32();
|
|
15978
|
+
switch (tag >>> 3) {
|
|
15979
|
+
case 1:
|
|
15980
|
+
message.appointmentId = reader.string();
|
|
15981
|
+
break;
|
|
15982
|
+
case 2:
|
|
15983
|
+
message.gingerUserId = reader.string();
|
|
15984
|
+
break;
|
|
15985
|
+
case 3:
|
|
15986
|
+
message.hsUserId = reader.string();
|
|
15987
|
+
break;
|
|
15988
|
+
case 4:
|
|
15989
|
+
message.rating = reader.uint32();
|
|
15990
|
+
break;
|
|
15991
|
+
case 5:
|
|
15992
|
+
message.understoodRating = reader.uint32();
|
|
15993
|
+
break;
|
|
15994
|
+
case 6:
|
|
15995
|
+
message.feltSupportedRating = reader.uint32();
|
|
15996
|
+
break;
|
|
15997
|
+
case 7:
|
|
15998
|
+
message.approachRating = reader.uint32();
|
|
15999
|
+
break;
|
|
16000
|
+
case 8:
|
|
16001
|
+
message.submittedAt = reader.uint64();
|
|
16002
|
+
break;
|
|
16003
|
+
default:
|
|
16004
|
+
reader.skipType(tag & 7);
|
|
16005
|
+
break;
|
|
16006
|
+
}
|
|
16007
|
+
}
|
|
16008
|
+
return message;
|
|
16009
|
+
};
|
|
16010
|
+
|
|
16011
|
+
/**
|
|
16012
|
+
* Decodes an AppointmentRatingSubmitted message from the specified reader or buffer, length delimited.
|
|
16013
|
+
* @function decodeDelimited
|
|
16014
|
+
* @memberof AppointmentRatingSubmitted
|
|
16015
|
+
* @static
|
|
16016
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16017
|
+
* @returns {AppointmentRatingSubmitted} AppointmentRatingSubmitted
|
|
16018
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16019
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16020
|
+
*/
|
|
16021
|
+
AppointmentRatingSubmitted.decodeDelimited = function decodeDelimited(reader) {
|
|
16022
|
+
if (!(reader instanceof $Reader))
|
|
16023
|
+
reader = new $Reader(reader);
|
|
16024
|
+
return this.decode(reader, reader.uint32());
|
|
16025
|
+
};
|
|
16026
|
+
|
|
16027
|
+
/**
|
|
16028
|
+
* Verifies an AppointmentRatingSubmitted message.
|
|
16029
|
+
* @function verify
|
|
16030
|
+
* @memberof AppointmentRatingSubmitted
|
|
16031
|
+
* @static
|
|
16032
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
16033
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16034
|
+
*/
|
|
16035
|
+
AppointmentRatingSubmitted.verify = function verify(message) {
|
|
16036
|
+
if (typeof message !== "object" || message === null)
|
|
16037
|
+
return "object expected";
|
|
16038
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
16039
|
+
if (!$util.isString(message.appointmentId))
|
|
16040
|
+
return "appointmentId: string expected";
|
|
16041
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
16042
|
+
if (!$util.isString(message.gingerUserId))
|
|
16043
|
+
return "gingerUserId: string expected";
|
|
16044
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
16045
|
+
if (!$util.isString(message.hsUserId))
|
|
16046
|
+
return "hsUserId: string expected";
|
|
16047
|
+
if (message.rating != null && message.hasOwnProperty("rating"))
|
|
16048
|
+
if (!$util.isInteger(message.rating))
|
|
16049
|
+
return "rating: integer expected";
|
|
16050
|
+
if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
|
|
16051
|
+
if (!$util.isInteger(message.understoodRating))
|
|
16052
|
+
return "understoodRating: integer expected";
|
|
16053
|
+
if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
|
|
16054
|
+
if (!$util.isInteger(message.feltSupportedRating))
|
|
16055
|
+
return "feltSupportedRating: integer expected";
|
|
16056
|
+
if (message.approachRating != null && message.hasOwnProperty("approachRating"))
|
|
16057
|
+
if (!$util.isInteger(message.approachRating))
|
|
16058
|
+
return "approachRating: integer expected";
|
|
16059
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
16060
|
+
if (!$util.isInteger(message.submittedAt) && !(message.submittedAt && $util.isInteger(message.submittedAt.low) && $util.isInteger(message.submittedAt.high)))
|
|
16061
|
+
return "submittedAt: integer|Long expected";
|
|
16062
|
+
return null;
|
|
16063
|
+
};
|
|
16064
|
+
|
|
16065
|
+
/**
|
|
16066
|
+
* Creates an AppointmentRatingSubmitted message from a plain object. Also converts values to their respective internal types.
|
|
16067
|
+
* @function fromObject
|
|
16068
|
+
* @memberof AppointmentRatingSubmitted
|
|
16069
|
+
* @static
|
|
16070
|
+
* @param {Object.<string,*>} object Plain object
|
|
16071
|
+
* @returns {AppointmentRatingSubmitted} AppointmentRatingSubmitted
|
|
16072
|
+
*/
|
|
16073
|
+
AppointmentRatingSubmitted.fromObject = function fromObject(object) {
|
|
16074
|
+
if (object instanceof $root.AppointmentRatingSubmitted)
|
|
16075
|
+
return object;
|
|
16076
|
+
var message = new $root.AppointmentRatingSubmitted();
|
|
16077
|
+
if (object.appointmentId != null)
|
|
16078
|
+
message.appointmentId = String(object.appointmentId);
|
|
16079
|
+
if (object.gingerUserId != null)
|
|
16080
|
+
message.gingerUserId = String(object.gingerUserId);
|
|
16081
|
+
if (object.hsUserId != null)
|
|
16082
|
+
message.hsUserId = String(object.hsUserId);
|
|
16083
|
+
if (object.rating != null)
|
|
16084
|
+
message.rating = object.rating >>> 0;
|
|
16085
|
+
if (object.understoodRating != null)
|
|
16086
|
+
message.understoodRating = object.understoodRating >>> 0;
|
|
16087
|
+
if (object.feltSupportedRating != null)
|
|
16088
|
+
message.feltSupportedRating = object.feltSupportedRating >>> 0;
|
|
16089
|
+
if (object.approachRating != null)
|
|
16090
|
+
message.approachRating = object.approachRating >>> 0;
|
|
16091
|
+
if (object.submittedAt != null)
|
|
16092
|
+
if ($util.Long)
|
|
16093
|
+
(message.submittedAt = $util.Long.fromValue(object.submittedAt)).unsigned = true;
|
|
16094
|
+
else if (typeof object.submittedAt === "string")
|
|
16095
|
+
message.submittedAt = parseInt(object.submittedAt, 10);
|
|
16096
|
+
else if (typeof object.submittedAt === "number")
|
|
16097
|
+
message.submittedAt = object.submittedAt;
|
|
16098
|
+
else if (typeof object.submittedAt === "object")
|
|
16099
|
+
message.submittedAt = new $util.LongBits(object.submittedAt.low >>> 0, object.submittedAt.high >>> 0).toNumber(true);
|
|
16100
|
+
return message;
|
|
16101
|
+
};
|
|
16102
|
+
|
|
16103
|
+
/**
|
|
16104
|
+
* Creates a plain object from an AppointmentRatingSubmitted message. Also converts values to other types if specified.
|
|
16105
|
+
* @function toObject
|
|
16106
|
+
* @memberof AppointmentRatingSubmitted
|
|
16107
|
+
* @static
|
|
16108
|
+
* @param {AppointmentRatingSubmitted} message AppointmentRatingSubmitted
|
|
16109
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16110
|
+
* @returns {Object.<string,*>} Plain object
|
|
16111
|
+
*/
|
|
16112
|
+
AppointmentRatingSubmitted.toObject = function toObject(message, options) {
|
|
16113
|
+
if (!options)
|
|
16114
|
+
options = {};
|
|
16115
|
+
var object = {};
|
|
16116
|
+
if (options.defaults) {
|
|
16117
|
+
object.appointmentId = "";
|
|
16118
|
+
object.gingerUserId = "";
|
|
16119
|
+
object.hsUserId = "";
|
|
16120
|
+
object.rating = 0;
|
|
16121
|
+
object.understoodRating = 0;
|
|
16122
|
+
object.feltSupportedRating = 0;
|
|
16123
|
+
object.approachRating = 0;
|
|
16124
|
+
if ($util.Long) {
|
|
16125
|
+
var long = new $util.Long(0, 0, true);
|
|
16126
|
+
object.submittedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
16127
|
+
} else
|
|
16128
|
+
object.submittedAt = options.longs === String ? "0" : 0;
|
|
16129
|
+
}
|
|
16130
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
16131
|
+
object.appointmentId = message.appointmentId;
|
|
16132
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
16133
|
+
object.gingerUserId = message.gingerUserId;
|
|
16134
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
16135
|
+
object.hsUserId = message.hsUserId;
|
|
16136
|
+
if (message.rating != null && message.hasOwnProperty("rating"))
|
|
16137
|
+
object.rating = message.rating;
|
|
16138
|
+
if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
|
|
16139
|
+
object.understoodRating = message.understoodRating;
|
|
16140
|
+
if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
|
|
16141
|
+
object.feltSupportedRating = message.feltSupportedRating;
|
|
16142
|
+
if (message.approachRating != null && message.hasOwnProperty("approachRating"))
|
|
16143
|
+
object.approachRating = message.approachRating;
|
|
16144
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
16145
|
+
if (typeof message.submittedAt === "number")
|
|
16146
|
+
object.submittedAt = options.longs === String ? String(message.submittedAt) : message.submittedAt;
|
|
16147
|
+
else
|
|
16148
|
+
object.submittedAt = options.longs === String ? $util.Long.prototype.toString.call(message.submittedAt) : options.longs === Number ? new $util.LongBits(message.submittedAt.low >>> 0, message.submittedAt.high >>> 0).toNumber(true) : message.submittedAt;
|
|
16149
|
+
return object;
|
|
16150
|
+
};
|
|
16151
|
+
|
|
16152
|
+
/**
|
|
16153
|
+
* Converts this AppointmentRatingSubmitted to JSON.
|
|
16154
|
+
* @function toJSON
|
|
16155
|
+
* @memberof AppointmentRatingSubmitted
|
|
16156
|
+
* @instance
|
|
16157
|
+
* @returns {Object.<string,*>} JSON object
|
|
16158
|
+
*/
|
|
16159
|
+
AppointmentRatingSubmitted.prototype.toJSON = function toJSON() {
|
|
16160
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16161
|
+
};
|
|
16162
|
+
|
|
16163
|
+
return AppointmentRatingSubmitted;
|
|
16164
|
+
})();
|
|
16165
|
+
|
|
15252
16166
|
$root.EventDetail = (function() {
|
|
15253
16167
|
|
|
15254
16168
|
/**
|
|
@@ -32080,6 +32994,920 @@ $root.CoachingChatMessageSent = (function() {
|
|
|
32080
32994
|
return CoachingChatMessageSent;
|
|
32081
32995
|
})();
|
|
32082
32996
|
|
|
32997
|
+
$root.CoachingRatingRequested = (function() {
|
|
32998
|
+
|
|
32999
|
+
/**
|
|
33000
|
+
* Properties of a CoachingRatingRequested.
|
|
33001
|
+
* @name ICoachingRatingRequested
|
|
33002
|
+
* @interface ICoachingRatingRequested
|
|
33003
|
+
* @property {string|null} [listenerId] CoachingRatingRequested listenerId
|
|
33004
|
+
* @property {string|null} [gingerUserId] CoachingRatingRequested gingerUserId
|
|
33005
|
+
* @property {string|null} [hsUserId] CoachingRatingRequested hsUserId
|
|
33006
|
+
* @property {number|Long|null} [requestedAt] CoachingRatingRequested requestedAt
|
|
33007
|
+
*/
|
|
33008
|
+
|
|
33009
|
+
/**
|
|
33010
|
+
* Constructs a new CoachingRatingRequested.
|
|
33011
|
+
* @name CoachingRatingRequested
|
|
33012
|
+
* @classdesc Represents a CoachingRatingRequested.
|
|
33013
|
+
* @implements ICoachingRatingRequested
|
|
33014
|
+
* @constructor
|
|
33015
|
+
* @param {ICoachingRatingRequested=} [properties] Properties to set
|
|
33016
|
+
*/
|
|
33017
|
+
function CoachingRatingRequested(properties) {
|
|
33018
|
+
if (properties)
|
|
33019
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
33020
|
+
if (properties[keys[i]] != null)
|
|
33021
|
+
this[keys[i]] = properties[keys[i]];
|
|
33022
|
+
}
|
|
33023
|
+
|
|
33024
|
+
/**
|
|
33025
|
+
* CoachingRatingRequested listenerId.
|
|
33026
|
+
* @member {string} listenerId
|
|
33027
|
+
* @memberof CoachingRatingRequested
|
|
33028
|
+
* @instance
|
|
33029
|
+
*/
|
|
33030
|
+
CoachingRatingRequested.prototype.listenerId = "";
|
|
33031
|
+
|
|
33032
|
+
/**
|
|
33033
|
+
* CoachingRatingRequested gingerUserId.
|
|
33034
|
+
* @member {string} gingerUserId
|
|
33035
|
+
* @memberof CoachingRatingRequested
|
|
33036
|
+
* @instance
|
|
33037
|
+
*/
|
|
33038
|
+
CoachingRatingRequested.prototype.gingerUserId = "";
|
|
33039
|
+
|
|
33040
|
+
/**
|
|
33041
|
+
* CoachingRatingRequested hsUserId.
|
|
33042
|
+
* @member {string} hsUserId
|
|
33043
|
+
* @memberof CoachingRatingRequested
|
|
33044
|
+
* @instance
|
|
33045
|
+
*/
|
|
33046
|
+
CoachingRatingRequested.prototype.hsUserId = "";
|
|
33047
|
+
|
|
33048
|
+
/**
|
|
33049
|
+
* CoachingRatingRequested requestedAt.
|
|
33050
|
+
* @member {number|Long} requestedAt
|
|
33051
|
+
* @memberof CoachingRatingRequested
|
|
33052
|
+
* @instance
|
|
33053
|
+
*/
|
|
33054
|
+
CoachingRatingRequested.prototype.requestedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
33055
|
+
|
|
33056
|
+
/**
|
|
33057
|
+
* Creates a new CoachingRatingRequested instance using the specified properties.
|
|
33058
|
+
* @function create
|
|
33059
|
+
* @memberof CoachingRatingRequested
|
|
33060
|
+
* @static
|
|
33061
|
+
* @param {ICoachingRatingRequested=} [properties] Properties to set
|
|
33062
|
+
* @returns {CoachingRatingRequested} CoachingRatingRequested instance
|
|
33063
|
+
*/
|
|
33064
|
+
CoachingRatingRequested.create = function create(properties) {
|
|
33065
|
+
return new CoachingRatingRequested(properties);
|
|
33066
|
+
};
|
|
33067
|
+
|
|
33068
|
+
/**
|
|
33069
|
+
* Encodes the specified CoachingRatingRequested message. Does not implicitly {@link CoachingRatingRequested.verify|verify} messages.
|
|
33070
|
+
* @function encode
|
|
33071
|
+
* @memberof CoachingRatingRequested
|
|
33072
|
+
* @static
|
|
33073
|
+
* @param {ICoachingRatingRequested} message CoachingRatingRequested message or plain object to encode
|
|
33074
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
33075
|
+
* @returns {$protobuf.Writer} Writer
|
|
33076
|
+
*/
|
|
33077
|
+
CoachingRatingRequested.encode = function encode(message, writer) {
|
|
33078
|
+
if (!writer)
|
|
33079
|
+
writer = $Writer.create();
|
|
33080
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
33081
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.listenerId);
|
|
33082
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
33083
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.gingerUserId);
|
|
33084
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
33085
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
33086
|
+
if (message.requestedAt != null && message.hasOwnProperty("requestedAt"))
|
|
33087
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.requestedAt);
|
|
33088
|
+
return writer;
|
|
33089
|
+
};
|
|
33090
|
+
|
|
33091
|
+
/**
|
|
33092
|
+
* Encodes the specified CoachingRatingRequested message, length delimited. Does not implicitly {@link CoachingRatingRequested.verify|verify} messages.
|
|
33093
|
+
* @function encodeDelimited
|
|
33094
|
+
* @memberof CoachingRatingRequested
|
|
33095
|
+
* @static
|
|
33096
|
+
* @param {ICoachingRatingRequested} message CoachingRatingRequested message or plain object to encode
|
|
33097
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
33098
|
+
* @returns {$protobuf.Writer} Writer
|
|
33099
|
+
*/
|
|
33100
|
+
CoachingRatingRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
33101
|
+
return this.encode(message, writer).ldelim();
|
|
33102
|
+
};
|
|
33103
|
+
|
|
33104
|
+
/**
|
|
33105
|
+
* Decodes a CoachingRatingRequested message from the specified reader or buffer.
|
|
33106
|
+
* @function decode
|
|
33107
|
+
* @memberof CoachingRatingRequested
|
|
33108
|
+
* @static
|
|
33109
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
33110
|
+
* @param {number} [length] Message length if known beforehand
|
|
33111
|
+
* @returns {CoachingRatingRequested} CoachingRatingRequested
|
|
33112
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33113
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33114
|
+
*/
|
|
33115
|
+
CoachingRatingRequested.decode = function decode(reader, length) {
|
|
33116
|
+
if (!(reader instanceof $Reader))
|
|
33117
|
+
reader = $Reader.create(reader);
|
|
33118
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CoachingRatingRequested();
|
|
33119
|
+
while (reader.pos < end) {
|
|
33120
|
+
var tag = reader.uint32();
|
|
33121
|
+
switch (tag >>> 3) {
|
|
33122
|
+
case 1:
|
|
33123
|
+
message.listenerId = reader.string();
|
|
33124
|
+
break;
|
|
33125
|
+
case 2:
|
|
33126
|
+
message.gingerUserId = reader.string();
|
|
33127
|
+
break;
|
|
33128
|
+
case 3:
|
|
33129
|
+
message.hsUserId = reader.string();
|
|
33130
|
+
break;
|
|
33131
|
+
case 4:
|
|
33132
|
+
message.requestedAt = reader.uint64();
|
|
33133
|
+
break;
|
|
33134
|
+
default:
|
|
33135
|
+
reader.skipType(tag & 7);
|
|
33136
|
+
break;
|
|
33137
|
+
}
|
|
33138
|
+
}
|
|
33139
|
+
return message;
|
|
33140
|
+
};
|
|
33141
|
+
|
|
33142
|
+
/**
|
|
33143
|
+
* Decodes a CoachingRatingRequested message from the specified reader or buffer, length delimited.
|
|
33144
|
+
* @function decodeDelimited
|
|
33145
|
+
* @memberof CoachingRatingRequested
|
|
33146
|
+
* @static
|
|
33147
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
33148
|
+
* @returns {CoachingRatingRequested} CoachingRatingRequested
|
|
33149
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33150
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33151
|
+
*/
|
|
33152
|
+
CoachingRatingRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
33153
|
+
if (!(reader instanceof $Reader))
|
|
33154
|
+
reader = new $Reader(reader);
|
|
33155
|
+
return this.decode(reader, reader.uint32());
|
|
33156
|
+
};
|
|
33157
|
+
|
|
33158
|
+
/**
|
|
33159
|
+
* Verifies a CoachingRatingRequested message.
|
|
33160
|
+
* @function verify
|
|
33161
|
+
* @memberof CoachingRatingRequested
|
|
33162
|
+
* @static
|
|
33163
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
33164
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
33165
|
+
*/
|
|
33166
|
+
CoachingRatingRequested.verify = function verify(message) {
|
|
33167
|
+
if (typeof message !== "object" || message === null)
|
|
33168
|
+
return "object expected";
|
|
33169
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
33170
|
+
if (!$util.isString(message.listenerId))
|
|
33171
|
+
return "listenerId: string expected";
|
|
33172
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
33173
|
+
if (!$util.isString(message.gingerUserId))
|
|
33174
|
+
return "gingerUserId: string expected";
|
|
33175
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
33176
|
+
if (!$util.isString(message.hsUserId))
|
|
33177
|
+
return "hsUserId: string expected";
|
|
33178
|
+
if (message.requestedAt != null && message.hasOwnProperty("requestedAt"))
|
|
33179
|
+
if (!$util.isInteger(message.requestedAt) && !(message.requestedAt && $util.isInteger(message.requestedAt.low) && $util.isInteger(message.requestedAt.high)))
|
|
33180
|
+
return "requestedAt: integer|Long expected";
|
|
33181
|
+
return null;
|
|
33182
|
+
};
|
|
33183
|
+
|
|
33184
|
+
/**
|
|
33185
|
+
* Creates a CoachingRatingRequested message from a plain object. Also converts values to their respective internal types.
|
|
33186
|
+
* @function fromObject
|
|
33187
|
+
* @memberof CoachingRatingRequested
|
|
33188
|
+
* @static
|
|
33189
|
+
* @param {Object.<string,*>} object Plain object
|
|
33190
|
+
* @returns {CoachingRatingRequested} CoachingRatingRequested
|
|
33191
|
+
*/
|
|
33192
|
+
CoachingRatingRequested.fromObject = function fromObject(object) {
|
|
33193
|
+
if (object instanceof $root.CoachingRatingRequested)
|
|
33194
|
+
return object;
|
|
33195
|
+
var message = new $root.CoachingRatingRequested();
|
|
33196
|
+
if (object.listenerId != null)
|
|
33197
|
+
message.listenerId = String(object.listenerId);
|
|
33198
|
+
if (object.gingerUserId != null)
|
|
33199
|
+
message.gingerUserId = String(object.gingerUserId);
|
|
33200
|
+
if (object.hsUserId != null)
|
|
33201
|
+
message.hsUserId = String(object.hsUserId);
|
|
33202
|
+
if (object.requestedAt != null)
|
|
33203
|
+
if ($util.Long)
|
|
33204
|
+
(message.requestedAt = $util.Long.fromValue(object.requestedAt)).unsigned = true;
|
|
33205
|
+
else if (typeof object.requestedAt === "string")
|
|
33206
|
+
message.requestedAt = parseInt(object.requestedAt, 10);
|
|
33207
|
+
else if (typeof object.requestedAt === "number")
|
|
33208
|
+
message.requestedAt = object.requestedAt;
|
|
33209
|
+
else if (typeof object.requestedAt === "object")
|
|
33210
|
+
message.requestedAt = new $util.LongBits(object.requestedAt.low >>> 0, object.requestedAt.high >>> 0).toNumber(true);
|
|
33211
|
+
return message;
|
|
33212
|
+
};
|
|
33213
|
+
|
|
33214
|
+
/**
|
|
33215
|
+
* Creates a plain object from a CoachingRatingRequested message. Also converts values to other types if specified.
|
|
33216
|
+
* @function toObject
|
|
33217
|
+
* @memberof CoachingRatingRequested
|
|
33218
|
+
* @static
|
|
33219
|
+
* @param {CoachingRatingRequested} message CoachingRatingRequested
|
|
33220
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
33221
|
+
* @returns {Object.<string,*>} Plain object
|
|
33222
|
+
*/
|
|
33223
|
+
CoachingRatingRequested.toObject = function toObject(message, options) {
|
|
33224
|
+
if (!options)
|
|
33225
|
+
options = {};
|
|
33226
|
+
var object = {};
|
|
33227
|
+
if (options.defaults) {
|
|
33228
|
+
object.listenerId = "";
|
|
33229
|
+
object.gingerUserId = "";
|
|
33230
|
+
object.hsUserId = "";
|
|
33231
|
+
if ($util.Long) {
|
|
33232
|
+
var long = new $util.Long(0, 0, true);
|
|
33233
|
+
object.requestedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
33234
|
+
} else
|
|
33235
|
+
object.requestedAt = options.longs === String ? "0" : 0;
|
|
33236
|
+
}
|
|
33237
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
33238
|
+
object.listenerId = message.listenerId;
|
|
33239
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
33240
|
+
object.gingerUserId = message.gingerUserId;
|
|
33241
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
33242
|
+
object.hsUserId = message.hsUserId;
|
|
33243
|
+
if (message.requestedAt != null && message.hasOwnProperty("requestedAt"))
|
|
33244
|
+
if (typeof message.requestedAt === "number")
|
|
33245
|
+
object.requestedAt = options.longs === String ? String(message.requestedAt) : message.requestedAt;
|
|
33246
|
+
else
|
|
33247
|
+
object.requestedAt = options.longs === String ? $util.Long.prototype.toString.call(message.requestedAt) : options.longs === Number ? new $util.LongBits(message.requestedAt.low >>> 0, message.requestedAt.high >>> 0).toNumber(true) : message.requestedAt;
|
|
33248
|
+
return object;
|
|
33249
|
+
};
|
|
33250
|
+
|
|
33251
|
+
/**
|
|
33252
|
+
* Converts this CoachingRatingRequested to JSON.
|
|
33253
|
+
* @function toJSON
|
|
33254
|
+
* @memberof CoachingRatingRequested
|
|
33255
|
+
* @instance
|
|
33256
|
+
* @returns {Object.<string,*>} JSON object
|
|
33257
|
+
*/
|
|
33258
|
+
CoachingRatingRequested.prototype.toJSON = function toJSON() {
|
|
33259
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
33260
|
+
};
|
|
33261
|
+
|
|
33262
|
+
return CoachingRatingRequested;
|
|
33263
|
+
})();
|
|
33264
|
+
|
|
33265
|
+
$root.CoachingRatingDismissed = (function() {
|
|
33266
|
+
|
|
33267
|
+
/**
|
|
33268
|
+
* Properties of a CoachingRatingDismissed.
|
|
33269
|
+
* @name ICoachingRatingDismissed
|
|
33270
|
+
* @interface ICoachingRatingDismissed
|
|
33271
|
+
* @property {string|null} [listenerId] CoachingRatingDismissed listenerId
|
|
33272
|
+
* @property {string|null} [gingerUserId] CoachingRatingDismissed gingerUserId
|
|
33273
|
+
* @property {string|null} [hsUserId] CoachingRatingDismissed hsUserId
|
|
33274
|
+
* @property {number|Long|null} [dismissedAt] CoachingRatingDismissed dismissedAt
|
|
33275
|
+
* @property {number|null} [dismissedCount] CoachingRatingDismissed dismissedCount
|
|
33276
|
+
*/
|
|
33277
|
+
|
|
33278
|
+
/**
|
|
33279
|
+
* Constructs a new CoachingRatingDismissed.
|
|
33280
|
+
* @name CoachingRatingDismissed
|
|
33281
|
+
* @classdesc Represents a CoachingRatingDismissed.
|
|
33282
|
+
* @implements ICoachingRatingDismissed
|
|
33283
|
+
* @constructor
|
|
33284
|
+
* @param {ICoachingRatingDismissed=} [properties] Properties to set
|
|
33285
|
+
*/
|
|
33286
|
+
function CoachingRatingDismissed(properties) {
|
|
33287
|
+
if (properties)
|
|
33288
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
33289
|
+
if (properties[keys[i]] != null)
|
|
33290
|
+
this[keys[i]] = properties[keys[i]];
|
|
33291
|
+
}
|
|
33292
|
+
|
|
33293
|
+
/**
|
|
33294
|
+
* CoachingRatingDismissed listenerId.
|
|
33295
|
+
* @member {string} listenerId
|
|
33296
|
+
* @memberof CoachingRatingDismissed
|
|
33297
|
+
* @instance
|
|
33298
|
+
*/
|
|
33299
|
+
CoachingRatingDismissed.prototype.listenerId = "";
|
|
33300
|
+
|
|
33301
|
+
/**
|
|
33302
|
+
* CoachingRatingDismissed gingerUserId.
|
|
33303
|
+
* @member {string} gingerUserId
|
|
33304
|
+
* @memberof CoachingRatingDismissed
|
|
33305
|
+
* @instance
|
|
33306
|
+
*/
|
|
33307
|
+
CoachingRatingDismissed.prototype.gingerUserId = "";
|
|
33308
|
+
|
|
33309
|
+
/**
|
|
33310
|
+
* CoachingRatingDismissed hsUserId.
|
|
33311
|
+
* @member {string} hsUserId
|
|
33312
|
+
* @memberof CoachingRatingDismissed
|
|
33313
|
+
* @instance
|
|
33314
|
+
*/
|
|
33315
|
+
CoachingRatingDismissed.prototype.hsUserId = "";
|
|
33316
|
+
|
|
33317
|
+
/**
|
|
33318
|
+
* CoachingRatingDismissed dismissedAt.
|
|
33319
|
+
* @member {number|Long} dismissedAt
|
|
33320
|
+
* @memberof CoachingRatingDismissed
|
|
33321
|
+
* @instance
|
|
33322
|
+
*/
|
|
33323
|
+
CoachingRatingDismissed.prototype.dismissedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
33324
|
+
|
|
33325
|
+
/**
|
|
33326
|
+
* CoachingRatingDismissed dismissedCount.
|
|
33327
|
+
* @member {number} dismissedCount
|
|
33328
|
+
* @memberof CoachingRatingDismissed
|
|
33329
|
+
* @instance
|
|
33330
|
+
*/
|
|
33331
|
+
CoachingRatingDismissed.prototype.dismissedCount = 0;
|
|
33332
|
+
|
|
33333
|
+
/**
|
|
33334
|
+
* Creates a new CoachingRatingDismissed instance using the specified properties.
|
|
33335
|
+
* @function create
|
|
33336
|
+
* @memberof CoachingRatingDismissed
|
|
33337
|
+
* @static
|
|
33338
|
+
* @param {ICoachingRatingDismissed=} [properties] Properties to set
|
|
33339
|
+
* @returns {CoachingRatingDismissed} CoachingRatingDismissed instance
|
|
33340
|
+
*/
|
|
33341
|
+
CoachingRatingDismissed.create = function create(properties) {
|
|
33342
|
+
return new CoachingRatingDismissed(properties);
|
|
33343
|
+
};
|
|
33344
|
+
|
|
33345
|
+
/**
|
|
33346
|
+
* Encodes the specified CoachingRatingDismissed message. Does not implicitly {@link CoachingRatingDismissed.verify|verify} messages.
|
|
33347
|
+
* @function encode
|
|
33348
|
+
* @memberof CoachingRatingDismissed
|
|
33349
|
+
* @static
|
|
33350
|
+
* @param {ICoachingRatingDismissed} message CoachingRatingDismissed message or plain object to encode
|
|
33351
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
33352
|
+
* @returns {$protobuf.Writer} Writer
|
|
33353
|
+
*/
|
|
33354
|
+
CoachingRatingDismissed.encode = function encode(message, writer) {
|
|
33355
|
+
if (!writer)
|
|
33356
|
+
writer = $Writer.create();
|
|
33357
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
33358
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.listenerId);
|
|
33359
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
33360
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.gingerUserId);
|
|
33361
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
33362
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
33363
|
+
if (message.dismissedAt != null && message.hasOwnProperty("dismissedAt"))
|
|
33364
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.dismissedAt);
|
|
33365
|
+
if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
|
|
33366
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.dismissedCount);
|
|
33367
|
+
return writer;
|
|
33368
|
+
};
|
|
33369
|
+
|
|
33370
|
+
/**
|
|
33371
|
+
* Encodes the specified CoachingRatingDismissed message, length delimited. Does not implicitly {@link CoachingRatingDismissed.verify|verify} messages.
|
|
33372
|
+
* @function encodeDelimited
|
|
33373
|
+
* @memberof CoachingRatingDismissed
|
|
33374
|
+
* @static
|
|
33375
|
+
* @param {ICoachingRatingDismissed} message CoachingRatingDismissed message or plain object to encode
|
|
33376
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
33377
|
+
* @returns {$protobuf.Writer} Writer
|
|
33378
|
+
*/
|
|
33379
|
+
CoachingRatingDismissed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
33380
|
+
return this.encode(message, writer).ldelim();
|
|
33381
|
+
};
|
|
33382
|
+
|
|
33383
|
+
/**
|
|
33384
|
+
* Decodes a CoachingRatingDismissed message from the specified reader or buffer.
|
|
33385
|
+
* @function decode
|
|
33386
|
+
* @memberof CoachingRatingDismissed
|
|
33387
|
+
* @static
|
|
33388
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
33389
|
+
* @param {number} [length] Message length if known beforehand
|
|
33390
|
+
* @returns {CoachingRatingDismissed} CoachingRatingDismissed
|
|
33391
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33392
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33393
|
+
*/
|
|
33394
|
+
CoachingRatingDismissed.decode = function decode(reader, length) {
|
|
33395
|
+
if (!(reader instanceof $Reader))
|
|
33396
|
+
reader = $Reader.create(reader);
|
|
33397
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CoachingRatingDismissed();
|
|
33398
|
+
while (reader.pos < end) {
|
|
33399
|
+
var tag = reader.uint32();
|
|
33400
|
+
switch (tag >>> 3) {
|
|
33401
|
+
case 1:
|
|
33402
|
+
message.listenerId = reader.string();
|
|
33403
|
+
break;
|
|
33404
|
+
case 2:
|
|
33405
|
+
message.gingerUserId = reader.string();
|
|
33406
|
+
break;
|
|
33407
|
+
case 3:
|
|
33408
|
+
message.hsUserId = reader.string();
|
|
33409
|
+
break;
|
|
33410
|
+
case 4:
|
|
33411
|
+
message.dismissedAt = reader.uint64();
|
|
33412
|
+
break;
|
|
33413
|
+
case 5:
|
|
33414
|
+
message.dismissedCount = reader.uint32();
|
|
33415
|
+
break;
|
|
33416
|
+
default:
|
|
33417
|
+
reader.skipType(tag & 7);
|
|
33418
|
+
break;
|
|
33419
|
+
}
|
|
33420
|
+
}
|
|
33421
|
+
return message;
|
|
33422
|
+
};
|
|
33423
|
+
|
|
33424
|
+
/**
|
|
33425
|
+
* Decodes a CoachingRatingDismissed message from the specified reader or buffer, length delimited.
|
|
33426
|
+
* @function decodeDelimited
|
|
33427
|
+
* @memberof CoachingRatingDismissed
|
|
33428
|
+
* @static
|
|
33429
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
33430
|
+
* @returns {CoachingRatingDismissed} CoachingRatingDismissed
|
|
33431
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33432
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33433
|
+
*/
|
|
33434
|
+
CoachingRatingDismissed.decodeDelimited = function decodeDelimited(reader) {
|
|
33435
|
+
if (!(reader instanceof $Reader))
|
|
33436
|
+
reader = new $Reader(reader);
|
|
33437
|
+
return this.decode(reader, reader.uint32());
|
|
33438
|
+
};
|
|
33439
|
+
|
|
33440
|
+
/**
|
|
33441
|
+
* Verifies a CoachingRatingDismissed message.
|
|
33442
|
+
* @function verify
|
|
33443
|
+
* @memberof CoachingRatingDismissed
|
|
33444
|
+
* @static
|
|
33445
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
33446
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
33447
|
+
*/
|
|
33448
|
+
CoachingRatingDismissed.verify = function verify(message) {
|
|
33449
|
+
if (typeof message !== "object" || message === null)
|
|
33450
|
+
return "object expected";
|
|
33451
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
33452
|
+
if (!$util.isString(message.listenerId))
|
|
33453
|
+
return "listenerId: string expected";
|
|
33454
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
33455
|
+
if (!$util.isString(message.gingerUserId))
|
|
33456
|
+
return "gingerUserId: string expected";
|
|
33457
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
33458
|
+
if (!$util.isString(message.hsUserId))
|
|
33459
|
+
return "hsUserId: string expected";
|
|
33460
|
+
if (message.dismissedAt != null && message.hasOwnProperty("dismissedAt"))
|
|
33461
|
+
if (!$util.isInteger(message.dismissedAt) && !(message.dismissedAt && $util.isInteger(message.dismissedAt.low) && $util.isInteger(message.dismissedAt.high)))
|
|
33462
|
+
return "dismissedAt: integer|Long expected";
|
|
33463
|
+
if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
|
|
33464
|
+
if (!$util.isInteger(message.dismissedCount))
|
|
33465
|
+
return "dismissedCount: integer expected";
|
|
33466
|
+
return null;
|
|
33467
|
+
};
|
|
33468
|
+
|
|
33469
|
+
/**
|
|
33470
|
+
* Creates a CoachingRatingDismissed message from a plain object. Also converts values to their respective internal types.
|
|
33471
|
+
* @function fromObject
|
|
33472
|
+
* @memberof CoachingRatingDismissed
|
|
33473
|
+
* @static
|
|
33474
|
+
* @param {Object.<string,*>} object Plain object
|
|
33475
|
+
* @returns {CoachingRatingDismissed} CoachingRatingDismissed
|
|
33476
|
+
*/
|
|
33477
|
+
CoachingRatingDismissed.fromObject = function fromObject(object) {
|
|
33478
|
+
if (object instanceof $root.CoachingRatingDismissed)
|
|
33479
|
+
return object;
|
|
33480
|
+
var message = new $root.CoachingRatingDismissed();
|
|
33481
|
+
if (object.listenerId != null)
|
|
33482
|
+
message.listenerId = String(object.listenerId);
|
|
33483
|
+
if (object.gingerUserId != null)
|
|
33484
|
+
message.gingerUserId = String(object.gingerUserId);
|
|
33485
|
+
if (object.hsUserId != null)
|
|
33486
|
+
message.hsUserId = String(object.hsUserId);
|
|
33487
|
+
if (object.dismissedAt != null)
|
|
33488
|
+
if ($util.Long)
|
|
33489
|
+
(message.dismissedAt = $util.Long.fromValue(object.dismissedAt)).unsigned = true;
|
|
33490
|
+
else if (typeof object.dismissedAt === "string")
|
|
33491
|
+
message.dismissedAt = parseInt(object.dismissedAt, 10);
|
|
33492
|
+
else if (typeof object.dismissedAt === "number")
|
|
33493
|
+
message.dismissedAt = object.dismissedAt;
|
|
33494
|
+
else if (typeof object.dismissedAt === "object")
|
|
33495
|
+
message.dismissedAt = new $util.LongBits(object.dismissedAt.low >>> 0, object.dismissedAt.high >>> 0).toNumber(true);
|
|
33496
|
+
if (object.dismissedCount != null)
|
|
33497
|
+
message.dismissedCount = object.dismissedCount >>> 0;
|
|
33498
|
+
return message;
|
|
33499
|
+
};
|
|
33500
|
+
|
|
33501
|
+
/**
|
|
33502
|
+
* Creates a plain object from a CoachingRatingDismissed message. Also converts values to other types if specified.
|
|
33503
|
+
* @function toObject
|
|
33504
|
+
* @memberof CoachingRatingDismissed
|
|
33505
|
+
* @static
|
|
33506
|
+
* @param {CoachingRatingDismissed} message CoachingRatingDismissed
|
|
33507
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
33508
|
+
* @returns {Object.<string,*>} Plain object
|
|
33509
|
+
*/
|
|
33510
|
+
CoachingRatingDismissed.toObject = function toObject(message, options) {
|
|
33511
|
+
if (!options)
|
|
33512
|
+
options = {};
|
|
33513
|
+
var object = {};
|
|
33514
|
+
if (options.defaults) {
|
|
33515
|
+
object.listenerId = "";
|
|
33516
|
+
object.gingerUserId = "";
|
|
33517
|
+
object.hsUserId = "";
|
|
33518
|
+
if ($util.Long) {
|
|
33519
|
+
var long = new $util.Long(0, 0, true);
|
|
33520
|
+
object.dismissedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
33521
|
+
} else
|
|
33522
|
+
object.dismissedAt = options.longs === String ? "0" : 0;
|
|
33523
|
+
object.dismissedCount = 0;
|
|
33524
|
+
}
|
|
33525
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
33526
|
+
object.listenerId = message.listenerId;
|
|
33527
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
33528
|
+
object.gingerUserId = message.gingerUserId;
|
|
33529
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
33530
|
+
object.hsUserId = message.hsUserId;
|
|
33531
|
+
if (message.dismissedAt != null && message.hasOwnProperty("dismissedAt"))
|
|
33532
|
+
if (typeof message.dismissedAt === "number")
|
|
33533
|
+
object.dismissedAt = options.longs === String ? String(message.dismissedAt) : message.dismissedAt;
|
|
33534
|
+
else
|
|
33535
|
+
object.dismissedAt = options.longs === String ? $util.Long.prototype.toString.call(message.dismissedAt) : options.longs === Number ? new $util.LongBits(message.dismissedAt.low >>> 0, message.dismissedAt.high >>> 0).toNumber(true) : message.dismissedAt;
|
|
33536
|
+
if (message.dismissedCount != null && message.hasOwnProperty("dismissedCount"))
|
|
33537
|
+
object.dismissedCount = message.dismissedCount;
|
|
33538
|
+
return object;
|
|
33539
|
+
};
|
|
33540
|
+
|
|
33541
|
+
/**
|
|
33542
|
+
* Converts this CoachingRatingDismissed to JSON.
|
|
33543
|
+
* @function toJSON
|
|
33544
|
+
* @memberof CoachingRatingDismissed
|
|
33545
|
+
* @instance
|
|
33546
|
+
* @returns {Object.<string,*>} JSON object
|
|
33547
|
+
*/
|
|
33548
|
+
CoachingRatingDismissed.prototype.toJSON = function toJSON() {
|
|
33549
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
33550
|
+
};
|
|
33551
|
+
|
|
33552
|
+
return CoachingRatingDismissed;
|
|
33553
|
+
})();
|
|
33554
|
+
|
|
33555
|
+
$root.CoachingRatingSubmitted = (function() {
|
|
33556
|
+
|
|
33557
|
+
/**
|
|
33558
|
+
* Properties of a CoachingRatingSubmitted.
|
|
33559
|
+
* @name ICoachingRatingSubmitted
|
|
33560
|
+
* @interface ICoachingRatingSubmitted
|
|
33561
|
+
* @property {string|null} [listenerId] CoachingRatingSubmitted listenerId
|
|
33562
|
+
* @property {string|null} [gingerUserId] CoachingRatingSubmitted gingerUserId
|
|
33563
|
+
* @property {string|null} [hsUserId] CoachingRatingSubmitted hsUserId
|
|
33564
|
+
* @property {number|null} [rating] CoachingRatingSubmitted rating
|
|
33565
|
+
* @property {number|null} [understoodRating] CoachingRatingSubmitted understoodRating
|
|
33566
|
+
* @property {number|null} [feltSupportedRating] CoachingRatingSubmitted feltSupportedRating
|
|
33567
|
+
* @property {number|null} [approachRating] CoachingRatingSubmitted approachRating
|
|
33568
|
+
* @property {number|Long|null} [submittedAt] CoachingRatingSubmitted submittedAt
|
|
33569
|
+
*/
|
|
33570
|
+
|
|
33571
|
+
/**
|
|
33572
|
+
* Constructs a new CoachingRatingSubmitted.
|
|
33573
|
+
* @name CoachingRatingSubmitted
|
|
33574
|
+
* @classdesc Represents a CoachingRatingSubmitted.
|
|
33575
|
+
* @implements ICoachingRatingSubmitted
|
|
33576
|
+
* @constructor
|
|
33577
|
+
* @param {ICoachingRatingSubmitted=} [properties] Properties to set
|
|
33578
|
+
*/
|
|
33579
|
+
function CoachingRatingSubmitted(properties) {
|
|
33580
|
+
if (properties)
|
|
33581
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
33582
|
+
if (properties[keys[i]] != null)
|
|
33583
|
+
this[keys[i]] = properties[keys[i]];
|
|
33584
|
+
}
|
|
33585
|
+
|
|
33586
|
+
/**
|
|
33587
|
+
* CoachingRatingSubmitted listenerId.
|
|
33588
|
+
* @member {string} listenerId
|
|
33589
|
+
* @memberof CoachingRatingSubmitted
|
|
33590
|
+
* @instance
|
|
33591
|
+
*/
|
|
33592
|
+
CoachingRatingSubmitted.prototype.listenerId = "";
|
|
33593
|
+
|
|
33594
|
+
/**
|
|
33595
|
+
* CoachingRatingSubmitted gingerUserId.
|
|
33596
|
+
* @member {string} gingerUserId
|
|
33597
|
+
* @memberof CoachingRatingSubmitted
|
|
33598
|
+
* @instance
|
|
33599
|
+
*/
|
|
33600
|
+
CoachingRatingSubmitted.prototype.gingerUserId = "";
|
|
33601
|
+
|
|
33602
|
+
/**
|
|
33603
|
+
* CoachingRatingSubmitted hsUserId.
|
|
33604
|
+
* @member {string} hsUserId
|
|
33605
|
+
* @memberof CoachingRatingSubmitted
|
|
33606
|
+
* @instance
|
|
33607
|
+
*/
|
|
33608
|
+
CoachingRatingSubmitted.prototype.hsUserId = "";
|
|
33609
|
+
|
|
33610
|
+
/**
|
|
33611
|
+
* CoachingRatingSubmitted rating.
|
|
33612
|
+
* @member {number} rating
|
|
33613
|
+
* @memberof CoachingRatingSubmitted
|
|
33614
|
+
* @instance
|
|
33615
|
+
*/
|
|
33616
|
+
CoachingRatingSubmitted.prototype.rating = 0;
|
|
33617
|
+
|
|
33618
|
+
/**
|
|
33619
|
+
* CoachingRatingSubmitted understoodRating.
|
|
33620
|
+
* @member {number} understoodRating
|
|
33621
|
+
* @memberof CoachingRatingSubmitted
|
|
33622
|
+
* @instance
|
|
33623
|
+
*/
|
|
33624
|
+
CoachingRatingSubmitted.prototype.understoodRating = 0;
|
|
33625
|
+
|
|
33626
|
+
/**
|
|
33627
|
+
* CoachingRatingSubmitted feltSupportedRating.
|
|
33628
|
+
* @member {number} feltSupportedRating
|
|
33629
|
+
* @memberof CoachingRatingSubmitted
|
|
33630
|
+
* @instance
|
|
33631
|
+
*/
|
|
33632
|
+
CoachingRatingSubmitted.prototype.feltSupportedRating = 0;
|
|
33633
|
+
|
|
33634
|
+
/**
|
|
33635
|
+
* CoachingRatingSubmitted approachRating.
|
|
33636
|
+
* @member {number} approachRating
|
|
33637
|
+
* @memberof CoachingRatingSubmitted
|
|
33638
|
+
* @instance
|
|
33639
|
+
*/
|
|
33640
|
+
CoachingRatingSubmitted.prototype.approachRating = 0;
|
|
33641
|
+
|
|
33642
|
+
/**
|
|
33643
|
+
* CoachingRatingSubmitted submittedAt.
|
|
33644
|
+
* @member {number|Long} submittedAt
|
|
33645
|
+
* @memberof CoachingRatingSubmitted
|
|
33646
|
+
* @instance
|
|
33647
|
+
*/
|
|
33648
|
+
CoachingRatingSubmitted.prototype.submittedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
33649
|
+
|
|
33650
|
+
/**
|
|
33651
|
+
* Creates a new CoachingRatingSubmitted instance using the specified properties.
|
|
33652
|
+
* @function create
|
|
33653
|
+
* @memberof CoachingRatingSubmitted
|
|
33654
|
+
* @static
|
|
33655
|
+
* @param {ICoachingRatingSubmitted=} [properties] Properties to set
|
|
33656
|
+
* @returns {CoachingRatingSubmitted} CoachingRatingSubmitted instance
|
|
33657
|
+
*/
|
|
33658
|
+
CoachingRatingSubmitted.create = function create(properties) {
|
|
33659
|
+
return new CoachingRatingSubmitted(properties);
|
|
33660
|
+
};
|
|
33661
|
+
|
|
33662
|
+
/**
|
|
33663
|
+
* Encodes the specified CoachingRatingSubmitted message. Does not implicitly {@link CoachingRatingSubmitted.verify|verify} messages.
|
|
33664
|
+
* @function encode
|
|
33665
|
+
* @memberof CoachingRatingSubmitted
|
|
33666
|
+
* @static
|
|
33667
|
+
* @param {ICoachingRatingSubmitted} message CoachingRatingSubmitted message or plain object to encode
|
|
33668
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
33669
|
+
* @returns {$protobuf.Writer} Writer
|
|
33670
|
+
*/
|
|
33671
|
+
CoachingRatingSubmitted.encode = function encode(message, writer) {
|
|
33672
|
+
if (!writer)
|
|
33673
|
+
writer = $Writer.create();
|
|
33674
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
33675
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.listenerId);
|
|
33676
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
33677
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.gingerUserId);
|
|
33678
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
33679
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
33680
|
+
if (message.rating != null && message.hasOwnProperty("rating"))
|
|
33681
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.rating);
|
|
33682
|
+
if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
|
|
33683
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.understoodRating);
|
|
33684
|
+
if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
|
|
33685
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.feltSupportedRating);
|
|
33686
|
+
if (message.approachRating != null && message.hasOwnProperty("approachRating"))
|
|
33687
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.approachRating);
|
|
33688
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
33689
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.submittedAt);
|
|
33690
|
+
return writer;
|
|
33691
|
+
};
|
|
33692
|
+
|
|
33693
|
+
/**
|
|
33694
|
+
* Encodes the specified CoachingRatingSubmitted message, length delimited. Does not implicitly {@link CoachingRatingSubmitted.verify|verify} messages.
|
|
33695
|
+
* @function encodeDelimited
|
|
33696
|
+
* @memberof CoachingRatingSubmitted
|
|
33697
|
+
* @static
|
|
33698
|
+
* @param {ICoachingRatingSubmitted} message CoachingRatingSubmitted message or plain object to encode
|
|
33699
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
33700
|
+
* @returns {$protobuf.Writer} Writer
|
|
33701
|
+
*/
|
|
33702
|
+
CoachingRatingSubmitted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
33703
|
+
return this.encode(message, writer).ldelim();
|
|
33704
|
+
};
|
|
33705
|
+
|
|
33706
|
+
/**
|
|
33707
|
+
* Decodes a CoachingRatingSubmitted message from the specified reader or buffer.
|
|
33708
|
+
* @function decode
|
|
33709
|
+
* @memberof CoachingRatingSubmitted
|
|
33710
|
+
* @static
|
|
33711
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
33712
|
+
* @param {number} [length] Message length if known beforehand
|
|
33713
|
+
* @returns {CoachingRatingSubmitted} CoachingRatingSubmitted
|
|
33714
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33715
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33716
|
+
*/
|
|
33717
|
+
CoachingRatingSubmitted.decode = function decode(reader, length) {
|
|
33718
|
+
if (!(reader instanceof $Reader))
|
|
33719
|
+
reader = $Reader.create(reader);
|
|
33720
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CoachingRatingSubmitted();
|
|
33721
|
+
while (reader.pos < end) {
|
|
33722
|
+
var tag = reader.uint32();
|
|
33723
|
+
switch (tag >>> 3) {
|
|
33724
|
+
case 1:
|
|
33725
|
+
message.listenerId = reader.string();
|
|
33726
|
+
break;
|
|
33727
|
+
case 2:
|
|
33728
|
+
message.gingerUserId = reader.string();
|
|
33729
|
+
break;
|
|
33730
|
+
case 3:
|
|
33731
|
+
message.hsUserId = reader.string();
|
|
33732
|
+
break;
|
|
33733
|
+
case 4:
|
|
33734
|
+
message.rating = reader.uint32();
|
|
33735
|
+
break;
|
|
33736
|
+
case 5:
|
|
33737
|
+
message.understoodRating = reader.uint32();
|
|
33738
|
+
break;
|
|
33739
|
+
case 6:
|
|
33740
|
+
message.feltSupportedRating = reader.uint32();
|
|
33741
|
+
break;
|
|
33742
|
+
case 7:
|
|
33743
|
+
message.approachRating = reader.uint32();
|
|
33744
|
+
break;
|
|
33745
|
+
case 8:
|
|
33746
|
+
message.submittedAt = reader.uint64();
|
|
33747
|
+
break;
|
|
33748
|
+
default:
|
|
33749
|
+
reader.skipType(tag & 7);
|
|
33750
|
+
break;
|
|
33751
|
+
}
|
|
33752
|
+
}
|
|
33753
|
+
return message;
|
|
33754
|
+
};
|
|
33755
|
+
|
|
33756
|
+
/**
|
|
33757
|
+
* Decodes a CoachingRatingSubmitted message from the specified reader or buffer, length delimited.
|
|
33758
|
+
* @function decodeDelimited
|
|
33759
|
+
* @memberof CoachingRatingSubmitted
|
|
33760
|
+
* @static
|
|
33761
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
33762
|
+
* @returns {CoachingRatingSubmitted} CoachingRatingSubmitted
|
|
33763
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33764
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33765
|
+
*/
|
|
33766
|
+
CoachingRatingSubmitted.decodeDelimited = function decodeDelimited(reader) {
|
|
33767
|
+
if (!(reader instanceof $Reader))
|
|
33768
|
+
reader = new $Reader(reader);
|
|
33769
|
+
return this.decode(reader, reader.uint32());
|
|
33770
|
+
};
|
|
33771
|
+
|
|
33772
|
+
/**
|
|
33773
|
+
* Verifies a CoachingRatingSubmitted message.
|
|
33774
|
+
* @function verify
|
|
33775
|
+
* @memberof CoachingRatingSubmitted
|
|
33776
|
+
* @static
|
|
33777
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
33778
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
33779
|
+
*/
|
|
33780
|
+
CoachingRatingSubmitted.verify = function verify(message) {
|
|
33781
|
+
if (typeof message !== "object" || message === null)
|
|
33782
|
+
return "object expected";
|
|
33783
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
33784
|
+
if (!$util.isString(message.listenerId))
|
|
33785
|
+
return "listenerId: string expected";
|
|
33786
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
33787
|
+
if (!$util.isString(message.gingerUserId))
|
|
33788
|
+
return "gingerUserId: string expected";
|
|
33789
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
33790
|
+
if (!$util.isString(message.hsUserId))
|
|
33791
|
+
return "hsUserId: string expected";
|
|
33792
|
+
if (message.rating != null && message.hasOwnProperty("rating"))
|
|
33793
|
+
if (!$util.isInteger(message.rating))
|
|
33794
|
+
return "rating: integer expected";
|
|
33795
|
+
if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
|
|
33796
|
+
if (!$util.isInteger(message.understoodRating))
|
|
33797
|
+
return "understoodRating: integer expected";
|
|
33798
|
+
if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
|
|
33799
|
+
if (!$util.isInteger(message.feltSupportedRating))
|
|
33800
|
+
return "feltSupportedRating: integer expected";
|
|
33801
|
+
if (message.approachRating != null && message.hasOwnProperty("approachRating"))
|
|
33802
|
+
if (!$util.isInteger(message.approachRating))
|
|
33803
|
+
return "approachRating: integer expected";
|
|
33804
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
33805
|
+
if (!$util.isInteger(message.submittedAt) && !(message.submittedAt && $util.isInteger(message.submittedAt.low) && $util.isInteger(message.submittedAt.high)))
|
|
33806
|
+
return "submittedAt: integer|Long expected";
|
|
33807
|
+
return null;
|
|
33808
|
+
};
|
|
33809
|
+
|
|
33810
|
+
/**
|
|
33811
|
+
* Creates a CoachingRatingSubmitted message from a plain object. Also converts values to their respective internal types.
|
|
33812
|
+
* @function fromObject
|
|
33813
|
+
* @memberof CoachingRatingSubmitted
|
|
33814
|
+
* @static
|
|
33815
|
+
* @param {Object.<string,*>} object Plain object
|
|
33816
|
+
* @returns {CoachingRatingSubmitted} CoachingRatingSubmitted
|
|
33817
|
+
*/
|
|
33818
|
+
CoachingRatingSubmitted.fromObject = function fromObject(object) {
|
|
33819
|
+
if (object instanceof $root.CoachingRatingSubmitted)
|
|
33820
|
+
return object;
|
|
33821
|
+
var message = new $root.CoachingRatingSubmitted();
|
|
33822
|
+
if (object.listenerId != null)
|
|
33823
|
+
message.listenerId = String(object.listenerId);
|
|
33824
|
+
if (object.gingerUserId != null)
|
|
33825
|
+
message.gingerUserId = String(object.gingerUserId);
|
|
33826
|
+
if (object.hsUserId != null)
|
|
33827
|
+
message.hsUserId = String(object.hsUserId);
|
|
33828
|
+
if (object.rating != null)
|
|
33829
|
+
message.rating = object.rating >>> 0;
|
|
33830
|
+
if (object.understoodRating != null)
|
|
33831
|
+
message.understoodRating = object.understoodRating >>> 0;
|
|
33832
|
+
if (object.feltSupportedRating != null)
|
|
33833
|
+
message.feltSupportedRating = object.feltSupportedRating >>> 0;
|
|
33834
|
+
if (object.approachRating != null)
|
|
33835
|
+
message.approachRating = object.approachRating >>> 0;
|
|
33836
|
+
if (object.submittedAt != null)
|
|
33837
|
+
if ($util.Long)
|
|
33838
|
+
(message.submittedAt = $util.Long.fromValue(object.submittedAt)).unsigned = true;
|
|
33839
|
+
else if (typeof object.submittedAt === "string")
|
|
33840
|
+
message.submittedAt = parseInt(object.submittedAt, 10);
|
|
33841
|
+
else if (typeof object.submittedAt === "number")
|
|
33842
|
+
message.submittedAt = object.submittedAt;
|
|
33843
|
+
else if (typeof object.submittedAt === "object")
|
|
33844
|
+
message.submittedAt = new $util.LongBits(object.submittedAt.low >>> 0, object.submittedAt.high >>> 0).toNumber(true);
|
|
33845
|
+
return message;
|
|
33846
|
+
};
|
|
33847
|
+
|
|
33848
|
+
/**
|
|
33849
|
+
* Creates a plain object from a CoachingRatingSubmitted message. Also converts values to other types if specified.
|
|
33850
|
+
* @function toObject
|
|
33851
|
+
* @memberof CoachingRatingSubmitted
|
|
33852
|
+
* @static
|
|
33853
|
+
* @param {CoachingRatingSubmitted} message CoachingRatingSubmitted
|
|
33854
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
33855
|
+
* @returns {Object.<string,*>} Plain object
|
|
33856
|
+
*/
|
|
33857
|
+
CoachingRatingSubmitted.toObject = function toObject(message, options) {
|
|
33858
|
+
if (!options)
|
|
33859
|
+
options = {};
|
|
33860
|
+
var object = {};
|
|
33861
|
+
if (options.defaults) {
|
|
33862
|
+
object.listenerId = "";
|
|
33863
|
+
object.gingerUserId = "";
|
|
33864
|
+
object.hsUserId = "";
|
|
33865
|
+
object.rating = 0;
|
|
33866
|
+
object.understoodRating = 0;
|
|
33867
|
+
object.feltSupportedRating = 0;
|
|
33868
|
+
object.approachRating = 0;
|
|
33869
|
+
if ($util.Long) {
|
|
33870
|
+
var long = new $util.Long(0, 0, true);
|
|
33871
|
+
object.submittedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
33872
|
+
} else
|
|
33873
|
+
object.submittedAt = options.longs === String ? "0" : 0;
|
|
33874
|
+
}
|
|
33875
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
33876
|
+
object.listenerId = message.listenerId;
|
|
33877
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
33878
|
+
object.gingerUserId = message.gingerUserId;
|
|
33879
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
33880
|
+
object.hsUserId = message.hsUserId;
|
|
33881
|
+
if (message.rating != null && message.hasOwnProperty("rating"))
|
|
33882
|
+
object.rating = message.rating;
|
|
33883
|
+
if (message.understoodRating != null && message.hasOwnProperty("understoodRating"))
|
|
33884
|
+
object.understoodRating = message.understoodRating;
|
|
33885
|
+
if (message.feltSupportedRating != null && message.hasOwnProperty("feltSupportedRating"))
|
|
33886
|
+
object.feltSupportedRating = message.feltSupportedRating;
|
|
33887
|
+
if (message.approachRating != null && message.hasOwnProperty("approachRating"))
|
|
33888
|
+
object.approachRating = message.approachRating;
|
|
33889
|
+
if (message.submittedAt != null && message.hasOwnProperty("submittedAt"))
|
|
33890
|
+
if (typeof message.submittedAt === "number")
|
|
33891
|
+
object.submittedAt = options.longs === String ? String(message.submittedAt) : message.submittedAt;
|
|
33892
|
+
else
|
|
33893
|
+
object.submittedAt = options.longs === String ? $util.Long.prototype.toString.call(message.submittedAt) : options.longs === Number ? new $util.LongBits(message.submittedAt.low >>> 0, message.submittedAt.high >>> 0).toNumber(true) : message.submittedAt;
|
|
33894
|
+
return object;
|
|
33895
|
+
};
|
|
33896
|
+
|
|
33897
|
+
/**
|
|
33898
|
+
* Converts this CoachingRatingSubmitted to JSON.
|
|
33899
|
+
* @function toJSON
|
|
33900
|
+
* @memberof CoachingRatingSubmitted
|
|
33901
|
+
* @instance
|
|
33902
|
+
* @returns {Object.<string,*>} JSON object
|
|
33903
|
+
*/
|
|
33904
|
+
CoachingRatingSubmitted.prototype.toJSON = function toJSON() {
|
|
33905
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
33906
|
+
};
|
|
33907
|
+
|
|
33908
|
+
return CoachingRatingSubmitted;
|
|
33909
|
+
})();
|
|
33910
|
+
|
|
32083
33911
|
$root.CompletedActivity = (function() {
|
|
32084
33912
|
|
|
32085
33913
|
/**
|
|
@@ -164834,6 +166662,7 @@ $root.clinical = (function() {
|
|
|
164834
166662
|
case 1:
|
|
164835
166663
|
case 2:
|
|
164836
166664
|
case 3:
|
|
166665
|
+
case 4:
|
|
164837
166666
|
break;
|
|
164838
166667
|
}
|
|
164839
166668
|
return null;
|
|
@@ -164921,6 +166750,10 @@ $root.clinical = (function() {
|
|
|
164921
166750
|
case 3:
|
|
164922
166751
|
message.messageType = 3;
|
|
164923
166752
|
break;
|
|
166753
|
+
case "COACHING_CHAT_MESSAGE_TYPE_RPC":
|
|
166754
|
+
case 4:
|
|
166755
|
+
message.messageType = 4;
|
|
166756
|
+
break;
|
|
164924
166757
|
}
|
|
164925
166758
|
return message;
|
|
164926
166759
|
};
|
|
@@ -165032,6 +166865,7 @@ $root.clinical = (function() {
|
|
|
165032
166865
|
* @property {number} COACHING_CHAT_MESSAGE_TYPE_MANUAL=1 COACHING_CHAT_MESSAGE_TYPE_MANUAL value
|
|
165033
166866
|
* @property {number} COACHING_CHAT_MESSAGE_TYPE_MEMBER_AUTOMESSAGE=2 COACHING_CHAT_MESSAGE_TYPE_MEMBER_AUTOMESSAGE value
|
|
165034
166867
|
* @property {number} COACHING_CHAT_MESSAGE_TYPE_COACH_AUTOMESSAGE=3 COACHING_CHAT_MESSAGE_TYPE_COACH_AUTOMESSAGE value
|
|
166868
|
+
* @property {number} COACHING_CHAT_MESSAGE_TYPE_RPC=4 COACHING_CHAT_MESSAGE_TYPE_RPC value
|
|
165035
166869
|
*/
|
|
165036
166870
|
clinical.CoachingChatMessageType = (function() {
|
|
165037
166871
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -165039,6 +166873,7 @@ $root.clinical = (function() {
|
|
|
165039
166873
|
values[valuesById[1] = "COACHING_CHAT_MESSAGE_TYPE_MANUAL"] = 1;
|
|
165040
166874
|
values[valuesById[2] = "COACHING_CHAT_MESSAGE_TYPE_MEMBER_AUTOMESSAGE"] = 2;
|
|
165041
166875
|
values[valuesById[3] = "COACHING_CHAT_MESSAGE_TYPE_COACH_AUTOMESSAGE"] = 3;
|
|
166876
|
+
values[valuesById[4] = "COACHING_CHAT_MESSAGE_TYPE_RPC"] = 4;
|
|
165042
166877
|
return values;
|
|
165043
166878
|
})();
|
|
165044
166879
|
|