@wppconnect/wa-proto 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4323,6 +4323,10 @@ $root.waproto = (function() {
4323
4323
  case 1:
4324
4324
  case 2:
4325
4325
  case 3:
4326
+ case 4:
4327
+ case 10:
4328
+ case 11:
4329
+ case 12:
4326
4330
  break;
4327
4331
  }
4328
4332
  }
@@ -4364,6 +4368,22 @@ $root.waproto = (function() {
4364
4368
  case 3:
4365
4369
  message.capabilities[i] = 3;
4366
4370
  break;
4371
+ case "AI_MEMORY":
4372
+ case 4:
4373
+ message.capabilities[i] = 4;
4374
+ break;
4375
+ case "WA_IG_1P_PLUGIN_RANKING_CONTROL":
4376
+ case 10:
4377
+ message.capabilities[i] = 10;
4378
+ break;
4379
+ case "WA_IG_1P_PLUGIN_RANKING_UPDATE_1":
4380
+ case 11:
4381
+ message.capabilities[i] = 11;
4382
+ break;
4383
+ case "WA_IG_1P_PLUGIN_RANKING_UPDATE_2":
4384
+ case 12:
4385
+ message.capabilities[i] = 12;
4386
+ break;
4367
4387
  }
4368
4388
  }
4369
4389
  return message;
