# Workflow Executions v1beta API - Class Execution (2.0.0-beta06)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Execution)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/2.0.0-beta05/Google.Cloud.Workflows.Executions.V1Beta.Execution)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/1.0.0-beta03/Google.Cloud.Workflows.Executions.V1Beta.Execution)

    public sealed class Execution : IMessage<Execution>, IEquatable<Execution>, IDeepCloneable<Execution>, IBufferMessage, IMessage

Reference documentation and code samples for the Workflow Executions v1beta API class Execution.

A running instance of a \[Workflow\]\[google.cloud.workflows.v1beta.Workflow\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Execution

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Execution](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Execution), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Execution](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Execution), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Execution](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Execution), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Workflows.Executions.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta)

## Assembly

Google.Cloud.Workflows.Executions.V1Beta.dll

## Constructors

### Execution()

    public Execution()

### Execution(Execution)

    public Execution(Execution other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Execution` |

## Properties

### Argument

    public string Argument { get; set; }

Input parameters of the execution represented as a JSON string.
The size limit is 32KB.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### EndTime

    public Timestamp EndTime { get; set; }

Output only. Marks the end of execution, successful or not.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Error

    public Execution.Types.Error Error { get; set; }

Output only. The error which caused the execution to finish prematurely.
The value is only present if the execution's state is `FAILED`
or `CANCELLED`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Executionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Execution.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Execution.Types.Error` |   |

### ExecutionName

    public ExecutionName ExecutionName { get; set; }

[ExecutionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.ExecutionName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Execution#Google_Cloud_Workflows_Executions_V1Beta_Execution_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.ExecutionName` |   |

### Name

    public string Name { get; set; }

Output only. The resource name of the execution.
Format:
projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Result

    public string Result { get; set; }

Output only. Output of the execution represented as a JSON string. The
value can only be present if the execution's state is `SUCCEEDED`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### StartTime

    public Timestamp StartTime { get; set; }

Output only. Marks the beginning of execution.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### State

    public Execution.Types.State State { get; set; }

Output only. Current state of the execution.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Executionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Execution.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.Executions.V1Beta/latest/Google.Cloud.Workflows.Executions.V1Beta.Execution.Types.State` |   |

### WorkflowRevisionId

    public string WorkflowRevisionId { get; set; }

Output only. Revision of the workflow this execution is using.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |