# Rapid Migration Assessment v1 API - Class RapidMigrationAssessmentClient (1.3.0)

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

- [1.3.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/1.2.0/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/1.1.0/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/1.0.0/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient)

    public abstract class RapidMigrationAssessmentClient

Reference documentation and code samples for the Rapid Migration Assessment v1 API class RapidMigrationAssessmentClient.

RapidMigrationAssessment client wrapper, for convenient use.

## Inheritance

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

## 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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[RapidMigrationAssessmentClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClientImpl)

## Namespace

[Google.Cloud.RapidMigrationAssessment.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1)

## Assembly

Google.Cloud.RapidMigrationAssessment.V1.dll

## Remarks

Service describing handlers for resources.

## Properties

### CreateAnnotationOperationsClient

    public virtual OperationsClient CreateAnnotationOperationsClient { get; }

The long-running operations client for `CreateAnnotation`.

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

### CreateCollectorOperationsClient

    public virtual OperationsClient CreateCollectorOperationsClient { get; }

The long-running operations client for `CreateCollector`.

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

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the RapidMigrationAssessment service, which is a host of
"rapidmigrationassessment.googleapis.com" and a port of 443.

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

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default RapidMigrationAssessment scopes.

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

**Remarks** The default RapidMigrationAssessment scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

<br />

### DeleteCollectorOperationsClient

    public virtual OperationsClient DeleteCollectorOperationsClient { get; }

The long-running operations client for `DeleteCollector`.

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

### GrpcClient

    public virtual RapidMigrationAssessment.RapidMigrationAssessmentClient GrpcClient { get; }

The underlying gRPC RapidMigrationAssessment client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessment.RapidMigrationAssessmentClient` |   |

### LocationsClient

    public virtual 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` |   |

### PauseCollectorOperationsClient

    public virtual OperationsClient PauseCollectorOperationsClient { get; }

The long-running operations client for `PauseCollector`.

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

### RegisterCollectorOperationsClient

    public virtual OperationsClient RegisterCollectorOperationsClient { get; }

The long-running operations client for `RegisterCollector`.

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

### ResumeCollectorOperationsClient

    public virtual OperationsClient ResumeCollectorOperationsClient { get; }

The long-running operations client for `ResumeCollector`.

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

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

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

### UpdateCollectorOperationsClient

    public virtual OperationsClient UpdateCollectorOperationsClient { get; }

The long-running operations client for `UpdateCollector`.

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

## Methods

### Create()

    public static RapidMigrationAssessmentClient Create()

Synchronously creates a [RapidMigrationAssessmentClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient) using the default credentials, endpoint
and settings. To specify custom credentials or other settings, use
[RapidMigrationAssessmentClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient` | The created [RapidMigrationAssessmentClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient). |

### CreateAnnotation(LocationName, Annotation, CallSettings)

    public virtual Operation<Annotation, OperationMetadata> CreateAnnotation(LocationName parent, Annotation annotation, CallSettings callSettings = null)

Creates an Annotation

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Name of the parent (project+location). |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` Required. The resource being created. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Annotation annotation = new Annotation();
    // Make the request
    Operation<Annotation, OperationMetadata> response = rapidMigrationAssessmentClient.CreateAnnotation(parent, annotation);

    // Poll until the returned long-running operation is complete
    Operation<Annotation, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Annotation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Annotation, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceCreateAnnotation(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Annotation retrievedResult = retrievedResponse.Result;
    }

### CreateAnnotation(CreateAnnotationRequest, CallSettings)

    public virtual Operation<Annotation, OperationMetadata> CreateAnnotation(CreateAnnotationRequest request, CallSettings callSettings = null)

Creates an Annotation

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CreateAnnotationRequest` 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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    CreateAnnotationRequest request = new CreateAnnotationRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Annotation = new Annotation(),
        RequestId = "",
    };
    // Make the request
    Operation<Annotation, OperationMetadata> response = rapidMigrationAssessmentClient.CreateAnnotation(request);

    // Poll until the returned long-running operation is complete
    Operation<Annotation, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Annotation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Annotation, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceCreateAnnotation(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Annotation retrievedResult = retrievedResponse.Result;
    }

### CreateAnnotation(string, Annotation, CallSettings)

    public virtual Operation<Annotation, OperationMetadata> CreateAnnotation(string parent, Annotation annotation, CallSettings callSettings = null)

Creates an Annotation

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the parent (project+location). |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` Required. The resource being created. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Annotation annotation = new Annotation();
    // Make the request
    Operation<Annotation, OperationMetadata> response = rapidMigrationAssessmentClient.CreateAnnotation(parent, annotation);

    // Poll until the returned long-running operation is complete
    Operation<Annotation, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Annotation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Annotation, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceCreateAnnotation(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Annotation retrievedResult = retrievedResponse.Result;
    }

### CreateAnnotationAsync(LocationName, Annotation, CallSettings)

    public virtual Task<Operation<Annotation, OperationMetadata>> CreateAnnotationAsync(LocationName parent, Annotation annotation, CallSettings callSettings = null)

Creates an Annotation

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Name of the parent (project+location). |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` Required. The resource being created. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Annotation annotation = new Annotation();
    // Make the request
    Operation<Annotation, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateAnnotationAsync(parent, annotation);

    // Poll until the returned long-running operation is complete
    Operation<Annotation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Annotation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Annotation, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateAnnotationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Annotation retrievedResult = retrievedResponse.Result;
    }

### CreateAnnotationAsync(LocationName, Annotation, CancellationToken)

    public virtual Task<Operation<Annotation, OperationMetadata>> CreateAnnotationAsync(LocationName parent, Annotation annotation, CancellationToken cancellationToken)

Creates an Annotation

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Name of the parent (project+location). |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` Required. The resource being created. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Annotation annotation = new Annotation();
    // Make the request
    Operation<Annotation, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateAnnotationAsync(parent, annotation);

    // Poll until the returned long-running operation is complete
    Operation<Annotation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Annotation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Annotation, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateAnnotationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Annotation retrievedResult = retrievedResponse.Result;
    }