@@ -4425,12 +4445,20 @@ $root.waproto = (function() {
4425
4445
  * @property {number} PROGRESS_INDICATOR=1 PROGRESS_INDICATOR value
4426
4446
  * @property {number} RICH_RESPONSE_HEADING=2 RICH_RESPONSE_HEADING value
4427
4447
  * @property {number} RICH_RESPONSE_NESTED_LIST=3 RICH_RESPONSE_NESTED_LIST value
4448
+ * @property {number} AI_MEMORY=4 AI_MEMORY value
4449
+ * @property {number} WA_IG_1P_PLUGIN_RANKING_CONTROL=10 WA_IG_1P_PLUGIN_RANKING_CONTROL value
4450
+ * @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11 WA_IG_1P_PLUGIN_RANKING_UPDATE_1 value
4451
+ * @property {number} WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12 WA_IG_1P_PLUGIN_RANKING_UPDATE_2 value
4428
4452
  */
4429
4453
  BotCapabilityMetadata.BotCapabilityType = (function() {
4430
4454
  var valuesById = {}, values = Object.create(valuesById);
4431
4455
  values[valuesById[1] = "PROGRESS_INDICATOR"] = 1;
4432
4456
  values[valuesById[2] = "RICH_RESPONSE_HEADING"] = 2;
4433
4457
  values[valuesById[3] = "RICH_RESPONSE_NESTED_LIST"] = 3;
4458
+ values[valuesById[4] = "AI_MEMORY"] = 4;
4459
+ values[valuesById[10] = "WA_IG_1P_PLUGIN_RANKING_CONTROL"] = 10;
4460
+ values[valuesById[11] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_1"] = 11;
4461
+ values[valuesById[12] = "WA_IG_1P_PLUGIN_RANKING_UPDATE_2"] = 12;
4434
4462
  return values;
4435
4463
  })();
4436
4464
 
@@ -7026,6 +7054,7 @@ $root.waproto = (function() {
7026
7054
  * @property {waproto.IMessageKey|null} [parentPluginMessageKey] BotPluginMetadata parentPluginMessageKey
7027
7055
  * @property {waproto.BotPluginMetadata.PluginType|null} [deprecatedField] BotPluginMetadata deprecatedField
7028
7056
  * @property {waproto.BotPluginMetadata.PluginType|null} [parentPluginType] BotPluginMetadata parentPluginType
7057
+ * @property {string|null} [faviconCdnUrl] BotPluginMetadata faviconCdnUrl
7029
7058
  */
7030
7059
 
7031
7060
  /**
@@ -7131,6 +7160,14 @@ $root.waproto = (function() {
7131
7160
  */
7132
7161
  BotPluginMetadata.prototype.parentPluginType = null;
7133
7162
 
7163
+ /**
7164
+ * BotPluginMetadata faviconCdnUrl.
7165
+ * @member {string|null|undefined} faviconCdnUrl
7166
+ * @memberof waproto.BotPluginMetadata
7167
+ * @instance
7168
+ */
7169
+ BotPluginMetadata.prototype.faviconCdnUrl = null;
7170
+
7134
7171
  // OneOf field names bound to virtual getters and setters
7135
7172
  var $oneOfFields;
7136
7173
 
@@ -7200,6 +7237,12 @@ $root.waproto = (function() {
7200
7237
  set: $util.oneOfSetter($oneOfFields)
7201
7238
  });
7202
7239
 
7240
+ // Virtual OneOf for proto3 optional field
7241
+ Object.defineProperty(BotPluginMetadata.prototype, "_faviconCdnUrl", {
7242
+ get: $util.oneOfGetter($oneOfFields = ["faviconCdnUrl"]),
7243
+ set: $util.oneOfSetter($oneOfFields)
7244
+ });
7245
+
7203
7246
  /**
7204
7247
  * Creates a new BotPluginMetadata instance using the specified properties.
7205
7248
  * @function create
@@ -7246,6 +7289,8 @@ $root.waproto = (function() {
7246
7289
  writer.uint32(/* id 11, wireType 0 =*/88).int32(message.deprecatedField);
7247
7290
  if (message.parentPluginType != null && Object.hasOwnProperty.call(message, "parentPluginType"))
7248
7291
  writer.uint32(/* id 12, wireType 0 =*/96).int32(message.parentPluginType);
7292
+ if (message.faviconCdnUrl != null && Object.hasOwnProperty.call(message, "faviconCdnUrl"))
7293
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.faviconCdnUrl);
7249
7294
  return writer;
7250
7295
  };
7251
7296
 
@@ -7324,6 +7369,10 @@ $root.waproto = (function() {
7324
7369
  message.parentPluginType = reader.int32();
7325
7370
  break;
7326
7371
  }
7372
+ case 13: {
7373
+ message.faviconCdnUrl = reader.string();
7374
+ break;
7375
+ }
7327
7376
  default:
7328
7377
  reader.skipType(tag & 7);
7329
7378
  break;
@@ -7439,6 +7488,11 @@ $root.waproto = (function() {
7439
7488
  break;
7440
7489
  }
7441
7490
  }
7491
+ if (message.faviconCdnUrl != null && message.hasOwnProperty("faviconCdnUrl")) {
7492
+ properties._faviconCdnUrl = 1;
7493
+ if (!$util.isString(message.faviconCdnUrl))
7494
+ return "faviconCdnUrl: string expected";
7495
+ }
7442
7496
  return null;
7443
7497
  };
7444
7498
 
@@ -7539,6 +7593,8 @@ $root.waproto = (function() {
7539
7593
  message.parentPluginType = 2;
7540
7594
  break;
7541
7595
  }
7596
+ if (object.faviconCdnUrl != null)
7597
+ message.faviconCdnUrl = String(object.faviconCdnUrl);
7542
7598
  return message;
7543
7599
  };
7544
7600
 
@@ -7610,6 +7666,11 @@ $root.waproto = (function() {
7610
7666
  if (options.oneofs)
7611
7667
  object._parentPluginType = "parentPluginType";
7612
7668
  }
7669
+ if (message.faviconCdnUrl != null && message.hasOwnProperty("faviconCdnUrl")) {
7670
+ object.faviconCdnUrl = message.faviconCdnUrl;
7671
+ if (options.oneofs)
7672
+ object._faviconCdnUrl = "faviconCdnUrl";
7673
+ }
7613
7674
  return object;
7614
7675
  };
7615
7676
 
@@ -7888,6 +7949,479 @@ $root.waproto = (function() {
7888
7949
  return BotProgressIndicatorMetadata;
7889
7950
  })();
7890
7951
 
7952
+ waproto.BotPromptSuggestion = (function() {
7953
+
7954
+ /**
7955
+ * Properties of a BotPromptSuggestion.
7956
+ * @memberof waproto
7957
+ * @interface IBotPromptSuggestion
7958
+ * @property {string|null} [prompt] BotPromptSuggestion prompt
7959
+ * @property {string|null} [promptId] BotPromptSuggestion promptId
7960
+ */
7961
+
7962
+ /**
7963
+ * Constructs a new BotPromptSuggestion.
7964
+ * @memberof waproto
7965
+ * @classdesc Represents a BotPromptSuggestion.
7966
+ * @implements IBotPromptSuggestion
7967
+ * @constructor
7968
+ * @param {waproto.IBotPromptSuggestion=} [properties] Properties to set
7969
+ */
7970
+ function BotPromptSuggestion(properties) {
7971
+ if (properties)
7972
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7973
+ if (properties[keys[i]] != null)
7974
+ this[keys[i]] = properties[keys[i]];
7975
+ }
7976
+
7977
+ /**
7978
+ * BotPromptSuggestion prompt.
7979
+ * @member {string|null|undefined} prompt
7980
+ * @memberof waproto.BotPromptSuggestion
7981
+ * @instance
7982
+ */
7983
+ BotPromptSuggestion.prototype.prompt = null;
7984
+
7985
+ /**
7986
+ * BotPromptSuggestion promptId.
7987
+ * @member {string|null|undefined} promptId
7988
+ * @memberof waproto.BotPromptSuggestion
7989
+ * @instance
7990
+ */
7991
+ BotPromptSuggestion.prototype.promptId = null;
7992
+
7993
+ // OneOf field names bound to virtual getters and setters
7994
+ var $oneOfFields;
7995
+
7996
+ // Virtual OneOf for proto3 optional field
7997
+ Object.defineProperty(BotPromptSuggestion.prototype, "_prompt", {
7998
+ get: $util.oneOfGetter($oneOfFields = ["prompt"]),
7999
+ set: $util.oneOfSetter($oneOfFields)
8000
+ });
8001
+
8002
+ // Virtual OneOf for proto3 optional field
8003
+ Object.defineProperty(BotPromptSuggestion.prototype, "_promptId", {
8004
+ get: $util.oneOfGetter($oneOfFields = ["promptId"]),
8005
+ set: $util.oneOfSetter($oneOfFields)
8006
+ });
8007
+
8008
+ /**
8009
+ * Creates a new BotPromptSuggestion instance using the specified properties.
8010
+ * @function create
8011
+ * @memberof waproto.BotPromptSuggestion
8012
+ * @static
8013
+ * @param {waproto.IBotPromptSuggestion=} [properties] Properties to set
8014
+ * @returns {waproto.BotPromptSuggestion} BotPromptSuggestion instance
8015
+ */
8016
+ BotPromptSuggestion.create = function create(properties) {
8017
+ return new BotPromptSuggestion(properties);
8018
+ };
8019
+
8020
+ /**
8021
+ * Encodes the specified BotPromptSuggestion message. Does not implicitly {@link waproto.BotPromptSuggestion.verify|verify} messages.
8022
+ * @function encode
8023
+ * @memberof waproto.BotPromptSuggestion
8024
+ * @static
8025
+ * @param {waproto.IBotPromptSuggestion} message BotPromptSuggestion message or plain object to encode
8026
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8027
+ * @returns {$protobuf.Writer} Writer
8028
+ */
8029
+ BotPromptSuggestion.encode = function encode(message, writer) {
8030
+ if (!writer)
8031
+ writer = $Writer.create();
8032
+ if (message.prompt != null && Object.hasOwnProperty.call(message, "prompt"))
8033
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.prompt);
8034
+ if (message.promptId != null && Object.hasOwnProperty.call(message, "promptId"))
8035
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.promptId);
8036
+ return writer;
8037
+ };
8038
+
8039
+ /**
8040
+ * Encodes the specified BotPromptSuggestion message, length delimited. Does not implicitly {@link waproto.BotPromptSuggestion.verify|verify} messages.
8041
+ * @function encodeDelimited
8042
+ * @memberof waproto.BotPromptSuggestion
8043
+ * @static
8044
+ * @param {waproto.IBotPromptSuggestion} message BotPromptSuggestion message or plain object to encode
8045
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8046
+ * @returns {$protobuf.Writer} Writer
8047
+ */
8048
+ BotPromptSuggestion.encodeDelimited = function encodeDelimited(message, writer) {
8049
+ return this.encode(message, writer).ldelim();
8050
+ };
8051
+
8052
+ /**
8053
+ * Decodes a BotPromptSuggestion message from the specified reader or buffer.
8054
+ * @function decode
8055
+ * @memberof waproto.BotPromptSuggestion
8056
+ * @static
8057
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8058
+ * @param {number} [length] Message length if known beforehand
8059
+ * @returns {waproto.BotPromptSuggestion} BotPromptSuggestion
8060
+ * @throws {Error} If the payload is not a reader or valid buffer
8061
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8062
+ */
8063
+ BotPromptSuggestion.decode = function decode(reader, length) {
8064
+ if (!(reader instanceof $Reader))
8065
+ reader = $Reader.create(reader);
8066
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotPromptSuggestion();
8067
+ while (reader.pos < end) {
8068
+ var tag = reader.uint32();
8069
+ switch (tag >>> 3) {
8070
+ case 1: {
8071
+ message.prompt = reader.string();
8072
+ break;
8073
+ }
8074
+ case 2: {
8075
+ message.promptId = reader.string();
8076
+ break;
8077
+ }
8078
+ default:
8079
+ reader.skipType(tag & 7);
8080
+ break;
8081
+ }
8082
+ }
8083
+ return message;
8084
+ };
8085
+
8086
+ /**
8087
+ * Decodes a BotPromptSuggestion message from the specified reader or buffer, length delimited.
8088
+ * @function decodeDelimited
8089
+ * @memberof waproto.BotPromptSuggestion
8090
+ * @static
8091
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8092
+ * @returns {waproto.BotPromptSuggestion} BotPromptSuggestion
8093
+ * @throws {Error} If the payload is not a reader or valid buffer
8094
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8095
+ */
8096
+ BotPromptSuggestion.decodeDelimited = function decodeDelimited(reader) {
8097
+ if (!(reader instanceof $Reader))
8098
+ reader = new $Reader(reader);
8099
+ return this.decode(reader, reader.uint32());
8100
+ };
8101
+
8102
+ /**
8103
+ * Verifies a BotPromptSuggestion message.
8104
+ * @function verify
8105
+ * @memberof waproto.BotPromptSuggestion
8106
+ * @static
8107
+ * @param {Object.<string,*>} message Plain object to verify
8108
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8109
+ */
8110
+ BotPromptSuggestion.verify = function verify(message) {
8111
+ if (typeof message !== "object" || message === null)
8112
+ return "object expected";
8113
+ var properties = {};
8114
+ if (message.prompt != null && message.hasOwnProperty("prompt")) {
8115
+ properties._prompt = 1;
8116
+ if (!$util.isString(message.prompt))
8117
+ return "prompt: string expected";
8118
+ }
8119
+ if (message.promptId != null && message.hasOwnProperty("promptId")) {
8120
+ properties._promptId = 1;
8121
+ if (!$util.isString(message.promptId))
8122
+ return "promptId: string expected";
8123
+ }
8124
+ return null;
8125
+ };
8126
+
8127
+ /**
8128
+ * Creates a BotPromptSuggestion message from a plain object. Also converts values to their respective internal types.
8129
+ * @function fromObject
8130
+ * @memberof waproto.BotPromptSuggestion
8131
+ * @static
8132
+ * @param {Object.<string,*>} object Plain object
8133
+ * @returns {waproto.BotPromptSuggestion} BotPromptSuggestion
8134
+ */
8135
+ BotPromptSuggestion.fromObject = function fromObject(object) {
8136
+ if (object instanceof $root.waproto.BotPromptSuggestion)
8137
+ return object;
8138
+ var message = new $root.waproto.BotPromptSuggestion();
8139
+ if (object.prompt != null)
8140
+ message.prompt = String(object.prompt);
8141
+ if (object.promptId != null)
8142
+ message.promptId = String(object.promptId);
8143
+ return message;
8144
+ };
8145
+
8146
+ /**
8147
+ * Creates a plain object from a BotPromptSuggestion message. Also converts values to other types if specified.
8148
+ * @function toObject
8149
+ * @memberof waproto.BotPromptSuggestion
8150
+ * @static
8151
+ * @param {waproto.BotPromptSuggestion} message BotPromptSuggestion
8152
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8153
+ * @returns {Object.<string,*>} Plain object
8154
+ */
8155
+ BotPromptSuggestion.toObject = function toObject(message, options) {
8156
+ if (!options)
8157
+ options = {};
8158
+ var object = {};
8159
+ if (message.prompt != null && message.hasOwnProperty("prompt")) {
8160
+ object.prompt = message.prompt;
8161
+ if (options.oneofs)
8162
+ object._prompt = "prompt";
8163
+ }
8164
+ if (message.promptId != null && message.hasOwnProperty("promptId")) {
8165
+ object.promptId = message.promptId;
8166
+ if (options.oneofs)
8167
+ object._promptId = "promptId";
8168
+ }
8169
+ return object;
8170
+ };
8171
+
8172
+ /**
8173
+ * Converts this BotPromptSuggestion to JSON.
8174
+ * @function toJSON
8175
+ * @memberof waproto.BotPromptSuggestion
8176
+ * @instance
8177
+ * @returns {Object.<string,*>} JSON object
8178
+ */
8179
+ BotPromptSuggestion.prototype.toJSON = function toJSON() {
8180
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8181
+ };
8182
+
8183
+ /**
8184
+ * Gets the default type url for BotPromptSuggestion
8185
+ * @function getTypeUrl
8186
+ * @memberof waproto.BotPromptSuggestion
8187
+ * @static
8188
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8189
+ * @returns {string} The default type url
8190
+ */
8191
+ BotPromptSuggestion.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8192
+ if (typeUrlPrefix === undefined) {
8193
+ typeUrlPrefix = "type.googleapis.com";
8194
+ }
8195
+ return typeUrlPrefix + "/waproto.BotPromptSuggestion";
8196
+ };
8197
+
8198
+ return BotPromptSuggestion;
8199
+ })();
8200
+
8201
+ waproto.BotPromptSuggestions = (function() {
8202
+
8203
+ /**
8204
+ * Properties of a BotPromptSuggestions.
8205
+ * @memberof waproto
8206
+ * @interface IBotPromptSuggestions
8207
+ * @property {Array.<waproto.IBotPromptSuggestion>|null} [suggestions] BotPromptSuggestions suggestions
8208
+ */
8209
+
8210
+ /**
8211
+ * Constructs a new BotPromptSuggestions.
8212
+ * @memberof waproto
8213
+ * @classdesc Represents a BotPromptSuggestions.
8214
+ * @implements IBotPromptSuggestions
8215
+ * @constructor
8216
+ * @param {waproto.IBotPromptSuggestions=} [properties] Properties to set
8217
+ */
8218
+ function BotPromptSuggestions(properties) {
8219
+ this.suggestions = [];
8220
+ if (properties)
8221
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8222
+ if (properties[keys[i]] != null)
8223
+ this[keys[i]] = properties[keys[i]];
8224
+ }
8225
+
8226
+ /**
8227
+ * BotPromptSuggestions suggestions.
8228
+ * @member {Array.<waproto.IBotPromptSuggestion>} suggestions
8229
+ * @memberof waproto.BotPromptSuggestions
8230
+ * @instance
8231
+ */
8232
+ BotPromptSuggestions.prototype.suggestions = $util.emptyArray;
8233
+
8234
+ /**
8235
+ * Creates a new BotPromptSuggestions instance using the specified properties.
8236
+ * @function create
8237
+ * @memberof waproto.BotPromptSuggestions
8238
+ * @static
8239
+ * @param {waproto.IBotPromptSuggestions=} [properties] Properties to set
8240
+ * @returns {waproto.BotPromptSuggestions} BotPromptSuggestions instance
8241
+ */
8242
+ BotPromptSuggestions.create = function create(properties) {
8243
+ return new BotPromptSuggestions(properties);
8244
+ };
8245
+
8246
+ /**
8247
+ * Encodes the specified BotPromptSuggestions message. Does not implicitly {@link waproto.BotPromptSuggestions.verify|verify} messages.
8248
+ * @function encode
8249
+ * @memberof waproto.BotPromptSuggestions
8250
+ * @static
8251
+ * @param {waproto.IBotPromptSuggestions} message BotPromptSuggestions message or plain object to encode
8252
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8253
+ * @returns {$protobuf.Writer} Writer
8254
+ */
8255
+ BotPromptSuggestions.encode = function encode(message, writer) {
8256
+ if (!writer)
8257
+ writer = $Writer.create();
8258
+ if (message.suggestions != null && message.suggestions.length)
8259
+ for (var i = 0; i < message.suggestions.length; ++i)
8260
+ $root.waproto.BotPromptSuggestion.encode(message.suggestions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
8261
+ return writer;
8262
+ };
8263
+
8264
+ /**
8265
+ * Encodes the specified BotPromptSuggestions message, length delimited. Does not implicitly {@link waproto.BotPromptSuggestions.verify|verify} messages.
8266
+ * @function encodeDelimited
8267
+ * @memberof waproto.BotPromptSuggestions
8268
+ * @static
8269
+ * @param {waproto.IBotPromptSuggestions} message BotPromptSuggestions message or plain object to encode
8270
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8271
+ * @returns {$protobuf.Writer} Writer
8272
+ */
8273
+ BotPromptSuggestions.encodeDelimited = function encodeDelimited(message, writer) {
8274
+ return this.encode(message, writer).ldelim();
8275
+ };
8276
+
8277
+ /**
8278
+ * Decodes a BotPromptSuggestions message from the specified reader or buffer.
8279
+ * @function decode
8280
+ * @memberof waproto.BotPromptSuggestions
8281
+ * @static
8282
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8283
+ * @param {number} [length] Message length if known beforehand
8284
+ * @returns {waproto.BotPromptSuggestions} BotPromptSuggestions
8285
+ * @throws {Error} If the payload is not a reader or valid buffer
8286
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8287
+ */
8288
+ BotPromptSuggestions.decode = function decode(reader, length) {
8289
+ if (!(reader instanceof $Reader))
8290
+ reader = $Reader.create(reader);
8291
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.BotPromptSuggestions();
8292
+ while (reader.pos < end) {
8293
+ var tag = reader.uint32();
8294
+ switch (tag >>> 3) {
8295
+ case 1: {
8296
+ if (!(message.suggestions && message.suggestions.length))
8297
+ message.suggestions = [];
8298
+ message.suggestions.push($root.waproto.BotPromptSuggestion.decode(reader, reader.uint32()));
8299
+ break;
8300
+ }
8301
+ default:
8302
+ reader.skipType(tag & 7);
8303
+ break;
8304
+ }
8305
+ }
8306
+ return message;
8307
+ };
8308
+
8309
+ /**
8310
+ * Decodes a BotPromptSuggestions message from the specified reader or buffer, length delimited.
8311
+ * @function decodeDelimited
8312
+ * @memberof waproto.BotPromptSuggestions
8313
+ * @static
8314
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8315
+ * @returns {waproto.BotPromptSuggestions} BotPromptSuggestions
8316
+ * @throws {Error} If the payload is not a reader or valid buffer
8317
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8318
+ */
8319
+ BotPromptSuggestions.decodeDelimited = function decodeDelimited(reader) {
8320
+ if (!(reader instanceof $Reader))
8321
+ reader = new $Reader(reader);
8322
+ return this.decode(reader, reader.uint32());
8323
+ };
8324
+
8325
+ /**
8326
+ * Verifies a BotPromptSuggestions message.
8327
+ * @function verify
8328
+ * @memberof waproto.BotPromptSuggestions
8329
+ * @static
8330
+ * @param {Object.<string,*>} message Plain object to verify
8331
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8332
+ */
8333
+ BotPromptSuggestions.verify = function verify(message) {
8334
+ if (typeof message !== "object" || message === null)
8335
+ return "object expected";
8336
+ if (message.suggestions != null && message.hasOwnProperty("suggestions")) {
8337
+ if (!Array.isArray(message.suggestions))
8338
+ return "suggestions: array expected";
8339
+ for (var i = 0; i < message.suggestions.length; ++i) {
8340
+ var error = $root.waproto.BotPromptSuggestion.verify(message.suggestions[i]);
8341
+ if (error)
8342
+ return "suggestions." + error;
8343
+ }
8344
+ }
8345
+ return null;
8346
+ };
8347
+
8348
+ /**
8349
+ * Creates a BotPromptSuggestions message from a plain object. Also converts values to their respective internal types.
8350
+ * @function fromObject
8351
+ * @memberof waproto.BotPromptSuggestions
8352
+ * @static
8353
+ * @param {Object.<string,*>} object Plain object
8354
+ * @returns {waproto.BotPromptSuggestions} BotPromptSuggestions
8355
+ */
8356
+ BotPromptSuggestions.fromObject = function fromObject(object) {
8357
+ if (object instanceof $root.waproto.BotPromptSuggestions)
8358
+ return object;
8359
+ var message = new $root.waproto.BotPromptSuggestions();
8360
+ if (object.suggestions) {
8361
+ if (!Array.isArray(object.suggestions))
8362
+ throw TypeError(".waproto.BotPromptSuggestions.suggestions: array expected");
8363
+ message.suggestions = [];
8364
+ for (var i = 0; i < object.suggestions.length; ++i) {
8365
+ if (typeof object.suggestions[i] !== "object")
8366
+ throw TypeError(".waproto.BotPromptSuggestions.suggestions: object expected");
8367
+ message.suggestions[i] = $root.waproto.BotPromptSuggestion.fromObject(object.suggestions[i]);
8368
+ }
8369
+ }
8370
+ return message;
8371
+ };
8372
+
8373
+ /**
8374
+ * Creates a plain object from a BotPromptSuggestions message. Also converts values to other types if specified.
8375
+ * @function toObject
8376
+ * @memberof waproto.BotPromptSuggestions
8377
+ * @static
8378
+ * @param {waproto.BotPromptSuggestions} message BotPromptSuggestions
8379
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8380
+ * @returns {Object.<string,*>} Plain object
8381
+ */
8382
+ BotPromptSuggestions.toObject = function toObject(message, options) {
8383
+ if (!options)
8384
+ options = {};
8385
+ var object = {};
8386
+ if (options.arrays || options.defaults)
8387
+ object.suggestions = [];
8388
+ if (message.suggestions && message.suggestions.length) {
8389
+ object.suggestions = [];
8390
+ for (var j = 0; j < message.suggestions.length; ++j)
8391
+ object.suggestions[j] = $root.waproto.BotPromptSuggestion.toObject(message.suggestions[j], options);
8392
+ }
8393
+ return object;
8394
+ };
8395
+
8396
+ /**
8397
+ * Converts this BotPromptSuggestions to JSON.
8398
+ * @function toJSON
8399
+ * @memberof waproto.BotPromptSuggestions
8400
+ * @instance
8401
+ * @returns {Object.<string,*>} JSON object
8402
+ */
8403
+ BotPromptSuggestions.prototype.toJSON = function toJSON() {
8404
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8405
+ };
8406
+
8407
+ /**
8408
+ * Gets the default type url for BotPromptSuggestions
8409
+ * @function getTypeUrl
8410
+ * @memberof waproto.BotPromptSuggestions
8411
+ * @static
8412
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8413
+ * @returns {string} The default type url
8414
+ */
8415
+ BotPromptSuggestions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8416
+ if (typeUrlPrefix === undefined) {
8417
+ typeUrlPrefix = "type.googleapis.com";
8418
+ }
8419
+ return typeUrlPrefix + "/waproto.BotPromptSuggestions";
8420
+ };
8421
+
8422
+ return BotPromptSuggestions;
8423
+ })();
8424
+
7891
8425
  waproto.BotReminderMetadata = (function() {
7892
8426
 
7893
8427
  /**
@@ -8671,6 +9205,8 @@ $root.waproto = (function() {
8671
9205
  * @interface IBotSuggestedPromptMetadata
8672
9206
  * @property {Array.<string>|null} [suggestedPrompts] BotSuggestedPromptMetadata suggestedPrompts
8673
9207
  * @property {number|null} [selectedPromptIndex] BotSuggestedPromptMetadata selectedPromptIndex
9208
+ * @property {waproto.IBotPromptSuggestions|null} [promptSuggestions] BotSuggestedPromptMetadata promptSuggestions
9209
+ * @property {string|null} [selectedPromptId] BotSuggestedPromptMetadata selectedPromptId
8674
9210
  */
8675
9211
 
8676
9212
  /**
@@ -8705,6 +9241,22 @@ $root.waproto = (function() {
8705
9241
  */
8706
9242
  BotSuggestedPromptMetadata.prototype.selectedPromptIndex = null;
8707
9243
 
9244
+ /**
9245
+ * BotSuggestedPromptMetadata promptSuggestions.
9246
+ * @member {waproto.IBotPromptSuggestions|null|undefined} promptSuggestions
9247
+ * @memberof waproto.BotSuggestedPromptMetadata
9248
+ * @instance
9249
+ */
9250
+ BotSuggestedPromptMetadata.prototype.promptSuggestions = null;
9251
+
9252
+ /**
9253
+ * BotSuggestedPromptMetadata selectedPromptId.
9254
+ * @member {string|null|undefined} selectedPromptId
9255
+ * @memberof waproto.BotSuggestedPromptMetadata
9256
+ * @instance
9257
+ */
9258
+ BotSuggestedPromptMetadata.prototype.selectedPromptId = null;
9259
+
8708
9260
  // OneOf field names bound to virtual getters and setters
8709
9261
  var $oneOfFields;
8710
9262
 
@@ -8714,6 +9266,18 @@ $root.waproto = (function() {
8714
9266
  set: $util.oneOfSetter($oneOfFields)
8715
9267
  });
8716
9268
 
9269
+ // Virtual OneOf for proto3 optional field
9270
+ Object.defineProperty(BotSuggestedPromptMetadata.prototype, "_promptSuggestions", {
9271
+ get: $util.oneOfGetter($oneOfFields = ["promptSuggestions"]),
9272
+ set: $util.oneOfSetter($oneOfFields)
9273
+ });
9274
+
9275
+ // Virtual OneOf for proto3 optional field
9276
+ Object.defineProperty(BotSuggestedPromptMetadata.prototype, "_selectedPromptId", {
9277
+ get: $util.oneOfGetter($oneOfFields = ["selectedPromptId"]),
9278
+ set: $util.oneOfSetter($oneOfFields)
9279
+ });
9280
+
8717
9281
  /**
8718
9282
  * Creates a new BotSuggestedPromptMetadata instance using the specified properties.
8719
9283
  * @function create
@@ -8743,6 +9307,10 @@ $root.waproto = (function() {
8743
9307
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.suggestedPrompts[i]);
8744
9308
  if (message.selectedPromptIndex != null && Object.hasOwnProperty.call(message, "selectedPromptIndex"))
8745
9309
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.selectedPromptIndex);
9310
+ if (message.promptSuggestions != null && Object.hasOwnProperty.call(message, "promptSuggestions"))
9311
+ $root.waproto.BotPromptSuggestions.encode(message.promptSuggestions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
9312
+ if (message.selectedPromptId != null && Object.hasOwnProperty.call(message, "selectedPromptId"))
9313
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.selectedPromptId);
8746
9314
  return writer;
8747
9315
  };
8748
9316
 
@@ -8787,6 +9355,14 @@ $root.waproto = (function() {
8787
9355
  message.selectedPromptIndex = reader.uint32();
8788
9356
  break;
8789
9357
  }
9358
+ case 3: {
9359
+ message.promptSuggestions = $root.waproto.BotPromptSuggestions.decode(reader, reader.uint32());
9360
+ break;
9361
+ }
9362
+ case 4: {
9363
+ message.selectedPromptId = reader.string();
9364
+ break;
9365
+ }
8790
9366
  default:
8791
9367
  reader.skipType(tag & 7);
8792
9368
  break;
@@ -8835,6 +9411,19 @@ $root.waproto = (function() {
8835
9411
  if (!$util.isInteger(message.selectedPromptIndex))
8836
9412
  return "selectedPromptIndex: integer expected";
8837
9413
  }
9414
+ if (message.promptSuggestions != null && message.hasOwnProperty("promptSuggestions")) {
9415
+ properties._promptSuggestions = 1;
9416
+ {
9417
+ var error = $root.waproto.BotPromptSuggestions.verify(message.promptSuggestions);
9418
+ if (error)
9419
+ return "promptSuggestions." + error;
9420
+ }
9421
+ }
9422
+ if (message.selectedPromptId != null && message.hasOwnProperty("selectedPromptId")) {
9423
+ properties._selectedPromptId = 1;
9424
+ if (!$util.isString(message.selectedPromptId))
9425
+ return "selectedPromptId: string expected";
9426
+ }
8838
9427
  return null;
8839
9428
  };
8840
9429
 
@@ -8859,6 +9448,13 @@ $root.waproto = (function() {
8859
9448
  }
8860
9449
  if (object.selectedPromptIndex != null)
8861
9450
  message.selectedPromptIndex = object.selectedPromptIndex >>> 0;
9451
+ if (object.promptSuggestions != null) {
9452
+ if (typeof object.promptSuggestions !== "object")
9453
+ throw TypeError(".waproto.BotSuggestedPromptMetadata.promptSuggestions: object expected");
9454
+ message.promptSuggestions = $root.waproto.BotPromptSuggestions.fromObject(object.promptSuggestions);
9455
+ }
9456
+ if (object.selectedPromptId != null)
9457
+ message.selectedPromptId = String(object.selectedPromptId);
8862
9458
  return message;
8863
9459
  };
8864
9460
 
@@ -8887,6 +9483,16 @@ $root.waproto = (function() {
8887
9483
  if (options.oneofs)
8888
9484
  object._selectedPromptIndex = "selectedPromptIndex";
8889
9485
  }
9486
+ if (message.promptSuggestions != null && message.hasOwnProperty("promptSuggestions")) {
9487
+ object.promptSuggestions = $root.waproto.BotPromptSuggestions.toObject(message.promptSuggestions, options);
9488
+ if (options.oneofs)
9489
+ object._promptSuggestions = "promptSuggestions";
9490
+ }
9491
+ if (message.selectedPromptId != null && message.hasOwnProperty("selectedPromptId")) {
9492
+ object.selectedPromptId = message.selectedPromptId;
9493
+ if (options.oneofs)
9494
+ object._selectedPromptId = "selectedPromptId";
9495
+ }
8890
9496
  return object;
8891
9497
  };
8892
9498
 
@@ -40716,6 +41322,7 @@ $root.waproto = (function() {
40716
41322
  * @property {waproto.Message.IPollResultSnapshotMessage|null} [pollResultSnapshotMessage] Message pollResultSnapshotMessage
40717
41323
  * @property {waproto.Message.IFutureProofMessage|null} [pollCreationMessageV4] Message pollCreationMessageV4
40718
41324
  * @property {waproto.Message.IFutureProofMessage|null} [pollCreationOptionImageMessage] Message pollCreationOptionImageMessage
41325
+ * @property {waproto.Message.IFutureProofMessage|null} [associatedChildMessage] Message associatedChildMessage
40719
41326
  */
40720
41327
 
40721
41328
  /**
@@ -41333,6 +41940,14 @@ $root.waproto = (function() {
41333
41940
  */
41334
41941
  Message.prototype.pollCreationOptionImageMessage = null;
41335
41942
 
41943
+ /**
41944
+ * Message associatedChildMessage.
41945
+ * @member {waproto.Message.IFutureProofMessage|null|undefined} associatedChildMessage
41946
+ * @memberof waproto.Message
41947
+ * @instance
41948
+ */
41949
+ Message.prototype.associatedChildMessage = null;
41950
+
41336
41951
  // OneOf field names bound to virtual getters and setters
41337
41952
  var $oneOfFields;
41338
41953
 
@@ -41786,6 +42401,12 @@ $root.waproto = (function() {
41786
42401
  set: $util.oneOfSetter($oneOfFields)
41787
42402
  });
41788
42403
 
42404
+ // Virtual OneOf for proto3 optional field
42405
+ Object.defineProperty(Message.prototype, "_associatedChildMessage", {
42406
+ get: $util.oneOfGetter($oneOfFields = ["associatedChildMessage"]),
42407
+ set: $util.oneOfSetter($oneOfFields)
42408
+ });
42409
+
41789
42410
  /**
41790
42411
  * Creates a new Message instance using the specified properties.
41791
42412
  * @function create
@@ -41960,6 +42581,8 @@ $root.waproto = (function() {
41960
42581
  $root.waproto.Message.FutureProofMessage.encode(message.pollCreationMessageV4, writer.uint32(/* id 89, wireType 2 =*/714).fork()).ldelim();
