Package io.temporal.api.taskqueue.v1
Class BuildIdAssignmentRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
- io.temporal.api.taskqueue.v1.BuildIdAssignmentRule.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BuildIdAssignmentRuleOrBuilder,java.lang.Cloneable
- Enclosing class:
- BuildIdAssignmentRule
public static final class BuildIdAssignmentRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder> implements BuildIdAssignmentRuleOrBuilder
These rules assign a Build ID to Unassigned Workflow Executions and Activities. Specifically, assignment rules are applied to the following Executions or Activities when they are scheduled in a Task Queue: - Generally, any new Workflow Execution, except: - When A Child Workflow or a Continue-As-New Execution inherits the Build ID from its parent/previous execution by setting the `inherit_build_id` flag. - Workflow Executions started Eagerly are assigned to the Build ID of the Starter. - An Activity that is scheduled on a Task Queue different from the one their Workflow runs on, unless the `use_workflow_build_id` flag is set. In absence of (applicable) redirect rules (`CompatibleBuildIdRedirectRule`s) the task will be dispatched to Workers of the Build ID determined by the assignment rules. Otherwise, the final Build ID will be determined by the redirect rules. When using Worker Versioning, in the steady state, for a given Task Queue, there should typically be exactly one assignment rule to send all Unassigned tasks to the latest Build ID. Existence of at least one such "unconditional" rule at all times is enforce by the system, unless the `force` flag is used by the user when replacing/deleting these rules (for exceptional cases). During a deployment, one or more additional rules can be added to assign a subset of the tasks to a new Build ID based on a "ramp percentage". When there are multiple assignment rules for a 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. In the event that no assignment rule is applicable on a task (or the Task Queue is simply not versioned), the tasks will be sent to unversioned workers, if available. Otherwise, they remain Unassigned, and will be retried for assignment, or dispatch to unversioned workers, at a later time depending on the availability of workers.Protobuf typetemporal.api.taskqueue.v1.BuildIdAssignmentRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildIdAssignmentRule.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BuildIdAssignmentRulebuild()BuildIdAssignmentRulebuildPartial()BuildIdAssignmentRule.Builderclear()BuildIdAssignmentRule.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BuildIdAssignmentRule.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BuildIdAssignmentRule.BuilderclearPercentageRamp()This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.BuildIdAssignmentRule.BuilderclearRamp()BuildIdAssignmentRule.BuilderclearTargetBuildId()string target_build_id = 1;BuildIdAssignmentRule.Builderclone()BuildIdAssignmentRulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()RampByPercentagegetPercentageRamp()This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.RampByPercentage.BuildergetPercentageRampBuilder()This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.RampByPercentageOrBuildergetPercentageRampOrBuilder()This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.BuildIdAssignmentRule.RampCasegetRampCase()java.lang.StringgetTargetBuildId()string target_build_id = 1;com.google.protobuf.ByteStringgetTargetBuildIdBytes()string target_build_id = 1;booleanhasPercentageRamp()This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BuildIdAssignmentRule.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BuildIdAssignmentRule.BuildermergeFrom(com.google.protobuf.Message other)BuildIdAssignmentRule.BuildermergeFrom(BuildIdAssignmentRule other)BuildIdAssignmentRule.BuildermergePercentageRamp(RampByPercentage value)This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.BuildIdAssignmentRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BuildIdAssignmentRule.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BuildIdAssignmentRule.BuildersetPercentageRamp(RampByPercentage value)This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.BuildIdAssignmentRule.BuildersetPercentageRamp(RampByPercentage.Builder builderForValue)This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.BuildIdAssignmentRule.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)BuildIdAssignmentRule.BuildersetTargetBuildId(java.lang.String value)string target_build_id = 1;BuildIdAssignmentRule.BuildersetTargetBuildIdBytes(com.google.protobuf.ByteString value)string target_build_id = 1;BuildIdAssignmentRule.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
clear
public BuildIdAssignmentRule.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
getDefaultInstanceForType
public BuildIdAssignmentRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BuildIdAssignmentRule build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BuildIdAssignmentRule buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BuildIdAssignmentRule.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
setField
public BuildIdAssignmentRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
clearField
public BuildIdAssignmentRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
clearOneof
public BuildIdAssignmentRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
setRepeatedField
public BuildIdAssignmentRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
addRepeatedField
public BuildIdAssignmentRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
mergeFrom
public BuildIdAssignmentRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildIdAssignmentRule.Builder>
-
mergeFrom
public BuildIdAssignmentRule.Builder mergeFrom(BuildIdAssignmentRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
mergeFrom
public BuildIdAssignmentRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildIdAssignmentRule.Builder>- Throws:
java.io.IOException
-
getRampCase
public BuildIdAssignmentRule.RampCase getRampCase()
- Specified by:
getRampCasein interfaceBuildIdAssignmentRuleOrBuilder
-
clearRamp
public BuildIdAssignmentRule.Builder clearRamp()
-
getTargetBuildId
public java.lang.String getTargetBuildId()
string target_build_id = 1;- Specified by:
getTargetBuildIdin interfaceBuildIdAssignmentRuleOrBuilder- Returns:
- The targetBuildId.
-
getTargetBuildIdBytes
public com.google.protobuf.ByteString getTargetBuildIdBytes()
string target_build_id = 1;- Specified by:
getTargetBuildIdBytesin interfaceBuildIdAssignmentRuleOrBuilder- Returns:
- The bytes for targetBuildId.
-
setTargetBuildId
public BuildIdAssignmentRule.Builder setTargetBuildId(java.lang.String value)
string target_build_id = 1;- Parameters:
value- The targetBuildId to set.- Returns:
- This builder for chaining.
-
clearTargetBuildId
public BuildIdAssignmentRule.Builder clearTargetBuildId()
string target_build_id = 1;- Returns:
- This builder for chaining.
-
setTargetBuildIdBytes
public BuildIdAssignmentRule.Builder setTargetBuildIdBytes(com.google.protobuf.ByteString value)
string target_build_id = 1;- Parameters:
value- The bytes for targetBuildId to set.- Returns:
- This builder for chaining.
-
hasPercentageRamp
public boolean hasPercentageRamp()
This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.
.temporal.api.taskqueue.v1.RampByPercentage percentage_ramp = 3;- Specified by:
hasPercentageRampin interfaceBuildIdAssignmentRuleOrBuilder- Returns:
- Whether the percentageRamp field is set.
-
getPercentageRamp
public RampByPercentage getPercentageRamp()
This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.
.temporal.api.taskqueue.v1.RampByPercentage percentage_ramp = 3;- Specified by:
getPercentageRampin interfaceBuildIdAssignmentRuleOrBuilder- Returns:
- The percentageRamp.
-
setPercentageRamp
public BuildIdAssignmentRule.Builder setPercentageRamp(RampByPercentage value)
This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.
.temporal.api.taskqueue.v1.RampByPercentage percentage_ramp = 3;
-
setPercentageRamp
public BuildIdAssignmentRule.Builder setPercentageRamp(RampByPercentage.Builder builderForValue)
This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.
.temporal.api.taskqueue.v1.RampByPercentage percentage_ramp = 3;
-
mergePercentageRamp
public BuildIdAssignmentRule.Builder mergePercentageRamp(RampByPercentage value)
This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.
.temporal.api.taskqueue.v1.RampByPercentage percentage_ramp = 3;
-
clearPercentageRamp
public BuildIdAssignmentRule.Builder clearPercentageRamp()
This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.
.temporal.api.taskqueue.v1.RampByPercentage percentage_ramp = 3;
-
getPercentageRampBuilder
public RampByPercentage.Builder getPercentageRampBuilder()
This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.
.temporal.api.taskqueue.v1.RampByPercentage percentage_ramp = 3;
-
getPercentageRampOrBuilder
public RampByPercentageOrBuilder getPercentageRampOrBuilder()
This ramp is useful for gradual Blue/Green deployments (and similar) where you want to send a certain portion of the traffic to the target Build ID.
.temporal.api.taskqueue.v1.RampByPercentage percentage_ramp = 3;- Specified by:
getPercentageRampOrBuilderin interfaceBuildIdAssignmentRuleOrBuilder
-
setUnknownFields
public final BuildIdAssignmentRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
mergeUnknownFields
public final BuildIdAssignmentRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BuildIdAssignmentRule.Builder>
-
-