sanka-baileyss 2.3.2 → 2.3.3
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/WAProto/BotMetadata/BotMetadata.d.ts +594 -1
- package/WAProto/BotMetadata/BotMetadata.js +1910 -148
- package/WAProto/BotMetadata/BotMetadata.proto +36 -0
- package/WAProto/E2E/E2E.d.ts +570 -6
- package/WAProto/E2E/E2E.js +1591 -26
- package/WAProto/E2E/E2E.proto +10 -1
- package/WAProto/HistorySync/HistorySync.d.ts +806 -6
- package/WAProto/HistorySync/HistorySync.js +2193 -29
- package/WAProto/HistorySync/HistorySync.proto +2 -1
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +570 -6
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +1591 -26
- package/WAProto/StatusAttributions/StatusAttributions.d.ts +2 -1
- package/WAProto/StatusAttributions/StatusAttributions.js +7 -0
- package/WAProto/StatusAttributions/StatusAttributions.proto +1 -0
- package/WAProto/SyncAction/SyncAction.d.ts +230 -0
- package/WAProto/SyncAction/SyncAction.js +578 -2
- package/WAProto/SyncAction/SyncAction.proto +13 -1
- package/WAProto/Web/Web.d.ts +570 -6
- package/WAProto/Web/Web.js +1591 -26
- package/lib/Defaults/baileys-version.json +2 -2
- package/lib/Defaults/index.d.ts +42 -25
- package/lib/Defaults/index.js +6 -2
- package/lib/Signal/libsignal.d.ts +1 -0
- package/lib/Socket/Client/index.js +13 -9
- package/lib/Socket/Client/types.d.ts +11 -10
- package/lib/Socket/Client/types.js +11 -7
- package/lib/Socket/Client/websocket.d.ts +9 -8
- package/lib/Socket/Client/websocket.js +52 -47
- package/lib/Socket/business.d.ts +185 -182
- package/lib/Socket/business.js +258 -249
- package/lib/Socket/chats.d.ts +90 -87
- package/lib/Socket/chats.js +1095 -888
- package/lib/Socket/community.d.ts +131 -0
- package/lib/Socket/community.js +369 -0
- package/lib/Socket/groups.d.ts +50 -41
- package/lib/Socket/groups.js +10 -3
- package/lib/Socket/index.d.ts +5 -1
- package/lib/Socket/index.js +19 -5
- package/lib/Socket/messages-recv.d.ts +6 -2
- package/lib/Socket/messages-recv.js +31 -8
- package/lib/Socket/messages-send.d.ts +5 -1
- package/lib/Socket/messages-send.js +1293 -1351
- package/lib/Socket/newsletter.d.ts +142 -135
- package/lib/Socket/newsletter.js +274 -230
- package/lib/Socket/socket.d.ts +37 -35
- package/lib/Socket/usync.d.ts +31 -30
- package/lib/Socket/usync.js +74 -62
- package/lib/Types/Auth.d.ts +89 -72
- package/lib/Types/Auth.js +1 -0
- package/lib/Types/Call.d.ts +11 -10
- package/lib/Types/Call.js +1 -0
- package/lib/Types/Chat.d.ts +85 -62
- package/lib/Types/Chat.js +4 -1
- package/lib/Types/Contact.js +1 -0
- package/lib/Types/Events.d.ts +209 -191
- package/lib/Types/Events.js +1 -0
- package/lib/Types/GroupMetadata.d.ts +12 -27
- package/lib/Types/GroupMetadata.js +1 -0
- package/lib/Types/Label.d.ts +41 -39
- package/lib/Types/Label.js +24 -21
- package/lib/Types/LabelAssociation.d.ts +18 -12
- package/lib/Types/LabelAssociation.js +6 -3
- package/lib/Types/Message.d.ts +3 -2
- package/lib/Types/Message.js +7 -3
- package/lib/Types/MexUpdates.d.ts +9 -0
- package/lib/Types/MexUpdates.js +18 -0
- package/lib/Types/Newsletter.d.ts +84 -67
- package/lib/Types/Newsletter.js +30 -23
- package/lib/Types/Product.d.ts +70 -56
- package/lib/Types/Product.js +1 -0
- package/lib/Types/Signal.d.ts +46 -35
- package/lib/Types/Signal.js +1 -0
- package/lib/Types/Socket.d.ts +105 -101
- package/lib/Types/Socket.js +1 -0
- package/lib/Types/State.d.ts +37 -23
- package/lib/Types/State.js +13 -1
- package/lib/Types/USync.d.ts +21 -20
- package/lib/Types/USync.js +1 -0
- package/lib/Types/index.d.ts +51 -42
- package/lib/Types/index.js +25 -19
- package/lib/Utils/auth-utils.d.ts +14 -11
- package/lib/Utils/auth-utils.js +189 -182
- package/lib/Utils/baileys-event-stream.d.ts +12 -10
- package/lib/Utils/baileys-event-stream.js +52 -46
- package/lib/Utils/business.d.ts +15 -8
- package/lib/Utils/business.js +229 -217
- package/lib/Utils/chat-utils.d.ts +22 -12
- package/lib/Utils/chat-utils.js +57 -27
- package/lib/Utils/crypto.d.ts +31 -15
- package/lib/Utils/crypto.js +136 -107
- package/lib/Utils/decode-wa-message.d.ts +34 -245
- package/lib/Utils/decode-wa-message.js +205 -217
- package/lib/Utils/event-buffer.d.ts +30 -26
- package/lib/Utils/event-buffer.js +519 -515
- package/lib/Utils/history.d.ts +2 -8
- package/lib/Utils/index.js +13 -9
- package/lib/Utils/link-preview.d.ts +16 -14
- package/lib/Utils/link-preview.js +100 -92
- package/lib/Utils/logger.d.ts +9 -7
- package/lib/Utils/logger.js +1 -1
- package/lib/Utils/lt-hash.d.ts +10 -8
- package/lib/Utils/lt-hash.js +49 -44
- package/lib/Utils/make-mutex.d.ts +4 -2
- package/lib/Utils/make-mutex.js +43 -39
- package/lib/Utils/messages-media.d.ts +75 -50
- package/lib/Utils/messages.d.ts +60 -35
- package/lib/Utils/messages.js +87 -8
- package/lib/Utils/noise-handler.d.ts +13 -12
- package/lib/Utils/noise-handler.js +143 -138
- package/lib/Utils/process-message.d.ts +32 -24
- package/lib/Utils/process-message.js +387 -367
- package/lib/Utils/signal.d.ts +24 -15
- package/lib/Utils/signal.js +143 -131
- package/lib/Utils/use-mongo-file-auth-state.d.ts +3 -2
- package/lib/Utils/use-mongo-file-auth-state.js +72 -63
- package/lib/Utils/use-multi-file-auth-state.d.ts +9 -8
- package/lib/Utils/use-multi-file-auth-state.js +110 -102
- package/lib/Utils/use-single-file-auth-state.d.ts +8 -7
- package/lib/Utils/use-single-file-auth-state.js +66 -61
- package/lib/Utils/validate-connection.d.ts +5 -2
- package/lib/Utils/validate-connection.js +7 -6
- package/lib/WABinary/constants.d.ts +24 -21
- package/lib/WABinary/constants.js +1302 -31
- package/lib/WABinary/decode.d.ts +4 -1
- package/lib/WABinary/decode.js +267 -234
- package/lib/WABinary/encode.d.ts +1 -0
- package/lib/WABinary/encode.js +248 -226
- package/lib/WABinary/generic-utils.d.ts +13 -1
- package/lib/WABinary/generic-utils.js +113 -96
- package/lib/WABinary/index.js +13 -9
- package/lib/WABinary/jid-utils.d.ts +23 -4
- package/lib/WABinary/jid-utils.js +58 -39
- package/lib/WABinary/types.d.ts +15 -11
- package/lib/WABinary/types.js +1 -0
- package/lib/WAM/BinaryInfo.d.ts +14 -14
- package/lib/WAM/BinaryInfo.js +11 -8
- package/lib/WAM/constants.d.ts +34 -26
- package/lib/WAM/constants.js +15358 -15349
- package/lib/WAM/encode.d.ts +1 -0
- package/lib/WAM/encode.js +153 -144
- package/lib/WAM/index.js +13 -9
- package/lib/index.js +11 -11
- package/package.json +1 -2
- package/WASignalGroup/GroupProtocol.js +0 -1771
- package/WASignalGroup/ciphertext_message.js +0 -10
- package/WASignalGroup/group_cipher.js +0 -103
- package/WASignalGroup/group_session_builder.js +0 -39
- package/WASignalGroup/index.js +0 -5
- package/WASignalGroup/keyhelper.js +0 -17
- package/WASignalGroup/protobufs.js +0 -2
- package/WASignalGroup/queue_job.js +0 -64
- package/WASignalGroup/sender_chain_key.js +0 -38
- package/WASignalGroup/sender_key_distribution_message.js +0 -68
- package/WASignalGroup/sender_key_message.js +0 -79
- package/WASignalGroup/sender_key_name.js +0 -59
- package/WASignalGroup/sender_key_record.js +0 -47
- package/WASignalGroup/sender_key_state.js +0 -110
- package/WASignalGroup/sender_message_key.js +0 -30
|
@@ -1135,6 +1135,7 @@ $root.HistorySync = (function() {
|
|
|
1135
1135
|
* @property {number|null} [weight] StickerMetadata weight
|
|
1136
1136
|
* @property {number|Long|null} [lastStickerSentTs] StickerMetadata lastStickerSentTs
|
|
1137
1137
|
* @property {boolean|null} [isLottie] StickerMetadata isLottie
|
|
1138
|
+
* @property {string|null} [imageHash] StickerMetadata imageHash
|
|
1138
1139
|
* @property {boolean|null} [isAvatarSticker] StickerMetadata isAvatarSticker
|
|
1139
1140
|
*/
|
|
1140
1141
|
|
|
@@ -1249,6 +1250,14 @@ $root.HistorySync = (function() {
|
|
|
1249
1250
|
*/
|
|
1250
1251
|
StickerMetadata.prototype.isLottie = false;
|
|
1251
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* StickerMetadata imageHash.
|
|
1255
|
+
* @member {string} imageHash
|
|
1256
|
+
* @memberof HistorySync.StickerMetadata
|
|
1257
|
+
* @instance
|
|
1258
|
+
*/
|
|
1259
|
+
StickerMetadata.prototype.imageHash = "";
|
|
1260
|
+
|
|
1252
1261
|
/**
|
|
1253
1262
|
* StickerMetadata isAvatarSticker.
|
|
1254
1263
|
* @member {boolean} isAvatarSticker
|
|
@@ -1305,8 +1314,10 @@ $root.HistorySync = (function() {
|
|
|
1305
1314
|
writer.uint32(/* id 11, wireType 0 =*/88).int64(message.lastStickerSentTs);
|
|
1306
1315
|
if (message.isLottie != null && Object.hasOwnProperty.call(message, "isLottie"))
|
|
1307
1316
|
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.isLottie);
|
|
1317
|
+
if (message.imageHash != null && Object.hasOwnProperty.call(message, "imageHash"))
|
|
1318
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.imageHash);
|
|
1308
1319
|
if (message.isAvatarSticker != null && Object.hasOwnProperty.call(message, "isAvatarSticker"))
|
|
1309
|
-
writer.uint32(/* id
|
|
1320
|
+
writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isAvatarSticker);
|
|
1310
1321
|
return writer;
|
|
1311
1322
|
};
|
|
1312
1323
|
|
|
@@ -1392,6 +1403,10 @@ $root.HistorySync = (function() {
|
|
|
1392
1403
|
break;
|
|
1393
1404
|
}
|
|
1394
1405
|
case 13: {
|
|
1406
|
+
message.imageHash = reader.string();
|
|
1407
|
+
break;
|
|
1408
|
+
}
|
|
1409
|
+
case 14: {
|
|
1395
1410
|
message.isAvatarSticker = reader.bool();
|
|
1396
1411
|
break;
|
|
1397
1412
|
}
|
|
@@ -1466,6 +1481,9 @@ $root.HistorySync = (function() {
|
|
|
1466
1481
|
if (message.isLottie != null && message.hasOwnProperty("isLottie"))
|
|
1467
1482
|
if (typeof message.isLottie !== "boolean")
|
|
1468
1483
|
return "isLottie: boolean expected";
|
|
1484
|
+
if (message.imageHash != null && message.hasOwnProperty("imageHash"))
|
|
1485
|
+
if (!$util.isString(message.imageHash))
|
|
1486
|
+
return "imageHash: string expected";
|
|
1469
1487
|
if (message.isAvatarSticker != null && message.hasOwnProperty("isAvatarSticker"))
|
|
1470
1488
|
if (typeof message.isAvatarSticker !== "boolean")
|
|
1471
1489
|
return "isAvatarSticker: boolean expected";
|
|
@@ -1531,6 +1549,8 @@ $root.HistorySync = (function() {
|
|
|
1531
1549
|
message.lastStickerSentTs = new $util.LongBits(object.lastStickerSentTs.low >>> 0, object.lastStickerSentTs.high >>> 0).toNumber();
|
|
1532
1550
|
if (object.isLottie != null)
|
|
1533
1551
|
message.isLottie = Boolean(object.isLottie);
|
|
1552
|
+
if (object.imageHash != null)
|
|
1553
|
+
message.imageHash = String(object.imageHash);
|
|
1534
1554
|
if (object.isAvatarSticker != null)
|
|
1535
1555
|
message.isAvatarSticker = Boolean(object.isAvatarSticker);
|
|
1536
1556
|
return message;
|
|
@@ -1588,6 +1608,7 @@ $root.HistorySync = (function() {
|
|
|
1588
1608
|
} else
|
|
1589
1609
|
object.lastStickerSentTs = options.longs === String ? "0" : 0;
|
|
1590
1610
|
object.isLottie = false;
|
|
1611
|
+
object.imageHash = "";
|
|
1591
1612
|
object.isAvatarSticker = false;
|
|
1592
1613
|
}
|
|
1593
1614
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
@@ -1620,6 +1641,8 @@ $root.HistorySync = (function() {
|
|
|
1620
1641
|
object.lastStickerSentTs = options.longs === String ? $util.Long.prototype.toString.call(message.lastStickerSentTs) : options.longs === Number ? new $util.LongBits(message.lastStickerSentTs.low >>> 0, message.lastStickerSentTs.high >>> 0).toNumber() : message.lastStickerSentTs;
|
|
1621
1642
|
if (message.isLottie != null && message.hasOwnProperty("isLottie"))
|
|
1622
1643
|
object.isLottie = message.isLottie;
|
|
1644
|
+
if (message.imageHash != null && message.hasOwnProperty("imageHash"))
|
|
1645
|
+
object.imageHash = message.imageHash;
|
|
1623
1646
|
if (message.isAvatarSticker != null && message.hasOwnProperty("isAvatarSticker"))
|
|
1624
1647
|
object.isAvatarSticker = message.isAvatarSticker;
|
|
1625
1648
|
return object;
|
|
@@ -26457,6 +26480,7 @@ $root.E2E = (function() {
|
|
|
26457
26480
|
* @property {boolean|null} [wtwaAdFormat] ExternalAdReplyInfo wtwaAdFormat
|
|
26458
26481
|
* @property {E2E.ContextInfo.ExternalAdReplyInfo.AdType|null} [adType] ExternalAdReplyInfo adType
|
|
26459
26482
|
* @property {string|null} [wtwaWebsiteUrl] ExternalAdReplyInfo wtwaWebsiteUrl
|
|
26483
|
+
* @property {string|null} [adPreviewUrl] ExternalAdReplyInfo adPreviewUrl
|
|
26460
26484
|
*/
|
|
26461
26485
|
|
|
26462
26486
|
/**
|
|
@@ -26682,6 +26706,14 @@ $root.E2E = (function() {
|
|
|
26682
26706
|
*/
|
|
26683
26707
|
ExternalAdReplyInfo.prototype.wtwaWebsiteUrl = "";
|
|
26684
26708
|
|
|
26709
|
+
/**
|
|
26710
|
+
* ExternalAdReplyInfo adPreviewUrl.
|
|
26711
|
+
* @member {string} adPreviewUrl
|
|
26712
|
+
* @memberof E2E.ContextInfo.ExternalAdReplyInfo
|
|
26713
|
+
* @instance
|
|
26714
|
+
*/
|
|
26715
|
+
ExternalAdReplyInfo.prototype.adPreviewUrl = "";
|
|
26716
|
+
|
|
26685
26717
|
/**
|
|
26686
26718
|
* Creates a new ExternalAdReplyInfo instance using the specified properties.
|
|
26687
26719
|
* @function create
|
|
@@ -26758,6 +26790,8 @@ $root.E2E = (function() {
|
|
|
26758
26790
|
writer.uint32(/* id 25, wireType 0 =*/200).int32(message.adType);
|
|
26759
26791
|
if (message.wtwaWebsiteUrl != null && Object.hasOwnProperty.call(message, "wtwaWebsiteUrl"))
|
|
26760
26792
|
writer.uint32(/* id 26, wireType 2 =*/210).string(message.wtwaWebsiteUrl);
|
|
26793
|
+
if (message.adPreviewUrl != null && Object.hasOwnProperty.call(message, "adPreviewUrl"))
|
|
26794
|
+
writer.uint32(/* id 27, wireType 2 =*/218).string(message.adPreviewUrl);
|
|
26761
26795
|
return writer;
|
|
26762
26796
|
};
|
|
26763
26797
|
|
|
@@ -26898,6 +26932,10 @@ $root.E2E = (function() {
|
|
|
26898
26932
|
message.wtwaWebsiteUrl = reader.string();
|
|
26899
26933
|
break;
|
|
26900
26934
|
}
|
|
26935
|
+
case 27: {
|
|
26936
|
+
message.adPreviewUrl = reader.string();
|
|
26937
|
+
break;
|
|
26938
|
+
}
|
|
26901
26939
|
default:
|
|
26902
26940
|
reader.skipType(tag & 7);
|
|
26903
26941
|
break;
|
|
@@ -27022,6 +27060,9 @@ $root.E2E = (function() {
|
|
|
27022
27060
|
if (message.wtwaWebsiteUrl != null && message.hasOwnProperty("wtwaWebsiteUrl"))
|
|
27023
27061
|
if (!$util.isString(message.wtwaWebsiteUrl))
|
|
27024
27062
|
return "wtwaWebsiteUrl: string expected";
|
|
27063
|
+
if (message.adPreviewUrl != null && message.hasOwnProperty("adPreviewUrl"))
|
|
27064
|
+
if (!$util.isString(message.adPreviewUrl))
|
|
27065
|
+
return "adPreviewUrl: string expected";
|
|
27025
27066
|
return null;
|
|
27026
27067
|
};
|
|
27027
27068
|
|
|
@@ -27124,6 +27165,8 @@ $root.E2E = (function() {
|
|
|
27124
27165
|
}
|
|
27125
27166
|
if (object.wtwaWebsiteUrl != null)
|
|
27126
27167
|
message.wtwaWebsiteUrl = String(object.wtwaWebsiteUrl);
|
|
27168
|
+
if (object.adPreviewUrl != null)
|
|
27169
|
+
message.adPreviewUrl = String(object.adPreviewUrl);
|
|
27127
27170
|
return message;
|
|
27128
27171
|
};
|
|
27129
27172
|
|
|
@@ -27173,6 +27216,7 @@ $root.E2E = (function() {
|
|
|
27173
27216
|
object.wtwaAdFormat = false;
|
|
27174
27217
|
object.adType = options.enums === String ? "CTWA" : 0;
|
|
27175
27218
|
object.wtwaWebsiteUrl = "";
|
|
27219
|
+
object.adPreviewUrl = "";
|
|
27176
27220
|
}
|
|
27177
27221
|
if (message.title != null && message.hasOwnProperty("title"))
|
|
27178
27222
|
object.title = message.title;
|
|
@@ -27226,6 +27270,8 @@ $root.E2E = (function() {
|
|
|
27226
27270
|
object.adType = options.enums === String ? $root.E2E.ContextInfo.ExternalAdReplyInfo.AdType[message.adType] === undefined ? message.adType : $root.E2E.ContextInfo.ExternalAdReplyInfo.AdType[message.adType] : message.adType;
|
|
27227
27271
|
if (message.wtwaWebsiteUrl != null && message.hasOwnProperty("wtwaWebsiteUrl"))
|
|
27228
27272
|
object.wtwaWebsiteUrl = message.wtwaWebsiteUrl;
|
|
27273
|
+
if (message.adPreviewUrl != null && message.hasOwnProperty("adPreviewUrl"))
|
|
27274
|
+
object.adPreviewUrl = message.adPreviewUrl;
|
|
27229
27275
|
return object;
|
|
27230
27276
|
};
|
|
27231
27277
|
|
|
@@ -49947,6 +49993,7 @@ $root.E2E = (function() {
|
|
|
49947
49993
|
* @interface ICarouselMessage
|
|
49948
49994
|
* @property {Array.<E2E.Message.IInteractiveMessage>|null} [cards] CarouselMessage cards
|
|
49949
49995
|
* @property {number|null} [messageVersion] CarouselMessage messageVersion
|
|
49996
|
+
* @property {E2E.Message.InteractiveMessage.CarouselMessage.CarouselCardType|null} [carouselCardType] CarouselMessage carouselCardType
|
|
49950
49997
|
*/
|
|
49951
49998
|
|
|
49952
49999
|
/**
|
|
@@ -49981,6 +50028,14 @@ $root.E2E = (function() {
|
|
|
49981
50028
|
*/
|
|
49982
50029
|
CarouselMessage.prototype.messageVersion = 0;
|
|
49983
50030
|
|
|
50031
|
+
/**
|
|
50032
|
+
* CarouselMessage carouselCardType.
|
|
50033
|
+
* @member {E2E.Message.InteractiveMessage.CarouselMessage.CarouselCardType} carouselCardType
|
|
50034
|
+
* @memberof E2E.Message.InteractiveMessage.CarouselMessage
|
|
50035
|
+
* @instance
|
|
50036
|
+
*/
|
|
50037
|
+
CarouselMessage.prototype.carouselCardType = 0;
|
|
50038
|
+
|
|
49984
50039
|
/**
|
|
49985
50040
|
* Creates a new CarouselMessage instance using the specified properties.
|
|
49986
50041
|
* @function create
|
|
@@ -50010,6 +50065,8 @@ $root.E2E = (function() {
|
|
|
50010
50065
|
$root.E2E.Message.InteractiveMessage.encode(message.cards[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
50011
50066
|
if (message.messageVersion != null && Object.hasOwnProperty.call(message, "messageVersion"))
|
|
50012
50067
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.messageVersion);
|
|
50068
|
+
if (message.carouselCardType != null && Object.hasOwnProperty.call(message, "carouselCardType"))
|
|
50069
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.carouselCardType);
|
|
50013
50070
|
return writer;
|
|
50014
50071
|
};
|
|
50015
50072
|
|
|
@@ -50056,6 +50113,10 @@ $root.E2E = (function() {
|
|
|
50056
50113
|
message.messageVersion = reader.int32();
|
|
50057
50114
|
break;
|
|
50058
50115
|
}
|
|
50116
|
+
case 3: {
|
|
50117
|
+
message.carouselCardType = reader.int32();
|
|
50118
|
+
break;
|
|
50119
|
+
}
|
|
50059
50120
|
default:
|
|
50060
50121
|
reader.skipType(tag & 7);
|
|
50061
50122
|
break;
|
|
@@ -50103,6 +50164,14 @@ $root.E2E = (function() {
|
|
|
50103
50164
|
if (message.messageVersion != null && message.hasOwnProperty("messageVersion"))
|
|
50104
50165
|
if (!$util.isInteger(message.messageVersion))
|
|
50105
50166
|
return "messageVersion: integer expected";
|
|
50167
|
+
if (message.carouselCardType != null && message.hasOwnProperty("carouselCardType"))
|
|
50168
|
+
switch (message.carouselCardType) {
|
|
50169
|
+
default:
|
|
50170
|
+
return "carouselCardType: enum value expected";
|
|
50171
|
+
case 0:
|
|
50172
|
+
case 1:
|
|
50173
|
+
break;
|
|
50174
|
+
}
|
|
50106
50175
|
return null;
|
|
50107
50176
|
};
|
|
50108
50177
|
|
|
@@ -50130,6 +50199,22 @@ $root.E2E = (function() {
|
|
|
50130
50199
|
}
|
|
50131
50200
|
if (object.messageVersion != null)
|
|
50132
50201
|
message.messageVersion = object.messageVersion | 0;
|
|
50202
|
+
switch (object.carouselCardType) {
|
|
50203
|
+
default:
|
|
50204
|
+
if (typeof object.carouselCardType === "number") {
|
|
50205
|
+
message.carouselCardType = object.carouselCardType;
|
|
50206
|
+
break;
|
|
50207
|
+
}
|
|
50208
|
+
break;
|
|
50209
|
+
case "DEFAULT":
|
|
50210
|
+
case 0:
|
|
50211
|
+
message.carouselCardType = 0;
|
|
50212
|
+
break;
|
|
50213
|
+
case "ALBUM":
|
|
50214
|
+
case 1:
|
|
50215
|
+
message.carouselCardType = 1;
|
|
50216
|
+
break;
|
|
50217
|
+
}
|
|
50133
50218
|
return message;
|
|
50134
50219
|
};
|
|
50135
50220
|
|
|
@@ -50148,8 +50233,10 @@ $root.E2E = (function() {
|
|
|
50148
50233
|
var object = {};
|
|
50149
50234
|
if (options.arrays || options.defaults)
|
|
50150
50235
|
object.cards = [];
|
|
50151
|
-
if (options.defaults)
|
|
50236
|
+
if (options.defaults) {
|
|
50152
50237
|
object.messageVersion = 0;
|
|
50238
|
+
object.carouselCardType = options.enums === String ? "DEFAULT" : 0;
|
|
50239
|
+
}
|
|
50153
50240
|
if (message.cards && message.cards.length) {
|
|
50154
50241
|
object.cards = [];
|
|
50155
50242
|
for (var j = 0; j < message.cards.length; ++j)
|
|
@@ -50157,6 +50244,8 @@ $root.E2E = (function() {
|
|
|
50157
50244
|
}
|
|
50158
50245
|
if (message.messageVersion != null && message.hasOwnProperty("messageVersion"))
|
|
50159
50246
|
object.messageVersion = message.messageVersion;
|
|
50247
|
+
if (message.carouselCardType != null && message.hasOwnProperty("carouselCardType"))
|
|
50248
|
+
object.carouselCardType = options.enums === String ? $root.E2E.Message.InteractiveMessage.CarouselMessage.CarouselCardType[message.carouselCardType] === undefined ? message.carouselCardType : $root.E2E.Message.InteractiveMessage.CarouselMessage.CarouselCardType[message.carouselCardType] : message.carouselCardType;
|
|
50160
50249
|
return object;
|
|
50161
50250
|
};
|
|
50162
50251
|
|
|
@@ -50186,6 +50275,20 @@ $root.E2E = (function() {
|
|
|
50186
50275
|
return typeUrlPrefix + "/E2E.Message.InteractiveMessage.CarouselMessage";
|
|
50187
50276
|
};
|
|
50188
50277
|
|
|
50278
|
+
/**
|
|
50279
|
+
* CarouselCardType enum.
|
|
50280
|
+
* @name E2E.Message.InteractiveMessage.CarouselMessage.CarouselCardType
|
|
50281
|
+
* @enum {number}
|
|
50282
|
+
* @property {number} DEFAULT=0 DEFAULT value
|
|
50283
|
+
* @property {number} ALBUM=1 ALBUM value
|
|
50284
|
+
*/
|
|
50285
|
+
CarouselMessage.CarouselCardType = (function() {
|
|
50286
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
50287
|
+
values[valuesById[0] = "DEFAULT"] = 0;
|
|
50288
|
+
values[valuesById[1] = "ALBUM"] = 1;
|
|
50289
|
+
return values;
|
|
50290
|
+
})();
|
|
50291
|
+
|
|
50189
50292
|
return CarouselMessage;
|
|
50190
50293
|
})();
|
|
50191
50294
|
|
|
@@ -58144,7 +58247,7 @@ $root.E2E = (function() {
|
|
|
58144
58247
|
* @memberof E2E.Message
|
|
58145
58248
|
* @interface IMessageHistoryMetadata
|
|
58146
58249
|
* @property {Array.<string>|null} [historyReceivers] MessageHistoryMetadata historyReceivers
|
|
58147
|
-
* @property {number|Long|null} [
|
|
58250
|
+
* @property {number|Long|null} [oldestMessageTimestamp] MessageHistoryMetadata oldestMessageTimestamp
|
|
58148
58251
|
* @property {number|Long|null} [messageCount] MessageHistoryMetadata messageCount
|
|
58149
58252
|
*/
|
|
58150
58253
|
|
|
@@ -58173,12 +58276,12 @@ $root.E2E = (function() {
|
|
|
58173
58276
|
MessageHistoryMetadata.prototype.historyReceivers = $util.emptyArray;
|
|
58174
58277
|
|
|
58175
58278
|
/**
|
|
58176
|
-
* MessageHistoryMetadata
|
|
58177
|
-
* @member {number|Long}
|
|
58279
|
+
* MessageHistoryMetadata oldestMessageTimestamp.
|
|
58280
|
+
* @member {number|Long} oldestMessageTimestamp
|
|
58178
58281
|
* @memberof E2E.Message.MessageHistoryMetadata
|
|
58179
58282
|
* @instance
|
|
58180
58283
|
*/
|
|
58181
|
-
MessageHistoryMetadata.prototype.
|
|
58284
|
+
MessageHistoryMetadata.prototype.oldestMessageTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
58182
58285
|
|
|
58183
58286
|
/**
|
|
58184
58287
|
* MessageHistoryMetadata messageCount.
|
|
@@ -58215,8 +58318,8 @@ $root.E2E = (function() {
|
|
|
58215
58318
|
if (message.historyReceivers != null && message.historyReceivers.length)
|
|
58216
58319
|
for (var i = 0; i < message.historyReceivers.length; ++i)
|
|
58217
58320
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.historyReceivers[i]);
|
|
58218
|
-
if (message.
|
|
58219
|
-
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.
|
|
58321
|
+
if (message.oldestMessageTimestamp != null && Object.hasOwnProperty.call(message, "oldestMessageTimestamp"))
|
|
58322
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.oldestMessageTimestamp);
|
|
58220
58323
|
if (message.messageCount != null && Object.hasOwnProperty.call(message, "messageCount"))
|
|
58221
58324
|
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.messageCount);
|
|
58222
58325
|
return writer;
|
|
@@ -58262,7 +58365,7 @@ $root.E2E = (function() {
|
|
|
58262
58365
|
break;
|
|
58263
58366
|
}
|
|
58264
58367
|
case 2: {
|
|
58265
|
-
message.
|
|
58368
|
+
message.oldestMessageTimestamp = reader.int64();
|
|
58266
58369
|
break;
|
|
58267
58370
|
}
|
|
58268
58371
|
case 3: {
|
|
@@ -58311,9 +58414,9 @@ $root.E2E = (function() {
|
|
|
58311
58414
|
if (!$util.isString(message.historyReceivers[i]))
|
|
58312
58415
|
return "historyReceivers: string[] expected";
|
|
58313
58416
|
}
|
|
58314
|
-
if (message.
|
|
58315
|
-
if (!$util.isInteger(message.
|
|
58316
|
-
return "
|
|
58417
|
+
if (message.oldestMessageTimestamp != null && message.hasOwnProperty("oldestMessageTimestamp"))
|
|
58418
|
+
if (!$util.isInteger(message.oldestMessageTimestamp) && !(message.oldestMessageTimestamp && $util.isInteger(message.oldestMessageTimestamp.low) && $util.isInteger(message.oldestMessageTimestamp.high)))
|
|
58419
|
+
return "oldestMessageTimestamp: integer|Long expected";
|
|
58317
58420
|
if (message.messageCount != null && message.hasOwnProperty("messageCount"))
|
|
58318
58421
|
if (!$util.isInteger(message.messageCount) && !(message.messageCount && $util.isInteger(message.messageCount.low) && $util.isInteger(message.messageCount.high)))
|
|
58319
58422
|
return "messageCount: integer|Long expected";
|
|
@@ -58339,15 +58442,15 @@ $root.E2E = (function() {
|
|
|
58339
58442
|
for (var i = 0; i < object.historyReceivers.length; ++i)
|
|
58340
58443
|
message.historyReceivers[i] = String(object.historyReceivers[i]);
|
|
58341
58444
|
}
|
|
58342
|
-
if (object.
|
|
58445
|
+
if (object.oldestMessageTimestamp != null)
|
|
58343
58446
|
if ($util.Long)
|
|
58344
|
-
(message.
|
|
58345
|
-
else if (typeof object.
|
|
58346
|
-
message.
|
|
58347
|
-
else if (typeof object.
|
|
58348
|
-
message.
|
|
58349
|
-
else if (typeof object.
|
|
58350
|
-
message.
|
|
58447
|
+
(message.oldestMessageTimestamp = $util.Long.fromValue(object.oldestMessageTimestamp)).unsigned = false;
|
|
58448
|
+
else if (typeof object.oldestMessageTimestamp === "string")
|
|
58449
|
+
message.oldestMessageTimestamp = parseInt(object.oldestMessageTimestamp, 10);
|
|
58450
|
+
else if (typeof object.oldestMessageTimestamp === "number")
|
|
58451
|
+
message.oldestMessageTimestamp = object.oldestMessageTimestamp;
|
|
58452
|
+
else if (typeof object.oldestMessageTimestamp === "object")
|
|
58453
|
+
message.oldestMessageTimestamp = new $util.LongBits(object.oldestMessageTimestamp.low >>> 0, object.oldestMessageTimestamp.high >>> 0).toNumber();
|
|
58351
58454
|
if (object.messageCount != null)
|
|
58352
58455
|
if ($util.Long)
|
|
58353
58456
|
(message.messageCount = $util.Long.fromValue(object.messageCount)).unsigned = false;
|
|
@@ -58378,9 +58481,9 @@ $root.E2E = (function() {
|
|
|
58378
58481
|
if (options.defaults) {
|
|
58379
58482
|
if ($util.Long) {
|
|
58380
58483
|
var long = new $util.Long(0, 0, false);
|
|
58381
|
-
object.
|
|
58484
|
+
object.oldestMessageTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
58382
58485
|
} else
|
|
58383
|
-
object.
|
|
58486
|
+
object.oldestMessageTimestamp = options.longs === String ? "0" : 0;
|
|
58384
58487
|
if ($util.Long) {
|
|
58385
58488
|
var long = new $util.Long(0, 0, false);
|
|
58386
58489
|
object.messageCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -58392,11 +58495,11 @@ $root.E2E = (function() {
|
|
|
58392
58495
|
for (var j = 0; j < message.historyReceivers.length; ++j)
|
|
58393
58496
|
object.historyReceivers[j] = message.historyReceivers[j];
|
|
58394
58497
|
}
|
|
58395
|
-
if (message.
|
|
58396
|
-
if (typeof message.
|
|
58397
|
-
object.
|
|
58498
|
+
if (message.oldestMessageTimestamp != null && message.hasOwnProperty("oldestMessageTimestamp"))
|
|
58499
|
+
if (typeof message.oldestMessageTimestamp === "number")
|
|
58500
|
+
object.oldestMessageTimestamp = options.longs === String ? String(message.oldestMessageTimestamp) : message.oldestMessageTimestamp;
|
|
58398
58501
|
else
|
|
58399
|
-
object.
|
|
58502
|
+
object.oldestMessageTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.oldestMessageTimestamp) : options.longs === Number ? new $util.LongBits(message.oldestMessageTimestamp.low >>> 0, message.oldestMessageTimestamp.high >>> 0).toNumber() : message.oldestMessageTimestamp;
|
|
58400
58503
|
if (message.messageCount != null && message.hasOwnProperty("messageCount"))
|
|
58401
58504
|
if (typeof message.messageCount === "number")
|
|
58402
58505
|
object.messageCount = options.longs === String ? String(message.messageCount) : message.messageCount;
|
|
@@ -63591,6 +63694,8 @@ $root.E2E = (function() {
|
|
|
63591
63694
|
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
|
|
63592
63695
|
* @interface ICompanionCanonicalUserNonceFetchResponse
|
|
63593
63696
|
* @property {string|null} [nonce] CompanionCanonicalUserNonceFetchResponse nonce
|
|
63697
|
+
* @property {string|null} [waFbid] CompanionCanonicalUserNonceFetchResponse waFbid
|
|
63698
|
+
* @property {boolean|null} [forceRefresh] CompanionCanonicalUserNonceFetchResponse forceRefresh
|
|
63594
63699
|
*/
|
|
63595
63700
|
|
|
63596
63701
|
/**
|
|
@@ -63616,6 +63721,22 @@ $root.E2E = (function() {
|
|
|
63616
63721
|
*/
|
|
63617
63722
|
CompanionCanonicalUserNonceFetchResponse.prototype.nonce = "";
|
|
63618
63723
|
|
|
63724
|
+
/**
|
|
63725
|
+
* CompanionCanonicalUserNonceFetchResponse waFbid.
|
|
63726
|
+
* @member {string} waFbid
|
|
63727
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
|
63728
|
+
* @instance
|
|
63729
|
+
*/
|
|
63730
|
+
CompanionCanonicalUserNonceFetchResponse.prototype.waFbid = "";
|
|
63731
|
+
|
|
63732
|
+
/**
|
|
63733
|
+
* CompanionCanonicalUserNonceFetchResponse forceRefresh.
|
|
63734
|
+
* @member {boolean} forceRefresh
|
|
63735
|
+
* @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
|
|
63736
|
+
* @instance
|
|
63737
|
+
*/
|
|
63738
|
+
CompanionCanonicalUserNonceFetchResponse.prototype.forceRefresh = false;
|
|
63739
|
+
|
|
63619
63740
|
/**
|
|
63620
63741
|
* Creates a new CompanionCanonicalUserNonceFetchResponse instance using the specified properties.
|
|
63621
63742
|
* @function create
|
|
@@ -63642,6 +63763,10 @@ $root.E2E = (function() {
|
|
|
63642
63763
|
writer = $Writer.create();
|
|
63643
63764
|
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
63644
63765
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.nonce);
|
|
63766
|
+
if (message.waFbid != null && Object.hasOwnProperty.call(message, "waFbid"))
|
|
63767
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.waFbid);
|
|
63768
|
+
if (message.forceRefresh != null && Object.hasOwnProperty.call(message, "forceRefresh"))
|
|
63769
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.forceRefresh);
|
|
63645
63770
|
return writer;
|
|
63646
63771
|
};
|
|
63647
63772
|
|
|
@@ -63682,6 +63807,14 @@ $root.E2E = (function() {
|
|
|
63682
63807
|
message.nonce = reader.string();
|
|
63683
63808
|
break;
|
|
63684
63809
|
}
|
|
63810
|
+
case 2: {
|
|
63811
|
+
message.waFbid = reader.string();
|
|
63812
|
+
break;
|
|
63813
|
+
}
|
|
63814
|
+
case 3: {
|
|
63815
|
+
message.forceRefresh = reader.bool();
|
|
63816
|
+
break;
|
|
63817
|
+
}
|
|
63685
63818
|
default:
|
|
63686
63819
|
reader.skipType(tag & 7);
|
|
63687
63820
|
break;
|
|
@@ -63720,6 +63853,12 @@ $root.E2E = (function() {
|
|
|
63720
63853
|
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
63721
63854
|
if (!$util.isString(message.nonce))
|
|
63722
63855
|
return "nonce: string expected";
|
|
63856
|
+
if (message.waFbid != null && message.hasOwnProperty("waFbid"))
|
|
63857
|
+
if (!$util.isString(message.waFbid))
|
|
63858
|
+
return "waFbid: string expected";
|
|
63859
|
+
if (message.forceRefresh != null && message.hasOwnProperty("forceRefresh"))
|
|
63860
|
+
if (typeof message.forceRefresh !== "boolean")
|
|
63861
|
+
return "forceRefresh: boolean expected";
|
|
63723
63862
|
return null;
|
|
63724
63863
|
};
|
|
63725
63864
|
|
|
@@ -63737,6 +63876,10 @@ $root.E2E = (function() {
|
|
|
63737
63876
|
var message = new $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse();
|
|
63738
63877
|
if (object.nonce != null)
|
|
63739
63878
|
message.nonce = String(object.nonce);
|
|
63879
|
+
if (object.waFbid != null)
|
|
63880
|
+
message.waFbid = String(object.waFbid);
|
|
63881
|
+
if (object.forceRefresh != null)
|
|
63882
|
+
message.forceRefresh = Boolean(object.forceRefresh);
|
|
63740
63883
|
return message;
|
|
63741
63884
|
};
|
|
63742
63885
|
|
|
@@ -63753,10 +63896,17 @@ $root.E2E = (function() {
|
|
|
63753
63896
|
if (!options)
|
|
63754
63897
|
options = {};
|
|
63755
63898
|
var object = {};
|
|
63756
|
-
if (options.defaults)
|
|
63899
|
+
if (options.defaults) {
|
|
63757
63900
|
object.nonce = "";
|
|
63901
|
+
object.waFbid = "";
|
|
63902
|
+
object.forceRefresh = false;
|
|
63903
|
+
}
|
|
63758
63904
|
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
63759
63905
|
object.nonce = message.nonce;
|
|
63906
|
+
if (message.waFbid != null && message.hasOwnProperty("waFbid"))
|
|
63907
|
+
object.waFbid = message.waFbid;
|
|
63908
|
+
if (message.forceRefresh != null && message.hasOwnProperty("forceRefresh"))
|
|
63909
|
+
object.forceRefresh = message.forceRefresh;
|
|
63760
63910
|
return object;
|
|
63761
63911
|
};
|
|
63762
63912
|
|
|
@@ -73152,6 +73302,7 @@ $root.E2E = (function() {
|
|
|
73152
73302
|
* @property {E2E.IMessage|null} [noteMessage] SendPaymentMessage noteMessage
|
|
73153
73303
|
* @property {Protocol.IMessageKey|null} [requestMessageKey] SendPaymentMessage requestMessageKey
|
|
73154
73304
|
* @property {E2E.IPaymentBackground|null} [background] SendPaymentMessage background
|
|
73305
|
+
* @property {string|null} [transactionData] SendPaymentMessage transactionData
|
|
73155
73306
|
*/
|
|
73156
73307
|
|
|
73157
73308
|
/**
|
|
@@ -73193,6 +73344,14 @@ $root.E2E = (function() {
|
|
|
73193
73344
|
*/
|
|
73194
73345
|
SendPaymentMessage.prototype.background = null;
|
|
73195
73346
|
|
|
73347
|
+
/**
|
|
73348
|
+
* SendPaymentMessage transactionData.
|
|
73349
|
+
* @member {string} transactionData
|
|
73350
|
+
* @memberof E2E.Message.SendPaymentMessage
|
|
73351
|
+
* @instance
|
|
73352
|
+
*/
|
|
73353
|
+
SendPaymentMessage.prototype.transactionData = "";
|
|
73354
|
+
|
|
73196
73355
|
/**
|
|
73197
73356
|
* Creates a new SendPaymentMessage instance using the specified properties.
|
|
73198
73357
|
* @function create
|
|
@@ -73223,6 +73382,8 @@ $root.E2E = (function() {
|
|
|
73223
73382
|
$root.Protocol.MessageKey.encode(message.requestMessageKey, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
73224
73383
|
if (message.background != null && Object.hasOwnProperty.call(message, "background"))
|
|
73225
73384
|
$root.E2E.PaymentBackground.encode(message.background, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
73385
|
+
if (message.transactionData != null && Object.hasOwnProperty.call(message, "transactionData"))
|
|
73386
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.transactionData);
|
|
73226
73387
|
return writer;
|
|
73227
73388
|
};
|
|
73228
73389
|
|
|
@@ -73271,6 +73432,10 @@ $root.E2E = (function() {
|
|
|
73271
73432
|
message.background = $root.E2E.PaymentBackground.decode(reader, reader.uint32());
|
|
73272
73433
|
break;
|
|
73273
73434
|
}
|
|
73435
|
+
case 5: {
|
|
73436
|
+
message.transactionData = reader.string();
|
|
73437
|
+
break;
|
|
73438
|
+
}
|
|
73274
73439
|
default:
|
|
73275
73440
|
reader.skipType(tag & 7);
|
|
73276
73441
|
break;
|
|
@@ -73321,6 +73486,9 @@ $root.E2E = (function() {
|
|
|
73321
73486
|
if (error)
|
|
73322
73487
|
return "background." + error;
|
|
73323
73488
|
}
|
|
73489
|
+
if (message.transactionData != null && message.hasOwnProperty("transactionData"))
|
|
73490
|
+
if (!$util.isString(message.transactionData))
|
|
73491
|
+
return "transactionData: string expected";
|
|
73324
73492
|
return null;
|
|
73325
73493
|
};
|
|
73326
73494
|
|
|
@@ -73351,6 +73519,8 @@ $root.E2E = (function() {
|
|
|
73351
73519
|
throw TypeError(".E2E.Message.SendPaymentMessage.background: object expected");
|
|
73352
73520
|
message.background = $root.E2E.PaymentBackground.fromObject(object.background);
|
|
73353
73521
|
}
|
|
73522
|
+
if (object.transactionData != null)
|
|
73523
|
+
message.transactionData = String(object.transactionData);
|
|
73354
73524
|
return message;
|
|
73355
73525
|
};
|
|
73356
73526
|
|
|
@@ -73371,6 +73541,7 @@ $root.E2E = (function() {
|
|
|
73371
73541
|
object.noteMessage = null;
|
|
73372
73542
|
object.requestMessageKey = null;
|
|
73373
73543
|
object.background = null;
|
|
73544
|
+
object.transactionData = "";
|
|
73374
73545
|
}
|
|
73375
73546
|
if (message.noteMessage != null && message.hasOwnProperty("noteMessage"))
|
|
73376
73547
|
object.noteMessage = $root.E2E.Message.toObject(message.noteMessage, options);
|
|
@@ -73378,6 +73549,8 @@ $root.E2E = (function() {
|
|
|
73378
73549
|
object.requestMessageKey = $root.Protocol.MessageKey.toObject(message.requestMessageKey, options);
|
|
73379
73550
|
if (message.background != null && message.hasOwnProperty("background"))
|
|
73380
73551
|
object.background = $root.E2E.PaymentBackground.toObject(message.background, options);
|
|
73552
|
+
if (message.transactionData != null && message.hasOwnProperty("transactionData"))
|
|
73553
|
+
object.transactionData = message.transactionData;
|
|
73381
73554
|
return object;
|
|
73382
73555
|
};
|
|
73383
73556
|
|
|
@@ -82069,6 +82242,7 @@ $root.BotMetadata = (function() {
|
|
|
82069
82242
|
* @property {BotMetadata.IBotSignatureVerificationMetadata|null} [verificationMetadata] BotMetadata verificationMetadata
|
|
82070
82243
|
* @property {BotMetadata.IBotUnifiedResponseMutation|null} [unifiedResponseMutation] BotMetadata unifiedResponseMutation
|
|
82071
82244
|
* @property {BotMetadata.IBotMessageOriginMetadata|null} [botMessageOriginMetadata] BotMetadata botMessageOriginMetadata
|
|
82245
|
+
* @property {BotMetadata.IInThreadSurveyMetadata|null} [inThreadSurveyMetadata] BotMetadata inThreadSurveyMetadata
|
|
82072
82246
|
*/
|
|
82073
82247
|
|
|
82074
82248
|
/**
|
|
@@ -82318,6 +82492,14 @@ $root.BotMetadata = (function() {
|
|
|
82318
82492
|
*/
|
|
82319
82493
|
BotMetadata.prototype.botMessageOriginMetadata = null;
|
|
82320
82494
|
|
|
82495
|
+
/**
|
|
82496
|
+
* BotMetadata inThreadSurveyMetadata.
|
|
82497
|
+
* @member {BotMetadata.IInThreadSurveyMetadata|null|undefined} inThreadSurveyMetadata
|
|
82498
|
+
* @memberof BotMetadata.BotMetadata
|
|
82499
|
+
* @instance
|
|
82500
|
+
*/
|
|
82501
|
+
BotMetadata.prototype.inThreadSurveyMetadata = null;
|
|
82502
|
+
|
|
82321
82503
|
/**
|
|
82322
82504
|
* Creates a new BotMetadata instance using the specified properties.
|
|
82323
82505
|
* @function create
|
|
@@ -82400,6 +82582,8 @@ $root.BotMetadata = (function() {
|
|
|
82400
82582
|
$root.BotMetadata.BotUnifiedResponseMutation.encode(message.unifiedResponseMutation, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
|
|
82401
82583
|
if (message.botMessageOriginMetadata != null && Object.hasOwnProperty.call(message, "botMessageOriginMetadata"))
|
|
82402
82584
|
$root.BotMetadata.BotMessageOriginMetadata.encode(message.botMessageOriginMetadata, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
|
|
82585
|
+
if (message.inThreadSurveyMetadata != null && Object.hasOwnProperty.call(message, "inThreadSurveyMetadata"))
|
|
82586
|
+
$root.BotMetadata.InThreadSurveyMetadata.encode(message.inThreadSurveyMetadata, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
|
|
82403
82587
|
return writer;
|
|
82404
82588
|
};
|
|
82405
82589
|
|
|
@@ -82552,6 +82736,10 @@ $root.BotMetadata = (function() {
|
|
|
82552
82736
|
message.botMessageOriginMetadata = $root.BotMetadata.BotMessageOriginMetadata.decode(reader, reader.uint32());
|
|
82553
82737
|
break;
|
|
82554
82738
|
}
|
|
82739
|
+
case 30: {
|
|
82740
|
+
message.inThreadSurveyMetadata = $root.BotMetadata.InThreadSurveyMetadata.decode(reader, reader.uint32());
|
|
82741
|
+
break;
|
|
82742
|
+
}
|
|
82555
82743
|
default:
|
|
82556
82744
|
reader.skipType(tag & 7);
|
|
82557
82745
|
break;
|
|
@@ -82718,6 +82906,11 @@ $root.BotMetadata = (function() {
|
|
|
82718
82906
|
if (error)
|
|
82719
82907
|
return "botMessageOriginMetadata." + error;
|
|
82720
82908
|
}
|
|
82909
|
+
if (message.inThreadSurveyMetadata != null && message.hasOwnProperty("inThreadSurveyMetadata")) {
|
|
82910
|
+
var error = $root.BotMetadata.InThreadSurveyMetadata.verify(message.inThreadSurveyMetadata);
|
|
82911
|
+
if (error)
|
|
82912
|
+
return "inThreadSurveyMetadata." + error;
|
|
82913
|
+
}
|
|
82721
82914
|
return null;
|
|
82722
82915
|
};
|
|
82723
82916
|
|
|
@@ -82860,6 +83053,11 @@ $root.BotMetadata = (function() {
|
|
|
82860
83053
|
throw TypeError(".BotMetadata.BotMetadata.botMessageOriginMetadata: object expected");
|
|
82861
83054
|
message.botMessageOriginMetadata = $root.BotMetadata.BotMessageOriginMetadata.fromObject(object.botMessageOriginMetadata);
|
|
82862
83055
|
}
|
|
83056
|
+
if (object.inThreadSurveyMetadata != null) {
|
|
83057
|
+
if (typeof object.inThreadSurveyMetadata !== "object")
|
|
83058
|
+
throw TypeError(".BotMetadata.BotMetadata.inThreadSurveyMetadata: object expected");
|
|
83059
|
+
message.inThreadSurveyMetadata = $root.BotMetadata.InThreadSurveyMetadata.fromObject(object.inThreadSurveyMetadata);
|
|
83060
|
+
}
|
|
82863
83061
|
return message;
|
|
82864
83062
|
};
|
|
82865
83063
|
|
|
@@ -82912,6 +83110,7 @@ $root.BotMetadata = (function() {
|
|
|
82912
83110
|
object.verificationMetadata = null;
|
|
82913
83111
|
object.unifiedResponseMutation = null;
|
|
82914
83112
|
object.botMessageOriginMetadata = null;
|
|
83113
|
+
object.inThreadSurveyMetadata = null;
|
|
82915
83114
|
}
|
|
82916
83115
|
if (message.avatarMetadata != null && message.hasOwnProperty("avatarMetadata"))
|
|
82917
83116
|
object.avatarMetadata = $root.BotMetadata.BotAvatarMetadata.toObject(message.avatarMetadata, options);
|
|
@@ -82971,6 +83170,8 @@ $root.BotMetadata = (function() {
|
|
|
82971
83170
|
object.unifiedResponseMutation = $root.BotMetadata.BotUnifiedResponseMutation.toObject(message.unifiedResponseMutation, options);
|
|
82972
83171
|
if (message.botMessageOriginMetadata != null && message.hasOwnProperty("botMessageOriginMetadata"))
|
|
82973
83172
|
object.botMessageOriginMetadata = $root.BotMetadata.BotMessageOriginMetadata.toObject(message.botMessageOriginMetadata, options);
|
|
83173
|
+
if (message.inThreadSurveyMetadata != null && message.hasOwnProperty("inThreadSurveyMetadata"))
|
|
83174
|
+
object.inThreadSurveyMetadata = $root.BotMetadata.InThreadSurveyMetadata.toObject(message.inThreadSurveyMetadata, options);
|
|
82974
83175
|
return object;
|
|
82975
83176
|
};
|
|
82976
83177
|
|
|
@@ -83875,6 +84076,1379 @@ $root.BotMetadata = (function() {
|
|
|
83875
84076
|
return BotMessageOriginMetadata;
|
|
83876
84077
|
})();
|
|
83877
84078
|
|
|
84079
|
+
BotMetadata.InThreadSurveyMetadata = (function() {
|
|
84080
|
+
|
|
84081
|
+
/**
|
|
84082
|
+
* Properties of an InThreadSurveyMetadata.
|
|
84083
|
+
* @memberof BotMetadata
|
|
84084
|
+
* @interface IInThreadSurveyMetadata
|
|
84085
|
+
* @property {string|null} [tessaSessionId] InThreadSurveyMetadata tessaSessionId
|
|
84086
|
+
* @property {string|null} [simonSessionId] InThreadSurveyMetadata simonSessionId
|
|
84087
|
+
* @property {string|null} [simonSurveyId] InThreadSurveyMetadata simonSurveyId
|
|
84088
|
+
* @property {string|null} [tessaRootId] InThreadSurveyMetadata tessaRootId
|
|
84089
|
+
* @property {string|null} [requestId] InThreadSurveyMetadata requestId
|
|
84090
|
+
* @property {string|null} [tessaEvent] InThreadSurveyMetadata tessaEvent
|
|
84091
|
+
* @property {string|null} [invitationHeaderText] InThreadSurveyMetadata invitationHeaderText
|
|
84092
|
+
* @property {string|null} [invitationBodyText] InThreadSurveyMetadata invitationBodyText
|
|
84093
|
+
* @property {string|null} [invitationCtaText] InThreadSurveyMetadata invitationCtaText
|
|
84094
|
+
* @property {string|null} [invitationCtaUrl] InThreadSurveyMetadata invitationCtaUrl
|
|
84095
|
+
* @property {string|null} [surveyTitle] InThreadSurveyMetadata surveyTitle
|
|
84096
|
+
* @property {Array.<BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion>|null} [questions] InThreadSurveyMetadata questions
|
|
84097
|
+
* @property {string|null} [surveyContinueButtonText] InThreadSurveyMetadata surveyContinueButtonText
|
|
84098
|
+
* @property {string|null} [surveySubmitButtonText] InThreadSurveyMetadata surveySubmitButtonText
|
|
84099
|
+
* @property {string|null} [privacyStatementFull] InThreadSurveyMetadata privacyStatementFull
|
|
84100
|
+
* @property {Array.<BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart>|null} [privacyStatementParts] InThreadSurveyMetadata privacyStatementParts
|
|
84101
|
+
* @property {string|null} [feedbackToastText] InThreadSurveyMetadata feedbackToastText
|
|
84102
|
+
*/
|
|
84103
|
+
|
|
84104
|
+
/**
|
|
84105
|
+
* Constructs a new InThreadSurveyMetadata.
|
|
84106
|
+
* @memberof BotMetadata
|
|
84107
|
+
* @classdesc Represents an InThreadSurveyMetadata.
|
|
84108
|
+
* @implements IInThreadSurveyMetadata
|
|
84109
|
+
* @constructor
|
|
84110
|
+
* @param {BotMetadata.IInThreadSurveyMetadata=} [properties] Properties to set
|
|
84111
|
+
*/
|
|
84112
|
+
function InThreadSurveyMetadata(properties) {
|
|
84113
|
+
this.questions = [];
|
|
84114
|
+
this.privacyStatementParts = [];
|
|
84115
|
+
if (properties)
|
|
84116
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
84117
|
+
if (properties[keys[i]] != null)
|
|
84118
|
+
this[keys[i]] = properties[keys[i]];
|
|
84119
|
+
}
|
|
84120
|
+
|
|
84121
|
+
/**
|
|
84122
|
+
* InThreadSurveyMetadata tessaSessionId.
|
|
84123
|
+
* @member {string} tessaSessionId
|
|
84124
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84125
|
+
* @instance
|
|
84126
|
+
*/
|
|
84127
|
+
InThreadSurveyMetadata.prototype.tessaSessionId = "";
|
|
84128
|
+
|
|
84129
|
+
/**
|
|
84130
|
+
* InThreadSurveyMetadata simonSessionId.
|
|
84131
|
+
* @member {string} simonSessionId
|
|
84132
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84133
|
+
* @instance
|
|
84134
|
+
*/
|
|
84135
|
+
InThreadSurveyMetadata.prototype.simonSessionId = "";
|
|
84136
|
+
|
|
84137
|
+
/**
|
|
84138
|
+
* InThreadSurveyMetadata simonSurveyId.
|
|
84139
|
+
* @member {string} simonSurveyId
|
|
84140
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84141
|
+
* @instance
|
|
84142
|
+
*/
|
|
84143
|
+
InThreadSurveyMetadata.prototype.simonSurveyId = "";
|
|
84144
|
+
|
|
84145
|
+
/**
|
|
84146
|
+
* InThreadSurveyMetadata tessaRootId.
|
|
84147
|
+
* @member {string} tessaRootId
|
|
84148
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84149
|
+
* @instance
|
|
84150
|
+
*/
|
|
84151
|
+
InThreadSurveyMetadata.prototype.tessaRootId = "";
|
|
84152
|
+
|
|
84153
|
+
/**
|
|
84154
|
+
* InThreadSurveyMetadata requestId.
|
|
84155
|
+
* @member {string} requestId
|
|
84156
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84157
|
+
* @instance
|
|
84158
|
+
*/
|
|
84159
|
+
InThreadSurveyMetadata.prototype.requestId = "";
|
|
84160
|
+
|
|
84161
|
+
/**
|
|
84162
|
+
* InThreadSurveyMetadata tessaEvent.
|
|
84163
|
+
* @member {string} tessaEvent
|
|
84164
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84165
|
+
* @instance
|
|
84166
|
+
*/
|
|
84167
|
+
InThreadSurveyMetadata.prototype.tessaEvent = "";
|
|
84168
|
+
|
|
84169
|
+
/**
|
|
84170
|
+
* InThreadSurveyMetadata invitationHeaderText.
|
|
84171
|
+
* @member {string} invitationHeaderText
|
|
84172
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84173
|
+
* @instance
|
|
84174
|
+
*/
|
|
84175
|
+
InThreadSurveyMetadata.prototype.invitationHeaderText = "";
|
|
84176
|
+
|
|
84177
|
+
/**
|
|
84178
|
+
* InThreadSurveyMetadata invitationBodyText.
|
|
84179
|
+
* @member {string} invitationBodyText
|
|
84180
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84181
|
+
* @instance
|
|
84182
|
+
*/
|
|
84183
|
+
InThreadSurveyMetadata.prototype.invitationBodyText = "";
|
|
84184
|
+
|
|
84185
|
+
/**
|
|
84186
|
+
* InThreadSurveyMetadata invitationCtaText.
|
|
84187
|
+
* @member {string} invitationCtaText
|
|
84188
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84189
|
+
* @instance
|
|
84190
|
+
*/
|
|
84191
|
+
InThreadSurveyMetadata.prototype.invitationCtaText = "";
|
|
84192
|
+
|
|
84193
|
+
/**
|
|
84194
|
+
* InThreadSurveyMetadata invitationCtaUrl.
|
|
84195
|
+
* @member {string} invitationCtaUrl
|
|
84196
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84197
|
+
* @instance
|
|
84198
|
+
*/
|
|
84199
|
+
InThreadSurveyMetadata.prototype.invitationCtaUrl = "";
|
|
84200
|
+
|
|
84201
|
+
/**
|
|
84202
|
+
* InThreadSurveyMetadata surveyTitle.
|
|
84203
|
+
* @member {string} surveyTitle
|
|
84204
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84205
|
+
* @instance
|
|
84206
|
+
*/
|
|
84207
|
+
InThreadSurveyMetadata.prototype.surveyTitle = "";
|
|
84208
|
+
|
|
84209
|
+
/**
|
|
84210
|
+
* InThreadSurveyMetadata questions.
|
|
84211
|
+
* @member {Array.<BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion>} questions
|
|
84212
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84213
|
+
* @instance
|
|
84214
|
+
*/
|
|
84215
|
+
InThreadSurveyMetadata.prototype.questions = $util.emptyArray;
|
|
84216
|
+
|
|
84217
|
+
/**
|
|
84218
|
+
* InThreadSurveyMetadata surveyContinueButtonText.
|
|
84219
|
+
* @member {string} surveyContinueButtonText
|
|
84220
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84221
|
+
* @instance
|
|
84222
|
+
*/
|
|
84223
|
+
InThreadSurveyMetadata.prototype.surveyContinueButtonText = "";
|
|
84224
|
+
|
|
84225
|
+
/**
|
|
84226
|
+
* InThreadSurveyMetadata surveySubmitButtonText.
|
|
84227
|
+
* @member {string} surveySubmitButtonText
|
|
84228
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84229
|
+
* @instance
|
|
84230
|
+
*/
|
|
84231
|
+
InThreadSurveyMetadata.prototype.surveySubmitButtonText = "";
|
|
84232
|
+
|
|
84233
|
+
/**
|
|
84234
|
+
* InThreadSurveyMetadata privacyStatementFull.
|
|
84235
|
+
* @member {string} privacyStatementFull
|
|
84236
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84237
|
+
* @instance
|
|
84238
|
+
*/
|
|
84239
|
+
InThreadSurveyMetadata.prototype.privacyStatementFull = "";
|
|
84240
|
+
|
|
84241
|
+
/**
|
|
84242
|
+
* InThreadSurveyMetadata privacyStatementParts.
|
|
84243
|
+
* @member {Array.<BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart>} privacyStatementParts
|
|
84244
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84245
|
+
* @instance
|
|
84246
|
+
*/
|
|
84247
|
+
InThreadSurveyMetadata.prototype.privacyStatementParts = $util.emptyArray;
|
|
84248
|
+
|
|
84249
|
+
/**
|
|
84250
|
+
* InThreadSurveyMetadata feedbackToastText.
|
|
84251
|
+
* @member {string} feedbackToastText
|
|
84252
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84253
|
+
* @instance
|
|
84254
|
+
*/
|
|
84255
|
+
InThreadSurveyMetadata.prototype.feedbackToastText = "";
|
|
84256
|
+
|
|
84257
|
+
/**
|
|
84258
|
+
* Creates a new InThreadSurveyMetadata instance using the specified properties.
|
|
84259
|
+
* @function create
|
|
84260
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84261
|
+
* @static
|
|
84262
|
+
* @param {BotMetadata.IInThreadSurveyMetadata=} [properties] Properties to set
|
|
84263
|
+
* @returns {BotMetadata.InThreadSurveyMetadata} InThreadSurveyMetadata instance
|
|
84264
|
+
*/
|
|
84265
|
+
InThreadSurveyMetadata.create = function create(properties) {
|
|
84266
|
+
return new InThreadSurveyMetadata(properties);
|
|
84267
|
+
};
|
|
84268
|
+
|
|
84269
|
+
/**
|
|
84270
|
+
* Encodes the specified InThreadSurveyMetadata message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages.
|
|
84271
|
+
* @function encode
|
|
84272
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84273
|
+
* @static
|
|
84274
|
+
* @param {BotMetadata.IInThreadSurveyMetadata} message InThreadSurveyMetadata message or plain object to encode
|
|
84275
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
84276
|
+
* @returns {$protobuf.Writer} Writer
|
|
84277
|
+
*/
|
|
84278
|
+
InThreadSurveyMetadata.encode = function encode(message, writer) {
|
|
84279
|
+
if (!writer)
|
|
84280
|
+
writer = $Writer.create();
|
|
84281
|
+
if (message.tessaSessionId != null && Object.hasOwnProperty.call(message, "tessaSessionId"))
|
|
84282
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.tessaSessionId);
|
|
84283
|
+
if (message.simonSessionId != null && Object.hasOwnProperty.call(message, "simonSessionId"))
|
|
84284
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.simonSessionId);
|
|
84285
|
+
if (message.simonSurveyId != null && Object.hasOwnProperty.call(message, "simonSurveyId"))
|
|
84286
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.simonSurveyId);
|
|
84287
|
+
if (message.tessaRootId != null && Object.hasOwnProperty.call(message, "tessaRootId"))
|
|
84288
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.tessaRootId);
|
|
84289
|
+
if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
|
|
84290
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.requestId);
|
|
84291
|
+
if (message.tessaEvent != null && Object.hasOwnProperty.call(message, "tessaEvent"))
|
|
84292
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.tessaEvent);
|
|
84293
|
+
if (message.invitationHeaderText != null && Object.hasOwnProperty.call(message, "invitationHeaderText"))
|
|
84294
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.invitationHeaderText);
|
|
84295
|
+
if (message.invitationBodyText != null && Object.hasOwnProperty.call(message, "invitationBodyText"))
|
|
84296
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.invitationBodyText);
|
|
84297
|
+
if (message.invitationCtaText != null && Object.hasOwnProperty.call(message, "invitationCtaText"))
|
|
84298
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.invitationCtaText);
|
|
84299
|
+
if (message.invitationCtaUrl != null && Object.hasOwnProperty.call(message, "invitationCtaUrl"))
|
|
84300
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.invitationCtaUrl);
|
|
84301
|
+
if (message.surveyTitle != null && Object.hasOwnProperty.call(message, "surveyTitle"))
|
|
84302
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.surveyTitle);
|
|
84303
|
+
if (message.questions != null && message.questions.length)
|
|
84304
|
+
for (var i = 0; i < message.questions.length; ++i)
|
|
84305
|
+
$root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.encode(message.questions[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
84306
|
+
if (message.surveyContinueButtonText != null && Object.hasOwnProperty.call(message, "surveyContinueButtonText"))
|
|
84307
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.surveyContinueButtonText);
|
|
84308
|
+
if (message.surveySubmitButtonText != null && Object.hasOwnProperty.call(message, "surveySubmitButtonText"))
|
|
84309
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.surveySubmitButtonText);
|
|
84310
|
+
if (message.privacyStatementFull != null && Object.hasOwnProperty.call(message, "privacyStatementFull"))
|
|
84311
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.privacyStatementFull);
|
|
84312
|
+
if (message.privacyStatementParts != null && message.privacyStatementParts.length)
|
|
84313
|
+
for (var i = 0; i < message.privacyStatementParts.length; ++i)
|
|
84314
|
+
$root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.encode(message.privacyStatementParts[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
84315
|
+
if (message.feedbackToastText != null && Object.hasOwnProperty.call(message, "feedbackToastText"))
|
|
84316
|
+
writer.uint32(/* id 17, wireType 2 =*/138).string(message.feedbackToastText);
|
|
84317
|
+
return writer;
|
|
84318
|
+
};
|
|
84319
|
+
|
|
84320
|
+
/**
|
|
84321
|
+
* Encodes the specified InThreadSurveyMetadata message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages.
|
|
84322
|
+
* @function encodeDelimited
|
|
84323
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84324
|
+
* @static
|
|
84325
|
+
* @param {BotMetadata.IInThreadSurveyMetadata} message InThreadSurveyMetadata message or plain object to encode
|
|
84326
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
84327
|
+
* @returns {$protobuf.Writer} Writer
|
|
84328
|
+
*/
|
|
84329
|
+
InThreadSurveyMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
84330
|
+
return this.encode(message, writer).ldelim();
|
|
84331
|
+
};
|
|
84332
|
+
|
|
84333
|
+
/**
|
|
84334
|
+
* Decodes an InThreadSurveyMetadata message from the specified reader or buffer.
|
|
84335
|
+
* @function decode
|
|
84336
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84337
|
+
* @static
|
|
84338
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
84339
|
+
* @param {number} [length] Message length if known beforehand
|
|
84340
|
+
* @returns {BotMetadata.InThreadSurveyMetadata} InThreadSurveyMetadata
|
|
84341
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
84342
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
84343
|
+
*/
|
|
84344
|
+
InThreadSurveyMetadata.decode = function decode(reader, length, error) {
|
|
84345
|
+
if (!(reader instanceof $Reader))
|
|
84346
|
+
reader = $Reader.create(reader);
|
|
84347
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BotMetadata.InThreadSurveyMetadata();
|
|
84348
|
+
while (reader.pos < end) {
|
|
84349
|
+
var tag = reader.uint32();
|
|
84350
|
+
if (tag === error)
|
|
84351
|
+
break;
|
|
84352
|
+
switch (tag >>> 3) {
|
|
84353
|
+
case 1: {
|
|
84354
|
+
message.tessaSessionId = reader.string();
|
|
84355
|
+
break;
|
|
84356
|
+
}
|
|
84357
|
+
case 2: {
|
|
84358
|
+
message.simonSessionId = reader.string();
|
|
84359
|
+
break;
|
|
84360
|
+
}
|
|
84361
|
+
case 3: {
|
|
84362
|
+
message.simonSurveyId = reader.string();
|
|
84363
|
+
break;
|
|
84364
|
+
}
|
|
84365
|
+
case 4: {
|
|
84366
|
+
message.tessaRootId = reader.string();
|
|
84367
|
+
break;
|
|
84368
|
+
}
|
|
84369
|
+
case 5: {
|
|
84370
|
+
message.requestId = reader.string();
|
|
84371
|
+
break;
|
|
84372
|
+
}
|
|
84373
|
+
case 6: {
|
|
84374
|
+
message.tessaEvent = reader.string();
|
|
84375
|
+
break;
|
|
84376
|
+
}
|
|
84377
|
+
case 7: {
|
|
84378
|
+
message.invitationHeaderText = reader.string();
|
|
84379
|
+
break;
|
|
84380
|
+
}
|
|
84381
|
+
case 8: {
|
|
84382
|
+
message.invitationBodyText = reader.string();
|
|
84383
|
+
break;
|
|
84384
|
+
}
|
|
84385
|
+
case 9: {
|
|
84386
|
+
message.invitationCtaText = reader.string();
|
|
84387
|
+
break;
|
|
84388
|
+
}
|
|
84389
|
+
case 10: {
|
|
84390
|
+
message.invitationCtaUrl = reader.string();
|
|
84391
|
+
break;
|
|
84392
|
+
}
|
|
84393
|
+
case 11: {
|
|
84394
|
+
message.surveyTitle = reader.string();
|
|
84395
|
+
break;
|
|
84396
|
+
}
|
|
84397
|
+
case 12: {
|
|
84398
|
+
if (!(message.questions && message.questions.length))
|
|
84399
|
+
message.questions = [];
|
|
84400
|
+
message.questions.push($root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.decode(reader, reader.uint32()));
|
|
84401
|
+
break;
|
|
84402
|
+
}
|
|
84403
|
+
case 13: {
|
|
84404
|
+
message.surveyContinueButtonText = reader.string();
|
|
84405
|
+
break;
|
|
84406
|
+
}
|
|
84407
|
+
case 14: {
|
|
84408
|
+
message.surveySubmitButtonText = reader.string();
|
|
84409
|
+
break;
|
|
84410
|
+
}
|
|
84411
|
+
case 15: {
|
|
84412
|
+
message.privacyStatementFull = reader.string();
|
|
84413
|
+
break;
|
|
84414
|
+
}
|
|
84415
|
+
case 16: {
|
|
84416
|
+
if (!(message.privacyStatementParts && message.privacyStatementParts.length))
|
|
84417
|
+
message.privacyStatementParts = [];
|
|
84418
|
+
message.privacyStatementParts.push($root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.decode(reader, reader.uint32()));
|
|
84419
|
+
break;
|
|
84420
|
+
}
|
|
84421
|
+
case 17: {
|
|
84422
|
+
message.feedbackToastText = reader.string();
|
|
84423
|
+
break;
|
|
84424
|
+
}
|
|
84425
|
+
default:
|
|
84426
|
+
reader.skipType(tag & 7);
|
|
84427
|
+
break;
|
|
84428
|
+
}
|
|
84429
|
+
}
|
|
84430
|
+
return message;
|
|
84431
|
+
};
|
|
84432
|
+
|
|
84433
|
+
/**
|
|
84434
|
+
* Decodes an InThreadSurveyMetadata message from the specified reader or buffer, length delimited.
|
|
84435
|
+
* @function decodeDelimited
|
|
84436
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84437
|
+
* @static
|
|
84438
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
84439
|
+
* @returns {BotMetadata.InThreadSurveyMetadata} InThreadSurveyMetadata
|
|
84440
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
84441
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
84442
|
+
*/
|
|
84443
|
+
InThreadSurveyMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
84444
|
+
if (!(reader instanceof $Reader))
|
|
84445
|
+
reader = new $Reader(reader);
|
|
84446
|
+
return this.decode(reader, reader.uint32());
|
|
84447
|
+
};
|
|
84448
|
+
|
|
84449
|
+
/**
|
|
84450
|
+
* Verifies an InThreadSurveyMetadata message.
|
|
84451
|
+
* @function verify
|
|
84452
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84453
|
+
* @static
|
|
84454
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
84455
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
84456
|
+
*/
|
|
84457
|
+
InThreadSurveyMetadata.verify = function verify(message) {
|
|
84458
|
+
if (typeof message !== "object" || message === null)
|
|
84459
|
+
return "object expected";
|
|
84460
|
+
if (message.tessaSessionId != null && message.hasOwnProperty("tessaSessionId"))
|
|
84461
|
+
if (!$util.isString(message.tessaSessionId))
|
|
84462
|
+
return "tessaSessionId: string expected";
|
|
84463
|
+
if (message.simonSessionId != null && message.hasOwnProperty("simonSessionId"))
|
|
84464
|
+
if (!$util.isString(message.simonSessionId))
|
|
84465
|
+
return "simonSessionId: string expected";
|
|
84466
|
+
if (message.simonSurveyId != null && message.hasOwnProperty("simonSurveyId"))
|
|
84467
|
+
if (!$util.isString(message.simonSurveyId))
|
|
84468
|
+
return "simonSurveyId: string expected";
|
|
84469
|
+
if (message.tessaRootId != null && message.hasOwnProperty("tessaRootId"))
|
|
84470
|
+
if (!$util.isString(message.tessaRootId))
|
|
84471
|
+
return "tessaRootId: string expected";
|
|
84472
|
+
if (message.requestId != null && message.hasOwnProperty("requestId"))
|
|
84473
|
+
if (!$util.isString(message.requestId))
|
|
84474
|
+
return "requestId: string expected";
|
|
84475
|
+
if (message.tessaEvent != null && message.hasOwnProperty("tessaEvent"))
|
|
84476
|
+
if (!$util.isString(message.tessaEvent))
|
|
84477
|
+
return "tessaEvent: string expected";
|
|
84478
|
+
if (message.invitationHeaderText != null && message.hasOwnProperty("invitationHeaderText"))
|
|
84479
|
+
if (!$util.isString(message.invitationHeaderText))
|
|
84480
|
+
return "invitationHeaderText: string expected";
|
|
84481
|
+
if (message.invitationBodyText != null && message.hasOwnProperty("invitationBodyText"))
|
|
84482
|
+
if (!$util.isString(message.invitationBodyText))
|
|
84483
|
+
return "invitationBodyText: string expected";
|
|
84484
|
+
if (message.invitationCtaText != null && message.hasOwnProperty("invitationCtaText"))
|
|
84485
|
+
if (!$util.isString(message.invitationCtaText))
|
|
84486
|
+
return "invitationCtaText: string expected";
|
|
84487
|
+
if (message.invitationCtaUrl != null && message.hasOwnProperty("invitationCtaUrl"))
|
|
84488
|
+
if (!$util.isString(message.invitationCtaUrl))
|
|
84489
|
+
return "invitationCtaUrl: string expected";
|
|
84490
|
+
if (message.surveyTitle != null && message.hasOwnProperty("surveyTitle"))
|
|
84491
|
+
if (!$util.isString(message.surveyTitle))
|
|
84492
|
+
return "surveyTitle: string expected";
|
|
84493
|
+
if (message.questions != null && message.hasOwnProperty("questions")) {
|
|
84494
|
+
if (!Array.isArray(message.questions))
|
|
84495
|
+
return "questions: array expected";
|
|
84496
|
+
for (var i = 0; i < message.questions.length; ++i) {
|
|
84497
|
+
var error = $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.verify(message.questions[i]);
|
|
84498
|
+
if (error)
|
|
84499
|
+
return "questions." + error;
|
|
84500
|
+
}
|
|
84501
|
+
}
|
|
84502
|
+
if (message.surveyContinueButtonText != null && message.hasOwnProperty("surveyContinueButtonText"))
|
|
84503
|
+
if (!$util.isString(message.surveyContinueButtonText))
|
|
84504
|
+
return "surveyContinueButtonText: string expected";
|
|
84505
|
+
if (message.surveySubmitButtonText != null && message.hasOwnProperty("surveySubmitButtonText"))
|
|
84506
|
+
if (!$util.isString(message.surveySubmitButtonText))
|
|
84507
|
+
return "surveySubmitButtonText: string expected";
|
|
84508
|
+
if (message.privacyStatementFull != null && message.hasOwnProperty("privacyStatementFull"))
|
|
84509
|
+
if (!$util.isString(message.privacyStatementFull))
|
|
84510
|
+
return "privacyStatementFull: string expected";
|
|
84511
|
+
if (message.privacyStatementParts != null && message.hasOwnProperty("privacyStatementParts")) {
|
|
84512
|
+
if (!Array.isArray(message.privacyStatementParts))
|
|
84513
|
+
return "privacyStatementParts: array expected";
|
|
84514
|
+
for (var i = 0; i < message.privacyStatementParts.length; ++i) {
|
|
84515
|
+
var error = $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.verify(message.privacyStatementParts[i]);
|
|
84516
|
+
if (error)
|
|
84517
|
+
return "privacyStatementParts." + error;
|
|
84518
|
+
}
|
|
84519
|
+
}
|
|
84520
|
+
if (message.feedbackToastText != null && message.hasOwnProperty("feedbackToastText"))
|
|
84521
|
+
if (!$util.isString(message.feedbackToastText))
|
|
84522
|
+
return "feedbackToastText: string expected";
|
|
84523
|
+
return null;
|
|
84524
|
+
};
|
|
84525
|
+
|
|
84526
|
+
/**
|
|
84527
|
+
* Creates an InThreadSurveyMetadata message from a plain object. Also converts values to their respective internal types.
|
|
84528
|
+
* @function fromObject
|
|
84529
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84530
|
+
* @static
|
|
84531
|
+
* @param {Object.<string,*>} object Plain object
|
|
84532
|
+
* @returns {BotMetadata.InThreadSurveyMetadata} InThreadSurveyMetadata
|
|
84533
|
+
*/
|
|
84534
|
+
InThreadSurveyMetadata.fromObject = function fromObject(object) {
|
|
84535
|
+
if (object instanceof $root.BotMetadata.InThreadSurveyMetadata)
|
|
84536
|
+
return object;
|
|
84537
|
+
var message = new $root.BotMetadata.InThreadSurveyMetadata();
|
|
84538
|
+
if (object.tessaSessionId != null)
|
|
84539
|
+
message.tessaSessionId = String(object.tessaSessionId);
|
|
84540
|
+
if (object.simonSessionId != null)
|
|
84541
|
+
message.simonSessionId = String(object.simonSessionId);
|
|
84542
|
+
if (object.simonSurveyId != null)
|
|
84543
|
+
message.simonSurveyId = String(object.simonSurveyId);
|
|
84544
|
+
if (object.tessaRootId != null)
|
|
84545
|
+
message.tessaRootId = String(object.tessaRootId);
|
|
84546
|
+
if (object.requestId != null)
|
|
84547
|
+
message.requestId = String(object.requestId);
|
|
84548
|
+
if (object.tessaEvent != null)
|
|
84549
|
+
message.tessaEvent = String(object.tessaEvent);
|
|
84550
|
+
if (object.invitationHeaderText != null)
|
|
84551
|
+
message.invitationHeaderText = String(object.invitationHeaderText);
|
|
84552
|
+
if (object.invitationBodyText != null)
|
|
84553
|
+
message.invitationBodyText = String(object.invitationBodyText);
|
|
84554
|
+
if (object.invitationCtaText != null)
|
|
84555
|
+
message.invitationCtaText = String(object.invitationCtaText);
|
|
84556
|
+
if (object.invitationCtaUrl != null)
|
|
84557
|
+
message.invitationCtaUrl = String(object.invitationCtaUrl);
|
|
84558
|
+
if (object.surveyTitle != null)
|
|
84559
|
+
message.surveyTitle = String(object.surveyTitle);
|
|
84560
|
+
if (object.questions) {
|
|
84561
|
+
if (!Array.isArray(object.questions))
|
|
84562
|
+
throw TypeError(".BotMetadata.InThreadSurveyMetadata.questions: array expected");
|
|
84563
|
+
message.questions = [];
|
|
84564
|
+
for (var i = 0; i < object.questions.length; ++i) {
|
|
84565
|
+
if (typeof object.questions[i] !== "object")
|
|
84566
|
+
throw TypeError(".BotMetadata.InThreadSurveyMetadata.questions: object expected");
|
|
84567
|
+
message.questions[i] = $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.fromObject(object.questions[i]);
|
|
84568
|
+
}
|
|
84569
|
+
}
|
|
84570
|
+
if (object.surveyContinueButtonText != null)
|
|
84571
|
+
message.surveyContinueButtonText = String(object.surveyContinueButtonText);
|
|
84572
|
+
if (object.surveySubmitButtonText != null)
|
|
84573
|
+
message.surveySubmitButtonText = String(object.surveySubmitButtonText);
|
|
84574
|
+
if (object.privacyStatementFull != null)
|
|
84575
|
+
message.privacyStatementFull = String(object.privacyStatementFull);
|
|
84576
|
+
if (object.privacyStatementParts) {
|
|
84577
|
+
if (!Array.isArray(object.privacyStatementParts))
|
|
84578
|
+
throw TypeError(".BotMetadata.InThreadSurveyMetadata.privacyStatementParts: array expected");
|
|
84579
|
+
message.privacyStatementParts = [];
|
|
84580
|
+
for (var i = 0; i < object.privacyStatementParts.length; ++i) {
|
|
84581
|
+
if (typeof object.privacyStatementParts[i] !== "object")
|
|
84582
|
+
throw TypeError(".BotMetadata.InThreadSurveyMetadata.privacyStatementParts: object expected");
|
|
84583
|
+
message.privacyStatementParts[i] = $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.fromObject(object.privacyStatementParts[i]);
|
|
84584
|
+
}
|
|
84585
|
+
}
|
|
84586
|
+
if (object.feedbackToastText != null)
|
|
84587
|
+
message.feedbackToastText = String(object.feedbackToastText);
|
|
84588
|
+
return message;
|
|
84589
|
+
};
|
|
84590
|
+
|
|
84591
|
+
/**
|
|
84592
|
+
* Creates a plain object from an InThreadSurveyMetadata message. Also converts values to other types if specified.
|
|
84593
|
+
* @function toObject
|
|
84594
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84595
|
+
* @static
|
|
84596
|
+
* @param {BotMetadata.InThreadSurveyMetadata} message InThreadSurveyMetadata
|
|
84597
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
84598
|
+
* @returns {Object.<string,*>} Plain object
|
|
84599
|
+
*/
|
|
84600
|
+
InThreadSurveyMetadata.toObject = function toObject(message, options) {
|
|
84601
|
+
if (!options)
|
|
84602
|
+
options = {};
|
|
84603
|
+
var object = {};
|
|
84604
|
+
if (options.arrays || options.defaults) {
|
|
84605
|
+
object.questions = [];
|
|
84606
|
+
object.privacyStatementParts = [];
|
|
84607
|
+
}
|
|
84608
|
+
if (options.defaults) {
|
|
84609
|
+
object.tessaSessionId = "";
|
|
84610
|
+
object.simonSessionId = "";
|
|
84611
|
+
object.simonSurveyId = "";
|
|
84612
|
+
object.tessaRootId = "";
|
|
84613
|
+
object.requestId = "";
|
|
84614
|
+
object.tessaEvent = "";
|
|
84615
|
+
object.invitationHeaderText = "";
|
|
84616
|
+
object.invitationBodyText = "";
|
|
84617
|
+
object.invitationCtaText = "";
|
|
84618
|
+
object.invitationCtaUrl = "";
|
|
84619
|
+
object.surveyTitle = "";
|
|
84620
|
+
object.surveyContinueButtonText = "";
|
|
84621
|
+
object.surveySubmitButtonText = "";
|
|
84622
|
+
object.privacyStatementFull = "";
|
|
84623
|
+
object.feedbackToastText = "";
|
|
84624
|
+
}
|
|
84625
|
+
if (message.tessaSessionId != null && message.hasOwnProperty("tessaSessionId"))
|
|
84626
|
+
object.tessaSessionId = message.tessaSessionId;
|
|
84627
|
+
if (message.simonSessionId != null && message.hasOwnProperty("simonSessionId"))
|
|
84628
|
+
object.simonSessionId = message.simonSessionId;
|
|
84629
|
+
if (message.simonSurveyId != null && message.hasOwnProperty("simonSurveyId"))
|
|
84630
|
+
object.simonSurveyId = message.simonSurveyId;
|
|
84631
|
+
if (message.tessaRootId != null && message.hasOwnProperty("tessaRootId"))
|
|
84632
|
+
object.tessaRootId = message.tessaRootId;
|
|
84633
|
+
if (message.requestId != null && message.hasOwnProperty("requestId"))
|
|
84634
|
+
object.requestId = message.requestId;
|
|
84635
|
+
if (message.tessaEvent != null && message.hasOwnProperty("tessaEvent"))
|
|
84636
|
+
object.tessaEvent = message.tessaEvent;
|
|
84637
|
+
if (message.invitationHeaderText != null && message.hasOwnProperty("invitationHeaderText"))
|
|
84638
|
+
object.invitationHeaderText = message.invitationHeaderText;
|
|
84639
|
+
if (message.invitationBodyText != null && message.hasOwnProperty("invitationBodyText"))
|
|
84640
|
+
object.invitationBodyText = message.invitationBodyText;
|
|
84641
|
+
if (message.invitationCtaText != null && message.hasOwnProperty("invitationCtaText"))
|
|
84642
|
+
object.invitationCtaText = message.invitationCtaText;
|
|
84643
|
+
if (message.invitationCtaUrl != null && message.hasOwnProperty("invitationCtaUrl"))
|
|
84644
|
+
object.invitationCtaUrl = message.invitationCtaUrl;
|
|
84645
|
+
if (message.surveyTitle != null && message.hasOwnProperty("surveyTitle"))
|
|
84646
|
+
object.surveyTitle = message.surveyTitle;
|
|
84647
|
+
if (message.questions && message.questions.length) {
|
|
84648
|
+
object.questions = [];
|
|
84649
|
+
for (var j = 0; j < message.questions.length; ++j)
|
|
84650
|
+
object.questions[j] = $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.toObject(message.questions[j], options);
|
|
84651
|
+
}
|
|
84652
|
+
if (message.surveyContinueButtonText != null && message.hasOwnProperty("surveyContinueButtonText"))
|
|
84653
|
+
object.surveyContinueButtonText = message.surveyContinueButtonText;
|
|
84654
|
+
if (message.surveySubmitButtonText != null && message.hasOwnProperty("surveySubmitButtonText"))
|
|
84655
|
+
object.surveySubmitButtonText = message.surveySubmitButtonText;
|
|
84656
|
+
if (message.privacyStatementFull != null && message.hasOwnProperty("privacyStatementFull"))
|
|
84657
|
+
object.privacyStatementFull = message.privacyStatementFull;
|
|
84658
|
+
if (message.privacyStatementParts && message.privacyStatementParts.length) {
|
|
84659
|
+
object.privacyStatementParts = [];
|
|
84660
|
+
for (var j = 0; j < message.privacyStatementParts.length; ++j)
|
|
84661
|
+
object.privacyStatementParts[j] = $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.toObject(message.privacyStatementParts[j], options);
|
|
84662
|
+
}
|
|
84663
|
+
if (message.feedbackToastText != null && message.hasOwnProperty("feedbackToastText"))
|
|
84664
|
+
object.feedbackToastText = message.feedbackToastText;
|
|
84665
|
+
return object;
|
|
84666
|
+
};
|
|
84667
|
+
|
|
84668
|
+
/**
|
|
84669
|
+
* Converts this InThreadSurveyMetadata to JSON.
|
|
84670
|
+
* @function toJSON
|
|
84671
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84672
|
+
* @instance
|
|
84673
|
+
* @returns {Object.<string,*>} JSON object
|
|
84674
|
+
*/
|
|
84675
|
+
InThreadSurveyMetadata.prototype.toJSON = function toJSON() {
|
|
84676
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
84677
|
+
};
|
|
84678
|
+
|
|
84679
|
+
/**
|
|
84680
|
+
* Gets the default type url for InThreadSurveyMetadata
|
|
84681
|
+
* @function getTypeUrl
|
|
84682
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84683
|
+
* @static
|
|
84684
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
84685
|
+
* @returns {string} The default type url
|
|
84686
|
+
*/
|
|
84687
|
+
InThreadSurveyMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
84688
|
+
if (typeUrlPrefix === undefined) {
|
|
84689
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
84690
|
+
}
|
|
84691
|
+
return typeUrlPrefix + "/BotMetadata.InThreadSurveyMetadata";
|
|
84692
|
+
};
|
|
84693
|
+
|
|
84694
|
+
InThreadSurveyMetadata.InThreadSurveyOption = (function() {
|
|
84695
|
+
|
|
84696
|
+
/**
|
|
84697
|
+
* Properties of an InThreadSurveyOption.
|
|
84698
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84699
|
+
* @interface IInThreadSurveyOption
|
|
84700
|
+
* @property {string|null} [stringValue] InThreadSurveyOption stringValue
|
|
84701
|
+
* @property {number|null} [numericValue] InThreadSurveyOption numericValue
|
|
84702
|
+
* @property {string|null} [textTranslated] InThreadSurveyOption textTranslated
|
|
84703
|
+
*/
|
|
84704
|
+
|
|
84705
|
+
/**
|
|
84706
|
+
* Constructs a new InThreadSurveyOption.
|
|
84707
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84708
|
+
* @classdesc Represents an InThreadSurveyOption.
|
|
84709
|
+
* @implements IInThreadSurveyOption
|
|
84710
|
+
* @constructor
|
|
84711
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption=} [properties] Properties to set
|
|
84712
|
+
*/
|
|
84713
|
+
function InThreadSurveyOption(properties) {
|
|
84714
|
+
if (properties)
|
|
84715
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
84716
|
+
if (properties[keys[i]] != null)
|
|
84717
|
+
this[keys[i]] = properties[keys[i]];
|
|
84718
|
+
}
|
|
84719
|
+
|
|
84720
|
+
/**
|
|
84721
|
+
* InThreadSurveyOption stringValue.
|
|
84722
|
+
* @member {string} stringValue
|
|
84723
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84724
|
+
* @instance
|
|
84725
|
+
*/
|
|
84726
|
+
InThreadSurveyOption.prototype.stringValue = "";
|
|
84727
|
+
|
|
84728
|
+
/**
|
|
84729
|
+
* InThreadSurveyOption numericValue.
|
|
84730
|
+
* @member {number} numericValue
|
|
84731
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84732
|
+
* @instance
|
|
84733
|
+
*/
|
|
84734
|
+
InThreadSurveyOption.prototype.numericValue = 0;
|
|
84735
|
+
|
|
84736
|
+
/**
|
|
84737
|
+
* InThreadSurveyOption textTranslated.
|
|
84738
|
+
* @member {string} textTranslated
|
|
84739
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84740
|
+
* @instance
|
|
84741
|
+
*/
|
|
84742
|
+
InThreadSurveyOption.prototype.textTranslated = "";
|
|
84743
|
+
|
|
84744
|
+
/**
|
|
84745
|
+
* Creates a new InThreadSurveyOption instance using the specified properties.
|
|
84746
|
+
* @function create
|
|
84747
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84748
|
+
* @static
|
|
84749
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption=} [properties] Properties to set
|
|
84750
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption} InThreadSurveyOption instance
|
|
84751
|
+
*/
|
|
84752
|
+
InThreadSurveyOption.create = function create(properties) {
|
|
84753
|
+
return new InThreadSurveyOption(properties);
|
|
84754
|
+
};
|
|
84755
|
+
|
|
84756
|
+
/**
|
|
84757
|
+
* Encodes the specified InThreadSurveyOption message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify|verify} messages.
|
|
84758
|
+
* @function encode
|
|
84759
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84760
|
+
* @static
|
|
84761
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption} message InThreadSurveyOption message or plain object to encode
|
|
84762
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
84763
|
+
* @returns {$protobuf.Writer} Writer
|
|
84764
|
+
*/
|
|
84765
|
+
InThreadSurveyOption.encode = function encode(message, writer) {
|
|
84766
|
+
if (!writer)
|
|
84767
|
+
writer = $Writer.create();
|
|
84768
|
+
if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue"))
|
|
84769
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue);
|
|
84770
|
+
if (message.numericValue != null && Object.hasOwnProperty.call(message, "numericValue"))
|
|
84771
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.numericValue);
|
|
84772
|
+
if (message.textTranslated != null && Object.hasOwnProperty.call(message, "textTranslated"))
|
|
84773
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.textTranslated);
|
|
84774
|
+
return writer;
|
|
84775
|
+
};
|
|
84776
|
+
|
|
84777
|
+
/**
|
|
84778
|
+
* Encodes the specified InThreadSurveyOption message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify|verify} messages.
|
|
84779
|
+
* @function encodeDelimited
|
|
84780
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84781
|
+
* @static
|
|
84782
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption} message InThreadSurveyOption message or plain object to encode
|
|
84783
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
84784
|
+
* @returns {$protobuf.Writer} Writer
|
|
84785
|
+
*/
|
|
84786
|
+
InThreadSurveyOption.encodeDelimited = function encodeDelimited(message, writer) {
|
|
84787
|
+
return this.encode(message, writer).ldelim();
|
|
84788
|
+
};
|
|
84789
|
+
|
|
84790
|
+
/**
|
|
84791
|
+
* Decodes an InThreadSurveyOption message from the specified reader or buffer.
|
|
84792
|
+
* @function decode
|
|
84793
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84794
|
+
* @static
|
|
84795
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
84796
|
+
* @param {number} [length] Message length if known beforehand
|
|
84797
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption} InThreadSurveyOption
|
|
84798
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
84799
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
84800
|
+
*/
|
|
84801
|
+
InThreadSurveyOption.decode = function decode(reader, length, error) {
|
|
84802
|
+
if (!(reader instanceof $Reader))
|
|
84803
|
+
reader = $Reader.create(reader);
|
|
84804
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption();
|
|
84805
|
+
while (reader.pos < end) {
|
|
84806
|
+
var tag = reader.uint32();
|
|
84807
|
+
if (tag === error)
|
|
84808
|
+
break;
|
|
84809
|
+
switch (tag >>> 3) {
|
|
84810
|
+
case 1: {
|
|
84811
|
+
message.stringValue = reader.string();
|
|
84812
|
+
break;
|
|
84813
|
+
}
|
|
84814
|
+
case 2: {
|
|
84815
|
+
message.numericValue = reader.uint32();
|
|
84816
|
+
break;
|
|
84817
|
+
}
|
|
84818
|
+
case 3: {
|
|
84819
|
+
message.textTranslated = reader.string();
|
|
84820
|
+
break;
|
|
84821
|
+
}
|
|
84822
|
+
default:
|
|
84823
|
+
reader.skipType(tag & 7);
|
|
84824
|
+
break;
|
|
84825
|
+
}
|
|
84826
|
+
}
|
|
84827
|
+
return message;
|
|
84828
|
+
};
|
|
84829
|
+
|
|
84830
|
+
/**
|
|
84831
|
+
* Decodes an InThreadSurveyOption message from the specified reader or buffer, length delimited.
|
|
84832
|
+
* @function decodeDelimited
|
|
84833
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84834
|
+
* @static
|
|
84835
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
84836
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption} InThreadSurveyOption
|
|
84837
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
84838
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
84839
|
+
*/
|
|
84840
|
+
InThreadSurveyOption.decodeDelimited = function decodeDelimited(reader) {
|
|
84841
|
+
if (!(reader instanceof $Reader))
|
|
84842
|
+
reader = new $Reader(reader);
|
|
84843
|
+
return this.decode(reader, reader.uint32());
|
|
84844
|
+
};
|
|
84845
|
+
|
|
84846
|
+
/**
|
|
84847
|
+
* Verifies an InThreadSurveyOption message.
|
|
84848
|
+
* @function verify
|
|
84849
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84850
|
+
* @static
|
|
84851
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
84852
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
84853
|
+
*/
|
|
84854
|
+
InThreadSurveyOption.verify = function verify(message) {
|
|
84855
|
+
if (typeof message !== "object" || message === null)
|
|
84856
|
+
return "object expected";
|
|
84857
|
+
if (message.stringValue != null && message.hasOwnProperty("stringValue"))
|
|
84858
|
+
if (!$util.isString(message.stringValue))
|
|
84859
|
+
return "stringValue: string expected";
|
|
84860
|
+
if (message.numericValue != null && message.hasOwnProperty("numericValue"))
|
|
84861
|
+
if (!$util.isInteger(message.numericValue))
|
|
84862
|
+
return "numericValue: integer expected";
|
|
84863
|
+
if (message.textTranslated != null && message.hasOwnProperty("textTranslated"))
|
|
84864
|
+
if (!$util.isString(message.textTranslated))
|
|
84865
|
+
return "textTranslated: string expected";
|
|
84866
|
+
return null;
|
|
84867
|
+
};
|
|
84868
|
+
|
|
84869
|
+
/**
|
|
84870
|
+
* Creates an InThreadSurveyOption message from a plain object. Also converts values to their respective internal types.
|
|
84871
|
+
* @function fromObject
|
|
84872
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84873
|
+
* @static
|
|
84874
|
+
* @param {Object.<string,*>} object Plain object
|
|
84875
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption} InThreadSurveyOption
|
|
84876
|
+
*/
|
|
84877
|
+
InThreadSurveyOption.fromObject = function fromObject(object) {
|
|
84878
|
+
if (object instanceof $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption)
|
|
84879
|
+
return object;
|
|
84880
|
+
var message = new $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption();
|
|
84881
|
+
if (object.stringValue != null)
|
|
84882
|
+
message.stringValue = String(object.stringValue);
|
|
84883
|
+
if (object.numericValue != null)
|
|
84884
|
+
message.numericValue = object.numericValue >>> 0;
|
|
84885
|
+
if (object.textTranslated != null)
|
|
84886
|
+
message.textTranslated = String(object.textTranslated);
|
|
84887
|
+
return message;
|
|
84888
|
+
};
|
|
84889
|
+
|
|
84890
|
+
/**
|
|
84891
|
+
* Creates a plain object from an InThreadSurveyOption message. Also converts values to other types if specified.
|
|
84892
|
+
* @function toObject
|
|
84893
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84894
|
+
* @static
|
|
84895
|
+
* @param {BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption} message InThreadSurveyOption
|
|
84896
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
84897
|
+
* @returns {Object.<string,*>} Plain object
|
|
84898
|
+
*/
|
|
84899
|
+
InThreadSurveyOption.toObject = function toObject(message, options) {
|
|
84900
|
+
if (!options)
|
|
84901
|
+
options = {};
|
|
84902
|
+
var object = {};
|
|
84903
|
+
if (options.defaults) {
|
|
84904
|
+
object.stringValue = "";
|
|
84905
|
+
object.numericValue = 0;
|
|
84906
|
+
object.textTranslated = "";
|
|
84907
|
+
}
|
|
84908
|
+
if (message.stringValue != null && message.hasOwnProperty("stringValue"))
|
|
84909
|
+
object.stringValue = message.stringValue;
|
|
84910
|
+
if (message.numericValue != null && message.hasOwnProperty("numericValue"))
|
|
84911
|
+
object.numericValue = message.numericValue;
|
|
84912
|
+
if (message.textTranslated != null && message.hasOwnProperty("textTranslated"))
|
|
84913
|
+
object.textTranslated = message.textTranslated;
|
|
84914
|
+
return object;
|
|
84915
|
+
};
|
|
84916
|
+
|
|
84917
|
+
/**
|
|
84918
|
+
* Converts this InThreadSurveyOption to JSON.
|
|
84919
|
+
* @function toJSON
|
|
84920
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84921
|
+
* @instance
|
|
84922
|
+
* @returns {Object.<string,*>} JSON object
|
|
84923
|
+
*/
|
|
84924
|
+
InThreadSurveyOption.prototype.toJSON = function toJSON() {
|
|
84925
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
84926
|
+
};
|
|
84927
|
+
|
|
84928
|
+
/**
|
|
84929
|
+
* Gets the default type url for InThreadSurveyOption
|
|
84930
|
+
* @function getTypeUrl
|
|
84931
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption
|
|
84932
|
+
* @static
|
|
84933
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
84934
|
+
* @returns {string} The default type url
|
|
84935
|
+
*/
|
|
84936
|
+
InThreadSurveyOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
84937
|
+
if (typeUrlPrefix === undefined) {
|
|
84938
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
84939
|
+
}
|
|
84940
|
+
return typeUrlPrefix + "/BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption";
|
|
84941
|
+
};
|
|
84942
|
+
|
|
84943
|
+
return InThreadSurveyOption;
|
|
84944
|
+
})();
|
|
84945
|
+
|
|
84946
|
+
InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart = (function() {
|
|
84947
|
+
|
|
84948
|
+
/**
|
|
84949
|
+
* Properties of an InThreadSurveyPrivacyStatementPart.
|
|
84950
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84951
|
+
* @interface IInThreadSurveyPrivacyStatementPart
|
|
84952
|
+
* @property {string|null} [text] InThreadSurveyPrivacyStatementPart text
|
|
84953
|
+
* @property {string|null} [url] InThreadSurveyPrivacyStatementPart url
|
|
84954
|
+
*/
|
|
84955
|
+
|
|
84956
|
+
/**
|
|
84957
|
+
* Constructs a new InThreadSurveyPrivacyStatementPart.
|
|
84958
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
84959
|
+
* @classdesc Represents an InThreadSurveyPrivacyStatementPart.
|
|
84960
|
+
* @implements IInThreadSurveyPrivacyStatementPart
|
|
84961
|
+
* @constructor
|
|
84962
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart=} [properties] Properties to set
|
|
84963
|
+
*/
|
|
84964
|
+
function InThreadSurveyPrivacyStatementPart(properties) {
|
|
84965
|
+
if (properties)
|
|
84966
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
84967
|
+
if (properties[keys[i]] != null)
|
|
84968
|
+
this[keys[i]] = properties[keys[i]];
|
|
84969
|
+
}
|
|
84970
|
+
|
|
84971
|
+
/**
|
|
84972
|
+
* InThreadSurveyPrivacyStatementPart text.
|
|
84973
|
+
* @member {string} text
|
|
84974
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
84975
|
+
* @instance
|
|
84976
|
+
*/
|
|
84977
|
+
InThreadSurveyPrivacyStatementPart.prototype.text = "";
|
|
84978
|
+
|
|
84979
|
+
/**
|
|
84980
|
+
* InThreadSurveyPrivacyStatementPart url.
|
|
84981
|
+
* @member {string} url
|
|
84982
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
84983
|
+
* @instance
|
|
84984
|
+
*/
|
|
84985
|
+
InThreadSurveyPrivacyStatementPart.prototype.url = "";
|
|
84986
|
+
|
|
84987
|
+
/**
|
|
84988
|
+
* Creates a new InThreadSurveyPrivacyStatementPart instance using the specified properties.
|
|
84989
|
+
* @function create
|
|
84990
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
84991
|
+
* @static
|
|
84992
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart=} [properties] Properties to set
|
|
84993
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart} InThreadSurveyPrivacyStatementPart instance
|
|
84994
|
+
*/
|
|
84995
|
+
InThreadSurveyPrivacyStatementPart.create = function create(properties) {
|
|
84996
|
+
return new InThreadSurveyPrivacyStatementPart(properties);
|
|
84997
|
+
};
|
|
84998
|
+
|
|
84999
|
+
/**
|
|
85000
|
+
* Encodes the specified InThreadSurveyPrivacyStatementPart message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.verify|verify} messages.
|
|
85001
|
+
* @function encode
|
|
85002
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
85003
|
+
* @static
|
|
85004
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart} message InThreadSurveyPrivacyStatementPart message or plain object to encode
|
|
85005
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
85006
|
+
* @returns {$protobuf.Writer} Writer
|
|
85007
|
+
*/
|
|
85008
|
+
InThreadSurveyPrivacyStatementPart.encode = function encode(message, writer) {
|
|
85009
|
+
if (!writer)
|
|
85010
|
+
writer = $Writer.create();
|
|
85011
|
+
if (message.text != null && Object.hasOwnProperty.call(message, "text"))
|
|
85012
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.text);
|
|
85013
|
+
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
85014
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
|
|
85015
|
+
return writer;
|
|
85016
|
+
};
|
|
85017
|
+
|
|
85018
|
+
/**
|
|
85019
|
+
* Encodes the specified InThreadSurveyPrivacyStatementPart message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.verify|verify} messages.
|
|
85020
|
+
* @function encodeDelimited
|
|
85021
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
85022
|
+
* @static
|
|
85023
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart} message InThreadSurveyPrivacyStatementPart message or plain object to encode
|
|
85024
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
85025
|
+
* @returns {$protobuf.Writer} Writer
|
|
85026
|
+
*/
|
|
85027
|
+
InThreadSurveyPrivacyStatementPart.encodeDelimited = function encodeDelimited(message, writer) {
|
|
85028
|
+
return this.encode(message, writer).ldelim();
|
|
85029
|
+
};
|
|
85030
|
+
|
|
85031
|
+
/**
|
|
85032
|
+
* Decodes an InThreadSurveyPrivacyStatementPart message from the specified reader or buffer.
|
|
85033
|
+
* @function decode
|
|
85034
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
85035
|
+
* @static
|
|
85036
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
85037
|
+
* @param {number} [length] Message length if known beforehand
|
|
85038
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart} InThreadSurveyPrivacyStatementPart
|
|
85039
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
85040
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
85041
|
+
*/
|
|
85042
|
+
InThreadSurveyPrivacyStatementPart.decode = function decode(reader, length, error) {
|
|
85043
|
+
if (!(reader instanceof $Reader))
|
|
85044
|
+
reader = $Reader.create(reader);
|
|
85045
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart();
|
|
85046
|
+
while (reader.pos < end) {
|
|
85047
|
+
var tag = reader.uint32();
|
|
85048
|
+
if (tag === error)
|
|
85049
|
+
break;
|
|
85050
|
+
switch (tag >>> 3) {
|
|
85051
|
+
case 1: {
|
|
85052
|
+
message.text = reader.string();
|
|
85053
|
+
break;
|
|
85054
|
+
}
|
|
85055
|
+
case 2: {
|
|
85056
|
+
message.url = reader.string();
|
|
85057
|
+
break;
|
|
85058
|
+
}
|
|
85059
|
+
default:
|
|
85060
|
+
reader.skipType(tag & 7);
|
|
85061
|
+
break;
|
|
85062
|
+
}
|
|
85063
|
+
}
|
|
85064
|
+
return message;
|
|
85065
|
+
};
|
|
85066
|
+
|
|
85067
|
+
/**
|
|
85068
|
+
* Decodes an InThreadSurveyPrivacyStatementPart message from the specified reader or buffer, length delimited.
|
|
85069
|
+
* @function decodeDelimited
|
|
85070
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
85071
|
+
* @static
|
|
85072
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
85073
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart} InThreadSurveyPrivacyStatementPart
|
|
85074
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
85075
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
85076
|
+
*/
|
|
85077
|
+
InThreadSurveyPrivacyStatementPart.decodeDelimited = function decodeDelimited(reader) {
|
|
85078
|
+
if (!(reader instanceof $Reader))
|
|
85079
|
+
reader = new $Reader(reader);
|
|
85080
|
+
return this.decode(reader, reader.uint32());
|
|
85081
|
+
};
|
|
85082
|
+
|
|
85083
|
+
/**
|
|
85084
|
+
* Verifies an InThreadSurveyPrivacyStatementPart message.
|
|
85085
|
+
* @function verify
|
|
85086
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
85087
|
+
* @static
|
|
85088
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
85089
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
85090
|
+
*/
|
|
85091
|
+
InThreadSurveyPrivacyStatementPart.verify = function verify(message) {
|
|
85092
|
+
if (typeof message !== "object" || message === null)
|
|
85093
|
+
return "object expected";
|
|
85094
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
85095
|
+
if (!$util.isString(message.text))
|
|
85096
|
+
return "text: string expected";
|
|
85097
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
85098
|
+
if (!$util.isString(message.url))
|
|
85099
|
+
return "url: string expected";
|
|
85100
|
+
return null;
|
|
85101
|
+
};
|
|
85102
|
+
|
|
85103
|
+
/**
|
|
85104
|
+
* Creates an InThreadSurveyPrivacyStatementPart message from a plain object. Also converts values to their respective internal types.
|
|
85105
|
+
* @function fromObject
|
|
85106
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
85107
|
+
* @static
|
|
85108
|
+
* @param {Object.<string,*>} object Plain object
|
|
85109
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart} InThreadSurveyPrivacyStatementPart
|
|
85110
|
+
*/
|
|
85111
|
+
InThreadSurveyPrivacyStatementPart.fromObject = function fromObject(object) {
|
|
85112
|
+
if (object instanceof $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart)
|
|
85113
|
+
return object;
|
|
85114
|
+
var message = new $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart();
|
|
85115
|
+
if (object.text != null)
|
|
85116
|
+
message.text = String(object.text);
|
|
85117
|
+
if (object.url != null)
|
|
85118
|
+
message.url = String(object.url);
|
|
85119
|
+
return message;
|
|
85120
|
+
};
|
|
85121
|
+
|
|
85122
|
+
/**
|
|
85123
|
+
* Creates a plain object from an InThreadSurveyPrivacyStatementPart message. Also converts values to other types if specified.
|
|
85124
|
+
* @function toObject
|
|
85125
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
85126
|
+
* @static
|
|
85127
|
+
* @param {BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart} message InThreadSurveyPrivacyStatementPart
|
|
85128
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
85129
|
+
* @returns {Object.<string,*>} Plain object
|
|
85130
|
+
*/
|
|
85131
|
+
InThreadSurveyPrivacyStatementPart.toObject = function toObject(message, options) {
|
|
85132
|
+
if (!options)
|
|
85133
|
+
options = {};
|
|
85134
|
+
var object = {};
|
|
85135
|
+
if (options.defaults) {
|
|
85136
|
+
object.text = "";
|
|
85137
|
+
object.url = "";
|
|
85138
|
+
}
|
|
85139
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
85140
|
+
object.text = message.text;
|
|
85141
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
85142
|
+
object.url = message.url;
|
|
85143
|
+
return object;
|
|
85144
|
+
};
|
|
85145
|
+
|
|
85146
|
+
/**
|
|
85147
|
+
* Converts this InThreadSurveyPrivacyStatementPart to JSON.
|
|
85148
|
+
* @function toJSON
|
|
85149
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
85150
|
+
* @instance
|
|
85151
|
+
* @returns {Object.<string,*>} JSON object
|
|
85152
|
+
*/
|
|
85153
|
+
InThreadSurveyPrivacyStatementPart.prototype.toJSON = function toJSON() {
|
|
85154
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
85155
|
+
};
|
|
85156
|
+
|
|
85157
|
+
/**
|
|
85158
|
+
* Gets the default type url for InThreadSurveyPrivacyStatementPart
|
|
85159
|
+
* @function getTypeUrl
|
|
85160
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart
|
|
85161
|
+
* @static
|
|
85162
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
85163
|
+
* @returns {string} The default type url
|
|
85164
|
+
*/
|
|
85165
|
+
InThreadSurveyPrivacyStatementPart.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
85166
|
+
if (typeUrlPrefix === undefined) {
|
|
85167
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
85168
|
+
}
|
|
85169
|
+
return typeUrlPrefix + "/BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart";
|
|
85170
|
+
};
|
|
85171
|
+
|
|
85172
|
+
return InThreadSurveyPrivacyStatementPart;
|
|
85173
|
+
})();
|
|
85174
|
+
|
|
85175
|
+
InThreadSurveyMetadata.InThreadSurveyQuestion = (function() {
|
|
85176
|
+
|
|
85177
|
+
/**
|
|
85178
|
+
* Properties of an InThreadSurveyQuestion.
|
|
85179
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
85180
|
+
* @interface IInThreadSurveyQuestion
|
|
85181
|
+
* @property {string|null} [questionText] InThreadSurveyQuestion questionText
|
|
85182
|
+
* @property {string|null} [questionId] InThreadSurveyQuestion questionId
|
|
85183
|
+
* @property {Array.<BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption>|null} [questionOptions] InThreadSurveyQuestion questionOptions
|
|
85184
|
+
*/
|
|
85185
|
+
|
|
85186
|
+
/**
|
|
85187
|
+
* Constructs a new InThreadSurveyQuestion.
|
|
85188
|
+
* @memberof BotMetadata.InThreadSurveyMetadata
|
|
85189
|
+
* @classdesc Represents an InThreadSurveyQuestion.
|
|
85190
|
+
* @implements IInThreadSurveyQuestion
|
|
85191
|
+
* @constructor
|
|
85192
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion=} [properties] Properties to set
|
|
85193
|
+
*/
|
|
85194
|
+
function InThreadSurveyQuestion(properties) {
|
|
85195
|
+
this.questionOptions = [];
|
|
85196
|
+
if (properties)
|
|
85197
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
85198
|
+
if (properties[keys[i]] != null)
|
|
85199
|
+
this[keys[i]] = properties[keys[i]];
|
|
85200
|
+
}
|
|
85201
|
+
|
|
85202
|
+
/**
|
|
85203
|
+
* InThreadSurveyQuestion questionText.
|
|
85204
|
+
* @member {string} questionText
|
|
85205
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85206
|
+
* @instance
|
|
85207
|
+
*/
|
|
85208
|
+
InThreadSurveyQuestion.prototype.questionText = "";
|
|
85209
|
+
|
|
85210
|
+
/**
|
|
85211
|
+
* InThreadSurveyQuestion questionId.
|
|
85212
|
+
* @member {string} questionId
|
|
85213
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85214
|
+
* @instance
|
|
85215
|
+
*/
|
|
85216
|
+
InThreadSurveyQuestion.prototype.questionId = "";
|
|
85217
|
+
|
|
85218
|
+
/**
|
|
85219
|
+
* InThreadSurveyQuestion questionOptions.
|
|
85220
|
+
* @member {Array.<BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption>} questionOptions
|
|
85221
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85222
|
+
* @instance
|
|
85223
|
+
*/
|
|
85224
|
+
InThreadSurveyQuestion.prototype.questionOptions = $util.emptyArray;
|
|
85225
|
+
|
|
85226
|
+
/**
|
|
85227
|
+
* Creates a new InThreadSurveyQuestion instance using the specified properties.
|
|
85228
|
+
* @function create
|
|
85229
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85230
|
+
* @static
|
|
85231
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion=} [properties] Properties to set
|
|
85232
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion} InThreadSurveyQuestion instance
|
|
85233
|
+
*/
|
|
85234
|
+
InThreadSurveyQuestion.create = function create(properties) {
|
|
85235
|
+
return new InThreadSurveyQuestion(properties);
|
|
85236
|
+
};
|
|
85237
|
+
|
|
85238
|
+
/**
|
|
85239
|
+
* Encodes the specified InThreadSurveyQuestion message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.verify|verify} messages.
|
|
85240
|
+
* @function encode
|
|
85241
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85242
|
+
* @static
|
|
85243
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion} message InThreadSurveyQuestion message or plain object to encode
|
|
85244
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
85245
|
+
* @returns {$protobuf.Writer} Writer
|
|
85246
|
+
*/
|
|
85247
|
+
InThreadSurveyQuestion.encode = function encode(message, writer) {
|
|
85248
|
+
if (!writer)
|
|
85249
|
+
writer = $Writer.create();
|
|
85250
|
+
if (message.questionText != null && Object.hasOwnProperty.call(message, "questionText"))
|
|
85251
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.questionText);
|
|
85252
|
+
if (message.questionId != null && Object.hasOwnProperty.call(message, "questionId"))
|
|
85253
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.questionId);
|
|
85254
|
+
if (message.questionOptions != null && message.questionOptions.length)
|
|
85255
|
+
for (var i = 0; i < message.questionOptions.length; ++i)
|
|
85256
|
+
$root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.encode(message.questionOptions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
85257
|
+
return writer;
|
|
85258
|
+
};
|
|
85259
|
+
|
|
85260
|
+
/**
|
|
85261
|
+
* Encodes the specified InThreadSurveyQuestion message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.verify|verify} messages.
|
|
85262
|
+
* @function encodeDelimited
|
|
85263
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85264
|
+
* @static
|
|
85265
|
+
* @param {BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion} message InThreadSurveyQuestion message or plain object to encode
|
|
85266
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
85267
|
+
* @returns {$protobuf.Writer} Writer
|
|
85268
|
+
*/
|
|
85269
|
+
InThreadSurveyQuestion.encodeDelimited = function encodeDelimited(message, writer) {
|
|
85270
|
+
return this.encode(message, writer).ldelim();
|
|
85271
|
+
};
|
|
85272
|
+
|
|
85273
|
+
/**
|
|
85274
|
+
* Decodes an InThreadSurveyQuestion message from the specified reader or buffer.
|
|
85275
|
+
* @function decode
|
|
85276
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85277
|
+
* @static
|
|
85278
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
85279
|
+
* @param {number} [length] Message length if known beforehand
|
|
85280
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion} InThreadSurveyQuestion
|
|
85281
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
85282
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
85283
|
+
*/
|
|
85284
|
+
InThreadSurveyQuestion.decode = function decode(reader, length, error) {
|
|
85285
|
+
if (!(reader instanceof $Reader))
|
|
85286
|
+
reader = $Reader.create(reader);
|
|
85287
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion();
|
|
85288
|
+
while (reader.pos < end) {
|
|
85289
|
+
var tag = reader.uint32();
|
|
85290
|
+
if (tag === error)
|
|
85291
|
+
break;
|
|
85292
|
+
switch (tag >>> 3) {
|
|
85293
|
+
case 1: {
|
|
85294
|
+
message.questionText = reader.string();
|
|
85295
|
+
break;
|
|
85296
|
+
}
|
|
85297
|
+
case 2: {
|
|
85298
|
+
message.questionId = reader.string();
|
|
85299
|
+
break;
|
|
85300
|
+
}
|
|
85301
|
+
case 3: {
|
|
85302
|
+
if (!(message.questionOptions && message.questionOptions.length))
|
|
85303
|
+
message.questionOptions = [];
|
|
85304
|
+
message.questionOptions.push($root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.decode(reader, reader.uint32()));
|
|
85305
|
+
break;
|
|
85306
|
+
}
|
|
85307
|
+
default:
|
|
85308
|
+
reader.skipType(tag & 7);
|
|
85309
|
+
break;
|
|
85310
|
+
}
|
|
85311
|
+
}
|
|
85312
|
+
return message;
|
|
85313
|
+
};
|
|
85314
|
+
|
|
85315
|
+
/**
|
|
85316
|
+
* Decodes an InThreadSurveyQuestion message from the specified reader or buffer, length delimited.
|
|
85317
|
+
* @function decodeDelimited
|
|
85318
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85319
|
+
* @static
|
|
85320
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
85321
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion} InThreadSurveyQuestion
|
|
85322
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
85323
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
85324
|
+
*/
|
|
85325
|
+
InThreadSurveyQuestion.decodeDelimited = function decodeDelimited(reader) {
|
|
85326
|
+
if (!(reader instanceof $Reader))
|
|
85327
|
+
reader = new $Reader(reader);
|
|
85328
|
+
return this.decode(reader, reader.uint32());
|
|
85329
|
+
};
|
|
85330
|
+
|
|
85331
|
+
/**
|
|
85332
|
+
* Verifies an InThreadSurveyQuestion message.
|
|
85333
|
+
* @function verify
|
|
85334
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85335
|
+
* @static
|
|
85336
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
85337
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
85338
|
+
*/
|
|
85339
|
+
InThreadSurveyQuestion.verify = function verify(message) {
|
|
85340
|
+
if (typeof message !== "object" || message === null)
|
|
85341
|
+
return "object expected";
|
|
85342
|
+
if (message.questionText != null && message.hasOwnProperty("questionText"))
|
|
85343
|
+
if (!$util.isString(message.questionText))
|
|
85344
|
+
return "questionText: string expected";
|
|
85345
|
+
if (message.questionId != null && message.hasOwnProperty("questionId"))
|
|
85346
|
+
if (!$util.isString(message.questionId))
|
|
85347
|
+
return "questionId: string expected";
|
|
85348
|
+
if (message.questionOptions != null && message.hasOwnProperty("questionOptions")) {
|
|
85349
|
+
if (!Array.isArray(message.questionOptions))
|
|
85350
|
+
return "questionOptions: array expected";
|
|
85351
|
+
for (var i = 0; i < message.questionOptions.length; ++i) {
|
|
85352
|
+
var error = $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify(message.questionOptions[i]);
|
|
85353
|
+
if (error)
|
|
85354
|
+
return "questionOptions." + error;
|
|
85355
|
+
}
|
|
85356
|
+
}
|
|
85357
|
+
return null;
|
|
85358
|
+
};
|
|
85359
|
+
|
|
85360
|
+
/**
|
|
85361
|
+
* Creates an InThreadSurveyQuestion message from a plain object. Also converts values to their respective internal types.
|
|
85362
|
+
* @function fromObject
|
|
85363
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85364
|
+
* @static
|
|
85365
|
+
* @param {Object.<string,*>} object Plain object
|
|
85366
|
+
* @returns {BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion} InThreadSurveyQuestion
|
|
85367
|
+
*/
|
|
85368
|
+
InThreadSurveyQuestion.fromObject = function fromObject(object) {
|
|
85369
|
+
if (object instanceof $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion)
|
|
85370
|
+
return object;
|
|
85371
|
+
var message = new $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion();
|
|
85372
|
+
if (object.questionText != null)
|
|
85373
|
+
message.questionText = String(object.questionText);
|
|
85374
|
+
if (object.questionId != null)
|
|
85375
|
+
message.questionId = String(object.questionId);
|
|
85376
|
+
if (object.questionOptions) {
|
|
85377
|
+
if (!Array.isArray(object.questionOptions))
|
|
85378
|
+
throw TypeError(".BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.questionOptions: array expected");
|
|
85379
|
+
message.questionOptions = [];
|
|
85380
|
+
for (var i = 0; i < object.questionOptions.length; ++i) {
|
|
85381
|
+
if (typeof object.questionOptions[i] !== "object")
|
|
85382
|
+
throw TypeError(".BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.questionOptions: object expected");
|
|
85383
|
+
message.questionOptions[i] = $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.fromObject(object.questionOptions[i]);
|
|
85384
|
+
}
|
|
85385
|
+
}
|
|
85386
|
+
return message;
|
|
85387
|
+
};
|
|
85388
|
+
|
|
85389
|
+
/**
|
|
85390
|
+
* Creates a plain object from an InThreadSurveyQuestion message. Also converts values to other types if specified.
|
|
85391
|
+
* @function toObject
|
|
85392
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85393
|
+
* @static
|
|
85394
|
+
* @param {BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion} message InThreadSurveyQuestion
|
|
85395
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
85396
|
+
* @returns {Object.<string,*>} Plain object
|
|
85397
|
+
*/
|
|
85398
|
+
InThreadSurveyQuestion.toObject = function toObject(message, options) {
|
|
85399
|
+
if (!options)
|
|
85400
|
+
options = {};
|
|
85401
|
+
var object = {};
|
|
85402
|
+
if (options.arrays || options.defaults)
|
|
85403
|
+
object.questionOptions = [];
|
|
85404
|
+
if (options.defaults) {
|
|
85405
|
+
object.questionText = "";
|
|
85406
|
+
object.questionId = "";
|
|
85407
|
+
}
|
|
85408
|
+
if (message.questionText != null && message.hasOwnProperty("questionText"))
|
|
85409
|
+
object.questionText = message.questionText;
|
|
85410
|
+
if (message.questionId != null && message.hasOwnProperty("questionId"))
|
|
85411
|
+
object.questionId = message.questionId;
|
|
85412
|
+
if (message.questionOptions && message.questionOptions.length) {
|
|
85413
|
+
object.questionOptions = [];
|
|
85414
|
+
for (var j = 0; j < message.questionOptions.length; ++j)
|
|
85415
|
+
object.questionOptions[j] = $root.BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.toObject(message.questionOptions[j], options);
|
|
85416
|
+
}
|
|
85417
|
+
return object;
|
|
85418
|
+
};
|
|
85419
|
+
|
|
85420
|
+
/**
|
|
85421
|
+
* Converts this InThreadSurveyQuestion to JSON.
|
|
85422
|
+
* @function toJSON
|
|
85423
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85424
|
+
* @instance
|
|
85425
|
+
* @returns {Object.<string,*>} JSON object
|
|
85426
|
+
*/
|
|
85427
|
+
InThreadSurveyQuestion.prototype.toJSON = function toJSON() {
|
|
85428
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
85429
|
+
};
|
|
85430
|
+
|
|
85431
|
+
/**
|
|
85432
|
+
* Gets the default type url for InThreadSurveyQuestion
|
|
85433
|
+
* @function getTypeUrl
|
|
85434
|
+
* @memberof BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion
|
|
85435
|
+
* @static
|
|
85436
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
85437
|
+
* @returns {string} The default type url
|
|
85438
|
+
*/
|
|
85439
|
+
InThreadSurveyQuestion.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
85440
|
+
if (typeUrlPrefix === undefined) {
|
|
85441
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
85442
|
+
}
|
|
85443
|
+
return typeUrlPrefix + "/BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion";
|
|
85444
|
+
};
|
|
85445
|
+
|
|
85446
|
+
return InThreadSurveyQuestion;
|
|
85447
|
+
})();
|
|
85448
|
+
|
|
85449
|
+
return InThreadSurveyMetadata;
|
|
85450
|
+
})();
|
|
85451
|
+
|
|
83878
85452
|
BotMetadata.BotSourcesMetadata = (function() {
|
|
83879
85453
|
|
|
83880
85454
|
/**
|
|
@@ -90568,6 +92142,7 @@ $root.BotMetadata = (function() {
|
|
|
90568
92142
|
return "promotionType: enum value expected";
|
|
90569
92143
|
case 0:
|
|
90570
92144
|
case 1:
|
|
92145
|
+
case 2:
|
|
90571
92146
|
break;
|
|
90572
92147
|
}
|
|
90573
92148
|
if (message.buttonTitle != null && message.hasOwnProperty("buttonTitle"))
|
|
@@ -90603,6 +92178,10 @@ $root.BotMetadata = (function() {
|
|
|
90603
92178
|
case 1:
|
|
90604
92179
|
message.promotionType = 1;
|
|
90605
92180
|
break;
|
|
92181
|
+
case "SURVEY_PLATFORM":
|
|
92182
|
+
case 2:
|
|
92183
|
+
message.promotionType = 2;
|
|
92184
|
+
break;
|
|
90606
92185
|
}
|
|
90607
92186
|
if (object.buttonTitle != null)
|
|
90608
92187
|
message.buttonTitle = String(object.buttonTitle);
|
|
@@ -90665,11 +92244,13 @@ $root.BotMetadata = (function() {
|
|
|
90665
92244
|
* @enum {number}
|
|
90666
92245
|
* @property {number} UNKNOWN_TYPE=0 UNKNOWN_TYPE value
|
|
90667
92246
|
* @property {number} C50=1 C50 value
|
|
92247
|
+
* @property {number} SURVEY_PLATFORM=2 SURVEY_PLATFORM value
|
|
90668
92248
|
*/
|
|
90669
92249
|
BotPromotionMessageMetadata.BotPromotionType = (function() {
|
|
90670
92250
|
var valuesById = {}, values = Object.create(valuesById);
|
|
90671
92251
|
values[valuesById[0] = "UNKNOWN_TYPE"] = 0;
|
|
90672
92252
|
values[valuesById[1] = "C50"] = 1;
|
|
92253
|
+
values[valuesById[2] = "SURVEY_PLATFORM"] = 2;
|
|
90673
92254
|
return values;
|
|
90674
92255
|
})();
|
|
90675
92256
|
|
|
@@ -95510,6 +97091,7 @@ $root.StatusAttributions = (function() {
|
|
|
95510
97091
|
case 0:
|
|
95511
97092
|
case 1:
|
|
95512
97093
|
case 2:
|
|
97094
|
+
case 3:
|
|
95513
97095
|
break;
|
|
95514
97096
|
}
|
|
95515
97097
|
return null;
|
|
@@ -95546,6 +97128,10 @@ $root.StatusAttributions = (function() {
|
|
|
95546
97128
|
case 2:
|
|
95547
97129
|
message.source = 2;
|
|
95548
97130
|
break;
|
|
97131
|
+
case "HYPERNOVA_GLASSES":
|
|
97132
|
+
case 3:
|
|
97133
|
+
message.source = 3;
|
|
97134
|
+
break;
|
|
95549
97135
|
}
|
|
95550
97136
|
return message;
|
|
95551
97137
|
};
|
|
@@ -95603,12 +97189,14 @@ $root.StatusAttributions = (function() {
|
|
|
95603
97189
|
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
95604
97190
|
* @property {number} RAY_BAN_META_GLASSES=1 RAY_BAN_META_GLASSES value
|
|
95605
97191
|
* @property {number} OAKLEY_META_GLASSES=2 OAKLEY_META_GLASSES value
|
|
97192
|
+
* @property {number} HYPERNOVA_GLASSES=3 HYPERNOVA_GLASSES value
|
|
95606
97193
|
*/
|
|
95607
97194
|
RLAttribution.Source = (function() {
|
|
95608
97195
|
var valuesById = {}, values = Object.create(valuesById);
|
|
95609
97196
|
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
95610
97197
|
values[valuesById[1] = "RAY_BAN_META_GLASSES"] = 1;
|
|
95611
97198
|
values[valuesById[2] = "OAKLEY_META_GLASSES"] = 2;
|
|
97199
|
+
values[valuesById[3] = "HYPERNOVA_GLASSES"] = 3;
|
|
95612
97200
|
return values;
|
|
95613
97201
|
})();
|
|
95614
97202
|
|
|
@@ -114087,6 +115675,8 @@ $root.SyncAction = (function() {
|
|
|
114087
115675
|
* @property {SyncAction.SyncActionValue.IBusinessBroadcastAssociationAction|null} [businessBroadcastAssociationAction] SyncActionValue businessBroadcastAssociationAction
|
|
114088
115676
|
* @property {SyncAction.SyncActionValue.IDetectedOutcomesStatusAction|null} [detectedOutcomesStatusAction] SyncActionValue detectedOutcomesStatusAction
|
|
114089
115677
|
* @property {SyncAction.SyncActionValue.IMaibaAIFeaturesControlAction|null} [maibaAiFeaturesControlAction] SyncActionValue maibaAiFeaturesControlAction
|
|
115678
|
+
* @property {SyncAction.SyncActionValue.IBusinessBroadcastListAction|null} [businessBroadcastListAction] SyncActionValue businessBroadcastListAction
|
|
115679
|
+
* @property {SyncAction.SyncActionValue.IMusicUserIdAction|null} [musicUserIdAction] SyncActionValue musicUserIdAction
|
|
114090
115680
|
*/
|
|
114091
115681
|
|
|
114092
115682
|
/**
|
|
@@ -114592,6 +116182,22 @@ $root.SyncAction = (function() {
|
|
|
114592
116182
|
*/
|
|
114593
116183
|
SyncActionValue.prototype.maibaAiFeaturesControlAction = null;
|
|
114594
116184
|
|
|
116185
|
+
/**
|
|
116186
|
+
* SyncActionValue businessBroadcastListAction.
|
|
116187
|
+
* @member {SyncAction.SyncActionValue.IBusinessBroadcastListAction|null|undefined} businessBroadcastListAction
|
|
116188
|
+
* @memberof SyncAction.SyncActionValue
|
|
116189
|
+
* @instance
|
|
116190
|
+
*/
|
|
116191
|
+
SyncActionValue.prototype.businessBroadcastListAction = null;
|
|
116192
|
+
|
|
116193
|
+
/**
|
|
116194
|
+
* SyncActionValue musicUserIdAction.
|
|
116195
|
+
* @member {SyncAction.SyncActionValue.IMusicUserIdAction|null|undefined} musicUserIdAction
|
|
116196
|
+
* @memberof SyncAction.SyncActionValue
|
|
116197
|
+
* @instance
|
|
116198
|
+
*/
|
|
116199
|
+
SyncActionValue.prototype.musicUserIdAction = null;
|
|
116200
|
+
|
|
114595
116201
|
/**
|
|
114596
116202
|
* Creates a new SyncActionValue instance using the specified properties.
|
|
114597
116203
|
* @function create
|
|
@@ -114737,7 +116343,11 @@ $root.SyncAction = (function() {
|
|
|
114737
116343
|
if (message.detectedOutcomesStatusAction != null && Object.hasOwnProperty.call(message, "detectedOutcomesStatusAction"))
|
|
114738
116344
|
$root.SyncAction.SyncActionValue.DetectedOutcomesStatusAction.encode(message.detectedOutcomesStatusAction, writer.uint32(/* id 66, wireType 2 =*/530).fork()).ldelim();
|
|
114739
116345
|
if (message.maibaAiFeaturesControlAction != null && Object.hasOwnProperty.call(message, "maibaAiFeaturesControlAction"))
|
|
114740
|
-
$root.SyncAction.SyncActionValue.MaibaAIFeaturesControlAction.encode(message.maibaAiFeaturesControlAction, writer.uint32(/* id
|
|
116346
|
+
$root.SyncAction.SyncActionValue.MaibaAIFeaturesControlAction.encode(message.maibaAiFeaturesControlAction, writer.uint32(/* id 68, wireType 2 =*/546).fork()).ldelim();
|
|
116347
|
+
if (message.businessBroadcastListAction != null && Object.hasOwnProperty.call(message, "businessBroadcastListAction"))
|
|
116348
|
+
$root.SyncAction.SyncActionValue.BusinessBroadcastListAction.encode(message.businessBroadcastListAction, writer.uint32(/* id 69, wireType 2 =*/554).fork()).ldelim();
|
|
116349
|
+
if (message.musicUserIdAction != null && Object.hasOwnProperty.call(message, "musicUserIdAction"))
|
|
116350
|
+
$root.SyncAction.SyncActionValue.MusicUserIdAction.encode(message.musicUserIdAction, writer.uint32(/* id 70, wireType 2 =*/562).fork()).ldelim();
|
|
114741
116351
|
return writer;
|
|
114742
116352
|
};
|
|
114743
116353
|
|
|
@@ -115014,10 +116624,18 @@ $root.SyncAction = (function() {
|
|
|
115014
116624
|
message.detectedOutcomesStatusAction = $root.SyncAction.SyncActionValue.DetectedOutcomesStatusAction.decode(reader, reader.uint32());
|
|
115015
116625
|
break;
|
|
115016
116626
|
}
|
|
115017
|
-
case
|
|
116627
|
+
case 68: {
|
|
115018
116628
|
message.maibaAiFeaturesControlAction = $root.SyncAction.SyncActionValue.MaibaAIFeaturesControlAction.decode(reader, reader.uint32());
|
|
115019
116629
|
break;
|
|
115020
116630
|
}
|
|
116631
|
+
case 69: {
|
|
116632
|
+
message.businessBroadcastListAction = $root.SyncAction.SyncActionValue.BusinessBroadcastListAction.decode(reader, reader.uint32());
|
|
116633
|
+
break;
|
|
116634
|
+
}
|
|
116635
|
+
case 70: {
|
|
116636
|
+
message.musicUserIdAction = $root.SyncAction.SyncActionValue.MusicUserIdAction.decode(reader, reader.uint32());
|
|
116637
|
+
break;
|
|
116638
|
+
}
|
|
115021
116639
|
default:
|
|
115022
116640
|
reader.skipType(tag & 7);
|
|
115023
116641
|
break;
|
|
@@ -115356,6 +116974,16 @@ $root.SyncAction = (function() {
|
|
|
115356
116974
|
if (error)
|
|
115357
116975
|
return "maibaAiFeaturesControlAction." + error;
|
|
115358
116976
|
}
|
|
116977
|
+
if (message.businessBroadcastListAction != null && message.hasOwnProperty("businessBroadcastListAction")) {
|
|
116978
|
+
var error = $root.SyncAction.SyncActionValue.BusinessBroadcastListAction.verify(message.businessBroadcastListAction);
|
|
116979
|
+
if (error)
|
|
116980
|
+
return "businessBroadcastListAction." + error;
|
|
116981
|
+
}
|
|
116982
|
+
if (message.musicUserIdAction != null && message.hasOwnProperty("musicUserIdAction")) {
|
|
116983
|
+
var error = $root.SyncAction.SyncActionValue.MusicUserIdAction.verify(message.musicUserIdAction);
|
|
116984
|
+
if (error)
|
|
116985
|
+
return "musicUserIdAction." + error;
|
|
116986
|
+
}
|
|
115359
116987
|
return null;
|
|
115360
116988
|
};
|
|
115361
116989
|
|
|
@@ -115680,6 +117308,16 @@ $root.SyncAction = (function() {
|
|
|
115680
117308
|
throw TypeError(".SyncAction.SyncActionValue.maibaAiFeaturesControlAction: object expected");
|
|
115681
117309
|
message.maibaAiFeaturesControlAction = $root.SyncAction.SyncActionValue.MaibaAIFeaturesControlAction.fromObject(object.maibaAiFeaturesControlAction);
|
|
115682
117310
|
}
|
|
117311
|
+
if (object.businessBroadcastListAction != null) {
|
|
117312
|
+
if (typeof object.businessBroadcastListAction !== "object")
|
|
117313
|
+
throw TypeError(".SyncAction.SyncActionValue.businessBroadcastListAction: object expected");
|
|
117314
|
+
message.businessBroadcastListAction = $root.SyncAction.SyncActionValue.BusinessBroadcastListAction.fromObject(object.businessBroadcastListAction);
|
|
117315
|
+
}
|
|
117316
|
+
if (object.musicUserIdAction != null) {
|
|
117317
|
+
if (typeof object.musicUserIdAction !== "object")
|
|
117318
|
+
throw TypeError(".SyncAction.SyncActionValue.musicUserIdAction: object expected");
|
|
117319
|
+
message.musicUserIdAction = $root.SyncAction.SyncActionValue.MusicUserIdAction.fromObject(object.musicUserIdAction);
|
|
117320
|
+
}
|
|
115683
117321
|
return message;
|
|
115684
117322
|
};
|
|
115685
117323
|
|
|
@@ -115762,6 +117400,8 @@ $root.SyncAction = (function() {
|
|
|
115762
117400
|
object.businessBroadcastAssociationAction = null;
|
|
115763
117401
|
object.detectedOutcomesStatusAction = null;
|
|
115764
117402
|
object.maibaAiFeaturesControlAction = null;
|
|
117403
|
+
object.businessBroadcastListAction = null;
|
|
117404
|
+
object.musicUserIdAction = null;
|
|
115765
117405
|
}
|
|
115766
117406
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
115767
117407
|
if (typeof message.timestamp === "number")
|
|
@@ -115888,6 +117528,10 @@ $root.SyncAction = (function() {
|
|
|
115888
117528
|
object.detectedOutcomesStatusAction = $root.SyncAction.SyncActionValue.DetectedOutcomesStatusAction.toObject(message.detectedOutcomesStatusAction, options);
|
|
115889
117529
|
if (message.maibaAiFeaturesControlAction != null && message.hasOwnProperty("maibaAiFeaturesControlAction"))
|
|
115890
117530
|
object.maibaAiFeaturesControlAction = $root.SyncAction.SyncActionValue.MaibaAIFeaturesControlAction.toObject(message.maibaAiFeaturesControlAction, options);
|
|
117531
|
+
if (message.businessBroadcastListAction != null && message.hasOwnProperty("businessBroadcastListAction"))
|
|
117532
|
+
object.businessBroadcastListAction = $root.SyncAction.SyncActionValue.BusinessBroadcastListAction.toObject(message.businessBroadcastListAction, options);
|
|
117533
|
+
if (message.musicUserIdAction != null && message.hasOwnProperty("musicUserIdAction"))
|
|
117534
|
+
object.musicUserIdAction = $root.SyncAction.SyncActionValue.MusicUserIdAction.toObject(message.musicUserIdAction, options);
|
|
115891
117535
|
return object;
|
|
115892
117536
|
};
|
|
115893
117537
|
|
|
@@ -117018,6 +118662,275 @@ $root.SyncAction = (function() {
|
|
|
117018
118662
|
return BusinessBroadcastAssociationAction;
|
|
117019
118663
|
})();
|
|
117020
118664
|
|
|
118665
|
+
SyncActionValue.BusinessBroadcastListAction = (function() {
|
|
118666
|
+
|
|
118667
|
+
/**
|
|
118668
|
+
* Properties of a BusinessBroadcastListAction.
|
|
118669
|
+
* @memberof SyncAction.SyncActionValue
|
|
118670
|
+
* @interface IBusinessBroadcastListAction
|
|
118671
|
+
* @property {boolean|null} [deleted] BusinessBroadcastListAction deleted
|
|
118672
|
+
* @property {Array.<string>|null} [phoneNumbers] BusinessBroadcastListAction phoneNumbers
|
|
118673
|
+
* @property {string|null} [listName] BusinessBroadcastListAction listName
|
|
118674
|
+
*/
|
|
118675
|
+
|
|
118676
|
+
/**
|
|
118677
|
+
* Constructs a new BusinessBroadcastListAction.
|
|
118678
|
+
* @memberof SyncAction.SyncActionValue
|
|
118679
|
+
* @classdesc Represents a BusinessBroadcastListAction.
|
|
118680
|
+
* @implements IBusinessBroadcastListAction
|
|
118681
|
+
* @constructor
|
|
118682
|
+
* @param {SyncAction.SyncActionValue.IBusinessBroadcastListAction=} [properties] Properties to set
|
|
118683
|
+
*/
|
|
118684
|
+
function BusinessBroadcastListAction(properties) {
|
|
118685
|
+
this.phoneNumbers = [];
|
|
118686
|
+
if (properties)
|
|
118687
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
118688
|
+
if (properties[keys[i]] != null)
|
|
118689
|
+
this[keys[i]] = properties[keys[i]];
|
|
118690
|
+
}
|
|
118691
|
+
|
|
118692
|
+
/**
|
|
118693
|
+
* BusinessBroadcastListAction deleted.
|
|
118694
|
+
* @member {boolean} deleted
|
|
118695
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118696
|
+
* @instance
|
|
118697
|
+
*/
|
|
118698
|
+
BusinessBroadcastListAction.prototype.deleted = false;
|
|
118699
|
+
|
|
118700
|
+
/**
|
|
118701
|
+
* BusinessBroadcastListAction phoneNumbers.
|
|
118702
|
+
* @member {Array.<string>} phoneNumbers
|
|
118703
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118704
|
+
* @instance
|
|
118705
|
+
*/
|
|
118706
|
+
BusinessBroadcastListAction.prototype.phoneNumbers = $util.emptyArray;
|
|
118707
|
+
|
|
118708
|
+
/**
|
|
118709
|
+
* BusinessBroadcastListAction listName.
|
|
118710
|
+
* @member {string} listName
|
|
118711
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118712
|
+
* @instance
|
|
118713
|
+
*/
|
|
118714
|
+
BusinessBroadcastListAction.prototype.listName = "";
|
|
118715
|
+
|
|
118716
|
+
/**
|
|
118717
|
+
* Creates a new BusinessBroadcastListAction instance using the specified properties.
|
|
118718
|
+
* @function create
|
|
118719
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118720
|
+
* @static
|
|
118721
|
+
* @param {SyncAction.SyncActionValue.IBusinessBroadcastListAction=} [properties] Properties to set
|
|
118722
|
+
* @returns {SyncAction.SyncActionValue.BusinessBroadcastListAction} BusinessBroadcastListAction instance
|
|
118723
|
+
*/
|
|
118724
|
+
BusinessBroadcastListAction.create = function create(properties) {
|
|
118725
|
+
return new BusinessBroadcastListAction(properties);
|
|
118726
|
+
};
|
|
118727
|
+
|
|
118728
|
+
/**
|
|
118729
|
+
* Encodes the specified BusinessBroadcastListAction message. Does not implicitly {@link SyncAction.SyncActionValue.BusinessBroadcastListAction.verify|verify} messages.
|
|
118730
|
+
* @function encode
|
|
118731
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118732
|
+
* @static
|
|
118733
|
+
* @param {SyncAction.SyncActionValue.IBusinessBroadcastListAction} message BusinessBroadcastListAction message or plain object to encode
|
|
118734
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
118735
|
+
* @returns {$protobuf.Writer} Writer
|
|
118736
|
+
*/
|
|
118737
|
+
BusinessBroadcastListAction.encode = function encode(message, writer) {
|
|
118738
|
+
if (!writer)
|
|
118739
|
+
writer = $Writer.create();
|
|
118740
|
+
if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted"))
|
|
118741
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deleted);
|
|
118742
|
+
if (message.phoneNumbers != null && message.phoneNumbers.length)
|
|
118743
|
+
for (var i = 0; i < message.phoneNumbers.length; ++i)
|
|
118744
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.phoneNumbers[i]);
|
|
118745
|
+
if (message.listName != null && Object.hasOwnProperty.call(message, "listName"))
|
|
118746
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.listName);
|
|
118747
|
+
return writer;
|
|
118748
|
+
};
|
|
118749
|
+
|
|
118750
|
+
/**
|
|
118751
|
+
* Encodes the specified BusinessBroadcastListAction message, length delimited. Does not implicitly {@link SyncAction.SyncActionValue.BusinessBroadcastListAction.verify|verify} messages.
|
|
118752
|
+
* @function encodeDelimited
|
|
118753
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118754
|
+
* @static
|
|
118755
|
+
* @param {SyncAction.SyncActionValue.IBusinessBroadcastListAction} message BusinessBroadcastListAction message or plain object to encode
|
|
118756
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
118757
|
+
* @returns {$protobuf.Writer} Writer
|
|
118758
|
+
*/
|
|
118759
|
+
BusinessBroadcastListAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
118760
|
+
return this.encode(message, writer).ldelim();
|
|
118761
|
+
};
|
|
118762
|
+
|
|
118763
|
+
/**
|
|
118764
|
+
* Decodes a BusinessBroadcastListAction message from the specified reader or buffer.
|
|
118765
|
+
* @function decode
|
|
118766
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118767
|
+
* @static
|
|
118768
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
118769
|
+
* @param {number} [length] Message length if known beforehand
|
|
118770
|
+
* @returns {SyncAction.SyncActionValue.BusinessBroadcastListAction} BusinessBroadcastListAction
|
|
118771
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
118772
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
118773
|
+
*/
|
|
118774
|
+
BusinessBroadcastListAction.decode = function decode(reader, length, error) {
|
|
118775
|
+
if (!(reader instanceof $Reader))
|
|
118776
|
+
reader = $Reader.create(reader);
|
|
118777
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SyncAction.SyncActionValue.BusinessBroadcastListAction();
|
|
118778
|
+
while (reader.pos < end) {
|
|
118779
|
+
var tag = reader.uint32();
|
|
118780
|
+
if (tag === error)
|
|
118781
|
+
break;
|
|
118782
|
+
switch (tag >>> 3) {
|
|
118783
|
+
case 1: {
|
|
118784
|
+
message.deleted = reader.bool();
|
|
118785
|
+
break;
|
|
118786
|
+
}
|
|
118787
|
+
case 2: {
|
|
118788
|
+
if (!(message.phoneNumbers && message.phoneNumbers.length))
|
|
118789
|
+
message.phoneNumbers = [];
|
|
118790
|
+
message.phoneNumbers.push(reader.string());
|
|
118791
|
+
break;
|
|
118792
|
+
}
|
|
118793
|
+
case 3: {
|
|
118794
|
+
message.listName = reader.string();
|
|
118795
|
+
break;
|
|
118796
|
+
}
|
|
118797
|
+
default:
|
|
118798
|
+
reader.skipType(tag & 7);
|
|
118799
|
+
break;
|
|
118800
|
+
}
|
|
118801
|
+
}
|
|
118802
|
+
return message;
|
|
118803
|
+
};
|
|
118804
|
+
|
|
118805
|
+
/**
|
|
118806
|
+
* Decodes a BusinessBroadcastListAction message from the specified reader or buffer, length delimited.
|
|
118807
|
+
* @function decodeDelimited
|
|
118808
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118809
|
+
* @static
|
|
118810
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
118811
|
+
* @returns {SyncAction.SyncActionValue.BusinessBroadcastListAction} BusinessBroadcastListAction
|
|
118812
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
118813
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
118814
|
+
*/
|
|
118815
|
+
BusinessBroadcastListAction.decodeDelimited = function decodeDelimited(reader) {
|
|
118816
|
+
if (!(reader instanceof $Reader))
|
|
118817
|
+
reader = new $Reader(reader);
|
|
118818
|
+
return this.decode(reader, reader.uint32());
|
|
118819
|
+
};
|
|
118820
|
+
|
|
118821
|
+
/**
|
|
118822
|
+
* Verifies a BusinessBroadcastListAction message.
|
|
118823
|
+
* @function verify
|
|
118824
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118825
|
+
* @static
|
|
118826
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
118827
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
118828
|
+
*/
|
|
118829
|
+
BusinessBroadcastListAction.verify = function verify(message) {
|
|
118830
|
+
if (typeof message !== "object" || message === null)
|
|
118831
|
+
return "object expected";
|
|
118832
|
+
if (message.deleted != null && message.hasOwnProperty("deleted"))
|
|
118833
|
+
if (typeof message.deleted !== "boolean")
|
|
118834
|
+
return "deleted: boolean expected";
|
|
118835
|
+
if (message.phoneNumbers != null && message.hasOwnProperty("phoneNumbers")) {
|
|
118836
|
+
if (!Array.isArray(message.phoneNumbers))
|
|
118837
|
+
return "phoneNumbers: array expected";
|
|
118838
|
+
for (var i = 0; i < message.phoneNumbers.length; ++i)
|
|
118839
|
+
if (!$util.isString(message.phoneNumbers[i]))
|
|
118840
|
+
return "phoneNumbers: string[] expected";
|
|
118841
|
+
}
|
|
118842
|
+
if (message.listName != null && message.hasOwnProperty("listName"))
|
|
118843
|
+
if (!$util.isString(message.listName))
|
|
118844
|
+
return "listName: string expected";
|
|
118845
|
+
return null;
|
|
118846
|
+
};
|
|
118847
|
+
|
|
118848
|
+
/**
|
|
118849
|
+
* Creates a BusinessBroadcastListAction message from a plain object. Also converts values to their respective internal types.
|
|
118850
|
+
* @function fromObject
|
|
118851
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118852
|
+
* @static
|
|
118853
|
+
* @param {Object.<string,*>} object Plain object
|
|
118854
|
+
* @returns {SyncAction.SyncActionValue.BusinessBroadcastListAction} BusinessBroadcastListAction
|
|
118855
|
+
*/
|
|
118856
|
+
BusinessBroadcastListAction.fromObject = function fromObject(object) {
|
|
118857
|
+
if (object instanceof $root.SyncAction.SyncActionValue.BusinessBroadcastListAction)
|
|
118858
|
+
return object;
|
|
118859
|
+
var message = new $root.SyncAction.SyncActionValue.BusinessBroadcastListAction();
|
|
118860
|
+
if (object.deleted != null)
|
|
118861
|
+
message.deleted = Boolean(object.deleted);
|
|
118862
|
+
if (object.phoneNumbers) {
|
|
118863
|
+
if (!Array.isArray(object.phoneNumbers))
|
|
118864
|
+
throw TypeError(".SyncAction.SyncActionValue.BusinessBroadcastListAction.phoneNumbers: array expected");
|
|
118865
|
+
message.phoneNumbers = [];
|
|
118866
|
+
for (var i = 0; i < object.phoneNumbers.length; ++i)
|
|
118867
|
+
message.phoneNumbers[i] = String(object.phoneNumbers[i]);
|
|
118868
|
+
}
|
|
118869
|
+
if (object.listName != null)
|
|
118870
|
+
message.listName = String(object.listName);
|
|
118871
|
+
return message;
|
|
118872
|
+
};
|
|
118873
|
+
|
|
118874
|
+
/**
|
|
118875
|
+
* Creates a plain object from a BusinessBroadcastListAction message. Also converts values to other types if specified.
|
|
118876
|
+
* @function toObject
|
|
118877
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118878
|
+
* @static
|
|
118879
|
+
* @param {SyncAction.SyncActionValue.BusinessBroadcastListAction} message BusinessBroadcastListAction
|
|
118880
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
118881
|
+
* @returns {Object.<string,*>} Plain object
|
|
118882
|
+
*/
|
|
118883
|
+
BusinessBroadcastListAction.toObject = function toObject(message, options) {
|
|
118884
|
+
if (!options)
|
|
118885
|
+
options = {};
|
|
118886
|
+
var object = {};
|
|
118887
|
+
if (options.arrays || options.defaults)
|
|
118888
|
+
object.phoneNumbers = [];
|
|
118889
|
+
if (options.defaults) {
|
|
118890
|
+
object.deleted = false;
|
|
118891
|
+
object.listName = "";
|
|
118892
|
+
}
|
|
118893
|
+
if (message.deleted != null && message.hasOwnProperty("deleted"))
|
|
118894
|
+
object.deleted = message.deleted;
|
|
118895
|
+
if (message.phoneNumbers && message.phoneNumbers.length) {
|
|
118896
|
+
object.phoneNumbers = [];
|
|
118897
|
+
for (var j = 0; j < message.phoneNumbers.length; ++j)
|
|
118898
|
+
object.phoneNumbers[j] = message.phoneNumbers[j];
|
|
118899
|
+
}
|
|
118900
|
+
if (message.listName != null && message.hasOwnProperty("listName"))
|
|
118901
|
+
object.listName = message.listName;
|
|
118902
|
+
return object;
|
|
118903
|
+
};
|
|
118904
|
+
|
|
118905
|
+
/**
|
|
118906
|
+
* Converts this BusinessBroadcastListAction to JSON.
|
|
118907
|
+
* @function toJSON
|
|
118908
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118909
|
+
* @instance
|
|
118910
|
+
* @returns {Object.<string,*>} JSON object
|
|
118911
|
+
*/
|
|
118912
|
+
BusinessBroadcastListAction.prototype.toJSON = function toJSON() {
|
|
118913
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
118914
|
+
};
|
|
118915
|
+
|
|
118916
|
+
/**
|
|
118917
|
+
* Gets the default type url for BusinessBroadcastListAction
|
|
118918
|
+
* @function getTypeUrl
|
|
118919
|
+
* @memberof SyncAction.SyncActionValue.BusinessBroadcastListAction
|
|
118920
|
+
* @static
|
|
118921
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
118922
|
+
* @returns {string} The default type url
|
|
118923
|
+
*/
|
|
118924
|
+
BusinessBroadcastListAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
118925
|
+
if (typeUrlPrefix === undefined) {
|
|
118926
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
118927
|
+
}
|
|
118928
|
+
return typeUrlPrefix + "/SyncAction.SyncActionValue.BusinessBroadcastListAction";
|
|
118929
|
+
};
|
|
118930
|
+
|
|
118931
|
+
return BusinessBroadcastListAction;
|
|
118932
|
+
})();
|
|
118933
|
+
|
|
117021
118934
|
SyncActionValue.CallLogAction = (function() {
|
|
117022
118935
|
|
|
117023
118936
|
/**
|
|
@@ -123802,6 +125715,211 @@ $root.SyncAction = (function() {
|
|
|
123802
125715
|
return MerchantPaymentPartnerAction;
|
|
123803
125716
|
})();
|
|
123804
125717
|
|
|
125718
|
+
SyncActionValue.MusicUserIdAction = (function() {
|
|
125719
|
+
|
|
125720
|
+
/**
|
|
125721
|
+
* Properties of a MusicUserIdAction.
|
|
125722
|
+
* @memberof SyncAction.SyncActionValue
|
|
125723
|
+
* @interface IMusicUserIdAction
|
|
125724
|
+
* @property {string|null} [musicUserId] MusicUserIdAction musicUserId
|
|
125725
|
+
*/
|
|
125726
|
+
|
|
125727
|
+
/**
|
|
125728
|
+
* Constructs a new MusicUserIdAction.
|
|
125729
|
+
* @memberof SyncAction.SyncActionValue
|
|
125730
|
+
* @classdesc Represents a MusicUserIdAction.
|
|
125731
|
+
* @implements IMusicUserIdAction
|
|
125732
|
+
* @constructor
|
|
125733
|
+
* @param {SyncAction.SyncActionValue.IMusicUserIdAction=} [properties] Properties to set
|
|
125734
|
+
*/
|
|
125735
|
+
function MusicUserIdAction(properties) {
|
|
125736
|
+
if (properties)
|
|
125737
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
125738
|
+
if (properties[keys[i]] != null)
|
|
125739
|
+
this[keys[i]] = properties[keys[i]];
|
|
125740
|
+
}
|
|
125741
|
+
|
|
125742
|
+
/**
|
|
125743
|
+
* MusicUserIdAction musicUserId.
|
|
125744
|
+
* @member {string} musicUserId
|
|
125745
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125746
|
+
* @instance
|
|
125747
|
+
*/
|
|
125748
|
+
MusicUserIdAction.prototype.musicUserId = "";
|
|
125749
|
+
|
|
125750
|
+
/**
|
|
125751
|
+
* Creates a new MusicUserIdAction instance using the specified properties.
|
|
125752
|
+
* @function create
|
|
125753
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125754
|
+
* @static
|
|
125755
|
+
* @param {SyncAction.SyncActionValue.IMusicUserIdAction=} [properties] Properties to set
|
|
125756
|
+
* @returns {SyncAction.SyncActionValue.MusicUserIdAction} MusicUserIdAction instance
|
|
125757
|
+
*/
|
|
125758
|
+
MusicUserIdAction.create = function create(properties) {
|
|
125759
|
+
return new MusicUserIdAction(properties);
|
|
125760
|
+
};
|
|
125761
|
+
|
|
125762
|
+
/**
|
|
125763
|
+
* Encodes the specified MusicUserIdAction message. Does not implicitly {@link SyncAction.SyncActionValue.MusicUserIdAction.verify|verify} messages.
|
|
125764
|
+
* @function encode
|
|
125765
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125766
|
+
* @static
|
|
125767
|
+
* @param {SyncAction.SyncActionValue.IMusicUserIdAction} message MusicUserIdAction message or plain object to encode
|
|
125768
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
125769
|
+
* @returns {$protobuf.Writer} Writer
|
|
125770
|
+
*/
|
|
125771
|
+
MusicUserIdAction.encode = function encode(message, writer) {
|
|
125772
|
+
if (!writer)
|
|
125773
|
+
writer = $Writer.create();
|
|
125774
|
+
if (message.musicUserId != null && Object.hasOwnProperty.call(message, "musicUserId"))
|
|
125775
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.musicUserId);
|
|
125776
|
+
return writer;
|
|
125777
|
+
};
|
|
125778
|
+
|
|
125779
|
+
/**
|
|
125780
|
+
* Encodes the specified MusicUserIdAction message, length delimited. Does not implicitly {@link SyncAction.SyncActionValue.MusicUserIdAction.verify|verify} messages.
|
|
125781
|
+
* @function encodeDelimited
|
|
125782
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125783
|
+
* @static
|
|
125784
|
+
* @param {SyncAction.SyncActionValue.IMusicUserIdAction} message MusicUserIdAction message or plain object to encode
|
|
125785
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
125786
|
+
* @returns {$protobuf.Writer} Writer
|
|
125787
|
+
*/
|
|
125788
|
+
MusicUserIdAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
125789
|
+
return this.encode(message, writer).ldelim();
|
|
125790
|
+
};
|
|
125791
|
+
|
|
125792
|
+
/**
|
|
125793
|
+
* Decodes a MusicUserIdAction message from the specified reader or buffer.
|
|
125794
|
+
* @function decode
|
|
125795
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125796
|
+
* @static
|
|
125797
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
125798
|
+
* @param {number} [length] Message length if known beforehand
|
|
125799
|
+
* @returns {SyncAction.SyncActionValue.MusicUserIdAction} MusicUserIdAction
|
|
125800
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
125801
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
125802
|
+
*/
|
|
125803
|
+
MusicUserIdAction.decode = function decode(reader, length, error) {
|
|
125804
|
+
if (!(reader instanceof $Reader))
|
|
125805
|
+
reader = $Reader.create(reader);
|
|
125806
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SyncAction.SyncActionValue.MusicUserIdAction();
|
|
125807
|
+
while (reader.pos < end) {
|
|
125808
|
+
var tag = reader.uint32();
|
|
125809
|
+
if (tag === error)
|
|
125810
|
+
break;
|
|
125811
|
+
switch (tag >>> 3) {
|
|
125812
|
+
case 1: {
|
|
125813
|
+
message.musicUserId = reader.string();
|
|
125814
|
+
break;
|
|
125815
|
+
}
|
|
125816
|
+
default:
|
|
125817
|
+
reader.skipType(tag & 7);
|
|
125818
|
+
break;
|
|
125819
|
+
}
|
|
125820
|
+
}
|
|
125821
|
+
return message;
|
|
125822
|
+
};
|
|
125823
|
+
|
|
125824
|
+
/**
|
|
125825
|
+
* Decodes a MusicUserIdAction message from the specified reader or buffer, length delimited.
|
|
125826
|
+
* @function decodeDelimited
|
|
125827
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125828
|
+
* @static
|
|
125829
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
125830
|
+
* @returns {SyncAction.SyncActionValue.MusicUserIdAction} MusicUserIdAction
|
|
125831
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
125832
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
125833
|
+
*/
|
|
125834
|
+
MusicUserIdAction.decodeDelimited = function decodeDelimited(reader) {
|
|
125835
|
+
if (!(reader instanceof $Reader))
|
|
125836
|
+
reader = new $Reader(reader);
|
|
125837
|
+
return this.decode(reader, reader.uint32());
|
|
125838
|
+
};
|
|
125839
|
+
|
|
125840
|
+
/**
|
|
125841
|
+
* Verifies a MusicUserIdAction message.
|
|
125842
|
+
* @function verify
|
|
125843
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125844
|
+
* @static
|
|
125845
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
125846
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
125847
|
+
*/
|
|
125848
|
+
MusicUserIdAction.verify = function verify(message) {
|
|
125849
|
+
if (typeof message !== "object" || message === null)
|
|
125850
|
+
return "object expected";
|
|
125851
|
+
if (message.musicUserId != null && message.hasOwnProperty("musicUserId"))
|
|
125852
|
+
if (!$util.isString(message.musicUserId))
|
|
125853
|
+
return "musicUserId: string expected";
|
|
125854
|
+
return null;
|
|
125855
|
+
};
|
|
125856
|
+
|
|
125857
|
+
/**
|
|
125858
|
+
* Creates a MusicUserIdAction message from a plain object. Also converts values to their respective internal types.
|
|
125859
|
+
* @function fromObject
|
|
125860
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125861
|
+
* @static
|
|
125862
|
+
* @param {Object.<string,*>} object Plain object
|
|
125863
|
+
* @returns {SyncAction.SyncActionValue.MusicUserIdAction} MusicUserIdAction
|
|
125864
|
+
*/
|
|
125865
|
+
MusicUserIdAction.fromObject = function fromObject(object) {
|
|
125866
|
+
if (object instanceof $root.SyncAction.SyncActionValue.MusicUserIdAction)
|
|
125867
|
+
return object;
|
|
125868
|
+
var message = new $root.SyncAction.SyncActionValue.MusicUserIdAction();
|
|
125869
|
+
if (object.musicUserId != null)
|
|
125870
|
+
message.musicUserId = String(object.musicUserId);
|
|
125871
|
+
return message;
|
|
125872
|
+
};
|
|
125873
|
+
|
|
125874
|
+
/**
|
|
125875
|
+
* Creates a plain object from a MusicUserIdAction message. Also converts values to other types if specified.
|
|
125876
|
+
* @function toObject
|
|
125877
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125878
|
+
* @static
|
|
125879
|
+
* @param {SyncAction.SyncActionValue.MusicUserIdAction} message MusicUserIdAction
|
|
125880
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
125881
|
+
* @returns {Object.<string,*>} Plain object
|
|
125882
|
+
*/
|
|
125883
|
+
MusicUserIdAction.toObject = function toObject(message, options) {
|
|
125884
|
+
if (!options)
|
|
125885
|
+
options = {};
|
|
125886
|
+
var object = {};
|
|
125887
|
+
if (options.defaults)
|
|
125888
|
+
object.musicUserId = "";
|
|
125889
|
+
if (message.musicUserId != null && message.hasOwnProperty("musicUserId"))
|
|
125890
|
+
object.musicUserId = message.musicUserId;
|
|
125891
|
+
return object;
|
|
125892
|
+
};
|
|
125893
|
+
|
|
125894
|
+
/**
|
|
125895
|
+
* Converts this MusicUserIdAction to JSON.
|
|
125896
|
+
* @function toJSON
|
|
125897
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125898
|
+
* @instance
|
|
125899
|
+
* @returns {Object.<string,*>} JSON object
|
|
125900
|
+
*/
|
|
125901
|
+
MusicUserIdAction.prototype.toJSON = function toJSON() {
|
|
125902
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
125903
|
+
};
|
|
125904
|
+
|
|
125905
|
+
/**
|
|
125906
|
+
* Gets the default type url for MusicUserIdAction
|
|
125907
|
+
* @function getTypeUrl
|
|
125908
|
+
* @memberof SyncAction.SyncActionValue.MusicUserIdAction
|
|
125909
|
+
* @static
|
|
125910
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
125911
|
+
* @returns {string} The default type url
|
|
125912
|
+
*/
|
|
125913
|
+
MusicUserIdAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
125914
|
+
if (typeUrlPrefix === undefined) {
|
|
125915
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
125916
|
+
}
|
|
125917
|
+
return typeUrlPrefix + "/SyncAction.SyncActionValue.MusicUserIdAction";
|
|
125918
|
+
};
|
|
125919
|
+
|
|
125920
|
+
return MusicUserIdAction;
|
|
125921
|
+
})();
|
|
125922
|
+
|
|
123805
125923
|
SyncActionValue.MuteAction = (function() {
|
|
123806
125924
|
|
|
123807
125925
|
/**
|
|
@@ -128458,6 +130576,8 @@ $root.SyncAction = (function() {
|
|
|
128458
130576
|
* @property {boolean|null} [isFavorite] StickerAction isFavorite
|
|
128459
130577
|
* @property {number|null} [deviceIdHint] StickerAction deviceIdHint
|
|
128460
130578
|
* @property {boolean|null} [isLottie] StickerAction isLottie
|
|
130579
|
+
* @property {string|null} [imageHash] StickerAction imageHash
|
|
130580
|
+
* @property {boolean|null} [isAvatarSticker] StickerAction isAvatarSticker
|
|
128461
130581
|
*/
|
|
128462
130582
|
|
|
128463
130583
|
/**
|
|
@@ -128563,6 +130683,22 @@ $root.SyncAction = (function() {
|
|
|
128563
130683
|
*/
|
|
128564
130684
|
StickerAction.prototype.isLottie = false;
|
|
128565
130685
|
|
|
130686
|
+
/**
|
|
130687
|
+
* StickerAction imageHash.
|
|
130688
|
+
* @member {string} imageHash
|
|
130689
|
+
* @memberof SyncAction.SyncActionValue.StickerAction
|
|
130690
|
+
* @instance
|
|
130691
|
+
*/
|
|
130692
|
+
StickerAction.prototype.imageHash = "";
|
|
130693
|
+
|
|
130694
|
+
/**
|
|
130695
|
+
* StickerAction isAvatarSticker.
|
|
130696
|
+
* @member {boolean} isAvatarSticker
|
|
130697
|
+
* @memberof SyncAction.SyncActionValue.StickerAction
|
|
130698
|
+
* @instance
|
|
130699
|
+
*/
|
|
130700
|
+
StickerAction.prototype.isAvatarSticker = false;
|
|
130701
|
+
|
|
128566
130702
|
/**
|
|
128567
130703
|
* Creates a new StickerAction instance using the specified properties.
|
|
128568
130704
|
* @function create
|
|
@@ -128609,6 +130745,10 @@ $root.SyncAction = (function() {
|
|
|
128609
130745
|
writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.deviceIdHint);
|
|
128610
130746
|
if (message.isLottie != null && Object.hasOwnProperty.call(message, "isLottie"))
|
|
128611
130747
|
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.isLottie);
|
|
130748
|
+
if (message.imageHash != null && Object.hasOwnProperty.call(message, "imageHash"))
|
|
130749
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.imageHash);
|
|
130750
|
+
if (message.isAvatarSticker != null && Object.hasOwnProperty.call(message, "isAvatarSticker"))
|
|
130751
|
+
writer.uint32(/* id 13, wireType 0 =*/104).bool(message.isAvatarSticker);
|
|
128612
130752
|
return writer;
|
|
128613
130753
|
};
|
|
128614
130754
|
|
|
@@ -128689,6 +130829,14 @@ $root.SyncAction = (function() {
|
|
|
128689
130829
|
message.isLottie = reader.bool();
|
|
128690
130830
|
break;
|
|
128691
130831
|
}
|
|
130832
|
+
case 12: {
|
|
130833
|
+
message.imageHash = reader.string();
|
|
130834
|
+
break;
|
|
130835
|
+
}
|
|
130836
|
+
case 13: {
|
|
130837
|
+
message.isAvatarSticker = reader.bool();
|
|
130838
|
+
break;
|
|
130839
|
+
}
|
|
128692
130840
|
default:
|
|
128693
130841
|
reader.skipType(tag & 7);
|
|
128694
130842
|
break;
|
|
@@ -128757,6 +130905,12 @@ $root.SyncAction = (function() {
|
|
|
128757
130905
|
if (message.isLottie != null && message.hasOwnProperty("isLottie"))
|
|
128758
130906
|
if (typeof message.isLottie !== "boolean")
|
|
128759
130907
|
return "isLottie: boolean expected";
|
|
130908
|
+
if (message.imageHash != null && message.hasOwnProperty("imageHash"))
|
|
130909
|
+
if (!$util.isString(message.imageHash))
|
|
130910
|
+
return "imageHash: string expected";
|
|
130911
|
+
if (message.isAvatarSticker != null && message.hasOwnProperty("isAvatarSticker"))
|
|
130912
|
+
if (typeof message.isAvatarSticker !== "boolean")
|
|
130913
|
+
return "isAvatarSticker: boolean expected";
|
|
128760
130914
|
return null;
|
|
128761
130915
|
};
|
|
128762
130916
|
|
|
@@ -128807,6 +130961,10 @@ $root.SyncAction = (function() {
|
|
|
128807
130961
|
message.deviceIdHint = object.deviceIdHint >>> 0;
|
|
128808
130962
|
if (object.isLottie != null)
|
|
128809
130963
|
message.isLottie = Boolean(object.isLottie);
|
|
130964
|
+
if (object.imageHash != null)
|
|
130965
|
+
message.imageHash = String(object.imageHash);
|
|
130966
|
+
if (object.isAvatarSticker != null)
|
|
130967
|
+
message.isAvatarSticker = Boolean(object.isAvatarSticker);
|
|
128810
130968
|
return message;
|
|
128811
130969
|
};
|
|
128812
130970
|
|
|
@@ -128851,6 +131009,8 @@ $root.SyncAction = (function() {
|
|
|
128851
131009
|
object.isFavorite = false;
|
|
128852
131010
|
object.deviceIdHint = 0;
|
|
128853
131011
|
object.isLottie = false;
|
|
131012
|
+
object.imageHash = "";
|
|
131013
|
+
object.isAvatarSticker = false;
|
|
128854
131014
|
}
|
|
128855
131015
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
128856
131016
|
object.url = message.url;
|
|
@@ -128877,6 +131037,10 @@ $root.SyncAction = (function() {
|
|
|
128877
131037
|
object.deviceIdHint = message.deviceIdHint;
|
|
128878
131038
|
if (message.isLottie != null && message.hasOwnProperty("isLottie"))
|
|
128879
131039
|
object.isLottie = message.isLottie;
|
|
131040
|
+
if (message.imageHash != null && message.hasOwnProperty("imageHash"))
|
|
131041
|
+
object.imageHash = message.imageHash;
|
|
131042
|
+
if (message.isAvatarSticker != null && message.hasOwnProperty("isAvatarSticker"))
|
|
131043
|
+
object.isAvatarSticker = message.isAvatarSticker;
|
|
128880
131044
|
return object;
|
|
128881
131045
|
};
|
|
128882
131046
|
|