@wppconnect/wa-proto 2.3000.1050555521 → 2.3000.1050596417

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1050555521
4
+ /// WhatsApp Version: 2.3000.1050596417
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -5539,6 +5539,7 @@ message MsgOpaqueData {
5539
5539
  optional string sharableEventInviteCallLink = 60;
5540
5540
  optional string mediaPngThumbnail = 61;
5541
5541
  optional string qrUrl = 62;
5542
+ optional MusicData musicData = 63;
5542
5543
  message EventLocation {
5543
5544
  optional double degreesLatitude = 1;
5544
5545
  optional double degreesLongitude = 2;
@@ -5548,6 +5549,27 @@ message MsgOpaqueData {
5548
5549
  optional bytes jpegThumbnail = 6;
5549
5550
  }
5550
5551
 
5552
+ message MusicData {
5553
+ optional string musicContentMediaId = 1;
5554
+ optional string songId = 2;
5555
+ optional string author = 3;
5556
+ optional string title = 4;
5557
+ optional string songUri = 5;
5558
+ optional string artworkUri = 6;
5559
+ optional int32 style = 7;
5560
+ optional int32 songStartTimeMs = 8;
5561
+ optional int32 clipDurationMs = 9;
5562
+ optional bool isExplicit = 10;
5563
+ optional bytes countryBlocklist = 11;
5564
+ optional string artistAttribution = 12;
5565
+ optional string artworkDirectPath = 13;
5566
+ optional bytes artworkSha256 = 14;
5567
+ optional bytes artworkEncSha256 = 15;
5568
+ optional bytes artworkMediaKey = 16;
5569
+ optional int64 consumptionCheckedAtS = 17;
5570
+ optional bool isAvailableForConsumption = 18;
5571
+ }
5572
+
5551
5573
  enum PollContentType {
5552
5574
  UNKNOWN = 0;
5553
5575
  TEXT = 1;
package/dist/index.d.ts CHANGED
@@ -77555,6 +77555,9 @@ export namespace waproto {
77555
77555
  /** MsgOpaqueData qrUrl. */
77556
77556
  qrUrl?: (string|null);
77557
77557
 
77558
+ /** MsgOpaqueData musicData. */
77559
+ musicData?: (waproto.MsgOpaqueData.MusicData.$Properties|null);
77560
+
77558
77561
  /**
77559
77562
  * Creates a new MsgOpaqueData instance using the specified properties.
77560
77563
  * @param [properties] Properties to set
@@ -77810,6 +77813,9 @@ export namespace waproto {
77810
77813
  /** MsgOpaqueData qrUrl */
77811
77814
  qrUrl?: (string|null);
77812
77815
 
77816
+ /** MsgOpaqueData musicData */
77817
+ musicData?: (waproto.MsgOpaqueData.MusicData.$Properties|null);
77818
+
77813
77819
  /** Unknown fields preserved while decoding when enabled */
77814
77820
  $unknowns?: Uint8Array[];
77815
77821
  }
@@ -77964,6 +77970,225 @@ export namespace waproto {
77964
77970
  type $Shape = waproto.MsgOpaqueData.EventLocation.$Properties;
77965
77971
  }
77966
77972
 
77973
+ /**
77974
+ * Properties of a MusicData.
77975
+ * @deprecated Use waproto.MsgOpaqueData.MusicData.$Properties instead.
77976
+ */
77977
+ interface IMusicData extends waproto.MsgOpaqueData.MusicData.$Properties {
77978
+ }
77979
+
77980
+ /** Represents a MusicData. */
77981
+ class MusicData {
77982
+
77983
+ /**
77984
+ * Constructs a new MusicData.
77985
+ * @param [properties] Properties to set
77986
+ */
77987
+ constructor(properties?: waproto.MsgOpaqueData.MusicData.$Properties);
77988
+
77989
+ /** Unknown fields preserved while decoding when enabled */
77990
+ $unknowns?: Uint8Array[];
77991
+
77992
+ /** MusicData musicContentMediaId. */
77993
+ musicContentMediaId?: (string|null);
77994
+
77995
+ /** MusicData songId. */
77996
+ songId?: (string|null);
77997
+
77998
+ /** MusicData author. */
77999
+ author?: (string|null);
78000
+
78001
+ /** MusicData title. */
78002
+ title?: (string|null);
78003
+
78004
+ /** MusicData songUri. */
78005
+ songUri?: (string|null);
78006
+
78007
+ /** MusicData artworkUri. */
78008
+ artworkUri?: (string|null);
78009
+
78010
+ /** MusicData style. */
78011
+ style?: (number|null);
78012
+
78013
+ /** MusicData songStartTimeMs. */
78014
+ songStartTimeMs?: (number|null);
78015
+
78016
+ /** MusicData clipDurationMs. */
78017
+ clipDurationMs?: (number|null);
78018
+
78019
+ /** MusicData isExplicit. */
78020
+ isExplicit?: (boolean|null);
78021
+
78022
+ /** MusicData countryBlocklist. */
78023
+ countryBlocklist?: (Uint8Array|null);
78024
+
78025
+ /** MusicData artistAttribution. */
78026
+ artistAttribution?: (string|null);
78027
+
78028
+ /** MusicData artworkDirectPath. */
78029
+ artworkDirectPath?: (string|null);
78030
+
78031
+ /** MusicData artworkSha256. */
78032
+ artworkSha256?: (Uint8Array|null);
78033
+
78034
+ /** MusicData artworkEncSha256. */
78035
+ artworkEncSha256?: (Uint8Array|null);
78036
+
78037
+ /** MusicData artworkMediaKey. */
78038
+ artworkMediaKey?: (Uint8Array|null);
78039
+
78040
+ /** MusicData consumptionCheckedAtS. */
78041
+ consumptionCheckedAtS?: (number|Long|null);
78042
+
78043
+ /** MusicData isAvailableForConsumption. */
78044
+ isAvailableForConsumption?: (boolean|null);
78045
+
78046
+ /**
78047
+ * Creates a new MusicData instance using the specified properties.
78048
+ * @param [properties] Properties to set
78049
+ * @returns MusicData instance
78050
+ */
78051
+ static create(properties: waproto.MsgOpaqueData.MusicData.$Shape): waproto.MsgOpaqueData.MusicData & waproto.MsgOpaqueData.MusicData.$Shape;
78052
+ static create(properties?: waproto.MsgOpaqueData.MusicData.$Properties): waproto.MsgOpaqueData.MusicData;
78053
+
78054
+ /**
78055
+ * Encodes the specified MusicData message. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.verify|verify} messages.
78056
+ * @param message MusicData message or plain object to encode
78057
+ * @param [writer] Writer to encode to
78058
+ * @returns Writer
78059
+ */
78060
+ static encode(message: waproto.MsgOpaqueData.MusicData.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
78061
+
78062
+ /**
78063
+ * Encodes the specified MusicData message, length delimited. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.verify|verify} messages.
78064
+ * @param message MusicData message or plain object to encode
78065
+ * @param [writer] Writer to encode to
78066
+ * @returns Writer
78067
+ */
78068
+ static encodeDelimited(message: waproto.MsgOpaqueData.MusicData.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
78069
+
78070
+ /**
78071
+ * Decodes a MusicData message from the specified reader or buffer.
78072
+ * @param reader Reader or buffer to decode from
78073
+ * @param [length] Message length if known beforehand
78074
+ * @returns {waproto.MsgOpaqueData.MusicData & waproto.MsgOpaqueData.MusicData.$Shape} MusicData
78075
+ * @throws {Error} If the payload is not a reader or valid buffer
78076
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
78077
+ */
78078
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.MsgOpaqueData.MusicData & waproto.MsgOpaqueData.MusicData.$Shape;
78079
+
78080
+ /**
78081
+ * Decodes a MusicData message from the specified reader or buffer, length delimited.
78082
+ * @param reader Reader or buffer to decode from
78083
+ * @returns {waproto.MsgOpaqueData.MusicData & waproto.MsgOpaqueData.MusicData.$Shape} MusicData
78084
+ * @throws {Error} If the payload is not a reader or valid buffer
78085
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
78086
+ */
78087
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.MsgOpaqueData.MusicData & waproto.MsgOpaqueData.MusicData.$Shape;
78088
+
78089
+ /**
78090
+ * Verifies a MusicData message.
78091
+ * @param message Plain object to verify
78092
+ * @returns `null` if valid, otherwise the reason why it is not
78093
+ */
78094
+ static verify(message: { [k: string]: any }): (string|null);
78095
+
78096
+ /**
78097
+ * Creates a MusicData message from a plain object. Also converts values to their respective internal types.
78098
+ * @param object Plain object
78099
+ * @returns MusicData
78100
+ */
78101
+ static fromObject(object: { [k: string]: any }): waproto.MsgOpaqueData.MusicData;
78102
+
78103
+ /**
78104
+ * Creates a plain object from a MusicData message. Also converts values to other types if specified.
78105
+ * @param message MusicData
78106
+ * @param [options] Conversion options
78107
+ * @returns Plain object
78108
+ */
78109
+ static toObject(message: waproto.MsgOpaqueData.MusicData, options?: $protobuf.IConversionOptions): { [k: string]: any };
78110
+
78111
+ /**
78112
+ * Converts this MusicData to JSON.
78113
+ * @returns JSON object
78114
+ */
78115
+ toJSON(): { [k: string]: any };
78116
+
78117
+ /**
78118
+ * Gets the type url for MusicData
78119
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
78120
+ * @returns The type url
78121
+ */
78122
+ static getTypeUrl(prefix?: string): string;
78123
+ }
78124
+
78125
+ namespace MusicData {
78126
+
78127
+ /** Properties of a MusicData. */
78128
+ interface $Properties {
78129
+
78130
+ /** MusicData musicContentMediaId */
78131
+ musicContentMediaId?: (string|null);
78132
+
78133
+ /** MusicData songId */
78134
+ songId?: (string|null);
78135
+
78136
+ /** MusicData author */
78137
+ author?: (string|null);
78138
+
78139
+ /** MusicData title */
78140
+ title?: (string|null);
78141
+
78142
+ /** MusicData songUri */
78143
+ songUri?: (string|null);
78144
+
78145
+ /** MusicData artworkUri */
78146
+ artworkUri?: (string|null);
78147
+
78148
+ /** MusicData style */
78149
+ style?: (number|null);
78150
+
78151
+ /** MusicData songStartTimeMs */
78152
+ songStartTimeMs?: (number|null);
78153
+
78154
+ /** MusicData clipDurationMs */
78155
+ clipDurationMs?: (number|null);
78156
+
78157
+ /** MusicData isExplicit */
78158
+ isExplicit?: (boolean|null);
78159
+
78160
+ /** MusicData countryBlocklist */
78161
+ countryBlocklist?: (Uint8Array|null);
78162
+
78163
+ /** MusicData artistAttribution */
78164
+ artistAttribution?: (string|null);
78165
+
78166
+ /** MusicData artworkDirectPath */
78167
+ artworkDirectPath?: (string|null);
78168
+
78169
+ /** MusicData artworkSha256 */
78170
+ artworkSha256?: (Uint8Array|null);
78171
+
78172
+ /** MusicData artworkEncSha256 */
78173
+ artworkEncSha256?: (Uint8Array|null);
78174
+
78175
+ /** MusicData artworkMediaKey */
78176
+ artworkMediaKey?: (Uint8Array|null);
78177
+
78178
+ /** MusicData consumptionCheckedAtS */
78179
+ consumptionCheckedAtS?: (number|Long|null);
78180
+
78181
+ /** MusicData isAvailableForConsumption */
78182
+ isAvailableForConsumption?: (boolean|null);
78183
+
78184
+ /** Unknown fields preserved while decoding when enabled */
78185
+ $unknowns?: Uint8Array[];
78186
+ }
78187
+
78188
+ /** Shape of a MusicData. */
78189
+ type $Shape = waproto.MsgOpaqueData.MusicData.$Properties;
78190
+ }
78191
+
77967
78192
  /** PollContentType enum. */
77968
78193
  enum PollContentType {
77969
78194
 
package/dist/index.js CHANGED
@@ -229315,6 +229315,7 @@ $root.waproto = (function() {
229315
229315
  * @property {string|null} [sharableEventInviteCallLink] MsgOpaqueData sharableEventInviteCallLink
229316
229316
  * @property {string|null} [mediaPngThumbnail] MsgOpaqueData mediaPngThumbnail
229317
229317
  * @property {string|null} [qrUrl] MsgOpaqueData qrUrl
229318
+ * @property {waproto.MsgOpaqueData.MusicData.$Properties|null} [musicData] MsgOpaqueData musicData
229318
229319
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
229319
229320
  */
229320
229321
 
@@ -229803,6 +229804,14 @@ $root.waproto = (function() {
229803
229804
  */
229804
229805
  MsgOpaqueData.prototype.qrUrl = null;
229805
229806
 
229807
+ /**
229808
+ * MsgOpaqueData musicData.
229809
+ * @member {waproto.MsgOpaqueData.MusicData.$Properties|null|undefined} musicData
229810
+ * @memberof waproto.MsgOpaqueData
229811
+ * @instance
229812
+ */
229813
+ MsgOpaqueData.prototype.musicData = null;
229814
+
229806
229815
  // OneOf field names bound to virtual getters and setters
229807
229816
  var $oneOfFields;
229808
229817
 
@@ -230142,6 +230151,12 @@ $root.waproto = (function() {
230142
230151
  set: $util.oneOfSetter($oneOfFields)
230143
230152
  });
230144
230153
 
230154
+ // Virtual OneOf for proto3 optional field
230155
+ $Object.defineProperty(MsgOpaqueData.prototype, "_musicData", {
230156
+ get: $util.oneOfGetter($oneOfFields = ["musicData"]),
230157
+ set: $util.oneOfSetter($oneOfFields)
230158
+ });
230159
+
230145
230160
  /**
230146
230161
  * Creates a new MsgOpaqueData instance using the specified properties.
230147
230162
  * @function create
@@ -230289,6 +230304,8 @@ $root.waproto = (function() {
230289
230304
  writer.uint32(/* id 61, wireType 2 =*/490).string(message.mediaPngThumbnail);
230290
230305
  if (message.qrUrl != null && $Object.hasOwnProperty.call(message, "qrUrl"))
230291
230306
  writer.uint32(/* id 62, wireType 2 =*/498).string(message.qrUrl);
230307
+ if (message.musicData != null && $Object.hasOwnProperty.call(message, "musicData"))
230308
+ $root.waproto.MsgOpaqueData.MusicData.encode(message.musicData, writer.uint32(/* id 63, wireType 2 =*/506).fork(), _depth + 1).ldelim();
230292
230309
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
230293
230310
  for (var i = 0; i < message.$unknowns.length; ++i)
230294
230311
  writer.raw(message.$unknowns[i]);
@@ -230746,6 +230763,13 @@ $root.waproto = (function() {
230746
230763
  message._qrUrl = "qrUrl";
230747
230764
  continue;
230748
230765
  }
230766
+ case 63: {
230767
+ if (wireType !== 2)
230768
+ break;
230769
+ message.musicData = $root.waproto.MsgOpaqueData.MusicData.decode(reader, reader.size(), $undefined, _depth + 1, message.musicData);
230770
+ message._musicData = "musicData";
230771
+ continue;
230772
+ }
230749
230773
  }
230750
230774
  reader.skipType(wireType, _depth, tag);
230751
230775
  if (!reader.discardUnknown) {
@@ -231093,6 +231117,14 @@ $root.waproto = (function() {
231093
231117
  if (!$util.isString(message.qrUrl))
231094
231118
  return "qrUrl: string expected";
231095
231119
  }
231120
+ if (message.musicData != null && $Object.hasOwnProperty.call(message, "musicData")) {
231121
+ properties._musicData = 1;
231122
+ {
231123
+ var error = $root.waproto.MsgOpaqueData.MusicData.verify(message.musicData, _depth + 1);
231124
+ if (error)
231125
+ return "musicData." + error;
231126
+ }
231127
+ }
231096
231128
  return null;
231097
231129
  };
231098
231130
 
@@ -231340,6 +231372,11 @@ $root.waproto = (function() {
231340
231372
  message.mediaPngThumbnail = $String(object.mediaPngThumbnail);
231341
231373
  if (object.qrUrl != null)
231342
231374
  message.qrUrl = $String(object.qrUrl);
231375
+ if (object.musicData != null) {
231376
+ if (!$util.isObject(object.musicData))
231377
+ throw $TypeError(".waproto.MsgOpaqueData.musicData: object expected");
231378
+ message.musicData = $root.waproto.MsgOpaqueData.MusicData.fromObject(object.musicData, _depth + 1);
231379
+ }
231343
231380
  return message;
231344
231381
  };
231345
231382
 
@@ -231509,6 +231546,8 @@ $root.waproto = (function() {
231509
231546
  object.mediaPngThumbnail = message.mediaPngThumbnail;
231510
231547
  if (message.qrUrl != null && $Object.hasOwnProperty.call(message, "qrUrl"))
231511
231548
  object.qrUrl = message.qrUrl;
231549
+ if (message.musicData != null && $Object.hasOwnProperty.call(message, "musicData"))
231550
+ object.musicData = $root.waproto.MsgOpaqueData.MusicData.toObject(message.musicData, options, _depth + 1);
231512
231551
  return object;
231513
231552
  };
231514
231553
 
@@ -231987,6 +232026,873 @@ $root.waproto = (function() {
231987
232026
  return EventLocation;
231988
232027
  })();
231989
232028
 
232029
+ MsgOpaqueData.MusicData = (function() {
232030
+
232031
+ /**
232032
+ * Properties of a MusicData.
232033
+ * @typedef {Object} waproto.MsgOpaqueData.MusicData.$Properties
232034
+ * @property {string|null} [musicContentMediaId] MusicData musicContentMediaId
232035
+ * @property {string|null} [songId] MusicData songId
232036
+ * @property {string|null} [author] MusicData author
232037
+ * @property {string|null} [title] MusicData title
232038
+ * @property {string|null} [songUri] MusicData songUri
232039
+ * @property {string|null} [artworkUri] MusicData artworkUri
232040
+ * @property {number|null} [style] MusicData style
232041
+ * @property {number|null} [songStartTimeMs] MusicData songStartTimeMs
232042
+ * @property {number|null} [clipDurationMs] MusicData clipDurationMs
232043
+ * @property {boolean|null} [isExplicit] MusicData isExplicit
232044
+ * @property {Uint8Array|null} [countryBlocklist] MusicData countryBlocklist
232045
+ * @property {string|null} [artistAttribution] MusicData artistAttribution
232046
+ * @property {string|null} [artworkDirectPath] MusicData artworkDirectPath
232047
+ * @property {Uint8Array|null} [artworkSha256] MusicData artworkSha256
232048
+ * @property {Uint8Array|null} [artworkEncSha256] MusicData artworkEncSha256
232049
+ * @property {Uint8Array|null} [artworkMediaKey] MusicData artworkMediaKey
232050
+ * @property {number|Long|null} [consumptionCheckedAtS] MusicData consumptionCheckedAtS
232051
+ * @property {boolean|null} [isAvailableForConsumption] MusicData isAvailableForConsumption
232052
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
232053
+ */
232054
+
232055
+ /**
232056
+ * Properties of a MusicData.
232057
+ * @memberof waproto.MsgOpaqueData
232058
+ * @interface IMusicData
232059
+ * @augments waproto.MsgOpaqueData.MusicData.$Properties
232060
+ * @deprecated Use waproto.MsgOpaqueData.MusicData.$Properties instead.
232061
+ */
232062
+
232063
+ /**
232064
+ * Shape of a MusicData.
232065
+ * @typedef {waproto.MsgOpaqueData.MusicData.$Properties} waproto.MsgOpaqueData.MusicData.$Shape
232066
+ */
232067
+
232068
+ /**
232069
+ * Constructs a new MusicData.
232070
+ * @memberof waproto.MsgOpaqueData
232071
+ * @classdesc Represents a MusicData.
232072
+ * @constructor
232073
+ * @param {waproto.MsgOpaqueData.MusicData.$Properties=} [properties] Properties to set
232074
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
232075
+ */
232076
+ var MusicData = function (properties) {
232077
+ if (properties)
232078
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
232079
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
232080
+ this[keys[i]] = properties[keys[i]];
232081
+ };
232082
+
232083
+ /**
232084
+ * MusicData musicContentMediaId.
232085
+ * @member {string|null|undefined} musicContentMediaId
232086
+ * @memberof waproto.MsgOpaqueData.MusicData
232087
+ * @instance
232088
+ */
232089
+ MusicData.prototype.musicContentMediaId = null;
232090
+
232091
+ /**
232092
+ * MusicData songId.
232093
+ * @member {string|null|undefined} songId
232094
+ * @memberof waproto.MsgOpaqueData.MusicData
232095
+ * @instance
232096
+ */
232097
+ MusicData.prototype.songId = null;
232098
+
232099
+ /**
232100
+ * MusicData author.
232101
+ * @member {string|null|undefined} author
232102
+ * @memberof waproto.MsgOpaqueData.MusicData
232103
+ * @instance
232104
+ */
232105
+ MusicData.prototype.author = null;
232106
+
232107
+ /**
232108
+ * MusicData title.
232109
+ * @member {string|null|undefined} title
232110
+ * @memberof waproto.MsgOpaqueData.MusicData
232111
+ * @instance
232112
+ */
232113
+ MusicData.prototype.title = null;
232114
+
232115
+ /**
232116
+ * MusicData songUri.
232117
+ * @member {string|null|undefined} songUri
232118
+ * @memberof waproto.MsgOpaqueData.MusicData
232119
+ * @instance
232120
+ */
232121
+ MusicData.prototype.songUri = null;
232122
+
232123
+ /**
232124
+ * MusicData artworkUri.
232125
+ * @member {string|null|undefined} artworkUri
232126
+ * @memberof waproto.MsgOpaqueData.MusicData
232127
+ * @instance
232128
+ */
232129
+ MusicData.prototype.artworkUri = null;
232130
+
232131
+ /**
232132
+ * MusicData style.
232133
+ * @member {number|null|undefined} style
232134
+ * @memberof waproto.MsgOpaqueData.MusicData
232135
+ * @instance
232136
+ */
232137
+ MusicData.prototype.style = null;
232138
+
232139
+ /**
232140
+ * MusicData songStartTimeMs.
232141
+ * @member {number|null|undefined} songStartTimeMs
232142
+ * @memberof waproto.MsgOpaqueData.MusicData
232143
+ * @instance
232144
+ */
232145
+ MusicData.prototype.songStartTimeMs = null;
232146
+
232147
+ /**
232148
+ * MusicData clipDurationMs.
232149
+ * @member {number|null|undefined} clipDurationMs
232150
+ * @memberof waproto.MsgOpaqueData.MusicData
232151
+ * @instance
232152
+ */
232153
+ MusicData.prototype.clipDurationMs = null;
232154
+
232155
+ /**
232156
+ * MusicData isExplicit.
232157
+ * @member {boolean|null|undefined} isExplicit
232158
+ * @memberof waproto.MsgOpaqueData.MusicData
232159
+ * @instance
232160
+ */
232161
+ MusicData.prototype.isExplicit = null;
232162
+
232163
+ /**
232164
+ * MusicData countryBlocklist.
232165
+ * @member {Uint8Array|null|undefined} countryBlocklist
232166
+ * @memberof waproto.MsgOpaqueData.MusicData
232167
+ * @instance
232168
+ */
232169
+ MusicData.prototype.countryBlocklist = null;
232170
+
232171
+ /**
232172
+ * MusicData artistAttribution.
232173
+ * @member {string|null|undefined} artistAttribution
232174
+ * @memberof waproto.MsgOpaqueData.MusicData
232175
+ * @instance
232176
+ */
232177
+ MusicData.prototype.artistAttribution = null;
232178
+
232179
+ /**
232180
+ * MusicData artworkDirectPath.
232181
+ * @member {string|null|undefined} artworkDirectPath
232182
+ * @memberof waproto.MsgOpaqueData.MusicData
232183
+ * @instance
232184
+ */
232185
+ MusicData.prototype.artworkDirectPath = null;
232186
+
232187
+ /**
232188
+ * MusicData artworkSha256.
232189
+ * @member {Uint8Array|null|undefined} artworkSha256
232190
+ * @memberof waproto.MsgOpaqueData.MusicData
232191
+ * @instance
232192
+ */
232193
+ MusicData.prototype.artworkSha256 = null;
232194
+
232195
+ /**
232196
+ * MusicData artworkEncSha256.
232197
+ * @member {Uint8Array|null|undefined} artworkEncSha256
232198
+ * @memberof waproto.MsgOpaqueData.MusicData
232199
+ * @instance
232200
+ */
232201
+ MusicData.prototype.artworkEncSha256 = null;
232202
+
232203
+ /**
232204
+ * MusicData artworkMediaKey.
232205
+ * @member {Uint8Array|null|undefined} artworkMediaKey
232206
+ * @memberof waproto.MsgOpaqueData.MusicData
232207
+ * @instance
232208
+ */
232209
+ MusicData.prototype.artworkMediaKey = null;
232210
+
232211
+ /**
232212
+ * MusicData consumptionCheckedAtS.
232213
+ * @member {number|Long|null|undefined} consumptionCheckedAtS
232214
+ * @memberof waproto.MsgOpaqueData.MusicData
232215
+ * @instance
232216
+ */
232217
+ MusicData.prototype.consumptionCheckedAtS = null;
232218
+
232219
+ /**
232220
+ * MusicData isAvailableForConsumption.
232221
+ * @member {boolean|null|undefined} isAvailableForConsumption
232222
+ * @memberof waproto.MsgOpaqueData.MusicData
232223
+ * @instance
232224
+ */
232225
+ MusicData.prototype.isAvailableForConsumption = null;
232226
+
232227
+ // OneOf field names bound to virtual getters and setters
232228
+ var $oneOfFields;
232229
+
232230
+ // Virtual OneOf for proto3 optional field
232231
+ $Object.defineProperty(MusicData.prototype, "_musicContentMediaId", {
232232
+ get: $util.oneOfGetter($oneOfFields = ["musicContentMediaId"]),
232233
+ set: $util.oneOfSetter($oneOfFields)
232234
+ });
232235
+
232236
+ // Virtual OneOf for proto3 optional field
232237
+ $Object.defineProperty(MusicData.prototype, "_songId", {
232238
+ get: $util.oneOfGetter($oneOfFields = ["songId"]),
232239
+ set: $util.oneOfSetter($oneOfFields)
232240
+ });
232241
+
232242
+ // Virtual OneOf for proto3 optional field
232243
+ $Object.defineProperty(MusicData.prototype, "_author", {
232244
+ get: $util.oneOfGetter($oneOfFields = ["author"]),
232245
+ set: $util.oneOfSetter($oneOfFields)
232246
+ });
232247
+
232248
+ // Virtual OneOf for proto3 optional field
232249
+ $Object.defineProperty(MusicData.prototype, "_title", {
232250
+ get: $util.oneOfGetter($oneOfFields = ["title"]),
232251
+ set: $util.oneOfSetter($oneOfFields)
232252
+ });
232253
+
232254
+ // Virtual OneOf for proto3 optional field
232255
+ $Object.defineProperty(MusicData.prototype, "_songUri", {
232256
+ get: $util.oneOfGetter($oneOfFields = ["songUri"]),
232257
+ set: $util.oneOfSetter($oneOfFields)
232258
+ });
232259
+
232260
+ // Virtual OneOf for proto3 optional field
232261
+ $Object.defineProperty(MusicData.prototype, "_artworkUri", {
232262
+ get: $util.oneOfGetter($oneOfFields = ["artworkUri"]),
232263
+ set: $util.oneOfSetter($oneOfFields)
232264
+ });
232265
+
232266
+ // Virtual OneOf for proto3 optional field
232267
+ $Object.defineProperty(MusicData.prototype, "_style", {
232268
+ get: $util.oneOfGetter($oneOfFields = ["style"]),
232269
+ set: $util.oneOfSetter($oneOfFields)
232270
+ });
232271
+
232272
+ // Virtual OneOf for proto3 optional field
232273
+ $Object.defineProperty(MusicData.prototype, "_songStartTimeMs", {
232274
+ get: $util.oneOfGetter($oneOfFields = ["songStartTimeMs"]),
232275
+ set: $util.oneOfSetter($oneOfFields)
232276
+ });
232277
+
232278
+ // Virtual OneOf for proto3 optional field
232279
+ $Object.defineProperty(MusicData.prototype, "_clipDurationMs", {
232280
+ get: $util.oneOfGetter($oneOfFields = ["clipDurationMs"]),
232281
+ set: $util.oneOfSetter($oneOfFields)
232282
+ });
232283
+
232284
+ // Virtual OneOf for proto3 optional field
232285
+ $Object.defineProperty(MusicData.prototype, "_isExplicit", {
232286
+ get: $util.oneOfGetter($oneOfFields = ["isExplicit"]),
232287
+ set: $util.oneOfSetter($oneOfFields)
232288
+ });
232289
+
232290
+ // Virtual OneOf for proto3 optional field
232291
+ $Object.defineProperty(MusicData.prototype, "_countryBlocklist", {
232292
+ get: $util.oneOfGetter($oneOfFields = ["countryBlocklist"]),
232293
+ set: $util.oneOfSetter($oneOfFields)
232294
+ });
232295
+
232296
+ // Virtual OneOf for proto3 optional field
232297
+ $Object.defineProperty(MusicData.prototype, "_artistAttribution", {
232298
+ get: $util.oneOfGetter($oneOfFields = ["artistAttribution"]),
232299
+ set: $util.oneOfSetter($oneOfFields)
232300
+ });
232301
+
232302
+ // Virtual OneOf for proto3 optional field
232303
+ $Object.defineProperty(MusicData.prototype, "_artworkDirectPath", {
232304
+ get: $util.oneOfGetter($oneOfFields = ["artworkDirectPath"]),
232305
+ set: $util.oneOfSetter($oneOfFields)
232306
+ });
232307
+
232308
+ // Virtual OneOf for proto3 optional field
232309
+ $Object.defineProperty(MusicData.prototype, "_artworkSha256", {
232310
+ get: $util.oneOfGetter($oneOfFields = ["artworkSha256"]),
232311
+ set: $util.oneOfSetter($oneOfFields)
232312
+ });
232313
+
232314
+ // Virtual OneOf for proto3 optional field
232315
+ $Object.defineProperty(MusicData.prototype, "_artworkEncSha256", {
232316
+ get: $util.oneOfGetter($oneOfFields = ["artworkEncSha256"]),
232317
+ set: $util.oneOfSetter($oneOfFields)
232318
+ });
232319
+
232320
+ // Virtual OneOf for proto3 optional field
232321
+ $Object.defineProperty(MusicData.prototype, "_artworkMediaKey", {
232322
+ get: $util.oneOfGetter($oneOfFields = ["artworkMediaKey"]),
232323
+ set: $util.oneOfSetter($oneOfFields)
232324
+ });
232325
+
232326
+ // Virtual OneOf for proto3 optional field
232327
+ $Object.defineProperty(MusicData.prototype, "_consumptionCheckedAtS", {
232328
+ get: $util.oneOfGetter($oneOfFields = ["consumptionCheckedAtS"]),
232329
+ set: $util.oneOfSetter($oneOfFields)
232330
+ });
232331
+
232332
+ // Virtual OneOf for proto3 optional field
232333
+ $Object.defineProperty(MusicData.prototype, "_isAvailableForConsumption", {
232334
+ get: $util.oneOfGetter($oneOfFields = ["isAvailableForConsumption"]),
232335
+ set: $util.oneOfSetter($oneOfFields)
232336
+ });
232337
+
232338
+ /**
232339
+ * Creates a new MusicData instance using the specified properties.
232340
+ * @function create
232341
+ * @memberof waproto.MsgOpaqueData.MusicData
232342
+ * @static
232343
+ * @param {waproto.MsgOpaqueData.MusicData.$Properties=} [properties] Properties to set
232344
+ * @returns {waproto.MsgOpaqueData.MusicData} MusicData instance
232345
+ * @type {{
232346
+ * (properties: waproto.MsgOpaqueData.MusicData.$Shape): waproto.MsgOpaqueData.MusicData & waproto.MsgOpaqueData.MusicData.$Shape;
232347
+ * (properties?: waproto.MsgOpaqueData.MusicData.$Properties): waproto.MsgOpaqueData.MusicData;
232348
+ * }}
232349
+ */
232350
+ MusicData.create = function(properties) {
232351
+ return new MusicData(properties);
232352
+ };
232353
+
232354
+ /**
232355
+ * Encodes the specified MusicData message. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.verify|verify} messages.
232356
+ * @function encode
232357
+ * @memberof waproto.MsgOpaqueData.MusicData
232358
+ * @static
232359
+ * @param {waproto.MsgOpaqueData.MusicData.$Properties} message MusicData message or plain object to encode
232360
+ * @param {$protobuf.Writer} [writer] Writer to encode to
232361
+ * @returns {$protobuf.Writer} Writer
232362
+ */
232363
+ MusicData.encode = function (message, writer, _depth) {
232364
+ if (!writer)
232365
+ writer = $Writer.create();
232366
+ if (_depth === $undefined)
232367
+ _depth = 0;
232368
+ if (_depth > $util.recursionLimit)
232369
+ throw $Error("max depth exceeded");
232370
+ if (message.musicContentMediaId != null && $Object.hasOwnProperty.call(message, "musicContentMediaId"))
232371
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.musicContentMediaId);
232372
+ if (message.songId != null && $Object.hasOwnProperty.call(message, "songId"))
232373
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.songId);
232374
+ if (message.author != null && $Object.hasOwnProperty.call(message, "author"))
232375
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.author);
232376
+ if (message.title != null && $Object.hasOwnProperty.call(message, "title"))
232377
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.title);
232378
+ if (message.songUri != null && $Object.hasOwnProperty.call(message, "songUri"))
232379
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.songUri);
232380
+ if (message.artworkUri != null && $Object.hasOwnProperty.call(message, "artworkUri"))
232381
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.artworkUri);
232382
+ if (message.style != null && $Object.hasOwnProperty.call(message, "style"))
232383
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.style);
232384
+ if (message.songStartTimeMs != null && $Object.hasOwnProperty.call(message, "songStartTimeMs"))
232385
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.songStartTimeMs);
232386
+ if (message.clipDurationMs != null && $Object.hasOwnProperty.call(message, "clipDurationMs"))
232387
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.clipDurationMs);
232388
+ if (message.isExplicit != null && $Object.hasOwnProperty.call(message, "isExplicit"))
232389
+ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isExplicit);
232390
+ if (message.countryBlocklist != null && $Object.hasOwnProperty.call(message, "countryBlocklist"))
232391
+ writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.countryBlocklist);
232392
+ if (message.artistAttribution != null && $Object.hasOwnProperty.call(message, "artistAttribution"))
232393
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.artistAttribution);
232394
+ if (message.artworkDirectPath != null && $Object.hasOwnProperty.call(message, "artworkDirectPath"))
232395
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.artworkDirectPath);
232396
+ if (message.artworkSha256 != null && $Object.hasOwnProperty.call(message, "artworkSha256"))
232397
+ writer.uint32(/* id 14, wireType 2 =*/114).bytes(message.artworkSha256);
232398
+ if (message.artworkEncSha256 != null && $Object.hasOwnProperty.call(message, "artworkEncSha256"))
232399
+ writer.uint32(/* id 15, wireType 2 =*/122).bytes(message.artworkEncSha256);
232400
+ if (message.artworkMediaKey != null && $Object.hasOwnProperty.call(message, "artworkMediaKey"))
232401
+ writer.uint32(/* id 16, wireType 2 =*/130).bytes(message.artworkMediaKey);
232402
+ if (message.consumptionCheckedAtS != null && $Object.hasOwnProperty.call(message, "consumptionCheckedAtS"))
232403
+ writer.uint32(/* id 17, wireType 0 =*/136).int64(message.consumptionCheckedAtS);
232404
+ if (message.isAvailableForConsumption != null && $Object.hasOwnProperty.call(message, "isAvailableForConsumption"))
232405
+ writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isAvailableForConsumption);
232406
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
232407
+ for (var i = 0; i < message.$unknowns.length; ++i)
232408
+ writer.raw(message.$unknowns[i]);
232409
+ return writer;
232410
+ };
232411
+
232412
+ /**
232413
+ * Encodes the specified MusicData message, length delimited. Does not implicitly {@link waproto.MsgOpaqueData.MusicData.verify|verify} messages.
232414
+ * @function encodeDelimited
232415
+ * @memberof waproto.MsgOpaqueData.MusicData
232416
+ * @static
232417
+ * @param {waproto.MsgOpaqueData.MusicData.$Properties} message MusicData message or plain object to encode
232418
+ * @param {$protobuf.Writer} [writer] Writer to encode to
232419
+ * @returns {$protobuf.Writer} Writer
232420
+ */
232421
+ MusicData.encodeDelimited = function(message, writer) {
232422
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
232423
+ };
232424
+
232425
+ /**
232426
+ * Decodes a MusicData message from the specified reader or buffer.
232427
+ * @function decode
232428
+ * @memberof waproto.MsgOpaqueData.MusicData
232429
+ * @static
232430
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
232431
+ * @param {number} [length] Message length if known beforehand
232432
+ * @returns {waproto.MsgOpaqueData.MusicData & waproto.MsgOpaqueData.MusicData.$Shape} MusicData
232433
+ * @throws {Error} If the payload is not a reader or valid buffer
232434
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
232435
+ */
232436
+ MusicData.decode = function (reader, length, _end, _depth, _target) {
232437
+ if (!(reader instanceof $Reader))
232438
+ reader = $Reader.create(reader);
232439
+ if (_depth === $undefined)
232440
+ _depth = 0;
232441
+ if (_depth > $Reader.recursionLimit)
232442
+ throw $Error("max depth exceeded");
232443
+ var end, message;
232444
+ if (length === $undefined)
232445
+ end = reader.len;
232446
+ else {
232447
+ end = reader.pos + length;
232448
+ if (end > reader.len)
232449
+ throw $RangeError("index out of range");
232450
+ length = reader.len;
232451
+ reader.len = end;
232452
+ }
232453
+ message = _target || new $root.waproto.MsgOpaqueData.MusicData();
232454
+ while (reader.pos < end) {
232455
+ var start = reader.pos;
232456
+ var tag = reader.tag();
232457
+ if (tag === _end) {
232458
+ _end = $undefined;
232459
+ break;
232460
+ }
232461
+ var wireType = tag & 7;
232462
+ switch (tag >>>= 3) {
232463
+ case 1: {
232464
+ if (wireType !== 2)
232465
+ break;
232466
+ message.musicContentMediaId = reader.stringVerify();
232467
+ message._musicContentMediaId = "musicContentMediaId";
232468
+ continue;
232469
+ }
232470
+ case 2: {
232471
+ if (wireType !== 2)
232472
+ break;
232473
+ message.songId = reader.stringVerify();
232474
+ message._songId = "songId";
232475
+ continue;
232476
+ }
232477
+ case 3: {
232478
+ if (wireType !== 2)
232479
+ break;
232480
+ message.author = reader.stringVerify();
232481
+ message._author = "author";
232482
+ continue;
232483
+ }
232484
+ case 4: {
232485
+ if (wireType !== 2)
232486
+ break;
232487
+ message.title = reader.stringVerify();
232488
+ message._title = "title";
232489
+ continue;
232490
+ }
232491
+ case 5: {
232492
+ if (wireType !== 2)
232493
+ break;
232494
+ message.songUri = reader.stringVerify();
232495
+ message._songUri = "songUri";
232496
+ continue;
232497
+ }
232498
+ case 6: {
232499
+ if (wireType !== 2)
232500
+ break;
232501
+ message.artworkUri = reader.stringVerify();
232502
+ message._artworkUri = "artworkUri";
232503
+ continue;
232504
+ }
232505
+ case 7: {
232506
+ if (wireType !== 0)
232507
+ break;
232508
+ message.style = reader.int32();
232509
+ message._style = "style";
232510
+ continue;
232511
+ }
232512
+ case 8: {
232513
+ if (wireType !== 0)
232514
+ break;
232515
+ message.songStartTimeMs = reader.int32();
232516
+ message._songStartTimeMs = "songStartTimeMs";
232517
+ continue;
232518
+ }
232519
+ case 9: {
232520
+ if (wireType !== 0)
232521
+ break;
232522
+ message.clipDurationMs = reader.int32();
232523
+ message._clipDurationMs = "clipDurationMs";
232524
+ continue;
232525
+ }
232526
+ case 10: {
232527
+ if (wireType !== 0)
232528
+ break;
232529
+ message.isExplicit = reader.bool();
232530
+ message._isExplicit = "isExplicit";
232531
+ continue;
232532
+ }
232533
+ case 11: {
232534
+ if (wireType !== 2)
232535
+ break;
232536
+ message.countryBlocklist = reader.bytes();
232537
+ message._countryBlocklist = "countryBlocklist";
232538
+ continue;
232539
+ }
232540
+ case 12: {
232541
+ if (wireType !== 2)
232542
+ break;
232543
+ message.artistAttribution = reader.stringVerify();
232544
+ message._artistAttribution = "artistAttribution";
232545
+ continue;
232546
+ }
232547
+ case 13: {
232548
+ if (wireType !== 2)
232549
+ break;
232550
+ message.artworkDirectPath = reader.stringVerify();
232551
+ message._artworkDirectPath = "artworkDirectPath";
232552
+ continue;
232553
+ }
232554
+ case 14: {
232555
+ if (wireType !== 2)
232556
+ break;
232557
+ message.artworkSha256 = reader.bytes();
232558
+ message._artworkSha256 = "artworkSha256";
232559
+ continue;
232560
+ }
232561
+ case 15: {
232562
+ if (wireType !== 2)
232563
+ break;
232564
+ message.artworkEncSha256 = reader.bytes();
232565
+ message._artworkEncSha256 = "artworkEncSha256";
232566
+ continue;
232567
+ }
232568
+ case 16: {
232569
+ if (wireType !== 2)
232570
+ break;
232571
+ message.artworkMediaKey = reader.bytes();
232572
+ message._artworkMediaKey = "artworkMediaKey";
232573
+ continue;
232574
+ }
232575
+ case 17: {
232576
+ if (wireType !== 0)
232577
+ break;
232578
+ message.consumptionCheckedAtS = reader.int64();
232579
+ message._consumptionCheckedAtS = "consumptionCheckedAtS";
232580
+ continue;
232581
+ }
232582
+ case 18: {
232583
+ if (wireType !== 0)
232584
+ break;
232585
+ message.isAvailableForConsumption = reader.bool();
232586
+ message._isAvailableForConsumption = "isAvailableForConsumption";
232587
+ continue;
232588
+ }
232589
+ }
232590
+ reader.skipType(wireType, _depth, tag);
232591
+ if (!reader.discardUnknown) {
232592
+ $util.makeProp(message, "$unknowns", false);
232593
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
232594
+ }
232595
+ }
232596
+ if (length !== $undefined) {
232597
+ if (reader.pos !== end)
232598
+ throw $RangeError("index out of range");
232599
+ reader.len = length;
232600
+ }
232601
+ if (_end !== $undefined)
232602
+ throw $Error("missing end group");
232603
+ return message;
232604
+ };
232605
+
232606
+ /**
232607
+ * Decodes a MusicData message from the specified reader or buffer, length delimited.
232608
+ * @function decodeDelimited
232609
+ * @memberof waproto.MsgOpaqueData.MusicData
232610
+ * @static
232611
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
232612
+ * @returns {waproto.MsgOpaqueData.MusicData & waproto.MsgOpaqueData.MusicData.$Shape} MusicData
232613
+ * @throws {Error} If the payload is not a reader or valid buffer
232614
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
232615
+ */
232616
+ MusicData.decodeDelimited = function(reader) {
232617
+ if (!(reader instanceof $Reader))
232618
+ reader = new $Reader(reader);
232619
+ return this.decode(reader, reader.size());
232620
+ };
232621
+
232622
+ /**
232623
+ * Verifies a MusicData message.
232624
+ * @function verify
232625
+ * @memberof waproto.MsgOpaqueData.MusicData
232626
+ * @static
232627
+ * @param {Object.<string,*>} message Plain object to verify
232628
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
232629
+ */
232630
+ MusicData.verify = function (message, _depth) {
232631
+ if (typeof message !== "object" || message === null)
232632
+ return "object expected";
232633
+ if (_depth === $undefined)
232634
+ _depth = 0;
232635
+ if (_depth > $util.recursionLimit)
232636
+ return "max depth exceeded";
232637
+ var properties = {};
232638
+ if (message.musicContentMediaId != null && $Object.hasOwnProperty.call(message, "musicContentMediaId")) {
232639
+ properties._musicContentMediaId = 1;
232640
+ if (!$util.isString(message.musicContentMediaId))
232641
+ return "musicContentMediaId: string expected";
232642
+ }
232643
+ if (message.songId != null && $Object.hasOwnProperty.call(message, "songId")) {
232644
+ properties._songId = 1;
232645
+ if (!$util.isString(message.songId))
232646
+ return "songId: string expected";
232647
+ }
232648
+ if (message.author != null && $Object.hasOwnProperty.call(message, "author")) {
232649
+ properties._author = 1;
232650
+ if (!$util.isString(message.author))
232651
+ return "author: string expected";
232652
+ }
232653
+ if (message.title != null && $Object.hasOwnProperty.call(message, "title")) {
232654
+ properties._title = 1;
232655
+ if (!$util.isString(message.title))
232656
+ return "title: string expected";
232657
+ }
232658
+ if (message.songUri != null && $Object.hasOwnProperty.call(message, "songUri")) {
232659
+ properties._songUri = 1;
232660
+ if (!$util.isString(message.songUri))
232661
+ return "songUri: string expected";
232662
+ }
232663
+ if (message.artworkUri != null && $Object.hasOwnProperty.call(message, "artworkUri")) {
232664
+ properties._artworkUri = 1;
232665
+ if (!$util.isString(message.artworkUri))
232666
+ return "artworkUri: string expected";
232667
+ }
232668
+ if (message.style != null && $Object.hasOwnProperty.call(message, "style")) {
232669
+ properties._style = 1;
232670
+ if (!$util.isInteger(message.style))
232671
+ return "style: integer expected";
232672
+ }
232673
+ if (message.songStartTimeMs != null && $Object.hasOwnProperty.call(message, "songStartTimeMs")) {
232674
+ properties._songStartTimeMs = 1;
232675
+ if (!$util.isInteger(message.songStartTimeMs))
232676
+ return "songStartTimeMs: integer expected";
232677
+ }
232678
+ if (message.clipDurationMs != null && $Object.hasOwnProperty.call(message, "clipDurationMs")) {
232679
+ properties._clipDurationMs = 1;
232680
+ if (!$util.isInteger(message.clipDurationMs))
232681
+ return "clipDurationMs: integer expected";
232682
+ }
232683
+ if (message.isExplicit != null && $Object.hasOwnProperty.call(message, "isExplicit")) {
232684
+ properties._isExplicit = 1;
232685
+ if (typeof message.isExplicit !== "boolean")
232686
+ return "isExplicit: boolean expected";
232687
+ }
232688
+ if (message.countryBlocklist != null && $Object.hasOwnProperty.call(message, "countryBlocklist")) {
232689
+ properties._countryBlocklist = 1;
232690
+ if (!(message.countryBlocklist && typeof message.countryBlocklist.length === "number" || $util.isString(message.countryBlocklist)))
232691
+ return "countryBlocklist: buffer expected";
232692
+ }
232693
+ if (message.artistAttribution != null && $Object.hasOwnProperty.call(message, "artistAttribution")) {
232694
+ properties._artistAttribution = 1;
232695
+ if (!$util.isString(message.artistAttribution))
232696
+ return "artistAttribution: string expected";
232697
+ }
232698
+ if (message.artworkDirectPath != null && $Object.hasOwnProperty.call(message, "artworkDirectPath")) {
232699
+ properties._artworkDirectPath = 1;
232700
+ if (!$util.isString(message.artworkDirectPath))
232701
+ return "artworkDirectPath: string expected";
232702
+ }
232703
+ if (message.artworkSha256 != null && $Object.hasOwnProperty.call(message, "artworkSha256")) {
232704
+ properties._artworkSha256 = 1;
232705
+ if (!(message.artworkSha256 && typeof message.artworkSha256.length === "number" || $util.isString(message.artworkSha256)))
232706
+ return "artworkSha256: buffer expected";
232707
+ }
232708
+ if (message.artworkEncSha256 != null && $Object.hasOwnProperty.call(message, "artworkEncSha256")) {
232709
+ properties._artworkEncSha256 = 1;
232710
+ if (!(message.artworkEncSha256 && typeof message.artworkEncSha256.length === "number" || $util.isString(message.artworkEncSha256)))
232711
+ return "artworkEncSha256: buffer expected";
232712
+ }
232713
+ if (message.artworkMediaKey != null && $Object.hasOwnProperty.call(message, "artworkMediaKey")) {
232714
+ properties._artworkMediaKey = 1;
232715
+ if (!(message.artworkMediaKey && typeof message.artworkMediaKey.length === "number" || $util.isString(message.artworkMediaKey)))
232716
+ return "artworkMediaKey: buffer expected";
232717
+ }
232718
+ if (message.consumptionCheckedAtS != null && $Object.hasOwnProperty.call(message, "consumptionCheckedAtS")) {
232719
+ properties._consumptionCheckedAtS = 1;
232720
+ if (!$util.isInteger(message.consumptionCheckedAtS) && !(message.consumptionCheckedAtS && $util.isInteger(message.consumptionCheckedAtS.low) && $util.isInteger(message.consumptionCheckedAtS.high)))
232721
+ return "consumptionCheckedAtS: integer|Long expected";
232722
+ }
232723
+ if (message.isAvailableForConsumption != null && $Object.hasOwnProperty.call(message, "isAvailableForConsumption")) {
232724
+ properties._isAvailableForConsumption = 1;
232725
+ if (typeof message.isAvailableForConsumption !== "boolean")
232726
+ return "isAvailableForConsumption: boolean expected";
232727
+ }
232728
+ return null;
232729
+ };
232730
+
232731
+ /**
232732
+ * Creates a MusicData message from a plain object. Also converts values to their respective internal types.
232733
+ * @function fromObject
232734
+ * @memberof waproto.MsgOpaqueData.MusicData
232735
+ * @static
232736
+ * @param {Object.<string,*>} object Plain object
232737
+ * @returns {waproto.MsgOpaqueData.MusicData} MusicData
232738
+ */
232739
+ MusicData.fromObject = function (object, _depth) {
232740
+ if (object instanceof $root.waproto.MsgOpaqueData.MusicData)
232741
+ return object;
232742
+ if (!$util.isObject(object))
232743
+ throw $TypeError(".waproto.MsgOpaqueData.MusicData: object expected");
232744
+ if (_depth === $undefined)
232745
+ _depth = 0;
232746
+ if (_depth > $util.recursionLimit)
232747
+ throw $Error("max depth exceeded");
232748
+ var message = new $root.waproto.MsgOpaqueData.MusicData();
232749
+ if (object.musicContentMediaId != null)
232750
+ message.musicContentMediaId = $String(object.musicContentMediaId);
232751
+ if (object.songId != null)
232752
+ message.songId = $String(object.songId);
232753
+ if (object.author != null)
232754
+ message.author = $String(object.author);
232755
+ if (object.title != null)
232756
+ message.title = $String(object.title);
232757
+ if (object.songUri != null)
232758
+ message.songUri = $String(object.songUri);
232759
+ if (object.artworkUri != null)
232760
+ message.artworkUri = $String(object.artworkUri);
232761
+ if (object.style != null)
232762
+ message.style = object.style | 0;
232763
+ if (object.songStartTimeMs != null)
232764
+ message.songStartTimeMs = object.songStartTimeMs | 0;
232765
+ if (object.clipDurationMs != null)
232766
+ message.clipDurationMs = object.clipDurationMs | 0;
232767
+ if (object.isExplicit != null)
232768
+ message.isExplicit = $Boolean(object.isExplicit);
232769
+ if (object.countryBlocklist != null)
232770
+ if (typeof object.countryBlocklist === "string")
232771
+ $util.base64.decode(object.countryBlocklist, message.countryBlocklist = $util.newBuffer($util.base64.length(object.countryBlocklist)), 0);
232772
+ else if (object.countryBlocklist.length >= 0)
232773
+ message.countryBlocklist = object.countryBlocklist;
232774
+ if (object.artistAttribution != null)
232775
+ message.artistAttribution = $String(object.artistAttribution);
232776
+ if (object.artworkDirectPath != null)
232777
+ message.artworkDirectPath = $String(object.artworkDirectPath);
232778
+ if (object.artworkSha256 != null)
232779
+ if (typeof object.artworkSha256 === "string")
232780
+ $util.base64.decode(object.artworkSha256, message.artworkSha256 = $util.newBuffer($util.base64.length(object.artworkSha256)), 0);
232781
+ else if (object.artworkSha256.length >= 0)
232782
+ message.artworkSha256 = object.artworkSha256;
232783
+ if (object.artworkEncSha256 != null)
232784
+ if (typeof object.artworkEncSha256 === "string")
232785
+ $util.base64.decode(object.artworkEncSha256, message.artworkEncSha256 = $util.newBuffer($util.base64.length(object.artworkEncSha256)), 0);
232786
+ else if (object.artworkEncSha256.length >= 0)
232787
+ message.artworkEncSha256 = object.artworkEncSha256;
232788
+ if (object.artworkMediaKey != null)
232789
+ if (typeof object.artworkMediaKey === "string")
232790
+ $util.base64.decode(object.artworkMediaKey, message.artworkMediaKey = $util.newBuffer($util.base64.length(object.artworkMediaKey)), 0);
232791
+ else if (object.artworkMediaKey.length >= 0)
232792
+ message.artworkMediaKey = object.artworkMediaKey;
232793
+ if (object.consumptionCheckedAtS != null)
232794
+ if ($util.Long)
232795
+ message.consumptionCheckedAtS = $util.Long.fromValue(object.consumptionCheckedAtS, false);
232796
+ else if (typeof object.consumptionCheckedAtS === "string")
232797
+ message.consumptionCheckedAtS = $parseInt(object.consumptionCheckedAtS, 10);
232798
+ else if (typeof object.consumptionCheckedAtS === "number")
232799
+ message.consumptionCheckedAtS = object.consumptionCheckedAtS;
232800
+ else if (typeof object.consumptionCheckedAtS === "object")
232801
+ message.consumptionCheckedAtS = new $util.LongBits(object.consumptionCheckedAtS.low >>> 0, object.consumptionCheckedAtS.high >>> 0).toNumber();
232802
+ if (object.isAvailableForConsumption != null)
232803
+ message.isAvailableForConsumption = $Boolean(object.isAvailableForConsumption);
232804
+ return message;
232805
+ };
232806
+
232807
+ /**
232808
+ * Creates a plain object from a MusicData message. Also converts values to other types if specified.
232809
+ * @function toObject
232810
+ * @memberof waproto.MsgOpaqueData.MusicData
232811
+ * @static
232812
+ * @param {waproto.MsgOpaqueData.MusicData} message MusicData
232813
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
232814
+ * @returns {Object.<string,*>} Plain object
232815
+ */
232816
+ MusicData.toObject = function (message, options, _depth) {
232817
+ if (!options)
232818
+ options = {};
232819
+ if (_depth === $undefined)
232820
+ _depth = 0;
232821
+ if (_depth > $util.recursionLimit)
232822
+ throw $Error("max depth exceeded");
232823
+ var object = {};
232824
+ if (message.musicContentMediaId != null && $Object.hasOwnProperty.call(message, "musicContentMediaId"))
232825
+ object.musicContentMediaId = message.musicContentMediaId;
232826
+ if (message.songId != null && $Object.hasOwnProperty.call(message, "songId"))
232827
+ object.songId = message.songId;
232828
+ if (message.author != null && $Object.hasOwnProperty.call(message, "author"))
232829
+ object.author = message.author;
232830
+ if (message.title != null && $Object.hasOwnProperty.call(message, "title"))
232831
+ object.title = message.title;
232832
+ if (message.songUri != null && $Object.hasOwnProperty.call(message, "songUri"))
232833
+ object.songUri = message.songUri;
232834
+ if (message.artworkUri != null && $Object.hasOwnProperty.call(message, "artworkUri"))
232835
+ object.artworkUri = message.artworkUri;
232836
+ if (message.style != null && $Object.hasOwnProperty.call(message, "style"))
232837
+ object.style = message.style;
232838
+ if (message.songStartTimeMs != null && $Object.hasOwnProperty.call(message, "songStartTimeMs"))
232839
+ object.songStartTimeMs = message.songStartTimeMs;
232840
+ if (message.clipDurationMs != null && $Object.hasOwnProperty.call(message, "clipDurationMs"))
232841
+ object.clipDurationMs = message.clipDurationMs;
232842
+ if (message.isExplicit != null && $Object.hasOwnProperty.call(message, "isExplicit"))
232843
+ object.isExplicit = message.isExplicit;
232844
+ if (message.countryBlocklist != null && $Object.hasOwnProperty.call(message, "countryBlocklist"))
232845
+ object.countryBlocklist = options.bytes === $String ? $util.base64.encode(message.countryBlocklist, 0, message.countryBlocklist.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.countryBlocklist) : message.countryBlocklist;
232846
+ if (message.artistAttribution != null && $Object.hasOwnProperty.call(message, "artistAttribution"))
232847
+ object.artistAttribution = message.artistAttribution;
232848
+ if (message.artworkDirectPath != null && $Object.hasOwnProperty.call(message, "artworkDirectPath"))
232849
+ object.artworkDirectPath = message.artworkDirectPath;
232850
+ if (message.artworkSha256 != null && $Object.hasOwnProperty.call(message, "artworkSha256"))
232851
+ object.artworkSha256 = options.bytes === $String ? $util.base64.encode(message.artworkSha256, 0, message.artworkSha256.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.artworkSha256) : message.artworkSha256;
232852
+ if (message.artworkEncSha256 != null && $Object.hasOwnProperty.call(message, "artworkEncSha256"))
232853
+ object.artworkEncSha256 = options.bytes === $String ? $util.base64.encode(message.artworkEncSha256, 0, message.artworkEncSha256.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.artworkEncSha256) : message.artworkEncSha256;
232854
+ if (message.artworkMediaKey != null && $Object.hasOwnProperty.call(message, "artworkMediaKey"))
232855
+ object.artworkMediaKey = options.bytes === $String ? $util.base64.encode(message.artworkMediaKey, 0, message.artworkMediaKey.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.artworkMediaKey) : message.artworkMediaKey;
232856
+ if (message.consumptionCheckedAtS != null && $Object.hasOwnProperty.call(message, "consumptionCheckedAtS"))
232857
+ if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
232858
+ object.consumptionCheckedAtS = typeof message.consumptionCheckedAtS === "number" ? $BigInt(message.consumptionCheckedAtS) : $util.Long.fromBits(message.consumptionCheckedAtS.low >>> 0, message.consumptionCheckedAtS.high >>> 0, false).toBigInt();
232859
+ else if (typeof message.consumptionCheckedAtS === "number")
232860
+ object.consumptionCheckedAtS = options.longs === $String ? $String(message.consumptionCheckedAtS) : message.consumptionCheckedAtS;
232861
+ else
232862
+ 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;
232863
+ if (message.isAvailableForConsumption != null && $Object.hasOwnProperty.call(message, "isAvailableForConsumption"))
232864
+ object.isAvailableForConsumption = message.isAvailableForConsumption;
232865
+ return object;
232866
+ };
232867
+
232868
+ /**
232869
+ * Converts this MusicData to JSON.
232870
+ * @function toJSON
232871
+ * @memberof waproto.MsgOpaqueData.MusicData
232872
+ * @instance
232873
+ * @returns {Object.<string,*>} JSON object
232874
+ */
232875
+ MusicData.prototype.toJSON = function() {
232876
+ return MusicData.toObject(this, $protobuf.util.toJSONOptions);
232877
+ };
232878
+
232879
+ /**
232880
+ * Gets the type url for MusicData
232881
+ * @function getTypeUrl
232882
+ * @memberof waproto.MsgOpaqueData.MusicData
232883
+ * @static
232884
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
232885
+ * @returns {string} The type url
232886
+ */
232887
+ MusicData.getTypeUrl = function(prefix) {
232888
+ if (prefix === $undefined)
232889
+ prefix = "type.googleapis.com";
232890
+ return prefix + "/waproto.MsgOpaqueData.MusicData";
232891
+ };
232892
+
232893
+ return MusicData;
232894
+ })();
232895
+
231990
232896
  /**
231991
232897
  * PollContentType enum.
231992
232898
  * @name waproto.MsgOpaqueData.PollContentType
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect/wa-proto",
3
- "version": "2.3000.1050555521",
3
+ "version": "2.3000.1050596417",
4
4
  "description": "Protobuf files from WhatsApp WEB",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {