Class: GetWorkerTaskReachabilityRequest
workflowservice.v1.GetWorkerTaskReachabilityRequest
Deprecated. Use DescribeTaskQueue
.
Implements
Constructors
constructor
• new GetWorkerTaskReachabilityRequest(properties?
): GetWorkerTaskReachabilityRequest
Constructs a new GetWorkerTaskReachabilityRequest.
Parameters
Name | Type | Description |
---|---|---|
properties? | IGetWorkerTaskReachabilityRequest | Properties to set |
Returns
GetWorkerTaskReachabilityRequest
Properties
buildIds
• buildIds: string
[]
Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
The number of build ids that can be queried in a single API call is limited.
Open source users can adjust this limit by setting the server's dynamic config value for
limit.reachabilityQueryBuildIds
with the caveat that this call can strain the visibility store.
Implementation of
IGetWorkerTaskReachabilityRequest.buildIds
namespace
• namespace: string
GetWorkerTaskReachabilityRequest namespace.
Implementation of
IGetWorkerTaskReachabilityRequest.namespace
reachability
• reachability: TaskReachability
Type of reachability to query for.
TASK_REACHABILITY_NEW_WORKFLOWS
is always returned in the response.
Use TASK_REACHABILITY_EXISTING_WORKFLOWS
if your application needs to respond to queries on closed workflows.
Otherwise, use TASK_REACHABILITY_OPEN_WORKFLOWS
. Default is TASK_REACHABILITY_EXISTING_WORKFLOWS
if left
unspecified.
See the TaskReachability docstring for information about each enum variant.
Implementation of
IGetWorkerTaskReachabilityRequest.reachability
taskQueues
• taskQueues: string
[]
Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
build ids in the namespace.
Must specify at least one task queue if querying for an unversioned worker.
The number of task queues that the server will fetch reachability information for is limited.
See the GetWorkerTaskReachabilityResponse
documentation for more information.
Implementation of
IGetWorkerTaskReachabilityRequest.taskQueues
Methods
toJSON
▸ toJSON(): Object
Converts this GetWorkerTaskReachabilityRequest to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): GetWorkerTaskReachabilityRequest
Creates a new GetWorkerTaskReachabilityRequest instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | IGetWorkerTaskReachabilityRequest | Properties to set |
Returns
GetWorkerTaskReachabilityRequest
GetWorkerTaskReachabilityRequest instance
decode
▸ decode(reader
, length?
): GetWorkerTaskReachabilityRequest
Decodes a GetWorkerTaskReachabilityRequest message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
GetWorkerTaskReachabilityRequest
GetWorkerTaskReachabilityRequest
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader
): GetWorkerTaskReachabilityRequest
Decodes a GetWorkerTaskReachabilityRequest message from the specified reader or buffer, length delimited.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
GetWorkerTaskReachabilityRequest
GetWorkerTaskReachabilityRequest
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 GetWorkerTaskReachabilityRequest message. Does not implicitly temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IGetWorkerTaskReachabilityRequest | GetWorkerTaskReachabilityRequest message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message
, writer?
): Writer
Encodes the specified GetWorkerTaskReachabilityRequest message, length delimited. Does not implicitly temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | IGetWorkerTaskReachabilityRequest | GetWorkerTaskReachabilityRequest message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object
): GetWorkerTaskReachabilityRequest
Creates a GetWorkerTaskReachabilityRequest message from a plain object. Also converts values to their respective internal types.
Parameters
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
GetWorkerTaskReachabilityRequest
GetWorkerTaskReachabilityRequest
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for GetWorkerTaskReachabilityRequest
Parameters
Name | Type | Description |
---|---|---|
typeUrlPrefix? | string | your custom typeUrlPrefix(default "type.googleapis.com") |
Returns
string
The default type url
toObject
▸ toObject(message
, options?
): Object
Creates a plain object from a GetWorkerTaskReachabilityRequest message. Also converts values to other types if specified.
Parameters
Name | Type | Description |
---|---|---|
message | GetWorkerTaskReachabilityRequest | GetWorkerTaskReachabilityRequest |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object