Class SetWorkerDeploymentCurrentVersionRequest
- Namespace
- Temporalio.Api.WorkflowService.V1
- Assembly
- Temporalio.dll
Set/unset the Current Version of a Worker Deployment.
public sealed class SetWorkerDeploymentCurrentVersionRequest : IMessage<SetWorkerDeploymentCurrentVersionRequest>, IEquatable<SetWorkerDeploymentCurrentVersionRequest>, IDeepCloneable<SetWorkerDeploymentCurrentVersionRequest>, IBufferMessage, IMessage
- Inheritance
-
SetWorkerDeploymentCurrentVersionRequest
- Implements
-
IMessage<SetWorkerDeploymentCurrentVersionRequest>IDeepCloneable<SetWorkerDeploymentCurrentVersionRequest>IBufferMessageIMessage
- Inherited Members
Constructors
SetWorkerDeploymentCurrentVersionRequest()
public SetWorkerDeploymentCurrentVersionRequest()
SetWorkerDeploymentCurrentVersionRequest(SetWorkerDeploymentCurrentVersionRequest)
public SetWorkerDeploymentCurrentVersionRequest(SetWorkerDeploymentCurrentVersionRequest other)
Parameters
Fields
BuildIdFieldNumber
Field number for the "build_id" field.
public const int BuildIdFieldNumber = 7
Field Value
ConflictTokenFieldNumber
Field number for the "conflict_token" field.
public const int ConflictTokenFieldNumber = 4
Field Value
DeploymentNameFieldNumber
Field number for the "deployment_name" field.
public const int DeploymentNameFieldNumber = 2
Field Value
IdentityFieldNumber
Field number for the "identity" field.
public const int IdentityFieldNumber = 5
Field Value
IgnoreMissingTaskQueuesFieldNumber
Field number for the "ignore_missing_task_queues" field.
public const int IgnoreMissingTaskQueuesFieldNumber = 6
Field Value
NamespaceFieldNumber
Field number for the "namespace" field.
public const int NamespaceFieldNumber = 1
Field Value
VersionFieldNumber
Field number for the "version" field.
public const int VersionFieldNumber = 3
Field Value
Properties
BuildId
The build id of the Version that you want to set as Current.
Pass an empty value to set the Current Version to nil.
A nil Current Version represents all the unversioned workers (those with UNVERSIONED
(or unspecified) WorkerVersioningMode
.)
public string BuildId { get; set; }
Property Value
ConflictToken
Optional. This can be the value of conflict_token from a Describe, or another Worker Deployment API. Passing a non-nil conflict token will cause this request to fail if the Deployment's configuration has been modified between the API call that generated the token and this one.
public ByteString ConflictToken { get; set; }
Property Value
- ByteString
DeploymentName
public string DeploymentName { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Identity
Optional. The identity of the client who initiated this request.
public string Identity { get; set; }
Property Value
IgnoreMissingTaskQueues
Optional. By default this request would be rejected if not all the expected Task Queues are
being polled by the new Version, to protect against accidental removal of Task Queues, or
worker health issues. Pass true
here to bypass this protection.
The set of expected Task Queues is the set of all the Task Queues that were ever poller by
the existing Current Version of the Deployment, with the following exclusions:
- Task Queues that are not used anymore (inferred by having empty backlog and a task add_rate of 0.)
- Task Queues that are moved to another Worker Deployment (inferred by the Task Queue having a different Current Version than the Current Version of this deployment.) WARNING: Do not set this flag unless you are sure that the missing task queue pollers are not needed. If the request is unexpectedly rejected due to missing pollers, then that means the pollers have not reached to the server yet. Only set this if you expect those pollers to never arrive.
public bool IgnoreMissingTaskQueues { get; set; }
Property Value
Namespace
public string Namespace { get; set; }
Property Value
Parser
public static MessageParser<SetWorkerDeploymentCurrentVersionRequest> Parser { get; }
Property Value
- MessageParser<SetWorkerDeploymentCurrentVersionRequest>
Version
Deprecated. Use build_id
.
[Obsolete]
public string Version { 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 SetWorkerDeploymentCurrentVersionRequest Clone()
Returns
- SetWorkerDeploymentCurrentVersionRequest
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(SetWorkerDeploymentCurrentVersionRequest)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SetWorkerDeploymentCurrentVersionRequest other)
Parameters
other
SetWorkerDeploymentCurrentVersionRequestAn 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(SetWorkerDeploymentCurrentVersionRequest)
Merges the given message into this one.
public void MergeFrom(SetWorkerDeploymentCurrentVersionRequest other)
Parameters
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.