Class ComputeProvider
- Namespace
- Temporalio.Api.Compute.V1
- Assembly
- Temporalio.dll
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.
public sealed class ComputeProvider : IMessage<ComputeProvider>, IEquatable<ComputeProvider>, IDeepCloneable<ComputeProvider>, IBufferMessage, IMessage
- Inheritance
-
ComputeProvider
- Implements
-
IMessage<ComputeProvider>IDeepCloneable<ComputeProvider>IBufferMessageIMessage
- Inherited Members
Constructors
ComputeProvider()
public ComputeProvider()
ComputeProvider(ComputeProvider)
public ComputeProvider(ComputeProvider other)
Parameters
otherComputeProvider
Fields
DetailsFieldNumber
Field number for the "details" field.
public const int DetailsFieldNumber = 2
Field Value
NexusEndpointFieldNumber
Field number for the "nexus_endpoint" field.
public const int NexusEndpointFieldNumber = 10
Field Value
TypeFieldNumber
Field number for the "type" field.
public const int TypeFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Details
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.
public Payload Details { get; set; }
Property Value
NexusEndpoint
Optional. If the compute provider is a Nexus service, this should point there.
public string NexusEndpoint { get; set; }
Property Value
Parser
public static MessageParser<ComputeProvider> Parser { get; }
Property Value
- MessageParser<ComputeProvider>
Type
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.
public string Type { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public ComputeProvider Clone()
Returns
- ComputeProvider
A deep clone of this object.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
Equals(ComputeProvider)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ComputeProvider other)
Parameters
otherComputeProviderAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(ComputeProvider)
Merges the given message into this one.
public void MergeFrom(ComputeProvider other)
Parameters
otherComputeProvider
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.