Class SetWorkerDeploymentRampingVersionRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionRequest
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SetWorkerDeploymentRampingVersionRequestOrBuilder,java.io.Serializable
@Generated(value="protoc", comments="annotations:SetWorkerDeploymentRampingVersionRequest.java.pb.meta") public final class SetWorkerDeploymentRampingVersionRequest extends com.google.protobuf.GeneratedMessageV3 implements SetWorkerDeploymentRampingVersionRequestOrBuilderSet/unset the Ramping Version of a Worker Deployment and its ramp percentage.
Protobuf typetemporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSetWorkerDeploymentRampingVersionRequest.BuilderSet/unset the Ramping Version of a Worker Deployment and its ramp percentage.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONFLICT_TOKEN_FIELD_NUMBERstatic intDEPLOYMENT_NAME_FIELD_NUMBERstatic intIDENTITY_FIELD_NUMBERstatic intIGNORE_MISSING_TASK_QUEUES_FIELD_NUMBERstatic intNAMESPACE_FIELD_NUMBERstatic intPERCENTAGE_FIELD_NUMBERstatic intVERSION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)com.google.protobuf.ByteStringgetConflictToken()Optional.static SetWorkerDeploymentRampingVersionRequestgetDefaultInstance()SetWorkerDeploymentRampingVersionRequestgetDefaultInstanceForType()java.lang.StringgetDeploymentName()string deployment_name = 2;com.google.protobuf.ByteStringgetDeploymentNameBytes()string deployment_name = 2;static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetIdentity()Optional.com.google.protobuf.ByteStringgetIdentityBytes()Optional.booleangetIgnoreMissingTaskQueues()Optional.java.lang.StringgetNamespace()string namespace = 1;com.google.protobuf.ByteStringgetNamespaceBytes()string namespace = 1;com.google.protobuf.Parser<SetWorkerDeploymentRampingVersionRequest>getParserForType()floatgetPercentage()Ramp percentage to set.intgetSerializedSize()java.lang.StringgetVersion()Can be one of the following: - Absent/empty value to unset the Ramping Version.com.google.protobuf.ByteStringgetVersionBytes()Can be one of the following: - Absent/empty value to unset the Ramping Version.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static SetWorkerDeploymentRampingVersionRequest.BuildernewBuilder()static SetWorkerDeploymentRampingVersionRequest.BuildernewBuilder(SetWorkerDeploymentRampingVersionRequest prototype)SetWorkerDeploymentRampingVersionRequest.BuildernewBuilderForType()protected SetWorkerDeploymentRampingVersionRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SetWorkerDeploymentRampingVersionRequestparseDelimitedFrom(java.io.InputStream input)static SetWorkerDeploymentRampingVersionRequestparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SetWorkerDeploymentRampingVersionRequestparseFrom(byte[] data)static SetWorkerDeploymentRampingVersionRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SetWorkerDeploymentRampingVersionRequestparseFrom(com.google.protobuf.ByteString data)static SetWorkerDeploymentRampingVersionRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SetWorkerDeploymentRampingVersionRequestparseFrom(com.google.protobuf.CodedInputStream input)static SetWorkerDeploymentRampingVersionRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SetWorkerDeploymentRampingVersionRequestparseFrom(java.io.InputStream input)static SetWorkerDeploymentRampingVersionRequestparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SetWorkerDeploymentRampingVersionRequestparseFrom(java.nio.ByteBuffer data)static SetWorkerDeploymentRampingVersionRequestparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<SetWorkerDeploymentRampingVersionRequest>parser()SetWorkerDeploymentRampingVersionRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAMESPACE_FIELD_NUMBER
public static final int NAMESPACE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPLOYMENT_NAME_FIELD_NUMBER
public static final int DEPLOYMENT_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERCENTAGE_FIELD_NUMBER
public static final int PERCENTAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONFLICT_TOKEN_FIELD_NUMBER
public static final int CONFLICT_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IDENTITY_FIELD_NUMBER
public static final int IDENTITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IGNORE_MISSING_TASK_QUEUES_FIELD_NUMBER
public static final int IGNORE_MISSING_TASK_QUEUES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getNamespace
public java.lang.String getNamespace()
string namespace = 1;- Specified by:
getNamespacein interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()
string namespace = 1;- Specified by:
getNamespaceBytesin interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The bytes for namespace.
-
getDeploymentName
public java.lang.String getDeploymentName()
string deployment_name = 2;- Specified by:
getDeploymentNamein interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The deploymentName.
-
getDeploymentNameBytes
public com.google.protobuf.ByteString getDeploymentNameBytes()
string deployment_name = 2;- Specified by:
getDeploymentNameBytesin interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The bytes for deploymentName.
-
getVersion
public java.lang.String getVersion()
Can be one of the following: - Absent/empty value to unset the Ramping Version. Must be paired with `percentage=0`. - 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`.)
string version = 3;- Specified by:
getVersionin interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()
Can be one of the following: - Absent/empty value to unset the Ramping Version. Must be paired with `percentage=0`. - 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`.)
string version = 3;- Specified by:
getVersionBytesin interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The bytes for version.
-
getPercentage
public float getPercentage()
Ramp percentage to set. Valid range: [0,100].
float percentage = 4;- Specified by:
getPercentagein interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The percentage.
-
getConflictToken
public com.google.protobuf.ByteString getConflictToken()
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.
bytes conflict_token = 5;- Specified by:
getConflictTokenin interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The conflictToken.
-
getIdentity
public java.lang.String getIdentity()
Optional. The identity of the client who initiated this request.
string identity = 6;- Specified by:
getIdentityin interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()
Optional. The identity of the client who initiated this request.
string identity = 6;- Specified by:
getIdentityBytesin interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The bytes for identity.
-
getIgnoreMissingTaskQueues
public boolean getIgnoreMissingTaskQueues()
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 equals to all the Task Queues ever polled from 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 poller 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. Note: this check only happens when the ramping version is about to change, not every time that the percentage changes. Also note that the check is against the deployment's Current Version, not the previous Ramping Version.bool ignore_missing_task_queues = 7;- Specified by:
getIgnoreMissingTaskQueuesin interfaceSetWorkerDeploymentRampingVersionRequestOrBuilder- Returns:
- The ignoreMissingTaskQueues.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SetWorkerDeploymentRampingVersionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentRampingVersionRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentRampingVersionRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentRampingVersionRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentRampingVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentRampingVersionRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentRampingVersionRequest parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static SetWorkerDeploymentRampingVersionRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static SetWorkerDeploymentRampingVersionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static SetWorkerDeploymentRampingVersionRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static SetWorkerDeploymentRampingVersionRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static SetWorkerDeploymentRampingVersionRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public SetWorkerDeploymentRampingVersionRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SetWorkerDeploymentRampingVersionRequest.Builder newBuilder()
-
newBuilder
public static SetWorkerDeploymentRampingVersionRequest.Builder newBuilder(SetWorkerDeploymentRampingVersionRequest prototype)
-
toBuilder
public SetWorkerDeploymentRampingVersionRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SetWorkerDeploymentRampingVersionRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SetWorkerDeploymentRampingVersionRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SetWorkerDeploymentRampingVersionRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<SetWorkerDeploymentRampingVersionRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SetWorkerDeploymentRampingVersionRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-