### CreateAnnotationAsync(CreateAnnotationRequest, CallSettings)

    public virtual Task<Operation<Annotation, OperationMetadata>> CreateAnnotationAsync(CreateAnnotationRequest request, CallSettings callSettings = null)

Creates an Annotation

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CreateAnnotationRequest request = new CreateAnnotationRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Annotation = new Annotation(),
        RequestId = "",
    };
    // Make the request
    Operation<Annotation, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateAnnotationAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Annotation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Annotation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Annotation, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateAnnotationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Annotation retrievedResult = retrievedResponse.Result;
    }

### CreateAnnotationAsync(CreateAnnotationRequest, CancellationToken)

    public virtual Task<Operation<Annotation, OperationMetadata>> CreateAnnotationAsync(CreateAnnotationRequest request, CancellationToken cancellationToken)

Creates an Annotation

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CreateAnnotationRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CreateAnnotationRequest request = new CreateAnnotationRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Annotation = new Annotation(),
        RequestId = "",
    };
    // Make the request
    Operation<Annotation, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateAnnotationAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Annotation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Annotation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Annotation, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateAnnotationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Annotation retrievedResult = retrievedResponse.Result;
    }

### CreateAnnotationAsync(string, Annotation, CallSettings)

    public virtual Task<Operation<Annotation, OperationMetadata>> CreateAnnotationAsync(string parent, Annotation annotation, CallSettings callSettings = null)

Creates an Annotation

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the parent (project+location). |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` Required. The resource being created. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Annotation annotation = new Annotation();
    // Make the request
    Operation<Annotation, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateAnnotationAsync(parent, annotation);

    // Poll until the returned long-running operation is complete
    Operation<Annotation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Annotation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Annotation, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateAnnotationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Annotation retrievedResult = retrievedResponse.Result;
    }

### CreateAnnotationAsync(string, Annotation, CancellationToken)

    public virtual Task<Operation<Annotation, OperationMetadata>> CreateAnnotationAsync(string parent, Annotation annotation, CancellationToken cancellationToken)

Creates an Annotation

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the parent (project+location). |
| `annotation` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` Required. The resource being created. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Annotation annotation = new Annotation();
    // Make the request
    Operation<Annotation, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateAnnotationAsync(parent, annotation);

    // Poll until the returned long-running operation is complete
    Operation<Annotation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Annotation result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Annotation, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateAnnotationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Annotation retrievedResult = retrievedResponse.Result;
    }

