Class: ClientPayload
Defined in: WAProto/index.d.ts:7733
Represents a ClientPayload.
Implements
Constructors
new ClientPayload()
new ClientPayload(
properties
?):ClientPayload
Defined in: WAProto/index.d.ts:7739
Constructs a new ClientPayload.
Parameters
properties?
Properties to set
Returns
Properties
connectAttemptCount?
optional
connectAttemptCount:null
|number
Defined in: WAProto/index.d.ts:7775
ClientPayload connectAttemptCount.
Implementation of
IClientPayload
.connectAttemptCount
connectReason?
optional
connectReason:null
|ConnectReason
Defined in: WAProto/index.d.ts:7766
ClientPayload connectReason.
Implementation of
connectType?
optional
connectType:null
|ConnectType
Defined in: WAProto/index.d.ts:7763
ClientPayload connectType.
Implementation of
device?
optional
device:null
|number
Defined in: WAProto/index.d.ts:7778
ClientPayload device.
Implementation of
devicePairingData?
optional
devicePairingData:null
|IDevicePairingRegistrationData
Defined in: WAProto/index.d.ts:7781
ClientPayload devicePairingData.
Implementation of
IClientPayload
.devicePairingData
dnsSource?
optional
dnsSource:null
|IDNSSource
Defined in: WAProto/index.d.ts:7772
ClientPayload dnsSource.
Implementation of
fbAppId?
optional
fbAppId:null
|number
|Long
Defined in: WAProto/index.d.ts:7802
ClientPayload fbAppId.
Implementation of
fbCat?
optional
fbCat:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:7787
ClientPayload fbCat.
Implementation of
fbDeviceId?
optional
fbDeviceId:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:7805
ClientPayload fbDeviceId.
Implementation of
fbUserAgent?
optional
fbUserAgent:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:7790
ClientPayload fbUserAgent.
Implementation of
interopData?
optional
interopData:null
|IInteropData
Defined in: WAProto/index.d.ts:7820
ClientPayload interopData.
Implementation of
iosAppExtension?
optional
iosAppExtension:null
|IOSAppExtension
Defined in: WAProto/index.d.ts:7799
ClientPayload iosAppExtension.
Implementation of
IClientPayload
.iosAppExtension
lc?
optional
lc:null
|number
Defined in: WAProto/index.d.ts:7796
ClientPayload lc.
Implementation of
memClass?
optional
memClass:null
|number
Defined in: WAProto/index.d.ts:7817
ClientPayload memClass.
Implementation of
oc?
optional
oc:null
|boolean
Defined in: WAProto/index.d.ts:7793
ClientPayload oc.
Implementation of
paddingBytes?
optional
paddingBytes:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:7811
ClientPayload paddingBytes.
Implementation of
passive?
optional
passive:null
|boolean
Defined in: WAProto/index.d.ts:7745
ClientPayload passive.
Implementation of
product?
optional
product:null
|Product
Defined in: WAProto/index.d.ts:7784
ClientPayload product.
Implementation of
pull?
optional
pull:null
|boolean
Defined in: WAProto/index.d.ts:7808
ClientPayload pull.
Implementation of
pushName?
optional
pushName:null
|string
Defined in: WAProto/index.d.ts:7754
ClientPayload pushName.
Implementation of
sessionId?
optional
sessionId:null
|number
Defined in: WAProto/index.d.ts:7757
ClientPayload sessionId.
Implementation of
shards
shards:
number
[]
Defined in: WAProto/index.d.ts:7769
ClientPayload shards.
Implementation of
shortConnect?
optional
shortConnect:null
|boolean
Defined in: WAProto/index.d.ts:7760
ClientPayload shortConnect.
Implementation of
trafficAnonymization?
optional
trafficAnonymization:null
|TrafficAnonymization
Defined in: WAProto/index.d.ts:7823
ClientPayload trafficAnonymization.
Implementation of
IClientPayload
.trafficAnonymization
userAgent?
optional
userAgent:null
|IUserAgent
Defined in: WAProto/index.d.ts:7748
ClientPayload userAgent.
Implementation of
username?
optional
username:null
|number
|Long
Defined in: WAProto/index.d.ts:7742
ClientPayload username.
Implementation of
webInfo?
optional
webInfo:null
|IWebInfo
Defined in: WAProto/index.d.ts:7751
ClientPayload webInfo.
Implementation of
yearClass?
optional
yearClass:null
|number
Defined in: WAProto/index.d.ts:7814
ClientPayload yearClass.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:7893
Converts this ClientPayload to JSON.
Returns
object
JSON object
create()
static
create(properties
?):ClientPayload
Defined in: WAProto/index.d.ts:7830
Creates a new ClientPayload instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ClientPayload instance
decode()
static
decode(reader
,length
?):ClientPayload
Defined in: WAProto/index.d.ts:7856
Decodes a ClientPayload message from the specified reader or buffer.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
length?
number
Message length if known beforehand
Returns
ClientPayload
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):ClientPayload
Defined in: WAProto/index.d.ts:7865
Decodes a ClientPayload message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
ClientPayload
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
static
encode(message
,writer
?):Writer
Defined in: WAProto/index.d.ts:7838
Encodes the specified ClientPayload message. Does not implicitly verify messages.
Parameters
message
ClientPayload message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
static
encodeDelimited(message
,writer
?):Writer
Defined in: WAProto/index.d.ts:7846
Encodes the specified ClientPayload message, length delimited. Does not implicitly verify messages.
Parameters
message
ClientPayload message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):ClientPayload
Defined in: WAProto/index.d.ts:7879
Creates a ClientPayload message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
ClientPayload
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:7900
Gets the default type url for ClientPayload
Parameters
typeUrlPrefix?
string
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
string
The default type url
toObject()
static
toObject(message
,options
?):object
Defined in: WAProto/index.d.ts:7887
Creates a plain object from a ClientPayload message. Also converts values to other types if specified.
Parameters
message
ClientPayload
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:7872
Verifies a ClientPayload message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not