Skip to main content

Class: ActivityType

common.v1.ActivityType

Represents an ActivityType.

Implements#

Constructors#

constructor#

new ActivityType(properties?)

Constructs a new ActivityType.

Parameters#

NameType
properties?IActivityType

Properties#

name#

name: string

ActivityType name.

Implementation of#

IActivityType.name

Methods#

toJSON#

toJSON(): Object

Converts this ActivityType to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): ActivityType

Decodes an ActivityType 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#

ActivityType

ActivityType


decodeDelimited#

Static decodeDelimited(reader): ActivityType

Decodes an ActivityType 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#

ActivityType

ActivityType


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): ActivityType

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

ActivityType

ActivityType


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageActivityTypeActivityType
options?IConversionOptions-

Returns#

Object

Plain object