Class PollNexusTaskQueueResponse.Builder

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

public static final class PollNexusTaskQueueResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PollNexusTaskQueueResponse.Builder> implements PollNexusTaskQueueResponseOrBuilder
Protobuf type temporal.api.workflowservice.v1.PollNexusTaskQueueResponse
  • 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<PollNexusTaskQueueResponse.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<PollNexusTaskQueueResponse.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<PollNexusTaskQueueResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public PollNexusTaskQueueResponse.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<PollNexusTaskQueueResponse.Builder>
      Throws:
      IOException
    • getTaskToken

      public com.google.protobuf.ByteString getTaskToken()
       An opaque unique identifier for this task for correlating a completion request the embedded request.
       
      bytes task_token = 1;
      Specified by:
      getTaskToken in interface PollNexusTaskQueueResponseOrBuilder
      Returns:
      The taskToken.
    • setTaskToken

      public PollNexusTaskQueueResponse.Builder setTaskToken(com.google.protobuf.ByteString value)
       An opaque unique identifier for this task for correlating a completion request the embedded request.
       
      bytes task_token = 1;
      Parameters:
      value - The taskToken to set.
      Returns:
      This builder for chaining.
    • clearTaskToken

      public PollNexusTaskQueueResponse.Builder clearTaskToken()
       An opaque unique identifier for this task for correlating a completion request the embedded request.
       
      bytes task_token = 1;
      Returns:
      This builder for chaining.
    • hasRequest

      public boolean hasRequest()
       Embedded request as translated from the incoming frontend request.
       
      .temporal.api.nexus.v1.Request request = 2;
      Specified by:
      hasRequest in interface PollNexusTaskQueueResponseOrBuilder
      Returns:
      Whether the request field is set.
    • getRequest

      public Request getRequest()
       Embedded request as translated from the incoming frontend request.
       
      .temporal.api.nexus.v1.Request request = 2;
      Specified by:
      getRequest in interface PollNexusTaskQueueResponseOrBuilder
      Returns:
      The request.
    • setRequest

      public PollNexusTaskQueueResponse.Builder setRequest(Request value)
       Embedded request as translated from the incoming frontend request.
       
      .temporal.api.nexus.v1.Request request = 2;
    • setRequest

      public PollNexusTaskQueueResponse.Builder setRequest(Request.Builder builderForValue)
       Embedded request as translated from the incoming frontend request.
       
      .temporal.api.nexus.v1.Request request = 2;
    • mergeRequest

      public PollNexusTaskQueueResponse.Builder mergeRequest(Request value)
       Embedded request as translated from the incoming frontend request.
       
      .temporal.api.nexus.v1.Request request = 2;
    • clearRequest

      public PollNexusTaskQueueResponse.Builder clearRequest()
       Embedded request as translated from the incoming frontend request.
       
      .temporal.api.nexus.v1.Request request = 2;
    • getRequestBuilder

      public Request.Builder getRequestBuilder()
       Embedded request as translated from the incoming frontend request.
       
      .temporal.api.nexus.v1.Request request = 2;
    • getRequestOrBuilder

      public RequestOrBuilder getRequestOrBuilder()
       Embedded request as translated from the incoming frontend request.
       
      .temporal.api.nexus.v1.Request request = 2;
      Specified by:
      getRequestOrBuilder in interface PollNexusTaskQueueResponseOrBuilder
    • hasPollerScalingDecision

      public boolean hasPollerScalingDecision()
       Server-advised information the SDK may use to adjust its poller count.
       
      .temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 3;
      Specified by:
      hasPollerScalingDecision in interface PollNexusTaskQueueResponseOrBuilder
      Returns:
      Whether the pollerScalingDecision field is set.
    • getPollerScalingDecision

      public PollerScalingDecision getPollerScalingDecision()
       Server-advised information the SDK may use to adjust its poller count.
       
      .temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 3;
      Specified by:
      getPollerScalingDecision in interface PollNexusTaskQueueResponseOrBuilder
      Returns:
      The pollerScalingDecision.
    • setPollerScalingDecision

      public PollNexusTaskQueueResponse.Builder setPollerScalingDecision(PollerScalingDecision value)
       Server-advised information the SDK may use to adjust its poller count.
       
      .temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 3;
    • setPollerScalingDecision

      public PollNexusTaskQueueResponse.Builder setPollerScalingDecision(PollerScalingDecision.Builder builderForValue)
       Server-advised information the SDK may use to adjust its poller count.
       
      .temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 3;
    • mergePollerScalingDecision

      public PollNexusTaskQueueResponse.Builder mergePollerScalingDecision(PollerScalingDecision value)
       Server-advised information the SDK may use to adjust its poller count.
       
      .temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 3;
    • clearPollerScalingDecision

      public PollNexusTaskQueueResponse.Builder clearPollerScalingDecision()
       Server-advised information the SDK may use to adjust its poller count.
       
      .temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 3;
    • getPollerScalingDecisionBuilder

      public PollerScalingDecision.Builder getPollerScalingDecisionBuilder()
       Server-advised information the SDK may use to adjust its poller count.
       
      .temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 3;
    • getPollerScalingDecisionOrBuilder

      public PollerScalingDecisionOrBuilder getPollerScalingDecisionOrBuilder()
       Server-advised information the SDK may use to adjust its poller count.
       
      .temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 3;
      Specified by:
      getPollerScalingDecisionOrBuilder in interface PollNexusTaskQueueResponseOrBuilder
    • getPollerGroupId

      public String getPollerGroupId()
       This poller group ID identifies the owner of the nexus task awaiting for synchronous
       response.
       Corresponding `RespondNexusTaskCompleted` and `RespondNexusTaskFailed` calls should pass this
       value for proper response routing.
       
      string poller_group_id = 4;
      Specified by:
      getPollerGroupId in interface PollNexusTaskQueueResponseOrBuilder
      Returns:
      The pollerGroupId.
    • getPollerGroupIdBytes

      public com.google.protobuf.ByteString getPollerGroupIdBytes()
       This poller group ID identifies the owner of the nexus task awaiting for synchronous
       response.
       Corresponding `RespondNexusTaskCompleted` and `RespondNexusTaskFailed` calls should pass this
       value for proper response routing.
       
      string poller_group_id = 4;
      Specified by:
      getPollerGroupIdBytes in interface PollNexusTaskQueueResponseOrBuilder
      Returns:
      The bytes for pollerGroupId.
    • setPollerGroupId

      public PollNexusTaskQueueResponse.Builder setPollerGroupId(String value)
       This poller group ID identifies the owner of the nexus task awaiting for synchronous
       response.
       Corresponding `RespondNexusTaskCompleted` and `RespondNexusTaskFailed` calls should pass this
       value for proper response routing.
       
      string poller_group_id = 4;
      Parameters:
      value - The pollerGroupId to set.
      Returns:
      This builder for chaining.
    • clearPollerGroupId

      public PollNexusTaskQueueResponse.Builder clearPollerGroupId()
       This poller group ID identifies the owner of the nexus task awaiting for synchronous
       response.
       Corresponding `RespondNexusTaskCompleted` and `RespondNexusTaskFailed` calls should pass this
       value for proper response routing.
       
      string poller_group_id = 4;
      Returns:
      This builder for chaining.
    • setPollerGroupIdBytes

      public PollNexusTaskQueueResponse.Builder setPollerGroupIdBytes(com.google.protobuf.ByteString value)
       This poller group ID identifies the owner of the nexus task awaiting for synchronous
       response.
       Corresponding `RespondNexusTaskCompleted` and `RespondNexusTaskFailed` calls should pass this
       value for proper response routing.
       
      string poller_group_id = 4;
      Parameters:
      value - The bytes for pollerGroupId to set.
      Returns:
      This builder for chaining.
    • getPollerGroupInfosList

      public List<PollerGroupInfo> getPollerGroupInfosList()
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
      Specified by:
      getPollerGroupInfosList in interface PollNexusTaskQueueResponseOrBuilder
    • getPollerGroupInfosCount

      public int getPollerGroupInfosCount()
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
      Specified by:
      getPollerGroupInfosCount in interface PollNexusTaskQueueResponseOrBuilder
    • getPollerGroupInfos

      public PollerGroupInfo getPollerGroupInfos(int index)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
      Specified by:
      getPollerGroupInfos in interface PollNexusTaskQueueResponseOrBuilder
    • setPollerGroupInfos

      public PollNexusTaskQueueResponse.Builder setPollerGroupInfos(int index, PollerGroupInfo value)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • setPollerGroupInfos

      public PollNexusTaskQueueResponse.Builder setPollerGroupInfos(int index, PollerGroupInfo.Builder builderForValue)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • addPollerGroupInfos

      public PollNexusTaskQueueResponse.Builder addPollerGroupInfos(PollerGroupInfo value)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • addPollerGroupInfos

      public PollNexusTaskQueueResponse.Builder addPollerGroupInfos(int index, PollerGroupInfo value)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • addPollerGroupInfos

      public PollNexusTaskQueueResponse.Builder addPollerGroupInfos(PollerGroupInfo.Builder builderForValue)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • addPollerGroupInfos

      public PollNexusTaskQueueResponse.Builder addPollerGroupInfos(int index, PollerGroupInfo.Builder builderForValue)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • addAllPollerGroupInfos

      public PollNexusTaskQueueResponse.Builder addAllPollerGroupInfos(Iterable<? extends PollerGroupInfo> values)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • clearPollerGroupInfos

      public PollNexusTaskQueueResponse.Builder clearPollerGroupInfos()
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • removePollerGroupInfos

      public PollNexusTaskQueueResponse.Builder removePollerGroupInfos(int index)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • getPollerGroupInfosBuilder

      public PollerGroupInfo.Builder getPollerGroupInfosBuilder(int index)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • getPollerGroupInfosOrBuilder

      public PollerGroupInfoOrBuilder getPollerGroupInfosOrBuilder(int index)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
      Specified by:
      getPollerGroupInfosOrBuilder in interface PollNexusTaskQueueResponseOrBuilder
    • getPollerGroupInfosOrBuilderList

      public List<? extends PollerGroupInfoOrBuilder> getPollerGroupInfosOrBuilderList()
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
      Specified by:
      getPollerGroupInfosOrBuilderList in interface PollNexusTaskQueueResponseOrBuilder
    • addPollerGroupInfosBuilder

      public PollerGroupInfo.Builder addPollerGroupInfosBuilder()
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • addPollerGroupInfosBuilder

      public PollerGroupInfo.Builder addPollerGroupInfosBuilder(int index)
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • getPollerGroupInfosBuilderList

      public List<PollerGroupInfo.Builder> getPollerGroupInfosBuilderList()
       The weighted list of poller groups IDs that client should use for future polls to this task
       queue. Client is expected to:
         1. Maintain minimum number of pollers no less than the number of groups.
         2. Try to assign the next poll to a group without any pending polls,
         3. If every group has some pending polls, assign the next poll to a group randomly
           according to the weights.
       
      repeated .temporal.api.taskqueue.v1.PollerGroupInfo poller_group_infos = 5;
    • setUnknownFields

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

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