Class: AddNewCompatibleVersion
v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion
Represents an AddNewCompatibleVersion.
Properties
existingCompatibleBuildId
• existingCompatibleBuildId: string
A build id which must already exist in the version sets known by the task queue. The new id will be stored in the set containing this id, marking it as compatible with the versions within.
makeSetDefault
• makeSetDefault: boolean
When set, establishes the compatible set being targeted as the overall default for the queue. If a different set was the current default, the targeted set will replace it as the new default.
newBuildId
• newBuildId: string
A new id to be added to an existing compatible set.
Methods
toJSON
▸ toJSON(): Object
Converts this AddNewCompatibleVersion to JSON.
Returns
Object
JSON object
create
▸ create(properties?): AddNewCompatibleVersion & $Properties
Creates a new AddNewCompatibleVersion instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Properties | Properties to set |
Returns
AddNewCompatibleVersion & $Properties
AddNewCompatibleVersion instance
▸ create(properties?): AddNewCompatibleVersion
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
decode
▸ decode(reader, length?): AddNewCompatibleVersion & $Properties
Decodes an AddNewCompatibleVersion 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
AddNewCompatibleVersion & $Properties
AddNewCompatibleVersion
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): AddNewCompatibleVersion & $Properties
Decodes an AddNewCompatibleVersion message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
AddNewCompatibleVersion & $Properties
AddNewCompatibleVersion
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 AddNewCompatibleVersion message. Does not implicitly temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | AddNewCompatibleVersion message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified AddNewCompatibleVersion message, length delimited. Does not implicitly temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | AddNewCompatibleVersion message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): AddNewCompatibleVersion
Creates an AddNewCompatibleVersion message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
AddNewCompatibleVersion
toObject
▸ toObject(message, options?): Object
Creates a plain object from an AddNewCompatibleVersion message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | AddNewCompatibleVersion | AddNewCompatibleVersion |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object