Class GetWorkerTaskReachabilityRequest.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<GetWorkerTaskReachabilityRequest.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<GetWorkerTaskReachabilityRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

        public com.google.protobuf.ProtocolStringList getBuildIdsList()
         Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
         The number of build ids that can be queried in a single API call is limited.
         Open source users can adjust this limit by setting the server's dynamic config value for
         `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
         
        repeated string build_ids = 2;
        Specified by:
        getBuildIdsList in interface GetWorkerTaskReachabilityRequestOrBuilder
        Returns:
        A list containing the buildIds.
      • getBuildIdsCount

        public int getBuildIdsCount()
         Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
         The number of build ids that can be queried in a single API call is limited.
         Open source users can adjust this limit by setting the server's dynamic config value for
         `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
         
        repeated string build_ids = 2;
        Specified by:
        getBuildIdsCount in interface GetWorkerTaskReachabilityRequestOrBuilder
        Returns:
        The count of buildIds.
      • getBuildIds

        public java.lang.String getBuildIds​(int index)
         Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
         The number of build ids that can be queried in a single API call is limited.
         Open source users can adjust this limit by setting the server's dynamic config value for
         `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
         
        repeated string build_ids = 2;
        Specified by:
        getBuildIds in interface GetWorkerTaskReachabilityRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The buildIds at the given index.
      • getBuildIdsBytes

        public com.google.protobuf.ByteString getBuildIdsBytes​(int index)
         Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
         The number of build ids that can be queried in a single API call is limited.
         Open source users can adjust this limit by setting the server's dynamic config value for
         `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
         
        repeated string build_ids = 2;
        Specified by:
        getBuildIdsBytes in interface GetWorkerTaskReachabilityRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the buildIds at the given index.
      • setBuildIds

        public GetWorkerTaskReachabilityRequest.Builder setBuildIds​(int index,
                                                                    java.lang.String value)
         Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
         The number of build ids that can be queried in a single API call is limited.
         Open source users can adjust this limit by setting the server's dynamic config value for
         `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
         
        repeated string build_ids = 2;
        Parameters:
        index - The index to set the value at.
        value - The buildIds to set.
        Returns:
        This builder for chaining.
      • addBuildIds

        public GetWorkerTaskReachabilityRequest.Builder addBuildIds​(java.lang.String value)
         Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
         The number of build ids that can be queried in a single API call is limited.
         Open source users can adjust this limit by setting the server's dynamic config value for
         `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
         
        repeated string build_ids = 2;
        Parameters:
        value - The buildIds to add.
        Returns:
        This builder for chaining.
      • addAllBuildIds

        public GetWorkerTaskReachabilityRequest.Builder addAllBuildIds​(java.lang.Iterable<java.lang.String> values)
         Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
         The number of build ids that can be queried in a single API call is limited.
         Open source users can adjust this limit by setting the server's dynamic config value for
         `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
         
        repeated string build_ids = 2;
        Parameters:
        values - The buildIds to add.
        Returns:
        This builder for chaining.
      • clearBuildIds

        public GetWorkerTaskReachabilityRequest.Builder clearBuildIds()
         Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
         The number of build ids that can be queried in a single API call is limited.
         Open source users can adjust this limit by setting the server's dynamic config value for
         `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
         
        repeated string build_ids = 2;
        Returns:
        This builder for chaining.
      • addBuildIdsBytes

        public GetWorkerTaskReachabilityRequest.Builder addBuildIdsBytes​(com.google.protobuf.ByteString value)
         Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
         The number of build ids that can be queried in a single API call is limited.
         Open source users can adjust this limit by setting the server's dynamic config value for
         `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
         
        repeated string build_ids = 2;
        Parameters:
        value - The bytes of the buildIds to add.
        Returns:
        This builder for chaining.
      • getTaskQueuesList

        public com.google.protobuf.ProtocolStringList getTaskQueuesList()
         Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
         build ids in the namespace.
         Must specify at least one task queue if querying for an unversioned worker.
         The number of task queues that the server will fetch reachability information for is limited.
         See the `GetWorkerTaskReachabilityResponse` documentation for more information.
         
        repeated string task_queues = 3;
        Specified by:
        getTaskQueuesList in interface GetWorkerTaskReachabilityRequestOrBuilder
        Returns:
        A list containing the taskQueues.
      • getTaskQueuesCount

        public int getTaskQueuesCount()
         Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
         build ids in the namespace.
         Must specify at least one task queue if querying for an unversioned worker.
         The number of task queues that the server will fetch reachability information for is limited.
         See the `GetWorkerTaskReachabilityResponse` documentation for more information.
         
        repeated string task_queues = 3;
        Specified by:
        getTaskQueuesCount in interface GetWorkerTaskReachabilityRequestOrBuilder
        Returns:
        The count of taskQueues.
      • getTaskQueues

        public java.lang.String getTaskQueues​(int index)
         Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
         build ids in the namespace.
         Must specify at least one task queue if querying for an unversioned worker.
         The number of task queues that the server will fetch reachability information for is limited.
         See the `GetWorkerTaskReachabilityResponse` documentation for more information.
         
        repeated string task_queues = 3;
        Specified by:
        getTaskQueues in interface GetWorkerTaskReachabilityRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The taskQueues at the given index.
      • getTaskQueuesBytes

        public com.google.protobuf.ByteString getTaskQueuesBytes​(int index)
         Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
         build ids in the namespace.
         Must specify at least one task queue if querying for an unversioned worker.
         The number of task queues that the server will fetch reachability information for is limited.
         See the `GetWorkerTaskReachabilityResponse` documentation for more information.
         
        repeated string task_queues = 3;
        Specified by:
        getTaskQueuesBytes in interface GetWorkerTaskReachabilityRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the taskQueues at the given index.
      • setTaskQueues

        public GetWorkerTaskReachabilityRequest.Builder setTaskQueues​(int index,
                                                                      java.lang.String value)
         Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
         build ids in the namespace.
         Must specify at least one task queue if querying for an unversioned worker.
         The number of task queues that the server will fetch reachability information for is limited.
         See the `GetWorkerTaskReachabilityResponse` documentation for more information.
         
        repeated string task_queues = 3;
        Parameters:
        index - The index to set the value at.
        value - The taskQueues to set.
        Returns:
        This builder for chaining.
      • addTaskQueues

        public GetWorkerTaskReachabilityRequest.Builder addTaskQueues​(java.lang.String value)
         Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
         build ids in the namespace.
         Must specify at least one task queue if querying for an unversioned worker.
         The number of task queues that the server will fetch reachability information for is limited.
         See the `GetWorkerTaskReachabilityResponse` documentation for more information.
         
        repeated string task_queues = 3;
        Parameters:
        value - The taskQueues to add.
        Returns:
        This builder for chaining.
      • addAllTaskQueues

        public GetWorkerTaskReachabilityRequest.Builder addAllTaskQueues​(java.lang.Iterable<java.lang.String> values)
         Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
         build ids in the namespace.
         Must specify at least one task queue if querying for an unversioned worker.
         The number of task queues that the server will fetch reachability information for is limited.
         See the `GetWorkerTaskReachabilityResponse` documentation for more information.
         
        repeated string task_queues = 3;
        Parameters:
        values - The taskQueues to add.
        Returns:
        This builder for chaining.
      • clearTaskQueues

        public GetWorkerTaskReachabilityRequest.Builder clearTaskQueues()
         Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
         build ids in the namespace.
         Must specify at least one task queue if querying for an unversioned worker.
         The number of task queues that the server will fetch reachability information for is limited.
         See the `GetWorkerTaskReachabilityResponse` documentation for more information.
         
        repeated string task_queues = 3;
        Returns:
        This builder for chaining.
      • addTaskQueuesBytes

        public GetWorkerTaskReachabilityRequest.Builder addTaskQueuesBytes​(com.google.protobuf.ByteString value)
         Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
         build ids in the namespace.
         Must specify at least one task queue if querying for an unversioned worker.
         The number of task queues that the server will fetch reachability information for is limited.
         See the `GetWorkerTaskReachabilityResponse` documentation for more information.
         
        repeated string task_queues = 3;
        Parameters:
        value - The bytes of the taskQueues to add.
        Returns:
        This builder for chaining.
      • getReachabilityValue

        public int getReachabilityValue()
         Type of reachability to query for.
         `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response.
         Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows.
         Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left
         unspecified.
         See the TaskReachability docstring for information about each enum variant.
         
        .temporal.api.enums.v1.TaskReachability reachability = 4;
        Specified by:
        getReachabilityValue in interface GetWorkerTaskReachabilityRequestOrBuilder
        Returns:
        The enum numeric value on the wire for reachability.
      • setReachabilityValue

        public GetWorkerTaskReachabilityRequest.Builder setReachabilityValue​(int value)
         Type of reachability to query for.
         `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response.
         Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows.
         Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left
         unspecified.
         See the TaskReachability docstring for information about each enum variant.
         
        .temporal.api.enums.v1.TaskReachability reachability = 4;
        Parameters:
        value - The enum numeric value on the wire for reachability to set.
        Returns:
        This builder for chaining.
      • getReachability

        public TaskReachability getReachability()
         Type of reachability to query for.
         `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response.
         Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows.
         Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left
         unspecified.
         See the TaskReachability docstring for information about each enum variant.
         
        .temporal.api.enums.v1.TaskReachability reachability = 4;
        Specified by:
        getReachability in interface GetWorkerTaskReachabilityRequestOrBuilder
        Returns:
        The reachability.
      • setReachability

        public GetWorkerTaskReachabilityRequest.Builder setReachability​(TaskReachability value)
         Type of reachability to query for.
         `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response.
         Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows.
         Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left
         unspecified.
         See the TaskReachability docstring for information about each enum variant.
         
        .temporal.api.enums.v1.TaskReachability reachability = 4;
        Parameters:
        value - The reachability to set.
        Returns:
        This builder for chaining.
      • clearReachability

        public GetWorkerTaskReachabilityRequest.Builder clearReachability()
         Type of reachability to query for.
         `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response.
         Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows.
         Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left
         unspecified.
         See the TaskReachability docstring for information about each enum variant.
         
        .temporal.api.enums.v1.TaskReachability reachability = 4;
        Returns:
        This builder for chaining.