Skip to main content

Class: WorkerDeploymentOptions

deployment.v1.WorkerDeploymentOptions

Worker Deployment options set in SDK that need to be sent to server in every poll.

Properties

buildId

buildId: string

The Build ID of the worker. Required when worker_versioning_mode==VERSIONED, in which case, the worker will be part of a Deployment Version.


deploymentName

deploymentName: string

Required when worker_versioning_mode==VERSIONED.


workerVersioningMode

workerVersioningMode: WorkerVersioningMode

Required. Versioning Mode for this worker. Must be the same for all workers with the same deployment_name and build_id combination, across all Task Queues. When worker_versioning_mode==VERSIONED, the worker will be part of a Deployment Version.

Methods

toJSON

toJSON(): Object

Converts this WorkerDeploymentOptions to JSON.

Returns

Object

JSON object


create

create(properties?): WorkerDeploymentOptions & $Properties

Creates a new WorkerDeploymentOptions instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

WorkerDeploymentOptions & $Properties

WorkerDeploymentOptions instance

create(properties?): WorkerDeploymentOptions

Parameters

NameType
properties?$Properties

Returns

WorkerDeploymentOptions


decode

decode(reader, length?): WorkerDeploymentOptions & $Properties

Decodes a WorkerDeploymentOptions message from the specified reader or buffer.

Parameters

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

Returns

WorkerDeploymentOptions & $Properties

WorkerDeploymentOptions

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): WorkerDeploymentOptions & $Properties

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

WorkerDeploymentOptions & $Properties

WorkerDeploymentOptions

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 WorkerDeploymentOptions message. Does not implicitly temporal.api.deployment.v1.WorkerDeploymentOptions.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesWorkerDeploymentOptions message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified WorkerDeploymentOptions message, length delimited. Does not implicitly temporal.api.deployment.v1.WorkerDeploymentOptions.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesWorkerDeploymentOptions message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): WorkerDeploymentOptions

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

WorkerDeploymentOptions

WorkerDeploymentOptions


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageWorkerDeploymentOptionsWorkerDeploymentOptions
options?IConversionOptionsConversion options

Returns

Object

Plain object