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,java.io.Serializable
@Generated(value="protoc", comments="annotations:ShutdownWorkerRequest.java.pb.meta") public final class ShutdownWorkerRequest extends com.google.protobuf.GeneratedMessageV3 implements ShutdownWorkerRequestOrBuilderProtobuf typetemporal.api.workflowservice.v1.ShutdownWorkerRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShutdownWorkerRequest.BuilderProtobuf typetemporal.api.workflowservice.v1.ShutdownWorkerRequest-
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 intIDENTITY_FIELD_NUMBERstatic intNAMESPACE_FIELD_NUMBERstatic intREASON_FIELD_NUMBERstatic intSTICKY_TASK_QUEUE_FIELD_NUMBERstatic intTASK_QUEUE_FIELD_NUMBERstatic intTASK_QUEUE_TYPES_FIELD_NUMBERstatic intWORKER_HEARTBEAT_FIELD_NUMBERstatic intWORKER_INSTANCE_KEY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static ShutdownWorkerRequestgetDefaultInstance()ShutdownWorkerRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetIdentity()string identity = 3;com.google.protobuf.ByteStringgetIdentityBytes()string identity = 3;java.lang.StringgetNamespace()string namespace = 1;com.google.protobuf.ByteStringgetNamespaceBytes()string namespace = 1;com.google.protobuf.Parser<ShutdownWorkerRequest>getParserForType()java.lang.StringgetReason()string reason = 4;com.google.protobuf.ByteStringgetReasonBytes()string reason = 4;intgetSerializedSize()java.lang.StringgetStickyTaskQueue()sticky_task_queue may not always be populated.com.google.protobuf.ByteStringgetStickyTaskQueueBytes()sticky_task_queue may not always be populated.java.lang.StringgetTaskQueue()Task queue name the worker is polling on.com.google.protobuf.ByteStringgetTaskQueueBytes()Task queue name the worker is polling on.TaskQueueTypegetTaskQueueTypes(int index)Task queue types that help server cancel outstanding poll RPC calls from SDK.intgetTaskQueueTypesCount()Task queue types that help server cancel outstanding poll RPC calls from SDK.java.util.List<TaskQueueType>getTaskQueueTypesList()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.java.util.List<java.lang.Integer>getTaskQueueTypesValueList()Task queue types that help server cancel outstanding poll RPC calls from SDK.WorkerHeartbeatgetWorkerHeartbeat().temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;WorkerHeartbeatOrBuildergetWorkerHeartbeatOrBuilder().temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;java.lang.StringgetWorkerInstanceKey()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.ByteStringgetWorkerInstanceKeyBytes()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.inthashCode()booleanhasWorkerHeartbeat().temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ShutdownWorkerRequest.BuildernewBuilder()static ShutdownWorkerRequest.BuildernewBuilder(ShutdownWorkerRequest prototype)ShutdownWorkerRequest.BuildernewBuilderForType()protected ShutdownWorkerRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ShutdownWorkerRequestparseDelimitedFrom(java.io.InputStream input)static ShutdownWorkerRequestparseDelimitedFrom(java.io.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(java.io.InputStream input)static ShutdownWorkerRequestparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShutdownWorkerRequestparseFrom(java.nio.ByteBuffer data)static ShutdownWorkerRequestparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ShutdownWorkerRequest>parser()ShutdownWorkerRequest.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
-
STICKY_TASK_QUEUE_FIELD_NUMBER
public static final int STICKY_TASK_QUEUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IDENTITY_FIELD_NUMBER
public static final int IDENTITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REASON_FIELD_NUMBER
public static final int REASON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WORKER_HEARTBEAT_FIELD_NUMBER
public static final int WORKER_HEARTBEAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WORKER_INSTANCE_KEY_FIELD_NUMBER
public static final int WORKER_INSTANCE_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TASK_QUEUE_FIELD_NUMBER
public static final int TASK_QUEUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TASK_QUEUE_TYPES_FIELD_NUMBER
public static final int TASK_QUEUE_TYPES_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 interfaceShutdownWorkerRequestOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()
string namespace = 1;- Specified by:
getNamespaceBytesin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The bytes for namespace.
-
getStickyTaskQueue
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public WorkerHeartbeat getWorkerHeartbeat()
.temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;- Specified by:
getWorkerHeartbeatin interfaceShutdownWorkerRequestOrBuilder- Returns:
- The workerHeartbeat.
-
getWorkerHeartbeatOrBuilder
public WorkerHeartbeatOrBuilder getWorkerHeartbeatOrBuilder()
.temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;- Specified by:
getWorkerHeartbeatOrBuilderin interfaceShutdownWorkerRequestOrBuilder
-
getWorkerInstanceKey
public java.lang.String 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
public java.lang.String 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
public java.util.List<TaskQueueType> 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
public TaskQueueType getTaskQueueTypes(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:
getTaskQueueTypesin interfaceShutdownWorkerRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The taskQueueTypes at the given index.
-
getTaskQueueTypesValueList
public java.util.List<java.lang.Integer> 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
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 ShutdownWorkerRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(java.nio.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
public static ShutdownWorkerRequest parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ShutdownWorkerRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ShutdownWorkerRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ShutdownWorkerRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public ShutdownWorkerRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ShutdownWorkerRequest.Builder newBuilder()
-
newBuilder
public static ShutdownWorkerRequest.Builder newBuilder(ShutdownWorkerRequest prototype)
-
toBuilder
public ShutdownWorkerRequest.Builder 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
public static ShutdownWorkerRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ShutdownWorkerRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<ShutdownWorkerRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ShutdownWorkerRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-