Class: SyncdRecord
Defined in: WAProto/index.d.ts:47235
Represents a SyncdRecord.
Implements
Constructors
new SyncdRecord()
new SyncdRecord(
properties
?):SyncdRecord
Defined in: WAProto/index.d.ts:47241
Constructs a new SyncdRecord.
Parameters
properties?
Properties to set
Returns
Properties
index?
optional
index:null
|ISyncdIndex
Defined in: WAProto/index.d.ts:47244
SyncdRecord index.
Implementation of
keyId?
optional
keyId:null
|IKeyId
Defined in: WAProto/index.d.ts:47250
SyncdRecord keyId.
Implementation of
value?
optional
value:null
|ISyncdValue
Defined in: WAProto/index.d.ts:47247
SyncdRecord value.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:47320
Converts this SyncdRecord to JSON.
Returns
object
JSON object
create()
static
create(properties
?):SyncdRecord
Defined in: WAProto/index.d.ts:47257
Creates a new SyncdRecord instance using the specified properties.
Parameters
properties?
Properties to set
Returns
SyncdRecord instance
decode()
static
decode(reader
,length
?):SyncdRecord
Defined in: WAProto/index.d.ts:47283
Decodes a SyncdRecord 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
SyncdRecord
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):SyncdRecord
Defined in: WAProto/index.d.ts:47292
Decodes a SyncdRecord message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
SyncdRecord
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:47265
Encodes the specified SyncdRecord message. Does not implicitly verify messages.
Parameters
message
SyncdRecord 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:47273
Encodes the specified SyncdRecord message, length delimited. Does not implicitly verify messages.
Parameters
message
SyncdRecord message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):SyncdRecord
Defined in: WAProto/index.d.ts:47306
Creates a SyncdRecord message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
SyncdRecord
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:47327
Gets the default type url for SyncdRecord
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:47314
Creates a plain object from a SyncdRecord message. Also converts values to other types if specified.
Parameters
message
SyncdRecord
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:47299
Verifies a SyncdRecord message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not