Package io.temporal.api.taskqueue.v1
Class TaskQueueVersioningInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersioningInfo.Builder>
-
- io.temporal.api.taskqueue.v1.TaskQueueVersioningInfo.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TaskQueueVersioningInfoOrBuilder,java.lang.Cloneable
- Enclosing class:
- TaskQueueVersioningInfo
public static final class TaskQueueVersioningInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersioningInfo.Builder> implements TaskQueueVersioningInfoOrBuilder
Experimental. Worker Deployments are experimental and might significantly change in the future.
Protobuf typetemporal.api.taskqueue.v1.TaskQueueVersioningInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskQueueVersioningInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TaskQueueVersioningInfobuild()TaskQueueVersioningInfobuildPartial()TaskQueueVersioningInfo.Builderclear()TaskQueueVersioningInfo.BuilderclearCurrentVersion()Always present.TaskQueueVersioningInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TaskQueueVersioningInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TaskQueueVersioningInfo.BuilderclearRampingVersion()When present, it means the traffic is being shifted from the Current Version to the Ramping Version.TaskQueueVersioningInfo.BuilderclearRampingVersionPercentage()Percentage of tasks that are routed to the Ramping Version instead of the Current Version.TaskQueueVersioningInfo.BuilderclearUpdateTime()Last time versioning information of this Task Queue changed.TaskQueueVersioningInfo.Builderclone()java.lang.StringgetCurrentVersion()Always present.com.google.protobuf.ByteStringgetCurrentVersionBytes()Always present.TaskQueueVersioningInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetRampingVersion()When present, it means the traffic is being shifted from the Current Version to the Ramping Version.com.google.protobuf.ByteStringgetRampingVersionBytes()When present, it means the traffic is being shifted from the Current Version to the Ramping Version.floatgetRampingVersionPercentage()Percentage of tasks that are routed to the Ramping Version instead of the Current Version.com.google.protobuf.TimestampgetUpdateTime()Last time versioning information of this Task Queue changed.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Last time versioning information of this Task Queue changed.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Last time versioning information of this Task Queue changed.booleanhasUpdateTime()Last time versioning information of this Task Queue changed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TaskQueueVersioningInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TaskQueueVersioningInfo.BuildermergeFrom(com.google.protobuf.Message other)TaskQueueVersioningInfo.BuildermergeFrom(TaskQueueVersioningInfo other)TaskQueueVersioningInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TaskQueueVersioningInfo.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Last time versioning information of this Task Queue changed.TaskQueueVersioningInfo.BuildersetCurrentVersion(java.lang.String value)Always present.TaskQueueVersioningInfo.BuildersetCurrentVersionBytes(com.google.protobuf.ByteString value)Always present.TaskQueueVersioningInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TaskQueueVersioningInfo.BuildersetRampingVersion(java.lang.String value)When present, it means the traffic is being shifted from the Current Version to the Ramping Version.TaskQueueVersioningInfo.BuildersetRampingVersionBytes(com.google.protobuf.ByteString value)When present, it means the traffic is being shifted from the Current Version to the Ramping Version.TaskQueueVersioningInfo.BuildersetRampingVersionPercentage(float value)Percentage of tasks that are routed to the Ramping Version instead of the Current Version.TaskQueueVersioningInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)TaskQueueVersioningInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TaskQueueVersioningInfo.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Last time versioning information of this Task Queue changed.TaskQueueVersioningInfo.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Last time versioning information of this Task Queue changed.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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<TaskQueueVersioningInfo.Builder>
-
clear
public TaskQueueVersioningInfo.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<TaskQueueVersioningInfo.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<TaskQueueVersioningInfo.Builder>
-
getDefaultInstanceForType
public TaskQueueVersioningInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TaskQueueVersioningInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TaskQueueVersioningInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TaskQueueVersioningInfo.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<TaskQueueVersioningInfo.Builder>
-
setField
public TaskQueueVersioningInfo.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<TaskQueueVersioningInfo.Builder>
-
clearField
public TaskQueueVersioningInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersioningInfo.Builder>
-
clearOneof
public TaskQueueVersioningInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersioningInfo.Builder>
-
setRepeatedField
public TaskQueueVersioningInfo.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<TaskQueueVersioningInfo.Builder>
-
addRepeatedField
public TaskQueueVersioningInfo.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<TaskQueueVersioningInfo.Builder>
-
mergeFrom
public TaskQueueVersioningInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskQueueVersioningInfo.Builder>
-
mergeFrom
public TaskQueueVersioningInfo.Builder mergeFrom(TaskQueueVersioningInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersioningInfo.Builder>
-
mergeFrom
public TaskQueueVersioningInfo.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<TaskQueueVersioningInfo.Builder>- Throws:
java.io.IOException
-
getCurrentVersion
public java.lang.String getCurrentVersion()
Always present. Specifies which Deployment Version should receive new workflow executions and tasks of existing unversioned or AutoUpgrade workflows. Can be one of the following: - A Deployment Version identifier in the form "<deployment_name>.<build_id>". - Or, the "__unversioned__" special value, to represent 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 a ramp is set (see `ramping_version`.)
string current_version = 1;- Specified by:
getCurrentVersionin interfaceTaskQueueVersioningInfoOrBuilder- Returns:
- The currentVersion.
-
getCurrentVersionBytes
public com.google.protobuf.ByteString getCurrentVersionBytes()
Always present. Specifies which Deployment Version should receive new workflow executions and tasks of existing unversioned or AutoUpgrade workflows. Can be one of the following: - A Deployment Version identifier in the form "<deployment_name>.<build_id>". - Or, the "__unversioned__" special value, to represent 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 a ramp is set (see `ramping_version`.)
string current_version = 1;- Specified by:
getCurrentVersionBytesin interfaceTaskQueueVersioningInfoOrBuilder- Returns:
- The bytes for currentVersion.
-
setCurrentVersion
public TaskQueueVersioningInfo.Builder setCurrentVersion(java.lang.String value)
Always present. Specifies which Deployment Version should receive new workflow executions and tasks of existing unversioned or AutoUpgrade workflows. Can be one of the following: - A Deployment Version identifier in the form "<deployment_name>.<build_id>". - Or, the "__unversioned__" special value, to represent 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 a ramp is set (see `ramping_version`.)
string current_version = 1;- Parameters:
value- The currentVersion to set.- Returns:
- This builder for chaining.
-
clearCurrentVersion
public TaskQueueVersioningInfo.Builder clearCurrentVersion()
Always present. Specifies which Deployment Version should receive new workflow executions and tasks of existing unversioned or AutoUpgrade workflows. Can be one of the following: - A Deployment Version identifier in the form "<deployment_name>.<build_id>". - Or, the "__unversioned__" special value, to represent 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 a ramp is set (see `ramping_version`.)
string current_version = 1;- Returns:
- This builder for chaining.
-
setCurrentVersionBytes
public TaskQueueVersioningInfo.Builder setCurrentVersionBytes(com.google.protobuf.ByteString value)
Always present. Specifies which Deployment Version should receive new workflow executions and tasks of existing unversioned or AutoUpgrade workflows. Can be one of the following: - A Deployment Version identifier in the form "<deployment_name>.<build_id>". - Or, the "__unversioned__" special value, to represent 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 a ramp is set (see `ramping_version`.)
string current_version = 1;- Parameters:
value- The bytes for currentVersion to set.- Returns:
- This builder for chaining.
-
getRampingVersion
public java.lang.String getRampingVersion()
When present, it means the traffic is being shifted from the Current Version to the Ramping Version. Must always be different from `current_version`. Can be one of the following: - A Deployment Version identifier in the form "<deployment_name>.<build_id>". - Or, the "__unversioned__" special value, to represent 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.
string ramping_version = 2;- Specified by:
getRampingVersionin interfaceTaskQueueVersioningInfoOrBuilder- Returns:
- The rampingVersion.
-
getRampingVersionBytes
public com.google.protobuf.ByteString getRampingVersionBytes()
When present, it means the traffic is being shifted from the Current Version to the Ramping Version. Must always be different from `current_version`. Can be one of the following: - A Deployment Version identifier in the form "<deployment_name>.<build_id>". - Or, the "__unversioned__" special value, to represent 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.
string ramping_version = 2;- Specified by:
getRampingVersionBytesin interfaceTaskQueueVersioningInfoOrBuilder- Returns:
- The bytes for rampingVersion.
-
setRampingVersion
public TaskQueueVersioningInfo.Builder setRampingVersion(java.lang.String value)
When present, it means the traffic is being shifted from the Current Version to the Ramping Version. Must always be different from `current_version`. Can be one of the following: - A Deployment Version identifier in the form "<deployment_name>.<build_id>". - Or, the "__unversioned__" special value, to represent 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.
string ramping_version = 2;- Parameters:
value- The rampingVersion to set.- Returns:
- This builder for chaining.
-
clearRampingVersion
public TaskQueueVersioningInfo.Builder clearRampingVersion()
When present, it means the traffic is being shifted from the Current Version to the Ramping Version. Must always be different from `current_version`. Can be one of the following: - A Deployment Version identifier in the form "<deployment_name>.<build_id>". - Or, the "__unversioned__" special value, to represent 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.
string ramping_version = 2;- Returns:
- This builder for chaining.
-
setRampingVersionBytes
public TaskQueueVersioningInfo.Builder setRampingVersionBytes(com.google.protobuf.ByteString value)
When present, it means the traffic is being shifted from the Current Version to the Ramping Version. Must always be different from `current_version`. Can be one of the following: - A Deployment Version identifier in the form "<deployment_name>.<build_id>". - Or, the "__unversioned__" special value, to represent 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.
string ramping_version = 2;- Parameters:
value- The bytes for rampingVersion to set.- Returns:
- This builder for chaining.
-
getRampingVersionPercentage
public float getRampingVersionPercentage()
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.
float ramping_version_percentage = 3;- Specified by:
getRampingVersionPercentagein interfaceTaskQueueVersioningInfoOrBuilder- Returns:
- The rampingVersionPercentage.
-
setRampingVersionPercentage
public TaskQueueVersioningInfo.Builder setRampingVersionPercentage(float value)
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.
float ramping_version_percentage = 3;- Parameters:
value- The rampingVersionPercentage to set.- Returns:
- This builder for chaining.
-
clearRampingVersionPercentage
public TaskQueueVersioningInfo.Builder clearRampingVersionPercentage()
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.
float ramping_version_percentage = 3;- Returns:
- This builder for chaining.
-
hasUpdateTime
public boolean hasUpdateTime()
Last time versioning information of this Task Queue changed.
.google.protobuf.Timestamp update_time = 4;- Specified by:
hasUpdateTimein interfaceTaskQueueVersioningInfoOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Last time versioning information of this Task Queue changed.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimein interfaceTaskQueueVersioningInfoOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public TaskQueueVersioningInfo.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Last time versioning information of this Task Queue changed.
.google.protobuf.Timestamp update_time = 4;
-
setUpdateTime
public TaskQueueVersioningInfo.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Last time versioning information of this Task Queue changed.
.google.protobuf.Timestamp update_time = 4;
-
mergeUpdateTime
public TaskQueueVersioningInfo.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Last time versioning information of this Task Queue changed.
.google.protobuf.Timestamp update_time = 4;
-
clearUpdateTime
public TaskQueueVersioningInfo.Builder clearUpdateTime()
Last time versioning information of this Task Queue changed.
.google.protobuf.Timestamp update_time = 4;
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Last time versioning information of this Task Queue changed.
.google.protobuf.Timestamp update_time = 4;
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Last time versioning information of this Task Queue changed.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimeOrBuilderin interfaceTaskQueueVersioningInfoOrBuilder
-
setUnknownFields
public final TaskQueueVersioningInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersioningInfo.Builder>
-
mergeUnknownFields
public final TaskQueueVersioningInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskQueueVersioningInfo.Builder>
-
-