Skip to main content

Class: ListWorkersResponse

workflowservice.v1.ListWorkersResponse

Represents a ListWorkersResponse.

Properties​

nextPageToken​

• nextPageToken: Uint8Array

Next page token


workers​

• workers: $Properties[]

Limited worker information.


workersInfo​

• workersInfo: $Properties[]

Deprecated: Use workers instead. This field returns full WorkerInfo which includes expensive runtime metrics. We will stop populating this field in the future.

Methods​

toJSON​

▸ toJSON(): Object

Converts this ListWorkersResponse to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): ListWorkersResponse & $Shape

Creates a new ListWorkersResponse instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

ListWorkersResponse & $Shape

ListWorkersResponse instance

▸ create(properties?): ListWorkersResponse

Parameters​

NameType
properties?$Properties

Returns​

ListWorkersResponse


decode​

▸ decode(reader, length?): ListWorkersResponse & $Shape

Decodes a ListWorkersResponse message from the specified reader or buffer.

Parameters​

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

Returns​

ListWorkersResponse & $Shape

ListWorkersResponse

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): ListWorkersResponse & $Shape

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

ListWorkersResponse & $Shape

ListWorkersResponse

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

Parameters​

NameTypeDescription
message$PropertiesListWorkersResponse message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

NameTypeDescription
message$PropertiesListWorkersResponse message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): ListWorkersResponse

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

ListWorkersResponse

ListWorkersResponse


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageListWorkersResponseListWorkersResponse
options?IConversionOptionsConversion options

Returns​

Object

Plain object