Class ShutdownWorkerRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ShutdownWorkerRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
io.temporal.api.workflowservice.v1.ShutdownWorkerRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ShutdownWorkerRequestOrBuilder, Cloneable
Enclosing class:
ShutdownWorkerRequest

public static final class ShutdownWorkerRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder> implements ShutdownWorkerRequestOrBuilder
Protobuf type temporal.api.workflowservice.v1.ShutdownWorkerRequest
  • Method Details

    • 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.Builder<ShutdownWorkerRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
    • setField

      public ShutdownWorkerRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
    • clearField

      public ShutdownWorkerRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
    • clearOneof

      public ShutdownWorkerRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
    • setRepeatedField

      public ShutdownWorkerRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
    • addRepeatedField

      public ShutdownWorkerRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
    • mergeFrom

      public ShutdownWorkerRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ShutdownWorkerRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
    • mergeFrom

      public ShutdownWorkerRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ShutdownWorkerRequest.Builder>
      Throws:
      IOException
    • 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.
    • setNamespace

      public ShutdownWorkerRequest.Builder setNamespace(String value)
      string namespace = 1;
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

      public ShutdownWorkerRequest.Builder clearNamespace()
      string namespace = 1;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public ShutdownWorkerRequest.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
      string namespace = 1;
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStickyTaskQueue

      public ShutdownWorkerRequest.Builder setStickyTaskQueue(String value)
       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;
      Parameters:
      value - The stickyTaskQueue to set.
      Returns:
      This builder for chaining.
    • clearStickyTaskQueue

      public ShutdownWorkerRequest.Builder clearStickyTaskQueue()
       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;
      Returns:
      This builder for chaining.
    • setStickyTaskQueueBytes

      public ShutdownWorkerRequest.Builder setStickyTaskQueueBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for stickyTaskQueue to set.
      Returns:
      This builder for chaining.
    • 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.
    • setIdentity

      public ShutdownWorkerRequest.Builder setIdentity(String value)
      string identity = 3;
      Parameters:
      value - The identity to set.
      Returns:
      This builder for chaining.
    • clearIdentity

      public ShutdownWorkerRequest.Builder clearIdentity()
      string identity = 3;
      Returns:
      This builder for chaining.
    • setIdentityBytes

      public ShutdownWorkerRequest.Builder setIdentityBytes(com.google.protobuf.ByteString value)
      string identity = 3;
      Parameters:
      value - The bytes for identity to set.
      Returns:
      This builder for chaining.
    • 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.
    • setReason

      public ShutdownWorkerRequest.Builder setReason(String value)
      string reason = 4;
      Parameters:
      value - The reason to set.
      Returns:
      This builder for chaining.
    • clearReason

      public ShutdownWorkerRequest.Builder clearReason()
      string reason = 4;
      Returns:
      This builder for chaining.
    • setReasonBytes

      public ShutdownWorkerRequest.Builder setReasonBytes(com.google.protobuf.ByteString value)
      string reason = 4;
      Parameters:
      value - The bytes for reason to set.
      Returns:
      This builder for chaining.
    • 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.
    • setWorkerHeartbeat

      public ShutdownWorkerRequest.Builder setWorkerHeartbeat(WorkerHeartbeat value)
      .temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;
    • setWorkerHeartbeat

      public ShutdownWorkerRequest.Builder setWorkerHeartbeat(WorkerHeartbeat.Builder builderForValue)
      .temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;
    • mergeWorkerHeartbeat

      public ShutdownWorkerRequest.Builder mergeWorkerHeartbeat(WorkerHeartbeat value)
      .temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;
    • clearWorkerHeartbeat

      public ShutdownWorkerRequest.Builder clearWorkerHeartbeat()
      .temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;
    • getWorkerHeartbeatBuilder

      public WorkerHeartbeat.Builder getWorkerHeartbeatBuilder()
      .temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 5;
    • 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.
    • setWorkerInstanceKey

      public ShutdownWorkerRequest.Builder setWorkerInstanceKey(String value)
       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;
      Parameters:
      value - The workerInstanceKey to set.
      Returns:
      This builder for chaining.
    • clearWorkerInstanceKey

      public ShutdownWorkerRequest.Builder clearWorkerInstanceKey()
       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;
      Returns:
      This builder for chaining.
    • setWorkerInstanceKeyBytes

      public ShutdownWorkerRequest.Builder setWorkerInstanceKeyBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for workerInstanceKey to set.
      Returns:
      This builder for chaining.
    • 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.
    • setTaskQueue

      public ShutdownWorkerRequest.Builder setTaskQueue(String value)
       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;
      Parameters:
      value - The taskQueue to set.
      Returns:
      This builder for chaining.
    • clearTaskQueue

      public ShutdownWorkerRequest.Builder clearTaskQueue()
       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;
      Returns:
      This builder for chaining.
    • setTaskQueueBytes

      public ShutdownWorkerRequest.Builder setTaskQueueBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for taskQueue to set.
      Returns:
      This builder for chaining.
    • 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.
    • setTaskQueueTypes

      public ShutdownWorkerRequest.Builder setTaskQueueTypes(int index, TaskQueueType value)
       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;
      Parameters:
      index - The index to set the value at.
      value - The taskQueueTypes to set.
      Returns:
      This builder for chaining.
    • addTaskQueueTypes

      public ShutdownWorkerRequest.Builder addTaskQueueTypes(TaskQueueType value)
       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;
      Parameters:
      value - The taskQueueTypes to add.
      Returns:
      This builder for chaining.
    • addAllTaskQueueTypes

      public ShutdownWorkerRequest.Builder addAllTaskQueueTypes(Iterable<? extends TaskQueueType> values)
       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;
      Parameters:
      values - The taskQueueTypes to add.
      Returns:
      This builder for chaining.
    • clearTaskQueueTypes

      public ShutdownWorkerRequest.Builder clearTaskQueueTypes()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setTaskQueueTypesValue

      public ShutdownWorkerRequest.Builder setTaskQueueTypesValue(int index, int value)
       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;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for taskQueueTypes to set.
      Returns:
      This builder for chaining.
    • addTaskQueueTypesValue

      public ShutdownWorkerRequest.Builder addTaskQueueTypesValue(int value)
       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;
      Parameters:
      value - The enum numeric value on the wire for taskQueueTypes to add.
      Returns:
      This builder for chaining.
    • addAllTaskQueueTypesValue

      public ShutdownWorkerRequest.Builder addAllTaskQueueTypesValue(Iterable<Integer> values)
       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;
      Parameters:
      values - The enum numeric values on the wire for taskQueueTypes to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ShutdownWorkerRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
    • mergeUnknownFields

      public final ShutdownWorkerRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>