Skip to main content

Class: TaskQueueMetadata

taskqueue.v1.TaskQueueMetadata

Only applies to activity task queues

Implements

Constructors

constructor

new TaskQueueMetadata(properties?): TaskQueueMetadata

Constructs a new TaskQueueMetadata.

Parameters

NameTypeDescription
properties?ITaskQueueMetadataProperties to set

Returns

TaskQueueMetadata

Properties

maxTasksPerSecond

Optional maxTasksPerSecond: null | IDoubleValue

Allows throttling dispatch of tasks from this queue

Implementation of

ITaskQueueMetadata.maxTasksPerSecond

Methods

toJSON

toJSON(): Object

Converts this TaskQueueMetadata to JSON.

Returns

Object

JSON object


create

create(properties?): TaskQueueMetadata

Creates a new TaskQueueMetadata instance using the specified properties.

Parameters

NameTypeDescription
properties?ITaskQueueMetadataProperties to set

Returns

TaskQueueMetadata

TaskQueueMetadata instance


decode

decode(reader, length?): TaskQueueMetadata

Decodes a TaskQueueMetadata message from the specified reader or buffer.

Parameters

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

Returns

TaskQueueMetadata

TaskQueueMetadata

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): TaskQueueMetadata

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

TaskQueueMetadata

TaskQueueMetadata

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

Parameters

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

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

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

Returns

Writer

Writer


fromObject

fromObject(object): TaskQueueMetadata

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

TaskQueueMetadata

TaskQueueMetadata


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for TaskQueueMetadata

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

Parameters

NameTypeDescription
messageTaskQueueMetadataTaskQueueMetadata
options?IConversionOptionsConversion options

Returns

Object

Plain object