Class: UpdateWorkerBuildIdCompatibilityRequest
workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest
Represents an UpdateWorkerBuildIdCompatibilityRequest.
Implements
Constructors
constructor
• new UpdateWorkerBuildIdCompatibilityRequest(properties?
): UpdateWorkerBuildIdCompatibilityRequest
Constructs a new UpdateWorkerBuildIdCompatibilityRequest.
Parameters
Name | Type | Description |
---|---|---|
properties? | IUpdateWorkerBuildIdCompatibilityRequest | Properties to set |
Returns
UpdateWorkerBuildIdCompatibilityRequest
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. --)
Implementation of
IUpdateWorkerBuildIdCompatibilityRequest.addNewBuildIdInNewDefaultSet
addNewCompatibleBuildId
• Optional
addNewCompatibleBuildId: null
| IAddNewCompatibleVersion
Adds a new id to an existing compatible set, see sub-message definition for more.
Implementation of
IUpdateWorkerBuildIdCompatibilityRequest.addNewCompatibleBuildId
mergeSets
• Optional
mergeSets: null
| IMergeSets
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.
Implementation of
IUpdateWorkerBuildIdCompatibilityRequest.mergeSets
namespace
• namespace: string
UpdateWorkerBuildIdCompatibilityRequest namespace.
Implementation of
IUpdateWorkerBuildIdCompatibilityRequest.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. --)
Implementation of
IUpdateWorkerBuildIdCompatibilityRequest.promoteBuildIdWithinSet
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. --)
Implementation of
IUpdateWorkerBuildIdCompatibilityRequest.promoteSetByBuildId
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.
Implementation of
IUpdateWorkerBuildIdCompatibilityRequest.taskQueue
Methods
toJSON
▸ toJSON(): Object
Converts this UpdateWorkerBuildIdCompatibilityRequest to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): UpdateWorkerBuildIdCompatibilityRequest
Creates a new UpdateWorkerBuildIdCompatibilityRequest instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | IUpdateWorkerBuildIdCompatibilityRequest | Properties to set |
Returns
UpdateWorkerBuildIdCompatibilityRequest
UpdateWorkerBuildIdCompatibilityRequest instance
decode
▸ decode(reader
, length?
): UpdateWorkerBuildIdCompatibilityRequest
Decodes an UpdateWorkerBuildIdCompatibilityRequest message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
UpdateWorkerBuildIdCompatibilityRequest
UpdateWorkerBuildIdCompatibilityRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader
): UpdateWorkerBuildIdCompatibilityRequest
Decodes an UpdateWorkerBuildIdCompatibilityRequest message from the specified reader or buffer, length delimited.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
UpdateWorkerBuildIdCompatibilityRequest
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
Name | Type | Description |
---|---|---|
message | IUpdateWorkerBuildIdCompatibilityRequest | UpdateWorkerBuildIdCompatibilityRequest message or plain object to encode |
writer? | Writer | Writer 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
Name | Type | Description |
---|---|---|
message | IUpdateWorkerBuildIdCompatibilityRequest | UpdateWorkerBuildIdCompatibilityRequest message or plain object to encode |
writer? | Writer | Writer 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
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
UpdateWorkerBuildIdCompatibilityRequest
UpdateWorkerBuildIdCompatibilityRequest
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for UpdateWorkerBuildIdCompatibilityRequest
Parameters
Name | Type | Description |
---|---|---|
typeUrlPrefix? | string | your custom typeUrlPrefix(default "type.googleapis.com") |
Returns
string
The default type url
toObject
▸ toObject(message
, options?
): Object
Creates a plain object from an UpdateWorkerBuildIdCompatibilityRequest message. Also converts values to other types if specified.
Parameters
Name | Type | Description |
---|---|---|
message | UpdateWorkerBuildIdCompatibilityRequest | UpdateWorkerBuildIdCompatibilityRequest |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object