Class: SyncdMutations
Defined in: WAProto/index.d.ts:50074
Represents a SyncdMutations.
Implements
Constructors
new SyncdMutations()
new SyncdMutations(
properties
?):SyncdMutations
Defined in: WAProto/index.d.ts:50080
Constructs a new SyncdMutations.
Parameters
properties?
Properties to set
Returns
Properties
mutations
mutations:
ISyncdMutation
[]
Defined in: WAProto/index.d.ts:50083
SyncdMutations mutations.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:50153
Converts this SyncdMutations to JSON.
Returns
object
JSON object
create()
static
create(properties
?):SyncdMutations
Defined in: WAProto/index.d.ts:50090
Creates a new SyncdMutations instance using the specified properties.
Parameters
properties?
Properties to set
Returns
SyncdMutations instance
decode()
static
decode(reader
,length
?):SyncdMutations
Defined in: WAProto/index.d.ts:50116
Decodes a SyncdMutations 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
SyncdMutations
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):SyncdMutations
Defined in: WAProto/index.d.ts:50125
Decodes a SyncdMutations message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
SyncdMutations
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:50098
Encodes the specified SyncdMutations message. Does not implicitly verify messages.
Parameters
message
SyncdMutations 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:50106
Encodes the specified SyncdMutations message, length delimited. Does not implicitly verify messages.
Parameters
message
SyncdMutations message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):SyncdMutations
Defined in: WAProto/index.d.ts:50139
Creates a SyncdMutations message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
SyncdMutations
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:50160
Gets the default type url for SyncdMutations
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:50147
Creates a plain object from a SyncdMutations message. Also converts values to other types if specified.
Parameters
message
SyncdMutations
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:50132
Verifies a SyncdMutations message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not