@wppconnect/wa-proto 2.3000.1052191878 → 2.3000.1052238679
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 +17 -1
- package/dist/index.d.ts +282 -0
- package/dist/index.js +868 -0
- package/package.json +2 -2
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.1052238679
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -4824,6 +4824,22 @@ message MsgOpaqueData {
|
|
|
4824
4824
|
optional bytes artworkMediaKey = 16;
|
|
4825
4825
|
optional int64 consumptionCheckedAtS = 17;
|
|
4826
4826
|
optional bool isAvailableForConsumption = 18;
|
|
4827
|
+
repeated LyricsLine lyrics = 19;
|
|
4828
|
+
optional int64 lyricsConfirmedAtS = 20;
|
|
4829
|
+
message LyricsLine {
|
|
4830
|
+
optional int32 startTimeMs = 1;
|
|
4831
|
+
optional int32 endTimeMs = 2;
|
|
4832
|
+
optional string text = 3;
|
|
4833
|
+
repeated WordOffset wordOffsets = 4;
|
|
4834
|
+
message WordOffset {
|
|
4835
|
+
optional int32 startIndex = 1;
|
|
4836
|
+
optional int32 endIndex = 2;
|
|
4837
|
+
optional int32 startOffsetMs = 3;
|
|
4838
|
+
optional int32 endOffsetMs = 4;
|
|
4839
|
+
}
|
|
4840
|
+
|
|
4841
|
+
}
|
|
4842
|
+
|
|
4827
4843
|
}
|
|
4828
4844
|
|
|
4829
4845
|
enum PollContentType {
|
package/dist/index.d.ts
CHANGED
|
@@ -65457,6 +65457,12 @@ export namespace waproto {
|
|
|
65457
65457
|
/** MusicData isAvailableForConsumption. */
|
|
65458
65458
|
isAvailableForConsumption?: (boolean|null);
|
|
65459
65459
|
|
|
65460
|
+
/** MusicData lyrics. */
|
|
65461
|
+
lyrics: waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties[];
|
|
65462
|
+
|
|
65463
|
+
/** MusicData lyricsConfirmedAtS. */
|
|
65464
|
+
lyricsConfirmedAtS?: (number|Long|null);
|
|
65465
|
+
|
|
65460
65466
|
/**
|
|
65461
65467
|
* Creates a new MusicData instance using the specified properties.
|
|
65462
65468
|
* @param [properties] Properties to set
|
|
@@ -65595,12 +65601,288 @@ export namespace waproto {
|
|
|
65595
65601
|
/** MusicData isAvailableForConsumption */
|
|
65596
65602
|
isAvailableForConsumption?: (boolean|null);
|
|
65597
65603
|
|
|
65604
|
+
/** MusicData lyrics */
|
|
65605
|
+
lyrics?: (waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties[]|null);
|
|
65606
|
+
|
|
65607
|
+
/** MusicData lyricsConfirmedAtS */
|
|
65608
|
+
lyricsConfirmedAtS?: (number|Long|null);
|
|
65609
|
+
|
|
65598
65610
|
/** Unknown fields preserved while decoding when enabled */
|
|
65599
65611
|
$unknowns?: Uint8Array[];
|
|
65600
65612
|
}
|
|
65601
65613
|
|
|
65602
65614
|
/** Shape of a MusicData. */
|
|
65603
65615
|
type $Shape = waproto.MsgOpaqueData.MusicData.$Properties;
|
|
65616
|
+
|
|
65617
|
+
/**
|
|
65618
|
+
* Properties of a LyricsLine.
|
|
65619
|
+
* @deprecated Use waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties instead.
|
|
65620
|
+
*/
|
|
65621
|
+
interface ILyricsLine extends waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties {
|
|
65622
|
+
}
|
|
65623
|
+
|
|
65624
|
+
/** Represents a LyricsLine. */
|
|
65625
|
+
class LyricsLine {
|
|
65626
|
+
|
|
65627
|
+
/**
|
|
65628
|
+
* Constructs a new LyricsLine.
|
|
65629
|
+
* @param [properties] Properties to set
|
|
65630
|
+
*/
|
|
65631
|
+
constructor(properties?: waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties);
|
|
65632
|
+
|
|
65633
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
65634
|
+
$unknowns?: Uint8Array[];
|
|
65635
|
+
|
|
65636
|
+
/** LyricsLine startTimeMs. */
|
|
65637
|
+
startTimeMs?: (number|null);
|
|
65638
|
+
|
|
65639
|
+
/** LyricsLine endTimeMs. */
|
|
65640
|
+
endTimeMs?: (number|null);
|
|
65641
|
+
|
|
65642
|
+
/** LyricsLine text. */
|
|
65643
|
+
text?: (string|null);
|
|
65644
|
+
|
|
65645
|
+
/** LyricsLine wordOffsets. */
|
|
65646
|
+
wordOffsets: waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties[];
|
|
65647
|
+
|
|
65648
|
+
/**
|
|
65649
|
+
* Creates a new LyricsLine instance using the specified properties.
|
|
65650
|
+
* @param [properties] Properties to set
|
|
65651
|
+
* @returns LyricsLine instance
|
|
65652
|
+
*/
|
|
65653
|
+
static create(properties: waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape): waproto.MsgOpaqueData.MusicData.LyricsLine & waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape;
|
|
65654
|
+
static create(properties?: waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties): waproto.MsgOpaqueData.MusicData.LyricsLine;
|
|
65655
|
+
|
|
65656
|
+
/**
|
|
65657
|
+
* Encodes the specified LyricsLine message. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.LyricsLine.verify|verify} messages.
|
|
65658
|
+
* @param message LyricsLine message or plain object to encode
|
|
65659
|
+
* @param [writer] Writer to encode to
|
|
65660
|
+
* @returns Writer
|
|
65661
|
+
*/
|
|
65662
|
+
static encode(message: waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
65663
|
+
|
|
65664
|
+
/**
|
|
65665
|
+
* Encodes the specified LyricsLine message, length delimited. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.LyricsLine.verify|verify} messages.
|
|
65666
|
+
* @param message LyricsLine message or plain object to encode
|
|
65667
|
+
* @param [writer] Writer to encode to
|
|
65668
|
+
* @returns Writer
|
|
65669
|
+
*/
|
|
65670
|
+
static encodeDelimited(message: waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
65671
|
+
|
|
65672
|
+
/**
|
|
65673
|
+
* Decodes a LyricsLine message from the specified reader or buffer.
|
|
65674
|
+
* @param reader Reader or buffer to decode from
|
|
65675
|
+
* @param [length] Message length if known beforehand
|
|
65676
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine & waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape} LyricsLine
|
|
65677
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65678
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65679
|
+
*/
|
|
65680
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.MsgOpaqueData.MusicData.LyricsLine & waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape;
|
|
65681
|
+
|
|
65682
|
+
/**
|
|
65683
|
+
* Decodes a LyricsLine message from the specified reader or buffer, length delimited.
|
|
65684
|
+
* @param reader Reader or buffer to decode from
|
|
65685
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine & waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape} LyricsLine
|
|
65686
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65687
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65688
|
+
*/
|
|
65689
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.MsgOpaqueData.MusicData.LyricsLine & waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape;
|
|
65690
|
+
|
|
65691
|
+
/**
|
|
65692
|
+
* Verifies a LyricsLine message.
|
|
65693
|
+
* @param message Plain object to verify
|
|
65694
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
65695
|
+
*/
|
|
65696
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
65697
|
+
|
|
65698
|
+
/**
|
|
65699
|
+
* Creates a LyricsLine message from a plain object. Also converts values to their respective internal types.
|
|
65700
|
+
* @param object Plain object
|
|
65701
|
+
* @returns LyricsLine
|
|
65702
|
+
*/
|
|
65703
|
+
static fromObject(object: { [k: string]: any }): waproto.MsgOpaqueData.MusicData.LyricsLine;
|
|
65704
|
+
|
|
65705
|
+
/**
|
|
65706
|
+
* Creates a plain object from a LyricsLine message. Also converts values to other types if specified.
|
|
65707
|
+
* @param message LyricsLine
|
|
65708
|
+
* @param [options] Conversion options
|
|
65709
|
+
* @returns Plain object
|
|
65710
|
+
*/
|
|
65711
|
+
static toObject(message: waproto.MsgOpaqueData.MusicData.LyricsLine, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
65712
|
+
|
|
65713
|
+
/**
|
|
65714
|
+
* Converts this LyricsLine to JSON.
|
|
65715
|
+
* @returns JSON object
|
|
65716
|
+
*/
|
|
65717
|
+
toJSON(): { [k: string]: any };
|
|
65718
|
+
|
|
65719
|
+
/**
|
|
65720
|
+
* Gets the type url for LyricsLine
|
|
65721
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
65722
|
+
* @returns The type url
|
|
65723
|
+
*/
|
|
65724
|
+
static getTypeUrl(prefix?: string): string;
|
|
65725
|
+
}
|
|
65726
|
+
|
|
65727
|
+
namespace LyricsLine {
|
|
65728
|
+
|
|
65729
|
+
/** Properties of a LyricsLine. */
|
|
65730
|
+
interface $Properties {
|
|
65731
|
+
|
|
65732
|
+
/** LyricsLine startTimeMs */
|
|
65733
|
+
startTimeMs?: (number|null);
|
|
65734
|
+
|
|
65735
|
+
/** LyricsLine endTimeMs */
|
|
65736
|
+
endTimeMs?: (number|null);
|
|
65737
|
+
|
|
65738
|
+
/** LyricsLine text */
|
|
65739
|
+
text?: (string|null);
|
|
65740
|
+
|
|
65741
|
+
/** LyricsLine wordOffsets */
|
|
65742
|
+
wordOffsets?: (waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties[]|null);
|
|
65743
|
+
|
|
65744
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
65745
|
+
$unknowns?: Uint8Array[];
|
|
65746
|
+
}
|
|
65747
|
+
|
|
65748
|
+
/** Shape of a LyricsLine. */
|
|
65749
|
+
type $Shape = waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties;
|
|
65750
|
+
|
|
65751
|
+
/**
|
|
65752
|
+
* Properties of a WordOffset.
|
|
65753
|
+
* @deprecated Use waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties instead.
|
|
65754
|
+
*/
|
|
65755
|
+
interface IWordOffset extends waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties {
|
|
65756
|
+
}
|
|
65757
|
+
|
|
65758
|
+
/** Represents a WordOffset. */
|
|
65759
|
+
class WordOffset {
|
|
65760
|
+
|
|
65761
|
+
/**
|
|
65762
|
+
* Constructs a new WordOffset.
|
|
65763
|
+
* @param [properties] Properties to set
|
|
65764
|
+
*/
|
|
65765
|
+
constructor(properties?: waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties);
|
|
65766
|
+
|
|
65767
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
65768
|
+
$unknowns?: Uint8Array[];
|
|
65769
|
+
|
|
65770
|
+
/** WordOffset startIndex. */
|
|
65771
|
+
startIndex?: (number|null);
|
|
65772
|
+
|
|
65773
|
+
/** WordOffset endIndex. */
|
|
65774
|
+
endIndex?: (number|null);
|
|
65775
|
+
|
|
65776
|
+
/** WordOffset startOffsetMs. */
|
|
65777
|
+
startOffsetMs?: (number|null);
|
|
65778
|
+
|
|
65779
|
+
/** WordOffset endOffsetMs. */
|
|
65780
|
+
endOffsetMs?: (number|null);
|
|
65781
|
+
|
|
65782
|
+
/**
|
|
65783
|
+
* Creates a new WordOffset instance using the specified properties.
|
|
65784
|
+
* @param [properties] Properties to set
|
|
65785
|
+
* @returns WordOffset instance
|
|
65786
|
+
*/
|
|
65787
|
+
static create(properties: waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape): waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset & waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape;
|
|
65788
|
+
static create(properties?: waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties): waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset;
|
|
65789
|
+
|
|
65790
|
+
/**
|
|
65791
|
+
* Encodes the specified WordOffset message. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.verify|verify} messages.
|
|
65792
|
+
* @param message WordOffset message or plain object to encode
|
|
65793
|
+
* @param [writer] Writer to encode to
|
|
65794
|
+
* @returns Writer
|
|
65795
|
+
*/
|
|
65796
|
+
static encode(message: waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
65797
|
+
|
|
65798
|
+
/**
|
|
65799
|
+
* Encodes the specified WordOffset message, length delimited. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.verify|verify} messages.
|
|
65800
|
+
* @param message WordOffset message or plain object to encode
|
|
65801
|
+
* @param [writer] Writer to encode to
|
|
65802
|
+
* @returns Writer
|
|
65803
|
+
*/
|
|
65804
|
+
static encodeDelimited(message: waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
65805
|
+
|
|
65806
|
+
/**
|
|
65807
|
+
* Decodes a WordOffset message from the specified reader or buffer.
|
|
65808
|
+
* @param reader Reader or buffer to decode from
|
|
65809
|
+
* @param [length] Message length if known beforehand
|
|
65810
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset & waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape} WordOffset
|
|
65811
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65812
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65813
|
+
*/
|
|
65814
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset & waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape;
|
|
65815
|
+
|
|
65816
|
+
/**
|
|
65817
|
+
* Decodes a WordOffset message from the specified reader or buffer, length delimited.
|
|
65818
|
+
* @param reader Reader or buffer to decode from
|
|
65819
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset & waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape} WordOffset
|
|
65820
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65821
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65822
|
+
*/
|
|
65823
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset & waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape;
|
|
65824
|
+
|
|
65825
|
+
/**
|
|
65826
|
+
* Verifies a WordOffset message.
|
|
65827
|
+
* @param message Plain object to verify
|
|
65828
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
65829
|
+
*/
|
|
65830
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
65831
|
+
|
|
65832
|
+
/**
|
|
65833
|
+
* Creates a WordOffset message from a plain object. Also converts values to their respective internal types.
|
|
65834
|
+
* @param object Plain object
|
|
65835
|
+
* @returns WordOffset
|
|
65836
|
+
*/
|
|
65837
|
+
static fromObject(object: { [k: string]: any }): waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset;
|
|
65838
|
+
|
|
65839
|
+
/**
|
|
65840
|
+
* Creates a plain object from a WordOffset message. Also converts values to other types if specified.
|
|
65841
|
+
* @param message WordOffset
|
|
65842
|
+
* @param [options] Conversion options
|
|
65843
|
+
* @returns Plain object
|
|
65844
|
+
*/
|
|
65845
|
+
static toObject(message: waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
65846
|
+
|
|
65847
|
+
/**
|
|
65848
|
+
* Converts this WordOffset to JSON.
|
|
65849
|
+
* @returns JSON object
|
|
65850
|
+
*/
|
|
65851
|
+
toJSON(): { [k: string]: any };
|
|
65852
|
+
|
|
65853
|
+
/**
|
|
65854
|
+
* Gets the type url for WordOffset
|
|
65855
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
65856
|
+
* @returns The type url
|
|
65857
|
+
*/
|
|
65858
|
+
static getTypeUrl(prefix?: string): string;
|
|
65859
|
+
}
|
|
65860
|
+
|
|
65861
|
+
namespace WordOffset {
|
|
65862
|
+
|
|
65863
|
+
/** Properties of a WordOffset. */
|
|
65864
|
+
interface $Properties {
|
|
65865
|
+
|
|
65866
|
+
/** WordOffset startIndex */
|
|
65867
|
+
startIndex?: (number|null);
|
|
65868
|
+
|
|
65869
|
+
/** WordOffset endIndex */
|
|
65870
|
+
endIndex?: (number|null);
|
|
65871
|
+
|
|
65872
|
+
/** WordOffset startOffsetMs */
|
|
65873
|
+
startOffsetMs?: (number|null);
|
|
65874
|
+
|
|
65875
|
+
/** WordOffset endOffsetMs */
|
|
65876
|
+
endOffsetMs?: (number|null);
|
|
65877
|
+
|
|
65878
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
65879
|
+
$unknowns?: Uint8Array[];
|
|
65880
|
+
}
|
|
65881
|
+
|
|
65882
|
+
/** Shape of a WordOffset. */
|
|
65883
|
+
type $Shape = waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties;
|
|
65884
|
+
}
|
|
65885
|
+
}
|
|
65604
65886
|
}
|
|
65605
65887
|
|
|
65606
65888
|
/** PollContentType enum. */
|
package/dist/index.js
CHANGED
|
@@ -197427,6 +197427,8 @@ $root.waproto = (function() {
|
|
|
197427
197427
|
* @property {Uint8Array|null} [artworkMediaKey] MusicData artworkMediaKey
|
|
197428
197428
|
* @property {number|Long|null} [consumptionCheckedAtS] MusicData consumptionCheckedAtS
|
|
197429
197429
|
* @property {boolean|null} [isAvailableForConsumption] MusicData isAvailableForConsumption
|
|
197430
|
+
* @property {Array.<waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties>|null} [lyrics] MusicData lyrics
|
|
197431
|
+
* @property {number|Long|null} [lyricsConfirmedAtS] MusicData lyricsConfirmedAtS
|
|
197430
197432
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
197431
197433
|
*/
|
|
197432
197434
|
|
|
@@ -197452,6 +197454,7 @@ $root.waproto = (function() {
|
|
|
197452
197454
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
197453
197455
|
*/
|
|
197454
197456
|
var MusicData = function (properties) {
|
|
197457
|
+
this.lyrics = [];
|
|
197455
197458
|
if (properties)
|
|
197456
197459
|
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
197457
197460
|
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
@@ -197602,6 +197605,22 @@ $root.waproto = (function() {
|
|
|
197602
197605
|
*/
|
|
197603
197606
|
MusicData.prototype.isAvailableForConsumption = null;
|
|
197604
197607
|
|
|
197608
|
+
/**
|
|
197609
|
+
* MusicData lyrics.
|
|
197610
|
+
* @member {Array.<waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties>} lyrics
|
|
197611
|
+
* @memberof waproto.MsgOpaqueData.MusicData
|
|
197612
|
+
* @instance
|
|
197613
|
+
*/
|
|
197614
|
+
MusicData.prototype.lyrics = $util.emptyArray;
|
|
197615
|
+
|
|
197616
|
+
/**
|
|
197617
|
+
* MusicData lyricsConfirmedAtS.
|
|
197618
|
+
* @member {number|Long|null|undefined} lyricsConfirmedAtS
|
|
197619
|
+
* @memberof waproto.MsgOpaqueData.MusicData
|
|
197620
|
+
* @instance
|
|
197621
|
+
*/
|
|
197622
|
+
MusicData.prototype.lyricsConfirmedAtS = null;
|
|
197623
|
+
|
|
197605
197624
|
// OneOf field names bound to virtual getters and setters
|
|
197606
197625
|
var $oneOfFields;
|
|
197607
197626
|
|
|
@@ -197713,6 +197732,12 @@ $root.waproto = (function() {
|
|
|
197713
197732
|
set: $util.oneOfSetter($oneOfFields)
|
|
197714
197733
|
});
|
|
197715
197734
|
|
|
197735
|
+
// Virtual OneOf for proto3 optional field
|
|
197736
|
+
$Object.defineProperty(MusicData.prototype, "_lyricsConfirmedAtS", {
|
|
197737
|
+
get: $util.oneOfGetter($oneOfFields = ["lyricsConfirmedAtS"]),
|
|
197738
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
197739
|
+
});
|
|
197740
|
+
|
|
197716
197741
|
/**
|
|
197717
197742
|
* Creates a new MusicData instance using the specified properties.
|
|
197718
197743
|
* @function create
|
|
@@ -197781,6 +197806,11 @@ $root.waproto = (function() {
|
|
|
197781
197806
|
writer.uint32(/* id 17, wireType 0 =*/136).int64(message.consumptionCheckedAtS);
|
|
197782
197807
|
if (message.isAvailableForConsumption != null && $Object.hasOwnProperty.call(message, "isAvailableForConsumption"))
|
|
197783
197808
|
writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isAvailableForConsumption);
|
|
197809
|
+
if (message.lyrics != null && message.lyrics.length)
|
|
197810
|
+
for (var i = 0; i < message.lyrics.length; ++i)
|
|
197811
|
+
$root.waproto.MsgOpaqueData.MusicData.LyricsLine.encode(message.lyrics[i], writer.uint32(/* id 19, wireType 2 =*/154).fork(), _depth + 1).ldelim();
|
|
197812
|
+
if (message.lyricsConfirmedAtS != null && $Object.hasOwnProperty.call(message, "lyricsConfirmedAtS"))
|
|
197813
|
+
writer.uint32(/* id 20, wireType 0 =*/160).int64(message.lyricsConfirmedAtS);
|
|
197784
197814
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
197785
197815
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
197786
197816
|
writer.raw(message.$unknowns[i]);
|
|
@@ -197964,6 +197994,21 @@ $root.waproto = (function() {
|
|
|
197964
197994
|
message._isAvailableForConsumption = "isAvailableForConsumption";
|
|
197965
197995
|
continue;
|
|
197966
197996
|
}
|
|
197997
|
+
case 19: {
|
|
197998
|
+
if (wireType !== 2)
|
|
197999
|
+
break;
|
|
198000
|
+
if (!(message.lyrics && message.lyrics.length))
|
|
198001
|
+
message.lyrics = [];
|
|
198002
|
+
message.lyrics.push($root.waproto.MsgOpaqueData.MusicData.LyricsLine.decode(reader, reader.size(), $undefined, _depth + 1));
|
|
198003
|
+
continue;
|
|
198004
|
+
}
|
|
198005
|
+
case 20: {
|
|
198006
|
+
if (wireType !== 0)
|
|
198007
|
+
break;
|
|
198008
|
+
message.lyricsConfirmedAtS = reader.int64();
|
|
198009
|
+
message._lyricsConfirmedAtS = "lyricsConfirmedAtS";
|
|
198010
|
+
continue;
|
|
198011
|
+
}
|
|
197967
198012
|
}
|
|
197968
198013
|
reader.skipType(wireType, _depth, tag);
|
|
197969
198014
|
if (!reader.discardUnknown) {
|
|
@@ -198103,6 +198148,20 @@ $root.waproto = (function() {
|
|
|
198103
198148
|
if (typeof message.isAvailableForConsumption !== "boolean")
|
|
198104
198149
|
return "isAvailableForConsumption: boolean expected";
|
|
198105
198150
|
}
|
|
198151
|
+
if (message.lyrics != null && $Object.hasOwnProperty.call(message, "lyrics")) {
|
|
198152
|
+
if (!$Array.isArray(message.lyrics))
|
|
198153
|
+
return "lyrics: array expected";
|
|
198154
|
+
for (var i = 0; i < message.lyrics.length; ++i) {
|
|
198155
|
+
var error = $root.waproto.MsgOpaqueData.MusicData.LyricsLine.verify(message.lyrics[i], _depth + 1);
|
|
198156
|
+
if (error)
|
|
198157
|
+
return "lyrics." + error;
|
|
198158
|
+
}
|
|
198159
|
+
}
|
|
198160
|
+
if (message.lyricsConfirmedAtS != null && $Object.hasOwnProperty.call(message, "lyricsConfirmedAtS")) {
|
|
198161
|
+
properties._lyricsConfirmedAtS = 1;
|
|
198162
|
+
if (!$util.isInteger(message.lyricsConfirmedAtS) && !(message.lyricsConfirmedAtS && $util.isInteger(message.lyricsConfirmedAtS.low) && $util.isInteger(message.lyricsConfirmedAtS.high)))
|
|
198163
|
+
return "lyricsConfirmedAtS: integer|Long expected";
|
|
198164
|
+
}
|
|
198106
198165
|
return null;
|
|
198107
198166
|
};
|
|
198108
198167
|
|
|
@@ -198179,6 +198238,25 @@ $root.waproto = (function() {
|
|
|
198179
198238
|
message.consumptionCheckedAtS = new $util.LongBits(object.consumptionCheckedAtS.low >>> 0, object.consumptionCheckedAtS.high >>> 0).toNumber();
|
|
198180
198239
|
if (object.isAvailableForConsumption != null)
|
|
198181
198240
|
message.isAvailableForConsumption = $Boolean(object.isAvailableForConsumption);
|
|
198241
|
+
if (object.lyrics) {
|
|
198242
|
+
if (!$Array.isArray(object.lyrics))
|
|
198243
|
+
throw $TypeError(".waproto.MsgOpaqueData.MusicData.lyrics: array expected");
|
|
198244
|
+
message.lyrics = $Array(object.lyrics.length);
|
|
198245
|
+
for (var i = 0; i < object.lyrics.length; ++i) {
|
|
198246
|
+
if (!$util.isObject(object.lyrics[i]))
|
|
198247
|
+
throw $TypeError(".waproto.MsgOpaqueData.MusicData.lyrics: object expected");
|
|
198248
|
+
message.lyrics[i] = $root.waproto.MsgOpaqueData.MusicData.LyricsLine.fromObject(object.lyrics[i], _depth + 1);
|
|
198249
|
+
}
|
|
198250
|
+
}
|
|
198251
|
+
if (object.lyricsConfirmedAtS != null)
|
|
198252
|
+
if ($util.Long)
|
|
198253
|
+
message.lyricsConfirmedAtS = $util.Long.fromValue(object.lyricsConfirmedAtS, false);
|
|
198254
|
+
else if (typeof object.lyricsConfirmedAtS === "string")
|
|
198255
|
+
message.lyricsConfirmedAtS = $parseInt(object.lyricsConfirmedAtS, 10);
|
|
198256
|
+
else if (typeof object.lyricsConfirmedAtS === "number")
|
|
198257
|
+
message.lyricsConfirmedAtS = object.lyricsConfirmedAtS;
|
|
198258
|
+
else if (typeof object.lyricsConfirmedAtS === "object")
|
|
198259
|
+
message.lyricsConfirmedAtS = new $util.LongBits(object.lyricsConfirmedAtS.low >>> 0, object.lyricsConfirmedAtS.high >>> 0).toNumber();
|
|
198182
198260
|
return message;
|
|
198183
198261
|
};
|
|
198184
198262
|
|
|
@@ -198199,6 +198277,8 @@ $root.waproto = (function() {
|
|
|
198199
198277
|
if (_depth > $util.recursionLimit)
|
|
198200
198278
|
throw $Error("max depth exceeded");
|
|
198201
198279
|
var object = {};
|
|
198280
|
+
if (options.arrays || options.defaults)
|
|
198281
|
+
object.lyrics = [];
|
|
198202
198282
|
if (message.musicContentMediaId != null && $Object.hasOwnProperty.call(message, "musicContentMediaId"))
|
|
198203
198283
|
object.musicContentMediaId = message.musicContentMediaId;
|
|
198204
198284
|
if (message.songId != null && $Object.hasOwnProperty.call(message, "songId"))
|
|
@@ -198240,6 +198320,18 @@ $root.waproto = (function() {
|
|
|
198240
198320
|
object.consumptionCheckedAtS = options.longs === $String ? $util.Long.prototype.toString.call(message.consumptionCheckedAtS) : options.longs === $Number ? new $util.LongBits(message.consumptionCheckedAtS.low >>> 0, message.consumptionCheckedAtS.high >>> 0).toNumber() : message.consumptionCheckedAtS;
|
|
198241
198321
|
if (message.isAvailableForConsumption != null && $Object.hasOwnProperty.call(message, "isAvailableForConsumption"))
|
|
198242
198322
|
object.isAvailableForConsumption = message.isAvailableForConsumption;
|
|
198323
|
+
if (message.lyrics && message.lyrics.length) {
|
|
198324
|
+
object.lyrics = $Array(message.lyrics.length);
|
|
198325
|
+
for (var j = 0; j < message.lyrics.length; ++j)
|
|
198326
|
+
object.lyrics[j] = $root.waproto.MsgOpaqueData.MusicData.LyricsLine.toObject(message.lyrics[j], options, _depth + 1);
|
|
198327
|
+
}
|
|
198328
|
+
if (message.lyricsConfirmedAtS != null && $Object.hasOwnProperty.call(message, "lyricsConfirmedAtS"))
|
|
198329
|
+
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
198330
|
+
object.lyricsConfirmedAtS = typeof message.lyricsConfirmedAtS === "number" ? $BigInt(message.lyricsConfirmedAtS) : $util.Long.fromBits(message.lyricsConfirmedAtS.low >>> 0, message.lyricsConfirmedAtS.high >>> 0, false).toBigInt();
|
|
198331
|
+
else if (typeof message.lyricsConfirmedAtS === "number")
|
|
198332
|
+
object.lyricsConfirmedAtS = options.longs === $String ? $String(message.lyricsConfirmedAtS) : message.lyricsConfirmedAtS;
|
|
198333
|
+
else
|
|
198334
|
+
object.lyricsConfirmedAtS = options.longs === $String ? $util.Long.prototype.toString.call(message.lyricsConfirmedAtS) : options.longs === $Number ? new $util.LongBits(message.lyricsConfirmedAtS.low >>> 0, message.lyricsConfirmedAtS.high >>> 0).toNumber() : message.lyricsConfirmedAtS;
|
|
198243
198335
|
return object;
|
|
198244
198336
|
};
|
|
198245
198337
|
|
|
@@ -198268,6 +198360,782 @@ $root.waproto = (function() {
|
|
|
198268
198360
|
return prefix + "/waproto.MsgOpaqueData.MusicData";
|
|
198269
198361
|
};
|
|
198270
198362
|
|
|
198363
|
+
MusicData.LyricsLine = (function() {
|
|
198364
|
+
|
|
198365
|
+
/**
|
|
198366
|
+
* Properties of a LyricsLine.
|
|
198367
|
+
* @typedef {Object} waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties
|
|
198368
|
+
* @property {number|null} [startTimeMs] LyricsLine startTimeMs
|
|
198369
|
+
* @property {number|null} [endTimeMs] LyricsLine endTimeMs
|
|
198370
|
+
* @property {string|null} [text] LyricsLine text
|
|
198371
|
+
* @property {Array.<waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties>|null} [wordOffsets] LyricsLine wordOffsets
|
|
198372
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
198373
|
+
*/
|
|
198374
|
+
|
|
198375
|
+
/**
|
|
198376
|
+
* Properties of a LyricsLine.
|
|
198377
|
+
* @memberof waproto.MsgOpaqueData.MusicData
|
|
198378
|
+
* @interface ILyricsLine
|
|
198379
|
+
* @augments waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties
|
|
198380
|
+
* @deprecated Use waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties instead.
|
|
198381
|
+
*/
|
|
198382
|
+
|
|
198383
|
+
/**
|
|
198384
|
+
* Shape of a LyricsLine.
|
|
198385
|
+
* @typedef {waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties} waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape
|
|
198386
|
+
*/
|
|
198387
|
+
|
|
198388
|
+
/**
|
|
198389
|
+
* Constructs a new LyricsLine.
|
|
198390
|
+
* @memberof waproto.MsgOpaqueData.MusicData
|
|
198391
|
+
* @classdesc Represents a LyricsLine.
|
|
198392
|
+
* @constructor
|
|
198393
|
+
* @param {waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties=} [properties] Properties to set
|
|
198394
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
198395
|
+
*/
|
|
198396
|
+
var LyricsLine = function (properties) {
|
|
198397
|
+
this.wordOffsets = [];
|
|
198398
|
+
if (properties)
|
|
198399
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
198400
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
198401
|
+
this[keys[i]] = properties[keys[i]];
|
|
198402
|
+
};
|
|
198403
|
+
|
|
198404
|
+
/**
|
|
198405
|
+
* LyricsLine startTimeMs.
|
|
198406
|
+
* @member {number|null|undefined} startTimeMs
|
|
198407
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198408
|
+
* @instance
|
|
198409
|
+
*/
|
|
198410
|
+
LyricsLine.prototype.startTimeMs = null;
|
|
198411
|
+
|
|
198412
|
+
/**
|
|
198413
|
+
* LyricsLine endTimeMs.
|
|
198414
|
+
* @member {number|null|undefined} endTimeMs
|
|
198415
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198416
|
+
* @instance
|
|
198417
|
+
*/
|
|
198418
|
+
LyricsLine.prototype.endTimeMs = null;
|
|
198419
|
+
|
|
198420
|
+
/**
|
|
198421
|
+
* LyricsLine text.
|
|
198422
|
+
* @member {string|null|undefined} text
|
|
198423
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198424
|
+
* @instance
|
|
198425
|
+
*/
|
|
198426
|
+
LyricsLine.prototype.text = null;
|
|
198427
|
+
|
|
198428
|
+
/**
|
|
198429
|
+
* LyricsLine wordOffsets.
|
|
198430
|
+
* @member {Array.<waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties>} wordOffsets
|
|
198431
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198432
|
+
* @instance
|
|
198433
|
+
*/
|
|
198434
|
+
LyricsLine.prototype.wordOffsets = $util.emptyArray;
|
|
198435
|
+
|
|
198436
|
+
// OneOf field names bound to virtual getters and setters
|
|
198437
|
+
var $oneOfFields;
|
|
198438
|
+
|
|
198439
|
+
// Virtual OneOf for proto3 optional field
|
|
198440
|
+
$Object.defineProperty(LyricsLine.prototype, "_startTimeMs", {
|
|
198441
|
+
get: $util.oneOfGetter($oneOfFields = ["startTimeMs"]),
|
|
198442
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
198443
|
+
});
|
|
198444
|
+
|
|
198445
|
+
// Virtual OneOf for proto3 optional field
|
|
198446
|
+
$Object.defineProperty(LyricsLine.prototype, "_endTimeMs", {
|
|
198447
|
+
get: $util.oneOfGetter($oneOfFields = ["endTimeMs"]),
|
|
198448
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
198449
|
+
});
|
|
198450
|
+
|
|
198451
|
+
// Virtual OneOf for proto3 optional field
|
|
198452
|
+
$Object.defineProperty(LyricsLine.prototype, "_text", {
|
|
198453
|
+
get: $util.oneOfGetter($oneOfFields = ["text"]),
|
|
198454
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
198455
|
+
});
|
|
198456
|
+
|
|
198457
|
+
/**
|
|
198458
|
+
* Creates a new LyricsLine instance using the specified properties.
|
|
198459
|
+
* @function create
|
|
198460
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198461
|
+
* @static
|
|
198462
|
+
* @param {waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties=} [properties] Properties to set
|
|
198463
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine} LyricsLine instance
|
|
198464
|
+
* @type {{
|
|
198465
|
+
* (properties: waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape): waproto.MsgOpaqueData.MusicData.LyricsLine & waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape;
|
|
198466
|
+
* (properties?: waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties): waproto.MsgOpaqueData.MusicData.LyricsLine;
|
|
198467
|
+
* }}
|
|
198468
|
+
*/
|
|
198469
|
+
LyricsLine.create = function(properties) {
|
|
198470
|
+
return new LyricsLine(properties);
|
|
198471
|
+
};
|
|
198472
|
+
|
|
198473
|
+
/**
|
|
198474
|
+
* Encodes the specified LyricsLine message. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.LyricsLine.verify|verify} messages.
|
|
198475
|
+
* @function encode
|
|
198476
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198477
|
+
* @static
|
|
198478
|
+
* @param {waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties} message LyricsLine message or plain object to encode
|
|
198479
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
198480
|
+
* @returns {$protobuf.Writer} Writer
|
|
198481
|
+
*/
|
|
198482
|
+
LyricsLine.encode = function (message, writer, _depth) {
|
|
198483
|
+
if (!writer)
|
|
198484
|
+
writer = $Writer.create();
|
|
198485
|
+
if (_depth === $undefined)
|
|
198486
|
+
_depth = 0;
|
|
198487
|
+
if (_depth > $util.recursionLimit)
|
|
198488
|
+
throw $Error("max depth exceeded");
|
|
198489
|
+
if (message.startTimeMs != null && $Object.hasOwnProperty.call(message, "startTimeMs"))
|
|
198490
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.startTimeMs);
|
|
198491
|
+
if (message.endTimeMs != null && $Object.hasOwnProperty.call(message, "endTimeMs"))
|
|
198492
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.endTimeMs);
|
|
198493
|
+
if (message.text != null && $Object.hasOwnProperty.call(message, "text"))
|
|
198494
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.text);
|
|
198495
|
+
if (message.wordOffsets != null && message.wordOffsets.length)
|
|
198496
|
+
for (var i = 0; i < message.wordOffsets.length; ++i)
|
|
198497
|
+
$root.waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.encode(message.wordOffsets[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), _depth + 1).ldelim();
|
|
198498
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
198499
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
198500
|
+
writer.raw(message.$unknowns[i]);
|
|
198501
|
+
return writer;
|
|
198502
|
+
};
|
|
198503
|
+
|
|
198504
|
+
/**
|
|
198505
|
+
* Encodes the specified LyricsLine message, length delimited. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.LyricsLine.verify|verify} messages.
|
|
198506
|
+
* @function encodeDelimited
|
|
198507
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198508
|
+
* @static
|
|
198509
|
+
* @param {waproto.MsgOpaqueData.MusicData.LyricsLine.$Properties} message LyricsLine message or plain object to encode
|
|
198510
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
198511
|
+
* @returns {$protobuf.Writer} Writer
|
|
198512
|
+
*/
|
|
198513
|
+
LyricsLine.encodeDelimited = function(message, writer) {
|
|
198514
|
+
return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
|
|
198515
|
+
};
|
|
198516
|
+
|
|
198517
|
+
/**
|
|
198518
|
+
* Decodes a LyricsLine message from the specified reader or buffer.
|
|
198519
|
+
* @function decode
|
|
198520
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198521
|
+
* @static
|
|
198522
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
198523
|
+
* @param {number} [length] Message length if known beforehand
|
|
198524
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine & waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape} LyricsLine
|
|
198525
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
198526
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
198527
|
+
*/
|
|
198528
|
+
LyricsLine.decode = function (reader, length, _end, _depth, _target) {
|
|
198529
|
+
if (!(reader instanceof $Reader))
|
|
198530
|
+
reader = $Reader.create(reader);
|
|
198531
|
+
if (_depth === $undefined)
|
|
198532
|
+
_depth = 0;
|
|
198533
|
+
if (_depth > $Reader.recursionLimit)
|
|
198534
|
+
throw $Error("max depth exceeded");
|
|
198535
|
+
var end, message;
|
|
198536
|
+
if (length === $undefined)
|
|
198537
|
+
end = reader.len;
|
|
198538
|
+
else {
|
|
198539
|
+
end = reader.pos + length;
|
|
198540
|
+
if (end > reader.len)
|
|
198541
|
+
throw $RangeError("index out of range");
|
|
198542
|
+
length = reader.len;
|
|
198543
|
+
reader.len = end;
|
|
198544
|
+
}
|
|
198545
|
+
message = _target || new $root.waproto.MsgOpaqueData.MusicData.LyricsLine();
|
|
198546
|
+
while (reader.pos < end) {
|
|
198547
|
+
var start = reader.pos;
|
|
198548
|
+
var tag = reader.tag();
|
|
198549
|
+
if (tag === _end) {
|
|
198550
|
+
_end = $undefined;
|
|
198551
|
+
break;
|
|
198552
|
+
}
|
|
198553
|
+
var wireType = tag & 7;
|
|
198554
|
+
switch (tag >>>= 3) {
|
|
198555
|
+
case 1: {
|
|
198556
|
+
if (wireType !== 0)
|
|
198557
|
+
break;
|
|
198558
|
+
message.startTimeMs = reader.int32();
|
|
198559
|
+
message._startTimeMs = "startTimeMs";
|
|
198560
|
+
continue;
|
|
198561
|
+
}
|
|
198562
|
+
case 2: {
|
|
198563
|
+
if (wireType !== 0)
|
|
198564
|
+
break;
|
|
198565
|
+
message.endTimeMs = reader.int32();
|
|
198566
|
+
message._endTimeMs = "endTimeMs";
|
|
198567
|
+
continue;
|
|
198568
|
+
}
|
|
198569
|
+
case 3: {
|
|
198570
|
+
if (wireType !== 2)
|
|
198571
|
+
break;
|
|
198572
|
+
message.text = reader.stringVerify();
|
|
198573
|
+
message._text = "text";
|
|
198574
|
+
continue;
|
|
198575
|
+
}
|
|
198576
|
+
case 4: {
|
|
198577
|
+
if (wireType !== 2)
|
|
198578
|
+
break;
|
|
198579
|
+
if (!(message.wordOffsets && message.wordOffsets.length))
|
|
198580
|
+
message.wordOffsets = [];
|
|
198581
|
+
message.wordOffsets.push($root.waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.decode(reader, reader.size(), $undefined, _depth + 1));
|
|
198582
|
+
continue;
|
|
198583
|
+
}
|
|
198584
|
+
}
|
|
198585
|
+
reader.skipType(wireType, _depth, tag);
|
|
198586
|
+
if (!reader.discardUnknown) {
|
|
198587
|
+
$util.makeProp(message, "$unknowns", false);
|
|
198588
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
198589
|
+
}
|
|
198590
|
+
}
|
|
198591
|
+
if (length !== $undefined) {
|
|
198592
|
+
if (reader.pos !== end)
|
|
198593
|
+
throw $RangeError("index out of range");
|
|
198594
|
+
reader.len = length;
|
|
198595
|
+
}
|
|
198596
|
+
if (_end !== $undefined)
|
|
198597
|
+
throw $Error("missing end group");
|
|
198598
|
+
return message;
|
|
198599
|
+
};
|
|
198600
|
+
|
|
198601
|
+
/**
|
|
198602
|
+
* Decodes a LyricsLine message from the specified reader or buffer, length delimited.
|
|
198603
|
+
* @function decodeDelimited
|
|
198604
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198605
|
+
* @static
|
|
198606
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
198607
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine & waproto.MsgOpaqueData.MusicData.LyricsLine.$Shape} LyricsLine
|
|
198608
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
198609
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
198610
|
+
*/
|
|
198611
|
+
LyricsLine.decodeDelimited = function(reader) {
|
|
198612
|
+
if (!(reader instanceof $Reader))
|
|
198613
|
+
reader = new $Reader(reader);
|
|
198614
|
+
return this.decode(reader, reader.size());
|
|
198615
|
+
};
|
|
198616
|
+
|
|
198617
|
+
/**
|
|
198618
|
+
* Verifies a LyricsLine message.
|
|
198619
|
+
* @function verify
|
|
198620
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198621
|
+
* @static
|
|
198622
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
198623
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
198624
|
+
*/
|
|
198625
|
+
LyricsLine.verify = function (message, _depth) {
|
|
198626
|
+
if (typeof message !== "object" || message === null)
|
|
198627
|
+
return "object expected";
|
|
198628
|
+
if (_depth === $undefined)
|
|
198629
|
+
_depth = 0;
|
|
198630
|
+
if (_depth > $util.recursionLimit)
|
|
198631
|
+
return "max depth exceeded";
|
|
198632
|
+
var properties = {};
|
|
198633
|
+
if (message.startTimeMs != null && $Object.hasOwnProperty.call(message, "startTimeMs")) {
|
|
198634
|
+
properties._startTimeMs = 1;
|
|
198635
|
+
if (!$util.isInteger(message.startTimeMs))
|
|
198636
|
+
return "startTimeMs: integer expected";
|
|
198637
|
+
}
|
|
198638
|
+
if (message.endTimeMs != null && $Object.hasOwnProperty.call(message, "endTimeMs")) {
|
|
198639
|
+
properties._endTimeMs = 1;
|
|
198640
|
+
if (!$util.isInteger(message.endTimeMs))
|
|
198641
|
+
return "endTimeMs: integer expected";
|
|
198642
|
+
}
|
|
198643
|
+
if (message.text != null && $Object.hasOwnProperty.call(message, "text")) {
|
|
198644
|
+
properties._text = 1;
|
|
198645
|
+
if (!$util.isString(message.text))
|
|
198646
|
+
return "text: string expected";
|
|
198647
|
+
}
|
|
198648
|
+
if (message.wordOffsets != null && $Object.hasOwnProperty.call(message, "wordOffsets")) {
|
|
198649
|
+
if (!$Array.isArray(message.wordOffsets))
|
|
198650
|
+
return "wordOffsets: array expected";
|
|
198651
|
+
for (var i = 0; i < message.wordOffsets.length; ++i) {
|
|
198652
|
+
var error = $root.waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.verify(message.wordOffsets[i], _depth + 1);
|
|
198653
|
+
if (error)
|
|
198654
|
+
return "wordOffsets." + error;
|
|
198655
|
+
}
|
|
198656
|
+
}
|
|
198657
|
+
return null;
|
|
198658
|
+
};
|
|
198659
|
+
|
|
198660
|
+
/**
|
|
198661
|
+
* Creates a LyricsLine message from a plain object. Also converts values to their respective internal types.
|
|
198662
|
+
* @function fromObject
|
|
198663
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198664
|
+
* @static
|
|
198665
|
+
* @param {Object.<string,*>} object Plain object
|
|
198666
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine} LyricsLine
|
|
198667
|
+
*/
|
|
198668
|
+
LyricsLine.fromObject = function (object, _depth) {
|
|
198669
|
+
if (object instanceof $root.waproto.MsgOpaqueData.MusicData.LyricsLine)
|
|
198670
|
+
return object;
|
|
198671
|
+
if (!$util.isObject(object))
|
|
198672
|
+
throw $TypeError(".waproto.MsgOpaqueData.MusicData.LyricsLine: object expected");
|
|
198673
|
+
if (_depth === $undefined)
|
|
198674
|
+
_depth = 0;
|
|
198675
|
+
if (_depth > $util.recursionLimit)
|
|
198676
|
+
throw $Error("max depth exceeded");
|
|
198677
|
+
var message = new $root.waproto.MsgOpaqueData.MusicData.LyricsLine();
|
|
198678
|
+
if (object.startTimeMs != null)
|
|
198679
|
+
message.startTimeMs = object.startTimeMs | 0;
|
|
198680
|
+
if (object.endTimeMs != null)
|
|
198681
|
+
message.endTimeMs = object.endTimeMs | 0;
|
|
198682
|
+
if (object.text != null)
|
|
198683
|
+
message.text = $String(object.text);
|
|
198684
|
+
if (object.wordOffsets) {
|
|
198685
|
+
if (!$Array.isArray(object.wordOffsets))
|
|
198686
|
+
throw $TypeError(".waproto.MsgOpaqueData.MusicData.LyricsLine.wordOffsets: array expected");
|
|
198687
|
+
message.wordOffsets = $Array(object.wordOffsets.length);
|
|
198688
|
+
for (var i = 0; i < object.wordOffsets.length; ++i) {
|
|
198689
|
+
if (!$util.isObject(object.wordOffsets[i]))
|
|
198690
|
+
throw $TypeError(".waproto.MsgOpaqueData.MusicData.LyricsLine.wordOffsets: object expected");
|
|
198691
|
+
message.wordOffsets[i] = $root.waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.fromObject(object.wordOffsets[i], _depth + 1);
|
|
198692
|
+
}
|
|
198693
|
+
}
|
|
198694
|
+
return message;
|
|
198695
|
+
};
|
|
198696
|
+
|
|
198697
|
+
/**
|
|
198698
|
+
* Creates a plain object from a LyricsLine message. Also converts values to other types if specified.
|
|
198699
|
+
* @function toObject
|
|
198700
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198701
|
+
* @static
|
|
198702
|
+
* @param {waproto.MsgOpaqueData.MusicData.LyricsLine} message LyricsLine
|
|
198703
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
198704
|
+
* @returns {Object.<string,*>} Plain object
|
|
198705
|
+
*/
|
|
198706
|
+
LyricsLine.toObject = function (message, options, _depth) {
|
|
198707
|
+
if (!options)
|
|
198708
|
+
options = {};
|
|
198709
|
+
if (_depth === $undefined)
|
|
198710
|
+
_depth = 0;
|
|
198711
|
+
if (_depth > $util.recursionLimit)
|
|
198712
|
+
throw $Error("max depth exceeded");
|
|
198713
|
+
var object = {};
|
|
198714
|
+
if (options.arrays || options.defaults)
|
|
198715
|
+
object.wordOffsets = [];
|
|
198716
|
+
if (message.startTimeMs != null && $Object.hasOwnProperty.call(message, "startTimeMs"))
|
|
198717
|
+
object.startTimeMs = message.startTimeMs;
|
|
198718
|
+
if (message.endTimeMs != null && $Object.hasOwnProperty.call(message, "endTimeMs"))
|
|
198719
|
+
object.endTimeMs = message.endTimeMs;
|
|
198720
|
+
if (message.text != null && $Object.hasOwnProperty.call(message, "text"))
|
|
198721
|
+
object.text = message.text;
|
|
198722
|
+
if (message.wordOffsets && message.wordOffsets.length) {
|
|
198723
|
+
object.wordOffsets = $Array(message.wordOffsets.length);
|
|
198724
|
+
for (var j = 0; j < message.wordOffsets.length; ++j)
|
|
198725
|
+
object.wordOffsets[j] = $root.waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.toObject(message.wordOffsets[j], options, _depth + 1);
|
|
198726
|
+
}
|
|
198727
|
+
return object;
|
|
198728
|
+
};
|
|
198729
|
+
|
|
198730
|
+
/**
|
|
198731
|
+
* Converts this LyricsLine to JSON.
|
|
198732
|
+
* @function toJSON
|
|
198733
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198734
|
+
* @instance
|
|
198735
|
+
* @returns {Object.<string,*>} JSON object
|
|
198736
|
+
*/
|
|
198737
|
+
LyricsLine.prototype.toJSON = function() {
|
|
198738
|
+
return LyricsLine.toObject(this, $protobuf.util.toJSONOptions);
|
|
198739
|
+
};
|
|
198740
|
+
|
|
198741
|
+
/**
|
|
198742
|
+
* Gets the type url for LyricsLine
|
|
198743
|
+
* @function getTypeUrl
|
|
198744
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198745
|
+
* @static
|
|
198746
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
198747
|
+
* @returns {string} The type url
|
|
198748
|
+
*/
|
|
198749
|
+
LyricsLine.getTypeUrl = function(prefix) {
|
|
198750
|
+
if (prefix === $undefined)
|
|
198751
|
+
prefix = "type.googleapis.com";
|
|
198752
|
+
return prefix + "/waproto.MsgOpaqueData.MusicData.LyricsLine";
|
|
198753
|
+
};
|
|
198754
|
+
|
|
198755
|
+
LyricsLine.WordOffset = (function() {
|
|
198756
|
+
|
|
198757
|
+
/**
|
|
198758
|
+
* Properties of a WordOffset.
|
|
198759
|
+
* @typedef {Object} waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties
|
|
198760
|
+
* @property {number|null} [startIndex] WordOffset startIndex
|
|
198761
|
+
* @property {number|null} [endIndex] WordOffset endIndex
|
|
198762
|
+
* @property {number|null} [startOffsetMs] WordOffset startOffsetMs
|
|
198763
|
+
* @property {number|null} [endOffsetMs] WordOffset endOffsetMs
|
|
198764
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
198765
|
+
*/
|
|
198766
|
+
|
|
198767
|
+
/**
|
|
198768
|
+
* Properties of a WordOffset.
|
|
198769
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198770
|
+
* @interface IWordOffset
|
|
198771
|
+
* @augments waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties
|
|
198772
|
+
* @deprecated Use waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties instead.
|
|
198773
|
+
*/
|
|
198774
|
+
|
|
198775
|
+
/**
|
|
198776
|
+
* Shape of a WordOffset.
|
|
198777
|
+
* @typedef {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties} waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape
|
|
198778
|
+
*/
|
|
198779
|
+
|
|
198780
|
+
/**
|
|
198781
|
+
* Constructs a new WordOffset.
|
|
198782
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine
|
|
198783
|
+
* @classdesc Represents a WordOffset.
|
|
198784
|
+
* @constructor
|
|
198785
|
+
* @param {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties=} [properties] Properties to set
|
|
198786
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
198787
|
+
*/
|
|
198788
|
+
var WordOffset = function (properties) {
|
|
198789
|
+
if (properties)
|
|
198790
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
198791
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
198792
|
+
this[keys[i]] = properties[keys[i]];
|
|
198793
|
+
};
|
|
198794
|
+
|
|
198795
|
+
/**
|
|
198796
|
+
* WordOffset startIndex.
|
|
198797
|
+
* @member {number|null|undefined} startIndex
|
|
198798
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
198799
|
+
* @instance
|
|
198800
|
+
*/
|
|
198801
|
+
WordOffset.prototype.startIndex = null;
|
|
198802
|
+
|
|
198803
|
+
/**
|
|
198804
|
+
* WordOffset endIndex.
|
|
198805
|
+
* @member {number|null|undefined} endIndex
|
|
198806
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
198807
|
+
* @instance
|
|
198808
|
+
*/
|
|
198809
|
+
WordOffset.prototype.endIndex = null;
|
|
198810
|
+
|
|
198811
|
+
/**
|
|
198812
|
+
* WordOffset startOffsetMs.
|
|
198813
|
+
* @member {number|null|undefined} startOffsetMs
|
|
198814
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
198815
|
+
* @instance
|
|
198816
|
+
*/
|
|
198817
|
+
WordOffset.prototype.startOffsetMs = null;
|
|
198818
|
+
|
|
198819
|
+
/**
|
|
198820
|
+
* WordOffset endOffsetMs.
|
|
198821
|
+
* @member {number|null|undefined} endOffsetMs
|
|
198822
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
198823
|
+
* @instance
|
|
198824
|
+
*/
|
|
198825
|
+
WordOffset.prototype.endOffsetMs = null;
|
|
198826
|
+
|
|
198827
|
+
// OneOf field names bound to virtual getters and setters
|
|
198828
|
+
var $oneOfFields;
|
|
198829
|
+
|
|
198830
|
+
// Virtual OneOf for proto3 optional field
|
|
198831
|
+
$Object.defineProperty(WordOffset.prototype, "_startIndex", {
|
|
198832
|
+
get: $util.oneOfGetter($oneOfFields = ["startIndex"]),
|
|
198833
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
198834
|
+
});
|
|
198835
|
+
|
|
198836
|
+
// Virtual OneOf for proto3 optional field
|
|
198837
|
+
$Object.defineProperty(WordOffset.prototype, "_endIndex", {
|
|
198838
|
+
get: $util.oneOfGetter($oneOfFields = ["endIndex"]),
|
|
198839
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
198840
|
+
});
|
|
198841
|
+
|
|
198842
|
+
// Virtual OneOf for proto3 optional field
|
|
198843
|
+
$Object.defineProperty(WordOffset.prototype, "_startOffsetMs", {
|
|
198844
|
+
get: $util.oneOfGetter($oneOfFields = ["startOffsetMs"]),
|
|
198845
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
198846
|
+
});
|
|
198847
|
+
|
|
198848
|
+
// Virtual OneOf for proto3 optional field
|
|
198849
|
+
$Object.defineProperty(WordOffset.prototype, "_endOffsetMs", {
|
|
198850
|
+
get: $util.oneOfGetter($oneOfFields = ["endOffsetMs"]),
|
|
198851
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
198852
|
+
});
|
|
198853
|
+
|
|
198854
|
+
/**
|
|
198855
|
+
* Creates a new WordOffset instance using the specified properties.
|
|
198856
|
+
* @function create
|
|
198857
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
198858
|
+
* @static
|
|
198859
|
+
* @param {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties=} [properties] Properties to set
|
|
198860
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset} WordOffset instance
|
|
198861
|
+
* @type {{
|
|
198862
|
+
* (properties: waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape): waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset & waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape;
|
|
198863
|
+
* (properties?: waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties): waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset;
|
|
198864
|
+
* }}
|
|
198865
|
+
*/
|
|
198866
|
+
WordOffset.create = function(properties) {
|
|
198867
|
+
return new WordOffset(properties);
|
|
198868
|
+
};
|
|
198869
|
+
|
|
198870
|
+
/**
|
|
198871
|
+
* Encodes the specified WordOffset message. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.verify|verify} messages.
|
|
198872
|
+
* @function encode
|
|
198873
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
198874
|
+
* @static
|
|
198875
|
+
* @param {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties} message WordOffset message or plain object to encode
|
|
198876
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
198877
|
+
* @returns {$protobuf.Writer} Writer
|
|
198878
|
+
*/
|
|
198879
|
+
WordOffset.encode = function (message, writer, _depth) {
|
|
198880
|
+
if (!writer)
|
|
198881
|
+
writer = $Writer.create();
|
|
198882
|
+
if (_depth === $undefined)
|
|
198883
|
+
_depth = 0;
|
|
198884
|
+
if (_depth > $util.recursionLimit)
|
|
198885
|
+
throw $Error("max depth exceeded");
|
|
198886
|
+
if (message.startIndex != null && $Object.hasOwnProperty.call(message, "startIndex"))
|
|
198887
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.startIndex);
|
|
198888
|
+
if (message.endIndex != null && $Object.hasOwnProperty.call(message, "endIndex"))
|
|
198889
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.endIndex);
|
|
198890
|
+
if (message.startOffsetMs != null && $Object.hasOwnProperty.call(message, "startOffsetMs"))
|
|
198891
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.startOffsetMs);
|
|
198892
|
+
if (message.endOffsetMs != null && $Object.hasOwnProperty.call(message, "endOffsetMs"))
|
|
198893
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.endOffsetMs);
|
|
198894
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
198895
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
198896
|
+
writer.raw(message.$unknowns[i]);
|
|
198897
|
+
return writer;
|
|
198898
|
+
};
|
|
198899
|
+
|
|
198900
|
+
/**
|
|
198901
|
+
* Encodes the specified WordOffset message, length delimited. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.verify|verify} messages.
|
|
198902
|
+
* @function encodeDelimited
|
|
198903
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
198904
|
+
* @static
|
|
198905
|
+
* @param {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Properties} message WordOffset message or plain object to encode
|
|
198906
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
198907
|
+
* @returns {$protobuf.Writer} Writer
|
|
198908
|
+
*/
|
|
198909
|
+
WordOffset.encodeDelimited = function(message, writer) {
|
|
198910
|
+
return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
|
|
198911
|
+
};
|
|
198912
|
+
|
|
198913
|
+
/**
|
|
198914
|
+
* Decodes a WordOffset message from the specified reader or buffer.
|
|
198915
|
+
* @function decode
|
|
198916
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
198917
|
+
* @static
|
|
198918
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
198919
|
+
* @param {number} [length] Message length if known beforehand
|
|
198920
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset & waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape} WordOffset
|
|
198921
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
198922
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
198923
|
+
*/
|
|
198924
|
+
WordOffset.decode = function (reader, length, _end, _depth, _target) {
|
|
198925
|
+
if (!(reader instanceof $Reader))
|
|
198926
|
+
reader = $Reader.create(reader);
|
|
198927
|
+
if (_depth === $undefined)
|
|
198928
|
+
_depth = 0;
|
|
198929
|
+
if (_depth > $Reader.recursionLimit)
|
|
198930
|
+
throw $Error("max depth exceeded");
|
|
198931
|
+
var end, message;
|
|
198932
|
+
if (length === $undefined)
|
|
198933
|
+
end = reader.len;
|
|
198934
|
+
else {
|
|
198935
|
+
end = reader.pos + length;
|
|
198936
|
+
if (end > reader.len)
|
|
198937
|
+
throw $RangeError("index out of range");
|
|
198938
|
+
length = reader.len;
|
|
198939
|
+
reader.len = end;
|
|
198940
|
+
}
|
|
198941
|
+
message = _target || new $root.waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset();
|
|
198942
|
+
while (reader.pos < end) {
|
|
198943
|
+
var start = reader.pos;
|
|
198944
|
+
var tag = reader.tag();
|
|
198945
|
+
if (tag === _end) {
|
|
198946
|
+
_end = $undefined;
|
|
198947
|
+
break;
|
|
198948
|
+
}
|
|
198949
|
+
var wireType = tag & 7;
|
|
198950
|
+
switch (tag >>>= 3) {
|
|
198951
|
+
case 1: {
|
|
198952
|
+
if (wireType !== 0)
|
|
198953
|
+
break;
|
|
198954
|
+
message.startIndex = reader.int32();
|
|
198955
|
+
message._startIndex = "startIndex";
|
|
198956
|
+
continue;
|
|
198957
|
+
}
|
|
198958
|
+
case 2: {
|
|
198959
|
+
if (wireType !== 0)
|
|
198960
|
+
break;
|
|
198961
|
+
message.endIndex = reader.int32();
|
|
198962
|
+
message._endIndex = "endIndex";
|
|
198963
|
+
continue;
|
|
198964
|
+
}
|
|
198965
|
+
case 3: {
|
|
198966
|
+
if (wireType !== 0)
|
|
198967
|
+
break;
|
|
198968
|
+
message.startOffsetMs = reader.int32();
|
|
198969
|
+
message._startOffsetMs = "startOffsetMs";
|
|
198970
|
+
continue;
|
|
198971
|
+
}
|
|
198972
|
+
case 4: {
|
|
198973
|
+
if (wireType !== 0)
|
|
198974
|
+
break;
|
|
198975
|
+
message.endOffsetMs = reader.int32();
|
|
198976
|
+
message._endOffsetMs = "endOffsetMs";
|
|
198977
|
+
continue;
|
|
198978
|
+
}
|
|
198979
|
+
}
|
|
198980
|
+
reader.skipType(wireType, _depth, tag);
|
|
198981
|
+
if (!reader.discardUnknown) {
|
|
198982
|
+
$util.makeProp(message, "$unknowns", false);
|
|
198983
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
198984
|
+
}
|
|
198985
|
+
}
|
|
198986
|
+
if (length !== $undefined) {
|
|
198987
|
+
if (reader.pos !== end)
|
|
198988
|
+
throw $RangeError("index out of range");
|
|
198989
|
+
reader.len = length;
|
|
198990
|
+
}
|
|
198991
|
+
if (_end !== $undefined)
|
|
198992
|
+
throw $Error("missing end group");
|
|
198993
|
+
return message;
|
|
198994
|
+
};
|
|
198995
|
+
|
|
198996
|
+
/**
|
|
198997
|
+
* Decodes a WordOffset message from the specified reader or buffer, length delimited.
|
|
198998
|
+
* @function decodeDelimited
|
|
198999
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
199000
|
+
* @static
|
|
199001
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
199002
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset & waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset.$Shape} WordOffset
|
|
199003
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
199004
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
199005
|
+
*/
|
|
199006
|
+
WordOffset.decodeDelimited = function(reader) {
|
|
199007
|
+
if (!(reader instanceof $Reader))
|
|
199008
|
+
reader = new $Reader(reader);
|
|
199009
|
+
return this.decode(reader, reader.size());
|
|
199010
|
+
};
|
|
199011
|
+
|
|
199012
|
+
/**
|
|
199013
|
+
* Verifies a WordOffset message.
|
|
199014
|
+
* @function verify
|
|
199015
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
199016
|
+
* @static
|
|
199017
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
199018
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
199019
|
+
*/
|
|
199020
|
+
WordOffset.verify = function (message, _depth) {
|
|
199021
|
+
if (typeof message !== "object" || message === null)
|
|
199022
|
+
return "object expected";
|
|
199023
|
+
if (_depth === $undefined)
|
|
199024
|
+
_depth = 0;
|
|
199025
|
+
if (_depth > $util.recursionLimit)
|
|
199026
|
+
return "max depth exceeded";
|
|
199027
|
+
var properties = {};
|
|
199028
|
+
if (message.startIndex != null && $Object.hasOwnProperty.call(message, "startIndex")) {
|
|
199029
|
+
properties._startIndex = 1;
|
|
199030
|
+
if (!$util.isInteger(message.startIndex))
|
|
199031
|
+
return "startIndex: integer expected";
|
|
199032
|
+
}
|
|
199033
|
+
if (message.endIndex != null && $Object.hasOwnProperty.call(message, "endIndex")) {
|
|
199034
|
+
properties._endIndex = 1;
|
|
199035
|
+
if (!$util.isInteger(message.endIndex))
|
|
199036
|
+
return "endIndex: integer expected";
|
|
199037
|
+
}
|
|
199038
|
+
if (message.startOffsetMs != null && $Object.hasOwnProperty.call(message, "startOffsetMs")) {
|
|
199039
|
+
properties._startOffsetMs = 1;
|
|
199040
|
+
if (!$util.isInteger(message.startOffsetMs))
|
|
199041
|
+
return "startOffsetMs: integer expected";
|
|
199042
|
+
}
|
|
199043
|
+
if (message.endOffsetMs != null && $Object.hasOwnProperty.call(message, "endOffsetMs")) {
|
|
199044
|
+
properties._endOffsetMs = 1;
|
|
199045
|
+
if (!$util.isInteger(message.endOffsetMs))
|
|
199046
|
+
return "endOffsetMs: integer expected";
|
|
199047
|
+
}
|
|
199048
|
+
return null;
|
|
199049
|
+
};
|
|
199050
|
+
|
|
199051
|
+
/**
|
|
199052
|
+
* Creates a WordOffset message from a plain object. Also converts values to their respective internal types.
|
|
199053
|
+
* @function fromObject
|
|
199054
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
199055
|
+
* @static
|
|
199056
|
+
* @param {Object.<string,*>} object Plain object
|
|
199057
|
+
* @returns {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset} WordOffset
|
|
199058
|
+
*/
|
|
199059
|
+
WordOffset.fromObject = function (object, _depth) {
|
|
199060
|
+
if (object instanceof $root.waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset)
|
|
199061
|
+
return object;
|
|
199062
|
+
if (!$util.isObject(object))
|
|
199063
|
+
throw $TypeError(".waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset: object expected");
|
|
199064
|
+
if (_depth === $undefined)
|
|
199065
|
+
_depth = 0;
|
|
199066
|
+
if (_depth > $util.recursionLimit)
|
|
199067
|
+
throw $Error("max depth exceeded");
|
|
199068
|
+
var message = new $root.waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset();
|
|
199069
|
+
if (object.startIndex != null)
|
|
199070
|
+
message.startIndex = object.startIndex | 0;
|
|
199071
|
+
if (object.endIndex != null)
|
|
199072
|
+
message.endIndex = object.endIndex | 0;
|
|
199073
|
+
if (object.startOffsetMs != null)
|
|
199074
|
+
message.startOffsetMs = object.startOffsetMs | 0;
|
|
199075
|
+
if (object.endOffsetMs != null)
|
|
199076
|
+
message.endOffsetMs = object.endOffsetMs | 0;
|
|
199077
|
+
return message;
|
|
199078
|
+
};
|
|
199079
|
+
|
|
199080
|
+
/**
|
|
199081
|
+
* Creates a plain object from a WordOffset message. Also converts values to other types if specified.
|
|
199082
|
+
* @function toObject
|
|
199083
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
199084
|
+
* @static
|
|
199085
|
+
* @param {waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset} message WordOffset
|
|
199086
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
199087
|
+
* @returns {Object.<string,*>} Plain object
|
|
199088
|
+
*/
|
|
199089
|
+
WordOffset.toObject = function (message, options, _depth) {
|
|
199090
|
+
if (!options)
|
|
199091
|
+
options = {};
|
|
199092
|
+
if (_depth === $undefined)
|
|
199093
|
+
_depth = 0;
|
|
199094
|
+
if (_depth > $util.recursionLimit)
|
|
199095
|
+
throw $Error("max depth exceeded");
|
|
199096
|
+
var object = {};
|
|
199097
|
+
if (message.startIndex != null && $Object.hasOwnProperty.call(message, "startIndex"))
|
|
199098
|
+
object.startIndex = message.startIndex;
|
|
199099
|
+
if (message.endIndex != null && $Object.hasOwnProperty.call(message, "endIndex"))
|
|
199100
|
+
object.endIndex = message.endIndex;
|
|
199101
|
+
if (message.startOffsetMs != null && $Object.hasOwnProperty.call(message, "startOffsetMs"))
|
|
199102
|
+
object.startOffsetMs = message.startOffsetMs;
|
|
199103
|
+
if (message.endOffsetMs != null && $Object.hasOwnProperty.call(message, "endOffsetMs"))
|
|
199104
|
+
object.endOffsetMs = message.endOffsetMs;
|
|
199105
|
+
return object;
|
|
199106
|
+
};
|
|
199107
|
+
|
|
199108
|
+
/**
|
|
199109
|
+
* Converts this WordOffset to JSON.
|
|
199110
|
+
* @function toJSON
|
|
199111
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
199112
|
+
* @instance
|
|
199113
|
+
* @returns {Object.<string,*>} JSON object
|
|
199114
|
+
*/
|
|
199115
|
+
WordOffset.prototype.toJSON = function() {
|
|
199116
|
+
return WordOffset.toObject(this, $protobuf.util.toJSONOptions);
|
|
199117
|
+
};
|
|
199118
|
+
|
|
199119
|
+
/**
|
|
199120
|
+
* Gets the type url for WordOffset
|
|
199121
|
+
* @function getTypeUrl
|
|
199122
|
+
* @memberof waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset
|
|
199123
|
+
* @static
|
|
199124
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
199125
|
+
* @returns {string} The type url
|
|
199126
|
+
*/
|
|
199127
|
+
WordOffset.getTypeUrl = function(prefix) {
|
|
199128
|
+
if (prefix === $undefined)
|
|
199129
|
+
prefix = "type.googleapis.com";
|
|
199130
|
+
return prefix + "/waproto.MsgOpaqueData.MusicData.LyricsLine.WordOffset";
|
|
199131
|
+
};
|
|
199132
|
+
|
|
199133
|
+
return WordOffset;
|
|
199134
|
+
})();
|
|
199135
|
+
|
|
199136
|
+
return LyricsLine;
|
|
199137
|
+
})();
|
|
199138
|
+
|
|
198271
199139
|
return MusicData;
|
|
198272
199140
|
})();
|
|
198273
199141
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wppconnect/wa-proto",
|
|
3
|
-
"version": "2.3000.
|
|
3
|
+
"version": "2.3000.1052238679",
|
|
4
4
|
"description": "Protobuf files from WhatsApp WEB",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"overrides": {
|
|
37
37
|
"deepmerge": "$deepmerge",
|
|
38
38
|
"rebrowser-puppeteer-core": {
|
|
39
|
-
"@puppeteer/browsers": "3.2.
|
|
39
|
+
"@puppeteer/browsers": "3.2.6"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|