@wppconnect/wa-proto 1.1.4 → 1.1.5

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/dist/index.js CHANGED
@@ -14462,6 +14462,7 @@ $root.waproto = (function() {
14462
14462
  * @memberof waproto
14463
14463
  * @interface IClientPairingProps
14464
14464
  * @property {boolean|null} [isChatDbLidMigrated] ClientPairingProps isChatDbLidMigrated
14465
+ * @property {boolean|null} [isSyncdPureLidSession] ClientPairingProps isSyncdPureLidSession
14465
14466
  */
14466
14467
 
14467
14468
  /**
@@ -14487,6 +14488,14 @@ $root.waproto = (function() {
14487
14488
  */
14488
14489
  ClientPairingProps.prototype.isChatDbLidMigrated = null;
14489
14490
 
14491
+ /**
14492
+ * ClientPairingProps isSyncdPureLidSession.
14493
+ * @member {boolean|null|undefined} isSyncdPureLidSession
14494
+ * @memberof waproto.ClientPairingProps
14495
+ * @instance
14496
+ */
14497
+ ClientPairingProps.prototype.isSyncdPureLidSession = null;
14498
+
14490
14499
  // OneOf field names bound to virtual getters and setters
14491
14500
  var $oneOfFields;
14492
14501
 
@@ -14496,6 +14505,12 @@ $root.waproto = (function() {
14496
14505
  set: $util.oneOfSetter($oneOfFields)
14497
14506
  });
14498
14507
 
14508
+ // Virtual OneOf for proto3 optional field
14509
+ Object.defineProperty(ClientPairingProps.prototype, "_isSyncdPureLidSession", {
14510
+ get: $util.oneOfGetter($oneOfFields = ["isSyncdPureLidSession"]),
14511
+ set: $util.oneOfSetter($oneOfFields)
14512
+ });
14513
+
14499
14514
  /**
14500
14515
  * Creates a new ClientPairingProps instance using the specified properties.
14501
14516
  * @function create
@@ -14522,6 +14537,8 @@ $root.waproto = (function() {
14522
14537
  writer = $Writer.create();
14523
14538
  if (message.isChatDbLidMigrated != null && Object.hasOwnProperty.call(message, "isChatDbLidMigrated"))
14524
14539
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isChatDbLidMigrated);
14540
+ if (message.isSyncdPureLidSession != null && Object.hasOwnProperty.call(message, "isSyncdPureLidSession"))
14541
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isSyncdPureLidSession);
14525
14542
  return writer;
14526
14543
  };
14527
14544
 
@@ -14560,6 +14577,10 @@ $root.waproto = (function() {
14560
14577
  message.isChatDbLidMigrated = reader.bool();
14561
14578
  break;
14562
14579
  }
14580
+ case 2: {
14581
+ message.isSyncdPureLidSession = reader.bool();
14582
+ break;
14583
+ }
14563
14584
  default:
14564
14585
  reader.skipType(tag & 7);
14565
14586
  break;
@@ -14601,6 +14622,11 @@ $root.waproto = (function() {
14601
14622
  if (typeof message.isChatDbLidMigrated !== "boolean")
14602
14623
  return "isChatDbLidMigrated: boolean expected";
14603
14624
  }
14625
+ if (message.isSyncdPureLidSession != null && message.hasOwnProperty("isSyncdPureLidSession")) {
14626
+ properties._isSyncdPureLidSession = 1;
14627
+ if (typeof message.isSyncdPureLidSession !== "boolean")
14628
+ return "isSyncdPureLidSession: boolean expected";
14629
+ }
14604
14630
  return null;
14605
14631
  };
14606
14632
 
@@ -14618,6 +14644,8 @@ $root.waproto = (function() {
14618
14644
  var message = new $root.waproto.ClientPairingProps();
14619
14645
  if (object.isChatDbLidMigrated != null)
14620
14646
  message.isChatDbLidMigrated = Boolean(object.isChatDbLidMigrated);
14647
+ if (object.isSyncdPureLidSession != null)
14648
+ message.isSyncdPureLidSession = Boolean(object.isSyncdPureLidSession);
14621
14649
  return message;
14622
14650
  };
14623
14651
 
@@ -14639,6 +14667,11 @@ $root.waproto = (function() {
14639
14667
  if (options.oneofs)
14640
14668
  object._isChatDbLidMigrated = "isChatDbLidMigrated";
14641
14669
  }
14670
+ if (message.isSyncdPureLidSession != null && message.hasOwnProperty("isSyncdPureLidSession")) {
14671
+ object.isSyncdPureLidSession = message.isSyncdPureLidSession;
14672
+ if (options.oneofs)
14673
+ object._isSyncdPureLidSession = "isSyncdPureLidSession";
14674
+ }
14642
14675
  return object;
14643
14676
  };
14644
14677
 
@@ -20823,6 +20856,7 @@ $root.waproto = (function() {
20823
20856
  * @property {Uint8Array|null} [ctwaPayload] ContextInfo ctwaPayload
20824
20857
  * @property {waproto.ContextInfo.IForwardedAIBotMessageInfo|null} [forwardedAiBotMessageInfo] ContextInfo forwardedAiBotMessageInfo
20825
20858
  * @property {waproto.ContextInfo.StatusAttributionType|null} [statusAttributionType] ContextInfo statusAttributionType
20859
+ * @property {waproto.IUrlTrackingMap|null} [urlTrackingMap] ContextInfo urlTrackingMap
20826
20860
  */
20827
20861
 
20828
20862
  /**
@@ -21170,6 +21204,14 @@ $root.waproto = (function() {
21170
21204
  */
21171
21205
  ContextInfo.prototype.statusAttributionType = null;
21172
21206
 
21207
+ /**
21208
+ * ContextInfo urlTrackingMap.
21209
+ * @member {waproto.IUrlTrackingMap|null|undefined} urlTrackingMap
21210
+ * @memberof waproto.ContextInfo
21211
+ * @instance
21212
+ */
21213
+ ContextInfo.prototype.urlTrackingMap = null;
21214
+
21173
21215
  // OneOf field names bound to virtual getters and setters
21174
21216
  var $oneOfFields;
21175
21217
 
@@ -21407,6 +21449,12 @@ $root.waproto = (function() {
21407
21449
  set: $util.oneOfSetter($oneOfFields)
21408
21450
  });
21409
21451
 
21452
+ // Virtual OneOf for proto3 optional field
21453
+ Object.defineProperty(ContextInfo.prototype, "_urlTrackingMap", {
21454
+ get: $util.oneOfGetter($oneOfFields = ["urlTrackingMap"]),
21455
+ set: $util.oneOfSetter($oneOfFields)
21456
+ });
21457
+
21410
21458
  /**
21411
21459
  * Creates a new ContextInfo instance using the specified properties.
21412
21460
  * @function create
@@ -21515,6 +21563,8 @@ $root.waproto = (function() {
21515
21563
  $root.waproto.ContextInfo.ForwardedAIBotMessageInfo.encode(message.forwardedAiBotMessageInfo, writer.uint32(/* id 56, wireType 2 =*/450).fork()).ldelim();
21516
21564
  if (message.statusAttributionType != null && Object.hasOwnProperty.call(message, "statusAttributionType"))
21517
21565
  writer.uint32(/* id 57, wireType 0 =*/456).int32(message.statusAttributionType);
21566
+ if (message.urlTrackingMap != null && Object.hasOwnProperty.call(message, "urlTrackingMap"))
21567
+ $root.waproto.UrlTrackingMap.encode(message.urlTrackingMap, writer.uint32(/* id 58, wireType 2 =*/466).fork()).ldelim();
21518
21568
  return writer;
21519
21569
  };
21520
21570
 
@@ -21717,6 +21767,10 @@ $root.waproto = (function() {
21717
21767
  message.statusAttributionType = reader.int32();
21718
21768
  break;
21719
21769
  }
21770
+ case 58: {
21771
+ message.urlTrackingMap = $root.waproto.UrlTrackingMap.decode(reader, reader.uint32());
21772
+ break;
21773
+ }
21720
21774
  default:
21721
21775
  reader.skipType(tag & 7);
21722
21776
  break;
@@ -22005,6 +22059,14 @@ $root.waproto = (function() {
22005
22059
  break;
22006
22060
  }
22007
22061
  }
22062
+ if (message.urlTrackingMap != null && message.hasOwnProperty("urlTrackingMap")) {
22063
+ properties._urlTrackingMap = 1;
22064
+ {
22065
+ var error = $root.waproto.UrlTrackingMap.verify(message.urlTrackingMap);
22066
+ if (error)
22067
+ return "urlTrackingMap." + error;
22068
+ }
22069
+ }
22008
22070
  return null;
22009
22071
  };
22010
22072
 
@@ -22181,6 +22243,11 @@ $root.waproto = (function() {
22181
22243
  message.statusAttributionType = 1;
22182
22244
  break;
22183
22245
  }
22246
+ if (object.urlTrackingMap != null) {
22247
+ if (typeof object.urlTrackingMap !== "object")
22248
+ throw TypeError(".waproto.ContextInfo.urlTrackingMap: object expected");
22249
+ message.urlTrackingMap = $root.waproto.UrlTrackingMap.fromObject(object.urlTrackingMap);
22250
+ }
22184
22251
  return message;
22185
22252
  };
22186
22253
 
@@ -22409,6 +22476,11 @@ $root.waproto = (function() {
22409
22476
  if (options.oneofs)
22410
22477
  object._statusAttributionType = "statusAttributionType";
22411
22478
  }
22479
+ if (message.urlTrackingMap != null && message.hasOwnProperty("urlTrackingMap")) {
22480
+ object.urlTrackingMap = $root.waproto.UrlTrackingMap.toObject(message.urlTrackingMap, options);
22481
+ if (options.oneofs)
22482
+ object._urlTrackingMap = "urlTrackingMap";
22483
+ }
22412
22484
  return object;
22413
22485
  };
22414
22486
 
@@ -40676,6 +40748,308 @@ $root.waproto = (function() {
40676
40748
  return KeyId;
40677
40749
  })();
40678
40750
 
