Class DescribeTaskQueueRequest.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DescribeTaskQueueRequestOrBuilder, java.lang.Cloneable
    Enclosing class:
    DescribeTaskQueueRequest

    public static final class DescribeTaskQueueRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DescribeTaskQueueRequest.Builder>
    implements DescribeTaskQueueRequestOrBuilder
     (-- api-linter: core::0203::optional=disabled
         aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --)
     
    Protobuf type temporal.api.workflowservice.v1.DescribeTaskQueueRequest
    • 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<DescribeTaskQueueRequest.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<DescribeTaskQueueRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public DescribeTaskQueueRequest.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<DescribeTaskQueueRequest.Builder>
      • setRepeatedField

        public DescribeTaskQueueRequest.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<DescribeTaskQueueRequest.Builder>
      • addRepeatedField

        public DescribeTaskQueueRequest.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<DescribeTaskQueueRequest.Builder>
      • isInitialized

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

        public DescribeTaskQueueRequest.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<DescribeTaskQueueRequest.Builder>
        Throws:
        java.io.IOException
      • setNamespace

        public DescribeTaskQueueRequest.Builder setNamespace​(java.lang.String value)
        string namespace = 1;
        Parameters:
        value - The namespace to set.
        Returns:
        This builder for chaining.
      • setNamespaceBytes

        public DescribeTaskQueueRequest.Builder setNamespaceBytes​(com.google.protobuf.ByteString value)
        string namespace = 1;
        Parameters:
        value - The bytes for namespace to set.
        Returns:
        This builder for chaining.
      • hasTaskQueue

        public boolean hasTaskQueue()
         Sticky queues are not supported in `ENHANCED` mode.
         
        .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
        Specified by:
        hasTaskQueue in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        Whether the taskQueue field is set.
      • clearTaskQueue

        public DescribeTaskQueueRequest.Builder clearTaskQueue()
         Sticky queues are not supported in `ENHANCED` mode.
         
        .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
      • getTaskQueueBuilder

        public TaskQueue.Builder getTaskQueueBuilder()
         Sticky queues are not supported in `ENHANCED` mode.
         
        .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
      • getTaskQueueTypeValue

        public int getTaskQueueTypeValue()
         Deprecated. Use `ENHANCED` mode with `task_queue_types`. Ignored in `ENHANCED` mode.
         If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used.
         
        .temporal.api.enums.v1.TaskQueueType task_queue_type = 3;
        Specified by:
        getTaskQueueTypeValue in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        The enum numeric value on the wire for taskQueueType.
      • setTaskQueueTypeValue

        public DescribeTaskQueueRequest.Builder setTaskQueueTypeValue​(int value)
         Deprecated. Use `ENHANCED` mode with `task_queue_types`. Ignored in `ENHANCED` mode.
         If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used.
         
        .temporal.api.enums.v1.TaskQueueType task_queue_type = 3;
        Parameters:
        value - The enum numeric value on the wire for taskQueueType to set.
        Returns:
        This builder for chaining.
      • getTaskQueueType

        public TaskQueueType getTaskQueueType()
         Deprecated. Use `ENHANCED` mode with `task_queue_types`. Ignored in `ENHANCED` mode.
         If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used.
         
        .temporal.api.enums.v1.TaskQueueType task_queue_type = 3;
        Specified by:
        getTaskQueueType in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        The taskQueueType.
      • setTaskQueueType

        public DescribeTaskQueueRequest.Builder setTaskQueueType​(TaskQueueType value)
         Deprecated. Use `ENHANCED` mode with `task_queue_types`. Ignored in `ENHANCED` mode.
         If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used.
         
        .temporal.api.enums.v1.TaskQueueType task_queue_type = 3;
        Parameters:
        value - The taskQueueType to set.
        Returns:
        This builder for chaining.
      • clearTaskQueueType

        public DescribeTaskQueueRequest.Builder clearTaskQueueType()
         Deprecated. Use `ENHANCED` mode with `task_queue_types`. Ignored in `ENHANCED` mode.
         If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used.
         
        .temporal.api.enums.v1.TaskQueueType task_queue_type = 3;
        Returns:
        This builder for chaining.
      • setIncludeTaskQueueStatus

        public DescribeTaskQueueRequest.Builder setIncludeTaskQueueStatus​(boolean value)
         Deprecated. Ignored in `ENHANCED` mode.
         
        bool include_task_queue_status = 4;
        Parameters:
        value - The includeTaskQueueStatus to set.
        Returns:
        This builder for chaining.
      • clearIncludeTaskQueueStatus

        public DescribeTaskQueueRequest.Builder clearIncludeTaskQueueStatus()
         Deprecated. Ignored in `ENHANCED` mode.
         
        bool include_task_queue_status = 4;
        Returns:
        This builder for chaining.
      • getApiModeValue

        public int getApiModeValue()
         All options except `task_queue_type` and `include_task_queue_status` are only available in the `ENHANCED` mode.
         
        .temporal.api.enums.v1.DescribeTaskQueueMode api_mode = 5;
        Specified by:
        getApiModeValue in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        The enum numeric value on the wire for apiMode.
      • setApiModeValue

        public DescribeTaskQueueRequest.Builder setApiModeValue​(int value)
         All options except `task_queue_type` and `include_task_queue_status` are only available in the `ENHANCED` mode.
         
        .temporal.api.enums.v1.DescribeTaskQueueMode api_mode = 5;
        Parameters:
        value - The enum numeric value on the wire for apiMode to set.
        Returns:
        This builder for chaining.
      • getApiMode

        public DescribeTaskQueueMode getApiMode()
         All options except `task_queue_type` and `include_task_queue_status` are only available in the `ENHANCED` mode.
         
        .temporal.api.enums.v1.DescribeTaskQueueMode api_mode = 5;
        Specified by:
        getApiMode in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        The apiMode.
      • setApiMode

        public DescribeTaskQueueRequest.Builder setApiMode​(DescribeTaskQueueMode value)
         All options except `task_queue_type` and `include_task_queue_status` are only available in the `ENHANCED` mode.
         
        .temporal.api.enums.v1.DescribeTaskQueueMode api_mode = 5;
        Parameters:
        value - The apiMode to set.
        Returns:
        This builder for chaining.
      • clearApiMode

        public DescribeTaskQueueRequest.Builder clearApiMode()
         All options except `task_queue_type` and `include_task_queue_status` are only available in the `ENHANCED` mode.
         
        .temporal.api.enums.v1.DescribeTaskQueueMode api_mode = 5;
        Returns:
        This builder for chaining.
      • hasVersions

        public boolean hasVersions()
         Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one
         mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the
         unversioned queue will be returned.
         (-- api-linter: core::0140::prepositions --)
         
        .temporal.api.taskqueue.v1.TaskQueueVersionSelection versions = 6;
        Specified by:
        hasVersions in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        Whether the versions field is set.
      • getVersions

        public TaskQueueVersionSelection getVersions()
         Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one
         mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the
         unversioned queue will be returned.
         (-- api-linter: core::0140::prepositions --)
         
        .temporal.api.taskqueue.v1.TaskQueueVersionSelection versions = 6;
        Specified by:
        getVersions in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        The versions.
      • setVersions

        public DescribeTaskQueueRequest.Builder setVersions​(TaskQueueVersionSelection value)
         Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one
         mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the
         unversioned queue will be returned.
         (-- api-linter: core::0140::prepositions --)
         
        .temporal.api.taskqueue.v1.TaskQueueVersionSelection versions = 6;
      • setVersions

        public DescribeTaskQueueRequest.Builder setVersions​(TaskQueueVersionSelection.Builder builderForValue)
         Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one
         mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the
         unversioned queue will be returned.
         (-- api-linter: core::0140::prepositions --)
         
        .temporal.api.taskqueue.v1.TaskQueueVersionSelection versions = 6;
      • mergeVersions

        public DescribeTaskQueueRequest.Builder mergeVersions​(TaskQueueVersionSelection value)
         Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one
         mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the
         unversioned queue will be returned.
         (-- api-linter: core::0140::prepositions --)
         
        .temporal.api.taskqueue.v1.TaskQueueVersionSelection versions = 6;
      • clearVersions

        public DescribeTaskQueueRequest.Builder clearVersions()
         Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one
         mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the
         unversioned queue will be returned.
         (-- api-linter: core::0140::prepositions --)
         
        .temporal.api.taskqueue.v1.TaskQueueVersionSelection versions = 6;
      • getVersionsBuilder

        public TaskQueueVersionSelection.Builder getVersionsBuilder()
         Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one
         mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the
         unversioned queue will be returned.
         (-- api-linter: core::0140::prepositions --)
         
        .temporal.api.taskqueue.v1.TaskQueueVersionSelection versions = 6;
      • getVersionsOrBuilder

        public TaskQueueVersionSelectionOrBuilder getVersionsOrBuilder()
         Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one
         mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the
         unversioned queue will be returned.
         (-- api-linter: core::0140::prepositions --)
         
        .temporal.api.taskqueue.v1.TaskQueueVersionSelection versions = 6;
        Specified by:
        getVersionsOrBuilder in interface DescribeTaskQueueRequestOrBuilder
      • getTaskQueueTypesList

        public java.util.List<TaskQueueType> getTaskQueueTypesList()
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Specified by:
        getTaskQueueTypesList in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        A list containing the taskQueueTypes.
      • getTaskQueueTypesCount

        public int getTaskQueueTypesCount()
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Specified by:
        getTaskQueueTypesCount in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        The count of taskQueueTypes.
      • getTaskQueueTypes

        public TaskQueueType getTaskQueueTypes​(int index)
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Specified by:
        getTaskQueueTypes in interface DescribeTaskQueueRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The taskQueueTypes at the given index.
      • setTaskQueueTypes

        public DescribeTaskQueueRequest.Builder setTaskQueueTypes​(int index,
                                                                  TaskQueueType value)
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Parameters:
        index - The index to set the value at.
        value - The taskQueueTypes to set.
        Returns:
        This builder for chaining.
      • addTaskQueueTypes

        public DescribeTaskQueueRequest.Builder addTaskQueueTypes​(TaskQueueType value)
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Parameters:
        value - The taskQueueTypes to add.
        Returns:
        This builder for chaining.
      • addAllTaskQueueTypes

        public DescribeTaskQueueRequest.Builder addAllTaskQueueTypes​(java.lang.Iterable<? extends TaskQueueType> values)
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Parameters:
        values - The taskQueueTypes to add.
        Returns:
        This builder for chaining.
      • clearTaskQueueTypes

        public DescribeTaskQueueRequest.Builder clearTaskQueueTypes()
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Returns:
        This builder for chaining.
      • getTaskQueueTypesValueList

        public java.util.List<java.lang.Integer> getTaskQueueTypesValueList()
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Specified by:
        getTaskQueueTypesValueList in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for taskQueueTypes.
      • getTaskQueueTypesValue

        public int getTaskQueueTypesValue​(int index)
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Specified by:
        getTaskQueueTypesValue in interface DescribeTaskQueueRequestOrBuilder
        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 DescribeTaskQueueRequest.Builder setTaskQueueTypesValue​(int index,
                                                                       int value)
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of taskQueueTypes at the given index.
      • addTaskQueueTypesValue

        public DescribeTaskQueueRequest.Builder addTaskQueueTypesValue​(int value)
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Parameters:
        value - The enum numeric value on the wire for taskQueueTypes to add.
        Returns:
        This builder for chaining.
      • addAllTaskQueueTypesValue

        public DescribeTaskQueueRequest.Builder addAllTaskQueueTypesValue​(java.lang.Iterable<java.lang.Integer> values)
         Task queue types to report info about. If not specified, all types are considered.
         
        repeated .temporal.api.enums.v1.TaskQueueType task_queue_types = 7;
        Parameters:
        values - The enum numeric values on the wire for taskQueueTypes to add.
        Returns:
        This builder for chaining.
      • getReportStats

        public boolean getReportStats()
         Report stats for the requested task queue types and versions
         
        bool report_stats = 8;
        Specified by:
        getReportStats in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        The reportStats.
      • setReportStats

        public DescribeTaskQueueRequest.Builder setReportStats​(boolean value)
         Report stats for the requested task queue types and versions
         
        bool report_stats = 8;
        Parameters:
        value - The reportStats to set.
        Returns:
        This builder for chaining.
      • clearReportStats

        public DescribeTaskQueueRequest.Builder clearReportStats()
         Report stats for the requested task queue types and versions
         
        bool report_stats = 8;
        Returns:
        This builder for chaining.
      • getReportPollers

        public boolean getReportPollers()
         Report list of pollers for requested task queue types and versions
         
        bool report_pollers = 9;
        Specified by:
        getReportPollers in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        The reportPollers.
      • setReportPollers

        public DescribeTaskQueueRequest.Builder setReportPollers​(boolean value)
         Report list of pollers for requested task queue types and versions
         
        bool report_pollers = 9;
        Parameters:
        value - The reportPollers to set.
        Returns:
        This builder for chaining.
      • clearReportPollers

        public DescribeTaskQueueRequest.Builder clearReportPollers()
         Report list of pollers for requested task queue types and versions
         
        bool report_pollers = 9;
        Returns:
        This builder for chaining.
      • getReportTaskReachability

        public boolean getReportTaskReachability()
         Report task reachability for the requested versions and all task types (task reachability is not reported
         per task type).
         
        bool report_task_reachability = 10;
        Specified by:
        getReportTaskReachability in interface DescribeTaskQueueRequestOrBuilder
        Returns:
        The reportTaskReachability.
      • setReportTaskReachability

        public DescribeTaskQueueRequest.Builder setReportTaskReachability​(boolean value)
         Report task reachability for the requested versions and all task types (task reachability is not reported
         per task type).
         
        bool report_task_reachability = 10;
        Parameters:
        value - The reportTaskReachability to set.
        Returns:
        This builder for chaining.
      • clearReportTaskReachability

        public DescribeTaskQueueRequest.Builder clearReportTaskReachability()
         Report task reachability for the requested versions and all task types (task reachability is not reported
         per task type).
         
        bool report_task_reachability = 10;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final DescribeTaskQueueRequest.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<DescribeTaskQueueRequest.Builder>
      • mergeUnknownFields

        public final DescribeTaskQueueRequest.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<DescribeTaskQueueRequest.Builder>