41961
42582
  if (message.pollCreationOptionImageMessage != null && Object.hasOwnProperty.call(message, "pollCreationOptionImageMessage"))
41962
42583
  $root.waproto.Message.FutureProofMessage.encode(message.pollCreationOptionImageMessage, writer.uint32(/* id 90, wireType 2 =*/722).fork()).ldelim();
42584
+ if (message.associatedChildMessage != null && Object.hasOwnProperty.call(message, "associatedChildMessage"))
42585
+ $root.waproto.Message.FutureProofMessage.encode(message.associatedChildMessage, writer.uint32(/* id 91, wireType 2 =*/730).fork()).ldelim();
41963
42586
  return writer;
41964
42587
  };
41965
42588
 
@@ -42294,6 +42917,10 @@ $root.waproto = (function() {
42294
42917
  message.pollCreationOptionImageMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
42295
42918
  break;
42296
42919
  }
42920
+ case 91: {
42921
+ message.associatedChildMessage = $root.waproto.Message.FutureProofMessage.decode(reader, reader.uint32());
42922
+ break;
42923
+ }
42297
42924
  default:
42298
42925
  reader.skipType(tag & 7);
42299
42926
  break;
@@ -42927,6 +43554,14 @@ $root.waproto = (function() {
42927
43554
  return "pollCreationOptionImageMessage." + error;
42928
43555
  }
42929
43556
  }
43557
+ if (message.associatedChildMessage != null && message.hasOwnProperty("associatedChildMessage")) {
43558
+ properties._associatedChildMessage = 1;
43559
+ {
43560
+ var error = $root.waproto.Message.FutureProofMessage.verify(message.associatedChildMessage);
43561
+ if (error)
43562
+ return "associatedChildMessage." + error;
43563
+ }
43564
+ }
42930
43565
  return null;
42931
43566
  };
