Table of Contents

Class ActivityExecutionListInfo

Namespace
Temporalio.Api.Activity.V1
Assembly
Temporalio.dll

Limited activity information returned in the list response. When adding fields here, ensure that it is also present in ActivityExecutionInfo (note that it may already be present in ActivityExecutionInfo but not at the top-level).

public sealed class ActivityExecutionListInfo : IMessage<ActivityExecutionListInfo>, IEquatable<ActivityExecutionListInfo>, IDeepCloneable<ActivityExecutionListInfo>, IBufferMessage, IMessage
Inheritance
ActivityExecutionListInfo
Implements
IBufferMessage
IMessage
Inherited Members

Constructors

ActivityExecutionListInfo()

public ActivityExecutionListInfo()

ActivityExecutionListInfo(ActivityExecutionListInfo)

public ActivityExecutionListInfo(ActivityExecutionListInfo other)

Parameters

other ActivityExecutionListInfo

Fields

ActivityIdFieldNumber

Field number for the "activity_id" field.

public const int ActivityIdFieldNumber = 1

Field Value

int

ActivityTypeFieldNumber

Field number for the "activity_type" field.

public const int ActivityTypeFieldNumber = 3

Field Value

int

CloseTimeFieldNumber

Field number for the "close_time" field.

public const int CloseTimeFieldNumber = 5

Field Value

int

ExecutionDurationFieldNumber

Field number for the "execution_duration" field.

public const int ExecutionDurationFieldNumber = 11

Field Value

int

RunIdFieldNumber

Field number for the "run_id" field.

public const int RunIdFieldNumber = 2

Field Value

int

ScheduleTimeFieldNumber

Field number for the "schedule_time" field.

public const int ScheduleTimeFieldNumber = 4

Field Value

int

SearchAttributesFieldNumber

Field number for the "search_attributes" field.

public const int SearchAttributesFieldNumber = 7

Field Value

int

StateSizeBytesFieldNumber

Field number for the "state_size_bytes" field.

public const int StateSizeBytesFieldNumber = 10

Field Value

int

StateTransitionCountFieldNumber

Field number for the "state_transition_count" field.

public const int StateTransitionCountFieldNumber = 9

Field Value

int

StatusFieldNumber

Field number for the "status" field.

public const int StatusFieldNumber = 6

Field Value

int

TaskQueueFieldNumber

Field number for the "task_queue" field.

public const int TaskQueueFieldNumber = 8

Field Value

int

Properties

ActivityId

A unique identifier of this activity within its namespace along with run ID (below).

public string ActivityId { get; set; }

Property Value

string

ActivityType

The type of the activity, a string that maps to a registered activity on a worker.

public ActivityType ActivityType { get; set; }

Property Value

ActivityType

CloseTime

If the activity is in a terminal status, this field represents the time the activity transitioned to that status.

public Timestamp CloseTime { get; set; }

Property Value

Timestamp

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

ExecutionDuration

The difference between close time and scheduled time. This field is only populated if the activity is closed.

public Duration ExecutionDuration { get; set; }

Property Value

Duration

Parser

public static MessageParser<ActivityExecutionListInfo> Parser { get; }

Property Value

MessageParser<ActivityExecutionListInfo>

RunId

The run ID of the standalone activity.

public string RunId { get; set; }

Property Value

string

ScheduleTime

Time the activity was originally scheduled via a StartActivityExecution request.

public Timestamp ScheduleTime { get; set; }

Property Value

Timestamp

SearchAttributes

Search attributes from the start request.

public SearchAttributes SearchAttributes { get; set; }

Property Value

SearchAttributes

StateSizeBytes

Updated once on scheduled and once on terminal status.

public long StateSizeBytes { get; set; }

Property Value

long

StateTransitionCount

Updated on terminal status.

public long StateTransitionCount { get; set; }

Property Value

long

Status

Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not available in the list response.

public ActivityExecutionStatus Status { get; set; }

Property Value

ActivityExecutionStatus

TaskQueue

The task queue this activity was scheduled on when it was originally started, updated on activity options update.

public string TaskQueue { get; set; }

Property Value

string

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Returns

int

The number of bytes required to write this message to a coded output stream.

Clone()

Creates a deep clone of this object.

public ActivityExecutionListInfo Clone()

Returns

ActivityExecutionListInfo

A deep clone of this object.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(ActivityExecutionListInfo)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ActivityExecutionListInfo other)

Parameters

other ActivityExecutionListInfo

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(ActivityExecutionListInfo)

Merges the given message into this one.

public void MergeFrom(ActivityExecutionListInfo other)

Parameters

other ActivityExecutionListInfo

Remarks

See the user guide for precise merge semantics.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.