Class: 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()
Call Signature
staticcreate(properties?):CancelOperationRequest&$Properties
Creates a new CancelOperationRequest instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CancelOperationRequest & $Properties
CancelOperationRequest instance
Call Signature
staticcreate(properties?):CancelOperationRequest
Creates a new CancelOperationRequest instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CancelOperationRequest
CancelOperationRequest instance
decode()
staticdecode(reader,length?):CancelOperationRequest&$Properties
Decodes a CancelOperationRequest message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | 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()
staticdecodeDelimited(reader):CancelOperationRequest&$Properties
Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | 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()
staticencode(message,writer?):Writer
Encodes the specified CancelOperationRequest message. Does not implicitly temporal.api.nexus.v1.CancelOperationRequest.verify|verify messages.
Parameters
message
CancelOperationRequest message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly temporal.api.nexus.v1.CancelOperationRequest.verify|verify messages.
Parameters
message
CancelOperationRequest message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):CancelOperationRequest
Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
CancelOperationRequest
CancelOperationRequest
toObject()
statictoObject(message,options?):object
Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
Parameters
message
CancelOperationRequest
CancelOperationRequest
options?
IConversionOptions
Conversion options
Returns
object
Plain object