42932
43567
 
@@ -43314,6 +43949,11 @@ $root.waproto = (function() {
43314
43949
  throw TypeError(".waproto.Message.pollCreationOptionImageMessage: object expected");
43315
43950
  message.pollCreationOptionImageMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.pollCreationOptionImageMessage);
43316
43951
  }
43952
+ if (object.associatedChildMessage != null) {
43953
+ if (typeof object.associatedChildMessage !== "object")
43954
+ throw TypeError(".waproto.Message.associatedChildMessage: object expected");
43955
+ message.associatedChildMessage = $root.waproto.Message.FutureProofMessage.fromObject(object.associatedChildMessage);
43956
+ }
43317
43957
  return message;
43318
43958
  };
43319
43959
 
@@ -43705,6 +44345,11 @@ $root.waproto = (function() {
43705
44345
  if (options.oneofs)
43706
44346
  object._pollCreationOptionImageMessage = "pollCreationOptionImageMessage";
43707
44347
  }
44348
+ if (message.associatedChildMessage != null && message.hasOwnProperty("associatedChildMessage")) {
44349
+ object.associatedChildMessage = $root.waproto.Message.FutureProofMessage.toObject(message.associatedChildMessage, options);
44350
+ if (options.oneofs)
44351
+ object._associatedChildMessage = "associatedChildMessage";
44352
+ }
43708
44353
  return object;
43709
44354
  };
43710
44355
 
