vialeys 0.0.1 → 0.0.2
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/README.md +11 -5
- package/WAProto/AICommon/AICommon.js +13991 -9169
- package/WAProto/AICommon/AICommon.proto +110 -3
- package/WAProto/CompanionReg/CompanionReg.js +114 -0
- package/WAProto/CompanionReg/CompanionReg.proto +3 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.js +652 -0
- package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +19 -0
- package/WAProto/E2E/E2E.js +77193 -51248
- package/WAProto/E2E/E2E.proto +68 -12
- package/WAProto/HistorySync/HistorySync.js +3375 -178
- package/WAProto/HistorySync/HistorySync.proto +3 -3
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +98 -49
- package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +2 -2
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +75226 -48422
- package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +6 -0
- package/WAProto/StatusAttributions/StatusAttributions.js +21 -0
- package/WAProto/StatusAttributions/StatusAttributions.proto +3 -0
- package/WAProto/SyncAction/SyncAction.js +9423 -2023
- package/WAProto/SyncAction/SyncAction.proto +208 -15
- package/WAProto/Wa6/Wa6.js +83 -0
- package/WAProto/Wa6/Wa6.proto +3 -0
- package/WAProto/Web/Web.js +92664 -63403
- package/WAProto/Web/Web.proto +31 -13
- package/engine-requirements.js +9 -7
- package/lib/Defaults/baileys-version.json +2 -2
- package/lib/Defaults/connection.js +51 -0
- package/lib/Defaults/constants.js +62 -0
- package/lib/Defaults/history.js +17 -0
- package/lib/Defaults/index.js +36 -142
- package/lib/Defaults/media.js +48 -0
- package/lib/Defaults/prefix.js +18 -0
- package/lib/Signal/Group/group-session-builder.js +10 -42
- package/lib/Signal/Group/group_cipher.js +9 -6
- package/lib/Signal/Group/index.js +39 -53
- package/lib/Signal/Group/keyhelper.js +8 -41
- package/lib/Signal/Group/sender-chain-key.js +4 -4
- package/lib/Signal/Group/sender-key-distribution-message.js +5 -5
- package/lib/Signal/Group/sender-key-message.js +12 -8
- package/lib/Signal/Group/sender-key-state.js +4 -4
- package/lib/Signal/Group/sender-message-key.js +2 -2
- package/lib/Signal/libsignal.js +45 -69
- package/lib/Signal/lid-mapping.js +15 -11
- package/lib/Socket/Client/types.js +2 -2
- package/lib/Socket/Client/websocket.js +16 -14
- package/lib/Socket/business.js +41 -32
- package/lib/Socket/chats.js +123 -98
- package/lib/Socket/community.js +50 -40
- package/lib/Socket/groups.js +59 -47
- package/lib/Socket/index.js +4 -4
- package/lib/Socket/messages-recv.js +226 -171
- package/lib/Socket/messages-send.js +187 -143
- package/lib/Socket/newsletter.js +61 -47
- package/lib/Socket/socket.js +133 -90
- package/lib/Socket/usync.js +6 -6
- package/lib/Store/index.js +27 -11
- package/lib/Store/make-cache-manager-store.js +14 -15
- package/lib/Store/make-in-memory-store.js +28 -24
- package/lib/Types/LabelAssociation.js +2 -2
- package/lib/Types/Message.js +6 -6
- package/lib/Types/MexUpdates.js +5 -4
- package/lib/Types/State.js +4 -4
- package/lib/Types/index.js +28 -12
- package/lib/Utils/auth-utils.js +28 -26
- package/lib/Utils/baileys-event-stream.js +68 -69
- package/lib/Utils/business.js +63 -53
- package/lib/Utils/chat-utils.js +81 -71
- package/lib/Utils/crypto.js +25 -45
- package/lib/Utils/decode-wa-message.js +319 -311
- package/lib/Utils/event-buffer.js +21 -22
- package/lib/Utils/generics.js +103 -73
- package/lib/Utils/history.js +21 -21
- package/lib/Utils/index.js +27 -13
- package/lib/Utils/link-preview.js +7 -30
- package/lib/Utils/logger.js +5 -5
- package/lib/Utils/lt-hash.js +3 -3
- package/lib/Utils/message-retry-manager.js +4 -4
- package/lib/Utils/messages-media.js +104 -109
- package/lib/Utils/messages.js +203 -171
- package/lib/Utils/noise-handler.js +28 -19
- package/lib/Utils/process-message.js +370 -136
- package/lib/Utils/signal.js +36 -25
- package/lib/Utils/use-multi-file-auth-state.js +18 -22
- package/lib/Utils/validate-connection.js +52 -45
- package/lib/WABinary/decode.js +6 -32
- package/lib/WABinary/encode.js +3 -29
- package/lib/WABinary/generic-utils.js +4 -4
- package/lib/WABinary/index.js +27 -11
- package/lib/WAM/encode.js +16 -8
- package/lib/WAM/index.js +27 -11
- package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +20 -16
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +7 -4
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +2 -2
- package/lib/WAUSync/Protocols/USyncLIDProtocol.js +0 -2
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +2 -2
- package/lib/WAUSync/Protocols/index.js +27 -11
- package/lib/WAUSync/USyncQuery.js +17 -10
- package/lib/WAUSync/index.js +27 -11
- package/lib/index.js +62 -37
- package/package.json +1 -1
- package/WAProto/index.d.ts +0 -55
- package/lib/index.d.ts +0 -13
|
@@ -16086,10 +16086,13 @@ $root.E2E = (function() {
|
|
|
16086
16086
|
* @property {string|null} [artworkDirectPath] EmbeddedMusic artworkDirectPath
|
|
16087
16087
|
* @property {Uint8Array|null} [artworkSha256] EmbeddedMusic artworkSha256
|
|
16088
16088
|
* @property {Uint8Array|null} [artworkEncSha256] EmbeddedMusic artworkEncSha256
|
|
16089
|
-
* @property {Uint8Array|null} [artworkMediaKey] EmbeddedMusic artworkMediaKey
|
|
16090
16089
|
* @property {string|null} [artistAttribution] EmbeddedMusic artistAttribution
|
|
16091
16090
|
* @property {Uint8Array|null} [countryBlocklist] EmbeddedMusic countryBlocklist
|
|
16092
16091
|
* @property {boolean|null} [isExplicit] EmbeddedMusic isExplicit
|
|
16092
|
+
* @property {Uint8Array|null} [artworkMediaKey] EmbeddedMusic artworkMediaKey
|
|
16093
|
+
* @property {number|Long|null} [musicSongStartTimeInMs] EmbeddedMusic musicSongStartTimeInMs
|
|
16094
|
+
* @property {number|Long|null} [derivedContentStartTimeInMs] EmbeddedMusic derivedContentStartTimeInMs
|
|
16095
|
+
* @property {number|Long|null} [overlapDurationInMs] EmbeddedMusic overlapDurationInMs
|
|
16093
16096
|
*/
|
|
16094
16097
|
|
|
16095
16098
|
/**
|
|
@@ -16163,14 +16166,6 @@ $root.E2E = (function() {
|
|
|
16163
16166
|
*/
|
|
16164
16167
|
EmbeddedMusic.prototype.artworkEncSha256 = $util.newBuffer([]);
|
|
16165
16168
|
|
|
16166
|
-
/**
|
|
16167
|
-
* EmbeddedMusic artworkMediaKey.
|
|
16168
|
-
* @member {Uint8Array} artworkMediaKey
|
|
16169
|
-
* @memberof E2E.EmbeddedMusic
|
|
16170
|
-
* @instance
|
|
16171
|
-
*/
|
|
16172
|
-
EmbeddedMusic.prototype.artworkMediaKey = $util.newBuffer([]);
|
|
16173
|
-
|
|
16174
16169
|
/**
|
|
16175
16170
|
* EmbeddedMusic artistAttribution.
|
|
16176
16171
|
* @member {string} artistAttribution
|
|
@@ -16195,6 +16190,38 @@ $root.E2E = (function() {
|
|
|
16195
16190
|
*/
|
|
16196
16191
|
EmbeddedMusic.prototype.isExplicit = false;
|
|
16197
16192
|
|
|
16193
|
+
/**
|
|
16194
|
+
* EmbeddedMusic artworkMediaKey.
|
|
16195
|
+
* @member {Uint8Array} artworkMediaKey
|
|
16196
|
+
* @memberof E2E.EmbeddedMusic
|
|
16197
|
+
* @instance
|
|
16198
|
+
*/
|
|
16199
|
+
EmbeddedMusic.prototype.artworkMediaKey = $util.newBuffer([]);
|
|
16200
|
+
|
|
16201
|
+
/**
|
|
16202
|
+
* EmbeddedMusic musicSongStartTimeInMs.
|
|
16203
|
+
* @member {number|Long} musicSongStartTimeInMs
|
|
16204
|
+
* @memberof E2E.EmbeddedMusic
|
|
16205
|
+
* @instance
|
|
16206
|
+
*/
|
|
16207
|
+
EmbeddedMusic.prototype.musicSongStartTimeInMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
16208
|
+
|
|
16209
|
+
/**
|
|
16210
|
+
* EmbeddedMusic derivedContentStartTimeInMs.
|
|
16211
|
+
* @member {number|Long} derivedContentStartTimeInMs
|
|
16212
|
+
* @memberof E2E.EmbeddedMusic
|
|
16213
|
+
* @instance
|
|
16214
|
+
*/
|
|
16215
|
+
EmbeddedMusic.prototype.derivedContentStartTimeInMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
16216
|
+
|
|
16217
|
+
/**
|
|
16218
|
+
* EmbeddedMusic overlapDurationInMs.
|
|
16219
|
+
* @member {number|Long} overlapDurationInMs
|
|
16220
|
+
* @memberof E2E.EmbeddedMusic
|
|
16221
|
+
* @instance
|
|
16222
|
+
*/
|
|
16223
|
+
EmbeddedMusic.prototype.overlapDurationInMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
16224
|
+
|
|
16198
16225
|
/**
|
|
16199
16226
|
* Creates a new EmbeddedMusic instance using the specified properties.
|
|
16200
16227
|
* @function create
|
|
@@ -16241,6 +16268,12 @@ $root.E2E = (function() {
|
|
|
16241
16268
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isExplicit);
|
|
16242
16269
|
if (message.artworkMediaKey != null && Object.hasOwnProperty.call(message, "artworkMediaKey"))
|
|
16243
16270
|
writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.artworkMediaKey);
|
|
16271
|
+
if (message.musicSongStartTimeInMs != null && Object.hasOwnProperty.call(message, "musicSongStartTimeInMs"))
|
|
16272
|
+
writer.uint32(/* id 12, wireType 0 =*/96).int64(message.musicSongStartTimeInMs);
|
|
16273
|
+
if (message.derivedContentStartTimeInMs != null && Object.hasOwnProperty.call(message, "derivedContentStartTimeInMs"))
|
|
16274
|
+
writer.uint32(/* id 13, wireType 0 =*/104).int64(message.derivedContentStartTimeInMs);
|
|
16275
|
+
if (message.overlapDurationInMs != null && Object.hasOwnProperty.call(message, "overlapDurationInMs"))
|
|
16276
|
+
writer.uint32(/* id 14, wireType 0 =*/112).int64(message.overlapDurationInMs);
|
|
16244
16277
|
return writer;
|
|
16245
16278
|
};
|
|
16246
16279
|
|
|
@@ -16305,10 +16338,6 @@ $root.E2E = (function() {
|
|
|
16305
16338
|
message.artworkEncSha256 = reader.bytes();
|
|
16306
16339
|
break;
|
|
16307
16340
|
}
|
|
16308
|
-
case 11: {
|
|
16309
|
-
message.artworkMediaKey = reader.bytes();
|
|
16310
|
-
break;
|
|
16311
|
-
}
|
|
16312
16341
|
case 8: {
|
|
16313
16342
|
message.artistAttribution = reader.string();
|
|
16314
16343
|
break;
|
|
@@ -16321,6 +16350,22 @@ $root.E2E = (function() {
|
|
|
16321
16350
|
message.isExplicit = reader.bool();
|
|
16322
16351
|
break;
|
|
16323
16352
|
}
|
|
16353
|
+
case 11: {
|
|
16354
|
+
message.artworkMediaKey = reader.bytes();
|
|
16355
|
+
break;
|
|
16356
|
+
}
|
|
16357
|
+
case 12: {
|
|
16358
|
+
message.musicSongStartTimeInMs = reader.int64();
|
|
16359
|
+
break;
|
|
16360
|
+
}
|
|
16361
|
+
case 13: {
|
|
16362
|
+
message.derivedContentStartTimeInMs = reader.int64();
|
|
16363
|
+
break;
|
|
16364
|
+
}
|
|
16365
|
+
case 14: {
|
|
16366
|
+
message.overlapDurationInMs = reader.int64();
|
|
16367
|
+
break;
|
|
16368
|
+
}
|
|
16324
16369
|
default:
|
|
16325
16370
|
reader.skipType(tag & 7);
|
|
16326
16371
|
break;
|
|
@@ -16377,9 +16422,6 @@ $root.E2E = (function() {
|
|
|
16377
16422
|
if (message.artworkEncSha256 != null && message.hasOwnProperty("artworkEncSha256"))
|
|
16378
16423
|
if (!(message.artworkEncSha256 && typeof message.artworkEncSha256.length === "number" || $util.isString(message.artworkEncSha256)))
|
|
16379
16424
|
return "artworkEncSha256: buffer expected";
|
|
16380
|
-
if (message.artworkMediaKey != null && message.hasOwnProperty("artworkMediaKey"))
|
|
16381
|
-
if (!(message.artworkMediaKey && typeof message.artworkMediaKey.length === "number" || $util.isString(message.artworkMediaKey)))
|
|
16382
|
-
return "artworkMediaKey: buffer expected";
|
|
16383
16425
|
if (message.artistAttribution != null && message.hasOwnProperty("artistAttribution"))
|
|
16384
16426
|
if (!$util.isString(message.artistAttribution))
|
|
16385
16427
|
return "artistAttribution: string expected";
|
|
@@ -16389,6 +16431,18 @@ $root.E2E = (function() {
|
|
|
16389
16431
|
if (message.isExplicit != null && message.hasOwnProperty("isExplicit"))
|
|
16390
16432
|
if (typeof message.isExplicit !== "boolean")
|
|
16391
16433
|
return "isExplicit: boolean expected";
|
|
16434
|
+
if (message.artworkMediaKey != null && message.hasOwnProperty("artworkMediaKey"))
|
|
16435
|
+
if (!(message.artworkMediaKey && typeof message.artworkMediaKey.length === "number" || $util.isString(message.artworkMediaKey)))
|
|
16436
|
+
return "artworkMediaKey: buffer expected";
|
|
16437
|
+
if (message.musicSongStartTimeInMs != null && message.hasOwnProperty("musicSongStartTimeInMs"))
|
|
16438
|
+
if (!$util.isInteger(message.musicSongStartTimeInMs) && !(message.musicSongStartTimeInMs && $util.isInteger(message.musicSongStartTimeInMs.low) && $util.isInteger(message.musicSongStartTimeInMs.high)))
|
|
16439
|
+
return "musicSongStartTimeInMs: integer|Long expected";
|
|
16440
|
+
if (message.derivedContentStartTimeInMs != null && message.hasOwnProperty("derivedContentStartTimeInMs"))
|
|
16441
|
+
if (!$util.isInteger(message.derivedContentStartTimeInMs) && !(message.derivedContentStartTimeInMs && $util.isInteger(message.derivedContentStartTimeInMs.low) && $util.isInteger(message.derivedContentStartTimeInMs.high)))
|
|
16442
|
+
return "derivedContentStartTimeInMs: integer|Long expected";
|
|
16443
|
+
if (message.overlapDurationInMs != null && message.hasOwnProperty("overlapDurationInMs"))
|
|
16444
|
+
if (!$util.isInteger(message.overlapDurationInMs) && !(message.overlapDurationInMs && $util.isInteger(message.overlapDurationInMs.low) && $util.isInteger(message.overlapDurationInMs.high)))
|
|
16445
|
+
return "overlapDurationInMs: integer|Long expected";
|
|
16392
16446
|
return null;
|
|
16393
16447
|
};
|
|
16394
16448
|
|
|
@@ -16424,11 +16478,6 @@ $root.E2E = (function() {
|
|
|
16424
16478
|
$util.base64.decode(object.artworkEncSha256, message.artworkEncSha256 = $util.newBuffer($util.base64.length(object.artworkEncSha256)), 0);
|
|
16425
16479
|
else if (object.artworkEncSha256.length >= 0)
|
|
16426
16480
|
message.artworkEncSha256 = object.artworkEncSha256;
|
|
16427
|
-
if (object.artworkMediaKey != null)
|
|
16428
|
-
if (typeof object.artworkMediaKey === "string")
|
|
16429
|
-
$util.base64.decode(object.artworkMediaKey, message.artworkMediaKey = $util.newBuffer($util.base64.length(object.artworkMediaKey)), 0);
|
|
16430
|
-
else if (object.artworkMediaKey.length >= 0)
|
|
16431
|
-
message.artworkMediaKey = object.artworkMediaKey;
|
|
16432
16481
|
if (object.artistAttribution != null)
|
|
16433
16482
|
message.artistAttribution = String(object.artistAttribution);
|
|
16434
16483
|
if (object.countryBlocklist != null)
|
|
@@ -16438,6 +16487,38 @@ $root.E2E = (function() {
|
|
|
16438
16487
|
message.countryBlocklist = object.countryBlocklist;
|
|
16439
16488
|
if (object.isExplicit != null)
|
|
16440
16489
|
message.isExplicit = Boolean(object.isExplicit);
|
|
16490
|
+
if (object.artworkMediaKey != null)
|
|
16491
|
+
if (typeof object.artworkMediaKey === "string")
|
|
16492
|
+
$util.base64.decode(object.artworkMediaKey, message.artworkMediaKey = $util.newBuffer($util.base64.length(object.artworkMediaKey)), 0);
|
|
16493
|
+
else if (object.artworkMediaKey.length >= 0)
|
|
16494
|
+
message.artworkMediaKey = object.artworkMediaKey;
|
|
16495
|
+
if (object.musicSongStartTimeInMs != null)
|
|
16496
|
+
if ($util.Long)
|
|
16497
|
+
(message.musicSongStartTimeInMs = $util.Long.fromValue(object.musicSongStartTimeInMs)).unsigned = false;
|
|
16498
|
+
else if (typeof object.musicSongStartTimeInMs === "string")
|
|
16499
|
+
message.musicSongStartTimeInMs = parseInt(object.musicSongStartTimeInMs, 10);
|
|
16500
|
+
else if (typeof object.musicSongStartTimeInMs === "number")
|
|
16501
|
+
message.musicSongStartTimeInMs = object.musicSongStartTimeInMs;
|
|
16502
|
+
else if (typeof object.musicSongStartTimeInMs === "object")
|
|
16503
|
+
message.musicSongStartTimeInMs = new $util.LongBits(object.musicSongStartTimeInMs.low >>> 0, object.musicSongStartTimeInMs.high >>> 0).toNumber();
|
|
16504
|
+
if (object.derivedContentStartTimeInMs != null)
|
|
16505
|
+
if ($util.Long)
|
|
16506
|
+
(message.derivedContentStartTimeInMs = $util.Long.fromValue(object.derivedContentStartTimeInMs)).unsigned = false;
|
|
16507
|
+
else if (typeof object.derivedContentStartTimeInMs === "string")
|
|
16508
|
+
message.derivedContentStartTimeInMs = parseInt(object.derivedContentStartTimeInMs, 10);
|
|
16509
|
+
else if (typeof object.derivedContentStartTimeInMs === "number")
|
|
16510
|
+
message.derivedContentStartTimeInMs = object.derivedContentStartTimeInMs;
|
|
16511
|
+
else if (typeof object.derivedContentStartTimeInMs === "object")
|
|
16512
|
+
message.derivedContentStartTimeInMs = new $util.LongBits(object.derivedContentStartTimeInMs.low >>> 0, object.derivedContentStartTimeInMs.high >>> 0).toNumber();
|
|
16513
|
+
if (object.overlapDurationInMs != null)
|
|
16514
|
+
if ($util.Long)
|
|
16515
|
+
(message.overlapDurationInMs = $util.Long.fromValue(object.overlapDurationInMs)).unsigned = false;
|
|
16516
|
+
else if (typeof object.overlapDurationInMs === "string")
|
|
16517
|
+
message.overlapDurationInMs = parseInt(object.overlapDurationInMs, 10);
|
|
16518
|
+
else if (typeof object.overlapDurationInMs === "number")
|
|
16519
|
+
message.overlapDurationInMs = object.overlapDurationInMs;
|
|
16520
|
+
else if (typeof object.overlapDurationInMs === "object")
|
|
16521
|
+
message.overlapDurationInMs = new $util.LongBits(object.overlapDurationInMs.low >>> 0, object.overlapDurationInMs.high >>> 0).toNumber();
|
|
16441
16522
|
return message;
|
|
16442
16523
|
};
|
|
16443
16524
|
|
|
@@ -16490,6 +16571,21 @@ $root.E2E = (function() {
|
|
|
16490
16571
|
if (options.bytes !== Array)
|
|
16491
16572
|
object.artworkMediaKey = $util.newBuffer(object.artworkMediaKey);
|
|
16492
16573
|
}
|
|
16574
|
+
if ($util.Long) {
|
|
16575
|
+
var long = new $util.Long(0, 0, false);
|
|
16576
|
+
object.musicSongStartTimeInMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
16577
|
+
} else
|
|
16578
|
+
object.musicSongStartTimeInMs = options.longs === String ? "0" : 0;
|
|
16579
|
+
if ($util.Long) {
|
|
16580
|
+
var long = new $util.Long(0, 0, false);
|
|
16581
|
+
object.derivedContentStartTimeInMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
16582
|
+
} else
|
|
16583
|
+
object.derivedContentStartTimeInMs = options.longs === String ? "0" : 0;
|
|
16584
|
+
if ($util.Long) {
|
|
16585
|
+
var long = new $util.Long(0, 0, false);
|
|
16586
|
+
object.overlapDurationInMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
16587
|
+
} else
|
|
16588
|
+
object.overlapDurationInMs = options.longs === String ? "0" : 0;
|
|
16493
16589
|
}
|
|
16494
16590
|
if (message.musicContentMediaId != null && message.hasOwnProperty("musicContentMediaId"))
|
|
16495
16591
|
object.musicContentMediaId = message.musicContentMediaId;
|
|
@@ -16513,6 +16609,21 @@ $root.E2E = (function() {
|
|
|
16513
16609
|
object.isExplicit = message.isExplicit;
|
|
16514
16610
|
if (message.artworkMediaKey != null && message.hasOwnProperty("artworkMediaKey"))
|
|
16515
16611
|
object.artworkMediaKey = options.bytes === String ? $util.base64.encode(message.artworkMediaKey, 0, message.artworkMediaKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.artworkMediaKey) : message.artworkMediaKey;
|
|
16612
|
+
if (message.musicSongStartTimeInMs != null && message.hasOwnProperty("musicSongStartTimeInMs"))
|
|
16613
|
+
if (typeof message.musicSongStartTimeInMs === "number")
|
|
16614
|
+
object.musicSongStartTimeInMs = options.longs === String ? String(message.musicSongStartTimeInMs) : message.musicSongStartTimeInMs;
|
|
16615
|
+
else
|
|
16616
|
+
object.musicSongStartTimeInMs = options.longs === String ? $util.Long.prototype.toString.call(message.musicSongStartTimeInMs) : options.longs === Number ? new $util.LongBits(message.musicSongStartTimeInMs.low >>> 0, message.musicSongStartTimeInMs.high >>> 0).toNumber() : message.musicSongStartTimeInMs;
|
|
16617
|
+
if (message.derivedContentStartTimeInMs != null && message.hasOwnProperty("derivedContentStartTimeInMs"))
|
|
16618
|
+
if (typeof message.derivedContentStartTimeInMs === "number")
|
|
16619
|
+
object.derivedContentStartTimeInMs = options.longs === String ? String(message.derivedContentStartTimeInMs) : message.derivedContentStartTimeInMs;
|
|
16620
|
+
else
|
|
16621
|
+
object.derivedContentStartTimeInMs = options.longs === String ? $util.Long.prototype.toString.call(message.derivedContentStartTimeInMs) : options.longs === Number ? new $util.LongBits(message.derivedContentStartTimeInMs.low >>> 0, message.derivedContentStartTimeInMs.high >>> 0).toNumber() : message.derivedContentStartTimeInMs;
|
|
16622
|
+
if (message.overlapDurationInMs != null && message.hasOwnProperty("overlapDurationInMs"))
|
|
16623
|
+
if (typeof message.overlapDurationInMs === "number")
|
|
16624
|
+
object.overlapDurationInMs = options.longs === String ? String(message.overlapDurationInMs) : message.overlapDurationInMs;
|
|
16625
|
+
else
|
|
16626
|
+
object.overlapDurationInMs = options.longs === String ? $util.Long.prototype.toString.call(message.overlapDurationInMs) : options.longs === Number ? new $util.LongBits(message.overlapDurationInMs.low >>> 0, message.overlapDurationInMs.high >>> 0).toNumber() : message.overlapDurationInMs;
|
|
16516
16627
|
return object;
|
|
16517
16628
|
};
|
|
16518
16629
|
|
|
@@ -18374,6 +18485,8 @@ $root.E2E = (function() {
|
|
|
18374
18485
|
case 15:
|
|
18375
18486
|
case 16:
|
|
18376
18487
|
case 17:
|
|
18488
|
+
case 18:
|
|
18489
|
+
case 19:
|
|
18377
18490
|
break;
|
|
18378
18491
|
}
|
|
18379
18492
|
if (message.parentMessageKey != null && message.hasOwnProperty("parentMessageKey")) {
|
|
@@ -18478,6 +18591,14 @@ $root.E2E = (function() {
|
|
|
18478
18591
|
case 17:
|
|
18479
18592
|
message.associationType = 17;
|
|
18480
18593
|
break;
|
|
18594
|
+
case "STATUS_REACTION":
|
|
18595
|
+
case 18:
|
|
18596
|
+
message.associationType = 18;
|
|
18597
|
+
break;
|
|
18598
|
+
case "HEVC_VIDEO_DUAL_UPLOAD":
|
|
18599
|
+
case 19:
|
|
18600
|
+
message.associationType = 19;
|
|
18601
|
+
break;
|
|
18481
18602
|
}
|
|
18482
18603
|
if (object.parentMessageKey != null) {
|
|
18483
18604
|
if (typeof object.parentMessageKey !== "object")
|
|
@@ -18564,6 +18685,8 @@ $root.E2E = (function() {
|
|
|
18564
18685
|
* @property {number} STATUS_ADD_YOURS_AI_IMAGINE=15 STATUS_ADD_YOURS_AI_IMAGINE value
|
|
18565
18686
|
* @property {number} STATUS_QUESTION=16 STATUS_QUESTION value
|
|
18566
18687
|
* @property {number} STATUS_ADD_YOURS_DIWALI=17 STATUS_ADD_YOURS_DIWALI value
|
|
18688
|
+
* @property {number} STATUS_REACTION=18 STATUS_REACTION value
|
|
18689
|
+
* @property {number} HEVC_VIDEO_DUAL_UPLOAD=19 HEVC_VIDEO_DUAL_UPLOAD value
|
|
18567
18690
|
*/
|
|
18568
18691
|
MessageAssociation.AssociationType = (function() {
|
|
18569
18692
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -18585,6 +18708,8 @@ $root.E2E = (function() {
|
|
|
18585
18708
|
values[valuesById[15] = "STATUS_ADD_YOURS_AI_IMAGINE"] = 15;
|
|
18586
18709
|
values[valuesById[16] = "STATUS_QUESTION"] = 16;
|
|
18587
18710
|
values[valuesById[17] = "STATUS_ADD_YOURS_DIWALI"] = 17;
|
|
18711
|
+
values[valuesById[18] = "STATUS_REACTION"] = 18;
|
|
18712
|
+
values[valuesById[19] = "HEVC_VIDEO_DUAL_UPLOAD"] = 19;
|
|
18588
18713
|
return values;
|
|
18589
18714
|
})();
|
|
18590
18715
|
|
|
@@ -18651,6 +18776,7 @@ $root.E2E = (function() {
|
|
|
18651
18776
|
* @property {E2E.ContextInfo.IStatusAudienceMetadata|null} [statusAudienceMetadata] ContextInfo statusAudienceMetadata
|
|
18652
18777
|
* @property {number|null} [nonJidMentions] ContextInfo nonJidMentions
|
|
18653
18778
|
* @property {E2E.ContextInfo.QuotedType|null} [quotedType] ContextInfo quotedType
|
|
18779
|
+
* @property {AICommon.IBotMessageSharingInfo|null} [botMessageSharingInfo] ContextInfo botMessageSharingInfo
|
|
18654
18780
|
*/
|
|
18655
18781
|
|
|
18656
18782
|
/**
|
|
@@ -19103,6 +19229,14 @@ $root.E2E = (function() {
|
|
|
19103
19229
|
*/
|
|
19104
19230
|
ContextInfo.prototype.quotedType = 0;
|
|
19105
19231
|
|
|
19232
|
+
/**
|
|
19233
|
+
* ContextInfo botMessageSharingInfo.
|
|
19234
|
+
* @member {AICommon.IBotMessageSharingInfo|null|undefined} botMessageSharingInfo
|
|
19235
|
+
* @memberof E2E.ContextInfo
|
|
19236
|
+
* @instance
|
|
19237
|
+
*/
|
|
19238
|
+
ContextInfo.prototype.botMessageSharingInfo = null;
|
|
19239
|
+
|
|
19106
19240
|
/**
|
|
19107
19241
|
* Creates a new ContextInfo instance using the specified properties.
|
|
19108
19242
|
* @function create
|
|
@@ -19238,6 +19372,8 @@ $root.E2E = (function() {
|
|
|
19238
19372
|
writer.uint32(/* id 70, wireType 0 =*/560).uint32(message.nonJidMentions);
|
|
19239
19373
|
if (message.quotedType != null && Object.hasOwnProperty.call(message, "quotedType"))
|
|
19240
19374
|
writer.uint32(/* id 71, wireType 0 =*/568).int32(message.quotedType);
|
|
19375
|
+
if (message.botMessageSharingInfo != null && Object.hasOwnProperty.call(message, "botMessageSharingInfo"))
|
|
19376
|
+
$root.AICommon.BotMessageSharingInfo.encode(message.botMessageSharingInfo, writer.uint32(/* id 72, wireType 2 =*/578).fork()).ldelim();
|
|
19241
19377
|
return writer;
|
|
19242
19378
|
};
|
|
19243
19379
|
|
|
@@ -19496,6 +19632,10 @@ $root.E2E = (function() {
|
|
|
19496
19632
|
message.quotedType = reader.int32();
|
|
19497
19633
|
break;
|
|
19498
19634
|
}
|
|
19635
|
+
case 72: {
|
|
19636
|
+
message.botMessageSharingInfo = $root.AICommon.BotMessageSharingInfo.decode(reader, reader.uint32());
|
|
19637
|
+
break;
|
|
19638
|
+
}
|
|
19499
19639
|
default:
|
|
19500
19640
|
reader.skipType(tag & 7);
|
|
19501
19641
|
break;
|
|
@@ -19712,6 +19852,8 @@ $root.E2E = (function() {
|
|
|
19712
19852
|
case 4:
|
|
19713
19853
|
case 5:
|
|
19714
19854
|
case 6:
|
|
19855
|
+
case 7:
|
|
19856
|
+
case 8:
|
|
19715
19857
|
break;
|
|
19716
19858
|
}
|
|
19717
19859
|
if (message.rankingVersion != null && message.hasOwnProperty("rankingVersion"))
|
|
@@ -19782,6 +19924,11 @@ $root.E2E = (function() {
|
|
|
19782
19924
|
case 1:
|
|
19783
19925
|
break;
|
|
19784
19926
|
}
|
|
19927
|
+
if (message.botMessageSharingInfo != null && message.hasOwnProperty("botMessageSharingInfo")) {
|
|
19928
|
+
var error = $root.AICommon.BotMessageSharingInfo.verify(message.botMessageSharingInfo);
|
|
19929
|
+
if (error)
|
|
19930
|
+
return "botMessageSharingInfo." + error;
|
|
19931
|
+
}
|
|
19785
19932
|
return null;
|
|
19786
19933
|
};
|
|
19787
19934
|
|
|
@@ -20010,6 +20157,14 @@ $root.E2E = (function() {
|
|
|
20010
20157
|
case 6:
|
|
20011
20158
|
message.pairedMediaType = 6;
|
|
20012
20159
|
break;
|
|
20160
|
+
case "HEVC_VIDEO_PARENT":
|
|
20161
|
+
case 7:
|
|
20162
|
+
message.pairedMediaType = 7;
|
|
20163
|
+
break;
|
|
20164
|
+
case "HEVC_VIDEO_CHILD":
|
|
20165
|
+
case 8:
|
|
20166
|
+
message.pairedMediaType = 8;
|
|
20167
|
+
break;
|
|
20013
20168
|
}
|
|
20014
20169
|
if (object.rankingVersion != null)
|
|
20015
20170
|
message.rankingVersion = object.rankingVersion >>> 0;
|
|
@@ -20124,6 +20279,11 @@ $root.E2E = (function() {
|
|
|
20124
20279
|
message.quotedType = 1;
|
|
20125
20280
|
break;
|
|
20126
20281
|
}
|
|
20282
|
+
if (object.botMessageSharingInfo != null) {
|
|
20283
|
+
if (typeof object.botMessageSharingInfo !== "object")
|
|
20284
|
+
throw TypeError(".E2E.ContextInfo.botMessageSharingInfo: object expected");
|
|
20285
|
+
message.botMessageSharingInfo = $root.AICommon.BotMessageSharingInfo.fromObject(object.botMessageSharingInfo);
|
|
20286
|
+
}
|
|
20127
20287
|
return message;
|
|
20128
20288
|
};
|
|
20129
20289
|
|
|
@@ -20219,6 +20379,7 @@ $root.E2E = (function() {
|
|
|
20219
20379
|
object.statusAudienceMetadata = null;
|
|
20220
20380
|
object.nonJidMentions = 0;
|
|
20221
20381
|
object.quotedType = options.enums === String ? "EXPLICIT" : 0;
|
|
20382
|
+
object.botMessageSharingInfo = null;
|
|
20222
20383
|
}
|
|
20223
20384
|
if (message.stanzaId != null && message.hasOwnProperty("stanzaId"))
|
|
20224
20385
|
object.stanzaId = message.stanzaId;
|
|
@@ -20340,6 +20501,8 @@ $root.E2E = (function() {
|
|
|
20340
20501
|
object.nonJidMentions = message.nonJidMentions;
|
|
20341
20502
|
if (message.quotedType != null && message.hasOwnProperty("quotedType"))
|
|
20342
20503
|
object.quotedType = options.enums === String ? $root.E2E.ContextInfo.QuotedType[message.quotedType] === undefined ? message.quotedType : $root.E2E.ContextInfo.QuotedType[message.quotedType] : message.quotedType;
|
|
20504
|
+
if (message.botMessageSharingInfo != null && message.hasOwnProperty("botMessageSharingInfo"))
|
|
20505
|
+
object.botMessageSharingInfo = $root.AICommon.BotMessageSharingInfo.toObject(message.botMessageSharingInfo, options);
|
|
20343
20506
|
return object;
|
|
20344
20507
|
};
|
|
20345
20508
|
|
|
@@ -23081,6 +23244,8 @@ $root.E2E = (function() {
|
|
|
23081
23244
|
* @property {number} HD_IMAGE_CHILD=4 HD_IMAGE_CHILD value
|
|
23082
23245
|
* @property {number} MOTION_PHOTO_PARENT=5 MOTION_PHOTO_PARENT value
|
|
23083
23246
|
* @property {number} MOTION_PHOTO_CHILD=6 MOTION_PHOTO_CHILD value
|
|
23247
|
+
* @property {number} HEVC_VIDEO_PARENT=7 HEVC_VIDEO_PARENT value
|
|
23248
|
+
* @property {number} HEVC_VIDEO_CHILD=8 HEVC_VIDEO_CHILD value
|
|
23084
23249
|
*/
|
|
23085
23250
|
ContextInfo.PairedMediaType = (function() {
|
|
23086
23251
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -23091,6 +23256,8 @@ $root.E2E = (function() {
|
|
|
23091
23256
|
values[valuesById[4] = "HD_IMAGE_CHILD"] = 4;
|
|
23092
23257
|
values[valuesById[5] = "MOTION_PHOTO_PARENT"] = 5;
|
|
23093
23258
|
values[valuesById[6] = "MOTION_PHOTO_CHILD"] = 6;
|
|
23259
|
+
values[valuesById[7] = "HEVC_VIDEO_PARENT"] = 7;
|
|
23260
|
+
values[valuesById[8] = "HEVC_VIDEO_CHILD"] = 8;
|
|
23094
23261
|
return values;
|
|
23095
23262
|
})();
|
|
23096
23263
|
|
|
@@ -23965,7 +24132,6 @@ $root.E2E = (function() {
|
|
|
23965
24132
|
* @property {E2E.Message.IFutureProofMessage|null} [associatedChildMessage] Message associatedChildMessage
|
|
23966
24133
|
* @property {E2E.Message.IFutureProofMessage|null} [groupStatusMentionMessage] Message groupStatusMentionMessage
|
|
23967
24134
|
* @property {E2E.Message.IFutureProofMessage|null} [pollCreationMessageV4] Message pollCreationMessageV4
|
|
23968
|
-
* @property {E2E.Message.IFutureProofMessage|null} [pollCreationMessageV5] Message pollCreationMessageV5
|
|
23969
24135
|
* @property {E2E.Message.IFutureProofMessage|null} [statusAddYours] Message statusAddYours
|
|
23970
24136
|
* @property {E2E.Message.IFutureProofMessage|null} [groupStatusMessage] Message groupStatusMessage
|
|
23971
24137
|
* @property {E2E.IAIRichResponseMessage|null} [richResponseMessage] Message richResponseMessage
|
|
@@ -23981,6 +24147,11 @@ $root.E2E = (function() {
|
|
|
23981
24147
|
* @property {E2E.Message.IQuestionResponseMessage|null} [questionResponseMessage] Message questionResponseMessage
|
|
23982
24148
|
* @property {E2E.Message.INewsletterFollowerInviteMessage|null} [newsletterFollowerInviteMessage] Message newsletterFollowerInviteMessage
|
|
23983
24149
|
* @property {E2E.Message.IStatusQuotedMessage|null} [statusQuotedMessage] Message statusQuotedMessage
|
|
24150
|
+
* @property {E2E.Message.IStatusStickerInteractionMessage|null} [statusStickerInteractionMessage] Message statusStickerInteractionMessage
|
|
24151
|
+
* @property {E2E.Message.IPollCreationMessage|null} [pollCreationMessageV5] Message pollCreationMessageV5
|
|
24152
|
+
* @property {E2E.Message.IPollResultSnapshotMessage|null} [pollResultSnapshotMessageV2] Message pollResultSnapshotMessageV2
|
|
24153
|
+
* @property {E2E.Message.INewsletterFollowerInviteMessage|null} [newsletterFollowerInviteMessageV2] Message newsletterFollowerInviteMessageV2
|
|
24154
|
+
* @property {E2E.Message.IRequestContactInfoMessage|null} [requestContactInfoMessage] Message requestContactInfoMessage
|
|
23984
24155
|
*/
|
|
23985
24156
|
|
|
23986
24157
|
/**
|
|
@@ -24614,14 +24785,6 @@ $root.E2E = (function() {
|
|
|
24614
24785
|
*/
|
|
24615
24786
|
Message.prototype.pollCreationMessageV4 = null;
|
|
24616
24787
|
|
|
24617
|
-
/**
|
|
24618
|
-
* Message pollCreationMessageV5.
|
|
24619
|
-
* @member {E2E.Message.IFutureProofMessage|null|undefined} pollCreationMessageV5
|
|
24620
|
-
* @memberof E2E.Message
|
|
24621
|
-
* @instance
|
|
24622
|
-
*/
|
|
24623
|
-
Message.prototype.pollCreationMessageV5 = null;
|
|
24624
|
-
|
|
24625
24788
|
/**
|
|
24626
24789
|
* Message statusAddYours.
|
|
24627
24790
|
* @member {E2E.Message.IFutureProofMessage|null|undefined} statusAddYours
|
|
@@ -24742,6 +24905,46 @@ $root.E2E = (function() {
|
|
|
24742
24905
|
*/
|
|
24743
24906
|
Message.prototype.statusQuotedMessage = null;
|
|
24744
24907
|
|
|
24908
|
+
/**
|
|
24909
|
+
* Message statusStickerInteractionMessage.
|
|
24910
|
+
* @member {E2E.Message.IStatusStickerInteractionMessage|null|undefined} statusStickerInteractionMessage
|
|
24911
|
+
* @memberof E2E.Message
|
|
24912
|
+
* @instance
|
|
24913
|
+
*/
|
|
24914
|
+
Message.prototype.statusStickerInteractionMessage = null;
|
|
24915
|
+
|
|
24916
|
+
/**
|
|
24917
|
+
* Message pollCreationMessageV5.
|
|
24918
|
+
* @member {E2E.Message.IPollCreationMessage|null|undefined} pollCreationMessageV5
|
|
24919
|
+
* @memberof E2E.Message
|
|
24920
|
+
* @instance
|
|
24921
|
+
*/
|
|
24922
|
+
Message.prototype.pollCreationMessageV5 = null;
|
|
24923
|
+
|
|
24924
|
+
/**
|
|
24925
|
+
* Message pollResultSnapshotMessageV2.
|
|
24926
|
+
* @member {E2E.Message.IPollResultSnapshotMessage|null|undefined} pollResultSnapshotMessageV2
|
|
24927
|
+
* @memberof E2E.Message
|
|
24928
|
+
* @instance
|
|
24929
|
+
*/
|
|
24930
|
+
Message.prototype.pollResultSnapshotMessageV2 = null;
|
|
24931
|
+
|
|
24932
|
+
/**
|
|
24933
|
+
* Message newsletterFollowerInviteMessageV2.
|
|
24934
|
+
* @member {E2E.Message.INewsletterFollowerInviteMessage|null|undefined} newsletterFollowerInviteMessageV2
|
|
24935
|
+
* @memberof E2E.Message
|
|
24936
|
+
* @instance
|
|
24937
|
+
*/
|
|
24938
|
+
Message.prototype.newsletterFollowerInviteMessageV2 = null;
|
|
24939
|
+
|
|
24940
|
+
/**
|
|
24941
|
+
* Message requestContactInfoMessage.
|
|
24942
|
+
* @member {E2E.Message.IRequestContactInfoMessage|null|undefined} requestContactInfoMessage
|
|
24943
|
+
* @memberof E2E.Message
|
|
24944
|
+
* @instance
|
|
24945
|
+
*/
|
|
24946
|
+
Message.prototype.requestContactInfoMessage = null;
|
|
24947
|
+
|
|
24745
24948
|
/**
|
|
24746
24949
|
* Creates a new Message instance using the specified properties.
|
|
24747
24950
|
* @function create
|
|
@@ -24920,8 +25123,6 @@ $root.E2E = (function() {
|
|
|
24920
25123
|
$root.E2E.Message.FutureProofMessage.encode(message.groupStatusMentionMessage, writer.uint32(/* id 92, wireType 2 =*/738).fork()).ldelim();
|
|
24921
25124
|
if (message.pollCreationMessageV4 != null && Object.hasOwnProperty.call(message, "pollCreationMessageV4"))
|
|
24922
25125
|
$root.E2E.Message.FutureProofMessage.encode(message.pollCreationMessageV4, writer.uint32(/* id 93, wireType 2 =*/746).fork()).ldelim();
|
|
24923
|
-
if (message.pollCreationMessageV5 != null && Object.hasOwnProperty.call(message, "pollCreationMessageV5"))
|
|
24924
|
-
$root.E2E.Message.FutureProofMessage.encode(message.pollCreationMessageV5, writer.uint32(/* id 94, wireType 2 =*/754).fork()).ldelim();
|
|
24925
25126
|
if (message.statusAddYours != null && Object.hasOwnProperty.call(message, "statusAddYours"))
|
|
24926
25127
|
$root.E2E.Message.FutureProofMessage.encode(message.statusAddYours, writer.uint32(/* id 95, wireType 2 =*/762).fork()).ldelim();
|
|
24927
25128
|
if (message.groupStatusMessage != null && Object.hasOwnProperty.call(message, "groupStatusMessage"))
|
|
@@ -24952,6 +25153,16 @@ $root.E2E = (function() {
|
|
|
24952
25153
|
$root.E2E.Message.NewsletterFollowerInviteMessage.encode(message.newsletterFollowerInviteMessage, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim();
|
|
24953
25154
|
if (message.statusQuotedMessage != null && Object.hasOwnProperty.call(message, "statusQuotedMessage"))
|
|
24954
25155
|
$root.E2E.Message.StatusQuotedMessage.encode(message.statusQuotedMessage, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
|
|
25156
|
+
if (message.statusStickerInteractionMessage != null && Object.hasOwnProperty.call(message, "statusStickerInteractionMessage"))
|
|
25157
|
+
$root.E2E.Message.StatusStickerInteractionMessage.encode(message.statusStickerInteractionMessage, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim();
|
|
25158
|
+
if (message.pollCreationMessageV5 != null && Object.hasOwnProperty.call(message, "pollCreationMessageV5"))
|
|
25159
|
+
$root.E2E.Message.PollCreationMessage.encode(message.pollCreationMessageV5, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim();
|
|
25160
|
+
if (message.pollResultSnapshotMessageV2 != null && Object.hasOwnProperty.call(message, "pollResultSnapshotMessageV2"))
|
|
25161
|
+
$root.E2E.Message.PollResultSnapshotMessage.encode(message.pollResultSnapshotMessageV2, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim();
|
|
25162
|
+
if (message.newsletterFollowerInviteMessageV2 != null && Object.hasOwnProperty.call(message, "newsletterFollowerInviteMessageV2"))
|
|
25163
|
+
$root.E2E.Message.NewsletterFollowerInviteMessage.encode(message.newsletterFollowerInviteMessageV2, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim();
|
|
25164
|
+
if (message.requestContactInfoMessage != null && Object.hasOwnProperty.call(message, "requestContactInfoMessage"))
|
|
25165
|
+
$root.E2E.Message.RequestContactInfoMessage.encode(message.requestContactInfoMessage, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim();
|
|
24955
25166
|
return writer;
|
|
24956
25167
|
};
|
|
24957
25168
|
|
|
@@ -25296,10 +25507,6 @@ $root.E2E = (function() {
|
|
|
25296
25507
|
message.pollCreationMessageV4 = $root.E2E.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
25297
25508
|
break;
|
|
25298
25509
|
}
|
|
25299
|
-
case 94: {
|
|
25300
|
-
message.pollCreationMessageV5 = $root.E2E.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
25301
|
-
break;
|
|
25302
|
-
}
|
|
25303
25510
|
case 95: {
|
|
25304
25511
|
message.statusAddYours = $root.E2E.Message.FutureProofMessage.decode(reader, reader.uint32());
|
|
25305
25512
|
break;
|
|
@@ -25360,6 +25567,26 @@ $root.E2E = (function() {
|
|
|
25360
25567
|
message.statusQuotedMessage = $root.E2E.Message.StatusQuotedMessage.decode(reader, reader.uint32());
|
|
25361
25568
|
break;
|
|
25362
25569
|
}
|
|
25570
|
+
case 110: {
|
|
25571
|
+
message.statusStickerInteractionMessage = $root.E2E.Message.StatusStickerInteractionMessage.decode(reader, reader.uint32());
|
|
25572
|
+
break;
|
|
25573
|
+
}
|
|
25574
|
+
case 111: {
|
|
25575
|
+
message.pollCreationMessageV5 = $root.E2E.Message.PollCreationMessage.decode(reader, reader.uint32());
|
|
25576
|
+
break;
|
|
25577
|
+
}
|
|
25578
|
+
case 112: {
|
|
25579
|
+
message.pollResultSnapshotMessageV2 = $root.E2E.Message.PollResultSnapshotMessage.decode(reader, reader.uint32());
|
|
25580
|
+
break;
|
|
25581
|
+
}
|
|
25582
|
+
case 113: {
|
|
25583
|
+
message.newsletterFollowerInviteMessageV2 = $root.E2E.Message.NewsletterFollowerInviteMessage.decode(reader, reader.uint32());
|
|
25584
|
+
break;
|
|
25585
|
+
}
|
|
25586
|
+
case 114: {
|
|
25587
|
+
message.requestContactInfoMessage = $root.E2E.Message.RequestContactInfoMessage.decode(reader, reader.uint32());
|
|
25588
|
+
break;
|
|
25589
|
+
}
|
|
25363
25590
|
default:
|
|
25364
25591
|
reader.skipType(tag & 7);
|
|
25365
25592
|
break;
|
|
@@ -25778,11 +26005,6 @@ $root.E2E = (function() {
|
|
|
25778
26005
|
if (error)
|
|
25779
26006
|
return "pollCreationMessageV4." + error;
|
|
25780
26007
|
}
|
|
25781
|
-
if (message.pollCreationMessageV5 != null && message.hasOwnProperty("pollCreationMessageV5")) {
|
|
25782
|
-
var error = $root.E2E.Message.FutureProofMessage.verify(message.pollCreationMessageV5);
|
|
25783
|
-
if (error)
|
|
25784
|
-
return "pollCreationMessageV5." + error;
|
|
25785
|
-
}
|
|
25786
26008
|
if (message.statusAddYours != null && message.hasOwnProperty("statusAddYours")) {
|
|
25787
26009
|
var error = $root.E2E.Message.FutureProofMessage.verify(message.statusAddYours);
|
|
25788
26010
|
if (error)
|
|
@@ -25858,6 +26080,31 @@ $root.E2E = (function() {
|
|
|
25858
26080
|
if (error)
|
|
25859
26081
|
return "statusQuotedMessage." + error;
|
|
25860
26082
|
}
|
|
26083
|
+
if (message.statusStickerInteractionMessage != null && message.hasOwnProperty("statusStickerInteractionMessage")) {
|
|
26084
|
+
var error = $root.E2E.Message.StatusStickerInteractionMessage.verify(message.statusStickerInteractionMessage);
|
|
26085
|
+
if (error)
|
|
26086
|
+
return "statusStickerInteractionMessage." + error;
|
|
26087
|
+
}
|
|
26088
|
+
if (message.pollCreationMessageV5 != null && message.hasOwnProperty("pollCreationMessageV5")) {
|
|
26089
|
+
var error = $root.E2E.Message.PollCreationMessage.verify(message.pollCreationMessageV5);
|
|
26090
|
+
if (error)
|
|
26091
|
+
return "pollCreationMessageV5." + error;
|
|
26092
|
+
}
|
|
26093
|
+
if (message.pollResultSnapshotMessageV2 != null && message.hasOwnProperty("pollResultSnapshotMessageV2")) {
|
|
26094
|
+
var error = $root.E2E.Message.PollResultSnapshotMessage.verify(message.pollResultSnapshotMessageV2);
|
|
26095
|
+
if (error)
|
|
26096
|
+
return "pollResultSnapshotMessageV2." + error;
|
|
26097
|
+
}
|
|
26098
|
+
if (message.newsletterFollowerInviteMessageV2 != null && message.hasOwnProperty("newsletterFollowerInviteMessageV2")) {
|
|
26099
|
+
var error = $root.E2E.Message.NewsletterFollowerInviteMessage.verify(message.newsletterFollowerInviteMessageV2);
|
|
26100
|
+
if (error)
|
|
26101
|
+
return "newsletterFollowerInviteMessageV2." + error;
|
|
26102
|
+
}
|
|
26103
|
+
if (message.requestContactInfoMessage != null && message.hasOwnProperty("requestContactInfoMessage")) {
|
|
26104
|
+
var error = $root.E2E.Message.RequestContactInfoMessage.verify(message.requestContactInfoMessage);
|
|
26105
|
+
if (error)
|
|
26106
|
+
return "requestContactInfoMessage." + error;
|
|
26107
|
+
}
|
|
25861
26108
|
return null;
|
|
25862
26109
|
};
|
|
25863
26110
|
|
|
@@ -26255,11 +26502,6 @@ $root.E2E = (function() {
|
|
|
26255
26502
|
throw TypeError(".E2E.Message.pollCreationMessageV4: object expected");
|
|
26256
26503
|
message.pollCreationMessageV4 = $root.E2E.Message.FutureProofMessage.fromObject(object.pollCreationMessageV4);
|
|
26257
26504
|
}
|
|
26258
|
-
if (object.pollCreationMessageV5 != null) {
|
|
26259
|
-
if (typeof object.pollCreationMessageV5 !== "object")
|
|
26260
|
-
throw TypeError(".E2E.Message.pollCreationMessageV5: object expected");
|
|
26261
|
-
message.pollCreationMessageV5 = $root.E2E.Message.FutureProofMessage.fromObject(object.pollCreationMessageV5);
|
|
26262
|
-
}
|
|
26263
26505
|
if (object.statusAddYours != null) {
|
|
26264
26506
|
if (typeof object.statusAddYours !== "object")
|
|
26265
26507
|
throw TypeError(".E2E.Message.statusAddYours: object expected");
|
|
@@ -26335,6 +26577,31 @@ $root.E2E = (function() {
|
|
|
26335
26577
|
throw TypeError(".E2E.Message.statusQuotedMessage: object expected");
|
|
26336
26578
|
message.statusQuotedMessage = $root.E2E.Message.StatusQuotedMessage.fromObject(object.statusQuotedMessage);
|
|
26337
26579
|
}
|
|
26580
|
+
if (object.statusStickerInteractionMessage != null) {
|
|
26581
|
+
if (typeof object.statusStickerInteractionMessage !== "object")
|
|
26582
|
+
throw TypeError(".E2E.Message.statusStickerInteractionMessage: object expected");
|
|
26583
|
+
message.statusStickerInteractionMessage = $root.E2E.Message.StatusStickerInteractionMessage.fromObject(object.statusStickerInteractionMessage);
|
|
26584
|
+
}
|
|
26585
|
+
if (object.pollCreationMessageV5 != null) {
|
|
26586
|
+
if (typeof object.pollCreationMessageV5 !== "object")
|
|
26587
|
+
throw TypeError(".E2E.Message.pollCreationMessageV5: object expected");
|
|
26588
|
+
message.pollCreationMessageV5 = $root.E2E.Message.PollCreationMessage.fromObject(object.pollCreationMessageV5);
|
|
26589
|
+
}
|
|
26590
|
+
if (object.pollResultSnapshotMessageV2 != null) {
|
|
26591
|
+
if (typeof object.pollResultSnapshotMessageV2 !== "object")
|
|
26592
|
+
throw TypeError(".E2E.Message.pollResultSnapshotMessageV2: object expected");
|
|
26593
|
+
message.pollResultSnapshotMessageV2 = $root.E2E.Message.PollResultSnapshotMessage.fromObject(object.pollResultSnapshotMessageV2);
|
|
26594
|
+
}
|
|
26595
|
+
if (object.newsletterFollowerInviteMessageV2 != null) {
|
|
26596
|
+
if (typeof object.newsletterFollowerInviteMessageV2 !== "object")
|
|
26597
|
+
throw TypeError(".E2E.Message.newsletterFollowerInviteMessageV2: object expected");
|
|
26598
|
+
message.newsletterFollowerInviteMessageV2 = $root.E2E.Message.NewsletterFollowerInviteMessage.fromObject(object.newsletterFollowerInviteMessageV2);
|
|
26599
|
+
}
|
|
26600
|
+
if (object.requestContactInfoMessage != null) {
|
|
26601
|
+
if (typeof object.requestContactInfoMessage !== "object")
|
|
26602
|
+
throw TypeError(".E2E.Message.requestContactInfoMessage: object expected");
|
|
26603
|
+
message.requestContactInfoMessage = $root.E2E.Message.RequestContactInfoMessage.fromObject(object.requestContactInfoMessage);
|
|
26604
|
+
}
|
|
26338
26605
|
return message;
|
|
26339
26606
|
};
|
|
26340
26607
|
|
|
@@ -26429,7 +26696,6 @@ $root.E2E = (function() {
|
|
|
26429
26696
|
object.associatedChildMessage = null;
|
|
26430
26697
|
object.groupStatusMentionMessage = null;
|
|
26431
26698
|
object.pollCreationMessageV4 = null;
|
|
26432
|
-
object.pollCreationMessageV5 = null;
|
|
26433
26699
|
object.statusAddYours = null;
|
|
26434
26700
|
object.groupStatusMessage = null;
|
|
26435
26701
|
object.richResponseMessage = null;
|
|
@@ -26445,6 +26711,11 @@ $root.E2E = (function() {
|
|
|
26445
26711
|
object.questionResponseMessage = null;
|
|
26446
26712
|
object.newsletterFollowerInviteMessage = null;
|
|
26447
26713
|
object.statusQuotedMessage = null;
|
|
26714
|
+
object.statusStickerInteractionMessage = null;
|
|
26715
|
+
object.pollCreationMessageV5 = null;
|
|
26716
|
+
object.pollResultSnapshotMessageV2 = null;
|
|
26717
|
+
object.newsletterFollowerInviteMessageV2 = null;
|
|
26718
|
+
object.requestContactInfoMessage = null;
|
|
26448
26719
|
}
|
|
26449
26720
|
if (message.conversation != null && message.hasOwnProperty("conversation"))
|
|
26450
26721
|
object.conversation = message.conversation;
|
|
@@ -26600,8 +26871,6 @@ $root.E2E = (function() {
|
|
|
26600
26871
|
object.groupStatusMentionMessage = $root.E2E.Message.FutureProofMessage.toObject(message.groupStatusMentionMessage, options);
|
|
26601
26872
|
if (message.pollCreationMessageV4 != null && message.hasOwnProperty("pollCreationMessageV4"))
|
|
26602
26873
|
object.pollCreationMessageV4 = $root.E2E.Message.FutureProofMessage.toObject(message.pollCreationMessageV4, options);
|
|
26603
|
-
if (message.pollCreationMessageV5 != null && message.hasOwnProperty("pollCreationMessageV5"))
|
|
26604
|
-
object.pollCreationMessageV5 = $root.E2E.Message.FutureProofMessage.toObject(message.pollCreationMessageV5, options);
|
|
26605
26874
|
if (message.statusAddYours != null && message.hasOwnProperty("statusAddYours"))
|
|
26606
26875
|
object.statusAddYours = $root.E2E.Message.FutureProofMessage.toObject(message.statusAddYours, options);
|
|
26607
26876
|
if (message.groupStatusMessage != null && message.hasOwnProperty("groupStatusMessage"))
|
|
@@ -26632,6 +26901,16 @@ $root.E2E = (function() {
|
|
|
26632
26901
|
object.newsletterFollowerInviteMessage = $root.E2E.Message.NewsletterFollowerInviteMessage.toObject(message.newsletterFollowerInviteMessage, options);
|
|
26633
26902
|
if (message.statusQuotedMessage != null && message.hasOwnProperty("statusQuotedMessage"))
|
|
26634
26903
|
object.statusQuotedMessage = $root.E2E.Message.StatusQuotedMessage.toObject(message.statusQuotedMessage, options);
|
|
26904
|
+
if (message.statusStickerInteractionMessage != null && message.hasOwnProperty("statusStickerInteractionMessage"))
|
|
26905
|
+
object.statusStickerInteractionMessage = $root.E2E.Message.StatusStickerInteractionMessage.toObject(message.statusStickerInteractionMessage, options);
|
|
26906
|
+
if (message.pollCreationMessageV5 != null && message.hasOwnProperty("pollCreationMessageV5"))
|
|
26907
|
+
object.pollCreationMessageV5 = $root.E2E.Message.PollCreationMessage.toObject(message.pollCreationMessageV5, options);
|
|
26908
|
+
if (message.pollResultSnapshotMessageV2 != null && message.hasOwnProperty("pollResultSnapshotMessageV2"))
|
|
26909
|
+
object.pollResultSnapshotMessageV2 = $root.E2E.Message.PollResultSnapshotMessage.toObject(message.pollResultSnapshotMessageV2, options);
|
|
26910
|
+
if (message.newsletterFollowerInviteMessageV2 != null && message.hasOwnProperty("newsletterFollowerInviteMessageV2"))
|
|
26911
|
+
object.newsletterFollowerInviteMessageV2 = $root.E2E.Message.NewsletterFollowerInviteMessage.toObject(message.newsletterFollowerInviteMessageV2, options);
|
|
26912
|
+
if (message.requestContactInfoMessage != null && message.hasOwnProperty("requestContactInfoMessage"))
|
|
26913
|
+
object.requestContactInfoMessage = $root.E2E.Message.RequestContactInfoMessage.toObject(message.requestContactInfoMessage, options);
|
|
26635
26914
|
return object;
|
|
26636
26915
|
};
|
|
26637
26916
|
|
|
@@ -37190,6 +37469,7 @@ $root.E2E = (function() {
|
|
|
37190
37469
|
* @property {Array.<E2E.Message.IVideoEndCard>|null} [endCardTiles] ExtendedTextMessage endCardTiles
|
|
37191
37470
|
* @property {string|null} [videoContentUrl] ExtendedTextMessage videoContentUrl
|
|
37192
37471
|
* @property {E2E.IEmbeddedMusic|null} [musicMetadata] ExtendedTextMessage musicMetadata
|
|
37472
|
+
* @property {E2E.Message.IPaymentExtendedMetadata|null} [paymentExtendedMetadata] ExtendedTextMessage paymentExtendedMetadata
|
|
37193
37473
|
*/
|
|
37194
37474
|
|
|
37195
37475
|
/**
|
|
@@ -37456,6 +37736,14 @@ $root.E2E = (function() {
|
|
|
37456
37736
|
*/
|
|
37457
37737
|
ExtendedTextMessage.prototype.musicMetadata = null;
|
|
37458
37738
|
|
|
37739
|
+
/**
|
|
37740
|
+
* ExtendedTextMessage paymentExtendedMetadata.
|
|
37741
|
+
* @member {E2E.Message.IPaymentExtendedMetadata|null|undefined} paymentExtendedMetadata
|
|
37742
|
+
* @memberof E2E.Message.ExtendedTextMessage
|
|
37743
|
+
* @instance
|
|
37744
|
+
*/
|
|
37745
|
+
ExtendedTextMessage.prototype.paymentExtendedMetadata = null;
|
|
37746
|
+
|
|
37459
37747
|
/**
|
|
37460
37748
|
* Creates a new ExtendedTextMessage instance using the specified properties.
|
|
37461
37749
|
* @function create
|
|
@@ -37543,6 +37831,8 @@ $root.E2E = (function() {
|
|
|
37543
37831
|
writer.uint32(/* id 37, wireType 2 =*/298).string(message.videoContentUrl);
|
|
37544
37832
|
if (message.musicMetadata != null && Object.hasOwnProperty.call(message, "musicMetadata"))
|
|
37545
37833
|
$root.E2E.EmbeddedMusic.encode(message.musicMetadata, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim();
|
|
37834
|
+
if (message.paymentExtendedMetadata != null && Object.hasOwnProperty.call(message, "paymentExtendedMetadata"))
|
|
37835
|
+
$root.E2E.Message.PaymentExtendedMetadata.encode(message.paymentExtendedMetadata, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim();
|
|
37546
37836
|
return writer;
|
|
37547
37837
|
};
|
|
37548
37838
|
|
|
@@ -37705,6 +37995,10 @@ $root.E2E = (function() {
|
|
|
37705
37995
|
message.musicMetadata = $root.E2E.EmbeddedMusic.decode(reader, reader.uint32());
|
|
37706
37996
|
break;
|
|
37707
37997
|
}
|
|
37998
|
+
case 39: {
|
|
37999
|
+
message.paymentExtendedMetadata = $root.E2E.Message.PaymentExtendedMetadata.decode(reader, reader.uint32());
|
|
38000
|
+
break;
|
|
38001
|
+
}
|
|
37708
38002
|
default:
|
|
37709
38003
|
reader.skipType(tag & 7);
|
|
37710
38004
|
break;
|
|
@@ -37883,6 +38177,11 @@ $root.E2E = (function() {
|
|
|
37883
38177
|
if (error)
|
|
37884
38178
|
return "musicMetadata." + error;
|
|
37885
38179
|
}
|
|
38180
|
+
if (message.paymentExtendedMetadata != null && message.hasOwnProperty("paymentExtendedMetadata")) {
|
|
38181
|
+
var error = $root.E2E.Message.PaymentExtendedMetadata.verify(message.paymentExtendedMetadata);
|
|
38182
|
+
if (error)
|
|
38183
|
+
return "paymentExtendedMetadata." + error;
|
|
38184
|
+
}
|
|
37886
38185
|
return null;
|
|
37887
38186
|
};
|
|
37888
38187
|
|
|
@@ -38117,6 +38416,11 @@ $root.E2E = (function() {
|
|
|
38117
38416
|
throw TypeError(".E2E.Message.ExtendedTextMessage.musicMetadata: object expected");
|
|
38118
38417
|
message.musicMetadata = $root.E2E.EmbeddedMusic.fromObject(object.musicMetadata);
|
|
38119
38418
|
}
|
|
38419
|
+
if (object.paymentExtendedMetadata != null) {
|
|
38420
|
+
if (typeof object.paymentExtendedMetadata !== "object")
|
|
38421
|
+
throw TypeError(".E2E.Message.ExtendedTextMessage.paymentExtendedMetadata: object expected");
|
|
38422
|
+
message.paymentExtendedMetadata = $root.E2E.Message.PaymentExtendedMetadata.fromObject(object.paymentExtendedMetadata);
|
|
38423
|
+
}
|
|
38120
38424
|
return message;
|
|
38121
38425
|
};
|
|
38122
38426
|
|
|
@@ -38200,6 +38504,7 @@ $root.E2E = (function() {
|
|
|
38200
38504
|
object.paymentLinkMetadata = null;
|
|
38201
38505
|
object.videoContentUrl = "";
|
|
38202
38506
|
object.musicMetadata = null;
|
|
38507
|
+
object.paymentExtendedMetadata = null;
|
|
38203
38508
|
}
|
|
38204
38509
|
if (message.text != null && message.hasOwnProperty("text"))
|
|
38205
38510
|
object.text = message.text;
|
|
@@ -38269,6 +38574,8 @@ $root.E2E = (function() {
|
|
|
38269
38574
|
object.videoContentUrl = message.videoContentUrl;
|
|
38270
38575
|
if (message.musicMetadata != null && message.hasOwnProperty("musicMetadata"))
|
|
38271
38576
|
object.musicMetadata = $root.E2E.EmbeddedMusic.toObject(message.musicMetadata, options);
|
|
38577
|
+
if (message.paymentExtendedMetadata != null && message.hasOwnProperty("paymentExtendedMetadata"))
|
|
38578
|
+
object.paymentExtendedMetadata = $root.E2E.Message.PaymentExtendedMetadata.toObject(message.paymentExtendedMetadata, options);
|
|
38272
38579
|
return object;
|
|
38273
38580
|
};
|
|
38274
38581
|
|
|
@@ -44373,6 +44680,8 @@ $root.E2E = (function() {
|
|
|
44373
44680
|
* @memberof E2E.Message.InteractiveMessage
|
|
44374
44681
|
* @interface IFooter
|
|
44375
44682
|
* @property {string|null} [text] Footer text
|
|
44683
|
+
* @property {boolean|null} [hasMediaAttachment] Footer hasMediaAttachment
|
|
44684
|
+
* @property {E2E.Message.IAudioMessage|null} [audioMessage] Footer audioMessage
|
|
44376
44685
|
*/
|
|
44377
44686
|
|
|
44378
44687
|
/**
|
|
@@ -44398,6 +44707,36 @@ $root.E2E = (function() {
|
|
|
44398
44707
|
*/
|
|
44399
44708
|
Footer.prototype.text = "";
|
|
44400
44709
|
|
|
44710
|
+
/**
|
|
44711
|
+
* Footer hasMediaAttachment.
|
|
44712
|
+
* @member {boolean} hasMediaAttachment
|
|
44713
|
+
* @memberof E2E.Message.InteractiveMessage.Footer
|
|
44714
|
+
* @instance
|
|
44715
|
+
*/
|
|
44716
|
+
Footer.prototype.hasMediaAttachment = false;
|
|
44717
|
+
|
|
44718
|
+
/**
|
|
44719
|
+
* Footer audioMessage.
|
|
44720
|
+
* @member {E2E.Message.IAudioMessage|null|undefined} audioMessage
|
|
44721
|
+
* @memberof E2E.Message.InteractiveMessage.Footer
|
|
44722
|
+
* @instance
|
|
44723
|
+
*/
|
|
44724
|
+
Footer.prototype.audioMessage = null;
|
|
44725
|
+
|
|
44726
|
+
// OneOf field names bound to virtual getters and setters
|
|
44727
|
+
var $oneOfFields;
|
|
44728
|
+
|
|
44729
|
+
/**
|
|
44730
|
+
* Footer media.
|
|
44731
|
+
* @member {"audioMessage"|undefined} media
|
|
44732
|
+
* @memberof E2E.Message.InteractiveMessage.Footer
|
|
44733
|
+
* @instance
|
|
44734
|
+
*/
|
|
44735
|
+
Object.defineProperty(Footer.prototype, "media", {
|
|
44736
|
+
get: $util.oneOfGetter($oneOfFields = ["audioMessage"]),
|
|
44737
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
44738
|
+
});
|
|
44739
|
+
|
|
44401
44740
|
/**
|
|
44402
44741
|
* Creates a new Footer instance using the specified properties.
|
|
44403
44742
|
* @function create
|
|
@@ -44424,6 +44763,10 @@ $root.E2E = (function() {
|
|
|
44424
44763
|
writer = $Writer.create();
|
|
44425
44764
|
if (message.text != null && Object.hasOwnProperty.call(message, "text"))
|
|
44426
44765
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.text);
|
|
44766
|
+
if (message.audioMessage != null && Object.hasOwnProperty.call(message, "audioMessage"))
|
|
44767
|
+
$root.E2E.Message.AudioMessage.encode(message.audioMessage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
44768
|
+
if (message.hasMediaAttachment != null && Object.hasOwnProperty.call(message, "hasMediaAttachment"))
|
|
44769
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.hasMediaAttachment);
|
|
44427
44770
|
return writer;
|
|
44428
44771
|
};
|
|
44429
44772
|
|
|
@@ -44464,6 +44807,14 @@ $root.E2E = (function() {
|
|
|
44464
44807
|
message.text = reader.string();
|
|
44465
44808
|
break;
|
|
44466
44809
|
}
|
|
44810
|
+
case 3: {
|
|
44811
|
+
message.hasMediaAttachment = reader.bool();
|
|
44812
|
+
break;
|
|
44813
|
+
}
|
|
44814
|
+
case 2: {
|
|
44815
|
+
message.audioMessage = $root.E2E.Message.AudioMessage.decode(reader, reader.uint32());
|
|
44816
|
+
break;
|
|
44817
|
+
}
|
|
44467
44818
|
default:
|
|
44468
44819
|
reader.skipType(tag & 7);
|
|
44469
44820
|
break;
|
|
@@ -44499,9 +44850,21 @@ $root.E2E = (function() {
|
|
|
44499
44850
|
Footer.verify = function verify(message) {
|
|
44500
44851
|
if (typeof message !== "object" || message === null)
|
|
44501
44852
|
return "object expected";
|
|
44853
|
+
var properties = {};
|
|
44502
44854
|
if (message.text != null && message.hasOwnProperty("text"))
|
|
44503
44855
|
if (!$util.isString(message.text))
|
|
44504
44856
|
return "text: string expected";
|
|
44857
|
+
if (message.hasMediaAttachment != null && message.hasOwnProperty("hasMediaAttachment"))
|
|
44858
|
+
if (typeof message.hasMediaAttachment !== "boolean")
|
|
44859
|
+
return "hasMediaAttachment: boolean expected";
|
|
44860
|
+
if (message.audioMessage != null && message.hasOwnProperty("audioMessage")) {
|
|
44861
|
+
properties.media = 1;
|
|
44862
|
+
{
|
|
44863
|
+
var error = $root.E2E.Message.AudioMessage.verify(message.audioMessage);
|
|
44864
|
+
if (error)
|
|
44865
|
+
return "audioMessage." + error;
|
|
44866
|
+
}
|
|
44867
|
+
}
|
|
44505
44868
|
return null;
|
|
44506
44869
|
};
|
|
44507
44870
|
|
|
@@ -44519,6 +44882,13 @@ $root.E2E = (function() {
|
|
|
44519
44882
|
var message = new $root.E2E.Message.InteractiveMessage.Footer();
|
|
44520
44883
|
if (object.text != null)
|
|
44521
44884
|
message.text = String(object.text);
|
|
44885
|
+
if (object.hasMediaAttachment != null)
|
|
44886
|
+
message.hasMediaAttachment = Boolean(object.hasMediaAttachment);
|
|
44887
|
+
if (object.audioMessage != null) {
|
|
44888
|
+
if (typeof object.audioMessage !== "object")
|
|
44889
|
+
throw TypeError(".E2E.Message.InteractiveMessage.Footer.audioMessage: object expected");
|
|
44890
|
+
message.audioMessage = $root.E2E.Message.AudioMessage.fromObject(object.audioMessage);
|
|
44891
|
+
}
|
|
44522
44892
|
return message;
|
|
44523
44893
|
};
|
|
44524
44894
|
|
|
@@ -44535,10 +44905,19 @@ $root.E2E = (function() {
|
|
|
44535
44905
|
if (!options)
|
|
44536
44906
|
options = {};
|
|
44537
44907
|
var object = {};
|
|
44538
|
-
if (options.defaults)
|
|
44908
|
+
if (options.defaults) {
|
|
44539
44909
|
object.text = "";
|
|
44910
|
+
object.hasMediaAttachment = false;
|
|
44911
|
+
}
|
|
44540
44912
|
if (message.text != null && message.hasOwnProperty("text"))
|
|
44541
44913
|
object.text = message.text;
|
|
44914
|
+
if (message.audioMessage != null && message.hasOwnProperty("audioMessage")) {
|
|
44915
|
+
object.audioMessage = $root.E2E.Message.AudioMessage.toObject(message.audioMessage, options);
|
|
44916
|
+
if (options.oneofs)
|
|
44917
|
+
object.media = "audioMessage";
|
|
44918
|
+
}
|
|
44919
|
+
if (message.hasMediaAttachment != null && message.hasOwnProperty("hasMediaAttachment"))
|
|
44920
|
+
object.hasMediaAttachment = message.hasMediaAttachment;
|
|
44542
44921
|
return object;
|
|
44543
44922
|
};
|
|
44544
44923
|
|
|
@@ -47452,6 +47831,9 @@ $root.E2E = (function() {
|
|
|
47452
47831
|
* @property {number|null} [linkMediaDuration] LinkPreviewMetadata linkMediaDuration
|
|
47453
47832
|
* @property {E2E.Message.LinkPreviewMetadata.SocialMediaPostType|null} [socialMediaPostType] LinkPreviewMetadata socialMediaPostType
|
|
47454
47833
|
* @property {boolean|null} [linkInlineVideoMuted] LinkPreviewMetadata linkInlineVideoMuted
|
|
47834
|
+
* @property {string|null} [videoContentUrl] LinkPreviewMetadata videoContentUrl
|
|
47835
|
+
* @property {E2E.IEmbeddedMusic|null} [musicMetadata] LinkPreviewMetadata musicMetadata
|
|
47836
|
+
* @property {string|null} [videoContentCaption] LinkPreviewMetadata videoContentCaption
|
|
47455
47837
|
*/
|
|
47456
47838
|
|
|
47457
47839
|
/**
|
|
@@ -47517,6 +47899,30 @@ $root.E2E = (function() {
|
|
|
47517
47899
|
*/
|
|
47518
47900
|
LinkPreviewMetadata.prototype.linkInlineVideoMuted = false;
|
|
47519
47901
|
|
|
47902
|
+
/**
|
|
47903
|
+
* LinkPreviewMetadata videoContentUrl.
|
|
47904
|
+
* @member {string} videoContentUrl
|
|
47905
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
|
47906
|
+
* @instance
|
|
47907
|
+
*/
|
|
47908
|
+
LinkPreviewMetadata.prototype.videoContentUrl = "";
|
|
47909
|
+
|
|
47910
|
+
/**
|
|
47911
|
+
* LinkPreviewMetadata musicMetadata.
|
|
47912
|
+
* @member {E2E.IEmbeddedMusic|null|undefined} musicMetadata
|
|
47913
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
|
47914
|
+
* @instance
|
|
47915
|
+
*/
|
|
47916
|
+
LinkPreviewMetadata.prototype.musicMetadata = null;
|
|
47917
|
+
|
|
47918
|
+
/**
|
|
47919
|
+
* LinkPreviewMetadata videoContentCaption.
|
|
47920
|
+
* @member {string} videoContentCaption
|
|
47921
|
+
* @memberof E2E.Message.LinkPreviewMetadata
|
|
47922
|
+
* @instance
|
|
47923
|
+
*/
|
|
47924
|
+
LinkPreviewMetadata.prototype.videoContentCaption = "";
|
|
47925
|
+
|
|
47520
47926
|
/**
|
|
47521
47927
|
* Creates a new LinkPreviewMetadata instance using the specified properties.
|
|
47522
47928
|
* @function create
|
|
@@ -47553,6 +47959,12 @@ $root.E2E = (function() {
|
|
|
47553
47959
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.socialMediaPostType);
|
|
47554
47960
|
if (message.linkInlineVideoMuted != null && Object.hasOwnProperty.call(message, "linkInlineVideoMuted"))
|
|
47555
47961
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.linkInlineVideoMuted);
|
|
47962
|
+
if (message.videoContentUrl != null && Object.hasOwnProperty.call(message, "videoContentUrl"))
|
|
47963
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.videoContentUrl);
|
|
47964
|
+
if (message.musicMetadata != null && Object.hasOwnProperty.call(message, "musicMetadata"))
|
|
47965
|
+
$root.E2E.EmbeddedMusic.encode(message.musicMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
47966
|
+
if (message.videoContentCaption != null && Object.hasOwnProperty.call(message, "videoContentCaption"))
|
|
47967
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.videoContentCaption);
|
|
47556
47968
|
return writer;
|
|
47557
47969
|
};
|
|
47558
47970
|
|
|
@@ -47613,6 +48025,18 @@ $root.E2E = (function() {
|
|
|
47613
48025
|
message.linkInlineVideoMuted = reader.bool();
|
|
47614
48026
|
break;
|
|
47615
48027
|
}
|
|
48028
|
+
case 7: {
|
|
48029
|
+
message.videoContentUrl = reader.string();
|
|
48030
|
+
break;
|
|
48031
|
+
}
|
|
48032
|
+
case 8: {
|
|
48033
|
+
message.musicMetadata = $root.E2E.EmbeddedMusic.decode(reader, reader.uint32());
|
|
48034
|
+
break;
|
|
48035
|
+
}
|
|
48036
|
+
case 9: {
|
|
48037
|
+
message.videoContentCaption = reader.string();
|
|
48038
|
+
break;
|
|
48039
|
+
}
|
|
47616
48040
|
default:
|
|
47617
48041
|
reader.skipType(tag & 7);
|
|
47618
48042
|
break;
|
|
@@ -47679,6 +48103,17 @@ $root.E2E = (function() {
|
|
|
47679
48103
|
if (message.linkInlineVideoMuted != null && message.hasOwnProperty("linkInlineVideoMuted"))
|
|
47680
48104
|
if (typeof message.linkInlineVideoMuted !== "boolean")
|
|
47681
48105
|
return "linkInlineVideoMuted: boolean expected";
|
|
48106
|
+
if (message.videoContentUrl != null && message.hasOwnProperty("videoContentUrl"))
|
|
48107
|
+
if (!$util.isString(message.videoContentUrl))
|
|
48108
|
+
return "videoContentUrl: string expected";
|
|
48109
|
+
if (message.musicMetadata != null && message.hasOwnProperty("musicMetadata")) {
|
|
48110
|
+
var error = $root.E2E.EmbeddedMusic.verify(message.musicMetadata);
|
|
48111
|
+
if (error)
|
|
48112
|
+
return "musicMetadata." + error;
|
|
48113
|
+
}
|
|
48114
|
+
if (message.videoContentCaption != null && message.hasOwnProperty("videoContentCaption"))
|
|
48115
|
+
if (!$util.isString(message.videoContentCaption))
|
|
48116
|
+
return "videoContentCaption: string expected";
|
|
47682
48117
|
return null;
|
|
47683
48118
|
};
|
|
47684
48119
|
|
|
@@ -47742,6 +48177,15 @@ $root.E2E = (function() {
|
|
|
47742
48177
|
}
|
|
47743
48178
|
if (object.linkInlineVideoMuted != null)
|
|
47744
48179
|
message.linkInlineVideoMuted = Boolean(object.linkInlineVideoMuted);
|
|
48180
|
+
if (object.videoContentUrl != null)
|
|
48181
|
+
message.videoContentUrl = String(object.videoContentUrl);
|
|
48182
|
+
if (object.musicMetadata != null) {
|
|
48183
|
+
if (typeof object.musicMetadata !== "object")
|
|
48184
|
+
throw TypeError(".E2E.Message.LinkPreviewMetadata.musicMetadata: object expected");
|
|
48185
|
+
message.musicMetadata = $root.E2E.EmbeddedMusic.fromObject(object.musicMetadata);
|
|
48186
|
+
}
|
|
48187
|
+
if (object.videoContentCaption != null)
|
|
48188
|
+
message.videoContentCaption = String(object.videoContentCaption);
|
|
47745
48189
|
return message;
|
|
47746
48190
|
};
|
|
47747
48191
|
|
|
@@ -47765,6 +48209,9 @@ $root.E2E = (function() {
|
|
|
47765
48209
|
object.linkMediaDuration = 0;
|
|
47766
48210
|
object.socialMediaPostType = options.enums === String ? "NONE" : 0;
|
|
47767
48211
|
object.linkInlineVideoMuted = false;
|
|
48212
|
+
object.videoContentUrl = "";
|
|
48213
|
+
object.musicMetadata = null;
|
|
48214
|
+
object.videoContentCaption = "";
|
|
47768
48215
|
}
|
|
47769
48216
|
if (message.paymentLinkMetadata != null && message.hasOwnProperty("paymentLinkMetadata"))
|
|
47770
48217
|
object.paymentLinkMetadata = $root.E2E.Message.PaymentLinkMetadata.toObject(message.paymentLinkMetadata, options);
|
|
@@ -47778,6 +48225,12 @@ $root.E2E = (function() {
|
|
|
47778
48225
|
object.socialMediaPostType = options.enums === String ? $root.E2E.Message.LinkPreviewMetadata.SocialMediaPostType[message.socialMediaPostType] === undefined ? message.socialMediaPostType : $root.E2E.Message.LinkPreviewMetadata.SocialMediaPostType[message.socialMediaPostType] : message.socialMediaPostType;
|
|
47779
48226
|
if (message.linkInlineVideoMuted != null && message.hasOwnProperty("linkInlineVideoMuted"))
|
|
47780
48227
|
object.linkInlineVideoMuted = message.linkInlineVideoMuted;
|
|
48228
|
+
if (message.videoContentUrl != null && message.hasOwnProperty("videoContentUrl"))
|
|
48229
|
+
object.videoContentUrl = message.videoContentUrl;
|
|
48230
|
+
if (message.musicMetadata != null && message.hasOwnProperty("musicMetadata"))
|
|
48231
|
+
object.musicMetadata = $root.E2E.EmbeddedMusic.toObject(message.musicMetadata, options);
|
|
48232
|
+
if (message.videoContentCaption != null && message.hasOwnProperty("videoContentCaption"))
|
|
48233
|
+
object.videoContentCaption = message.videoContentCaption;
|
|
47781
48234
|
return object;
|
|
47782
48235
|
};
|
|
47783
48236
|
|
|
@@ -53909,6 +54362,258 @@ $root.E2E = (function() {
|
|
|
53909
54362
|
return OrderMessage;
|
|
53910
54363
|
})();
|
|
53911
54364
|
|
|
54365
|
+
Message.PaymentExtendedMetadata = (function() {
|
|
54366
|
+
|
|
54367
|
+
/**
|
|
54368
|
+
* Properties of a PaymentExtendedMetadata.
|
|
54369
|
+
* @memberof E2E.Message
|
|
54370
|
+
* @interface IPaymentExtendedMetadata
|
|
54371
|
+
* @property {number|null} [type] PaymentExtendedMetadata type
|
|
54372
|
+
* @property {string|null} [platform] PaymentExtendedMetadata platform
|
|
54373
|
+
* @property {string|null} [messageParamsJson] PaymentExtendedMetadata messageParamsJson
|
|
54374
|
+
*/
|
|
54375
|
+
|
|
54376
|
+
/**
|
|
54377
|
+
* Constructs a new PaymentExtendedMetadata.
|
|
54378
|
+
* @memberof E2E.Message
|
|
54379
|
+
* @classdesc Represents a PaymentExtendedMetadata.
|
|
54380
|
+
* @implements IPaymentExtendedMetadata
|
|
54381
|
+
* @constructor
|
|
54382
|
+
* @param {E2E.Message.IPaymentExtendedMetadata=} [properties] Properties to set
|
|
54383
|
+
*/
|
|
54384
|
+
function PaymentExtendedMetadata(properties) {
|
|
54385
|
+
if (properties)
|
|
54386
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54387
|
+
if (properties[keys[i]] != null)
|
|
54388
|
+
this[keys[i]] = properties[keys[i]];
|
|
54389
|
+
}
|
|
54390
|
+
|
|
54391
|
+
/**
|
|
54392
|
+
* PaymentExtendedMetadata type.
|
|
54393
|
+
* @member {number} type
|
|
54394
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54395
|
+
* @instance
|
|
54396
|
+
*/
|
|
54397
|
+
PaymentExtendedMetadata.prototype.type = 0;
|
|
54398
|
+
|
|
54399
|
+
/**
|
|
54400
|
+
* PaymentExtendedMetadata platform.
|
|
54401
|
+
* @member {string} platform
|
|
54402
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54403
|
+
* @instance
|
|
54404
|
+
*/
|
|
54405
|
+
PaymentExtendedMetadata.prototype.platform = "";
|
|
54406
|
+
|
|
54407
|
+
/**
|
|
54408
|
+
* PaymentExtendedMetadata messageParamsJson.
|
|
54409
|
+
* @member {string} messageParamsJson
|
|
54410
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54411
|
+
* @instance
|
|
54412
|
+
*/
|
|
54413
|
+
PaymentExtendedMetadata.prototype.messageParamsJson = "";
|
|
54414
|
+
|
|
54415
|
+
/**
|
|
54416
|
+
* Creates a new PaymentExtendedMetadata instance using the specified properties.
|
|
54417
|
+
* @function create
|
|
54418
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54419
|
+
* @static
|
|
54420
|
+
* @param {E2E.Message.IPaymentExtendedMetadata=} [properties] Properties to set
|
|
54421
|
+
* @returns {E2E.Message.PaymentExtendedMetadata} PaymentExtendedMetadata instance
|
|
54422
|
+
*/
|
|
54423
|
+
PaymentExtendedMetadata.create = function create(properties) {
|
|
54424
|
+
return new PaymentExtendedMetadata(properties);
|
|
54425
|
+
};
|
|
54426
|
+
|
|
54427
|
+
/**
|
|
54428
|
+
* Encodes the specified PaymentExtendedMetadata message. Does not implicitly {@link E2E.Message.PaymentExtendedMetadata.verify|verify} messages.
|
|
54429
|
+
* @function encode
|
|
54430
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54431
|
+
* @static
|
|
54432
|
+
* @param {E2E.Message.IPaymentExtendedMetadata} message PaymentExtendedMetadata message or plain object to encode
|
|
54433
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54434
|
+
* @returns {$protobuf.Writer} Writer
|
|
54435
|
+
*/
|
|
54436
|
+
PaymentExtendedMetadata.encode = function encode(message, writer) {
|
|
54437
|
+
if (!writer)
|
|
54438
|
+
writer = $Writer.create();
|
|
54439
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
54440
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.type);
|
|
54441
|
+
if (message.platform != null && Object.hasOwnProperty.call(message, "platform"))
|
|
54442
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.platform);
|
|
54443
|
+
if (message.messageParamsJson != null && Object.hasOwnProperty.call(message, "messageParamsJson"))
|
|
54444
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.messageParamsJson);
|
|
54445
|
+
return writer;
|
|
54446
|
+
};
|
|
54447
|
+
|
|
54448
|
+
/**
|
|
54449
|
+
* Encodes the specified PaymentExtendedMetadata message, length delimited. Does not implicitly {@link E2E.Message.PaymentExtendedMetadata.verify|verify} messages.
|
|
54450
|
+
* @function encodeDelimited
|
|
54451
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54452
|
+
* @static
|
|
54453
|
+
* @param {E2E.Message.IPaymentExtendedMetadata} message PaymentExtendedMetadata message or plain object to encode
|
|
54454
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54455
|
+
* @returns {$protobuf.Writer} Writer
|
|
54456
|
+
*/
|
|
54457
|
+
PaymentExtendedMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
54458
|
+
return this.encode(message, writer).ldelim();
|
|
54459
|
+
};
|
|
54460
|
+
|
|
54461
|
+
/**
|
|
54462
|
+
* Decodes a PaymentExtendedMetadata message from the specified reader or buffer.
|
|
54463
|
+
* @function decode
|
|
54464
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54465
|
+
* @static
|
|
54466
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54467
|
+
* @param {number} [length] Message length if known beforehand
|
|
54468
|
+
* @returns {E2E.Message.PaymentExtendedMetadata} PaymentExtendedMetadata
|
|
54469
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54470
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54471
|
+
*/
|
|
54472
|
+
PaymentExtendedMetadata.decode = function decode(reader, length, error) {
|
|
54473
|
+
if (!(reader instanceof $Reader))
|
|
54474
|
+
reader = $Reader.create(reader);
|
|
54475
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.Message.PaymentExtendedMetadata();
|
|
54476
|
+
while (reader.pos < end) {
|
|
54477
|
+
var tag = reader.uint32();
|
|
54478
|
+
if (tag === error)
|
|
54479
|
+
break;
|
|
54480
|
+
switch (tag >>> 3) {
|
|
54481
|
+
case 1: {
|
|
54482
|
+
message.type = reader.uint32();
|
|
54483
|
+
break;
|
|
54484
|
+
}
|
|
54485
|
+
case 2: {
|
|
54486
|
+
message.platform = reader.string();
|
|
54487
|
+
break;
|
|
54488
|
+
}
|
|
54489
|
+
case 3: {
|
|
54490
|
+
message.messageParamsJson = reader.string();
|
|
54491
|
+
break;
|
|
54492
|
+
}
|
|
54493
|
+
default:
|
|
54494
|
+
reader.skipType(tag & 7);
|
|
54495
|
+
break;
|
|
54496
|
+
}
|
|
54497
|
+
}
|
|
54498
|
+
return message;
|
|
54499
|
+
};
|
|
54500
|
+
|
|
54501
|
+
/**
|
|
54502
|
+
* Decodes a PaymentExtendedMetadata message from the specified reader or buffer, length delimited.
|
|
54503
|
+
* @function decodeDelimited
|
|
54504
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54505
|
+
* @static
|
|
54506
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54507
|
+
* @returns {E2E.Message.PaymentExtendedMetadata} PaymentExtendedMetadata
|
|
54508
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54509
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54510
|
+
*/
|
|
54511
|
+
PaymentExtendedMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
54512
|
+
if (!(reader instanceof $Reader))
|
|
54513
|
+
reader = new $Reader(reader);
|
|
54514
|
+
return this.decode(reader, reader.uint32());
|
|
54515
|
+
};
|
|
54516
|
+
|
|
54517
|
+
/**
|
|
54518
|
+
* Verifies a PaymentExtendedMetadata message.
|
|
54519
|
+
* @function verify
|
|
54520
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54521
|
+
* @static
|
|
54522
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
54523
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54524
|
+
*/
|
|
54525
|
+
PaymentExtendedMetadata.verify = function verify(message) {
|
|
54526
|
+
if (typeof message !== "object" || message === null)
|
|
54527
|
+
return "object expected";
|
|
54528
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
54529
|
+
if (!$util.isInteger(message.type))
|
|
54530
|
+
return "type: integer expected";
|
|
54531
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
54532
|
+
if (!$util.isString(message.platform))
|
|
54533
|
+
return "platform: string expected";
|
|
54534
|
+
if (message.messageParamsJson != null && message.hasOwnProperty("messageParamsJson"))
|
|
54535
|
+
if (!$util.isString(message.messageParamsJson))
|
|
54536
|
+
return "messageParamsJson: string expected";
|
|
54537
|
+
return null;
|
|
54538
|
+
};
|
|
54539
|
+
|
|
54540
|
+
/**
|
|
54541
|
+
* Creates a PaymentExtendedMetadata message from a plain object. Also converts values to their respective internal types.
|
|
54542
|
+
* @function fromObject
|
|
54543
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54544
|
+
* @static
|
|
54545
|
+
* @param {Object.<string,*>} object Plain object
|
|
54546
|
+
* @returns {E2E.Message.PaymentExtendedMetadata} PaymentExtendedMetadata
|
|
54547
|
+
*/
|
|
54548
|
+
PaymentExtendedMetadata.fromObject = function fromObject(object) {
|
|
54549
|
+
if (object instanceof $root.E2E.Message.PaymentExtendedMetadata)
|
|
54550
|
+
return object;
|
|
54551
|
+
var message = new $root.E2E.Message.PaymentExtendedMetadata();
|
|
54552
|
+
if (object.type != null)
|
|
54553
|
+
message.type = object.type >>> 0;
|
|
54554
|
+
if (object.platform != null)
|
|
54555
|
+
message.platform = String(object.platform);
|
|
54556
|
+
if (object.messageParamsJson != null)
|
|
54557
|
+
message.messageParamsJson = String(object.messageParamsJson);
|
|
54558
|
+
return message;
|
|
54559
|
+
};
|
|
54560
|
+
|
|
54561
|
+
/**
|
|
54562
|
+
* Creates a plain object from a PaymentExtendedMetadata message. Also converts values to other types if specified.
|
|
54563
|
+
* @function toObject
|
|
54564
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54565
|
+
* @static
|
|
54566
|
+
* @param {E2E.Message.PaymentExtendedMetadata} message PaymentExtendedMetadata
|
|
54567
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54568
|
+
* @returns {Object.<string,*>} Plain object
|
|
54569
|
+
*/
|
|
54570
|
+
PaymentExtendedMetadata.toObject = function toObject(message, options) {
|
|
54571
|
+
if (!options)
|
|
54572
|
+
options = {};
|
|
54573
|
+
var object = {};
|
|
54574
|
+
if (options.defaults) {
|
|
54575
|
+
object.type = 0;
|
|
54576
|
+
object.platform = "";
|
|
54577
|
+
object.messageParamsJson = "";
|
|
54578
|
+
}
|
|
54579
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
54580
|
+
object.type = message.type;
|
|
54581
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
54582
|
+
object.platform = message.platform;
|
|
54583
|
+
if (message.messageParamsJson != null && message.hasOwnProperty("messageParamsJson"))
|
|
54584
|
+
object.messageParamsJson = message.messageParamsJson;
|
|
54585
|
+
return object;
|
|
54586
|
+
};
|
|
54587
|
+
|
|
54588
|
+
/**
|
|
54589
|
+
* Converts this PaymentExtendedMetadata to JSON.
|
|
54590
|
+
* @function toJSON
|
|
54591
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54592
|
+
* @instance
|
|
54593
|
+
* @returns {Object.<string,*>} JSON object
|
|
54594
|
+
*/
|
|
54595
|
+
PaymentExtendedMetadata.prototype.toJSON = function toJSON() {
|
|
54596
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54597
|
+
};
|
|
54598
|
+
|
|
54599
|
+
/**
|
|
54600
|
+
* Gets the default type url for PaymentExtendedMetadata
|
|
54601
|
+
* @function getTypeUrl
|
|
54602
|
+
* @memberof E2E.Message.PaymentExtendedMetadata
|
|
54603
|
+
* @static
|
|
54604
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
54605
|
+
* @returns {string} The default type url
|
|
54606
|
+
*/
|
|
54607
|
+
PaymentExtendedMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
54608
|
+
if (typeUrlPrefix === undefined) {
|
|
54609
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
54610
|
+
}
|
|
54611
|
+
return typeUrlPrefix + "/E2E.Message.PaymentExtendedMetadata";
|
|
54612
|
+
};
|
|
54613
|
+
|
|
54614
|
+
return PaymentExtendedMetadata;
|
|
54615
|
+
})();
|
|
54616
|
+
|
|
53912
54617
|
Message.PaymentInviteMessage = (function() {
|
|
53913
54618
|
|
|
53914
54619
|
/**
|
|
@@ -55128,6 +55833,7 @@ $root.E2E = (function() {
|
|
|
55128
55833
|
* @property {E2E.Message.PeerDataOperationRequestMessage.IFullHistorySyncOnDemandRequest|null} [fullHistorySyncOnDemandRequest] PeerDataOperationRequestMessage fullHistorySyncOnDemandRequest
|
|
55129
55834
|
* @property {E2E.Message.PeerDataOperationRequestMessage.ISyncDCollectionFatalRecoveryRequest|null} [syncdCollectionFatalRecoveryRequest] PeerDataOperationRequestMessage syncdCollectionFatalRecoveryRequest
|
|
55130
55835
|
* @property {E2E.Message.PeerDataOperationRequestMessage.IHistorySyncChunkRetryRequest|null} [historySyncChunkRetryRequest] PeerDataOperationRequestMessage historySyncChunkRetryRequest
|
|
55836
|
+
* @property {E2E.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction|null} [galaxyFlowAction] PeerDataOperationRequestMessage galaxyFlowAction
|
|
55131
55837
|
*/
|
|
55132
55838
|
|
|
55133
55839
|
/**
|
|
@@ -55212,6 +55918,14 @@ $root.E2E = (function() {
|
|
|
55212
55918
|
*/
|
|
55213
55919
|
PeerDataOperationRequestMessage.prototype.historySyncChunkRetryRequest = null;
|
|
55214
55920
|
|
|
55921
|
+
/**
|
|
55922
|
+
* PeerDataOperationRequestMessage galaxyFlowAction.
|
|
55923
|
+
* @member {E2E.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction|null|undefined} galaxyFlowAction
|
|
55924
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage
|
|
55925
|
+
* @instance
|
|
55926
|
+
*/
|
|
55927
|
+
PeerDataOperationRequestMessage.prototype.galaxyFlowAction = null;
|
|
55928
|
+
|
|
55215
55929
|
/**
|
|
55216
55930
|
* Creates a new PeerDataOperationRequestMessage instance using the specified properties.
|
|
55217
55931
|
* @function create
|
|
@@ -55255,6 +55969,8 @@ $root.E2E = (function() {
|
|
|
55255
55969
|
$root.E2E.Message.PeerDataOperationRequestMessage.SyncDCollectionFatalRecoveryRequest.encode(message.syncdCollectionFatalRecoveryRequest, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
55256
55970
|
if (message.historySyncChunkRetryRequest != null && Object.hasOwnProperty.call(message, "historySyncChunkRetryRequest"))
|
|
55257
55971
|
$root.E2E.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest.encode(message.historySyncChunkRetryRequest, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
55972
|
+
if (message.galaxyFlowAction != null && Object.hasOwnProperty.call(message, "galaxyFlowAction"))
|
|
55973
|
+
$root.E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.encode(message.galaxyFlowAction, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
55258
55974
|
return writer;
|
|
55259
55975
|
};
|
|
55260
55976
|
|
|
@@ -55329,6 +56045,10 @@ $root.E2E = (function() {
|
|
|
55329
56045
|
message.historySyncChunkRetryRequest = $root.E2E.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest.decode(reader, reader.uint32());
|
|
55330
56046
|
break;
|
|
55331
56047
|
}
|
|
56048
|
+
case 9: {
|
|
56049
|
+
message.galaxyFlowAction = $root.E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.decode(reader, reader.uint32());
|
|
56050
|
+
break;
|
|
56051
|
+
}
|
|
55332
56052
|
default:
|
|
55333
56053
|
reader.skipType(tag & 7);
|
|
55334
56054
|
break;
|
|
@@ -55379,6 +56099,7 @@ $root.E2E = (function() {
|
|
|
55379
56099
|
case 8:
|
|
55380
56100
|
case 9:
|
|
55381
56101
|
case 10:
|
|
56102
|
+
case 11:
|
|
55382
56103
|
break;
|
|
55383
56104
|
}
|
|
55384
56105
|
if (message.requestStickerReupload != null && message.hasOwnProperty("requestStickerReupload")) {
|
|
@@ -55428,6 +56149,11 @@ $root.E2E = (function() {
|
|
|
55428
56149
|
if (error)
|
|
55429
56150
|
return "historySyncChunkRetryRequest." + error;
|
|
55430
56151
|
}
|
|
56152
|
+
if (message.galaxyFlowAction != null && message.hasOwnProperty("galaxyFlowAction")) {
|
|
56153
|
+
var error = $root.E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.verify(message.galaxyFlowAction);
|
|
56154
|
+
if (error)
|
|
56155
|
+
return "galaxyFlowAction." + error;
|
|
56156
|
+
}
|
|
55431
56157
|
return null;
|
|
55432
56158
|
};
|
|
55433
56159
|
|
|
@@ -55494,6 +56220,10 @@ $root.E2E = (function() {
|
|
|
55494
56220
|
case 10:
|
|
55495
56221
|
message.peerDataOperationRequestType = 10;
|
|
55496
56222
|
break;
|
|
56223
|
+
case "GALAXY_FLOW_ACTION":
|
|
56224
|
+
case 11:
|
|
56225
|
+
message.peerDataOperationRequestType = 11;
|
|
56226
|
+
break;
|
|
55497
56227
|
}
|
|
55498
56228
|
if (object.requestStickerReupload) {
|
|
55499
56229
|
if (!Array.isArray(object.requestStickerReupload))
|
|
@@ -55545,6 +56275,11 @@ $root.E2E = (function() {
|
|
|
55545
56275
|
throw TypeError(".E2E.Message.PeerDataOperationRequestMessage.historySyncChunkRetryRequest: object expected");
|
|
55546
56276
|
message.historySyncChunkRetryRequest = $root.E2E.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest.fromObject(object.historySyncChunkRetryRequest);
|
|
55547
56277
|
}
|
|
56278
|
+
if (object.galaxyFlowAction != null) {
|
|
56279
|
+
if (typeof object.galaxyFlowAction !== "object")
|
|
56280
|
+
throw TypeError(".E2E.Message.PeerDataOperationRequestMessage.galaxyFlowAction: object expected");
|
|
56281
|
+
message.galaxyFlowAction = $root.E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.fromObject(object.galaxyFlowAction);
|
|
56282
|
+
}
|
|
55548
56283
|
return message;
|
|
55549
56284
|
};
|
|
55550
56285
|
|
|
@@ -55572,6 +56307,7 @@ $root.E2E = (function() {
|
|
|
55572
56307
|
object.fullHistorySyncOnDemandRequest = null;
|
|
55573
56308
|
object.syncdCollectionFatalRecoveryRequest = null;
|
|
55574
56309
|
object.historySyncChunkRetryRequest = null;
|
|
56310
|
+
object.galaxyFlowAction = null;
|
|
55575
56311
|
}
|
|
55576
56312
|
if (message.peerDataOperationRequestType != null && message.hasOwnProperty("peerDataOperationRequestType"))
|
|
55577
56313
|
object.peerDataOperationRequestType = options.enums === String ? $root.E2E.Message.PeerDataOperationRequestType[message.peerDataOperationRequestType] === undefined ? message.peerDataOperationRequestType : $root.E2E.Message.PeerDataOperationRequestType[message.peerDataOperationRequestType] : message.peerDataOperationRequestType;
|
|
@@ -55598,6 +56334,8 @@ $root.E2E = (function() {
|
|
|
55598
56334
|
object.syncdCollectionFatalRecoveryRequest = $root.E2E.Message.PeerDataOperationRequestMessage.SyncDCollectionFatalRecoveryRequest.toObject(message.syncdCollectionFatalRecoveryRequest, options);
|
|
55599
56335
|
if (message.historySyncChunkRetryRequest != null && message.hasOwnProperty("historySyncChunkRetryRequest"))
|
|
55600
56336
|
object.historySyncChunkRetryRequest = $root.E2E.Message.PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest.toObject(message.historySyncChunkRetryRequest, options);
|
|
56337
|
+
if (message.galaxyFlowAction != null && message.hasOwnProperty("galaxyFlowAction"))
|
|
56338
|
+
object.galaxyFlowAction = $root.E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.toObject(message.galaxyFlowAction, options);
|
|
55601
56339
|
return object;
|
|
55602
56340
|
};
|
|
55603
56341
|
|
|
@@ -55866,6 +56604,284 @@ $root.E2E = (function() {
|
|
|
55866
56604
|
return FullHistorySyncOnDemandRequest;
|
|
55867
56605
|
})();
|
|
55868
56606
|
|
|
56607
|
+
PeerDataOperationRequestMessage.GalaxyFlowAction = (function() {
|
|
56608
|
+
|
|
56609
|
+
/**
|
|
56610
|
+
* Properties of a GalaxyFlowAction.
|
|
56611
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage
|
|
56612
|
+
* @interface IGalaxyFlowAction
|
|
56613
|
+
* @property {E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType} type GalaxyFlowAction type
|
|
56614
|
+
* @property {string} flowId GalaxyFlowAction flowId
|
|
56615
|
+
* @property {string} stanzaId GalaxyFlowAction stanzaId
|
|
56616
|
+
*/
|
|
56617
|
+
|
|
56618
|
+
/**
|
|
56619
|
+
* Constructs a new GalaxyFlowAction.
|
|
56620
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage
|
|
56621
|
+
* @classdesc Represents a GalaxyFlowAction.
|
|
56622
|
+
* @implements IGalaxyFlowAction
|
|
56623
|
+
* @constructor
|
|
56624
|
+
* @param {E2E.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction=} [properties] Properties to set
|
|
56625
|
+
*/
|
|
56626
|
+
function GalaxyFlowAction(properties) {
|
|
56627
|
+
if (properties)
|
|
56628
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
56629
|
+
if (properties[keys[i]] != null)
|
|
56630
|
+
this[keys[i]] = properties[keys[i]];
|
|
56631
|
+
}
|
|
56632
|
+
|
|
56633
|
+
/**
|
|
56634
|
+
* GalaxyFlowAction type.
|
|
56635
|
+
* @member {E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType} type
|
|
56636
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56637
|
+
* @instance
|
|
56638
|
+
*/
|
|
56639
|
+
GalaxyFlowAction.prototype.type = 1;
|
|
56640
|
+
|
|
56641
|
+
/**
|
|
56642
|
+
* GalaxyFlowAction flowId.
|
|
56643
|
+
* @member {string} flowId
|
|
56644
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56645
|
+
* @instance
|
|
56646
|
+
*/
|
|
56647
|
+
GalaxyFlowAction.prototype.flowId = "";
|
|
56648
|
+
|
|
56649
|
+
/**
|
|
56650
|
+
* GalaxyFlowAction stanzaId.
|
|
56651
|
+
* @member {string} stanzaId
|
|
56652
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56653
|
+
* @instance
|
|
56654
|
+
*/
|
|
56655
|
+
GalaxyFlowAction.prototype.stanzaId = "";
|
|
56656
|
+
|
|
56657
|
+
/**
|
|
56658
|
+
* Creates a new GalaxyFlowAction instance using the specified properties.
|
|
56659
|
+
* @function create
|
|
56660
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56661
|
+
* @static
|
|
56662
|
+
* @param {E2E.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction=} [properties] Properties to set
|
|
56663
|
+
* @returns {E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction} GalaxyFlowAction instance
|
|
56664
|
+
*/
|
|
56665
|
+
GalaxyFlowAction.create = function create(properties) {
|
|
56666
|
+
return new GalaxyFlowAction(properties);
|
|
56667
|
+
};
|
|
56668
|
+
|
|
56669
|
+
/**
|
|
56670
|
+
* Encodes the specified GalaxyFlowAction message. Does not implicitly {@link E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.verify|verify} messages.
|
|
56671
|
+
* @function encode
|
|
56672
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56673
|
+
* @static
|
|
56674
|
+
* @param {E2E.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction} message GalaxyFlowAction message or plain object to encode
|
|
56675
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56676
|
+
* @returns {$protobuf.Writer} Writer
|
|
56677
|
+
*/
|
|
56678
|
+
GalaxyFlowAction.encode = function encode(message, writer) {
|
|
56679
|
+
if (!writer)
|
|
56680
|
+
writer = $Writer.create();
|
|
56681
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type);
|
|
56682
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowId);
|
|
56683
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.stanzaId);
|
|
56684
|
+
return writer;
|
|
56685
|
+
};
|
|
56686
|
+
|
|
56687
|
+
/**
|
|
56688
|
+
* Encodes the specified GalaxyFlowAction message, length delimited. Does not implicitly {@link E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.verify|verify} messages.
|
|
56689
|
+
* @function encodeDelimited
|
|
56690
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56691
|
+
* @static
|
|
56692
|
+
* @param {E2E.Message.PeerDataOperationRequestMessage.IGalaxyFlowAction} message GalaxyFlowAction message or plain object to encode
|
|
56693
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56694
|
+
* @returns {$protobuf.Writer} Writer
|
|
56695
|
+
*/
|
|
56696
|
+
GalaxyFlowAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
56697
|
+
return this.encode(message, writer).ldelim();
|
|
56698
|
+
};
|
|
56699
|
+
|
|
56700
|
+
/**
|
|
56701
|
+
* Decodes a GalaxyFlowAction message from the specified reader or buffer.
|
|
56702
|
+
* @function decode
|
|
56703
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56704
|
+
* @static
|
|
56705
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56706
|
+
* @param {number} [length] Message length if known beforehand
|
|
56707
|
+
* @returns {E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction} GalaxyFlowAction
|
|
56708
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56709
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56710
|
+
*/
|
|
56711
|
+
GalaxyFlowAction.decode = function decode(reader, length, error) {
|
|
56712
|
+
if (!(reader instanceof $Reader))
|
|
56713
|
+
reader = $Reader.create(reader);
|
|
56714
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction();
|
|
56715
|
+
while (reader.pos < end) {
|
|
56716
|
+
var tag = reader.uint32();
|
|
56717
|
+
if (tag === error)
|
|
56718
|
+
break;
|
|
56719
|
+
switch (tag >>> 3) {
|
|
56720
|
+
case 1: {
|
|
56721
|
+
message.type = reader.int32();
|
|
56722
|
+
break;
|
|
56723
|
+
}
|
|
56724
|
+
case 2: {
|
|
56725
|
+
message.flowId = reader.string();
|
|
56726
|
+
break;
|
|
56727
|
+
}
|
|
56728
|
+
case 3: {
|
|
56729
|
+
message.stanzaId = reader.string();
|
|
56730
|
+
break;
|
|
56731
|
+
}
|
|
56732
|
+
default:
|
|
56733
|
+
reader.skipType(tag & 7);
|
|
56734
|
+
break;
|
|
56735
|
+
}
|
|
56736
|
+
}
|
|
56737
|
+
if (!message.hasOwnProperty("type"))
|
|
56738
|
+
throw $util.ProtocolError("missing required 'type'", { instance: message });
|
|
56739
|
+
if (!message.hasOwnProperty("flowId"))
|
|
56740
|
+
throw $util.ProtocolError("missing required 'flowId'", { instance: message });
|
|
56741
|
+
if (!message.hasOwnProperty("stanzaId"))
|
|
56742
|
+
throw $util.ProtocolError("missing required 'stanzaId'", { instance: message });
|
|
56743
|
+
return message;
|
|
56744
|
+
};
|
|
56745
|
+
|
|
56746
|
+
/**
|
|
56747
|
+
* Decodes a GalaxyFlowAction message from the specified reader or buffer, length delimited.
|
|
56748
|
+
* @function decodeDelimited
|
|
56749
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56750
|
+
* @static
|
|
56751
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56752
|
+
* @returns {E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction} GalaxyFlowAction
|
|
56753
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56754
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56755
|
+
*/
|
|
56756
|
+
GalaxyFlowAction.decodeDelimited = function decodeDelimited(reader) {
|
|
56757
|
+
if (!(reader instanceof $Reader))
|
|
56758
|
+
reader = new $Reader(reader);
|
|
56759
|
+
return this.decode(reader, reader.uint32());
|
|
56760
|
+
};
|
|
56761
|
+
|
|
56762
|
+
/**
|
|
56763
|
+
* Verifies a GalaxyFlowAction message.
|
|
56764
|
+
* @function verify
|
|
56765
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56766
|
+
* @static
|
|
56767
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
56768
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
56769
|
+
*/
|
|
56770
|
+
GalaxyFlowAction.verify = function verify(message) {
|
|
56771
|
+
if (typeof message !== "object" || message === null)
|
|
56772
|
+
return "object expected";
|
|
56773
|
+
switch (message.type) {
|
|
56774
|
+
default:
|
|
56775
|
+
return "type: enum value expected";
|
|
56776
|
+
case 1:
|
|
56777
|
+
break;
|
|
56778
|
+
}
|
|
56779
|
+
if (!$util.isString(message.flowId))
|
|
56780
|
+
return "flowId: string expected";
|
|
56781
|
+
if (!$util.isString(message.stanzaId))
|
|
56782
|
+
return "stanzaId: string expected";
|
|
56783
|
+
return null;
|
|
56784
|
+
};
|
|
56785
|
+
|
|
56786
|
+
/**
|
|
56787
|
+
* Creates a GalaxyFlowAction message from a plain object. Also converts values to their respective internal types.
|
|
56788
|
+
* @function fromObject
|
|
56789
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56790
|
+
* @static
|
|
56791
|
+
* @param {Object.<string,*>} object Plain object
|
|
56792
|
+
* @returns {E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction} GalaxyFlowAction
|
|
56793
|
+
*/
|
|
56794
|
+
GalaxyFlowAction.fromObject = function fromObject(object) {
|
|
56795
|
+
if (object instanceof $root.E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction)
|
|
56796
|
+
return object;
|
|
56797
|
+
var message = new $root.E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction();
|
|
56798
|
+
switch (object.type) {
|
|
56799
|
+
default:
|
|
56800
|
+
if (typeof object.type === "number") {
|
|
56801
|
+
message.type = object.type;
|
|
56802
|
+
break;
|
|
56803
|
+
}
|
|
56804
|
+
break;
|
|
56805
|
+
case "NOTIFY_LAUNCH":
|
|
56806
|
+
case 1:
|
|
56807
|
+
message.type = 1;
|
|
56808
|
+
break;
|
|
56809
|
+
}
|
|
56810
|
+
if (object.flowId != null)
|
|
56811
|
+
message.flowId = String(object.flowId);
|
|
56812
|
+
if (object.stanzaId != null)
|
|
56813
|
+
message.stanzaId = String(object.stanzaId);
|
|
56814
|
+
return message;
|
|
56815
|
+
};
|
|
56816
|
+
|
|
56817
|
+
/**
|
|
56818
|
+
* Creates a plain object from a GalaxyFlowAction message. Also converts values to other types if specified.
|
|
56819
|
+
* @function toObject
|
|
56820
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56821
|
+
* @static
|
|
56822
|
+
* @param {E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction} message GalaxyFlowAction
|
|
56823
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
56824
|
+
* @returns {Object.<string,*>} Plain object
|
|
56825
|
+
*/
|
|
56826
|
+
GalaxyFlowAction.toObject = function toObject(message, options) {
|
|
56827
|
+
if (!options)
|
|
56828
|
+
options = {};
|
|
56829
|
+
var object = {};
|
|
56830
|
+
if (options.defaults) {
|
|
56831
|
+
object.type = options.enums === String ? "NOTIFY_LAUNCH" : 1;
|
|
56832
|
+
object.flowId = "";
|
|
56833
|
+
object.stanzaId = "";
|
|
56834
|
+
}
|
|
56835
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
56836
|
+
object.type = options.enums === String ? $root.E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType[message.type] === undefined ? message.type : $root.E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType[message.type] : message.type;
|
|
56837
|
+
if (message.flowId != null && message.hasOwnProperty("flowId"))
|
|
56838
|
+
object.flowId = message.flowId;
|
|
56839
|
+
if (message.stanzaId != null && message.hasOwnProperty("stanzaId"))
|
|
56840
|
+
object.stanzaId = message.stanzaId;
|
|
56841
|
+
return object;
|
|
56842
|
+
};
|
|
56843
|
+
|
|
56844
|
+
/**
|
|
56845
|
+
* Converts this GalaxyFlowAction to JSON.
|
|
56846
|
+
* @function toJSON
|
|
56847
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56848
|
+
* @instance
|
|
56849
|
+
* @returns {Object.<string,*>} JSON object
|
|
56850
|
+
*/
|
|
56851
|
+
GalaxyFlowAction.prototype.toJSON = function toJSON() {
|
|
56852
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
56853
|
+
};
|
|
56854
|
+
|
|
56855
|
+
/**
|
|
56856
|
+
* Gets the default type url for GalaxyFlowAction
|
|
56857
|
+
* @function getTypeUrl
|
|
56858
|
+
* @memberof E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction
|
|
56859
|
+
* @static
|
|
56860
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
56861
|
+
* @returns {string} The default type url
|
|
56862
|
+
*/
|
|
56863
|
+
GalaxyFlowAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
56864
|
+
if (typeUrlPrefix === undefined) {
|
|
56865
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
56866
|
+
}
|
|
56867
|
+
return typeUrlPrefix + "/E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction";
|
|
56868
|
+
};
|
|
56869
|
+
|
|
56870
|
+
/**
|
|
56871
|
+
* GalaxyFlowActionType enum.
|
|
56872
|
+
* @name E2E.Message.PeerDataOperationRequestMessage.GalaxyFlowAction.GalaxyFlowActionType
|
|
56873
|
+
* @enum {number}
|
|
56874
|
+
* @property {number} NOTIFY_LAUNCH=1 NOTIFY_LAUNCH value
|
|
56875
|
+
*/
|
|
56876
|
+
GalaxyFlowAction.GalaxyFlowActionType = (function() {
|
|
56877
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
56878
|
+
values[valuesById[1] = "NOTIFY_LAUNCH"] = 1;
|
|
56879
|
+
return values;
|
|
56880
|
+
})();
|
|
56881
|
+
|
|
56882
|
+
return GalaxyFlowAction;
|
|
56883
|
+
})();
|
|
56884
|
+
|
|
55869
56885
|
PeerDataOperationRequestMessage.HistorySyncChunkRetryRequest = (function() {
|
|
55870
56886
|
|
|
55871
56887
|
/**
|
|
@@ -57597,6 +58613,7 @@ $root.E2E = (function() {
|
|
|
57597
58613
|
case 8:
|
|
57598
58614
|
case 9:
|
|
57599
58615
|
case 10:
|
|
58616
|
+
case 11:
|
|
57600
58617
|
break;
|
|
57601
58618
|
}
|
|
57602
58619
|
if (message.stanzaId != null && message.hasOwnProperty("stanzaId"))
|
|
@@ -57677,6 +58694,10 @@ $root.E2E = (function() {
|
|
|
57677
58694
|
case 10:
|
|
57678
58695
|
message.peerDataOperationRequestType = 10;
|
|
57679
58696
|
break;
|
|
58697
|
+
case "GALAXY_FLOW_ACTION":
|
|
58698
|
+
case 11:
|
|
58699
|
+
message.peerDataOperationRequestType = 11;
|
|
58700
|
+
break;
|
|
57680
58701
|
}
|
|
57681
58702
|
if (object.stanzaId != null)
|
|
57682
58703
|
message.stanzaId = String(object.stanzaId);
|
|
@@ -61085,6 +62106,7 @@ $root.E2E = (function() {
|
|
|
61085
62106
|
* @property {number} COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8 COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY value
|
|
61086
62107
|
* @property {number} COMPANION_CANONICAL_USER_NONCE_FETCH=9 COMPANION_CANONICAL_USER_NONCE_FETCH value
|
|
61087
62108
|
* @property {number} HISTORY_SYNC_CHUNK_RETRY=10 HISTORY_SYNC_CHUNK_RETRY value
|
|
62109
|
+
* @property {number} GALAXY_FLOW_ACTION=11 GALAXY_FLOW_ACTION value
|
|
61088
62110
|
*/
|
|
61089
62111
|
Message.PeerDataOperationRequestType = (function() {
|
|
61090
62112
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -61099,6 +62121,7 @@ $root.E2E = (function() {
|
|
|
61099
62121
|
values[valuesById[8] = "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY"] = 8;
|
|
61100
62122
|
values[valuesById[9] = "COMPANION_CANONICAL_USER_NONCE_FETCH"] = 9;
|
|
61101
62123
|
values[valuesById[10] = "HISTORY_SYNC_CHUNK_RETRY"] = 10;
|
|
62124
|
+
values[valuesById[11] = "GALAXY_FLOW_ACTION"] = 11;
|
|
61102
62125
|
return values;
|
|
61103
62126
|
})();
|
|
61104
62127
|
|
|
@@ -61672,7 +62695,7 @@ $root.E2E = (function() {
|
|
|
61672
62695
|
* @property {number|null} [selectableOptionsCount] PollCreationMessage selectableOptionsCount
|
|
61673
62696
|
* @property {E2E.IContextInfo|null} [contextInfo] PollCreationMessage contextInfo
|
|
61674
62697
|
* @property {E2E.Message.PollContentType|null} [pollContentType] PollCreationMessage pollContentType
|
|
61675
|
-
* @property {E2E.Message.
|
|
62698
|
+
* @property {E2E.Message.PollType|null} [pollType] PollCreationMessage pollType
|
|
61676
62699
|
* @property {E2E.Message.PollCreationMessage.IOption|null} [correctAnswer] PollCreationMessage correctAnswer
|
|
61677
62700
|
*/
|
|
61678
62701
|
|
|
@@ -61742,7 +62765,7 @@ $root.E2E = (function() {
|
|
|
61742
62765
|
|
|
61743
62766
|
/**
|
|
61744
62767
|
* PollCreationMessage pollType.
|
|
61745
|
-
* @member {E2E.Message.
|
|
62768
|
+
* @member {E2E.Message.PollType} pollType
|
|
61746
62769
|
* @memberof E2E.Message.PollCreationMessage
|
|
61747
62770
|
* @instance
|
|
61748
62771
|
*/
|
|
@@ -62076,7 +63099,7 @@ $root.E2E = (function() {
|
|
|
62076
63099
|
if (message.pollContentType != null && message.hasOwnProperty("pollContentType"))
|
|
62077
63100
|
object.pollContentType = options.enums === String ? $root.E2E.Message.PollContentType[message.pollContentType] === undefined ? message.pollContentType : $root.E2E.Message.PollContentType[message.pollContentType] : message.pollContentType;
|
|
62078
63101
|
if (message.pollType != null && message.hasOwnProperty("pollType"))
|
|
62079
|
-
object.pollType = options.enums === String ? $root.E2E.Message.
|
|
63102
|
+
object.pollType = options.enums === String ? $root.E2E.Message.PollType[message.pollType] === undefined ? message.pollType : $root.E2E.Message.PollType[message.pollType] : message.pollType;
|
|
62080
63103
|
if (message.correctAnswer != null && message.hasOwnProperty("correctAnswer"))
|
|
62081
63104
|
object.correctAnswer = $root.E2E.Message.PollCreationMessage.Option.toObject(message.correctAnswer, options);
|
|
62082
63105
|
return object;
|
|
@@ -62337,20 +63360,6 @@ $root.E2E = (function() {
|
|
|
62337
63360
|
return Option;
|
|
62338
63361
|
})();
|
|
62339
63362
|
|
|
62340
|
-
/**
|
|
62341
|
-
* PollType enum.
|
|
62342
|
-
* @name E2E.Message.PollCreationMessage.PollType
|
|
62343
|
-
* @enum {number}
|
|
62344
|
-
* @property {number} POLL=0 POLL value
|
|
62345
|
-
* @property {number} QUIZ=1 QUIZ value
|
|
62346
|
-
*/
|
|
62347
|
-
PollCreationMessage.PollType = (function() {
|
|
62348
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
62349
|
-
values[valuesById[0] = "POLL"] = 0;
|
|
62350
|
-
values[valuesById[1] = "QUIZ"] = 1;
|
|
62351
|
-
return values;
|
|
62352
|
-
})();
|
|
62353
|
-
|
|
62354
63363
|
return PollCreationMessage;
|
|
62355
63364
|
})();
|
|
62356
63365
|
|
|
@@ -62610,6 +63619,7 @@ $root.E2E = (function() {
|
|
|
62610
63619
|
* @property {string|null} [name] PollResultSnapshotMessage name
|
|
62611
63620
|
* @property {Array.<E2E.Message.PollResultSnapshotMessage.IPollVote>|null} [pollVotes] PollResultSnapshotMessage pollVotes
|
|
62612
63621
|
* @property {E2E.IContextInfo|null} [contextInfo] PollResultSnapshotMessage contextInfo
|
|
63622
|
+
* @property {E2E.Message.PollType|null} [pollType] PollResultSnapshotMessage pollType
|
|
62613
63623
|
*/
|
|
62614
63624
|
|
|
62615
63625
|
/**
|
|
@@ -62652,6 +63662,14 @@ $root.E2E = (function() {
|
|
|
62652
63662
|
*/
|
|
62653
63663
|
PollResultSnapshotMessage.prototype.contextInfo = null;
|
|
62654
63664
|
|
|
63665
|
+
/**
|
|
63666
|
+
* PollResultSnapshotMessage pollType.
|
|
63667
|
+
* @member {E2E.Message.PollType} pollType
|
|
63668
|
+
* @memberof E2E.Message.PollResultSnapshotMessage
|
|
63669
|
+
* @instance
|
|
63670
|
+
*/
|
|
63671
|
+
PollResultSnapshotMessage.prototype.pollType = 0;
|
|
63672
|
+
|
|
62655
63673
|
/**
|
|
62656
63674
|
* Creates a new PollResultSnapshotMessage instance using the specified properties.
|
|
62657
63675
|
* @function create
|
|
@@ -62683,6 +63701,8 @@ $root.E2E = (function() {
|
|
|
62683
63701
|
$root.E2E.Message.PollResultSnapshotMessage.PollVote.encode(message.pollVotes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
62684
63702
|
if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
|
|
62685
63703
|
$root.E2E.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
63704
|
+
if (message.pollType != null && Object.hasOwnProperty.call(message, "pollType"))
|
|
63705
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pollType);
|
|
62686
63706
|
return writer;
|
|
62687
63707
|
};
|
|
62688
63708
|
|
|
@@ -62733,6 +63753,10 @@ $root.E2E = (function() {
|
|
|
62733
63753
|
message.contextInfo = $root.E2E.ContextInfo.decode(reader, reader.uint32());
|
|
62734
63754
|
break;
|
|
62735
63755
|
}
|
|
63756
|
+
case 4: {
|
|
63757
|
+
message.pollType = reader.int32();
|
|
63758
|
+
break;
|
|
63759
|
+
}
|
|
62736
63760
|
default:
|
|
62737
63761
|
reader.skipType(tag & 7);
|
|
62738
63762
|
break;
|
|
@@ -62785,6 +63809,14 @@ $root.E2E = (function() {
|
|
|
62785
63809
|
if (error)
|
|
62786
63810
|
return "contextInfo." + error;
|
|
62787
63811
|
}
|
|
63812
|
+
if (message.pollType != null && message.hasOwnProperty("pollType"))
|
|
63813
|
+
switch (message.pollType) {
|
|
63814
|
+
default:
|
|
63815
|
+
return "pollType: enum value expected";
|
|
63816
|
+
case 0:
|
|
63817
|
+
case 1:
|
|
63818
|
+
break;
|
|
63819
|
+
}
|
|
62788
63820
|
return null;
|
|
62789
63821
|
};
|
|
62790
63822
|
|
|
@@ -62817,6 +63849,22 @@ $root.E2E = (function() {
|
|
|
62817
63849
|
throw TypeError(".E2E.Message.PollResultSnapshotMessage.contextInfo: object expected");
|
|
62818
63850
|
message.contextInfo = $root.E2E.ContextInfo.fromObject(object.contextInfo);
|
|
62819
63851
|
}
|
|
63852
|
+
switch (object.pollType) {
|
|
63853
|
+
default:
|
|
63854
|
+
if (typeof object.pollType === "number") {
|
|
63855
|
+
message.pollType = object.pollType;
|
|
63856
|
+
break;
|
|
63857
|
+
}
|
|
63858
|
+
break;
|
|
63859
|
+
case "POLL":
|
|
63860
|
+
case 0:
|
|
63861
|
+
message.pollType = 0;
|
|
63862
|
+
break;
|
|
63863
|
+
case "QUIZ":
|
|
63864
|
+
case 1:
|
|
63865
|
+
message.pollType = 1;
|
|
63866
|
+
break;
|
|
63867
|
+
}
|
|
62820
63868
|
return message;
|
|
62821
63869
|
};
|
|
62822
63870
|
|
|
@@ -62838,6 +63886,7 @@ $root.E2E = (function() {
|
|
|
62838
63886
|
if (options.defaults) {
|
|
62839
63887
|
object.name = "";
|
|
62840
63888
|
object.contextInfo = null;
|
|
63889
|
+
object.pollType = options.enums === String ? "POLL" : 0;
|
|
62841
63890
|
}
|
|
62842
63891
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
62843
63892
|
object.name = message.name;
|
|
@@ -62848,6 +63897,8 @@ $root.E2E = (function() {
|
|
|
62848
63897
|
}
|
|
62849
63898
|
if (message.contextInfo != null && message.hasOwnProperty("contextInfo"))
|
|
62850
63899
|
object.contextInfo = $root.E2E.ContextInfo.toObject(message.contextInfo, options);
|
|
63900
|
+
if (message.pollType != null && message.hasOwnProperty("pollType"))
|
|
63901
|
+
object.pollType = options.enums === String ? $root.E2E.Message.PollType[message.pollType] === undefined ? message.pollType : $root.E2E.Message.PollType[message.pollType] : message.pollType;
|
|
62851
63902
|
return object;
|
|
62852
63903
|
};
|
|
62853
63904
|
|
|
@@ -63123,6 +64174,20 @@ $root.E2E = (function() {
|
|
|
63123
64174
|
return PollResultSnapshotMessage;
|
|
63124
64175
|
})();
|
|
63125
64176
|
|
|
64177
|
+
/**
|
|
64178
|
+
* PollType enum.
|
|
64179
|
+
* @name E2E.Message.PollType
|
|
64180
|
+
* @enum {number}
|
|
64181
|
+
* @property {number} POLL=0 POLL value
|
|
64182
|
+
* @property {number} QUIZ=1 QUIZ value
|
|
64183
|
+
*/
|
|
64184
|
+
Message.PollType = (function() {
|
|
64185
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
64186
|
+
values[valuesById[0] = "POLL"] = 0;
|
|
64187
|
+
values[valuesById[1] = "QUIZ"] = 1;
|
|
64188
|
+
return values;
|
|
64189
|
+
})();
|
|
64190
|
+
|
|
63126
64191
|
Message.PollUpdateMessage = (function() {
|
|
63127
64192
|
|
|
63128
64193
|
/**
|
|
@@ -66504,6 +67569,263 @@ $root.E2E = (function() {
|
|
|
66504
67569
|
return ReactionMessage;
|
|
66505
67570
|
})();
|
|
66506
67571
|
|
|
67572
|
+
Message.RequestContactInfoMessage = (function() {
|
|
67573
|
+
|
|
67574
|
+
/**
|
|
67575
|
+
* Properties of a RequestContactInfoMessage.
|
|
67576
|
+
* @memberof E2E.Message
|
|
67577
|
+
* @interface IRequestContactInfoMessage
|
|
67578
|
+
* @property {string|null} [text] RequestContactInfoMessage text
|
|
67579
|
+
* @property {string|null} [ctaButtonText] RequestContactInfoMessage ctaButtonText
|
|
67580
|
+
* @property {E2E.IContextInfo|null} [contextInfo] RequestContactInfoMessage contextInfo
|
|
67581
|
+
*/
|
|
67582
|
+
|
|
67583
|
+
/**
|
|
67584
|
+
* Constructs a new RequestContactInfoMessage.
|
|
67585
|
+
* @memberof E2E.Message
|
|
67586
|
+
* @classdesc Represents a RequestContactInfoMessage.
|
|
67587
|
+
* @implements IRequestContactInfoMessage
|
|
67588
|
+
* @constructor
|
|
67589
|
+
* @param {E2E.Message.IRequestContactInfoMessage=} [properties] Properties to set
|
|
67590
|
+
*/
|
|
67591
|
+
function RequestContactInfoMessage(properties) {
|
|
67592
|
+
if (properties)
|
|
67593
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
67594
|
+
if (properties[keys[i]] != null)
|
|
67595
|
+
this[keys[i]] = properties[keys[i]];
|
|
67596
|
+
}
|
|
67597
|
+
|
|
67598
|
+
/**
|
|
67599
|
+
* RequestContactInfoMessage text.
|
|
67600
|
+
* @member {string} text
|
|
67601
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67602
|
+
* @instance
|
|
67603
|
+
*/
|
|
67604
|
+
RequestContactInfoMessage.prototype.text = "";
|
|
67605
|
+
|
|
67606
|
+
/**
|
|
67607
|
+
* RequestContactInfoMessage ctaButtonText.
|
|
67608
|
+
* @member {string} ctaButtonText
|
|
67609
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67610
|
+
* @instance
|
|
67611
|
+
*/
|
|
67612
|
+
RequestContactInfoMessage.prototype.ctaButtonText = "";
|
|
67613
|
+
|
|
67614
|
+
/**
|
|
67615
|
+
* RequestContactInfoMessage contextInfo.
|
|
67616
|
+
* @member {E2E.IContextInfo|null|undefined} contextInfo
|
|
67617
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67618
|
+
* @instance
|
|
67619
|
+
*/
|
|
67620
|
+
RequestContactInfoMessage.prototype.contextInfo = null;
|
|
67621
|
+
|
|
67622
|
+
/**
|
|
67623
|
+
* Creates a new RequestContactInfoMessage instance using the specified properties.
|
|
67624
|
+
* @function create
|
|
67625
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67626
|
+
* @static
|
|
67627
|
+
* @param {E2E.Message.IRequestContactInfoMessage=} [properties] Properties to set
|
|
67628
|
+
* @returns {E2E.Message.RequestContactInfoMessage} RequestContactInfoMessage instance
|
|
67629
|
+
*/
|
|
67630
|
+
RequestContactInfoMessage.create = function create(properties) {
|
|
67631
|
+
return new RequestContactInfoMessage(properties);
|
|
67632
|
+
};
|
|
67633
|
+
|
|
67634
|
+
/**
|
|
67635
|
+
* Encodes the specified RequestContactInfoMessage message. Does not implicitly {@link E2E.Message.RequestContactInfoMessage.verify|verify} messages.
|
|
67636
|
+
* @function encode
|
|
67637
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67638
|
+
* @static
|
|
67639
|
+
* @param {E2E.Message.IRequestContactInfoMessage} message RequestContactInfoMessage message or plain object to encode
|
|
67640
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67641
|
+
* @returns {$protobuf.Writer} Writer
|
|
67642
|
+
*/
|
|
67643
|
+
RequestContactInfoMessage.encode = function encode(message, writer) {
|
|
67644
|
+
if (!writer)
|
|
67645
|
+
writer = $Writer.create();
|
|
67646
|
+
if (message.text != null && Object.hasOwnProperty.call(message, "text"))
|
|
67647
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.text);
|
|
67648
|
+
if (message.ctaButtonText != null && Object.hasOwnProperty.call(message, "ctaButtonText"))
|
|
67649
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.ctaButtonText);
|
|
67650
|
+
if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
|
|
67651
|
+
$root.E2E.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
67652
|
+
return writer;
|
|
67653
|
+
};
|
|
67654
|
+
|
|
67655
|
+
/**
|
|
67656
|
+
* Encodes the specified RequestContactInfoMessage message, length delimited. Does not implicitly {@link E2E.Message.RequestContactInfoMessage.verify|verify} messages.
|
|
67657
|
+
* @function encodeDelimited
|
|
67658
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67659
|
+
* @static
|
|
67660
|
+
* @param {E2E.Message.IRequestContactInfoMessage} message RequestContactInfoMessage message or plain object to encode
|
|
67661
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67662
|
+
* @returns {$protobuf.Writer} Writer
|
|
67663
|
+
*/
|
|
67664
|
+
RequestContactInfoMessage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
67665
|
+
return this.encode(message, writer).ldelim();
|
|
67666
|
+
};
|
|
67667
|
+
|
|
67668
|
+
/**
|
|
67669
|
+
* Decodes a RequestContactInfoMessage message from the specified reader or buffer.
|
|
67670
|
+
* @function decode
|
|
67671
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67672
|
+
* @static
|
|
67673
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67674
|
+
* @param {number} [length] Message length if known beforehand
|
|
67675
|
+
* @returns {E2E.Message.RequestContactInfoMessage} RequestContactInfoMessage
|
|
67676
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67677
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67678
|
+
*/
|
|
67679
|
+
RequestContactInfoMessage.decode = function decode(reader, length, error) {
|
|
67680
|
+
if (!(reader instanceof $Reader))
|
|
67681
|
+
reader = $Reader.create(reader);
|
|
67682
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.Message.RequestContactInfoMessage();
|
|
67683
|
+
while (reader.pos < end) {
|
|
67684
|
+
var tag = reader.uint32();
|
|
67685
|
+
if (tag === error)
|
|
67686
|
+
break;
|
|
67687
|
+
switch (tag >>> 3) {
|
|
67688
|
+
case 1: {
|
|
67689
|
+
message.text = reader.string();
|
|
67690
|
+
break;
|
|
67691
|
+
}
|
|
67692
|
+
case 2: {
|
|
67693
|
+
message.ctaButtonText = reader.string();
|
|
67694
|
+
break;
|
|
67695
|
+
}
|
|
67696
|
+
case 3: {
|
|
67697
|
+
message.contextInfo = $root.E2E.ContextInfo.decode(reader, reader.uint32());
|
|
67698
|
+
break;
|
|
67699
|
+
}
|
|
67700
|
+
default:
|
|
67701
|
+
reader.skipType(tag & 7);
|
|
67702
|
+
break;
|
|
67703
|
+
}
|
|
67704
|
+
}
|
|
67705
|
+
return message;
|
|
67706
|
+
};
|
|
67707
|
+
|
|
67708
|
+
/**
|
|
67709
|
+
* Decodes a RequestContactInfoMessage message from the specified reader or buffer, length delimited.
|
|
67710
|
+
* @function decodeDelimited
|
|
67711
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67712
|
+
* @static
|
|
67713
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67714
|
+
* @returns {E2E.Message.RequestContactInfoMessage} RequestContactInfoMessage
|
|
67715
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67716
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67717
|
+
*/
|
|
67718
|
+
RequestContactInfoMessage.decodeDelimited = function decodeDelimited(reader) {
|
|
67719
|
+
if (!(reader instanceof $Reader))
|
|
67720
|
+
reader = new $Reader(reader);
|
|
67721
|
+
return this.decode(reader, reader.uint32());
|
|
67722
|
+
};
|
|
67723
|
+
|
|
67724
|
+
/**
|
|
67725
|
+
* Verifies a RequestContactInfoMessage message.
|
|
67726
|
+
* @function verify
|
|
67727
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67728
|
+
* @static
|
|
67729
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
67730
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
67731
|
+
*/
|
|
67732
|
+
RequestContactInfoMessage.verify = function verify(message) {
|
|
67733
|
+
if (typeof message !== "object" || message === null)
|
|
67734
|
+
return "object expected";
|
|
67735
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
67736
|
+
if (!$util.isString(message.text))
|
|
67737
|
+
return "text: string expected";
|
|
67738
|
+
if (message.ctaButtonText != null && message.hasOwnProperty("ctaButtonText"))
|
|
67739
|
+
if (!$util.isString(message.ctaButtonText))
|
|
67740
|
+
return "ctaButtonText: string expected";
|
|
67741
|
+
if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
|
|
67742
|
+
var error = $root.E2E.ContextInfo.verify(message.contextInfo);
|
|
67743
|
+
if (error)
|
|
67744
|
+
return "contextInfo." + error;
|
|
67745
|
+
}
|
|
67746
|
+
return null;
|
|
67747
|
+
};
|
|
67748
|
+
|
|
67749
|
+
/**
|
|
67750
|
+
* Creates a RequestContactInfoMessage message from a plain object. Also converts values to their respective internal types.
|
|
67751
|
+
* @function fromObject
|
|
67752
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67753
|
+
* @static
|
|
67754
|
+
* @param {Object.<string,*>} object Plain object
|
|
67755
|
+
* @returns {E2E.Message.RequestContactInfoMessage} RequestContactInfoMessage
|
|
67756
|
+
*/
|
|
67757
|
+
RequestContactInfoMessage.fromObject = function fromObject(object) {
|
|
67758
|
+
if (object instanceof $root.E2E.Message.RequestContactInfoMessage)
|
|
67759
|
+
return object;
|
|
67760
|
+
var message = new $root.E2E.Message.RequestContactInfoMessage();
|
|
67761
|
+
if (object.text != null)
|
|
67762
|
+
message.text = String(object.text);
|
|
67763
|
+
if (object.ctaButtonText != null)
|
|
67764
|
+
message.ctaButtonText = String(object.ctaButtonText);
|
|
67765
|
+
if (object.contextInfo != null) {
|
|
67766
|
+
if (typeof object.contextInfo !== "object")
|
|
67767
|
+
throw TypeError(".E2E.Message.RequestContactInfoMessage.contextInfo: object expected");
|
|
67768
|
+
message.contextInfo = $root.E2E.ContextInfo.fromObject(object.contextInfo);
|
|
67769
|
+
}
|
|
67770
|
+
return message;
|
|
67771
|
+
};
|
|
67772
|
+
|
|
67773
|
+
/**
|
|
67774
|
+
* Creates a plain object from a RequestContactInfoMessage message. Also converts values to other types if specified.
|
|
67775
|
+
* @function toObject
|
|
67776
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67777
|
+
* @static
|
|
67778
|
+
* @param {E2E.Message.RequestContactInfoMessage} message RequestContactInfoMessage
|
|
67779
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
67780
|
+
* @returns {Object.<string,*>} Plain object
|
|
67781
|
+
*/
|
|
67782
|
+
RequestContactInfoMessage.toObject = function toObject(message, options) {
|
|
67783
|
+
if (!options)
|
|
67784
|
+
options = {};
|
|
67785
|
+
var object = {};
|
|
67786
|
+
if (options.defaults) {
|
|
67787
|
+
object.text = "";
|
|
67788
|
+
object.ctaButtonText = "";
|
|
67789
|
+
object.contextInfo = null;
|
|
67790
|
+
}
|
|
67791
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
67792
|
+
object.text = message.text;
|
|
67793
|
+
if (message.ctaButtonText != null && message.hasOwnProperty("ctaButtonText"))
|
|
67794
|
+
object.ctaButtonText = message.ctaButtonText;
|
|
67795
|
+
if (message.contextInfo != null && message.hasOwnProperty("contextInfo"))
|
|
67796
|
+
object.contextInfo = $root.E2E.ContextInfo.toObject(message.contextInfo, options);
|
|
67797
|
+
return object;
|
|
67798
|
+
};
|
|
67799
|
+
|
|
67800
|
+
/**
|
|
67801
|
+
* Converts this RequestContactInfoMessage to JSON.
|
|
67802
|
+
* @function toJSON
|
|
67803
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67804
|
+
* @instance
|
|
67805
|
+
* @returns {Object.<string,*>} JSON object
|
|
67806
|
+
*/
|
|
67807
|
+
RequestContactInfoMessage.prototype.toJSON = function toJSON() {
|
|
67808
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
67809
|
+
};
|
|
67810
|
+
|
|
67811
|
+
/**
|
|
67812
|
+
* Gets the default type url for RequestContactInfoMessage
|
|
67813
|
+
* @function getTypeUrl
|
|
67814
|
+
* @memberof E2E.Message.RequestContactInfoMessage
|
|
67815
|
+
* @static
|
|
67816
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
67817
|
+
* @returns {string} The default type url
|
|
67818
|
+
*/
|
|
67819
|
+
RequestContactInfoMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
67820
|
+
if (typeUrlPrefix === undefined) {
|
|
67821
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
67822
|
+
}
|
|
67823
|
+
return typeUrlPrefix + "/E2E.Message.RequestContactInfoMessage";
|
|
67824
|
+
};
|
|
67825
|
+
|
|
67826
|
+
return RequestContactInfoMessage;
|
|
67827
|
+
})();
|
|
67828
|
+
|
|
66507
67829
|
Message.RequestPaymentMessage = (function() {
|
|
66508
67830
|
|
|
66509
67831
|
/**
|
|
@@ -69636,6 +70958,296 @@ $root.E2E = (function() {
|
|
|
69636
70958
|
return StatusQuotedMessage;
|
|
69637
70959
|
})();
|
|
69638
70960
|
|
|
70961
|
+
Message.StatusStickerInteractionMessage = (function() {
|
|
70962
|
+
|
|
70963
|
+
/**
|
|
70964
|
+
* Properties of a StatusStickerInteractionMessage.
|
|
70965
|
+
* @memberof E2E.Message
|
|
70966
|
+
* @interface IStatusStickerInteractionMessage
|
|
70967
|
+
* @property {Protocol.IMessageKey|null} [key] StatusStickerInteractionMessage key
|
|
70968
|
+
* @property {string|null} [stickerKey] StatusStickerInteractionMessage stickerKey
|
|
70969
|
+
* @property {E2E.Message.StatusStickerInteractionMessage.StatusStickerType|null} [type] StatusStickerInteractionMessage type
|
|
70970
|
+
*/
|
|
70971
|
+
|
|
70972
|
+
/**
|
|
70973
|
+
* Constructs a new StatusStickerInteractionMessage.
|
|
70974
|
+
* @memberof E2E.Message
|
|
70975
|
+
* @classdesc Represents a StatusStickerInteractionMessage.
|
|
70976
|
+
* @implements IStatusStickerInteractionMessage
|
|
70977
|
+
* @constructor
|
|
70978
|
+
* @param {E2E.Message.IStatusStickerInteractionMessage=} [properties] Properties to set
|
|
70979
|
+
*/
|
|
70980
|
+
function StatusStickerInteractionMessage(properties) {
|
|
70981
|
+
if (properties)
|
|
70982
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
70983
|
+
if (properties[keys[i]] != null)
|
|
70984
|
+
this[keys[i]] = properties[keys[i]];
|
|
70985
|
+
}
|
|
70986
|
+
|
|
70987
|
+
/**
|
|
70988
|
+
* StatusStickerInteractionMessage key.
|
|
70989
|
+
* @member {Protocol.IMessageKey|null|undefined} key
|
|
70990
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
70991
|
+
* @instance
|
|
70992
|
+
*/
|
|
70993
|
+
StatusStickerInteractionMessage.prototype.key = null;
|
|
70994
|
+
|
|
70995
|
+
/**
|
|
70996
|
+
* StatusStickerInteractionMessage stickerKey.
|
|
70997
|
+
* @member {string} stickerKey
|
|
70998
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
70999
|
+
* @instance
|
|
71000
|
+
*/
|
|
71001
|
+
StatusStickerInteractionMessage.prototype.stickerKey = "";
|
|
71002
|
+
|
|
71003
|
+
/**
|
|
71004
|
+
* StatusStickerInteractionMessage type.
|
|
71005
|
+
* @member {E2E.Message.StatusStickerInteractionMessage.StatusStickerType} type
|
|
71006
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71007
|
+
* @instance
|
|
71008
|
+
*/
|
|
71009
|
+
StatusStickerInteractionMessage.prototype.type = 0;
|
|
71010
|
+
|
|
71011
|
+
/**
|
|
71012
|
+
* Creates a new StatusStickerInteractionMessage instance using the specified properties.
|
|
71013
|
+
* @function create
|
|
71014
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71015
|
+
* @static
|
|
71016
|
+
* @param {E2E.Message.IStatusStickerInteractionMessage=} [properties] Properties to set
|
|
71017
|
+
* @returns {E2E.Message.StatusStickerInteractionMessage} StatusStickerInteractionMessage instance
|
|
71018
|
+
*/
|
|
71019
|
+
StatusStickerInteractionMessage.create = function create(properties) {
|
|
71020
|
+
return new StatusStickerInteractionMessage(properties);
|
|
71021
|
+
};
|
|
71022
|
+
|
|
71023
|
+
/**
|
|
71024
|
+
* Encodes the specified StatusStickerInteractionMessage message. Does not implicitly {@link E2E.Message.StatusStickerInteractionMessage.verify|verify} messages.
|
|
71025
|
+
* @function encode
|
|
71026
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71027
|
+
* @static
|
|
71028
|
+
* @param {E2E.Message.IStatusStickerInteractionMessage} message StatusStickerInteractionMessage message or plain object to encode
|
|
71029
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71030
|
+
* @returns {$protobuf.Writer} Writer
|
|
71031
|
+
*/
|
|
71032
|
+
StatusStickerInteractionMessage.encode = function encode(message, writer) {
|
|
71033
|
+
if (!writer)
|
|
71034
|
+
writer = $Writer.create();
|
|
71035
|
+
if (message.key != null && Object.hasOwnProperty.call(message, "key"))
|
|
71036
|
+
$root.Protocol.MessageKey.encode(message.key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
71037
|
+
if (message.stickerKey != null && Object.hasOwnProperty.call(message, "stickerKey"))
|
|
71038
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.stickerKey);
|
|
71039
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
71040
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.type);
|
|
71041
|
+
return writer;
|
|
71042
|
+
};
|
|
71043
|
+
|
|
71044
|
+
/**
|
|
71045
|
+
* Encodes the specified StatusStickerInteractionMessage message, length delimited. Does not implicitly {@link E2E.Message.StatusStickerInteractionMessage.verify|verify} messages.
|
|
71046
|
+
* @function encodeDelimited
|
|
71047
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71048
|
+
* @static
|
|
71049
|
+
* @param {E2E.Message.IStatusStickerInteractionMessage} message StatusStickerInteractionMessage message or plain object to encode
|
|
71050
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71051
|
+
* @returns {$protobuf.Writer} Writer
|
|
71052
|
+
*/
|
|
71053
|
+
StatusStickerInteractionMessage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
71054
|
+
return this.encode(message, writer).ldelim();
|
|
71055
|
+
};
|
|
71056
|
+
|
|
71057
|
+
/**
|
|
71058
|
+
* Decodes a StatusStickerInteractionMessage message from the specified reader or buffer.
|
|
71059
|
+
* @function decode
|
|
71060
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71061
|
+
* @static
|
|
71062
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71063
|
+
* @param {number} [length] Message length if known beforehand
|
|
71064
|
+
* @returns {E2E.Message.StatusStickerInteractionMessage} StatusStickerInteractionMessage
|
|
71065
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71066
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71067
|
+
*/
|
|
71068
|
+
StatusStickerInteractionMessage.decode = function decode(reader, length, error) {
|
|
71069
|
+
if (!(reader instanceof $Reader))
|
|
71070
|
+
reader = $Reader.create(reader);
|
|
71071
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.Message.StatusStickerInteractionMessage();
|
|
71072
|
+
while (reader.pos < end) {
|
|
71073
|
+
var tag = reader.uint32();
|
|
71074
|
+
if (tag === error)
|
|
71075
|
+
break;
|
|
71076
|
+
switch (tag >>> 3) {
|
|
71077
|
+
case 1: {
|
|
71078
|
+
message.key = $root.Protocol.MessageKey.decode(reader, reader.uint32());
|
|
71079
|
+
break;
|
|
71080
|
+
}
|
|
71081
|
+
case 2: {
|
|
71082
|
+
message.stickerKey = reader.string();
|
|
71083
|
+
break;
|
|
71084
|
+
}
|
|
71085
|
+
case 3: {
|
|
71086
|
+
message.type = reader.int32();
|
|
71087
|
+
break;
|
|
71088
|
+
}
|
|
71089
|
+
default:
|
|
71090
|
+
reader.skipType(tag & 7);
|
|
71091
|
+
break;
|
|
71092
|
+
}
|
|
71093
|
+
}
|
|
71094
|
+
return message;
|
|
71095
|
+
};
|
|
71096
|
+
|
|
71097
|
+
/**
|
|
71098
|
+
* Decodes a StatusStickerInteractionMessage message from the specified reader or buffer, length delimited.
|
|
71099
|
+
* @function decodeDelimited
|
|
71100
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71101
|
+
* @static
|
|
71102
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71103
|
+
* @returns {E2E.Message.StatusStickerInteractionMessage} StatusStickerInteractionMessage
|
|
71104
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71105
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71106
|
+
*/
|
|
71107
|
+
StatusStickerInteractionMessage.decodeDelimited = function decodeDelimited(reader) {
|
|
71108
|
+
if (!(reader instanceof $Reader))
|
|
71109
|
+
reader = new $Reader(reader);
|
|
71110
|
+
return this.decode(reader, reader.uint32());
|
|
71111
|
+
};
|
|
71112
|
+
|
|
71113
|
+
/**
|
|
71114
|
+
* Verifies a StatusStickerInteractionMessage message.
|
|
71115
|
+
* @function verify
|
|
71116
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71117
|
+
* @static
|
|
71118
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
71119
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
71120
|
+
*/
|
|
71121
|
+
StatusStickerInteractionMessage.verify = function verify(message) {
|
|
71122
|
+
if (typeof message !== "object" || message === null)
|
|
71123
|
+
return "object expected";
|
|
71124
|
+
if (message.key != null && message.hasOwnProperty("key")) {
|
|
71125
|
+
var error = $root.Protocol.MessageKey.verify(message.key);
|
|
71126
|
+
if (error)
|
|
71127
|
+
return "key." + error;
|
|
71128
|
+
}
|
|
71129
|
+
if (message.stickerKey != null && message.hasOwnProperty("stickerKey"))
|
|
71130
|
+
if (!$util.isString(message.stickerKey))
|
|
71131
|
+
return "stickerKey: string expected";
|
|
71132
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
71133
|
+
switch (message.type) {
|
|
71134
|
+
default:
|
|
71135
|
+
return "type: enum value expected";
|
|
71136
|
+
case 0:
|
|
71137
|
+
case 1:
|
|
71138
|
+
break;
|
|
71139
|
+
}
|
|
71140
|
+
return null;
|
|
71141
|
+
};
|
|
71142
|
+
|
|
71143
|
+
/**
|
|
71144
|
+
* Creates a StatusStickerInteractionMessage message from a plain object. Also converts values to their respective internal types.
|
|
71145
|
+
* @function fromObject
|
|
71146
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71147
|
+
* @static
|
|
71148
|
+
* @param {Object.<string,*>} object Plain object
|
|
71149
|
+
* @returns {E2E.Message.StatusStickerInteractionMessage} StatusStickerInteractionMessage
|
|
71150
|
+
*/
|
|
71151
|
+
StatusStickerInteractionMessage.fromObject = function fromObject(object) {
|
|
71152
|
+
if (object instanceof $root.E2E.Message.StatusStickerInteractionMessage)
|
|
71153
|
+
return object;
|
|
71154
|
+
var message = new $root.E2E.Message.StatusStickerInteractionMessage();
|
|
71155
|
+
if (object.key != null) {
|
|
71156
|
+
if (typeof object.key !== "object")
|
|
71157
|
+
throw TypeError(".E2E.Message.StatusStickerInteractionMessage.key: object expected");
|
|
71158
|
+
message.key = $root.Protocol.MessageKey.fromObject(object.key);
|
|
71159
|
+
}
|
|
71160
|
+
if (object.stickerKey != null)
|
|
71161
|
+
message.stickerKey = String(object.stickerKey);
|
|
71162
|
+
switch (object.type) {
|
|
71163
|
+
default:
|
|
71164
|
+
if (typeof object.type === "number") {
|
|
71165
|
+
message.type = object.type;
|
|
71166
|
+
break;
|
|
71167
|
+
}
|
|
71168
|
+
break;
|
|
71169
|
+
case "UNKNOWN":
|
|
71170
|
+
case 0:
|
|
71171
|
+
message.type = 0;
|
|
71172
|
+
break;
|
|
71173
|
+
case "REACTION":
|
|
71174
|
+
case 1:
|
|
71175
|
+
message.type = 1;
|
|
71176
|
+
break;
|
|
71177
|
+
}
|
|
71178
|
+
return message;
|
|
71179
|
+
};
|
|
71180
|
+
|
|
71181
|
+
/**
|
|
71182
|
+
* Creates a plain object from a StatusStickerInteractionMessage message. Also converts values to other types if specified.
|
|
71183
|
+
* @function toObject
|
|
71184
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71185
|
+
* @static
|
|
71186
|
+
* @param {E2E.Message.StatusStickerInteractionMessage} message StatusStickerInteractionMessage
|
|
71187
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
71188
|
+
* @returns {Object.<string,*>} Plain object
|
|
71189
|
+
*/
|
|
71190
|
+
StatusStickerInteractionMessage.toObject = function toObject(message, options) {
|
|
71191
|
+
if (!options)
|
|
71192
|
+
options = {};
|
|
71193
|
+
var object = {};
|
|
71194
|
+
if (options.defaults) {
|
|
71195
|
+
object.key = null;
|
|
71196
|
+
object.stickerKey = "";
|
|
71197
|
+
object.type = options.enums === String ? "UNKNOWN" : 0;
|
|
71198
|
+
}
|
|
71199
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
71200
|
+
object.key = $root.Protocol.MessageKey.toObject(message.key, options);
|
|
71201
|
+
if (message.stickerKey != null && message.hasOwnProperty("stickerKey"))
|
|
71202
|
+
object.stickerKey = message.stickerKey;
|
|
71203
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
71204
|
+
object.type = options.enums === String ? $root.E2E.Message.StatusStickerInteractionMessage.StatusStickerType[message.type] === undefined ? message.type : $root.E2E.Message.StatusStickerInteractionMessage.StatusStickerType[message.type] : message.type;
|
|
71205
|
+
return object;
|
|
71206
|
+
};
|
|
71207
|
+
|
|
71208
|
+
/**
|
|
71209
|
+
* Converts this StatusStickerInteractionMessage to JSON.
|
|
71210
|
+
* @function toJSON
|
|
71211
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71212
|
+
* @instance
|
|
71213
|
+
* @returns {Object.<string,*>} JSON object
|
|
71214
|
+
*/
|
|
71215
|
+
StatusStickerInteractionMessage.prototype.toJSON = function toJSON() {
|
|
71216
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
71217
|
+
};
|
|
71218
|
+
|
|
71219
|
+
/**
|
|
71220
|
+
* Gets the default type url for StatusStickerInteractionMessage
|
|
71221
|
+
* @function getTypeUrl
|
|
71222
|
+
* @memberof E2E.Message.StatusStickerInteractionMessage
|
|
71223
|
+
* @static
|
|
71224
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
71225
|
+
* @returns {string} The default type url
|
|
71226
|
+
*/
|
|
71227
|
+
StatusStickerInteractionMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
71228
|
+
if (typeUrlPrefix === undefined) {
|
|
71229
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
71230
|
+
}
|
|
71231
|
+
return typeUrlPrefix + "/E2E.Message.StatusStickerInteractionMessage";
|
|
71232
|
+
};
|
|
71233
|
+
|
|
71234
|
+
/**
|
|
71235
|
+
* StatusStickerType enum.
|
|
71236
|
+
* @name E2E.Message.StatusStickerInteractionMessage.StatusStickerType
|
|
71237
|
+
* @enum {number}
|
|
71238
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
71239
|
+
* @property {number} REACTION=1 REACTION value
|
|
71240
|
+
*/
|
|
71241
|
+
StatusStickerInteractionMessage.StatusStickerType = (function() {
|
|
71242
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
71243
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
71244
|
+
values[valuesById[1] = "REACTION"] = 1;
|
|
71245
|
+
return values;
|
|
71246
|
+
})();
|
|
71247
|
+
|
|
71248
|
+
return StatusStickerInteractionMessage;
|
|
71249
|
+
})();
|
|
71250
|
+
|
|
69639
71251
|
Message.StickerMessage = (function() {
|
|
69640
71252
|
|
|
69641
71253
|
/**
|
|
@@ -80853,6 +82465,429 @@ $root.AICommon = (function() {
|
|
|
80853
82465
|
return AIRichResponseImageURL;
|
|
80854
82466
|
})();
|
|
80855
82467
|
|
|
82468
|
+
AICommon.BotMessageSharingInfo = (function() {
|
|
82469
|
+
|
|
82470
|
+
/**
|
|
82471
|
+
* Properties of a BotMessageSharingInfo.
|
|
82472
|
+
* @memberof AICommon
|
|
82473
|
+
* @interface IBotMessageSharingInfo
|
|
82474
|
+
* @property {AICommon.BotMetricsEntryPoint|null} [botEntryPointOrigin] BotMessageSharingInfo botEntryPointOrigin
|
|
82475
|
+
* @property {number|null} [forwardScore] BotMessageSharingInfo forwardScore
|
|
82476
|
+
*/
|
|
82477
|
+
|
|
82478
|
+
/**
|
|
82479
|
+
* Constructs a new BotMessageSharingInfo.
|
|
82480
|
+
* @memberof AICommon
|
|
82481
|
+
* @classdesc Represents a BotMessageSharingInfo.
|
|
82482
|
+
* @implements IBotMessageSharingInfo
|
|
82483
|
+
* @constructor
|
|
82484
|
+
* @param {AICommon.IBotMessageSharingInfo=} [properties] Properties to set
|
|
82485
|
+
*/
|
|
82486
|
+
function BotMessageSharingInfo(properties) {
|
|
82487
|
+
if (properties)
|
|
82488
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
82489
|
+
if (properties[keys[i]] != null)
|
|
82490
|
+
this[keys[i]] = properties[keys[i]];
|
|
82491
|
+
}
|
|
82492
|
+
|
|
82493
|
+
/**
|
|
82494
|
+
* BotMessageSharingInfo botEntryPointOrigin.
|
|
82495
|
+
* @member {AICommon.BotMetricsEntryPoint} botEntryPointOrigin
|
|
82496
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82497
|
+
* @instance
|
|
82498
|
+
*/
|
|
82499
|
+
BotMessageSharingInfo.prototype.botEntryPointOrigin = 0;
|
|
82500
|
+
|
|
82501
|
+
/**
|
|
82502
|
+
* BotMessageSharingInfo forwardScore.
|
|
82503
|
+
* @member {number} forwardScore
|
|
82504
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82505
|
+
* @instance
|
|
82506
|
+
*/
|
|
82507
|
+
BotMessageSharingInfo.prototype.forwardScore = 0;
|
|
82508
|
+
|
|
82509
|
+
/**
|
|
82510
|
+
* Creates a new BotMessageSharingInfo instance using the specified properties.
|
|
82511
|
+
* @function create
|
|
82512
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82513
|
+
* @static
|
|
82514
|
+
* @param {AICommon.IBotMessageSharingInfo=} [properties] Properties to set
|
|
82515
|
+
* @returns {AICommon.BotMessageSharingInfo} BotMessageSharingInfo instance
|
|
82516
|
+
*/
|
|
82517
|
+
BotMessageSharingInfo.create = function create(properties) {
|
|
82518
|
+
return new BotMessageSharingInfo(properties);
|
|
82519
|
+
};
|
|
82520
|
+
|
|
82521
|
+
/**
|
|
82522
|
+
* Encodes the specified BotMessageSharingInfo message. Does not implicitly {@link AICommon.BotMessageSharingInfo.verify|verify} messages.
|
|
82523
|
+
* @function encode
|
|
82524
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82525
|
+
* @static
|
|
82526
|
+
* @param {AICommon.IBotMessageSharingInfo} message BotMessageSharingInfo message or plain object to encode
|
|
82527
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
82528
|
+
* @returns {$protobuf.Writer} Writer
|
|
82529
|
+
*/
|
|
82530
|
+
BotMessageSharingInfo.encode = function encode(message, writer) {
|
|
82531
|
+
if (!writer)
|
|
82532
|
+
writer = $Writer.create();
|
|
82533
|
+
if (message.botEntryPointOrigin != null && Object.hasOwnProperty.call(message, "botEntryPointOrigin"))
|
|
82534
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.botEntryPointOrigin);
|
|
82535
|
+
if (message.forwardScore != null && Object.hasOwnProperty.call(message, "forwardScore"))
|
|
82536
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.forwardScore);
|
|
82537
|
+
return writer;
|
|
82538
|
+
};
|
|
82539
|
+
|
|
82540
|
+
/**
|
|
82541
|
+
* Encodes the specified BotMessageSharingInfo message, length delimited. Does not implicitly {@link AICommon.BotMessageSharingInfo.verify|verify} messages.
|
|
82542
|
+
* @function encodeDelimited
|
|
82543
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82544
|
+
* @static
|
|
82545
|
+
* @param {AICommon.IBotMessageSharingInfo} message BotMessageSharingInfo message or plain object to encode
|
|
82546
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
82547
|
+
* @returns {$protobuf.Writer} Writer
|
|
82548
|
+
*/
|
|
82549
|
+
BotMessageSharingInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
82550
|
+
return this.encode(message, writer).ldelim();
|
|
82551
|
+
};
|
|
82552
|
+
|
|
82553
|
+
/**
|
|
82554
|
+
* Decodes a BotMessageSharingInfo message from the specified reader or buffer.
|
|
82555
|
+
* @function decode
|
|
82556
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82557
|
+
* @static
|
|
82558
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
82559
|
+
* @param {number} [length] Message length if known beforehand
|
|
82560
|
+
* @returns {AICommon.BotMessageSharingInfo} BotMessageSharingInfo
|
|
82561
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82562
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82563
|
+
*/
|
|
82564
|
+
BotMessageSharingInfo.decode = function decode(reader, length, error) {
|
|
82565
|
+
if (!(reader instanceof $Reader))
|
|
82566
|
+
reader = $Reader.create(reader);
|
|
82567
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AICommon.BotMessageSharingInfo();
|
|
82568
|
+
while (reader.pos < end) {
|
|
82569
|
+
var tag = reader.uint32();
|
|
82570
|
+
if (tag === error)
|
|
82571
|
+
break;
|
|
82572
|
+
switch (tag >>> 3) {
|
|
82573
|
+
case 1: {
|
|
82574
|
+
message.botEntryPointOrigin = reader.int32();
|
|
82575
|
+
break;
|
|
82576
|
+
}
|
|
82577
|
+
case 2: {
|
|
82578
|
+
message.forwardScore = reader.uint32();
|
|
82579
|
+
break;
|
|
82580
|
+
}
|
|
82581
|
+
default:
|
|
82582
|
+
reader.skipType(tag & 7);
|
|
82583
|
+
break;
|
|
82584
|
+
}
|
|
82585
|
+
}
|
|
82586
|
+
return message;
|
|
82587
|
+
};
|
|
82588
|
+
|
|
82589
|
+
/**
|
|
82590
|
+
* Decodes a BotMessageSharingInfo message from the specified reader or buffer, length delimited.
|
|
82591
|
+
* @function decodeDelimited
|
|
82592
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82593
|
+
* @static
|
|
82594
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
82595
|
+
* @returns {AICommon.BotMessageSharingInfo} BotMessageSharingInfo
|
|
82596
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82597
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82598
|
+
*/
|
|
82599
|
+
BotMessageSharingInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
82600
|
+
if (!(reader instanceof $Reader))
|
|
82601
|
+
reader = new $Reader(reader);
|
|
82602
|
+
return this.decode(reader, reader.uint32());
|
|
82603
|
+
};
|
|
82604
|
+
|
|
82605
|
+
/**
|
|
82606
|
+
* Verifies a BotMessageSharingInfo message.
|
|
82607
|
+
* @function verify
|
|
82608
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82609
|
+
* @static
|
|
82610
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
82611
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
82612
|
+
*/
|
|
82613
|
+
BotMessageSharingInfo.verify = function verify(message) {
|
|
82614
|
+
if (typeof message !== "object" || message === null)
|
|
82615
|
+
return "object expected";
|
|
82616
|
+
if (message.botEntryPointOrigin != null && message.hasOwnProperty("botEntryPointOrigin"))
|
|
82617
|
+
switch (message.botEntryPointOrigin) {
|
|
82618
|
+
default:
|
|
82619
|
+
return "botEntryPointOrigin: enum value expected";
|
|
82620
|
+
case 0:
|
|
82621
|
+
case 1:
|
|
82622
|
+
case 2:
|
|
82623
|
+
case 3:
|
|
82624
|
+
case 4:
|
|
82625
|
+
case 5:
|
|
82626
|
+
case 6:
|
|
82627
|
+
case 7:
|
|
82628
|
+
case 8:
|
|
82629
|
+
case 9:
|
|
82630
|
+
case 10:
|
|
82631
|
+
case 11:
|
|
82632
|
+
case 12:
|
|
82633
|
+
case 13:
|
|
82634
|
+
case 14:
|
|
82635
|
+
case 15:
|
|
82636
|
+
case 16:
|
|
82637
|
+
case 17:
|
|
82638
|
+
case 18:
|
|
82639
|
+
case 19:
|
|
82640
|
+
case 20:
|
|
82641
|
+
case 21:
|
|
82642
|
+
case 22:
|
|
82643
|
+
case 23:
|
|
82644
|
+
case 24:
|
|
82645
|
+
case 25:
|
|
82646
|
+
case 26:
|
|
82647
|
+
case 27:
|
|
82648
|
+
case 28:
|
|
82649
|
+
case 29:
|
|
82650
|
+
case 30:
|
|
82651
|
+
case 31:
|
|
82652
|
+
case 32:
|
|
82653
|
+
case 33:
|
|
82654
|
+
case 34:
|
|
82655
|
+
case 35:
|
|
82656
|
+
case 36:
|
|
82657
|
+
break;
|
|
82658
|
+
}
|
|
82659
|
+
if (message.forwardScore != null && message.hasOwnProperty("forwardScore"))
|
|
82660
|
+
if (!$util.isInteger(message.forwardScore))
|
|
82661
|
+
return "forwardScore: integer expected";
|
|
82662
|
+
return null;
|
|
82663
|
+
};
|
|
82664
|
+
|
|
82665
|
+
/**
|
|
82666
|
+
* Creates a BotMessageSharingInfo message from a plain object. Also converts values to their respective internal types.
|
|
82667
|
+
* @function fromObject
|
|
82668
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82669
|
+
* @static
|
|
82670
|
+
* @param {Object.<string,*>} object Plain object
|
|
82671
|
+
* @returns {AICommon.BotMessageSharingInfo} BotMessageSharingInfo
|
|
82672
|
+
*/
|
|
82673
|
+
BotMessageSharingInfo.fromObject = function fromObject(object) {
|
|
82674
|
+
if (object instanceof $root.AICommon.BotMessageSharingInfo)
|
|
82675
|
+
return object;
|
|
82676
|
+
var message = new $root.AICommon.BotMessageSharingInfo();
|
|
82677
|
+
switch (object.botEntryPointOrigin) {
|
|
82678
|
+
default:
|
|
82679
|
+
if (typeof object.botEntryPointOrigin === "number") {
|
|
82680
|
+
message.botEntryPointOrigin = object.botEntryPointOrigin;
|
|
82681
|
+
break;
|
|
82682
|
+
}
|
|
82683
|
+
break;
|
|
82684
|
+
case "UNDEFINED_ENTRY_POINT":
|
|
82685
|
+
case 0:
|
|
82686
|
+
message.botEntryPointOrigin = 0;
|
|
82687
|
+
break;
|
|
82688
|
+
case "FAVICON":
|
|
82689
|
+
case 1:
|
|
82690
|
+
message.botEntryPointOrigin = 1;
|
|
82691
|
+
break;
|
|
82692
|
+
case "CHATLIST":
|
|
82693
|
+
case 2:
|
|
82694
|
+
message.botEntryPointOrigin = 2;
|
|
82695
|
+
break;
|
|
82696
|
+
case "AISEARCH_NULL_STATE_PAPER_PLANE":
|
|
82697
|
+
case 3:
|
|
82698
|
+
message.botEntryPointOrigin = 3;
|
|
82699
|
+
break;
|
|
82700
|
+
case "AISEARCH_NULL_STATE_SUGGESTION":
|
|
82701
|
+
case 4:
|
|
82702
|
+
message.botEntryPointOrigin = 4;
|
|
82703
|
+
break;
|
|
82704
|
+
case "AISEARCH_TYPE_AHEAD_SUGGESTION":
|
|
82705
|
+
case 5:
|
|
82706
|
+
message.botEntryPointOrigin = 5;
|
|
82707
|
+
break;
|
|
82708
|
+
case "AISEARCH_TYPE_AHEAD_PAPER_PLANE":
|
|
82709
|
+
case 6:
|
|
82710
|
+
message.botEntryPointOrigin = 6;
|
|
82711
|
+
break;
|
|
82712
|
+
case "AISEARCH_TYPE_AHEAD_RESULT_CHATLIST":
|
|
82713
|
+
case 7:
|
|
82714
|
+
message.botEntryPointOrigin = 7;
|
|
82715
|
+
break;
|
|
82716
|
+
case "AISEARCH_TYPE_AHEAD_RESULT_MESSAGES":
|
|
82717
|
+
case 8:
|
|
82718
|
+
message.botEntryPointOrigin = 8;
|
|
82719
|
+
break;
|
|
82720
|
+
case "AIVOICE_SEARCH_BAR":
|
|
82721
|
+
case 9:
|
|
82722
|
+
message.botEntryPointOrigin = 9;
|
|
82723
|
+
break;
|
|
82724
|
+
case "AIVOICE_FAVICON":
|
|
82725
|
+
case 10:
|
|
82726
|
+
message.botEntryPointOrigin = 10;
|
|
82727
|
+
break;
|
|
82728
|
+
case "AISTUDIO":
|
|
82729
|
+
case 11:
|
|
82730
|
+
message.botEntryPointOrigin = 11;
|
|
82731
|
+
break;
|
|
82732
|
+
case "DEEPLINK":
|
|
82733
|
+
case 12:
|
|
82734
|
+
message.botEntryPointOrigin = 12;
|
|
82735
|
+
break;
|
|
82736
|
+
case "NOTIFICATION":
|
|
82737
|
+
case 13:
|
|
82738
|
+
message.botEntryPointOrigin = 13;
|
|
82739
|
+
break;
|
|
82740
|
+
case "PROFILE_MESSAGE_BUTTON":
|
|
82741
|
+
case 14:
|
|
82742
|
+
message.botEntryPointOrigin = 14;
|
|
82743
|
+
break;
|
|
82744
|
+
case "FORWARD":
|
|
82745
|
+
case 15:
|
|
82746
|
+
message.botEntryPointOrigin = 15;
|
|
82747
|
+
break;
|
|
82748
|
+
case "APP_SHORTCUT":
|
|
82749
|
+
case 16:
|
|
82750
|
+
message.botEntryPointOrigin = 16;
|
|
82751
|
+
break;
|
|
82752
|
+
case "FF_FAMILY":
|
|
82753
|
+
case 17:
|
|
82754
|
+
message.botEntryPointOrigin = 17;
|
|
82755
|
+
break;
|
|
82756
|
+
case "AI_TAB":
|
|
82757
|
+
case 18:
|
|
82758
|
+
message.botEntryPointOrigin = 18;
|
|
82759
|
+
break;
|
|
82760
|
+
case "AI_HOME":
|
|
82761
|
+
case 19:
|
|
82762
|
+
message.botEntryPointOrigin = 19;
|
|
82763
|
+
break;
|
|
82764
|
+
case "AI_DEEPLINK_IMMERSIVE":
|
|
82765
|
+
case 20:
|
|
82766
|
+
message.botEntryPointOrigin = 20;
|
|
82767
|
+
break;
|
|
82768
|
+
case "AI_DEEPLINK":
|
|
82769
|
+
case 21:
|
|
82770
|
+
message.botEntryPointOrigin = 21;
|
|
82771
|
+
break;
|
|
82772
|
+
case "META_AI_CHAT_SHORTCUT_AI_STUDIO":
|
|
82773
|
+
case 22:
|
|
82774
|
+
message.botEntryPointOrigin = 22;
|
|
82775
|
+
break;
|
|
82776
|
+
case "UGC_CHAT_SHORTCUT_AI_STUDIO":
|
|
82777
|
+
case 23:
|
|
82778
|
+
message.botEntryPointOrigin = 23;
|
|
82779
|
+
break;
|
|
82780
|
+
case "NEW_CHAT_AI_STUDIO":
|
|
82781
|
+
case 24:
|
|
82782
|
+
message.botEntryPointOrigin = 24;
|
|
82783
|
+
break;
|
|
82784
|
+
case "AIVOICE_FAVICON_CALL_HISTORY":
|
|
82785
|
+
case 25:
|
|
82786
|
+
message.botEntryPointOrigin = 25;
|
|
82787
|
+
break;
|
|
82788
|
+
case "ASK_META_AI_CONTEXT_MENU":
|
|
82789
|
+
case 26:
|
|
82790
|
+
message.botEntryPointOrigin = 26;
|
|
82791
|
+
break;
|
|
82792
|
+
case "ASK_META_AI_CONTEXT_MENU_1ON1":
|
|
82793
|
+
case 27:
|
|
82794
|
+
message.botEntryPointOrigin = 27;
|
|
82795
|
+
break;
|
|
82796
|
+
case "ASK_META_AI_CONTEXT_MENU_GROUP":
|
|
82797
|
+
case 28:
|
|
82798
|
+
message.botEntryPointOrigin = 28;
|
|
82799
|
+
break;
|
|
82800
|
+
case "INVOKE_META_AI_1ON1":
|
|
82801
|
+
case 29:
|
|
82802
|
+
message.botEntryPointOrigin = 29;
|
|
82803
|
+
break;
|
|
82804
|
+
case "INVOKE_META_AI_GROUP":
|
|
82805
|
+
case 30:
|
|
82806
|
+
message.botEntryPointOrigin = 30;
|
|
82807
|
+
break;
|
|
82808
|
+
case "META_AI_FORWARD":
|
|
82809
|
+
case 31:
|
|
82810
|
+
message.botEntryPointOrigin = 31;
|
|
82811
|
+
break;
|
|
82812
|
+
case "NEW_CHAT_AI_CONTACT":
|
|
82813
|
+
case 32:
|
|
82814
|
+
message.botEntryPointOrigin = 32;
|
|
82815
|
+
break;
|
|
82816
|
+
case "MESSAGE_QUICK_ACTION_1_ON_1_CHAT":
|
|
82817
|
+
case 33:
|
|
82818
|
+
message.botEntryPointOrigin = 33;
|
|
82819
|
+
break;
|
|
82820
|
+
case "MESSAGE_QUICK_ACTION_GROUP_CHAT":
|
|
82821
|
+
case 34:
|
|
82822
|
+
message.botEntryPointOrigin = 34;
|
|
82823
|
+
break;
|
|
82824
|
+
case "ATTACHMENT_TRAY_1_ON_1_CHAT":
|
|
82825
|
+
case 35:
|
|
82826
|
+
message.botEntryPointOrigin = 35;
|
|
82827
|
+
break;
|
|
82828
|
+
case "ATTACHMENT_TRAY_GROUP_CHAT":
|
|
82829
|
+
case 36:
|
|
82830
|
+
message.botEntryPointOrigin = 36;
|
|
82831
|
+
break;
|
|
82832
|
+
}
|
|
82833
|
+
if (object.forwardScore != null)
|
|
82834
|
+
message.forwardScore = object.forwardScore >>> 0;
|
|
82835
|
+
return message;
|
|
82836
|
+
};
|
|
82837
|
+
|
|
82838
|
+
/**
|
|
82839
|
+
* Creates a plain object from a BotMessageSharingInfo message. Also converts values to other types if specified.
|
|
82840
|
+
* @function toObject
|
|
82841
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82842
|
+
* @static
|
|
82843
|
+
* @param {AICommon.BotMessageSharingInfo} message BotMessageSharingInfo
|
|
82844
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
82845
|
+
* @returns {Object.<string,*>} Plain object
|
|
82846
|
+
*/
|
|
82847
|
+
BotMessageSharingInfo.toObject = function toObject(message, options) {
|
|
82848
|
+
if (!options)
|
|
82849
|
+
options = {};
|
|
82850
|
+
var object = {};
|
|
82851
|
+
if (options.defaults) {
|
|
82852
|
+
object.botEntryPointOrigin = options.enums === String ? "UNDEFINED_ENTRY_POINT" : 0;
|
|
82853
|
+
object.forwardScore = 0;
|
|
82854
|
+
}
|
|
82855
|
+
if (message.botEntryPointOrigin != null && message.hasOwnProperty("botEntryPointOrigin"))
|
|
82856
|
+
object.botEntryPointOrigin = options.enums === String ? $root.AICommon.BotMetricsEntryPoint[message.botEntryPointOrigin] === undefined ? message.botEntryPointOrigin : $root.AICommon.BotMetricsEntryPoint[message.botEntryPointOrigin] : message.botEntryPointOrigin;
|
|
82857
|
+
if (message.forwardScore != null && message.hasOwnProperty("forwardScore"))
|
|
82858
|
+
object.forwardScore = message.forwardScore;
|
|
82859
|
+
return object;
|
|
82860
|
+
};
|
|
82861
|
+
|
|
82862
|
+
/**
|
|
82863
|
+
* Converts this BotMessageSharingInfo to JSON.
|
|
82864
|
+
* @function toJSON
|
|
82865
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82866
|
+
* @instance
|
|
82867
|
+
* @returns {Object.<string,*>} JSON object
|
|
82868
|
+
*/
|
|
82869
|
+
BotMessageSharingInfo.prototype.toJSON = function toJSON() {
|
|
82870
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
82871
|
+
};
|
|
82872
|
+
|
|
82873
|
+
/**
|
|
82874
|
+
* Gets the default type url for BotMessageSharingInfo
|
|
82875
|
+
* @function getTypeUrl
|
|
82876
|
+
* @memberof AICommon.BotMessageSharingInfo
|
|
82877
|
+
* @static
|
|
82878
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
82879
|
+
* @returns {string} The default type url
|
|
82880
|
+
*/
|
|
82881
|
+
BotMessageSharingInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
82882
|
+
if (typeUrlPrefix === undefined) {
|
|
82883
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
82884
|
+
}
|
|
82885
|
+
return typeUrlPrefix + "/AICommon.BotMessageSharingInfo";
|
|
82886
|
+
};
|
|
82887
|
+
|
|
82888
|
+
return BotMessageSharingInfo;
|
|
82889
|
+
})();
|
|
82890
|
+
|
|
80856
82891
|
AICommon.ForwardedAIBotMessageInfo = (function() {
|
|
80857
82892
|
|
|
80858
82893
|
/**
|
|
@@ -87215,6 +89250,7 @@ $root.AICommon = (function() {
|
|
|
87215
89250
|
* @interface IBotAgeCollectionMetadata
|
|
87216
89251
|
* @property {boolean|null} [ageCollectionEligible] BotAgeCollectionMetadata ageCollectionEligible
|
|
87217
89252
|
* @property {boolean|null} [shouldTriggerAgeCollectionOnClient] BotAgeCollectionMetadata shouldTriggerAgeCollectionOnClient
|
|
89253
|
+
* @property {AICommon.BotAgeCollectionMetadata.AgeCollectionType|null} [ageCollectionType] BotAgeCollectionMetadata ageCollectionType
|
|
87218
89254
|
*/
|
|
87219
89255
|
|
|
87220
89256
|
/**
|
|
@@ -87248,6 +89284,14 @@ $root.AICommon = (function() {
|
|
|
87248
89284
|
*/
|
|
87249
89285
|
BotAgeCollectionMetadata.prototype.shouldTriggerAgeCollectionOnClient = false;
|
|
87250
89286
|
|
|
89287
|
+
/**
|
|
89288
|
+
* BotAgeCollectionMetadata ageCollectionType.
|
|
89289
|
+
* @member {AICommon.BotAgeCollectionMetadata.AgeCollectionType} ageCollectionType
|
|
89290
|
+
* @memberof AICommon.BotAgeCollectionMetadata
|
|
89291
|
+
* @instance
|
|
89292
|
+
*/
|
|
89293
|
+
BotAgeCollectionMetadata.prototype.ageCollectionType = 0;
|
|
89294
|
+
|
|
87251
89295
|
/**
|
|
87252
89296
|
* Creates a new BotAgeCollectionMetadata instance using the specified properties.
|
|
87253
89297
|
* @function create
|
|
@@ -87276,6 +89320,8 @@ $root.AICommon = (function() {
|
|
|
87276
89320
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.ageCollectionEligible);
|
|
87277
89321
|
if (message.shouldTriggerAgeCollectionOnClient != null && Object.hasOwnProperty.call(message, "shouldTriggerAgeCollectionOnClient"))
|
|
87278
89322
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.shouldTriggerAgeCollectionOnClient);
|
|
89323
|
+
if (message.ageCollectionType != null && Object.hasOwnProperty.call(message, "ageCollectionType"))
|
|
89324
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.ageCollectionType);
|
|
87279
89325
|
return writer;
|
|
87280
89326
|
};
|
|
87281
89327
|
|
|
@@ -87320,6 +89366,10 @@ $root.AICommon = (function() {
|
|
|
87320
89366
|
message.shouldTriggerAgeCollectionOnClient = reader.bool();
|
|
87321
89367
|
break;
|
|
87322
89368
|
}
|
|
89369
|
+
case 3: {
|
|
89370
|
+
message.ageCollectionType = reader.int32();
|
|
89371
|
+
break;
|
|
89372
|
+
}
|
|
87323
89373
|
default:
|
|
87324
89374
|
reader.skipType(tag & 7);
|
|
87325
89375
|
break;
|
|
@@ -87361,6 +89411,14 @@ $root.AICommon = (function() {
|
|
|
87361
89411
|
if (message.shouldTriggerAgeCollectionOnClient != null && message.hasOwnProperty("shouldTriggerAgeCollectionOnClient"))
|
|
87362
89412
|
if (typeof message.shouldTriggerAgeCollectionOnClient !== "boolean")
|
|
87363
89413
|
return "shouldTriggerAgeCollectionOnClient: boolean expected";
|
|
89414
|
+
if (message.ageCollectionType != null && message.hasOwnProperty("ageCollectionType"))
|
|
89415
|
+
switch (message.ageCollectionType) {
|
|
89416
|
+
default:
|
|
89417
|
+
return "ageCollectionType: enum value expected";
|
|
89418
|
+
case 0:
|
|
89419
|
+
case 1:
|
|
89420
|
+
break;
|
|
89421
|
+
}
|
|
87364
89422
|
return null;
|
|
87365
89423
|
};
|
|
87366
89424
|
|
|
@@ -87380,6 +89438,22 @@ $root.AICommon = (function() {
|
|
|
87380
89438
|
message.ageCollectionEligible = Boolean(object.ageCollectionEligible);
|
|
87381
89439
|
if (object.shouldTriggerAgeCollectionOnClient != null)
|
|
87382
89440
|
message.shouldTriggerAgeCollectionOnClient = Boolean(object.shouldTriggerAgeCollectionOnClient);
|
|
89441
|
+
switch (object.ageCollectionType) {
|
|
89442
|
+
default:
|
|
89443
|
+
if (typeof object.ageCollectionType === "number") {
|
|
89444
|
+
message.ageCollectionType = object.ageCollectionType;
|
|
89445
|
+
break;
|
|
89446
|
+
}
|
|
89447
|
+
break;
|
|
89448
|
+
case "O18_BINARY":
|
|
89449
|
+
case 0:
|
|
89450
|
+
message.ageCollectionType = 0;
|
|
89451
|
+
break;
|
|
89452
|
+
case "WAFFLE":
|
|
89453
|
+
case 1:
|
|
89454
|
+
message.ageCollectionType = 1;
|
|
89455
|
+
break;
|
|
89456
|
+
}
|
|
87383
89457
|
return message;
|
|
87384
89458
|
};
|
|
87385
89459
|
|
|
@@ -87399,11 +89473,14 @@ $root.AICommon = (function() {
|
|
|
87399
89473
|
if (options.defaults) {
|
|
87400
89474
|
object.ageCollectionEligible = false;
|
|
87401
89475
|
object.shouldTriggerAgeCollectionOnClient = false;
|
|
89476
|
+
object.ageCollectionType = options.enums === String ? "O18_BINARY" : 0;
|
|
87402
89477
|
}
|
|
87403
89478
|
if (message.ageCollectionEligible != null && message.hasOwnProperty("ageCollectionEligible"))
|
|
87404
89479
|
object.ageCollectionEligible = message.ageCollectionEligible;
|
|
87405
89480
|
if (message.shouldTriggerAgeCollectionOnClient != null && message.hasOwnProperty("shouldTriggerAgeCollectionOnClient"))
|
|
87406
89481
|
object.shouldTriggerAgeCollectionOnClient = message.shouldTriggerAgeCollectionOnClient;
|
|
89482
|
+
if (message.ageCollectionType != null && message.hasOwnProperty("ageCollectionType"))
|
|
89483
|
+
object.ageCollectionType = options.enums === String ? $root.AICommon.BotAgeCollectionMetadata.AgeCollectionType[message.ageCollectionType] === undefined ? message.ageCollectionType : $root.AICommon.BotAgeCollectionMetadata.AgeCollectionType[message.ageCollectionType] : message.ageCollectionType;
|
|
87407
89484
|
return object;
|
|
87408
89485
|
};
|
|
87409
89486
|
|
|
@@ -87433,6 +89510,20 @@ $root.AICommon = (function() {
|
|
|
87433
89510
|
return typeUrlPrefix + "/AICommon.BotAgeCollectionMetadata";
|
|
87434
89511
|
};
|
|
87435
89512
|
|
|
89513
|
+
/**
|
|
89514
|
+
* AgeCollectionType enum.
|
|
89515
|
+
* @name AICommon.BotAgeCollectionMetadata.AgeCollectionType
|
|
89516
|
+
* @enum {number}
|
|
89517
|
+
* @property {number} O18_BINARY=0 O18_BINARY value
|
|
89518
|
+
* @property {number} WAFFLE=1 WAFFLE value
|
|
89519
|
+
*/
|
|
89520
|
+
BotAgeCollectionMetadata.AgeCollectionType = (function() {
|
|
89521
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
89522
|
+
values[valuesById[0] = "O18_BINARY"] = 0;
|
|
89523
|
+
values[valuesById[1] = "WAFFLE"] = 1;
|
|
89524
|
+
return values;
|
|
89525
|
+
})();
|
|
89526
|
+
|
|
87436
89527
|
return BotAgeCollectionMetadata;
|
|
87437
89528
|
})();
|
|
87438
89529
|
|
|
@@ -88674,6 +90765,7 @@ $root.AICommon = (function() {
|
|
|
88674
90765
|
case 43:
|
|
88675
90766
|
case 44:
|
|
88676
90767
|
case 45:
|
|
90768
|
+
case 46:
|
|
88677
90769
|
break;
|
|
88678
90770
|
}
|
|
88679
90771
|
}
|
|
@@ -88887,6 +90979,10 @@ $root.AICommon = (function() {
|
|
|
88887
90979
|
case 45:
|
|
88888
90980
|
message.capabilities[i] = 45;
|
|
88889
90981
|
break;
|
|
90982
|
+
case "RICH_RESPONSE_IN_APP_SURVEY":
|
|
90983
|
+
case 46:
|
|
90984
|
+
message.capabilities[i] = 46;
|
|
90985
|
+
break;
|
|
88890
90986
|
}
|
|
88891
90987
|
}
|
|
88892
90988
|
return message;
|
|
@@ -88991,6 +91087,7 @@ $root.AICommon = (function() {
|
|
|
88991
91087
|
* @property {number} RICH_RESPONSE_UR_INLINE_REELS_ENABLED=43 RICH_RESPONSE_UR_INLINE_REELS_ENABLED value
|
|
88992
91088
|
* @property {number} RICH_RESPONSE_UR_MEDIA_GRID_ENABLED=44 RICH_RESPONSE_UR_MEDIA_GRID_ENABLED value
|
|
88993
91089
|
* @property {number} RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER=45 RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER value
|
|
91090
|
+
* @property {number} RICH_RESPONSE_IN_APP_SURVEY=46 RICH_RESPONSE_IN_APP_SURVEY value
|
|
88994
91091
|
*/
|
|
88995
91092
|
BotCapabilityMetadata.BotCapabilityType = (function() {
|
|
88996
91093
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -89040,6 +91137,7 @@ $root.AICommon = (function() {
|
|
|
89040
91137
|
values[valuesById[43] = "RICH_RESPONSE_UR_INLINE_REELS_ENABLED"] = 43;
|
|
89041
91138
|
values[valuesById[44] = "RICH_RESPONSE_UR_MEDIA_GRID_ENABLED"] = 44;
|
|
89042
91139
|
values[valuesById[45] = "RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER"] = 45;
|
|
91140
|
+
values[valuesById[46] = "RICH_RESPONSE_IN_APP_SURVEY"] = 46;
|
|
89043
91141
|
return values;
|
|
89044
91142
|
})();
|
|
89045
91143
|
|
|
@@ -92455,6 +94553,8 @@ $root.AICommon = (function() {
|
|
|
92455
94553
|
case 32:
|
|
92456
94554
|
case 33:
|
|
92457
94555
|
case 34:
|
|
94556
|
+
case 35:
|
|
94557
|
+
case 36:
|
|
92458
94558
|
break;
|
|
92459
94559
|
}
|
|
92460
94560
|
if (message.threadOrigin != null && message.hasOwnProperty("threadOrigin"))
|
|
@@ -92624,14 +94724,22 @@ $root.AICommon = (function() {
|
|
|
92624
94724
|
case 32:
|
|
92625
94725
|
message.destinationEntryPoint = 32;
|
|
92626
94726
|
break;
|
|
92627
|
-
case "
|
|
94727
|
+
case "MESSAGE_QUICK_ACTION_1_ON_1_CHAT":
|
|
92628
94728
|
case 33:
|
|
92629
94729
|
message.destinationEntryPoint = 33;
|
|
92630
94730
|
break;
|
|
92631
|
-
case "
|
|
94731
|
+
case "MESSAGE_QUICK_ACTION_GROUP_CHAT":
|
|
92632
94732
|
case 34:
|
|
92633
94733
|
message.destinationEntryPoint = 34;
|
|
92634
94734
|
break;
|
|
94735
|
+
case "ATTACHMENT_TRAY_1_ON_1_CHAT":
|
|
94736
|
+
case 35:
|
|
94737
|
+
message.destinationEntryPoint = 35;
|
|
94738
|
+
break;
|
|
94739
|
+
case "ATTACHMENT_TRAY_GROUP_CHAT":
|
|
94740
|
+
case 36:
|
|
94741
|
+
message.destinationEntryPoint = 36;
|
|
94742
|
+
break;
|
|
92635
94743
|
}
|
|
92636
94744
|
switch (object.threadOrigin) {
|
|
92637
94745
|
default:
|
|
@@ -96835,8 +98943,10 @@ $root.AICommon = (function() {
|
|
|
96835
98943
|
* @property {number} INVOKE_META_AI_GROUP=30 INVOKE_META_AI_GROUP value
|
|
96836
98944
|
* @property {number} META_AI_FORWARD=31 META_AI_FORWARD value
|
|
96837
98945
|
* @property {number} NEW_CHAT_AI_CONTACT=32 NEW_CHAT_AI_CONTACT value
|
|
96838
|
-
* @property {number}
|
|
96839
|
-
* @property {number}
|
|
98946
|
+
* @property {number} MESSAGE_QUICK_ACTION_1_ON_1_CHAT=33 MESSAGE_QUICK_ACTION_1_ON_1_CHAT value
|
|
98947
|
+
* @property {number} MESSAGE_QUICK_ACTION_GROUP_CHAT=34 MESSAGE_QUICK_ACTION_GROUP_CHAT value
|
|
98948
|
+
* @property {number} ATTACHMENT_TRAY_1_ON_1_CHAT=35 ATTACHMENT_TRAY_1_ON_1_CHAT value
|
|
98949
|
+
* @property {number} ATTACHMENT_TRAY_GROUP_CHAT=36 ATTACHMENT_TRAY_GROUP_CHAT value
|
|
96840
98950
|
*/
|
|
96841
98951
|
AICommon.BotMetricsEntryPoint = (function() {
|
|
96842
98952
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -96873,8 +98983,10 @@ $root.AICommon = (function() {
|
|
|
96873
98983
|
values[valuesById[30] = "INVOKE_META_AI_GROUP"] = 30;
|
|
96874
98984
|
values[valuesById[31] = "META_AI_FORWARD"] = 31;
|
|
96875
98985
|
values[valuesById[32] = "NEW_CHAT_AI_CONTACT"] = 32;
|
|
96876
|
-
values[valuesById[33] = "
|
|
96877
|
-
values[valuesById[34] = "
|
|
98986
|
+
values[valuesById[33] = "MESSAGE_QUICK_ACTION_1_ON_1_CHAT"] = 33;
|
|
98987
|
+
values[valuesById[34] = "MESSAGE_QUICK_ACTION_GROUP_CHAT"] = 34;
|
|
98988
|
+
values[valuesById[35] = "ATTACHMENT_TRAY_1_ON_1_CHAT"] = 35;
|
|
98989
|
+
values[valuesById[36] = "ATTACHMENT_TRAY_GROUP_CHAT"] = 36;
|
|
96878
98990
|
return values;
|
|
96879
98991
|
})();
|
|
96880
98992
|
|
|
@@ -97155,6 +99267,7 @@ $root.StatusAttributions = (function() {
|
|
|
97155
99267
|
case 5:
|
|
97156
99268
|
case 6:
|
|
97157
99269
|
case 7:
|
|
99270
|
+
case 8:
|
|
97158
99271
|
break;
|
|
97159
99272
|
}
|
|
97160
99273
|
if (message.actionUrl != null && message.hasOwnProperty("actionUrl"))
|
|
@@ -97272,6 +99385,10 @@ $root.StatusAttributions = (function() {
|
|
|
97272
99385
|
case 7:
|
|
97273
99386
|
message.type = 7;
|
|
97274
99387
|
break;
|
|
99388
|
+
case "LAYOUTS":
|
|
99389
|
+
case 8:
|
|
99390
|
+
message.type = 8;
|
|
99391
|
+
break;
|
|
97275
99392
|
}
|
|
97276
99393
|
if (object.actionUrl != null)
|
|
97277
99394
|
message.actionUrl = String(object.actionUrl);
|
|
@@ -97820,6 +99937,7 @@ $root.StatusAttributions = (function() {
|
|
|
97820
99937
|
case 6:
|
|
97821
99938
|
case 7:
|
|
97822
99939
|
case 8:
|
|
99940
|
+
case 9:
|
|
97823
99941
|
break;
|
|
97824
99942
|
}
|
|
97825
99943
|
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
@@ -97888,6 +100006,10 @@ $root.StatusAttributions = (function() {
|
|
|
97888
100006
|
case 8:
|
|
97889
100007
|
message.source = 8;
|
|
97890
100008
|
break;
|
|
100009
|
+
case "SHARECHAT":
|
|
100010
|
+
case 9:
|
|
100011
|
+
message.source = 9;
|
|
100012
|
+
break;
|
|
97891
100013
|
}
|
|
97892
100014
|
if (object.duration != null)
|
|
97893
100015
|
message.duration = object.duration | 0;
|
|
@@ -97965,6 +100087,7 @@ $root.StatusAttributions = (function() {
|
|
|
97965
100087
|
* @property {number} PINTEREST=6 PINTEREST value
|
|
97966
100088
|
* @property {number} THREADS=7 THREADS value
|
|
97967
100089
|
* @property {number} APPLE_MUSIC=8 APPLE_MUSIC value
|
|
100090
|
+
* @property {number} SHARECHAT=9 SHARECHAT value
|
|
97968
100091
|
*/
|
|
97969
100092
|
ExternalShare.Source = (function() {
|
|
97970
100093
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -97977,6 +100100,7 @@ $root.StatusAttributions = (function() {
|
|
|
97977
100100
|
values[valuesById[6] = "PINTEREST"] = 6;
|
|
97978
100101
|
values[valuesById[7] = "THREADS"] = 7;
|
|
97979
100102
|
values[valuesById[8] = "APPLE_MUSIC"] = 8;
|
|
100103
|
+
values[valuesById[9] = "SHARECHAT"] = 9;
|
|
97980
100104
|
return values;
|
|
97981
100105
|
})();
|
|
97982
100106
|
|
|
@@ -99336,6 +101460,7 @@ $root.StatusAttributions = (function() {
|
|
|
99336
101460
|
* @property {number} GROUP_STATUS=5 GROUP_STATUS value
|
|
99337
101461
|
* @property {number} RL_ATTRIBUTION=6 RL_ATTRIBUTION value
|
|
99338
101462
|
* @property {number} AI_CREATED=7 AI_CREATED value
|
|
101463
|
+
* @property {number} LAYOUTS=8 LAYOUTS value
|
|
99339
101464
|
*/
|
|
99340
101465
|
StatusAttribution.Type = (function() {
|
|
99341
101466
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -99347,6 +101472,7 @@ $root.StatusAttributions = (function() {
|
|
|
99347
101472
|
values[valuesById[5] = "GROUP_STATUS"] = 5;
|
|
99348
101473
|
values[valuesById[6] = "RL_ATTRIBUTION"] = 6;
|
|
99349
101474
|
values[valuesById[7] = "AI_CREATED"] = 7;
|
|
101475
|
+
values[valuesById[8] = "LAYOUTS"] = 8;
|
|
99350
101476
|
return values;
|
|
99351
101477
|
})();
|
|
99352
101478
|
|
|
@@ -104787,25 +106913,25 @@ $root.Web = (function() {
|
|
|
104787
106913
|
*/
|
|
104788
106914
|
var Web = {};
|
|
104789
106915
|
|
|
104790
|
-
Web.
|
|
106916
|
+
Web.GroupHistoryBundleInfo = (function() {
|
|
104791
106917
|
|
|
104792
106918
|
/**
|
|
104793
|
-
* Properties of a
|
|
106919
|
+
* Properties of a GroupHistoryBundleInfo.
|
|
104794
106920
|
* @memberof Web
|
|
104795
|
-
* @interface
|
|
104796
|
-
* @property {E2E.Message.IMessageHistoryBundle|null} [
|
|
104797
|
-
* @property {Web.
|
|
106921
|
+
* @interface IGroupHistoryBundleInfo
|
|
106922
|
+
* @property {E2E.Message.IMessageHistoryBundle|null} [deprecatedMessageHistoryBundle] GroupHistoryBundleInfo deprecatedMessageHistoryBundle
|
|
106923
|
+
* @property {Web.GroupHistoryBundleInfo.ProcessState|null} [processState] GroupHistoryBundleInfo processState
|
|
104798
106924
|
*/
|
|
104799
106925
|
|
|
104800
106926
|
/**
|
|
104801
|
-
* Constructs a new
|
|
106927
|
+
* Constructs a new GroupHistoryBundleInfo.
|
|
104802
106928
|
* @memberof Web
|
|
104803
|
-
* @classdesc Represents a
|
|
104804
|
-
* @implements
|
|
106929
|
+
* @classdesc Represents a GroupHistoryBundleInfo.
|
|
106930
|
+
* @implements IGroupHistoryBundleInfo
|
|
104805
106931
|
* @constructor
|
|
104806
|
-
* @param {Web.
|
|
106932
|
+
* @param {Web.IGroupHistoryBundleInfo=} [properties] Properties to set
|
|
104807
106933
|
*/
|
|
104808
|
-
function
|
|
106934
|
+
function GroupHistoryBundleInfo(properties) {
|
|
104809
106935
|
if (properties)
|
|
104810
106936
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
104811
106937
|
if (properties[keys[i]] != null)
|
|
@@ -104813,87 +106939,87 @@ $root.Web = (function() {
|
|
|
104813
106939
|
}
|
|
104814
106940
|
|
|
104815
106941
|
/**
|
|
104816
|
-
*
|
|
104817
|
-
* @member {E2E.Message.IMessageHistoryBundle|null|undefined}
|
|
104818
|
-
* @memberof Web.
|
|
106942
|
+
* GroupHistoryBundleInfo deprecatedMessageHistoryBundle.
|
|
106943
|
+
* @member {E2E.Message.IMessageHistoryBundle|null|undefined} deprecatedMessageHistoryBundle
|
|
106944
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
104819
106945
|
* @instance
|
|
104820
106946
|
*/
|
|
104821
|
-
|
|
106947
|
+
GroupHistoryBundleInfo.prototype.deprecatedMessageHistoryBundle = null;
|
|
104822
106948
|
|
|
104823
106949
|
/**
|
|
104824
|
-
*
|
|
104825
|
-
* @member {Web.
|
|
104826
|
-
* @memberof Web.
|
|
106950
|
+
* GroupHistoryBundleInfo processState.
|
|
106951
|
+
* @member {Web.GroupHistoryBundleInfo.ProcessState} processState
|
|
106952
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
104827
106953
|
* @instance
|
|
104828
106954
|
*/
|
|
104829
|
-
|
|
106955
|
+
GroupHistoryBundleInfo.prototype.processState = 0;
|
|
104830
106956
|
|
|
104831
106957
|
/**
|
|
104832
|
-
* Creates a new
|
|
106958
|
+
* Creates a new GroupHistoryBundleInfo instance using the specified properties.
|
|
104833
106959
|
* @function create
|
|
104834
|
-
* @memberof Web.
|
|
106960
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
104835
106961
|
* @static
|
|
104836
|
-
* @param {Web.
|
|
104837
|
-
* @returns {Web.
|
|
106962
|
+
* @param {Web.IGroupHistoryBundleInfo=} [properties] Properties to set
|
|
106963
|
+
* @returns {Web.GroupHistoryBundleInfo} GroupHistoryBundleInfo instance
|
|
104838
106964
|
*/
|
|
104839
|
-
|
|
104840
|
-
return new
|
|
106965
|
+
GroupHistoryBundleInfo.create = function create(properties) {
|
|
106966
|
+
return new GroupHistoryBundleInfo(properties);
|
|
104841
106967
|
};
|
|
104842
106968
|
|
|
104843
106969
|
/**
|
|
104844
|
-
* Encodes the specified
|
|
106970
|
+
* Encodes the specified GroupHistoryBundleInfo message. Does not implicitly {@link Web.GroupHistoryBundleInfo.verify|verify} messages.
|
|
104845
106971
|
* @function encode
|
|
104846
|
-
* @memberof Web.
|
|
106972
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
104847
106973
|
* @static
|
|
104848
|
-
* @param {Web.
|
|
106974
|
+
* @param {Web.IGroupHistoryBundleInfo} message GroupHistoryBundleInfo message or plain object to encode
|
|
104849
106975
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104850
106976
|
* @returns {$protobuf.Writer} Writer
|
|
104851
106977
|
*/
|
|
104852
|
-
|
|
106978
|
+
GroupHistoryBundleInfo.encode = function encode(message, writer) {
|
|
104853
106979
|
if (!writer)
|
|
104854
106980
|
writer = $Writer.create();
|
|
104855
|
-
if (message.
|
|
104856
|
-
$root.E2E.Message.MessageHistoryBundle.encode(message.
|
|
106981
|
+
if (message.deprecatedMessageHistoryBundle != null && Object.hasOwnProperty.call(message, "deprecatedMessageHistoryBundle"))
|
|
106982
|
+
$root.E2E.Message.MessageHistoryBundle.encode(message.deprecatedMessageHistoryBundle, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
104857
106983
|
if (message.processState != null && Object.hasOwnProperty.call(message, "processState"))
|
|
104858
106984
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.processState);
|
|
104859
106985
|
return writer;
|
|
104860
106986
|
};
|
|
104861
106987
|
|
|
104862
106988
|
/**
|
|
104863
|
-
* Encodes the specified
|
|
106989
|
+
* Encodes the specified GroupHistoryBundleInfo message, length delimited. Does not implicitly {@link Web.GroupHistoryBundleInfo.verify|verify} messages.
|
|
104864
106990
|
* @function encodeDelimited
|
|
104865
|
-
* @memberof Web.
|
|
106991
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
104866
106992
|
* @static
|
|
104867
|
-
* @param {Web.
|
|
106993
|
+
* @param {Web.IGroupHistoryBundleInfo} message GroupHistoryBundleInfo message or plain object to encode
|
|
104868
106994
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104869
106995
|
* @returns {$protobuf.Writer} Writer
|
|
104870
106996
|
*/
|
|
104871
|
-
|
|
106997
|
+
GroupHistoryBundleInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
104872
106998
|
return this.encode(message, writer).ldelim();
|
|
104873
106999
|
};
|
|
104874
107000
|
|
|
104875
107001
|
/**
|
|
104876
|
-
* Decodes a
|
|
107002
|
+
* Decodes a GroupHistoryBundleInfo message from the specified reader or buffer.
|
|
104877
107003
|
* @function decode
|
|
104878
|
-
* @memberof Web.
|
|
107004
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
104879
107005
|
* @static
|
|
104880
107006
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104881
107007
|
* @param {number} [length] Message length if known beforehand
|
|
104882
|
-
* @returns {Web.
|
|
107008
|
+
* @returns {Web.GroupHistoryBundleInfo} GroupHistoryBundleInfo
|
|
104883
107009
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104884
107010
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104885
107011
|
*/
|
|
104886
|
-
|
|
107012
|
+
GroupHistoryBundleInfo.decode = function decode(reader, length, error) {
|
|
104887
107013
|
if (!(reader instanceof $Reader))
|
|
104888
107014
|
reader = $Reader.create(reader);
|
|
104889
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Web.
|
|
107015
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Web.GroupHistoryBundleInfo();
|
|
104890
107016
|
while (reader.pos < end) {
|
|
104891
107017
|
var tag = reader.uint32();
|
|
104892
107018
|
if (tag === error)
|
|
104893
107019
|
break;
|
|
104894
107020
|
switch (tag >>> 3) {
|
|
104895
107021
|
case 1: {
|
|
104896
|
-
message.
|
|
107022
|
+
message.deprecatedMessageHistoryBundle = $root.E2E.Message.MessageHistoryBundle.decode(reader, reader.uint32());
|
|
104897
107023
|
break;
|
|
104898
107024
|
}
|
|
104899
107025
|
case 2: {
|
|
@@ -104909,36 +107035,36 @@ $root.Web = (function() {
|
|
|
104909
107035
|
};
|
|
104910
107036
|
|
|
104911
107037
|
/**
|
|
104912
|
-
* Decodes a
|
|
107038
|
+
* Decodes a GroupHistoryBundleInfo message from the specified reader or buffer, length delimited.
|
|
104913
107039
|
* @function decodeDelimited
|
|
104914
|
-
* @memberof Web.
|
|
107040
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
104915
107041
|
* @static
|
|
104916
107042
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104917
|
-
* @returns {Web.
|
|
107043
|
+
* @returns {Web.GroupHistoryBundleInfo} GroupHistoryBundleInfo
|
|
104918
107044
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104919
107045
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104920
107046
|
*/
|
|
104921
|
-
|
|
107047
|
+
GroupHistoryBundleInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
104922
107048
|
if (!(reader instanceof $Reader))
|
|
104923
107049
|
reader = new $Reader(reader);
|
|
104924
107050
|
return this.decode(reader, reader.uint32());
|
|
104925
107051
|
};
|
|
104926
107052
|
|
|
104927
107053
|
/**
|
|
104928
|
-
* Verifies a
|
|
107054
|
+
* Verifies a GroupHistoryBundleInfo message.
|
|
104929
107055
|
* @function verify
|
|
104930
|
-
* @memberof Web.
|
|
107056
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
104931
107057
|
* @static
|
|
104932
107058
|
* @param {Object.<string,*>} message Plain object to verify
|
|
104933
107059
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
104934
107060
|
*/
|
|
104935
|
-
|
|
107061
|
+
GroupHistoryBundleInfo.verify = function verify(message) {
|
|
104936
107062
|
if (typeof message !== "object" || message === null)
|
|
104937
107063
|
return "object expected";
|
|
104938
|
-
if (message.
|
|
104939
|
-
var error = $root.E2E.Message.MessageHistoryBundle.verify(message.
|
|
107064
|
+
if (message.deprecatedMessageHistoryBundle != null && message.hasOwnProperty("deprecatedMessageHistoryBundle")) {
|
|
107065
|
+
var error = $root.E2E.Message.MessageHistoryBundle.verify(message.deprecatedMessageHistoryBundle);
|
|
104940
107066
|
if (error)
|
|
104941
|
-
return "
|
|
107067
|
+
return "deprecatedMessageHistoryBundle." + error;
|
|
104942
107068
|
}
|
|
104943
107069
|
if (message.processState != null && message.hasOwnProperty("processState"))
|
|
104944
107070
|
switch (message.processState) {
|
|
@@ -104947,27 +107073,28 @@ $root.Web = (function() {
|
|
|
104947
107073
|
case 0:
|
|
104948
107074
|
case 1:
|
|
104949
107075
|
case 2:
|
|
107076
|
+
case 3:
|
|
104950
107077
|
break;
|
|
104951
107078
|
}
|
|
104952
107079
|
return null;
|
|
104953
107080
|
};
|
|
104954
107081
|
|
|
104955
107082
|
/**
|
|
104956
|
-
* Creates a
|
|
107083
|
+
* Creates a GroupHistoryBundleInfo message from a plain object. Also converts values to their respective internal types.
|
|
104957
107084
|
* @function fromObject
|
|
104958
|
-
* @memberof Web.
|
|
107085
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
104959
107086
|
* @static
|
|
104960
107087
|
* @param {Object.<string,*>} object Plain object
|
|
104961
|
-
* @returns {Web.
|
|
107088
|
+
* @returns {Web.GroupHistoryBundleInfo} GroupHistoryBundleInfo
|
|
104962
107089
|
*/
|
|
104963
|
-
|
|
104964
|
-
if (object instanceof $root.Web.
|
|
107090
|
+
GroupHistoryBundleInfo.fromObject = function fromObject(object) {
|
|
107091
|
+
if (object instanceof $root.Web.GroupHistoryBundleInfo)
|
|
104965
107092
|
return object;
|
|
104966
|
-
var message = new $root.Web.
|
|
104967
|
-
if (object.
|
|
104968
|
-
if (typeof object.
|
|
104969
|
-
throw TypeError(".Web.
|
|
104970
|
-
message.
|
|
107093
|
+
var message = new $root.Web.GroupHistoryBundleInfo();
|
|
107094
|
+
if (object.deprecatedMessageHistoryBundle != null) {
|
|
107095
|
+
if (typeof object.deprecatedMessageHistoryBundle !== "object")
|
|
107096
|
+
throw TypeError(".Web.GroupHistoryBundleInfo.deprecatedMessageHistoryBundle: object expected");
|
|
107097
|
+
message.deprecatedMessageHistoryBundle = $root.E2E.Message.MessageHistoryBundle.fromObject(object.deprecatedMessageHistoryBundle);
|
|
104971
107098
|
}
|
|
104972
107099
|
switch (object.processState) {
|
|
104973
107100
|
default:
|
|
@@ -104976,89 +107103,95 @@ $root.Web = (function() {
|
|
|
104976
107103
|
break;
|
|
104977
107104
|
}
|
|
104978
107105
|
break;
|
|
104979
|
-
case "
|
|
107106
|
+
case "NOT_INJECTED":
|
|
104980
107107
|
case 0:
|
|
104981
107108
|
message.processState = 0;
|
|
104982
107109
|
break;
|
|
104983
|
-
case "
|
|
107110
|
+
case "INJECTED":
|
|
104984
107111
|
case 1:
|
|
104985
107112
|
message.processState = 1;
|
|
104986
107113
|
break;
|
|
104987
|
-
case "
|
|
107114
|
+
case "INJECTED_PARTIAL":
|
|
104988
107115
|
case 2:
|
|
104989
107116
|
message.processState = 2;
|
|
104990
107117
|
break;
|
|
107118
|
+
case "INJECTION_FAILED":
|
|
107119
|
+
case 3:
|
|
107120
|
+
message.processState = 3;
|
|
107121
|
+
break;
|
|
104991
107122
|
}
|
|
104992
107123
|
return message;
|
|
104993
107124
|
};
|
|
104994
107125
|
|
|
104995
107126
|
/**
|
|
104996
|
-
* Creates a plain object from a
|
|
107127
|
+
* Creates a plain object from a GroupHistoryBundleInfo message. Also converts values to other types if specified.
|
|
104997
107128
|
* @function toObject
|
|
104998
|
-
* @memberof Web.
|
|
107129
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
104999
107130
|
* @static
|
|
105000
|
-
* @param {Web.
|
|
107131
|
+
* @param {Web.GroupHistoryBundleInfo} message GroupHistoryBundleInfo
|
|
105001
107132
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
105002
107133
|
* @returns {Object.<string,*>} Plain object
|
|
105003
107134
|
*/
|
|
105004
|
-
|
|
107135
|
+
GroupHistoryBundleInfo.toObject = function toObject(message, options) {
|
|
105005
107136
|
if (!options)
|
|
105006
107137
|
options = {};
|
|
105007
107138
|
var object = {};
|
|
105008
107139
|
if (options.defaults) {
|
|
105009
|
-
object.
|
|
105010
|
-
object.processState = options.enums === String ? "
|
|
107140
|
+
object.deprecatedMessageHistoryBundle = null;
|
|
107141
|
+
object.processState = options.enums === String ? "NOT_INJECTED" : 0;
|
|
105011
107142
|
}
|
|
105012
|
-
if (message.
|
|
105013
|
-
object.
|
|
107143
|
+
if (message.deprecatedMessageHistoryBundle != null && message.hasOwnProperty("deprecatedMessageHistoryBundle"))
|
|
107144
|
+
object.deprecatedMessageHistoryBundle = $root.E2E.Message.MessageHistoryBundle.toObject(message.deprecatedMessageHistoryBundle, options);
|
|
105014
107145
|
if (message.processState != null && message.hasOwnProperty("processState"))
|
|
105015
|
-
object.processState = options.enums === String ? $root.Web.
|
|
107146
|
+
object.processState = options.enums === String ? $root.Web.GroupHistoryBundleInfo.ProcessState[message.processState] === undefined ? message.processState : $root.Web.GroupHistoryBundleInfo.ProcessState[message.processState] : message.processState;
|
|
105016
107147
|
return object;
|
|
105017
107148
|
};
|
|
105018
107149
|
|
|
105019
107150
|
/**
|
|
105020
|
-
* Converts this
|
|
107151
|
+
* Converts this GroupHistoryBundleInfo to JSON.
|
|
105021
107152
|
* @function toJSON
|
|
105022
|
-
* @memberof Web.
|
|
107153
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
105023
107154
|
* @instance
|
|
105024
107155
|
* @returns {Object.<string,*>} JSON object
|
|
105025
107156
|
*/
|
|
105026
|
-
|
|
107157
|
+
GroupHistoryBundleInfo.prototype.toJSON = function toJSON() {
|
|
105027
107158
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
105028
107159
|
};
|
|
105029
107160
|
|
|
105030
107161
|
/**
|
|
105031
|
-
* Gets the default type url for
|
|
107162
|
+
* Gets the default type url for GroupHistoryBundleInfo
|
|
105032
107163
|
* @function getTypeUrl
|
|
105033
|
-
* @memberof Web.
|
|
107164
|
+
* @memberof Web.GroupHistoryBundleInfo
|
|
105034
107165
|
* @static
|
|
105035
107166
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
105036
107167
|
* @returns {string} The default type url
|
|
105037
107168
|
*/
|
|
105038
|
-
|
|
107169
|
+
GroupHistoryBundleInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
105039
107170
|
if (typeUrlPrefix === undefined) {
|
|
105040
107171
|
typeUrlPrefix = "type.googleapis.com";
|
|
105041
107172
|
}
|
|
105042
|
-
return typeUrlPrefix + "/Web.
|
|
107173
|
+
return typeUrlPrefix + "/Web.GroupHistoryBundleInfo";
|
|
105043
107174
|
};
|
|
105044
107175
|
|
|
105045
107176
|
/**
|
|
105046
107177
|
* ProcessState enum.
|
|
105047
|
-
* @name Web.
|
|
107178
|
+
* @name Web.GroupHistoryBundleInfo.ProcessState
|
|
105048
107179
|
* @enum {number}
|
|
105049
|
-
* @property {number}
|
|
105050
|
-
* @property {number}
|
|
105051
|
-
* @property {number}
|
|
107180
|
+
* @property {number} NOT_INJECTED=0 NOT_INJECTED value
|
|
107181
|
+
* @property {number} INJECTED=1 INJECTED value
|
|
107182
|
+
* @property {number} INJECTED_PARTIAL=2 INJECTED_PARTIAL value
|
|
107183
|
+
* @property {number} INJECTION_FAILED=3 INJECTION_FAILED value
|
|
105052
107184
|
*/
|
|
105053
|
-
|
|
107185
|
+
GroupHistoryBundleInfo.ProcessState = (function() {
|
|
105054
107186
|
var valuesById = {}, values = Object.create(valuesById);
|
|
105055
|
-
values[valuesById[0] = "
|
|
105056
|
-
values[valuesById[1] = "
|
|
105057
|
-
values[valuesById[2] = "
|
|
107187
|
+
values[valuesById[0] = "NOT_INJECTED"] = 0;
|
|
107188
|
+
values[valuesById[1] = "INJECTED"] = 1;
|
|
107189
|
+
values[valuesById[2] = "INJECTED_PARTIAL"] = 2;
|
|
107190
|
+
values[valuesById[3] = "INJECTION_FAILED"] = 3;
|
|
105058
107191
|
return values;
|
|
105059
107192
|
})();
|
|
105060
107193
|
|
|
105061
|
-
return
|
|
107194
|
+
return GroupHistoryBundleInfo;
|
|
105062
107195
|
})();
|
|
105063
107196
|
|
|
105064
107197
|
Web.GroupHistoryIndividualMessageInfo = (function() {
|
|
@@ -108228,6 +110361,211 @@ $root.Web = (function() {
|
|
|
108228
110361
|
return EventAdditionalMetadata;
|
|
108229
110362
|
})();
|
|
108230
110363
|
|
|
110364
|
+
Web.InteractiveMessageAdditionalMetadata = (function() {
|
|
110365
|
+
|
|
110366
|
+
/**
|
|
110367
|
+
* Properties of an InteractiveMessageAdditionalMetadata.
|
|
110368
|
+
* @memberof Web
|
|
110369
|
+
* @interface IInteractiveMessageAdditionalMetadata
|
|
110370
|
+
* @property {boolean|null} [isGalaxyFlowCompleted] InteractiveMessageAdditionalMetadata isGalaxyFlowCompleted
|
|
110371
|
+
*/
|
|
110372
|
+
|
|
110373
|
+
/**
|
|
110374
|
+
* Constructs a new InteractiveMessageAdditionalMetadata.
|
|
110375
|
+
* @memberof Web
|
|
110376
|
+
* @classdesc Represents an InteractiveMessageAdditionalMetadata.
|
|
110377
|
+
* @implements IInteractiveMessageAdditionalMetadata
|
|
110378
|
+
* @constructor
|
|
110379
|
+
* @param {Web.IInteractiveMessageAdditionalMetadata=} [properties] Properties to set
|
|
110380
|
+
*/
|
|
110381
|
+
function InteractiveMessageAdditionalMetadata(properties) {
|
|
110382
|
+
if (properties)
|
|
110383
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
110384
|
+
if (properties[keys[i]] != null)
|
|
110385
|
+
this[keys[i]] = properties[keys[i]];
|
|
110386
|
+
}
|
|
110387
|
+
|
|
110388
|
+
/**
|
|
110389
|
+
* InteractiveMessageAdditionalMetadata isGalaxyFlowCompleted.
|
|
110390
|
+
* @member {boolean} isGalaxyFlowCompleted
|
|
110391
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110392
|
+
* @instance
|
|
110393
|
+
*/
|
|
110394
|
+
InteractiveMessageAdditionalMetadata.prototype.isGalaxyFlowCompleted = false;
|
|
110395
|
+
|
|
110396
|
+
/**
|
|
110397
|
+
* Creates a new InteractiveMessageAdditionalMetadata instance using the specified properties.
|
|
110398
|
+
* @function create
|
|
110399
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110400
|
+
* @static
|
|
110401
|
+
* @param {Web.IInteractiveMessageAdditionalMetadata=} [properties] Properties to set
|
|
110402
|
+
* @returns {Web.InteractiveMessageAdditionalMetadata} InteractiveMessageAdditionalMetadata instance
|
|
110403
|
+
*/
|
|
110404
|
+
InteractiveMessageAdditionalMetadata.create = function create(properties) {
|
|
110405
|
+
return new InteractiveMessageAdditionalMetadata(properties);
|
|
110406
|
+
};
|
|
110407
|
+
|
|
110408
|
+
/**
|
|
110409
|
+
* Encodes the specified InteractiveMessageAdditionalMetadata message. Does not implicitly {@link Web.InteractiveMessageAdditionalMetadata.verify|verify} messages.
|
|
110410
|
+
* @function encode
|
|
110411
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110412
|
+
* @static
|
|
110413
|
+
* @param {Web.IInteractiveMessageAdditionalMetadata} message InteractiveMessageAdditionalMetadata message or plain object to encode
|
|
110414
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
110415
|
+
* @returns {$protobuf.Writer} Writer
|
|
110416
|
+
*/
|
|
110417
|
+
InteractiveMessageAdditionalMetadata.encode = function encode(message, writer) {
|
|
110418
|
+
if (!writer)
|
|
110419
|
+
writer = $Writer.create();
|
|
110420
|
+
if (message.isGalaxyFlowCompleted != null && Object.hasOwnProperty.call(message, "isGalaxyFlowCompleted"))
|
|
110421
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isGalaxyFlowCompleted);
|
|
110422
|
+
return writer;
|
|
110423
|
+
};
|
|
110424
|
+
|
|
110425
|
+
/**
|
|
110426
|
+
* Encodes the specified InteractiveMessageAdditionalMetadata message, length delimited. Does not implicitly {@link Web.InteractiveMessageAdditionalMetadata.verify|verify} messages.
|
|
110427
|
+
* @function encodeDelimited
|
|
110428
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110429
|
+
* @static
|
|
110430
|
+
* @param {Web.IInteractiveMessageAdditionalMetadata} message InteractiveMessageAdditionalMetadata message or plain object to encode
|
|
110431
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
110432
|
+
* @returns {$protobuf.Writer} Writer
|
|
110433
|
+
*/
|
|
110434
|
+
InteractiveMessageAdditionalMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
110435
|
+
return this.encode(message, writer).ldelim();
|
|
110436
|
+
};
|
|
110437
|
+
|
|
110438
|
+
/**
|
|
110439
|
+
* Decodes an InteractiveMessageAdditionalMetadata message from the specified reader or buffer.
|
|
110440
|
+
* @function decode
|
|
110441
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110442
|
+
* @static
|
|
110443
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
110444
|
+
* @param {number} [length] Message length if known beforehand
|
|
110445
|
+
* @returns {Web.InteractiveMessageAdditionalMetadata} InteractiveMessageAdditionalMetadata
|
|
110446
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110447
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110448
|
+
*/
|
|
110449
|
+
InteractiveMessageAdditionalMetadata.decode = function decode(reader, length, error) {
|
|
110450
|
+
if (!(reader instanceof $Reader))
|
|
110451
|
+
reader = $Reader.create(reader);
|
|
110452
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Web.InteractiveMessageAdditionalMetadata();
|
|
110453
|
+
while (reader.pos < end) {
|
|
110454
|
+
var tag = reader.uint32();
|
|
110455
|
+
if (tag === error)
|
|
110456
|
+
break;
|
|
110457
|
+
switch (tag >>> 3) {
|
|
110458
|
+
case 1: {
|
|
110459
|
+
message.isGalaxyFlowCompleted = reader.bool();
|
|
110460
|
+
break;
|
|
110461
|
+
}
|
|
110462
|
+
default:
|
|
110463
|
+
reader.skipType(tag & 7);
|
|
110464
|
+
break;
|
|
110465
|
+
}
|
|
110466
|
+
}
|
|
110467
|
+
return message;
|
|
110468
|
+
};
|
|
110469
|
+
|
|
110470
|
+
/**
|
|
110471
|
+
* Decodes an InteractiveMessageAdditionalMetadata message from the specified reader or buffer, length delimited.
|
|
110472
|
+
* @function decodeDelimited
|
|
110473
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110474
|
+
* @static
|
|
110475
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
110476
|
+
* @returns {Web.InteractiveMessageAdditionalMetadata} InteractiveMessageAdditionalMetadata
|
|
110477
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
110478
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
110479
|
+
*/
|
|
110480
|
+
InteractiveMessageAdditionalMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
110481
|
+
if (!(reader instanceof $Reader))
|
|
110482
|
+
reader = new $Reader(reader);
|
|
110483
|
+
return this.decode(reader, reader.uint32());
|
|
110484
|
+
};
|
|
110485
|
+
|
|
110486
|
+
/**
|
|
110487
|
+
* Verifies an InteractiveMessageAdditionalMetadata message.
|
|
110488
|
+
* @function verify
|
|
110489
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110490
|
+
* @static
|
|
110491
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
110492
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
110493
|
+
*/
|
|
110494
|
+
InteractiveMessageAdditionalMetadata.verify = function verify(message) {
|
|
110495
|
+
if (typeof message !== "object" || message === null)
|
|
110496
|
+
return "object expected";
|
|
110497
|
+
if (message.isGalaxyFlowCompleted != null && message.hasOwnProperty("isGalaxyFlowCompleted"))
|
|
110498
|
+
if (typeof message.isGalaxyFlowCompleted !== "boolean")
|
|
110499
|
+
return "isGalaxyFlowCompleted: boolean expected";
|
|
110500
|
+
return null;
|
|
110501
|
+
};
|
|
110502
|
+
|
|
110503
|
+
/**
|
|
110504
|
+
* Creates an InteractiveMessageAdditionalMetadata message from a plain object. Also converts values to their respective internal types.
|
|
110505
|
+
* @function fromObject
|
|
110506
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110507
|
+
* @static
|
|
110508
|
+
* @param {Object.<string,*>} object Plain object
|
|
110509
|
+
* @returns {Web.InteractiveMessageAdditionalMetadata} InteractiveMessageAdditionalMetadata
|
|
110510
|
+
*/
|
|
110511
|
+
InteractiveMessageAdditionalMetadata.fromObject = function fromObject(object) {
|
|
110512
|
+
if (object instanceof $root.Web.InteractiveMessageAdditionalMetadata)
|
|
110513
|
+
return object;
|
|
110514
|
+
var message = new $root.Web.InteractiveMessageAdditionalMetadata();
|
|
110515
|
+
if (object.isGalaxyFlowCompleted != null)
|
|
110516
|
+
message.isGalaxyFlowCompleted = Boolean(object.isGalaxyFlowCompleted);
|
|
110517
|
+
return message;
|
|
110518
|
+
};
|
|
110519
|
+
|
|
110520
|
+
/**
|
|
110521
|
+
* Creates a plain object from an InteractiveMessageAdditionalMetadata message. Also converts values to other types if specified.
|
|
110522
|
+
* @function toObject
|
|
110523
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110524
|
+
* @static
|
|
110525
|
+
* @param {Web.InteractiveMessageAdditionalMetadata} message InteractiveMessageAdditionalMetadata
|
|
110526
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
110527
|
+
* @returns {Object.<string,*>} Plain object
|
|
110528
|
+
*/
|
|
110529
|
+
InteractiveMessageAdditionalMetadata.toObject = function toObject(message, options) {
|
|
110530
|
+
if (!options)
|
|
110531
|
+
options = {};
|
|
110532
|
+
var object = {};
|
|
110533
|
+
if (options.defaults)
|
|
110534
|
+
object.isGalaxyFlowCompleted = false;
|
|
110535
|
+
if (message.isGalaxyFlowCompleted != null && message.hasOwnProperty("isGalaxyFlowCompleted"))
|
|
110536
|
+
object.isGalaxyFlowCompleted = message.isGalaxyFlowCompleted;
|
|
110537
|
+
return object;
|
|
110538
|
+
};
|
|
110539
|
+
|
|
110540
|
+
/**
|
|
110541
|
+
* Converts this InteractiveMessageAdditionalMetadata to JSON.
|
|
110542
|
+
* @function toJSON
|
|
110543
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110544
|
+
* @instance
|
|
110545
|
+
* @returns {Object.<string,*>} JSON object
|
|
110546
|
+
*/
|
|
110547
|
+
InteractiveMessageAdditionalMetadata.prototype.toJSON = function toJSON() {
|
|
110548
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
110549
|
+
};
|
|
110550
|
+
|
|
110551
|
+
/**
|
|
110552
|
+
* Gets the default type url for InteractiveMessageAdditionalMetadata
|
|
110553
|
+
* @function getTypeUrl
|
|
110554
|
+
* @memberof Web.InteractiveMessageAdditionalMetadata
|
|
110555
|
+
* @static
|
|
110556
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
110557
|
+
* @returns {string} The default type url
|
|
110558
|
+
*/
|
|
110559
|
+
InteractiveMessageAdditionalMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
110560
|
+
if (typeUrlPrefix === undefined) {
|
|
110561
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
110562
|
+
}
|
|
110563
|
+
return typeUrlPrefix + "/Web.InteractiveMessageAdditionalMetadata";
|
|
110564
|
+
};
|
|
110565
|
+
|
|
110566
|
+
return InteractiveMessageAdditionalMetadata;
|
|
110567
|
+
})();
|
|
110568
|
+
|
|
108231
110569
|
Web.PollAdditionalMetadata = (function() {
|
|
108232
110570
|
|
|
108233
110571
|
/**
|
|
@@ -114801,7 +117139,8 @@ $root.Web = (function() {
|
|
|
114801
117139
|
* @property {Array.<Web.ICitation>|null} [supportAiCitations] WebMessageInfo supportAiCitations
|
|
114802
117140
|
* @property {string|null} [botTargetId] WebMessageInfo botTargetId
|
|
114803
117141
|
* @property {Web.IGroupHistoryIndividualMessageInfo|null} [groupHistoryIndividualMessageInfo] WebMessageInfo groupHistoryIndividualMessageInfo
|
|
114804
|
-
* @property {Web.
|
|
117142
|
+
* @property {Web.IGroupHistoryBundleInfo|null} [groupHistoryBundleInfo] WebMessageInfo groupHistoryBundleInfo
|
|
117143
|
+
* @property {Web.IInteractiveMessageAdditionalMetadata|null} [interactiveMessageAdditionalMetadata] WebMessageInfo interactiveMessageAdditionalMetadata
|
|
114805
117144
|
*/
|
|
114806
117145
|
|
|
114807
117146
|
/**
|
|
@@ -115334,12 +117673,20 @@ $root.Web = (function() {
|
|
|
115334
117673
|
WebMessageInfo.prototype.groupHistoryIndividualMessageInfo = null;
|
|
115335
117674
|
|
|
115336
117675
|
/**
|
|
115337
|
-
* WebMessageInfo
|
|
115338
|
-
* @member {Web.
|
|
117676
|
+
* WebMessageInfo groupHistoryBundleInfo.
|
|
117677
|
+
* @member {Web.IGroupHistoryBundleInfo|null|undefined} groupHistoryBundleInfo
|
|
115339
117678
|
* @memberof Web.WebMessageInfo
|
|
115340
117679
|
* @instance
|
|
115341
117680
|
*/
|
|
115342
|
-
WebMessageInfo.prototype.
|
|
117681
|
+
WebMessageInfo.prototype.groupHistoryBundleInfo = null;
|
|
117682
|
+
|
|
117683
|
+
/**
|
|
117684
|
+
* WebMessageInfo interactiveMessageAdditionalMetadata.
|
|
117685
|
+
* @member {Web.IInteractiveMessageAdditionalMetadata|null|undefined} interactiveMessageAdditionalMetadata
|
|
117686
|
+
* @memberof Web.WebMessageInfo
|
|
117687
|
+
* @instance
|
|
117688
|
+
*/
|
|
117689
|
+
WebMessageInfo.prototype.interactiveMessageAdditionalMetadata = null;
|
|
115343
117690
|
|
|
115344
117691
|
/**
|
|
115345
117692
|
* Creates a new WebMessageInfo instance using the specified properties.
|
|
@@ -115500,8 +117847,10 @@ $root.Web = (function() {
|
|
|
115500
117847
|
writer.uint32(/* id 73, wireType 2 =*/586).string(message.botTargetId);
|
|
115501
117848
|
if (message.groupHistoryIndividualMessageInfo != null && Object.hasOwnProperty.call(message, "groupHistoryIndividualMessageInfo"))
|
|
115502
117849
|
$root.Web.GroupHistoryIndividualMessageInfo.encode(message.groupHistoryIndividualMessageInfo, writer.uint32(/* id 74, wireType 2 =*/594).fork()).ldelim();
|
|
115503
|
-
if (message.
|
|
115504
|
-
$root.Web.
|
|
117850
|
+
if (message.groupHistoryBundleInfo != null && Object.hasOwnProperty.call(message, "groupHistoryBundleInfo"))
|
|
117851
|
+
$root.Web.GroupHistoryBundleInfo.encode(message.groupHistoryBundleInfo, writer.uint32(/* id 75, wireType 2 =*/602).fork()).ldelim();
|
|
117852
|
+
if (message.interactiveMessageAdditionalMetadata != null && Object.hasOwnProperty.call(message, "interactiveMessageAdditionalMetadata"))
|
|
117853
|
+
$root.Web.InteractiveMessageAdditionalMetadata.encode(message.interactiveMessageAdditionalMetadata, writer.uint32(/* id 76, wireType 2 =*/610).fork()).ldelim();
|
|
115505
117854
|
return writer;
|
|
115506
117855
|
};
|
|
115507
117856
|
|
|
@@ -115811,7 +118160,11 @@ $root.Web = (function() {
|
|
|
115811
118160
|
break;
|
|
115812
118161
|
}
|
|
115813
118162
|
case 75: {
|
|
115814
|
-
message.
|
|
118163
|
+
message.groupHistoryBundleInfo = $root.Web.GroupHistoryBundleInfo.decode(reader, reader.uint32());
|
|
118164
|
+
break;
|
|
118165
|
+
}
|
|
118166
|
+
case 76: {
|
|
118167
|
+
message.interactiveMessageAdditionalMetadata = $root.Web.InteractiveMessageAdditionalMetadata.decode(reader, reader.uint32());
|
|
115815
118168
|
break;
|
|
115816
118169
|
}
|
|
115817
118170
|
default:
|
|
@@ -116369,10 +118722,15 @@ $root.Web = (function() {
|
|
|
116369
118722
|
if (error)
|
|
116370
118723
|
return "groupHistoryIndividualMessageInfo." + error;
|
|
116371
118724
|
}
|
|
116372
|
-
if (message.
|
|
116373
|
-
var error = $root.Web.
|
|
118725
|
+
if (message.groupHistoryBundleInfo != null && message.hasOwnProperty("groupHistoryBundleInfo")) {
|
|
118726
|
+
var error = $root.Web.GroupHistoryBundleInfo.verify(message.groupHistoryBundleInfo);
|
|
118727
|
+
if (error)
|
|
118728
|
+
return "groupHistoryBundleInfo." + error;
|
|
118729
|
+
}
|
|
118730
|
+
if (message.interactiveMessageAdditionalMetadata != null && message.hasOwnProperty("interactiveMessageAdditionalMetadata")) {
|
|
118731
|
+
var error = $root.Web.InteractiveMessageAdditionalMetadata.verify(message.interactiveMessageAdditionalMetadata);
|
|
116374
118732
|
if (error)
|
|
116375
|
-
return "
|
|
118733
|
+
return "interactiveMessageAdditionalMetadata." + error;
|
|
116376
118734
|
}
|
|
116377
118735
|
return null;
|
|
116378
118736
|
};
|
|
@@ -117622,10 +119980,15 @@ $root.Web = (function() {
|
|
|
117622
119980
|
throw TypeError(".Web.WebMessageInfo.groupHistoryIndividualMessageInfo: object expected");
|
|
117623
119981
|
message.groupHistoryIndividualMessageInfo = $root.Web.GroupHistoryIndividualMessageInfo.fromObject(object.groupHistoryIndividualMessageInfo);
|
|
117624
119982
|
}
|
|
117625
|
-
if (object.
|
|
117626
|
-
if (typeof object.
|
|
117627
|
-
throw TypeError(".Web.WebMessageInfo.
|
|
117628
|
-
message.
|
|
119983
|
+
if (object.groupHistoryBundleInfo != null) {
|
|
119984
|
+
if (typeof object.groupHistoryBundleInfo !== "object")
|
|
119985
|
+
throw TypeError(".Web.WebMessageInfo.groupHistoryBundleInfo: object expected");
|
|
119986
|
+
message.groupHistoryBundleInfo = $root.Web.GroupHistoryBundleInfo.fromObject(object.groupHistoryBundleInfo);
|
|
119987
|
+
}
|
|
119988
|
+
if (object.interactiveMessageAdditionalMetadata != null) {
|
|
119989
|
+
if (typeof object.interactiveMessageAdditionalMetadata !== "object")
|
|
119990
|
+
throw TypeError(".Web.WebMessageInfo.interactiveMessageAdditionalMetadata: object expected");
|
|
119991
|
+
message.interactiveMessageAdditionalMetadata = $root.Web.InteractiveMessageAdditionalMetadata.fromObject(object.interactiveMessageAdditionalMetadata);
|
|
117629
119992
|
}
|
|
117630
119993
|
return message;
|
|
117631
119994
|
};
|
|
@@ -117747,7 +120110,8 @@ $root.Web = (function() {
|
|
|
117747
120110
|
object.isSupportAiMessage = false;
|
|
117748
120111
|
object.botTargetId = "";
|
|
117749
120112
|
object.groupHistoryIndividualMessageInfo = null;
|
|
117750
|
-
object.
|
|
120113
|
+
object.groupHistoryBundleInfo = null;
|
|
120114
|
+
object.interactiveMessageAdditionalMetadata = null;
|
|
117751
120115
|
}
|
|
117752
120116
|
if (message.key != null && message.hasOwnProperty("key"))
|
|
117753
120117
|
object.key = $root.Protocol.MessageKey.toObject(message.key, options);
|
|
@@ -117920,8 +120284,10 @@ $root.Web = (function() {
|
|
|
117920
120284
|
object.botTargetId = message.botTargetId;
|
|
117921
120285
|
if (message.groupHistoryIndividualMessageInfo != null && message.hasOwnProperty("groupHistoryIndividualMessageInfo"))
|
|
117922
120286
|
object.groupHistoryIndividualMessageInfo = $root.Web.GroupHistoryIndividualMessageInfo.toObject(message.groupHistoryIndividualMessageInfo, options);
|
|
117923
|
-
if (message.
|
|
117924
|
-
object.
|
|
120287
|
+
if (message.groupHistoryBundleInfo != null && message.hasOwnProperty("groupHistoryBundleInfo"))
|
|
120288
|
+
object.groupHistoryBundleInfo = $root.Web.GroupHistoryBundleInfo.toObject(message.groupHistoryBundleInfo, options);
|
|
120289
|
+
if (message.interactiveMessageAdditionalMetadata != null && message.hasOwnProperty("interactiveMessageAdditionalMetadata"))
|
|
120290
|
+
object.interactiveMessageAdditionalMetadata = $root.Web.InteractiveMessageAdditionalMetadata.toObject(message.interactiveMessageAdditionalMetadata, options);
|
|
117925
120291
|
return object;
|
|
117926
120292
|
};
|
|
117927
120293
|
|
|
@@ -118779,6 +121145,9 @@ $root.SyncAction = (function() {
|
|
|
118779
121145
|
case 6:
|
|
118780
121146
|
case 7:
|
|
118781
121147
|
case 8:
|
|
121148
|
+
case 9:
|
|
121149
|
+
case 10:
|
|
121150
|
+
case 11:
|
|
118782
121151
|
break;
|
|
118783
121152
|
}
|
|
118784
121153
|
if (message.isSenderPrimary != null && message.hasOwnProperty("isSenderPrimary"))
|
|
@@ -118878,6 +121247,18 @@ $root.SyncAction = (function() {
|
|
|
118878
121247
|
case 8:
|
|
118879
121248
|
message.senderPlatform = 8;
|
|
118880
121249
|
break;
|
|
121250
|
+
case "WASG":
|
|
121251
|
+
case 9:
|
|
121252
|
+
message.senderPlatform = 9;
|
|
121253
|
+
break;
|
|
121254
|
+
case "WEARM":
|
|
121255
|
+
case 10:
|
|
121256
|
+
message.senderPlatform = 10;
|
|
121257
|
+
break;
|
|
121258
|
+
case "CAPI":
|
|
121259
|
+
case 11:
|
|
121260
|
+
message.senderPlatform = 11;
|
|
121261
|
+
break;
|
|
118881
121262
|
}
|
|
118882
121263
|
if (object.isSenderPrimary != null)
|
|
118883
121264
|
message.isSenderPrimary = Boolean(object.isSenderPrimary);
|
|
@@ -119010,6 +121391,9 @@ $root.SyncAction = (function() {
|
|
|
119010
121391
|
* @property {number} DARWIN=6 DARWIN value
|
|
119011
121392
|
* @property {number} IPAD=7 IPAD value
|
|
119012
121393
|
* @property {number} WEAROS=8 WEAROS value
|
|
121394
|
+
* @property {number} WASG=9 WASG value
|
|
121395
|
+
* @property {number} WEARM=10 WEARM value
|
|
121396
|
+
* @property {number} CAPI=11 CAPI value
|
|
119013
121397
|
*/
|
|
119014
121398
|
PatchDebugData.Platform = (function() {
|
|
119015
121399
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -119022,6 +121406,9 @@ $root.SyncAction = (function() {
|
|
|
119022
121406
|
values[valuesById[6] = "DARWIN"] = 6;
|
|
119023
121407
|
values[valuesById[7] = "IPAD"] = 7;
|
|
119024
121408
|
values[valuesById[8] = "WEAROS"] = 8;
|
|
121409
|
+
values[valuesById[9] = "WASG"] = 9;
|
|
121410
|
+
values[valuesById[10] = "WEARM"] = 10;
|
|
121411
|
+
values[valuesById[11] = "CAPI"] = 11;
|
|
119025
121412
|
return values;
|
|
119026
121413
|
})();
|
|
119027
121414
|
|
|
@@ -119396,6 +121783,8 @@ $root.SyncAction = (function() {
|
|
|
119396
121783
|
* @property {SyncAction.SyncActionValue.IBusinessBroadcastListAction|null} [businessBroadcastListAction] SyncActionValue businessBroadcastListAction
|
|
119397
121784
|
* @property {SyncAction.SyncActionValue.IMusicUserIdAction|null} [musicUserIdAction] SyncActionValue musicUserIdAction
|
|
119398
121785
|
* @property {SyncAction.SyncActionValue.IStatusPostOptInNotificationPreferencesAction|null} [statusPostOptInNotificationPreferencesAction] SyncActionValue statusPostOptInNotificationPreferencesAction
|
|
121786
|
+
* @property {SyncAction.SyncActionValue.IAvatarUpdatedAction|null} [avatarUpdatedAction] SyncActionValue avatarUpdatedAction
|
|
121787
|
+
* @property {SyncAction.SyncActionValue.IGalaxyFlowAction|null} [galaxyFlowAction] SyncActionValue galaxyFlowAction
|
|
119399
121788
|
*/
|
|
119400
121789
|
|
|
119401
121790
|
/**
|
|
@@ -119925,6 +122314,22 @@ $root.SyncAction = (function() {
|
|
|
119925
122314
|
*/
|
|
119926
122315
|
SyncActionValue.prototype.statusPostOptInNotificationPreferencesAction = null;
|
|
119927
122316
|
|
|
122317
|
+
/**
|
|
122318
|
+
* SyncActionValue avatarUpdatedAction.
|
|
122319
|
+
* @member {SyncAction.SyncActionValue.IAvatarUpdatedAction|null|undefined} avatarUpdatedAction
|
|
122320
|
+
* @memberof SyncAction.SyncActionValue
|
|
122321
|
+
* @instance
|
|
122322
|
+
*/
|
|
122323
|
+
SyncActionValue.prototype.avatarUpdatedAction = null;
|
|
122324
|
+
|
|
122325
|
+
/**
|
|
122326
|
+
* SyncActionValue galaxyFlowAction.
|
|
122327
|
+
* @member {SyncAction.SyncActionValue.IGalaxyFlowAction|null|undefined} galaxyFlowAction
|
|
122328
|
+
* @memberof SyncAction.SyncActionValue
|
|
122329
|
+
* @instance
|
|
122330
|
+
*/
|
|
122331
|
+
SyncActionValue.prototype.galaxyFlowAction = null;
|
|
122332
|
+
|
|
119928
122333
|
/**
|
|
119929
122334
|
* Creates a new SyncActionValue instance using the specified properties.
|
|
119930
122335
|
* @function create
|
|
@@ -120077,6 +122482,10 @@ $root.SyncAction = (function() {
|
|
|
120077
122482
|
$root.SyncAction.SyncActionValue.MusicUserIdAction.encode(message.musicUserIdAction, writer.uint32(/* id 70, wireType 2 =*/562).fork()).ldelim();
|
|
120078
122483
|
if (message.statusPostOptInNotificationPreferencesAction != null && Object.hasOwnProperty.call(message, "statusPostOptInNotificationPreferencesAction"))
|
|
120079
122484
|
$root.SyncAction.SyncActionValue.StatusPostOptInNotificationPreferencesAction.encode(message.statusPostOptInNotificationPreferencesAction, writer.uint32(/* id 71, wireType 2 =*/570).fork()).ldelim();
|
|
122485
|
+
if (message.avatarUpdatedAction != null && Object.hasOwnProperty.call(message, "avatarUpdatedAction"))
|
|
122486
|
+
$root.SyncAction.SyncActionValue.AvatarUpdatedAction.encode(message.avatarUpdatedAction, writer.uint32(/* id 72, wireType 2 =*/578).fork()).ldelim();
|
|
122487
|
+
if (message.galaxyFlowAction != null && Object.hasOwnProperty.call(message, "galaxyFlowAction"))
|
|
122488
|
+
$root.SyncAction.SyncActionValue.GalaxyFlowAction.encode(message.galaxyFlowAction, writer.uint32(/* id 73, wireType 2 =*/586).fork()).ldelim();
|
|
120080
122489
|
return writer;
|
|
120081
122490
|
};
|
|
120082
122491
|
|
|
@@ -120369,6 +122778,14 @@ $root.SyncAction = (function() {
|
|
|
120369
122778
|
message.statusPostOptInNotificationPreferencesAction = $root.SyncAction.SyncActionValue.StatusPostOptInNotificationPreferencesAction.decode(reader, reader.uint32());
|
|
120370
122779
|
break;
|
|
120371
122780
|
}
|
|
122781
|
+
case 72: {
|
|
122782
|
+
message.avatarUpdatedAction = $root.SyncAction.SyncActionValue.AvatarUpdatedAction.decode(reader, reader.uint32());
|
|
122783
|
+
break;
|
|
122784
|
+
}
|
|
122785
|
+
case 73: {
|
|
122786
|
+
message.galaxyFlowAction = $root.SyncAction.SyncActionValue.GalaxyFlowAction.decode(reader, reader.uint32());
|
|
122787
|
+
break;
|
|
122788
|
+
}
|
|
120372
122789
|
default:
|
|
120373
122790
|
reader.skipType(tag & 7);
|
|
120374
122791
|
break;
|
|
@@ -120722,6 +123139,16 @@ $root.SyncAction = (function() {
|
|
|
120722
123139
|
if (error)
|
|
120723
123140
|
return "statusPostOptInNotificationPreferencesAction." + error;
|
|
120724
123141
|
}
|
|
123142
|
+
if (message.avatarUpdatedAction != null && message.hasOwnProperty("avatarUpdatedAction")) {
|
|
123143
|
+
var error = $root.SyncAction.SyncActionValue.AvatarUpdatedAction.verify(message.avatarUpdatedAction);
|
|
123144
|
+
if (error)
|
|
123145
|
+
return "avatarUpdatedAction." + error;
|
|
123146
|
+
}
|
|
123147
|
+
if (message.galaxyFlowAction != null && message.hasOwnProperty("galaxyFlowAction")) {
|
|
123148
|
+
var error = $root.SyncAction.SyncActionValue.GalaxyFlowAction.verify(message.galaxyFlowAction);
|
|
123149
|
+
if (error)
|
|
123150
|
+
return "galaxyFlowAction." + error;
|
|
123151
|
+
}
|
|
120725
123152
|
return null;
|
|
120726
123153
|
};
|
|
120727
123154
|
|
|
@@ -121061,6 +123488,16 @@ $root.SyncAction = (function() {
|
|
|
121061
123488
|
throw TypeError(".SyncAction.SyncActionValue.statusPostOptInNotificationPreferencesAction: object expected");
|
|
121062
123489
|
message.statusPostOptInNotificationPreferencesAction = $root.SyncAction.SyncActionValue.StatusPostOptInNotificationPreferencesAction.fromObject(object.statusPostOptInNotificationPreferencesAction);
|
|
121063
123490
|
}
|
|
123491
|
+
if (object.avatarUpdatedAction != null) {
|
|
123492
|
+
if (typeof object.avatarUpdatedAction !== "object")
|
|
123493
|
+
throw TypeError(".SyncAction.SyncActionValue.avatarUpdatedAction: object expected");
|
|
123494
|
+
message.avatarUpdatedAction = $root.SyncAction.SyncActionValue.AvatarUpdatedAction.fromObject(object.avatarUpdatedAction);
|
|
123495
|
+
}
|
|
123496
|
+
if (object.galaxyFlowAction != null) {
|
|
123497
|
+
if (typeof object.galaxyFlowAction !== "object")
|
|
123498
|
+
throw TypeError(".SyncAction.SyncActionValue.galaxyFlowAction: object expected");
|
|
123499
|
+
message.galaxyFlowAction = $root.SyncAction.SyncActionValue.GalaxyFlowAction.fromObject(object.galaxyFlowAction);
|
|
123500
|
+
}
|
|
121064
123501
|
return message;
|
|
121065
123502
|
};
|
|
121066
123503
|
|
|
@@ -121146,6 +123583,8 @@ $root.SyncAction = (function() {
|
|
|
121146
123583
|
object.businessBroadcastListAction = null;
|
|
121147
123584
|
object.musicUserIdAction = null;
|
|
121148
123585
|
object.statusPostOptInNotificationPreferencesAction = null;
|
|
123586
|
+
object.avatarUpdatedAction = null;
|
|
123587
|
+
object.galaxyFlowAction = null;
|
|
121149
123588
|
}
|
|
121150
123589
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
121151
123590
|
if (typeof message.timestamp === "number")
|
|
@@ -121278,6 +123717,10 @@ $root.SyncAction = (function() {
|
|
|
121278
123717
|
object.musicUserIdAction = $root.SyncAction.SyncActionValue.MusicUserIdAction.toObject(message.musicUserIdAction, options);
|
|
121279
123718
|
if (message.statusPostOptInNotificationPreferencesAction != null && message.hasOwnProperty("statusPostOptInNotificationPreferencesAction"))
|
|
121280
123719
|
object.statusPostOptInNotificationPreferencesAction = $root.SyncAction.SyncActionValue.StatusPostOptInNotificationPreferencesAction.toObject(message.statusPostOptInNotificationPreferencesAction, options);
|
|
123720
|
+
if (message.avatarUpdatedAction != null && message.hasOwnProperty("avatarUpdatedAction"))
|
|
123721
|
+
object.avatarUpdatedAction = $root.SyncAction.SyncActionValue.AvatarUpdatedAction.toObject(message.avatarUpdatedAction, options);
|
|
123722
|
+
if (message.galaxyFlowAction != null && message.hasOwnProperty("galaxyFlowAction"))
|
|
123723
|
+
object.galaxyFlowAction = $root.SyncAction.SyncActionValue.GalaxyFlowAction.toObject(message.galaxyFlowAction, options);
|
|
121281
123724
|
return object;
|
|
121282
123725
|
};
|
|
121283
123726
|
|
|
@@ -121998,6 +124441,296 @@ $root.SyncAction = (function() {
|
|
|
121998
124441
|
return ArchiveChatAction;
|
|
121999
124442
|
})();
|
|
122000
124443
|
|
|
124444
|
+
SyncActionValue.AvatarUpdatedAction = (function() {
|
|
124445
|
+
|
|
124446
|
+
/**
|
|
124447
|
+
* Properties of an AvatarUpdatedAction.
|
|
124448
|
+
* @memberof SyncAction.SyncActionValue
|
|
124449
|
+
* @interface IAvatarUpdatedAction
|
|
124450
|
+
* @property {SyncAction.SyncActionValue.AvatarUpdatedAction.AvatarEventType|null} [eventType] AvatarUpdatedAction eventType
|
|
124451
|
+
* @property {Array.<SyncAction.SyncActionValue.IStickerAction>|null} [recentAvatarStickers] AvatarUpdatedAction recentAvatarStickers
|
|
124452
|
+
*/
|
|
124453
|
+
|
|
124454
|
+
/**
|
|
124455
|
+
* Constructs a new AvatarUpdatedAction.
|
|
124456
|
+
* @memberof SyncAction.SyncActionValue
|
|
124457
|
+
* @classdesc Represents an AvatarUpdatedAction.
|
|
124458
|
+
* @implements IAvatarUpdatedAction
|
|
124459
|
+
* @constructor
|
|
124460
|
+
* @param {SyncAction.SyncActionValue.IAvatarUpdatedAction=} [properties] Properties to set
|
|
124461
|
+
*/
|
|
124462
|
+
function AvatarUpdatedAction(properties) {
|
|
124463
|
+
this.recentAvatarStickers = [];
|
|
124464
|
+
if (properties)
|
|
124465
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
124466
|
+
if (properties[keys[i]] != null)
|
|
124467
|
+
this[keys[i]] = properties[keys[i]];
|
|
124468
|
+
}
|
|
124469
|
+
|
|
124470
|
+
/**
|
|
124471
|
+
* AvatarUpdatedAction eventType.
|
|
124472
|
+
* @member {SyncAction.SyncActionValue.AvatarUpdatedAction.AvatarEventType} eventType
|
|
124473
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124474
|
+
* @instance
|
|
124475
|
+
*/
|
|
124476
|
+
AvatarUpdatedAction.prototype.eventType = 0;
|
|
124477
|
+
|
|
124478
|
+
/**
|
|
124479
|
+
* AvatarUpdatedAction recentAvatarStickers.
|
|
124480
|
+
* @member {Array.<SyncAction.SyncActionValue.IStickerAction>} recentAvatarStickers
|
|
124481
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124482
|
+
* @instance
|
|
124483
|
+
*/
|
|
124484
|
+
AvatarUpdatedAction.prototype.recentAvatarStickers = $util.emptyArray;
|
|
124485
|
+
|
|
124486
|
+
/**
|
|
124487
|
+
* Creates a new AvatarUpdatedAction instance using the specified properties.
|
|
124488
|
+
* @function create
|
|
124489
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124490
|
+
* @static
|
|
124491
|
+
* @param {SyncAction.SyncActionValue.IAvatarUpdatedAction=} [properties] Properties to set
|
|
124492
|
+
* @returns {SyncAction.SyncActionValue.AvatarUpdatedAction} AvatarUpdatedAction instance
|
|
124493
|
+
*/
|
|
124494
|
+
AvatarUpdatedAction.create = function create(properties) {
|
|
124495
|
+
return new AvatarUpdatedAction(properties);
|
|
124496
|
+
};
|
|
124497
|
+
|
|
124498
|
+
/**
|
|
124499
|
+
* Encodes the specified AvatarUpdatedAction message. Does not implicitly {@link SyncAction.SyncActionValue.AvatarUpdatedAction.verify|verify} messages.
|
|
124500
|
+
* @function encode
|
|
124501
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124502
|
+
* @static
|
|
124503
|
+
* @param {SyncAction.SyncActionValue.IAvatarUpdatedAction} message AvatarUpdatedAction message or plain object to encode
|
|
124504
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
124505
|
+
* @returns {$protobuf.Writer} Writer
|
|
124506
|
+
*/
|
|
124507
|
+
AvatarUpdatedAction.encode = function encode(message, writer) {
|
|
124508
|
+
if (!writer)
|
|
124509
|
+
writer = $Writer.create();
|
|
124510
|
+
if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType"))
|
|
124511
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.eventType);
|
|
124512
|
+
if (message.recentAvatarStickers != null && message.recentAvatarStickers.length)
|
|
124513
|
+
for (var i = 0; i < message.recentAvatarStickers.length; ++i)
|
|
124514
|
+
$root.SyncAction.SyncActionValue.StickerAction.encode(message.recentAvatarStickers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
124515
|
+
return writer;
|
|
124516
|
+
};
|
|
124517
|
+
|
|
124518
|
+
/**
|
|
124519
|
+
* Encodes the specified AvatarUpdatedAction message, length delimited. Does not implicitly {@link SyncAction.SyncActionValue.AvatarUpdatedAction.verify|verify} messages.
|
|
124520
|
+
* @function encodeDelimited
|
|
124521
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124522
|
+
* @static
|
|
124523
|
+
* @param {SyncAction.SyncActionValue.IAvatarUpdatedAction} message AvatarUpdatedAction message or plain object to encode
|
|
124524
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
124525
|
+
* @returns {$protobuf.Writer} Writer
|
|
124526
|
+
*/
|
|
124527
|
+
AvatarUpdatedAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
124528
|
+
return this.encode(message, writer).ldelim();
|
|
124529
|
+
};
|
|
124530
|
+
|
|
124531
|
+
/**
|
|
124532
|
+
* Decodes an AvatarUpdatedAction message from the specified reader or buffer.
|
|
124533
|
+
* @function decode
|
|
124534
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124535
|
+
* @static
|
|
124536
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
124537
|
+
* @param {number} [length] Message length if known beforehand
|
|
124538
|
+
* @returns {SyncAction.SyncActionValue.AvatarUpdatedAction} AvatarUpdatedAction
|
|
124539
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
124540
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
124541
|
+
*/
|
|
124542
|
+
AvatarUpdatedAction.decode = function decode(reader, length, error) {
|
|
124543
|
+
if (!(reader instanceof $Reader))
|
|
124544
|
+
reader = $Reader.create(reader);
|
|
124545
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SyncAction.SyncActionValue.AvatarUpdatedAction();
|
|
124546
|
+
while (reader.pos < end) {
|
|
124547
|
+
var tag = reader.uint32();
|
|
124548
|
+
if (tag === error)
|
|
124549
|
+
break;
|
|
124550
|
+
switch (tag >>> 3) {
|
|
124551
|
+
case 1: {
|
|
124552
|
+
message.eventType = reader.int32();
|
|
124553
|
+
break;
|
|
124554
|
+
}
|
|
124555
|
+
case 2: {
|
|
124556
|
+
if (!(message.recentAvatarStickers && message.recentAvatarStickers.length))
|
|
124557
|
+
message.recentAvatarStickers = [];
|
|
124558
|
+
message.recentAvatarStickers.push($root.SyncAction.SyncActionValue.StickerAction.decode(reader, reader.uint32()));
|
|
124559
|
+
break;
|
|
124560
|
+
}
|
|
124561
|
+
default:
|
|
124562
|
+
reader.skipType(tag & 7);
|
|
124563
|
+
break;
|
|
124564
|
+
}
|
|
124565
|
+
}
|
|
124566
|
+
return message;
|
|
124567
|
+
};
|
|
124568
|
+
|
|
124569
|
+
/**
|
|
124570
|
+
* Decodes an AvatarUpdatedAction message from the specified reader or buffer, length delimited.
|
|
124571
|
+
* @function decodeDelimited
|
|
124572
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124573
|
+
* @static
|
|
124574
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
124575
|
+
* @returns {SyncAction.SyncActionValue.AvatarUpdatedAction} AvatarUpdatedAction
|
|
124576
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
124577
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
124578
|
+
*/
|
|
124579
|
+
AvatarUpdatedAction.decodeDelimited = function decodeDelimited(reader) {
|
|
124580
|
+
if (!(reader instanceof $Reader))
|
|
124581
|
+
reader = new $Reader(reader);
|
|
124582
|
+
return this.decode(reader, reader.uint32());
|
|
124583
|
+
};
|
|
124584
|
+
|
|
124585
|
+
/**
|
|
124586
|
+
* Verifies an AvatarUpdatedAction message.
|
|
124587
|
+
* @function verify
|
|
124588
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124589
|
+
* @static
|
|
124590
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
124591
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
124592
|
+
*/
|
|
124593
|
+
AvatarUpdatedAction.verify = function verify(message) {
|
|
124594
|
+
if (typeof message !== "object" || message === null)
|
|
124595
|
+
return "object expected";
|
|
124596
|
+
if (message.eventType != null && message.hasOwnProperty("eventType"))
|
|
124597
|
+
switch (message.eventType) {
|
|
124598
|
+
default:
|
|
124599
|
+
return "eventType: enum value expected";
|
|
124600
|
+
case 0:
|
|
124601
|
+
case 1:
|
|
124602
|
+
case 2:
|
|
124603
|
+
break;
|
|
124604
|
+
}
|
|
124605
|
+
if (message.recentAvatarStickers != null && message.hasOwnProperty("recentAvatarStickers")) {
|
|
124606
|
+
if (!Array.isArray(message.recentAvatarStickers))
|
|
124607
|
+
return "recentAvatarStickers: array expected";
|
|
124608
|
+
for (var i = 0; i < message.recentAvatarStickers.length; ++i) {
|
|
124609
|
+
var error = $root.SyncAction.SyncActionValue.StickerAction.verify(message.recentAvatarStickers[i]);
|
|
124610
|
+
if (error)
|
|
124611
|
+
return "recentAvatarStickers." + error;
|
|
124612
|
+
}
|
|
124613
|
+
}
|
|
124614
|
+
return null;
|
|
124615
|
+
};
|
|
124616
|
+
|
|
124617
|
+
/**
|
|
124618
|
+
* Creates an AvatarUpdatedAction message from a plain object. Also converts values to their respective internal types.
|
|
124619
|
+
* @function fromObject
|
|
124620
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124621
|
+
* @static
|
|
124622
|
+
* @param {Object.<string,*>} object Plain object
|
|
124623
|
+
* @returns {SyncAction.SyncActionValue.AvatarUpdatedAction} AvatarUpdatedAction
|
|
124624
|
+
*/
|
|
124625
|
+
AvatarUpdatedAction.fromObject = function fromObject(object) {
|
|
124626
|
+
if (object instanceof $root.SyncAction.SyncActionValue.AvatarUpdatedAction)
|
|
124627
|
+
return object;
|
|
124628
|
+
var message = new $root.SyncAction.SyncActionValue.AvatarUpdatedAction();
|
|
124629
|
+
switch (object.eventType) {
|
|
124630
|
+
default:
|
|
124631
|
+
if (typeof object.eventType === "number") {
|
|
124632
|
+
message.eventType = object.eventType;
|
|
124633
|
+
break;
|
|
124634
|
+
}
|
|
124635
|
+
break;
|
|
124636
|
+
case "UPDATED":
|
|
124637
|
+
case 0:
|
|
124638
|
+
message.eventType = 0;
|
|
124639
|
+
break;
|
|
124640
|
+
case "CREATED":
|
|
124641
|
+
case 1:
|
|
124642
|
+
message.eventType = 1;
|
|
124643
|
+
break;
|
|
124644
|
+
case "DELETED":
|
|
124645
|
+
case 2:
|
|
124646
|
+
message.eventType = 2;
|
|
124647
|
+
break;
|
|
124648
|
+
}
|
|
124649
|
+
if (object.recentAvatarStickers) {
|
|
124650
|
+
if (!Array.isArray(object.recentAvatarStickers))
|
|
124651
|
+
throw TypeError(".SyncAction.SyncActionValue.AvatarUpdatedAction.recentAvatarStickers: array expected");
|
|
124652
|
+
message.recentAvatarStickers = [];
|
|
124653
|
+
for (var i = 0; i < object.recentAvatarStickers.length; ++i) {
|
|
124654
|
+
if (typeof object.recentAvatarStickers[i] !== "object")
|
|
124655
|
+
throw TypeError(".SyncAction.SyncActionValue.AvatarUpdatedAction.recentAvatarStickers: object expected");
|
|
124656
|
+
message.recentAvatarStickers[i] = $root.SyncAction.SyncActionValue.StickerAction.fromObject(object.recentAvatarStickers[i]);
|
|
124657
|
+
}
|
|
124658
|
+
}
|
|
124659
|
+
return message;
|
|
124660
|
+
};
|
|
124661
|
+
|
|
124662
|
+
/**
|
|
124663
|
+
* Creates a plain object from an AvatarUpdatedAction message. Also converts values to other types if specified.
|
|
124664
|
+
* @function toObject
|
|
124665
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124666
|
+
* @static
|
|
124667
|
+
* @param {SyncAction.SyncActionValue.AvatarUpdatedAction} message AvatarUpdatedAction
|
|
124668
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
124669
|
+
* @returns {Object.<string,*>} Plain object
|
|
124670
|
+
*/
|
|
124671
|
+
AvatarUpdatedAction.toObject = function toObject(message, options) {
|
|
124672
|
+
if (!options)
|
|
124673
|
+
options = {};
|
|
124674
|
+
var object = {};
|
|
124675
|
+
if (options.arrays || options.defaults)
|
|
124676
|
+
object.recentAvatarStickers = [];
|
|
124677
|
+
if (options.defaults)
|
|
124678
|
+
object.eventType = options.enums === String ? "UPDATED" : 0;
|
|
124679
|
+
if (message.eventType != null && message.hasOwnProperty("eventType"))
|
|
124680
|
+
object.eventType = options.enums === String ? $root.SyncAction.SyncActionValue.AvatarUpdatedAction.AvatarEventType[message.eventType] === undefined ? message.eventType : $root.SyncAction.SyncActionValue.AvatarUpdatedAction.AvatarEventType[message.eventType] : message.eventType;
|
|
124681
|
+
if (message.recentAvatarStickers && message.recentAvatarStickers.length) {
|
|
124682
|
+
object.recentAvatarStickers = [];
|
|
124683
|
+
for (var j = 0; j < message.recentAvatarStickers.length; ++j)
|
|
124684
|
+
object.recentAvatarStickers[j] = $root.SyncAction.SyncActionValue.StickerAction.toObject(message.recentAvatarStickers[j], options);
|
|
124685
|
+
}
|
|
124686
|
+
return object;
|
|
124687
|
+
};
|
|
124688
|
+
|
|
124689
|
+
/**
|
|
124690
|
+
* Converts this AvatarUpdatedAction to JSON.
|
|
124691
|
+
* @function toJSON
|
|
124692
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124693
|
+
* @instance
|
|
124694
|
+
* @returns {Object.<string,*>} JSON object
|
|
124695
|
+
*/
|
|
124696
|
+
AvatarUpdatedAction.prototype.toJSON = function toJSON() {
|
|
124697
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
124698
|
+
};
|
|
124699
|
+
|
|
124700
|
+
/**
|
|
124701
|
+
* Gets the default type url for AvatarUpdatedAction
|
|
124702
|
+
* @function getTypeUrl
|
|
124703
|
+
* @memberof SyncAction.SyncActionValue.AvatarUpdatedAction
|
|
124704
|
+
* @static
|
|
124705
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
124706
|
+
* @returns {string} The default type url
|
|
124707
|
+
*/
|
|
124708
|
+
AvatarUpdatedAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
124709
|
+
if (typeUrlPrefix === undefined) {
|
|
124710
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
124711
|
+
}
|
|
124712
|
+
return typeUrlPrefix + "/SyncAction.SyncActionValue.AvatarUpdatedAction";
|
|
124713
|
+
};
|
|
124714
|
+
|
|
124715
|
+
/**
|
|
124716
|
+
* AvatarEventType enum.
|
|
124717
|
+
* @name SyncAction.SyncActionValue.AvatarUpdatedAction.AvatarEventType
|
|
124718
|
+
* @enum {number}
|
|
124719
|
+
* @property {number} UPDATED=0 UPDATED value
|
|
124720
|
+
* @property {number} CREATED=1 CREATED value
|
|
124721
|
+
* @property {number} DELETED=2 DELETED value
|
|
124722
|
+
*/
|
|
124723
|
+
AvatarUpdatedAction.AvatarEventType = (function() {
|
|
124724
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
124725
|
+
values[valuesById[0] = "UPDATED"] = 0;
|
|
124726
|
+
values[valuesById[1] = "CREATED"] = 1;
|
|
124727
|
+
values[valuesById[2] = "DELETED"] = 2;
|
|
124728
|
+
return values;
|
|
124729
|
+
})();
|
|
124730
|
+
|
|
124731
|
+
return AvatarUpdatedAction;
|
|
124732
|
+
})();
|
|
124733
|
+
|
|
122001
124734
|
SyncActionValue.BotWelcomeRequestAction = (function() {
|
|
122002
124735
|
|
|
122003
124736
|
/**
|
|
@@ -126542,6 +129275,237 @@ $root.SyncAction = (function() {
|
|
|
126542
129275
|
return FavoritesAction;
|
|
126543
129276
|
})();
|
|
126544
129277
|
|
|
129278
|
+
SyncActionValue.GalaxyFlowAction = (function() {
|
|
129279
|
+
|
|
129280
|
+
/**
|
|
129281
|
+
* Properties of a GalaxyFlowAction.
|
|
129282
|
+
* @memberof SyncAction.SyncActionValue
|
|
129283
|
+
* @interface IGalaxyFlowAction
|
|
129284
|
+
* @property {SyncAction.SyncActionValue.GalaxyFlowAction.GalaxyFlowActionType} type GalaxyFlowAction type
|
|
129285
|
+
*/
|
|
129286
|
+
|
|
129287
|
+
/**
|
|
129288
|
+
* Constructs a new GalaxyFlowAction.
|
|
129289
|
+
* @memberof SyncAction.SyncActionValue
|
|
129290
|
+
* @classdesc Represents a GalaxyFlowAction.
|
|
129291
|
+
* @implements IGalaxyFlowAction
|
|
129292
|
+
* @constructor
|
|
129293
|
+
* @param {SyncAction.SyncActionValue.IGalaxyFlowAction=} [properties] Properties to set
|
|
129294
|
+
*/
|
|
129295
|
+
function GalaxyFlowAction(properties) {
|
|
129296
|
+
if (properties)
|
|
129297
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
129298
|
+
if (properties[keys[i]] != null)
|
|
129299
|
+
this[keys[i]] = properties[keys[i]];
|
|
129300
|
+
}
|
|
129301
|
+
|
|
129302
|
+
/**
|
|
129303
|
+
* GalaxyFlowAction type.
|
|
129304
|
+
* @member {SyncAction.SyncActionValue.GalaxyFlowAction.GalaxyFlowActionType} type
|
|
129305
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129306
|
+
* @instance
|
|
129307
|
+
*/
|
|
129308
|
+
GalaxyFlowAction.prototype.type = 1;
|
|
129309
|
+
|
|
129310
|
+
/**
|
|
129311
|
+
* Creates a new GalaxyFlowAction instance using the specified properties.
|
|
129312
|
+
* @function create
|
|
129313
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129314
|
+
* @static
|
|
129315
|
+
* @param {SyncAction.SyncActionValue.IGalaxyFlowAction=} [properties] Properties to set
|
|
129316
|
+
* @returns {SyncAction.SyncActionValue.GalaxyFlowAction} GalaxyFlowAction instance
|
|
129317
|
+
*/
|
|
129318
|
+
GalaxyFlowAction.create = function create(properties) {
|
|
129319
|
+
return new GalaxyFlowAction(properties);
|
|
129320
|
+
};
|
|
129321
|
+
|
|
129322
|
+
/**
|
|
129323
|
+
* Encodes the specified GalaxyFlowAction message. Does not implicitly {@link SyncAction.SyncActionValue.GalaxyFlowAction.verify|verify} messages.
|
|
129324
|
+
* @function encode
|
|
129325
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129326
|
+
* @static
|
|
129327
|
+
* @param {SyncAction.SyncActionValue.IGalaxyFlowAction} message GalaxyFlowAction message or plain object to encode
|
|
129328
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129329
|
+
* @returns {$protobuf.Writer} Writer
|
|
129330
|
+
*/
|
|
129331
|
+
GalaxyFlowAction.encode = function encode(message, writer) {
|
|
129332
|
+
if (!writer)
|
|
129333
|
+
writer = $Writer.create();
|
|
129334
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type);
|
|
129335
|
+
return writer;
|
|
129336
|
+
};
|
|
129337
|
+
|
|
129338
|
+
/**
|
|
129339
|
+
* Encodes the specified GalaxyFlowAction message, length delimited. Does not implicitly {@link SyncAction.SyncActionValue.GalaxyFlowAction.verify|verify} messages.
|
|
129340
|
+
* @function encodeDelimited
|
|
129341
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129342
|
+
* @static
|
|
129343
|
+
* @param {SyncAction.SyncActionValue.IGalaxyFlowAction} message GalaxyFlowAction message or plain object to encode
|
|
129344
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
129345
|
+
* @returns {$protobuf.Writer} Writer
|
|
129346
|
+
*/
|
|
129347
|
+
GalaxyFlowAction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
129348
|
+
return this.encode(message, writer).ldelim();
|
|
129349
|
+
};
|
|
129350
|
+
|
|
129351
|
+
/**
|
|
129352
|
+
* Decodes a GalaxyFlowAction message from the specified reader or buffer.
|
|
129353
|
+
* @function decode
|
|
129354
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129355
|
+
* @static
|
|
129356
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129357
|
+
* @param {number} [length] Message length if known beforehand
|
|
129358
|
+
* @returns {SyncAction.SyncActionValue.GalaxyFlowAction} GalaxyFlowAction
|
|
129359
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129360
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129361
|
+
*/
|
|
129362
|
+
GalaxyFlowAction.decode = function decode(reader, length, error) {
|
|
129363
|
+
if (!(reader instanceof $Reader))
|
|
129364
|
+
reader = $Reader.create(reader);
|
|
129365
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SyncAction.SyncActionValue.GalaxyFlowAction();
|
|
129366
|
+
while (reader.pos < end) {
|
|
129367
|
+
var tag = reader.uint32();
|
|
129368
|
+
if (tag === error)
|
|
129369
|
+
break;
|
|
129370
|
+
switch (tag >>> 3) {
|
|
129371
|
+
case 1: {
|
|
129372
|
+
message.type = reader.int32();
|
|
129373
|
+
break;
|
|
129374
|
+
}
|
|
129375
|
+
default:
|
|
129376
|
+
reader.skipType(tag & 7);
|
|
129377
|
+
break;
|
|
129378
|
+
}
|
|
129379
|
+
}
|
|
129380
|
+
if (!message.hasOwnProperty("type"))
|
|
129381
|
+
throw $util.ProtocolError("missing required 'type'", { instance: message });
|
|
129382
|
+
return message;
|
|
129383
|
+
};
|
|
129384
|
+
|
|
129385
|
+
/**
|
|
129386
|
+
* Decodes a GalaxyFlowAction message from the specified reader or buffer, length delimited.
|
|
129387
|
+
* @function decodeDelimited
|
|
129388
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129389
|
+
* @static
|
|
129390
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
129391
|
+
* @returns {SyncAction.SyncActionValue.GalaxyFlowAction} GalaxyFlowAction
|
|
129392
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
129393
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
129394
|
+
*/
|
|
129395
|
+
GalaxyFlowAction.decodeDelimited = function decodeDelimited(reader) {
|
|
129396
|
+
if (!(reader instanceof $Reader))
|
|
129397
|
+
reader = new $Reader(reader);
|
|
129398
|
+
return this.decode(reader, reader.uint32());
|
|
129399
|
+
};
|
|
129400
|
+
|
|
129401
|
+
/**
|
|
129402
|
+
* Verifies a GalaxyFlowAction message.
|
|
129403
|
+
* @function verify
|
|
129404
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129405
|
+
* @static
|
|
129406
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
129407
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
129408
|
+
*/
|
|
129409
|
+
GalaxyFlowAction.verify = function verify(message) {
|
|
129410
|
+
if (typeof message !== "object" || message === null)
|
|
129411
|
+
return "object expected";
|
|
129412
|
+
switch (message.type) {
|
|
129413
|
+
default:
|
|
129414
|
+
return "type: enum value expected";
|
|
129415
|
+
case 1:
|
|
129416
|
+
break;
|
|
129417
|
+
}
|
|
129418
|
+
return null;
|
|
129419
|
+
};
|
|
129420
|
+
|
|
129421
|
+
/**
|
|
129422
|
+
* Creates a GalaxyFlowAction message from a plain object. Also converts values to their respective internal types.
|
|
129423
|
+
* @function fromObject
|
|
129424
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129425
|
+
* @static
|
|
129426
|
+
* @param {Object.<string,*>} object Plain object
|
|
129427
|
+
* @returns {SyncAction.SyncActionValue.GalaxyFlowAction} GalaxyFlowAction
|
|
129428
|
+
*/
|
|
129429
|
+
GalaxyFlowAction.fromObject = function fromObject(object) {
|
|
129430
|
+
if (object instanceof $root.SyncAction.SyncActionValue.GalaxyFlowAction)
|
|
129431
|
+
return object;
|
|
129432
|
+
var message = new $root.SyncAction.SyncActionValue.GalaxyFlowAction();
|
|
129433
|
+
switch (object.type) {
|
|
129434
|
+
default:
|
|
129435
|
+
if (typeof object.type === "number") {
|
|
129436
|
+
message.type = object.type;
|
|
129437
|
+
break;
|
|
129438
|
+
}
|
|
129439
|
+
break;
|
|
129440
|
+
case "LAUNCH":
|
|
129441
|
+
case 1:
|
|
129442
|
+
message.type = 1;
|
|
129443
|
+
break;
|
|
129444
|
+
}
|
|
129445
|
+
return message;
|
|
129446
|
+
};
|
|
129447
|
+
|
|
129448
|
+
/**
|
|
129449
|
+
* Creates a plain object from a GalaxyFlowAction message. Also converts values to other types if specified.
|
|
129450
|
+
* @function toObject
|
|
129451
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129452
|
+
* @static
|
|
129453
|
+
* @param {SyncAction.SyncActionValue.GalaxyFlowAction} message GalaxyFlowAction
|
|
129454
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
129455
|
+
* @returns {Object.<string,*>} Plain object
|
|
129456
|
+
*/
|
|
129457
|
+
GalaxyFlowAction.toObject = function toObject(message, options) {
|
|
129458
|
+
if (!options)
|
|
129459
|
+
options = {};
|
|
129460
|
+
var object = {};
|
|
129461
|
+
if (options.defaults)
|
|
129462
|
+
object.type = options.enums === String ? "LAUNCH" : 1;
|
|
129463
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
129464
|
+
object.type = options.enums === String ? $root.SyncAction.SyncActionValue.GalaxyFlowAction.GalaxyFlowActionType[message.type] === undefined ? message.type : $root.SyncAction.SyncActionValue.GalaxyFlowAction.GalaxyFlowActionType[message.type] : message.type;
|
|
129465
|
+
return object;
|
|
129466
|
+
};
|
|
129467
|
+
|
|
129468
|
+
/**
|
|
129469
|
+
* Converts this GalaxyFlowAction to JSON.
|
|
129470
|
+
* @function toJSON
|
|
129471
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129472
|
+
* @instance
|
|
129473
|
+
* @returns {Object.<string,*>} JSON object
|
|
129474
|
+
*/
|
|
129475
|
+
GalaxyFlowAction.prototype.toJSON = function toJSON() {
|
|
129476
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
129477
|
+
};
|
|
129478
|
+
|
|
129479
|
+
/**
|
|
129480
|
+
* Gets the default type url for GalaxyFlowAction
|
|
129481
|
+
* @function getTypeUrl
|
|
129482
|
+
* @memberof SyncAction.SyncActionValue.GalaxyFlowAction
|
|
129483
|
+
* @static
|
|
129484
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
129485
|
+
* @returns {string} The default type url
|
|
129486
|
+
*/
|
|
129487
|
+
GalaxyFlowAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
129488
|
+
if (typeUrlPrefix === undefined) {
|
|
129489
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
129490
|
+
}
|
|
129491
|
+
return typeUrlPrefix + "/SyncAction.SyncActionValue.GalaxyFlowAction";
|
|
129492
|
+
};
|
|
129493
|
+
|
|
129494
|
+
/**
|
|
129495
|
+
* GalaxyFlowActionType enum.
|
|
129496
|
+
* @name SyncAction.SyncActionValue.GalaxyFlowAction.GalaxyFlowActionType
|
|
129497
|
+
* @enum {number}
|
|
129498
|
+
* @property {number} LAUNCH=1 LAUNCH value
|
|
129499
|
+
*/
|
|
129500
|
+
GalaxyFlowAction.GalaxyFlowActionType = (function() {
|
|
129501
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
129502
|
+
values[valuesById[1] = "LAUNCH"] = 1;
|
|
129503
|
+
return values;
|
|
129504
|
+
})();
|
|
129505
|
+
|
|
129506
|
+
return GalaxyFlowAction;
|
|
129507
|
+
})();
|
|
129508
|
+
|
|
126545
129509
|
SyncActionValue.KeyExpiration = (function() {
|
|
126546
129510
|
|
|
126547
129511
|
/**
|
|
@@ -138670,6 +141634,7 @@ $root.DeviceCapabilities = (function() {
|
|
|
138670
141634
|
* @property {DeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel|null} [chatLockSupportLevel] DeviceCapabilities chatLockSupportLevel
|
|
138671
141635
|
* @property {DeviceCapabilities.DeviceCapabilities.ILIDMigration|null} [lidMigration] DeviceCapabilities lidMigration
|
|
138672
141636
|
* @property {DeviceCapabilities.DeviceCapabilities.IBusinessBroadcast|null} [businessBroadcast] DeviceCapabilities businessBroadcast
|
|
141637
|
+
* @property {DeviceCapabilities.DeviceCapabilities.IUserHasAvatar|null} [userHasAvatar] DeviceCapabilities userHasAvatar
|
|
138673
141638
|
*/
|
|
138674
141639
|
|
|
138675
141640
|
/**
|
|
@@ -138711,6 +141676,14 @@ $root.DeviceCapabilities = (function() {
|
|
|
138711
141676
|
*/
|
|
138712
141677
|
DeviceCapabilities.prototype.businessBroadcast = null;
|
|
138713
141678
|
|
|
141679
|
+
/**
|
|
141680
|
+
* DeviceCapabilities userHasAvatar.
|
|
141681
|
+
* @member {DeviceCapabilities.DeviceCapabilities.IUserHasAvatar|null|undefined} userHasAvatar
|
|
141682
|
+
* @memberof DeviceCapabilities.DeviceCapabilities
|
|
141683
|
+
* @instance
|
|
141684
|
+
*/
|
|
141685
|
+
DeviceCapabilities.prototype.userHasAvatar = null;
|
|
141686
|
+
|
|
138714
141687
|
/**
|
|
138715
141688
|
* Creates a new DeviceCapabilities instance using the specified properties.
|
|
138716
141689
|
* @function create
|
|
@@ -138741,6 +141714,8 @@ $root.DeviceCapabilities = (function() {
|
|
|
138741
141714
|
$root.DeviceCapabilities.DeviceCapabilities.LIDMigration.encode(message.lidMigration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
138742
141715
|
if (message.businessBroadcast != null && Object.hasOwnProperty.call(message, "businessBroadcast"))
|
|
138743
141716
|
$root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.encode(message.businessBroadcast, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
141717
|
+
if (message.userHasAvatar != null && Object.hasOwnProperty.call(message, "userHasAvatar"))
|
|
141718
|
+
$root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar.encode(message.userHasAvatar, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
138744
141719
|
return writer;
|
|
138745
141720
|
};
|
|
138746
141721
|
|
|
@@ -138789,6 +141764,10 @@ $root.DeviceCapabilities = (function() {
|
|
|
138789
141764
|
message.businessBroadcast = $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.decode(reader, reader.uint32());
|
|
138790
141765
|
break;
|
|
138791
141766
|
}
|
|
141767
|
+
case 4: {
|
|
141768
|
+
message.userHasAvatar = $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar.decode(reader, reader.uint32());
|
|
141769
|
+
break;
|
|
141770
|
+
}
|
|
138792
141771
|
default:
|
|
138793
141772
|
reader.skipType(tag & 7);
|
|
138794
141773
|
break;
|
|
@@ -138843,6 +141822,11 @@ $root.DeviceCapabilities = (function() {
|
|
|
138843
141822
|
if (error)
|
|
138844
141823
|
return "businessBroadcast." + error;
|
|
138845
141824
|
}
|
|
141825
|
+
if (message.userHasAvatar != null && message.hasOwnProperty("userHasAvatar")) {
|
|
141826
|
+
var error = $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar.verify(message.userHasAvatar);
|
|
141827
|
+
if (error)
|
|
141828
|
+
return "userHasAvatar." + error;
|
|
141829
|
+
}
|
|
138846
141830
|
return null;
|
|
138847
141831
|
};
|
|
138848
141832
|
|
|
@@ -138888,6 +141872,11 @@ $root.DeviceCapabilities = (function() {
|
|
|
138888
141872
|
throw TypeError(".DeviceCapabilities.DeviceCapabilities.businessBroadcast: object expected");
|
|
138889
141873
|
message.businessBroadcast = $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.fromObject(object.businessBroadcast);
|
|
138890
141874
|
}
|
|
141875
|
+
if (object.userHasAvatar != null) {
|
|
141876
|
+
if (typeof object.userHasAvatar !== "object")
|
|
141877
|
+
throw TypeError(".DeviceCapabilities.DeviceCapabilities.userHasAvatar: object expected");
|
|
141878
|
+
message.userHasAvatar = $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar.fromObject(object.userHasAvatar);
|
|
141879
|
+
}
|
|
138891
141880
|
return message;
|
|
138892
141881
|
};
|
|
138893
141882
|
|
|
@@ -138908,6 +141897,7 @@ $root.DeviceCapabilities = (function() {
|
|
|
138908
141897
|
object.chatLockSupportLevel = options.enums === String ? "NONE" : 0;
|
|
138909
141898
|
object.lidMigration = null;
|
|
138910
141899
|
object.businessBroadcast = null;
|
|
141900
|
+
object.userHasAvatar = null;
|
|
138911
141901
|
}
|
|
138912
141902
|
if (message.chatLockSupportLevel != null && message.hasOwnProperty("chatLockSupportLevel"))
|
|
138913
141903
|
object.chatLockSupportLevel = options.enums === String ? $root.DeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel[message.chatLockSupportLevel] === undefined ? message.chatLockSupportLevel : $root.DeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel[message.chatLockSupportLevel] : message.chatLockSupportLevel;
|
|
@@ -138915,6 +141905,8 @@ $root.DeviceCapabilities = (function() {
|
|
|
138915
141905
|
object.lidMigration = $root.DeviceCapabilities.DeviceCapabilities.LIDMigration.toObject(message.lidMigration, options);
|
|
138916
141906
|
if (message.businessBroadcast != null && message.hasOwnProperty("businessBroadcast"))
|
|
138917
141907
|
object.businessBroadcast = $root.DeviceCapabilities.DeviceCapabilities.BusinessBroadcast.toObject(message.businessBroadcast, options);
|
|
141908
|
+
if (message.userHasAvatar != null && message.hasOwnProperty("userHasAvatar"))
|
|
141909
|
+
object.userHasAvatar = $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar.toObject(message.userHasAvatar, options);
|
|
138918
141910
|
return object;
|
|
138919
141911
|
};
|
|
138920
141912
|
|
|
@@ -139384,6 +142376,211 @@ $root.DeviceCapabilities = (function() {
|
|
|
139384
142376
|
return LIDMigration;
|
|
139385
142377
|
})();
|
|
139386
142378
|
|
|
142379
|
+
DeviceCapabilities.UserHasAvatar = (function() {
|
|
142380
|
+
|
|
142381
|
+
/**
|
|
142382
|
+
* Properties of a UserHasAvatar.
|
|
142383
|
+
* @memberof DeviceCapabilities.DeviceCapabilities
|
|
142384
|
+
* @interface IUserHasAvatar
|
|
142385
|
+
* @property {boolean|null} [userHasAvatar] UserHasAvatar userHasAvatar
|
|
142386
|
+
*/
|
|
142387
|
+
|
|
142388
|
+
/**
|
|
142389
|
+
* Constructs a new UserHasAvatar.
|
|
142390
|
+
* @memberof DeviceCapabilities.DeviceCapabilities
|
|
142391
|
+
* @classdesc Represents a UserHasAvatar.
|
|
142392
|
+
* @implements IUserHasAvatar
|
|
142393
|
+
* @constructor
|
|
142394
|
+
* @param {DeviceCapabilities.DeviceCapabilities.IUserHasAvatar=} [properties] Properties to set
|
|
142395
|
+
*/
|
|
142396
|
+
function UserHasAvatar(properties) {
|
|
142397
|
+
if (properties)
|
|
142398
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
142399
|
+
if (properties[keys[i]] != null)
|
|
142400
|
+
this[keys[i]] = properties[keys[i]];
|
|
142401
|
+
}
|
|
142402
|
+
|
|
142403
|
+
/**
|
|
142404
|
+
* UserHasAvatar userHasAvatar.
|
|
142405
|
+
* @member {boolean} userHasAvatar
|
|
142406
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142407
|
+
* @instance
|
|
142408
|
+
*/
|
|
142409
|
+
UserHasAvatar.prototype.userHasAvatar = false;
|
|
142410
|
+
|
|
142411
|
+
/**
|
|
142412
|
+
* Creates a new UserHasAvatar instance using the specified properties.
|
|
142413
|
+
* @function create
|
|
142414
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142415
|
+
* @static
|
|
142416
|
+
* @param {DeviceCapabilities.DeviceCapabilities.IUserHasAvatar=} [properties] Properties to set
|
|
142417
|
+
* @returns {DeviceCapabilities.DeviceCapabilities.UserHasAvatar} UserHasAvatar instance
|
|
142418
|
+
*/
|
|
142419
|
+
UserHasAvatar.create = function create(properties) {
|
|
142420
|
+
return new UserHasAvatar(properties);
|
|
142421
|
+
};
|
|
142422
|
+
|
|
142423
|
+
/**
|
|
142424
|
+
* Encodes the specified UserHasAvatar message. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.UserHasAvatar.verify|verify} messages.
|
|
142425
|
+
* @function encode
|
|
142426
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142427
|
+
* @static
|
|
142428
|
+
* @param {DeviceCapabilities.DeviceCapabilities.IUserHasAvatar} message UserHasAvatar message or plain object to encode
|
|
142429
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142430
|
+
* @returns {$protobuf.Writer} Writer
|
|
142431
|
+
*/
|
|
142432
|
+
UserHasAvatar.encode = function encode(message, writer) {
|
|
142433
|
+
if (!writer)
|
|
142434
|
+
writer = $Writer.create();
|
|
142435
|
+
if (message.userHasAvatar != null && Object.hasOwnProperty.call(message, "userHasAvatar"))
|
|
142436
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.userHasAvatar);
|
|
142437
|
+
return writer;
|
|
142438
|
+
};
|
|
142439
|
+
|
|
142440
|
+
/**
|
|
142441
|
+
* Encodes the specified UserHasAvatar message, length delimited. Does not implicitly {@link DeviceCapabilities.DeviceCapabilities.UserHasAvatar.verify|verify} messages.
|
|
142442
|
+
* @function encodeDelimited
|
|
142443
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142444
|
+
* @static
|
|
142445
|
+
* @param {DeviceCapabilities.DeviceCapabilities.IUserHasAvatar} message UserHasAvatar message or plain object to encode
|
|
142446
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142447
|
+
* @returns {$protobuf.Writer} Writer
|
|
142448
|
+
*/
|
|
142449
|
+
UserHasAvatar.encodeDelimited = function encodeDelimited(message, writer) {
|
|
142450
|
+
return this.encode(message, writer).ldelim();
|
|
142451
|
+
};
|
|
142452
|
+
|
|
142453
|
+
/**
|
|
142454
|
+
* Decodes a UserHasAvatar message from the specified reader or buffer.
|
|
142455
|
+
* @function decode
|
|
142456
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142457
|
+
* @static
|
|
142458
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142459
|
+
* @param {number} [length] Message length if known beforehand
|
|
142460
|
+
* @returns {DeviceCapabilities.DeviceCapabilities.UserHasAvatar} UserHasAvatar
|
|
142461
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142462
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142463
|
+
*/
|
|
142464
|
+
UserHasAvatar.decode = function decode(reader, length, error) {
|
|
142465
|
+
if (!(reader instanceof $Reader))
|
|
142466
|
+
reader = $Reader.create(reader);
|
|
142467
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar();
|
|
142468
|
+
while (reader.pos < end) {
|
|
142469
|
+
var tag = reader.uint32();
|
|
142470
|
+
if (tag === error)
|
|
142471
|
+
break;
|
|
142472
|
+
switch (tag >>> 3) {
|
|
142473
|
+
case 1: {
|
|
142474
|
+
message.userHasAvatar = reader.bool();
|
|
142475
|
+
break;
|
|
142476
|
+
}
|
|
142477
|
+
default:
|
|
142478
|
+
reader.skipType(tag & 7);
|
|
142479
|
+
break;
|
|
142480
|
+
}
|
|
142481
|
+
}
|
|
142482
|
+
return message;
|
|
142483
|
+
};
|
|
142484
|
+
|
|
142485
|
+
/**
|
|
142486
|
+
* Decodes a UserHasAvatar message from the specified reader or buffer, length delimited.
|
|
142487
|
+
* @function decodeDelimited
|
|
142488
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142489
|
+
* @static
|
|
142490
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142491
|
+
* @returns {DeviceCapabilities.DeviceCapabilities.UserHasAvatar} UserHasAvatar
|
|
142492
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142493
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142494
|
+
*/
|
|
142495
|
+
UserHasAvatar.decodeDelimited = function decodeDelimited(reader) {
|
|
142496
|
+
if (!(reader instanceof $Reader))
|
|
142497
|
+
reader = new $Reader(reader);
|
|
142498
|
+
return this.decode(reader, reader.uint32());
|
|
142499
|
+
};
|
|
142500
|
+
|
|
142501
|
+
/**
|
|
142502
|
+
* Verifies a UserHasAvatar message.
|
|
142503
|
+
* @function verify
|
|
142504
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142505
|
+
* @static
|
|
142506
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
142507
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
142508
|
+
*/
|
|
142509
|
+
UserHasAvatar.verify = function verify(message) {
|
|
142510
|
+
if (typeof message !== "object" || message === null)
|
|
142511
|
+
return "object expected";
|
|
142512
|
+
if (message.userHasAvatar != null && message.hasOwnProperty("userHasAvatar"))
|
|
142513
|
+
if (typeof message.userHasAvatar !== "boolean")
|
|
142514
|
+
return "userHasAvatar: boolean expected";
|
|
142515
|
+
return null;
|
|
142516
|
+
};
|
|
142517
|
+
|
|
142518
|
+
/**
|
|
142519
|
+
* Creates a UserHasAvatar message from a plain object. Also converts values to their respective internal types.
|
|
142520
|
+
* @function fromObject
|
|
142521
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142522
|
+
* @static
|
|
142523
|
+
* @param {Object.<string,*>} object Plain object
|
|
142524
|
+
* @returns {DeviceCapabilities.DeviceCapabilities.UserHasAvatar} UserHasAvatar
|
|
142525
|
+
*/
|
|
142526
|
+
UserHasAvatar.fromObject = function fromObject(object) {
|
|
142527
|
+
if (object instanceof $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar)
|
|
142528
|
+
return object;
|
|
142529
|
+
var message = new $root.DeviceCapabilities.DeviceCapabilities.UserHasAvatar();
|
|
142530
|
+
if (object.userHasAvatar != null)
|
|
142531
|
+
message.userHasAvatar = Boolean(object.userHasAvatar);
|
|
142532
|
+
return message;
|
|
142533
|
+
};
|
|
142534
|
+
|
|
142535
|
+
/**
|
|
142536
|
+
* Creates a plain object from a UserHasAvatar message. Also converts values to other types if specified.
|
|
142537
|
+
* @function toObject
|
|
142538
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142539
|
+
* @static
|
|
142540
|
+
* @param {DeviceCapabilities.DeviceCapabilities.UserHasAvatar} message UserHasAvatar
|
|
142541
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
142542
|
+
* @returns {Object.<string,*>} Plain object
|
|
142543
|
+
*/
|
|
142544
|
+
UserHasAvatar.toObject = function toObject(message, options) {
|
|
142545
|
+
if (!options)
|
|
142546
|
+
options = {};
|
|
142547
|
+
var object = {};
|
|
142548
|
+
if (options.defaults)
|
|
142549
|
+
object.userHasAvatar = false;
|
|
142550
|
+
if (message.userHasAvatar != null && message.hasOwnProperty("userHasAvatar"))
|
|
142551
|
+
object.userHasAvatar = message.userHasAvatar;
|
|
142552
|
+
return object;
|
|
142553
|
+
};
|
|
142554
|
+
|
|
142555
|
+
/**
|
|
142556
|
+
* Converts this UserHasAvatar to JSON.
|
|
142557
|
+
* @function toJSON
|
|
142558
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142559
|
+
* @instance
|
|
142560
|
+
* @returns {Object.<string,*>} JSON object
|
|
142561
|
+
*/
|
|
142562
|
+
UserHasAvatar.prototype.toJSON = function toJSON() {
|
|
142563
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
142564
|
+
};
|
|
142565
|
+
|
|
142566
|
+
/**
|
|
142567
|
+
* Gets the default type url for UserHasAvatar
|
|
142568
|
+
* @function getTypeUrl
|
|
142569
|
+
* @memberof DeviceCapabilities.DeviceCapabilities.UserHasAvatar
|
|
142570
|
+
* @static
|
|
142571
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
142572
|
+
* @returns {string} The default type url
|
|
142573
|
+
*/
|
|
142574
|
+
UserHasAvatar.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
142575
|
+
if (typeUrlPrefix === undefined) {
|
|
142576
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
142577
|
+
}
|
|
142578
|
+
return typeUrlPrefix + "/DeviceCapabilities.DeviceCapabilities.UserHasAvatar";
|
|
142579
|
+
};
|
|
142580
|
+
|
|
142581
|
+
return UserHasAvatar;
|
|
142582
|
+
})();
|
|
142583
|
+
|
|
139387
142584
|
return DeviceCapabilities;
|
|
139388
142585
|
})();
|
|
139389
142586
|
|