Skip to main content

Class: NexusOperationResult

coresdk.nexus.NexusOperationResult

Used by core to resolve nexus operations.

Implements

Constructors

constructor

new NexusOperationResult(properties?): NexusOperationResult

Constructs a new NexusOperationResult.

Parameters

NameTypeDescription
properties?INexusOperationResultProperties to set

Returns

NexusOperationResult

Properties

cancelled

Optional cancelled: null | IFailure

NexusOperationResult cancelled.

Implementation of

INexusOperationResult.cancelled


completed

Optional completed: null | IPayload

NexusOperationResult completed.

Implementation of

INexusOperationResult.completed


failed

Optional failed: null | IFailure

NexusOperationResult failed.

Implementation of

INexusOperationResult.failed


status

Optional status: "completed" | "failed" | "cancelled" | "timedOut"

NexusOperationResult status.


timedOut

Optional timedOut: null | IFailure

NexusOperationResult timedOut.

Implementation of

INexusOperationResult.timedOut

Methods

toJSON

toJSON(): Object

Converts this NexusOperationResult to JSON.

Returns

Object

JSON object


create

create(properties?): NexusOperationResult

Creates a new NexusOperationResult instance using the specified properties.

Parameters

NameTypeDescription
properties?INexusOperationResultProperties to set

Returns

NexusOperationResult

NexusOperationResult instance


decode

decode(reader, length?): NexusOperationResult

Decodes a NexusOperationResult message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

NexusOperationResult

NexusOperationResult

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): NexusOperationResult

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

NexusOperationResult

NexusOperationResult

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

Encodes the specified NexusOperationResult message. Does not implicitly coresdk.nexus.NexusOperationResult.verify|verify messages.

Parameters

NameTypeDescription
messageINexusOperationResultNexusOperationResult message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified NexusOperationResult message, length delimited. Does not implicitly coresdk.nexus.NexusOperationResult.verify|verify messages.

Parameters

NameTypeDescription
messageINexusOperationResultNexusOperationResult message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): NexusOperationResult

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

NexusOperationResult

NexusOperationResult


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for NexusOperationResult

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageNexusOperationResultNexusOperationResult
options?IConversionOptionsConversion options

Returns

Object

Plain object