@@ -55342,6 +55987,7 @@ $root.waproto = (function() {
55342
55987
  * @property {boolean|null} [viewOnce] ExtendedTextMessage viewOnce
55343
55988
  * @property {number|null} [videoHeight] ExtendedTextMessage videoHeight
55344
55989
  * @property {number|null} [videoWidth] ExtendedTextMessage videoWidth
55990
+ * @property {waproto.Message.IMMSThumbnailMetadata|null} [faviconMMSMetadata] ExtendedTextMessage faviconMMSMetadata
55345
55991
  */
55346
55992
 
55347
55993
  /**
@@ -55567,6 +56213,14 @@ $root.waproto = (function() {
55567
56213
  */
55568
56214
  ExtendedTextMessage.prototype.videoWidth = null;
55569
56215
 
56216
+ /**
56217
+ * ExtendedTextMessage faviconMMSMetadata.
56218
+ * @member {waproto.Message.IMMSThumbnailMetadata|null|undefined} faviconMMSMetadata
56219
+ * @memberof waproto.Message.ExtendedTextMessage
56220
+ * @instance
56221
+ */
56222
+ ExtendedTextMessage.prototype.faviconMMSMetadata = null;
56223
+
55570
56224
  // OneOf field names bound to virtual getters and setters
55571
56225
  var $oneOfFields;
55572
56226
 
@@ -55726,6 +56380,12 @@ $root.waproto = (function() {
55726
56380
  set: $util.oneOfSetter($oneOfFields)
55727
56381
  });
55728
56382
 
56383
+ // Virtual OneOf for proto3 optional field
56384
+ Object.defineProperty(ExtendedTextMessage.prototype, "_faviconMMSMetadata", {
56385
+ get: $util.oneOfGetter($oneOfFields = ["faviconMMSMetadata"]),
56386
+ set: $util.oneOfSetter($oneOfFields)
56387
+ });
56388
+
55729
56389
  /**
55730
56390
  * Creates a new ExtendedTextMessage instance using the specified properties.
55731
56391
  * @function create
@@ -55802,6 +56462,8 @@ $root.waproto = (function() {
55802
56462
  writer.uint32(/* id 31, wireType 0 =*/248).uint32(message.videoHeight);
55803
56463
  if (message.videoWidth != null && Object.hasOwnProperty.call(message, "videoWidth"))
55804
56464
  writer.uint32(/* id 32, wireType 0 =*/256).uint32(message.videoWidth);
56465
+ if (message.faviconMMSMetadata != null && Object.hasOwnProperty.call(message, "faviconMMSMetadata"))
56466
+ $root.waproto.Message.MMSThumbnailMetadata.encode(message.faviconMMSMetadata, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim();
55805
56467
  return writer;
55806
56468
  };
55807
56469
 
@@ -55940,6 +56602,10 @@ $root.waproto = (function() {
55940
56602
  message.videoWidth = reader.uint32();
55941
56603
  break;
55942
56604
  }
56605
+ case 33: {
56606
+ message.faviconMMSMetadata = $root.waproto.Message.MMSThumbnailMetadata.decode(reader, reader.uint32());
56607
+ break;
56608
+ }
55943
56609
  default:
55944
56610
  reader.skipType(tag & 7);
55945
56611
  break;
@@ -56143,6 +56809,14 @@ $root.waproto = (function() {
56143
56809
  if (!$util.isInteger(message.videoWidth))
56144
56810
  return "videoWidth: integer expected";
56145
56811
  }
56812
+ if (message.faviconMMSMetadata != null && message.hasOwnProperty("faviconMMSMetadata")) {
56813
+ properties._faviconMMSMetadata = 1;
56814
+ {
56815
+ var error = $root.waproto.Message.MMSThumbnailMetadata.verify(message.faviconMMSMetadata);
56816
+ if (error)
56817
+ return "faviconMMSMetadata." + error;
56818
+ }
56819
+ }
56146
56820
  return null;
56147
56821
  };
56148
56822
 
@@ -56347,6 +57021,11 @@ $root.waproto = (function() {
56347
57021
  message.videoHeight = object.videoHeight >>> 0;
56348
57022
  if (object.videoWidth != null)
56349
57023
  message.videoWidth = object.videoWidth >>> 0;
57024
+ if (object.faviconMMSMetadata != null) {
57025
+ if (typeof object.faviconMMSMetadata !== "object")
57026
+ throw TypeError(".waproto.Message.ExtendedTextMessage.faviconMMSMetadata: object expected");
57027
+ message.faviconMMSMetadata = $root.waproto.Message.MMSThumbnailMetadata.fromObject(object.faviconMMSMetadata);
57028
+ }
56350
57029
  return message;
56351
57030
  };
56352
57031
 
@@ -56496,6 +57175,11 @@ $root.waproto = (function() {
56496
57175
  if (options.oneofs)
56497
57176
  object._videoWidth = "videoWidth";
56498
57177
  }
57178
+ if (message.faviconMMSMetadata != null && message.hasOwnProperty("faviconMMSMetadata")) {
57179
+ object.faviconMMSMetadata = $root.waproto.Message.MMSThumbnailMetadata.toObject(message.faviconMMSMetadata, options);
57180
+ if (options.oneofs)
57181
+ object._faviconMMSMetadata = "faviconMMSMetadata";
57182
+ }
56499
57183
  return object;
56500
57184
  };
56501
57185
 
@@ -70245,6 +70929,439 @@ $root.waproto = (function() {
70245
70929
  return LocationMessage;
70246
70930
  })();
70247
70931
 
70932
+ Message.MMSThumbnailMetadata = (function() {
70933
+
70934
+ /**
70935
+ * Properties of a MMSThumbnailMetadata.
70936
+ * @memberof waproto.Message
70937
+ * @interface IMMSThumbnailMetadata
70938
+ * @property {string|null} [thumbnailDirectPath] MMSThumbnailMetadata thumbnailDirectPath
70939
+ * @property {Uint8Array|null} [thumbnailSha256] MMSThumbnailMetadata thumbnailSha256
70940
+ * @property {Uint8Array|null} [thumbnailEncSha256] MMSThumbnailMetadata thumbnailEncSha256
70941
+ * @property {Uint8Array|null} [mediaKey] MMSThumbnailMetadata mediaKey
70942
+ * @property {number|Long|null} [mediaKeyTimestamp] MMSThumbnailMetadata mediaKeyTimestamp
70943
+ * @property {number|null} [thumbnailHeight] MMSThumbnailMetadata thumbnailHeight
70944
+ * @property {number|null} [thumbnailWidth] MMSThumbnailMetadata thumbnailWidth
70945
+ */
70946
+
70947
+ /**
70948
+ * Constructs a new MMSThumbnailMetadata.
70949
+ * @memberof waproto.Message
70950
+ * @classdesc Represents a MMSThumbnailMetadata.
70951
+ * @implements IMMSThumbnailMetadata
70952
+ * @constructor
70953
+ * @param {waproto.Message.IMMSThumbnailMetadata=} [properties] Properties to set
70954
+ */
70955
+ function MMSThumbnailMetadata(properties) {
70956
+ if (properties)
70957
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
70958
+ if (properties[keys[i]] != null)
70959
+ this[keys[i]] = properties[keys[i]];
70960
+ }
70961
+
70962
+ /**
70963
+ * MMSThumbnailMetadata thumbnailDirectPath.
70964
+ * @member {string|null|undefined} thumbnailDirectPath
70965
+ * @memberof waproto.Message.MMSThumbnailMetadata
70966
+ * @instance
70967
+ */
70968
+ MMSThumbnailMetadata.prototype.thumbnailDirectPath = null;
70969
+
70970
+ /**
70971
+ * MMSThumbnailMetadata thumbnailSha256.
70972
+ * @member {Uint8Array|null|undefined} thumbnailSha256
70973
+ * @memberof waproto.Message.MMSThumbnailMetadata
70974
+ * @instance
70975
+ */
70976
+ MMSThumbnailMetadata.prototype.thumbnailSha256 = null;
70977
+
70978
+ /**
70979
+ * MMSThumbnailMetadata thumbnailEncSha256.
70980
+ * @member {Uint8Array|null|undefined} thumbnailEncSha256
70981
+ * @memberof waproto.Message.MMSThumbnailMetadata
70982
+ * @instance
70983
+ */
70984
+ MMSThumbnailMetadata.prototype.thumbnailEncSha256 = null;
70985
+
70986
+ /**
70987
+ * MMSThumbnailMetadata mediaKey.
70988
+ * @member {Uint8Array|null|undefined} mediaKey
70989
+ * @memberof waproto.Message.MMSThumbnailMetadata
70990
+ * @instance
70991
+ */
70992
+ MMSThumbnailMetadata.prototype.mediaKey = null;
70993
+
70994
+ /**
70995
+ * MMSThumbnailMetadata mediaKeyTimestamp.
70996
+ * @member {number|Long|null|undefined} mediaKeyTimestamp
70997
+ * @memberof waproto.Message.MMSThumbnailMetadata
70998
+ * @instance
70999
+ */
71000
+ MMSThumbnailMetadata.prototype.mediaKeyTimestamp = null;
71001
+
71002
+ /**
71003
+ * MMSThumbnailMetadata thumbnailHeight.
71004
+ * @member {number|null|undefined} thumbnailHeight
71005
+ * @memberof waproto.Message.MMSThumbnailMetadata
71006
+ * @instance
71007
+ */
71008
+ MMSThumbnailMetadata.prototype.thumbnailHeight = null;
71009
+
71010
+ /**
71011
+ * MMSThumbnailMetadata thumbnailWidth.
71012
+ * @member {number|null|undefined} thumbnailWidth
71013
+ * @memberof waproto.Message.MMSThumbnailMetadata
71014
+ * @instance
71015
+ */
71016
+ MMSThumbnailMetadata.prototype.thumbnailWidth = null;
71017
+
71018
+ // OneOf field names bound to virtual getters and setters
71019
+ var $oneOfFields;
71020
+
71021
+ // Virtual OneOf for proto3 optional field
71022
+ Object.defineProperty(MMSThumbnailMetadata.prototype, "_thumbnailDirectPath", {
71023
+ get: $util.oneOfGetter($oneOfFields = ["thumbnailDirectPath"]),
71024
+ set: $util.oneOfSetter($oneOfFields)
71025
+ });
71026
+
71027
+ // Virtual OneOf for proto3 optional field
71028
+ Object.defineProperty(MMSThumbnailMetadata.prototype, "_thumbnailSha256", {
71029
+ get: $util.oneOfGetter($oneOfFields = ["thumbnailSha256"]),
71030
+ set: $util.oneOfSetter($oneOfFields)
71031
+ });
71032
+
71033
+ // Virtual OneOf for proto3 optional field
71034
+ Object.defineProperty(MMSThumbnailMetadata.prototype, "_thumbnailEncSha256", {
71035
+ get: $util.oneOfGetter($oneOfFields = ["thumbnailEncSha256"]),
71036
+ set: $util.oneOfSetter($oneOfFields)
71037
+ });
71038
+
71039
+ // Virtual OneOf for proto3 optional field
71040
+ Object.defineProperty(MMSThumbnailMetadata.prototype, "_mediaKey", {
71041
+ get: $util.oneOfGetter($oneOfFields = ["mediaKey"]),
71042
+ set: $util.oneOfSetter($oneOfFields)
71043
+ });
71044
+
71045
+ // Virtual OneOf for proto3 optional field
71046
+ Object.defineProperty(MMSThumbnailMetadata.prototype, "_mediaKeyTimestamp", {
71047
+ get: $util.oneOfGetter($oneOfFields = ["mediaKeyTimestamp"]),
71048
+ set: $util.oneOfSetter($oneOfFields)
71049
+ });
71050
+
71051
+ // Virtual OneOf for proto3 optional field
71052
+ Object.defineProperty(MMSThumbnailMetadata.prototype, "_thumbnailHeight", {
71053
+ get: $util.oneOfGetter($oneOfFields = ["thumbnailHeight"]),
71054
+ set: $util.oneOfSetter($oneOfFields)
71055
+ });
71056
+
71057
+ // Virtual OneOf for proto3 optional field
71058
+ Object.defineProperty(MMSThumbnailMetadata.prototype, "_thumbnailWidth", {
71059
+ get: $util.oneOfGetter($oneOfFields = ["thumbnailWidth"]),
71060
+ set: $util.oneOfSetter($oneOfFields)
71061
+ });
71062
+
71063
+ /**
71064
+ * Creates a new MMSThumbnailMetadata instance using the specified properties.
71065
+ * @function create
71066
+ * @memberof waproto.Message.MMSThumbnailMetadata
71067
+ * @static
71068
+ * @param {waproto.Message.IMMSThumbnailMetadata=} [properties] Properties to set
71069
+ * @returns {waproto.Message.MMSThumbnailMetadata} MMSThumbnailMetadata instance
71070
+ */
71071
+ MMSThumbnailMetadata.create = function create(properties) {
71072
+ return new MMSThumbnailMetadata(properties);
71073
+ };
71074
+
71075
+ /**
71076
+ * Encodes the specified MMSThumbnailMetadata message. Does not implicitly {@link waproto.Message.MMSThumbnailMetadata.verify|verify} messages.
71077
+ * @function encode
71078
+ * @memberof waproto.Message.MMSThumbnailMetadata
71079
+ * @static
71080
+ * @param {waproto.Message.IMMSThumbnailMetadata} message MMSThumbnailMetadata message or plain object to encode
71081
+ * @param {$protobuf.Writer} [writer] Writer to encode to
71082
+ * @returns {$protobuf.Writer} Writer
71083
+ */
71084
+ MMSThumbnailMetadata.encode = function encode(message, writer) {
71085
+ if (!writer)
71086
+ writer = $Writer.create();
71087
+ if (message.thumbnailDirectPath != null && Object.hasOwnProperty.call(message, "thumbnailDirectPath"))
71088
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.thumbnailDirectPath);
71089
+ if (message.thumbnailSha256 != null && Object.hasOwnProperty.call(message, "thumbnailSha256"))
71090
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.thumbnailSha256);
71091
+ if (message.thumbnailEncSha256 != null && Object.hasOwnProperty.call(message, "thumbnailEncSha256"))
71092
+ writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.thumbnailEncSha256);
71093
+ if (message.mediaKey != null && Object.hasOwnProperty.call(message, "mediaKey"))
71094
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.mediaKey);
71095
+ if (message.mediaKeyTimestamp != null && Object.hasOwnProperty.call(message, "mediaKeyTimestamp"))
71096
+ writer.uint32(/* id 5, wireType 0 =*/40).int64(message.mediaKeyTimestamp);
71097
+ if (message.thumbnailHeight != null && Object.hasOwnProperty.call(message, "thumbnailHeight"))
71098
+ writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.thumbnailHeight);
71099
+ if (message.thumbnailWidth != null && Object.hasOwnProperty.call(message, "thumbnailWidth"))
71100
+ writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.thumbnailWidth);
71101
+ return writer;
71102
+ };
71103
+
71104
+ /**
71105
+ * Encodes the specified MMSThumbnailMetadata message, length delimited. Does not implicitly {@link waproto.Message.MMSThumbnailMetadata.verify|verify} messages.
71106
+ * @function encodeDelimited
71107
+ * @memberof waproto.Message.MMSThumbnailMetadata
71108
+ * @static
71109
+ * @param {waproto.Message.IMMSThumbnailMetadata} message MMSThumbnailMetadata message or plain object to encode
71110
+ * @param {$protobuf.Writer} [writer] Writer to encode to
71111
+ * @returns {$protobuf.Writer} Writer
71112
+ */
71113
+ MMSThumbnailMetadata.encodeDelimited = function encodeDelimited(message, writer) {
71114
+ return this.encode(message, writer).ldelim();
71115
+ };
71116
+
71117
+ /**
71118
+ * Decodes a MMSThumbnailMetadata message from the specified reader or buffer.
71119
+ * @function decode
71120
+ * @memberof waproto.Message.MMSThumbnailMetadata
71121
+ * @static
71122
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71123
+ * @param {number} [length] Message length if known beforehand
71124
+ * @returns {waproto.Message.MMSThumbnailMetadata} MMSThumbnailMetadata
71125
+ * @throws {Error} If the payload is not a reader or valid buffer
71126
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
71127
+ */
71128
+ MMSThumbnailMetadata.decode = function decode(reader, length) {
71129
+ if (!(reader instanceof $Reader))
71130
+ reader = $Reader.create(reader);
71131
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.MMSThumbnailMetadata();
71132
+ while (reader.pos < end) {
71133
+ var tag = reader.uint32();
71134
+ switch (tag >>> 3) {
71135
+ case 1: {
71136
+ message.thumbnailDirectPath = reader.string();
71137
+ break;
71138
+ }
71139
+ case 2: {
71140
+ message.thumbnailSha256 = reader.bytes();
71141
+ break;
71142
+ }
71143
+ case 3: {
71144
+ message.thumbnailEncSha256 = reader.bytes();
71145
+ break;
71146
+ }
71147
+ case 4: {
71148
+ message.mediaKey = reader.bytes();
71149
+ break;
71150
+ }
71151
+ case 5: {
71152
+ message.mediaKeyTimestamp = reader.int64();
71153
+ break;
71154
+ }
71155
+ case 6: {
71156
+ message.thumbnailHeight = reader.uint32();
71157
+ break;
71158
+ }
71159
+ case 7: {
71160
+ message.thumbnailWidth = reader.uint32();
71161
+ break;
71162
+ }
71163
+ default:
71164
+ reader.skipType(tag & 7);
71165
+ break;
71166
+ }
71167
+ }
71168
+ return message;
71169
+ };
71170
+
71171
+ /**
71172
+ * Decodes a MMSThumbnailMetadata message from the specified reader or buffer, length delimited.
71173
+ * @function decodeDelimited
71174
+ * @memberof waproto.Message.MMSThumbnailMetadata
71175
+ * @static
71176
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71177
+ * @returns {waproto.Message.MMSThumbnailMetadata} MMSThumbnailMetadata
71178
+ * @throws {Error} If the payload is not a reader or valid buffer
71179
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
71180
+ */
71181
+ MMSThumbnailMetadata.decodeDelimited = function decodeDelimited(reader) {
71182
+ if (!(reader instanceof $Reader))
71183
+ reader = new $Reader(reader);
71184
+ return this.decode(reader, reader.uint32());
71185
+ };
71186
+
71187
+ /**
71188
+ * Verifies a MMSThumbnailMetadata message.
71189
+ * @function verify
71190
+ * @memberof waproto.Message.MMSThumbnailMetadata
71191
+ * @static
71192
+ * @param {Object.<string,*>} message Plain object to verify
71193
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
71194
+ */
71195
+ MMSThumbnailMetadata.verify = function verify(message) {
71196
+ if (typeof message !== "object" || message === null)
71197
+ return "object expected";
71198
+ var properties = {};
71199
+ if (message.thumbnailDirectPath != null && message.hasOwnProperty("thumbnailDirectPath")) {
71200
+ properties._thumbnailDirectPath = 1;
71201
+ if (!$util.isString(message.thumbnailDirectPath))
71202
+ return "thumbnailDirectPath: string expected";
71203
+ }
71204
+ if (message.thumbnailSha256 != null && message.hasOwnProperty("thumbnailSha256")) {
71205
+ properties._thumbnailSha256 = 1;
71206
+ if (!(message.thumbnailSha256 && typeof message.thumbnailSha256.length === "number" || $util.isString(message.thumbnailSha256)))
71207
+ return "thumbnailSha256: buffer expected";
71208
+ }
71209
+ if (message.thumbnailEncSha256 != null && message.hasOwnProperty("thumbnailEncSha256")) {
71210
+ properties._thumbnailEncSha256 = 1;
71211
+ if (!(message.thumbnailEncSha256 && typeof message.thumbnailEncSha256.length === "number" || $util.isString(message.thumbnailEncSha256)))
71212
+ return "thumbnailEncSha256: buffer expected";
71213
+ }
71214
+ if (message.mediaKey != null && message.hasOwnProperty("mediaKey")) {
71215
+ properties._mediaKey = 1;
71216
+ if (!(message.mediaKey && typeof message.mediaKey.length === "number" || $util.isString(message.mediaKey)))
71217
+ return "mediaKey: buffer expected";
71218
+ }
71219
+ if (message.mediaKeyTimestamp != null && message.hasOwnProperty("mediaKeyTimestamp")) {
71220
+ properties._mediaKeyTimestamp = 1;
71221
+ if (!$util.isInteger(message.mediaKeyTimestamp) && !(message.mediaKeyTimestamp && $util.isInteger(message.mediaKeyTimestamp.low) && $util.isInteger(message.mediaKeyTimestamp.high)))
71222
+ return "mediaKeyTimestamp: integer|Long expected";
71223
+ }
71224
+ if (message.thumbnailHeight != null && message.hasOwnProperty("thumbnailHeight")) {
71225
+ properties._thumbnailHeight = 1;
71226
+ if (!$util.isInteger(message.thumbnailHeight))
71227
+ return "thumbnailHeight: integer expected";
71228
+ }
71229
+ if (message.thumbnailWidth != null && message.hasOwnProperty("thumbnailWidth")) {
71230
+ properties._thumbnailWidth = 1;
71231
+ if (!$util.isInteger(message.thumbnailWidth))
71232
+ return "thumbnailWidth: integer expected";
71233
+ }
71234
+ return null;
71235
+ };
71236
+
71237
+ /**
71238
+ * Creates a MMSThumbnailMetadata message from a plain object. Also converts values to their respective internal types.
71239
+ * @function fromObject
71240
+ * @memberof waproto.Message.MMSThumbnailMetadata
71241
+ * @static
71242
+ * @param {Object.<string,*>} object Plain object
71243
+ * @returns {waproto.Message.MMSThumbnailMetadata} MMSThumbnailMetadata
71244
+ */
71245
+ MMSThumbnailMetadata.fromObject = function fromObject(object) {
71246
+ if (object instanceof $root.waproto.Message.MMSThumbnailMetadata)
71247
+ return object;
71248
+ var message = new $root.waproto.Message.MMSThumbnailMetadata();
71249
+ if (object.thumbnailDirectPath != null)
71250
+ message.thumbnailDirectPath = String(object.thumbnailDirectPath);
71251
+ if (object.thumbnailSha256 != null)
71252
+ if (typeof object.thumbnailSha256 === "string")
71253
+ $util.base64.decode(object.thumbnailSha256, message.thumbnailSha256 = $util.newBuffer($util.base64.length(object.thumbnailSha256)), 0);
71254
+ else if (object.thumbnailSha256.length >= 0)
71255
+ message.thumbnailSha256 = object.thumbnailSha256;
71256
+ if (object.thumbnailEncSha256 != null)
71257
+ if (typeof object.thumbnailEncSha256 === "string")
71258
+ $util.base64.decode(object.thumbnailEncSha256, message.thumbnailEncSha256 = $util.newBuffer($util.base64.length(object.thumbnailEncSha256)), 0);
71259
+ else if (object.thumbnailEncSha256.length >= 0)
71260
+ message.thumbnailEncSha256 = object.thumbnailEncSha256;
71261
+ if (object.mediaKey != null)
71262
+ if (typeof object.mediaKey === "string")
71263
+ $util.base64.decode(object.mediaKey, message.mediaKey = $util.newBuffer($util.base64.length(object.mediaKey)), 0);
71264
+ else if (object.mediaKey.length >= 0)
71265
+ message.mediaKey = object.mediaKey;
71266
+ if (object.mediaKeyTimestamp != null)
71267
+ if ($util.Long)
71268
+ (message.mediaKeyTimestamp = $util.Long.fromValue(object.mediaKeyTimestamp)).unsigned = false;
71269
+ else if (typeof object.mediaKeyTimestamp === "string")
71270
+ message.mediaKeyTimestamp = parseInt(object.mediaKeyTimestamp, 10);
71271
+ else if (typeof object.mediaKeyTimestamp === "number")
71272
+ message.mediaKeyTimestamp = object.mediaKeyTimestamp;
71273
+ else if (typeof object.mediaKeyTimestamp === "object")
71274
+ message.mediaKeyTimestamp = new $util.LongBits(object.mediaKeyTimestamp.low >>> 0, object.mediaKeyTimestamp.high >>> 0).toNumber();
71275
+ if (object.thumbnailHeight != null)
71276
+ message.thumbnailHeight = object.thumbnailHeight >>> 0;
71277
+ if (object.thumbnailWidth != null)
71278
+ message.thumbnailWidth = object.thumbnailWidth >>> 0;
71279
+ return message;
71280
+ };
71281
+
71282
+ /**
71283
+ * Creates a plain object from a MMSThumbnailMetadata message. Also converts values to other types if specified.
71284
+ * @function toObject
71285
+ * @memberof waproto.Message.MMSThumbnailMetadata
71286
+ * @static
71287
+ * @param {waproto.Message.MMSThumbnailMetadata} message MMSThumbnailMetadata
71288
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
71289
+ * @returns {Object.<string,*>} Plain object
71290
+ */
71291
+ MMSThumbnailMetadata.toObject = function toObject(message, options) {
71292
+ if (!options)
71293
+ options = {};
71294
+ var object = {};
71295
+ if (message.thumbnailDirectPath != null && message.hasOwnProperty("thumbnailDirectPath")) {
71296
+ object.thumbnailDirectPath = message.thumbnailDirectPath;
71297
+ if (options.oneofs)
71298
+ object._thumbnailDirectPath = "thumbnailDirectPath";
71299
+ }
71300
+ if (message.thumbnailSha256 != null && message.hasOwnProperty("thumbnailSha256")) {
71301
+ object.thumbnailSha256 = options.bytes === String ? $util.base64.encode(message.thumbnailSha256, 0, message.thumbnailSha256.length) : options.bytes === Array ? Array.prototype.slice.call(message.thumbnailSha256) : message.thumbnailSha256;
71302
+ if (options.oneofs)
71303
+ object._thumbnailSha256 = "thumbnailSha256";
71304
+ }
71305
+ if (message.thumbnailEncSha256 != null && message.hasOwnProperty("thumbnailEncSha256")) {
71306
+ object.thumbnailEncSha256 = options.bytes === String ? $util.base64.encode(message.thumbnailEncSha256, 0, message.thumbnailEncSha256.length) : options.bytes === Array ? Array.prototype.slice.call(message.thumbnailEncSha256) : message.thumbnailEncSha256;
71307
+ if (options.oneofs)
71308
+ object._thumbnailEncSha256 = "thumbnailEncSha256";
71309
+ }
71310
+ if (message.mediaKey != null && message.hasOwnProperty("mediaKey")) {
71311
+ object.mediaKey = options.bytes === String ? $util.base64.encode(message.mediaKey, 0, message.mediaKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.mediaKey) : message.mediaKey;
71312
+ if (options.oneofs)
71313
+ object._mediaKey = "mediaKey";
71314
+ }
71315
+ if (message.mediaKeyTimestamp != null && message.hasOwnProperty("mediaKeyTimestamp")) {
71316
+ if (typeof message.mediaKeyTimestamp === "number")
71317
+ object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
71318
+ else
71319
+ object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
71320
+ if (options.oneofs)
71321
+ object._mediaKeyTimestamp = "mediaKeyTimestamp";
71322
+ }
71323
+ if (message.thumbnailHeight != null && message.hasOwnProperty("thumbnailHeight")) {
71324
+ object.thumbnailHeight = message.thumbnailHeight;
71325
+ if (options.oneofs)
71326
+ object._thumbnailHeight = "thumbnailHeight";
71327
+ }
71328
+ if (message.thumbnailWidth != null && message.hasOwnProperty("thumbnailWidth")) {
71329
+ object.thumbnailWidth = message.thumbnailWidth;
71330
+ if (options.oneofs)
71331
+ object._thumbnailWidth = "thumbnailWidth";
71332
+ }
71333
+ return object;
71334
+ };
71335
+
71336
+ /**
71337
+ * Converts this MMSThumbnailMetadata to JSON.
71338
+ * @function toJSON
71339
+ * @memberof waproto.Message.MMSThumbnailMetadata
71340
+ * @instance
71341
+ * @returns {Object.<string,*>} JSON object
71342
+ */
71343
+ MMSThumbnailMetadata.prototype.toJSON = function toJSON() {
71344
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
71345
+ };
71346
+
71347
+ /**
71348
+ * Gets the default type url for MMSThumbnailMetadata
71349
+ * @function getTypeUrl
71350
+ * @memberof waproto.Message.MMSThumbnailMetadata
71351
+ * @static
71352
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
71353
+ * @returns {string} The default type url
71354
+ */
71355
+ MMSThumbnailMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
71356
+ if (typeUrlPrefix === undefined) {
71357
+ typeUrlPrefix = "type.googleapis.com";
71358
+ }
71359
+ return typeUrlPrefix + "/waproto.Message.MMSThumbnailMetadata";
71360
+ };
71361
+
71362
+ return MMSThumbnailMetadata;
71363
+ })();
71364
+
70248
71365
  Message.MessageHistoryBundle = (function() {
70249
71366
 
70250
71367
  /**
@@ -77311,7 +78428,7 @@ $root.waproto = (function() {
77311
78428
  * @property {Array.<waproto.Message.PollCreationMessage.IOption>|null} [options] PollCreationMessage options
77312
78429
  * @property {number|null} [selectableOptionsCount] PollCreationMessage selectableOptionsCount
77313
78430
  * @property {waproto.IContextInfo|null} [contextInfo] PollCreationMessage contextInfo
77314
- * @property {waproto.Message.PollType|null} [pollType] PollCreationMessage pollType
78431
+ * @property {waproto.Message.PollMediaType|null} [pollMediaType] PollCreationMessage pollMediaType
77315
78432
  */
77316
78433
 
77317
78434
  /**
@@ -77371,12 +78488,12 @@ $root.waproto = (function() {
77371
78488
  PollCreationMessage.prototype.contextInfo = null;
77372
78489
 
77373
78490
  /**
77374
- * PollCreationMessage pollType.
77375
- * @member {waproto.Message.PollType|null|undefined} pollType
78491
+ * PollCreationMessage pollMediaType.
78492
+ * @member {waproto.Message.PollMediaType|null|undefined} pollMediaType
77376
78493
  * @memberof waproto.Message.PollCreationMessage
77377
78494
  * @instance
77378
78495
  */
77379
- PollCreationMessage.prototype.pollType = null;
78496
+ PollCreationMessage.prototype.pollMediaType = null;
77380
78497
 
77381
78498
  // OneOf field names bound to virtual getters and setters
77382
78499
  var $oneOfFields;
@@ -77406,8 +78523,8 @@ $root.waproto = (function() {
77406
78523
  });
77407
78524
 
77408
78525
  // Virtual OneOf for proto3 optional field
77409
- Object.defineProperty(PollCreationMessage.prototype, "_pollType", {
77410
- get: $util.oneOfGetter($oneOfFields = ["pollType"]),
78526
+ Object.defineProperty(PollCreationMessage.prototype, "_pollMediaType", {
78527
+ get: $util.oneOfGetter($oneOfFields = ["pollMediaType"]),
77411
78528
  set: $util.oneOfSetter($oneOfFields)
77412
78529
  });
77413
78530
 
@@ -77446,8 +78563,8 @@ $root.waproto = (function() {
77446
78563
  writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.selectableOptionsCount);
77447
78564
  if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
77448
78565
  $root.waproto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
77449
- if (message.pollType != null && Object.hasOwnProperty.call(message, "pollType"))
77450
- writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pollType);
78566
+ if (message.pollMediaType != null && Object.hasOwnProperty.call(message, "pollMediaType"))
78567
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pollMediaType);
77451
78568
  return writer;
77452
78569
  };
77453
78570
 
@@ -77505,7 +78622,7 @@ $root.waproto = (function() {
77505
78622
  break;
77506
78623
  }
77507
78624
  case 6: {
77508
- message.pollType = reader.int32();
78625
+ message.pollMediaType = reader.int32();
77509
78626
  break;
77510
78627
  }
77511
78628
  default:
@@ -77576,11 +78693,11 @@ $root.waproto = (function() {
77576
78693
  return "contextInfo." + error;
77577
78694
  }
77578
78695
  }
77579
- if (message.pollType != null && message.hasOwnProperty("pollType")) {
77580
- properties._pollType = 1;
77581
- switch (message.pollType) {
78696
+ if (message.pollMediaType != null && message.hasOwnProperty("pollMediaType")) {
78697
+ properties._pollMediaType = 1;
78698
+ switch (message.pollMediaType) {
77582
78699
  default:
77583
- return "pollType: enum value expected";
78700
+ return "pollMediaType: enum value expected";
77584
78701
  case 1:
77585
78702
  case 2:
77586
78703
  break;
@@ -77625,20 +78742,20 @@ $root.waproto = (function() {
77625
78742
  throw TypeError(".waproto.Message.PollCreationMessage.contextInfo: object expected");
77626
78743
  message.contextInfo = $root.waproto.ContextInfo.fromObject(object.contextInfo);
77627
78744
  }
77628
- switch (object.pollType) {
78745
+ switch (object.pollMediaType) {
77629
78746
  default:
77630
- if (typeof object.pollType === "number") {
77631
- message.pollType = object.pollType;
78747
+ if (typeof object.pollMediaType === "number") {
78748
+ message.pollMediaType = object.pollMediaType;
77632
78749
  break;
77633
78750
  }
77634
78751
  break;
77635
78752
  case "TEXT":
77636
78753
  case 1:
77637
- message.pollType = 1;
78754
+ message.pollMediaType = 1;
77638
78755
  break;
77639
78756
  case "IMAGE":
77640
78757
  case 2:
77641
- message.pollType = 2;
78758
+ message.pollMediaType = 2;
77642
78759
  break;
77643
78760
  }
77644
78761
  return message;
@@ -77684,10 +78801,10 @@ $root.waproto = (function() {
77684
78801
  if (options.oneofs)
77685
78802
  object._contextInfo = "contextInfo";
77686
78803
  }
77687
- if (message.pollType != null && message.hasOwnProperty("pollType")) {
77688
- object.pollType = options.enums === String ? $root.waproto.Message.PollType[message.pollType] === undefined ? message.pollType : $root.waproto.Message.PollType[message.pollType] : message.pollType;
78804
+ if (message.pollMediaType != null && message.hasOwnProperty("pollMediaType")) {
78805
+ object.pollMediaType = options.enums === String ? $root.waproto.Message.PollMediaType[message.pollMediaType] === undefined ? message.pollMediaType : $root.waproto.Message.PollMediaType[message.pollMediaType] : message.pollMediaType;
77689
78806
  if (options.oneofs)
77690
- object._pollType = "pollType";
78807
+ object._pollMediaType = "pollMediaType";
77691
78808
  }
77692
78809
  return object;
77693
78810
  };
@@ -78225,6 +79342,20 @@ $root.waproto = (function() {
78225
79342
  return PollEncValue;
78226
79343
  })();
78227
79344
 
79345
+ /**
79346
+ * PollMediaType enum.
79347
+ * @name waproto.Message.PollMediaType
79348
+ * @enum {number}
79349
+ * @property {number} TEXT=1 TEXT value
79350
+ * @property {number} IMAGE=2 IMAGE value
79351
+ */
79352
+ Message.PollMediaType = (function() {
79353
+ var valuesById = {}, values = Object.create(valuesById);
79354
+ values[valuesById[1] = "TEXT"] = 1;
79355
+ values[valuesById[2] = "IMAGE"] = 2;
79356
+ return values;
79357
+ })();
79358
+
78228
79359
  Message.PollResultSnapshotMessage = (function() {
78229
79360
 
78230
79361
  /**
@@ -78784,20 +79915,6 @@ $root.waproto = (function() {
78784
79915
  return PollResultSnapshotMessage;
78785
79916
  })();
78786
79917
 
78787
- /**
78788
- * PollType enum.
78789
- * @name waproto.Message.PollType
78790
- * @enum {number}
78791
- * @property {number} TEXT=1 TEXT value
78792
- * @property {number} IMAGE=2 IMAGE value
78793
- */
78794
- Message.PollType = (function() {
78795
- var valuesById = {}, values = Object.create(valuesById);
78796
- values[valuesById[1] = "TEXT"] = 1;
78797
- values[valuesById[2] = "IMAGE"] = 2;
78798
- return values;
78799
- })();
78800
-
78801
79918
  Message.PollUpdateMessage = (function() {
78802
79919
 
78803
79920
  /**
@@ -80239,6 +81356,7 @@ $root.waproto = (function() {
80239
81356
  * @property {number|null} [productImageCount] ProductSnapshot productImageCount
80240
81357
  * @property {string|null} [firstImageId] ProductSnapshot firstImageId
80241
81358
  * @property {number|Long|null} [salePriceAmount1000] ProductSnapshot salePriceAmount1000
81359
+ * @property {string|null} [signedUrl] ProductSnapshot signedUrl
80242
81360
  */
80243
81361
 
80244
81362
  /**
@@ -80344,6 +81462,14 @@ $root.waproto = (function() {
80344
81462
  */
80345
81463
  ProductSnapshot.prototype.salePriceAmount1000 = null;
80346
81464
 
81465
+ /**
81466
+ * ProductSnapshot signedUrl.
81467
+ * @member {string|null|undefined} signedUrl
81468
+ * @memberof waproto.Message.ProductMessage.ProductSnapshot
81469
+ * @instance
81470
+ */
81471
+ ProductSnapshot.prototype.signedUrl = null;
81472
+
80347
81473
  // OneOf field names bound to virtual getters and setters
80348
81474
  var $oneOfFields;
80349
81475
 
@@ -80413,6 +81539,12 @@ $root.waproto = (function() {
80413
81539
  set: $util.oneOfSetter($oneOfFields)
80414
81540
  });
80415
81541
 
81542
+ // Virtual OneOf for proto3 optional field
81543
+ Object.defineProperty(ProductSnapshot.prototype, "_signedUrl", {
81544
+ get: $util.oneOfGetter($oneOfFields = ["signedUrl"]),
81545
+ set: $util.oneOfSetter($oneOfFields)
81546
+ });
81547
+
80416
81548
  /**
80417
81549
  * Creates a new ProductSnapshot instance using the specified properties.
80418
81550
  * @function create
@@ -80459,6 +81591,8 @@ $root.waproto = (function() {
80459
81591
  writer.uint32(/* id 11, wireType 2 =*/90).string(message.firstImageId);
80460
81592
  if (message.salePriceAmount1000 != null && Object.hasOwnProperty.call(message, "salePriceAmount1000"))
80461
81593
  writer.uint32(/* id 12, wireType 0 =*/96).int64(message.salePriceAmount1000);
81594
+ if (message.signedUrl != null && Object.hasOwnProperty.call(message, "signedUrl"))
81595
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.signedUrl);
80462
81596
  return writer;
80463
81597
  };
80464
81598
 
@@ -80537,6 +81671,10 @@ $root.waproto = (function() {
80537
81671
  message.salePriceAmount1000 = reader.int64();
80538
81672
  break;
80539
81673
  }
81674
+ case 13: {
81675
+ message.signedUrl = reader.string();
81676
+ break;
81677
+ }
80540
81678
  default:
80541
81679
  reader.skipType(tag & 7);
80542
81680
  break;
@@ -80631,6 +81769,11 @@ $root.waproto = (function() {
80631
81769
  if (!$util.isInteger(message.salePriceAmount1000) && !(message.salePriceAmount1000 && $util.isInteger(message.salePriceAmount1000.low) && $util.isInteger(message.salePriceAmount1000.high)))
80632
81770
  return "salePriceAmount1000: integer|Long expected";
80633
81771
  }
81772
+ if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) {
81773
+ properties._signedUrl = 1;
81774
+ if (!$util.isString(message.signedUrl))
81775
+ return "signedUrl: string expected";
81776
+ }
80634
81777
  return null;
80635
81778
  };
80636
81779
 
@@ -80685,6 +81828,8 @@ $root.waproto = (function() {
80685
81828
  message.salePriceAmount1000 = object.salePriceAmount1000;
80686
81829
  else if (typeof object.salePriceAmount1000 === "object")
80687
81830
  message.salePriceAmount1000 = new $util.LongBits(object.salePriceAmount1000.low >>> 0, object.salePriceAmount1000.high >>> 0).toNumber();
81831
+ if (object.signedUrl != null)
81832
+ message.signedUrl = String(object.signedUrl);
80688
81833
  return message;
80689
81834
  };
80690
81835
 
@@ -80762,6 +81907,11 @@ $root.waproto = (function() {
80762
81907
  if (options.oneofs)
80763
81908
  object._salePriceAmount1000 = "salePriceAmount1000";
80764
81909
  }
81910
+ if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) {
81911
+ object.signedUrl = message.signedUrl;
81912
+ if (options.oneofs)
81913
+ object._signedUrl = "signedUrl";
81914
+ }
80765
81915
  return object;
80766
81916
  };
80767
81917
 
@@ -139210,6 +140360,7 @@ $root.waproto = (function() {
139210
140360
  case 208:
139211
140361
  case 209:
139212
140362
  case 210:
140363
+ case 211:
139213
140364
  break;
139214
140365
  }
139215
140366
  }
@@ -140461,6 +141612,10 @@ $root.waproto = (function() {
140461
141612
  case 210:
140462
141613
  message.messageStubType = 210;
140463
141614
  break;
141615
+ case "USER_CONTROLS_SYSTEM_MESSAGE":
141616
+ case 211:
141617
+ message.messageStubType = 211;
141618
+ break;
140464
141619
  }
140465
141620
  if (object.clearMedia != null)
140466
141621
  message.clearMedia = Boolean(object.clearMedia);
@@ -141321,6 +142476,7 @@ $root.waproto = (function() {
141321
142476
  * @property {number} COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN=208 COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN value
141322
142477
  * @property {number} CAPI_GROUP_NE2EE_SYSTEM_MESSAGE=209 CAPI_GROUP_NE2EE_SYSTEM_MESSAGE value
141323
142478
  * @property {number} STATUS_MENTION=210 STATUS_MENTION value
142479
+ * @property {number} USER_CONTROLS_SYSTEM_MESSAGE=211 USER_CONTROLS_SYSTEM_MESSAGE value
141324
142480
  */
141325
142481
  WebMessageInfo.StubType = (function() {
141326
142482
  var valuesById = {}, values = Object.create(valuesById);
@@ -141535,6 +142691,7 @@ $root.waproto = (function() {
141535
142691
  values[valuesById[208] = "COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN"] = 208;
141536
142692
  values[valuesById[209] = "CAPI_GROUP_NE2EE_SYSTEM_MESSAGE"] = 209;
141537
142693
  values[valuesById[210] = "STATUS_MENTION"] = 210;
142694
+ values[valuesById[211] = "USER_CONTROLS_SYSTEM_MESSAGE"] = 211;
141538
142695
  return values;
141539
142696
  })();
141540
142697