Class: CancelOperationRequest
nexus.v1.CancelOperationRequest
A request to cancel an operation.
Properties
operation
• operation: string
Type of operation to cancel.
operationId
• operationId: string
Operation ID as originally generated by a Handler.
Deprecated. Renamed to operation_token.
operationToken
• operationToken: string
Operation token as originally generated by a Handler.
service
• service: string
Service name.
Methods
toJSON
▸ toJSON(): Object
Converts this CancelOperationRequest to JSON.
Returns
Object
JSON object
create
▸ create(properties?): CancelOperationRequest & $Properties
Creates a new CancelOperationRequest instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Properties | Properties to set |
Returns
CancelOperationRequest & $Properties
CancelOperationRequest instance
▸ create(properties?): CancelOperationRequest
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
decode
▸ decode(reader, length?): CancelOperationRequest & $Properties
Decodes a CancelOperationRequest 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
CancelOperationRequest & $Properties
CancelOperationRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): CancelOperationRequest & $Properties
Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
CancelOperationRequest & $Properties
CancelOperationRequest
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 CancelOperationRequest message. Does not implicitly temporal.api.nexus.v1.CancelOperationRequest.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | CancelOperationRequest message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly temporal.api.nexus.v1.CancelOperationRequest.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | $Properties | CancelOperationRequest message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): CancelOperationRequest
Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
CancelOperationRequest
toObject
▸ toObject(message, options?): Object
Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | CancelOperationRequest | CancelOperationRequest |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object