Skip to main content

Class: FetchWorkerConfigResponse

workflowservice.v1.FetchWorkerConfigResponse

Represents a FetchWorkerConfigResponse.

Properties​

workerConfig​

• Optional workerConfig: null | $Properties

The worker configuration.

Methods​

toJSON​

▸ toJSON(): Object

Converts this FetchWorkerConfigResponse to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): FetchWorkerConfigResponse & $Shape

Creates a new FetchWorkerConfigResponse instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

FetchWorkerConfigResponse & $Shape

FetchWorkerConfigResponse instance

▸ create(properties?): FetchWorkerConfigResponse

Parameters​

NameType
properties?$Properties

Returns​

FetchWorkerConfigResponse


decode​

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

Decodes a FetchWorkerConfigResponse message from the specified reader or buffer.

Parameters​

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

Returns​

FetchWorkerConfigResponse & $Shape

FetchWorkerConfigResponse

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): FetchWorkerConfigResponse & $Shape

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

FetchWorkerConfigResponse & $Shape

FetchWorkerConfigResponse

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

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): FetchWorkerConfigResponse

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

FetchWorkerConfigResponse

FetchWorkerConfigResponse


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageFetchWorkerConfigResponseFetchWorkerConfigResponse
options?IConversionOptionsConversion options

Returns​

Object

Plain object