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:
  • 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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getNamespace

      public String getNamespace()
      string namespace = 1;
      Specified by:
      getNamespace in interface ShutdownWorkerRequestOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
      string namespace = 1;
      Specified by:
      getNamespaceBytes in interface ShutdownWorkerRequestOrBuilder
      Returns:
      The bytes for namespace.
    • getStickyTaskQueue

      public 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:
      getStickyTaskQueue in interface ShutdownWorkerRequestOrBuilder
      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:
      getStickyTaskQueueBytes in interface ShutdownWorkerRequestOrBuilder
      Returns:
      The bytes for stickyTaskQueue.
    • getIdentity

      public String getIdentity()
      string identity = 3;
      Specified by:
      getIdentity in interface ShutdownWorkerRequestOrBuilder
      Returns:
      The identity.
    • getIdentityBytes

      public com.google.protobuf.ByteString getIdentityBytes()
      string identity = 3;
      Specified by:
      getIdentityBytes in interface ShutdownWorkerRequestOrBuilder
      Returns:
      The bytes for identity.
    • getReason

      public String getReason()
      string reason = 4;
      Specified by:
      getReason in interface ShutdownWorkerRequestOrBuilder
      Returns:
      The reason.
    • getReasonBytes

      public com.google.protobuf.ByteString getReasonBytes()
      string reason = 4;
      Specified by:
      getReasonBytes in interface ShutdownWorkerRequestOrBuilder
      Returns:
      The bytes for reason.
    • hasWorkerHeartbeat

      public boolean hasWorkerHeartbeat()
      .temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;
      Specified by:
      hasWorkerHeartbeat in interface ShutdownWorkerRequestOrBuilder
      Returns:
      Whether the workerHeartbeat field is set.
    • getWorkerHeartbeat

      public WorkerHeartbeat getWorkerHeartbeat()
      .temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;
      Specified by:
      getWorkerHeartbeat in interface ShutdownWorkerRequestOrBuilder
      Returns:
      The workerHeartbeat.
    • getWorkerHeartbeatOrBuilder

      public WorkerHeartbeatOrBuilder getWorkerHeartbeatOrBuilder()
      .temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;
      Specified by:
      getWorkerHeartbeatOrBuilder in interface ShutdownWorkerRequestOrBuilder
    • getWorkerInstanceKey

      public 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:
      getWorkerInstanceKey in interface ShutdownWorkerRequestOrBuilder
      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:
      getWorkerInstanceKeyBytes in interface ShutdownWorkerRequestOrBuilder
      Returns:
      The bytes for workerInstanceKey.
    • getTaskQueue

      public 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:
      getTaskQueue in interface ShutdownWorkerRequestOrBuilder
      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:
      getTaskQueueBytes in interface ShutdownWorkerRequestOrBuilder
      Returns:
      The bytes for taskQueue.
    • getTaskQueueTypesList

      public 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:
      getTaskQueueTypesList in interface ShutdownWorkerRequestOrBuilder
      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:
      getTaskQueueTypesCount in interface ShutdownWorkerRequestOrBuilder
      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:
      getTaskQueueTypes in interface ShutdownWorkerRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The taskQueueTypes at the given index.
    • getTaskQueueTypesValueList

      public List<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:
      getTaskQueueTypesValueList in interface ShutdownWorkerRequestOrBuilder
      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:
      getTaskQueueTypesValue in interface ShutdownWorkerRequestOrBuilder
      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:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static ShutdownWorkerRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ShutdownWorkerRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ShutdownWorkerRequest parseDelimitedFrom(InputStream input) throws IOException
      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

      public ShutdownWorkerRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ShutdownWorkerRequest.Builder newBuilder()
    • newBuilder

      public static ShutdownWorkerRequest.Builder newBuilder(ShutdownWorkerRequest prototype)
    • toBuilder

      public ShutdownWorkerRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ShutdownWorkerRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.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:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public ShutdownWorkerRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder