Class PollWorkflowTaskQueueResponse.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<PollWorkflowTaskQueueResponse.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<PollWorkflowTaskQueueResponse.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PollWorkflowTaskQueueResponse.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<PollWorkflowTaskQueueResponse.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

        public PollWorkflowTaskQueueResponse.Builder setTaskToken​(com.google.protobuf.ByteString value)
         A unique identifier for this task
         
        bytes task_token = 1;
        Parameters:
        value - The taskToken to set.
        Returns:
        This builder for chaining.
      • getWorkflowExecutionBuilder

        public WorkflowExecution.Builder getWorkflowExecutionBuilder()
        .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
      • getWorkflowTypeBuilder

        public WorkflowType.Builder getWorkflowTypeBuilder()
        .temporal.api.common.v1.WorkflowType workflow_type = 3;
      • getPreviousStartedEventId

        public long getPreviousStartedEventId()
         The last workflow task started event which was processed by some worker for this execution.
         Will be zero if no task has ever started.
         
        int64 previous_started_event_id = 4;
        Specified by:
        getPreviousStartedEventId in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        The previousStartedEventId.
      • setPreviousStartedEventId

        public PollWorkflowTaskQueueResponse.Builder setPreviousStartedEventId​(long value)
         The last workflow task started event which was processed by some worker for this execution.
         Will be zero if no task has ever started.
         
        int64 previous_started_event_id = 4;
        Parameters:
        value - The previousStartedEventId to set.
        Returns:
        This builder for chaining.
      • clearPreviousStartedEventId

        public PollWorkflowTaskQueueResponse.Builder clearPreviousStartedEventId()
         The last workflow task started event which was processed by some worker for this execution.
         Will be zero if no task has ever started.
         
        int64 previous_started_event_id = 4;
        Returns:
        This builder for chaining.
      • getStartedEventId

        public long getStartedEventId()
         The id of the most recent workflow task started event, which will have been generated as a
         result of this poll request being served. Will be zero if the task
         does not contain any events which would advance history (no new WFT started).
         Currently this can happen for queries.
         
        int64 started_event_id = 5;
        Specified by:
        getStartedEventId in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        The startedEventId.
      • setStartedEventId

        public PollWorkflowTaskQueueResponse.Builder setStartedEventId​(long value)
         The id of the most recent workflow task started event, which will have been generated as a
         result of this poll request being served. Will be zero if the task
         does not contain any events which would advance history (no new WFT started).
         Currently this can happen for queries.
         
        int64 started_event_id = 5;
        Parameters:
        value - The startedEventId to set.
        Returns:
        This builder for chaining.
      • clearStartedEventId

        public PollWorkflowTaskQueueResponse.Builder clearStartedEventId()
         The id of the most recent workflow task started event, which will have been generated as a
         result of this poll request being served. Will be zero if the task
         does not contain any events which would advance history (no new WFT started).
         Currently this can happen for queries.
         
        int64 started_event_id = 5;
        Returns:
        This builder for chaining.
      • setAttempt

        public PollWorkflowTaskQueueResponse.Builder setAttempt​(int value)
         Starting at 1, the number of attempts to complete this task by any worker.
         
        int32 attempt = 6;
        Parameters:
        value - The attempt to set.
        Returns:
        This builder for chaining.
      • clearAttempt

        public PollWorkflowTaskQueueResponse.Builder clearAttempt()
         Starting at 1, the number of attempts to complete this task by any worker.
         
        int32 attempt = 6;
        Returns:
        This builder for chaining.
      • getBacklogCountHint

        public long getBacklogCountHint()
         A hint that there are more tasks already present in this task queue
         partition. Can be used to prioritize draining a sticky queue.
        
         Specifically, the returned number is the number of tasks remaining in
         the in-memory buffer for this partition, which is currently capped at
         1000. Because sticky queues only have one partition, this number is
         more useful when draining them. Normal queues, typically having more than one
         partition, will return a number representing only some portion of the
         overall backlog. Subsequent RPCs may not hit the same partition as
         this call.
         
        int64 backlog_count_hint = 7;
        Specified by:
        getBacklogCountHint in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        The backlogCountHint.
      • setBacklogCountHint

        public PollWorkflowTaskQueueResponse.Builder setBacklogCountHint​(long value)
         A hint that there are more tasks already present in this task queue
         partition. Can be used to prioritize draining a sticky queue.
        
         Specifically, the returned number is the number of tasks remaining in
         the in-memory buffer for this partition, which is currently capped at
         1000. Because sticky queues only have one partition, this number is
         more useful when draining them. Normal queues, typically having more than one
         partition, will return a number representing only some portion of the
         overall backlog. Subsequent RPCs may not hit the same partition as
         this call.
         
        int64 backlog_count_hint = 7;
        Parameters:
        value - The backlogCountHint to set.
        Returns:
        This builder for chaining.
      • clearBacklogCountHint

        public PollWorkflowTaskQueueResponse.Builder clearBacklogCountHint()
         A hint that there are more tasks already present in this task queue
         partition. Can be used to prioritize draining a sticky queue.
        
         Specifically, the returned number is the number of tasks remaining in
         the in-memory buffer for this partition, which is currently capped at
         1000. Because sticky queues only have one partition, this number is
         more useful when draining them. Normal queues, typically having more than one
         partition, will return a number representing only some portion of the
         overall backlog. Subsequent RPCs may not hit the same partition as
         this call.
         
        int64 backlog_count_hint = 7;
        Returns:
        This builder for chaining.
      • hasHistory

        public boolean hasHistory()
         The history for this workflow, which will either be complete or partial. Partial histories
         are sent to workers who have signaled that they are using a sticky queue when completing
         a workflow task.
         
        .temporal.api.history.v1.History history = 8;
        Specified by:
        hasHistory in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        Whether the history field is set.
      • getHistory

        public History getHistory()
         The history for this workflow, which will either be complete or partial. Partial histories
         are sent to workers who have signaled that they are using a sticky queue when completing
         a workflow task.
         
        .temporal.api.history.v1.History history = 8;
        Specified by:
        getHistory in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        The history.
      • setHistory

        public PollWorkflowTaskQueueResponse.Builder setHistory​(History value)
         The history for this workflow, which will either be complete or partial. Partial histories
         are sent to workers who have signaled that they are using a sticky queue when completing
         a workflow task.
         
        .temporal.api.history.v1.History history = 8;
      • setHistory

        public PollWorkflowTaskQueueResponse.Builder setHistory​(History.Builder builderForValue)
         The history for this workflow, which will either be complete or partial. Partial histories
         are sent to workers who have signaled that they are using a sticky queue when completing
         a workflow task.
         
        .temporal.api.history.v1.History history = 8;
      • mergeHistory

        public PollWorkflowTaskQueueResponse.Builder mergeHistory​(History value)
         The history for this workflow, which will either be complete or partial. Partial histories
         are sent to workers who have signaled that they are using a sticky queue when completing
         a workflow task.
         
        .temporal.api.history.v1.History history = 8;
      • clearHistory

        public PollWorkflowTaskQueueResponse.Builder clearHistory()
         The history for this workflow, which will either be complete or partial. Partial histories
         are sent to workers who have signaled that they are using a sticky queue when completing
         a workflow task.
         
        .temporal.api.history.v1.History history = 8;
      • getHistoryBuilder

        public History.Builder getHistoryBuilder()
         The history for this workflow, which will either be complete or partial. Partial histories
         are sent to workers who have signaled that they are using a sticky queue when completing
         a workflow task.
         
        .temporal.api.history.v1.History history = 8;
      • getHistoryOrBuilder

        public HistoryOrBuilder getHistoryOrBuilder()
         The history for this workflow, which will either be complete or partial. Partial histories
         are sent to workers who have signaled that they are using a sticky queue when completing
         a workflow task.
         
        .temporal.api.history.v1.History history = 8;
        Specified by:
        getHistoryOrBuilder in interface PollWorkflowTaskQueueResponseOrBuilder
      • getNextPageToken

        public com.google.protobuf.ByteString getNextPageToken()
         Will be set if there are more history events than were included in this response. Such events
         should be fetched via `GetWorkflowExecutionHistory`.
         
        bytes next_page_token = 9;
        Specified by:
        getNextPageToken in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        The nextPageToken.
      • setNextPageToken

        public PollWorkflowTaskQueueResponse.Builder setNextPageToken​(com.google.protobuf.ByteString value)
         Will be set if there are more history events than were included in this response. Such events
         should be fetched via `GetWorkflowExecutionHistory`.
         
        bytes next_page_token = 9;
        Parameters:
        value - The nextPageToken to set.
        Returns:
        This builder for chaining.
      • clearNextPageToken

        public PollWorkflowTaskQueueResponse.Builder clearNextPageToken()
         Will be set if there are more history events than were included in this response. Such events
         should be fetched via `GetWorkflowExecutionHistory`.
         
        bytes next_page_token = 9;
        Returns:
        This builder for chaining.
      • hasQuery

        public boolean hasQuery()
         Legacy queries appear in this field. The query must be responded to via
         `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
         closed workflows) then the `history` field will be populated with the entire history. It
         may also be populated if this task originates on a non-sticky queue.
         
        .temporal.api.query.v1.WorkflowQuery query = 10;
        Specified by:
        hasQuery in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        Whether the query field is set.
      • getQuery

        public WorkflowQuery getQuery()
         Legacy queries appear in this field. The query must be responded to via
         `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
         closed workflows) then the `history` field will be populated with the entire history. It
         may also be populated if this task originates on a non-sticky queue.
         
        .temporal.api.query.v1.WorkflowQuery query = 10;
        Specified by:
        getQuery in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        The query.
      • setQuery

        public PollWorkflowTaskQueueResponse.Builder setQuery​(WorkflowQuery value)
         Legacy queries appear in this field. The query must be responded to via
         `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
         closed workflows) then the `history` field will be populated with the entire history. It
         may also be populated if this task originates on a non-sticky queue.
         
        .temporal.api.query.v1.WorkflowQuery query = 10;
      • setQuery

        public PollWorkflowTaskQueueResponse.Builder setQuery​(WorkflowQuery.Builder builderForValue)
         Legacy queries appear in this field. The query must be responded to via
         `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
         closed workflows) then the `history` field will be populated with the entire history. It
         may also be populated if this task originates on a non-sticky queue.
         
        .temporal.api.query.v1.WorkflowQuery query = 10;
      • mergeQuery

        public PollWorkflowTaskQueueResponse.Builder mergeQuery​(WorkflowQuery value)
         Legacy queries appear in this field. The query must be responded to via
         `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
         closed workflows) then the `history` field will be populated with the entire history. It
         may also be populated if this task originates on a non-sticky queue.
         
        .temporal.api.query.v1.WorkflowQuery query = 10;
      • clearQuery

        public PollWorkflowTaskQueueResponse.Builder clearQuery()
         Legacy queries appear in this field. The query must be responded to via
         `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
         closed workflows) then the `history` field will be populated with the entire history. It
         may also be populated if this task originates on a non-sticky queue.
         
        .temporal.api.query.v1.WorkflowQuery query = 10;
      • getQueryBuilder

        public WorkflowQuery.Builder getQueryBuilder()
         Legacy queries appear in this field. The query must be responded to via
         `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
         closed workflows) then the `history` field will be populated with the entire history. It
         may also be populated if this task originates on a non-sticky queue.
         
        .temporal.api.query.v1.WorkflowQuery query = 10;
      • getQueryOrBuilder

        public WorkflowQueryOrBuilder getQueryOrBuilder()
         Legacy queries appear in this field. The query must be responded to via
         `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
         closed workflows) then the `history` field will be populated with the entire history. It
         may also be populated if this task originates on a non-sticky queue.
         
        .temporal.api.query.v1.WorkflowQuery query = 10;
        Specified by:
        getQueryOrBuilder in interface PollWorkflowTaskQueueResponseOrBuilder
      • hasWorkflowExecutionTaskQueue

        public boolean hasWorkflowExecutionTaskQueue()
         The task queue this task originated from, which will always be the original non-sticky name
         for the queue, even if this response came from polling a sticky queue.
         
        .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
        Specified by:
        hasWorkflowExecutionTaskQueue in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        Whether the workflowExecutionTaskQueue field is set.
      • getWorkflowExecutionTaskQueue

        public TaskQueue getWorkflowExecutionTaskQueue()
         The task queue this task originated from, which will always be the original non-sticky name
         for the queue, even if this response came from polling a sticky queue.
         
        .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
        Specified by:
        getWorkflowExecutionTaskQueue in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        The workflowExecutionTaskQueue.
      • setWorkflowExecutionTaskQueue

        public PollWorkflowTaskQueueResponse.Builder setWorkflowExecutionTaskQueue​(TaskQueue value)
         The task queue this task originated from, which will always be the original non-sticky name
         for the queue, even if this response came from polling a sticky queue.
         
        .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
      • setWorkflowExecutionTaskQueue

        public PollWorkflowTaskQueueResponse.Builder setWorkflowExecutionTaskQueue​(TaskQueue.Builder builderForValue)
         The task queue this task originated from, which will always be the original non-sticky name
         for the queue, even if this response came from polling a sticky queue.
         
        .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
      • mergeWorkflowExecutionTaskQueue

        public PollWorkflowTaskQueueResponse.Builder mergeWorkflowExecutionTaskQueue​(TaskQueue value)
         The task queue this task originated from, which will always be the original non-sticky name
         for the queue, even if this response came from polling a sticky queue.
         
        .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
      • clearWorkflowExecutionTaskQueue

        public PollWorkflowTaskQueueResponse.Builder clearWorkflowExecutionTaskQueue()
         The task queue this task originated from, which will always be the original non-sticky name
         for the queue, even if this response came from polling a sticky queue.
         
        .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
      • getWorkflowExecutionTaskQueueBuilder

        public TaskQueue.Builder getWorkflowExecutionTaskQueueBuilder()
         The task queue this task originated from, which will always be the original non-sticky name
         for the queue, even if this response came from polling a sticky queue.
         
        .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
      • hasScheduledTime

        public boolean hasScheduledTime()
         When this task was scheduled by the server
         
        .google.protobuf.Timestamp scheduled_time = 12;
        Specified by:
        hasScheduledTime in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        Whether the scheduledTime field is set.
      • getScheduledTime

        public com.google.protobuf.Timestamp getScheduledTime()
         When this task was scheduled by the server
         
        .google.protobuf.Timestamp scheduled_time = 12;
        Specified by:
        getScheduledTime in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        The scheduledTime.
      • setScheduledTime

        public PollWorkflowTaskQueueResponse.Builder setScheduledTime​(com.google.protobuf.Timestamp value)
         When this task was scheduled by the server
         
        .google.protobuf.Timestamp scheduled_time = 12;
      • setScheduledTime

        public PollWorkflowTaskQueueResponse.Builder setScheduledTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         When this task was scheduled by the server
         
        .google.protobuf.Timestamp scheduled_time = 12;
      • mergeScheduledTime

        public PollWorkflowTaskQueueResponse.Builder mergeScheduledTime​(com.google.protobuf.Timestamp value)
         When this task was scheduled by the server
         
        .google.protobuf.Timestamp scheduled_time = 12;
      • getScheduledTimeBuilder

        public com.google.protobuf.Timestamp.Builder getScheduledTimeBuilder()
         When this task was scheduled by the server
         
        .google.protobuf.Timestamp scheduled_time = 12;
      • hasStartedTime

        public boolean hasStartedTime()
         When the current workflow task started event was generated, meaning the current attempt.
         
        .google.protobuf.Timestamp started_time = 13;
        Specified by:
        hasStartedTime in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        Whether the startedTime field is set.
      • getStartedTime

        public com.google.protobuf.Timestamp getStartedTime()
         When the current workflow task started event was generated, meaning the current attempt.
         
        .google.protobuf.Timestamp started_time = 13;
        Specified by:
        getStartedTime in interface PollWorkflowTaskQueueResponseOrBuilder
        Returns:
        The startedTime.
      • setStartedTime

        public PollWorkflowTaskQueueResponse.Builder setStartedTime​(com.google.protobuf.Timestamp value)
         When the current workflow task started event was generated, meaning the current attempt.
         
        .google.protobuf.Timestamp started_time = 13;
      • setStartedTime

        public PollWorkflowTaskQueueResponse.Builder setStartedTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         When the current workflow task started event was generated, meaning the current attempt.
         
        .google.protobuf.Timestamp started_time = 13;
      • mergeStartedTime

        public PollWorkflowTaskQueueResponse.Builder mergeStartedTime​(com.google.protobuf.Timestamp value)
         When the current workflow task started event was generated, meaning the current attempt.
         
        .google.protobuf.Timestamp started_time = 13;
      • clearStartedTime

        public PollWorkflowTaskQueueResponse.Builder clearStartedTime()
         When the current workflow task started event was generated, meaning the current attempt.
         
        .google.protobuf.Timestamp started_time = 13;
      • getStartedTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartedTimeBuilder()
         When the current workflow task started event was generated, meaning the current attempt.
         
        .google.protobuf.Timestamp started_time = 13;
      • getStartedTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartedTimeOrBuilder()
         When the current workflow task started event was generated, meaning the current attempt.
         
        .google.protobuf.Timestamp started_time = 13;
        Specified by:
        getStartedTimeOrBuilder in interface PollWorkflowTaskQueueResponseOrBuilder
      • containsQueries

        public boolean containsQueries​(java.lang.String key)
         Queries that should be executed after applying the history in this task. Responses should be
         attached to `RespondWorkflowTaskCompletedRequest::query_results`
         
        map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14;
        Specified by:
        containsQueries in interface PollWorkflowTaskQueueResponseOrBuilder
      • getQueriesMap

        public java.util.Map<java.lang.String,​WorkflowQuery> getQueriesMap()
         Queries that should be executed after applying the history in this task. Responses should be
         attached to `RespondWorkflowTaskCompletedRequest::query_results`
         
        map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14;
        Specified by:
        getQueriesMap in interface PollWorkflowTaskQueueResponseOrBuilder
      • getQueriesOrDefault

        public WorkflowQuery getQueriesOrDefault​(java.lang.String key,
                                                 WorkflowQuery defaultValue)
         Queries that should be executed after applying the history in this task. Responses should be
         attached to `RespondWorkflowTaskCompletedRequest::query_results`
         
        map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14;
        Specified by:
        getQueriesOrDefault in interface PollWorkflowTaskQueueResponseOrBuilder
      • getQueriesOrThrow

        public WorkflowQuery getQueriesOrThrow​(java.lang.String key)
         Queries that should be executed after applying the history in this task. Responses should be
         attached to `RespondWorkflowTaskCompletedRequest::query_results`
         
        map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14;
        Specified by:
        getQueriesOrThrow in interface PollWorkflowTaskQueueResponseOrBuilder
      • removeQueries

        public PollWorkflowTaskQueueResponse.Builder removeQueries​(java.lang.String key)
         Queries that should be executed after applying the history in this task. Responses should be
         attached to `RespondWorkflowTaskCompletedRequest::query_results`
         
        map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14;
      • getMutableQueries

        @Deprecated
        public java.util.Map<java.lang.String,​WorkflowQuery> getMutableQueries()
        Deprecated.
        Use alternate mutation accessors instead.
      • putQueries

        public PollWorkflowTaskQueueResponse.Builder putQueries​(java.lang.String key,
                                                                WorkflowQuery value)
         Queries that should be executed after applying the history in this task. Responses should be
         attached to `RespondWorkflowTaskCompletedRequest::query_results`
         
        map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14;
      • putAllQueries

        public PollWorkflowTaskQueueResponse.Builder putAllQueries​(java.util.Map<java.lang.String,​WorkflowQuery> values)
         Queries that should be executed after applying the history in this task. Responses should be
         attached to `RespondWorkflowTaskCompletedRequest::query_results`
         
        map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14;
      • putQueriesBuilderIfAbsent

        public WorkflowQuery.Builder putQueriesBuilderIfAbsent​(java.lang.String key)
         Queries that should be executed after applying the history in this task. Responses should be
         attached to `RespondWorkflowTaskCompletedRequest::query_results`
         
        map<string, .temporal.api.query.v1.WorkflowQuery> queries = 14;
      • addAllMessages

        public PollWorkflowTaskQueueResponse.Builder addAllMessages​(java.lang.Iterable<? extends Message> values)
         Protocol messages piggybacking on a WFT as a transport
         
        repeated .temporal.api.protocol.v1.Message messages = 15;
      • clearMessages

        public PollWorkflowTaskQueueResponse.Builder clearMessages()
         Protocol messages piggybacking on a WFT as a transport
         
        repeated .temporal.api.protocol.v1.Message messages = 15;
      • removeMessages

        public PollWorkflowTaskQueueResponse.Builder removeMessages​(int index)
         Protocol messages piggybacking on a WFT as a transport
         
        repeated .temporal.api.protocol.v1.Message messages = 15;
      • getMessagesBuilder

        public Message.Builder getMessagesBuilder​(int index)
         Protocol messages piggybacking on a WFT as a transport
         
        repeated .temporal.api.protocol.v1.Message messages = 15;
      • addMessagesBuilder

        public Message.Builder addMessagesBuilder()
         Protocol messages piggybacking on a WFT as a transport
         
        repeated .temporal.api.protocol.v1.Message messages = 15;
      • addMessagesBuilder

        public Message.Builder addMessagesBuilder​(int index)
         Protocol messages piggybacking on a WFT as a transport
         
        repeated .temporal.api.protocol.v1.Message messages = 15;
      • getMessagesBuilderList

        public java.util.List<Message.Builder> getMessagesBuilderList()
         Protocol messages piggybacking on a WFT as a transport
         
        repeated .temporal.api.protocol.v1.Message messages = 15;
      • hasPollerScalingDecision

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

        public PollWorkflowTaskQueueResponse.Builder clearPollerScalingDecision()
         Server-advised information the SDK may use to adjust its poller count.
         
        .temporal.api.taskqueue.v1.PollerScalingDecision poller_scaling_decision = 16;
      • 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 = 16;