40751
+ waproto.LIDMigrationMapping = (function() {
40752
+
40753
+ /**
40754
+ * Properties of a LIDMigrationMapping.
40755
+ * @memberof waproto
40756
+ * @interface ILIDMigrationMapping
40757
+ * @property {number|Long} pn LIDMigrationMapping pn
40758
+ * @property {number|Long} assignedLid LIDMigrationMapping assignedLid
40759
+ * @property {number|Long|null} [latestLid] LIDMigrationMapping latestLid
40760
+ */
40761
+
40762
+ /**
40763
+ * Constructs a new LIDMigrationMapping.
40764
+ * @memberof waproto
40765
+ * @classdesc Represents a LIDMigrationMapping.
40766
+ * @implements ILIDMigrationMapping
40767
+ * @constructor
40768
+ * @param {waproto.ILIDMigrationMapping=} [properties] Properties to set
40769
+ */
40770
+ function LIDMigrationMapping(properties) {
40771
+ if (properties)
40772
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
40773
+ if (properties[keys[i]] != null)
40774
+ this[keys[i]] = properties[keys[i]];
40775
+ }
40776
+
40777
+ /**
40778
+ * LIDMigrationMapping pn.
40779
+ * @member {number|Long} pn
40780
+ * @memberof waproto.LIDMigrationMapping
40781
+ * @instance
40782
+ */
40783
+ LIDMigrationMapping.prototype.pn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
40784
+
40785
+ /**
40786
+ * LIDMigrationMapping assignedLid.
40787
+ * @member {number|Long} assignedLid
40788
+ * @memberof waproto.LIDMigrationMapping
40789
+ * @instance
40790
+ */
40791
+ LIDMigrationMapping.prototype.assignedLid = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
40792
+
40793
+ /**
40794
+ * LIDMigrationMapping latestLid.
40795
+ * @member {number|Long|null|undefined} latestLid
40796
+ * @memberof waproto.LIDMigrationMapping
40797
+ * @instance
40798
+ */
40799
+ LIDMigrationMapping.prototype.latestLid = null;
40800
+
40801
+ // OneOf field names bound to virtual getters and setters
40802
+ var $oneOfFields;
40803
+
40804
+ // Virtual OneOf for proto3 optional field
40805
+ Object.defineProperty(LIDMigrationMapping.prototype, "_latestLid", {
40806
+ get: $util.oneOfGetter($oneOfFields = ["latestLid"]),
40807
+ set: $util.oneOfSetter($oneOfFields)
40808
+ });
40809
+
40810
+ /**
40811
+ * Creates a new LIDMigrationMapping instance using the specified properties.
40812
+ * @function create
40813
+ * @memberof waproto.LIDMigrationMapping
40814
+ * @static
40815
+ * @param {waproto.ILIDMigrationMapping=} [properties] Properties to set
40816
+ * @returns {waproto.LIDMigrationMapping} LIDMigrationMapping instance
40817
+ */
40818
+ LIDMigrationMapping.create = function create(properties) {
40819
+ return new LIDMigrationMapping(properties);
40820
+ };
40821
+
40822
+ /**
40823
+ * Encodes the specified LIDMigrationMapping message. Does not implicitly {@link waproto.LIDMigrationMapping.verify|verify} messages.
40824
+ * @function encode
40825
+ * @memberof waproto.LIDMigrationMapping
40826
+ * @static
40827
+ * @param {waproto.ILIDMigrationMapping} message LIDMigrationMapping message or plain object to encode
40828
+ * @param {$protobuf.Writer} [writer] Writer to encode to
40829
+ * @returns {$protobuf.Writer} Writer
40830
+ */
40831
+ LIDMigrationMapping.encode = function encode(message, writer) {
40832
+ if (!writer)
40833
+ writer = $Writer.create();
40834
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.pn);
40835
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.assignedLid);
40836
+ if (message.latestLid != null && Object.hasOwnProperty.call(message, "latestLid"))
40837
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.latestLid);
40838
+ return writer;
40839
+ };
40840
+
40841
+ /**
40842
+ * Encodes the specified LIDMigrationMapping message, length delimited. Does not implicitly {@link waproto.LIDMigrationMapping.verify|verify} messages.
40843
+ * @function encodeDelimited
40844
+ * @memberof waproto.LIDMigrationMapping
40845
+ * @static
40846
+ * @param {waproto.ILIDMigrationMapping} message LIDMigrationMapping message or plain object to encode
40847
+ * @param {$protobuf.Writer} [writer] Writer to encode to
40848
+ * @returns {$protobuf.Writer} Writer
40849
+ */
40850
+ LIDMigrationMapping.encodeDelimited = function encodeDelimited(message, writer) {
40851
+ return this.encode(message, writer).ldelim();
40852
+ };
40853
+
40854
+ /**
40855
+ * Decodes a LIDMigrationMapping message from the specified reader or buffer.
40856
+ * @function decode
40857
+ * @memberof waproto.LIDMigrationMapping
40858
+ * @static
40859
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
40860
+ * @param {number} [length] Message length if known beforehand
40861
+ * @returns {waproto.LIDMigrationMapping} LIDMigrationMapping
40862
+ * @throws {Error} If the payload is not a reader or valid buffer
40863
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40864
+ */
40865
+ LIDMigrationMapping.decode = function decode(reader, length) {
40866
+ if (!(reader instanceof $Reader))
40867
+ reader = $Reader.create(reader);
40868
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.LIDMigrationMapping();
40869
+ while (reader.pos < end) {
40870
+ var tag = reader.uint32();
40871
+ switch (tag >>> 3) {
40872
+ case 1: {
40873
+ message.pn = reader.uint64();
40874
+ break;
40875
+ }
40876
+ case 2: {
40877
+ message.assignedLid = reader.uint64();
40878
+ break;
40879
+ }
40880
+ case 3: {
40881
+ message.latestLid = reader.uint64();
40882
+ break;
40883
+ }
40884
+ default:
40885
+ reader.skipType(tag & 7);
40886
+ break;
40887
+ }
40888
+ }
40889
+ if (!message.hasOwnProperty("pn"))
40890
+ throw $util.ProtocolError("missing required 'pn'", { instance: message });
40891
+ if (!message.hasOwnProperty("assignedLid"))
40892
+ throw $util.ProtocolError("missing required 'assignedLid'", { instance: message });
40893
+ return message;
40894
+ };
40895
+
40896
+ /**
40897
+ * Decodes a LIDMigrationMapping message from the specified reader or buffer, length delimited.
40898
+ * @function decodeDelimited
40899
+ * @memberof waproto.LIDMigrationMapping
40900
+ * @static
40901
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
40902
+ * @returns {waproto.LIDMigrationMapping} LIDMigrationMapping
40903
+ * @throws {Error} If the payload is not a reader or valid buffer
40904
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40905
+ */
40906
+ LIDMigrationMapping.decodeDelimited = function decodeDelimited(reader) {
40907
+ if (!(reader instanceof $Reader))
40908
+ reader = new $Reader(reader);
40909
+ return this.decode(reader, reader.uint32());
40910
+ };
40911
+
40912
+ /**
40913
+ * Verifies a LIDMigrationMapping message.
40914
+ * @function verify
40915
+ * @memberof waproto.LIDMigrationMapping
40916
+ * @static
40917
+ * @param {Object.<string,*>} message Plain object to verify
40918
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
40919
+ */
40920
+ LIDMigrationMapping.verify = function verify(message) {
40921
+ if (typeof message !== "object" || message === null)
40922
+ return "object expected";
40923
+ var properties = {};
40924
+ if (!$util.isInteger(message.pn) && !(message.pn && $util.isInteger(message.pn.low) && $util.isInteger(message.pn.high)))
40925
+ return "pn: integer|Long expected";
40926
+ if (!$util.isInteger(message.assignedLid) && !(message.assignedLid && $util.isInteger(message.assignedLid.low) && $util.isInteger(message.assignedLid.high)))
40927
+ return "assignedLid: integer|Long expected";
40928
+ if (message.latestLid != null && message.hasOwnProperty("latestLid")) {
40929
+ properties._latestLid = 1;
40930
+ if (!$util.isInteger(message.latestLid) && !(message.latestLid && $util.isInteger(message.latestLid.low) && $util.isInteger(message.latestLid.high)))
40931
+ return "latestLid: integer|Long expected";
40932
+ }
40933
+ return null;
40934
+ };
40935
+
40936
+ /**
40937
+ * Creates a LIDMigrationMapping message from a plain object. Also converts values to their respective internal types.
40938
+ * @function fromObject
40939
+ * @memberof waproto.LIDMigrationMapping
40940
+ * @static
40941
+ * @param {Object.<string,*>} object Plain object
40942
+ * @returns {waproto.LIDMigrationMapping} LIDMigrationMapping
40943
+ */
40944
+ LIDMigrationMapping.fromObject = function fromObject(object) {
40945
+ if (object instanceof $root.waproto.LIDMigrationMapping)
40946
+ return object;
40947
+ var message = new $root.waproto.LIDMigrationMapping();
40948
+ if (object.pn != null)
40949
+ if ($util.Long)
40950
+ (message.pn = $util.Long.fromValue(object.pn)).unsigned = true;
40951
+ else if (typeof object.pn === "string")
40952
+ message.pn = parseInt(object.pn, 10);
40953
+ else if (typeof object.pn === "number")
40954
+ message.pn = object.pn;
40955
+ else if (typeof object.pn === "object")
40956
+ message.pn = new $util.LongBits(object.pn.low >>> 0, object.pn.high >>> 0).toNumber(true);
40957
+ if (object.assignedLid != null)
40958
+ if ($util.Long)
40959
+ (message.assignedLid = $util.Long.fromValue(object.assignedLid)).unsigned = true;
40960
+ else if (typeof object.assignedLid === "string")
40961
+ message.assignedLid = parseInt(object.assignedLid, 10);
40962
+ else if (typeof object.assignedLid === "number")
40963
+ message.assignedLid = object.assignedLid;
40964
+ else if (typeof object.assignedLid === "object")
40965
+ message.assignedLid = new $util.LongBits(object.assignedLid.low >>> 0, object.assignedLid.high >>> 0).toNumber(true);
40966
+ if (object.latestLid != null)
40967
+ if ($util.Long)
40968
+ (message.latestLid = $util.Long.fromValue(object.latestLid)).unsigned = true;
40969
+ else if (typeof object.latestLid === "string")
40970
+ message.latestLid = parseInt(object.latestLid, 10);
40971
+ else if (typeof object.latestLid === "number")
40972
+ message.latestLid = object.latestLid;
40973
+ else if (typeof object.latestLid === "object")
40974
+ message.latestLid = new $util.LongBits(object.latestLid.low >>> 0, object.latestLid.high >>> 0).toNumber(true);
40975
+ return message;
40976
+ };
40977
+
40978
+ /**
40979
+ * Creates a plain object from a LIDMigrationMapping message. Also converts values to other types if specified.
40980
+ * @function toObject
40981
+ * @memberof waproto.LIDMigrationMapping
40982
+ * @static
40983
+ * @param {waproto.LIDMigrationMapping} message LIDMigrationMapping
40984
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
40985
+ * @returns {Object.<string,*>} Plain object
40986
+ */
40987
+ LIDMigrationMapping.toObject = function toObject(message, options) {
40988
+ if (!options)
40989
+ options = {};
40990
+ var object = {};
40991
+ if (options.defaults) {
40992
+ if ($util.Long) {
40993
+ var long = new $util.Long(0, 0, true);
40994
+ object.pn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
40995
+ } else
40996
+ object.pn = options.longs === String ? "0" : 0;
40997
+ if ($util.Long) {
40998
+ var long = new $util.Long(0, 0, true);
40999
+ object.assignedLid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
41000
+ } else
41001
+ object.assignedLid = options.longs === String ? "0" : 0;
41002
+ }
41003
+ if (message.pn != null && message.hasOwnProperty("pn"))
41004
+ if (typeof message.pn === "number")
41005
+ object.pn = options.longs === String ? String(message.pn) : message.pn;
41006
+ else
41007
+ object.pn = options.longs === String ? $util.Long.prototype.toString.call(message.pn) : options.longs === Number ? new $util.LongBits(message.pn.low >>> 0, message.pn.high >>> 0).toNumber(true) : message.pn;
41008
+ if (message.assignedLid != null && message.hasOwnProperty("assignedLid"))
41009
+ if (typeof message.assignedLid === "number")
41010
+ object.assignedLid = options.longs === String ? String(message.assignedLid) : message.assignedLid;
41011
+ else
41012
+ object.assignedLid = options.longs === String ? $util.Long.prototype.toString.call(message.assignedLid) : options.longs === Number ? new $util.LongBits(message.assignedLid.low >>> 0, message.assignedLid.high >>> 0).toNumber(true) : message.assignedLid;
41013
+ if (message.latestLid != null && message.hasOwnProperty("latestLid")) {
41014
+ if (typeof message.latestLid === "number")
41015
+ object.latestLid = options.longs === String ? String(message.latestLid) : message.latestLid;
41016
+ else
41017
+ object.latestLid = options.longs === String ? $util.Long.prototype.toString.call(message.latestLid) : options.longs === Number ? new $util.LongBits(message.latestLid.low >>> 0, message.latestLid.high >>> 0).toNumber(true) : message.latestLid;
41018
+ if (options.oneofs)
41019
+ object._latestLid = "latestLid";
41020
+ }
41021
+ return object;
41022
+ };
41023
+
41024
+ /**
41025
+ * Converts this LIDMigrationMapping to JSON.
41026
+ * @function toJSON
41027
+ * @memberof waproto.LIDMigrationMapping
41028
+ * @instance
41029
+ * @returns {Object.<string,*>} JSON object
41030
+ */
41031
+ LIDMigrationMapping.prototype.toJSON = function toJSON() {
41032
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41033
+ };
41034
+
41035
+ /**
41036
+ * Gets the default type url for LIDMigrationMapping
41037
+ * @function getTypeUrl
41038
+ * @memberof waproto.LIDMigrationMapping
41039
+ * @static
41040
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
41041
+ * @returns {string} The default type url
41042
+ */
41043
+ LIDMigrationMapping.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
41044
+ if (typeUrlPrefix === undefined) {
41045
+ typeUrlPrefix = "type.googleapis.com";
41046
+ }
41047
+ return typeUrlPrefix + "/waproto.LIDMigrationMapping";
41048
+ };
41049
+
41050
+ return LIDMigrationMapping;
41051
+ })();
41052
+
40679
41053
  waproto.LIDMigrationMappingSyncMessage = (function() {
40680
41054
 
40681
41055
  /**
@@ -40895,6 +41269,230 @@ $root.waproto = (function() {
40895
41269
  return LIDMigrationMappingSyncMessage;
40896
41270
  })();
40897
41271
 
41272
+ waproto.LIDMigrationMappingSyncPayload = (function() {
41273
+
41274
+ /**
41275
+ * Properties of a LIDMigrationMappingSyncPayload.
41276
+ * @memberof waproto
41277
+ * @interface ILIDMigrationMappingSyncPayload
41278
+ * @property {Array.<waproto.ILIDMigrationMapping>|null} [pnToLidMappings] LIDMigrationMappingSyncPayload pnToLidMappings
41279
+ */
41280
+
41281
+ /**
41282
+ * Constructs a new LIDMigrationMappingSyncPayload.
41283
+ * @memberof waproto
41284
+ * @classdesc Represents a LIDMigrationMappingSyncPayload.
41285
+ * @implements ILIDMigrationMappingSyncPayload
41286
+ * @constructor
41287
+ * @param {waproto.ILIDMigrationMappingSyncPayload=} [properties] Properties to set
41288
+ */
41289
+ function LIDMigrationMappingSyncPayload(properties) {
41290
+ this.pnToLidMappings = [];
41291
+ if (properties)
41292
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
41293
+ if (properties[keys[i]] != null)
41294
+ this[keys[i]] = properties[keys[i]];
41295
+ }
41296
+
41297
+ /**
41298
+ * LIDMigrationMappingSyncPayload pnToLidMappings.
41299
+ * @member {Array.<waproto.ILIDMigrationMapping>} pnToLidMappings
41300
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41301
+ * @instance
41302
+ */
41303
+ LIDMigrationMappingSyncPayload.prototype.pnToLidMappings = $util.emptyArray;
41304
+
41305
+ /**
41306
+ * Creates a new LIDMigrationMappingSyncPayload instance using the specified properties.
41307
+ * @function create
41308
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41309
+ * @static
41310
+ * @param {waproto.ILIDMigrationMappingSyncPayload=} [properties] Properties to set
41311
+ * @returns {waproto.LIDMigrationMappingSyncPayload} LIDMigrationMappingSyncPayload instance
41312
+ */
41313
+ LIDMigrationMappingSyncPayload.create = function create(properties) {
41314
+ return new LIDMigrationMappingSyncPayload(properties);
41315
+ };
41316
+
41317
+ /**
41318
+ * Encodes the specified LIDMigrationMappingSyncPayload message. Does not implicitly {@link waproto.LIDMigrationMappingSyncPayload.verify|verify} messages.
41319
+ * @function encode
41320
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41321
+ * @static
41322
+ * @param {waproto.ILIDMigrationMappingSyncPayload} message LIDMigrationMappingSyncPayload message or plain object to encode
41323
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41324
+ * @returns {$protobuf.Writer} Writer
41325
+ */
41326
+ LIDMigrationMappingSyncPayload.encode = function encode(message, writer) {
41327
+ if (!writer)
41328
+ writer = $Writer.create();
41329
+ if (message.pnToLidMappings != null && message.pnToLidMappings.length)
41330
+ for (var i = 0; i < message.pnToLidMappings.length; ++i)
41331
+ $root.waproto.LIDMigrationMapping.encode(message.pnToLidMappings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
41332
+ return writer;
41333
+ };
41334
+
41335
+ /**
41336
+ * Encodes the specified LIDMigrationMappingSyncPayload message, length delimited. Does not implicitly {@link waproto.LIDMigrationMappingSyncPayload.verify|verify} messages.
41337
+ * @function encodeDelimited
41338
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41339
+ * @static
41340
+ * @param {waproto.ILIDMigrationMappingSyncPayload} message LIDMigrationMappingSyncPayload message or plain object to encode
41341
+ * @param {$protobuf.Writer} [writer] Writer to encode to
41342
+ * @returns {$protobuf.Writer} Writer
41343
+ */
41344
+ LIDMigrationMappingSyncPayload.encodeDelimited = function encodeDelimited(message, writer) {
41345
+ return this.encode(message, writer).ldelim();
41346
+ };
41347
+
41348
+ /**
41349
+ * Decodes a LIDMigrationMappingSyncPayload message from the specified reader or buffer.
41350
+ * @function decode
41351
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41352
+ * @static
41353
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41354
+ * @param {number} [length] Message length if known beforehand
41355
+ * @returns {waproto.LIDMigrationMappingSyncPayload} LIDMigrationMappingSyncPayload
41356
+ * @throws {Error} If the payload is not a reader or valid buffer
41357
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41358
+ */
41359
+ LIDMigrationMappingSyncPayload.decode = function decode(reader, length) {
41360
+ if (!(reader instanceof $Reader))
41361
+ reader = $Reader.create(reader);
41362
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.LIDMigrationMappingSyncPayload();
41363
+ while (reader.pos < end) {
41364
+ var tag = reader.uint32();
41365
+ switch (tag >>> 3) {
41366
+ case 1: {
41367
+ if (!(message.pnToLidMappings && message.pnToLidMappings.length))
41368
+ message.pnToLidMappings = [];
41369
+ message.pnToLidMappings.push($root.waproto.LIDMigrationMapping.decode(reader, reader.uint32()));
41370
+ break;
41371
+ }
41372
+ default:
41373
+ reader.skipType(tag & 7);
41374
+ break;
41375
+ }
41376
+ }
41377
+ return message;
41378
+ };
41379
+
41380
+ /**
41381
+ * Decodes a LIDMigrationMappingSyncPayload message from the specified reader or buffer, length delimited.
41382
+ * @function decodeDelimited
41383
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41384
+ * @static
41385
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
41386
+ * @returns {waproto.LIDMigrationMappingSyncPayload} LIDMigrationMappingSyncPayload
41387
+ * @throws {Error} If the payload is not a reader or valid buffer
41388
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
41389
+ */
41390
+ LIDMigrationMappingSyncPayload.decodeDelimited = function decodeDelimited(reader) {
41391
+ if (!(reader instanceof $Reader))
41392
+ reader = new $Reader(reader);
41393
+ return this.decode(reader, reader.uint32());
41394
+ };
41395
+
41396
+ /**
41397
+ * Verifies a LIDMigrationMappingSyncPayload message.
41398
+ * @function verify
41399
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41400
+ * @static
41401
+ * @param {Object.<string,*>} message Plain object to verify
41402
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
41403
+ */
41404
+ LIDMigrationMappingSyncPayload.verify = function verify(message) {
41405
+ if (typeof message !== "object" || message === null)
41406
+ return "object expected";
41407
+ if (message.pnToLidMappings != null && message.hasOwnProperty("pnToLidMappings")) {
41408
+ if (!Array.isArray(message.pnToLidMappings))
41409
+ return "pnToLidMappings: array expected";
41410
+ for (var i = 0; i < message.pnToLidMappings.length; ++i) {
41411
+ var error = $root.waproto.LIDMigrationMapping.verify(message.pnToLidMappings[i]);
41412
+ if (error)
41413
+ return "pnToLidMappings." + error;
41414
+ }
41415
+ }
41416
+ return null;
41417
+ };
41418
+
41419
+ /**
41420
+ * Creates a LIDMigrationMappingSyncPayload message from a plain object. Also converts values to their respective internal types.
41421
+ * @function fromObject
41422
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41423
+ * @static
41424
+ * @param {Object.<string,*>} object Plain object
41425
+ * @returns {waproto.LIDMigrationMappingSyncPayload} LIDMigrationMappingSyncPayload
41426
+ */
41427
+ LIDMigrationMappingSyncPayload.fromObject = function fromObject(object) {
41428
+ if (object instanceof $root.waproto.LIDMigrationMappingSyncPayload)
41429
+ return object;
41430
+ var message = new $root.waproto.LIDMigrationMappingSyncPayload();
41431
+ if (object.pnToLidMappings) {
41432
+ if (!Array.isArray(object.pnToLidMappings))
41433
+ throw TypeError(".waproto.LIDMigrationMappingSyncPayload.pnToLidMappings: array expected");
41434
+ message.pnToLidMappings = [];
41435
+ for (var i = 0; i < object.pnToLidMappings.length; ++i) {
41436
+ if (typeof object.pnToLidMappings[i] !== "object")
41437
+ throw TypeError(".waproto.LIDMigrationMappingSyncPayload.pnToLidMappings: object expected");
41438
+ message.pnToLidMappings[i] = $root.waproto.LIDMigrationMapping.fromObject(object.pnToLidMappings[i]);
41439
+ }
41440
+ }
41441
+ return message;
41442
+ };
41443
+
41444
+ /**
41445
+ * Creates a plain object from a LIDMigrationMappingSyncPayload message. Also converts values to other types if specified.
41446
+ * @function toObject
41447
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41448
+ * @static
41449
+ * @param {waproto.LIDMigrationMappingSyncPayload} message LIDMigrationMappingSyncPayload
41450
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
41451
+ * @returns {Object.<string,*>} Plain object
41452
+ */
41453
+ LIDMigrationMappingSyncPayload.toObject = function toObject(message, options) {
41454
+ if (!options)
41455
+ options = {};
41456
+ var object = {};
41457
+ if (options.arrays || options.defaults)
41458
+ object.pnToLidMappings = [];
41459
+ if (message.pnToLidMappings && message.pnToLidMappings.length) {
41460
+ object.pnToLidMappings = [];
41461
+ for (var j = 0; j < message.pnToLidMappings.length; ++j)
41462
+ object.pnToLidMappings[j] = $root.waproto.LIDMigrationMapping.toObject(message.pnToLidMappings[j], options);
41463
+ }
41464
+ return object;
41465
+ };
41466
+
41467
+ /**
41468
+ * Converts this LIDMigrationMappingSyncPayload to JSON.
41469
+ * @function toJSON
41470
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41471
+ * @instance
41472
+ * @returns {Object.<string,*>} JSON object
41473
+ */
41474
+ LIDMigrationMappingSyncPayload.prototype.toJSON = function toJSON() {
41475
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
41476
+ };
41477
+
41478
+ /**
41479
+ * Gets the default type url for LIDMigrationMappingSyncPayload
41480
+ * @function getTypeUrl
41481
+ * @memberof waproto.LIDMigrationMappingSyncPayload
41482
+ * @static
41483
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
41484
+ * @returns {string} The default type url
41485
+ */
41486
+ LIDMigrationMappingSyncPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
41487
+ if (typeUrlPrefix === undefined) {
41488
+ typeUrlPrefix = "type.googleapis.com";
41489
+ }
41490
+ return typeUrlPrefix + "/waproto.LIDMigrationMappingSyncPayload";
41491
+ };
41492
+
41493
+ return LIDMigrationMappingSyncPayload;
41494
+ })();
41495
+
40898
41496
  waproto.LegacyMessage = (function() {
40899
41497
 
40900
41498
  /**
@@ -42697,6 +43295,7 @@ $root.waproto = (function() {
42697
43295
  * @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV4] Message pollCreationMessageV4
42698
43296
  * @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV5] Message pollCreationMessageV5
42699
43297
  * @property {waproto.Message.IFutureProofMessage|null} [statusAddYours] Message statusAddYours
43298
+ * @property {waproto.Message.IFutureProofMessage|null} [groupStatusMessage] Message groupStatusMessage
42700
43299
  */
42701
43300
 
42702
43301
  /**
@@ -43346,6 +43945,14 @@ $root.waproto = (function() {
43346
43945
  */
43347
43946
  Message.prototype.statusAddYours = null;
43348
43947
 
43948
+ /**
43949
+ * Message groupStatusMessage.
43950
+ * @member {waproto.Message.IFutureProofMessage|null|undefined} groupStatusMessage
43951
+ * @memberof waproto.Message
43952
+ * @instance
43953
+ */
43954
+ Message.prototype.groupStatusMessage = null;
43955
+
43349
43956
  // OneOf field names bound to virtual getters and setters
43350
43957
  var $oneOfFields;
43351
43958
 
@@ -43823,6 +44430,12 @@ $root.waproto = (function() {
43823
44430
  set: $util.oneOfSetter($oneOfFields)
43824
44431
  });
43825
44432
 
44433
+ // Virtual OneOf for proto3 optional field
44434
+ Object.defineProperty(Message.prototype, "_groupStatusMessage", {
44435
+ get: $util.oneOfGetter($oneOfFields = ["groupStatusMessage"]),
44436
+ set: $util.oneOfSetter($oneOfFields)
44437
+ });
44438
+
43826
44439
  /**
43827
44440
  * Creates a new Message instance using the specified properties.
43828
44441
  * @function create
@@ -44005,6 +44618,8 @@ $root.waproto = (function() {
44005
44618
  $root.waproto.Message.FutureProofMessage.encode(message.pollCreationMessageV5, writer.uint32(/* id 94, wireType 2 =*/754).fork()).ldelim();
44006
44619
  if (message.statusAddYours != null && Object.hasOwnProperty.call(message, "statusAddYours"))
44007
44620
  $root.waproto.Message.FutureProofMessage.encode(message.statusAddYours, writer.uint32(/* id 95, wireType 2 =*/762).fork()).ldelim();
44621
+ if (message.groupStatusMessage != null && Object.hasOwnProperty.call(message, "groupStatusMessage"))
44622
+ $root.waproto.Message.FutureProofMessage.encode(message.groupStatusMessage, writer.uint32(/* id 96, wireType 2 =*/770).fork()).ldelim();
44008
44623
  return writer;
44009
44624
  };
44010
44625
 
@@ -44355,6 +44970,10 @@ $root.waproto = (function() {
44355
44970
  message.statusAddYours = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
44356
44971
  break;
44357
44972
  }
44973
+ case 96: {
44974
+ message.groupStatusMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
44975
+ break;
44976
+ }
44358
44977
  default:
44359
44978
  reader.skipType(tag & 7);
44360
44979
  break;
@@ -45020,6 +45639,14 @@ $root.waproto = (function() {
45020
45639
  return "statusAddYours." + error;
45021
45640
  }
45022
45641
  }
45642
+ if (message.groupStatusMessage != null && message.hasOwnProperty("groupStatusMessage")) {
45643
+ properties._groupStatusMessage = 1;
45644
+ {
45645
+ var error = $root.waproto.Message.FutureProofMessage.verify(message.groupStatusMessage);
45646
+ if (error)
45647
+ return "groupStatusMessage." + error;
45648
+ }
45649
+ }
45023
45650
  return null;
45024
45651
  };
45025
45652
 
@@ -45427,6 +46054,11 @@ $root.waproto = (function() {
45427
46054
  throw TypeError(".waproto.Message.statusAddYours: object expected");
45428
46055
  message.statusAddYours = $root.waproto.Message.FutureProofMessage.fromObject(object.statusAddYours);
45429
46056
  }
46057
+ if (object.groupStatusMessage != null) {
46058
+ if (typeof object.groupStatusMessage !== "object")
46059
+ throw TypeError(".waproto.Message.groupStatusMessage: object expected");
46060
+ message.groupStatusMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.groupStatusMessage);
46061
+ }
45430
46062
  return message;
45431
46063
  };
45432
46064
 
@@ -45838,6 +46470,11 @@ $root.waproto = (function() {
45838
46470
  if (options.oneofs)
45839
46471
  object._statusAddYours = "statusAddYours";
45840
46472
  }
46473
+ if (message.groupStatusMessage != null && message.hasOwnProperty("groupStatusMessage")) {
46474
+ object.groupStatusMessage = $root.waproto.Message.FutureProofMessage.toObject(message.groupStatusMessage, options);
46475
+ if (options.oneofs)
46476
+ object._groupStatusMessage = "groupStatusMessage";
46477
+ }
45841
46478
  return object;
45842
46479
  };
45843
46480
 
@@ -64023,6 +64660,7 @@ $root.waproto = (function() {
64023
64660
  * @property {waproto.Message.InteractiveMessage.IBody|null} [body] InteractiveMessage body
64024
64661
  * @property {waproto.Message.InteractiveMessage.IFooter|null} [footer] InteractiveMessage footer
64025
64662
  * @property {waproto.IContextInfo|null} [contextInfo] InteractiveMessage contextInfo
64663
+ * @property {waproto.IUrlTrackingMap|null} [urlTrackingMap] InteractiveMessage urlTrackingMap
64026
64664
  * @property {waproto.Message.InteractiveMessage.IShopMessage|null} [shopStorefrontMessage] InteractiveMessage shopStorefrontMessage
64027
64665
  * @property {waproto.Message.InteractiveMessage.ICollectionMessage|null} [collectionMessage] InteractiveMessage collectionMessage
64028
64666
  * @property {waproto.Message.InteractiveMessage.INativeFlowMessage|null} [nativeFlowMessage] InteractiveMessage nativeFlowMessage
@@ -64076,6 +64714,14 @@ $root.waproto = (function() {
64076
64714
  */
64077
64715
  InteractiveMessage.prototype.contextInfo = null;
64078
64716
 
64717
+ /**
64718
+ * InteractiveMessage urlTrackingMap.
64719
+ * @member {waproto.IUrlTrackingMap|null|undefined} urlTrackingMap
64720
+ * @memberof waproto.Message.InteractiveMessage
64721
+ * @instance
64722
+ */
64723
+ InteractiveMessage.prototype.urlTrackingMap = null;
64724
+
64079
64725
  /**
64080
64726
  * InteractiveMessage shopStorefrontMessage.
64081
64727
  * @member {waproto.Message.InteractiveMessage.IShopMessage|null|undefined} shopStorefrontMessage
@@ -64135,6 +64781,12 @@ $root.waproto = (function() {
64135
64781
  set: $util.oneOfSetter($oneOfFields)
64136
64782
  });
64137
64783
 
64784
+ // Virtual OneOf for proto3 optional field
64785
+ Object.defineProperty(InteractiveMessage.prototype, "_urlTrackingMap", {
64786
+ get: $util.oneOfGetter($oneOfFields = ["urlTrackingMap"]),
64787
+ set: $util.oneOfSetter($oneOfFields)
64788
+ });
64789
+
64138
64790
  /**
64139
64791
  * InteractiveMessage interactiveMessage.
64140
64792
  * @member {"shopStorefrontMessage"|"collectionMessage"|"nativeFlowMessage"|"carouselMessage"|undefined} interactiveMessage
@@ -64186,6 +64838,8 @@ $root.waproto = (function() {
64186
64838
  $root.waproto.Message.InteractiveMessage.CarouselMessage.encode(message.carouselMessage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
64187
64839
  if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
64188
64840
  $root.waproto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
64841
+ if (message.urlTrackingMap != null && Object.hasOwnProperty.call(message, "urlTrackingMap"))
64842
+ $root.waproto.UrlTrackingMap.encode(message.urlTrackingMap, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
64189
64843
  return writer;
64190
64844
  };
64191
64845
 
@@ -64236,6 +64890,10 @@ $root.waproto = (function() {
64236
64890
  message.contextInfo = $root.waproto.ContextInfo.decode(reader, reader.uint32());
64237
64891
  break;
64238
64892
  }
64893
+ case 16: {
64894
+ message.urlTrackingMap = $root.waproto.UrlTrackingMap.decode(reader, reader.uint32());
64895
+ break;
64896
+ }
64239
64897
  case 4: {
64240
64898
  message.shopStorefrontMessage = $root.waproto.Message.InteractiveMessage.ShopMessage.decode(reader, reader.uint32());
64241
64899
  break;
@@ -64320,6 +64978,14 @@ $root.waproto = (function() {
64320
64978
  return "contextInfo." + error;
64321
64979
  }
64322
64980
  }
64981
+ if (message.urlTrackingMap != null && message.hasOwnProperty("urlTrackingMap")) {
64982
+ properties._urlTrackingMap = 1;
64983
+ {
64984
+ var error = $root.waproto.UrlTrackingMap.verify(message.urlTrackingMap);
64985
+ if (error)
64986
+ return "urlTrackingMap." + error;
64987
+ }
64988
+ }
64323
64989
  if (message.shopStorefrontMessage != null && message.hasOwnProperty("shopStorefrontMessage")) {
64324
64990
  properties.interactiveMessage = 1;
64325
64991
  {
@@ -64393,6 +65059,11 @@ $root.waproto = (function() {
64393
65059
  throw TypeError(".waproto.Message.InteractiveMessage.contextInfo: object expected");
64394
65060
  message.contextInfo = $root.waproto.ContextInfo.fromObject(object.contextInfo);
64395
65061
  }
65062
+ if (object.urlTrackingMap != null) {
65063
+ if (typeof object.urlTrackingMap !== "object")
65064
+ throw TypeError(".waproto.Message.InteractiveMessage.urlTrackingMap: object expected");
65065
+ message.urlTrackingMap = $root.waproto.UrlTrackingMap.fromObject(object.urlTrackingMap);
65066
+ }
64396
65067
  if (object.shopStorefrontMessage != null) {
64397
65068
  if (typeof object.shopStorefrontMessage !== "object")
64398
65069
  throw TypeError(".waproto.Message.InteractiveMessage.shopStorefrontMessage: object expected");
@@ -64469,6 +65140,11 @@ $root.waproto = (function() {
64469
65140
  if (options.oneofs)
64470
65141
  object._contextInfo = "contextInfo";
64471
65142
  }
65143
+ if (message.urlTrackingMap != null && message.hasOwnProperty("urlTrackingMap")) {
65144
+ object.urlTrackingMap = $root.waproto.UrlTrackingMap.toObject(message.urlTrackingMap, options);
65145
+ if (options.oneofs)
65146
+ object._urlTrackingMap = "urlTrackingMap";
65147
+ }
64472
65148
  return object;
64473
65149
  };
64474
65150
 
@@ -79905,6 +80581,22 @@ $root.waproto = (function() {
79905
80581
  return PlaceholderMessage;
79906
80582
  })();
79907
80583
 
80584
+ /**
80585
+ * PollContentType enum.
80586
+ * @name waproto.Message.PollContentType
80587
+ * @enum {number}
80588
+ * @property {number} UNKNOWN=0 UNKNOWN value
80589
+ * @property {number} TEXT=1 TEXT value
80590
+ * @property {number} IMAGE=2 IMAGE value
80591
+ */
80592
+ Message.PollContentType = (function() {
80593
+ var valuesById = {}, values = Object.create(valuesById);
80594
+ values[valuesById[0] = "UNKNOWN"] = 0;
80595
+ values[valuesById[1] = "TEXT"] = 1;
80596
+ values[valuesById[2] = "IMAGE"] = 2;
80597
+ return values;
80598
+ })();
80599
+
79908
80600
  Message.PollCreationMessage = (function() {
79909
80601
 
79910
80602
  /**
@@ -79916,7 +80608,7 @@ $root.waproto = (function() {
79916
80608
  * @property {Array.<waproto.Message.PollCreationMessage.IOption>|null} [options] PollCreationMessage options
79917
80609
  * @property {number|null} [selectableOptionsCount] PollCreationMessage selectableOptionsCount
79918
80610
  * @property {waproto.IContextInfo|null} [contextInfo] PollCreationMessage contextInfo
79919
- * @property {waproto.Message.PollMediaType|null} [pollMediaType] PollCreationMessage pollMediaType
80611
+ * @property {waproto.Message.PollContentType|null} [pollContentType] PollCreationMessage pollContentType
79920
80612
  * @property {waproto.Message.PollCreationMessage.PollType|null} [pollType] PollCreationMessage pollType
79921
80613
  * @property {waproto.Message.PollCreationMessage.IOption|null} [correctAnswer] PollCreationMessage correctAnswer
79922
80614
  */
@@ -79978,12 +80670,12 @@ $root.waproto = (function() {
79978
80670
  PollCreationMessage.prototype.contextInfo = null;
79979
80671
 
79980
80672
  /**
79981
- * PollCreationMessage pollMediaType.
79982
- * @member {waproto.Message.PollMediaType|null|undefined} pollMediaType
80673
+ * PollCreationMessage pollContentType.
80674
+ * @member {waproto.Message.PollContentType|null|undefined} pollContentType
79983
80675
  * @memberof waproto.Message.PollCreationMessage
79984
80676
  * @instance
79985
80677
  */
79986
- PollCreationMessage.prototype.pollMediaType = null;
80678
+ PollCreationMessage.prototype.pollContentType = null;
79987
80679
 
79988
80680
  /**
79989
80681
  * PollCreationMessage pollType.
@@ -80029,8 +80721,8 @@ $root.waproto = (function() {
80029
80721
  });
80030
80722
 
80031
80723
  // Virtual OneOf for proto3 optional field
80032
- Object.defineProperty(PollCreationMessage.prototype, "_pollMediaType", {
80033
- get: $util.oneOfGetter($oneOfFields = ["pollMediaType"]),
80724
+ Object.defineProperty(PollCreationMessage.prototype, "_pollContentType", {
80725
+ get: $util.oneOfGetter($oneOfFields = ["pollContentType"]),
80034
80726
  set: $util.oneOfSetter($oneOfFields)
80035
80727
  });
80036
80728
 
@@ -80081,8 +80773,8 @@ $root.waproto = (function() {
80081
80773
  writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.selectableOptionsCount);
80082
80774
  if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
80083
80775
  $root.waproto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
80084
- if (message.pollMediaType != null && Object.hasOwnProperty.call(message, "pollMediaType"))
80085
- writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pollMediaType);
80776
+ if (message.pollContentType != null && Object.hasOwnProperty.call(message, "pollContentType"))
80777
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pollContentType);
80086
80778
  if (message.pollType != null && Object.hasOwnProperty.call(message, "pollType"))
80087
80779
  writer.uint32(/* id 7, wireType 0 =*/56).int32(message.pollType);
80088
80780
  if (message.correctAnswer != null && Object.hasOwnProperty.call(message, "correctAnswer"))
@@ -80144,7 +80836,7 @@ $root.waproto = (function() {
80144
80836
  break;
80145
80837
  }
80146
80838
  case 6: {
80147
- message.pollMediaType = reader.int32();
80839
+ message.pollContentType = reader.int32();
80148
80840
  break;
80149
80841
  }
80150
80842
  case 7: {
@@ -80223,11 +80915,12 @@ $root.waproto = (function() {
80223
80915
  return "contextInfo." + error;
80224
80916
  }
80225
80917
  }
80226
- if (message.pollMediaType != null && message.hasOwnProperty("pollMediaType")) {
80227
- properties._pollMediaType = 1;
80228
- switch (message.pollMediaType) {
80918
+ if (message.pollContentType != null && message.hasOwnProperty("pollContentType")) {
80919
+ properties._pollContentType = 1;
80920
+ switch (message.pollContentType) {
80229
80921
  default:
80230
- return "pollMediaType: enum value expected";
80922
+ return "pollContentType: enum value expected";
80923
+ case 0:
80231
80924
  case 1:
80232
80925
  case 2:
80233
80926
  break;
@@ -80290,20 +80983,24 @@ $root.waproto = (function() {
80290
80983
  throw TypeError(".waproto.Message.PollCreationMessage.contextInfo: object expected");
80291
80984
  message.contextInfo = $root.waproto.ContextInfo.fromObject(object.contextInfo);
80292
80985
  }
80293
- switch (object.pollMediaType) {
80986
+ switch (object.pollContentType) {
80294
80987
  default:
80295
- if (typeof object.pollMediaType === "number") {
80296
- message.pollMediaType = object.pollMediaType;
80988
+ if (typeof object.pollContentType === "number") {
80989
+ message.pollContentType = object.pollContentType;
80297
80990
  break;
80298
80991
  }
80299
80992
  break;
80993
+ case "UNKNOWN":
80994
+ case 0:
80995
+ message.pollContentType = 0;
80996
+ break;
80300
80997
  case "TEXT":
80301
80998
  case 1:
80302
- message.pollMediaType = 1;
80999
+ message.pollContentType = 1;
80303
81000
  break;
80304
81001
  case "IMAGE":
80305
81002
  case 2:
80306
- message.pollMediaType = 2;
81003
+ message.pollContentType = 2;
80307
81004
  break;
80308
81005
  }
80309
81006
  switch (object.pollType) {
@@ -80370,10 +81067,10 @@ $root.waproto = (function() {
80370
81067
  if (options.oneofs)
80371
81068
  object._contextInfo = "contextInfo";
80372
81069
  }
80373
- if (message.pollMediaType != null && message.hasOwnProperty("pollMediaType")) {
80374
- object.pollMediaType = options.enums === String ? $root.waproto.Message.PollMediaType[message.pollMediaType] === undefined ? message.pollMediaType : $root.waproto.Message.PollMediaType[message.pollMediaType] : message.pollMediaType;
81070
+ if (message.pollContentType != null && message.hasOwnProperty("pollContentType")) {
81071
+ object.pollContentType = options.enums === String ? $root.waproto.Message.PollContentType[message.pollContentType] === undefined ? message.pollContentType : $root.waproto.Message.PollContentType[message.pollContentType] : message.pollContentType;
80375
81072
  if (options.oneofs)
80376
- object._pollMediaType = "pollMediaType";
81073
+ object._pollContentType = "pollContentType";
80377
81074
  }
80378
81075
  if (message.pollType != null && message.hasOwnProperty("pollType")) {
80379
81076
  object.pollType = options.enums === String ? $root.waproto.Message.PollCreationMessage.PollType[message.pollType] === undefined ? message.pollType : $root.waproto.Message.PollCreationMessage.PollType[message.pollType] : message.pollType;
@@ -80935,20 +81632,6 @@ $root.waproto = (function() {
80935
81632
  return PollEncValue;
80936
81633
  })();
80937
81634
 
80938
- /**
80939
- * PollMediaType enum.
80940
- * @name waproto.Message.PollMediaType
80941
- * @enum {number}
80942
- * @property {number} TEXT=1 TEXT value
80943
- * @property {number} IMAGE=2 IMAGE value
80944
- */
80945
- Message.PollMediaType = (function() {
80946
- var valuesById = {}, values = Object.create(valuesById);
80947
- values[valuesById[1] = "TEXT"] = 1;
80948
- values[valuesById[2] = "IMAGE"] = 2;
80949
- return values;
80950
- })();
80951
-
80952
81635
  Message.PollResultSnapshotMessage = (function() {
80953
81636
 
80954
81637
  /**
@@ -95778,6 +96461,7 @@ $root.waproto = (function() {
95778
96461
  * @property {string|null} [pollUpdateParentKey] MsgOpaqueData pollUpdateParentKey
95779
96462
  * @property {waproto.IPollEncValue|null} [encPollVote] MsgOpaqueData encPollVote
95780
96463
  * @property {boolean|null} [isSentCagPollCreation] MsgOpaqueData isSentCagPollCreation
96464
+ * @property {waproto.MsgOpaqueData.PollContentType|null} [pollContentType] MsgOpaqueData pollContentType
95781
96465
  * @property {waproto.MsgOpaqueData.IPollVotesSnapshot|null} [pollVotesSnapshot] MsgOpaqueData pollVotesSnapshot
95782
96466
  * @property {string|null} [encReactionTargetMessageKey] MsgOpaqueData encReactionTargetMessageKey
95783
96467
  * @property {Uint8Array|null} [encReactionEncPayload] MsgOpaqueData encReactionEncPayload
@@ -95987,6 +96671,14 @@ $root.waproto = (function() {
95987
96671
  */
95988
96672
  MsgOpaqueData.prototype.isSentCagPollCreation = null;
95989
96673
 
96674
+ /**
96675
+ * MsgOpaqueData pollContentType.
96676
+ * @member {waproto.MsgOpaqueData.PollContentType|null|undefined} pollContentType
96677
+ * @memberof waproto.MsgOpaqueData
96678
+ * @instance
96679
+ */
96680
+ MsgOpaqueData.prototype.pollContentType = null;
96681
+
95990
96682
  /**
95991
96683
  * MsgOpaqueData pollVotesSnapshot.
95992
96684
  * @member {waproto.MsgOpaqueData.IPollVotesSnapshot|null|undefined} pollVotesSnapshot
@@ -96236,6 +96928,12 @@ $root.waproto = (function() {
96236
96928
  set: $util.oneOfSetter($oneOfFields)
96237
96929
  });
96238
96930
 
96931
+ // Virtual OneOf for proto3 optional field
96932
+ Object.defineProperty(MsgOpaqueData.prototype, "_pollContentType", {
96933
+ get: $util.oneOfGetter($oneOfFields = ["pollContentType"]),
96934
+ set: $util.oneOfSetter($oneOfFields)
96935
+ });
96936
+
96239
96937
  // Virtual OneOf for proto3 optional field
96240
96938
  Object.defineProperty(MsgOpaqueData.prototype, "_pollVotesSnapshot", {
96241
96939
  get: $util.oneOfGetter($oneOfFields = ["pollVotesSnapshot"]),
@@ -96423,6 +97121,8 @@ $root.waproto = (function() {
96423
97121
  writer.uint32(/* id 40, wireType 0 =*/320).int64(message.eventEndTime);
96424
97122
  if (message.pollVotesSnapshot != null && Object.hasOwnProperty.call(message, "pollVotesSnapshot"))
96425
97123
  $root.waproto.MsgOpaqueData.PollVotesSnapshot.encode(message.pollVotesSnapshot, writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim();
97124
+ if (message.pollContentType != null && Object.hasOwnProperty.call(message, "pollContentType"))
97125
+ writer.uint32(/* id 42, wireType 0 =*/336).int32(message.pollContentType);
96426
97126
  if (message.originalSelfAuthor != null && Object.hasOwnProperty.call(message, "originalSelfAuthor"))
96427
97127
  writer.uint32(/* id 51, wireType 2 =*/410).string(message.originalSelfAuthor);
96428
97128
  return writer;
@@ -96549,6 +97249,10 @@ $root.waproto = (function() {
96549
97249
  message.isSentCagPollCreation = reader.bool();
96550
97250
  break;
96551
97251
  }
97252
+ case 42: {
97253
+ message.pollContentType = reader.int32();
97254
+ break;
97255
+ }
96552
97256
  case 41: {
96553
97257
  message.pollVotesSnapshot = $root.waproto.MsgOpaqueData.PollVotesSnapshot.decode(reader, reader.uint32());
96554
97258
  break;
@@ -96762,6 +97466,17 @@ $root.waproto = (function() {
96762
97466
  if (typeof message.isSentCagPollCreation !== "boolean")
96763
97467
  return "isSentCagPollCreation: boolean expected";
96764
97468
  }
97469
+ if (message.pollContentType != null && message.hasOwnProperty("pollContentType")) {
97470
+ properties._pollContentType = 1;
97471
+ switch (message.pollContentType) {
97472
+ default:
97473
+ return "pollContentType: enum value expected";
97474
+ case 0:
97475
+ case 1:
97476
+ case 2:
97477
+ break;
97478
+ }
97479
+ }
96765
97480
  if (message.pollVotesSnapshot != null && message.hasOwnProperty("pollVotesSnapshot")) {
96766
97481
  properties._pollVotesSnapshot = 1;
96767
97482
  {
@@ -96926,6 +97641,26 @@ $root.waproto = (function() {
96926
97641
  }
96927
97642
  if (object.isSentCagPollCreation != null)
96928
97643
  message.isSentCagPollCreation = Boolean(object.isSentCagPollCreation);
97644
+ switch (object.pollContentType) {
97645
+ default:
97646
+ if (typeof object.pollContentType === "number") {
97647
+ message.pollContentType = object.pollContentType;
97648
+ break;
97649
+ }
97650
+ break;
97651
+ case "UNKNOWN":
97652
+ case 0:
97653
+ message.pollContentType = 0;
97654
+ break;
97655
+ case "TEXT":
97656
+ case 1:
97657
+ message.pollContentType = 1;
97658
+ break;
97659
+ case "IMAGE":
97660
+ case 2:
97661
+ message.pollContentType = 2;
97662
+ break;
97663
+ }
96929
97664
  if (object.pollVotesSnapshot != null) {
96930
97665
  if (typeof object.pollVotesSnapshot !== "object")
96931
97666
  throw TypeError(".waproto.MsgOpaqueData.pollVotesSnapshot: object expected");
@@ -97198,6 +97933,11 @@ $root.waproto = (function() {
97198
97933
  if (options.oneofs)
97199
97934
  object._pollVotesSnapshot = "pollVotesSnapshot";
97200
97935
  }
97936
+ if (message.pollContentType != null && message.hasOwnProperty("pollContentType")) {
97937
+ object.pollContentType = options.enums === String ? $root.waproto.MsgOpaqueData.PollContentType[message.pollContentType] === undefined ? message.pollContentType : $root.waproto.MsgOpaqueData.PollContentType[message.pollContentType] : message.pollContentType;
97938
+ if (options.oneofs)
97939
+ object._pollContentType = "pollContentType";
97940
+ }
97201
97941
  if (message.originalSelfAuthor != null && message.hasOwnProperty("originalSelfAuthor")) {
97202
97942
  object.originalSelfAuthor = message.originalSelfAuthor;
97203
97943
  if (options.oneofs)
@@ -97616,6 +98356,22 @@ $root.waproto = (function() {
97616
98356
  return EventLocation;
97617
98357
  })();
97618
98358
 
98359
+ /**
98360
+ * PollContentType enum.
98361
+ * @name waproto.MsgOpaqueData.PollContentType
98362
+ * @enum {number}
98363
+ * @property {number} UNKNOWN=0 UNKNOWN value
98364
+ * @property {number} TEXT=1 TEXT value
98365
+ * @property {number} IMAGE=2 IMAGE value
98366
+ */
98367
+ MsgOpaqueData.PollContentType = (function() {
98368
+ var valuesById = {}, values = Object.create(valuesById);
98369
+ values[valuesById[0] = "UNKNOWN"] = 0;
98370
+ values[valuesById[1] = "TEXT"] = 1;
98371
+ values[valuesById[2] = "IMAGE"] = 2;
98372
+ return values;
98373
+ })();
98374
+
97619
98375
  MsgOpaqueData.PollOption = (function() {
97620
98376
 
97621
98377
  /**
@@ -135987,6 +136743,545 @@ $root.waproto = (function() {
135987
136743
  return TemplateButton;
135988
136744
  })();
135989
136745
 
136746
+ waproto.UrlTrackingMap = (function() {
136747
+
136748
+ /**
136749
+ * Properties of an UrlTrackingMap.
136750
+ * @memberof waproto
136751
+ * @interface IUrlTrackingMap
136752
+ * @property {Array.<waproto.UrlTrackingMap.IUrlTrackingMapElement>|null} [urlTrackingMapElements] UrlTrackingMap urlTrackingMapElements
136753
+ */
136754
+
136755
+ /**
136756
+ * Constructs a new UrlTrackingMap.
136757
+ * @memberof waproto
136758
+ * @classdesc Represents an UrlTrackingMap.
136759
+ * @implements IUrlTrackingMap
136760
+ * @constructor
136761
+ * @param {waproto.IUrlTrackingMap=} [properties] Properties to set
136762
+ */
136763
+ function UrlTrackingMap(properties) {
136764
+ this.urlTrackingMapElements = [];
136765
+ if (properties)
136766
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
136767
+ if (properties[keys[i]] != null)
136768
+ this[keys[i]] = properties[keys[i]];
136769
+ }
136770
+
136771
+ /**
136772
+ * UrlTrackingMap urlTrackingMapElements.
136773
+ * @member {Array.<waproto.UrlTrackingMap.IUrlTrackingMapElement>} urlTrackingMapElements
136774
+ * @memberof waproto.UrlTrackingMap
136775
+ * @instance
136776
+ */
136777
+ UrlTrackingMap.prototype.urlTrackingMapElements = $util.emptyArray;
136778
+
136779
+ /**
136780
+ * Creates a new UrlTrackingMap instance using the specified properties.
136781
+ * @function create
136782
+ * @memberof waproto.UrlTrackingMap
136783
+ * @static
136784
+ * @param {waproto.IUrlTrackingMap=} [properties] Properties to set
136785
+ * @returns {waproto.UrlTrackingMap} UrlTrackingMap instance
136786
+ */
136787
+ UrlTrackingMap.create = function create(properties) {
136788
+ return new UrlTrackingMap(properties);
136789
+ };
136790
+
136791
+ /**
136792
+ * Encodes the specified UrlTrackingMap message. Does not implicitly {@link waproto.UrlTrackingMap.verify|verify} messages.
136793
+ * @function encode
136794
+ * @memberof waproto.UrlTrackingMap
136795
+ * @static
136796
+ * @param {waproto.IUrlTrackingMap} message UrlTrackingMap message or plain object to encode
136797
+ * @param {$protobuf.Writer} [writer] Writer to encode to
136798
+ * @returns {$protobuf.Writer} Writer
136799
+ */
136800
+ UrlTrackingMap.encode = function encode(message, writer) {
136801
+ if (!writer)
136802
+ writer = $Writer.create();
136803
+ if (message.urlTrackingMapElements != null && message.urlTrackingMapElements.length)
136804
+ for (var i = 0; i < message.urlTrackingMapElements.length; ++i)
136805
+ $root.waproto.UrlTrackingMap.UrlTrackingMapElement.encode(message.urlTrackingMapElements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
136806
+ return writer;
136807
+ };
136808
+
136809
+ /**
136810
+ * Encodes the specified UrlTrackingMap message, length delimited. Does not implicitly {@link waproto.UrlTrackingMap.verify|verify} messages.
136811
+ * @function encodeDelimited
136812
+ * @memberof waproto.UrlTrackingMap
136813
+ * @static
136814
+ * @param {waproto.IUrlTrackingMap} message UrlTrackingMap message or plain object to encode
136815
+ * @param {$protobuf.Writer} [writer] Writer to encode to
136816
+ * @returns {$protobuf.Writer} Writer
136817
+ */
136818
+ UrlTrackingMap.encodeDelimited = function encodeDelimited(message, writer) {
136819
+ return this.encode(message, writer).ldelim();
136820
+ };
136821
+
136822
+ /**
136823
+ * Decodes an UrlTrackingMap message from the specified reader or buffer.
136824
+ * @function decode
136825
+ * @memberof waproto.UrlTrackingMap
136826
+ * @static
136827
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
136828
+ * @param {number} [length] Message length if known beforehand
136829
+ * @returns {waproto.UrlTrackingMap} UrlTrackingMap
136830
+ * @throws {Error} If the payload is not a reader or valid buffer
136831
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
136832
+ */
136833
+ UrlTrackingMap.decode = function decode(reader, length) {
136834
+ if (!(reader instanceof $Reader))
136835
+ reader = $Reader.create(reader);
136836
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.UrlTrackingMap();
136837
+ while (reader.pos < end) {
136838
+ var tag = reader.uint32();
136839
+ switch (tag >>> 3) {
136840
+ case 1: {
136841
+ if (!(message.urlTrackingMapElements && message.urlTrackingMapElements.length))
136842
+ message.urlTrackingMapElements = [];
136843
+ message.urlTrackingMapElements.push($root.waproto.UrlTrackingMap.UrlTrackingMapElement.decode(reader, reader.uint32()));
136844
+ break;
136845
+ }
136846
+ default:
136847
+ reader.skipType(tag & 7);
136848
+ break;
136849
+ }
136850
+ }
136851
+ return message;
136852
+ };
136853
+
136854
+ /**
136855
+ * Decodes an UrlTrackingMap message from the specified reader or buffer, length delimited.
136856
+ * @function decodeDelimited
136857
+ * @memberof waproto.UrlTrackingMap
136858
+ * @static
136859
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
136860
+ * @returns {waproto.UrlTrackingMap} UrlTrackingMap
136861
+ * @throws {Error} If the payload is not a reader or valid buffer
136862
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
136863
+ */
136864
+ UrlTrackingMap.decodeDelimited = function decodeDelimited(reader) {
136865
+ if (!(reader instanceof $Reader))
136866
+ reader = new $Reader(reader);
136867
+ return this.decode(reader, reader.uint32());
136868
+ };
136869
+
136870
+ /**
136871
+ * Verifies an UrlTrackingMap message.
136872
+ * @function verify
136873
+ * @memberof waproto.UrlTrackingMap
136874
+ * @static
136875
+ * @param {Object.<string,*>} message Plain object to verify
136876
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
136877
+ */
136878
+ UrlTrackingMap.verify = function verify(message) {
136879
+ if (typeof message !== "object" || message === null)
136880
+ return "object expected";
136881
+ if (message.urlTrackingMapElements != null && message.hasOwnProperty("urlTrackingMapElements")) {
136882
+ if (!Array.isArray(message.urlTrackingMapElements))
136883
+ return "urlTrackingMapElements: array expected";
136884
+ for (var i = 0; i < message.urlTrackingMapElements.length; ++i) {
136885
+ var error = $root.waproto.UrlTrackingMap.UrlTrackingMapElement.verify(message.urlTrackingMapElements[i]);
136886
+ if (error)
136887
+ return "urlTrackingMapElements." + error;
136888
+ }
136889
+ }
136890
+ return null;
136891
+ };
136892
+
136893
+ /**
136894
+ * Creates an UrlTrackingMap message from a plain object. Also converts values to their respective internal types.
136895
+ * @function fromObject
136896
+ * @memberof waproto.UrlTrackingMap
136897
+ * @static
136898
+ * @param {Object.<string,*>} object Plain object
136899
+ * @returns {waproto.UrlTrackingMap} UrlTrackingMap
136900
+ */
136901
+ UrlTrackingMap.fromObject = function fromObject(object) {
136902
+ if (object instanceof $root.waproto.UrlTrackingMap)
136903
+ return object;
136904
+ var message = new $root.waproto.UrlTrackingMap();
136905
+ if (object.urlTrackingMapElements) {
136906
+ if (!Array.isArray(object.urlTrackingMapElements))
136907
+ throw TypeError(".waproto.UrlTrackingMap.urlTrackingMapElements: array expected");
136908
+ message.urlTrackingMapElements = [];
136909
+ for (var i = 0; i < object.urlTrackingMapElements.length; ++i) {
136910
+ if (typeof object.urlTrackingMapElements[i] !== "object")
136911
+ throw TypeError(".waproto.UrlTrackingMap.urlTrackingMapElements: object expected");
136912
+ message.urlTrackingMapElements[i] = $root.waproto.UrlTrackingMap.UrlTrackingMapElement.fromObject(object.urlTrackingMapElements[i]);
136913
+ }
136914
+ }
136915
+ return message;
136916
+ };
136917
+
136918
+ /**
136919
+ * Creates a plain object from an UrlTrackingMap message. Also converts values to other types if specified.
136920
+ * @function toObject
136921
+ * @memberof waproto.UrlTrackingMap
136922
+ * @static
136923
+ * @param {waproto.UrlTrackingMap} message UrlTrackingMap
136924
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
136925
+ * @returns {Object.<string,*>} Plain object
136926
+ */
136927
+ UrlTrackingMap.toObject = function toObject(message, options) {
136928
+ if (!options)
136929
+ options = {};
136930
+ var object = {};
136931
+ if (options.arrays || options.defaults)
136932
+ object.urlTrackingMapElements = [];
136933
+ if (message.urlTrackingMapElements && message.urlTrackingMapElements.length) {
136934
+ object.urlTrackingMapElements = [];
136935
+ for (var j = 0; j < message.urlTrackingMapElements.length; ++j)
136936
+ object.urlTrackingMapElements[j] = $root.waproto.UrlTrackingMap.UrlTrackingMapElement.toObject(message.urlTrackingMapElements[j], options);
136937
+ }
136938
+ return object;
136939
+ };
136940
+
136941
+ /**
136942
+ * Converts this UrlTrackingMap to JSON.
136943
+ * @function toJSON
136944
+ * @memberof waproto.UrlTrackingMap
136945
+ * @instance
136946
+ * @returns {Object.<string,*>} JSON object
136947
+ */
136948
+ UrlTrackingMap.prototype.toJSON = function toJSON() {
136949
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
136950
+ };
136951
+
136952
+ /**
136953
+ * Gets the default type url for UrlTrackingMap
136954
+ * @function getTypeUrl
136955
+ * @memberof waproto.UrlTrackingMap
136956
+ * @static
136957
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
136958
+ * @returns {string} The default type url
136959
+ */
136960
+ UrlTrackingMap.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
136961
+ if (typeUrlPrefix === undefined) {
136962
+ typeUrlPrefix = "type.googleapis.com";
136963
+ }
136964
+ return typeUrlPrefix + "/waproto.UrlTrackingMap";
136965
+ };
136966
+
136967
+ UrlTrackingMap.UrlTrackingMapElement = (function() {
136968
+
136969
+ /**
136970
+ * Properties of an UrlTrackingMapElement.
136971
+ * @memberof waproto.UrlTrackingMap
136972
+ * @interface IUrlTrackingMapElement
136973
+ * @property {string|null} [originalUrl] UrlTrackingMapElement originalUrl
136974
+ * @property {string|null} [unconsentedUsersUrl] UrlTrackingMapElement unconsentedUsersUrl
136975
+ * @property {string|null} [consentedUsersUrl] UrlTrackingMapElement consentedUsersUrl
136976
+ * @property {number|null} [cardIndex] UrlTrackingMapElement cardIndex
136977
+ */
136978
+
136979
+ /**
136980
+ * Constructs a new UrlTrackingMapElement.
136981
+ * @memberof waproto.UrlTrackingMap
136982
+ * @classdesc Represents an UrlTrackingMapElement.
136983
+ * @implements IUrlTrackingMapElement
136984
+ * @constructor
136985
+ * @param {waproto.UrlTrackingMap.IUrlTrackingMapElement=} [properties] Properties to set
136986
+ */
136987
+ function UrlTrackingMapElement(properties) {
136988
+ if (properties)
136989
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
136990
+ if (properties[keys[i]] != null)
136991
+ this[keys[i]] = properties[keys[i]];
136992
+ }
136993
+
136994
+ /**
136995
+ * UrlTrackingMapElement originalUrl.
136996
+ * @member {string|null|undefined} originalUrl
136997
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
136998
+ * @instance
136999
+ */
137000
+ UrlTrackingMapElement.prototype.originalUrl = null;
137001
+
137002
+ /**
137003
+ * UrlTrackingMapElement unconsentedUsersUrl.
137004
+ * @member {string|null|undefined} unconsentedUsersUrl
137005
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137006
+ * @instance
137007
+ */
137008
+ UrlTrackingMapElement.prototype.unconsentedUsersUrl = null;
137009
+
137010
+ /**
137011
+ * UrlTrackingMapElement consentedUsersUrl.
137012
+ * @member {string|null|undefined} consentedUsersUrl
137013
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137014
+ * @instance
137015
+ */
137016
+ UrlTrackingMapElement.prototype.consentedUsersUrl = null;
137017
+
137018
+ /**
137019
+ * UrlTrackingMapElement cardIndex.
137020
+ * @member {number|null|undefined} cardIndex
137021
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137022
+ * @instance
137023
+ */
137024
+ UrlTrackingMapElement.prototype.cardIndex = null;
137025
+
137026
+ // OneOf field names bound to virtual getters and setters
137027
+ var $oneOfFields;
137028
+
137029
+ // Virtual OneOf for proto3 optional field
137030
+ Object.defineProperty(UrlTrackingMapElement.prototype, "_originalUrl", {
137031
+ get: $util.oneOfGetter($oneOfFields = ["originalUrl"]),
137032
+ set: $util.oneOfSetter($oneOfFields)
137033
+ });
137034
+
137035
+ // Virtual OneOf for proto3 optional field
137036
+ Object.defineProperty(UrlTrackingMapElement.prototype, "_unconsentedUsersUrl", {
137037
+ get: $util.oneOfGetter($oneOfFields = ["unconsentedUsersUrl"]),
137038
+ set: $util.oneOfSetter($oneOfFields)
137039
+ });
137040
+
137041
+ // Virtual OneOf for proto3 optional field
137042
+ Object.defineProperty(UrlTrackingMapElement.prototype, "_consentedUsersUrl", {
137043
+ get: $util.oneOfGetter($oneOfFields = ["consentedUsersUrl"]),
137044
+ set: $util.oneOfSetter($oneOfFields)
137045
+ });
137046
+
137047
+ // Virtual OneOf for proto3 optional field
137048
+ Object.defineProperty(UrlTrackingMapElement.prototype, "_cardIndex", {
137049
+ get: $util.oneOfGetter($oneOfFields = ["cardIndex"]),
137050
+ set: $util.oneOfSetter($oneOfFields)
137051
+ });
137052
+
137053
+ /**
137054
+ * Creates a new UrlTrackingMapElement instance using the specified properties.
137055
+ * @function create
137056
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137057
+ * @static
137058
+ * @param {waproto.UrlTrackingMap.IUrlTrackingMapElement=} [properties] Properties to set
137059
+ * @returns {waproto.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement instance
137060
+ */
137061
+ UrlTrackingMapElement.create = function create(properties) {
137062
+ return new UrlTrackingMapElement(properties);
137063
+ };
137064
+
137065
+ /**
137066
+ * Encodes the specified UrlTrackingMapElement message. Does not implicitly {@link waproto.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages.
137067
+ * @function encode
137068
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137069
+ * @static
137070
+ * @param {waproto.UrlTrackingMap.IUrlTrackingMapElement} message UrlTrackingMapElement message or plain object to encode
137071
+ * @param {$protobuf.Writer} [writer] Writer to encode to
137072
+ * @returns {$protobuf.Writer} Writer
137073
+ */
137074
+ UrlTrackingMapElement.encode = function encode(message, writer) {
137075
+ if (!writer)
137076
+ writer = $Writer.create();
137077
+ if (message.originalUrl != null && Object.hasOwnProperty.call(message, "originalUrl"))
137078
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.originalUrl);
137079
+ if (message.unconsentedUsersUrl != null && Object.hasOwnProperty.call(message, "unconsentedUsersUrl"))
137080
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.unconsentedUsersUrl);
137081
+ if (message.consentedUsersUrl != null && Object.hasOwnProperty.call(message, "consentedUsersUrl"))
137082
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.consentedUsersUrl);
137083
+ if (message.cardIndex != null && Object.hasOwnProperty.call(message, "cardIndex"))
137084
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.cardIndex);
137085
+ return writer;
137086
+ };
137087
+
137088
+ /**
137089
+ * Encodes the specified UrlTrackingMapElement message, length delimited. Does not implicitly {@link waproto.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages.
137090
+ * @function encodeDelimited
137091
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137092
+ * @static
137093
+ * @param {waproto.UrlTrackingMap.IUrlTrackingMapElement} message UrlTrackingMapElement message or plain object to encode
137094
+ * @param {$protobuf.Writer} [writer] Writer to encode to
137095
+ * @returns {$protobuf.Writer} Writer
137096
+ */
137097
+ UrlTrackingMapElement.encodeDelimited = function encodeDelimited(message, writer) {
137098
+ return this.encode(message, writer).ldelim();
137099
+ };
137100
+
137101
+ /**
137102
+ * Decodes an UrlTrackingMapElement message from the specified reader or buffer.
137103
+ * @function decode
137104
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137105
+ * @static
137106
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
137107
+ * @param {number} [length] Message length if known beforehand
137108
+ * @returns {waproto.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement
137109
+ * @throws {Error} If the payload is not a reader or valid buffer
137110
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
137111
+ */
137112
+ UrlTrackingMapElement.decode = function decode(reader, length) {
137113
+ if (!(reader instanceof $Reader))
137114
+ reader = $Reader.create(reader);
137115
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.UrlTrackingMap.UrlTrackingMapElement();
137116
+ while (reader.pos < end) {
137117
+ var tag = reader.uint32();
137118
+ switch (tag >>> 3) {
137119
+ case 1: {
137120
+ message.originalUrl = reader.string();
137121
+ break;
137122
+ }
137123
+ case 2: {
137124
+ message.unconsentedUsersUrl = reader.string();
137125
+ break;
137126
+ }
137127
+ case 3: {
137128
+ message.consentedUsersUrl = reader.string();
137129
+ break;
137130
+ }
137131
+ case 4: {
137132
+ message.cardIndex = reader.uint32();
137133
+ break;
137134
+ }
137135
+ default:
137136
+ reader.skipType(tag & 7);
137137
+ break;
137138
+ }
137139
+ }
137140
+ return message;
137141
+ };
137142
+
137143
+ /**
137144
+ * Decodes an UrlTrackingMapElement message from the specified reader or buffer, length delimited.
137145
+ * @function decodeDelimited
137146
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137147
+ * @static
137148
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
137149
+ * @returns {waproto.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement
137150
+ * @throws {Error} If the payload is not a reader or valid buffer
137151
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
137152
+ */
137153
+ UrlTrackingMapElement.decodeDelimited = function decodeDelimited(reader) {
137154
+ if (!(reader instanceof $Reader))
137155
+ reader = new $Reader(reader);
137156
+ return this.decode(reader, reader.uint32());
137157
+ };
137158
+
137159
+ /**
137160
+ * Verifies an UrlTrackingMapElement message.
137161
+ * @function verify
137162
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137163
+ * @static
137164
+ * @param {Object.<string,*>} message Plain object to verify
137165
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
137166
+ */
137167
+ UrlTrackingMapElement.verify = function verify(message) {
137168
+ if (typeof message !== "object" || message === null)
137169
+ return "object expected";
137170
+ var properties = {};
137171
+ if (message.originalUrl != null && message.hasOwnProperty("originalUrl")) {
137172
+ properties._originalUrl = 1;
137173
+ if (!$util.isString(message.originalUrl))
137174
+ return "originalUrl: string expected";
137175
+ }
137176
+ if (message.unconsentedUsersUrl != null && message.hasOwnProperty("unconsentedUsersUrl")) {
137177
+ properties._unconsentedUsersUrl = 1;
137178
+ if (!$util.isString(message.unconsentedUsersUrl))
137179
+ return "unconsentedUsersUrl: string expected";
137180
+ }
137181
+ if (message.consentedUsersUrl != null && message.hasOwnProperty("consentedUsersUrl")) {
137182
+ properties._consentedUsersUrl = 1;
137183
+ if (!$util.isString(message.consentedUsersUrl))
137184
+ return "consentedUsersUrl: string expected";
137185
+ }
137186
+ if (message.cardIndex != null && message.hasOwnProperty("cardIndex")) {
137187
+ properties._cardIndex = 1;
137188
+ if (!$util.isInteger(message.cardIndex))
137189
+ return "cardIndex: integer expected";
137190
+ }
137191
+ return null;
137192
+ };
137193
+
137194
+ /**
137195
+ * Creates an UrlTrackingMapElement message from a plain object. Also converts values to their respective internal types.
137196
+ * @function fromObject
137197
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137198
+ * @static
137199
+ * @param {Object.<string,*>} object Plain object
137200
+ * @returns {waproto.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement
137201
+ */
137202
+ UrlTrackingMapElement.fromObject = function fromObject(object) {
137203
+ if (object instanceof $root.waproto.UrlTrackingMap.UrlTrackingMapElement)
137204
+ return object;
137205
+ var message = new $root.waproto.UrlTrackingMap.UrlTrackingMapElement();
137206
+ if (object.originalUrl != null)
137207
+ message.originalUrl = String(object.originalUrl);
137208
+ if (object.unconsentedUsersUrl != null)
137209
+ message.unconsentedUsersUrl = String(object.unconsentedUsersUrl);
137210
+ if (object.consentedUsersUrl != null)
137211
+ message.consentedUsersUrl = String(object.consentedUsersUrl);
137212
+ if (object.cardIndex != null)
137213
+ message.cardIndex = object.cardIndex >>> 0;
137214
+ return message;
137215
+ };
137216
+
137217
+ /**
137218
+ * Creates a plain object from an UrlTrackingMapElement message. Also converts values to other types if specified.
137219
+ * @function toObject
137220
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137221
+ * @static
137222
+ * @param {waproto.UrlTrackingMap.UrlTrackingMapElement} message UrlTrackingMapElement
137223
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
137224
+ * @returns {Object.<string,*>} Plain object
137225
+ */
137226
+ UrlTrackingMapElement.toObject = function toObject(message, options) {
137227
+ if (!options)
137228
+ options = {};
137229
+ var object = {};
137230
+ if (message.originalUrl != null && message.hasOwnProperty("originalUrl")) {
137231
+ object.originalUrl = message.originalUrl;
137232
+ if (options.oneofs)
137233
+ object._originalUrl = "originalUrl";
137234
+ }
137235
+ if (message.unconsentedUsersUrl != null && message.hasOwnProperty("unconsentedUsersUrl")) {
137236
+ object.unconsentedUsersUrl = message.unconsentedUsersUrl;
137237
+ if (options.oneofs)
137238
+ object._unconsentedUsersUrl = "unconsentedUsersUrl";
137239
+ }
137240
+ if (message.consentedUsersUrl != null && message.hasOwnProperty("consentedUsersUrl")) {
137241
+ object.consentedUsersUrl = message.consentedUsersUrl;
137242
+ if (options.oneofs)
137243
+ object._consentedUsersUrl = "consentedUsersUrl";
137244
+ }
137245
+ if (message.cardIndex != null && message.hasOwnProperty("cardIndex")) {
137246
+ object.cardIndex = message.cardIndex;
137247
+ if (options.oneofs)
137248
+ object._cardIndex = "cardIndex";
137249
+ }
137250
+ return object;
137251
+ };
137252
+
137253
+ /**
137254
+ * Converts this UrlTrackingMapElement to JSON.
137255
+ * @function toJSON
137256
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137257
+ * @instance
137258
+ * @returns {Object.<string,*>} JSON object
137259
+ */
137260
+ UrlTrackingMapElement.prototype.toJSON = function toJSON() {
137261
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
137262
+ };
137263
+
137264
+ /**
137265
+ * Gets the default type url for UrlTrackingMapElement
137266
+ * @function getTypeUrl
137267
+ * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement
137268
+ * @static
137269
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
137270
+ * @returns {string} The default type url
137271
+ */
137272
+ UrlTrackingMapElement.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
137273
+ if (typeUrlPrefix === undefined) {
137274
+ typeUrlPrefix = "type.googleapis.com";
137275
+ }
137276
+ return typeUrlPrefix + "/waproto.UrlTrackingMap.UrlTrackingMapElement";
137277
+ };
137278
+
137279
+ return UrlTrackingMapElement;
137280
+ })();
137281
+
137282
+ return UrlTrackingMap;
137283
+ })();
137284
+
135990
137285
  waproto.UserPassword = (function() {
135991
137286
 
135992
137287
  /**