Class: RecordStructure
Defined in: WAProto/index.d.ts:37903
Represents a RecordStructure.
Implements
Constructors
new RecordStructure()
new RecordStructure(
properties
?):RecordStructure
Defined in: WAProto/index.d.ts:37909
Constructs a new RecordStructure.
Parameters
properties?
Properties to set
Returns
Properties
currentSession?
optional
currentSession:null
|ISessionStructure
Defined in: WAProto/index.d.ts:37912
RecordStructure currentSession.
Implementation of
IRecordStructure
.currentSession
previousSessions
previousSessions:
ISessionStructure
[]
Defined in: WAProto/index.d.ts:37915
RecordStructure previousSessions.
Implementation of
IRecordStructure
.previousSessions
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:37985
Converts this RecordStructure to JSON.
Returns
object
JSON object
create()
static
create(properties
?):RecordStructure
Defined in: WAProto/index.d.ts:37922
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:37948
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:37957
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:37930
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:37938
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:37971
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:37992
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:37979
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:37964
Verifies a RecordStructure message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not