Class UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule
- Namespace
- Temporalio.Api.WorkflowService.V1
- Assembly
- Temporalio.dll
Inserts the rule to the list of assignment rules for this Task Queue. The rules are evaluated in order, starting from index 0. The first applicable rule will be applied and the rest will be ignored.
public sealed class UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule : IMessage<UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule>, IEquatable<UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule>, IDeepCloneable<UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule>, IBufferMessage, IMessage
- Inheritance
-
UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule
- Implements
-
IBufferMessageIMessage
- Inherited Members
Constructors
InsertBuildIdAssignmentRule()
public InsertBuildIdAssignmentRule()
InsertBuildIdAssignmentRule(InsertBuildIdAssignmentRule)
public InsertBuildIdAssignmentRule(UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule other)
Parameters
Fields
RuleFieldNumber
Field number for the "rule" field.
public const int RuleFieldNumber = 2
Field Value
RuleIndexFieldNumber
Field number for the "rule_index" field.
public const int RuleIndexFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule> Parser { get; }
Property Value
- MessageParser<UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule>
Rule
public BuildIdAssignmentRule Rule { get; set; }
Property Value
RuleIndex
Use this option to insert the rule in a particular index. By default, the new rule is inserted at the beginning of the list (index 0). If the given index is too larger the rule will be inserted at the end of the list.
public int RuleIndex { 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 UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule Clone()
Returns
- UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule
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(InsertBuildIdAssignmentRule)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule other)
Parameters
other
UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRuleAn 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(InsertBuildIdAssignmentRule)
Merges the given message into this one.
public void MergeFrom(UpdateWorkerVersioningRulesRequest.Types.InsertBuildIdAssignmentRule 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.