Skip to main content

Class: StartBatchOperationRequest

workflowservice.v1.StartBatchOperationRequest

Represents a StartBatchOperationRequest.

Implements

Constructors

constructor

new StartBatchOperationRequest(properties?): StartBatchOperationRequest

Constructs a new StartBatchOperationRequest.

Parameters

NameTypeDescription
properties?IStartBatchOperationRequestProperties to set

Returns

StartBatchOperationRequest

Properties

cancellationOperation

Optional cancellationOperation: null | IBatchOperationCancellation

StartBatchOperationRequest cancellationOperation.

Implementation of

IStartBatchOperationRequest.cancellationOperation


deletionOperation

Optional deletionOperation: null | IBatchOperationDeletion

StartBatchOperationRequest deletionOperation.

Implementation of

IStartBatchOperationRequest.deletionOperation


executions

executions: IWorkflowExecution[]

Executions to apply the batch operation This field and visibility_query are mutually exclusive

Implementation of

IStartBatchOperationRequest.executions


jobId

jobId: string

Job ID defines the unique ID for the batch job

Implementation of

IStartBatchOperationRequest.jobId


maxOperationsPerSecond

maxOperationsPerSecond: number

Limit for the number of operations processed per second within this batch. Its purpose is to reduce the stress on the system caused by batch operations, which helps to prevent system overload and minimize potential delays in executing ongoing tasks for user workers. Note that when no explicit limit is provided, the server will operate according to its limit defined by the dynamic configuration key worker.batcherRPS. This also applies if the value in this field exceeds the server's configured limit.

Implementation of

IStartBatchOperationRequest.maxOperationsPerSecond


namespace

namespace: string

Namespace that contains the batch operation

Implementation of

IStartBatchOperationRequest.namespace


operation

Optional operation: "terminationOperation" | "signalOperation" | "cancellationOperation" | "deletionOperation" | "resetOperation"

Operation input


reason

reason: string

Reason to perform the batch operation

Implementation of

IStartBatchOperationRequest.reason


resetOperation

Optional resetOperation: null | IBatchOperationReset

StartBatchOperationRequest resetOperation.

Implementation of

IStartBatchOperationRequest.resetOperation


signalOperation

Optional signalOperation: null | IBatchOperationSignal

StartBatchOperationRequest signalOperation.

Implementation of

IStartBatchOperationRequest.signalOperation


terminationOperation

Optional terminationOperation: null | IBatchOperationTermination

StartBatchOperationRequest terminationOperation.

Implementation of

IStartBatchOperationRequest.terminationOperation


visibilityQuery

visibilityQuery: string

Visibility query defines the the group of workflow to apply the batch operation This field and executions are mutually exclusive

Implementation of

IStartBatchOperationRequest.visibilityQuery

Methods

toJSON

toJSON(): Object

Converts this StartBatchOperationRequest to JSON.

Returns

Object

JSON object


create

create(properties?): StartBatchOperationRequest

Creates a new StartBatchOperationRequest instance using the specified properties.

Parameters

NameTypeDescription
properties?IStartBatchOperationRequestProperties to set

Returns

StartBatchOperationRequest

StartBatchOperationRequest instance


decode

decode(reader, length?): StartBatchOperationRequest

Decodes a StartBatchOperationRequest message from the specified reader or buffer.

Parameters

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

Returns

StartBatchOperationRequest

StartBatchOperationRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): StartBatchOperationRequest

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

StartBatchOperationRequest

StartBatchOperationRequest

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): StartBatchOperationRequest

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

StartBatchOperationRequest

StartBatchOperationRequest


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for StartBatchOperationRequest

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

Parameters

NameTypeDescription
messageStartBatchOperationRequestStartBatchOperationRequest
options?IConversionOptionsConversion options

Returns

Object

Plain object