Class SetWorkerDeploymentCurrentVersionRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SetWorkerDeploymentCurrentVersionRequestOrBuilder,Serializable
@Generated(value="protoc",
comments="annotations:SetWorkerDeploymentCurrentVersionRequest.java.pb.meta")
public final class SetWorkerDeploymentCurrentVersionRequest
extends com.google.protobuf.GeneratedMessageV3
implements SetWorkerDeploymentCurrentVersionRequestOrBuilder
Set/unset the Current Version of a Worker Deployment.Protobuf type
temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSet/unset the Current Version of a Worker Deployment.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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanOptional.The build id of the Version that you want to set as Current.com.google.protobuf.ByteStringThe build id of the Version that you want to set as Current.com.google.protobuf.ByteStringOptional.string deployment_name = 2;com.google.protobuf.ByteStringstring deployment_name = 2;static final com.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.booleanOptional.string namespace = 1;com.google.protobuf.ByteStringstring namespace = 1;com.google.protobuf.Parser<SetWorkerDeploymentCurrentVersionRequest> intDeprecated.temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest.version is deprecated.com.google.protobuf.ByteStringDeprecated.temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest.version is deprecated.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SetWorkerDeploymentCurrentVersionRequest> parser()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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAMESPACE_FIELD_NUMBER
public static final int NAMESPACE_FIELD_NUMBER- See Also:
-
DEPLOYMENT_NAME_FIELD_NUMBER
public static final int DEPLOYMENT_NAME_FIELD_NUMBER- See Also:
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
BUILD_ID_FIELD_NUMBER
public static final int BUILD_ID_FIELD_NUMBER- See Also:
-
CONFLICT_TOKEN_FIELD_NUMBER
public static final int CONFLICT_TOKEN_FIELD_NUMBER- See Also:
-
IDENTITY_FIELD_NUMBER
public static final int IDENTITY_FIELD_NUMBER- See Also:
-
IGNORE_MISSING_TASK_QUEUES_FIELD_NUMBER
public static final int IGNORE_MISSING_TASK_QUEUES_FIELD_NUMBER- See Also:
-
ALLOW_NO_POLLERS_FIELD_NUMBER
public static final int ALLOW_NO_POLLERS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- 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
string namespace = 1;- Specified by:
getNamespacein interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()string namespace = 1;- Specified by:
getNamespaceBytesin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The bytes for namespace.
-
getDeploymentName
string deployment_name = 2;- Specified by:
getDeploymentNamein interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The deploymentName.
-
getDeploymentNameBytes
public com.google.protobuf.ByteString getDeploymentNameBytes()string deployment_name = 2;- Specified by:
getDeploymentNameBytesin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The bytes for deploymentName.
-
getVersion
Deprecated.temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest.version is deprecated. See temporal/api/workflowservice/v1/request_response.proto;l=2543Deprecated. Use `build_id`.
string version = 3 [deprecated = true];- Specified by:
getVersionin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The version.
-
getVersionBytes
Deprecated.temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest.version is deprecated. See temporal/api/workflowservice/v1/request_response.proto;l=2543Deprecated. Use `build_id`.
string version = 3 [deprecated = true];- Specified by:
getVersionBytesin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The bytes for version.
-
getBuildId
The build id of the Version that you want to set as Current. Pass an empty value to set the Current Version to nil. A nil Current Version represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
string build_id = 7;- Specified by:
getBuildIdin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The buildId.
-
getBuildIdBytes
public com.google.protobuf.ByteString getBuildIdBytes()The build id of the Version that you want to set as Current. Pass an empty value to set the Current Version to nil. A nil Current Version represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
string build_id = 7;- Specified by:
getBuildIdBytesin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The bytes for buildId.
-
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 = 4;- Specified by:
getConflictTokenin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The conflictToken.
-
getIdentity
Optional. The identity of the client who initiated this request.
string identity = 5;- Specified by:
getIdentityin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()Optional. The identity of the client who initiated this request.
string identity = 5;- Specified by:
getIdentityBytesin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- 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 is the set of all the Task Queues that were ever poller by 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 pollers 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.bool ignore_missing_task_queues = 6;- Specified by:
getIgnoreMissingTaskQueuesin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The ignoreMissingTaskQueues.
-
getAllowNoPollers
public boolean getAllowNoPollers()Optional. By default this request will be rejected if no pollers have been seen for the proposed Current Version, in order to protect users from routing tasks to pollers that do not exist, leading to possible timeouts. Pass `true` here to bypass this protection.
bool allow_no_pollers = 9;- Specified by:
getAllowNoPollersin interfaceSetWorkerDeploymentCurrentVersionRequestOrBuilder- Returns:
- The allowNoPollers.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- 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 SetWorkerDeploymentCurrentVersionRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentCurrentVersionRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentCurrentVersionRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentCurrentVersionRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentCurrentVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentCurrentVersionRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetWorkerDeploymentCurrentVersionRequest parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SetWorkerDeploymentCurrentVersionRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static SetWorkerDeploymentCurrentVersionRequest parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static SetWorkerDeploymentCurrentVersionRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SetWorkerDeploymentCurrentVersionRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SetWorkerDeploymentCurrentVersionRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static SetWorkerDeploymentCurrentVersionRequest.Builder newBuilder(SetWorkerDeploymentCurrentVersionRequest prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SetWorkerDeploymentCurrentVersionRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-