Skip to main content

Class: SetWorkerDeploymentManagerResponse

workflowservice.v1.SetWorkerDeploymentManagerResponse

Represents a SetWorkerDeploymentManagerResponse.

Implements

Constructors

constructor

new SetWorkerDeploymentManagerResponse(properties?): SetWorkerDeploymentManagerResponse

Constructs a new SetWorkerDeploymentManagerResponse.

Parameters

NameTypeDescription
properties?ISetWorkerDeploymentManagerResponseProperties to set

Returns

SetWorkerDeploymentManagerResponse

Properties

conflictToken

conflictToken: Uint8Array

This value is returned so that it can be optionally passed to APIs that write to the Worker Deployment state to ensure that the state did not change between this API call and a future write.

Implementation of

ISetWorkerDeploymentManagerResponse.conflictToken


previousManagerIdentity

previousManagerIdentity: string

What the manager_identity field was before this change. Deprecated in favor of idempotency of the API. Use DescribeWorkerDeployment to get the manager identity before calling this API. By passing the conflict_token got from the DescribeWorkerDeployment call to this API you can ensure there is no interfering changes between the two calls.

Implementation of

ISetWorkerDeploymentManagerResponse.previousManagerIdentity

Methods

toJSON

toJSON(): Object

Converts this SetWorkerDeploymentManagerResponse to JSON.

Returns

Object

JSON object


create

create(properties?): SetWorkerDeploymentManagerResponse

Creates a new SetWorkerDeploymentManagerResponse instance using the specified properties.

Parameters

NameTypeDescription
properties?ISetWorkerDeploymentManagerResponseProperties to set

Returns

SetWorkerDeploymentManagerResponse

SetWorkerDeploymentManagerResponse instance


decode

decode(reader, length?): SetWorkerDeploymentManagerResponse

Decodes a SetWorkerDeploymentManagerResponse message from the specified reader or buffer.

Parameters

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

Returns

SetWorkerDeploymentManagerResponse

SetWorkerDeploymentManagerResponse

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): SetWorkerDeploymentManagerResponse

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

SetWorkerDeploymentManagerResponse

SetWorkerDeploymentManagerResponse

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): SetWorkerDeploymentManagerResponse

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

SetWorkerDeploymentManagerResponse

SetWorkerDeploymentManagerResponse


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for SetWorkerDeploymentManagerResponse

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

Parameters

NameTypeDescription
messageSetWorkerDeploymentManagerResponseSetWorkerDeploymentManagerResponse
options?IConversionOptionsConversion options

Returns

Object

Plain object