Class: RecordStructure
Defined in: WAProto/index.d.ts:40629
Represents a RecordStructure.
Implements
Constructors
new RecordStructure()
new RecordStructure(
properties
?):RecordStructure
Defined in: WAProto/index.d.ts:40635
Constructs a new RecordStructure.
Parameters
properties?
Properties to set
Returns
Properties
currentSession?
optional
currentSession:null
|ISessionStructure
Defined in: WAProto/index.d.ts:40638
RecordStructure currentSession.
Implementation of
IRecordStructure
.currentSession
previousSessions
previousSessions:
ISessionStructure
[]
Defined in: WAProto/index.d.ts:40641
RecordStructure previousSessions.
Implementation of
IRecordStructure
.previousSessions
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:40711
Converts this RecordStructure to JSON.
Returns
object
JSON object
create()
static
create(properties
?):RecordStructure
Defined in: WAProto/index.d.ts:40648
Creates a new RecordStructure instance using the specified properties.
Parameters
properties?
Properties to set
Returns
RecordStructure instance
decode()
static
decode(reader
,length
?):RecordStructure
Defined in: WAProto/index.d.ts:40674
Decodes a RecordStructure 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
RecordStructure
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):RecordStructure
Defined in: WAProto/index.d.ts:40683
Decodes a RecordStructure message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
RecordStructure
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:40656
Encodes the specified RecordStructure message. Does not implicitly verify messages.
Parameters
message
RecordStructure 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:40664
Encodes the specified RecordStructure message, length delimited. Does not implicitly verify messages.
Parameters
message
RecordStructure message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):RecordStructure
Defined in: WAProto/index.d.ts:40697
Creates a RecordStructure message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
RecordStructure
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:40718
Gets the default type url for RecordStructure
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:40705
Creates a plain object from a RecordStructure message. Also converts values to other types if specified.
Parameters
message
RecordStructure
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:40690
Verifies a RecordStructure message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not