Skip to main content

Class: RespondActivityTaskCanceledByIdRequest

workflowservice.v1.RespondActivityTaskCanceledByIdRequest

Represents a RespondActivityTaskCanceledByIdRequest.

Implements

Constructors

constructor

new RespondActivityTaskCanceledByIdRequest(properties?): RespondActivityTaskCanceledByIdRequest

Constructs a new RespondActivityTaskCanceledByIdRequest.

Parameters

NameTypeDescription
properties?IRespondActivityTaskCanceledByIdRequestProperties to set

Returns

RespondActivityTaskCanceledByIdRequest

Properties

activityId

activityId: string

Id of the activity to confirm is cancelled

Implementation of

IRespondActivityTaskCanceledByIdRequest.activityId


details

Optional details: null | IPayloads

Serialized additional information to attach to the cancellation

Implementation of

IRespondActivityTaskCanceledByIdRequest.details


identity

identity: string

The identity of the worker/client

Implementation of

IRespondActivityTaskCanceledByIdRequest.identity


namespace

namespace: string

Namespace of the workflow which scheduled this activity

Implementation of

IRespondActivityTaskCanceledByIdRequest.namespace


runId

runId: string

Run Id of the workflow which scheduled this activity

Implementation of

IRespondActivityTaskCanceledByIdRequest.runId


workflowId

workflowId: string

Id of the workflow which scheduled this activity

Implementation of

IRespondActivityTaskCanceledByIdRequest.workflowId

Methods

toJSON

toJSON(): Object

Converts this RespondActivityTaskCanceledByIdRequest to JSON.

Returns

Object

JSON object


create

create(properties?): RespondActivityTaskCanceledByIdRequest

Creates a new RespondActivityTaskCanceledByIdRequest instance using the specified properties.

Parameters

NameTypeDescription
properties?IRespondActivityTaskCanceledByIdRequestProperties to set

Returns

RespondActivityTaskCanceledByIdRequest

RespondActivityTaskCanceledByIdRequest instance


decode

decode(reader, length?): RespondActivityTaskCanceledByIdRequest

Decodes a RespondActivityTaskCanceledByIdRequest message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

RespondActivityTaskCanceledByIdRequest

RespondActivityTaskCanceledByIdRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): RespondActivityTaskCanceledByIdRequest

Decodes a RespondActivityTaskCanceledByIdRequest message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

RespondActivityTaskCanceledByIdRequest

RespondActivityTaskCanceledByIdRequest

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 RespondActivityTaskCanceledByIdRequest message. Does not implicitly temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest.verify|verify messages.

Parameters

NameTypeDescription
messageIRespondActivityTaskCanceledByIdRequestRespondActivityTaskCanceledByIdRequest message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified RespondActivityTaskCanceledByIdRequest message, length delimited. Does not implicitly temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest.verify|verify messages.

Parameters

NameTypeDescription
messageIRespondActivityTaskCanceledByIdRequestRespondActivityTaskCanceledByIdRequest message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): RespondActivityTaskCanceledByIdRequest

Creates a RespondActivityTaskCanceledByIdRequest message from a plain object. Also converts values to their respective internal types.

Parameters

NameTypeDescription
objectObjectPlain object

Returns

RespondActivityTaskCanceledByIdRequest

RespondActivityTaskCanceledByIdRequest


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for RespondActivityTaskCanceledByIdRequest

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

Creates a plain object from a RespondActivityTaskCanceledByIdRequest message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageRespondActivityTaskCanceledByIdRequestRespondActivityTaskCanceledByIdRequest
options?IConversionOptionsConversion options

Returns

Object

Plain object