@headspace/protos-events 1.573.0 → 1.575.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 +544 -0
- package/lib/index.js +1380 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -87536,6 +87536,7 @@ $root.EligibilityLinked = (function() {
|
|
|
87536
87536
|
* @property {string|null} [preferredCountry] EligibilityLinked preferredCountry
|
|
87537
87537
|
* @property {string|null} [countryStateCode] EligibilityLinked countryStateCode
|
|
87538
87538
|
* @property {string|null} [dependentOf] EligibilityLinked dependentOf
|
|
87539
|
+
* @property {b2b.EnrollmentFlow|null} [enrollmentFlow] EligibilityLinked enrollmentFlow
|
|
87539
87540
|
*/
|
|
87540
87541
|
|
|
87541
87542
|
/**
|
|
@@ -87666,6 +87667,14 @@ $root.EligibilityLinked = (function() {
|
|
|
87666
87667
|
*/
|
|
87667
87668
|
EligibilityLinked.prototype.dependentOf = "";
|
|
87668
87669
|
|
|
87670
|
+
/**
|
|
87671
|
+
* EligibilityLinked enrollmentFlow.
|
|
87672
|
+
* @member {b2b.EnrollmentFlow} enrollmentFlow
|
|
87673
|
+
* @memberof EligibilityLinked
|
|
87674
|
+
* @instance
|
|
87675
|
+
*/
|
|
87676
|
+
EligibilityLinked.prototype.enrollmentFlow = 0;
|
|
87677
|
+
|
|
87669
87678
|
/**
|
|
87670
87679
|
* Creates a new EligibilityLinked instance using the specified properties.
|
|
87671
87680
|
* @function create
|
|
@@ -87719,6 +87728,8 @@ $root.EligibilityLinked = (function() {
|
|
|
87719
87728
|
writer.uint32(/* id 13, wireType 2 =*/106).string(message.countryStateCode);
|
|
87720
87729
|
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
87721
87730
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.dependentOf);
|
|
87731
|
+
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
87732
|
+
writer.uint32(/* id 15, wireType 0 =*/120).int32(message.enrollmentFlow);
|
|
87722
87733
|
return writer;
|
|
87723
87734
|
};
|
|
87724
87735
|
|
|
@@ -87797,6 +87808,9 @@ $root.EligibilityLinked = (function() {
|
|
|
87797
87808
|
case 14:
|
|
87798
87809
|
message.dependentOf = reader.string();
|
|
87799
87810
|
break;
|
|
87811
|
+
case 15:
|
|
87812
|
+
message.enrollmentFlow = reader.int32();
|
|
87813
|
+
break;
|
|
87800
87814
|
default:
|
|
87801
87815
|
reader.skipType(tag & 7);
|
|
87802
87816
|
break;
|
|
@@ -87883,6 +87897,18 @@ $root.EligibilityLinked = (function() {
|
|
|
87883
87897
|
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
87884
87898
|
if (!$util.isString(message.dependentOf))
|
|
87885
87899
|
return "dependentOf: string expected";
|
|
87900
|
+
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
87901
|
+
switch (message.enrollmentFlow) {
|
|
87902
|
+
default:
|
|
87903
|
+
return "enrollmentFlow: enum value expected";
|
|
87904
|
+
case 0:
|
|
87905
|
+
case 1:
|
|
87906
|
+
case 2:
|
|
87907
|
+
case 3:
|
|
87908
|
+
case 4:
|
|
87909
|
+
case 5:
|
|
87910
|
+
break;
|
|
87911
|
+
}
|
|
87886
87912
|
return null;
|
|
87887
87913
|
};
|
|
87888
87914
|
|
|
@@ -87953,6 +87979,32 @@ $root.EligibilityLinked = (function() {
|
|
|
87953
87979
|
message.countryStateCode = String(object.countryStateCode);
|
|
87954
87980
|
if (object.dependentOf != null)
|
|
87955
87981
|
message.dependentOf = String(object.dependentOf);
|
|
87982
|
+
switch (object.enrollmentFlow) {
|
|
87983
|
+
case "ENROLLMENT_FLOW_UNKNOWN":
|
|
87984
|
+
case 0:
|
|
87985
|
+
message.enrollmentFlow = 0;
|
|
87986
|
+
break;
|
|
87987
|
+
case "ENROLLMENT_FLOW_HEADSPACE":
|
|
87988
|
+
case 1:
|
|
87989
|
+
message.enrollmentFlow = 1;
|
|
87990
|
+
break;
|
|
87991
|
+
case "ENROLLMENT_FLOW_CONNECTED":
|
|
87992
|
+
case 2:
|
|
87993
|
+
message.enrollmentFlow = 2;
|
|
87994
|
+
break;
|
|
87995
|
+
case "ENROLLMENT_FLOW_UMD":
|
|
87996
|
+
case 3:
|
|
87997
|
+
message.enrollmentFlow = 3;
|
|
87998
|
+
break;
|
|
87999
|
+
case "ENROLLMENT_FLOW_FUSION":
|
|
88000
|
+
case 4:
|
|
88001
|
+
message.enrollmentFlow = 4;
|
|
88002
|
+
break;
|
|
88003
|
+
case "ENROLLMENT_FLOW_GINGER":
|
|
88004
|
+
case 5:
|
|
88005
|
+
message.enrollmentFlow = 5;
|
|
88006
|
+
break;
|
|
88007
|
+
}
|
|
87956
88008
|
return message;
|
|
87957
88009
|
};
|
|
87958
88010
|
|
|
@@ -87993,6 +88045,7 @@ $root.EligibilityLinked = (function() {
|
|
|
87993
88045
|
object.preferredCountry = "";
|
|
87994
88046
|
object.countryStateCode = "";
|
|
87995
88047
|
object.dependentOf = "";
|
|
88048
|
+
object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
87996
88049
|
}
|
|
87997
88050
|
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
87998
88051
|
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
@@ -88031,6 +88084,8 @@ $root.EligibilityLinked = (function() {
|
|
|
88031
88084
|
object.countryStateCode = message.countryStateCode;
|
|
88032
88085
|
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
88033
88086
|
object.dependentOf = message.dependentOf;
|
|
88087
|
+
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
88088
|
+
object.enrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
|
|
88034
88089
|
return object;
|
|
88035
88090
|
};
|
|
88036
88091
|
|
|
@@ -122389,6 +122444,1331 @@ $root.GuidedProgramDeleted = (function() {
|
|
|
122389
122444
|
return GuidedProgramDeleted;
|
|
122390
122445
|
})();
|
|
122391
122446
|
|
|
122447
|
+
$root.InteractiveJournalingParticipant = (function() {
|
|
122448
|
+
|
|
122449
|
+
/**
|
|
122450
|
+
* Properties of an InteractiveJournalingParticipant.
|
|
122451
|
+
* @name IInteractiveJournalingParticipant
|
|
122452
|
+
* @interface IInteractiveJournalingParticipant
|
|
122453
|
+
* @property {string|null} [hsUserId] InteractiveJournalingParticipant hsUserId
|
|
122454
|
+
* @property {boolean|null} [isBot] InteractiveJournalingParticipant isBot
|
|
122455
|
+
*/
|
|
122456
|
+
|
|
122457
|
+
/**
|
|
122458
|
+
* Constructs a new InteractiveJournalingParticipant.
|
|
122459
|
+
* @name InteractiveJournalingParticipant
|
|
122460
|
+
* @classdesc Represents an InteractiveJournalingParticipant.
|
|
122461
|
+
* @implements IInteractiveJournalingParticipant
|
|
122462
|
+
* @constructor
|
|
122463
|
+
* @param {IInteractiveJournalingParticipant=} [properties] Properties to set
|
|
122464
|
+
*/
|
|
122465
|
+
function InteractiveJournalingParticipant(properties) {
|
|
122466
|
+
if (properties)
|
|
122467
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
122468
|
+
if (properties[keys[i]] != null)
|
|
122469
|
+
this[keys[i]] = properties[keys[i]];
|
|
122470
|
+
}
|
|
122471
|
+
|
|
122472
|
+
/**
|
|
122473
|
+
* InteractiveJournalingParticipant hsUserId.
|
|
122474
|
+
* @member {string} hsUserId
|
|
122475
|
+
* @memberof InteractiveJournalingParticipant
|
|
122476
|
+
* @instance
|
|
122477
|
+
*/
|
|
122478
|
+
InteractiveJournalingParticipant.prototype.hsUserId = "";
|
|
122479
|
+
|
|
122480
|
+
/**
|
|
122481
|
+
* InteractiveJournalingParticipant isBot.
|
|
122482
|
+
* @member {boolean} isBot
|
|
122483
|
+
* @memberof InteractiveJournalingParticipant
|
|
122484
|
+
* @instance
|
|
122485
|
+
*/
|
|
122486
|
+
InteractiveJournalingParticipant.prototype.isBot = false;
|
|
122487
|
+
|
|
122488
|
+
/**
|
|
122489
|
+
* Creates a new InteractiveJournalingParticipant instance using the specified properties.
|
|
122490
|
+
* @function create
|
|
122491
|
+
* @memberof InteractiveJournalingParticipant
|
|
122492
|
+
* @static
|
|
122493
|
+
* @param {IInteractiveJournalingParticipant=} [properties] Properties to set
|
|
122494
|
+
* @returns {InteractiveJournalingParticipant} InteractiveJournalingParticipant instance
|
|
122495
|
+
*/
|
|
122496
|
+
InteractiveJournalingParticipant.create = function create(properties) {
|
|
122497
|
+
return new InteractiveJournalingParticipant(properties);
|
|
122498
|
+
};
|
|
122499
|
+
|
|
122500
|
+
/**
|
|
122501
|
+
* Encodes the specified InteractiveJournalingParticipant message. Does not implicitly {@link InteractiveJournalingParticipant.verify|verify} messages.
|
|
122502
|
+
* @function encode
|
|
122503
|
+
* @memberof InteractiveJournalingParticipant
|
|
122504
|
+
* @static
|
|
122505
|
+
* @param {IInteractiveJournalingParticipant} message InteractiveJournalingParticipant message or plain object to encode
|
|
122506
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122507
|
+
* @returns {$protobuf.Writer} Writer
|
|
122508
|
+
*/
|
|
122509
|
+
InteractiveJournalingParticipant.encode = function encode(message, writer) {
|
|
122510
|
+
if (!writer)
|
|
122511
|
+
writer = $Writer.create();
|
|
122512
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
122513
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
122514
|
+
if (message.isBot != null && message.hasOwnProperty("isBot"))
|
|
122515
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isBot);
|
|
122516
|
+
return writer;
|
|
122517
|
+
};
|
|
122518
|
+
|
|
122519
|
+
/**
|
|
122520
|
+
* Encodes the specified InteractiveJournalingParticipant message, length delimited. Does not implicitly {@link InteractiveJournalingParticipant.verify|verify} messages.
|
|
122521
|
+
* @function encodeDelimited
|
|
122522
|
+
* @memberof InteractiveJournalingParticipant
|
|
122523
|
+
* @static
|
|
122524
|
+
* @param {IInteractiveJournalingParticipant} message InteractiveJournalingParticipant message or plain object to encode
|
|
122525
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122526
|
+
* @returns {$protobuf.Writer} Writer
|
|
122527
|
+
*/
|
|
122528
|
+
InteractiveJournalingParticipant.encodeDelimited = function encodeDelimited(message, writer) {
|
|
122529
|
+
return this.encode(message, writer).ldelim();
|
|
122530
|
+
};
|
|
122531
|
+
|
|
122532
|
+
/**
|
|
122533
|
+
* Decodes an InteractiveJournalingParticipant message from the specified reader or buffer.
|
|
122534
|
+
* @function decode
|
|
122535
|
+
* @memberof InteractiveJournalingParticipant
|
|
122536
|
+
* @static
|
|
122537
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122538
|
+
* @param {number} [length] Message length if known beforehand
|
|
122539
|
+
* @returns {InteractiveJournalingParticipant} InteractiveJournalingParticipant
|
|
122540
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122541
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122542
|
+
*/
|
|
122543
|
+
InteractiveJournalingParticipant.decode = function decode(reader, length) {
|
|
122544
|
+
if (!(reader instanceof $Reader))
|
|
122545
|
+
reader = $Reader.create(reader);
|
|
122546
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingParticipant();
|
|
122547
|
+
while (reader.pos < end) {
|
|
122548
|
+
var tag = reader.uint32();
|
|
122549
|
+
switch (tag >>> 3) {
|
|
122550
|
+
case 1:
|
|
122551
|
+
message.hsUserId = reader.string();
|
|
122552
|
+
break;
|
|
122553
|
+
case 2:
|
|
122554
|
+
message.isBot = reader.bool();
|
|
122555
|
+
break;
|
|
122556
|
+
default:
|
|
122557
|
+
reader.skipType(tag & 7);
|
|
122558
|
+
break;
|
|
122559
|
+
}
|
|
122560
|
+
}
|
|
122561
|
+
return message;
|
|
122562
|
+
};
|
|
122563
|
+
|
|
122564
|
+
/**
|
|
122565
|
+
* Decodes an InteractiveJournalingParticipant message from the specified reader or buffer, length delimited.
|
|
122566
|
+
* @function decodeDelimited
|
|
122567
|
+
* @memberof InteractiveJournalingParticipant
|
|
122568
|
+
* @static
|
|
122569
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122570
|
+
* @returns {InteractiveJournalingParticipant} InteractiveJournalingParticipant
|
|
122571
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122572
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122573
|
+
*/
|
|
122574
|
+
InteractiveJournalingParticipant.decodeDelimited = function decodeDelimited(reader) {
|
|
122575
|
+
if (!(reader instanceof $Reader))
|
|
122576
|
+
reader = new $Reader(reader);
|
|
122577
|
+
return this.decode(reader, reader.uint32());
|
|
122578
|
+
};
|
|
122579
|
+
|
|
122580
|
+
/**
|
|
122581
|
+
* Verifies an InteractiveJournalingParticipant message.
|
|
122582
|
+
* @function verify
|
|
122583
|
+
* @memberof InteractiveJournalingParticipant
|
|
122584
|
+
* @static
|
|
122585
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
122586
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
122587
|
+
*/
|
|
122588
|
+
InteractiveJournalingParticipant.verify = function verify(message) {
|
|
122589
|
+
if (typeof message !== "object" || message === null)
|
|
122590
|
+
return "object expected";
|
|
122591
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
122592
|
+
if (!$util.isString(message.hsUserId))
|
|
122593
|
+
return "hsUserId: string expected";
|
|
122594
|
+
if (message.isBot != null && message.hasOwnProperty("isBot"))
|
|
122595
|
+
if (typeof message.isBot !== "boolean")
|
|
122596
|
+
return "isBot: boolean expected";
|
|
122597
|
+
return null;
|
|
122598
|
+
};
|
|
122599
|
+
|
|
122600
|
+
/**
|
|
122601
|
+
* Creates an InteractiveJournalingParticipant message from a plain object. Also converts values to their respective internal types.
|
|
122602
|
+
* @function fromObject
|
|
122603
|
+
* @memberof InteractiveJournalingParticipant
|
|
122604
|
+
* @static
|
|
122605
|
+
* @param {Object.<string,*>} object Plain object
|
|
122606
|
+
* @returns {InteractiveJournalingParticipant} InteractiveJournalingParticipant
|
|
122607
|
+
*/
|
|
122608
|
+
InteractiveJournalingParticipant.fromObject = function fromObject(object) {
|
|
122609
|
+
if (object instanceof $root.InteractiveJournalingParticipant)
|
|
122610
|
+
return object;
|
|
122611
|
+
var message = new $root.InteractiveJournalingParticipant();
|
|
122612
|
+
if (object.hsUserId != null)
|
|
122613
|
+
message.hsUserId = String(object.hsUserId);
|
|
122614
|
+
if (object.isBot != null)
|
|
122615
|
+
message.isBot = Boolean(object.isBot);
|
|
122616
|
+
return message;
|
|
122617
|
+
};
|
|
122618
|
+
|
|
122619
|
+
/**
|
|
122620
|
+
* Creates a plain object from an InteractiveJournalingParticipant message. Also converts values to other types if specified.
|
|
122621
|
+
* @function toObject
|
|
122622
|
+
* @memberof InteractiveJournalingParticipant
|
|
122623
|
+
* @static
|
|
122624
|
+
* @param {InteractiveJournalingParticipant} message InteractiveJournalingParticipant
|
|
122625
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
122626
|
+
* @returns {Object.<string,*>} Plain object
|
|
122627
|
+
*/
|
|
122628
|
+
InteractiveJournalingParticipant.toObject = function toObject(message, options) {
|
|
122629
|
+
if (!options)
|
|
122630
|
+
options = {};
|
|
122631
|
+
var object = {};
|
|
122632
|
+
if (options.defaults) {
|
|
122633
|
+
object.hsUserId = "";
|
|
122634
|
+
object.isBot = false;
|
|
122635
|
+
}
|
|
122636
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
122637
|
+
object.hsUserId = message.hsUserId;
|
|
122638
|
+
if (message.isBot != null && message.hasOwnProperty("isBot"))
|
|
122639
|
+
object.isBot = message.isBot;
|
|
122640
|
+
return object;
|
|
122641
|
+
};
|
|
122642
|
+
|
|
122643
|
+
/**
|
|
122644
|
+
* Converts this InteractiveJournalingParticipant to JSON.
|
|
122645
|
+
* @function toJSON
|
|
122646
|
+
* @memberof InteractiveJournalingParticipant
|
|
122647
|
+
* @instance
|
|
122648
|
+
* @returns {Object.<string,*>} JSON object
|
|
122649
|
+
*/
|
|
122650
|
+
InteractiveJournalingParticipant.prototype.toJSON = function toJSON() {
|
|
122651
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
122652
|
+
};
|
|
122653
|
+
|
|
122654
|
+
return InteractiveJournalingParticipant;
|
|
122655
|
+
})();
|
|
122656
|
+
|
|
122657
|
+
/**
|
|
122658
|
+
* InteractiveJournalingConversationKind enum.
|
|
122659
|
+
* @name InteractiveJournalingConversationKind
|
|
122660
|
+
* @enum {string}
|
|
122661
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_KIND_UNKNOWN=0 INTERACTIVE_JOURNALING_CONVERSATION_KIND_UNKNOWN value
|
|
122662
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_KIND_PROCESS_EMOTION=1 INTERACTIVE_JOURNALING_CONVERSATION_KIND_PROCESS_EMOTION value
|
|
122663
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_KIND_FIND_GRATITUDE=2 INTERACTIVE_JOURNALING_CONVERSATION_KIND_FIND_GRATITUDE value
|
|
122664
|
+
*/
|
|
122665
|
+
$root.InteractiveJournalingConversationKind = (function() {
|
|
122666
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
122667
|
+
values[valuesById[0] = "INTERACTIVE_JOURNALING_CONVERSATION_KIND_UNKNOWN"] = 0;
|
|
122668
|
+
values[valuesById[1] = "INTERACTIVE_JOURNALING_CONVERSATION_KIND_PROCESS_EMOTION"] = 1;
|
|
122669
|
+
values[valuesById[2] = "INTERACTIVE_JOURNALING_CONVERSATION_KIND_FIND_GRATITUDE"] = 2;
|
|
122670
|
+
return values;
|
|
122671
|
+
})();
|
|
122672
|
+
|
|
122673
|
+
$root.InteractiveJournalingMessage = (function() {
|
|
122674
|
+
|
|
122675
|
+
/**
|
|
122676
|
+
* Properties of an InteractiveJournalingMessage.
|
|
122677
|
+
* @name IInteractiveJournalingMessage
|
|
122678
|
+
* @interface IInteractiveJournalingMessage
|
|
122679
|
+
* @property {string|null} [messageId] InteractiveJournalingMessage messageId
|
|
122680
|
+
* @property {string|null} [conversationId] InteractiveJournalingMessage conversationId
|
|
122681
|
+
* @property {number|Long|null} [createdAt] InteractiveJournalingMessage createdAt
|
|
122682
|
+
* @property {IInteractiveJournalingParticipant|null} [author] InteractiveJournalingMessage author
|
|
122683
|
+
* @property {InteractiveJournalingConversationKind|null} [conversationKind] InteractiveJournalingMessage conversationKind
|
|
122684
|
+
* @property {string|null} [messageContent] InteractiveJournalingMessage messageContent
|
|
122685
|
+
* @property {InteractiveJournalingMessage.ICustomAttributes|null} [customDisplayAttributes] InteractiveJournalingMessage customDisplayAttributes
|
|
122686
|
+
* @property {Array.<InteractiveJournalingMessage.IReplyButton>|null} [replyButtons] InteractiveJournalingMessage replyButtons
|
|
122687
|
+
*/
|
|
122688
|
+
|
|
122689
|
+
/**
|
|
122690
|
+
* Constructs a new InteractiveJournalingMessage.
|
|
122691
|
+
* @name InteractiveJournalingMessage
|
|
122692
|
+
* @classdesc Represents an InteractiveJournalingMessage.
|
|
122693
|
+
* @implements IInteractiveJournalingMessage
|
|
122694
|
+
* @constructor
|
|
122695
|
+
* @param {IInteractiveJournalingMessage=} [properties] Properties to set
|
|
122696
|
+
*/
|
|
122697
|
+
function InteractiveJournalingMessage(properties) {
|
|
122698
|
+
this.replyButtons = [];
|
|
122699
|
+
if (properties)
|
|
122700
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
122701
|
+
if (properties[keys[i]] != null)
|
|
122702
|
+
this[keys[i]] = properties[keys[i]];
|
|
122703
|
+
}
|
|
122704
|
+
|
|
122705
|
+
/**
|
|
122706
|
+
* InteractiveJournalingMessage messageId.
|
|
122707
|
+
* @member {string} messageId
|
|
122708
|
+
* @memberof InteractiveJournalingMessage
|
|
122709
|
+
* @instance
|
|
122710
|
+
*/
|
|
122711
|
+
InteractiveJournalingMessage.prototype.messageId = "";
|
|
122712
|
+
|
|
122713
|
+
/**
|
|
122714
|
+
* InteractiveJournalingMessage conversationId.
|
|
122715
|
+
* @member {string} conversationId
|
|
122716
|
+
* @memberof InteractiveJournalingMessage
|
|
122717
|
+
* @instance
|
|
122718
|
+
*/
|
|
122719
|
+
InteractiveJournalingMessage.prototype.conversationId = "";
|
|
122720
|
+
|
|
122721
|
+
/**
|
|
122722
|
+
* InteractiveJournalingMessage createdAt.
|
|
122723
|
+
* @member {number|Long} createdAt
|
|
122724
|
+
* @memberof InteractiveJournalingMessage
|
|
122725
|
+
* @instance
|
|
122726
|
+
*/
|
|
122727
|
+
InteractiveJournalingMessage.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
122728
|
+
|
|
122729
|
+
/**
|
|
122730
|
+
* InteractiveJournalingMessage author.
|
|
122731
|
+
* @member {IInteractiveJournalingParticipant|null|undefined} author
|
|
122732
|
+
* @memberof InteractiveJournalingMessage
|
|
122733
|
+
* @instance
|
|
122734
|
+
*/
|
|
122735
|
+
InteractiveJournalingMessage.prototype.author = null;
|
|
122736
|
+
|
|
122737
|
+
/**
|
|
122738
|
+
* InteractiveJournalingMessage conversationKind.
|
|
122739
|
+
* @member {InteractiveJournalingConversationKind} conversationKind
|
|
122740
|
+
* @memberof InteractiveJournalingMessage
|
|
122741
|
+
* @instance
|
|
122742
|
+
*/
|
|
122743
|
+
InteractiveJournalingMessage.prototype.conversationKind = 0;
|
|
122744
|
+
|
|
122745
|
+
/**
|
|
122746
|
+
* InteractiveJournalingMessage messageContent.
|
|
122747
|
+
* @member {string} messageContent
|
|
122748
|
+
* @memberof InteractiveJournalingMessage
|
|
122749
|
+
* @instance
|
|
122750
|
+
*/
|
|
122751
|
+
InteractiveJournalingMessage.prototype.messageContent = "";
|
|
122752
|
+
|
|
122753
|
+
/**
|
|
122754
|
+
* InteractiveJournalingMessage customDisplayAttributes.
|
|
122755
|
+
* @member {InteractiveJournalingMessage.ICustomAttributes|null|undefined} customDisplayAttributes
|
|
122756
|
+
* @memberof InteractiveJournalingMessage
|
|
122757
|
+
* @instance
|
|
122758
|
+
*/
|
|
122759
|
+
InteractiveJournalingMessage.prototype.customDisplayAttributes = null;
|
|
122760
|
+
|
|
122761
|
+
/**
|
|
122762
|
+
* InteractiveJournalingMessage replyButtons.
|
|
122763
|
+
* @member {Array.<InteractiveJournalingMessage.IReplyButton>} replyButtons
|
|
122764
|
+
* @memberof InteractiveJournalingMessage
|
|
122765
|
+
* @instance
|
|
122766
|
+
*/
|
|
122767
|
+
InteractiveJournalingMessage.prototype.replyButtons = $util.emptyArray;
|
|
122768
|
+
|
|
122769
|
+
/**
|
|
122770
|
+
* Creates a new InteractiveJournalingMessage instance using the specified properties.
|
|
122771
|
+
* @function create
|
|
122772
|
+
* @memberof InteractiveJournalingMessage
|
|
122773
|
+
* @static
|
|
122774
|
+
* @param {IInteractiveJournalingMessage=} [properties] Properties to set
|
|
122775
|
+
* @returns {InteractiveJournalingMessage} InteractiveJournalingMessage instance
|
|
122776
|
+
*/
|
|
122777
|
+
InteractiveJournalingMessage.create = function create(properties) {
|
|
122778
|
+
return new InteractiveJournalingMessage(properties);
|
|
122779
|
+
};
|
|
122780
|
+
|
|
122781
|
+
/**
|
|
122782
|
+
* Encodes the specified InteractiveJournalingMessage message. Does not implicitly {@link InteractiveJournalingMessage.verify|verify} messages.
|
|
122783
|
+
* @function encode
|
|
122784
|
+
* @memberof InteractiveJournalingMessage
|
|
122785
|
+
* @static
|
|
122786
|
+
* @param {IInteractiveJournalingMessage} message InteractiveJournalingMessage message or plain object to encode
|
|
122787
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122788
|
+
* @returns {$protobuf.Writer} Writer
|
|
122789
|
+
*/
|
|
122790
|
+
InteractiveJournalingMessage.encode = function encode(message, writer) {
|
|
122791
|
+
if (!writer)
|
|
122792
|
+
writer = $Writer.create();
|
|
122793
|
+
if (message.messageId != null && message.hasOwnProperty("messageId"))
|
|
122794
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.messageId);
|
|
122795
|
+
if (message.conversationId != null && message.hasOwnProperty("conversationId"))
|
|
122796
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.conversationId);
|
|
122797
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
122798
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
122799
|
+
if (message.author != null && message.hasOwnProperty("author"))
|
|
122800
|
+
$root.InteractiveJournalingParticipant.encode(message.author, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
122801
|
+
if (message.conversationKind != null && message.hasOwnProperty("conversationKind"))
|
|
122802
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.conversationKind);
|
|
122803
|
+
if (message.messageContent != null && message.hasOwnProperty("messageContent"))
|
|
122804
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.messageContent);
|
|
122805
|
+
if (message.customDisplayAttributes != null && message.hasOwnProperty("customDisplayAttributes"))
|
|
122806
|
+
$root.InteractiveJournalingMessage.CustomAttributes.encode(message.customDisplayAttributes, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
122807
|
+
if (message.replyButtons != null && message.replyButtons.length)
|
|
122808
|
+
for (var i = 0; i < message.replyButtons.length; ++i)
|
|
122809
|
+
$root.InteractiveJournalingMessage.ReplyButton.encode(message.replyButtons[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
122810
|
+
return writer;
|
|
122811
|
+
};
|
|
122812
|
+
|
|
122813
|
+
/**
|
|
122814
|
+
* Encodes the specified InteractiveJournalingMessage message, length delimited. Does not implicitly {@link InteractiveJournalingMessage.verify|verify} messages.
|
|
122815
|
+
* @function encodeDelimited
|
|
122816
|
+
* @memberof InteractiveJournalingMessage
|
|
122817
|
+
* @static
|
|
122818
|
+
* @param {IInteractiveJournalingMessage} message InteractiveJournalingMessage message or plain object to encode
|
|
122819
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122820
|
+
* @returns {$protobuf.Writer} Writer
|
|
122821
|
+
*/
|
|
122822
|
+
InteractiveJournalingMessage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
122823
|
+
return this.encode(message, writer).ldelim();
|
|
122824
|
+
};
|
|
122825
|
+
|
|
122826
|
+
/**
|
|
122827
|
+
* Decodes an InteractiveJournalingMessage message from the specified reader or buffer.
|
|
122828
|
+
* @function decode
|
|
122829
|
+
* @memberof InteractiveJournalingMessage
|
|
122830
|
+
* @static
|
|
122831
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122832
|
+
* @param {number} [length] Message length if known beforehand
|
|
122833
|
+
* @returns {InteractiveJournalingMessage} InteractiveJournalingMessage
|
|
122834
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122835
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122836
|
+
*/
|
|
122837
|
+
InteractiveJournalingMessage.decode = function decode(reader, length) {
|
|
122838
|
+
if (!(reader instanceof $Reader))
|
|
122839
|
+
reader = $Reader.create(reader);
|
|
122840
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingMessage();
|
|
122841
|
+
while (reader.pos < end) {
|
|
122842
|
+
var tag = reader.uint32();
|
|
122843
|
+
switch (tag >>> 3) {
|
|
122844
|
+
case 1:
|
|
122845
|
+
message.messageId = reader.string();
|
|
122846
|
+
break;
|
|
122847
|
+
case 2:
|
|
122848
|
+
message.conversationId = reader.string();
|
|
122849
|
+
break;
|
|
122850
|
+
case 3:
|
|
122851
|
+
message.createdAt = reader.uint64();
|
|
122852
|
+
break;
|
|
122853
|
+
case 4:
|
|
122854
|
+
message.author = $root.InteractiveJournalingParticipant.decode(reader, reader.uint32());
|
|
122855
|
+
break;
|
|
122856
|
+
case 5:
|
|
122857
|
+
message.conversationKind = reader.int32();
|
|
122858
|
+
break;
|
|
122859
|
+
case 6:
|
|
122860
|
+
message.messageContent = reader.string();
|
|
122861
|
+
break;
|
|
122862
|
+
case 7:
|
|
122863
|
+
message.customDisplayAttributes = $root.InteractiveJournalingMessage.CustomAttributes.decode(reader, reader.uint32());
|
|
122864
|
+
break;
|
|
122865
|
+
case 8:
|
|
122866
|
+
if (!(message.replyButtons && message.replyButtons.length))
|
|
122867
|
+
message.replyButtons = [];
|
|
122868
|
+
message.replyButtons.push($root.InteractiveJournalingMessage.ReplyButton.decode(reader, reader.uint32()));
|
|
122869
|
+
break;
|
|
122870
|
+
default:
|
|
122871
|
+
reader.skipType(tag & 7);
|
|
122872
|
+
break;
|
|
122873
|
+
}
|
|
122874
|
+
}
|
|
122875
|
+
return message;
|
|
122876
|
+
};
|
|
122877
|
+
|
|
122878
|
+
/**
|
|
122879
|
+
* Decodes an InteractiveJournalingMessage message from the specified reader or buffer, length delimited.
|
|
122880
|
+
* @function decodeDelimited
|
|
122881
|
+
* @memberof InteractiveJournalingMessage
|
|
122882
|
+
* @static
|
|
122883
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122884
|
+
* @returns {InteractiveJournalingMessage} InteractiveJournalingMessage
|
|
122885
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122886
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122887
|
+
*/
|
|
122888
|
+
InteractiveJournalingMessage.decodeDelimited = function decodeDelimited(reader) {
|
|
122889
|
+
if (!(reader instanceof $Reader))
|
|
122890
|
+
reader = new $Reader(reader);
|
|
122891
|
+
return this.decode(reader, reader.uint32());
|
|
122892
|
+
};
|
|
122893
|
+
|
|
122894
|
+
/**
|
|
122895
|
+
* Verifies an InteractiveJournalingMessage message.
|
|
122896
|
+
* @function verify
|
|
122897
|
+
* @memberof InteractiveJournalingMessage
|
|
122898
|
+
* @static
|
|
122899
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
122900
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
122901
|
+
*/
|
|
122902
|
+
InteractiveJournalingMessage.verify = function verify(message) {
|
|
122903
|
+
if (typeof message !== "object" || message === null)
|
|
122904
|
+
return "object expected";
|
|
122905
|
+
if (message.messageId != null && message.hasOwnProperty("messageId"))
|
|
122906
|
+
if (!$util.isString(message.messageId))
|
|
122907
|
+
return "messageId: string expected";
|
|
122908
|
+
if (message.conversationId != null && message.hasOwnProperty("conversationId"))
|
|
122909
|
+
if (!$util.isString(message.conversationId))
|
|
122910
|
+
return "conversationId: string expected";
|
|
122911
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
122912
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
122913
|
+
return "createdAt: integer|Long expected";
|
|
122914
|
+
if (message.author != null && message.hasOwnProperty("author")) {
|
|
122915
|
+
var error = $root.InteractiveJournalingParticipant.verify(message.author);
|
|
122916
|
+
if (error)
|
|
122917
|
+
return "author." + error;
|
|
122918
|
+
}
|
|
122919
|
+
if (message.conversationKind != null && message.hasOwnProperty("conversationKind"))
|
|
122920
|
+
switch (message.conversationKind) {
|
|
122921
|
+
default:
|
|
122922
|
+
return "conversationKind: enum value expected";
|
|
122923
|
+
case 0:
|
|
122924
|
+
case 1:
|
|
122925
|
+
case 2:
|
|
122926
|
+
break;
|
|
122927
|
+
}
|
|
122928
|
+
if (message.messageContent != null && message.hasOwnProperty("messageContent"))
|
|
122929
|
+
if (!$util.isString(message.messageContent))
|
|
122930
|
+
return "messageContent: string expected";
|
|
122931
|
+
if (message.customDisplayAttributes != null && message.hasOwnProperty("customDisplayAttributes")) {
|
|
122932
|
+
var error = $root.InteractiveJournalingMessage.CustomAttributes.verify(message.customDisplayAttributes);
|
|
122933
|
+
if (error)
|
|
122934
|
+
return "customDisplayAttributes." + error;
|
|
122935
|
+
}
|
|
122936
|
+
if (message.replyButtons != null && message.hasOwnProperty("replyButtons")) {
|
|
122937
|
+
if (!Array.isArray(message.replyButtons))
|
|
122938
|
+
return "replyButtons: array expected";
|
|
122939
|
+
for (var i = 0; i < message.replyButtons.length; ++i) {
|
|
122940
|
+
var error = $root.InteractiveJournalingMessage.ReplyButton.verify(message.replyButtons[i]);
|
|
122941
|
+
if (error)
|
|
122942
|
+
return "replyButtons." + error;
|
|
122943
|
+
}
|
|
122944
|
+
}
|
|
122945
|
+
return null;
|
|
122946
|
+
};
|
|
122947
|
+
|
|
122948
|
+
/**
|
|
122949
|
+
* Creates an InteractiveJournalingMessage message from a plain object. Also converts values to their respective internal types.
|
|
122950
|
+
* @function fromObject
|
|
122951
|
+
* @memberof InteractiveJournalingMessage
|
|
122952
|
+
* @static
|
|
122953
|
+
* @param {Object.<string,*>} object Plain object
|
|
122954
|
+
* @returns {InteractiveJournalingMessage} InteractiveJournalingMessage
|
|
122955
|
+
*/
|
|
122956
|
+
InteractiveJournalingMessage.fromObject = function fromObject(object) {
|
|
122957
|
+
if (object instanceof $root.InteractiveJournalingMessage)
|
|
122958
|
+
return object;
|
|
122959
|
+
var message = new $root.InteractiveJournalingMessage();
|
|
122960
|
+
if (object.messageId != null)
|
|
122961
|
+
message.messageId = String(object.messageId);
|
|
122962
|
+
if (object.conversationId != null)
|
|
122963
|
+
message.conversationId = String(object.conversationId);
|
|
122964
|
+
if (object.createdAt != null)
|
|
122965
|
+
if ($util.Long)
|
|
122966
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
122967
|
+
else if (typeof object.createdAt === "string")
|
|
122968
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
122969
|
+
else if (typeof object.createdAt === "number")
|
|
122970
|
+
message.createdAt = object.createdAt;
|
|
122971
|
+
else if (typeof object.createdAt === "object")
|
|
122972
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
122973
|
+
if (object.author != null) {
|
|
122974
|
+
if (typeof object.author !== "object")
|
|
122975
|
+
throw TypeError(".InteractiveJournalingMessage.author: object expected");
|
|
122976
|
+
message.author = $root.InteractiveJournalingParticipant.fromObject(object.author);
|
|
122977
|
+
}
|
|
122978
|
+
switch (object.conversationKind) {
|
|
122979
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_KIND_UNKNOWN":
|
|
122980
|
+
case 0:
|
|
122981
|
+
message.conversationKind = 0;
|
|
122982
|
+
break;
|
|
122983
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_KIND_PROCESS_EMOTION":
|
|
122984
|
+
case 1:
|
|
122985
|
+
message.conversationKind = 1;
|
|
122986
|
+
break;
|
|
122987
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_KIND_FIND_GRATITUDE":
|
|
122988
|
+
case 2:
|
|
122989
|
+
message.conversationKind = 2;
|
|
122990
|
+
break;
|
|
122991
|
+
}
|
|
122992
|
+
if (object.messageContent != null)
|
|
122993
|
+
message.messageContent = String(object.messageContent);
|
|
122994
|
+
if (object.customDisplayAttributes != null) {
|
|
122995
|
+
if (typeof object.customDisplayAttributes !== "object")
|
|
122996
|
+
throw TypeError(".InteractiveJournalingMessage.customDisplayAttributes: object expected");
|
|
122997
|
+
message.customDisplayAttributes = $root.InteractiveJournalingMessage.CustomAttributes.fromObject(object.customDisplayAttributes);
|
|
122998
|
+
}
|
|
122999
|
+
if (object.replyButtons) {
|
|
123000
|
+
if (!Array.isArray(object.replyButtons))
|
|
123001
|
+
throw TypeError(".InteractiveJournalingMessage.replyButtons: array expected");
|
|
123002
|
+
message.replyButtons = [];
|
|
123003
|
+
for (var i = 0; i < object.replyButtons.length; ++i) {
|
|
123004
|
+
if (typeof object.replyButtons[i] !== "object")
|
|
123005
|
+
throw TypeError(".InteractiveJournalingMessage.replyButtons: object expected");
|
|
123006
|
+
message.replyButtons[i] = $root.InteractiveJournalingMessage.ReplyButton.fromObject(object.replyButtons[i]);
|
|
123007
|
+
}
|
|
123008
|
+
}
|
|
123009
|
+
return message;
|
|
123010
|
+
};
|
|
123011
|
+
|
|
123012
|
+
/**
|
|
123013
|
+
* Creates a plain object from an InteractiveJournalingMessage message. Also converts values to other types if specified.
|
|
123014
|
+
* @function toObject
|
|
123015
|
+
* @memberof InteractiveJournalingMessage
|
|
123016
|
+
* @static
|
|
123017
|
+
* @param {InteractiveJournalingMessage} message InteractiveJournalingMessage
|
|
123018
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
123019
|
+
* @returns {Object.<string,*>} Plain object
|
|
123020
|
+
*/
|
|
123021
|
+
InteractiveJournalingMessage.toObject = function toObject(message, options) {
|
|
123022
|
+
if (!options)
|
|
123023
|
+
options = {};
|
|
123024
|
+
var object = {};
|
|
123025
|
+
if (options.arrays || options.defaults)
|
|
123026
|
+
object.replyButtons = [];
|
|
123027
|
+
if (options.defaults) {
|
|
123028
|
+
object.messageId = "";
|
|
123029
|
+
object.conversationId = "";
|
|
123030
|
+
if ($util.Long) {
|
|
123031
|
+
var long = new $util.Long(0, 0, true);
|
|
123032
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
123033
|
+
} else
|
|
123034
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
123035
|
+
object.author = null;
|
|
123036
|
+
object.conversationKind = options.enums === String ? "INTERACTIVE_JOURNALING_CONVERSATION_KIND_UNKNOWN" : 0;
|
|
123037
|
+
object.messageContent = "";
|
|
123038
|
+
object.customDisplayAttributes = null;
|
|
123039
|
+
}
|
|
123040
|
+
if (message.messageId != null && message.hasOwnProperty("messageId"))
|
|
123041
|
+
object.messageId = message.messageId;
|
|
123042
|
+
if (message.conversationId != null && message.hasOwnProperty("conversationId"))
|
|
123043
|
+
object.conversationId = message.conversationId;
|
|
123044
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
123045
|
+
if (typeof message.createdAt === "number")
|
|
123046
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
123047
|
+
else
|
|
123048
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
123049
|
+
if (message.author != null && message.hasOwnProperty("author"))
|
|
123050
|
+
object.author = $root.InteractiveJournalingParticipant.toObject(message.author, options);
|
|
123051
|
+
if (message.conversationKind != null && message.hasOwnProperty("conversationKind"))
|
|
123052
|
+
object.conversationKind = options.enums === String ? $root.InteractiveJournalingConversationKind[message.conversationKind] : message.conversationKind;
|
|
123053
|
+
if (message.messageContent != null && message.hasOwnProperty("messageContent"))
|
|
123054
|
+
object.messageContent = message.messageContent;
|
|
123055
|
+
if (message.customDisplayAttributes != null && message.hasOwnProperty("customDisplayAttributes"))
|
|
123056
|
+
object.customDisplayAttributes = $root.InteractiveJournalingMessage.CustomAttributes.toObject(message.customDisplayAttributes, options);
|
|
123057
|
+
if (message.replyButtons && message.replyButtons.length) {
|
|
123058
|
+
object.replyButtons = [];
|
|
123059
|
+
for (var j = 0; j < message.replyButtons.length; ++j)
|
|
123060
|
+
object.replyButtons[j] = $root.InteractiveJournalingMessage.ReplyButton.toObject(message.replyButtons[j], options);
|
|
123061
|
+
}
|
|
123062
|
+
return object;
|
|
123063
|
+
};
|
|
123064
|
+
|
|
123065
|
+
/**
|
|
123066
|
+
* Converts this InteractiveJournalingMessage to JSON.
|
|
123067
|
+
* @function toJSON
|
|
123068
|
+
* @memberof InteractiveJournalingMessage
|
|
123069
|
+
* @instance
|
|
123070
|
+
* @returns {Object.<string,*>} JSON object
|
|
123071
|
+
*/
|
|
123072
|
+
InteractiveJournalingMessage.prototype.toJSON = function toJSON() {
|
|
123073
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
123074
|
+
};
|
|
123075
|
+
|
|
123076
|
+
InteractiveJournalingMessage.CustomAttributes = (function() {
|
|
123077
|
+
|
|
123078
|
+
/**
|
|
123079
|
+
* Properties of a CustomAttributes.
|
|
123080
|
+
* @memberof InteractiveJournalingMessage
|
|
123081
|
+
* @interface ICustomAttributes
|
|
123082
|
+
* @property {boolean|null} [disableTextInput] CustomAttributes disableTextInput
|
|
123083
|
+
* @property {boolean|null} [isContentSuggestion] CustomAttributes isContentSuggestion
|
|
123084
|
+
* @property {boolean|null} [isLifelineWidget] CustomAttributes isLifelineWidget
|
|
123085
|
+
* @property {boolean|null} [isEndOfConversation] CustomAttributes isEndOfConversation
|
|
123086
|
+
*/
|
|
123087
|
+
|
|
123088
|
+
/**
|
|
123089
|
+
* Constructs a new CustomAttributes.
|
|
123090
|
+
* @memberof InteractiveJournalingMessage
|
|
123091
|
+
* @classdesc Represents a CustomAttributes.
|
|
123092
|
+
* @implements ICustomAttributes
|
|
123093
|
+
* @constructor
|
|
123094
|
+
* @param {InteractiveJournalingMessage.ICustomAttributes=} [properties] Properties to set
|
|
123095
|
+
*/
|
|
123096
|
+
function CustomAttributes(properties) {
|
|
123097
|
+
if (properties)
|
|
123098
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
123099
|
+
if (properties[keys[i]] != null)
|
|
123100
|
+
this[keys[i]] = properties[keys[i]];
|
|
123101
|
+
}
|
|
123102
|
+
|
|
123103
|
+
/**
|
|
123104
|
+
* CustomAttributes disableTextInput.
|
|
123105
|
+
* @member {boolean} disableTextInput
|
|
123106
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123107
|
+
* @instance
|
|
123108
|
+
*/
|
|
123109
|
+
CustomAttributes.prototype.disableTextInput = false;
|
|
123110
|
+
|
|
123111
|
+
/**
|
|
123112
|
+
* CustomAttributes isContentSuggestion.
|
|
123113
|
+
* @member {boolean} isContentSuggestion
|
|
123114
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123115
|
+
* @instance
|
|
123116
|
+
*/
|
|
123117
|
+
CustomAttributes.prototype.isContentSuggestion = false;
|
|
123118
|
+
|
|
123119
|
+
/**
|
|
123120
|
+
* CustomAttributes isLifelineWidget.
|
|
123121
|
+
* @member {boolean} isLifelineWidget
|
|
123122
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123123
|
+
* @instance
|
|
123124
|
+
*/
|
|
123125
|
+
CustomAttributes.prototype.isLifelineWidget = false;
|
|
123126
|
+
|
|
123127
|
+
/**
|
|
123128
|
+
* CustomAttributes isEndOfConversation.
|
|
123129
|
+
* @member {boolean} isEndOfConversation
|
|
123130
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123131
|
+
* @instance
|
|
123132
|
+
*/
|
|
123133
|
+
CustomAttributes.prototype.isEndOfConversation = false;
|
|
123134
|
+
|
|
123135
|
+
/**
|
|
123136
|
+
* Creates a new CustomAttributes instance using the specified properties.
|
|
123137
|
+
* @function create
|
|
123138
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123139
|
+
* @static
|
|
123140
|
+
* @param {InteractiveJournalingMessage.ICustomAttributes=} [properties] Properties to set
|
|
123141
|
+
* @returns {InteractiveJournalingMessage.CustomAttributes} CustomAttributes instance
|
|
123142
|
+
*/
|
|
123143
|
+
CustomAttributes.create = function create(properties) {
|
|
123144
|
+
return new CustomAttributes(properties);
|
|
123145
|
+
};
|
|
123146
|
+
|
|
123147
|
+
/**
|
|
123148
|
+
* Encodes the specified CustomAttributes message. Does not implicitly {@link InteractiveJournalingMessage.CustomAttributes.verify|verify} messages.
|
|
123149
|
+
* @function encode
|
|
123150
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123151
|
+
* @static
|
|
123152
|
+
* @param {InteractiveJournalingMessage.ICustomAttributes} message CustomAttributes message or plain object to encode
|
|
123153
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123154
|
+
* @returns {$protobuf.Writer} Writer
|
|
123155
|
+
*/
|
|
123156
|
+
CustomAttributes.encode = function encode(message, writer) {
|
|
123157
|
+
if (!writer)
|
|
123158
|
+
writer = $Writer.create();
|
|
123159
|
+
if (message.disableTextInput != null && message.hasOwnProperty("disableTextInput"))
|
|
123160
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disableTextInput);
|
|
123161
|
+
if (message.isContentSuggestion != null && message.hasOwnProperty("isContentSuggestion"))
|
|
123162
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isContentSuggestion);
|
|
123163
|
+
if (message.isLifelineWidget != null && message.hasOwnProperty("isLifelineWidget"))
|
|
123164
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isLifelineWidget);
|
|
123165
|
+
if (message.isEndOfConversation != null && message.hasOwnProperty("isEndOfConversation"))
|
|
123166
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isEndOfConversation);
|
|
123167
|
+
return writer;
|
|
123168
|
+
};
|
|
123169
|
+
|
|
123170
|
+
/**
|
|
123171
|
+
* Encodes the specified CustomAttributes message, length delimited. Does not implicitly {@link InteractiveJournalingMessage.CustomAttributes.verify|verify} messages.
|
|
123172
|
+
* @function encodeDelimited
|
|
123173
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123174
|
+
* @static
|
|
123175
|
+
* @param {InteractiveJournalingMessage.ICustomAttributes} message CustomAttributes message or plain object to encode
|
|
123176
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123177
|
+
* @returns {$protobuf.Writer} Writer
|
|
123178
|
+
*/
|
|
123179
|
+
CustomAttributes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
123180
|
+
return this.encode(message, writer).ldelim();
|
|
123181
|
+
};
|
|
123182
|
+
|
|
123183
|
+
/**
|
|
123184
|
+
* Decodes a CustomAttributes message from the specified reader or buffer.
|
|
123185
|
+
* @function decode
|
|
123186
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123187
|
+
* @static
|
|
123188
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123189
|
+
* @param {number} [length] Message length if known beforehand
|
|
123190
|
+
* @returns {InteractiveJournalingMessage.CustomAttributes} CustomAttributes
|
|
123191
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123192
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123193
|
+
*/
|
|
123194
|
+
CustomAttributes.decode = function decode(reader, length) {
|
|
123195
|
+
if (!(reader instanceof $Reader))
|
|
123196
|
+
reader = $Reader.create(reader);
|
|
123197
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingMessage.CustomAttributes();
|
|
123198
|
+
while (reader.pos < end) {
|
|
123199
|
+
var tag = reader.uint32();
|
|
123200
|
+
switch (tag >>> 3) {
|
|
123201
|
+
case 1:
|
|
123202
|
+
message.disableTextInput = reader.bool();
|
|
123203
|
+
break;
|
|
123204
|
+
case 2:
|
|
123205
|
+
message.isContentSuggestion = reader.bool();
|
|
123206
|
+
break;
|
|
123207
|
+
case 3:
|
|
123208
|
+
message.isLifelineWidget = reader.bool();
|
|
123209
|
+
break;
|
|
123210
|
+
case 4:
|
|
123211
|
+
message.isEndOfConversation = reader.bool();
|
|
123212
|
+
break;
|
|
123213
|
+
default:
|
|
123214
|
+
reader.skipType(tag & 7);
|
|
123215
|
+
break;
|
|
123216
|
+
}
|
|
123217
|
+
}
|
|
123218
|
+
return message;
|
|
123219
|
+
};
|
|
123220
|
+
|
|
123221
|
+
/**
|
|
123222
|
+
* Decodes a CustomAttributes message from the specified reader or buffer, length delimited.
|
|
123223
|
+
* @function decodeDelimited
|
|
123224
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123225
|
+
* @static
|
|
123226
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123227
|
+
* @returns {InteractiveJournalingMessage.CustomAttributes} CustomAttributes
|
|
123228
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123229
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123230
|
+
*/
|
|
123231
|
+
CustomAttributes.decodeDelimited = function decodeDelimited(reader) {
|
|
123232
|
+
if (!(reader instanceof $Reader))
|
|
123233
|
+
reader = new $Reader(reader);
|
|
123234
|
+
return this.decode(reader, reader.uint32());
|
|
123235
|
+
};
|
|
123236
|
+
|
|
123237
|
+
/**
|
|
123238
|
+
* Verifies a CustomAttributes message.
|
|
123239
|
+
* @function verify
|
|
123240
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123241
|
+
* @static
|
|
123242
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
123243
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
123244
|
+
*/
|
|
123245
|
+
CustomAttributes.verify = function verify(message) {
|
|
123246
|
+
if (typeof message !== "object" || message === null)
|
|
123247
|
+
return "object expected";
|
|
123248
|
+
if (message.disableTextInput != null && message.hasOwnProperty("disableTextInput"))
|
|
123249
|
+
if (typeof message.disableTextInput !== "boolean")
|
|
123250
|
+
return "disableTextInput: boolean expected";
|
|
123251
|
+
if (message.isContentSuggestion != null && message.hasOwnProperty("isContentSuggestion"))
|
|
123252
|
+
if (typeof message.isContentSuggestion !== "boolean")
|
|
123253
|
+
return "isContentSuggestion: boolean expected";
|
|
123254
|
+
if (message.isLifelineWidget != null && message.hasOwnProperty("isLifelineWidget"))
|
|
123255
|
+
if (typeof message.isLifelineWidget !== "boolean")
|
|
123256
|
+
return "isLifelineWidget: boolean expected";
|
|
123257
|
+
if (message.isEndOfConversation != null && message.hasOwnProperty("isEndOfConversation"))
|
|
123258
|
+
if (typeof message.isEndOfConversation !== "boolean")
|
|
123259
|
+
return "isEndOfConversation: boolean expected";
|
|
123260
|
+
return null;
|
|
123261
|
+
};
|
|
123262
|
+
|
|
123263
|
+
/**
|
|
123264
|
+
* Creates a CustomAttributes message from a plain object. Also converts values to their respective internal types.
|
|
123265
|
+
* @function fromObject
|
|
123266
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123267
|
+
* @static
|
|
123268
|
+
* @param {Object.<string,*>} object Plain object
|
|
123269
|
+
* @returns {InteractiveJournalingMessage.CustomAttributes} CustomAttributes
|
|
123270
|
+
*/
|
|
123271
|
+
CustomAttributes.fromObject = function fromObject(object) {
|
|
123272
|
+
if (object instanceof $root.InteractiveJournalingMessage.CustomAttributes)
|
|
123273
|
+
return object;
|
|
123274
|
+
var message = new $root.InteractiveJournalingMessage.CustomAttributes();
|
|
123275
|
+
if (object.disableTextInput != null)
|
|
123276
|
+
message.disableTextInput = Boolean(object.disableTextInput);
|
|
123277
|
+
if (object.isContentSuggestion != null)
|
|
123278
|
+
message.isContentSuggestion = Boolean(object.isContentSuggestion);
|
|
123279
|
+
if (object.isLifelineWidget != null)
|
|
123280
|
+
message.isLifelineWidget = Boolean(object.isLifelineWidget);
|
|
123281
|
+
if (object.isEndOfConversation != null)
|
|
123282
|
+
message.isEndOfConversation = Boolean(object.isEndOfConversation);
|
|
123283
|
+
return message;
|
|
123284
|
+
};
|
|
123285
|
+
|
|
123286
|
+
/**
|
|
123287
|
+
* Creates a plain object from a CustomAttributes message. Also converts values to other types if specified.
|
|
123288
|
+
* @function toObject
|
|
123289
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123290
|
+
* @static
|
|
123291
|
+
* @param {InteractiveJournalingMessage.CustomAttributes} message CustomAttributes
|
|
123292
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
123293
|
+
* @returns {Object.<string,*>} Plain object
|
|
123294
|
+
*/
|
|
123295
|
+
CustomAttributes.toObject = function toObject(message, options) {
|
|
123296
|
+
if (!options)
|
|
123297
|
+
options = {};
|
|
123298
|
+
var object = {};
|
|
123299
|
+
if (options.defaults) {
|
|
123300
|
+
object.disableTextInput = false;
|
|
123301
|
+
object.isContentSuggestion = false;
|
|
123302
|
+
object.isLifelineWidget = false;
|
|
123303
|
+
object.isEndOfConversation = false;
|
|
123304
|
+
}
|
|
123305
|
+
if (message.disableTextInput != null && message.hasOwnProperty("disableTextInput"))
|
|
123306
|
+
object.disableTextInput = message.disableTextInput;
|
|
123307
|
+
if (message.isContentSuggestion != null && message.hasOwnProperty("isContentSuggestion"))
|
|
123308
|
+
object.isContentSuggestion = message.isContentSuggestion;
|
|
123309
|
+
if (message.isLifelineWidget != null && message.hasOwnProperty("isLifelineWidget"))
|
|
123310
|
+
object.isLifelineWidget = message.isLifelineWidget;
|
|
123311
|
+
if (message.isEndOfConversation != null && message.hasOwnProperty("isEndOfConversation"))
|
|
123312
|
+
object.isEndOfConversation = message.isEndOfConversation;
|
|
123313
|
+
return object;
|
|
123314
|
+
};
|
|
123315
|
+
|
|
123316
|
+
/**
|
|
123317
|
+
* Converts this CustomAttributes to JSON.
|
|
123318
|
+
* @function toJSON
|
|
123319
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123320
|
+
* @instance
|
|
123321
|
+
* @returns {Object.<string,*>} JSON object
|
|
123322
|
+
*/
|
|
123323
|
+
CustomAttributes.prototype.toJSON = function toJSON() {
|
|
123324
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
123325
|
+
};
|
|
123326
|
+
|
|
123327
|
+
return CustomAttributes;
|
|
123328
|
+
})();
|
|
123329
|
+
|
|
123330
|
+
InteractiveJournalingMessage.ReplyButton = (function() {
|
|
123331
|
+
|
|
123332
|
+
/**
|
|
123333
|
+
* Properties of a ReplyButton.
|
|
123334
|
+
* @memberof InteractiveJournalingMessage
|
|
123335
|
+
* @interface IReplyButton
|
|
123336
|
+
* @property {string|null} [payload] ReplyButton payload
|
|
123337
|
+
* @property {string|null} [title] ReplyButton title
|
|
123338
|
+
*/
|
|
123339
|
+
|
|
123340
|
+
/**
|
|
123341
|
+
* Constructs a new ReplyButton.
|
|
123342
|
+
* @memberof InteractiveJournalingMessage
|
|
123343
|
+
* @classdesc Represents a ReplyButton.
|
|
123344
|
+
* @implements IReplyButton
|
|
123345
|
+
* @constructor
|
|
123346
|
+
* @param {InteractiveJournalingMessage.IReplyButton=} [properties] Properties to set
|
|
123347
|
+
*/
|
|
123348
|
+
function ReplyButton(properties) {
|
|
123349
|
+
if (properties)
|
|
123350
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
123351
|
+
if (properties[keys[i]] != null)
|
|
123352
|
+
this[keys[i]] = properties[keys[i]];
|
|
123353
|
+
}
|
|
123354
|
+
|
|
123355
|
+
/**
|
|
123356
|
+
* ReplyButton payload.
|
|
123357
|
+
* @member {string} payload
|
|
123358
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123359
|
+
* @instance
|
|
123360
|
+
*/
|
|
123361
|
+
ReplyButton.prototype.payload = "";
|
|
123362
|
+
|
|
123363
|
+
/**
|
|
123364
|
+
* ReplyButton title.
|
|
123365
|
+
* @member {string} title
|
|
123366
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123367
|
+
* @instance
|
|
123368
|
+
*/
|
|
123369
|
+
ReplyButton.prototype.title = "";
|
|
123370
|
+
|
|
123371
|
+
/**
|
|
123372
|
+
* Creates a new ReplyButton instance using the specified properties.
|
|
123373
|
+
* @function create
|
|
123374
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123375
|
+
* @static
|
|
123376
|
+
* @param {InteractiveJournalingMessage.IReplyButton=} [properties] Properties to set
|
|
123377
|
+
* @returns {InteractiveJournalingMessage.ReplyButton} ReplyButton instance
|
|
123378
|
+
*/
|
|
123379
|
+
ReplyButton.create = function create(properties) {
|
|
123380
|
+
return new ReplyButton(properties);
|
|
123381
|
+
};
|
|
123382
|
+
|
|
123383
|
+
/**
|
|
123384
|
+
* Encodes the specified ReplyButton message. Does not implicitly {@link InteractiveJournalingMessage.ReplyButton.verify|verify} messages.
|
|
123385
|
+
* @function encode
|
|
123386
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123387
|
+
* @static
|
|
123388
|
+
* @param {InteractiveJournalingMessage.IReplyButton} message ReplyButton message or plain object to encode
|
|
123389
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123390
|
+
* @returns {$protobuf.Writer} Writer
|
|
123391
|
+
*/
|
|
123392
|
+
ReplyButton.encode = function encode(message, writer) {
|
|
123393
|
+
if (!writer)
|
|
123394
|
+
writer = $Writer.create();
|
|
123395
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
123396
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.payload);
|
|
123397
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
123398
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
|
|
123399
|
+
return writer;
|
|
123400
|
+
};
|
|
123401
|
+
|
|
123402
|
+
/**
|
|
123403
|
+
* Encodes the specified ReplyButton message, length delimited. Does not implicitly {@link InteractiveJournalingMessage.ReplyButton.verify|verify} messages.
|
|
123404
|
+
* @function encodeDelimited
|
|
123405
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123406
|
+
* @static
|
|
123407
|
+
* @param {InteractiveJournalingMessage.IReplyButton} message ReplyButton message or plain object to encode
|
|
123408
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123409
|
+
* @returns {$protobuf.Writer} Writer
|
|
123410
|
+
*/
|
|
123411
|
+
ReplyButton.encodeDelimited = function encodeDelimited(message, writer) {
|
|
123412
|
+
return this.encode(message, writer).ldelim();
|
|
123413
|
+
};
|
|
123414
|
+
|
|
123415
|
+
/**
|
|
123416
|
+
* Decodes a ReplyButton message from the specified reader or buffer.
|
|
123417
|
+
* @function decode
|
|
123418
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123419
|
+
* @static
|
|
123420
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123421
|
+
* @param {number} [length] Message length if known beforehand
|
|
123422
|
+
* @returns {InteractiveJournalingMessage.ReplyButton} ReplyButton
|
|
123423
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123424
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123425
|
+
*/
|
|
123426
|
+
ReplyButton.decode = function decode(reader, length) {
|
|
123427
|
+
if (!(reader instanceof $Reader))
|
|
123428
|
+
reader = $Reader.create(reader);
|
|
123429
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingMessage.ReplyButton();
|
|
123430
|
+
while (reader.pos < end) {
|
|
123431
|
+
var tag = reader.uint32();
|
|
123432
|
+
switch (tag >>> 3) {
|
|
123433
|
+
case 1:
|
|
123434
|
+
message.payload = reader.string();
|
|
123435
|
+
break;
|
|
123436
|
+
case 2:
|
|
123437
|
+
message.title = reader.string();
|
|
123438
|
+
break;
|
|
123439
|
+
default:
|
|
123440
|
+
reader.skipType(tag & 7);
|
|
123441
|
+
break;
|
|
123442
|
+
}
|
|
123443
|
+
}
|
|
123444
|
+
return message;
|
|
123445
|
+
};
|
|
123446
|
+
|
|
123447
|
+
/**
|
|
123448
|
+
* Decodes a ReplyButton message from the specified reader or buffer, length delimited.
|
|
123449
|
+
* @function decodeDelimited
|
|
123450
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123451
|
+
* @static
|
|
123452
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123453
|
+
* @returns {InteractiveJournalingMessage.ReplyButton} ReplyButton
|
|
123454
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123455
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123456
|
+
*/
|
|
123457
|
+
ReplyButton.decodeDelimited = function decodeDelimited(reader) {
|
|
123458
|
+
if (!(reader instanceof $Reader))
|
|
123459
|
+
reader = new $Reader(reader);
|
|
123460
|
+
return this.decode(reader, reader.uint32());
|
|
123461
|
+
};
|
|
123462
|
+
|
|
123463
|
+
/**
|
|
123464
|
+
* Verifies a ReplyButton message.
|
|
123465
|
+
* @function verify
|
|
123466
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123467
|
+
* @static
|
|
123468
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
123469
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
123470
|
+
*/
|
|
123471
|
+
ReplyButton.verify = function verify(message) {
|
|
123472
|
+
if (typeof message !== "object" || message === null)
|
|
123473
|
+
return "object expected";
|
|
123474
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
123475
|
+
if (!$util.isString(message.payload))
|
|
123476
|
+
return "payload: string expected";
|
|
123477
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
123478
|
+
if (!$util.isString(message.title))
|
|
123479
|
+
return "title: string expected";
|
|
123480
|
+
return null;
|
|
123481
|
+
};
|
|
123482
|
+
|
|
123483
|
+
/**
|
|
123484
|
+
* Creates a ReplyButton message from a plain object. Also converts values to their respective internal types.
|
|
123485
|
+
* @function fromObject
|
|
123486
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123487
|
+
* @static
|
|
123488
|
+
* @param {Object.<string,*>} object Plain object
|
|
123489
|
+
* @returns {InteractiveJournalingMessage.ReplyButton} ReplyButton
|
|
123490
|
+
*/
|
|
123491
|
+
ReplyButton.fromObject = function fromObject(object) {
|
|
123492
|
+
if (object instanceof $root.InteractiveJournalingMessage.ReplyButton)
|
|
123493
|
+
return object;
|
|
123494
|
+
var message = new $root.InteractiveJournalingMessage.ReplyButton();
|
|
123495
|
+
if (object.payload != null)
|
|
123496
|
+
message.payload = String(object.payload);
|
|
123497
|
+
if (object.title != null)
|
|
123498
|
+
message.title = String(object.title);
|
|
123499
|
+
return message;
|
|
123500
|
+
};
|
|
123501
|
+
|
|
123502
|
+
/**
|
|
123503
|
+
* Creates a plain object from a ReplyButton message. Also converts values to other types if specified.
|
|
123504
|
+
* @function toObject
|
|
123505
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123506
|
+
* @static
|
|
123507
|
+
* @param {InteractiveJournalingMessage.ReplyButton} message ReplyButton
|
|
123508
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
123509
|
+
* @returns {Object.<string,*>} Plain object
|
|
123510
|
+
*/
|
|
123511
|
+
ReplyButton.toObject = function toObject(message, options) {
|
|
123512
|
+
if (!options)
|
|
123513
|
+
options = {};
|
|
123514
|
+
var object = {};
|
|
123515
|
+
if (options.defaults) {
|
|
123516
|
+
object.payload = "";
|
|
123517
|
+
object.title = "";
|
|
123518
|
+
}
|
|
123519
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
123520
|
+
object.payload = message.payload;
|
|
123521
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
123522
|
+
object.title = message.title;
|
|
123523
|
+
return object;
|
|
123524
|
+
};
|
|
123525
|
+
|
|
123526
|
+
/**
|
|
123527
|
+
* Converts this ReplyButton to JSON.
|
|
123528
|
+
* @function toJSON
|
|
123529
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123530
|
+
* @instance
|
|
123531
|
+
* @returns {Object.<string,*>} JSON object
|
|
123532
|
+
*/
|
|
123533
|
+
ReplyButton.prototype.toJSON = function toJSON() {
|
|
123534
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
123535
|
+
};
|
|
123536
|
+
|
|
123537
|
+
return ReplyButton;
|
|
123538
|
+
})();
|
|
123539
|
+
|
|
123540
|
+
return InteractiveJournalingMessage;
|
|
123541
|
+
})();
|
|
123542
|
+
|
|
123543
|
+
$root.ConversationalChatMessageCreated = (function() {
|
|
123544
|
+
|
|
123545
|
+
/**
|
|
123546
|
+
* Properties of a ConversationalChatMessageCreated.
|
|
123547
|
+
* @name IConversationalChatMessageCreated
|
|
123548
|
+
* @interface IConversationalChatMessageCreated
|
|
123549
|
+
* @property {IInteractiveJournalingMessage|null} [newMessage] ConversationalChatMessageCreated newMessage
|
|
123550
|
+
* @property {number|Long|null} [timestamp] ConversationalChatMessageCreated timestamp
|
|
123551
|
+
*/
|
|
123552
|
+
|
|
123553
|
+
/**
|
|
123554
|
+
* Constructs a new ConversationalChatMessageCreated.
|
|
123555
|
+
* @name ConversationalChatMessageCreated
|
|
123556
|
+
* @classdesc Represents a ConversationalChatMessageCreated.
|
|
123557
|
+
* @implements IConversationalChatMessageCreated
|
|
123558
|
+
* @constructor
|
|
123559
|
+
* @param {IConversationalChatMessageCreated=} [properties] Properties to set
|
|
123560
|
+
*/
|
|
123561
|
+
function ConversationalChatMessageCreated(properties) {
|
|
123562
|
+
if (properties)
|
|
123563
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
123564
|
+
if (properties[keys[i]] != null)
|
|
123565
|
+
this[keys[i]] = properties[keys[i]];
|
|
123566
|
+
}
|
|
123567
|
+
|
|
123568
|
+
/**
|
|
123569
|
+
* ConversationalChatMessageCreated newMessage.
|
|
123570
|
+
* @member {IInteractiveJournalingMessage|null|undefined} newMessage
|
|
123571
|
+
* @memberof ConversationalChatMessageCreated
|
|
123572
|
+
* @instance
|
|
123573
|
+
*/
|
|
123574
|
+
ConversationalChatMessageCreated.prototype.newMessage = null;
|
|
123575
|
+
|
|
123576
|
+
/**
|
|
123577
|
+
* ConversationalChatMessageCreated timestamp.
|
|
123578
|
+
* @member {number|Long} timestamp
|
|
123579
|
+
* @memberof ConversationalChatMessageCreated
|
|
123580
|
+
* @instance
|
|
123581
|
+
*/
|
|
123582
|
+
ConversationalChatMessageCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
123583
|
+
|
|
123584
|
+
/**
|
|
123585
|
+
* Creates a new ConversationalChatMessageCreated instance using the specified properties.
|
|
123586
|
+
* @function create
|
|
123587
|
+
* @memberof ConversationalChatMessageCreated
|
|
123588
|
+
* @static
|
|
123589
|
+
* @param {IConversationalChatMessageCreated=} [properties] Properties to set
|
|
123590
|
+
* @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated instance
|
|
123591
|
+
*/
|
|
123592
|
+
ConversationalChatMessageCreated.create = function create(properties) {
|
|
123593
|
+
return new ConversationalChatMessageCreated(properties);
|
|
123594
|
+
};
|
|
123595
|
+
|
|
123596
|
+
/**
|
|
123597
|
+
* Encodes the specified ConversationalChatMessageCreated message. Does not implicitly {@link ConversationalChatMessageCreated.verify|verify} messages.
|
|
123598
|
+
* @function encode
|
|
123599
|
+
* @memberof ConversationalChatMessageCreated
|
|
123600
|
+
* @static
|
|
123601
|
+
* @param {IConversationalChatMessageCreated} message ConversationalChatMessageCreated message or plain object to encode
|
|
123602
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123603
|
+
* @returns {$protobuf.Writer} Writer
|
|
123604
|
+
*/
|
|
123605
|
+
ConversationalChatMessageCreated.encode = function encode(message, writer) {
|
|
123606
|
+
if (!writer)
|
|
123607
|
+
writer = $Writer.create();
|
|
123608
|
+
if (message.newMessage != null && message.hasOwnProperty("newMessage"))
|
|
123609
|
+
$root.InteractiveJournalingMessage.encode(message.newMessage, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
123610
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
123611
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
123612
|
+
return writer;
|
|
123613
|
+
};
|
|
123614
|
+
|
|
123615
|
+
/**
|
|
123616
|
+
* Encodes the specified ConversationalChatMessageCreated message, length delimited. Does not implicitly {@link ConversationalChatMessageCreated.verify|verify} messages.
|
|
123617
|
+
* @function encodeDelimited
|
|
123618
|
+
* @memberof ConversationalChatMessageCreated
|
|
123619
|
+
* @static
|
|
123620
|
+
* @param {IConversationalChatMessageCreated} message ConversationalChatMessageCreated message or plain object to encode
|
|
123621
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123622
|
+
* @returns {$protobuf.Writer} Writer
|
|
123623
|
+
*/
|
|
123624
|
+
ConversationalChatMessageCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
123625
|
+
return this.encode(message, writer).ldelim();
|
|
123626
|
+
};
|
|
123627
|
+
|
|
123628
|
+
/**
|
|
123629
|
+
* Decodes a ConversationalChatMessageCreated message from the specified reader or buffer.
|
|
123630
|
+
* @function decode
|
|
123631
|
+
* @memberof ConversationalChatMessageCreated
|
|
123632
|
+
* @static
|
|
123633
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123634
|
+
* @param {number} [length] Message length if known beforehand
|
|
123635
|
+
* @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated
|
|
123636
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123637
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123638
|
+
*/
|
|
123639
|
+
ConversationalChatMessageCreated.decode = function decode(reader, length) {
|
|
123640
|
+
if (!(reader instanceof $Reader))
|
|
123641
|
+
reader = $Reader.create(reader);
|
|
123642
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ConversationalChatMessageCreated();
|
|
123643
|
+
while (reader.pos < end) {
|
|
123644
|
+
var tag = reader.uint32();
|
|
123645
|
+
switch (tag >>> 3) {
|
|
123646
|
+
case 1:
|
|
123647
|
+
message.newMessage = $root.InteractiveJournalingMessage.decode(reader, reader.uint32());
|
|
123648
|
+
break;
|
|
123649
|
+
case 2:
|
|
123650
|
+
message.timestamp = reader.uint64();
|
|
123651
|
+
break;
|
|
123652
|
+
default:
|
|
123653
|
+
reader.skipType(tag & 7);
|
|
123654
|
+
break;
|
|
123655
|
+
}
|
|
123656
|
+
}
|
|
123657
|
+
return message;
|
|
123658
|
+
};
|
|
123659
|
+
|
|
123660
|
+
/**
|
|
123661
|
+
* Decodes a ConversationalChatMessageCreated message from the specified reader or buffer, length delimited.
|
|
123662
|
+
* @function decodeDelimited
|
|
123663
|
+
* @memberof ConversationalChatMessageCreated
|
|
123664
|
+
* @static
|
|
123665
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123666
|
+
* @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated
|
|
123667
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123668
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123669
|
+
*/
|
|
123670
|
+
ConversationalChatMessageCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
123671
|
+
if (!(reader instanceof $Reader))
|
|
123672
|
+
reader = new $Reader(reader);
|
|
123673
|
+
return this.decode(reader, reader.uint32());
|
|
123674
|
+
};
|
|
123675
|
+
|
|
123676
|
+
/**
|
|
123677
|
+
* Verifies a ConversationalChatMessageCreated message.
|
|
123678
|
+
* @function verify
|
|
123679
|
+
* @memberof ConversationalChatMessageCreated
|
|
123680
|
+
* @static
|
|
123681
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
123682
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
123683
|
+
*/
|
|
123684
|
+
ConversationalChatMessageCreated.verify = function verify(message) {
|
|
123685
|
+
if (typeof message !== "object" || message === null)
|
|
123686
|
+
return "object expected";
|
|
123687
|
+
if (message.newMessage != null && message.hasOwnProperty("newMessage")) {
|
|
123688
|
+
var error = $root.InteractiveJournalingMessage.verify(message.newMessage);
|
|
123689
|
+
if (error)
|
|
123690
|
+
return "newMessage." + error;
|
|
123691
|
+
}
|
|
123692
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
123693
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
123694
|
+
return "timestamp: integer|Long expected";
|
|
123695
|
+
return null;
|
|
123696
|
+
};
|
|
123697
|
+
|
|
123698
|
+
/**
|
|
123699
|
+
* Creates a ConversationalChatMessageCreated message from a plain object. Also converts values to their respective internal types.
|
|
123700
|
+
* @function fromObject
|
|
123701
|
+
* @memberof ConversationalChatMessageCreated
|
|
123702
|
+
* @static
|
|
123703
|
+
* @param {Object.<string,*>} object Plain object
|
|
123704
|
+
* @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated
|
|
123705
|
+
*/
|
|
123706
|
+
ConversationalChatMessageCreated.fromObject = function fromObject(object) {
|
|
123707
|
+
if (object instanceof $root.ConversationalChatMessageCreated)
|
|
123708
|
+
return object;
|
|
123709
|
+
var message = new $root.ConversationalChatMessageCreated();
|
|
123710
|
+
if (object.newMessage != null) {
|
|
123711
|
+
if (typeof object.newMessage !== "object")
|
|
123712
|
+
throw TypeError(".ConversationalChatMessageCreated.newMessage: object expected");
|
|
123713
|
+
message.newMessage = $root.InteractiveJournalingMessage.fromObject(object.newMessage);
|
|
123714
|
+
}
|
|
123715
|
+
if (object.timestamp != null)
|
|
123716
|
+
if ($util.Long)
|
|
123717
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
123718
|
+
else if (typeof object.timestamp === "string")
|
|
123719
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
123720
|
+
else if (typeof object.timestamp === "number")
|
|
123721
|
+
message.timestamp = object.timestamp;
|
|
123722
|
+
else if (typeof object.timestamp === "object")
|
|
123723
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
123724
|
+
return message;
|
|
123725
|
+
};
|
|
123726
|
+
|
|
123727
|
+
/**
|
|
123728
|
+
* Creates a plain object from a ConversationalChatMessageCreated message. Also converts values to other types if specified.
|
|
123729
|
+
* @function toObject
|
|
123730
|
+
* @memberof ConversationalChatMessageCreated
|
|
123731
|
+
* @static
|
|
123732
|
+
* @param {ConversationalChatMessageCreated} message ConversationalChatMessageCreated
|
|
123733
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
123734
|
+
* @returns {Object.<string,*>} Plain object
|
|
123735
|
+
*/
|
|
123736
|
+
ConversationalChatMessageCreated.toObject = function toObject(message, options) {
|
|
123737
|
+
if (!options)
|
|
123738
|
+
options = {};
|
|
123739
|
+
var object = {};
|
|
123740
|
+
if (options.defaults) {
|
|
123741
|
+
object.newMessage = null;
|
|
123742
|
+
if ($util.Long) {
|
|
123743
|
+
var long = new $util.Long(0, 0, true);
|
|
123744
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
123745
|
+
} else
|
|
123746
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
123747
|
+
}
|
|
123748
|
+
if (message.newMessage != null && message.hasOwnProperty("newMessage"))
|
|
123749
|
+
object.newMessage = $root.InteractiveJournalingMessage.toObject(message.newMessage, options);
|
|
123750
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
123751
|
+
if (typeof message.timestamp === "number")
|
|
123752
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
123753
|
+
else
|
|
123754
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
123755
|
+
return object;
|
|
123756
|
+
};
|
|
123757
|
+
|
|
123758
|
+
/**
|
|
123759
|
+
* Converts this ConversationalChatMessageCreated to JSON.
|
|
123760
|
+
* @function toJSON
|
|
123761
|
+
* @memberof ConversationalChatMessageCreated
|
|
123762
|
+
* @instance
|
|
123763
|
+
* @returns {Object.<string,*>} JSON object
|
|
123764
|
+
*/
|
|
123765
|
+
ConversationalChatMessageCreated.prototype.toJSON = function toJSON() {
|
|
123766
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
123767
|
+
};
|
|
123768
|
+
|
|
123769
|
+
return ConversationalChatMessageCreated;
|
|
123770
|
+
})();
|
|
123771
|
+
|
|
122392
123772
|
$root.LayoutCreated = (function() {
|
|
122393
123773
|
|
|
122394
123774
|
/**
|