Class: ComputeProvider
ComputeProvider stores information used by a worker control plane controller to respond to worker lifecycle events. For example, when a Task is received on a TaskQueue that has no active pollers, a serverless worker lifecycle controller might need to invoke an AWS Lambda Function that itself ends up calling the SDK's worker.New() function.
Implements
Constructors
constructor
• new ComputeProvider(properties?): ComputeProvider
Constructs a new ComputeProvider.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IComputeProvider | Properties to set |
Returns
Properties
details
• Optional details: null | IPayload
Contains provider-specific instructions and configuration. For server-implemented providers, use the SDK's default content converter to ensure the server can understand it. For remote-implemented providers, you might use your own content converters according to what the remote endpoints understand.
Implementation of
nexusEndpoint
• nexusEndpoint: string
Optional. If the compute provider is a Nexus service, this should point there.
Implementation of
IComputeProvider.nexusEndpoint
type
• type: string
Type of the compute provider. This string is implementation-specific and can be used by implementations to understand how to interpret the contents of the provider_details field.
Implementation of
Methods
toJSON
▸ toJSON(): Object
Converts this ComputeProvider to JSON.
Returns
Object
JSON object
create
▸ create(properties?): ComputeProvider
Creates a new ComputeProvider instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IComputeProvider | Properties to set |
Returns
ComputeProvider instance
decode
▸ decode(reader, length?): ComputeProvider
Decodes a ComputeProvider 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
ComputeProvider
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): ComputeProvider
Decodes a ComputeProvider message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
ComputeProvider
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 ComputeProvider message. Does not implicitly temporal.api.compute.v1.ComputeProvider.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | IComputeProvider | ComputeProvider message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified ComputeProvider message, length delimited. Does not implicitly temporal.api.compute.v1.ComputeProvider.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | IComputeProvider | ComputeProvider message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): ComputeProvider
Creates a ComputeProvider message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
ComputeProvider
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?): string
Gets the default type url for ComputeProvider
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 ComputeProvider message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | ComputeProvider | ComputeProvider |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object