Skip to main content

Class: PauseActivityByIdRequest

workflowservice.v1.PauseActivityByIdRequest

Represents a PauseActivityByIdRequest.

Implements

Constructors

constructor

new PauseActivityByIdRequest(properties?): PauseActivityByIdRequest

Constructs a new PauseActivityByIdRequest.

Parameters

NameTypeDescription
properties?IPauseActivityByIdRequestProperties to set

Returns

PauseActivityByIdRequest

Properties

activityId

activityId: string

ID of the activity we're updating.

Implementation of

IPauseActivityByIdRequest.activityId


identity

identity: string

The identity of the client who initiated this request.

Implementation of

IPauseActivityByIdRequest.identity


namespace

namespace: string

Namespace of the workflow which scheduled this activity.

Implementation of

IPauseActivityByIdRequest.namespace


requestId

requestId: string

Used to de-dupe requests.

Implementation of

IPauseActivityByIdRequest.requestId


runId

runId: string

Run ID of the workflow which scheduled this activity. If empty - latest workflow is used.

Implementation of

IPauseActivityByIdRequest.runId


workflowId

workflowId: string

ID of the workflow which scheduled this activity.

Implementation of

IPauseActivityByIdRequest.workflowId

Methods

toJSON

toJSON(): Object

Converts this PauseActivityByIdRequest to JSON.

Returns

Object

JSON object


create

create(properties?): PauseActivityByIdRequest

Creates a new PauseActivityByIdRequest instance using the specified properties.

Parameters

NameTypeDescription
properties?IPauseActivityByIdRequestProperties to set

Returns

PauseActivityByIdRequest

PauseActivityByIdRequest instance


decode

decode(reader, length?): PauseActivityByIdRequest

Decodes a PauseActivityByIdRequest message from the specified reader or buffer.

Parameters

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

Returns

PauseActivityByIdRequest

PauseActivityByIdRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): PauseActivityByIdRequest

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

PauseActivityByIdRequest

PauseActivityByIdRequest

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): PauseActivityByIdRequest

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

PauseActivityByIdRequest

PauseActivityByIdRequest


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for PauseActivityByIdRequest

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 PauseActivityByIdRequest message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messagePauseActivityByIdRequestPauseActivityByIdRequest
options?IConversionOptionsConversion options

Returns

Object

Plain object