Class PollWorkflowTaskQueueResponse
Inheritance
PollWorkflowTaskQueueResponse
Implements
Google.Protobuf.IBufferMessage
Assembly: Temporalio.dll
Syntax
public sealed class PollWorkflowTaskQueueResponse : Google.Protobuf.IMessage<PollWorkflowTaskQueueResponse>, Google.Protobuf.IBufferMessage
Constructors
PollWorkflowTaskQueueResponse()
Declaration
public PollWorkflowTaskQueueResponse()
PollWorkflowTaskQueueResponse(PollWorkflowTaskQueueResponse)
Declaration
public PollWorkflowTaskQueueResponse(PollWorkflowTaskQueueResponse other)
Parameters
Fields
AttemptFieldNumber
Field number for the "attempt" field.
Declaration
public const int AttemptFieldNumber = null
Field Value
BacklogCountHintFieldNumber
Field number for the "backlog_count_hint" field.
Declaration
public const int BacklogCountHintFieldNumber = null
Field Value
HistoryFieldNumber
Field number for the "history" field.
Declaration
public const int HistoryFieldNumber = null
Field Value
InteractionsFieldNumber
Field number for the "interactions" field.
Declaration
public const int InteractionsFieldNumber = null
Field Value
NextPageTokenFieldNumber
Field number for the "next_page_token" field.
Declaration
public const int NextPageTokenFieldNumber = null
Field Value
PreviousStartedEventIdFieldNumber
Field number for the "previous_started_event_id" field.
Declaration
public const int PreviousStartedEventIdFieldNumber = null
Field Value
QueriesFieldNumber
Field number for the "queries" field.
Declaration
public const int QueriesFieldNumber = null
Field Value
QueryFieldNumber
Field number for the "query" field.
Declaration
public const int QueryFieldNumber = null
Field Value
ScheduledTimeFieldNumber
Field number for the "scheduled_time" field.
Declaration
public const int ScheduledTimeFieldNumber = null
Field Value
StartedEventIdFieldNumber
Field number for the "started_event_id" field.
Declaration
public const int StartedEventIdFieldNumber = null
Field Value
StartedTimeFieldNumber
Field number for the "started_time" field.
Declaration
public const int StartedTimeFieldNumber = null
Field Value
TaskTokenFieldNumber
Field number for the "task_token" field.
Declaration
public const int TaskTokenFieldNumber = null
Field Value
WorkflowExecutionFieldNumber
Field number for the "workflow_execution" field.
Declaration
public const int WorkflowExecutionFieldNumber = null
Field Value
WorkflowExecutionTaskQueueFieldNumber
Field number for the "workflow_execution_task_queue" field.
Declaration
public const int WorkflowExecutionTaskQueueFieldNumber = null
Field Value
WorkflowTypeFieldNumber
Field number for the "workflow_type" field.
Declaration
public const int WorkflowTypeFieldNumber = null
Field Value
Properties
Attempt
Starting at 1, the number of attempts to complete this task by any worker.
Declaration
public int Attempt { get; set; }
Property Value
BacklogCountHint
A hint that there are more tasks already present in this task queue. Can be used to
prioritize draining a sticky queue before polling from a normal queue.
Declaration
public long BacklogCountHint { get; set; }
Property Value
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
History
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.
Declaration
public History History { get; set; }
Property Value
Interactions
Declaration
public Google.Protobuf.Collections.RepeatedField<Invocation> Interactions { get; }
Property Value
Type |
Description |
Google.Protobuf.Collections.RepeatedField<Invocation> |
|
NextPageToken
Will be set if there are more history events than were included in this response. Such events
should be fetched via GetWorkflowExecutionHistory
.
Declaration
public Google.Protobuf.ByteString NextPageToken { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<PollWorkflowTaskQueueResponse> Parser { get; }
Property Value
PreviousStartedEventId
The last workflow task started event which was processed by some worker for this execution.
Will be zero if no task has ever started.
Declaration
public long PreviousStartedEventId { get; set; }
Property Value
Queries
Queries that should be executed after applying the history in this task. Responses should be
attached to RespondWorkflowTaskCompletedRequest::query_results
Declaration
public Google.Protobuf.Collections.MapField<string, WorkflowQuery> Queries { get; }
Property Value
Query
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.
Declaration
public WorkflowQuery Query { get; set; }
Property Value
ScheduledTime
When this task was scheduled by the server
Declaration
public Google.Protobuf.WellKnownTypes.Timestamp ScheduledTime { get; set; }
Property Value
Type |
Description |
Google.Protobuf.WellKnownTypes.Timestamp |
|
StartedEventId
The id of the most recent workflow task started event, which will have been generated as a
result of this poll request being served.
Declaration
public long StartedEventId { get; set; }
Property Value
StartedTime
When the current workflow task started event was generated, meaning the current attempt.
Declaration
public Google.Protobuf.WellKnownTypes.Timestamp StartedTime { get; set; }
Property Value
Type |
Description |
Google.Protobuf.WellKnownTypes.Timestamp |
|
TaskToken
A unique identifier for this task
Declaration
public Google.Protobuf.ByteString TaskToken { get; set; }
Property Value
Type |
Description |
Google.Protobuf.ByteString |
|
WorkflowExecution
Declaration
public WorkflowExecution WorkflowExecution { get; set; }
Property Value
WorkflowExecutionTaskQueue
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.
Declaration
public TaskQueue WorkflowExecutionTaskQueue { get; set; }
Property Value
WorkflowType
Declaration
public WorkflowType WorkflowType { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Clone()
Declaration
public PollWorkflowTaskQueueResponse Clone()
Returns
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
Equals(PollWorkflowTaskQueueResponse)
Declaration
public bool Equals(PollWorkflowTaskQueueResponse other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Declaration
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedInputStream |
input |
|
MergeFrom(PollWorkflowTaskQueueResponse)
Declaration
public void MergeFrom(PollWorkflowTaskQueueResponse other)
Parameters
ToString()
Declaration
public override string ToString()
Returns
WriteTo(Google.Protobuf.CodedOutputStream)
Declaration
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedOutputStream |
output |
|
Implements
Google.Protobuf.IBufferMessage