### CreateAsync(CancellationToken)

    public static Task<RapidMigrationAssessmentClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [RapidMigrationAssessmentClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[RapidMigrationAssessmentClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient` | The task representing the created [RapidMigrationAssessmentClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient). |

### CreateCollector(LocationName, Collector, string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> CreateCollector(LocationName parent, Collector collector, string collectorId, CallSettings callSettings = null)

Create a Collector to manage the on-prem appliance which collects
information about Customer assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Name of the parent (project+location). |
| `collector` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` Required. The resource being created. |
| `collectorId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Id of the requesting object. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Collector collector = new Collector();
    string collectorId = "";
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.CreateCollector(parent, collector, collectorId);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceCreateCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### CreateCollector(CreateCollectorRequest, CallSettings)

    public virtual Operation<Collector, OperationMetadata> CreateCollector(CreateCollectorRequest request, CallSettings callSettings = null)

Create a Collector to manage the on-prem appliance which collects
information about Customer assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CreateCollectorRequest` 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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    CreateCollectorRequest request = new CreateCollectorRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        CollectorId = "",
        Collector = new Collector(),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.CreateCollector(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceCreateCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### CreateCollector(string, Collector, string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> CreateCollector(string parent, Collector collector, string collectorId, CallSettings callSettings = null)

Create a Collector to manage the on-prem appliance which collects
information about Customer assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the parent (project+location). |
| `collector` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` Required. The resource being created. |
| `collectorId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Id of the requesting object. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Collector collector = new Collector();
    string collectorId = "";
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.CreateCollector(parent, collector, collectorId);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceCreateCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### CreateCollectorAsync(LocationName, Collector, string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> CreateCollectorAsync(LocationName parent, Collector collector, string collectorId, CallSettings callSettings = null)

Create a Collector to manage the on-prem appliance which collects
information about Customer assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Name of the parent (project+location). |
| `collector` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` Required. The resource being created. |
| `collectorId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Id of the requesting object. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Collector collector = new Collector();
    string collectorId = "";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateCollectorAsync(parent, collector, collectorId);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### CreateCollectorAsync(LocationName, Collector, string, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> CreateCollectorAsync(LocationName parent, Collector collector, string collectorId, CancellationToken cancellationToken)

Create a Collector to manage the on-prem appliance which collects
information about Customer assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Name of the parent (project+location). |
| `collector` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` Required. The resource being created. |
| `collectorId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Id of the requesting object. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    Collector collector = new Collector();
    string collectorId = "";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateCollectorAsync(parent, collector, collectorId);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### CreateCollectorAsync(CreateCollectorRequest, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> CreateCollectorAsync(CreateCollectorRequest request, CallSettings callSettings = null)

Create a Collector to manage the on-prem appliance which collects
information about Customer assets.

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CreateCollectorRequest request = new CreateCollectorRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        CollectorId = "",
        Collector = new Collector(),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### CreateCollectorAsync(CreateCollectorRequest, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> CreateCollectorAsync(CreateCollectorRequest request, CancellationToken cancellationToken)

Create a Collector to manage the on-prem appliance which collects
information about Customer assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CreateCollectorRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CreateCollectorRequest request = new CreateCollectorRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        CollectorId = "",
        Collector = new Collector(),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### CreateCollectorAsync(string, Collector, string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> CreateCollectorAsync(string parent, Collector collector, string collectorId, CallSettings callSettings = null)

Create a Collector to manage the on-prem appliance which collects
information about Customer assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the parent (project+location). |
| `collector` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` Required. The resource being created. |
| `collectorId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Id of the requesting object. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Collector collector = new Collector();
    string collectorId = "";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateCollectorAsync(parent, collector, collectorId);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### CreateCollectorAsync(string, Collector, string, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> CreateCollectorAsync(string parent, Collector collector, string collectorId, CancellationToken cancellationToken)

Create a Collector to manage the on-prem appliance which collects
information about Customer assets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the parent (project+location). |
| `collector` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` Required. The resource being created. |
| `collectorId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Id of the requesting object. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    Collector collector = new Collector();
    string collectorId = "";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.CreateCollectorAsync(parent, collector, collectorId);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceCreateCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### DeleteCollector(CollectorName, CallSettings)

    public virtual Operation<Collector, OperationMetadata> DeleteCollector(CollectorName name, CallSettings callSettings = null)

Deletes a single Collector - changes state of collector to "Deleting".
Background jobs does final deletion through producer API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.DeleteCollector(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceDeleteCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### DeleteCollector(DeleteCollectorRequest, CallSettings)

    public virtual Operation<Collector, OperationMetadata> DeleteCollector(DeleteCollectorRequest request, CallSettings callSettings = null)

Deletes a single Collector - changes state of collector to "Deleting".
Background jobs does final deletion through producer API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.DeleteCollectorRequest` 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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    DeleteCollectorRequest request = new DeleteCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.DeleteCollector(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceDeleteCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### DeleteCollector(string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> DeleteCollector(string name, CallSettings callSettings = null)

Deletes a single Collector - changes state of collector to "Deleting".
Background jobs does final deletion through producer API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.DeleteCollector(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceDeleteCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### DeleteCollectorAsync(CollectorName, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> DeleteCollectorAsync(CollectorName name, CallSettings callSettings = null)

Deletes a single Collector - changes state of collector to "Deleting".
Background jobs does final deletion through producer API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.DeleteCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceDeleteCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### DeleteCollectorAsync(CollectorName, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> DeleteCollectorAsync(CollectorName name, CancellationToken cancellationToken)

Deletes a single Collector - changes state of collector to "Deleting".
Background jobs does final deletion through producer API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.DeleteCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceDeleteCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### DeleteCollectorAsync(DeleteCollectorRequest, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> DeleteCollectorAsync(DeleteCollectorRequest request, CallSettings callSettings = null)

Deletes a single Collector - changes state of collector to "Deleting".
Background jobs does final deletion through producer API.

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    DeleteCollectorRequest request = new DeleteCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.DeleteCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceDeleteCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### DeleteCollectorAsync(DeleteCollectorRequest, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> DeleteCollectorAsync(DeleteCollectorRequest request, CancellationToken cancellationToken)

Deletes a single Collector - changes state of collector to "Deleting".
Background jobs does final deletion through producer API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.DeleteCollectorRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    DeleteCollectorRequest request = new DeleteCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.DeleteCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceDeleteCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### DeleteCollectorAsync(string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> DeleteCollectorAsync(string name, CallSettings callSettings = null)

Deletes a single Collector - changes state of collector to "Deleting".
Background jobs does final deletion through producer API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.DeleteCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceDeleteCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### DeleteCollectorAsync(string, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> DeleteCollectorAsync(string name, CancellationToken cancellationToken)

Deletes a single Collector - changes state of collector to "Deleting".
Background jobs does final deletion through producer API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.DeleteCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceDeleteCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### GetAnnotation(AnnotationName, CallSettings)

    public virtual Annotation GetAnnotation(AnnotationName name, CallSettings callSettings = null)

Gets details of a single Annotation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.AnnotationName` Required. Name of the resource. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    AnnotationName name = AnnotationName.FromProjectLocationAnnotation("[PROJECT]", "[LOCATION]", "[ANNOTATION]");
    // Make the request
    Annotation response = rapidMigrationAssessmentClient.GetAnnotation(name);

### GetAnnotation(GetAnnotationRequest, CallSettings)

    public virtual Annotation GetAnnotation(GetAnnotationRequest request, CallSettings callSettings = null)

Gets details of a single Annotation.

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    GetAnnotationRequest request = new GetAnnotationRequest
    {
        AnnotationName = AnnotationName.FromProjectLocationAnnotation("[PROJECT]", "[LOCATION]", "[ANNOTATION]"),
    };
    // Make the request
    Annotation response = rapidMigrationAssessmentClient.GetAnnotation(request);

### GetAnnotation(string, CallSettings)

    public virtual Annotation GetAnnotation(string name, CallSettings callSettings = null)

Gets details of a single Annotation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/annotations/[ANNOTATION]";
    // Make the request
    Annotation response = rapidMigrationAssessmentClient.GetAnnotation(name);

### GetAnnotationAsync(AnnotationName, CallSettings)

    public virtual Task<Annotation> GetAnnotationAsync(AnnotationName name, CallSettings callSettings = null)

Gets details of a single Annotation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.AnnotationName` Required. Name of the resource. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    AnnotationName name = AnnotationName.FromProjectLocationAnnotation("[PROJECT]", "[LOCATION]", "[ANNOTATION]");
    // Make the request
    Annotation response = await rapidMigrationAssessmentClient.GetAnnotationAsync(name);

### GetAnnotationAsync(AnnotationName, CancellationToken)

    public virtual Task<Annotation> GetAnnotationAsync(AnnotationName name, CancellationToken cancellationToken)

Gets details of a single Annotation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.AnnotationName` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    AnnotationName name = AnnotationName.FromProjectLocationAnnotation("[PROJECT]", "[LOCATION]", "[ANNOTATION]");
    // Make the request
    Annotation response = await rapidMigrationAssessmentClient.GetAnnotationAsync(name);

### GetAnnotationAsync(GetAnnotationRequest, CallSettings)

    public virtual Task<Annotation> GetAnnotationAsync(GetAnnotationRequest request, CallSettings callSettings = null)

Gets details of a single Annotation.

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    GetAnnotationRequest request = new GetAnnotationRequest
    {
        AnnotationName = AnnotationName.FromProjectLocationAnnotation("[PROJECT]", "[LOCATION]", "[ANNOTATION]"),
    };
    // Make the request
    Annotation response = await rapidMigrationAssessmentClient.GetAnnotationAsync(request);

### GetAnnotationAsync(GetAnnotationRequest, CancellationToken)

    public virtual Task<Annotation> GetAnnotationAsync(GetAnnotationRequest request, CancellationToken cancellationToken)

Gets details of a single Annotation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.GetAnnotationRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    GetAnnotationRequest request = new GetAnnotationRequest
    {
        AnnotationName = AnnotationName.FromProjectLocationAnnotation("[PROJECT]", "[LOCATION]", "[ANNOTATION]"),
    };
    // Make the request
    Annotation response = await rapidMigrationAssessmentClient.GetAnnotationAsync(request);

### GetAnnotationAsync(string, CallSettings)

    public virtual Task<Annotation> GetAnnotationAsync(string name, CallSettings callSettings = null)

Gets details of a single Annotation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/annotations/[ANNOTATION]";
    // Make the request
    Annotation response = await rapidMigrationAssessmentClient.GetAnnotationAsync(name);

### GetAnnotationAsync(string, CancellationToken)

    public virtual Task<Annotation> GetAnnotationAsync(string name, CancellationToken cancellationToken)

Gets details of a single Annotation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotation` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/annotations/[ANNOTATION]";
    // Make the request
    Annotation response = await rapidMigrationAssessmentClient.GetAnnotationAsync(name);

### GetCollector(CollectorName, CallSettings)

    public virtual Collector GetCollector(CollectorName name, CallSettings callSettings = null)

Gets details of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Collector response = rapidMigrationAssessmentClient.GetCollector(name);

### GetCollector(GetCollectorRequest, CallSettings)

    public virtual Collector GetCollector(GetCollectorRequest request, CallSettings callSettings = null)

Gets details of a single Collector.

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    GetCollectorRequest request = new GetCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
    };
    // Make the request
    Collector response = rapidMigrationAssessmentClient.GetCollector(request);

### GetCollector(string, CallSettings)

    public virtual Collector GetCollector(string name, CallSettings callSettings = null)

Gets details of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Collector response = rapidMigrationAssessmentClient.GetCollector(name);

### GetCollectorAsync(CollectorName, CallSettings)

    public virtual Task<Collector> GetCollectorAsync(CollectorName name, CallSettings callSettings = null)

Gets details of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Collector response = await rapidMigrationAssessmentClient.GetCollectorAsync(name);

### GetCollectorAsync(CollectorName, CancellationToken)

    public virtual Task<Collector> GetCollectorAsync(CollectorName name, CancellationToken cancellationToken)

Gets details of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Collector response = await rapidMigrationAssessmentClient.GetCollectorAsync(name);

### GetCollectorAsync(GetCollectorRequest, CallSettings)

    public virtual Task<Collector> GetCollectorAsync(GetCollectorRequest request, CallSettings callSettings = null)

Gets details of a single Collector.

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    GetCollectorRequest request = new GetCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
    };
    // Make the request
    Collector response = await rapidMigrationAssessmentClient.GetCollectorAsync(request);

### GetCollectorAsync(GetCollectorRequest, CancellationToken)

    public virtual Task<Collector> GetCollectorAsync(GetCollectorRequest request, CancellationToken cancellationToken)

Gets details of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.GetCollectorRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    GetCollectorRequest request = new GetCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
    };
    // Make the request
    Collector response = await rapidMigrationAssessmentClient.GetCollectorAsync(request);

### GetCollectorAsync(string, CallSettings)

    public virtual Task<Collector> GetCollectorAsync(string name, CallSettings callSettings = null)

Gets details of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Collector response = await rapidMigrationAssessmentClient.GetCollectorAsync(name);

### GetCollectorAsync(string, CancellationToken)

    public virtual Task<Collector> GetCollectorAsync(string name, CancellationToken cancellationToken)

Gets details of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Collector response = await rapidMigrationAssessmentClient.GetCollectorAsync(name);

### ListCollectors(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListCollectorsResponse, Collector> ListCollectors(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Collectors in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Parent value for ListCollectorsRequest. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.ListCollectorsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A pageable sequence of [Collector](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector) resources. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedEnumerable<ListCollectorsResponse, Collector> response = rapidMigrationAssessmentClient.ListCollectors(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Collector item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListCollectorsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Collector item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Collector> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Collector item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCollectors(ListCollectorsRequest, CallSettings)

    public virtual PagedEnumerable<ListCollectorsResponse, Collector> ListCollectors(ListCollectorsRequest request, CallSettings callSettings = null)

Lists Collectors in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.ListCollectorsRequest` 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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.ListCollectorsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A pageable sequence of [Collector](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector) resources. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    ListCollectorsRequest request = new ListCollectorsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Filter = "",
        OrderBy = "",
    };
    // Make the request
    PagedEnumerable<ListCollectorsResponse, Collector> response = rapidMigrationAssessmentClient.ListCollectors(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Collector item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListCollectorsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Collector item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Collector> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Collector item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCollectors(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListCollectorsResponse, Collector> ListCollectors(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Collectors in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for ListCollectorsRequest. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.ListCollectorsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A pageable sequence of [Collector](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector) resources. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedEnumerable<ListCollectorsResponse, Collector> response = rapidMigrationAssessmentClient.ListCollectors(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Collector item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListCollectorsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Collector item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Collector> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Collector item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCollectorsAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListCollectorsResponse, Collector> ListCollectorsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Collectors in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Parent value for ListCollectorsRequest. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.ListCollectorsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A pageable asynchronous sequence of [Collector](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector) resources. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedAsyncEnumerable<ListCollectorsResponse, Collector> response = rapidMigrationAssessmentClient.ListCollectorsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Collector item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListCollectorsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Collector item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Collector> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Collector item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCollectorsAsync(ListCollectorsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListCollectorsResponse, Collector> ListCollectorsAsync(ListCollectorsRequest request, CallSettings callSettings = null)

Lists Collectors in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.ListCollectorsRequest` 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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.ListCollectorsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A pageable asynchronous sequence of [Collector](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector) resources. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    ListCollectorsRequest request = new ListCollectorsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Filter = "",
        OrderBy = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListCollectorsResponse, Collector> response = rapidMigrationAssessmentClient.ListCollectorsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Collector item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListCollectorsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Collector item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Collector> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Collector item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCollectorsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListCollectorsResponse, Collector> ListCollectorsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Collectors in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for ListCollectorsRequest. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.ListCollectorsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` | A pageable asynchronous sequence of [Collector](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector) resources. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedAsyncEnumerable<ListCollectorsResponse, Collector> response = rapidMigrationAssessmentClient.ListCollectorsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Collector item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListCollectorsResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Collector item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Collector> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Collector item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### PauseCollector(CollectorName, CallSettings)

    public virtual Operation<Collector, OperationMetadata> PauseCollector(CollectorName name, CallSettings callSettings = null)

Pauses the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.PauseCollector(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOncePauseCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### PauseCollector(PauseCollectorRequest, CallSettings)

    public virtual Operation<Collector, OperationMetadata> PauseCollector(PauseCollectorRequest request, CallSettings callSettings = null)

Pauses the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.PauseCollectorRequest` 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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    PauseCollectorRequest request = new PauseCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.PauseCollector(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOncePauseCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### PauseCollector(string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> PauseCollector(string name, CallSettings callSettings = null)

Pauses the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.PauseCollector(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOncePauseCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### PauseCollectorAsync(CollectorName, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> PauseCollectorAsync(CollectorName name, CallSettings callSettings = null)

Pauses the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.PauseCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOncePauseCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### PauseCollectorAsync(CollectorName, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> PauseCollectorAsync(CollectorName name, CancellationToken cancellationToken)

Pauses the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.PauseCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOncePauseCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### PauseCollectorAsync(PauseCollectorRequest, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> PauseCollectorAsync(PauseCollectorRequest request, CallSettings callSettings = null)

Pauses the given collector.

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    PauseCollectorRequest request = new PauseCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.PauseCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOncePauseCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### PauseCollectorAsync(PauseCollectorRequest, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> PauseCollectorAsync(PauseCollectorRequest request, CancellationToken cancellationToken)

Pauses the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.PauseCollectorRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    PauseCollectorRequest request = new PauseCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.PauseCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOncePauseCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### PauseCollectorAsync(string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> PauseCollectorAsync(string name, CallSettings callSettings = null)

Pauses the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.PauseCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOncePauseCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### PauseCollectorAsync(string, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> PauseCollectorAsync(string name, CancellationToken cancellationToken)

Pauses the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.PauseCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOncePauseCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### PollOnceCreateAnnotation(string, CallSettings)

    public virtual Operation<Annotation, OperationMetadata> PollOnceCreateAnnotation(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `CreateAnnotation`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceCreateAnnotationAsync(string, CallSettings)

    public virtual Task<Operation<Annotation, OperationMetadata>> PollOnceCreateAnnotationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`CreateAnnotation`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Annotationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceCreateCollector(string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> PollOnceCreateCollector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `CreateCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceCreateCollectorAsync(string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> PollOnceCreateCollectorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`CreateCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDeleteCollector(string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> PollOnceDeleteCollector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `DeleteCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceDeleteCollectorAsync(string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> PollOnceDeleteCollectorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`DeleteCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOncePauseCollector(string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> PollOncePauseCollector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `PauseCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The result of polling the operation. |

### PollOncePauseCollectorAsync(string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> PollOncePauseCollectorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`PauseCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceRegisterCollector(string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> PollOnceRegisterCollector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `RegisterCollector`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceRegisterCollectorAsync(string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> PollOnceRegisterCollectorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`RegisterCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceResumeCollector(string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> PollOnceResumeCollector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `ResumeCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceResumeCollectorAsync(string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> PollOnceResumeCollectorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`ResumeCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdateCollector(string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> PollOnceUpdateCollector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `UpdateCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceUpdateCollectorAsync(string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> PollOnceUpdateCollectorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`UpdateCollector`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A task representing the result of polling the operation. |

### RegisterCollector(CollectorName, CallSettings)

    public virtual Operation<Collector, OperationMetadata> RegisterCollector(CollectorName name, CallSettings callSettings = null)

Registers the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.RegisterCollector(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceRegisterCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### RegisterCollector(RegisterCollectorRequest, CallSettings)

    public virtual Operation<Collector, OperationMetadata> RegisterCollector(RegisterCollectorRequest request, CallSettings callSettings = null)

Registers the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RegisterCollectorRequest` 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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    RegisterCollectorRequest request = new RegisterCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.RegisterCollector(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceRegisterCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### RegisterCollector(string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> RegisterCollector(string name, CallSettings callSettings = null)

Registers the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.RegisterCollector(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceRegisterCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### RegisterCollectorAsync(CollectorName, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> RegisterCollectorAsync(CollectorName name, CallSettings callSettings = null)

Registers the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.RegisterCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceRegisterCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### RegisterCollectorAsync(CollectorName, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> RegisterCollectorAsync(CollectorName name, CancellationToken cancellationToken)

Registers the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.RegisterCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceRegisterCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### RegisterCollectorAsync(RegisterCollectorRequest, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> RegisterCollectorAsync(RegisterCollectorRequest request, CallSettings callSettings = null)

Registers the given collector.

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    RegisterCollectorRequest request = new RegisterCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.RegisterCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceRegisterCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### RegisterCollectorAsync(RegisterCollectorRequest, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> RegisterCollectorAsync(RegisterCollectorRequest request, CancellationToken cancellationToken)

Registers the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RegisterCollectorRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    RegisterCollectorRequest request = new RegisterCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.RegisterCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceRegisterCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### RegisterCollectorAsync(string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> RegisterCollectorAsync(string name, CallSettings callSettings = null)

Registers the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.RegisterCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceRegisterCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### RegisterCollectorAsync(string, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> RegisterCollectorAsync(string name, CancellationToken cancellationToken)

Registers the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.RegisterCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceRegisterCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### ResumeCollector(CollectorName, CallSettings)

    public virtual Operation<Collector, OperationMetadata> ResumeCollector(CollectorName name, CallSettings callSettings = null)

Resumes the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.ResumeCollector(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceResumeCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### ResumeCollector(ResumeCollectorRequest, CallSettings)

    public virtual Operation<Collector, OperationMetadata> ResumeCollector(ResumeCollectorRequest request, CallSettings callSettings = null)

Resumes the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.ResumeCollectorRequest` 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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    ResumeCollectorRequest request = new ResumeCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.ResumeCollector(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceResumeCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### ResumeCollector(string, CallSettings)

    public virtual Operation<Collector, OperationMetadata> ResumeCollector(string name, CallSettings callSettings = null)

Resumes the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.ResumeCollector(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceResumeCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### ResumeCollectorAsync(CollectorName, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> ResumeCollectorAsync(CollectorName name, CallSettings callSettings = null)

Resumes the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.ResumeCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceResumeCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### ResumeCollectorAsync(CollectorName, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> ResumeCollectorAsync(CollectorName name, CancellationToken cancellationToken)

Resumes the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.CollectorName` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    CollectorName name = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]");
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.ResumeCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceResumeCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### ResumeCollectorAsync(ResumeCollectorRequest, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> ResumeCollectorAsync(ResumeCollectorRequest request, CallSettings callSettings = null)

Resumes the given collector.

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    ResumeCollectorRequest request = new ResumeCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.ResumeCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceResumeCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### ResumeCollectorAsync(ResumeCollectorRequest, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> ResumeCollectorAsync(ResumeCollectorRequest request, CancellationToken cancellationToken)

Resumes the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.ResumeCollectorRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    ResumeCollectorRequest request = new ResumeCollectorRequest
    {
        CollectorName = CollectorName.FromProjectLocationCollector("[PROJECT]", "[LOCATION]", "[COLLECTOR]"),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.ResumeCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceResumeCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### ResumeCollectorAsync(string, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> ResumeCollectorAsync(string name, CallSettings callSettings = null)

Resumes the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.ResumeCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceResumeCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### ResumeCollectorAsync(string, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> ResumeCollectorAsync(string name, CancellationToken cancellationToken)

Resumes the given collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/collectors/[COLLECTOR]";
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.ResumeCollectorAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceResumeCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient#Google_Cloud_RapidMigrationAssessment_V1_RapidMigrationAssessmentClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient#Google_Cloud_RapidMigrationAssessment_V1_RapidMigrationAssessmentClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient#Google_Cloud_RapidMigrationAssessment_V1_RapidMigrationAssessmentClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.RapidMigrationAssessmentClient#Google_Cloud_RapidMigrationAssessment_V1_RapidMigrationAssessmentClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdateCollector(Collector, FieldMask, CallSettings)

    public virtual Operation<Collector, OperationMetadata> UpdateCollector(Collector collector, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `collector` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` Required. The resource being updated. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. Field mask is used to specify the fields to be overwritten in the Collector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    Collector collector = new Collector();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.UpdateCollector(collector, updateMask);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceUpdateCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### UpdateCollector(UpdateCollectorRequest, CallSettings)

    public virtual Operation<Collector, OperationMetadata> UpdateCollector(UpdateCollectorRequest request, CallSettings callSettings = null)

Updates the parameters of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.UpdateCollectorRequest` 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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = RapidMigrationAssessmentClient.Create();
    // Initialize request argument(s)
    UpdateCollectorRequest request = new UpdateCollectorRequest
    {
        UpdateMask = new FieldMask(),
        Collector = new Collector(),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = rapidMigrationAssessmentClient.UpdateCollector(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = rapidMigrationAssessmentClient.PollOnceUpdateCollector(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### UpdateCollectorAsync(Collector, FieldMask, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> UpdateCollectorAsync(Collector collector, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `collector` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` Required. The resource being updated. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. Field mask is used to specify the fields to be overwritten in the Collector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
| `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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    Collector collector = new Collector();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.UpdateCollectorAsync(collector, updateMask);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceUpdateCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### UpdateCollectorAsync(Collector, FieldMask, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> UpdateCollectorAsync(Collector collector, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `collector` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collector` Required. The resource being updated. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. Field mask is used to specify the fields to be overwritten in the Collector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    Collector collector = new Collector();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.UpdateCollectorAsync(collector, updateMask);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceUpdateCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### UpdateCollectorAsync(UpdateCollectorRequest, CallSettings)

    public virtual Task<Operation<Collector, OperationMetadata>> UpdateCollectorAsync(UpdateCollectorRequest request, CallSettings callSettings = null)

Updates the parameters of a single Collector.

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

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    UpdateCollectorRequest request = new UpdateCollectorRequest
    {
        UpdateMask = new FieldMask(),
        Collector = new Collector(),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.UpdateCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceUpdateCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }

### UpdateCollectorAsync(UpdateCollectorRequest, CancellationToken)

    public virtual Task<Operation<Collector, OperationMetadata>> UpdateCollectorAsync(UpdateCollectorRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Collector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.UpdateCollectorRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.Collectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RapidMigrationAssessment.V1/latest/Google.Cloud.RapidMigrationAssessment.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    RapidMigrationAssessmentClient rapidMigrationAssessmentClient = await RapidMigrationAssessmentClient.CreateAsync();
    // Initialize request argument(s)
    UpdateCollectorRequest request = new UpdateCollectorRequest
    {
        UpdateMask = new FieldMask(),
        Collector = new Collector(),
        RequestId = "",
    };
    // Make the request
    Operation<Collector, OperationMetadata> response = await rapidMigrationAssessmentClient.UpdateCollectorAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Collector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Collector result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Collector, OperationMetadata> retrievedResponse = await rapidMigrationAssessmentClient.PollOnceUpdateCollectorAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Collector retrievedResult = retrievedResponse.Result;
    }