Class: StartOperationResponse
Response variant for StartOperationRequest.
Properties
asyncSuccess?
optionalasyncSuccess?:$Properties|null
StartOperationResponse asyncSuccess.
failure?
optionalfailure?:$Properties|null
The operation completed unsuccessfully (failed or canceled). Failure object must contain an ApplicationFailureInfo or CanceledFailureInfo object.
operationError?
optionaloperationError?:$Properties|null
The operation completed unsuccessfully (failed or canceled). Deprecated. Use the failure variant instead.
syncSuccess?
optionalsyncSuccess?:$Properties|null
StartOperationResponse syncSuccess.
variant?
optionalvariant?:"failure"|"syncSuccess"|"asyncSuccess"|"operationError"
StartOperationResponse variant.
Methods
toJSON()
toJSON():
object
Converts this StartOperationResponse to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):StartOperationResponse&$Shape
Creates a new StartOperationResponse instance using the specified properties.
Parameters
properties?
Properties to set
Returns
StartOperationResponse & $Shape
StartOperationResponse instance
Call Signature
staticcreate(properties?):StartOperationResponse
Creates a new StartOperationResponse instance using the specified properties.
Parameters
properties?
Properties to set
Returns
StartOperationResponse
StartOperationResponse instance
decode()
staticdecode(reader,length?):StartOperationResponse&$Shape
Decodes a StartOperationResponse 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
StartOperationResponse & $Shape
StartOperationResponse
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):StartOperationResponse&$Shape
Decodes a StartOperationResponse message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
StartOperationResponse & $Shape
StartOperationResponse
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 StartOperationResponse message. Does not implicitly temporal.api.nexus.v1.StartOperationResponse.verify|verify messages.
Parameters
message
StartOperationResponse message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified StartOperationResponse message, length delimited. Does not implicitly temporal.api.nexus.v1.StartOperationResponse.verify|verify messages.
Parameters
message
StartOperationResponse message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):StartOperationResponse
Creates a StartOperationResponse message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
StartOperationResponse
StartOperationResponse
toObject()
statictoObject(message,options?):object
Creates a plain object from a StartOperationResponse message. Also converts values to other types if specified.
Parameters
message
StartOperationResponse
StartOperationResponse
options?
IConversionOptions
Conversion options
Returns
object
Plain object