@wppconnect/wa-proto 2.3000.1051853749 → 2.3000.1051891131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WAProto.proto +15 -1
- package/dist/index.d.ts +164 -0
- package/dist/index.js +558 -1
- package/package.json +1 -1
package/WAProto.proto
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package waproto;
|
|
3
3
|
|
|
4
|
-
/// WhatsApp Version: 2.3000.
|
|
4
|
+
/// WhatsApp Version: 2.3000.1051891131
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -1580,6 +1580,7 @@ message ContextInfo {
|
|
|
1580
1580
|
repeated uint32 experienceIds = 82 [packed=true];
|
|
1581
1581
|
optional string partnerDeepLinkToken = 83;
|
|
1582
1582
|
optional uint32 sourceExperienceId = 84;
|
|
1583
|
+
repeated uint32 sourceExperienceIds = 85 [packed=true];
|
|
1583
1584
|
message AdReplyInfo {
|
|
1584
1585
|
optional string advertiserName = 1;
|
|
1585
1586
|
optional MediaType mediaType = 2;
|
|
@@ -3673,6 +3674,14 @@ message Message {
|
|
|
3673
3674
|
optional int64 startTimeInMs = 1;
|
|
3674
3675
|
optional int64 endTimeInMs = 2;
|
|
3675
3676
|
optional string text = 3;
|
|
3677
|
+
repeated WordOffset wordOffsets = 4;
|
|
3678
|
+
message WordOffset {
|
|
3679
|
+
optional int32 startIndex = 1;
|
|
3680
|
+
optional int32 endIndex = 2;
|
|
3681
|
+
optional int64 startOffsetMs = 3;
|
|
3682
|
+
optional int64 endOffsetMs = 4;
|
|
3683
|
+
}
|
|
3684
|
+
|
|
3676
3685
|
}
|
|
3677
3686
|
|
|
3678
3687
|
}
|
|
@@ -3861,6 +3870,11 @@ message Message {
|
|
|
3861
3870
|
optional int64 oldestMsgTimestampMs = 5;
|
|
3862
3871
|
optional string accountLid = 6;
|
|
3863
3872
|
optional bool supportInlineResponse = 7;
|
|
3873
|
+
optional Mode mode = 8;
|
|
3874
|
+
enum Mode {
|
|
3875
|
+
MODE_UNSPECIFIED = 0;
|
|
3876
|
+
INITIAL_REVERSE_HISTORY = 1;
|
|
3877
|
+
}
|
|
3864
3878
|
}
|
|
3865
3879
|
|
|
3866
3880
|
message PlaceholderMessageResendRequest {
|
package/dist/index.d.ts
CHANGED
|
@@ -20270,6 +20270,9 @@ export namespace waproto {
|
|
|
20270
20270
|
/** ContextInfo sourceExperienceId. */
|
|
20271
20271
|
sourceExperienceId?: (number|null);
|
|
20272
20272
|
|
|
20273
|
+
/** ContextInfo sourceExperienceIds. */
|
|
20274
|
+
sourceExperienceIds: number[];
|
|
20275
|
+
|
|
20273
20276
|
/**
|
|
20274
20277
|
* Creates a new ContextInfo instance using the specified properties.
|
|
20275
20278
|
* @param [properties] Properties to set
|
|
@@ -20555,6 +20558,9 @@ export namespace waproto {
|
|
|
20555
20558
|
/** ContextInfo sourceExperienceId */
|
|
20556
20559
|
sourceExperienceId?: (number|null);
|
|
20557
20560
|
|
|
20561
|
+
/** ContextInfo sourceExperienceIds */
|
|
20562
|
+
sourceExperienceIds?: (number[]|null);
|
|
20563
|
+
|
|
20558
20564
|
/** Unknown fields preserved while decoding when enabled */
|
|
20559
20565
|
$unknowns?: Uint8Array[];
|
|
20560
20566
|
}
|
|
@@ -20628,6 +20634,7 @@ export namespace waproto {
|
|
|
20628
20634
|
experienceIds?: number[]|null;
|
|
20629
20635
|
partnerDeepLinkToken?: string|null;
|
|
20630
20636
|
sourceExperienceId?: number|null;
|
|
20637
|
+
sourceExperienceIds?: number[]|null;
|
|
20631
20638
|
$unknowns?: Uint8Array[];
|
|
20632
20639
|
};
|
|
20633
20640
|
|
|
@@ -49786,6 +49793,9 @@ export namespace waproto {
|
|
|
49786
49793
|
/** Line text. */
|
|
49787
49794
|
text?: (string|null);
|
|
49788
49795
|
|
|
49796
|
+
/** Line wordOffsets. */
|
|
49797
|
+
wordOffsets: waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties[];
|
|
49798
|
+
|
|
49789
49799
|
/**
|
|
49790
49800
|
* Creates a new Line instance using the specified properties.
|
|
49791
49801
|
* @param [properties] Properties to set
|
|
@@ -49879,12 +49889,150 @@ export namespace waproto {
|
|
|
49879
49889
|
/** Line text */
|
|
49880
49890
|
text?: (string|null);
|
|
49881
49891
|
|
|
49892
|
+
/** Line wordOffsets */
|
|
49893
|
+
wordOffsets?: (waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties[]|null);
|
|
49894
|
+
|
|
49882
49895
|
/** Unknown fields preserved while decoding when enabled */
|
|
49883
49896
|
$unknowns?: Uint8Array[];
|
|
49884
49897
|
}
|
|
49885
49898
|
|
|
49886
49899
|
/** Shape of a Line. */
|
|
49887
49900
|
type $Shape = waproto.Message.MusicMessage.Lyrics.Line.$Properties;
|
|
49901
|
+
|
|
49902
|
+
/**
|
|
49903
|
+
* Properties of a WordOffset.
|
|
49904
|
+
* @deprecated Use waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties instead.
|
|
49905
|
+
*/
|
|
49906
|
+
interface IWordOffset extends waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties {
|
|
49907
|
+
}
|
|
49908
|
+
|
|
49909
|
+
/** Represents a WordOffset. */
|
|
49910
|
+
class WordOffset {
|
|
49911
|
+
|
|
49912
|
+
/**
|
|
49913
|
+
* Constructs a new WordOffset.
|
|
49914
|
+
* @param [properties] Properties to set
|
|
49915
|
+
*/
|
|
49916
|
+
constructor(properties?: waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties);
|
|
49917
|
+
|
|
49918
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
49919
|
+
$unknowns?: Uint8Array[];
|
|
49920
|
+
|
|
49921
|
+
/** WordOffset startIndex. */
|
|
49922
|
+
startIndex?: (number|null);
|
|
49923
|
+
|
|
49924
|
+
/** WordOffset endIndex. */
|
|
49925
|
+
endIndex?: (number|null);
|
|
49926
|
+
|
|
49927
|
+
/** WordOffset startOffsetMs. */
|
|
49928
|
+
startOffsetMs?: (number|Long|null);
|
|
49929
|
+
|
|
49930
|
+
/** WordOffset endOffsetMs. */
|
|
49931
|
+
endOffsetMs?: (number|Long|null);
|
|
49932
|
+
|
|
49933
|
+
/**
|
|
49934
|
+
* Creates a new WordOffset instance using the specified properties.
|
|
49935
|
+
* @param [properties] Properties to set
|
|
49936
|
+
* @returns WordOffset instance
|
|
49937
|
+
*/
|
|
49938
|
+
static create(properties: waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape): waproto.Message.MusicMessage.Lyrics.Line.WordOffset & waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape;
|
|
49939
|
+
static create(properties?: waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties): waproto.Message.MusicMessage.Lyrics.Line.WordOffset;
|
|
49940
|
+
|
|
49941
|
+
/**
|
|
49942
|
+
* Encodes the specified WordOffset message. Does not implicitly {@link waproto.Message.MusicMessage.Lyrics.Line.WordOffset.verify|verify} messages.
|
|
49943
|
+
* @param message WordOffset message or plain object to encode
|
|
49944
|
+
* @param [writer] Writer to encode to
|
|
49945
|
+
* @returns Writer
|
|
49946
|
+
*/
|
|
49947
|
+
static encode(message: waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
49948
|
+
|
|
49949
|
+
/**
|
|
49950
|
+
* Encodes the specified WordOffset message, length delimited. Does not implicitly {@link waproto.Message.MusicMessage.Lyrics.Line.WordOffset.verify|verify} messages.
|
|
49951
|
+
* @param message WordOffset message or plain object to encode
|
|
49952
|
+
* @param [writer] Writer to encode to
|
|
49953
|
+
* @returns Writer
|
|
49954
|
+
*/
|
|
49955
|
+
static encodeDelimited(message: waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
49956
|
+
|
|
49957
|
+
/**
|
|
49958
|
+
* Decodes a WordOffset message from the specified reader or buffer.
|
|
49959
|
+
* @param reader Reader or buffer to decode from
|
|
49960
|
+
* @param [length] Message length if known beforehand
|
|
49961
|
+
* @returns {waproto.Message.MusicMessage.Lyrics.Line.WordOffset & waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape} WordOffset
|
|
49962
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49963
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49964
|
+
*/
|
|
49965
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.Message.MusicMessage.Lyrics.Line.WordOffset & waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape;
|
|
49966
|
+
|
|
49967
|
+
/**
|
|
49968
|
+
* Decodes a WordOffset message from the specified reader or buffer, length delimited.
|
|
49969
|
+
* @param reader Reader or buffer to decode from
|
|
49970
|
+
* @returns {waproto.Message.MusicMessage.Lyrics.Line.WordOffset & waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape} WordOffset
|
|
49971
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49972
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49973
|
+
*/
|
|
49974
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.Message.MusicMessage.Lyrics.Line.WordOffset & waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape;
|
|
49975
|
+
|
|
49976
|
+
/**
|
|
49977
|
+
* Verifies a WordOffset message.
|
|
49978
|
+
* @param message Plain object to verify
|
|
49979
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
49980
|
+
*/
|
|
49981
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
49982
|
+
|
|
49983
|
+
/**
|
|
49984
|
+
* Creates a WordOffset message from a plain object. Also converts values to their respective internal types.
|
|
49985
|
+
* @param object Plain object
|
|
49986
|
+
* @returns WordOffset
|
|
49987
|
+
*/
|
|
49988
|
+
static fromObject(object: { [k: string]: any }): waproto.Message.MusicMessage.Lyrics.Line.WordOffset;
|
|
49989
|
+
|
|
49990
|
+
/**
|
|
49991
|
+
* Creates a plain object from a WordOffset message. Also converts values to other types if specified.
|
|
49992
|
+
* @param message WordOffset
|
|
49993
|
+
* @param [options] Conversion options
|
|
49994
|
+
* @returns Plain object
|
|
49995
|
+
*/
|
|
49996
|
+
static toObject(message: waproto.Message.MusicMessage.Lyrics.Line.WordOffset, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
49997
|
+
|
|
49998
|
+
/**
|
|
49999
|
+
* Converts this WordOffset to JSON.
|
|
50000
|
+
* @returns JSON object
|
|
50001
|
+
*/
|
|
50002
|
+
toJSON(): { [k: string]: any };
|
|
50003
|
+
|
|
50004
|
+
/**
|
|
50005
|
+
* Gets the type url for WordOffset
|
|
50006
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
50007
|
+
* @returns The type url
|
|
50008
|
+
*/
|
|
50009
|
+
static getTypeUrl(prefix?: string): string;
|
|
50010
|
+
}
|
|
50011
|
+
|
|
50012
|
+
namespace WordOffset {
|
|
50013
|
+
|
|
50014
|
+
/** Properties of a WordOffset. */
|
|
50015
|
+
interface $Properties {
|
|
50016
|
+
|
|
50017
|
+
/** WordOffset startIndex */
|
|
50018
|
+
startIndex?: (number|null);
|
|
50019
|
+
|
|
50020
|
+
/** WordOffset endIndex */
|
|
50021
|
+
endIndex?: (number|null);
|
|
50022
|
+
|
|
50023
|
+
/** WordOffset startOffsetMs */
|
|
50024
|
+
startOffsetMs?: (number|Long|null);
|
|
50025
|
+
|
|
50026
|
+
/** WordOffset endOffsetMs */
|
|
50027
|
+
endOffsetMs?: (number|Long|null);
|
|
50028
|
+
|
|
50029
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
50030
|
+
$unknowns?: Uint8Array[];
|
|
50031
|
+
}
|
|
50032
|
+
|
|
50033
|
+
/** Shape of a WordOffset. */
|
|
50034
|
+
type $Shape = waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties;
|
|
50035
|
+
}
|
|
49888
50036
|
}
|
|
49889
50037
|
}
|
|
49890
50038
|
|
|
@@ -52435,6 +52583,9 @@ export namespace waproto {
|
|
|
52435
52583
|
/** HistorySyncOnDemandRequest supportInlineResponse. */
|
|
52436
52584
|
supportInlineResponse?: (boolean|null);
|
|
52437
52585
|
|
|
52586
|
+
/** HistorySyncOnDemandRequest mode. */
|
|
52587
|
+
mode?: (waproto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest.Mode|null);
|
|
52588
|
+
|
|
52438
52589
|
/**
|
|
52439
52590
|
* Creates a new HistorySyncOnDemandRequest instance using the specified properties.
|
|
52440
52591
|
* @param [properties] Properties to set
|
|
@@ -52540,12 +52691,25 @@ export namespace waproto {
|
|
|
52540
52691
|
/** HistorySyncOnDemandRequest supportInlineResponse */
|
|
52541
52692
|
supportInlineResponse?: (boolean|null);
|
|
52542
52693
|
|
|
52694
|
+
/** HistorySyncOnDemandRequest mode */
|
|
52695
|
+
mode?: (waproto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest.Mode|null);
|
|
52696
|
+
|
|
52543
52697
|
/** Unknown fields preserved while decoding when enabled */
|
|
52544
52698
|
$unknowns?: Uint8Array[];
|
|
52545
52699
|
}
|
|
52546
52700
|
|
|
52547
52701
|
/** Shape of a HistorySyncOnDemandRequest. */
|
|
52548
52702
|
type $Shape = waproto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest.$Properties;
|
|
52703
|
+
|
|
52704
|
+
/** Mode enum. */
|
|
52705
|
+
enum Mode {
|
|
52706
|
+
|
|
52707
|
+
/** MODE_UNSPECIFIED value */
|
|
52708
|
+
MODE_UNSPECIFIED = 0,
|
|
52709
|
+
|
|
52710
|
+
/** INITIAL_REVERSE_HISTORY value */
|
|
52711
|
+
INITIAL_REVERSE_HISTORY = 1
|
|
52712
|
+
}
|
|
52549
52713
|
}
|
|
52550
52714
|
|
|
52551
52715
|
/**
|
package/dist/index.js
CHANGED
|
@@ -57432,6 +57432,7 @@ $root.waproto = (function() {
|
|
|
57432
57432
|
* @property {Array.<number>|null} [experienceIds] ContextInfo experienceIds
|
|
57433
57433
|
* @property {string|null} [partnerDeepLinkToken] ContextInfo partnerDeepLinkToken
|
|
57434
57434
|
* @property {number|null} [sourceExperienceId] ContextInfo sourceExperienceId
|
|
57435
|
+
* @property {Array.<number>|null} [sourceExperienceIds] ContextInfo sourceExperienceIds
|
|
57435
57436
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
57436
57437
|
*/
|
|
57437
57438
|
|
|
@@ -57513,6 +57514,7 @@ $root.waproto = (function() {
|
|
|
57513
57514
|
* experienceIds?: Array.<number>|null;
|
|
57514
57515
|
* partnerDeepLinkToken?: string|null;
|
|
57515
57516
|
* sourceExperienceId?: number|null;
|
|
57517
|
+
* sourceExperienceIds?: Array.<number>|null;
|
|
57516
57518
|
* $unknowns?: Array.<Uint8Array>;
|
|
57517
57519
|
* }} waproto.ContextInfo.$Shape
|
|
57518
57520
|
*/
|
|
@@ -57530,6 +57532,7 @@ $root.waproto = (function() {
|
|
|
57530
57532
|
this.groupMentions = [];
|
|
57531
57533
|
this.statusAttributions = [];
|
|
57532
57534
|
this.experienceIds = [];
|
|
57535
|
+
this.sourceExperienceIds = [];
|
|
57533
57536
|
if (properties)
|
|
57534
57537
|
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57535
57538
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
@@ -58072,6 +58075,14 @@ $root.waproto = (function() {
|
|
|
58072
58075
|
*/
|
|
58073
58076
|
ContextInfo.prototype.sourceExperienceId = null;
|
|
58074
58077
|
|
|
58078
|
+
/**
|
|
58079
|
+
* ContextInfo sourceExperienceIds.
|
|
58080
|
+
* @member {Array.<number>} sourceExperienceIds
|
|
58081
|
+
* @memberof waproto.ContextInfo
|
|
58082
|
+
* @instance
|
|
58083
|
+
*/
|
|
58084
|
+
ContextInfo.prototype.sourceExperienceIds = $util.emptyArray;
|
|
58085
|
+
|
|
58075
58086
|
// OneOf field names bound to virtual getters and setters
|
|
58076
58087
|
var $oneOfFields;
|
|
58077
58088
|
|
|
@@ -58622,6 +58633,8 @@ $root.waproto = (function() {
|
|
|
58622
58633
|
writer.uint32(/* id 83, wireType 2 =*/666).string(message.partnerDeepLinkToken);
|
|
58623
58634
|
if (message.sourceExperienceId != null && $Object.hasOwnProperty.call(message, "sourceExperienceId"))
|
|
58624
58635
|
writer.uint32(/* id 84, wireType 0 =*/672).uint32(message.sourceExperienceId);
|
|
58636
|
+
if (message.sourceExperienceIds != null && message.sourceExperienceIds.length)
|
|
58637
|
+
writer.uint32(/* id 85, wireType 2 =*/682).uint32s(message.sourceExperienceIds);
|
|
58625
58638
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
58626
58639
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
58627
58640
|
writer.raw(message.$unknowns[i]);
|
|
@@ -59158,6 +59171,20 @@ $root.waproto = (function() {
|
|
|
59158
59171
|
message._sourceExperienceId = "sourceExperienceId";
|
|
59159
59172
|
continue;
|
|
59160
59173
|
}
|
|
59174
|
+
case 85: {
|
|
59175
|
+
if (wireType === 2) {
|
|
59176
|
+
if (!(message.sourceExperienceIds && message.sourceExperienceIds.length))
|
|
59177
|
+
message.sourceExperienceIds = [];
|
|
59178
|
+
reader.uint32s(message.sourceExperienceIds);
|
|
59179
|
+
continue;
|
|
59180
|
+
}
|
|
59181
|
+
if (wireType !== 0)
|
|
59182
|
+
break;
|
|
59183
|
+
if (!(message.sourceExperienceIds && message.sourceExperienceIds.length))
|
|
59184
|
+
message.sourceExperienceIds = [];
|
|
59185
|
+
message.sourceExperienceIds.push(reader.uint32());
|
|
59186
|
+
continue;
|
|
59187
|
+
}
|
|
59161
59188
|
}
|
|
59162
59189
|
reader.skipType(wireType, _depth, tag);
|
|
59163
59190
|
if (!reader.discardUnknown) {
|
|
@@ -59620,6 +59647,13 @@ $root.waproto = (function() {
|
|
|
59620
59647
|
if (!$util.isInteger(message.sourceExperienceId))
|
|
59621
59648
|
return "sourceExperienceId: integer expected";
|
|
59622
59649
|
}
|
|
59650
|
+
if (message.sourceExperienceIds != null && $Object.hasOwnProperty.call(message, "sourceExperienceIds")) {
|
|
59651
|
+
if (!$Array.isArray(message.sourceExperienceIds))
|
|
59652
|
+
return "sourceExperienceIds: array expected";
|
|
59653
|
+
for (var i = 0; i < message.sourceExperienceIds.length; ++i)
|
|
59654
|
+
if (!$util.isInteger(message.sourceExperienceIds[i]))
|
|
59655
|
+
return "sourceExperienceIds: integer[] expected";
|
|
59656
|
+
}
|
|
59623
59657
|
return null;
|
|
59624
59658
|
};
|
|
59625
59659
|
|
|
@@ -60041,6 +60075,13 @@ $root.waproto = (function() {
|
|
|
60041
60075
|
message.partnerDeepLinkToken = $String(object.partnerDeepLinkToken);
|
|
60042
60076
|
if (object.sourceExperienceId != null)
|
|
60043
60077
|
message.sourceExperienceId = object.sourceExperienceId >>> 0;
|
|
60078
|
+
if (object.sourceExperienceIds) {
|
|
60079
|
+
if (!$Array.isArray(object.sourceExperienceIds))
|
|
60080
|
+
throw $TypeError(".waproto.ContextInfo.sourceExperienceIds: array expected");
|
|
60081
|
+
message.sourceExperienceIds = $Array(object.sourceExperienceIds.length);
|
|
60082
|
+
for (var i = 0; i < object.sourceExperienceIds.length; ++i)
|
|
60083
|
+
message.sourceExperienceIds[i] = object.sourceExperienceIds[i] >>> 0;
|
|
60084
|
+
}
|
|
60044
60085
|
return message;
|
|
60045
60086
|
};
|
|
60046
60087
|
|
|
@@ -60066,6 +60107,7 @@ $root.waproto = (function() {
|
|
|
60066
60107
|
object.groupMentions = [];
|
|
60067
60108
|
object.statusAttributions = [];
|
|
60068
60109
|
object.experienceIds = [];
|
|
60110
|
+
object.sourceExperienceIds = [];
|
|
60069
60111
|
}
|
|
60070
60112
|
if (message.stanzaId != null && $Object.hasOwnProperty.call(message, "stanzaId"))
|
|
60071
60113
|
object.stanzaId = message.stanzaId;
|
|
@@ -60218,6 +60260,11 @@ $root.waproto = (function() {
|
|
|
60218
60260
|
object.partnerDeepLinkToken = message.partnerDeepLinkToken;
|
|
60219
60261
|
if (message.sourceExperienceId != null && $Object.hasOwnProperty.call(message, "sourceExperienceId"))
|
|
60220
60262
|
object.sourceExperienceId = message.sourceExperienceId;
|
|
60263
|
+
if (message.sourceExperienceIds && message.sourceExperienceIds.length) {
|
|
60264
|
+
object.sourceExperienceIds = $Array(message.sourceExperienceIds.length);
|
|
60265
|
+
for (var j = 0; j < message.sourceExperienceIds.length; ++j)
|
|
60266
|
+
object.sourceExperienceIds[j] = message.sourceExperienceIds[j];
|
|
60267
|
+
}
|
|
60221
60268
|
return object;
|
|
60222
60269
|
};
|
|
60223
60270
|
|
|
@@ -149599,6 +149646,7 @@ $root.waproto = (function() {
|
|
|
149599
149646
|
* @property {number|Long|null} [startTimeInMs] Line startTimeInMs
|
|
149600
149647
|
* @property {number|Long|null} [endTimeInMs] Line endTimeInMs
|
|
149601
149648
|
* @property {string|null} [text] Line text
|
|
149649
|
+
* @property {Array.<waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties>|null} [wordOffsets] Line wordOffsets
|
|
149602
149650
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
149603
149651
|
*/
|
|
149604
149652
|
|
|
@@ -149624,6 +149672,7 @@ $root.waproto = (function() {
|
|
|
149624
149672
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
149625
149673
|
*/
|
|
149626
149674
|
var Line = function (properties) {
|
|
149675
|
+
this.wordOffsets = [];
|
|
149627
149676
|
if (properties)
|
|
149628
149677
|
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
149629
149678
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
@@ -149654,6 +149703,14 @@ $root.waproto = (function() {
|
|
|
149654
149703
|
*/
|
|
149655
149704
|
Line.prototype.text = null;
|
|
149656
149705
|
|
|
149706
|
+
/**
|
|
149707
|
+
* Line wordOffsets.
|
|
149708
|
+
* @member {Array.<waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties>} wordOffsets
|
|
149709
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line
|
|
149710
|
+
* @instance
|
|
149711
|
+
*/
|
|
149712
|
+
Line.prototype.wordOffsets = $util.emptyArray;
|
|
149713
|
+
|
|
149657
149714
|
// OneOf field names bound to virtual getters and setters
|
|
149658
149715
|
var $oneOfFields;
|
|
149659
149716
|
|
|
@@ -149713,6 +149770,9 @@ $root.waproto = (function() {
|
|
|
149713
149770
|
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.endTimeInMs);
|
|
149714
149771
|
if (message.text != null && $Object.hasOwnProperty.call(message, "text"))
|
|
149715
149772
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.text);
|
|
149773
|
+
if (message.wordOffsets != null && message.wordOffsets.length)
|
|
149774
|
+
for (var i = 0; i < message.wordOffsets.length; ++i)
|
|
149775
|
+
$root.waproto.Message.MusicMessage.Lyrics.Line.WordOffset.encode(message.wordOffsets[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), _depth + 1).ldelim();
|
|
149716
149776
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
149717
149777
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
149718
149778
|
writer.raw(message.$unknowns[i]);
|
|
@@ -149791,6 +149851,14 @@ $root.waproto = (function() {
|
|
|
149791
149851
|
message._text = "text";
|
|
149792
149852
|
continue;
|
|
149793
149853
|
}
|
|
149854
|
+
case 4: {
|
|
149855
|
+
if (wireType !== 2)
|
|
149856
|
+
break;
|
|
149857
|
+
if (!(message.wordOffsets && message.wordOffsets.length))
|
|
149858
|
+
message.wordOffsets = [];
|
|
149859
|
+
message.wordOffsets.push($root.waproto.Message.MusicMessage.Lyrics.Line.WordOffset.decode(reader, reader.size(), $undefined, _depth + 1));
|
|
149860
|
+
continue;
|
|
149861
|
+
}
|
|
149794
149862
|
}
|
|
149795
149863
|
reader.skipType(wireType, _depth, tag);
|
|
149796
149864
|
if (!reader.discardUnknown) {
|
|
@@ -149855,6 +149923,15 @@ $root.waproto = (function() {
|
|
|
149855
149923
|
if (!$util.isString(message.text))
|
|
149856
149924
|
return "text: string expected";
|
|
149857
149925
|
}
|
|
149926
|
+
if (message.wordOffsets != null && $Object.hasOwnProperty.call(message, "wordOffsets")) {
|
|
149927
|
+
if (!$Array.isArray(message.wordOffsets))
|
|
149928
|
+
return "wordOffsets: array expected";
|
|
149929
|
+
for (var i = 0; i < message.wordOffsets.length; ++i) {
|
|
149930
|
+
var error = $root.waproto.Message.MusicMessage.Lyrics.Line.WordOffset.verify(message.wordOffsets[i], _depth + 1);
|
|
149931
|
+
if (error)
|
|
149932
|
+
return "wordOffsets." + error;
|
|
149933
|
+
}
|
|
149934
|
+
}
|
|
149858
149935
|
return null;
|
|
149859
149936
|
};
|
|
149860
149937
|
|
|
@@ -149896,6 +149973,16 @@ $root.waproto = (function() {
|
|
|
149896
149973
|
message.endTimeInMs = new $util.LongBits(object.endTimeInMs.low >>> 0, object.endTimeInMs.high >>> 0).toNumber();
|
|
149897
149974
|
if (object.text != null)
|
|
149898
149975
|
message.text = $String(object.text);
|
|
149976
|
+
if (object.wordOffsets) {
|
|
149977
|
+
if (!$Array.isArray(object.wordOffsets))
|
|
149978
|
+
throw $TypeError(".waproto.Message.MusicMessage.Lyrics.Line.wordOffsets: array expected");
|
|
149979
|
+
message.wordOffsets = $Array(object.wordOffsets.length);
|
|
149980
|
+
for (var i = 0; i < object.wordOffsets.length; ++i) {
|
|
149981
|
+
if (!$util.isObject(object.wordOffsets[i]))
|
|
149982
|
+
throw $TypeError(".waproto.Message.MusicMessage.Lyrics.Line.wordOffsets: object expected");
|
|
149983
|
+
message.wordOffsets[i] = $root.waproto.Message.MusicMessage.Lyrics.Line.WordOffset.fromObject(object.wordOffsets[i], _depth + 1);
|
|
149984
|
+
}
|
|
149985
|
+
}
|
|
149899
149986
|
return message;
|
|
149900
149987
|
};
|
|
149901
149988
|
|
|
@@ -149916,6 +150003,8 @@ $root.waproto = (function() {
|
|
|
149916
150003
|
if (_depth > $util.recursionLimit)
|
|
149917
150004
|
throw $Error("max depth exceeded");
|
|
149918
150005
|
var object = {};
|
|
150006
|
+
if (options.arrays || options.defaults)
|
|
150007
|
+
object.wordOffsets = [];
|
|
149919
150008
|
if (message.startTimeInMs != null && $Object.hasOwnProperty.call(message, "startTimeInMs"))
|
|
149920
150009
|
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
149921
150010
|
object.startTimeInMs = typeof message.startTimeInMs === "number" ? $BigInt(message.startTimeInMs) : $util.Long.fromBits(message.startTimeInMs.low >>> 0, message.startTimeInMs.high >>> 0, false).toBigInt();
|
|
@@ -149932,6 +150021,11 @@ $root.waproto = (function() {
|
|
|
149932
150021
|
object.endTimeInMs = options.longs === $String ? $util.Long.prototype.toString.call(message.endTimeInMs) : options.longs === $Number ? new $util.LongBits(message.endTimeInMs.low >>> 0, message.endTimeInMs.high >>> 0).toNumber() : message.endTimeInMs;
|
|
149933
150022
|
if (message.text != null && $Object.hasOwnProperty.call(message, "text"))
|
|
149934
150023
|
object.text = message.text;
|
|
150024
|
+
if (message.wordOffsets && message.wordOffsets.length) {
|
|
150025
|
+
object.wordOffsets = $Array(message.wordOffsets.length);
|
|
150026
|
+
for (var j = 0; j < message.wordOffsets.length; ++j)
|
|
150027
|
+
object.wordOffsets[j] = $root.waproto.Message.MusicMessage.Lyrics.Line.WordOffset.toObject(message.wordOffsets[j], options, _depth + 1);
|
|
150028
|
+
}
|
|
149935
150029
|
return object;
|
|
149936
150030
|
};
|
|
149937
150031
|
|
|
@@ -149960,6 +150054,411 @@ $root.waproto = (function() {
|
|
|
149960
150054
|
return prefix + "/waproto.Message.MusicMessage.Lyrics.Line";
|
|
149961
150055
|
};
|
|
149962
150056
|
|
|
150057
|
+
Line.WordOffset = (function() {
|
|
150058
|
+
|
|
150059
|
+
/**
|
|
150060
|
+
* Properties of a WordOffset.
|
|
150061
|
+
* @typedef {Object} waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties
|
|
150062
|
+
* @property {number|null} [startIndex] WordOffset startIndex
|
|
150063
|
+
* @property {number|null} [endIndex] WordOffset endIndex
|
|
150064
|
+
* @property {number|Long|null} [startOffsetMs] WordOffset startOffsetMs
|
|
150065
|
+
* @property {number|Long|null} [endOffsetMs] WordOffset endOffsetMs
|
|
150066
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
150067
|
+
*/
|
|
150068
|
+
|
|
150069
|
+
/**
|
|
150070
|
+
* Properties of a WordOffset.
|
|
150071
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line
|
|
150072
|
+
* @interface IWordOffset
|
|
150073
|
+
* @augments waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties
|
|
150074
|
+
* @deprecated Use waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties instead.
|
|
150075
|
+
*/
|
|
150076
|
+
|
|
150077
|
+
/**
|
|
150078
|
+
* Shape of a WordOffset.
|
|
150079
|
+
* @typedef {waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties} waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape
|
|
150080
|
+
*/
|
|
150081
|
+
|
|
150082
|
+
/**
|
|
150083
|
+
* Constructs a new WordOffset.
|
|
150084
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line
|
|
150085
|
+
* @classdesc Represents a WordOffset.
|
|
150086
|
+
* @constructor
|
|
150087
|
+
* @param {waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties=} [properties] Properties to set
|
|
150088
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
150089
|
+
*/
|
|
150090
|
+
var WordOffset = function (properties) {
|
|
150091
|
+
if (properties)
|
|
150092
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
150093
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
150094
|
+
this[keys[i]] = properties[keys[i]];
|
|
150095
|
+
};
|
|
150096
|
+
|
|
150097
|
+
/**
|
|
150098
|
+
* WordOffset startIndex.
|
|
150099
|
+
* @member {number|null|undefined} startIndex
|
|
150100
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150101
|
+
* @instance
|
|
150102
|
+
*/
|
|
150103
|
+
WordOffset.prototype.startIndex = null;
|
|
150104
|
+
|
|
150105
|
+
/**
|
|
150106
|
+
* WordOffset endIndex.
|
|
150107
|
+
* @member {number|null|undefined} endIndex
|
|
150108
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150109
|
+
* @instance
|
|
150110
|
+
*/
|
|
150111
|
+
WordOffset.prototype.endIndex = null;
|
|
150112
|
+
|
|
150113
|
+
/**
|
|
150114
|
+
* WordOffset startOffsetMs.
|
|
150115
|
+
* @member {number|Long|null|undefined} startOffsetMs
|
|
150116
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150117
|
+
* @instance
|
|
150118
|
+
*/
|
|
150119
|
+
WordOffset.prototype.startOffsetMs = null;
|
|
150120
|
+
|
|
150121
|
+
/**
|
|
150122
|
+
* WordOffset endOffsetMs.
|
|
150123
|
+
* @member {number|Long|null|undefined} endOffsetMs
|
|
150124
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150125
|
+
* @instance
|
|
150126
|
+
*/
|
|
150127
|
+
WordOffset.prototype.endOffsetMs = null;
|
|
150128
|
+
|
|
150129
|
+
// OneOf field names bound to virtual getters and setters
|
|
150130
|
+
var $oneOfFields;
|
|
150131
|
+
|
|
150132
|
+
// Virtual OneOf for proto3 optional field
|
|
150133
|
+
$Object.defineProperty(WordOffset.prototype, "_startIndex", {
|
|
150134
|
+
get: $util.oneOfGetter($oneOfFields = ["startIndex"]),
|
|
150135
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
150136
|
+
});
|
|
150137
|
+
|
|
150138
|
+
// Virtual OneOf for proto3 optional field
|
|
150139
|
+
$Object.defineProperty(WordOffset.prototype, "_endIndex", {
|
|
150140
|
+
get: $util.oneOfGetter($oneOfFields = ["endIndex"]),
|
|
150141
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
150142
|
+
});
|
|
150143
|
+
|
|
150144
|
+
// Virtual OneOf for proto3 optional field
|
|
150145
|
+
$Object.defineProperty(WordOffset.prototype, "_startOffsetMs", {
|
|
150146
|
+
get: $util.oneOfGetter($oneOfFields = ["startOffsetMs"]),
|
|
150147
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
150148
|
+
});
|
|
150149
|
+
|
|
150150
|
+
// Virtual OneOf for proto3 optional field
|
|
150151
|
+
$Object.defineProperty(WordOffset.prototype, "_endOffsetMs", {
|
|
150152
|
+
get: $util.oneOfGetter($oneOfFields = ["endOffsetMs"]),
|
|
150153
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
150154
|
+
});
|
|
150155
|
+
|
|
150156
|
+
/**
|
|
150157
|
+
* Creates a new WordOffset instance using the specified properties.
|
|
150158
|
+
* @function create
|
|
150159
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150160
|
+
* @static
|
|
150161
|
+
* @param {waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties=} [properties] Properties to set
|
|
150162
|
+
* @returns {waproto.Message.MusicMessage.Lyrics.Line.WordOffset} WordOffset instance
|
|
150163
|
+
* @type {{
|
|
150164
|
+
* (properties: waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape): waproto.Message.MusicMessage.Lyrics.Line.WordOffset & waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape;
|
|
150165
|
+
* (properties?: waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties): waproto.Message.MusicMessage.Lyrics.Line.WordOffset;
|
|
150166
|
+
* }}
|
|
150167
|
+
*/
|
|
150168
|
+
WordOffset.create = function(properties) {
|
|
150169
|
+
return new WordOffset(properties);
|
|
150170
|
+
};
|
|
150171
|
+
|
|
150172
|
+
/**
|
|
150173
|
+
* Encodes the specified WordOffset message. Does not implicitly {@link waproto.Message.MusicMessage.Lyrics.Line.WordOffset.verify|verify} messages.
|
|
150174
|
+
* @function encode
|
|
150175
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150176
|
+
* @static
|
|
150177
|
+
* @param {waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties} message WordOffset message or plain object to encode
|
|
150178
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
150179
|
+
* @returns {$protobuf.Writer} Writer
|
|
150180
|
+
*/
|
|
150181
|
+
WordOffset.encode = function (message, writer, _depth) {
|
|
150182
|
+
if (!writer)
|
|
150183
|
+
writer = $Writer.create();
|
|
150184
|
+
if (_depth === $undefined)
|
|
150185
|
+
_depth = 0;
|
|
150186
|
+
if (_depth > $util.recursionLimit)
|
|
150187
|
+
throw $Error("max depth exceeded");
|
|
150188
|
+
if (message.startIndex != null && $Object.hasOwnProperty.call(message, "startIndex"))
|
|
150189
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.startIndex);
|
|
150190
|
+
if (message.endIndex != null && $Object.hasOwnProperty.call(message, "endIndex"))
|
|
150191
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.endIndex);
|
|
150192
|
+
if (message.startOffsetMs != null && $Object.hasOwnProperty.call(message, "startOffsetMs"))
|
|
150193
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.startOffsetMs);
|
|
150194
|
+
if (message.endOffsetMs != null && $Object.hasOwnProperty.call(message, "endOffsetMs"))
|
|
150195
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.endOffsetMs);
|
|
150196
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
150197
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
150198
|
+
writer.raw(message.$unknowns[i]);
|
|
150199
|
+
return writer;
|
|
150200
|
+
};
|
|
150201
|
+
|
|
150202
|
+
/**
|
|
150203
|
+
* Encodes the specified WordOffset message, length delimited. Does not implicitly {@link waproto.Message.MusicMessage.Lyrics.Line.WordOffset.verify|verify} messages.
|
|
150204
|
+
* @function encodeDelimited
|
|
150205
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150206
|
+
* @static
|
|
150207
|
+
* @param {waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Properties} message WordOffset message or plain object to encode
|
|
150208
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
150209
|
+
* @returns {$protobuf.Writer} Writer
|
|
150210
|
+
*/
|
|
150211
|
+
WordOffset.encodeDelimited = function(message, writer) {
|
|
150212
|
+
return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
|
|
150213
|
+
};
|
|
150214
|
+
|
|
150215
|
+
/**
|
|
150216
|
+
* Decodes a WordOffset message from the specified reader or buffer.
|
|
150217
|
+
* @function decode
|
|
150218
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150219
|
+
* @static
|
|
150220
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
150221
|
+
* @param {number} [length] Message length if known beforehand
|
|
150222
|
+
* @returns {waproto.Message.MusicMessage.Lyrics.Line.WordOffset & waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape} WordOffset
|
|
150223
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
150224
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
150225
|
+
*/
|
|
150226
|
+
WordOffset.decode = function (reader, length, _end, _depth, _target) {
|
|
150227
|
+
if (!(reader instanceof $Reader))
|
|
150228
|
+
reader = $Reader.create(reader);
|
|
150229
|
+
if (_depth === $undefined)
|
|
150230
|
+
_depth = 0;
|
|
150231
|
+
if (_depth > $Reader.recursionLimit)
|
|
150232
|
+
throw $Error("max depth exceeded");
|
|
150233
|
+
var end, message;
|
|
150234
|
+
if (length === $undefined)
|
|
150235
|
+
end = reader.len;
|
|
150236
|
+
else {
|
|
150237
|
+
end = reader.pos + length;
|
|
150238
|
+
if (end > reader.len)
|
|
150239
|
+
throw $RangeError("index out of range");
|
|
150240
|
+
length = reader.len;
|
|
150241
|
+
reader.len = end;
|
|
150242
|
+
}
|
|
150243
|
+
message = _target || new $root.waproto.Message.MusicMessage.Lyrics.Line.WordOffset();
|
|
150244
|
+
while (reader.pos < end) {
|
|
150245
|
+
var start = reader.pos;
|
|
150246
|
+
var tag = reader.tag();
|
|
150247
|
+
if (tag === _end) {
|
|
150248
|
+
_end = $undefined;
|
|
150249
|
+
break;
|
|
150250
|
+
}
|
|
150251
|
+
var wireType = tag & 7;
|
|
150252
|
+
switch (tag >>>= 3) {
|
|
150253
|
+
case 1: {
|
|
150254
|
+
if (wireType !== 0)
|
|
150255
|
+
break;
|
|
150256
|
+
message.startIndex = reader.int32();
|
|
150257
|
+
message._startIndex = "startIndex";
|
|
150258
|
+
continue;
|
|
150259
|
+
}
|
|
150260
|
+
case 2: {
|
|
150261
|
+
if (wireType !== 0)
|
|
150262
|
+
break;
|
|
150263
|
+
message.endIndex = reader.int32();
|
|
150264
|
+
message._endIndex = "endIndex";
|
|
150265
|
+
continue;
|
|
150266
|
+
}
|
|
150267
|
+
case 3: {
|
|
150268
|
+
if (wireType !== 0)
|
|
150269
|
+
break;
|
|
150270
|
+
message.startOffsetMs = reader.int64();
|
|
150271
|
+
message._startOffsetMs = "startOffsetMs";
|
|
150272
|
+
continue;
|
|
150273
|
+
}
|
|
150274
|
+
case 4: {
|
|
150275
|
+
if (wireType !== 0)
|
|
150276
|
+
break;
|
|
150277
|
+
message.endOffsetMs = reader.int64();
|
|
150278
|
+
message._endOffsetMs = "endOffsetMs";
|
|
150279
|
+
continue;
|
|
150280
|
+
}
|
|
150281
|
+
}
|
|
150282
|
+
reader.skipType(wireType, _depth, tag);
|
|
150283
|
+
if (!reader.discardUnknown) {
|
|
150284
|
+
$util.makeProp(message, "$unknowns", false);
|
|
150285
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
150286
|
+
}
|
|
150287
|
+
}
|
|
150288
|
+
if (length !== $undefined) {
|
|
150289
|
+
if (reader.pos !== end)
|
|
150290
|
+
throw $RangeError("index out of range");
|
|
150291
|
+
reader.len = length;
|
|
150292
|
+
}
|
|
150293
|
+
if (_end !== $undefined)
|
|
150294
|
+
throw $Error("missing end group");
|
|
150295
|
+
return message;
|
|
150296
|
+
};
|
|
150297
|
+
|
|
150298
|
+
/**
|
|
150299
|
+
* Decodes a WordOffset message from the specified reader or buffer, length delimited.
|
|
150300
|
+
* @function decodeDelimited
|
|
150301
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150302
|
+
* @static
|
|
150303
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
150304
|
+
* @returns {waproto.Message.MusicMessage.Lyrics.Line.WordOffset & waproto.Message.MusicMessage.Lyrics.Line.WordOffset.$Shape} WordOffset
|
|
150305
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
150306
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
150307
|
+
*/
|
|
150308
|
+
WordOffset.decodeDelimited = function(reader) {
|
|
150309
|
+
if (!(reader instanceof $Reader))
|
|
150310
|
+
reader = new $Reader(reader);
|
|
150311
|
+
return this.decode(reader, reader.size());
|
|
150312
|
+
};
|
|
150313
|
+
|
|
150314
|
+
/**
|
|
150315
|
+
* Verifies a WordOffset message.
|
|
150316
|
+
* @function verify
|
|
150317
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150318
|
+
* @static
|
|
150319
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
150320
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
150321
|
+
*/
|
|
150322
|
+
WordOffset.verify = function (message, _depth) {
|
|
150323
|
+
if (typeof message !== "object" || message === null)
|
|
150324
|
+
return "object expected";
|
|
150325
|
+
if (_depth === $undefined)
|
|
150326
|
+
_depth = 0;
|
|
150327
|
+
if (_depth > $util.recursionLimit)
|
|
150328
|
+
return "max depth exceeded";
|
|
150329
|
+
var properties = {};
|
|
150330
|
+
if (message.startIndex != null && $Object.hasOwnProperty.call(message, "startIndex")) {
|
|
150331
|
+
properties._startIndex = 1;
|
|
150332
|
+
if (!$util.isInteger(message.startIndex))
|
|
150333
|
+
return "startIndex: integer expected";
|
|
150334
|
+
}
|
|
150335
|
+
if (message.endIndex != null && $Object.hasOwnProperty.call(message, "endIndex")) {
|
|
150336
|
+
properties._endIndex = 1;
|
|
150337
|
+
if (!$util.isInteger(message.endIndex))
|
|
150338
|
+
return "endIndex: integer expected";
|
|
150339
|
+
}
|
|
150340
|
+
if (message.startOffsetMs != null && $Object.hasOwnProperty.call(message, "startOffsetMs")) {
|
|
150341
|
+
properties._startOffsetMs = 1;
|
|
150342
|
+
if (!$util.isInteger(message.startOffsetMs) && !(message.startOffsetMs && $util.isInteger(message.startOffsetMs.low) && $util.isInteger(message.startOffsetMs.high)))
|
|
150343
|
+
return "startOffsetMs: integer|Long expected";
|
|
150344
|
+
}
|
|
150345
|
+
if (message.endOffsetMs != null && $Object.hasOwnProperty.call(message, "endOffsetMs")) {
|
|
150346
|
+
properties._endOffsetMs = 1;
|
|
150347
|
+
if (!$util.isInteger(message.endOffsetMs) && !(message.endOffsetMs && $util.isInteger(message.endOffsetMs.low) && $util.isInteger(message.endOffsetMs.high)))
|
|
150348
|
+
return "endOffsetMs: integer|Long expected";
|
|
150349
|
+
}
|
|
150350
|
+
return null;
|
|
150351
|
+
};
|
|
150352
|
+
|
|
150353
|
+
/**
|
|
150354
|
+
* Creates a WordOffset message from a plain object. Also converts values to their respective internal types.
|
|
150355
|
+
* @function fromObject
|
|
150356
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150357
|
+
* @static
|
|
150358
|
+
* @param {Object.<string,*>} object Plain object
|
|
150359
|
+
* @returns {waproto.Message.MusicMessage.Lyrics.Line.WordOffset} WordOffset
|
|
150360
|
+
*/
|
|
150361
|
+
WordOffset.fromObject = function (object, _depth) {
|
|
150362
|
+
if (object instanceof $root.waproto.Message.MusicMessage.Lyrics.Line.WordOffset)
|
|
150363
|
+
return object;
|
|
150364
|
+
if (!$util.isObject(object))
|
|
150365
|
+
throw $TypeError(".waproto.Message.MusicMessage.Lyrics.Line.WordOffset: object expected");
|
|
150366
|
+
if (_depth === $undefined)
|
|
150367
|
+
_depth = 0;
|
|
150368
|
+
if (_depth > $util.recursionLimit)
|
|
150369
|
+
throw $Error("max depth exceeded");
|
|
150370
|
+
var message = new $root.waproto.Message.MusicMessage.Lyrics.Line.WordOffset();
|
|
150371
|
+
if (object.startIndex != null)
|
|
150372
|
+
message.startIndex = object.startIndex | 0;
|
|
150373
|
+
if (object.endIndex != null)
|
|
150374
|
+
message.endIndex = object.endIndex | 0;
|
|
150375
|
+
if (object.startOffsetMs != null)
|
|
150376
|
+
if ($util.Long)
|
|
150377
|
+
message.startOffsetMs = $util.Long.fromValue(object.startOffsetMs, false);
|
|
150378
|
+
else if (typeof object.startOffsetMs === "string")
|
|
150379
|
+
message.startOffsetMs = $parseInt(object.startOffsetMs, 10);
|
|
150380
|
+
else if (typeof object.startOffsetMs === "number")
|
|
150381
|
+
message.startOffsetMs = object.startOffsetMs;
|
|
150382
|
+
else if (typeof object.startOffsetMs === "object")
|
|
150383
|
+
message.startOffsetMs = new $util.LongBits(object.startOffsetMs.low >>> 0, object.startOffsetMs.high >>> 0).toNumber();
|
|
150384
|
+
if (object.endOffsetMs != null)
|
|
150385
|
+
if ($util.Long)
|
|
150386
|
+
message.endOffsetMs = $util.Long.fromValue(object.endOffsetMs, false);
|
|
150387
|
+
else if (typeof object.endOffsetMs === "string")
|
|
150388
|
+
message.endOffsetMs = $parseInt(object.endOffsetMs, 10);
|
|
150389
|
+
else if (typeof object.endOffsetMs === "number")
|
|
150390
|
+
message.endOffsetMs = object.endOffsetMs;
|
|
150391
|
+
else if (typeof object.endOffsetMs === "object")
|
|
150392
|
+
message.endOffsetMs = new $util.LongBits(object.endOffsetMs.low >>> 0, object.endOffsetMs.high >>> 0).toNumber();
|
|
150393
|
+
return message;
|
|
150394
|
+
};
|
|
150395
|
+
|
|
150396
|
+
/**
|
|
150397
|
+
* Creates a plain object from a WordOffset message. Also converts values to other types if specified.
|
|
150398
|
+
* @function toObject
|
|
150399
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150400
|
+
* @static
|
|
150401
|
+
* @param {waproto.Message.MusicMessage.Lyrics.Line.WordOffset} message WordOffset
|
|
150402
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
150403
|
+
* @returns {Object.<string,*>} Plain object
|
|
150404
|
+
*/
|
|
150405
|
+
WordOffset.toObject = function (message, options, _depth) {
|
|
150406
|
+
if (!options)
|
|
150407
|
+
options = {};
|
|
150408
|
+
if (_depth === $undefined)
|
|
150409
|
+
_depth = 0;
|
|
150410
|
+
if (_depth > $util.recursionLimit)
|
|
150411
|
+
throw $Error("max depth exceeded");
|
|
150412
|
+
var object = {};
|
|
150413
|
+
if (message.startIndex != null && $Object.hasOwnProperty.call(message, "startIndex"))
|
|
150414
|
+
object.startIndex = message.startIndex;
|
|
150415
|
+
if (message.endIndex != null && $Object.hasOwnProperty.call(message, "endIndex"))
|
|
150416
|
+
object.endIndex = message.endIndex;
|
|
150417
|
+
if (message.startOffsetMs != null && $Object.hasOwnProperty.call(message, "startOffsetMs"))
|
|
150418
|
+
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
150419
|
+
object.startOffsetMs = typeof message.startOffsetMs === "number" ? $BigInt(message.startOffsetMs) : $util.Long.fromBits(message.startOffsetMs.low >>> 0, message.startOffsetMs.high >>> 0, false).toBigInt();
|
|
150420
|
+
else if (typeof message.startOffsetMs === "number")
|
|
150421
|
+
object.startOffsetMs = options.longs === $String ? $String(message.startOffsetMs) : message.startOffsetMs;
|
|
150422
|
+
else
|
|
150423
|
+
object.startOffsetMs = options.longs === $String ? $util.Long.prototype.toString.call(message.startOffsetMs) : options.longs === $Number ? new $util.LongBits(message.startOffsetMs.low >>> 0, message.startOffsetMs.high >>> 0).toNumber() : message.startOffsetMs;
|
|
150424
|
+
if (message.endOffsetMs != null && $Object.hasOwnProperty.call(message, "endOffsetMs"))
|
|
150425
|
+
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
150426
|
+
object.endOffsetMs = typeof message.endOffsetMs === "number" ? $BigInt(message.endOffsetMs) : $util.Long.fromBits(message.endOffsetMs.low >>> 0, message.endOffsetMs.high >>> 0, false).toBigInt();
|
|
150427
|
+
else if (typeof message.endOffsetMs === "number")
|
|
150428
|
+
object.endOffsetMs = options.longs === $String ? $String(message.endOffsetMs) : message.endOffsetMs;
|
|
150429
|
+
else
|
|
150430
|
+
object.endOffsetMs = options.longs === $String ? $util.Long.prototype.toString.call(message.endOffsetMs) : options.longs === $Number ? new $util.LongBits(message.endOffsetMs.low >>> 0, message.endOffsetMs.high >>> 0).toNumber() : message.endOffsetMs;
|
|
150431
|
+
return object;
|
|
150432
|
+
};
|
|
150433
|
+
|
|
150434
|
+
/**
|
|
150435
|
+
* Converts this WordOffset to JSON.
|
|
150436
|
+
* @function toJSON
|
|
150437
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150438
|
+
* @instance
|
|
150439
|
+
* @returns {Object.<string,*>} JSON object
|
|
150440
|
+
*/
|
|
150441
|
+
WordOffset.prototype.toJSON = function() {
|
|
150442
|
+
return WordOffset.toObject(this, $protobuf.util.toJSONOptions);
|
|
150443
|
+
};
|
|
150444
|
+
|
|
150445
|
+
/**
|
|
150446
|
+
* Gets the type url for WordOffset
|
|
150447
|
+
* @function getTypeUrl
|
|
150448
|
+
* @memberof waproto.Message.MusicMessage.Lyrics.Line.WordOffset
|
|
150449
|
+
* @static
|
|
150450
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
150451
|
+
* @returns {string} The type url
|
|
150452
|
+
*/
|
|
150453
|
+
WordOffset.getTypeUrl = function(prefix) {
|
|
150454
|
+
if (prefix === $undefined)
|
|
150455
|
+
prefix = "type.googleapis.com";
|
|
150456
|
+
return prefix + "/waproto.Message.MusicMessage.Lyrics.Line.WordOffset";
|
|
150457
|
+
};
|
|
150458
|
+
|
|
150459
|
+
return WordOffset;
|
|
150460
|
+
})();
|
|
150461
|
+
|
|
149963
150462
|
return Line;
|
|
149964
150463
|
})();
|
|
149965
150464
|
|
|
@@ -157378,6 +157877,7 @@ $root.waproto = (function() {
|
|
|
157378
157877
|
* @property {number|Long|null} [oldestMsgTimestampMs] HistorySyncOnDemandRequest oldestMsgTimestampMs
|
|
157379
157878
|
* @property {string|null} [accountLid] HistorySyncOnDemandRequest accountLid
|
|
157380
157879
|
* @property {boolean|null} [supportInlineResponse] HistorySyncOnDemandRequest supportInlineResponse
|
|
157880
|
+
* @property {waproto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest.Mode|null} [mode] HistorySyncOnDemandRequest mode
|
|
157381
157881
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
157382
157882
|
*/
|
|
157383
157883
|
|
|
@@ -157465,6 +157965,14 @@ $root.waproto = (function() {
|
|
|
157465
157965
|
*/
|
|
157466
157966
|
HistorySyncOnDemandRequest.prototype.supportInlineResponse = null;
|
|
157467
157967
|
|
|
157968
|
+
/**
|
|
157969
|
+
* HistorySyncOnDemandRequest mode.
|
|
157970
|
+
* @member {waproto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest.Mode|null|undefined} mode
|
|
157971
|
+
* @memberof waproto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest
|
|
157972
|
+
* @instance
|
|
157973
|
+
*/
|
|
157974
|
+
HistorySyncOnDemandRequest.prototype.mode = null;
|
|
157975
|
+
|
|
157468
157976
|
// OneOf field names bound to virtual getters and setters
|
|
157469
157977
|
var $oneOfFields;
|
|
157470
157978
|
|
|
@@ -157510,6 +158018,12 @@ $root.waproto = (function() {
|
|
|
157510
158018
|
set: $util.oneOfSetter($oneOfFields)
|
|
157511
158019
|
});
|
|
157512
158020
|
|
|
158021
|
+
// Virtual OneOf for proto3 optional field
|
|
158022
|
+
$Object.defineProperty(HistorySyncOnDemandRequest.prototype, "_mode", {
|
|
158023
|
+
get: $util.oneOfGetter($oneOfFields = ["mode"]),
|
|
158024
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
158025
|
+
});
|
|
158026
|
+
|
|
157513
158027
|
/**
|
|
157514
158028
|
* Creates a new HistorySyncOnDemandRequest instance using the specified properties.
|
|
157515
158029
|
* @function create
|
|
@@ -157556,6 +158070,8 @@ $root.waproto = (function() {
|
|
|
157556
158070
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.accountLid);
|
|
157557
158071
|
if (message.supportInlineResponse != null && $Object.hasOwnProperty.call(message, "supportInlineResponse"))
|
|
157558
158072
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.supportInlineResponse);
|
|
158073
|
+
if (message.mode != null && $Object.hasOwnProperty.call(message, "mode"))
|
|
158074
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.mode);
|
|
157559
158075
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
157560
158076
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
157561
158077
|
writer.raw(message.$unknowns[i]);
|
|
@@ -157593,7 +158109,7 @@ $root.waproto = (function() {
|
|
|
157593
158109
|
_depth = 0;
|
|
157594
158110
|
if (_depth > $Reader.recursionLimit)
|
|
157595
158111
|
throw $Error("max depth exceeded");
|
|
157596
|
-
var end, message;
|
|
158112
|
+
var end, message, value;
|
|
157597
158113
|
if (length === $undefined)
|
|
157598
158114
|
end = reader.len;
|
|
157599
158115
|
else {
|
|
@@ -157662,6 +158178,13 @@ $root.waproto = (function() {
|
|
|
157662
158178
|
message._supportInlineResponse = "supportInlineResponse";
|
|
157663
158179
|
continue;
|
|
157664
158180
|
}
|
|
158181
|
+
case 8: {
|
|
158182
|
+
if (wireType !== 0)
|
|
158183
|
+
break;
|
|
158184
|
+
message.mode = reader.int32();
|
|
158185
|
+
message._mode = "mode";
|
|
158186
|
+
continue;
|
|
158187
|
+
}
|
|
157665
158188
|
}
|
|
157666
158189
|
reader.skipType(wireType, _depth, tag);
|
|
157667
158190
|
if (!reader.discardUnknown) {
|
|
@@ -157746,6 +158269,11 @@ $root.waproto = (function() {
|
|
|
157746
158269
|
if (typeof message.supportInlineResponse !== "boolean")
|
|
157747
158270
|
return "supportInlineResponse: boolean expected";
|
|
157748
158271
|
}
|
|
158272
|
+
if (message.mode != null && $Object.hasOwnProperty.call(message, "mode")) {
|
|
158273
|
+
properties._mode = 1;
|
|
158274
|
+
if (typeof message.mode !== "number" || (message.mode | 0) !== message.mode)
|
|
158275
|
+
return "mode: enum value expected";
|
|
158276
|
+
}
|
|
157749
158277
|
return null;
|
|
157750
158278
|
};
|
|
157751
158279
|
|
|
@@ -157788,6 +158316,19 @@ $root.waproto = (function() {
|
|
|
157788
158316
|
message.accountLid = $String(object.accountLid);
|
|
157789
158317
|
if (object.supportInlineResponse != null)
|
|
157790
158318
|
message.supportInlineResponse = $Boolean(object.supportInlineResponse);
|
|
158319
|
+
switch (object.mode) {
|
|
158320
|
+
case "MODE_UNSPECIFIED":
|
|
158321
|
+
case 0:
|
|
158322
|
+
message.mode = 0;
|
|
158323
|
+
break;
|
|
158324
|
+
case "INITIAL_REVERSE_HISTORY":
|
|
158325
|
+
case 1:
|
|
158326
|
+
message.mode = 1;
|
|
158327
|
+
break;
|
|
158328
|
+
default:
|
|
158329
|
+
if (typeof object.mode === "number" && (object.mode | 0) === object.mode)
|
|
158330
|
+
message.mode = object.mode;
|
|
158331
|
+
}
|
|
157791
158332
|
return message;
|
|
157792
158333
|
};
|
|
157793
158334
|
|
|
@@ -157827,6 +158368,8 @@ $root.waproto = (function() {
|
|
|
157827
158368
|
object.accountLid = message.accountLid;
|
|
157828
158369
|
if (message.supportInlineResponse != null && $Object.hasOwnProperty.call(message, "supportInlineResponse"))
|
|
157829
158370
|
object.supportInlineResponse = message.supportInlineResponse;
|
|
158371
|
+
if (message.mode != null && $Object.hasOwnProperty.call(message, "mode"))
|
|
158372
|
+
object.mode = options.enums === $String ? $root.waproto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest.Mode[message.mode] === $undefined ? message.mode : $root.waproto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest.Mode[message.mode] : message.mode;
|
|
157830
158373
|
return object;
|
|
157831
158374
|
};
|
|
157832
158375
|
|
|
@@ -157855,6 +158398,20 @@ $root.waproto = (function() {
|
|
|
157855
158398
|
return prefix + "/waproto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest";
|
|
157856
158399
|
};
|
|
157857
158400
|
|
|
158401
|
+
/**
|
|
158402
|
+
* Mode enum.
|
|
158403
|
+
* @name waproto.Message.PeerDataOperationRequestMessage.HistorySyncOnDemandRequest.Mode
|
|
158404
|
+
* @enum {number}
|
|
158405
|
+
* @property {number} MODE_UNSPECIFIED=0 MODE_UNSPECIFIED value
|
|
158406
|
+
* @property {number} INITIAL_REVERSE_HISTORY=1 INITIAL_REVERSE_HISTORY value
|
|
158407
|
+
*/
|
|
158408
|
+
HistorySyncOnDemandRequest.Mode = (function() {
|
|
158409
|
+
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
158410
|
+
values[valuesById[0] = "MODE_UNSPECIFIED"] = 0;
|
|
158411
|
+
values[valuesById[1] = "INITIAL_REVERSE_HISTORY"] = 1;
|
|
158412
|
+
return values;
|
|
158413
|
+
})();
|
|
158414
|
+
|
|
157858
158415
|
return HistorySyncOnDemandRequest;
|
|
157859
158416
|
})();
|
|
157860
158417
|
|