Class UpdateWorkerBuildIdCompatibilityRequest
- Namespace
- Temporalio.Api.WorkflowService.V1
- Assembly
- Temporalio.dll
public sealed class UpdateWorkerBuildIdCompatibilityRequest : IMessage<UpdateWorkerBuildIdCompatibilityRequest>, IEquatable<UpdateWorkerBuildIdCompatibilityRequest>, IDeepCloneable<UpdateWorkerBuildIdCompatibilityRequest>, IBufferMessage, IMessage
- Inheritance
-
UpdateWorkerBuildIdCompatibilityRequest
- Implements
-
IMessage<UpdateWorkerBuildIdCompatibilityRequest>IDeepCloneable<UpdateWorkerBuildIdCompatibilityRequest>IBufferMessageIMessage
- Inherited Members
Constructors
UpdateWorkerBuildIdCompatibilityRequest()
public UpdateWorkerBuildIdCompatibilityRequest()
UpdateWorkerBuildIdCompatibilityRequest(UpdateWorkerBuildIdCompatibilityRequest)
public UpdateWorkerBuildIdCompatibilityRequest(UpdateWorkerBuildIdCompatibilityRequest other)
Parameters
Fields
AddNewBuildIdInNewDefaultSetFieldNumber
Field number for the "add_new_build_id_in_new_default_set" field.
public const int AddNewBuildIdInNewDefaultSetFieldNumber = 3
Field Value
AddNewCompatibleBuildIdFieldNumber
Field number for the "add_new_compatible_build_id" field.
public const int AddNewCompatibleBuildIdFieldNumber = 4
Field Value
MergeSetsFieldNumber
Field number for the "merge_sets" field.
public const int MergeSetsFieldNumber = 7
Field Value
NamespaceFieldNumber
Field number for the "namespace" field.
public const int NamespaceFieldNumber = 1
Field Value
PromoteBuildIdWithinSetFieldNumber
Field number for the "promote_build_id_within_set" field.
public const int PromoteBuildIdWithinSetFieldNumber = 6
Field Value
PromoteSetByBuildIdFieldNumber
Field number for the "promote_set_by_build_id" field.
public const int PromoteSetByBuildIdFieldNumber = 5
Field Value
TaskQueueFieldNumber
Field number for the "task_queue" field.
public const int TaskQueueFieldNumber = 2
Field Value
Properties
AddNewBuildIdInNewDefaultSet
A new build id. This operation will create a new set which will be the new overall default version for the queue, with this id as its only member. This new set is incompatible with all previous sets/versions.
(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: In makes perfect sense here. --)
public string AddNewBuildIdInNewDefaultSet { get; set; }
Property Value
AddNewCompatibleBuildId
Adds a new id to an existing compatible set, see sub-message definition for more.
public UpdateWorkerBuildIdCompatibilityRequest.Types.AddNewCompatibleVersion AddNewCompatibleBuildId { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasAddNewBuildIdInNewDefaultSet
Gets whether the "add_new_build_id_in_new_default_set" field is set
public bool HasAddNewBuildIdInNewDefaultSet { get; }
Property Value
HasPromoteBuildIdWithinSet
Gets whether the "promote_build_id_within_set" field is set
public bool HasPromoteBuildIdWithinSet { get; }
Property Value
HasPromoteSetByBuildId
Gets whether the "promote_set_by_build_id" field is set
public bool HasPromoteSetByBuildId { get; }
Property Value
MergeSets
Merge two existing sets together, thus declaring all build IDs in both sets compatible with one another. The primary set's default will become the default for the merged set. This is useful if you've accidentally declared a new ID as incompatible you meant to declare as compatible. The unusual case of incomplete replication during failover could also result in a split set, which this operation can repair.
public UpdateWorkerBuildIdCompatibilityRequest.Types.MergeSets MergeSets { get; set; }
Property Value
Namespace
public string Namespace { get; set; }
Property Value
OperationCase
public UpdateWorkerBuildIdCompatibilityRequest.OperationOneofCase OperationCase { get; }
Property Value
Parser
public static MessageParser<UpdateWorkerBuildIdCompatibilityRequest> Parser { get; }
Property Value
- MessageParser<UpdateWorkerBuildIdCompatibilityRequest>
PromoteBuildIdWithinSet
Promote an existing build id within some set to be the current default for that set.
(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: Within makes perfect sense here. --)
public string PromoteBuildIdWithinSet { get; set; }
Property Value
PromoteSetByBuildId
Promote an existing set to be the current default (if it isn't already) by targeting an existing build id within it. This field's value is the extant build id.
(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: Names are hard. --)
public string PromoteSetByBuildId { get; set; }
Property Value
TaskQueue
Must be set, the task queue to apply changes to. Because all workers on a given task queue must have the same set of workflow & activity implementations, there is no reason to specify a task queue type here.
public string TaskQueue { 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.
ClearAddNewBuildIdInNewDefaultSet()
Clears the value of the oneof if it's currently set to "add_new_build_id_in_new_default_set"
public void ClearAddNewBuildIdInNewDefaultSet()
ClearOperation()
public void ClearOperation()
ClearPromoteBuildIdWithinSet()
Clears the value of the oneof if it's currently set to "promote_build_id_within_set"
public void ClearPromoteBuildIdWithinSet()
ClearPromoteSetByBuildId()
Clears the value of the oneof if it's currently set to "promote_set_by_build_id"
public void ClearPromoteSetByBuildId()
Clone()
Creates a deep clone of this object.
public UpdateWorkerBuildIdCompatibilityRequest Clone()
Returns
- UpdateWorkerBuildIdCompatibilityRequest
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(UpdateWorkerBuildIdCompatibilityRequest)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(UpdateWorkerBuildIdCompatibilityRequest other)
Parameters
other
UpdateWorkerBuildIdCompatibilityRequestAn 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(UpdateWorkerBuildIdCompatibilityRequest)
Merges the given message into this one.
public void MergeFrom(UpdateWorkerBuildIdCompatibilityRequest 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.