@n4tzz/n4lyx 2.7.1 → 2.7.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/README.MD +106 -20
- package/WAProto/WAProto.proto +122 -0
- package/WAProto/index.d.ts +1003 -0
- package/WAProto/index.js +3208 -0
- package/package.json +1 -1
package/WAProto/index.js
CHANGED
|
@@ -18187,6 +18187,3214 @@ $root.proto = (function() {
|
|
|
18187
18187
|
return NoiseCertificate;
|
|
18188
18188
|
})();
|
|
18189
18189
|
|
|
18190
|
+
proto.ClientPayload = (function() {
|
|
18191
|
+
|
|
18192
|
+
/**
|
|
18193
|
+
* Properties of a ClientPayload.
|
|
18194
|
+
* @memberof proto
|
|
18195
|
+
* @interface IClientPayload
|
|
18196
|
+
* @property {number|Long|null} [username] ClientPayload username
|
|
18197
|
+
* @property {boolean|null} [passive] ClientPayload passive
|
|
18198
|
+
* @property {proto.ClientPayload.IUserAgent|null} [userAgent] ClientPayload userAgent
|
|
18199
|
+
* @property {proto.ClientPayload.IWebInfo|null} [webInfo] ClientPayload webInfo
|
|
18200
|
+
* @property {proto.ClientPayload.ConnectType|null} [connectType] ClientPayload connectType
|
|
18201
|
+
* @property {proto.ClientPayload.ConnectReason|null} [connectReason] ClientPayload connectReason
|
|
18202
|
+
* @property {Uint8Array|null} [shards] ClientPayload shards
|
|
18203
|
+
* @property {proto.ClientPayload.IDNSSource|null} [dnsSource] ClientPayload dnsSource
|
|
18204
|
+
* @property {number|null} [device] ClientPayload device
|
|
18205
|
+
* @property {proto.ClientPayload.IDevicePairingRegistrationData|null} [devicePairingData] ClientPayload devicePairingData
|
|
18206
|
+
* @property {boolean|null} [pull] ClientPayload pull
|
|
18207
|
+
* @property {boolean|null} [recoverFromCompanionSession] ClientPayload recoverFromCompanionSession
|
|
18208
|
+
* @property {boolean|null} [recoverFromSessionPairSignedLtkMessage] ClientPayload recoverFromSessionPairSignedLtkMessage
|
|
18209
|
+
* @property {string|null} [productType] ClientPayload productType
|
|
18210
|
+
* @property {boolean|null} [fidoBrowserEnabled] ClientPayload fidoBrowserEnabled
|
|
18211
|
+
* @property {boolean|null} [iosPhoneNumberMigration] ClientPayload iosPhoneNumberMigration
|
|
18212
|
+
* @property {boolean|null} [lidDbMigrated] ClientPayload lidDbMigrated
|
|
18213
|
+
*/
|
|
18214
|
+
|
|
18215
|
+
/**
|
|
18216
|
+
* Constructs a new ClientPayload.
|
|
18217
|
+
* @memberof proto
|
|
18218
|
+
* @classdesc Represents a ClientPayload.
|
|
18219
|
+
* @implements IClientPayload
|
|
18220
|
+
* @constructor
|
|
18221
|
+
* @param {proto.IClientPayload=} [properties] Properties to set
|
|
18222
|
+
*/
|
|
18223
|
+
function ClientPayload(properties) {
|
|
18224
|
+
if (properties)
|
|
18225
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18226
|
+
if (properties[keys[i]] != null)
|
|
18227
|
+
this[keys[i]] = properties[keys[i]];
|
|
18228
|
+
}
|
|
18229
|
+
|
|
18230
|
+
/**
|
|
18231
|
+
* ClientPayload username.
|
|
18232
|
+
* @member {number|Long|null|undefined} username
|
|
18233
|
+
* @memberof proto.ClientPayload
|
|
18234
|
+
* @instance
|
|
18235
|
+
*/
|
|
18236
|
+
ClientPayload.prototype.username = null;
|
|
18237
|
+
|
|
18238
|
+
/**
|
|
18239
|
+
* ClientPayload passive.
|
|
18240
|
+
* @member {boolean|null|undefined} passive
|
|
18241
|
+
* @memberof proto.ClientPayload
|
|
18242
|
+
* @instance
|
|
18243
|
+
*/
|
|
18244
|
+
ClientPayload.prototype.passive = null;
|
|
18245
|
+
|
|
18246
|
+
/**
|
|
18247
|
+
* ClientPayload userAgent.
|
|
18248
|
+
* @member {proto.ClientPayload.IUserAgent|null|undefined} userAgent
|
|
18249
|
+
* @memberof proto.ClientPayload
|
|
18250
|
+
* @instance
|
|
18251
|
+
*/
|
|
18252
|
+
ClientPayload.prototype.userAgent = null;
|
|
18253
|
+
|
|
18254
|
+
/**
|
|
18255
|
+
* ClientPayload webInfo.
|
|
18256
|
+
* @member {proto.ClientPayload.IWebInfo|null|undefined} webInfo
|
|
18257
|
+
* @memberof proto.ClientPayload
|
|
18258
|
+
* @instance
|
|
18259
|
+
*/
|
|
18260
|
+
ClientPayload.prototype.webInfo = null;
|
|
18261
|
+
|
|
18262
|
+
/**
|
|
18263
|
+
* ClientPayload connectType.
|
|
18264
|
+
* @member {proto.ClientPayload.ConnectType|null|undefined} connectType
|
|
18265
|
+
* @memberof proto.ClientPayload
|
|
18266
|
+
* @instance
|
|
18267
|
+
*/
|
|
18268
|
+
ClientPayload.prototype.connectType = null;
|
|
18269
|
+
|
|
18270
|
+
/**
|
|
18271
|
+
* ClientPayload connectReason.
|
|
18272
|
+
* @member {proto.ClientPayload.ConnectReason|null|undefined} connectReason
|
|
18273
|
+
* @memberof proto.ClientPayload
|
|
18274
|
+
* @instance
|
|
18275
|
+
*/
|
|
18276
|
+
ClientPayload.prototype.connectReason = null;
|
|
18277
|
+
|
|
18278
|
+
/**
|
|
18279
|
+
* ClientPayload shards.
|
|
18280
|
+
* @member {Uint8Array|null|undefined} shards
|
|
18281
|
+
* @memberof proto.ClientPayload
|
|
18282
|
+
* @instance
|
|
18283
|
+
*/
|
|
18284
|
+
ClientPayload.prototype.shards = null;
|
|
18285
|
+
|
|
18286
|
+
/**
|
|
18287
|
+
* ClientPayload dnsSource.
|
|
18288
|
+
* @member {proto.ClientPayload.IDNSSource|null|undefined} dnsSource
|
|
18289
|
+
* @memberof proto.ClientPayload
|
|
18290
|
+
* @instance
|
|
18291
|
+
*/
|
|
18292
|
+
ClientPayload.prototype.dnsSource = null;
|
|
18293
|
+
|
|
18294
|
+
/**
|
|
18295
|
+
* ClientPayload device.
|
|
18296
|
+
* @member {number|null|undefined} device
|
|
18297
|
+
* @memberof proto.ClientPayload
|
|
18298
|
+
* @instance
|
|
18299
|
+
*/
|
|
18300
|
+
ClientPayload.prototype.device = null;
|
|
18301
|
+
|
|
18302
|
+
/**
|
|
18303
|
+
* ClientPayload devicePairingData.
|
|
18304
|
+
* @member {proto.ClientPayload.IDevicePairingRegistrationData|null|undefined} devicePairingData
|
|
18305
|
+
* @memberof proto.ClientPayload
|
|
18306
|
+
* @instance
|
|
18307
|
+
*/
|
|
18308
|
+
ClientPayload.prototype.devicePairingData = null;
|
|
18309
|
+
|
|
18310
|
+
/**
|
|
18311
|
+
* ClientPayload pull.
|
|
18312
|
+
* @member {boolean|null|undefined} pull
|
|
18313
|
+
* @memberof proto.ClientPayload
|
|
18314
|
+
* @instance
|
|
18315
|
+
*/
|
|
18316
|
+
ClientPayload.prototype.pull = null;
|
|
18317
|
+
|
|
18318
|
+
/**
|
|
18319
|
+
* ClientPayload recoverFromCompanionSession.
|
|
18320
|
+
* @member {boolean|null|undefined} recoverFromCompanionSession
|
|
18321
|
+
* @memberof proto.ClientPayload
|
|
18322
|
+
* @instance
|
|
18323
|
+
*/
|
|
18324
|
+
ClientPayload.prototype.recoverFromCompanionSession = null;
|
|
18325
|
+
|
|
18326
|
+
/**
|
|
18327
|
+
* ClientPayload recoverFromSessionPairSignedLtkMessage.
|
|
18328
|
+
* @member {boolean|null|undefined} recoverFromSessionPairSignedLtkMessage
|
|
18329
|
+
* @memberof proto.ClientPayload
|
|
18330
|
+
* @instance
|
|
18331
|
+
*/
|
|
18332
|
+
ClientPayload.prototype.recoverFromSessionPairSignedLtkMessage = null;
|
|
18333
|
+
|
|
18334
|
+
/**
|
|
18335
|
+
* ClientPayload productType.
|
|
18336
|
+
* @member {string|null|undefined} productType
|
|
18337
|
+
* @memberof proto.ClientPayload
|
|
18338
|
+
* @instance
|
|
18339
|
+
*/
|
|
18340
|
+
ClientPayload.prototype.productType = null;
|
|
18341
|
+
|
|
18342
|
+
/**
|
|
18343
|
+
* ClientPayload fidoBrowserEnabled.
|
|
18344
|
+
* @member {boolean|null|undefined} fidoBrowserEnabled
|
|
18345
|
+
* @memberof proto.ClientPayload
|
|
18346
|
+
* @instance
|
|
18347
|
+
*/
|
|
18348
|
+
ClientPayload.prototype.fidoBrowserEnabled = null;
|
|
18349
|
+
|
|
18350
|
+
/**
|
|
18351
|
+
* ClientPayload iosPhoneNumberMigration.
|
|
18352
|
+
* @member {boolean|null|undefined} iosPhoneNumberMigration
|
|
18353
|
+
* @memberof proto.ClientPayload
|
|
18354
|
+
* @instance
|
|
18355
|
+
*/
|
|
18356
|
+
ClientPayload.prototype.iosPhoneNumberMigration = null;
|
|
18357
|
+
|
|
18358
|
+
/**
|
|
18359
|
+
* ClientPayload lidDbMigrated.
|
|
18360
|
+
* @member {boolean|null|undefined} lidDbMigrated
|
|
18361
|
+
* @memberof proto.ClientPayload
|
|
18362
|
+
* @instance
|
|
18363
|
+
*/
|
|
18364
|
+
ClientPayload.prototype.lidDbMigrated = null;
|
|
18365
|
+
|
|
18366
|
+
// OneOf field names bound to virtual getters and setters
|
|
18367
|
+
var $oneOfFields;
|
|
18368
|
+
|
|
18369
|
+
/**
|
|
18370
|
+
* ClientPayload _username.
|
|
18371
|
+
* @member {"username"|undefined} _username
|
|
18372
|
+
* @memberof proto.ClientPayload
|
|
18373
|
+
* @instance
|
|
18374
|
+
*/
|
|
18375
|
+
Object.defineProperty(ClientPayload.prototype, "_username", {
|
|
18376
|
+
get: $util.oneOfGetter($oneOfFields = ["username"]),
|
|
18377
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18378
|
+
});
|
|
18379
|
+
|
|
18380
|
+
/**
|
|
18381
|
+
* ClientPayload _passive.
|
|
18382
|
+
* @member {"passive"|undefined} _passive
|
|
18383
|
+
* @memberof proto.ClientPayload
|
|
18384
|
+
* @instance
|
|
18385
|
+
*/
|
|
18386
|
+
Object.defineProperty(ClientPayload.prototype, "_passive", {
|
|
18387
|
+
get: $util.oneOfGetter($oneOfFields = ["passive"]),
|
|
18388
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18389
|
+
});
|
|
18390
|
+
|
|
18391
|
+
/**
|
|
18392
|
+
* ClientPayload _userAgent.
|
|
18393
|
+
* @member {"userAgent"|undefined} _userAgent
|
|
18394
|
+
* @memberof proto.ClientPayload
|
|
18395
|
+
* @instance
|
|
18396
|
+
*/
|
|
18397
|
+
Object.defineProperty(ClientPayload.prototype, "_userAgent", {
|
|
18398
|
+
get: $util.oneOfGetter($oneOfFields = ["userAgent"]),
|
|
18399
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18400
|
+
});
|
|
18401
|
+
|
|
18402
|
+
/**
|
|
18403
|
+
* ClientPayload _webInfo.
|
|
18404
|
+
* @member {"webInfo"|undefined} _webInfo
|
|
18405
|
+
* @memberof proto.ClientPayload
|
|
18406
|
+
* @instance
|
|
18407
|
+
*/
|
|
18408
|
+
Object.defineProperty(ClientPayload.prototype, "_webInfo", {
|
|
18409
|
+
get: $util.oneOfGetter($oneOfFields = ["webInfo"]),
|
|
18410
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18411
|
+
});
|
|
18412
|
+
|
|
18413
|
+
/**
|
|
18414
|
+
* ClientPayload _connectType.
|
|
18415
|
+
* @member {"connectType"|undefined} _connectType
|
|
18416
|
+
* @memberof proto.ClientPayload
|
|
18417
|
+
* @instance
|
|
18418
|
+
*/
|
|
18419
|
+
Object.defineProperty(ClientPayload.prototype, "_connectType", {
|
|
18420
|
+
get: $util.oneOfGetter($oneOfFields = ["connectType"]),
|
|
18421
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18422
|
+
});
|
|
18423
|
+
|
|
18424
|
+
/**
|
|
18425
|
+
* ClientPayload _connectReason.
|
|
18426
|
+
* @member {"connectReason"|undefined} _connectReason
|
|
18427
|
+
* @memberof proto.ClientPayload
|
|
18428
|
+
* @instance
|
|
18429
|
+
*/
|
|
18430
|
+
Object.defineProperty(ClientPayload.prototype, "_connectReason", {
|
|
18431
|
+
get: $util.oneOfGetter($oneOfFields = ["connectReason"]),
|
|
18432
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18433
|
+
});
|
|
18434
|
+
|
|
18435
|
+
/**
|
|
18436
|
+
* ClientPayload _shards.
|
|
18437
|
+
* @member {"shards"|undefined} _shards
|
|
18438
|
+
* @memberof proto.ClientPayload
|
|
18439
|
+
* @instance
|
|
18440
|
+
*/
|
|
18441
|
+
Object.defineProperty(ClientPayload.prototype, "_shards", {
|
|
18442
|
+
get: $util.oneOfGetter($oneOfFields = ["shards"]),
|
|
18443
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18444
|
+
});
|
|
18445
|
+
|
|
18446
|
+
/**
|
|
18447
|
+
* ClientPayload _dnsSource.
|
|
18448
|
+
* @member {"dnsSource"|undefined} _dnsSource
|
|
18449
|
+
* @memberof proto.ClientPayload
|
|
18450
|
+
* @instance
|
|
18451
|
+
*/
|
|
18452
|
+
Object.defineProperty(ClientPayload.prototype, "_dnsSource", {
|
|
18453
|
+
get: $util.oneOfGetter($oneOfFields = ["dnsSource"]),
|
|
18454
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18455
|
+
});
|
|
18456
|
+
|
|
18457
|
+
/**
|
|
18458
|
+
* ClientPayload _device.
|
|
18459
|
+
* @member {"device"|undefined} _device
|
|
18460
|
+
* @memberof proto.ClientPayload
|
|
18461
|
+
* @instance
|
|
18462
|
+
*/
|
|
18463
|
+
Object.defineProperty(ClientPayload.prototype, "_device", {
|
|
18464
|
+
get: $util.oneOfGetter($oneOfFields = ["device"]),
|
|
18465
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18466
|
+
});
|
|
18467
|
+
|
|
18468
|
+
/**
|
|
18469
|
+
* ClientPayload _devicePairingData.
|
|
18470
|
+
* @member {"devicePairingData"|undefined} _devicePairingData
|
|
18471
|
+
* @memberof proto.ClientPayload
|
|
18472
|
+
* @instance
|
|
18473
|
+
*/
|
|
18474
|
+
Object.defineProperty(ClientPayload.prototype, "_devicePairingData", {
|
|
18475
|
+
get: $util.oneOfGetter($oneOfFields = ["devicePairingData"]),
|
|
18476
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18477
|
+
});
|
|
18478
|
+
|
|
18479
|
+
/**
|
|
18480
|
+
* ClientPayload _pull.
|
|
18481
|
+
* @member {"pull"|undefined} _pull
|
|
18482
|
+
* @memberof proto.ClientPayload
|
|
18483
|
+
* @instance
|
|
18484
|
+
*/
|
|
18485
|
+
Object.defineProperty(ClientPayload.prototype, "_pull", {
|
|
18486
|
+
get: $util.oneOfGetter($oneOfFields = ["pull"]),
|
|
18487
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18488
|
+
});
|
|
18489
|
+
|
|
18490
|
+
/**
|
|
18491
|
+
* ClientPayload _recoverFromCompanionSession.
|
|
18492
|
+
* @member {"recoverFromCompanionSession"|undefined} _recoverFromCompanionSession
|
|
18493
|
+
* @memberof proto.ClientPayload
|
|
18494
|
+
* @instance
|
|
18495
|
+
*/
|
|
18496
|
+
Object.defineProperty(ClientPayload.prototype, "_recoverFromCompanionSession", {
|
|
18497
|
+
get: $util.oneOfGetter($oneOfFields = ["recoverFromCompanionSession"]),
|
|
18498
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18499
|
+
});
|
|
18500
|
+
|
|
18501
|
+
/**
|
|
18502
|
+
* ClientPayload _recoverFromSessionPairSignedLtkMessage.
|
|
18503
|
+
* @member {"recoverFromSessionPairSignedLtkMessage"|undefined} _recoverFromSessionPairSignedLtkMessage
|
|
18504
|
+
* @memberof proto.ClientPayload
|
|
18505
|
+
* @instance
|
|
18506
|
+
*/
|
|
18507
|
+
Object.defineProperty(ClientPayload.prototype, "_recoverFromSessionPairSignedLtkMessage", {
|
|
18508
|
+
get: $util.oneOfGetter($oneOfFields = ["recoverFromSessionPairSignedLtkMessage"]),
|
|
18509
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18510
|
+
});
|
|
18511
|
+
|
|
18512
|
+
/**
|
|
18513
|
+
* ClientPayload _productType.
|
|
18514
|
+
* @member {"productType"|undefined} _productType
|
|
18515
|
+
* @memberof proto.ClientPayload
|
|
18516
|
+
* @instance
|
|
18517
|
+
*/
|
|
18518
|
+
Object.defineProperty(ClientPayload.prototype, "_productType", {
|
|
18519
|
+
get: $util.oneOfGetter($oneOfFields = ["productType"]),
|
|
18520
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18521
|
+
});
|
|
18522
|
+
|
|
18523
|
+
/**
|
|
18524
|
+
* ClientPayload _fidoBrowserEnabled.
|
|
18525
|
+
* @member {"fidoBrowserEnabled"|undefined} _fidoBrowserEnabled
|
|
18526
|
+
* @memberof proto.ClientPayload
|
|
18527
|
+
* @instance
|
|
18528
|
+
*/
|
|
18529
|
+
Object.defineProperty(ClientPayload.prototype, "_fidoBrowserEnabled", {
|
|
18530
|
+
get: $util.oneOfGetter($oneOfFields = ["fidoBrowserEnabled"]),
|
|
18531
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18532
|
+
});
|
|
18533
|
+
|
|
18534
|
+
/**
|
|
18535
|
+
* ClientPayload _iosPhoneNumberMigration.
|
|
18536
|
+
* @member {"iosPhoneNumberMigration"|undefined} _iosPhoneNumberMigration
|
|
18537
|
+
* @memberof proto.ClientPayload
|
|
18538
|
+
* @instance
|
|
18539
|
+
*/
|
|
18540
|
+
Object.defineProperty(ClientPayload.prototype, "_iosPhoneNumberMigration", {
|
|
18541
|
+
get: $util.oneOfGetter($oneOfFields = ["iosPhoneNumberMigration"]),
|
|
18542
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18543
|
+
});
|
|
18544
|
+
|
|
18545
|
+
/**
|
|
18546
|
+
* ClientPayload _lidDbMigrated.
|
|
18547
|
+
* @member {"lidDbMigrated"|undefined} _lidDbMigrated
|
|
18548
|
+
* @memberof proto.ClientPayload
|
|
18549
|
+
* @instance
|
|
18550
|
+
*/
|
|
18551
|
+
Object.defineProperty(ClientPayload.prototype, "_lidDbMigrated", {
|
|
18552
|
+
get: $util.oneOfGetter($oneOfFields = ["lidDbMigrated"]),
|
|
18553
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18554
|
+
});
|
|
18555
|
+
|
|
18556
|
+
/**
|
|
18557
|
+
* Creates a new ClientPayload instance using the specified properties.
|
|
18558
|
+
* @function create
|
|
18559
|
+
* @memberof proto.ClientPayload
|
|
18560
|
+
* @static
|
|
18561
|
+
* @param {proto.IClientPayload=} [properties] Properties to set
|
|
18562
|
+
* @returns {proto.ClientPayload} ClientPayload instance
|
|
18563
|
+
*/
|
|
18564
|
+
ClientPayload.create = function create(properties) {
|
|
18565
|
+
return new ClientPayload(properties);
|
|
18566
|
+
};
|
|
18567
|
+
|
|
18568
|
+
/**
|
|
18569
|
+
* Encodes the specified ClientPayload message. Does not implicitly {@link proto.ClientPayload.verify|verify} messages.
|
|
18570
|
+
* @function encode
|
|
18571
|
+
* @memberof proto.ClientPayload
|
|
18572
|
+
* @static
|
|
18573
|
+
* @param {proto.IClientPayload} message ClientPayload message or plain object to encode
|
|
18574
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18575
|
+
* @returns {$protobuf.Writer} Writer
|
|
18576
|
+
*/
|
|
18577
|
+
ClientPayload.encode = function encode(message, writer) {
|
|
18578
|
+
if (!writer)
|
|
18579
|
+
writer = $Writer.create();
|
|
18580
|
+
if (message.username != null && Object.hasOwnProperty.call(message, "username"))
|
|
18581
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.username);
|
|
18582
|
+
if (message.passive != null && Object.hasOwnProperty.call(message, "passive"))
|
|
18583
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.passive);
|
|
18584
|
+
if (message.userAgent != null && Object.hasOwnProperty.call(message, "userAgent"))
|
|
18585
|
+
$root.proto.ClientPayload.UserAgent.encode(message.userAgent, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
18586
|
+
if (message.webInfo != null && Object.hasOwnProperty.call(message, "webInfo"))
|
|
18587
|
+
$root.proto.ClientPayload.WebInfo.encode(message.webInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
18588
|
+
if (message.connectType != null && Object.hasOwnProperty.call(message, "connectType"))
|
|
18589
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.connectType);
|
|
18590
|
+
if (message.connectReason != null && Object.hasOwnProperty.call(message, "connectReason"))
|
|
18591
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.connectReason);
|
|
18592
|
+
if (message.shards != null && Object.hasOwnProperty.call(message, "shards"))
|
|
18593
|
+
writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.shards);
|
|
18594
|
+
if (message.dnsSource != null && Object.hasOwnProperty.call(message, "dnsSource"))
|
|
18595
|
+
$root.proto.ClientPayload.DNSSource.encode(message.dnsSource, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
18596
|
+
if (message.device != null && Object.hasOwnProperty.call(message, "device"))
|
|
18597
|
+
writer.uint32(/* id 15, wireType 0 =*/120).uint32(message.device);
|
|
18598
|
+
if (message.devicePairingData != null && Object.hasOwnProperty.call(message, "devicePairingData"))
|
|
18599
|
+
$root.proto.ClientPayload.DevicePairingRegistrationData.encode(message.devicePairingData, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
18600
|
+
if (message.pull != null && Object.hasOwnProperty.call(message, "pull"))
|
|
18601
|
+
writer.uint32(/* id 17, wireType 0 =*/136).bool(message.pull);
|
|
18602
|
+
if (message.recoverFromCompanionSession != null && Object.hasOwnProperty.call(message, "recoverFromCompanionSession"))
|
|
18603
|
+
writer.uint32(/* id 19, wireType 0 =*/152).bool(message.recoverFromCompanionSession);
|
|
18604
|
+
if (message.recoverFromSessionPairSignedLtkMessage != null && Object.hasOwnProperty.call(message, "recoverFromSessionPairSignedLtkMessage"))
|
|
18605
|
+
writer.uint32(/* id 20, wireType 0 =*/160).bool(message.recoverFromSessionPairSignedLtkMessage);
|
|
18606
|
+
if (message.productType != null && Object.hasOwnProperty.call(message, "productType"))
|
|
18607
|
+
writer.uint32(/* id 21, wireType 2 =*/170).string(message.productType);
|
|
18608
|
+
if (message.fidoBrowserEnabled != null && Object.hasOwnProperty.call(message, "fidoBrowserEnabled"))
|
|
18609
|
+
writer.uint32(/* id 22, wireType 0 =*/176).bool(message.fidoBrowserEnabled);
|
|
18610
|
+
if (message.iosPhoneNumberMigration != null && Object.hasOwnProperty.call(message, "iosPhoneNumberMigration"))
|
|
18611
|
+
writer.uint32(/* id 23, wireType 0 =*/184).bool(message.iosPhoneNumberMigration);
|
|
18612
|
+
if (message.lidDbMigrated != null && Object.hasOwnProperty.call(message, "lidDbMigrated"))
|
|
18613
|
+
writer.uint32(/* id 24, wireType 0 =*/192).bool(message.lidDbMigrated);
|
|
18614
|
+
return writer;
|
|
18615
|
+
};
|
|
18616
|
+
|
|
18617
|
+
/**
|
|
18618
|
+
* Encodes the specified ClientPayload message, length delimited. Does not implicitly {@link proto.ClientPayload.verify|verify} messages.
|
|
18619
|
+
* @function encodeDelimited
|
|
18620
|
+
* @memberof proto.ClientPayload
|
|
18621
|
+
* @static
|
|
18622
|
+
* @param {proto.IClientPayload} message ClientPayload message or plain object to encode
|
|
18623
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18624
|
+
* @returns {$protobuf.Writer} Writer
|
|
18625
|
+
*/
|
|
18626
|
+
ClientPayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18627
|
+
return this.encode(message, writer).ldelim();
|
|
18628
|
+
};
|
|
18629
|
+
|
|
18630
|
+
/**
|
|
18631
|
+
* Decodes a ClientPayload message from the specified reader or buffer.
|
|
18632
|
+
* @function decode
|
|
18633
|
+
* @memberof proto.ClientPayload
|
|
18634
|
+
* @static
|
|
18635
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18636
|
+
* @param {number} [length] Message length if known beforehand
|
|
18637
|
+
* @returns {proto.ClientPayload} ClientPayload
|
|
18638
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18639
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18640
|
+
*/
|
|
18641
|
+
ClientPayload.decode = function decode(reader, length) {
|
|
18642
|
+
if (!(reader instanceof $Reader))
|
|
18643
|
+
reader = $Reader.create(reader);
|
|
18644
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.ClientPayload();
|
|
18645
|
+
while (reader.pos < end) {
|
|
18646
|
+
var tag = reader.uint32();
|
|
18647
|
+
switch (tag >>> 3) {
|
|
18648
|
+
case 1:
|
|
18649
|
+
message.username = reader.uint64();
|
|
18650
|
+
break;
|
|
18651
|
+
case 3:
|
|
18652
|
+
message.passive = reader.bool();
|
|
18653
|
+
break;
|
|
18654
|
+
case 5:
|
|
18655
|
+
message.userAgent = $root.proto.ClientPayload.UserAgent.decode(reader, reader.uint32());
|
|
18656
|
+
break;
|
|
18657
|
+
case 6:
|
|
18658
|
+
message.webInfo = $root.proto.ClientPayload.WebInfo.decode(reader, reader.uint32());
|
|
18659
|
+
break;
|
|
18660
|
+
case 8:
|
|
18661
|
+
message.connectType = reader.int32();
|
|
18662
|
+
break;
|
|
18663
|
+
case 9:
|
|
18664
|
+
message.connectReason = reader.int32();
|
|
18665
|
+
break;
|
|
18666
|
+
case 11:
|
|
18667
|
+
message.shards = reader.bytes();
|
|
18668
|
+
break;
|
|
18669
|
+
case 12:
|
|
18670
|
+
message.dnsSource = $root.proto.ClientPayload.DNSSource.decode(reader, reader.uint32());
|
|
18671
|
+
break;
|
|
18672
|
+
case 15:
|
|
18673
|
+
message.device = reader.uint32();
|
|
18674
|
+
break;
|
|
18675
|
+
case 16:
|
|
18676
|
+
message.devicePairingData = $root.proto.ClientPayload.DevicePairingRegistrationData.decode(reader, reader.uint32());
|
|
18677
|
+
break;
|
|
18678
|
+
case 17:
|
|
18679
|
+
message.pull = reader.bool();
|
|
18680
|
+
break;
|
|
18681
|
+
case 19:
|
|
18682
|
+
message.recoverFromCompanionSession = reader.bool();
|
|
18683
|
+
break;
|
|
18684
|
+
case 20:
|
|
18685
|
+
message.recoverFromSessionPairSignedLtkMessage = reader.bool();
|
|
18686
|
+
break;
|
|
18687
|
+
case 21:
|
|
18688
|
+
message.productType = reader.string();
|
|
18689
|
+
break;
|
|
18690
|
+
case 22:
|
|
18691
|
+
message.fidoBrowserEnabled = reader.bool();
|
|
18692
|
+
break;
|
|
18693
|
+
case 23:
|
|
18694
|
+
message.iosPhoneNumberMigration = reader.bool();
|
|
18695
|
+
break;
|
|
18696
|
+
case 24:
|
|
18697
|
+
message.lidDbMigrated = reader.bool();
|
|
18698
|
+
break;
|
|
18699
|
+
default:
|
|
18700
|
+
reader.skipType(tag & 7);
|
|
18701
|
+
break;
|
|
18702
|
+
}
|
|
18703
|
+
}
|
|
18704
|
+
return message;
|
|
18705
|
+
};
|
|
18706
|
+
|
|
18707
|
+
/**
|
|
18708
|
+
* Decodes a ClientPayload message from the specified reader or buffer, length delimited.
|
|
18709
|
+
* @function decodeDelimited
|
|
18710
|
+
* @memberof proto.ClientPayload
|
|
18711
|
+
* @static
|
|
18712
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18713
|
+
* @returns {proto.ClientPayload} ClientPayload
|
|
18714
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18715
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18716
|
+
*/
|
|
18717
|
+
ClientPayload.decodeDelimited = function decodeDelimited(reader) {
|
|
18718
|
+
if (!(reader instanceof $Reader))
|
|
18719
|
+
reader = new $Reader(reader);
|
|
18720
|
+
return this.decode(reader, reader.uint32());
|
|
18721
|
+
};
|
|
18722
|
+
|
|
18723
|
+
/**
|
|
18724
|
+
* Verifies a ClientPayload message.
|
|
18725
|
+
* @function verify
|
|
18726
|
+
* @memberof proto.ClientPayload
|
|
18727
|
+
* @static
|
|
18728
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18729
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18730
|
+
*/
|
|
18731
|
+
ClientPayload.verify = function verify(message) {
|
|
18732
|
+
if (typeof message !== "object" || message === null)
|
|
18733
|
+
return "object expected";
|
|
18734
|
+
var properties = {};
|
|
18735
|
+
if (message.username != null && message.hasOwnProperty("username")) {
|
|
18736
|
+
properties._username = 1;
|
|
18737
|
+
if (!$util.isInteger(message.username) && !(message.username && $util.isInteger(message.username.low) && $util.isInteger(message.username.high)))
|
|
18738
|
+
return "username: integer|Long expected";
|
|
18739
|
+
}
|
|
18740
|
+
if (message.passive != null && message.hasOwnProperty("passive")) {
|
|
18741
|
+
properties._passive = 1;
|
|
18742
|
+
if (typeof message.passive !== "boolean")
|
|
18743
|
+
return "passive: boolean expected";
|
|
18744
|
+
}
|
|
18745
|
+
if (message.userAgent != null && message.hasOwnProperty("userAgent")) {
|
|
18746
|
+
properties._userAgent = 1;
|
|
18747
|
+
{
|
|
18748
|
+
var error = $root.proto.ClientPayload.UserAgent.verify(message.userAgent);
|
|
18749
|
+
if (error)
|
|
18750
|
+
return "userAgent." + error;
|
|
18751
|
+
}
|
|
18752
|
+
}
|
|
18753
|
+
if (message.webInfo != null && message.hasOwnProperty("webInfo")) {
|
|
18754
|
+
properties._webInfo = 1;
|
|
18755
|
+
{
|
|
18756
|
+
var error = $root.proto.ClientPayload.WebInfo.verify(message.webInfo);
|
|
18757
|
+
if (error)
|
|
18758
|
+
return "webInfo." + error;
|
|
18759
|
+
}
|
|
18760
|
+
}
|
|
18761
|
+
if (message.connectType != null && message.hasOwnProperty("connectType")) {
|
|
18762
|
+
properties._connectType = 1;
|
|
18763
|
+
switch (message.connectType) {
|
|
18764
|
+
default:
|
|
18765
|
+
return "connectType: enum value expected";
|
|
18766
|
+
case 0:
|
|
18767
|
+
case 1:
|
|
18768
|
+
case 100:
|
|
18769
|
+
case 101:
|
|
18770
|
+
case 102:
|
|
18771
|
+
case 103:
|
|
18772
|
+
case 104:
|
|
18773
|
+
case 105:
|
|
18774
|
+
case 106:
|
|
18775
|
+
case 107:
|
|
18776
|
+
case 108:
|
|
18777
|
+
case 109:
|
|
18778
|
+
case 110:
|
|
18779
|
+
case 111:
|
|
18780
|
+
case 112:
|
|
18781
|
+
case 113:
|
|
18782
|
+
break;
|
|
18783
|
+
}
|
|
18784
|
+
}
|
|
18785
|
+
if (message.connectReason != null && message.hasOwnProperty("connectReason")) {
|
|
18786
|
+
properties._connectReason = 1;
|
|
18787
|
+
switch (message.connectReason) {
|
|
18788
|
+
default:
|
|
18789
|
+
return "connectReason: enum value expected";
|
|
18790
|
+
case 0:
|
|
18791
|
+
case 1:
|
|
18792
|
+
case 2:
|
|
18793
|
+
case 3:
|
|
18794
|
+
case 4:
|
|
18795
|
+
case 5:
|
|
18796
|
+
break;
|
|
18797
|
+
}
|
|
18798
|
+
}
|
|
18799
|
+
if (message.shards != null && message.hasOwnProperty("shards")) {
|
|
18800
|
+
properties._shards = 1;
|
|
18801
|
+
if (!(message.shards && typeof message.shards.length === "number" || $util.isString(message.shards)))
|
|
18802
|
+
return "shards: buffer expected";
|
|
18803
|
+
}
|
|
18804
|
+
if (message.dnsSource != null && message.hasOwnProperty("dnsSource")) {
|
|
18805
|
+
properties._dnsSource = 1;
|
|
18806
|
+
{
|
|
18807
|
+
var error = $root.proto.ClientPayload.DNSSource.verify(message.dnsSource);
|
|
18808
|
+
if (error)
|
|
18809
|
+
return "dnsSource." + error;
|
|
18810
|
+
}
|
|
18811
|
+
}
|
|
18812
|
+
if (message.device != null && message.hasOwnProperty("device")) {
|
|
18813
|
+
properties._device = 1;
|
|
18814
|
+
if (!$util.isInteger(message.device))
|
|
18815
|
+
return "device: integer expected";
|
|
18816
|
+
}
|
|
18817
|
+
if (message.devicePairingData != null && message.hasOwnProperty("devicePairingData")) {
|
|
18818
|
+
properties._devicePairingData = 1;
|
|
18819
|
+
{
|
|
18820
|
+
var error = $root.proto.ClientPayload.DevicePairingRegistrationData.verify(message.devicePairingData);
|
|
18821
|
+
if (error)
|
|
18822
|
+
return "devicePairingData." + error;
|
|
18823
|
+
}
|
|
18824
|
+
}
|
|
18825
|
+
if (message.pull != null && message.hasOwnProperty("pull")) {
|
|
18826
|
+
properties._pull = 1;
|
|
18827
|
+
if (typeof message.pull !== "boolean")
|
|
18828
|
+
return "pull: boolean expected";
|
|
18829
|
+
}
|
|
18830
|
+
if (message.recoverFromCompanionSession != null && message.hasOwnProperty("recoverFromCompanionSession")) {
|
|
18831
|
+
properties._recoverFromCompanionSession = 1;
|
|
18832
|
+
if (typeof message.recoverFromCompanionSession !== "boolean")
|
|
18833
|
+
return "recoverFromCompanionSession: boolean expected";
|
|
18834
|
+
}
|
|
18835
|
+
if (message.recoverFromSessionPairSignedLtkMessage != null && message.hasOwnProperty("recoverFromSessionPairSignedLtkMessage")) {
|
|
18836
|
+
properties._recoverFromSessionPairSignedLtkMessage = 1;
|
|
18837
|
+
if (typeof message.recoverFromSessionPairSignedLtkMessage !== "boolean")
|
|
18838
|
+
return "recoverFromSessionPairSignedLtkMessage: boolean expected";
|
|
18839
|
+
}
|
|
18840
|
+
if (message.productType != null && message.hasOwnProperty("productType")) {
|
|
18841
|
+
properties._productType = 1;
|
|
18842
|
+
if (!$util.isString(message.productType))
|
|
18843
|
+
return "productType: string expected";
|
|
18844
|
+
}
|
|
18845
|
+
if (message.fidoBrowserEnabled != null && message.hasOwnProperty("fidoBrowserEnabled")) {
|
|
18846
|
+
properties._fidoBrowserEnabled = 1;
|
|
18847
|
+
if (typeof message.fidoBrowserEnabled !== "boolean")
|
|
18848
|
+
return "fidoBrowserEnabled: boolean expected";
|
|
18849
|
+
}
|
|
18850
|
+
if (message.iosPhoneNumberMigration != null && message.hasOwnProperty("iosPhoneNumberMigration")) {
|
|
18851
|
+
properties._iosPhoneNumberMigration = 1;
|
|
18852
|
+
if (typeof message.iosPhoneNumberMigration !== "boolean")
|
|
18853
|
+
return "iosPhoneNumberMigration: boolean expected";
|
|
18854
|
+
}
|
|
18855
|
+
if (message.lidDbMigrated != null && message.hasOwnProperty("lidDbMigrated")) {
|
|
18856
|
+
properties._lidDbMigrated = 1;
|
|
18857
|
+
if (typeof message.lidDbMigrated !== "boolean")
|
|
18858
|
+
return "lidDbMigrated: boolean expected";
|
|
18859
|
+
}
|
|
18860
|
+
return null;
|
|
18861
|
+
};
|
|
18862
|
+
|
|
18863
|
+
/**
|
|
18864
|
+
* Creates a ClientPayload message from a plain object. Also converts values to their respective internal types.
|
|
18865
|
+
* @function fromObject
|
|
18866
|
+
* @memberof proto.ClientPayload
|
|
18867
|
+
* @static
|
|
18868
|
+
* @param {Object.<string,*>} object Plain object
|
|
18869
|
+
* @returns {proto.ClientPayload} ClientPayload
|
|
18870
|
+
*/
|
|
18871
|
+
ClientPayload.fromObject = function fromObject(object) {
|
|
18872
|
+
if (object instanceof $root.proto.ClientPayload)
|
|
18873
|
+
return object;
|
|
18874
|
+
var message = new $root.proto.ClientPayload();
|
|
18875
|
+
if (object.username != null)
|
|
18876
|
+
if ($util.Long)
|
|
18877
|
+
(message.username = $util.Long.fromValue(object.username)).unsigned = true;
|
|
18878
|
+
else if (typeof object.username === "string")
|
|
18879
|
+
message.username = parseInt(object.username, 10);
|
|
18880
|
+
else if (typeof object.username === "number")
|
|
18881
|
+
message.username = object.username;
|
|
18882
|
+
else if (typeof object.username === "object")
|
|
18883
|
+
message.username = new $util.LongBits(object.username.low >>> 0, object.username.high >>> 0).toNumber(true);
|
|
18884
|
+
if (object.passive != null)
|
|
18885
|
+
message.passive = Boolean(object.passive);
|
|
18886
|
+
if (object.userAgent != null) {
|
|
18887
|
+
if (typeof object.userAgent !== "object")
|
|
18888
|
+
throw TypeError(".proto.ClientPayload.userAgent: object expected");
|
|
18889
|
+
message.userAgent = $root.proto.ClientPayload.UserAgent.fromObject(object.userAgent);
|
|
18890
|
+
}
|
|
18891
|
+
if (object.webInfo != null) {
|
|
18892
|
+
if (typeof object.webInfo !== "object")
|
|
18893
|
+
throw TypeError(".proto.ClientPayload.webInfo: object expected");
|
|
18894
|
+
message.webInfo = $root.proto.ClientPayload.WebInfo.fromObject(object.webInfo);
|
|
18895
|
+
}
|
|
18896
|
+
switch (object.connectType) {
|
|
18897
|
+
case "CELLULAR_UNKNOWN":
|
|
18898
|
+
case 0:
|
|
18899
|
+
message.connectType = 0;
|
|
18900
|
+
break;
|
|
18901
|
+
case "WIFI_UNKNOWN":
|
|
18902
|
+
case 1:
|
|
18903
|
+
message.connectType = 1;
|
|
18904
|
+
break;
|
|
18905
|
+
case "CELLULAR_EDGE":
|
|
18906
|
+
case 100:
|
|
18907
|
+
message.connectType = 100;
|
|
18908
|
+
break;
|
|
18909
|
+
case "CELLULAR_IDEN":
|
|
18910
|
+
case 101:
|
|
18911
|
+
message.connectType = 101;
|
|
18912
|
+
break;
|
|
18913
|
+
case "CELLULAR_UMTS":
|
|
18914
|
+
case 102:
|
|
18915
|
+
message.connectType = 102;
|
|
18916
|
+
break;
|
|
18917
|
+
case "CELLULAR_EVDO":
|
|
18918
|
+
case 103:
|
|
18919
|
+
message.connectType = 103;
|
|
18920
|
+
break;
|
|
18921
|
+
case "CELLULAR_GPRS":
|
|
18922
|
+
case 104:
|
|
18923
|
+
message.connectType = 104;
|
|
18924
|
+
break;
|
|
18925
|
+
case "CELLULAR_HSDPA":
|
|
18926
|
+
case 105:
|
|
18927
|
+
message.connectType = 105;
|
|
18928
|
+
break;
|
|
18929
|
+
case "CELLULAR_HSUPA":
|
|
18930
|
+
case 106:
|
|
18931
|
+
message.connectType = 106;
|
|
18932
|
+
break;
|
|
18933
|
+
case "CELLULAR_HSPA":
|
|
18934
|
+
case 107:
|
|
18935
|
+
message.connectType = 107;
|
|
18936
|
+
break;
|
|
18937
|
+
case "CELLULAR_CDMA":
|
|
18938
|
+
case 108:
|
|
18939
|
+
message.connectType = 108;
|
|
18940
|
+
break;
|
|
18941
|
+
case "CELLULAR_1XRTT":
|
|
18942
|
+
case 109:
|
|
18943
|
+
message.connectType = 109;
|
|
18944
|
+
break;
|
|
18945
|
+
case "CELLULAR_EHRPD":
|
|
18946
|
+
case 110:
|
|
18947
|
+
message.connectType = 110;
|
|
18948
|
+
break;
|
|
18949
|
+
case "CELLULAR_LTE":
|
|
18950
|
+
case 111:
|
|
18951
|
+
message.connectType = 111;
|
|
18952
|
+
break;
|
|
18953
|
+
case "CELLULAR_HSPAP":
|
|
18954
|
+
case 112:
|
|
18955
|
+
message.connectType = 112;
|
|
18956
|
+
break;
|
|
18957
|
+
case "CELLULAR_NR":
|
|
18958
|
+
case 113:
|
|
18959
|
+
message.connectType = 113;
|
|
18960
|
+
break;
|
|
18961
|
+
}
|
|
18962
|
+
switch (object.connectReason) {
|
|
18963
|
+
case "PUSH":
|
|
18964
|
+
case 0:
|
|
18965
|
+
message.connectReason = 0;
|
|
18966
|
+
break;
|
|
18967
|
+
case "USER_ACTIVATED":
|
|
18968
|
+
case 1:
|
|
18969
|
+
message.connectReason = 1;
|
|
18970
|
+
break;
|
|
18971
|
+
case "SCHEDULED":
|
|
18972
|
+
case 2:
|
|
18973
|
+
message.connectReason = 2;
|
|
18974
|
+
break;
|
|
18975
|
+
case "ERROR_RECONNECT":
|
|
18976
|
+
case 3:
|
|
18977
|
+
message.connectReason = 3;
|
|
18978
|
+
break;
|
|
18979
|
+
case "NETWORK_SWITCH":
|
|
18980
|
+
case 4:
|
|
18981
|
+
message.connectReason = 4;
|
|
18982
|
+
break;
|
|
18983
|
+
case "PING_RECONNECT":
|
|
18984
|
+
case 5:
|
|
18985
|
+
message.connectReason = 5;
|
|
18986
|
+
break;
|
|
18987
|
+
}
|
|
18988
|
+
if (object.shards != null)
|
|
18989
|
+
if (typeof object.shards === "string")
|
|
18990
|
+
$util.base64.decode(object.shards, message.shards = $util.newBuffer($util.base64.length(object.shards)), 0);
|
|
18991
|
+
else if (object.shards.length)
|
|
18992
|
+
message.shards = object.shards;
|
|
18993
|
+
if (object.dnsSource != null) {
|
|
18994
|
+
if (typeof object.dnsSource !== "object")
|
|
18995
|
+
throw TypeError(".proto.ClientPayload.dnsSource: object expected");
|
|
18996
|
+
message.dnsSource = $root.proto.ClientPayload.DNSSource.fromObject(object.dnsSource);
|
|
18997
|
+
}
|
|
18998
|
+
if (object.device != null)
|
|
18999
|
+
message.device = object.device >>> 0;
|
|
19000
|
+
if (object.devicePairingData != null) {
|
|
19001
|
+
if (typeof object.devicePairingData !== "object")
|
|
19002
|
+
throw TypeError(".proto.ClientPayload.devicePairingData: object expected");
|
|
19003
|
+
message.devicePairingData = $root.proto.ClientPayload.DevicePairingRegistrationData.fromObject(object.devicePairingData);
|
|
19004
|
+
}
|
|
19005
|
+
if (object.pull != null)
|
|
19006
|
+
message.pull = Boolean(object.pull);
|
|
19007
|
+
if (object.recoverFromCompanionSession != null)
|
|
19008
|
+
message.recoverFromCompanionSession = Boolean(object.recoverFromCompanionSession);
|
|
19009
|
+
if (object.recoverFromSessionPairSignedLtkMessage != null)
|
|
19010
|
+
message.recoverFromSessionPairSignedLtkMessage = Boolean(object.recoverFromSessionPairSignedLtkMessage);
|
|
19011
|
+
if (object.productType != null)
|
|
19012
|
+
message.productType = String(object.productType);
|
|
19013
|
+
if (object.fidoBrowserEnabled != null)
|
|
19014
|
+
message.fidoBrowserEnabled = Boolean(object.fidoBrowserEnabled);
|
|
19015
|
+
if (object.iosPhoneNumberMigration != null)
|
|
19016
|
+
message.iosPhoneNumberMigration = Boolean(object.iosPhoneNumberMigration);
|
|
19017
|
+
if (object.lidDbMigrated != null)
|
|
19018
|
+
message.lidDbMigrated = Boolean(object.lidDbMigrated);
|
|
19019
|
+
return message;
|
|
19020
|
+
};
|
|
19021
|
+
|
|
19022
|
+
/**
|
|
19023
|
+
* Creates a plain object from a ClientPayload message. Also converts values to other types if specified.
|
|
19024
|
+
* @function toObject
|
|
19025
|
+
* @memberof proto.ClientPayload
|
|
19026
|
+
* @static
|
|
19027
|
+
* @param {proto.ClientPayload} message ClientPayload
|
|
19028
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19029
|
+
* @returns {Object.<string,*>} Plain object
|
|
19030
|
+
*/
|
|
19031
|
+
ClientPayload.toObject = function toObject(message, options) {
|
|
19032
|
+
if (!options)
|
|
19033
|
+
options = {};
|
|
19034
|
+
var object = {};
|
|
19035
|
+
if (message.username != null && message.hasOwnProperty("username")) {
|
|
19036
|
+
if (typeof message.username === "number")
|
|
19037
|
+
object.username = options.longs === String ? String(message.username) : message.username;
|
|
19038
|
+
else
|
|
19039
|
+
object.username = options.longs === String ? $util.Long.prototype.toString.call(message.username) : options.longs === Number ? new $util.LongBits(message.username.low >>> 0, message.username.high >>> 0).toNumber(true) : message.username;
|
|
19040
|
+
if (options.oneofs)
|
|
19041
|
+
object._username = "username";
|
|
19042
|
+
}
|
|
19043
|
+
if (message.passive != null && message.hasOwnProperty("passive")) {
|
|
19044
|
+
object.passive = message.passive;
|
|
19045
|
+
if (options.oneofs)
|
|
19046
|
+
object._passive = "passive";
|
|
19047
|
+
}
|
|
19048
|
+
if (message.userAgent != null && message.hasOwnProperty("userAgent")) {
|
|
19049
|
+
object.userAgent = $root.proto.ClientPayload.UserAgent.toObject(message.userAgent, options);
|
|
19050
|
+
if (options.oneofs)
|
|
19051
|
+
object._userAgent = "userAgent";
|
|
19052
|
+
}
|
|
19053
|
+
if (message.webInfo != null && message.hasOwnProperty("webInfo")) {
|
|
19054
|
+
object.webInfo = $root.proto.ClientPayload.WebInfo.toObject(message.webInfo, options);
|
|
19055
|
+
if (options.oneofs)
|
|
19056
|
+
object._webInfo = "webInfo";
|
|
19057
|
+
}
|
|
19058
|
+
if (message.connectType != null && message.hasOwnProperty("connectType")) {
|
|
19059
|
+
object.connectType = options.enums === String ? $root.proto.ClientPayload.ConnectType[message.connectType] : message.connectType;
|
|
19060
|
+
if (options.oneofs)
|
|
19061
|
+
object._connectType = "connectType";
|
|
19062
|
+
}
|
|
19063
|
+
if (message.connectReason != null && message.hasOwnProperty("connectReason")) {
|
|
19064
|
+
object.connectReason = options.enums === String ? $root.proto.ClientPayload.ConnectReason[message.connectReason] : message.connectReason;
|
|
19065
|
+
if (options.oneofs)
|
|
19066
|
+
object._connectReason = "connectReason";
|
|
19067
|
+
}
|
|
19068
|
+
if (message.shards != null && message.hasOwnProperty("shards")) {
|
|
19069
|
+
object.shards = options.bytes === String ? $util.base64.encode(message.shards, 0, message.shards.length) : options.bytes === Array ? Array.prototype.slice.call(message.shards) : message.shards;
|
|
19070
|
+
if (options.oneofs)
|
|
19071
|
+
object._shards = "shards";
|
|
19072
|
+
}
|
|
19073
|
+
if (message.dnsSource != null && message.hasOwnProperty("dnsSource")) {
|
|
19074
|
+
object.dnsSource = $root.proto.ClientPayload.DNSSource.toObject(message.dnsSource, options);
|
|
19075
|
+
if (options.oneofs)
|
|
19076
|
+
object._dnsSource = "dnsSource";
|
|
19077
|
+
}
|
|
19078
|
+
if (message.device != null && message.hasOwnProperty("device")) {
|
|
19079
|
+
object.device = message.device;
|
|
19080
|
+
if (options.oneofs)
|
|
19081
|
+
object._device = "device";
|
|
19082
|
+
}
|
|
19083
|
+
if (message.devicePairingData != null && message.hasOwnProperty("devicePairingData")) {
|
|
19084
|
+
object.devicePairingData = $root.proto.ClientPayload.DevicePairingRegistrationData.toObject(message.devicePairingData, options);
|
|
19085
|
+
if (options.oneofs)
|
|
19086
|
+
object._devicePairingData = "devicePairingData";
|
|
19087
|
+
}
|
|
19088
|
+
if (message.pull != null && message.hasOwnProperty("pull")) {
|
|
19089
|
+
object.pull = message.pull;
|
|
19090
|
+
if (options.oneofs)
|
|
19091
|
+
object._pull = "pull";
|
|
19092
|
+
}
|
|
19093
|
+
if (message.recoverFromCompanionSession != null && message.hasOwnProperty("recoverFromCompanionSession")) {
|
|
19094
|
+
object.recoverFromCompanionSession = message.recoverFromCompanionSession;
|
|
19095
|
+
if (options.oneofs)
|
|
19096
|
+
object._recoverFromCompanionSession = "recoverFromCompanionSession";
|
|
19097
|
+
}
|
|
19098
|
+
if (message.recoverFromSessionPairSignedLtkMessage != null && message.hasOwnProperty("recoverFromSessionPairSignedLtkMessage")) {
|
|
19099
|
+
object.recoverFromSessionPairSignedLtkMessage = message.recoverFromSessionPairSignedLtkMessage;
|
|
19100
|
+
if (options.oneofs)
|
|
19101
|
+
object._recoverFromSessionPairSignedLtkMessage = "recoverFromSessionPairSignedLtkMessage";
|
|
19102
|
+
}
|
|
19103
|
+
if (message.productType != null && message.hasOwnProperty("productType")) {
|
|
19104
|
+
object.productType = message.productType;
|
|
19105
|
+
if (options.oneofs)
|
|
19106
|
+
object._productType = "productType";
|
|
19107
|
+
}
|
|
19108
|
+
if (message.fidoBrowserEnabled != null && message.hasOwnProperty("fidoBrowserEnabled")) {
|
|
19109
|
+
object.fidoBrowserEnabled = message.fidoBrowserEnabled;
|
|
19110
|
+
if (options.oneofs)
|
|
19111
|
+
object._fidoBrowserEnabled = "fidoBrowserEnabled";
|
|
19112
|
+
}
|
|
19113
|
+
if (message.iosPhoneNumberMigration != null && message.hasOwnProperty("iosPhoneNumberMigration")) {
|
|
19114
|
+
object.iosPhoneNumberMigration = message.iosPhoneNumberMigration;
|
|
19115
|
+
if (options.oneofs)
|
|
19116
|
+
object._iosPhoneNumberMigration = "iosPhoneNumberMigration";
|
|
19117
|
+
}
|
|
19118
|
+
if (message.lidDbMigrated != null && message.hasOwnProperty("lidDbMigrated")) {
|
|
19119
|
+
object.lidDbMigrated = message.lidDbMigrated;
|
|
19120
|
+
if (options.oneofs)
|
|
19121
|
+
object._lidDbMigrated = "lidDbMigrated";
|
|
19122
|
+
}
|
|
19123
|
+
return object;
|
|
19124
|
+
};
|
|
19125
|
+
|
|
19126
|
+
/**
|
|
19127
|
+
* Converts this ClientPayload to JSON.
|
|
19128
|
+
* @function toJSON
|
|
19129
|
+
* @memberof proto.ClientPayload
|
|
19130
|
+
* @instance
|
|
19131
|
+
* @returns {Object.<string,*>} JSON object
|
|
19132
|
+
*/
|
|
19133
|
+
ClientPayload.prototype.toJSON = function toJSON() {
|
|
19134
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19135
|
+
};
|
|
19136
|
+
|
|
19137
|
+
/**
|
|
19138
|
+
* ConnectReason enum.
|
|
19139
|
+
* @name proto.ClientPayload.ConnectReason
|
|
19140
|
+
* @enum {number}
|
|
19141
|
+
* @property {number} PUSH=0 PUSH value
|
|
19142
|
+
* @property {number} USER_ACTIVATED=1 USER_ACTIVATED value
|
|
19143
|
+
* @property {number} SCHEDULED=2 SCHEDULED value
|
|
19144
|
+
* @property {number} ERROR_RECONNECT=3 ERROR_RECONNECT value
|
|
19145
|
+
* @property {number} NETWORK_SWITCH=4 NETWORK_SWITCH value
|
|
19146
|
+
* @property {number} PING_RECONNECT=5 PING_RECONNECT value
|
|
19147
|
+
*/
|
|
19148
|
+
ClientPayload.ConnectReason = (function() {
|
|
19149
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
19150
|
+
values[valuesById[0] = "PUSH"] = 0;
|
|
19151
|
+
values[valuesById[1] = "USER_ACTIVATED"] = 1;
|
|
19152
|
+
values[valuesById[2] = "SCHEDULED"] = 2;
|
|
19153
|
+
values[valuesById[3] = "ERROR_RECONNECT"] = 3;
|
|
19154
|
+
values[valuesById[4] = "NETWORK_SWITCH"] = 4;
|
|
19155
|
+
values[valuesById[5] = "PING_RECONNECT"] = 5;
|
|
19156
|
+
return values;
|
|
19157
|
+
})();
|
|
19158
|
+
|
|
19159
|
+
/**
|
|
19160
|
+
* ConnectType enum.
|
|
19161
|
+
* @name proto.ClientPayload.ConnectType
|
|
19162
|
+
* @enum {number}
|
|
19163
|
+
* @property {number} CELLULAR_UNKNOWN=0 CELLULAR_UNKNOWN value
|
|
19164
|
+
* @property {number} WIFI_UNKNOWN=1 WIFI_UNKNOWN value
|
|
19165
|
+
* @property {number} CELLULAR_EDGE=100 CELLULAR_EDGE value
|
|
19166
|
+
* @property {number} CELLULAR_IDEN=101 CELLULAR_IDEN value
|
|
19167
|
+
* @property {number} CELLULAR_UMTS=102 CELLULAR_UMTS value
|
|
19168
|
+
* @property {number} CELLULAR_EVDO=103 CELLULAR_EVDO value
|
|
19169
|
+
* @property {number} CELLULAR_GPRS=104 CELLULAR_GPRS value
|
|
19170
|
+
* @property {number} CELLULAR_HSDPA=105 CELLULAR_HSDPA value
|
|
19171
|
+
* @property {number} CELLULAR_HSUPA=106 CELLULAR_HSUPA value
|
|
19172
|
+
* @property {number} CELLULAR_HSPA=107 CELLULAR_HSPA value
|
|
19173
|
+
* @property {number} CELLULAR_CDMA=108 CELLULAR_CDMA value
|
|
19174
|
+
* @property {number} CELLULAR_1XRTT=109 CELLULAR_1XRTT value
|
|
19175
|
+
* @property {number} CELLULAR_EHRPD=110 CELLULAR_EHRPD value
|
|
19176
|
+
* @property {number} CELLULAR_LTE=111 CELLULAR_LTE value
|
|
19177
|
+
* @property {number} CELLULAR_HSPAP=112 CELLULAR_HSPAP value
|
|
19178
|
+
* @property {number} CELLULAR_NR=113 CELLULAR_NR value
|
|
19179
|
+
*/
|
|
19180
|
+
ClientPayload.ConnectType = (function() {
|
|
19181
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
19182
|
+
values[valuesById[0] = "CELLULAR_UNKNOWN"] = 0;
|
|
19183
|
+
values[valuesById[1] = "WIFI_UNKNOWN"] = 1;
|
|
19184
|
+
values[valuesById[100] = "CELLULAR_EDGE"] = 100;
|
|
19185
|
+
values[valuesById[101] = "CELLULAR_IDEN"] = 101;
|
|
19186
|
+
values[valuesById[102] = "CELLULAR_UMTS"] = 102;
|
|
19187
|
+
values[valuesById[103] = "CELLULAR_EVDO"] = 103;
|
|
19188
|
+
values[valuesById[104] = "CELLULAR_GPRS"] = 104;
|
|
19189
|
+
values[valuesById[105] = "CELLULAR_HSDPA"] = 105;
|
|
19190
|
+
values[valuesById[106] = "CELLULAR_HSUPA"] = 106;
|
|
19191
|
+
values[valuesById[107] = "CELLULAR_HSPA"] = 107;
|
|
19192
|
+
values[valuesById[108] = "CELLULAR_CDMA"] = 108;
|
|
19193
|
+
values[valuesById[109] = "CELLULAR_1XRTT"] = 109;
|
|
19194
|
+
values[valuesById[110] = "CELLULAR_EHRPD"] = 110;
|
|
19195
|
+
values[valuesById[111] = "CELLULAR_LTE"] = 111;
|
|
19196
|
+
values[valuesById[112] = "CELLULAR_HSPAP"] = 112;
|
|
19197
|
+
values[valuesById[113] = "CELLULAR_NR"] = 113;
|
|
19198
|
+
return values;
|
|
19199
|
+
})();
|
|
19200
|
+
|
|
19201
|
+
ClientPayload.DevicePairingRegistrationData = (function() {
|
|
19202
|
+
|
|
19203
|
+
/**
|
|
19204
|
+
* Properties of a DevicePairingRegistrationData.
|
|
19205
|
+
* @memberof proto.ClientPayload
|
|
19206
|
+
* @interface IDevicePairingRegistrationData
|
|
19207
|
+
* @property {Uint8Array|null} [eRegid] DevicePairingRegistrationData eRegid
|
|
19208
|
+
* @property {Uint8Array|null} [eKeytype] DevicePairingRegistrationData eKeytype
|
|
19209
|
+
* @property {Uint8Array|null} [eIdent] DevicePairingRegistrationData eIdent
|
|
19210
|
+
* @property {Uint8Array|null} [eSkeyId] DevicePairingRegistrationData eSkeyId
|
|
19211
|
+
* @property {Uint8Array|null} [eSkeyVal] DevicePairingRegistrationData eSkeyVal
|
|
19212
|
+
* @property {Uint8Array|null} [eSkeySig] DevicePairingRegistrationData eSkeySig
|
|
19213
|
+
* @property {Uint8Array|null} [buildHash] DevicePairingRegistrationData buildHash
|
|
19214
|
+
* @property {Uint8Array|null} [deviceProps] DevicePairingRegistrationData deviceProps
|
|
19215
|
+
*/
|
|
19216
|
+
|
|
19217
|
+
/**
|
|
19218
|
+
* Constructs a new DevicePairingRegistrationData.
|
|
19219
|
+
* @memberof proto.ClientPayload
|
|
19220
|
+
* @classdesc Represents a DevicePairingRegistrationData.
|
|
19221
|
+
* @implements IDevicePairingRegistrationData
|
|
19222
|
+
* @constructor
|
|
19223
|
+
* @param {proto.ClientPayload.IDevicePairingRegistrationData=} [properties] Properties to set
|
|
19224
|
+
*/
|
|
19225
|
+
function DevicePairingRegistrationData(properties) {
|
|
19226
|
+
if (properties)
|
|
19227
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19228
|
+
if (properties[keys[i]] != null)
|
|
19229
|
+
this[keys[i]] = properties[keys[i]];
|
|
19230
|
+
}
|
|
19231
|
+
|
|
19232
|
+
/**
|
|
19233
|
+
* DevicePairingRegistrationData eRegid.
|
|
19234
|
+
* @member {Uint8Array|null|undefined} eRegid
|
|
19235
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19236
|
+
* @instance
|
|
19237
|
+
*/
|
|
19238
|
+
DevicePairingRegistrationData.prototype.eRegid = null;
|
|
19239
|
+
|
|
19240
|
+
/**
|
|
19241
|
+
* DevicePairingRegistrationData eKeytype.
|
|
19242
|
+
* @member {Uint8Array|null|undefined} eKeytype
|
|
19243
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19244
|
+
* @instance
|
|
19245
|
+
*/
|
|
19246
|
+
DevicePairingRegistrationData.prototype.eKeytype = null;
|
|
19247
|
+
|
|
19248
|
+
/**
|
|
19249
|
+
* DevicePairingRegistrationData eIdent.
|
|
19250
|
+
* @member {Uint8Array|null|undefined} eIdent
|
|
19251
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19252
|
+
* @instance
|
|
19253
|
+
*/
|
|
19254
|
+
DevicePairingRegistrationData.prototype.eIdent = null;
|
|
19255
|
+
|
|
19256
|
+
/**
|
|
19257
|
+
* DevicePairingRegistrationData eSkeyId.
|
|
19258
|
+
* @member {Uint8Array|null|undefined} eSkeyId
|
|
19259
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19260
|
+
* @instance
|
|
19261
|
+
*/
|
|
19262
|
+
DevicePairingRegistrationData.prototype.eSkeyId = null;
|
|
19263
|
+
|
|
19264
|
+
/**
|
|
19265
|
+
* DevicePairingRegistrationData eSkeyVal.
|
|
19266
|
+
* @member {Uint8Array|null|undefined} eSkeyVal
|
|
19267
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19268
|
+
* @instance
|
|
19269
|
+
*/
|
|
19270
|
+
DevicePairingRegistrationData.prototype.eSkeyVal = null;
|
|
19271
|
+
|
|
19272
|
+
/**
|
|
19273
|
+
* DevicePairingRegistrationData eSkeySig.
|
|
19274
|
+
* @member {Uint8Array|null|undefined} eSkeySig
|
|
19275
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19276
|
+
* @instance
|
|
19277
|
+
*/
|
|
19278
|
+
DevicePairingRegistrationData.prototype.eSkeySig = null;
|
|
19279
|
+
|
|
19280
|
+
/**
|
|
19281
|
+
* DevicePairingRegistrationData buildHash.
|
|
19282
|
+
* @member {Uint8Array|null|undefined} buildHash
|
|
19283
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19284
|
+
* @instance
|
|
19285
|
+
*/
|
|
19286
|
+
DevicePairingRegistrationData.prototype.buildHash = null;
|
|
19287
|
+
|
|
19288
|
+
/**
|
|
19289
|
+
* DevicePairingRegistrationData deviceProps.
|
|
19290
|
+
* @member {Uint8Array|null|undefined} deviceProps
|
|
19291
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19292
|
+
* @instance
|
|
19293
|
+
*/
|
|
19294
|
+
DevicePairingRegistrationData.prototype.deviceProps = null;
|
|
19295
|
+
|
|
19296
|
+
// OneOf field names bound to virtual getters and setters
|
|
19297
|
+
var $oneOfFields;
|
|
19298
|
+
|
|
19299
|
+
/**
|
|
19300
|
+
* DevicePairingRegistrationData _eRegid.
|
|
19301
|
+
* @member {"eRegid"|undefined} _eRegid
|
|
19302
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19303
|
+
* @instance
|
|
19304
|
+
*/
|
|
19305
|
+
Object.defineProperty(DevicePairingRegistrationData.prototype, "_eRegid", {
|
|
19306
|
+
get: $util.oneOfGetter($oneOfFields = ["eRegid"]),
|
|
19307
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19308
|
+
});
|
|
19309
|
+
|
|
19310
|
+
/**
|
|
19311
|
+
* DevicePairingRegistrationData _eKeytype.
|
|
19312
|
+
* @member {"eKeytype"|undefined} _eKeytype
|
|
19313
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19314
|
+
* @instance
|
|
19315
|
+
*/
|
|
19316
|
+
Object.defineProperty(DevicePairingRegistrationData.prototype, "_eKeytype", {
|
|
19317
|
+
get: $util.oneOfGetter($oneOfFields = ["eKeytype"]),
|
|
19318
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19319
|
+
});
|
|
19320
|
+
|
|
19321
|
+
/**
|
|
19322
|
+
* DevicePairingRegistrationData _eIdent.
|
|
19323
|
+
* @member {"eIdent"|undefined} _eIdent
|
|
19324
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19325
|
+
* @instance
|
|
19326
|
+
*/
|
|
19327
|
+
Object.defineProperty(DevicePairingRegistrationData.prototype, "_eIdent", {
|
|
19328
|
+
get: $util.oneOfGetter($oneOfFields = ["eIdent"]),
|
|
19329
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19330
|
+
});
|
|
19331
|
+
|
|
19332
|
+
/**
|
|
19333
|
+
* DevicePairingRegistrationData _eSkeyId.
|
|
19334
|
+
* @member {"eSkeyId"|undefined} _eSkeyId
|
|
19335
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19336
|
+
* @instance
|
|
19337
|
+
*/
|
|
19338
|
+
Object.defineProperty(DevicePairingRegistrationData.prototype, "_eSkeyId", {
|
|
19339
|
+
get: $util.oneOfGetter($oneOfFields = ["eSkeyId"]),
|
|
19340
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19341
|
+
});
|
|
19342
|
+
|
|
19343
|
+
/**
|
|
19344
|
+
* DevicePairingRegistrationData _eSkeyVal.
|
|
19345
|
+
* @member {"eSkeyVal"|undefined} _eSkeyVal
|
|
19346
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19347
|
+
* @instance
|
|
19348
|
+
*/
|
|
19349
|
+
Object.defineProperty(DevicePairingRegistrationData.prototype, "_eSkeyVal", {
|
|
19350
|
+
get: $util.oneOfGetter($oneOfFields = ["eSkeyVal"]),
|
|
19351
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19352
|
+
});
|
|
19353
|
+
|
|
19354
|
+
/**
|
|
19355
|
+
* DevicePairingRegistrationData _eSkeySig.
|
|
19356
|
+
* @member {"eSkeySig"|undefined} _eSkeySig
|
|
19357
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19358
|
+
* @instance
|
|
19359
|
+
*/
|
|
19360
|
+
Object.defineProperty(DevicePairingRegistrationData.prototype, "_eSkeySig", {
|
|
19361
|
+
get: $util.oneOfGetter($oneOfFields = ["eSkeySig"]),
|
|
19362
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19363
|
+
});
|
|
19364
|
+
|
|
19365
|
+
/**
|
|
19366
|
+
* DevicePairingRegistrationData _buildHash.
|
|
19367
|
+
* @member {"buildHash"|undefined} _buildHash
|
|
19368
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19369
|
+
* @instance
|
|
19370
|
+
*/
|
|
19371
|
+
Object.defineProperty(DevicePairingRegistrationData.prototype, "_buildHash", {
|
|
19372
|
+
get: $util.oneOfGetter($oneOfFields = ["buildHash"]),
|
|
19373
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19374
|
+
});
|
|
19375
|
+
|
|
19376
|
+
/**
|
|
19377
|
+
* DevicePairingRegistrationData _deviceProps.
|
|
19378
|
+
* @member {"deviceProps"|undefined} _deviceProps
|
|
19379
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19380
|
+
* @instance
|
|
19381
|
+
*/
|
|
19382
|
+
Object.defineProperty(DevicePairingRegistrationData.prototype, "_deviceProps", {
|
|
19383
|
+
get: $util.oneOfGetter($oneOfFields = ["deviceProps"]),
|
|
19384
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19385
|
+
});
|
|
19386
|
+
|
|
19387
|
+
/**
|
|
19388
|
+
* Creates a new DevicePairingRegistrationData instance using the specified properties.
|
|
19389
|
+
* @function create
|
|
19390
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19391
|
+
* @static
|
|
19392
|
+
* @param {proto.ClientPayload.IDevicePairingRegistrationData=} [properties] Properties to set
|
|
19393
|
+
* @returns {proto.ClientPayload.DevicePairingRegistrationData} DevicePairingRegistrationData instance
|
|
19394
|
+
*/
|
|
19395
|
+
DevicePairingRegistrationData.create = function create(properties) {
|
|
19396
|
+
return new DevicePairingRegistrationData(properties);
|
|
19397
|
+
};
|
|
19398
|
+
|
|
19399
|
+
/**
|
|
19400
|
+
* Encodes the specified DevicePairingRegistrationData message. Does not implicitly {@link proto.ClientPayload.DevicePairingRegistrationData.verify|verify} messages.
|
|
19401
|
+
* @function encode
|
|
19402
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19403
|
+
* @static
|
|
19404
|
+
* @param {proto.ClientPayload.IDevicePairingRegistrationData} message DevicePairingRegistrationData message or plain object to encode
|
|
19405
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19406
|
+
* @returns {$protobuf.Writer} Writer
|
|
19407
|
+
*/
|
|
19408
|
+
DevicePairingRegistrationData.encode = function encode(message, writer) {
|
|
19409
|
+
if (!writer)
|
|
19410
|
+
writer = $Writer.create();
|
|
19411
|
+
if (message.eRegid != null && Object.hasOwnProperty.call(message, "eRegid"))
|
|
19412
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.eRegid);
|
|
19413
|
+
if (message.eKeytype != null && Object.hasOwnProperty.call(message, "eKeytype"))
|
|
19414
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.eKeytype);
|
|
19415
|
+
if (message.eIdent != null && Object.hasOwnProperty.call(message, "eIdent"))
|
|
19416
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.eIdent);
|
|
19417
|
+
if (message.eSkeyId != null && Object.hasOwnProperty.call(message, "eSkeyId"))
|
|
19418
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.eSkeyId);
|
|
19419
|
+
if (message.eSkeyVal != null && Object.hasOwnProperty.call(message, "eSkeyVal"))
|
|
19420
|
+
writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.eSkeyVal);
|
|
19421
|
+
if (message.eSkeySig != null && Object.hasOwnProperty.call(message, "eSkeySig"))
|
|
19422
|
+
writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.eSkeySig);
|
|
19423
|
+
if (message.buildHash != null && Object.hasOwnProperty.call(message, "buildHash"))
|
|
19424
|
+
writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.buildHash);
|
|
19425
|
+
if (message.deviceProps != null && Object.hasOwnProperty.call(message, "deviceProps"))
|
|
19426
|
+
writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.deviceProps);
|
|
19427
|
+
return writer;
|
|
19428
|
+
};
|
|
19429
|
+
|
|
19430
|
+
/**
|
|
19431
|
+
* Encodes the specified DevicePairingRegistrationData message, length delimited. Does not implicitly {@link proto.ClientPayload.DevicePairingRegistrationData.verify|verify} messages.
|
|
19432
|
+
* @function encodeDelimited
|
|
19433
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19434
|
+
* @static
|
|
19435
|
+
* @param {proto.ClientPayload.IDevicePairingRegistrationData} message DevicePairingRegistrationData message or plain object to encode
|
|
19436
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19437
|
+
* @returns {$protobuf.Writer} Writer
|
|
19438
|
+
*/
|
|
19439
|
+
DevicePairingRegistrationData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19440
|
+
return this.encode(message, writer).ldelim();
|
|
19441
|
+
};
|
|
19442
|
+
|
|
19443
|
+
/**
|
|
19444
|
+
* Decodes a DevicePairingRegistrationData message from the specified reader or buffer.
|
|
19445
|
+
* @function decode
|
|
19446
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19447
|
+
* @static
|
|
19448
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19449
|
+
* @param {number} [length] Message length if known beforehand
|
|
19450
|
+
* @returns {proto.ClientPayload.DevicePairingRegistrationData} DevicePairingRegistrationData
|
|
19451
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19452
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19453
|
+
*/
|
|
19454
|
+
DevicePairingRegistrationData.decode = function decode(reader, length) {
|
|
19455
|
+
if (!(reader instanceof $Reader))
|
|
19456
|
+
reader = $Reader.create(reader);
|
|
19457
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.ClientPayload.DevicePairingRegistrationData();
|
|
19458
|
+
while (reader.pos < end) {
|
|
19459
|
+
var tag = reader.uint32();
|
|
19460
|
+
switch (tag >>> 3) {
|
|
19461
|
+
case 1:
|
|
19462
|
+
message.eRegid = reader.bytes();
|
|
19463
|
+
break;
|
|
19464
|
+
case 2:
|
|
19465
|
+
message.eKeytype = reader.bytes();
|
|
19466
|
+
break;
|
|
19467
|
+
case 3:
|
|
19468
|
+
message.eIdent = reader.bytes();
|
|
19469
|
+
break;
|
|
19470
|
+
case 4:
|
|
19471
|
+
message.eSkeyId = reader.bytes();
|
|
19472
|
+
break;
|
|
19473
|
+
case 5:
|
|
19474
|
+
message.eSkeyVal = reader.bytes();
|
|
19475
|
+
break;
|
|
19476
|
+
case 6:
|
|
19477
|
+
message.eSkeySig = reader.bytes();
|
|
19478
|
+
break;
|
|
19479
|
+
case 7:
|
|
19480
|
+
message.buildHash = reader.bytes();
|
|
19481
|
+
break;
|
|
19482
|
+
case 8:
|
|
19483
|
+
message.deviceProps = reader.bytes();
|
|
19484
|
+
break;
|
|
19485
|
+
default:
|
|
19486
|
+
reader.skipType(tag & 7);
|
|
19487
|
+
break;
|
|
19488
|
+
}
|
|
19489
|
+
}
|
|
19490
|
+
return message;
|
|
19491
|
+
};
|
|
19492
|
+
|
|
19493
|
+
/**
|
|
19494
|
+
* Decodes a DevicePairingRegistrationData message from the specified reader or buffer, length delimited.
|
|
19495
|
+
* @function decodeDelimited
|
|
19496
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19497
|
+
* @static
|
|
19498
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19499
|
+
* @returns {proto.ClientPayload.DevicePairingRegistrationData} DevicePairingRegistrationData
|
|
19500
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19501
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19502
|
+
*/
|
|
19503
|
+
DevicePairingRegistrationData.decodeDelimited = function decodeDelimited(reader) {
|
|
19504
|
+
if (!(reader instanceof $Reader))
|
|
19505
|
+
reader = new $Reader(reader);
|
|
19506
|
+
return this.decode(reader, reader.uint32());
|
|
19507
|
+
};
|
|
19508
|
+
|
|
19509
|
+
/**
|
|
19510
|
+
* Verifies a DevicePairingRegistrationData message.
|
|
19511
|
+
* @function verify
|
|
19512
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19513
|
+
* @static
|
|
19514
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19515
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19516
|
+
*/
|
|
19517
|
+
DevicePairingRegistrationData.verify = function verify(message) {
|
|
19518
|
+
if (typeof message !== "object" || message === null)
|
|
19519
|
+
return "object expected";
|
|
19520
|
+
var properties = {};
|
|
19521
|
+
if (message.eRegid != null && message.hasOwnProperty("eRegid")) {
|
|
19522
|
+
properties._eRegid = 1;
|
|
19523
|
+
if (!(message.eRegid && typeof message.eRegid.length === "number" || $util.isString(message.eRegid)))
|
|
19524
|
+
return "eRegid: buffer expected";
|
|
19525
|
+
}
|
|
19526
|
+
if (message.eKeytype != null && message.hasOwnProperty("eKeytype")) {
|
|
19527
|
+
properties._eKeytype = 1;
|
|
19528
|
+
if (!(message.eKeytype && typeof message.eKeytype.length === "number" || $util.isString(message.eKeytype)))
|
|
19529
|
+
return "eKeytype: buffer expected";
|
|
19530
|
+
}
|
|
19531
|
+
if (message.eIdent != null && message.hasOwnProperty("eIdent")) {
|
|
19532
|
+
properties._eIdent = 1;
|
|
19533
|
+
if (!(message.eIdent && typeof message.eIdent.length === "number" || $util.isString(message.eIdent)))
|
|
19534
|
+
return "eIdent: buffer expected";
|
|
19535
|
+
}
|
|
19536
|
+
if (message.eSkeyId != null && message.hasOwnProperty("eSkeyId")) {
|
|
19537
|
+
properties._eSkeyId = 1;
|
|
19538
|
+
if (!(message.eSkeyId && typeof message.eSkeyId.length === "number" || $util.isString(message.eSkeyId)))
|
|
19539
|
+
return "eSkeyId: buffer expected";
|
|
19540
|
+
}
|
|
19541
|
+
if (message.eSkeyVal != null && message.hasOwnProperty("eSkeyVal")) {
|
|
19542
|
+
properties._eSkeyVal = 1;
|
|
19543
|
+
if (!(message.eSkeyVal && typeof message.eSkeyVal.length === "number" || $util.isString(message.eSkeyVal)))
|
|
19544
|
+
return "eSkeyVal: buffer expected";
|
|
19545
|
+
}
|
|
19546
|
+
if (message.eSkeySig != null && message.hasOwnProperty("eSkeySig")) {
|
|
19547
|
+
properties._eSkeySig = 1;
|
|
19548
|
+
if (!(message.eSkeySig && typeof message.eSkeySig.length === "number" || $util.isString(message.eSkeySig)))
|
|
19549
|
+
return "eSkeySig: buffer expected";
|
|
19550
|
+
}
|
|
19551
|
+
if (message.buildHash != null && message.hasOwnProperty("buildHash")) {
|
|
19552
|
+
properties._buildHash = 1;
|
|
19553
|
+
if (!(message.buildHash && typeof message.buildHash.length === "number" || $util.isString(message.buildHash)))
|
|
19554
|
+
return "buildHash: buffer expected";
|
|
19555
|
+
}
|
|
19556
|
+
if (message.deviceProps != null && message.hasOwnProperty("deviceProps")) {
|
|
19557
|
+
properties._deviceProps = 1;
|
|
19558
|
+
if (!(message.deviceProps && typeof message.deviceProps.length === "number" || $util.isString(message.deviceProps)))
|
|
19559
|
+
return "deviceProps: buffer expected";
|
|
19560
|
+
}
|
|
19561
|
+
return null;
|
|
19562
|
+
};
|
|
19563
|
+
|
|
19564
|
+
/**
|
|
19565
|
+
* Creates a DevicePairingRegistrationData message from a plain object. Also converts values to their respective internal types.
|
|
19566
|
+
* @function fromObject
|
|
19567
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19568
|
+
* @static
|
|
19569
|
+
* @param {Object.<string,*>} object Plain object
|
|
19570
|
+
* @returns {proto.ClientPayload.DevicePairingRegistrationData} DevicePairingRegistrationData
|
|
19571
|
+
*/
|
|
19572
|
+
DevicePairingRegistrationData.fromObject = function fromObject(object) {
|
|
19573
|
+
if (object instanceof $root.proto.ClientPayload.DevicePairingRegistrationData)
|
|
19574
|
+
return object;
|
|
19575
|
+
var message = new $root.proto.ClientPayload.DevicePairingRegistrationData();
|
|
19576
|
+
if (object.eRegid != null)
|
|
19577
|
+
if (typeof object.eRegid === "string")
|
|
19578
|
+
$util.base64.decode(object.eRegid, message.eRegid = $util.newBuffer($util.base64.length(object.eRegid)), 0);
|
|
19579
|
+
else if (object.eRegid.length)
|
|
19580
|
+
message.eRegid = object.eRegid;
|
|
19581
|
+
if (object.eKeytype != null)
|
|
19582
|
+
if (typeof object.eKeytype === "string")
|
|
19583
|
+
$util.base64.decode(object.eKeytype, message.eKeytype = $util.newBuffer($util.base64.length(object.eKeytype)), 0);
|
|
19584
|
+
else if (object.eKeytype.length)
|
|
19585
|
+
message.eKeytype = object.eKeytype;
|
|
19586
|
+
if (object.eIdent != null)
|
|
19587
|
+
if (typeof object.eIdent === "string")
|
|
19588
|
+
$util.base64.decode(object.eIdent, message.eIdent = $util.newBuffer($util.base64.length(object.eIdent)), 0);
|
|
19589
|
+
else if (object.eIdent.length)
|
|
19590
|
+
message.eIdent = object.eIdent;
|
|
19591
|
+
if (object.eSkeyId != null)
|
|
19592
|
+
if (typeof object.eSkeyId === "string")
|
|
19593
|
+
$util.base64.decode(object.eSkeyId, message.eSkeyId = $util.newBuffer($util.base64.length(object.eSkeyId)), 0);
|
|
19594
|
+
else if (object.eSkeyId.length)
|
|
19595
|
+
message.eSkeyId = object.eSkeyId;
|
|
19596
|
+
if (object.eSkeyVal != null)
|
|
19597
|
+
if (typeof object.eSkeyVal === "string")
|
|
19598
|
+
$util.base64.decode(object.eSkeyVal, message.eSkeyVal = $util.newBuffer($util.base64.length(object.eSkeyVal)), 0);
|
|
19599
|
+
else if (object.eSkeyVal.length)
|
|
19600
|
+
message.eSkeyVal = object.eSkeyVal;
|
|
19601
|
+
if (object.eSkeySig != null)
|
|
19602
|
+
if (typeof object.eSkeySig === "string")
|
|
19603
|
+
$util.base64.decode(object.eSkeySig, message.eSkeySig = $util.newBuffer($util.base64.length(object.eSkeySig)), 0);
|
|
19604
|
+
else if (object.eSkeySig.length)
|
|
19605
|
+
message.eSkeySig = object.eSkeySig;
|
|
19606
|
+
if (object.buildHash != null)
|
|
19607
|
+
if (typeof object.buildHash === "string")
|
|
19608
|
+
$util.base64.decode(object.buildHash, message.buildHash = $util.newBuffer($util.base64.length(object.buildHash)), 0);
|
|
19609
|
+
else if (object.buildHash.length)
|
|
19610
|
+
message.buildHash = object.buildHash;
|
|
19611
|
+
if (object.deviceProps != null)
|
|
19612
|
+
if (typeof object.deviceProps === "string")
|
|
19613
|
+
$util.base64.decode(object.deviceProps, message.deviceProps = $util.newBuffer($util.base64.length(object.deviceProps)), 0);
|
|
19614
|
+
else if (object.deviceProps.length)
|
|
19615
|
+
message.deviceProps = object.deviceProps;
|
|
19616
|
+
return message;
|
|
19617
|
+
};
|
|
19618
|
+
|
|
19619
|
+
/**
|
|
19620
|
+
* Creates a plain object from a DevicePairingRegistrationData message. Also converts values to other types if specified.
|
|
19621
|
+
* @function toObject
|
|
19622
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19623
|
+
* @static
|
|
19624
|
+
* @param {proto.ClientPayload.DevicePairingRegistrationData} message DevicePairingRegistrationData
|
|
19625
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19626
|
+
* @returns {Object.<string,*>} Plain object
|
|
19627
|
+
*/
|
|
19628
|
+
DevicePairingRegistrationData.toObject = function toObject(message, options) {
|
|
19629
|
+
if (!options)
|
|
19630
|
+
options = {};
|
|
19631
|
+
var object = {};
|
|
19632
|
+
if (message.eRegid != null && message.hasOwnProperty("eRegid")) {
|
|
19633
|
+
object.eRegid = options.bytes === String ? $util.base64.encode(message.eRegid, 0, message.eRegid.length) : options.bytes === Array ? Array.prototype.slice.call(message.eRegid) : message.eRegid;
|
|
19634
|
+
if (options.oneofs)
|
|
19635
|
+
object._eRegid = "eRegid";
|
|
19636
|
+
}
|
|
19637
|
+
if (message.eKeytype != null && message.hasOwnProperty("eKeytype")) {
|
|
19638
|
+
object.eKeytype = options.bytes === String ? $util.base64.encode(message.eKeytype, 0, message.eKeytype.length) : options.bytes === Array ? Array.prototype.slice.call(message.eKeytype) : message.eKeytype;
|
|
19639
|
+
if (options.oneofs)
|
|
19640
|
+
object._eKeytype = "eKeytype";
|
|
19641
|
+
}
|
|
19642
|
+
if (message.eIdent != null && message.hasOwnProperty("eIdent")) {
|
|
19643
|
+
object.eIdent = options.bytes === String ? $util.base64.encode(message.eIdent, 0, message.eIdent.length) : options.bytes === Array ? Array.prototype.slice.call(message.eIdent) : message.eIdent;
|
|
19644
|
+
if (options.oneofs)
|
|
19645
|
+
object._eIdent = "eIdent";
|
|
19646
|
+
}
|
|
19647
|
+
if (message.eSkeyId != null && message.hasOwnProperty("eSkeyId")) {
|
|
19648
|
+
object.eSkeyId = options.bytes === String ? $util.base64.encode(message.eSkeyId, 0, message.eSkeyId.length) : options.bytes === Array ? Array.prototype.slice.call(message.eSkeyId) : message.eSkeyId;
|
|
19649
|
+
if (options.oneofs)
|
|
19650
|
+
object._eSkeyId = "eSkeyId";
|
|
19651
|
+
}
|
|
19652
|
+
if (message.eSkeyVal != null && message.hasOwnProperty("eSkeyVal")) {
|
|
19653
|
+
object.eSkeyVal = options.bytes === String ? $util.base64.encode(message.eSkeyVal, 0, message.eSkeyVal.length) : options.bytes === Array ? Array.prototype.slice.call(message.eSkeyVal) : message.eSkeyVal;
|
|
19654
|
+
if (options.oneofs)
|
|
19655
|
+
object._eSkeyVal = "eSkeyVal";
|
|
19656
|
+
}
|
|
19657
|
+
if (message.eSkeySig != null && message.hasOwnProperty("eSkeySig")) {
|
|
19658
|
+
object.eSkeySig = options.bytes === String ? $util.base64.encode(message.eSkeySig, 0, message.eSkeySig.length) : options.bytes === Array ? Array.prototype.slice.call(message.eSkeySig) : message.eSkeySig;
|
|
19659
|
+
if (options.oneofs)
|
|
19660
|
+
object._eSkeySig = "eSkeySig";
|
|
19661
|
+
}
|
|
19662
|
+
if (message.buildHash != null && message.hasOwnProperty("buildHash")) {
|
|
19663
|
+
object.buildHash = options.bytes === String ? $util.base64.encode(message.buildHash, 0, message.buildHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.buildHash) : message.buildHash;
|
|
19664
|
+
if (options.oneofs)
|
|
19665
|
+
object._buildHash = "buildHash";
|
|
19666
|
+
}
|
|
19667
|
+
if (message.deviceProps != null && message.hasOwnProperty("deviceProps")) {
|
|
19668
|
+
object.deviceProps = options.bytes === String ? $util.base64.encode(message.deviceProps, 0, message.deviceProps.length) : options.bytes === Array ? Array.prototype.slice.call(message.deviceProps) : message.deviceProps;
|
|
19669
|
+
if (options.oneofs)
|
|
19670
|
+
object._deviceProps = "deviceProps";
|
|
19671
|
+
}
|
|
19672
|
+
return object;
|
|
19673
|
+
};
|
|
19674
|
+
|
|
19675
|
+
/**
|
|
19676
|
+
* Converts this DevicePairingRegistrationData to JSON.
|
|
19677
|
+
* @function toJSON
|
|
19678
|
+
* @memberof proto.ClientPayload.DevicePairingRegistrationData
|
|
19679
|
+
* @instance
|
|
19680
|
+
* @returns {Object.<string,*>} JSON object
|
|
19681
|
+
*/
|
|
19682
|
+
DevicePairingRegistrationData.prototype.toJSON = function toJSON() {
|
|
19683
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19684
|
+
};
|
|
19685
|
+
|
|
19686
|
+
return DevicePairingRegistrationData;
|
|
19687
|
+
})();
|
|
19688
|
+
|
|
19689
|
+
ClientPayload.DNSSource = (function() {
|
|
19690
|
+
|
|
19691
|
+
/**
|
|
19692
|
+
* Properties of a DNSSource.
|
|
19693
|
+
* @memberof proto.ClientPayload
|
|
19694
|
+
* @interface IDNSSource
|
|
19695
|
+
* @property {string|null} [dnsMethod] DNSSource dnsMethod
|
|
19696
|
+
* @property {boolean|null} [appCached] DNSSource appCached
|
|
19697
|
+
*/
|
|
19698
|
+
|
|
19699
|
+
/**
|
|
19700
|
+
* Constructs a new DNSSource.
|
|
19701
|
+
* @memberof proto.ClientPayload
|
|
19702
|
+
* @classdesc Represents a DNSSource.
|
|
19703
|
+
* @implements IDNSSource
|
|
19704
|
+
* @constructor
|
|
19705
|
+
* @param {proto.ClientPayload.IDNSSource=} [properties] Properties to set
|
|
19706
|
+
*/
|
|
19707
|
+
function DNSSource(properties) {
|
|
19708
|
+
if (properties)
|
|
19709
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19710
|
+
if (properties[keys[i]] != null)
|
|
19711
|
+
this[keys[i]] = properties[keys[i]];
|
|
19712
|
+
}
|
|
19713
|
+
|
|
19714
|
+
/**
|
|
19715
|
+
* DNSSource dnsMethod.
|
|
19716
|
+
* @member {string|null|undefined} dnsMethod
|
|
19717
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19718
|
+
* @instance
|
|
19719
|
+
*/
|
|
19720
|
+
DNSSource.prototype.dnsMethod = null;
|
|
19721
|
+
|
|
19722
|
+
/**
|
|
19723
|
+
* DNSSource appCached.
|
|
19724
|
+
* @member {boolean|null|undefined} appCached
|
|
19725
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19726
|
+
* @instance
|
|
19727
|
+
*/
|
|
19728
|
+
DNSSource.prototype.appCached = null;
|
|
19729
|
+
|
|
19730
|
+
// OneOf field names bound to virtual getters and setters
|
|
19731
|
+
var $oneOfFields;
|
|
19732
|
+
|
|
19733
|
+
/**
|
|
19734
|
+
* DNSSource _dnsMethod.
|
|
19735
|
+
* @member {"dnsMethod"|undefined} _dnsMethod
|
|
19736
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19737
|
+
* @instance
|
|
19738
|
+
*/
|
|
19739
|
+
Object.defineProperty(DNSSource.prototype, "_dnsMethod", {
|
|
19740
|
+
get: $util.oneOfGetter($oneOfFields = ["dnsMethod"]),
|
|
19741
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19742
|
+
});
|
|
19743
|
+
|
|
19744
|
+
/**
|
|
19745
|
+
* DNSSource _appCached.
|
|
19746
|
+
* @member {"appCached"|undefined} _appCached
|
|
19747
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19748
|
+
* @instance
|
|
19749
|
+
*/
|
|
19750
|
+
Object.defineProperty(DNSSource.prototype, "_appCached", {
|
|
19751
|
+
get: $util.oneOfGetter($oneOfFields = ["appCached"]),
|
|
19752
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19753
|
+
});
|
|
19754
|
+
|
|
19755
|
+
/**
|
|
19756
|
+
* Creates a new DNSSource instance using the specified properties.
|
|
19757
|
+
* @function create
|
|
19758
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19759
|
+
* @static
|
|
19760
|
+
* @param {proto.ClientPayload.IDNSSource=} [properties] Properties to set
|
|
19761
|
+
* @returns {proto.ClientPayload.DNSSource} DNSSource instance
|
|
19762
|
+
*/
|
|
19763
|
+
DNSSource.create = function create(properties) {
|
|
19764
|
+
return new DNSSource(properties);
|
|
19765
|
+
};
|
|
19766
|
+
|
|
19767
|
+
/**
|
|
19768
|
+
* Encodes the specified DNSSource message. Does not implicitly {@link proto.ClientPayload.DNSSource.verify|verify} messages.
|
|
19769
|
+
* @function encode
|
|
19770
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19771
|
+
* @static
|
|
19772
|
+
* @param {proto.ClientPayload.IDNSSource} message DNSSource message or plain object to encode
|
|
19773
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19774
|
+
* @returns {$protobuf.Writer} Writer
|
|
19775
|
+
*/
|
|
19776
|
+
DNSSource.encode = function encode(message, writer) {
|
|
19777
|
+
if (!writer)
|
|
19778
|
+
writer = $Writer.create();
|
|
19779
|
+
if (message.dnsMethod != null && Object.hasOwnProperty.call(message, "dnsMethod"))
|
|
19780
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.dnsMethod);
|
|
19781
|
+
if (message.appCached != null && Object.hasOwnProperty.call(message, "appCached"))
|
|
19782
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.appCached);
|
|
19783
|
+
return writer;
|
|
19784
|
+
};
|
|
19785
|
+
|
|
19786
|
+
/**
|
|
19787
|
+
* Encodes the specified DNSSource message, length delimited. Does not implicitly {@link proto.ClientPayload.DNSSource.verify|verify} messages.
|
|
19788
|
+
* @function encodeDelimited
|
|
19789
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19790
|
+
* @static
|
|
19791
|
+
* @param {proto.ClientPayload.IDNSSource} message DNSSource message or plain object to encode
|
|
19792
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19793
|
+
* @returns {$protobuf.Writer} Writer
|
|
19794
|
+
*/
|
|
19795
|
+
DNSSource.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19796
|
+
return this.encode(message, writer).ldelim();
|
|
19797
|
+
};
|
|
19798
|
+
|
|
19799
|
+
/**
|
|
19800
|
+
* Decodes a DNSSource message from the specified reader or buffer.
|
|
19801
|
+
* @function decode
|
|
19802
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19803
|
+
* @static
|
|
19804
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19805
|
+
* @param {number} [length] Message length if known beforehand
|
|
19806
|
+
* @returns {proto.ClientPayload.DNSSource} DNSSource
|
|
19807
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19808
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19809
|
+
*/
|
|
19810
|
+
DNSSource.decode = function decode(reader, length) {
|
|
19811
|
+
if (!(reader instanceof $Reader))
|
|
19812
|
+
reader = $Reader.create(reader);
|
|
19813
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.ClientPayload.DNSSource();
|
|
19814
|
+
while (reader.pos < end) {
|
|
19815
|
+
var tag = reader.uint32();
|
|
19816
|
+
switch (tag >>> 3) {
|
|
19817
|
+
case 1:
|
|
19818
|
+
message.dnsMethod = reader.string();
|
|
19819
|
+
break;
|
|
19820
|
+
case 2:
|
|
19821
|
+
message.appCached = reader.bool();
|
|
19822
|
+
break;
|
|
19823
|
+
default:
|
|
19824
|
+
reader.skipType(tag & 7);
|
|
19825
|
+
break;
|
|
19826
|
+
}
|
|
19827
|
+
}
|
|
19828
|
+
return message;
|
|
19829
|
+
};
|
|
19830
|
+
|
|
19831
|
+
/**
|
|
19832
|
+
* Decodes a DNSSource message from the specified reader or buffer, length delimited.
|
|
19833
|
+
* @function decodeDelimited
|
|
19834
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19835
|
+
* @static
|
|
19836
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19837
|
+
* @returns {proto.ClientPayload.DNSSource} DNSSource
|
|
19838
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19839
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19840
|
+
*/
|
|
19841
|
+
DNSSource.decodeDelimited = function decodeDelimited(reader) {
|
|
19842
|
+
if (!(reader instanceof $Reader))
|
|
19843
|
+
reader = new $Reader(reader);
|
|
19844
|
+
return this.decode(reader, reader.uint32());
|
|
19845
|
+
};
|
|
19846
|
+
|
|
19847
|
+
/**
|
|
19848
|
+
* Verifies a DNSSource message.
|
|
19849
|
+
* @function verify
|
|
19850
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19851
|
+
* @static
|
|
19852
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19853
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19854
|
+
*/
|
|
19855
|
+
DNSSource.verify = function verify(message) {
|
|
19856
|
+
if (typeof message !== "object" || message === null)
|
|
19857
|
+
return "object expected";
|
|
19858
|
+
var properties = {};
|
|
19859
|
+
if (message.dnsMethod != null && message.hasOwnProperty("dnsMethod")) {
|
|
19860
|
+
properties._dnsMethod = 1;
|
|
19861
|
+
if (!$util.isString(message.dnsMethod))
|
|
19862
|
+
return "dnsMethod: string expected";
|
|
19863
|
+
}
|
|
19864
|
+
if (message.appCached != null && message.hasOwnProperty("appCached")) {
|
|
19865
|
+
properties._appCached = 1;
|
|
19866
|
+
if (typeof message.appCached !== "boolean")
|
|
19867
|
+
return "appCached: boolean expected";
|
|
19868
|
+
}
|
|
19869
|
+
return null;
|
|
19870
|
+
};
|
|
19871
|
+
|
|
19872
|
+
/**
|
|
19873
|
+
* Creates a DNSSource message from a plain object. Also converts values to their respective internal types.
|
|
19874
|
+
* @function fromObject
|
|
19875
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19876
|
+
* @static
|
|
19877
|
+
* @param {Object.<string,*>} object Plain object
|
|
19878
|
+
* @returns {proto.ClientPayload.DNSSource} DNSSource
|
|
19879
|
+
*/
|
|
19880
|
+
DNSSource.fromObject = function fromObject(object) {
|
|
19881
|
+
if (object instanceof $root.proto.ClientPayload.DNSSource)
|
|
19882
|
+
return object;
|
|
19883
|
+
var message = new $root.proto.ClientPayload.DNSSource();
|
|
19884
|
+
if (object.dnsMethod != null)
|
|
19885
|
+
message.dnsMethod = String(object.dnsMethod);
|
|
19886
|
+
if (object.appCached != null)
|
|
19887
|
+
message.appCached = Boolean(object.appCached);
|
|
19888
|
+
return message;
|
|
19889
|
+
};
|
|
19890
|
+
|
|
19891
|
+
/**
|
|
19892
|
+
* Creates a plain object from a DNSSource message. Also converts values to other types if specified.
|
|
19893
|
+
* @function toObject
|
|
19894
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19895
|
+
* @static
|
|
19896
|
+
* @param {proto.ClientPayload.DNSSource} message DNSSource
|
|
19897
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19898
|
+
* @returns {Object.<string,*>} Plain object
|
|
19899
|
+
*/
|
|
19900
|
+
DNSSource.toObject = function toObject(message, options) {
|
|
19901
|
+
if (!options)
|
|
19902
|
+
options = {};
|
|
19903
|
+
var object = {};
|
|
19904
|
+
if (message.dnsMethod != null && message.hasOwnProperty("dnsMethod")) {
|
|
19905
|
+
object.dnsMethod = message.dnsMethod;
|
|
19906
|
+
if (options.oneofs)
|
|
19907
|
+
object._dnsMethod = "dnsMethod";
|
|
19908
|
+
}
|
|
19909
|
+
if (message.appCached != null && message.hasOwnProperty("appCached")) {
|
|
19910
|
+
object.appCached = message.appCached;
|
|
19911
|
+
if (options.oneofs)
|
|
19912
|
+
object._appCached = "appCached";
|
|
19913
|
+
}
|
|
19914
|
+
return object;
|
|
19915
|
+
};
|
|
19916
|
+
|
|
19917
|
+
/**
|
|
19918
|
+
* Converts this DNSSource to JSON.
|
|
19919
|
+
* @function toJSON
|
|
19920
|
+
* @memberof proto.ClientPayload.DNSSource
|
|
19921
|
+
* @instance
|
|
19922
|
+
* @returns {Object.<string,*>} JSON object
|
|
19923
|
+
*/
|
|
19924
|
+
DNSSource.prototype.toJSON = function toJSON() {
|
|
19925
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19926
|
+
};
|
|
19927
|
+
|
|
19928
|
+
return DNSSource;
|
|
19929
|
+
})();
|
|
19930
|
+
|
|
19931
|
+
ClientPayload.UserAgent = (function() {
|
|
19932
|
+
|
|
19933
|
+
/**
|
|
19934
|
+
* Properties of a UserAgent.
|
|
19935
|
+
* @memberof proto.ClientPayload
|
|
19936
|
+
* @interface IUserAgent
|
|
19937
|
+
* @property {proto.ClientPayload.UserAgent.Platform|null} [platform] UserAgent platform
|
|
19938
|
+
* @property {proto.ClientPayload.UserAgent.IAppVersion|null} [appVersion] UserAgent appVersion
|
|
19939
|
+
* @property {string|null} [mcc] UserAgent mcc
|
|
19940
|
+
* @property {string|null} [mnc] UserAgent mnc
|
|
19941
|
+
* @property {string|null} [osVersion] UserAgent osVersion
|
|
19942
|
+
* @property {string|null} [manufacturer] UserAgent manufacturer
|
|
19943
|
+
* @property {string|null} [device] UserAgent device
|
|
19944
|
+
* @property {string|null} [osBuildNumber] UserAgent osBuildNumber
|
|
19945
|
+
* @property {string|null} [phoneId] UserAgent phoneId
|
|
19946
|
+
* @property {proto.ClientPayload.UserAgent.ReleaseChannel|null} [releaseChannel] UserAgent releaseChannel
|
|
19947
|
+
* @property {string|null} [localeLanguageIso6391] UserAgent localeLanguageIso6391
|
|
19948
|
+
* @property {string|null} [localeCountryIso31661Alpha2] UserAgent localeCountryIso31661Alpha2
|
|
19949
|
+
* @property {string|null} [deviceBoard] UserAgent deviceBoard
|
|
19950
|
+
*/
|
|
19951
|
+
|
|
19952
|
+
/**
|
|
19953
|
+
* Constructs a new UserAgent.
|
|
19954
|
+
* @memberof proto.ClientPayload
|
|
19955
|
+
* @classdesc Represents a UserAgent.
|
|
19956
|
+
* @implements IUserAgent
|
|
19957
|
+
* @constructor
|
|
19958
|
+
* @param {proto.ClientPayload.IUserAgent=} [properties] Properties to set
|
|
19959
|
+
*/
|
|
19960
|
+
function UserAgent(properties) {
|
|
19961
|
+
if (properties)
|
|
19962
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19963
|
+
if (properties[keys[i]] != null)
|
|
19964
|
+
this[keys[i]] = properties[keys[i]];
|
|
19965
|
+
}
|
|
19966
|
+
|
|
19967
|
+
/**
|
|
19968
|
+
* UserAgent platform.
|
|
19969
|
+
* @member {proto.ClientPayload.UserAgent.Platform|null|undefined} platform
|
|
19970
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
19971
|
+
* @instance
|
|
19972
|
+
*/
|
|
19973
|
+
UserAgent.prototype.platform = null;
|
|
19974
|
+
|
|
19975
|
+
/**
|
|
19976
|
+
* UserAgent appVersion.
|
|
19977
|
+
* @member {proto.ClientPayload.UserAgent.IAppVersion|null|undefined} appVersion
|
|
19978
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
19979
|
+
* @instance
|
|
19980
|
+
*/
|
|
19981
|
+
UserAgent.prototype.appVersion = null;
|
|
19982
|
+
|
|
19983
|
+
/**
|
|
19984
|
+
* UserAgent mcc.
|
|
19985
|
+
* @member {string|null|undefined} mcc
|
|
19986
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
19987
|
+
* @instance
|
|
19988
|
+
*/
|
|
19989
|
+
UserAgent.prototype.mcc = null;
|
|
19990
|
+
|
|
19991
|
+
/**
|
|
19992
|
+
* UserAgent mnc.
|
|
19993
|
+
* @member {string|null|undefined} mnc
|
|
19994
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
19995
|
+
* @instance
|
|
19996
|
+
*/
|
|
19997
|
+
UserAgent.prototype.mnc = null;
|
|
19998
|
+
|
|
19999
|
+
/**
|
|
20000
|
+
* UserAgent osVersion.
|
|
20001
|
+
* @member {string|null|undefined} osVersion
|
|
20002
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20003
|
+
* @instance
|
|
20004
|
+
*/
|
|
20005
|
+
UserAgent.prototype.osVersion = null;
|
|
20006
|
+
|
|
20007
|
+
/**
|
|
20008
|
+
* UserAgent manufacturer.
|
|
20009
|
+
* @member {string|null|undefined} manufacturer
|
|
20010
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20011
|
+
* @instance
|
|
20012
|
+
*/
|
|
20013
|
+
UserAgent.prototype.manufacturer = null;
|
|
20014
|
+
|
|
20015
|
+
/**
|
|
20016
|
+
* UserAgent device.
|
|
20017
|
+
* @member {string|null|undefined} device
|
|
20018
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20019
|
+
* @instance
|
|
20020
|
+
*/
|
|
20021
|
+
UserAgent.prototype.device = null;
|
|
20022
|
+
|
|
20023
|
+
/**
|
|
20024
|
+
* UserAgent osBuildNumber.
|
|
20025
|
+
* @member {string|null|undefined} osBuildNumber
|
|
20026
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20027
|
+
* @instance
|
|
20028
|
+
*/
|
|
20029
|
+
UserAgent.prototype.osBuildNumber = null;
|
|
20030
|
+
|
|
20031
|
+
/**
|
|
20032
|
+
* UserAgent phoneId.
|
|
20033
|
+
* @member {string|null|undefined} phoneId
|
|
20034
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20035
|
+
* @instance
|
|
20036
|
+
*/
|
|
20037
|
+
UserAgent.prototype.phoneId = null;
|
|
20038
|
+
|
|
20039
|
+
/**
|
|
20040
|
+
* UserAgent releaseChannel.
|
|
20041
|
+
* @member {proto.ClientPayload.UserAgent.ReleaseChannel|null|undefined} releaseChannel
|
|
20042
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20043
|
+
* @instance
|
|
20044
|
+
*/
|
|
20045
|
+
UserAgent.prototype.releaseChannel = null;
|
|
20046
|
+
|
|
20047
|
+
/**
|
|
20048
|
+
* UserAgent localeLanguageIso6391.
|
|
20049
|
+
* @member {string|null|undefined} localeLanguageIso6391
|
|
20050
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20051
|
+
* @instance
|
|
20052
|
+
*/
|
|
20053
|
+
UserAgent.prototype.localeLanguageIso6391 = null;
|
|
20054
|
+
|
|
20055
|
+
/**
|
|
20056
|
+
* UserAgent localeCountryIso31661Alpha2.
|
|
20057
|
+
* @member {string|null|undefined} localeCountryIso31661Alpha2
|
|
20058
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20059
|
+
* @instance
|
|
20060
|
+
*/
|
|
20061
|
+
UserAgent.prototype.localeCountryIso31661Alpha2 = null;
|
|
20062
|
+
|
|
20063
|
+
/**
|
|
20064
|
+
* UserAgent deviceBoard.
|
|
20065
|
+
* @member {string|null|undefined} deviceBoard
|
|
20066
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20067
|
+
* @instance
|
|
20068
|
+
*/
|
|
20069
|
+
UserAgent.prototype.deviceBoard = null;
|
|
20070
|
+
|
|
20071
|
+
// OneOf field names bound to virtual getters and setters
|
|
20072
|
+
var $oneOfFields;
|
|
20073
|
+
|
|
20074
|
+
/**
|
|
20075
|
+
* UserAgent _platform.
|
|
20076
|
+
* @member {"platform"|undefined} _platform
|
|
20077
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20078
|
+
* @instance
|
|
20079
|
+
*/
|
|
20080
|
+
Object.defineProperty(UserAgent.prototype, "_platform", {
|
|
20081
|
+
get: $util.oneOfGetter($oneOfFields = ["platform"]),
|
|
20082
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20083
|
+
});
|
|
20084
|
+
|
|
20085
|
+
/**
|
|
20086
|
+
* UserAgent _appVersion.
|
|
20087
|
+
* @member {"appVersion"|undefined} _appVersion
|
|
20088
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20089
|
+
* @instance
|
|
20090
|
+
*/
|
|
20091
|
+
Object.defineProperty(UserAgent.prototype, "_appVersion", {
|
|
20092
|
+
get: $util.oneOfGetter($oneOfFields = ["appVersion"]),
|
|
20093
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20094
|
+
});
|
|
20095
|
+
|
|
20096
|
+
/**
|
|
20097
|
+
* UserAgent _mcc.
|
|
20098
|
+
* @member {"mcc"|undefined} _mcc
|
|
20099
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20100
|
+
* @instance
|
|
20101
|
+
*/
|
|
20102
|
+
Object.defineProperty(UserAgent.prototype, "_mcc", {
|
|
20103
|
+
get: $util.oneOfGetter($oneOfFields = ["mcc"]),
|
|
20104
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20105
|
+
});
|
|
20106
|
+
|
|
20107
|
+
/**
|
|
20108
|
+
* UserAgent _mnc.
|
|
20109
|
+
* @member {"mnc"|undefined} _mnc
|
|
20110
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20111
|
+
* @instance
|
|
20112
|
+
*/
|
|
20113
|
+
Object.defineProperty(UserAgent.prototype, "_mnc", {
|
|
20114
|
+
get: $util.oneOfGetter($oneOfFields = ["mnc"]),
|
|
20115
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20116
|
+
});
|
|
20117
|
+
|
|
20118
|
+
/**
|
|
20119
|
+
* UserAgent _osVersion.
|
|
20120
|
+
* @member {"osVersion"|undefined} _osVersion
|
|
20121
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20122
|
+
* @instance
|
|
20123
|
+
*/
|
|
20124
|
+
Object.defineProperty(UserAgent.prototype, "_osVersion", {
|
|
20125
|
+
get: $util.oneOfGetter($oneOfFields = ["osVersion"]),
|
|
20126
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20127
|
+
});
|
|
20128
|
+
|
|
20129
|
+
/**
|
|
20130
|
+
* UserAgent _manufacturer.
|
|
20131
|
+
* @member {"manufacturer"|undefined} _manufacturer
|
|
20132
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20133
|
+
* @instance
|
|
20134
|
+
*/
|
|
20135
|
+
Object.defineProperty(UserAgent.prototype, "_manufacturer", {
|
|
20136
|
+
get: $util.oneOfGetter($oneOfFields = ["manufacturer"]),
|
|
20137
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20138
|
+
});
|
|
20139
|
+
|
|
20140
|
+
/**
|
|
20141
|
+
* UserAgent _device.
|
|
20142
|
+
* @member {"device"|undefined} _device
|
|
20143
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20144
|
+
* @instance
|
|
20145
|
+
*/
|
|
20146
|
+
Object.defineProperty(UserAgent.prototype, "_device", {
|
|
20147
|
+
get: $util.oneOfGetter($oneOfFields = ["device"]),
|
|
20148
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20149
|
+
});
|
|
20150
|
+
|
|
20151
|
+
/**
|
|
20152
|
+
* UserAgent _osBuildNumber.
|
|
20153
|
+
* @member {"osBuildNumber"|undefined} _osBuildNumber
|
|
20154
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20155
|
+
* @instance
|
|
20156
|
+
*/
|
|
20157
|
+
Object.defineProperty(UserAgent.prototype, "_osBuildNumber", {
|
|
20158
|
+
get: $util.oneOfGetter($oneOfFields = ["osBuildNumber"]),
|
|
20159
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20160
|
+
});
|
|
20161
|
+
|
|
20162
|
+
/**
|
|
20163
|
+
* UserAgent _phoneId.
|
|
20164
|
+
* @member {"phoneId"|undefined} _phoneId
|
|
20165
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20166
|
+
* @instance
|
|
20167
|
+
*/
|
|
20168
|
+
Object.defineProperty(UserAgent.prototype, "_phoneId", {
|
|
20169
|
+
get: $util.oneOfGetter($oneOfFields = ["phoneId"]),
|
|
20170
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20171
|
+
});
|
|
20172
|
+
|
|
20173
|
+
/**
|
|
20174
|
+
* UserAgent _releaseChannel.
|
|
20175
|
+
* @member {"releaseChannel"|undefined} _releaseChannel
|
|
20176
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20177
|
+
* @instance
|
|
20178
|
+
*/
|
|
20179
|
+
Object.defineProperty(UserAgent.prototype, "_releaseChannel", {
|
|
20180
|
+
get: $util.oneOfGetter($oneOfFields = ["releaseChannel"]),
|
|
20181
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20182
|
+
});
|
|
20183
|
+
|
|
20184
|
+
/**
|
|
20185
|
+
* UserAgent _localeLanguageIso6391.
|
|
20186
|
+
* @member {"localeLanguageIso6391"|undefined} _localeLanguageIso6391
|
|
20187
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20188
|
+
* @instance
|
|
20189
|
+
*/
|
|
20190
|
+
Object.defineProperty(UserAgent.prototype, "_localeLanguageIso6391", {
|
|
20191
|
+
get: $util.oneOfGetter($oneOfFields = ["localeLanguageIso6391"]),
|
|
20192
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20193
|
+
});
|
|
20194
|
+
|
|
20195
|
+
/**
|
|
20196
|
+
* UserAgent _localeCountryIso31661Alpha2.
|
|
20197
|
+
* @member {"localeCountryIso31661Alpha2"|undefined} _localeCountryIso31661Alpha2
|
|
20198
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20199
|
+
* @instance
|
|
20200
|
+
*/
|
|
20201
|
+
Object.defineProperty(UserAgent.prototype, "_localeCountryIso31661Alpha2", {
|
|
20202
|
+
get: $util.oneOfGetter($oneOfFields = ["localeCountryIso31661Alpha2"]),
|
|
20203
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20204
|
+
});
|
|
20205
|
+
|
|
20206
|
+
/**
|
|
20207
|
+
* UserAgent _deviceBoard.
|
|
20208
|
+
* @member {"deviceBoard"|undefined} _deviceBoard
|
|
20209
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20210
|
+
* @instance
|
|
20211
|
+
*/
|
|
20212
|
+
Object.defineProperty(UserAgent.prototype, "_deviceBoard", {
|
|
20213
|
+
get: $util.oneOfGetter($oneOfFields = ["deviceBoard"]),
|
|
20214
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20215
|
+
});
|
|
20216
|
+
|
|
20217
|
+
/**
|
|
20218
|
+
* Creates a new UserAgent instance using the specified properties.
|
|
20219
|
+
* @function create
|
|
20220
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20221
|
+
* @static
|
|
20222
|
+
* @param {proto.ClientPayload.IUserAgent=} [properties] Properties to set
|
|
20223
|
+
* @returns {proto.ClientPayload.UserAgent} UserAgent instance
|
|
20224
|
+
*/
|
|
20225
|
+
UserAgent.create = function create(properties) {
|
|
20226
|
+
return new UserAgent(properties);
|
|
20227
|
+
};
|
|
20228
|
+
|
|
20229
|
+
/**
|
|
20230
|
+
* Encodes the specified UserAgent message. Does not implicitly {@link proto.ClientPayload.UserAgent.verify|verify} messages.
|
|
20231
|
+
* @function encode
|
|
20232
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20233
|
+
* @static
|
|
20234
|
+
* @param {proto.ClientPayload.IUserAgent} message UserAgent message or plain object to encode
|
|
20235
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20236
|
+
* @returns {$protobuf.Writer} Writer
|
|
20237
|
+
*/
|
|
20238
|
+
UserAgent.encode = function encode(message, writer) {
|
|
20239
|
+
if (!writer)
|
|
20240
|
+
writer = $Writer.create();
|
|
20241
|
+
if (message.platform != null && Object.hasOwnProperty.call(message, "platform"))
|
|
20242
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.platform);
|
|
20243
|
+
if (message.appVersion != null && Object.hasOwnProperty.call(message, "appVersion"))
|
|
20244
|
+
$root.proto.ClientPayload.UserAgent.AppVersion.encode(message.appVersion, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
20245
|
+
if (message.mcc != null && Object.hasOwnProperty.call(message, "mcc"))
|
|
20246
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.mcc);
|
|
20247
|
+
if (message.mnc != null && Object.hasOwnProperty.call(message, "mnc"))
|
|
20248
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.mnc);
|
|
20249
|
+
if (message.osVersion != null && Object.hasOwnProperty.call(message, "osVersion"))
|
|
20250
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.osVersion);
|
|
20251
|
+
if (message.manufacturer != null && Object.hasOwnProperty.call(message, "manufacturer"))
|
|
20252
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.manufacturer);
|
|
20253
|
+
if (message.device != null && Object.hasOwnProperty.call(message, "device"))
|
|
20254
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.device);
|
|
20255
|
+
if (message.osBuildNumber != null && Object.hasOwnProperty.call(message, "osBuildNumber"))
|
|
20256
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.osBuildNumber);
|
|
20257
|
+
if (message.phoneId != null && Object.hasOwnProperty.call(message, "phoneId"))
|
|
20258
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.phoneId);
|
|
20259
|
+
if (message.releaseChannel != null && Object.hasOwnProperty.call(message, "releaseChannel"))
|
|
20260
|
+
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.releaseChannel);
|
|
20261
|
+
if (message.localeLanguageIso6391 != null && Object.hasOwnProperty.call(message, "localeLanguageIso6391"))
|
|
20262
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.localeLanguageIso6391);
|
|
20263
|
+
if (message.localeCountryIso31661Alpha2 != null && Object.hasOwnProperty.call(message, "localeCountryIso31661Alpha2"))
|
|
20264
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.localeCountryIso31661Alpha2);
|
|
20265
|
+
if (message.deviceBoard != null && Object.hasOwnProperty.call(message, "deviceBoard"))
|
|
20266
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.deviceBoard);
|
|
20267
|
+
return writer;
|
|
20268
|
+
};
|
|
20269
|
+
|
|
20270
|
+
/**
|
|
20271
|
+
* Encodes the specified UserAgent message, length delimited. Does not implicitly {@link proto.ClientPayload.UserAgent.verify|verify} messages.
|
|
20272
|
+
* @function encodeDelimited
|
|
20273
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20274
|
+
* @static
|
|
20275
|
+
* @param {proto.ClientPayload.IUserAgent} message UserAgent message or plain object to encode
|
|
20276
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20277
|
+
* @returns {$protobuf.Writer} Writer
|
|
20278
|
+
*/
|
|
20279
|
+
UserAgent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20280
|
+
return this.encode(message, writer).ldelim();
|
|
20281
|
+
};
|
|
20282
|
+
|
|
20283
|
+
/**
|
|
20284
|
+
* Decodes a UserAgent message from the specified reader or buffer.
|
|
20285
|
+
* @function decode
|
|
20286
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20287
|
+
* @static
|
|
20288
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20289
|
+
* @param {number} [length] Message length if known beforehand
|
|
20290
|
+
* @returns {proto.ClientPayload.UserAgent} UserAgent
|
|
20291
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20292
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20293
|
+
*/
|
|
20294
|
+
UserAgent.decode = function decode(reader, length) {
|
|
20295
|
+
if (!(reader instanceof $Reader))
|
|
20296
|
+
reader = $Reader.create(reader);
|
|
20297
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.ClientPayload.UserAgent();
|
|
20298
|
+
while (reader.pos < end) {
|
|
20299
|
+
var tag = reader.uint32();
|
|
20300
|
+
switch (tag >>> 3) {
|
|
20301
|
+
case 1:
|
|
20302
|
+
message.platform = reader.int32();
|
|
20303
|
+
break;
|
|
20304
|
+
case 3:
|
|
20305
|
+
message.appVersion = $root.proto.ClientPayload.UserAgent.AppVersion.decode(reader, reader.uint32());
|
|
20306
|
+
break;
|
|
20307
|
+
case 4:
|
|
20308
|
+
message.mcc = reader.string();
|
|
20309
|
+
break;
|
|
20310
|
+
case 5:
|
|
20311
|
+
message.mnc = reader.string();
|
|
20312
|
+
break;
|
|
20313
|
+
case 6:
|
|
20314
|
+
message.osVersion = reader.string();
|
|
20315
|
+
break;
|
|
20316
|
+
case 7:
|
|
20317
|
+
message.manufacturer = reader.string();
|
|
20318
|
+
break;
|
|
20319
|
+
case 8:
|
|
20320
|
+
message.device = reader.string();
|
|
20321
|
+
break;
|
|
20322
|
+
case 9:
|
|
20323
|
+
message.osBuildNumber = reader.string();
|
|
20324
|
+
break;
|
|
20325
|
+
case 10:
|
|
20326
|
+
message.phoneId = reader.string();
|
|
20327
|
+
break;
|
|
20328
|
+
case 11:
|
|
20329
|
+
message.releaseChannel = reader.int32();
|
|
20330
|
+
break;
|
|
20331
|
+
case 12:
|
|
20332
|
+
message.localeLanguageIso6391 = reader.string();
|
|
20333
|
+
break;
|
|
20334
|
+
case 13:
|
|
20335
|
+
message.localeCountryIso31661Alpha2 = reader.string();
|
|
20336
|
+
break;
|
|
20337
|
+
case 14:
|
|
20338
|
+
message.deviceBoard = reader.string();
|
|
20339
|
+
break;
|
|
20340
|
+
default:
|
|
20341
|
+
reader.skipType(tag & 7);
|
|
20342
|
+
break;
|
|
20343
|
+
}
|
|
20344
|
+
}
|
|
20345
|
+
return message;
|
|
20346
|
+
};
|
|
20347
|
+
|
|
20348
|
+
/**
|
|
20349
|
+
* Decodes a UserAgent message from the specified reader or buffer, length delimited.
|
|
20350
|
+
* @function decodeDelimited
|
|
20351
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20352
|
+
* @static
|
|
20353
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20354
|
+
* @returns {proto.ClientPayload.UserAgent} UserAgent
|
|
20355
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20356
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20357
|
+
*/
|
|
20358
|
+
UserAgent.decodeDelimited = function decodeDelimited(reader) {
|
|
20359
|
+
if (!(reader instanceof $Reader))
|
|
20360
|
+
reader = new $Reader(reader);
|
|
20361
|
+
return this.decode(reader, reader.uint32());
|
|
20362
|
+
};
|
|
20363
|
+
|
|
20364
|
+
/**
|
|
20365
|
+
* Verifies a UserAgent message.
|
|
20366
|
+
* @function verify
|
|
20367
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20368
|
+
* @static
|
|
20369
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20370
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20371
|
+
*/
|
|
20372
|
+
UserAgent.verify = function verify(message) {
|
|
20373
|
+
if (typeof message !== "object" || message === null)
|
|
20374
|
+
return "object expected";
|
|
20375
|
+
var properties = {};
|
|
20376
|
+
if (message.platform != null && message.hasOwnProperty("platform")) {
|
|
20377
|
+
properties._platform = 1;
|
|
20378
|
+
switch (message.platform) {
|
|
20379
|
+
default:
|
|
20380
|
+
return "platform: enum value expected";
|
|
20381
|
+
case 0:
|
|
20382
|
+
case 1:
|
|
20383
|
+
case 2:
|
|
20384
|
+
case 3:
|
|
20385
|
+
case 4:
|
|
20386
|
+
case 5:
|
|
20387
|
+
case 7:
|
|
20388
|
+
case 9:
|
|
20389
|
+
case 11:
|
|
20390
|
+
case 12:
|
|
20391
|
+
case 16:
|
|
20392
|
+
case 17:
|
|
20393
|
+
case 18:
|
|
20394
|
+
case 19:
|
|
20395
|
+
case 20:
|
|
20396
|
+
case 21:
|
|
20397
|
+
break;
|
|
20398
|
+
}
|
|
20399
|
+
}
|
|
20400
|
+
if (message.appVersion != null && message.hasOwnProperty("appVersion")) {
|
|
20401
|
+
properties._appVersion = 1;
|
|
20402
|
+
{
|
|
20403
|
+
var error = $root.proto.ClientPayload.UserAgent.AppVersion.verify(message.appVersion);
|
|
20404
|
+
if (error)
|
|
20405
|
+
return "appVersion." + error;
|
|
20406
|
+
}
|
|
20407
|
+
}
|
|
20408
|
+
if (message.mcc != null && message.hasOwnProperty("mcc")) {
|
|
20409
|
+
properties._mcc = 1;
|
|
20410
|
+
if (!$util.isString(message.mcc))
|
|
20411
|
+
return "mcc: string expected";
|
|
20412
|
+
}
|
|
20413
|
+
if (message.mnc != null && message.hasOwnProperty("mnc")) {
|
|
20414
|
+
properties._mnc = 1;
|
|
20415
|
+
if (!$util.isString(message.mnc))
|
|
20416
|
+
return "mnc: string expected";
|
|
20417
|
+
}
|
|
20418
|
+
if (message.osVersion != null && message.hasOwnProperty("osVersion")) {
|
|
20419
|
+
properties._osVersion = 1;
|
|
20420
|
+
if (!$util.isString(message.osVersion))
|
|
20421
|
+
return "osVersion: string expected";
|
|
20422
|
+
}
|
|
20423
|
+
if (message.manufacturer != null && message.hasOwnProperty("manufacturer")) {
|
|
20424
|
+
properties._manufacturer = 1;
|
|
20425
|
+
if (!$util.isString(message.manufacturer))
|
|
20426
|
+
return "manufacturer: string expected";
|
|
20427
|
+
}
|
|
20428
|
+
if (message.device != null && message.hasOwnProperty("device")) {
|
|
20429
|
+
properties._device = 1;
|
|
20430
|
+
if (!$util.isString(message.device))
|
|
20431
|
+
return "device: string expected";
|
|
20432
|
+
}
|
|
20433
|
+
if (message.osBuildNumber != null && message.hasOwnProperty("osBuildNumber")) {
|
|
20434
|
+
properties._osBuildNumber = 1;
|
|
20435
|
+
if (!$util.isString(message.osBuildNumber))
|
|
20436
|
+
return "osBuildNumber: string expected";
|
|
20437
|
+
}
|
|
20438
|
+
if (message.phoneId != null && message.hasOwnProperty("phoneId")) {
|
|
20439
|
+
properties._phoneId = 1;
|
|
20440
|
+
if (!$util.isString(message.phoneId))
|
|
20441
|
+
return "phoneId: string expected";
|
|
20442
|
+
}
|
|
20443
|
+
if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel")) {
|
|
20444
|
+
properties._releaseChannel = 1;
|
|
20445
|
+
switch (message.releaseChannel) {
|
|
20446
|
+
default:
|
|
20447
|
+
return "releaseChannel: enum value expected";
|
|
20448
|
+
case 0:
|
|
20449
|
+
case 1:
|
|
20450
|
+
case 2:
|
|
20451
|
+
case 3:
|
|
20452
|
+
break;
|
|
20453
|
+
}
|
|
20454
|
+
}
|
|
20455
|
+
if (message.localeLanguageIso6391 != null && message.hasOwnProperty("localeLanguageIso6391")) {
|
|
20456
|
+
properties._localeLanguageIso6391 = 1;
|
|
20457
|
+
if (!$util.isString(message.localeLanguageIso6391))
|
|
20458
|
+
return "localeLanguageIso6391: string expected";
|
|
20459
|
+
}
|
|
20460
|
+
if (message.localeCountryIso31661Alpha2 != null && message.hasOwnProperty("localeCountryIso31661Alpha2")) {
|
|
20461
|
+
properties._localeCountryIso31661Alpha2 = 1;
|
|
20462
|
+
if (!$util.isString(message.localeCountryIso31661Alpha2))
|
|
20463
|
+
return "localeCountryIso31661Alpha2: string expected";
|
|
20464
|
+
}
|
|
20465
|
+
if (message.deviceBoard != null && message.hasOwnProperty("deviceBoard")) {
|
|
20466
|
+
properties._deviceBoard = 1;
|
|
20467
|
+
if (!$util.isString(message.deviceBoard))
|
|
20468
|
+
return "deviceBoard: string expected";
|
|
20469
|
+
}
|
|
20470
|
+
return null;
|
|
20471
|
+
};
|
|
20472
|
+
|
|
20473
|
+
/**
|
|
20474
|
+
* Creates a UserAgent message from a plain object. Also converts values to their respective internal types.
|
|
20475
|
+
* @function fromObject
|
|
20476
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20477
|
+
* @static
|
|
20478
|
+
* @param {Object.<string,*>} object Plain object
|
|
20479
|
+
* @returns {proto.ClientPayload.UserAgent} UserAgent
|
|
20480
|
+
*/
|
|
20481
|
+
UserAgent.fromObject = function fromObject(object) {
|
|
20482
|
+
if (object instanceof $root.proto.ClientPayload.UserAgent)
|
|
20483
|
+
return object;
|
|
20484
|
+
var message = new $root.proto.ClientPayload.UserAgent();
|
|
20485
|
+
switch (object.platform) {
|
|
20486
|
+
case "ANDROID":
|
|
20487
|
+
case 0:
|
|
20488
|
+
message.platform = 0;
|
|
20489
|
+
break;
|
|
20490
|
+
case "IOS":
|
|
20491
|
+
case 1:
|
|
20492
|
+
message.platform = 1;
|
|
20493
|
+
break;
|
|
20494
|
+
case "WINDOWS_PHONE":
|
|
20495
|
+
case 2:
|
|
20496
|
+
message.platform = 2;
|
|
20497
|
+
break;
|
|
20498
|
+
case "BLACKBERRY":
|
|
20499
|
+
case 3:
|
|
20500
|
+
message.platform = 3;
|
|
20501
|
+
break;
|
|
20502
|
+
case "BLACKBERRY10":
|
|
20503
|
+
case 4:
|
|
20504
|
+
message.platform = 4;
|
|
20505
|
+
break;
|
|
20506
|
+
case "WEB":
|
|
20507
|
+
case 5:
|
|
20508
|
+
message.platform = 5;
|
|
20509
|
+
break;
|
|
20510
|
+
case "PORTAL":
|
|
20511
|
+
case 7:
|
|
20512
|
+
message.platform = 7;
|
|
20513
|
+
break;
|
|
20514
|
+
case "FBLITE_ANDROID":
|
|
20515
|
+
case 9:
|
|
20516
|
+
message.platform = 9;
|
|
20517
|
+
break;
|
|
20518
|
+
case "MLITE_ANDROID":
|
|
20519
|
+
case 11:
|
|
20520
|
+
message.platform = 11;
|
|
20521
|
+
break;
|
|
20522
|
+
case "IPAD":
|
|
20523
|
+
case 12:
|
|
20524
|
+
message.platform = 12;
|
|
20525
|
+
break;
|
|
20526
|
+
case "FBLITE_IOS":
|
|
20527
|
+
case 16:
|
|
20528
|
+
message.platform = 16;
|
|
20529
|
+
break;
|
|
20530
|
+
case "MLITE_IOS":
|
|
20531
|
+
case 17:
|
|
20532
|
+
message.platform = 17;
|
|
20533
|
+
break;
|
|
20534
|
+
case "OCULUS_MSG":
|
|
20535
|
+
case 18:
|
|
20536
|
+
message.platform = 18;
|
|
20537
|
+
break;
|
|
20538
|
+
case "OCULUS_CALL":
|
|
20539
|
+
case 19:
|
|
20540
|
+
message.platform = 19;
|
|
20541
|
+
break;
|
|
20542
|
+
case "MILAN":
|
|
20543
|
+
case 20:
|
|
20544
|
+
message.platform = 20;
|
|
20545
|
+
break;
|
|
20546
|
+
case "NIOS":
|
|
20547
|
+
case 21:
|
|
20548
|
+
message.platform = 21;
|
|
20549
|
+
break;
|
|
20550
|
+
}
|
|
20551
|
+
if (object.appVersion != null) {
|
|
20552
|
+
if (typeof object.appVersion !== "object")
|
|
20553
|
+
throw TypeError(".proto.ClientPayload.UserAgent.appVersion: object expected");
|
|
20554
|
+
message.appVersion = $root.proto.ClientPayload.UserAgent.AppVersion.fromObject(object.appVersion);
|
|
20555
|
+
}
|
|
20556
|
+
if (object.mcc != null)
|
|
20557
|
+
message.mcc = String(object.mcc);
|
|
20558
|
+
if (object.mnc != null)
|
|
20559
|
+
message.mnc = String(object.mnc);
|
|
20560
|
+
if (object.osVersion != null)
|
|
20561
|
+
message.osVersion = String(object.osVersion);
|
|
20562
|
+
if (object.manufacturer != null)
|
|
20563
|
+
message.manufacturer = String(object.manufacturer);
|
|
20564
|
+
if (object.device != null)
|
|
20565
|
+
message.device = String(object.device);
|
|
20566
|
+
if (object.osBuildNumber != null)
|
|
20567
|
+
message.osBuildNumber = String(object.osBuildNumber);
|
|
20568
|
+
if (object.phoneId != null)
|
|
20569
|
+
message.phoneId = String(object.phoneId);
|
|
20570
|
+
switch (object.releaseChannel) {
|
|
20571
|
+
case "RELEASE":
|
|
20572
|
+
case 0:
|
|
20573
|
+
message.releaseChannel = 0;
|
|
20574
|
+
break;
|
|
20575
|
+
case "BETA":
|
|
20576
|
+
case 1:
|
|
20577
|
+
message.releaseChannel = 1;
|
|
20578
|
+
break;
|
|
20579
|
+
case "ALPHA":
|
|
20580
|
+
case 2:
|
|
20581
|
+
message.releaseChannel = 2;
|
|
20582
|
+
break;
|
|
20583
|
+
case "NIGHTLY":
|
|
20584
|
+
case 3:
|
|
20585
|
+
message.releaseChannel = 3;
|
|
20586
|
+
break;
|
|
20587
|
+
}
|
|
20588
|
+
if (object.localeLanguageIso6391 != null)
|
|
20589
|
+
message.localeLanguageIso6391 = String(object.localeLanguageIso6391);
|
|
20590
|
+
if (object.localeCountryIso31661Alpha2 != null)
|
|
20591
|
+
message.localeCountryIso31661Alpha2 = String(object.localeCountryIso31661Alpha2);
|
|
20592
|
+
if (object.deviceBoard != null)
|
|
20593
|
+
message.deviceBoard = String(object.deviceBoard);
|
|
20594
|
+
return message;
|
|
20595
|
+
};
|
|
20596
|
+
|
|
20597
|
+
/**
|
|
20598
|
+
* Creates a plain object from a UserAgent message. Also converts values to other types if specified.
|
|
20599
|
+
* @function toObject
|
|
20600
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20601
|
+
* @static
|
|
20602
|
+
* @param {proto.ClientPayload.UserAgent} message UserAgent
|
|
20603
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20604
|
+
* @returns {Object.<string,*>} Plain object
|
|
20605
|
+
*/
|
|
20606
|
+
UserAgent.toObject = function toObject(message, options) {
|
|
20607
|
+
if (!options)
|
|
20608
|
+
options = {};
|
|
20609
|
+
var object = {};
|
|
20610
|
+
if (message.platform != null && message.hasOwnProperty("platform")) {
|
|
20611
|
+
object.platform = options.enums === String ? $root.proto.ClientPayload.UserAgent.Platform[message.platform] : message.platform;
|
|
20612
|
+
if (options.oneofs)
|
|
20613
|
+
object._platform = "platform";
|
|
20614
|
+
}
|
|
20615
|
+
if (message.appVersion != null && message.hasOwnProperty("appVersion")) {
|
|
20616
|
+
object.appVersion = $root.proto.ClientPayload.UserAgent.AppVersion.toObject(message.appVersion, options);
|
|
20617
|
+
if (options.oneofs)
|
|
20618
|
+
object._appVersion = "appVersion";
|
|
20619
|
+
}
|
|
20620
|
+
if (message.mcc != null && message.hasOwnProperty("mcc")) {
|
|
20621
|
+
object.mcc = message.mcc;
|
|
20622
|
+
if (options.oneofs)
|
|
20623
|
+
object._mcc = "mcc";
|
|
20624
|
+
}
|
|
20625
|
+
if (message.mnc != null && message.hasOwnProperty("mnc")) {
|
|
20626
|
+
object.mnc = message.mnc;
|
|
20627
|
+
if (options.oneofs)
|
|
20628
|
+
object._mnc = "mnc";
|
|
20629
|
+
}
|
|
20630
|
+
if (message.osVersion != null && message.hasOwnProperty("osVersion")) {
|
|
20631
|
+
object.osVersion = message.osVersion;
|
|
20632
|
+
if (options.oneofs)
|
|
20633
|
+
object._osVersion = "osVersion";
|
|
20634
|
+
}
|
|
20635
|
+
if (message.manufacturer != null && message.hasOwnProperty("manufacturer")) {
|
|
20636
|
+
object.manufacturer = message.manufacturer;
|
|
20637
|
+
if (options.oneofs)
|
|
20638
|
+
object._manufacturer = "manufacturer";
|
|
20639
|
+
}
|
|
20640
|
+
if (message.device != null && message.hasOwnProperty("device")) {
|
|
20641
|
+
object.device = message.device;
|
|
20642
|
+
if (options.oneofs)
|
|
20643
|
+
object._device = "device";
|
|
20644
|
+
}
|
|
20645
|
+
if (message.osBuildNumber != null && message.hasOwnProperty("osBuildNumber")) {
|
|
20646
|
+
object.osBuildNumber = message.osBuildNumber;
|
|
20647
|
+
if (options.oneofs)
|
|
20648
|
+
object._osBuildNumber = "osBuildNumber";
|
|
20649
|
+
}
|
|
20650
|
+
if (message.phoneId != null && message.hasOwnProperty("phoneId")) {
|
|
20651
|
+
object.phoneId = message.phoneId;
|
|
20652
|
+
if (options.oneofs)
|
|
20653
|
+
object._phoneId = "phoneId";
|
|
20654
|
+
}
|
|
20655
|
+
if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel")) {
|
|
20656
|
+
object.releaseChannel = options.enums === String ? $root.proto.ClientPayload.UserAgent.ReleaseChannel[message.releaseChannel] : message.releaseChannel;
|
|
20657
|
+
if (options.oneofs)
|
|
20658
|
+
object._releaseChannel = "releaseChannel";
|
|
20659
|
+
}
|
|
20660
|
+
if (message.localeLanguageIso6391 != null && message.hasOwnProperty("localeLanguageIso6391")) {
|
|
20661
|
+
object.localeLanguageIso6391 = message.localeLanguageIso6391;
|
|
20662
|
+
if (options.oneofs)
|
|
20663
|
+
object._localeLanguageIso6391 = "localeLanguageIso6391";
|
|
20664
|
+
}
|
|
20665
|
+
if (message.localeCountryIso31661Alpha2 != null && message.hasOwnProperty("localeCountryIso31661Alpha2")) {
|
|
20666
|
+
object.localeCountryIso31661Alpha2 = message.localeCountryIso31661Alpha2;
|
|
20667
|
+
if (options.oneofs)
|
|
20668
|
+
object._localeCountryIso31661Alpha2 = "localeCountryIso31661Alpha2";
|
|
20669
|
+
}
|
|
20670
|
+
if (message.deviceBoard != null && message.hasOwnProperty("deviceBoard")) {
|
|
20671
|
+
object.deviceBoard = message.deviceBoard;
|
|
20672
|
+
if (options.oneofs)
|
|
20673
|
+
object._deviceBoard = "deviceBoard";
|
|
20674
|
+
}
|
|
20675
|
+
return object;
|
|
20676
|
+
};
|
|
20677
|
+
|
|
20678
|
+
/**
|
|
20679
|
+
* Converts this UserAgent to JSON.
|
|
20680
|
+
* @function toJSON
|
|
20681
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20682
|
+
* @instance
|
|
20683
|
+
* @returns {Object.<string,*>} JSON object
|
|
20684
|
+
*/
|
|
20685
|
+
UserAgent.prototype.toJSON = function toJSON() {
|
|
20686
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20687
|
+
};
|
|
20688
|
+
|
|
20689
|
+
UserAgent.AppVersion = (function() {
|
|
20690
|
+
|
|
20691
|
+
/**
|
|
20692
|
+
* Properties of an AppVersion.
|
|
20693
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20694
|
+
* @interface IAppVersion
|
|
20695
|
+
* @property {number|null} [primary] AppVersion primary
|
|
20696
|
+
* @property {number|null} [secondary] AppVersion secondary
|
|
20697
|
+
* @property {number|null} [tertiary] AppVersion tertiary
|
|
20698
|
+
* @property {number|null} [quaternary] AppVersion quaternary
|
|
20699
|
+
* @property {number|null} [quinary] AppVersion quinary
|
|
20700
|
+
*/
|
|
20701
|
+
|
|
20702
|
+
/**
|
|
20703
|
+
* Constructs a new AppVersion.
|
|
20704
|
+
* @memberof proto.ClientPayload.UserAgent
|
|
20705
|
+
* @classdesc Represents an AppVersion.
|
|
20706
|
+
* @implements IAppVersion
|
|
20707
|
+
* @constructor
|
|
20708
|
+
* @param {proto.ClientPayload.UserAgent.IAppVersion=} [properties] Properties to set
|
|
20709
|
+
*/
|
|
20710
|
+
function AppVersion(properties) {
|
|
20711
|
+
if (properties)
|
|
20712
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20713
|
+
if (properties[keys[i]] != null)
|
|
20714
|
+
this[keys[i]] = properties[keys[i]];
|
|
20715
|
+
}
|
|
20716
|
+
|
|
20717
|
+
/**
|
|
20718
|
+
* AppVersion primary.
|
|
20719
|
+
* @member {number|null|undefined} primary
|
|
20720
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20721
|
+
* @instance
|
|
20722
|
+
*/
|
|
20723
|
+
AppVersion.prototype.primary = null;
|
|
20724
|
+
|
|
20725
|
+
/**
|
|
20726
|
+
* AppVersion secondary.
|
|
20727
|
+
* @member {number|null|undefined} secondary
|
|
20728
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20729
|
+
* @instance
|
|
20730
|
+
*/
|
|
20731
|
+
AppVersion.prototype.secondary = null;
|
|
20732
|
+
|
|
20733
|
+
/**
|
|
20734
|
+
* AppVersion tertiary.
|
|
20735
|
+
* @member {number|null|undefined} tertiary
|
|
20736
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20737
|
+
* @instance
|
|
20738
|
+
*/
|
|
20739
|
+
AppVersion.prototype.tertiary = null;
|
|
20740
|
+
|
|
20741
|
+
/**
|
|
20742
|
+
* AppVersion quaternary.
|
|
20743
|
+
* @member {number|null|undefined} quaternary
|
|
20744
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20745
|
+
* @instance
|
|
20746
|
+
*/
|
|
20747
|
+
AppVersion.prototype.quaternary = null;
|
|
20748
|
+
|
|
20749
|
+
/**
|
|
20750
|
+
* AppVersion quinary.
|
|
20751
|
+
* @member {number|null|undefined} quinary
|
|
20752
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20753
|
+
* @instance
|
|
20754
|
+
*/
|
|
20755
|
+
AppVersion.prototype.quinary = null;
|
|
20756
|
+
|
|
20757
|
+
// OneOf field names bound to virtual getters and setters
|
|
20758
|
+
var $oneOfFields;
|
|
20759
|
+
|
|
20760
|
+
/**
|
|
20761
|
+
* AppVersion _primary.
|
|
20762
|
+
* @member {"primary"|undefined} _primary
|
|
20763
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20764
|
+
* @instance
|
|
20765
|
+
*/
|
|
20766
|
+
Object.defineProperty(AppVersion.prototype, "_primary", {
|
|
20767
|
+
get: $util.oneOfGetter($oneOfFields = ["primary"]),
|
|
20768
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20769
|
+
});
|
|
20770
|
+
|
|
20771
|
+
/**
|
|
20772
|
+
* AppVersion _secondary.
|
|
20773
|
+
* @member {"secondary"|undefined} _secondary
|
|
20774
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20775
|
+
* @instance
|
|
20776
|
+
*/
|
|
20777
|
+
Object.defineProperty(AppVersion.prototype, "_secondary", {
|
|
20778
|
+
get: $util.oneOfGetter($oneOfFields = ["secondary"]),
|
|
20779
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20780
|
+
});
|
|
20781
|
+
|
|
20782
|
+
/**
|
|
20783
|
+
* AppVersion _tertiary.
|
|
20784
|
+
* @member {"tertiary"|undefined} _tertiary
|
|
20785
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20786
|
+
* @instance
|
|
20787
|
+
*/
|
|
20788
|
+
Object.defineProperty(AppVersion.prototype, "_tertiary", {
|
|
20789
|
+
get: $util.oneOfGetter($oneOfFields = ["tertiary"]),
|
|
20790
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20791
|
+
});
|
|
20792
|
+
|
|
20793
|
+
/**
|
|
20794
|
+
* AppVersion _quaternary.
|
|
20795
|
+
* @member {"quaternary"|undefined} _quaternary
|
|
20796
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20797
|
+
* @instance
|
|
20798
|
+
*/
|
|
20799
|
+
Object.defineProperty(AppVersion.prototype, "_quaternary", {
|
|
20800
|
+
get: $util.oneOfGetter($oneOfFields = ["quaternary"]),
|
|
20801
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20802
|
+
});
|
|
20803
|
+
|
|
20804
|
+
/**
|
|
20805
|
+
* AppVersion _quinary.
|
|
20806
|
+
* @member {"quinary"|undefined} _quinary
|
|
20807
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20808
|
+
* @instance
|
|
20809
|
+
*/
|
|
20810
|
+
Object.defineProperty(AppVersion.prototype, "_quinary", {
|
|
20811
|
+
get: $util.oneOfGetter($oneOfFields = ["quinary"]),
|
|
20812
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20813
|
+
});
|
|
20814
|
+
|
|
20815
|
+
/**
|
|
20816
|
+
* Creates a new AppVersion instance using the specified properties.
|
|
20817
|
+
* @function create
|
|
20818
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20819
|
+
* @static
|
|
20820
|
+
* @param {proto.ClientPayload.UserAgent.IAppVersion=} [properties] Properties to set
|
|
20821
|
+
* @returns {proto.ClientPayload.UserAgent.AppVersion} AppVersion instance
|
|
20822
|
+
*/
|
|
20823
|
+
AppVersion.create = function create(properties) {
|
|
20824
|
+
return new AppVersion(properties);
|
|
20825
|
+
};
|
|
20826
|
+
|
|
20827
|
+
/**
|
|
20828
|
+
* Encodes the specified AppVersion message. Does not implicitly {@link proto.ClientPayload.UserAgent.AppVersion.verify|verify} messages.
|
|
20829
|
+
* @function encode
|
|
20830
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20831
|
+
* @static
|
|
20832
|
+
* @param {proto.ClientPayload.UserAgent.IAppVersion} message AppVersion message or plain object to encode
|
|
20833
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20834
|
+
* @returns {$protobuf.Writer} Writer
|
|
20835
|
+
*/
|
|
20836
|
+
AppVersion.encode = function encode(message, writer) {
|
|
20837
|
+
if (!writer)
|
|
20838
|
+
writer = $Writer.create();
|
|
20839
|
+
if (message.primary != null && Object.hasOwnProperty.call(message, "primary"))
|
|
20840
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.primary);
|
|
20841
|
+
if (message.secondary != null && Object.hasOwnProperty.call(message, "secondary"))
|
|
20842
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.secondary);
|
|
20843
|
+
if (message.tertiary != null && Object.hasOwnProperty.call(message, "tertiary"))
|
|
20844
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.tertiary);
|
|
20845
|
+
if (message.quaternary != null && Object.hasOwnProperty.call(message, "quaternary"))
|
|
20846
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.quaternary);
|
|
20847
|
+
if (message.quinary != null && Object.hasOwnProperty.call(message, "quinary"))
|
|
20848
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.quinary);
|
|
20849
|
+
return writer;
|
|
20850
|
+
};
|
|
20851
|
+
|
|
20852
|
+
/**
|
|
20853
|
+
* Encodes the specified AppVersion message, length delimited. Does not implicitly {@link proto.ClientPayload.UserAgent.AppVersion.verify|verify} messages.
|
|
20854
|
+
* @function encodeDelimited
|
|
20855
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20856
|
+
* @static
|
|
20857
|
+
* @param {proto.ClientPayload.UserAgent.IAppVersion} message AppVersion message or plain object to encode
|
|
20858
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20859
|
+
* @returns {$protobuf.Writer} Writer
|
|
20860
|
+
*/
|
|
20861
|
+
AppVersion.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20862
|
+
return this.encode(message, writer).ldelim();
|
|
20863
|
+
};
|
|
20864
|
+
|
|
20865
|
+
/**
|
|
20866
|
+
* Decodes an AppVersion message from the specified reader or buffer.
|
|
20867
|
+
* @function decode
|
|
20868
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20869
|
+
* @static
|
|
20870
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20871
|
+
* @param {number} [length] Message length if known beforehand
|
|
20872
|
+
* @returns {proto.ClientPayload.UserAgent.AppVersion} AppVersion
|
|
20873
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20874
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20875
|
+
*/
|
|
20876
|
+
AppVersion.decode = function decode(reader, length) {
|
|
20877
|
+
if (!(reader instanceof $Reader))
|
|
20878
|
+
reader = $Reader.create(reader);
|
|
20879
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.ClientPayload.UserAgent.AppVersion();
|
|
20880
|
+
while (reader.pos < end) {
|
|
20881
|
+
var tag = reader.uint32();
|
|
20882
|
+
switch (tag >>> 3) {
|
|
20883
|
+
case 1:
|
|
20884
|
+
message.primary = reader.uint32();
|
|
20885
|
+
break;
|
|
20886
|
+
case 2:
|
|
20887
|
+
message.secondary = reader.uint32();
|
|
20888
|
+
break;
|
|
20889
|
+
case 3:
|
|
20890
|
+
message.tertiary = reader.uint32();
|
|
20891
|
+
break;
|
|
20892
|
+
case 4:
|
|
20893
|
+
message.quaternary = reader.uint32();
|
|
20894
|
+
break;
|
|
20895
|
+
case 5:
|
|
20896
|
+
message.quinary = reader.uint32();
|
|
20897
|
+
break;
|
|
20898
|
+
default:
|
|
20899
|
+
reader.skipType(tag & 7);
|
|
20900
|
+
break;
|
|
20901
|
+
}
|
|
20902
|
+
}
|
|
20903
|
+
return message;
|
|
20904
|
+
};
|
|
20905
|
+
|
|
20906
|
+
/**
|
|
20907
|
+
* Decodes an AppVersion message from the specified reader or buffer, length delimited.
|
|
20908
|
+
* @function decodeDelimited
|
|
20909
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20910
|
+
* @static
|
|
20911
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20912
|
+
* @returns {proto.ClientPayload.UserAgent.AppVersion} AppVersion
|
|
20913
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20914
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20915
|
+
*/
|
|
20916
|
+
AppVersion.decodeDelimited = function decodeDelimited(reader) {
|
|
20917
|
+
if (!(reader instanceof $Reader))
|
|
20918
|
+
reader = new $Reader(reader);
|
|
20919
|
+
return this.decode(reader, reader.uint32());
|
|
20920
|
+
};
|
|
20921
|
+
|
|
20922
|
+
/**
|
|
20923
|
+
* Verifies an AppVersion message.
|
|
20924
|
+
* @function verify
|
|
20925
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20926
|
+
* @static
|
|
20927
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20928
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20929
|
+
*/
|
|
20930
|
+
AppVersion.verify = function verify(message) {
|
|
20931
|
+
if (typeof message !== "object" || message === null)
|
|
20932
|
+
return "object expected";
|
|
20933
|
+
var properties = {};
|
|
20934
|
+
if (message.primary != null && message.hasOwnProperty("primary")) {
|
|
20935
|
+
properties._primary = 1;
|
|
20936
|
+
if (!$util.isInteger(message.primary))
|
|
20937
|
+
return "primary: integer expected";
|
|
20938
|
+
}
|
|
20939
|
+
if (message.secondary != null && message.hasOwnProperty("secondary")) {
|
|
20940
|
+
properties._secondary = 1;
|
|
20941
|
+
if (!$util.isInteger(message.secondary))
|
|
20942
|
+
return "secondary: integer expected";
|
|
20943
|
+
}
|
|
20944
|
+
if (message.tertiary != null && message.hasOwnProperty("tertiary")) {
|
|
20945
|
+
properties._tertiary = 1;
|
|
20946
|
+
if (!$util.isInteger(message.tertiary))
|
|
20947
|
+
return "tertiary: integer expected";
|
|
20948
|
+
}
|
|
20949
|
+
if (message.quaternary != null && message.hasOwnProperty("quaternary")) {
|
|
20950
|
+
properties._quaternary = 1;
|
|
20951
|
+
if (!$util.isInteger(message.quaternary))
|
|
20952
|
+
return "quaternary: integer expected";
|
|
20953
|
+
}
|
|
20954
|
+
if (message.quinary != null && message.hasOwnProperty("quinary")) {
|
|
20955
|
+
properties._quinary = 1;
|
|
20956
|
+
if (!$util.isInteger(message.quinary))
|
|
20957
|
+
return "quinary: integer expected";
|
|
20958
|
+
}
|
|
20959
|
+
return null;
|
|
20960
|
+
};
|
|
20961
|
+
|
|
20962
|
+
/**
|
|
20963
|
+
* Creates an AppVersion message from a plain object. Also converts values to their respective internal types.
|
|
20964
|
+
* @function fromObject
|
|
20965
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20966
|
+
* @static
|
|
20967
|
+
* @param {Object.<string,*>} object Plain object
|
|
20968
|
+
* @returns {proto.ClientPayload.UserAgent.AppVersion} AppVersion
|
|
20969
|
+
*/
|
|
20970
|
+
AppVersion.fromObject = function fromObject(object) {
|
|
20971
|
+
if (object instanceof $root.proto.ClientPayload.UserAgent.AppVersion)
|
|
20972
|
+
return object;
|
|
20973
|
+
var message = new $root.proto.ClientPayload.UserAgent.AppVersion();
|
|
20974
|
+
if (object.primary != null)
|
|
20975
|
+
message.primary = object.primary >>> 0;
|
|
20976
|
+
if (object.secondary != null)
|
|
20977
|
+
message.secondary = object.secondary >>> 0;
|
|
20978
|
+
if (object.tertiary != null)
|
|
20979
|
+
message.tertiary = object.tertiary >>> 0;
|
|
20980
|
+
if (object.quaternary != null)
|
|
20981
|
+
message.quaternary = object.quaternary >>> 0;
|
|
20982
|
+
if (object.quinary != null)
|
|
20983
|
+
message.quinary = object.quinary >>> 0;
|
|
20984
|
+
return message;
|
|
20985
|
+
};
|
|
20986
|
+
|
|
20987
|
+
/**
|
|
20988
|
+
* Creates a plain object from an AppVersion message. Also converts values to other types if specified.
|
|
20989
|
+
* @function toObject
|
|
20990
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
20991
|
+
* @static
|
|
20992
|
+
* @param {proto.ClientPayload.UserAgent.AppVersion} message AppVersion
|
|
20993
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20994
|
+
* @returns {Object.<string,*>} Plain object
|
|
20995
|
+
*/
|
|
20996
|
+
AppVersion.toObject = function toObject(message, options) {
|
|
20997
|
+
if (!options)
|
|
20998
|
+
options = {};
|
|
20999
|
+
var object = {};
|
|
21000
|
+
if (message.primary != null && message.hasOwnProperty("primary")) {
|
|
21001
|
+
object.primary = message.primary;
|
|
21002
|
+
if (options.oneofs)
|
|
21003
|
+
object._primary = "primary";
|
|
21004
|
+
}
|
|
21005
|
+
if (message.secondary != null && message.hasOwnProperty("secondary")) {
|
|
21006
|
+
object.secondary = message.secondary;
|
|
21007
|
+
if (options.oneofs)
|
|
21008
|
+
object._secondary = "secondary";
|
|
21009
|
+
}
|
|
21010
|
+
if (message.tertiary != null && message.hasOwnProperty("tertiary")) {
|
|
21011
|
+
object.tertiary = message.tertiary;
|
|
21012
|
+
if (options.oneofs)
|
|
21013
|
+
object._tertiary = "tertiary";
|
|
21014
|
+
}
|
|
21015
|
+
if (message.quaternary != null && message.hasOwnProperty("quaternary")) {
|
|
21016
|
+
object.quaternary = message.quaternary;
|
|
21017
|
+
if (options.oneofs)
|
|
21018
|
+
object._quaternary = "quaternary";
|
|
21019
|
+
}
|
|
21020
|
+
if (message.quinary != null && message.hasOwnProperty("quinary")) {
|
|
21021
|
+
object.quinary = message.quinary;
|
|
21022
|
+
if (options.oneofs)
|
|
21023
|
+
object._quinary = "quinary";
|
|
21024
|
+
}
|
|
21025
|
+
return object;
|
|
21026
|
+
};
|
|
21027
|
+
|
|
21028
|
+
/**
|
|
21029
|
+
* Converts this AppVersion to JSON.
|
|
21030
|
+
* @function toJSON
|
|
21031
|
+
* @memberof proto.ClientPayload.UserAgent.AppVersion
|
|
21032
|
+
* @instance
|
|
21033
|
+
* @returns {Object.<string,*>} JSON object
|
|
21034
|
+
*/
|
|
21035
|
+
AppVersion.prototype.toJSON = function toJSON() {
|
|
21036
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21037
|
+
};
|
|
21038
|
+
|
|
21039
|
+
return AppVersion;
|
|
21040
|
+
})();
|
|
21041
|
+
|
|
21042
|
+
/**
|
|
21043
|
+
* Platform enum.
|
|
21044
|
+
* @name proto.ClientPayload.UserAgent.Platform
|
|
21045
|
+
* @enum {number}
|
|
21046
|
+
* @property {number} ANDROID=0 ANDROID value
|
|
21047
|
+
* @property {number} IOS=1 IOS value
|
|
21048
|
+
* @property {number} WINDOWS_PHONE=2 WINDOWS_PHONE value
|
|
21049
|
+
* @property {number} BLACKBERRY=3 BLACKBERRY value
|
|
21050
|
+
* @property {number} BLACKBERRY10=4 BLACKBERRY10 value
|
|
21051
|
+
* @property {number} WEB=5 WEB value
|
|
21052
|
+
* @property {number} PORTAL=7 PORTAL value
|
|
21053
|
+
* @property {number} FBLITE_ANDROID=9 FBLITE_ANDROID value
|
|
21054
|
+
* @property {number} MLITE_ANDROID=11 MLITE_ANDROID value
|
|
21055
|
+
* @property {number} IPAD=12 IPAD value
|
|
21056
|
+
* @property {number} FBLITE_IOS=16 FBLITE_IOS value
|
|
21057
|
+
* @property {number} MLITE_IOS=17 MLITE_IOS value
|
|
21058
|
+
* @property {number} OCULUS_MSG=18 OCULUS_MSG value
|
|
21059
|
+
* @property {number} OCULUS_CALL=19 OCULUS_CALL value
|
|
21060
|
+
* @property {number} MILAN=20 MILAN value
|
|
21061
|
+
* @property {number} NIOS=21 NIOS value
|
|
21062
|
+
*/
|
|
21063
|
+
UserAgent.Platform = (function() {
|
|
21064
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
21065
|
+
values[valuesById[0] = "ANDROID"] = 0;
|
|
21066
|
+
values[valuesById[1] = "IOS"] = 1;
|
|
21067
|
+
values[valuesById[2] = "WINDOWS_PHONE"] = 2;
|
|
21068
|
+
values[valuesById[3] = "BLACKBERRY"] = 3;
|
|
21069
|
+
values[valuesById[4] = "BLACKBERRY10"] = 4;
|
|
21070
|
+
values[valuesById[5] = "WEB"] = 5;
|
|
21071
|
+
values[valuesById[7] = "PORTAL"] = 7;
|
|
21072
|
+
values[valuesById[9] = "FBLITE_ANDROID"] = 9;
|
|
21073
|
+
values[valuesById[11] = "MLITE_ANDROID"] = 11;
|
|
21074
|
+
values[valuesById[12] = "IPAD"] = 12;
|
|
21075
|
+
values[valuesById[16] = "FBLITE_IOS"] = 16;
|
|
21076
|
+
values[valuesById[17] = "MLITE_IOS"] = 17;
|
|
21077
|
+
values[valuesById[18] = "OCULUS_MSG"] = 18;
|
|
21078
|
+
values[valuesById[19] = "OCULUS_CALL"] = 19;
|
|
21079
|
+
values[valuesById[20] = "MILAN"] = 20;
|
|
21080
|
+
values[valuesById[21] = "NIOS"] = 21;
|
|
21081
|
+
return values;
|
|
21082
|
+
})();
|
|
21083
|
+
|
|
21084
|
+
/**
|
|
21085
|
+
* ReleaseChannel enum.
|
|
21086
|
+
* @name proto.ClientPayload.UserAgent.ReleaseChannel
|
|
21087
|
+
* @enum {number}
|
|
21088
|
+
* @property {number} RELEASE=0 RELEASE value
|
|
21089
|
+
* @property {number} BETA=1 BETA value
|
|
21090
|
+
* @property {number} ALPHA=2 ALPHA value
|
|
21091
|
+
* @property {number} NIGHTLY=3 NIGHTLY value
|
|
21092
|
+
*/
|
|
21093
|
+
UserAgent.ReleaseChannel = (function() {
|
|
21094
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
21095
|
+
values[valuesById[0] = "RELEASE"] = 0;
|
|
21096
|
+
values[valuesById[1] = "BETA"] = 1;
|
|
21097
|
+
values[valuesById[2] = "ALPHA"] = 2;
|
|
21098
|
+
values[valuesById[3] = "NIGHTLY"] = 3;
|
|
21099
|
+
return values;
|
|
21100
|
+
})();
|
|
21101
|
+
|
|
21102
|
+
return UserAgent;
|
|
21103
|
+
})();
|
|
21104
|
+
|
|
21105
|
+
ClientPayload.WebInfo = (function() {
|
|
21106
|
+
|
|
21107
|
+
/**
|
|
21108
|
+
* Properties of a WebInfo.
|
|
21109
|
+
* @memberof proto.ClientPayload
|
|
21110
|
+
* @interface IWebInfo
|
|
21111
|
+
* @property {string|null} [webdPayload] WebInfo webdPayload
|
|
21112
|
+
* @property {proto.ClientPayload.WebInfo.WebSubPlatform|null} [webSubPlatform] WebInfo webSubPlatform
|
|
21113
|
+
*/
|
|
21114
|
+
|
|
21115
|
+
/**
|
|
21116
|
+
* Constructs a new WebInfo.
|
|
21117
|
+
* @memberof proto.ClientPayload
|
|
21118
|
+
* @classdesc Represents a WebInfo.
|
|
21119
|
+
* @implements IWebInfo
|
|
21120
|
+
* @constructor
|
|
21121
|
+
* @param {proto.ClientPayload.IWebInfo=} [properties] Properties to set
|
|
21122
|
+
*/
|
|
21123
|
+
function WebInfo(properties) {
|
|
21124
|
+
if (properties)
|
|
21125
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21126
|
+
if (properties[keys[i]] != null)
|
|
21127
|
+
this[keys[i]] = properties[keys[i]];
|
|
21128
|
+
}
|
|
21129
|
+
|
|
21130
|
+
/**
|
|
21131
|
+
* WebInfo webdPayload.
|
|
21132
|
+
* @member {string|null|undefined} webdPayload
|
|
21133
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21134
|
+
* @instance
|
|
21135
|
+
*/
|
|
21136
|
+
WebInfo.prototype.webdPayload = null;
|
|
21137
|
+
|
|
21138
|
+
/**
|
|
21139
|
+
* WebInfo webSubPlatform.
|
|
21140
|
+
* @member {proto.ClientPayload.WebInfo.WebSubPlatform|null|undefined} webSubPlatform
|
|
21141
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21142
|
+
* @instance
|
|
21143
|
+
*/
|
|
21144
|
+
WebInfo.prototype.webSubPlatform = null;
|
|
21145
|
+
|
|
21146
|
+
// OneOf field names bound to virtual getters and setters
|
|
21147
|
+
var $oneOfFields;
|
|
21148
|
+
|
|
21149
|
+
/**
|
|
21150
|
+
* WebInfo _webdPayload.
|
|
21151
|
+
* @member {"webdPayload"|undefined} _webdPayload
|
|
21152
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21153
|
+
* @instance
|
|
21154
|
+
*/
|
|
21155
|
+
Object.defineProperty(WebInfo.prototype, "_webdPayload", {
|
|
21156
|
+
get: $util.oneOfGetter($oneOfFields = ["webdPayload"]),
|
|
21157
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
21158
|
+
});
|
|
21159
|
+
|
|
21160
|
+
/**
|
|
21161
|
+
* WebInfo _webSubPlatform.
|
|
21162
|
+
* @member {"webSubPlatform"|undefined} _webSubPlatform
|
|
21163
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21164
|
+
* @instance
|
|
21165
|
+
*/
|
|
21166
|
+
Object.defineProperty(WebInfo.prototype, "_webSubPlatform", {
|
|
21167
|
+
get: $util.oneOfGetter($oneOfFields = ["webSubPlatform"]),
|
|
21168
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
21169
|
+
});
|
|
21170
|
+
|
|
21171
|
+
/**
|
|
21172
|
+
* Creates a new WebInfo instance using the specified properties.
|
|
21173
|
+
* @function create
|
|
21174
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21175
|
+
* @static
|
|
21176
|
+
* @param {proto.ClientPayload.IWebInfo=} [properties] Properties to set
|
|
21177
|
+
* @returns {proto.ClientPayload.WebInfo} WebInfo instance
|
|
21178
|
+
*/
|
|
21179
|
+
WebInfo.create = function create(properties) {
|
|
21180
|
+
return new WebInfo(properties);
|
|
21181
|
+
};
|
|
21182
|
+
|
|
21183
|
+
/**
|
|
21184
|
+
* Encodes the specified WebInfo message. Does not implicitly {@link proto.ClientPayload.WebInfo.verify|verify} messages.
|
|
21185
|
+
* @function encode
|
|
21186
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21187
|
+
* @static
|
|
21188
|
+
* @param {proto.ClientPayload.IWebInfo} message WebInfo message or plain object to encode
|
|
21189
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21190
|
+
* @returns {$protobuf.Writer} Writer
|
|
21191
|
+
*/
|
|
21192
|
+
WebInfo.encode = function encode(message, writer) {
|
|
21193
|
+
if (!writer)
|
|
21194
|
+
writer = $Writer.create();
|
|
21195
|
+
if (message.webdPayload != null && Object.hasOwnProperty.call(message, "webdPayload"))
|
|
21196
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.webdPayload);
|
|
21197
|
+
if (message.webSubPlatform != null && Object.hasOwnProperty.call(message, "webSubPlatform"))
|
|
21198
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.webSubPlatform);
|
|
21199
|
+
return writer;
|
|
21200
|
+
};
|
|
21201
|
+
|
|
21202
|
+
/**
|
|
21203
|
+
* Encodes the specified WebInfo message, length delimited. Does not implicitly {@link proto.ClientPayload.WebInfo.verify|verify} messages.
|
|
21204
|
+
* @function encodeDelimited
|
|
21205
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21206
|
+
* @static
|
|
21207
|
+
* @param {proto.ClientPayload.IWebInfo} message WebInfo message or plain object to encode
|
|
21208
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21209
|
+
* @returns {$protobuf.Writer} Writer
|
|
21210
|
+
*/
|
|
21211
|
+
WebInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21212
|
+
return this.encode(message, writer).ldelim();
|
|
21213
|
+
};
|
|
21214
|
+
|
|
21215
|
+
/**
|
|
21216
|
+
* Decodes a WebInfo message from the specified reader or buffer.
|
|
21217
|
+
* @function decode
|
|
21218
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21219
|
+
* @static
|
|
21220
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21221
|
+
* @param {number} [length] Message length if known beforehand
|
|
21222
|
+
* @returns {proto.ClientPayload.WebInfo} WebInfo
|
|
21223
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21224
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21225
|
+
*/
|
|
21226
|
+
WebInfo.decode = function decode(reader, length) {
|
|
21227
|
+
if (!(reader instanceof $Reader))
|
|
21228
|
+
reader = $Reader.create(reader);
|
|
21229
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.proto.ClientPayload.WebInfo();
|
|
21230
|
+
while (reader.pos < end) {
|
|
21231
|
+
var tag = reader.uint32();
|
|
21232
|
+
switch (tag >>> 3) {
|
|
21233
|
+
case 1:
|
|
21234
|
+
message.webdPayload = reader.string();
|
|
21235
|
+
break;
|
|
21236
|
+
case 2:
|
|
21237
|
+
message.webSubPlatform = reader.int32();
|
|
21238
|
+
break;
|
|
21239
|
+
default:
|
|
21240
|
+
reader.skipType(tag & 7);
|
|
21241
|
+
break;
|
|
21242
|
+
}
|
|
21243
|
+
}
|
|
21244
|
+
return message;
|
|
21245
|
+
};
|
|
21246
|
+
|
|
21247
|
+
/**
|
|
21248
|
+
* Decodes a WebInfo message from the specified reader or buffer, length delimited.
|
|
21249
|
+
* @function decodeDelimited
|
|
21250
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21251
|
+
* @static
|
|
21252
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21253
|
+
* @returns {proto.ClientPayload.WebInfo} WebInfo
|
|
21254
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21255
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21256
|
+
*/
|
|
21257
|
+
WebInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
21258
|
+
if (!(reader instanceof $Reader))
|
|
21259
|
+
reader = new $Reader(reader);
|
|
21260
|
+
return this.decode(reader, reader.uint32());
|
|
21261
|
+
};
|
|
21262
|
+
|
|
21263
|
+
/**
|
|
21264
|
+
* Verifies a WebInfo message.
|
|
21265
|
+
* @function verify
|
|
21266
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21267
|
+
* @static
|
|
21268
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
21269
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
21270
|
+
*/
|
|
21271
|
+
WebInfo.verify = function verify(message) {
|
|
21272
|
+
if (typeof message !== "object" || message === null)
|
|
21273
|
+
return "object expected";
|
|
21274
|
+
var properties = {};
|
|
21275
|
+
if (message.webdPayload != null && message.hasOwnProperty("webdPayload")) {
|
|
21276
|
+
properties._webdPayload = 1;
|
|
21277
|
+
if (!$util.isString(message.webdPayload))
|
|
21278
|
+
return "webdPayload: string expected";
|
|
21279
|
+
}
|
|
21280
|
+
if (message.webSubPlatform != null && message.hasOwnProperty("webSubPlatform")) {
|
|
21281
|
+
properties._webSubPlatform = 1;
|
|
21282
|
+
switch (message.webSubPlatform) {
|
|
21283
|
+
default:
|
|
21284
|
+
return "webSubPlatform: enum value expected";
|
|
21285
|
+
case 0:
|
|
21286
|
+
case 1:
|
|
21287
|
+
case 2:
|
|
21288
|
+
case 3:
|
|
21289
|
+
case 4:
|
|
21290
|
+
break;
|
|
21291
|
+
}
|
|
21292
|
+
}
|
|
21293
|
+
return null;
|
|
21294
|
+
};
|
|
21295
|
+
|
|
21296
|
+
/**
|
|
21297
|
+
* Creates a WebInfo message from a plain object. Also converts values to their respective internal types.
|
|
21298
|
+
* @function fromObject
|
|
21299
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21300
|
+
* @static
|
|
21301
|
+
* @param {Object.<string,*>} object Plain object
|
|
21302
|
+
* @returns {proto.ClientPayload.WebInfo} WebInfo
|
|
21303
|
+
*/
|
|
21304
|
+
WebInfo.fromObject = function fromObject(object) {
|
|
21305
|
+
if (object instanceof $root.proto.ClientPayload.WebInfo)
|
|
21306
|
+
return object;
|
|
21307
|
+
var message = new $root.proto.ClientPayload.WebInfo();
|
|
21308
|
+
if (object.webdPayload != null)
|
|
21309
|
+
message.webdPayload = String(object.webdPayload);
|
|
21310
|
+
switch (object.webSubPlatform) {
|
|
21311
|
+
case "WEB_BROWSER":
|
|
21312
|
+
case 0:
|
|
21313
|
+
message.webSubPlatform = 0;
|
|
21314
|
+
break;
|
|
21315
|
+
case "APP_STORE":
|
|
21316
|
+
case 1:
|
|
21317
|
+
message.webSubPlatform = 1;
|
|
21318
|
+
break;
|
|
21319
|
+
case "WIN_STORE":
|
|
21320
|
+
case 2:
|
|
21321
|
+
message.webSubPlatform = 2;
|
|
21322
|
+
break;
|
|
21323
|
+
case "DARWIN":
|
|
21324
|
+
case 3:
|
|
21325
|
+
message.webSubPlatform = 3;
|
|
21326
|
+
break;
|
|
21327
|
+
case "WIN32":
|
|
21328
|
+
case 4:
|
|
21329
|
+
message.webSubPlatform = 4;
|
|
21330
|
+
break;
|
|
21331
|
+
}
|
|
21332
|
+
return message;
|
|
21333
|
+
};
|
|
21334
|
+
|
|
21335
|
+
/**
|
|
21336
|
+
* Creates a plain object from a WebInfo message. Also converts values to other types if specified.
|
|
21337
|
+
* @function toObject
|
|
21338
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21339
|
+
* @static
|
|
21340
|
+
* @param {proto.ClientPayload.WebInfo} message WebInfo
|
|
21341
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
21342
|
+
* @returns {Object.<string,*>} Plain object
|
|
21343
|
+
*/
|
|
21344
|
+
WebInfo.toObject = function toObject(message, options) {
|
|
21345
|
+
if (!options)
|
|
21346
|
+
options = {};
|
|
21347
|
+
var object = {};
|
|
21348
|
+
if (message.webdPayload != null && message.hasOwnProperty("webdPayload")) {
|
|
21349
|
+
object.webdPayload = message.webdPayload;
|
|
21350
|
+
if (options.oneofs)
|
|
21351
|
+
object._webdPayload = "webdPayload";
|
|
21352
|
+
}
|
|
21353
|
+
if (message.webSubPlatform != null && message.hasOwnProperty("webSubPlatform")) {
|
|
21354
|
+
object.webSubPlatform = options.enums === String ? $root.proto.ClientPayload.WebInfo.WebSubPlatform[message.webSubPlatform] : message.webSubPlatform;
|
|
21355
|
+
if (options.oneofs)
|
|
21356
|
+
object._webSubPlatform = "webSubPlatform";
|
|
21357
|
+
}
|
|
21358
|
+
return object;
|
|
21359
|
+
};
|
|
21360
|
+
|
|
21361
|
+
/**
|
|
21362
|
+
* Converts this WebInfo to JSON.
|
|
21363
|
+
* @function toJSON
|
|
21364
|
+
* @memberof proto.ClientPayload.WebInfo
|
|
21365
|
+
* @instance
|
|
21366
|
+
* @returns {Object.<string,*>} JSON object
|
|
21367
|
+
*/
|
|
21368
|
+
WebInfo.prototype.toJSON = function toJSON() {
|
|
21369
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21370
|
+
};
|
|
21371
|
+
|
|
21372
|
+
/**
|
|
21373
|
+
* WebSubPlatform enum.
|
|
21374
|
+
* @name proto.ClientPayload.WebInfo.WebSubPlatform
|
|
21375
|
+
* @enum {number}
|
|
21376
|
+
* @property {number} WEB_BROWSER=0 WEB_BROWSER value
|
|
21377
|
+
* @property {number} APP_STORE=1 APP_STORE value
|
|
21378
|
+
* @property {number} WIN_STORE=2 WIN_STORE value
|
|
21379
|
+
* @property {number} DARWIN=3 DARWIN value
|
|
21380
|
+
* @property {number} WIN32=4 WIN32 value
|
|
21381
|
+
*/
|
|
21382
|
+
WebInfo.WebSubPlatform = (function() {
|
|
21383
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
21384
|
+
values[valuesById[0] = "WEB_BROWSER"] = 0;
|
|
21385
|
+
values[valuesById[1] = "APP_STORE"] = 1;
|
|
21386
|
+
values[valuesById[2] = "WIN_STORE"] = 2;
|
|
21387
|
+
values[valuesById[3] = "DARWIN"] = 3;
|
|
21388
|
+
values[valuesById[4] = "WIN32"] = 4;
|
|
21389
|
+
return values;
|
|
21390
|
+
})();
|
|
21391
|
+
|
|
21392
|
+
return WebInfo;
|
|
21393
|
+
})();
|
|
21394
|
+
|
|
21395
|
+
return ClientPayload;
|
|
21396
|
+
})();
|
|
21397
|
+
|
|
18190
21398
|
proto.ChatLockSettings = (function() {
|
|
18191
21399
|
|
|
18192
21400
|
/**
|