Skip to main content

Class: WorkflowType

common.v1.WorkflowType

Represents a WorkflowType.

Implements#

Constructors#

constructor#

new WorkflowType(properties?)

Constructs a new WorkflowType.

Parameters#

NameType
properties?IWorkflowType

Properties#

name#

name: string

WorkflowType name.

Implementation of#

IWorkflowType.name

Methods#

toJSON#

toJSON(): Object

Converts this WorkflowType to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): WorkflowType

Decodes a WorkflowType 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#

WorkflowType

WorkflowType


decodeDelimited#

Static decodeDelimited(reader): WorkflowType

Decodes a WorkflowType 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#

WorkflowType

WorkflowType


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): WorkflowType

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

WorkflowType

WorkflowType


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageWorkflowTypeWorkflowType
options?IConversionOptions-

Returns#

Object

Plain object