# Cloud Life Sciences v2beta API - Class WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient (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.WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/2.0.0-beta06/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/1.0.0-beta02/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient)

    public class WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient : ClientBase<WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient>

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

Client for WorkflowsServiceV2Beta

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html)[WorkflowsServiceV2Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2Beta)[WorkflowsServiceV2BetaClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.LifeSciences.V2Beta/latest/Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient) \> WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient

## Inherited Members

[ClientBase\<WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient\>.WithHost(string)](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [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

## Constructors

### WorkflowsServiceV2BetaClient()

    protected WorkflowsServiceV2BetaClient()

Protected parameterless constructor to allow creation of test doubles.

### WorkflowsServiceV2BetaClient(CallInvoker)

    public WorkflowsServiceV2BetaClient(CallInvoker callInvoker)

Creates a new client for WorkflowsServiceV2Beta that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallInvoker.html` The callInvoker to use to make remote calls. |

### WorkflowsServiceV2BetaClient(ChannelBase)

    public WorkflowsServiceV2BetaClient(ChannelBase channel)

Creates a new client for WorkflowsServiceV2Beta

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ChannelBase.html` The channel to use to make remote calls. |

### WorkflowsServiceV2BetaClient(ClientBaseConfiguration)

    protected WorkflowsServiceV2BetaClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` The client configuration. |

## Methods

### CreateLocationsClient()

    public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.html) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.html` | A new [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.html) for the same target as this client. |

### CreateOperationsClient()

    public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of [Operations.OperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.html) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.html` | A new Operations client for the same target as this client. |

### NewInstance(ClientBaseConfiguration)

    protected override WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` |

| **Returns** ||
|---|---|
| **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** Grpc.Core.ClientBase\<Google.Cloud.LifeSciences.V2Beta.WorkflowsServiceV2Beta.WorkflowsServiceV2BetaClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### RunPipeline(RunPipelineRequest, CallOptions)

    public virtual Operation RunPipeline(RunPipelineRequest request, CallOptions options)

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 to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response received from the server. |

### RunPipeline(RunPipelineRequest, Metadata, DateTime?, CancellationToken)

    public virtual Operation RunPipeline(RunPipelineRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response received from the server. |

### RunPipelineAsync(RunPipelineRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> RunPipelineAsync(RunPipelineRequest request, CallOptions options)

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 to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The call object. |

### RunPipelineAsync(RunPipelineRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Operation> RunPipelineAsync(RunPipelineRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The call object. |