# Google.LongRunning - Class OperationsClientImpl (3.5.0)

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

- [3.5.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClientImpl)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/3.4.0/Google.LongRunning.OperationsClientImpl)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/3.3.0/Google.LongRunning.OperationsClientImpl)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/3.2.0/Google.LongRunning.OperationsClientImpl)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/3.1.0/Google.LongRunning.OperationsClientImpl)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/3.0.0/Google.LongRunning.OperationsClientImpl)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/2.3.0/Google.LongRunning.OperationsClientImpl)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/2.2.0/Google.LongRunning.OperationsClientImpl)

    public sealed class OperationsClientImpl : OperationsClient

Reference documentation and code samples for the Google.LongRunning class OperationsClientImpl.

Operations client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [OperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient) \> OperationsClientImpl

## Inherited Members

[OperationsClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_DefaultEndpoint) [OperationsClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_DefaultScopes) [OperationsClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_ServiceMetadata) [OperationsClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_CreateAsync_System_Threading_CancellationToken_) [OperationsClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_Create) [OperationsClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_ShutdownDefaultChannelsAsync) [OperationsClient.ListOperations(string, string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_ListOperations_System_String_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [OperationsClient.ListOperationsAsync(string, string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_ListOperationsAsync_System_String_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [OperationsClient.GetOperationAsync(GetOperationRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_GetOperationAsync_Google_LongRunning_GetOperationRequest_System_Threading_CancellationToken_) [OperationsClient.GetOperation(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_GetOperation_System_String_Google_Api_Gax_Grpc_CallSettings_) [OperationsClient.GetOperationAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_GetOperationAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [OperationsClient.GetOperationAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_GetOperationAsync_System_String_System_Threading_CancellationToken_) [OperationsClient.DeleteOperationAsync(DeleteOperationRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_DeleteOperationAsync_Google_LongRunning_DeleteOperationRequest_System_Threading_CancellationToken_) [OperationsClient.DeleteOperation(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_DeleteOperation_System_String_Google_Api_Gax_Grpc_CallSettings_) [OperationsClient.DeleteOperationAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_DeleteOperationAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [OperationsClient.DeleteOperationAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_DeleteOperationAsync_System_String_System_Threading_CancellationToken_) [OperationsClient.CancelOperationAsync(CancelOperationRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_CancelOperationAsync_Google_LongRunning_CancelOperationRequest_System_Threading_CancellationToken_) [OperationsClient.CancelOperation(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_CancelOperation_System_String_Google_Api_Gax_Grpc_CallSettings_) [OperationsClient.CancelOperationAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_CancelOperationAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [OperationsClient.CancelOperationAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_CancelOperationAsync_System_String_System_Threading_CancellationToken_) [OperationsClient.WaitOperationAsync(WaitOperationRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_WaitOperationAsync_Google_LongRunning_WaitOperationRequest_System_Threading_CancellationToken_) [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.LongRunning](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning)

## Assembly

Google.LongRunning.dll

## Remarks

Manages long-running operations with an API service.

When an API method normally takes long time to complete, it can be designed
to return \[Operation\]\[google.longrunning.Operation\] to the client, and the
client can use this interface to receive the real response asynchronously by
polling the operation resource, or pass the operation resource to another API
(such as Pub/Sub API) to receive the response. Any API service that returns
long-running operations should implement the `Operations` interface so
developers can have a consistent client experience.

## Constructors

### OperationsClientImpl(OperationsClient, OperationsSettings, ILogger)

    public OperationsClientImpl(Operations.OperationsClient grpcClient, OperationsSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operationshttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsSettings` The base [OperationsSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsSettings) 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

### Clock

    public override IClock Clock { get; }

The clock used for timeouts, retries and polling.

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

**Overrides** [OperationsClient.Clock](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_Clock)

### DefaultPollSettings

    public override PollSettings DefaultPollSettings { get; }

The poll settings used by default for repeated polling operations.
May be null if no defaults have been set.

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

**Overrides** [OperationsClient.DefaultPollSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_DefaultPollSettings)

### GrpcClient

    public override Operations.OperationsClient GrpcClient { get; }

The underlying gRPC Operations client

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

**Overrides** [OperationsClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_GrpcClient)

### Scheduler

    public override IScheduler Scheduler { get; }

The scheduler used for timeouts, retries and polling.

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

**Overrides** [OperationsClient.Scheduler](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_Scheduler)

## Methods

### CancelOperation(CancelOperationRequest, CallSettings)

    public override void CancelOperation(CancelOperationRequest request, CallSettings callSettings = null)

Starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not
guaranteed. If the server doesn't support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`. Clients can use
\[Operations.GetOperation\]\[google.longrunning.Operations.GetOperation\] or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an \[Operation.error\]\[google.longrunning.Operation.error\] value with a
\[google.rpc.Status.code\]\[google.rpc.Status.code\] of `1`, corresponding to
`Code.CANCELLED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.CancelOperationRequest` 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. |

**Overrides** [OperationsClient.CancelOperation(CancelOperationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_CancelOperation_Google_LongRunning_CancelOperationRequest_Google_Api_Gax_Grpc_CallSettings_)

### CancelOperationAsync(CancelOperationRequest, CallSettings)

    public override Task CancelOperationAsync(CancelOperationRequest request, CallSettings callSettings = null)

Starts asynchronous cancellation on a long-running operation. The server
makes a best effort to cancel the operation, but success is not
guaranteed. If the server doesn't support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`. Clients can use
\[Operations.GetOperation\]\[google.longrunning.Operations.GetOperation\] or
other methods to check whether the cancellation succeeded or whether the
operation completed despite cancellation. On successful cancellation,
the operation is not deleted; instead, it becomes an operation with
an \[Operation.error\]\[google.longrunning.Operation.error\] value with a
\[google.rpc.Status.code\]\[google.rpc.Status.code\] of `1`, corresponding to
`Code.CANCELLED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.CancelOperationRequest` 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` | A Task containing the RPC response. |

**Overrides** [OperationsClient.CancelOperationAsync(CancelOperationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_CancelOperationAsync_Google_LongRunning_CancelOperationRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteOperation(DeleteOperationRequest, CallSettings)

    public override void DeleteOperation(DeleteOperationRequest request, CallSettings callSettings = null)

Deletes a long-running operation. This method indicates that the client is
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.DeleteOperationRequest` 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. |

**Overrides** [OperationsClient.DeleteOperation(DeleteOperationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_DeleteOperation_Google_LongRunning_DeleteOperationRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteOperationAsync(DeleteOperationRequest, CallSettings)

    public override Task DeleteOperationAsync(DeleteOperationRequest request, CallSettings callSettings = null)

Deletes a long-running operation. This method indicates that the client is
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.DeleteOperationRequest` 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` | A Task containing the RPC response. |

**Overrides** [OperationsClient.DeleteOperationAsync(DeleteOperationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_DeleteOperationAsync_Google_LongRunning_DeleteOperationRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetEffectiveCallSettingsForGetOperation(CallSettings)

    protected override CallSettings GetEffectiveCallSettingsForGetOperation(CallSettings callSettings)

Return the [CallSettings](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html) that would be used by a call to
[GetOperation(GetOperationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_GetOperation_Google_LongRunning_GetOperationRequest_Google_Api_Gax_Grpc_CallSettings_), using the base
settings of this client and the specified per-call overrides.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` The per-call override, if any. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` | The effective call settings for a GetOperation RPC. |

**Overrides** [OperationsClient.GetEffectiveCallSettingsForGetOperation(CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_GetEffectiveCallSettingsForGetOperation_Google_Api_Gax_Grpc_CallSettings_) **Remarks** This method is used when polling, to determine the appropriate timeout and cancellation
token to use for each call.

### GetOperation(GetOperationRequest, CallSettings)

    public override Operation GetOperation(GetOperationRequest request, CallSettings callSettings = null)

Gets the latest state of a long-running operation. Clients can use this
method to poll the operation result at intervals as recommended by the API
service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.GetOperationRequest` 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` | The RPC response. |

**Overrides** [OperationsClient.GetOperation(GetOperationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_GetOperation_Google_LongRunning_GetOperationRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetOperationAsync(GetOperationRequest, CallSettings)

    public override Task<Operation> GetOperationAsync(GetOperationRequest request, CallSettings callSettings = null)

Gets the latest state of a long-running operation. Clients can use this
method to poll the operation result at intervals as recommended by the API
service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.GetOperationRequest` 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` | A Task containing the RPC response. |

**Overrides** [OperationsClient.GetOperationAsync(GetOperationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_GetOperationAsync_Google_LongRunning_GetOperationRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListOperations(ListOperationsRequest, CallSettings)

    public override PagedEnumerable<ListOperationsResponse, Operation> ListOperations(ListOperationsRequest request, CallSettings callSettings = null)

Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns `UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.ListOperationsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.ListOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation` | A pageable sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation) resources. |

**Overrides** [OperationsClient.ListOperations(ListOperationsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_ListOperations_Google_LongRunning_ListOperationsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListOperationsAsync(ListOperationsRequest, CallSettings)

    public override PagedAsyncEnumerable<ListOperationsResponse, Operation> ListOperationsAsync(ListOperationsRequest request, CallSettings callSettings = null)

Lists operations that match the specified filter in the request. If the
server doesn't support this method, it returns `UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.ListOperationsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.ListOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation` | A pageable asynchronous sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation) resources. |

**Overrides** [OperationsClient.ListOperationsAsync(ListOperationsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_ListOperationsAsync_Google_LongRunning_ListOperationsRequest_Google_Api_Gax_Grpc_CallSettings_)

### WaitOperation(WaitOperationRequest, CallSettings)

    public override Operation WaitOperation(WaitOperationRequest request, CallSettings callSettings = null)

Waits until the specified long-running operation is done or reaches at most
a specified timeout, returning the latest state. If the operation is
already done, the latest state is immediately returned. If the timeout
specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
timeout is used. If the server does not support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`.
Note that this method is on a best-effort basis. It may return the latest
state before the specified timeout (including immediately), meaning even an
immediate response is no guarantee that the operation is done.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.WaitOperationRequest` 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` | The RPC response. |

**Overrides** [OperationsClient.WaitOperation(WaitOperationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_WaitOperation_Google_LongRunning_WaitOperationRequest_Google_Api_Gax_Grpc_CallSettings_)

### WaitOperationAsync(WaitOperationRequest, CallSettings)

    public override Task<Operation> WaitOperationAsync(WaitOperationRequest request, CallSettings callSettings = null)

Waits until the specified long-running operation is done or reaches at most
a specified timeout, returning the latest state. If the operation is
already done, the latest state is immediately returned. If the timeout
specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
timeout is used. If the server does not support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`.
Note that this method is on a best-effort basis. It may return the latest
state before the specified timeout (including immediately), meaning even an
immediate response is no guarantee that the operation is done.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.WaitOperationRequest` 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` | A Task containing the RPC response. |

**Overrides** [OperationsClient.WaitOperationAsync(WaitOperationRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient#Google_LongRunning_OperationsClient_WaitOperationAsync_Google_LongRunning_WaitOperationRequest_Google_Api_Gax_Grpc_CallSettings_)