Class ShutdownWorkerRequest.Builder

    • Method Detail

      • 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

        public 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

        public ShutdownWorkerRequest.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,
                                                      java.lang.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,
                                                              java.lang.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,
                                                              java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ShutdownWorkerRequest.Builder>
      • 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 java.io.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:
        java.io.IOException
      • setNamespace

        public ShutdownWorkerRequest.Builder setNamespace​(java.lang.String value)
        string namespace = 1;
        Parameters:
        value - The namespace to set.
        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 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:
        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​(java.lang.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.
      • setIdentity

        public ShutdownWorkerRequest.Builder setIdentity​(java.lang.String value)
        string identity = 3;
        Parameters:
        value - The identity to set.
        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.
      • setReason

        public ShutdownWorkerRequest.Builder setReason​(java.lang.String value)
        string reason = 4;
        Parameters:
        value - The reason to set.
        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.
      • 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;
      • 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:
        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​(java.lang.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 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:
        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​(java.lang.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 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:
        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​(java.lang.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 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:
        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​(java.lang.Iterable<java.lang.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>