Skip to main content

Class: WorkflowTaskScheduledEventAttributes

history.v1.WorkflowTaskScheduledEventAttributes

Represents a WorkflowTaskScheduledEventAttributes.

Implements#

Constructors#

constructor#

new WorkflowTaskScheduledEventAttributes(properties?)

Constructs a new WorkflowTaskScheduledEventAttributes.

Parameters#

NameType
properties?IWorkflowTaskScheduledEventAttributes

Properties#

attempt#

attempt: number

WorkflowTaskScheduledEventAttributes attempt.

Implementation of#

IWorkflowTaskScheduledEventAttributes.attempt


startToCloseTimeout#

Optional startToCloseTimeout: null | IDuration

WorkflowTaskScheduledEventAttributes startToCloseTimeout.

Implementation of#

IWorkflowTaskScheduledEventAttributes.startToCloseTimeout


taskQueue#

Optional taskQueue: null | ITaskQueue

WorkflowTaskScheduledEventAttributes taskQueue.

Implementation of#

IWorkflowTaskScheduledEventAttributes.taskQueue

Methods#

toJSON#

toJSON(): Object

Converts this WorkflowTaskScheduledEventAttributes to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): WorkflowTaskScheduledEventAttributes

Decodes a WorkflowTaskScheduledEventAttributes message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

WorkflowTaskScheduledEventAttributes

WorkflowTaskScheduledEventAttributes


decodeDelimited#

Static decodeDelimited(reader): WorkflowTaskScheduledEventAttributes

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

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

WorkflowTaskScheduledEventAttributes

WorkflowTaskScheduledEventAttributes


encode#

Static encode(message, writer?): Writer

Encodes the specified WorkflowTaskScheduledEventAttributes message. Does not implicitly {@link temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.verify|verify} messages.

Parameters#

NameTypeDescription
messageIWorkflowTaskScheduledEventAttributesWorkflowTaskScheduledEventAttributes message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified WorkflowTaskScheduledEventAttributes message, length delimited. Does not implicitly {@link temporal.api.history.v1.WorkflowTaskScheduledEventAttributes.verify|verify} messages.

Parameters#

NameTypeDescription
messageIWorkflowTaskScheduledEventAttributesWorkflowTaskScheduledEventAttributes message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): WorkflowTaskScheduledEventAttributes

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

WorkflowTaskScheduledEventAttributes

WorkflowTaskScheduledEventAttributes


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageWorkflowTaskScheduledEventAttributesWorkflowTaskScheduledEventAttributes
options?IConversionOptions-

Returns#

Object

Plain object