Class ShutdownWorkerRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.temporal.api.workflowservice.v1.ShutdownWorkerRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ShutdownWorkerRequestOrBuilder,Serializable
@Generated(value="protoc",
comments="annotations:ShutdownWorkerRequest.java.pb.meta")
public final class ShutdownWorkerRequest
extends com.google.protobuf.GeneratedMessageV3
implements ShutdownWorkerRequestOrBuilder
Protobuf type
temporal.api.workflowservice.v1.ShutdownWorkerRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typetemporal.api.workflowservice.v1.ShutdownWorkerRequestNested 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 TypeMethodDescriptionbooleanstatic ShutdownWorkerRequeststatic final com.google.protobuf.Descriptors.Descriptorstring identity = 3;com.google.protobuf.ByteStringstring identity = 3;string namespace = 1;com.google.protobuf.ByteStringstring namespace = 1;com.google.protobuf.Parser<ShutdownWorkerRequest> string reason = 4;com.google.protobuf.ByteStringstring reason = 4;intsticky_task_queue may not always be populated.com.google.protobuf.ByteStringsticky_task_queue may not always be populated.Task queue name the worker is polling on.com.google.protobuf.ByteStringTask queue name the worker is polling on.getTaskQueueTypes(int index) Task queue types that help server cancel outstanding poll RPC calls from SDK.intTask queue types that help server cancel outstanding poll RPC calls from SDK.Task queue types that help server cancel outstanding poll RPC calls from SDK.intgetTaskQueueTypesValue(int index) Task queue types that help server cancel outstanding poll RPC calls from SDK.Task queue types that help server cancel outstanding poll RPC calls from SDK..temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;.temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;Technically this is also sent in the WorkerHeartbeat, but since worker heartbeating can be turned off, this needs to be a separate, top-level field.com.google.protobuf.ByteStringTechnically this is also sent in the WorkerHeartbeat, but since worker heartbeating can be turned off, this needs to be a separate, top-level field.inthashCode()boolean.temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(ShutdownWorkerRequest prototype) protected ShutdownWorkerRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ShutdownWorkerRequestparseDelimitedFrom(InputStream input) static ShutdownWorkerRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ShutdownWorkerRequestparseFrom(byte[] data) static ShutdownWorkerRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ShutdownWorkerRequestparseFrom(com.google.protobuf.ByteString data) static ShutdownWorkerRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ShutdownWorkerRequestparseFrom(com.google.protobuf.CodedInputStream input) static ShutdownWorkerRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ShutdownWorkerRequestparseFrom(InputStream input) static ShutdownWorkerRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ShutdownWorkerRequestparseFrom(ByteBuffer data) static ShutdownWorkerRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ShutdownWorkerRequest> 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:
-
STICKY_TASK_QUEUE_FIELD_NUMBER
public static final int STICKY_TASK_QUEUE_FIELD_NUMBER- See Also:
-
IDENTITY_FIELD_NUMBER
public static final int IDENTITY_FIELD_NUMBER- See Also:
-
REASON_FIELD_NUMBER
public static final int REASON_FIELD_NUMBER- See Also:
-
WORKER_HEARTBEAT_FIELD_NUMBER
public static final int WORKER_HEARTBEAT_FIELD_NUMBER- See Also:
-
WORKER_INSTANCE_KEY_FIELD_NUMBER
public static final int WORKER_INSTANCE_KEY_FIELD_NUMBER- See Also:
-
TASK_QUEUE_FIELD_NUMBER
public static final int TASK_QUEUE_FIELD_NUMBER- See Also:
-
TASK_QUEUE_TYPES_FIELD_NUMBER
public static final int TASK_QUEUE_TYPES_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 interfaceShutdownWorkerRequestOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()string namespace = 1;- Specified by:
getNamespaceBytesin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The bytes for namespace.
-
getStickyTaskQueue
sticky_task_queue may not always be populated. We want to ensure all workers send a shutdown request to update worker state for heartbeating, as well as cancel pending poll calls early, instead of waiting for timeouts.
string sticky_task_queue = 2;- Specified by:
getStickyTaskQueuein interfaceShutdownWorkerRequestOrBuilder- Returns:
- The stickyTaskQueue.
-
getStickyTaskQueueBytes
public com.google.protobuf.ByteString getStickyTaskQueueBytes()sticky_task_queue may not always be populated. We want to ensure all workers send a shutdown request to update worker state for heartbeating, as well as cancel pending poll calls early, instead of waiting for timeouts.
string sticky_task_queue = 2;- Specified by:
getStickyTaskQueueBytesin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The bytes for stickyTaskQueue.
-
getIdentity
string identity = 3;- Specified by:
getIdentityin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()string identity = 3;- Specified by:
getIdentityBytesin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The bytes for identity.
-
getReason
string reason = 4;- Specified by:
getReasonin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The reason.
-
getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()string reason = 4;- Specified by:
getReasonBytesin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The bytes for reason.
-
hasWorkerHeartbeat
public boolean hasWorkerHeartbeat().temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;- Specified by:
hasWorkerHeartbeatin interfaceShutdownWorkerRequestOrBuilder- Returns:
- Whether the workerHeartbeat field is set.
-
getWorkerHeartbeat
.temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;- Specified by:
getWorkerHeartbeatin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The workerHeartbeat.
-
getWorkerHeartbeatOrBuilder
.temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;- Specified by:
getWorkerHeartbeatOrBuilderin interfaceShutdownWorkerRequestOrBuilder
-
getWorkerInstanceKey
Technically this is also sent in the WorkerHeartbeat, but since worker heartbeating can be turned off, this needs to be a separate, top-level field.
string worker_instance_key = 6;- Specified by:
getWorkerInstanceKeyin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The workerInstanceKey.
-
getWorkerInstanceKeyBytes
public com.google.protobuf.ByteString getWorkerInstanceKeyBytes()Technically this is also sent in the WorkerHeartbeat, but since worker heartbeating can be turned off, this needs to be a separate, top-level field.
string worker_instance_key = 6;- Specified by:
getWorkerInstanceKeyBytesin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The bytes for workerInstanceKey.
-
getTaskQueue
Task queue name the worker is polling on. This allows server to cancel all outstanding poll RPC calls from SDK. This avoids a race condition that can lead to tasks being lost.
string task_queue = 7;- Specified by:
getTaskQueuein interfaceShutdownWorkerRequestOrBuilder- Returns:
- The taskQueue.
-
getTaskQueueBytes
public com.google.protobuf.ByteString getTaskQueueBytes()Task queue name the worker is polling on. This allows server to cancel all outstanding poll RPC calls from SDK. This avoids a race condition that can lead to tasks being lost.
string task_queue = 7;- Specified by:
getTaskQueueBytesin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The bytes for taskQueue.
-
getTaskQueueTypesList
Task queue types that help server cancel outstanding poll RPC calls from SDK. This avoids a race condition that can lead to tasks being lost.
repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 8;- Specified by:
getTaskQueueTypesListin interfaceShutdownWorkerRequestOrBuilder- Returns:
- A list containing the taskQueueTypes.
-
getTaskQueueTypesCount
public int getTaskQueueTypesCount()Task queue types that help server cancel outstanding poll RPC calls from SDK. This avoids a race condition that can lead to tasks being lost.
repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 8;- Specified by:
getTaskQueueTypesCountin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The count of taskQueueTypes.
-
getTaskQueueTypes
Task queue types that help server cancel outstanding poll RPC calls from SDK. This avoids a race condition that can lead to tasks being lost.
repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 8;- Specified by:
getTaskQueueTypesin interfaceShutdownWorkerRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The taskQueueTypes at the given index.
-
getTaskQueueTypesValueList
Task queue types that help server cancel outstanding poll RPC calls from SDK. This avoids a race condition that can lead to tasks being lost.
repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 8;- Specified by:
getTaskQueueTypesValueListin interfaceShutdownWorkerRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for taskQueueTypes.
-
getTaskQueueTypesValue
public int getTaskQueueTypesValue(int index) Task queue types that help server cancel outstanding poll RPC calls from SDK. This avoids a race condition that can lead to tasks being lost.
repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 8;- Specified by:
getTaskQueueTypesValuein interfaceShutdownWorkerRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of taskQueueTypes at the given index.
-
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 ShutdownWorkerRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ShutdownWorkerRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ShutdownWorkerRequest 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
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ShutdownWorkerRequest.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
-