Skip to main content

Class: SyncdMutation

Defined in: WAProto/index.d.ts:46878

Represents a SyncdMutation.

Implements

Constructors

new SyncdMutation()

new SyncdMutation(properties?): SyncdMutation

Defined in: WAProto/index.d.ts:46884

Constructs a new SyncdMutation.

Parameters

properties?

ISyncdMutation

Properties to set

Returns

SyncdMutation

Properties

operation?

optional operation: null | SyncdOperation

Defined in: WAProto/index.d.ts:46887

SyncdMutation operation.

Implementation of

ISyncdMutation.operation


record?

optional record: null | ISyncdRecord

Defined in: WAProto/index.d.ts:46890

SyncdMutation record.

Implementation of

ISyncdMutation.record

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:46960

Converts this SyncdMutation to JSON.

Returns

object

JSON object


create()

static create(properties?): SyncdMutation

Defined in: WAProto/index.d.ts:46897

Creates a new SyncdMutation instance using the specified properties.

Parameters

properties?

ISyncdMutation

Properties to set

Returns

SyncdMutation

SyncdMutation instance


decode()

static decode(reader, length?): SyncdMutation

Defined in: WAProto/index.d.ts:46923

Decodes a SyncdMutation 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

SyncdMutation

SyncdMutation

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): SyncdMutation

Defined in: WAProto/index.d.ts:46932

Decodes a SyncdMutation message from the specified reader or buffer, length delimited.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

SyncdMutation

SyncdMutation

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:46905

Encodes the specified SyncdMutation message. Does not implicitly verify messages.

Parameters

message

ISyncdMutation

SyncdMutation 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:46913

Encodes the specified SyncdMutation message, length delimited. Does not implicitly verify messages.

Parameters

message

ISyncdMutation

SyncdMutation message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): SyncdMutation

Defined in: WAProto/index.d.ts:46946

Creates a SyncdMutation message from a plain object. Also converts values to their respective internal types.

Parameters

object

Plain object

Returns

SyncdMutation

SyncdMutation


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:46967

Gets the default type url for SyncdMutation

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:46954

Creates a plain object from a SyncdMutation message. Also converts values to other types if specified.

Parameters

message

SyncdMutation

SyncdMutation

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

Defined in: WAProto/index.d.ts:46939

Verifies a SyncdMutation message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not