Class PollNexusTaskQueueResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.temporal.api.workflowservice.v1.PollNexusTaskQueueResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PollNexusTaskQueueResponseOrBuilder, Serializable

@Generated(value="protoc", comments="annotations:PollNexusTaskQueueResponse.java.pb.meta") public final class PollNexusTaskQueueResponse extends com.google.protobuf.GeneratedMessageV3 implements PollNexusTaskQueueResponseOrBuilder
Protobuf type temporal.api.workflowservice.v1.PollNexusTaskQueueResponse
See Also:
  • Field Details

    • TASK_TOKEN_FIELD_NUMBER

      public static final int TASK_TOKEN_FIELD_NUMBER
      See Also:
    • REQUEST_FIELD_NUMBER

      public static final int REQUEST_FIELD_NUMBER
      See Also:
    • POLLER_SCALING_DECISION_FIELD_NUMBER

      public static final int POLLER_SCALING_DECISION_FIELD_NUMBER
      See Also:
    • POLLER_GROUP_ID_FIELD_NUMBER

      public static final int POLLER_GROUP_ID_FIELD_NUMBER
      See Also:
    • POLLER_GROUP_INFOS_FIELD_NUMBER

      public static final int POLLER_GROUP_INFOS_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PollNexusTaskQueueResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PollNexusTaskQueueResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PollNexusTaskQueueResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PollNexusTaskQueueResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PollNexusTaskQueueResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PollNexusTaskQueueResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PollNexusTaskQueueResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PollNexusTaskQueueResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PollNexusTaskQueueResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PollNexusTaskQueueResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PollNexusTaskQueueResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PollNexusTaskQueueResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public PollNexusTaskQueueResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static PollNexusTaskQueueResponse.Builder newBuilder()
    • newBuilder

      public static PollNexusTaskQueueResponse.Builder newBuilder(PollNexusTaskQueueResponse prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected PollNexusTaskQueueResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static PollNexusTaskQueueResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PollNexusTaskQueueResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<PollNexusTaskQueueResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public PollNexusTaskQueueResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder