@headspace/protos-events 1.574.0 → 1.576.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 +562 -0
- package/lib/index.js +1413 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -107851,6 +107851,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
107851
107851
|
* @property {number|null} [eapCoverageTotal] EnterpriseUserEnrollmentCreated eapCoverageTotal
|
|
107852
107852
|
* @property {b2b.EapServiceType|null} [eapServiceType] EnterpriseUserEnrollmentCreated eapServiceType
|
|
107853
107853
|
* @property {string|null} [healthHub] EnterpriseUserEnrollmentCreated healthHub
|
|
107854
|
+
* @property {number|null} [subscriptionOrgId] EnterpriseUserEnrollmentCreated subscriptionOrgId
|
|
107854
107855
|
*/
|
|
107855
107856
|
|
|
107856
107857
|
/**
|
|
@@ -108164,6 +108165,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
108164
108165
|
*/
|
|
108165
108166
|
EnterpriseUserEnrollmentCreated.prototype.healthHub = "";
|
|
108166
108167
|
|
|
108168
|
+
/**
|
|
108169
|
+
* EnterpriseUserEnrollmentCreated subscriptionOrgId.
|
|
108170
|
+
* @member {number} subscriptionOrgId
|
|
108171
|
+
* @memberof EnterpriseUserEnrollmentCreated
|
|
108172
|
+
* @instance
|
|
108173
|
+
*/
|
|
108174
|
+
EnterpriseUserEnrollmentCreated.prototype.subscriptionOrgId = 0;
|
|
108175
|
+
|
|
108167
108176
|
/**
|
|
108168
108177
|
* Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
|
|
108169
108178
|
* @function create
|
|
@@ -108262,6 +108271,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
108262
108271
|
writer.uint32(/* id 41, wireType 0 =*/328).int32(message.eapServiceType);
|
|
108263
108272
|
if (message.healthHub != null && message.hasOwnProperty("healthHub"))
|
|
108264
108273
|
writer.uint32(/* id 42, wireType 2 =*/338).string(message.healthHub);
|
|
108274
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
108275
|
+
writer.uint32(/* id 43, wireType 0 =*/344).uint32(message.subscriptionOrgId);
|
|
108265
108276
|
return writer;
|
|
108266
108277
|
};
|
|
108267
108278
|
|
|
@@ -108407,6 +108418,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
108407
108418
|
case 42:
|
|
108408
108419
|
message.healthHub = reader.string();
|
|
108409
108420
|
break;
|
|
108421
|
+
case 43:
|
|
108422
|
+
message.subscriptionOrgId = reader.uint32();
|
|
108423
|
+
break;
|
|
108410
108424
|
default:
|
|
108411
108425
|
reader.skipType(tag & 7);
|
|
108412
108426
|
break;
|
|
@@ -108598,6 +108612,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
108598
108612
|
if (message.healthHub != null && message.hasOwnProperty("healthHub"))
|
|
108599
108613
|
if (!$util.isString(message.healthHub))
|
|
108600
108614
|
return "healthHub: string expected";
|
|
108615
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
108616
|
+
if (!$util.isInteger(message.subscriptionOrgId))
|
|
108617
|
+
return "subscriptionOrgId: integer expected";
|
|
108601
108618
|
return null;
|
|
108602
108619
|
};
|
|
108603
108620
|
|
|
@@ -108830,6 +108847,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
108830
108847
|
}
|
|
108831
108848
|
if (object.healthHub != null)
|
|
108832
108849
|
message.healthHub = String(object.healthHub);
|
|
108850
|
+
if (object.subscriptionOrgId != null)
|
|
108851
|
+
message.subscriptionOrgId = object.subscriptionOrgId >>> 0;
|
|
108833
108852
|
return message;
|
|
108834
108853
|
};
|
|
108835
108854
|
|
|
@@ -108904,6 +108923,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
108904
108923
|
object.eapCoverageTotal = 0;
|
|
108905
108924
|
object.eapServiceType = options.enums === String ? "EAP_SERVICE_TYPE_UNKNOWN" : 0;
|
|
108906
108925
|
object.healthHub = "";
|
|
108926
|
+
object.subscriptionOrgId = 0;
|
|
108907
108927
|
}
|
|
108908
108928
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
108909
108929
|
object.userId = message.userId;
|
|
@@ -108994,6 +109014,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
108994
109014
|
object.eapServiceType = options.enums === String ? $root.b2b.EapServiceType[message.eapServiceType] : message.eapServiceType;
|
|
108995
109015
|
if (message.healthHub != null && message.hasOwnProperty("healthHub"))
|
|
108996
109016
|
object.healthHub = message.healthHub;
|
|
109017
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
109018
|
+
object.subscriptionOrgId = message.subscriptionOrgId;
|
|
108997
109019
|
return object;
|
|
108998
109020
|
};
|
|
108999
109021
|
|
|
@@ -109050,6 +109072,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
109050
109072
|
* @property {b2b.EapCoverage|null} [eapCoverage] EnterpriseUserEnrollmentRemoved eapCoverage
|
|
109051
109073
|
* @property {number|null} [eapCoverageTotal] EnterpriseUserEnrollmentRemoved eapCoverageTotal
|
|
109052
109074
|
* @property {b2b.EapServiceType|null} [eapServiceType] EnterpriseUserEnrollmentRemoved eapServiceType
|
|
109075
|
+
* @property {number|null} [subscriptionOrgId] EnterpriseUserEnrollmentRemoved subscriptionOrgId
|
|
109053
109076
|
*/
|
|
109054
109077
|
|
|
109055
109078
|
/**
|
|
@@ -109331,6 +109354,14 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
109331
109354
|
*/
|
|
109332
109355
|
EnterpriseUserEnrollmentRemoved.prototype.eapServiceType = 0;
|
|
109333
109356
|
|
|
109357
|
+
/**
|
|
109358
|
+
* EnterpriseUserEnrollmentRemoved subscriptionOrgId.
|
|
109359
|
+
* @member {number} subscriptionOrgId
|
|
109360
|
+
* @memberof EnterpriseUserEnrollmentRemoved
|
|
109361
|
+
* @instance
|
|
109362
|
+
*/
|
|
109363
|
+
EnterpriseUserEnrollmentRemoved.prototype.subscriptionOrgId = 0;
|
|
109364
|
+
|
|
109334
109365
|
/**
|
|
109335
109366
|
* Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
|
|
109336
109367
|
* @function create
|
|
@@ -109421,6 +109452,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
109421
109452
|
writer.uint32(/* id 37, wireType 0 =*/296).uint32(message.eapCoverageTotal);
|
|
109422
109453
|
if (message.eapServiceType != null && message.hasOwnProperty("eapServiceType"))
|
|
109423
109454
|
writer.uint32(/* id 38, wireType 0 =*/304).int32(message.eapServiceType);
|
|
109455
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
109456
|
+
writer.uint32(/* id 39, wireType 0 =*/312).uint32(message.subscriptionOrgId);
|
|
109424
109457
|
return writer;
|
|
109425
109458
|
};
|
|
109426
109459
|
|
|
@@ -109554,6 +109587,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
109554
109587
|
case 38:
|
|
109555
109588
|
message.eapServiceType = reader.int32();
|
|
109556
109589
|
break;
|
|
109590
|
+
case 39:
|
|
109591
|
+
message.subscriptionOrgId = reader.uint32();
|
|
109592
|
+
break;
|
|
109557
109593
|
default:
|
|
109558
109594
|
reader.skipType(tag & 7);
|
|
109559
109595
|
break;
|
|
@@ -109748,6 +109784,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
109748
109784
|
case 3:
|
|
109749
109785
|
break;
|
|
109750
109786
|
}
|
|
109787
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
109788
|
+
if (!$util.isInteger(message.subscriptionOrgId))
|
|
109789
|
+
return "subscriptionOrgId: integer expected";
|
|
109751
109790
|
return null;
|
|
109752
109791
|
};
|
|
109753
109792
|
|
|
@@ -110020,6 +110059,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
110020
110059
|
message.eapServiceType = 3;
|
|
110021
110060
|
break;
|
|
110022
110061
|
}
|
|
110062
|
+
if (object.subscriptionOrgId != null)
|
|
110063
|
+
message.subscriptionOrgId = object.subscriptionOrgId >>> 0;
|
|
110023
110064
|
return message;
|
|
110024
110065
|
};
|
|
110025
110066
|
|
|
@@ -110090,6 +110131,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
110090
110131
|
object.eapCoverage = options.enums === String ? "EAP_COVERAGE_UNKNOWN" : 0;
|
|
110091
110132
|
object.eapCoverageTotal = 0;
|
|
110092
110133
|
object.eapServiceType = options.enums === String ? "EAP_SERVICE_TYPE_UNKNOWN" : 0;
|
|
110134
|
+
object.subscriptionOrgId = 0;
|
|
110093
110135
|
}
|
|
110094
110136
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
110095
110137
|
object.userId = message.userId;
|
|
@@ -110172,6 +110214,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
110172
110214
|
object.eapCoverageTotal = message.eapCoverageTotal;
|
|
110173
110215
|
if (message.eapServiceType != null && message.hasOwnProperty("eapServiceType"))
|
|
110174
110216
|
object.eapServiceType = options.enums === String ? $root.b2b.EapServiceType[message.eapServiceType] : message.eapServiceType;
|
|
110217
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
110218
|
+
object.subscriptionOrgId = message.subscriptionOrgId;
|
|
110175
110219
|
return object;
|
|
110176
110220
|
};
|
|
110177
110221
|
|
|
@@ -110231,6 +110275,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
110231
110275
|
* @property {number|null} [eapCoverageTotal] EnterpriseUserEnrollmentAmended eapCoverageTotal
|
|
110232
110276
|
* @property {b2b.EapServiceType|null} [eapServiceType] EnterpriseUserEnrollmentAmended eapServiceType
|
|
110233
110277
|
* @property {string|null} [healthHub] EnterpriseUserEnrollmentAmended healthHub
|
|
110278
|
+
* @property {number|null} [subscriptionOrgId] EnterpriseUserEnrollmentAmended subscriptionOrgId
|
|
110234
110279
|
*/
|
|
110235
110280
|
|
|
110236
110281
|
/**
|
|
@@ -110536,6 +110581,14 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
110536
110581
|
*/
|
|
110537
110582
|
EnterpriseUserEnrollmentAmended.prototype.healthHub = "";
|
|
110538
110583
|
|
|
110584
|
+
/**
|
|
110585
|
+
* EnterpriseUserEnrollmentAmended subscriptionOrgId.
|
|
110586
|
+
* @member {number} subscriptionOrgId
|
|
110587
|
+
* @memberof EnterpriseUserEnrollmentAmended
|
|
110588
|
+
* @instance
|
|
110589
|
+
*/
|
|
110590
|
+
EnterpriseUserEnrollmentAmended.prototype.subscriptionOrgId = 0;
|
|
110591
|
+
|
|
110539
110592
|
/**
|
|
110540
110593
|
* Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
|
|
110541
110594
|
* @function create
|
|
@@ -110632,6 +110685,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
110632
110685
|
writer.uint32(/* id 41, wireType 0 =*/328).int32(message.eapServiceType);
|
|
110633
110686
|
if (message.healthHub != null && message.hasOwnProperty("healthHub"))
|
|
110634
110687
|
writer.uint32(/* id 42, wireType 2 =*/338).string(message.healthHub);
|
|
110688
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
110689
|
+
writer.uint32(/* id 43, wireType 0 =*/344).uint32(message.subscriptionOrgId);
|
|
110635
110690
|
return writer;
|
|
110636
110691
|
};
|
|
110637
110692
|
|
|
@@ -110774,6 +110829,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
110774
110829
|
case 42:
|
|
110775
110830
|
message.healthHub = reader.string();
|
|
110776
110831
|
break;
|
|
110832
|
+
case 43:
|
|
110833
|
+
message.subscriptionOrgId = reader.uint32();
|
|
110834
|
+
break;
|
|
110777
110835
|
default:
|
|
110778
110836
|
reader.skipType(tag & 7);
|
|
110779
110837
|
break;
|
|
@@ -110962,6 +111020,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
110962
111020
|
if (message.healthHub != null && message.hasOwnProperty("healthHub"))
|
|
110963
111021
|
if (!$util.isString(message.healthHub))
|
|
110964
111022
|
return "healthHub: string expected";
|
|
111023
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
111024
|
+
if (!$util.isInteger(message.subscriptionOrgId))
|
|
111025
|
+
return "subscriptionOrgId: integer expected";
|
|
110965
111026
|
return null;
|
|
110966
111027
|
};
|
|
110967
111028
|
|
|
@@ -111192,6 +111253,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
111192
111253
|
}
|
|
111193
111254
|
if (object.healthHub != null)
|
|
111194
111255
|
message.healthHub = String(object.healthHub);
|
|
111256
|
+
if (object.subscriptionOrgId != null)
|
|
111257
|
+
message.subscriptionOrgId = object.subscriptionOrgId >>> 0;
|
|
111195
111258
|
return message;
|
|
111196
111259
|
};
|
|
111197
111260
|
|
|
@@ -111265,6 +111328,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
111265
111328
|
object.eapCoverageTotal = 0;
|
|
111266
111329
|
object.eapServiceType = options.enums === String ? "EAP_SERVICE_TYPE_UNKNOWN" : 0;
|
|
111267
111330
|
object.healthHub = "";
|
|
111331
|
+
object.subscriptionOrgId = 0;
|
|
111268
111332
|
}
|
|
111269
111333
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
111270
111334
|
object.userId = message.userId;
|
|
@@ -111353,6 +111417,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
111353
111417
|
object.eapServiceType = options.enums === String ? $root.b2b.EapServiceType[message.eapServiceType] : message.eapServiceType;
|
|
111354
111418
|
if (message.healthHub != null && message.hasOwnProperty("healthHub"))
|
|
111355
111419
|
object.healthHub = message.healthHub;
|
|
111420
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
111421
|
+
object.subscriptionOrgId = message.subscriptionOrgId;
|
|
111356
111422
|
return object;
|
|
111357
111423
|
};
|
|
111358
111424
|
|
|
@@ -111386,6 +111452,7 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
111386
111452
|
* @property {number|Long|null} [timestampEpochMs] EnterpriseUserEnrollmentInitiated timestampEpochMs
|
|
111387
111453
|
* @property {string|null} [languagePreference] EnterpriseUserEnrollmentInitiated languagePreference
|
|
111388
111454
|
* @property {string|null} [dependentOf] EnterpriseUserEnrollmentInitiated dependentOf
|
|
111455
|
+
* @property {number|null} [subscriptionOrgId] EnterpriseUserEnrollmentInitiated subscriptionOrgId
|
|
111389
111456
|
*/
|
|
111390
111457
|
|
|
111391
111458
|
/**
|
|
@@ -111483,6 +111550,14 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
111483
111550
|
*/
|
|
111484
111551
|
EnterpriseUserEnrollmentInitiated.prototype.dependentOf = "";
|
|
111485
111552
|
|
|
111553
|
+
/**
|
|
111554
|
+
* EnterpriseUserEnrollmentInitiated subscriptionOrgId.
|
|
111555
|
+
* @member {number} subscriptionOrgId
|
|
111556
|
+
* @memberof EnterpriseUserEnrollmentInitiated
|
|
111557
|
+
* @instance
|
|
111558
|
+
*/
|
|
111559
|
+
EnterpriseUserEnrollmentInitiated.prototype.subscriptionOrgId = 0;
|
|
111560
|
+
|
|
111486
111561
|
/**
|
|
111487
111562
|
* Creates a new EnterpriseUserEnrollmentInitiated instance using the specified properties.
|
|
111488
111563
|
* @function create
|
|
@@ -111527,6 +111602,8 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
111527
111602
|
writer.uint32(/* id 9, wireType 2 =*/74).string(message.languagePreference);
|
|
111528
111603
|
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
111529
111604
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.dependentOf);
|
|
111605
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
111606
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.subscriptionOrgId);
|
|
111530
111607
|
return writer;
|
|
111531
111608
|
};
|
|
111532
111609
|
|
|
@@ -111591,6 +111668,9 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
111591
111668
|
case 10:
|
|
111592
111669
|
message.dependentOf = reader.string();
|
|
111593
111670
|
break;
|
|
111671
|
+
case 11:
|
|
111672
|
+
message.subscriptionOrgId = reader.uint32();
|
|
111673
|
+
break;
|
|
111594
111674
|
default:
|
|
111595
111675
|
reader.skipType(tag & 7);
|
|
111596
111676
|
break;
|
|
@@ -111656,6 +111736,9 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
111656
111736
|
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
111657
111737
|
if (!$util.isString(message.dependentOf))
|
|
111658
111738
|
return "dependentOf: string expected";
|
|
111739
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
111740
|
+
if (!$util.isInteger(message.subscriptionOrgId))
|
|
111741
|
+
return "subscriptionOrgId: integer expected";
|
|
111659
111742
|
return null;
|
|
111660
111743
|
};
|
|
111661
111744
|
|
|
@@ -111698,6 +111781,8 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
111698
111781
|
message.languagePreference = String(object.languagePreference);
|
|
111699
111782
|
if (object.dependentOf != null)
|
|
111700
111783
|
message.dependentOf = String(object.dependentOf);
|
|
111784
|
+
if (object.subscriptionOrgId != null)
|
|
111785
|
+
message.subscriptionOrgId = object.subscriptionOrgId >>> 0;
|
|
111701
111786
|
return message;
|
|
111702
111787
|
};
|
|
111703
111788
|
|
|
@@ -111729,6 +111814,7 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
111729
111814
|
object.timestampEpochMs = options.longs === String ? "0" : 0;
|
|
111730
111815
|
object.languagePreference = "";
|
|
111731
111816
|
object.dependentOf = "";
|
|
111817
|
+
object.subscriptionOrgId = 0;
|
|
111732
111818
|
}
|
|
111733
111819
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
111734
111820
|
object.hsUserId = message.hsUserId;
|
|
@@ -111753,6 +111839,8 @@ $root.EnterpriseUserEnrollmentInitiated = (function() {
|
|
|
111753
111839
|
object.languagePreference = message.languagePreference;
|
|
111754
111840
|
if (message.dependentOf != null && message.hasOwnProperty("dependentOf"))
|
|
111755
111841
|
object.dependentOf = message.dependentOf;
|
|
111842
|
+
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
111843
|
+
object.subscriptionOrgId = message.subscriptionOrgId;
|
|
111756
111844
|
return object;
|
|
111757
111845
|
};
|
|
111758
111846
|
|
|
@@ -122444,6 +122532,1331 @@ $root.GuidedProgramDeleted = (function() {
|
|
|
122444
122532
|
return GuidedProgramDeleted;
|
|
122445
122533
|
})();
|
|
122446
122534
|
|
|
122535
|
+
$root.InteractiveJournalingParticipant = (function() {
|
|
122536
|
+
|
|
122537
|
+
/**
|
|
122538
|
+
* Properties of an InteractiveJournalingParticipant.
|
|
122539
|
+
* @name IInteractiveJournalingParticipant
|
|
122540
|
+
* @interface IInteractiveJournalingParticipant
|
|
122541
|
+
* @property {string|null} [hsUserId] InteractiveJournalingParticipant hsUserId
|
|
122542
|
+
* @property {boolean|null} [isBot] InteractiveJournalingParticipant isBot
|
|
122543
|
+
*/
|
|
122544
|
+
|
|
122545
|
+
/**
|
|
122546
|
+
* Constructs a new InteractiveJournalingParticipant.
|
|
122547
|
+
* @name InteractiveJournalingParticipant
|
|
122548
|
+
* @classdesc Represents an InteractiveJournalingParticipant.
|
|
122549
|
+
* @implements IInteractiveJournalingParticipant
|
|
122550
|
+
* @constructor
|
|
122551
|
+
* @param {IInteractiveJournalingParticipant=} [properties] Properties to set
|
|
122552
|
+
*/
|
|
122553
|
+
function InteractiveJournalingParticipant(properties) {
|
|
122554
|
+
if (properties)
|
|
122555
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
122556
|
+
if (properties[keys[i]] != null)
|
|
122557
|
+
this[keys[i]] = properties[keys[i]];
|
|
122558
|
+
}
|
|
122559
|
+
|
|
122560
|
+
/**
|
|
122561
|
+
* InteractiveJournalingParticipant hsUserId.
|
|
122562
|
+
* @member {string} hsUserId
|
|
122563
|
+
* @memberof InteractiveJournalingParticipant
|
|
122564
|
+
* @instance
|
|
122565
|
+
*/
|
|
122566
|
+
InteractiveJournalingParticipant.prototype.hsUserId = "";
|
|
122567
|
+
|
|
122568
|
+
/**
|
|
122569
|
+
* InteractiveJournalingParticipant isBot.
|
|
122570
|
+
* @member {boolean} isBot
|
|
122571
|
+
* @memberof InteractiveJournalingParticipant
|
|
122572
|
+
* @instance
|
|
122573
|
+
*/
|
|
122574
|
+
InteractiveJournalingParticipant.prototype.isBot = false;
|
|
122575
|
+
|
|
122576
|
+
/**
|
|
122577
|
+
* Creates a new InteractiveJournalingParticipant instance using the specified properties.
|
|
122578
|
+
* @function create
|
|
122579
|
+
* @memberof InteractiveJournalingParticipant
|
|
122580
|
+
* @static
|
|
122581
|
+
* @param {IInteractiveJournalingParticipant=} [properties] Properties to set
|
|
122582
|
+
* @returns {InteractiveJournalingParticipant} InteractiveJournalingParticipant instance
|
|
122583
|
+
*/
|
|
122584
|
+
InteractiveJournalingParticipant.create = function create(properties) {
|
|
122585
|
+
return new InteractiveJournalingParticipant(properties);
|
|
122586
|
+
};
|
|
122587
|
+
|
|
122588
|
+
/**
|
|
122589
|
+
* Encodes the specified InteractiveJournalingParticipant message. Does not implicitly {@link InteractiveJournalingParticipant.verify|verify} messages.
|
|
122590
|
+
* @function encode
|
|
122591
|
+
* @memberof InteractiveJournalingParticipant
|
|
122592
|
+
* @static
|
|
122593
|
+
* @param {IInteractiveJournalingParticipant} message InteractiveJournalingParticipant message or plain object to encode
|
|
122594
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122595
|
+
* @returns {$protobuf.Writer} Writer
|
|
122596
|
+
*/
|
|
122597
|
+
InteractiveJournalingParticipant.encode = function encode(message, writer) {
|
|
122598
|
+
if (!writer)
|
|
122599
|
+
writer = $Writer.create();
|
|
122600
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
122601
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
122602
|
+
if (message.isBot != null && message.hasOwnProperty("isBot"))
|
|
122603
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isBot);
|
|
122604
|
+
return writer;
|
|
122605
|
+
};
|
|
122606
|
+
|
|
122607
|
+
/**
|
|
122608
|
+
* Encodes the specified InteractiveJournalingParticipant message, length delimited. Does not implicitly {@link InteractiveJournalingParticipant.verify|verify} messages.
|
|
122609
|
+
* @function encodeDelimited
|
|
122610
|
+
* @memberof InteractiveJournalingParticipant
|
|
122611
|
+
* @static
|
|
122612
|
+
* @param {IInteractiveJournalingParticipant} message InteractiveJournalingParticipant message or plain object to encode
|
|
122613
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122614
|
+
* @returns {$protobuf.Writer} Writer
|
|
122615
|
+
*/
|
|
122616
|
+
InteractiveJournalingParticipant.encodeDelimited = function encodeDelimited(message, writer) {
|
|
122617
|
+
return this.encode(message, writer).ldelim();
|
|
122618
|
+
};
|
|
122619
|
+
|
|
122620
|
+
/**
|
|
122621
|
+
* Decodes an InteractiveJournalingParticipant message from the specified reader or buffer.
|
|
122622
|
+
* @function decode
|
|
122623
|
+
* @memberof InteractiveJournalingParticipant
|
|
122624
|
+
* @static
|
|
122625
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122626
|
+
* @param {number} [length] Message length if known beforehand
|
|
122627
|
+
* @returns {InteractiveJournalingParticipant} InteractiveJournalingParticipant
|
|
122628
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122629
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122630
|
+
*/
|
|
122631
|
+
InteractiveJournalingParticipant.decode = function decode(reader, length) {
|
|
122632
|
+
if (!(reader instanceof $Reader))
|
|
122633
|
+
reader = $Reader.create(reader);
|
|
122634
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingParticipant();
|
|
122635
|
+
while (reader.pos < end) {
|
|
122636
|
+
var tag = reader.uint32();
|
|
122637
|
+
switch (tag >>> 3) {
|
|
122638
|
+
case 1:
|
|
122639
|
+
message.hsUserId = reader.string();
|
|
122640
|
+
break;
|
|
122641
|
+
case 2:
|
|
122642
|
+
message.isBot = reader.bool();
|
|
122643
|
+
break;
|
|
122644
|
+
default:
|
|
122645
|
+
reader.skipType(tag & 7);
|
|
122646
|
+
break;
|
|
122647
|
+
}
|
|
122648
|
+
}
|
|
122649
|
+
return message;
|
|
122650
|
+
};
|
|
122651
|
+
|
|
122652
|
+
/**
|
|
122653
|
+
* Decodes an InteractiveJournalingParticipant message from the specified reader or buffer, length delimited.
|
|
122654
|
+
* @function decodeDelimited
|
|
122655
|
+
* @memberof InteractiveJournalingParticipant
|
|
122656
|
+
* @static
|
|
122657
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122658
|
+
* @returns {InteractiveJournalingParticipant} InteractiveJournalingParticipant
|
|
122659
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122660
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122661
|
+
*/
|
|
122662
|
+
InteractiveJournalingParticipant.decodeDelimited = function decodeDelimited(reader) {
|
|
122663
|
+
if (!(reader instanceof $Reader))
|
|
122664
|
+
reader = new $Reader(reader);
|
|
122665
|
+
return this.decode(reader, reader.uint32());
|
|
122666
|
+
};
|
|
122667
|
+
|
|
122668
|
+
/**
|
|
122669
|
+
* Verifies an InteractiveJournalingParticipant message.
|
|
122670
|
+
* @function verify
|
|
122671
|
+
* @memberof InteractiveJournalingParticipant
|
|
122672
|
+
* @static
|
|
122673
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
122674
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
122675
|
+
*/
|
|
122676
|
+
InteractiveJournalingParticipant.verify = function verify(message) {
|
|
122677
|
+
if (typeof message !== "object" || message === null)
|
|
122678
|
+
return "object expected";
|
|
122679
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
122680
|
+
if (!$util.isString(message.hsUserId))
|
|
122681
|
+
return "hsUserId: string expected";
|
|
122682
|
+
if (message.isBot != null && message.hasOwnProperty("isBot"))
|
|
122683
|
+
if (typeof message.isBot !== "boolean")
|
|
122684
|
+
return "isBot: boolean expected";
|
|
122685
|
+
return null;
|
|
122686
|
+
};
|
|
122687
|
+
|
|
122688
|
+
/**
|
|
122689
|
+
* Creates an InteractiveJournalingParticipant message from a plain object. Also converts values to their respective internal types.
|
|
122690
|
+
* @function fromObject
|
|
122691
|
+
* @memberof InteractiveJournalingParticipant
|
|
122692
|
+
* @static
|
|
122693
|
+
* @param {Object.<string,*>} object Plain object
|
|
122694
|
+
* @returns {InteractiveJournalingParticipant} InteractiveJournalingParticipant
|
|
122695
|
+
*/
|
|
122696
|
+
InteractiveJournalingParticipant.fromObject = function fromObject(object) {
|
|
122697
|
+
if (object instanceof $root.InteractiveJournalingParticipant)
|
|
122698
|
+
return object;
|
|
122699
|
+
var message = new $root.InteractiveJournalingParticipant();
|
|
122700
|
+
if (object.hsUserId != null)
|
|
122701
|
+
message.hsUserId = String(object.hsUserId);
|
|
122702
|
+
if (object.isBot != null)
|
|
122703
|
+
message.isBot = Boolean(object.isBot);
|
|
122704
|
+
return message;
|
|
122705
|
+
};
|
|
122706
|
+
|
|
122707
|
+
/**
|
|
122708
|
+
* Creates a plain object from an InteractiveJournalingParticipant message. Also converts values to other types if specified.
|
|
122709
|
+
* @function toObject
|
|
122710
|
+
* @memberof InteractiveJournalingParticipant
|
|
122711
|
+
* @static
|
|
122712
|
+
* @param {InteractiveJournalingParticipant} message InteractiveJournalingParticipant
|
|
122713
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
122714
|
+
* @returns {Object.<string,*>} Plain object
|
|
122715
|
+
*/
|
|
122716
|
+
InteractiveJournalingParticipant.toObject = function toObject(message, options) {
|
|
122717
|
+
if (!options)
|
|
122718
|
+
options = {};
|
|
122719
|
+
var object = {};
|
|
122720
|
+
if (options.defaults) {
|
|
122721
|
+
object.hsUserId = "";
|
|
122722
|
+
object.isBot = false;
|
|
122723
|
+
}
|
|
122724
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
122725
|
+
object.hsUserId = message.hsUserId;
|
|
122726
|
+
if (message.isBot != null && message.hasOwnProperty("isBot"))
|
|
122727
|
+
object.isBot = message.isBot;
|
|
122728
|
+
return object;
|
|
122729
|
+
};
|
|
122730
|
+
|
|
122731
|
+
/**
|
|
122732
|
+
* Converts this InteractiveJournalingParticipant to JSON.
|
|
122733
|
+
* @function toJSON
|
|
122734
|
+
* @memberof InteractiveJournalingParticipant
|
|
122735
|
+
* @instance
|
|
122736
|
+
* @returns {Object.<string,*>} JSON object
|
|
122737
|
+
*/
|
|
122738
|
+
InteractiveJournalingParticipant.prototype.toJSON = function toJSON() {
|
|
122739
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
122740
|
+
};
|
|
122741
|
+
|
|
122742
|
+
return InteractiveJournalingParticipant;
|
|
122743
|
+
})();
|
|
122744
|
+
|
|
122745
|
+
/**
|
|
122746
|
+
* InteractiveJournalingConversationKind enum.
|
|
122747
|
+
* @name InteractiveJournalingConversationKind
|
|
122748
|
+
* @enum {string}
|
|
122749
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_KIND_UNKNOWN=0 INTERACTIVE_JOURNALING_CONVERSATION_KIND_UNKNOWN value
|
|
122750
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_KIND_PROCESS_EMOTION=1 INTERACTIVE_JOURNALING_CONVERSATION_KIND_PROCESS_EMOTION value
|
|
122751
|
+
* @property {number} INTERACTIVE_JOURNALING_CONVERSATION_KIND_FIND_GRATITUDE=2 INTERACTIVE_JOURNALING_CONVERSATION_KIND_FIND_GRATITUDE value
|
|
122752
|
+
*/
|
|
122753
|
+
$root.InteractiveJournalingConversationKind = (function() {
|
|
122754
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
122755
|
+
values[valuesById[0] = "INTERACTIVE_JOURNALING_CONVERSATION_KIND_UNKNOWN"] = 0;
|
|
122756
|
+
values[valuesById[1] = "INTERACTIVE_JOURNALING_CONVERSATION_KIND_PROCESS_EMOTION"] = 1;
|
|
122757
|
+
values[valuesById[2] = "INTERACTIVE_JOURNALING_CONVERSATION_KIND_FIND_GRATITUDE"] = 2;
|
|
122758
|
+
return values;
|
|
122759
|
+
})();
|
|
122760
|
+
|
|
122761
|
+
$root.InteractiveJournalingMessage = (function() {
|
|
122762
|
+
|
|
122763
|
+
/**
|
|
122764
|
+
* Properties of an InteractiveJournalingMessage.
|
|
122765
|
+
* @name IInteractiveJournalingMessage
|
|
122766
|
+
* @interface IInteractiveJournalingMessage
|
|
122767
|
+
* @property {string|null} [messageId] InteractiveJournalingMessage messageId
|
|
122768
|
+
* @property {string|null} [conversationId] InteractiveJournalingMessage conversationId
|
|
122769
|
+
* @property {number|Long|null} [createdAt] InteractiveJournalingMessage createdAt
|
|
122770
|
+
* @property {IInteractiveJournalingParticipant|null} [author] InteractiveJournalingMessage author
|
|
122771
|
+
* @property {InteractiveJournalingConversationKind|null} [conversationKind] InteractiveJournalingMessage conversationKind
|
|
122772
|
+
* @property {string|null} [messageContent] InteractiveJournalingMessage messageContent
|
|
122773
|
+
* @property {InteractiveJournalingMessage.ICustomAttributes|null} [customDisplayAttributes] InteractiveJournalingMessage customDisplayAttributes
|
|
122774
|
+
* @property {Array.<InteractiveJournalingMessage.IReplyButton>|null} [replyButtons] InteractiveJournalingMessage replyButtons
|
|
122775
|
+
*/
|
|
122776
|
+
|
|
122777
|
+
/**
|
|
122778
|
+
* Constructs a new InteractiveJournalingMessage.
|
|
122779
|
+
* @name InteractiveJournalingMessage
|
|
122780
|
+
* @classdesc Represents an InteractiveJournalingMessage.
|
|
122781
|
+
* @implements IInteractiveJournalingMessage
|
|
122782
|
+
* @constructor
|
|
122783
|
+
* @param {IInteractiveJournalingMessage=} [properties] Properties to set
|
|
122784
|
+
*/
|
|
122785
|
+
function InteractiveJournalingMessage(properties) {
|
|
122786
|
+
this.replyButtons = [];
|
|
122787
|
+
if (properties)
|
|
122788
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
122789
|
+
if (properties[keys[i]] != null)
|
|
122790
|
+
this[keys[i]] = properties[keys[i]];
|
|
122791
|
+
}
|
|
122792
|
+
|
|
122793
|
+
/**
|
|
122794
|
+
* InteractiveJournalingMessage messageId.
|
|
122795
|
+
* @member {string} messageId
|
|
122796
|
+
* @memberof InteractiveJournalingMessage
|
|
122797
|
+
* @instance
|
|
122798
|
+
*/
|
|
122799
|
+
InteractiveJournalingMessage.prototype.messageId = "";
|
|
122800
|
+
|
|
122801
|
+
/**
|
|
122802
|
+
* InteractiveJournalingMessage conversationId.
|
|
122803
|
+
* @member {string} conversationId
|
|
122804
|
+
* @memberof InteractiveJournalingMessage
|
|
122805
|
+
* @instance
|
|
122806
|
+
*/
|
|
122807
|
+
InteractiveJournalingMessage.prototype.conversationId = "";
|
|
122808
|
+
|
|
122809
|
+
/**
|
|
122810
|
+
* InteractiveJournalingMessage createdAt.
|
|
122811
|
+
* @member {number|Long} createdAt
|
|
122812
|
+
* @memberof InteractiveJournalingMessage
|
|
122813
|
+
* @instance
|
|
122814
|
+
*/
|
|
122815
|
+
InteractiveJournalingMessage.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
122816
|
+
|
|
122817
|
+
/**
|
|
122818
|
+
* InteractiveJournalingMessage author.
|
|
122819
|
+
* @member {IInteractiveJournalingParticipant|null|undefined} author
|
|
122820
|
+
* @memberof InteractiveJournalingMessage
|
|
122821
|
+
* @instance
|
|
122822
|
+
*/
|
|
122823
|
+
InteractiveJournalingMessage.prototype.author = null;
|
|
122824
|
+
|
|
122825
|
+
/**
|
|
122826
|
+
* InteractiveJournalingMessage conversationKind.
|
|
122827
|
+
* @member {InteractiveJournalingConversationKind} conversationKind
|
|
122828
|
+
* @memberof InteractiveJournalingMessage
|
|
122829
|
+
* @instance
|
|
122830
|
+
*/
|
|
122831
|
+
InteractiveJournalingMessage.prototype.conversationKind = 0;
|
|
122832
|
+
|
|
122833
|
+
/**
|
|
122834
|
+
* InteractiveJournalingMessage messageContent.
|
|
122835
|
+
* @member {string} messageContent
|
|
122836
|
+
* @memberof InteractiveJournalingMessage
|
|
122837
|
+
* @instance
|
|
122838
|
+
*/
|
|
122839
|
+
InteractiveJournalingMessage.prototype.messageContent = "";
|
|
122840
|
+
|
|
122841
|
+
/**
|
|
122842
|
+
* InteractiveJournalingMessage customDisplayAttributes.
|
|
122843
|
+
* @member {InteractiveJournalingMessage.ICustomAttributes|null|undefined} customDisplayAttributes
|
|
122844
|
+
* @memberof InteractiveJournalingMessage
|
|
122845
|
+
* @instance
|
|
122846
|
+
*/
|
|
122847
|
+
InteractiveJournalingMessage.prototype.customDisplayAttributes = null;
|
|
122848
|
+
|
|
122849
|
+
/**
|
|
122850
|
+
* InteractiveJournalingMessage replyButtons.
|
|
122851
|
+
* @member {Array.<InteractiveJournalingMessage.IReplyButton>} replyButtons
|
|
122852
|
+
* @memberof InteractiveJournalingMessage
|
|
122853
|
+
* @instance
|
|
122854
|
+
*/
|
|
122855
|
+
InteractiveJournalingMessage.prototype.replyButtons = $util.emptyArray;
|
|
122856
|
+
|
|
122857
|
+
/**
|
|
122858
|
+
* Creates a new InteractiveJournalingMessage instance using the specified properties.
|
|
122859
|
+
* @function create
|
|
122860
|
+
* @memberof InteractiveJournalingMessage
|
|
122861
|
+
* @static
|
|
122862
|
+
* @param {IInteractiveJournalingMessage=} [properties] Properties to set
|
|
122863
|
+
* @returns {InteractiveJournalingMessage} InteractiveJournalingMessage instance
|
|
122864
|
+
*/
|
|
122865
|
+
InteractiveJournalingMessage.create = function create(properties) {
|
|
122866
|
+
return new InteractiveJournalingMessage(properties);
|
|
122867
|
+
};
|
|
122868
|
+
|
|
122869
|
+
/**
|
|
122870
|
+
* Encodes the specified InteractiveJournalingMessage message. Does not implicitly {@link InteractiveJournalingMessage.verify|verify} messages.
|
|
122871
|
+
* @function encode
|
|
122872
|
+
* @memberof InteractiveJournalingMessage
|
|
122873
|
+
* @static
|
|
122874
|
+
* @param {IInteractiveJournalingMessage} message InteractiveJournalingMessage message or plain object to encode
|
|
122875
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122876
|
+
* @returns {$protobuf.Writer} Writer
|
|
122877
|
+
*/
|
|
122878
|
+
InteractiveJournalingMessage.encode = function encode(message, writer) {
|
|
122879
|
+
if (!writer)
|
|
122880
|
+
writer = $Writer.create();
|
|
122881
|
+
if (message.messageId != null && message.hasOwnProperty("messageId"))
|
|
122882
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.messageId);
|
|
122883
|
+
if (message.conversationId != null && message.hasOwnProperty("conversationId"))
|
|
122884
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.conversationId);
|
|
122885
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
122886
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
122887
|
+
if (message.author != null && message.hasOwnProperty("author"))
|
|
122888
|
+
$root.InteractiveJournalingParticipant.encode(message.author, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
122889
|
+
if (message.conversationKind != null && message.hasOwnProperty("conversationKind"))
|
|
122890
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.conversationKind);
|
|
122891
|
+
if (message.messageContent != null && message.hasOwnProperty("messageContent"))
|
|
122892
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.messageContent);
|
|
122893
|
+
if (message.customDisplayAttributes != null && message.hasOwnProperty("customDisplayAttributes"))
|
|
122894
|
+
$root.InteractiveJournalingMessage.CustomAttributes.encode(message.customDisplayAttributes, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
122895
|
+
if (message.replyButtons != null && message.replyButtons.length)
|
|
122896
|
+
for (var i = 0; i < message.replyButtons.length; ++i)
|
|
122897
|
+
$root.InteractiveJournalingMessage.ReplyButton.encode(message.replyButtons[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
122898
|
+
return writer;
|
|
122899
|
+
};
|
|
122900
|
+
|
|
122901
|
+
/**
|
|
122902
|
+
* Encodes the specified InteractiveJournalingMessage message, length delimited. Does not implicitly {@link InteractiveJournalingMessage.verify|verify} messages.
|
|
122903
|
+
* @function encodeDelimited
|
|
122904
|
+
* @memberof InteractiveJournalingMessage
|
|
122905
|
+
* @static
|
|
122906
|
+
* @param {IInteractiveJournalingMessage} message InteractiveJournalingMessage message or plain object to encode
|
|
122907
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
122908
|
+
* @returns {$protobuf.Writer} Writer
|
|
122909
|
+
*/
|
|
122910
|
+
InteractiveJournalingMessage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
122911
|
+
return this.encode(message, writer).ldelim();
|
|
122912
|
+
};
|
|
122913
|
+
|
|
122914
|
+
/**
|
|
122915
|
+
* Decodes an InteractiveJournalingMessage message from the specified reader or buffer.
|
|
122916
|
+
* @function decode
|
|
122917
|
+
* @memberof InteractiveJournalingMessage
|
|
122918
|
+
* @static
|
|
122919
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122920
|
+
* @param {number} [length] Message length if known beforehand
|
|
122921
|
+
* @returns {InteractiveJournalingMessage} InteractiveJournalingMessage
|
|
122922
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122923
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122924
|
+
*/
|
|
122925
|
+
InteractiveJournalingMessage.decode = function decode(reader, length) {
|
|
122926
|
+
if (!(reader instanceof $Reader))
|
|
122927
|
+
reader = $Reader.create(reader);
|
|
122928
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingMessage();
|
|
122929
|
+
while (reader.pos < end) {
|
|
122930
|
+
var tag = reader.uint32();
|
|
122931
|
+
switch (tag >>> 3) {
|
|
122932
|
+
case 1:
|
|
122933
|
+
message.messageId = reader.string();
|
|
122934
|
+
break;
|
|
122935
|
+
case 2:
|
|
122936
|
+
message.conversationId = reader.string();
|
|
122937
|
+
break;
|
|
122938
|
+
case 3:
|
|
122939
|
+
message.createdAt = reader.uint64();
|
|
122940
|
+
break;
|
|
122941
|
+
case 4:
|
|
122942
|
+
message.author = $root.InteractiveJournalingParticipant.decode(reader, reader.uint32());
|
|
122943
|
+
break;
|
|
122944
|
+
case 5:
|
|
122945
|
+
message.conversationKind = reader.int32();
|
|
122946
|
+
break;
|
|
122947
|
+
case 6:
|
|
122948
|
+
message.messageContent = reader.string();
|
|
122949
|
+
break;
|
|
122950
|
+
case 7:
|
|
122951
|
+
message.customDisplayAttributes = $root.InteractiveJournalingMessage.CustomAttributes.decode(reader, reader.uint32());
|
|
122952
|
+
break;
|
|
122953
|
+
case 8:
|
|
122954
|
+
if (!(message.replyButtons && message.replyButtons.length))
|
|
122955
|
+
message.replyButtons = [];
|
|
122956
|
+
message.replyButtons.push($root.InteractiveJournalingMessage.ReplyButton.decode(reader, reader.uint32()));
|
|
122957
|
+
break;
|
|
122958
|
+
default:
|
|
122959
|
+
reader.skipType(tag & 7);
|
|
122960
|
+
break;
|
|
122961
|
+
}
|
|
122962
|
+
}
|
|
122963
|
+
return message;
|
|
122964
|
+
};
|
|
122965
|
+
|
|
122966
|
+
/**
|
|
122967
|
+
* Decodes an InteractiveJournalingMessage message from the specified reader or buffer, length delimited.
|
|
122968
|
+
* @function decodeDelimited
|
|
122969
|
+
* @memberof InteractiveJournalingMessage
|
|
122970
|
+
* @static
|
|
122971
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
122972
|
+
* @returns {InteractiveJournalingMessage} InteractiveJournalingMessage
|
|
122973
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
122974
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
122975
|
+
*/
|
|
122976
|
+
InteractiveJournalingMessage.decodeDelimited = function decodeDelimited(reader) {
|
|
122977
|
+
if (!(reader instanceof $Reader))
|
|
122978
|
+
reader = new $Reader(reader);
|
|
122979
|
+
return this.decode(reader, reader.uint32());
|
|
122980
|
+
};
|
|
122981
|
+
|
|
122982
|
+
/**
|
|
122983
|
+
* Verifies an InteractiveJournalingMessage message.
|
|
122984
|
+
* @function verify
|
|
122985
|
+
* @memberof InteractiveJournalingMessage
|
|
122986
|
+
* @static
|
|
122987
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
122988
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
122989
|
+
*/
|
|
122990
|
+
InteractiveJournalingMessage.verify = function verify(message) {
|
|
122991
|
+
if (typeof message !== "object" || message === null)
|
|
122992
|
+
return "object expected";
|
|
122993
|
+
if (message.messageId != null && message.hasOwnProperty("messageId"))
|
|
122994
|
+
if (!$util.isString(message.messageId))
|
|
122995
|
+
return "messageId: string expected";
|
|
122996
|
+
if (message.conversationId != null && message.hasOwnProperty("conversationId"))
|
|
122997
|
+
if (!$util.isString(message.conversationId))
|
|
122998
|
+
return "conversationId: string expected";
|
|
122999
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
123000
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
123001
|
+
return "createdAt: integer|Long expected";
|
|
123002
|
+
if (message.author != null && message.hasOwnProperty("author")) {
|
|
123003
|
+
var error = $root.InteractiveJournalingParticipant.verify(message.author);
|
|
123004
|
+
if (error)
|
|
123005
|
+
return "author." + error;
|
|
123006
|
+
}
|
|
123007
|
+
if (message.conversationKind != null && message.hasOwnProperty("conversationKind"))
|
|
123008
|
+
switch (message.conversationKind) {
|
|
123009
|
+
default:
|
|
123010
|
+
return "conversationKind: enum value expected";
|
|
123011
|
+
case 0:
|
|
123012
|
+
case 1:
|
|
123013
|
+
case 2:
|
|
123014
|
+
break;
|
|
123015
|
+
}
|
|
123016
|
+
if (message.messageContent != null && message.hasOwnProperty("messageContent"))
|
|
123017
|
+
if (!$util.isString(message.messageContent))
|
|
123018
|
+
return "messageContent: string expected";
|
|
123019
|
+
if (message.customDisplayAttributes != null && message.hasOwnProperty("customDisplayAttributes")) {
|
|
123020
|
+
var error = $root.InteractiveJournalingMessage.CustomAttributes.verify(message.customDisplayAttributes);
|
|
123021
|
+
if (error)
|
|
123022
|
+
return "customDisplayAttributes." + error;
|
|
123023
|
+
}
|
|
123024
|
+
if (message.replyButtons != null && message.hasOwnProperty("replyButtons")) {
|
|
123025
|
+
if (!Array.isArray(message.replyButtons))
|
|
123026
|
+
return "replyButtons: array expected";
|
|
123027
|
+
for (var i = 0; i < message.replyButtons.length; ++i) {
|
|
123028
|
+
var error = $root.InteractiveJournalingMessage.ReplyButton.verify(message.replyButtons[i]);
|
|
123029
|
+
if (error)
|
|
123030
|
+
return "replyButtons." + error;
|
|
123031
|
+
}
|
|
123032
|
+
}
|
|
123033
|
+
return null;
|
|
123034
|
+
};
|
|
123035
|
+
|
|
123036
|
+
/**
|
|
123037
|
+
* Creates an InteractiveJournalingMessage message from a plain object. Also converts values to their respective internal types.
|
|
123038
|
+
* @function fromObject
|
|
123039
|
+
* @memberof InteractiveJournalingMessage
|
|
123040
|
+
* @static
|
|
123041
|
+
* @param {Object.<string,*>} object Plain object
|
|
123042
|
+
* @returns {InteractiveJournalingMessage} InteractiveJournalingMessage
|
|
123043
|
+
*/
|
|
123044
|
+
InteractiveJournalingMessage.fromObject = function fromObject(object) {
|
|
123045
|
+
if (object instanceof $root.InteractiveJournalingMessage)
|
|
123046
|
+
return object;
|
|
123047
|
+
var message = new $root.InteractiveJournalingMessage();
|
|
123048
|
+
if (object.messageId != null)
|
|
123049
|
+
message.messageId = String(object.messageId);
|
|
123050
|
+
if (object.conversationId != null)
|
|
123051
|
+
message.conversationId = String(object.conversationId);
|
|
123052
|
+
if (object.createdAt != null)
|
|
123053
|
+
if ($util.Long)
|
|
123054
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
123055
|
+
else if (typeof object.createdAt === "string")
|
|
123056
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
123057
|
+
else if (typeof object.createdAt === "number")
|
|
123058
|
+
message.createdAt = object.createdAt;
|
|
123059
|
+
else if (typeof object.createdAt === "object")
|
|
123060
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
123061
|
+
if (object.author != null) {
|
|
123062
|
+
if (typeof object.author !== "object")
|
|
123063
|
+
throw TypeError(".InteractiveJournalingMessage.author: object expected");
|
|
123064
|
+
message.author = $root.InteractiveJournalingParticipant.fromObject(object.author);
|
|
123065
|
+
}
|
|
123066
|
+
switch (object.conversationKind) {
|
|
123067
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_KIND_UNKNOWN":
|
|
123068
|
+
case 0:
|
|
123069
|
+
message.conversationKind = 0;
|
|
123070
|
+
break;
|
|
123071
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_KIND_PROCESS_EMOTION":
|
|
123072
|
+
case 1:
|
|
123073
|
+
message.conversationKind = 1;
|
|
123074
|
+
break;
|
|
123075
|
+
case "INTERACTIVE_JOURNALING_CONVERSATION_KIND_FIND_GRATITUDE":
|
|
123076
|
+
case 2:
|
|
123077
|
+
message.conversationKind = 2;
|
|
123078
|
+
break;
|
|
123079
|
+
}
|
|
123080
|
+
if (object.messageContent != null)
|
|
123081
|
+
message.messageContent = String(object.messageContent);
|
|
123082
|
+
if (object.customDisplayAttributes != null) {
|
|
123083
|
+
if (typeof object.customDisplayAttributes !== "object")
|
|
123084
|
+
throw TypeError(".InteractiveJournalingMessage.customDisplayAttributes: object expected");
|
|
123085
|
+
message.customDisplayAttributes = $root.InteractiveJournalingMessage.CustomAttributes.fromObject(object.customDisplayAttributes);
|
|
123086
|
+
}
|
|
123087
|
+
if (object.replyButtons) {
|
|
123088
|
+
if (!Array.isArray(object.replyButtons))
|
|
123089
|
+
throw TypeError(".InteractiveJournalingMessage.replyButtons: array expected");
|
|
123090
|
+
message.replyButtons = [];
|
|
123091
|
+
for (var i = 0; i < object.replyButtons.length; ++i) {
|
|
123092
|
+
if (typeof object.replyButtons[i] !== "object")
|
|
123093
|
+
throw TypeError(".InteractiveJournalingMessage.replyButtons: object expected");
|
|
123094
|
+
message.replyButtons[i] = $root.InteractiveJournalingMessage.ReplyButton.fromObject(object.replyButtons[i]);
|
|
123095
|
+
}
|
|
123096
|
+
}
|
|
123097
|
+
return message;
|
|
123098
|
+
};
|
|
123099
|
+
|
|
123100
|
+
/**
|
|
123101
|
+
* Creates a plain object from an InteractiveJournalingMessage message. Also converts values to other types if specified.
|
|
123102
|
+
* @function toObject
|
|
123103
|
+
* @memberof InteractiveJournalingMessage
|
|
123104
|
+
* @static
|
|
123105
|
+
* @param {InteractiveJournalingMessage} message InteractiveJournalingMessage
|
|
123106
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
123107
|
+
* @returns {Object.<string,*>} Plain object
|
|
123108
|
+
*/
|
|
123109
|
+
InteractiveJournalingMessage.toObject = function toObject(message, options) {
|
|
123110
|
+
if (!options)
|
|
123111
|
+
options = {};
|
|
123112
|
+
var object = {};
|
|
123113
|
+
if (options.arrays || options.defaults)
|
|
123114
|
+
object.replyButtons = [];
|
|
123115
|
+
if (options.defaults) {
|
|
123116
|
+
object.messageId = "";
|
|
123117
|
+
object.conversationId = "";
|
|
123118
|
+
if ($util.Long) {
|
|
123119
|
+
var long = new $util.Long(0, 0, true);
|
|
123120
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
123121
|
+
} else
|
|
123122
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
123123
|
+
object.author = null;
|
|
123124
|
+
object.conversationKind = options.enums === String ? "INTERACTIVE_JOURNALING_CONVERSATION_KIND_UNKNOWN" : 0;
|
|
123125
|
+
object.messageContent = "";
|
|
123126
|
+
object.customDisplayAttributes = null;
|
|
123127
|
+
}
|
|
123128
|
+
if (message.messageId != null && message.hasOwnProperty("messageId"))
|
|
123129
|
+
object.messageId = message.messageId;
|
|
123130
|
+
if (message.conversationId != null && message.hasOwnProperty("conversationId"))
|
|
123131
|
+
object.conversationId = message.conversationId;
|
|
123132
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
123133
|
+
if (typeof message.createdAt === "number")
|
|
123134
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
123135
|
+
else
|
|
123136
|
+
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;
|
|
123137
|
+
if (message.author != null && message.hasOwnProperty("author"))
|
|
123138
|
+
object.author = $root.InteractiveJournalingParticipant.toObject(message.author, options);
|
|
123139
|
+
if (message.conversationKind != null && message.hasOwnProperty("conversationKind"))
|
|
123140
|
+
object.conversationKind = options.enums === String ? $root.InteractiveJournalingConversationKind[message.conversationKind] : message.conversationKind;
|
|
123141
|
+
if (message.messageContent != null && message.hasOwnProperty("messageContent"))
|
|
123142
|
+
object.messageContent = message.messageContent;
|
|
123143
|
+
if (message.customDisplayAttributes != null && message.hasOwnProperty("customDisplayAttributes"))
|
|
123144
|
+
object.customDisplayAttributes = $root.InteractiveJournalingMessage.CustomAttributes.toObject(message.customDisplayAttributes, options);
|
|
123145
|
+
if (message.replyButtons && message.replyButtons.length) {
|
|
123146
|
+
object.replyButtons = [];
|
|
123147
|
+
for (var j = 0; j < message.replyButtons.length; ++j)
|
|
123148
|
+
object.replyButtons[j] = $root.InteractiveJournalingMessage.ReplyButton.toObject(message.replyButtons[j], options);
|
|
123149
|
+
}
|
|
123150
|
+
return object;
|
|
123151
|
+
};
|
|
123152
|
+
|
|
123153
|
+
/**
|
|
123154
|
+
* Converts this InteractiveJournalingMessage to JSON.
|
|
123155
|
+
* @function toJSON
|
|
123156
|
+
* @memberof InteractiveJournalingMessage
|
|
123157
|
+
* @instance
|
|
123158
|
+
* @returns {Object.<string,*>} JSON object
|
|
123159
|
+
*/
|
|
123160
|
+
InteractiveJournalingMessage.prototype.toJSON = function toJSON() {
|
|
123161
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
123162
|
+
};
|
|
123163
|
+
|
|
123164
|
+
InteractiveJournalingMessage.CustomAttributes = (function() {
|
|
123165
|
+
|
|
123166
|
+
/**
|
|
123167
|
+
* Properties of a CustomAttributes.
|
|
123168
|
+
* @memberof InteractiveJournalingMessage
|
|
123169
|
+
* @interface ICustomAttributes
|
|
123170
|
+
* @property {boolean|null} [disableTextInput] CustomAttributes disableTextInput
|
|
123171
|
+
* @property {boolean|null} [isContentSuggestion] CustomAttributes isContentSuggestion
|
|
123172
|
+
* @property {boolean|null} [isLifelineWidget] CustomAttributes isLifelineWidget
|
|
123173
|
+
* @property {boolean|null} [isEndOfConversation] CustomAttributes isEndOfConversation
|
|
123174
|
+
*/
|
|
123175
|
+
|
|
123176
|
+
/**
|
|
123177
|
+
* Constructs a new CustomAttributes.
|
|
123178
|
+
* @memberof InteractiveJournalingMessage
|
|
123179
|
+
* @classdesc Represents a CustomAttributes.
|
|
123180
|
+
* @implements ICustomAttributes
|
|
123181
|
+
* @constructor
|
|
123182
|
+
* @param {InteractiveJournalingMessage.ICustomAttributes=} [properties] Properties to set
|
|
123183
|
+
*/
|
|
123184
|
+
function CustomAttributes(properties) {
|
|
123185
|
+
if (properties)
|
|
123186
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
123187
|
+
if (properties[keys[i]] != null)
|
|
123188
|
+
this[keys[i]] = properties[keys[i]];
|
|
123189
|
+
}
|
|
123190
|
+
|
|
123191
|
+
/**
|
|
123192
|
+
* CustomAttributes disableTextInput.
|
|
123193
|
+
* @member {boolean} disableTextInput
|
|
123194
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123195
|
+
* @instance
|
|
123196
|
+
*/
|
|
123197
|
+
CustomAttributes.prototype.disableTextInput = false;
|
|
123198
|
+
|
|
123199
|
+
/**
|
|
123200
|
+
* CustomAttributes isContentSuggestion.
|
|
123201
|
+
* @member {boolean} isContentSuggestion
|
|
123202
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123203
|
+
* @instance
|
|
123204
|
+
*/
|
|
123205
|
+
CustomAttributes.prototype.isContentSuggestion = false;
|
|
123206
|
+
|
|
123207
|
+
/**
|
|
123208
|
+
* CustomAttributes isLifelineWidget.
|
|
123209
|
+
* @member {boolean} isLifelineWidget
|
|
123210
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123211
|
+
* @instance
|
|
123212
|
+
*/
|
|
123213
|
+
CustomAttributes.prototype.isLifelineWidget = false;
|
|
123214
|
+
|
|
123215
|
+
/**
|
|
123216
|
+
* CustomAttributes isEndOfConversation.
|
|
123217
|
+
* @member {boolean} isEndOfConversation
|
|
123218
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123219
|
+
* @instance
|
|
123220
|
+
*/
|
|
123221
|
+
CustomAttributes.prototype.isEndOfConversation = false;
|
|
123222
|
+
|
|
123223
|
+
/**
|
|
123224
|
+
* Creates a new CustomAttributes instance using the specified properties.
|
|
123225
|
+
* @function create
|
|
123226
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123227
|
+
* @static
|
|
123228
|
+
* @param {InteractiveJournalingMessage.ICustomAttributes=} [properties] Properties to set
|
|
123229
|
+
* @returns {InteractiveJournalingMessage.CustomAttributes} CustomAttributes instance
|
|
123230
|
+
*/
|
|
123231
|
+
CustomAttributes.create = function create(properties) {
|
|
123232
|
+
return new CustomAttributes(properties);
|
|
123233
|
+
};
|
|
123234
|
+
|
|
123235
|
+
/**
|
|
123236
|
+
* Encodes the specified CustomAttributes message. Does not implicitly {@link InteractiveJournalingMessage.CustomAttributes.verify|verify} messages.
|
|
123237
|
+
* @function encode
|
|
123238
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123239
|
+
* @static
|
|
123240
|
+
* @param {InteractiveJournalingMessage.ICustomAttributes} message CustomAttributes message or plain object to encode
|
|
123241
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123242
|
+
* @returns {$protobuf.Writer} Writer
|
|
123243
|
+
*/
|
|
123244
|
+
CustomAttributes.encode = function encode(message, writer) {
|
|
123245
|
+
if (!writer)
|
|
123246
|
+
writer = $Writer.create();
|
|
123247
|
+
if (message.disableTextInput != null && message.hasOwnProperty("disableTextInput"))
|
|
123248
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disableTextInput);
|
|
123249
|
+
if (message.isContentSuggestion != null && message.hasOwnProperty("isContentSuggestion"))
|
|
123250
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isContentSuggestion);
|
|
123251
|
+
if (message.isLifelineWidget != null && message.hasOwnProperty("isLifelineWidget"))
|
|
123252
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isLifelineWidget);
|
|
123253
|
+
if (message.isEndOfConversation != null && message.hasOwnProperty("isEndOfConversation"))
|
|
123254
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isEndOfConversation);
|
|
123255
|
+
return writer;
|
|
123256
|
+
};
|
|
123257
|
+
|
|
123258
|
+
/**
|
|
123259
|
+
* Encodes the specified CustomAttributes message, length delimited. Does not implicitly {@link InteractiveJournalingMessage.CustomAttributes.verify|verify} messages.
|
|
123260
|
+
* @function encodeDelimited
|
|
123261
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123262
|
+
* @static
|
|
123263
|
+
* @param {InteractiveJournalingMessage.ICustomAttributes} message CustomAttributes message or plain object to encode
|
|
123264
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123265
|
+
* @returns {$protobuf.Writer} Writer
|
|
123266
|
+
*/
|
|
123267
|
+
CustomAttributes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
123268
|
+
return this.encode(message, writer).ldelim();
|
|
123269
|
+
};
|
|
123270
|
+
|
|
123271
|
+
/**
|
|
123272
|
+
* Decodes a CustomAttributes message from the specified reader or buffer.
|
|
123273
|
+
* @function decode
|
|
123274
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123275
|
+
* @static
|
|
123276
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123277
|
+
* @param {number} [length] Message length if known beforehand
|
|
123278
|
+
* @returns {InteractiveJournalingMessage.CustomAttributes} CustomAttributes
|
|
123279
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123280
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123281
|
+
*/
|
|
123282
|
+
CustomAttributes.decode = function decode(reader, length) {
|
|
123283
|
+
if (!(reader instanceof $Reader))
|
|
123284
|
+
reader = $Reader.create(reader);
|
|
123285
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingMessage.CustomAttributes();
|
|
123286
|
+
while (reader.pos < end) {
|
|
123287
|
+
var tag = reader.uint32();
|
|
123288
|
+
switch (tag >>> 3) {
|
|
123289
|
+
case 1:
|
|
123290
|
+
message.disableTextInput = reader.bool();
|
|
123291
|
+
break;
|
|
123292
|
+
case 2:
|
|
123293
|
+
message.isContentSuggestion = reader.bool();
|
|
123294
|
+
break;
|
|
123295
|
+
case 3:
|
|
123296
|
+
message.isLifelineWidget = reader.bool();
|
|
123297
|
+
break;
|
|
123298
|
+
case 4:
|
|
123299
|
+
message.isEndOfConversation = reader.bool();
|
|
123300
|
+
break;
|
|
123301
|
+
default:
|
|
123302
|
+
reader.skipType(tag & 7);
|
|
123303
|
+
break;
|
|
123304
|
+
}
|
|
123305
|
+
}
|
|
123306
|
+
return message;
|
|
123307
|
+
};
|
|
123308
|
+
|
|
123309
|
+
/**
|
|
123310
|
+
* Decodes a CustomAttributes message from the specified reader or buffer, length delimited.
|
|
123311
|
+
* @function decodeDelimited
|
|
123312
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123313
|
+
* @static
|
|
123314
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123315
|
+
* @returns {InteractiveJournalingMessage.CustomAttributes} CustomAttributes
|
|
123316
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123317
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123318
|
+
*/
|
|
123319
|
+
CustomAttributes.decodeDelimited = function decodeDelimited(reader) {
|
|
123320
|
+
if (!(reader instanceof $Reader))
|
|
123321
|
+
reader = new $Reader(reader);
|
|
123322
|
+
return this.decode(reader, reader.uint32());
|
|
123323
|
+
};
|
|
123324
|
+
|
|
123325
|
+
/**
|
|
123326
|
+
* Verifies a CustomAttributes message.
|
|
123327
|
+
* @function verify
|
|
123328
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123329
|
+
* @static
|
|
123330
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
123331
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
123332
|
+
*/
|
|
123333
|
+
CustomAttributes.verify = function verify(message) {
|
|
123334
|
+
if (typeof message !== "object" || message === null)
|
|
123335
|
+
return "object expected";
|
|
123336
|
+
if (message.disableTextInput != null && message.hasOwnProperty("disableTextInput"))
|
|
123337
|
+
if (typeof message.disableTextInput !== "boolean")
|
|
123338
|
+
return "disableTextInput: boolean expected";
|
|
123339
|
+
if (message.isContentSuggestion != null && message.hasOwnProperty("isContentSuggestion"))
|
|
123340
|
+
if (typeof message.isContentSuggestion !== "boolean")
|
|
123341
|
+
return "isContentSuggestion: boolean expected";
|
|
123342
|
+
if (message.isLifelineWidget != null && message.hasOwnProperty("isLifelineWidget"))
|
|
123343
|
+
if (typeof message.isLifelineWidget !== "boolean")
|
|
123344
|
+
return "isLifelineWidget: boolean expected";
|
|
123345
|
+
if (message.isEndOfConversation != null && message.hasOwnProperty("isEndOfConversation"))
|
|
123346
|
+
if (typeof message.isEndOfConversation !== "boolean")
|
|
123347
|
+
return "isEndOfConversation: boolean expected";
|
|
123348
|
+
return null;
|
|
123349
|
+
};
|
|
123350
|
+
|
|
123351
|
+
/**
|
|
123352
|
+
* Creates a CustomAttributes message from a plain object. Also converts values to their respective internal types.
|
|
123353
|
+
* @function fromObject
|
|
123354
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123355
|
+
* @static
|
|
123356
|
+
* @param {Object.<string,*>} object Plain object
|
|
123357
|
+
* @returns {InteractiveJournalingMessage.CustomAttributes} CustomAttributes
|
|
123358
|
+
*/
|
|
123359
|
+
CustomAttributes.fromObject = function fromObject(object) {
|
|
123360
|
+
if (object instanceof $root.InteractiveJournalingMessage.CustomAttributes)
|
|
123361
|
+
return object;
|
|
123362
|
+
var message = new $root.InteractiveJournalingMessage.CustomAttributes();
|
|
123363
|
+
if (object.disableTextInput != null)
|
|
123364
|
+
message.disableTextInput = Boolean(object.disableTextInput);
|
|
123365
|
+
if (object.isContentSuggestion != null)
|
|
123366
|
+
message.isContentSuggestion = Boolean(object.isContentSuggestion);
|
|
123367
|
+
if (object.isLifelineWidget != null)
|
|
123368
|
+
message.isLifelineWidget = Boolean(object.isLifelineWidget);
|
|
123369
|
+
if (object.isEndOfConversation != null)
|
|
123370
|
+
message.isEndOfConversation = Boolean(object.isEndOfConversation);
|
|
123371
|
+
return message;
|
|
123372
|
+
};
|
|
123373
|
+
|
|
123374
|
+
/**
|
|
123375
|
+
* Creates a plain object from a CustomAttributes message. Also converts values to other types if specified.
|
|
123376
|
+
* @function toObject
|
|
123377
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123378
|
+
* @static
|
|
123379
|
+
* @param {InteractiveJournalingMessage.CustomAttributes} message CustomAttributes
|
|
123380
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
123381
|
+
* @returns {Object.<string,*>} Plain object
|
|
123382
|
+
*/
|
|
123383
|
+
CustomAttributes.toObject = function toObject(message, options) {
|
|
123384
|
+
if (!options)
|
|
123385
|
+
options = {};
|
|
123386
|
+
var object = {};
|
|
123387
|
+
if (options.defaults) {
|
|
123388
|
+
object.disableTextInput = false;
|
|
123389
|
+
object.isContentSuggestion = false;
|
|
123390
|
+
object.isLifelineWidget = false;
|
|
123391
|
+
object.isEndOfConversation = false;
|
|
123392
|
+
}
|
|
123393
|
+
if (message.disableTextInput != null && message.hasOwnProperty("disableTextInput"))
|
|
123394
|
+
object.disableTextInput = message.disableTextInput;
|
|
123395
|
+
if (message.isContentSuggestion != null && message.hasOwnProperty("isContentSuggestion"))
|
|
123396
|
+
object.isContentSuggestion = message.isContentSuggestion;
|
|
123397
|
+
if (message.isLifelineWidget != null && message.hasOwnProperty("isLifelineWidget"))
|
|
123398
|
+
object.isLifelineWidget = message.isLifelineWidget;
|
|
123399
|
+
if (message.isEndOfConversation != null && message.hasOwnProperty("isEndOfConversation"))
|
|
123400
|
+
object.isEndOfConversation = message.isEndOfConversation;
|
|
123401
|
+
return object;
|
|
123402
|
+
};
|
|
123403
|
+
|
|
123404
|
+
/**
|
|
123405
|
+
* Converts this CustomAttributes to JSON.
|
|
123406
|
+
* @function toJSON
|
|
123407
|
+
* @memberof InteractiveJournalingMessage.CustomAttributes
|
|
123408
|
+
* @instance
|
|
123409
|
+
* @returns {Object.<string,*>} JSON object
|
|
123410
|
+
*/
|
|
123411
|
+
CustomAttributes.prototype.toJSON = function toJSON() {
|
|
123412
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
123413
|
+
};
|
|
123414
|
+
|
|
123415
|
+
return CustomAttributes;
|
|
123416
|
+
})();
|
|
123417
|
+
|
|
123418
|
+
InteractiveJournalingMessage.ReplyButton = (function() {
|
|
123419
|
+
|
|
123420
|
+
/**
|
|
123421
|
+
* Properties of a ReplyButton.
|
|
123422
|
+
* @memberof InteractiveJournalingMessage
|
|
123423
|
+
* @interface IReplyButton
|
|
123424
|
+
* @property {string|null} [payload] ReplyButton payload
|
|
123425
|
+
* @property {string|null} [title] ReplyButton title
|
|
123426
|
+
*/
|
|
123427
|
+
|
|
123428
|
+
/**
|
|
123429
|
+
* Constructs a new ReplyButton.
|
|
123430
|
+
* @memberof InteractiveJournalingMessage
|
|
123431
|
+
* @classdesc Represents a ReplyButton.
|
|
123432
|
+
* @implements IReplyButton
|
|
123433
|
+
* @constructor
|
|
123434
|
+
* @param {InteractiveJournalingMessage.IReplyButton=} [properties] Properties to set
|
|
123435
|
+
*/
|
|
123436
|
+
function ReplyButton(properties) {
|
|
123437
|
+
if (properties)
|
|
123438
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
123439
|
+
if (properties[keys[i]] != null)
|
|
123440
|
+
this[keys[i]] = properties[keys[i]];
|
|
123441
|
+
}
|
|
123442
|
+
|
|
123443
|
+
/**
|
|
123444
|
+
* ReplyButton payload.
|
|
123445
|
+
* @member {string} payload
|
|
123446
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123447
|
+
* @instance
|
|
123448
|
+
*/
|
|
123449
|
+
ReplyButton.prototype.payload = "";
|
|
123450
|
+
|
|
123451
|
+
/**
|
|
123452
|
+
* ReplyButton title.
|
|
123453
|
+
* @member {string} title
|
|
123454
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123455
|
+
* @instance
|
|
123456
|
+
*/
|
|
123457
|
+
ReplyButton.prototype.title = "";
|
|
123458
|
+
|
|
123459
|
+
/**
|
|
123460
|
+
* Creates a new ReplyButton instance using the specified properties.
|
|
123461
|
+
* @function create
|
|
123462
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123463
|
+
* @static
|
|
123464
|
+
* @param {InteractiveJournalingMessage.IReplyButton=} [properties] Properties to set
|
|
123465
|
+
* @returns {InteractiveJournalingMessage.ReplyButton} ReplyButton instance
|
|
123466
|
+
*/
|
|
123467
|
+
ReplyButton.create = function create(properties) {
|
|
123468
|
+
return new ReplyButton(properties);
|
|
123469
|
+
};
|
|
123470
|
+
|
|
123471
|
+
/**
|
|
123472
|
+
* Encodes the specified ReplyButton message. Does not implicitly {@link InteractiveJournalingMessage.ReplyButton.verify|verify} messages.
|
|
123473
|
+
* @function encode
|
|
123474
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123475
|
+
* @static
|
|
123476
|
+
* @param {InteractiveJournalingMessage.IReplyButton} message ReplyButton message or plain object to encode
|
|
123477
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123478
|
+
* @returns {$protobuf.Writer} Writer
|
|
123479
|
+
*/
|
|
123480
|
+
ReplyButton.encode = function encode(message, writer) {
|
|
123481
|
+
if (!writer)
|
|
123482
|
+
writer = $Writer.create();
|
|
123483
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
123484
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.payload);
|
|
123485
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
123486
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
|
|
123487
|
+
return writer;
|
|
123488
|
+
};
|
|
123489
|
+
|
|
123490
|
+
/**
|
|
123491
|
+
* Encodes the specified ReplyButton message, length delimited. Does not implicitly {@link InteractiveJournalingMessage.ReplyButton.verify|verify} messages.
|
|
123492
|
+
* @function encodeDelimited
|
|
123493
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123494
|
+
* @static
|
|
123495
|
+
* @param {InteractiveJournalingMessage.IReplyButton} message ReplyButton message or plain object to encode
|
|
123496
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123497
|
+
* @returns {$protobuf.Writer} Writer
|
|
123498
|
+
*/
|
|
123499
|
+
ReplyButton.encodeDelimited = function encodeDelimited(message, writer) {
|
|
123500
|
+
return this.encode(message, writer).ldelim();
|
|
123501
|
+
};
|
|
123502
|
+
|
|
123503
|
+
/**
|
|
123504
|
+
* Decodes a ReplyButton message from the specified reader or buffer.
|
|
123505
|
+
* @function decode
|
|
123506
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123507
|
+
* @static
|
|
123508
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123509
|
+
* @param {number} [length] Message length if known beforehand
|
|
123510
|
+
* @returns {InteractiveJournalingMessage.ReplyButton} ReplyButton
|
|
123511
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123512
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123513
|
+
*/
|
|
123514
|
+
ReplyButton.decode = function decode(reader, length) {
|
|
123515
|
+
if (!(reader instanceof $Reader))
|
|
123516
|
+
reader = $Reader.create(reader);
|
|
123517
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.InteractiveJournalingMessage.ReplyButton();
|
|
123518
|
+
while (reader.pos < end) {
|
|
123519
|
+
var tag = reader.uint32();
|
|
123520
|
+
switch (tag >>> 3) {
|
|
123521
|
+
case 1:
|
|
123522
|
+
message.payload = reader.string();
|
|
123523
|
+
break;
|
|
123524
|
+
case 2:
|
|
123525
|
+
message.title = reader.string();
|
|
123526
|
+
break;
|
|
123527
|
+
default:
|
|
123528
|
+
reader.skipType(tag & 7);
|
|
123529
|
+
break;
|
|
123530
|
+
}
|
|
123531
|
+
}
|
|
123532
|
+
return message;
|
|
123533
|
+
};
|
|
123534
|
+
|
|
123535
|
+
/**
|
|
123536
|
+
* Decodes a ReplyButton message from the specified reader or buffer, length delimited.
|
|
123537
|
+
* @function decodeDelimited
|
|
123538
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123539
|
+
* @static
|
|
123540
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123541
|
+
* @returns {InteractiveJournalingMessage.ReplyButton} ReplyButton
|
|
123542
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123543
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123544
|
+
*/
|
|
123545
|
+
ReplyButton.decodeDelimited = function decodeDelimited(reader) {
|
|
123546
|
+
if (!(reader instanceof $Reader))
|
|
123547
|
+
reader = new $Reader(reader);
|
|
123548
|
+
return this.decode(reader, reader.uint32());
|
|
123549
|
+
};
|
|
123550
|
+
|
|
123551
|
+
/**
|
|
123552
|
+
* Verifies a ReplyButton message.
|
|
123553
|
+
* @function verify
|
|
123554
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123555
|
+
* @static
|
|
123556
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
123557
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
123558
|
+
*/
|
|
123559
|
+
ReplyButton.verify = function verify(message) {
|
|
123560
|
+
if (typeof message !== "object" || message === null)
|
|
123561
|
+
return "object expected";
|
|
123562
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
123563
|
+
if (!$util.isString(message.payload))
|
|
123564
|
+
return "payload: string expected";
|
|
123565
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
123566
|
+
if (!$util.isString(message.title))
|
|
123567
|
+
return "title: string expected";
|
|
123568
|
+
return null;
|
|
123569
|
+
};
|
|
123570
|
+
|
|
123571
|
+
/**
|
|
123572
|
+
* Creates a ReplyButton message from a plain object. Also converts values to their respective internal types.
|
|
123573
|
+
* @function fromObject
|
|
123574
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123575
|
+
* @static
|
|
123576
|
+
* @param {Object.<string,*>} object Plain object
|
|
123577
|
+
* @returns {InteractiveJournalingMessage.ReplyButton} ReplyButton
|
|
123578
|
+
*/
|
|
123579
|
+
ReplyButton.fromObject = function fromObject(object) {
|
|
123580
|
+
if (object instanceof $root.InteractiveJournalingMessage.ReplyButton)
|
|
123581
|
+
return object;
|
|
123582
|
+
var message = new $root.InteractiveJournalingMessage.ReplyButton();
|
|
123583
|
+
if (object.payload != null)
|
|
123584
|
+
message.payload = String(object.payload);
|
|
123585
|
+
if (object.title != null)
|
|
123586
|
+
message.title = String(object.title);
|
|
123587
|
+
return message;
|
|
123588
|
+
};
|
|
123589
|
+
|
|
123590
|
+
/**
|
|
123591
|
+
* Creates a plain object from a ReplyButton message. Also converts values to other types if specified.
|
|
123592
|
+
* @function toObject
|
|
123593
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123594
|
+
* @static
|
|
123595
|
+
* @param {InteractiveJournalingMessage.ReplyButton} message ReplyButton
|
|
123596
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
123597
|
+
* @returns {Object.<string,*>} Plain object
|
|
123598
|
+
*/
|
|
123599
|
+
ReplyButton.toObject = function toObject(message, options) {
|
|
123600
|
+
if (!options)
|
|
123601
|
+
options = {};
|
|
123602
|
+
var object = {};
|
|
123603
|
+
if (options.defaults) {
|
|
123604
|
+
object.payload = "";
|
|
123605
|
+
object.title = "";
|
|
123606
|
+
}
|
|
123607
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
123608
|
+
object.payload = message.payload;
|
|
123609
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
123610
|
+
object.title = message.title;
|
|
123611
|
+
return object;
|
|
123612
|
+
};
|
|
123613
|
+
|
|
123614
|
+
/**
|
|
123615
|
+
* Converts this ReplyButton to JSON.
|
|
123616
|
+
* @function toJSON
|
|
123617
|
+
* @memberof InteractiveJournalingMessage.ReplyButton
|
|
123618
|
+
* @instance
|
|
123619
|
+
* @returns {Object.<string,*>} JSON object
|
|
123620
|
+
*/
|
|
123621
|
+
ReplyButton.prototype.toJSON = function toJSON() {
|
|
123622
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
123623
|
+
};
|
|
123624
|
+
|
|
123625
|
+
return ReplyButton;
|
|
123626
|
+
})();
|
|
123627
|
+
|
|
123628
|
+
return InteractiveJournalingMessage;
|
|
123629
|
+
})();
|
|
123630
|
+
|
|
123631
|
+
$root.ConversationalChatMessageCreated = (function() {
|
|
123632
|
+
|
|
123633
|
+
/**
|
|
123634
|
+
* Properties of a ConversationalChatMessageCreated.
|
|
123635
|
+
* @name IConversationalChatMessageCreated
|
|
123636
|
+
* @interface IConversationalChatMessageCreated
|
|
123637
|
+
* @property {IInteractiveJournalingMessage|null} [newMessage] ConversationalChatMessageCreated newMessage
|
|
123638
|
+
* @property {number|Long|null} [timestamp] ConversationalChatMessageCreated timestamp
|
|
123639
|
+
*/
|
|
123640
|
+
|
|
123641
|
+
/**
|
|
123642
|
+
* Constructs a new ConversationalChatMessageCreated.
|
|
123643
|
+
* @name ConversationalChatMessageCreated
|
|
123644
|
+
* @classdesc Represents a ConversationalChatMessageCreated.
|
|
123645
|
+
* @implements IConversationalChatMessageCreated
|
|
123646
|
+
* @constructor
|
|
123647
|
+
* @param {IConversationalChatMessageCreated=} [properties] Properties to set
|
|
123648
|
+
*/
|
|
123649
|
+
function ConversationalChatMessageCreated(properties) {
|
|
123650
|
+
if (properties)
|
|
123651
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
123652
|
+
if (properties[keys[i]] != null)
|
|
123653
|
+
this[keys[i]] = properties[keys[i]];
|
|
123654
|
+
}
|
|
123655
|
+
|
|
123656
|
+
/**
|
|
123657
|
+
* ConversationalChatMessageCreated newMessage.
|
|
123658
|
+
* @member {IInteractiveJournalingMessage|null|undefined} newMessage
|
|
123659
|
+
* @memberof ConversationalChatMessageCreated
|
|
123660
|
+
* @instance
|
|
123661
|
+
*/
|
|
123662
|
+
ConversationalChatMessageCreated.prototype.newMessage = null;
|
|
123663
|
+
|
|
123664
|
+
/**
|
|
123665
|
+
* ConversationalChatMessageCreated timestamp.
|
|
123666
|
+
* @member {number|Long} timestamp
|
|
123667
|
+
* @memberof ConversationalChatMessageCreated
|
|
123668
|
+
* @instance
|
|
123669
|
+
*/
|
|
123670
|
+
ConversationalChatMessageCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
123671
|
+
|
|
123672
|
+
/**
|
|
123673
|
+
* Creates a new ConversationalChatMessageCreated instance using the specified properties.
|
|
123674
|
+
* @function create
|
|
123675
|
+
* @memberof ConversationalChatMessageCreated
|
|
123676
|
+
* @static
|
|
123677
|
+
* @param {IConversationalChatMessageCreated=} [properties] Properties to set
|
|
123678
|
+
* @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated instance
|
|
123679
|
+
*/
|
|
123680
|
+
ConversationalChatMessageCreated.create = function create(properties) {
|
|
123681
|
+
return new ConversationalChatMessageCreated(properties);
|
|
123682
|
+
};
|
|
123683
|
+
|
|
123684
|
+
/**
|
|
123685
|
+
* Encodes the specified ConversationalChatMessageCreated message. Does not implicitly {@link ConversationalChatMessageCreated.verify|verify} messages.
|
|
123686
|
+
* @function encode
|
|
123687
|
+
* @memberof ConversationalChatMessageCreated
|
|
123688
|
+
* @static
|
|
123689
|
+
* @param {IConversationalChatMessageCreated} message ConversationalChatMessageCreated message or plain object to encode
|
|
123690
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123691
|
+
* @returns {$protobuf.Writer} Writer
|
|
123692
|
+
*/
|
|
123693
|
+
ConversationalChatMessageCreated.encode = function encode(message, writer) {
|
|
123694
|
+
if (!writer)
|
|
123695
|
+
writer = $Writer.create();
|
|
123696
|
+
if (message.newMessage != null && message.hasOwnProperty("newMessage"))
|
|
123697
|
+
$root.InteractiveJournalingMessage.encode(message.newMessage, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
123698
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
123699
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
123700
|
+
return writer;
|
|
123701
|
+
};
|
|
123702
|
+
|
|
123703
|
+
/**
|
|
123704
|
+
* Encodes the specified ConversationalChatMessageCreated message, length delimited. Does not implicitly {@link ConversationalChatMessageCreated.verify|verify} messages.
|
|
123705
|
+
* @function encodeDelimited
|
|
123706
|
+
* @memberof ConversationalChatMessageCreated
|
|
123707
|
+
* @static
|
|
123708
|
+
* @param {IConversationalChatMessageCreated} message ConversationalChatMessageCreated message or plain object to encode
|
|
123709
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
123710
|
+
* @returns {$protobuf.Writer} Writer
|
|
123711
|
+
*/
|
|
123712
|
+
ConversationalChatMessageCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
123713
|
+
return this.encode(message, writer).ldelim();
|
|
123714
|
+
};
|
|
123715
|
+
|
|
123716
|
+
/**
|
|
123717
|
+
* Decodes a ConversationalChatMessageCreated message from the specified reader or buffer.
|
|
123718
|
+
* @function decode
|
|
123719
|
+
* @memberof ConversationalChatMessageCreated
|
|
123720
|
+
* @static
|
|
123721
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123722
|
+
* @param {number} [length] Message length if known beforehand
|
|
123723
|
+
* @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated
|
|
123724
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123725
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123726
|
+
*/
|
|
123727
|
+
ConversationalChatMessageCreated.decode = function decode(reader, length) {
|
|
123728
|
+
if (!(reader instanceof $Reader))
|
|
123729
|
+
reader = $Reader.create(reader);
|
|
123730
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ConversationalChatMessageCreated();
|
|
123731
|
+
while (reader.pos < end) {
|
|
123732
|
+
var tag = reader.uint32();
|
|
123733
|
+
switch (tag >>> 3) {
|
|
123734
|
+
case 1:
|
|
123735
|
+
message.newMessage = $root.InteractiveJournalingMessage.decode(reader, reader.uint32());
|
|
123736
|
+
break;
|
|
123737
|
+
case 2:
|
|
123738
|
+
message.timestamp = reader.uint64();
|
|
123739
|
+
break;
|
|
123740
|
+
default:
|
|
123741
|
+
reader.skipType(tag & 7);
|
|
123742
|
+
break;
|
|
123743
|
+
}
|
|
123744
|
+
}
|
|
123745
|
+
return message;
|
|
123746
|
+
};
|
|
123747
|
+
|
|
123748
|
+
/**
|
|
123749
|
+
* Decodes a ConversationalChatMessageCreated message from the specified reader or buffer, length delimited.
|
|
123750
|
+
* @function decodeDelimited
|
|
123751
|
+
* @memberof ConversationalChatMessageCreated
|
|
123752
|
+
* @static
|
|
123753
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
123754
|
+
* @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated
|
|
123755
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
123756
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
123757
|
+
*/
|
|
123758
|
+
ConversationalChatMessageCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
123759
|
+
if (!(reader instanceof $Reader))
|
|
123760
|
+
reader = new $Reader(reader);
|
|
123761
|
+
return this.decode(reader, reader.uint32());
|
|
123762
|
+
};
|
|
123763
|
+
|
|
123764
|
+
/**
|
|
123765
|
+
* Verifies a ConversationalChatMessageCreated message.
|
|
123766
|
+
* @function verify
|
|
123767
|
+
* @memberof ConversationalChatMessageCreated
|
|
123768
|
+
* @static
|
|
123769
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
123770
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
123771
|
+
*/
|
|
123772
|
+
ConversationalChatMessageCreated.verify = function verify(message) {
|
|
123773
|
+
if (typeof message !== "object" || message === null)
|
|
123774
|
+
return "object expected";
|
|
123775
|
+
if (message.newMessage != null && message.hasOwnProperty("newMessage")) {
|
|
123776
|
+
var error = $root.InteractiveJournalingMessage.verify(message.newMessage);
|
|
123777
|
+
if (error)
|
|
123778
|
+
return "newMessage." + error;
|
|
123779
|
+
}
|
|
123780
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
123781
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
123782
|
+
return "timestamp: integer|Long expected";
|
|
123783
|
+
return null;
|
|
123784
|
+
};
|
|
123785
|
+
|
|
123786
|
+
/**
|
|
123787
|
+
* Creates a ConversationalChatMessageCreated message from a plain object. Also converts values to their respective internal types.
|
|
123788
|
+
* @function fromObject
|
|
123789
|
+
* @memberof ConversationalChatMessageCreated
|
|
123790
|
+
* @static
|
|
123791
|
+
* @param {Object.<string,*>} object Plain object
|
|
123792
|
+
* @returns {ConversationalChatMessageCreated} ConversationalChatMessageCreated
|
|
123793
|
+
*/
|
|
123794
|
+
ConversationalChatMessageCreated.fromObject = function fromObject(object) {
|
|
123795
|
+
if (object instanceof $root.ConversationalChatMessageCreated)
|
|
123796
|
+
return object;
|
|
123797
|
+
var message = new $root.ConversationalChatMessageCreated();
|
|
123798
|
+
if (object.newMessage != null) {
|
|
123799
|
+
if (typeof object.newMessage !== "object")
|
|
123800
|
+
throw TypeError(".ConversationalChatMessageCreated.newMessage: object expected");
|
|
123801
|
+
message.newMessage = $root.InteractiveJournalingMessage.fromObject(object.newMessage);
|
|
123802
|
+
}
|
|
123803
|
+
if (object.timestamp != null)
|
|
123804
|
+
if ($util.Long)
|
|
123805
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
123806
|
+
else if (typeof object.timestamp === "string")
|
|
123807
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
123808
|
+
else if (typeof object.timestamp === "number")
|
|
123809
|
+
message.timestamp = object.timestamp;
|
|
123810
|
+
else if (typeof object.timestamp === "object")
|
|
123811
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
123812
|
+
return message;
|
|
123813
|
+
};
|
|
123814
|
+
|
|
123815
|
+
/**
|
|
123816
|
+
* Creates a plain object from a ConversationalChatMessageCreated message. Also converts values to other types if specified.
|
|
123817
|
+
* @function toObject
|
|
123818
|
+
* @memberof ConversationalChatMessageCreated
|
|
123819
|
+
* @static
|
|
123820
|
+
* @param {ConversationalChatMessageCreated} message ConversationalChatMessageCreated
|
|
123821
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
123822
|
+
* @returns {Object.<string,*>} Plain object
|
|
123823
|
+
*/
|
|
123824
|
+
ConversationalChatMessageCreated.toObject = function toObject(message, options) {
|
|
123825
|
+
if (!options)
|
|
123826
|
+
options = {};
|
|
123827
|
+
var object = {};
|
|
123828
|
+
if (options.defaults) {
|
|
123829
|
+
object.newMessage = null;
|
|
123830
|
+
if ($util.Long) {
|
|
123831
|
+
var long = new $util.Long(0, 0, true);
|
|
123832
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
123833
|
+
} else
|
|
123834
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
123835
|
+
}
|
|
123836
|
+
if (message.newMessage != null && message.hasOwnProperty("newMessage"))
|
|
123837
|
+
object.newMessage = $root.InteractiveJournalingMessage.toObject(message.newMessage, options);
|
|
123838
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
123839
|
+
if (typeof message.timestamp === "number")
|
|
123840
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
123841
|
+
else
|
|
123842
|
+
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;
|
|
123843
|
+
return object;
|
|
123844
|
+
};
|
|
123845
|
+
|
|
123846
|
+
/**
|
|
123847
|
+
* Converts this ConversationalChatMessageCreated to JSON.
|
|
123848
|
+
* @function toJSON
|
|
123849
|
+
* @memberof ConversationalChatMessageCreated
|
|
123850
|
+
* @instance
|
|
123851
|
+
* @returns {Object.<string,*>} JSON object
|
|
123852
|
+
*/
|
|
123853
|
+
ConversationalChatMessageCreated.prototype.toJSON = function toJSON() {
|
|
123854
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
123855
|
+
};
|
|
123856
|
+
|
|
123857
|
+
return ConversationalChatMessageCreated;
|
|
123858
|
+
})();
|
|
123859
|
+
|
|
122447
123860
|
$root.LayoutCreated = (function() {
|
|
122448
123861
|
|
|
122449
123862
|
/**
|