Class: SyncdPatch
Defined in: WAProto/index.d.ts:50195
Represents a SyncdPatch.
Implements
Constructors
new SyncdPatch()
new SyncdPatch(
properties
?):SyncdPatch
Defined in: WAProto/index.d.ts:50201
Constructs a new SyncdPatch.
Parameters
properties?
Properties to set
Returns
Properties
clientDebugData?
optional
clientDebugData:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:50228
SyncdPatch clientDebugData.
Implementation of
deviceIndex?
optional
deviceIndex:null
|number
Defined in: WAProto/index.d.ts:50225
SyncdPatch deviceIndex.
Implementation of
exitCode?
optional
exitCode:null
|IExitCode
Defined in: WAProto/index.d.ts:50222
SyncdPatch exitCode.
Implementation of
externalMutations?
optional
externalMutations:null
|IExternalBlobReference
Defined in: WAProto/index.d.ts:50210
SyncdPatch externalMutations.
Implementation of
keyId?
optional
keyId:null
|IKeyId
Defined in: WAProto/index.d.ts:50219
SyncdPatch keyId.
Implementation of
mutations
mutations:
ISyncdMutation
[]
Defined in: WAProto/index.d.ts:50207
SyncdPatch mutations.
Implementation of
patchMac?
optional
patchMac:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:50216
SyncdPatch patchMac.
Implementation of
snapshotMac?
optional
snapshotMac:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:50213
SyncdPatch snapshotMac.
Implementation of
version?
optional
version:null
|ISyncdVersion
Defined in: WAProto/index.d.ts:50204
SyncdPatch version.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:50298
Converts this SyncdPatch to JSON.
Returns
object
JSON object
create()
static
create(properties
?):SyncdPatch
Defined in: WAProto/index.d.ts:50235
Creates a new SyncdPatch instance using the specified properties.
Parameters
properties?
Properties to set
Returns
SyncdPatch instance
decode()
static
decode(reader
,length
?):SyncdPatch
Defined in: WAProto/index.d.ts:50261
Decodes a SyncdPatch 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
SyncdPatch
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):SyncdPatch
Defined in: WAProto/index.d.ts:50270
Decodes a SyncdPatch message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
SyncdPatch
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:50243
Encodes the specified SyncdPatch message. Does not implicitly verify messages.
Parameters
message
SyncdPatch 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:50251
Encodes the specified SyncdPatch message, length delimited. Does not implicitly verify messages.
Parameters
message
SyncdPatch message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):SyncdPatch
Defined in: WAProto/index.d.ts:50284
Creates a SyncdPatch message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
SyncdPatch
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:50305
Gets the default type url for SyncdPatch
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:50292
Creates a plain object from a SyncdPatch message. Also converts values to other types if specified.
Parameters
message
SyncdPatch
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:50277
Verifies a SyncdPatch message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not