@wppconnect/wa-proto 2.3000.1045017392 → 2.3000.1045028006
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WAProto.proto +6 -1
- package/dist/index.d.ts +123 -0
- package/dist/index.js +306 -0
- package/package.json +1 -1
package/WAProto.proto
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package waproto;
|
|
3
3
|
|
|
4
|
-
/// WhatsApp Version: 2.3000.
|
|
4
|
+
/// WhatsApp Version: 2.3000.1045028006
|
|
5
5
|
|
|
6
6
|
message ADVDeviceIdentity {
|
|
7
7
|
optional uint32 rawId = 1;
|
|
@@ -2212,6 +2212,7 @@ message DeviceCapabilities {
|
|
|
2212
2212
|
optional AiThread aiThread = 6;
|
|
2213
2213
|
optional AiFbidMigration aiFbidMigration = 7;
|
|
2214
2214
|
optional BizAiSettingsSync bizAiSettingsSync = 8;
|
|
2215
|
+
optional ContactRefresh contactRefresh = 9;
|
|
2215
2216
|
message AiFbidMigration {
|
|
2216
2217
|
optional uint64 chatDbMigrationTimestamp = 1;
|
|
2217
2218
|
}
|
|
@@ -2242,6 +2243,10 @@ message DeviceCapabilities {
|
|
|
2242
2243
|
MINIMAL = 1;
|
|
2243
2244
|
FULL = 2;
|
|
2244
2245
|
}
|
|
2246
|
+
message ContactRefresh {
|
|
2247
|
+
optional bool refreshSupported = 1;
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2245
2250
|
message LIDMigration {
|
|
2246
2251
|
optional uint64 chatDbMigrationTimestamp = 1;
|
|
2247
2252
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -30738,6 +30738,9 @@ export namespace waproto {
|
|
|
30738
30738
|
/** DeviceCapabilities bizAiSettingsSync. */
|
|
30739
30739
|
bizAiSettingsSync?: (waproto.DeviceCapabilities.BizAiSettingsSync.$Properties|null);
|
|
30740
30740
|
|
|
30741
|
+
/** DeviceCapabilities contactRefresh. */
|
|
30742
|
+
contactRefresh?: (waproto.DeviceCapabilities.ContactRefresh.$Properties|null);
|
|
30743
|
+
|
|
30741
30744
|
/**
|
|
30742
30745
|
* Creates a new DeviceCapabilities instance using the specified properties.
|
|
30743
30746
|
* @param [properties] Properties to set
|
|
@@ -30846,6 +30849,9 @@ export namespace waproto {
|
|
|
30846
30849
|
/** DeviceCapabilities bizAiSettingsSync */
|
|
30847
30850
|
bizAiSettingsSync?: (waproto.DeviceCapabilities.BizAiSettingsSync.$Properties|null);
|
|
30848
30851
|
|
|
30852
|
+
/** DeviceCapabilities contactRefresh */
|
|
30853
|
+
contactRefresh?: (waproto.DeviceCapabilities.ContactRefresh.$Properties|null);
|
|
30854
|
+
|
|
30849
30855
|
/** Unknown fields preserved while decoding when enabled */
|
|
30850
30856
|
$unknowns?: Uint8Array[];
|
|
30851
30857
|
}
|
|
@@ -31371,6 +31377,123 @@ export namespace waproto {
|
|
|
31371
31377
|
FULL = 2
|
|
31372
31378
|
}
|
|
31373
31379
|
|
|
31380
|
+
/**
|
|
31381
|
+
* Properties of a ContactRefresh.
|
|
31382
|
+
* @deprecated Use waproto.DeviceCapabilities.ContactRefresh.$Properties instead.
|
|
31383
|
+
*/
|
|
31384
|
+
interface IContactRefresh extends waproto.DeviceCapabilities.ContactRefresh.$Properties {
|
|
31385
|
+
}
|
|
31386
|
+
|
|
31387
|
+
/** Represents a ContactRefresh. */
|
|
31388
|
+
class ContactRefresh {
|
|
31389
|
+
|
|
31390
|
+
/**
|
|
31391
|
+
* Constructs a new ContactRefresh.
|
|
31392
|
+
* @param [properties] Properties to set
|
|
31393
|
+
*/
|
|
31394
|
+
constructor(properties?: waproto.DeviceCapabilities.ContactRefresh.$Properties);
|
|
31395
|
+
|
|
31396
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
31397
|
+
$unknowns?: Uint8Array[];
|
|
31398
|
+
|
|
31399
|
+
/** ContactRefresh refreshSupported. */
|
|
31400
|
+
refreshSupported?: (boolean|null);
|
|
31401
|
+
|
|
31402
|
+
/**
|
|
31403
|
+
* Creates a new ContactRefresh instance using the specified properties.
|
|
31404
|
+
* @param [properties] Properties to set
|
|
31405
|
+
* @returns ContactRefresh instance
|
|
31406
|
+
*/
|
|
31407
|
+
static create(properties: waproto.DeviceCapabilities.ContactRefresh.$Shape): waproto.DeviceCapabilities.ContactRefresh & waproto.DeviceCapabilities.ContactRefresh.$Shape;
|
|
31408
|
+
static create(properties?: waproto.DeviceCapabilities.ContactRefresh.$Properties): waproto.DeviceCapabilities.ContactRefresh;
|
|
31409
|
+
|
|
31410
|
+
/**
|
|
31411
|
+
* Encodes the specified ContactRefresh message. Does not implicitly {@link waproto.DeviceCapabilities.ContactRefresh.verify|verify} messages.
|
|
31412
|
+
* @param message ContactRefresh message or plain object to encode
|
|
31413
|
+
* @param [writer] Writer to encode to
|
|
31414
|
+
* @returns Writer
|
|
31415
|
+
*/
|
|
31416
|
+
static encode(message: waproto.DeviceCapabilities.ContactRefresh.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31417
|
+
|
|
31418
|
+
/**
|
|
31419
|
+
* Encodes the specified ContactRefresh message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.ContactRefresh.verify|verify} messages.
|
|
31420
|
+
* @param message ContactRefresh message or plain object to encode
|
|
31421
|
+
* @param [writer] Writer to encode to
|
|
31422
|
+
* @returns Writer
|
|
31423
|
+
*/
|
|
31424
|
+
static encodeDelimited(message: waproto.DeviceCapabilities.ContactRefresh.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31425
|
+
|
|
31426
|
+
/**
|
|
31427
|
+
* Decodes a ContactRefresh message from the specified reader or buffer.
|
|
31428
|
+
* @param reader Reader or buffer to decode from
|
|
31429
|
+
* @param [length] Message length if known beforehand
|
|
31430
|
+
* @returns {waproto.DeviceCapabilities.ContactRefresh & waproto.DeviceCapabilities.ContactRefresh.$Shape} ContactRefresh
|
|
31431
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31432
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31433
|
+
*/
|
|
31434
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.DeviceCapabilities.ContactRefresh & waproto.DeviceCapabilities.ContactRefresh.$Shape;
|
|
31435
|
+
|
|
31436
|
+
/**
|
|
31437
|
+
* Decodes a ContactRefresh message from the specified reader or buffer, length delimited.
|
|
31438
|
+
* @param reader Reader or buffer to decode from
|
|
31439
|
+
* @returns {waproto.DeviceCapabilities.ContactRefresh & waproto.DeviceCapabilities.ContactRefresh.$Shape} ContactRefresh
|
|
31440
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31441
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31442
|
+
*/
|
|
31443
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.DeviceCapabilities.ContactRefresh & waproto.DeviceCapabilities.ContactRefresh.$Shape;
|
|
31444
|
+
|
|
31445
|
+
/**
|
|
31446
|
+
* Verifies a ContactRefresh message.
|
|
31447
|
+
* @param message Plain object to verify
|
|
31448
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
31449
|
+
*/
|
|
31450
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
31451
|
+
|
|
31452
|
+
/**
|
|
31453
|
+
* Creates a ContactRefresh message from a plain object. Also converts values to their respective internal types.
|
|
31454
|
+
* @param object Plain object
|
|
31455
|
+
* @returns ContactRefresh
|
|
31456
|
+
*/
|
|
31457
|
+
static fromObject(object: { [k: string]: any }): waproto.DeviceCapabilities.ContactRefresh;
|
|
31458
|
+
|
|
31459
|
+
/**
|
|
31460
|
+
* Creates a plain object from a ContactRefresh message. Also converts values to other types if specified.
|
|
31461
|
+
* @param message ContactRefresh
|
|
31462
|
+
* @param [options] Conversion options
|
|
31463
|
+
* @returns Plain object
|
|
31464
|
+
*/
|
|
31465
|
+
static toObject(message: waproto.DeviceCapabilities.ContactRefresh, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
31466
|
+
|
|
31467
|
+
/**
|
|
31468
|
+
* Converts this ContactRefresh to JSON.
|
|
31469
|
+
* @returns JSON object
|
|
31470
|
+
*/
|
|
31471
|
+
toJSON(): { [k: string]: any };
|
|
31472
|
+
|
|
31473
|
+
/**
|
|
31474
|
+
* Gets the type url for ContactRefresh
|
|
31475
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
31476
|
+
* @returns The type url
|
|
31477
|
+
*/
|
|
31478
|
+
static getTypeUrl(prefix?: string): string;
|
|
31479
|
+
}
|
|
31480
|
+
|
|
31481
|
+
namespace ContactRefresh {
|
|
31482
|
+
|
|
31483
|
+
/** Properties of a ContactRefresh. */
|
|
31484
|
+
interface $Properties {
|
|
31485
|
+
|
|
31486
|
+
/** ContactRefresh refreshSupported */
|
|
31487
|
+
refreshSupported?: (boolean|null);
|
|
31488
|
+
|
|
31489
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
31490
|
+
$unknowns?: Uint8Array[];
|
|
31491
|
+
}
|
|
31492
|
+
|
|
31493
|
+
/** Shape of a ContactRefresh. */
|
|
31494
|
+
type $Shape = waproto.DeviceCapabilities.ContactRefresh.$Properties;
|
|
31495
|
+
}
|
|
31496
|
+
|
|
31374
31497
|
/**
|
|
31375
31498
|
* Properties of a LIDMigration.
|
|
31376
31499
|
* @deprecated Use waproto.DeviceCapabilities.LIDMigration.$Properties instead.
|
package/dist/index.js
CHANGED
|
@@ -85677,6 +85677,7 @@ $root.waproto = (function() {
|
|
|
85677
85677
|
* @property {waproto.DeviceCapabilities.AiThread.$Properties|null} [aiThread] DeviceCapabilities aiThread
|
|
85678
85678
|
* @property {waproto.DeviceCapabilities.AiFbidMigration.$Properties|null} [aiFbidMigration] DeviceCapabilities aiFbidMigration
|
|
85679
85679
|
* @property {waproto.DeviceCapabilities.BizAiSettingsSync.$Properties|null} [bizAiSettingsSync] DeviceCapabilities bizAiSettingsSync
|
|
85680
|
+
* @property {waproto.DeviceCapabilities.ContactRefresh.$Properties|null} [contactRefresh] DeviceCapabilities contactRefresh
|
|
85680
85681
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
85681
85682
|
*/
|
|
85682
85683
|
|
|
@@ -85772,6 +85773,14 @@ $root.waproto = (function() {
|
|
|
85772
85773
|
*/
|
|
85773
85774
|
DeviceCapabilities.prototype.bizAiSettingsSync = null;
|
|
85774
85775
|
|
|
85776
|
+
/**
|
|
85777
|
+
* DeviceCapabilities contactRefresh.
|
|
85778
|
+
* @member {waproto.DeviceCapabilities.ContactRefresh.$Properties|null|undefined} contactRefresh
|
|
85779
|
+
* @memberof waproto.DeviceCapabilities
|
|
85780
|
+
* @instance
|
|
85781
|
+
*/
|
|
85782
|
+
DeviceCapabilities.prototype.contactRefresh = null;
|
|
85783
|
+
|
|
85775
85784
|
// OneOf field names bound to virtual getters and setters
|
|
85776
85785
|
var $oneOfFields;
|
|
85777
85786
|
|
|
@@ -85823,6 +85832,12 @@ $root.waproto = (function() {
|
|
|
85823
85832
|
set: $util.oneOfSetter($oneOfFields)
|
|
85824
85833
|
});
|
|
85825
85834
|
|
|
85835
|
+
// Virtual OneOf for proto3 optional field
|
|
85836
|
+
$Object.defineProperty(DeviceCapabilities.prototype, "_contactRefresh", {
|
|
85837
|
+
get: $util.oneOfGetter($oneOfFields = ["contactRefresh"]),
|
|
85838
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85839
|
+
});
|
|
85840
|
+
|
|
85826
85841
|
/**
|
|
85827
85842
|
* Creates a new DeviceCapabilities instance using the specified properties.
|
|
85828
85843
|
* @function create
|
|
@@ -85871,6 +85886,8 @@ $root.waproto = (function() {
|
|
|
85871
85886
|
$root.waproto.DeviceCapabilities.AiFbidMigration.encode(message.aiFbidMigration, writer.uint32(/* id 7, wireType 2 =*/58).fork(), _depth + 1).ldelim();
|
|
85872
85887
|
if (message.bizAiSettingsSync != null && $Object.hasOwnProperty.call(message, "bizAiSettingsSync"))
|
|
85873
85888
|
$root.waproto.DeviceCapabilities.BizAiSettingsSync.encode(message.bizAiSettingsSync, writer.uint32(/* id 8, wireType 2 =*/66).fork(), _depth + 1).ldelim();
|
|
85889
|
+
if (message.contactRefresh != null && $Object.hasOwnProperty.call(message, "contactRefresh"))
|
|
85890
|
+
$root.waproto.DeviceCapabilities.ContactRefresh.encode(message.contactRefresh, writer.uint32(/* id 9, wireType 2 =*/74).fork(), _depth + 1).ldelim();
|
|
85874
85891
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
85875
85892
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
85876
85893
|
writer.raw(message.$unknowns[i]);
|
|
@@ -85974,6 +85991,13 @@ $root.waproto = (function() {
|
|
|
85974
85991
|
message._bizAiSettingsSync = "bizAiSettingsSync";
|
|
85975
85992
|
continue;
|
|
85976
85993
|
}
|
|
85994
|
+
case 9: {
|
|
85995
|
+
if (wireType !== 2)
|
|
85996
|
+
break;
|
|
85997
|
+
message.contactRefresh = $root.waproto.DeviceCapabilities.ContactRefresh.decode(reader, reader.uint32(), $undefined, _depth + 1, message.contactRefresh);
|
|
85998
|
+
message._contactRefresh = "contactRefresh";
|
|
85999
|
+
continue;
|
|
86000
|
+
}
|
|
85977
86001
|
}
|
|
85978
86002
|
reader.skipType(wireType, _depth, tag);
|
|
85979
86003
|
if (!reader.discardUnknown) {
|
|
@@ -86076,6 +86100,14 @@ $root.waproto = (function() {
|
|
|
86076
86100
|
return "bizAiSettingsSync." + error;
|
|
86077
86101
|
}
|
|
86078
86102
|
}
|
|
86103
|
+
if (message.contactRefresh != null && $Object.hasOwnProperty.call(message, "contactRefresh")) {
|
|
86104
|
+
properties._contactRefresh = 1;
|
|
86105
|
+
{
|
|
86106
|
+
var error = $root.waproto.DeviceCapabilities.ContactRefresh.verify(message.contactRefresh, _depth + 1);
|
|
86107
|
+
if (error)
|
|
86108
|
+
return "contactRefresh." + error;
|
|
86109
|
+
}
|
|
86110
|
+
}
|
|
86079
86111
|
return null;
|
|
86080
86112
|
};
|
|
86081
86113
|
|
|
@@ -86161,6 +86193,11 @@ $root.waproto = (function() {
|
|
|
86161
86193
|
throw $TypeError(".waproto.DeviceCapabilities.bizAiSettingsSync: object expected");
|
|
86162
86194
|
message.bizAiSettingsSync = $root.waproto.DeviceCapabilities.BizAiSettingsSync.fromObject(object.bizAiSettingsSync, _depth + 1);
|
|
86163
86195
|
}
|
|
86196
|
+
if (object.contactRefresh != null) {
|
|
86197
|
+
if (!$util.isObject(object.contactRefresh))
|
|
86198
|
+
throw $TypeError(".waproto.DeviceCapabilities.contactRefresh: object expected");
|
|
86199
|
+
message.contactRefresh = $root.waproto.DeviceCapabilities.ContactRefresh.fromObject(object.contactRefresh, _depth + 1);
|
|
86200
|
+
}
|
|
86164
86201
|
return message;
|
|
86165
86202
|
};
|
|
86166
86203
|
|
|
@@ -86197,6 +86234,8 @@ $root.waproto = (function() {
|
|
|
86197
86234
|
object.aiFbidMigration = $root.waproto.DeviceCapabilities.AiFbidMigration.toObject(message.aiFbidMigration, options, _depth + 1);
|
|
86198
86235
|
if (message.bizAiSettingsSync != null && $Object.hasOwnProperty.call(message, "bizAiSettingsSync"))
|
|
86199
86236
|
object.bizAiSettingsSync = $root.waproto.DeviceCapabilities.BizAiSettingsSync.toObject(message.bizAiSettingsSync, options, _depth + 1);
|
|
86237
|
+
if (message.contactRefresh != null && $Object.hasOwnProperty.call(message, "contactRefresh"))
|
|
86238
|
+
object.contactRefresh = $root.waproto.DeviceCapabilities.ContactRefresh.toObject(message.contactRefresh, options, _depth + 1);
|
|
86200
86239
|
return object;
|
|
86201
86240
|
};
|
|
86202
86241
|
|
|
@@ -87484,6 +87523,273 @@ $root.waproto = (function() {
|
|
|
87484
87523
|
return values;
|
|
87485
87524
|
})();
|
|
87486
87525
|
|
|
87526
|
+
DeviceCapabilities.ContactRefresh = (function() {
|
|
87527
|
+
|
|
87528
|
+
/**
|
|
87529
|
+
* Properties of a ContactRefresh.
|
|
87530
|
+
* @typedef {Object} waproto.DeviceCapabilities.ContactRefresh.$Properties
|
|
87531
|
+
* @property {boolean|null} [refreshSupported] ContactRefresh refreshSupported
|
|
87532
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
87533
|
+
*/
|
|
87534
|
+
|
|
87535
|
+
/**
|
|
87536
|
+
* Properties of a ContactRefresh.
|
|
87537
|
+
* @memberof waproto.DeviceCapabilities
|
|
87538
|
+
* @interface IContactRefresh
|
|
87539
|
+
* @augments waproto.DeviceCapabilities.ContactRefresh.$Properties
|
|
87540
|
+
* @deprecated Use waproto.DeviceCapabilities.ContactRefresh.$Properties instead.
|
|
87541
|
+
*/
|
|
87542
|
+
|
|
87543
|
+
/**
|
|
87544
|
+
* Shape of a ContactRefresh.
|
|
87545
|
+
* @typedef {waproto.DeviceCapabilities.ContactRefresh.$Properties} waproto.DeviceCapabilities.ContactRefresh.$Shape
|
|
87546
|
+
*/
|
|
87547
|
+
|
|
87548
|
+
/**
|
|
87549
|
+
* Constructs a new ContactRefresh.
|
|
87550
|
+
* @memberof waproto.DeviceCapabilities
|
|
87551
|
+
* @classdesc Represents a ContactRefresh.
|
|
87552
|
+
* @constructor
|
|
87553
|
+
* @param {waproto.DeviceCapabilities.ContactRefresh.$Properties=} [properties] Properties to set
|
|
87554
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
87555
|
+
*/
|
|
87556
|
+
var ContactRefresh = function (properties) {
|
|
87557
|
+
if (properties)
|
|
87558
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87559
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
87560
|
+
this[keys[i]] = properties[keys[i]];
|
|
87561
|
+
};
|
|
87562
|
+
|
|
87563
|
+
/**
|
|
87564
|
+
* ContactRefresh refreshSupported.
|
|
87565
|
+
* @member {boolean|null|undefined} refreshSupported
|
|
87566
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87567
|
+
* @instance
|
|
87568
|
+
*/
|
|
87569
|
+
ContactRefresh.prototype.refreshSupported = null;
|
|
87570
|
+
|
|
87571
|
+
// OneOf field names bound to virtual getters and setters
|
|
87572
|
+
var $oneOfFields;
|
|
87573
|
+
|
|
87574
|
+
// Virtual OneOf for proto3 optional field
|
|
87575
|
+
$Object.defineProperty(ContactRefresh.prototype, "_refreshSupported", {
|
|
87576
|
+
get: $util.oneOfGetter($oneOfFields = ["refreshSupported"]),
|
|
87577
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
87578
|
+
});
|
|
87579
|
+
|
|
87580
|
+
/**
|
|
87581
|
+
* Creates a new ContactRefresh instance using the specified properties.
|
|
87582
|
+
* @function create
|
|
87583
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87584
|
+
* @static
|
|
87585
|
+
* @param {waproto.DeviceCapabilities.ContactRefresh.$Properties=} [properties] Properties to set
|
|
87586
|
+
* @returns {waproto.DeviceCapabilities.ContactRefresh} ContactRefresh instance
|
|
87587
|
+
* @type {{
|
|
87588
|
+
* (properties: waproto.DeviceCapabilities.ContactRefresh.$Shape): waproto.DeviceCapabilities.ContactRefresh & waproto.DeviceCapabilities.ContactRefresh.$Shape;
|
|
87589
|
+
* (properties?: waproto.DeviceCapabilities.ContactRefresh.$Properties): waproto.DeviceCapabilities.ContactRefresh;
|
|
87590
|
+
* }}
|
|
87591
|
+
*/
|
|
87592
|
+
ContactRefresh.create = function(properties) {
|
|
87593
|
+
return new ContactRefresh(properties);
|
|
87594
|
+
};
|
|
87595
|
+
|
|
87596
|
+
/**
|
|
87597
|
+
* Encodes the specified ContactRefresh message. Does not implicitly {@link waproto.DeviceCapabilities.ContactRefresh.verify|verify} messages.
|
|
87598
|
+
* @function encode
|
|
87599
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87600
|
+
* @static
|
|
87601
|
+
* @param {waproto.DeviceCapabilities.ContactRefresh.$Properties} message ContactRefresh message or plain object to encode
|
|
87602
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87603
|
+
* @returns {$protobuf.Writer} Writer
|
|
87604
|
+
*/
|
|
87605
|
+
ContactRefresh.encode = function (message, writer, _depth) {
|
|
87606
|
+
if (!writer)
|
|
87607
|
+
writer = $Writer.create();
|
|
87608
|
+
if (_depth === $undefined)
|
|
87609
|
+
_depth = 0;
|
|
87610
|
+
if (_depth > $util.recursionLimit)
|
|
87611
|
+
throw $Error("max depth exceeded");
|
|
87612
|
+
if (message.refreshSupported != null && $Object.hasOwnProperty.call(message, "refreshSupported"))
|
|
87613
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.refreshSupported);
|
|
87614
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
87615
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
87616
|
+
writer.raw(message.$unknowns[i]);
|
|
87617
|
+
return writer;
|
|
87618
|
+
};
|
|
87619
|
+
|
|
87620
|
+
/**
|
|
87621
|
+
* Encodes the specified ContactRefresh message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.ContactRefresh.verify|verify} messages.
|
|
87622
|
+
* @function encodeDelimited
|
|
87623
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87624
|
+
* @static
|
|
87625
|
+
* @param {waproto.DeviceCapabilities.ContactRefresh.$Properties} message ContactRefresh message or plain object to encode
|
|
87626
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87627
|
+
* @returns {$protobuf.Writer} Writer
|
|
87628
|
+
*/
|
|
87629
|
+
ContactRefresh.encodeDelimited = function(message, writer) {
|
|
87630
|
+
return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
|
|
87631
|
+
};
|
|
87632
|
+
|
|
87633
|
+
/**
|
|
87634
|
+
* Decodes a ContactRefresh message from the specified reader or buffer.
|
|
87635
|
+
* @function decode
|
|
87636
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87637
|
+
* @static
|
|
87638
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87639
|
+
* @param {number} [length] Message length if known beforehand
|
|
87640
|
+
* @returns {waproto.DeviceCapabilities.ContactRefresh & waproto.DeviceCapabilities.ContactRefresh.$Shape} ContactRefresh
|
|
87641
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87642
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87643
|
+
*/
|
|
87644
|
+
ContactRefresh.decode = function (reader, length, _end, _depth, _target) {
|
|
87645
|
+
if (!(reader instanceof $Reader))
|
|
87646
|
+
reader = $Reader.create(reader);
|
|
87647
|
+
if (_depth === $undefined)
|
|
87648
|
+
_depth = 0;
|
|
87649
|
+
if (_depth > $Reader.recursionLimit)
|
|
87650
|
+
throw $Error("max depth exceeded");
|
|
87651
|
+
var end = length === $undefined ? reader.len : reader.pos + length, message = _target || new $root.waproto.DeviceCapabilities.ContactRefresh();
|
|
87652
|
+
while (reader.pos < end) {
|
|
87653
|
+
var start = reader.pos;
|
|
87654
|
+
var tag = reader.tag();
|
|
87655
|
+
if (tag === _end) {
|
|
87656
|
+
_end = $undefined;
|
|
87657
|
+
break;
|
|
87658
|
+
}
|
|
87659
|
+
var wireType = tag & 7;
|
|
87660
|
+
switch (tag >>>= 3) {
|
|
87661
|
+
case 1: {
|
|
87662
|
+
if (wireType !== 0)
|
|
87663
|
+
break;
|
|
87664
|
+
message.refreshSupported = reader.bool();
|
|
87665
|
+
message._refreshSupported = "refreshSupported";
|
|
87666
|
+
continue;
|
|
87667
|
+
}
|
|
87668
|
+
}
|
|
87669
|
+
reader.skipType(wireType, _depth, tag);
|
|
87670
|
+
if (!reader.discardUnknown) {
|
|
87671
|
+
$util.makeProp(message, "$unknowns", false);
|
|
87672
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
87673
|
+
}
|
|
87674
|
+
}
|
|
87675
|
+
if (_end !== $undefined)
|
|
87676
|
+
throw $Error("missing end group");
|
|
87677
|
+
return message;
|
|
87678
|
+
};
|
|
87679
|
+
|
|
87680
|
+
/**
|
|
87681
|
+
* Decodes a ContactRefresh message from the specified reader or buffer, length delimited.
|
|
87682
|
+
* @function decodeDelimited
|
|
87683
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87684
|
+
* @static
|
|
87685
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87686
|
+
* @returns {waproto.DeviceCapabilities.ContactRefresh & waproto.DeviceCapabilities.ContactRefresh.$Shape} ContactRefresh
|
|
87687
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87688
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87689
|
+
*/
|
|
87690
|
+
ContactRefresh.decodeDelimited = function(reader) {
|
|
87691
|
+
if (!(reader instanceof $Reader))
|
|
87692
|
+
reader = new $Reader(reader);
|
|
87693
|
+
return this.decode(reader, reader.uint32());
|
|
87694
|
+
};
|
|
87695
|
+
|
|
87696
|
+
/**
|
|
87697
|
+
* Verifies a ContactRefresh message.
|
|
87698
|
+
* @function verify
|
|
87699
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87700
|
+
* @static
|
|
87701
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87702
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87703
|
+
*/
|
|
87704
|
+
ContactRefresh.verify = function (message, _depth) {
|
|
87705
|
+
if (typeof message !== "object" || message === null)
|
|
87706
|
+
return "object expected";
|
|
87707
|
+
if (_depth === $undefined)
|
|
87708
|
+
_depth = 0;
|
|
87709
|
+
if (_depth > $util.recursionLimit)
|
|
87710
|
+
return "max depth exceeded";
|
|
87711
|
+
var properties = {};
|
|
87712
|
+
if (message.refreshSupported != null && $Object.hasOwnProperty.call(message, "refreshSupported")) {
|
|
87713
|
+
properties._refreshSupported = 1;
|
|
87714
|
+
if (typeof message.refreshSupported !== "boolean")
|
|
87715
|
+
return "refreshSupported: boolean expected";
|
|
87716
|
+
}
|
|
87717
|
+
return null;
|
|
87718
|
+
};
|
|
87719
|
+
|
|
87720
|
+
/**
|
|
87721
|
+
* Creates a ContactRefresh message from a plain object. Also converts values to their respective internal types.
|
|
87722
|
+
* @function fromObject
|
|
87723
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87724
|
+
* @static
|
|
87725
|
+
* @param {Object.<string,*>} object Plain object
|
|
87726
|
+
* @returns {waproto.DeviceCapabilities.ContactRefresh} ContactRefresh
|
|
87727
|
+
*/
|
|
87728
|
+
ContactRefresh.fromObject = function (object, _depth) {
|
|
87729
|
+
if (object instanceof $root.waproto.DeviceCapabilities.ContactRefresh)
|
|
87730
|
+
return object;
|
|
87731
|
+
if (!$util.isObject(object))
|
|
87732
|
+
throw $TypeError(".waproto.DeviceCapabilities.ContactRefresh: object expected");
|
|
87733
|
+
if (_depth === $undefined)
|
|
87734
|
+
_depth = 0;
|
|
87735
|
+
if (_depth > $util.recursionLimit)
|
|
87736
|
+
throw $Error("max depth exceeded");
|
|
87737
|
+
var message = new $root.waproto.DeviceCapabilities.ContactRefresh();
|
|
87738
|
+
if (object.refreshSupported != null)
|
|
87739
|
+
message.refreshSupported = $Boolean(object.refreshSupported);
|
|
87740
|
+
return message;
|
|
87741
|
+
};
|
|
87742
|
+
|
|
87743
|
+
/**
|
|
87744
|
+
* Creates a plain object from a ContactRefresh message. Also converts values to other types if specified.
|
|
87745
|
+
* @function toObject
|
|
87746
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87747
|
+
* @static
|
|
87748
|
+
* @param {waproto.DeviceCapabilities.ContactRefresh} message ContactRefresh
|
|
87749
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87750
|
+
* @returns {Object.<string,*>} Plain object
|
|
87751
|
+
*/
|
|
87752
|
+
ContactRefresh.toObject = function (message, options, _depth) {
|
|
87753
|
+
if (!options)
|
|
87754
|
+
options = {};
|
|
87755
|
+
if (_depth === $undefined)
|
|
87756
|
+
_depth = 0;
|
|
87757
|
+
if (_depth > $util.recursionLimit)
|
|
87758
|
+
throw $Error("max depth exceeded");
|
|
87759
|
+
var object = {};
|
|
87760
|
+
if (message.refreshSupported != null && $Object.hasOwnProperty.call(message, "refreshSupported"))
|
|
87761
|
+
object.refreshSupported = message.refreshSupported;
|
|
87762
|
+
return object;
|
|
87763
|
+
};
|
|
87764
|
+
|
|
87765
|
+
/**
|
|
87766
|
+
* Converts this ContactRefresh to JSON.
|
|
87767
|
+
* @function toJSON
|
|
87768
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87769
|
+
* @instance
|
|
87770
|
+
* @returns {Object.<string,*>} JSON object
|
|
87771
|
+
*/
|
|
87772
|
+
ContactRefresh.prototype.toJSON = function() {
|
|
87773
|
+
return ContactRefresh.toObject(this, $protobuf.util.toJSONOptions);
|
|
87774
|
+
};
|
|
87775
|
+
|
|
87776
|
+
/**
|
|
87777
|
+
* Gets the type url for ContactRefresh
|
|
87778
|
+
* @function getTypeUrl
|
|
87779
|
+
* @memberof waproto.DeviceCapabilities.ContactRefresh
|
|
87780
|
+
* @static
|
|
87781
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
87782
|
+
* @returns {string} The type url
|
|
87783
|
+
*/
|
|
87784
|
+
ContactRefresh.getTypeUrl = function(prefix) {
|
|
87785
|
+
if (prefix === $undefined)
|
|
87786
|
+
prefix = "type.googleapis.com";
|
|
87787
|
+
return prefix + "/waproto.DeviceCapabilities.ContactRefresh";
|
|
87788
|
+
};
|
|
87789
|
+
|
|
87790
|
+
return ContactRefresh;
|
|
87791
|
+
})();
|
|
87792
|
+
|
|
87487
87793
|
DeviceCapabilities.LIDMigration = (function() {
|
|
87488
87794
|
|
|
87489
87795
|
/**
|