Class GetWorkerTaskReachabilityRequest.Builder

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

public static final class GetWorkerTaskReachabilityRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GetWorkerTaskReachabilityRequest.Builder> implements GetWorkerTaskReachabilityRequestOrBuilder
 [cleanup-wv-pre-release]
 Deprecated. Use `DescribeTaskQueue`.
 
Protobuf type temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest
  • 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<GetWorkerTaskReachabilityRequest.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<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

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

      public GetWorkerTaskReachabilityRequest.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<GetWorkerTaskReachabilityRequest.Builder>
    • clearField

      public GetWorkerTaskReachabilityRequest.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<GetWorkerTaskReachabilityRequest.Builder>
    • clearOneof

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

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

      public GetWorkerTaskReachabilityRequest.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<GetWorkerTaskReachabilityRequest.Builder>
    • mergeFrom

      public GetWorkerTaskReachabilityRequest.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<GetWorkerTaskReachabilityRequest.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<GetWorkerTaskReachabilityRequest.Builder>
    • mergeFrom

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

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

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

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

      string namespace = 1;
      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 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, 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

       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(Iterable<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

       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 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, 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(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(Iterable<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

       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.
    • setUnknownFields

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

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