Class: SyncdMutations
Defined in: WAProto/index.d.ts:46987
Represents a SyncdMutations.
Implements
Constructors
new SyncdMutations()
new SyncdMutations(
properties
?):SyncdMutations
Defined in: WAProto/index.d.ts:46993
Constructs a new SyncdMutations.
Parameters
properties?
Properties to set
Returns
Properties
mutations
mutations:
ISyncdMutation
[]
Defined in: WAProto/index.d.ts:46996
SyncdMutations mutations.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:47066
Converts this SyncdMutations to JSON.
Returns
object
JSON object
create()
static
create(properties
?):SyncdMutations
Defined in: WAProto/index.d.ts:47003
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:47029
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:47038
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:47011
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:47019
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:47052
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:47073
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:47060
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:47045
Verifies a SyncdMutations message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not