Skip to main content

Class: StartTimer

coresdk.workflow_commands.StartTimer

Represents a StartTimer.

Implements

Constructors

constructor

new StartTimer(properties?): StartTimer

Constructs a new StartTimer.

Parameters

NameTypeDescription
properties?IStartTimerProperties to set

Returns

StartTimer

Properties

seq

seq: number

Lang's incremental sequence number, used as the operation identifier

Implementation of

IStartTimer.seq


startToFireTimeout

Optional startToFireTimeout: null | IDuration

StartTimer startToFireTimeout.

Implementation of

IStartTimer.startToFireTimeout

Methods

toJSON

toJSON(): Object

Converts this StartTimer to JSON.

Returns

Object

JSON object


create

create(properties?): StartTimer

Creates a new StartTimer instance using the specified properties.

Parameters

NameTypeDescription
properties?IStartTimerProperties to set

Returns

StartTimer

StartTimer instance


decode

decode(reader, length?): StartTimer

Decodes a StartTimer message from the specified reader or buffer.

Parameters

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

Returns

StartTimer

StartTimer

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): StartTimer

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

StartTimer

StartTimer

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 StartTimer message. Does not implicitly coresdk.workflow_commands.StartTimer.verify|verify messages.

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified StartTimer message, length delimited. Does not implicitly coresdk.workflow_commands.StartTimer.verify|verify messages.

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): StartTimer

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

StartTimer

StartTimer


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for StartTimer

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 StartTimer message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageStartTimerStartTimer
options?IConversionOptionsConversion options

Returns

Object

Plain object