Skip to main content

Class: UpdateWorkerBuildIdCompatibilityRequest

workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest

[cleanup-wv-pre-release]

Properties​

addNewBuildIdInNewDefaultSet​

• Optional addNewBuildIdInNewDefaultSet: null | string

A new build id. This operation will create a new set which will be the new overall default version for the queue, with this id as its only member. This new set is incompatible with all previous sets/versions.

(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: In makes perfect sense here. --)


addNewCompatibleBuildId​

• Optional addNewCompatibleBuildId: null | $Properties

Adds a new id to an existing compatible set, see sub-message definition for more.


mergeSets​

• Optional mergeSets: null | $Properties

Merge two existing sets together, thus declaring all build IDs in both sets compatible with one another. The primary set's default will become the default for the merged set. This is useful if you've accidentally declared a new ID as incompatible you meant to declare as compatible. The unusual case of incomplete replication during failover could also result in a split set, which this operation can repair.


namespace​

• namespace: string

UpdateWorkerBuildIdCompatibilityRequest namespace.


operation​

• Optional operation: "addNewBuildIdInNewDefaultSet" | "addNewCompatibleBuildId" | "promoteSetByBuildId" | "promoteBuildIdWithinSet" | "mergeSets"

UpdateWorkerBuildIdCompatibilityRequest operation.


promoteBuildIdWithinSet​

• Optional promoteBuildIdWithinSet: null | string

Promote an existing build id within some set to be the current default for that set.

(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: Within makes perfect sense here. --)


promoteSetByBuildId​

• Optional promoteSetByBuildId: null | string

Promote an existing set to be the current default (if it isn't already) by targeting an existing build id within it. This field's value is the extant build id.

(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: Names are hard. --)


taskQueue​

• taskQueue: string

Must be set, the task queue to apply changes to. Because all workers on a given task queue must have the same set of workflow & activity implementations, there is no reason to specify a task queue type here.

Methods​

toJSON​

▸ toJSON(): Object

Converts this UpdateWorkerBuildIdCompatibilityRequest to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): UpdateWorkerBuildIdCompatibilityRequest & $Shape

Creates a new UpdateWorkerBuildIdCompatibilityRequest instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

UpdateWorkerBuildIdCompatibilityRequest & $Shape

UpdateWorkerBuildIdCompatibilityRequest instance

▸ create(properties?): UpdateWorkerBuildIdCompatibilityRequest

Parameters​

NameType
properties?$Properties

Returns​

UpdateWorkerBuildIdCompatibilityRequest


decode​

▸ decode(reader, length?): UpdateWorkerBuildIdCompatibilityRequest & $Shape

Decodes an UpdateWorkerBuildIdCompatibilityRequest message from the specified reader or buffer.

Parameters​

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

Returns​

UpdateWorkerBuildIdCompatibilityRequest & $Shape

UpdateWorkerBuildIdCompatibilityRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): UpdateWorkerBuildIdCompatibilityRequest & $Shape

Decodes an UpdateWorkerBuildIdCompatibilityRequest message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

UpdateWorkerBuildIdCompatibilityRequest & $Shape

UpdateWorkerBuildIdCompatibilityRequest

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): UpdateWorkerBuildIdCompatibilityRequest

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

UpdateWorkerBuildIdCompatibilityRequest

UpdateWorkerBuildIdCompatibilityRequest


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageUpdateWorkerBuildIdCompatibilityRequestUpdateWorkerBuildIdCompatibilityRequest
options?IConversionOptionsConversion options

Returns​

Object

Plain object