# Cloud Life Sciences v2beta API - Class WorkflowsServiceV2BetaClientImpl (2.0.0-beta07)

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

- [2.0.0-beta07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClientImpl)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/2.0.0-beta06/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClientImpl)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/1.0.0-beta02/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClientImpl)

    public sealed class WorkflowsServiceV2BetaClientImpl : WorkflowsServiceV2BetaClient

Reference documentation and code samples for the Cloud Life Sciences v2beta API class WorkflowsServiceV2BetaClientImpl.

WorkflowsServiceV2Beta client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [WorkflowsServiceV2BetaClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient) \> WorkflowsServiceV2BetaClientImpl

## Inherited Members

[WorkflowsServiceV2BetaClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_DefaultEndpoint) [WorkflowsServiceV2BetaClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_DefaultScopes) [WorkflowsServiceV2BetaClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_ServiceMetadata) [WorkflowsServiceV2BetaClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_CreateAsync_System_Threading_CancellationToken_) [WorkflowsServiceV2BetaClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_Create) [WorkflowsServiceV2BetaClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_ShutdownDefaultChannelsAsync) [WorkflowsServiceV2BetaClient.RunPipelineAsync(RunPipelineRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_RunPipelineAsync_Google_Cloud_LifeSciences_V2Beta_RunPipelineRequest_System_Threading_CancellationToken_) [WorkflowsServiceV2BetaClient.PollOnceRunPipeline(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_PollOnceRunPipeline_System_String_Google_Api_Gax_Grpc_CallSettings_) [WorkflowsServiceV2BetaClient.PollOnceRunPipelineAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_PollOnceRunPipelineAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [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.LifeSciences.V2Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta)

## Assembly

Google.Cloud.LifeSciences.V2Beta.dll

## Remarks

A service for running workflows, such as pipelines consisting of Docker
containers.

## Constructors

### WorkflowsServiceV2BetaClientImpl(WorkflowsServiceV2BetaClient, WorkflowsServiceV2BetaSettings, ILogger)

    public WorkflowsServiceV2BetaClientImpl(WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient grpcClient, WorkflowsServiceV2BetaSettings settings, ILogger logger)

Constructs a client wrapper for the WorkflowsServiceV2Beta service, with the specified gRPC client and
settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2Betahttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaSettings` The base [WorkflowsServiceV2BetaSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient GrpcClient { get; }

The underlying gRPC WorkflowsServiceV2Beta client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2Betahttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient` |   |

**Overrides** [WorkflowsServiceV2BetaClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_GrpcClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [WorkflowsServiceV2BetaClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_LocationsClient)

### RunPipelineOperationsClient

    public override OperationsClient RunPipelineOperationsClient { get; }

The long-running operations client for `RunPipeline`.

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

**Overrides** [WorkflowsServiceV2BetaClient.RunPipelineOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_RunPipelineOperationsClient)

## Methods

### RunPipeline(RunPipelineRequest, CallSettings)

    public override Operation<RunPipelineResponse, Metadata> RunPipeline(RunPipelineRequest request, CallSettings callSettings = null)

Runs a pipeline. The returned Operation's \[metadata\]
\[google.longrunning.Operation.metadata\] field will contain a
\[google.cloud.lifesciences.v2beta.Metadata\]\[google.cloud.lifesciences.v2beta.Metadata\]
object describing the status of the pipeline execution. The
\[response\]\[google.longrunning.Operation.response\] field will contain a
\[google.cloud.lifesciences.v2beta.RunPipelineResponse\]\[google.cloud.lifesciences.v2beta.RunPipelineResponse\]
object if the pipeline completes successfully.

**Note:** Before you can use this method, the *Life Sciences Service Agent*
must have access to your project. This is done automatically when the
Cloud Life Sciences API is first enabled, but if you delete this permission
you must disable and re-enable the API to grant the Life Sciences
Service Agent the required permissions.
Authorization requires the following [Google
IAM](https://cloud.google.com/iam/) permission:

- `lifesciences.workflows.run`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.RunPipelineRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.RunPipelineResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Metadata` | The RPC response. |

**Overrides** [WorkflowsServiceV2BetaClient.RunPipeline(RunPipelineRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_RunPipeline_Google_Cloud_LifeSciences_V2Beta_RunPipelineRequest_Google_Api_Gax_Grpc_CallSettings_)

### RunPipelineAsync(RunPipelineRequest, CallSettings)

    public override Task<Operation<RunPipelineResponse, Metadata>> RunPipelineAsync(RunPipelineRequest request, CallSettings callSettings = null)

Runs a pipeline. The returned Operation's \[metadata\]
\[google.longrunning.Operation.metadata\] field will contain a
\[google.cloud.lifesciences.v2beta.Metadata\]\[google.cloud.lifesciences.v2beta.Metadata\]
object describing the status of the pipeline execution. The
\[response\]\[google.longrunning.Operation.response\] field will contain a
\[google.cloud.lifesciences.v2beta.RunPipelineResponse\]\[google.cloud.lifesciences.v2beta.RunPipelineResponse\]
object if the pipeline completes successfully.

**Note:** Before you can use this method, the *Life Sciences Service Agent*
must have access to your project. This is done automatically when the
Cloud Life Sciences API is first enabled, but if you delete this permission
you must disable and re-enable the API to grant the Life Sciences
Service Agent the required permissions.
Authorization requires the following [Google
IAM](https://cloud.google.com/iam/) permission:

- `lifesciences.workflows.run`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.RunPipelineRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.RunPipelineResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.Metadata` | A Task containing the RPC response. |

**Overrides** [WorkflowsServiceV2BetaClient.RunPipelineAsync(RunPipelineRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2BetaClient#Google_Cloud_LifeSciences_V2Beta_WorkflowsServiceV2BetaClient_RunPipelineAsync_Google_Cloud_LifeSciences_V2Beta_RunPipelineRequest_Google_Api_Gax_Grpc_CallSettings_)