Class TaskQueueVersioningInfo
- Namespace
- Temporalio.Api.TaskQueue.V1
- Assembly
- Temporalio.dll
Experimental. Worker Deployments are experimental and might significantly change in the future.
public sealed class TaskQueueVersioningInfo : IMessage<TaskQueueVersioningInfo>, IEquatable<TaskQueueVersioningInfo>, IDeepCloneable<TaskQueueVersioningInfo>, IBufferMessage, IMessage
- Inheritance
-
TaskQueueVersioningInfo
- Implements
-
IMessage<TaskQueueVersioningInfo>IDeepCloneable<TaskQueueVersioningInfo>IBufferMessageIMessage
- Inherited Members
Constructors
TaskQueueVersioningInfo()
public TaskQueueVersioningInfo()
TaskQueueVersioningInfo(TaskQueueVersioningInfo)
public TaskQueueVersioningInfo(TaskQueueVersioningInfo other)
Parameters
other
TaskQueueVersioningInfo
Fields
CurrentDeploymentVersionFieldNumber
Field number for the "current_deployment_version" field.
public const int CurrentDeploymentVersionFieldNumber = 7
Field Value
CurrentVersionFieldNumber
Field number for the "current_version" field.
public const int CurrentVersionFieldNumber = 1
Field Value
RampingDeploymentVersionFieldNumber
Field number for the "ramping_deployment_version" field.
public const int RampingDeploymentVersionFieldNumber = 9
Field Value
RampingVersionFieldNumber
Field number for the "ramping_version" field.
public const int RampingVersionFieldNumber = 2
Field Value
RampingVersionPercentageFieldNumber
Field number for the "ramping_version_percentage" field.
public const int RampingVersionPercentageFieldNumber = 3
Field Value
UpdateTimeFieldNumber
Field number for the "update_time" field.
public const int UpdateTimeFieldNumber = 4
Field Value
Properties
CurrentDeploymentVersion
Specifies which Deployment Version should receive new workflow executions and tasks of
existing unversioned or AutoUpgrade workflows.
Nil value represents all the unversioned workers (those with UNVERSIONED
(or unspecified) WorkerVersioningMode
.)
Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage
is non-zero (see ramping_deployment_version
and ramping_version_percentage
).
public WorkerDeploymentVersion CurrentDeploymentVersion { get; set; }
Property Value
CurrentVersion
Deprecated. Use current_deployment_version
.
[Obsolete]
public string CurrentVersion { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<TaskQueueVersioningInfo> Parser { get; }
Property Value
- MessageParser<TaskQueueVersioningInfo>
RampingDeploymentVersion
When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
Must always be different from current_deployment_version
unless both are nil.
Nil value represents all the unversioned workers (those with UNVERSIONED
(or unspecified) WorkerVersioningMode
.)
Note that it is possible to ramp from one Version to another Version, or from unversioned
workers to a particular Version, or from a particular Version to unversioned workers.
public WorkerDeploymentVersion RampingDeploymentVersion { get; set; }
Property Value
RampingVersion
Deprecated. Use ramping_deployment_version
.
[Obsolete]
public string RampingVersion { get; set; }
Property Value
RampingVersionPercentage
Percentage of tasks that are routed to the Ramping Version instead of the Current Version. Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but not yet "promoted" to be the Current Version, likely due to pending validations. A 0% value means the Ramping Version is receiving no traffic.
public float RampingVersionPercentage { get; set; }
Property Value
UpdateTime
Last time versioning information of this Task Queue changed.
public Timestamp UpdateTime { get; set; }
Property Value
- Timestamp
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 TaskQueueVersioningInfo Clone()
Returns
- TaskQueueVersioningInfo
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
other
object
Returns
Equals(TaskQueueVersioningInfo)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TaskQueueVersioningInfo other)
Parameters
other
TaskQueueVersioningInfoAn 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
input
CodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(TaskQueueVersioningInfo)
Merges the given message into this one.
public void MergeFrom(TaskQueueVersioningInfo other)
Parameters
other
TaskQueueVersioningInfo
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
output
CodedOutputStreamCoded output stream to write the data to. Must not be null.