2.1.0 (latest) 2.0.0 1.1.0 1.0.0

    public abstract class DataAgentServiceClient

Reference documentation and code samples for the Data Analytics API with Gemini v1 API class DataAgentServiceClient.

DataAgentService client wrapper, for convenient use.

## Inheritance

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

## 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

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

## Namespace

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

## Assembly

Google.Cloud.GeminiDataAnalytics.V1.dll

## Remarks

Service describing handlers for resources.

## Properties

### CreateDataAgentOperationsClient

    public virtual OperationsClient CreateDataAgentOperationsClient { get; }

The long-running operations client for `CreateDataAgent`.

| **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 DataAgentService service, which is a host of
"geminidataanalytics.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 DataAgentService 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 DataAgentService scopes are:

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

### DeleteDataAgentOperationsClient

    public virtual OperationsClient DeleteDataAgentOperationsClient { get; }

The long-running operations client for `DeleteDataAgent`.

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

### GrpcClient

    public virtual DataAgentService.DataAgentServiceClient GrpcClient { get; }

The underlying gRPC DataAgentService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentService.DataAgentServiceClient` |   |

### 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` |   |

### 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` |   |

### SetAgentOpsObservabilityOperationsClient

    public virtual OperationsClient SetAgentOpsObservabilityOperationsClient { get; }

The long-running operations client for `SetAgentOpsObservability`.

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

### UpdateDataAgentOperationsClient

    public virtual OperationsClient UpdateDataAgentOperationsClient { get; }

The long-running operations client for `UpdateDataAgent`.

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

## Methods

### Create()

    public static DataAgentServiceClient Create()

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

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

### CreateAsync(CancellationToken)

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

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

| **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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentServiceClient` | The task representing the created [DataAgentServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentServiceClient). |

### CreateDataAgent(LocationName, DataAgent, string, CallSettings)

    public virtual Operation<DataAgent, OperationMetadata> CreateDataAgent(LocationName parent, DataAgent dataAgent, string dataAgentId, CallSettings callSettings = null)

Creates a new DataAgent 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. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    Operation<DataAgent, OperationMetadata> response = dataAgentServiceClient.CreateDataAgent(parent, dataAgent, dataAgentId);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = dataAgentServiceClient.PollOnceCreateDataAgent(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### CreateDataAgent(CreateDataAgentRequest, CallSettings)

    public virtual Operation<DataAgent, OperationMetadata> CreateDataAgent(CreateDataAgentRequest request, CallSettings callSettings = null)

Creates a new DataAgent in a given project and location.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    CreateDataAgentRequest request = new CreateDataAgentRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        DataAgentId = "",
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    Operation<DataAgent, OperationMetadata> response = dataAgentServiceClient.CreateDataAgent(request);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = dataAgentServiceClient.PollOnceCreateDataAgent(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### CreateDataAgent(string, DataAgent, string, CallSettings)

    public virtual Operation<DataAgent, OperationMetadata> CreateDataAgent(string parent, DataAgent dataAgent, string dataAgentId, CallSettings callSettings = null)

Creates a new DataAgent in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    Operation<DataAgent, OperationMetadata> response = dataAgentServiceClient.CreateDataAgent(parent, dataAgent, dataAgentId);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = dataAgentServiceClient.PollOnceCreateDataAgent(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### CreateDataAgentAsync(LocationName, DataAgent, string, CallSettings)

    public virtual Task<Operation<DataAgent, OperationMetadata>> CreateDataAgentAsync(LocationName parent, DataAgent dataAgent, string dataAgentId, CallSettings callSettings = null)

Creates a new DataAgent 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. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    Operation<DataAgent, OperationMetadata> response = await dataAgentServiceClient.CreateDataAgentAsync(parent, dataAgent, dataAgentId);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceCreateDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### CreateDataAgentAsync(LocationName, DataAgent, string, CancellationToken)

    public virtual Task<Operation<DataAgent, OperationMetadata>> CreateDataAgentAsync(LocationName parent, DataAgent dataAgent, string dataAgentId, CancellationToken cancellationToken)

Creates a new DataAgent 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. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    Operation<DataAgent, OperationMetadata> response = await dataAgentServiceClient.CreateDataAgentAsync(parent, dataAgent, dataAgentId);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceCreateDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### CreateDataAgentAsync(CreateDataAgentRequest, CallSettings)

    public virtual Task<Operation<DataAgent, OperationMetadata>> CreateDataAgentAsync(CreateDataAgentRequest request, CallSettings callSettings = null)

Creates a new DataAgent in a given project and location.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateDataAgentRequest request = new CreateDataAgentRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        DataAgentId = "",
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    Operation<DataAgent, OperationMetadata> response = await dataAgentServiceClient.CreateDataAgentAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceCreateDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### CreateDataAgentAsync(CreateDataAgentRequest, CancellationToken)

    public virtual Task<Operation<DataAgent, OperationMetadata>> CreateDataAgentAsync(CreateDataAgentRequest request, CancellationToken cancellationToken)

Creates a new DataAgent in a given project and location.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateDataAgentRequest request = new CreateDataAgentRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        DataAgentId = "",
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    Operation<DataAgent, OperationMetadata> response = await dataAgentServiceClient.CreateDataAgentAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceCreateDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### CreateDataAgentAsync(string, DataAgent, string, CallSettings)

    public virtual Task<Operation<DataAgent, OperationMetadata>> CreateDataAgentAsync(string parent, DataAgent dataAgent, string dataAgentId, CallSettings callSettings = null)

Creates a new DataAgent in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    Operation<DataAgent, OperationMetadata> response = await dataAgentServiceClient.CreateDataAgentAsync(parent, dataAgent, dataAgentId);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceCreateDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### CreateDataAgentAsync(string, DataAgent, string, CancellationToken)

    public virtual Task<Operation<DataAgent, OperationMetadata>> CreateDataAgentAsync(string parent, DataAgent dataAgent, string dataAgentId, CancellationToken cancellationToken)

Creates a new DataAgent in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    Operation<DataAgent, OperationMetadata> response = await dataAgentServiceClient.CreateDataAgentAsync(parent, dataAgent, dataAgentId);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceCreateDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### CreateDataAgentSync(LocationName, DataAgent, string, CallSettings)

    public virtual DataAgent CreateDataAgentSync(LocationName parent, DataAgent dataAgent, string dataAgentId, CallSettings callSettings = null)

Creates a new DataAgent in a given project and location synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    DataAgent response = dataAgentServiceClient.CreateDataAgentSync(parent, dataAgent, dataAgentId);

### CreateDataAgentSync(CreateDataAgentRequest, CallSettings)

    public virtual DataAgent CreateDataAgentSync(CreateDataAgentRequest request, CallSettings callSettings = null)

Creates a new DataAgent in a given project and location synchronously.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    CreateDataAgentRequest request = new CreateDataAgentRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        DataAgentId = "",
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    DataAgent response = dataAgentServiceClient.CreateDataAgentSync(request);

### CreateDataAgentSync(string, DataAgent, string, CallSettings)

    public virtual DataAgent CreateDataAgentSync(string parent, DataAgent dataAgent, string dataAgentId, CallSettings callSettings = null)

Creates a new DataAgent in a given project and location synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    DataAgent response = dataAgentServiceClient.CreateDataAgentSync(parent, dataAgent, dataAgentId);

### CreateDataAgentSyncAsync(LocationName, DataAgent, string, CallSettings)

    public virtual Task<DataAgent> CreateDataAgentSyncAsync(LocationName parent, DataAgent dataAgent, string dataAgentId, CallSettings callSettings = null)

Creates a new DataAgent in a given project and location synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    DataAgent response = await dataAgentServiceClient.CreateDataAgentSyncAsync(parent, dataAgent, dataAgentId);

### CreateDataAgentSyncAsync(LocationName, DataAgent, string, CancellationToken)

    public virtual Task<DataAgent> CreateDataAgentSyncAsync(LocationName parent, DataAgent dataAgent, string dataAgentId, CancellationToken cancellationToken)

Creates a new DataAgent in a given project and location synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    DataAgent response = await dataAgentServiceClient.CreateDataAgentSyncAsync(parent, dataAgent, dataAgentId);

### CreateDataAgentSyncAsync(CreateDataAgentRequest, CallSettings)

    public virtual Task<DataAgent> CreateDataAgentSyncAsync(CreateDataAgentRequest request, CallSettings callSettings = null)

Creates a new DataAgent in a given project and location synchronously.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateDataAgentRequest request = new CreateDataAgentRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        DataAgentId = "",
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    DataAgent response = await dataAgentServiceClient.CreateDataAgentSyncAsync(request);

### CreateDataAgentSyncAsync(CreateDataAgentRequest, CancellationToken)

    public virtual Task<DataAgent> CreateDataAgentSyncAsync(CreateDataAgentRequest request, CancellationToken cancellationToken)

Creates a new DataAgent in a given project and location synchronously.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateDataAgentRequest request = new CreateDataAgentRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        DataAgentId = "",
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    DataAgent response = await dataAgentServiceClient.CreateDataAgentSyncAsync(request);

### CreateDataAgentSyncAsync(string, DataAgent, string, CallSettings)

    public virtual Task<DataAgent> CreateDataAgentSyncAsync(string parent, DataAgent dataAgent, string dataAgentId, CallSettings callSettings = null)

Creates a new DataAgent in a given project and location synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    DataAgent response = await dataAgentServiceClient.CreateDataAgentSyncAsync(parent, dataAgent, dataAgentId);

### CreateDataAgentSyncAsync(string, DataAgent, string, CancellationToken)

    public virtual Task<DataAgent> CreateDataAgentSyncAsync(string parent, DataAgent dataAgent, string dataAgentId, CancellationToken cancellationToken)

Creates a new DataAgent in a given project and location synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Value for parent. |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being created. |
| `dataAgentId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. Id of the requesting object. Must be unique within the parent. The allowed format is: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. If not provided, the server will auto-generate a value for the id. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    DataAgent dataAgent = new DataAgent();
    string dataAgentId = "";
    // Make the request
    DataAgent response = await dataAgentServiceClient.CreateDataAgentSyncAsync(parent, dataAgent, dataAgentId);

### DeleteDataAgent(DataAgentName, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeleteDataAgent(DataAgentName name, CallSettings callSettings = null)

Deletes a single DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentName` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    DataAgentName name = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
    // Make the request
    Operation<Empty, OperationMetadata> response = dataAgentServiceClient.DeleteDataAgent(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty 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<Empty, OperationMetadata> retrievedResponse = dataAgentServiceClient.PollOnceDeleteDataAgent(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteDataAgent(DeleteDataAgentRequest, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeleteDataAgent(DeleteDataAgentRequest request, CallSettings callSettings = null)

Deletes a single DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DeleteDataAgentRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    DeleteDataAgentRequest request = new DeleteDataAgentRequest
    {
        DataAgentName = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"),
        RequestId = "",
    };
    // Make the request
    Operation<Empty, OperationMetadata> response = dataAgentServiceClient.DeleteDataAgent(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty 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<Empty, OperationMetadata> retrievedResponse = dataAgentServiceClient.PollOnceDeleteDataAgent(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteDataAgent(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> DeleteDataAgent(string name, CallSettings callSettings = null)

Deletes a single DataAgent.

| **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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/dataAgents/[DATA_AGENT]";
    // Make the request
    Operation<Empty, OperationMetadata> response = dataAgentServiceClient.DeleteDataAgent(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty 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<Empty, OperationMetadata> retrievedResponse = dataAgentServiceClient.PollOnceDeleteDataAgent(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteDataAgentAsync(DataAgentName, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAgentAsync(DataAgentName name, CallSettings callSettings = null)

Deletes a single DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentName` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DataAgentName name = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
    // Make the request
    Operation<Empty, OperationMetadata> response = await dataAgentServiceClient.DeleteDataAgentAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceDeleteDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteDataAgentAsync(DataAgentName, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAgentAsync(DataAgentName name, CancellationToken cancellationToken)

Deletes a single DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentName` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DataAgentName name = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
    // Make the request
    Operation<Empty, OperationMetadata> response = await dataAgentServiceClient.DeleteDataAgentAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceDeleteDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteDataAgentAsync(DeleteDataAgentRequest, CallSettings)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAgentAsync(DeleteDataAgentRequest request, CallSettings callSettings = null)

Deletes a single DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DeleteDataAgentRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteDataAgentRequest request = new DeleteDataAgentRequest
    {
        DataAgentName = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"),
        RequestId = "",
    };
    // Make the request
    Operation<Empty, OperationMetadata> response = await dataAgentServiceClient.DeleteDataAgentAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceDeleteDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteDataAgentAsync(DeleteDataAgentRequest, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAgentAsync(DeleteDataAgentRequest request, CancellationToken cancellationToken)

Deletes a single DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DeleteDataAgentRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteDataAgentRequest request = new DeleteDataAgentRequest
    {
        DataAgentName = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"),
        RequestId = "",
    };
    // Make the request
    Operation<Empty, OperationMetadata> response = await dataAgentServiceClient.DeleteDataAgentAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceDeleteDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteDataAgentAsync(string, CallSettings)

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

Deletes a single DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/dataAgents/[DATA_AGENT]";
    // Make the request
    Operation<Empty, OperationMetadata> response = await dataAgentServiceClient.DeleteDataAgentAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceDeleteDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteDataAgentAsync(string, CancellationToken)

    public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAgentAsync(string name, CancellationToken cancellationToken)

Deletes a single DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/dataAgents/[DATA_AGENT]";
    // Make the request
    Operation<Empty, OperationMetadata> response = await dataAgentServiceClient.DeleteDataAgentAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceDeleteDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteDataAgentSync(DataAgentName, CallSettings)

    public virtual void DeleteDataAgentSync(DataAgentName name, CallSettings callSettings = null)

Deletes a single DataAgent synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentName` 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. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    DataAgentName name = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
    // Make the request
    dataAgentServiceClient.DeleteDataAgentSync(name);

### DeleteDataAgentSync(DeleteDataAgentRequest, CallSettings)

    public virtual void DeleteDataAgentSync(DeleteDataAgentRequest request, CallSettings callSettings = null)

Deletes a single DataAgent synchronously.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    DeleteDataAgentRequest request = new DeleteDataAgentRequest
    {
        DataAgentName = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"),
        RequestId = "",
    };
    // Make the request
    dataAgentServiceClient.DeleteDataAgentSync(request);

### DeleteDataAgentSync(string, CallSettings)

    public virtual void DeleteDataAgentSync(string name, CallSettings callSettings = null)

Deletes a single DataAgent synchronously.

| **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. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/dataAgents/[DATA_AGENT]";
    // Make the request
    dataAgentServiceClient.DeleteDataAgentSync(name);

### DeleteDataAgentSyncAsync(DataAgentName, CallSettings)

    public virtual Task DeleteDataAgentSyncAsync(DataAgentName name, CallSettings callSettings = null)

Deletes a single DataAgent synchronously.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DataAgentName name = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
    // Make the request
    await dataAgentServiceClient.DeleteDataAgentSyncAsync(name);

### DeleteDataAgentSyncAsync(DataAgentName, CancellationToken)

    public virtual Task DeleteDataAgentSyncAsync(DataAgentName name, CancellationToken cancellationToken)

Deletes a single DataAgent synchronously.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DataAgentName name = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
    // Make the request
    await dataAgentServiceClient.DeleteDataAgentSyncAsync(name);

### DeleteDataAgentSyncAsync(DeleteDataAgentRequest, CallSettings)

    public virtual Task DeleteDataAgentSyncAsync(DeleteDataAgentRequest request, CallSettings callSettings = null)

Deletes a single DataAgent synchronously.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteDataAgentRequest request = new DeleteDataAgentRequest
    {
        DataAgentName = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"),
        RequestId = "",
    };
    // Make the request
    await dataAgentServiceClient.DeleteDataAgentSyncAsync(request);

### DeleteDataAgentSyncAsync(DeleteDataAgentRequest, CancellationToken)

    public virtual Task DeleteDataAgentSyncAsync(DeleteDataAgentRequest request, CancellationToken cancellationToken)

Deletes a single DataAgent synchronously.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteDataAgentRequest request = new DeleteDataAgentRequest
    {
        DataAgentName = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"),
        RequestId = "",
    };
    // Make the request
    await dataAgentServiceClient.DeleteDataAgentSyncAsync(request);

### DeleteDataAgentSyncAsync(string, CallSettings)

    public virtual Task DeleteDataAgentSyncAsync(string name, CallSettings callSettings = null)

Deletes a single DataAgent synchronously.

| **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` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/dataAgents/[DATA_AGENT]";
    // Make the request
    await dataAgentServiceClient.DeleteDataAgentSyncAsync(name);

### DeleteDataAgentSyncAsync(string, CancellationToken)

    public virtual Task DeleteDataAgentSyncAsync(string name, CancellationToken cancellationToken)

Deletes a single DataAgent synchronously.

| **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` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/dataAgents/[DATA_AGENT]";
    // Make the request
    await dataAgentServiceClient.DeleteDataAgentSyncAsync(name);

### GetDataAgent(DataAgentName, CallSettings)

    public virtual DataAgent GetDataAgent(DataAgentName name, CallSettings callSettings = null)

Gets details of a single DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentName` 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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    DataAgentName name = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
    // Make the request
    DataAgent response = dataAgentServiceClient.GetDataAgent(name);

### GetDataAgent(GetDataAgentRequest, CallSettings)

    public virtual DataAgent GetDataAgent(GetDataAgentRequest request, CallSettings callSettings = null)

Gets details of a single DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    GetDataAgentRequest request = new GetDataAgentRequest
    {
        DataAgentName = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"),
    };
    // Make the request
    DataAgent response = dataAgentServiceClient.GetDataAgent(request);

### GetDataAgent(string, CallSettings)

    public virtual DataAgent GetDataAgent(string name, CallSettings callSettings = null)

Gets details of a single DataAgent.

| **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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/dataAgents/[DATA_AGENT]";
    // Make the request
    DataAgent response = dataAgentServiceClient.GetDataAgent(name);

### GetDataAgentAsync(DataAgentName, CallSettings)

    public virtual Task<DataAgent> GetDataAgentAsync(DataAgentName name, CallSettings callSettings = null)

Gets details of a single DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DataAgentName name = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
    // Make the request
    DataAgent response = await dataAgentServiceClient.GetDataAgentAsync(name);

### GetDataAgentAsync(DataAgentName, CancellationToken)

    public virtual Task<DataAgent> GetDataAgentAsync(DataAgentName name, CancellationToken cancellationToken)

Gets details of a single DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DataAgentName name = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]");
    // Make the request
    DataAgent response = await dataAgentServiceClient.GetDataAgentAsync(name);

### GetDataAgentAsync(GetDataAgentRequest, CallSettings)

    public virtual Task<DataAgent> GetDataAgentAsync(GetDataAgentRequest request, CallSettings callSettings = null)

Gets details of a single DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetDataAgentRequest request = new GetDataAgentRequest
    {
        DataAgentName = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"),
    };
    // Make the request
    DataAgent response = await dataAgentServiceClient.GetDataAgentAsync(request);

### GetDataAgentAsync(GetDataAgentRequest, CancellationToken)

    public virtual Task<DataAgent> GetDataAgentAsync(GetDataAgentRequest request, CancellationToken cancellationToken)

Gets details of a single DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetDataAgentRequest request = new GetDataAgentRequest
    {
        DataAgentName = DataAgentName.FromProjectLocationDataAgent("[PROJECT]", "[LOCATION]", "[DATA_AGENT]"),
    };
    // Make the request
    DataAgent response = await dataAgentServiceClient.GetDataAgentAsync(request);

### GetDataAgentAsync(string, CallSettings)

    public virtual Task<DataAgent> GetDataAgentAsync(string name, CallSettings callSettings = null)

Gets details of a single DataAgent.

| **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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/dataAgents/[DATA_AGENT]";
    // Make the request
    DataAgent response = await dataAgentServiceClient.GetDataAgentAsync(name);

### GetDataAgentAsync(string, CancellationToken)

    public virtual Task<DataAgent> GetDataAgentAsync(string name, CancellationToken cancellationToken)

Gets details of a single DataAgent.

| **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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/dataAgents/[DATA_AGENT]";
    // Make the request
    DataAgent response = await dataAgentServiceClient.GetDataAgentAsync(name);

### GetIamPolicy(IResourceName, CallSettings)

    public virtual Policy GetIamPolicy(IResourceName resource, CallSettings callSettings = null)

Gets the IAM policy for DataAgent

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = dataAgentServiceClient.GetIamPolicy(resource);

### GetIamPolicy(GetIamPolicyRequest, CallSettings)

    public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the IAM policy for DataAgent

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    GetIamPolicyRequest request = new GetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Options = new GetPolicyOptions(),
    };
    // Make the request
    Policy response = dataAgentServiceClient.GetIamPolicy(request);

### GetIamPolicy(string, CallSettings)

    public virtual Policy GetIamPolicy(string resource, CallSettings callSettings = null)

Gets the IAM policy for DataAgent

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = dataAgentServiceClient.GetIamPolicy(resource);

### GetIamPolicyAsync(IResourceName, CallSettings)

    public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CallSettings callSettings = null)

Gets the IAM policy for DataAgent

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = await dataAgentServiceClient.GetIamPolicyAsync(resource);

### GetIamPolicyAsync(IResourceName, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CancellationToken cancellationToken)

Gets the IAM policy for DataAgent

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = await dataAgentServiceClient.GetIamPolicyAsync(resource);

### GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

    public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the IAM policy for DataAgent

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetIamPolicyRequest request = new GetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Options = new GetPolicyOptions(),
    };
    // Make the request
    Policy response = await dataAgentServiceClient.GetIamPolicyAsync(request);

### GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)

Gets the IAM policy for DataAgent

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetIamPolicyRequest request = new GetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Options = new GetPolicyOptions(),
    };
    // Make the request
    Policy response = await dataAgentServiceClient.GetIamPolicyAsync(request);

### GetIamPolicyAsync(string, CallSettings)

    public virtual Task<Policy> GetIamPolicyAsync(string resource, CallSettings callSettings = null)

Gets the IAM policy for DataAgent

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = await dataAgentServiceClient.GetIamPolicyAsync(resource);

### GetIamPolicyAsync(string, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(string resource, CancellationToken cancellationToken)

Gets the IAM policy for DataAgent

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = await dataAgentServiceClient.GetIamPolicyAsync(resource);

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

    public virtual PagedEnumerable<ListAccessibleDataAgentsResponse, DataAgent> ListAccessibleDataAgents(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataAgents that are accessible to the caller 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 ListAccessibleDataAgentsRequest. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ListAccessibleDataAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A pageable sequence of [DataAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent) resources. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedEnumerable<ListAccessibleDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListAccessibleDataAgents(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (DataAgent 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 (ListAccessibleDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

### ListAccessibleDataAgents(ListAccessibleDataAgentsRequest, CallSettings)

    public virtual PagedEnumerable<ListAccessibleDataAgentsResponse, DataAgent> ListAccessibleDataAgents(ListAccessibleDataAgentsRequest request, CallSettings callSettings = null)

Lists DataAgents that are accessible to the caller in a given project and
location.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    ListAccessibleDataAgentsRequest request = new ListAccessibleDataAgentsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Filter = "",
        OrderBy = "",
        ShowDeleted = false,
        CreatorFilter = ListAccessibleDataAgentsRequest.Types.CreatorFilter.Unspecified,
    };
    // Make the request
    PagedEnumerable<ListAccessibleDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListAccessibleDataAgents(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (DataAgent 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 (ListAccessibleDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

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

    public virtual PagedEnumerable<ListAccessibleDataAgentsResponse, DataAgent> ListAccessibleDataAgents(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataAgents that are accessible to the caller in a given project and
location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for ListAccessibleDataAgentsRequest. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ListAccessibleDataAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A pageable sequence of [DataAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent) resources. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedEnumerable<ListAccessibleDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListAccessibleDataAgents(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (DataAgent 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 (ListAccessibleDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

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

    public virtual PagedAsyncEnumerable<ListAccessibleDataAgentsResponse, DataAgent> ListAccessibleDataAgentsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataAgents that are accessible to the caller 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 ListAccessibleDataAgentsRequest. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ListAccessibleDataAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A pageable asynchronous sequence of [DataAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent) resources. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedAsyncEnumerable<ListAccessibleDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListAccessibleDataAgentsAsync(parent);

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

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListAccessibleDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

### ListAccessibleDataAgentsAsync(ListAccessibleDataAgentsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListAccessibleDataAgentsResponse, DataAgent> ListAccessibleDataAgentsAsync(ListAccessibleDataAgentsRequest request, CallSettings callSettings = null)

Lists DataAgents that are accessible to the caller in a given project and
location.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListAccessibleDataAgentsRequest request = new ListAccessibleDataAgentsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Filter = "",
        OrderBy = "",
        ShowDeleted = false,
        CreatorFilter = ListAccessibleDataAgentsRequest.Types.CreatorFilter.Unspecified,
    };
    // Make the request
    PagedAsyncEnumerable<ListAccessibleDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListAccessibleDataAgentsAsync(request);

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

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListAccessibleDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

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

    public virtual PagedAsyncEnumerable<ListAccessibleDataAgentsResponse, DataAgent> ListAccessibleDataAgentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataAgents that are accessible to the caller in a given project and
location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for ListAccessibleDataAgentsRequest. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ListAccessibleDataAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A pageable asynchronous sequence of [DataAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent) resources. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedAsyncEnumerable<ListAccessibleDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListAccessibleDataAgentsAsync(parent);

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

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListAccessibleDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

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

    public virtual PagedEnumerable<ListDataAgentsResponse, DataAgent> ListDataAgents(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataAgents 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 ListDataAgentsRequest. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ListDataAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A pageable sequence of [DataAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent) resources. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedEnumerable<ListDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListDataAgents(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (DataAgent 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 (ListDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

### ListDataAgents(ListDataAgentsRequest, CallSettings)

    public virtual PagedEnumerable<ListDataAgentsResponse, DataAgent> ListDataAgents(ListDataAgentsRequest request, CallSettings callSettings = null)

Lists DataAgents in a given project and location.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    ListDataAgentsRequest request = new ListDataAgentsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Filter = "",
        OrderBy = "",
        ShowDeleted = false,
        CreatorFilter = ListAccessibleDataAgentsRequest.Types.CreatorFilter.Unspecified,
    };
    // Make the request
    PagedEnumerable<ListDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListDataAgents(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (DataAgent 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 (ListDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

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

    public virtual PagedEnumerable<ListDataAgentsResponse, DataAgent> ListDataAgents(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataAgents in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for ListDataAgentsRequest. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ListDataAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A pageable sequence of [DataAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent) resources. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedEnumerable<ListDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListDataAgents(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (DataAgent 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 (ListDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

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

    public virtual PagedAsyncEnumerable<ListDataAgentsResponse, DataAgent> ListDataAgentsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataAgents 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 ListDataAgentsRequest. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ListDataAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A pageable asynchronous sequence of [DataAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent) resources. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedAsyncEnumerable<ListDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListDataAgentsAsync(parent);

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

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

### ListDataAgentsAsync(ListDataAgentsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListDataAgentsResponse, DataAgent> ListDataAgentsAsync(ListDataAgentsRequest request, CallSettings callSettings = null)

Lists DataAgents in a given project and location.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListDataAgentsRequest request = new ListDataAgentsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        Filter = "",
        OrderBy = "",
        ShowDeleted = false,
        CreatorFilter = ListAccessibleDataAgentsRequest.Types.CreatorFilter.Unspecified,
    };
    // Make the request
    PagedAsyncEnumerable<ListDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListDataAgentsAsync(request);

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

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

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

    public virtual PagedAsyncEnumerable<ListDataAgentsResponse, DataAgent> ListDataAgentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DataAgents in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for ListDataAgentsRequest. |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ListDataAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A pageable asynchronous sequence of [DataAgent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent) resources. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedAsyncEnumerable<ListDataAgentsResponse, DataAgent> response = dataAgentServiceClient.ListDataAgentsAsync(parent);

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

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListDataAgentsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DataAgent 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<DataAgent> 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 (DataAgent 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;

### PollOnceCreateDataAgent(string, CallSettings)

    public virtual Operation<DataAgent, OperationMetadata> PollOnceCreateDataAgent(string operationName, CallSettings callSettings = null)

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

| **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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceCreateDataAgentAsync(string, CallSettings)

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

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

| **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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDeleteDataAgent(string, CallSettings)

    public virtual Operation<Empty, OperationMetadata> PollOnceDeleteDataAgent(string operationName, CallSettings callSettings = null)

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

| **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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceDeleteDataAgentAsync(string, CallSettings)

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

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

| **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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A task representing the result of polling the operation. |

### PollOnceSetAgentOpsObservability(string, CallSettings)

    public virtual Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> PollOnceSetAgentOpsObservability(string operationName, CallSettings callSettings = null)

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

| **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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityMetadata` | The result of polling the operation. |

### PollOnceSetAgentOpsObservabilityAsync(string, CallSettings)

    public virtual Task<Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata>> PollOnceSetAgentOpsObservabilityAsync(string operationName, CallSettings callSettings = null)

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

| **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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdateDataAgent(string, CallSettings)

    public virtual Operation<DataAgent, OperationMetadata> PollOnceUpdateDataAgent(string operationName, CallSettings callSettings = null)

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

| **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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | The result of polling the operation. |

### PollOnceUpdateDataAgentAsync(string, CallSettings)

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

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

| **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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A task representing the result of polling the operation. |

### RetrieveAgentOpsObservability(LocationName, string, CallSettings)

    public virtual RetrieveAgentOpsObservabilityResponse RetrieveAgentOpsObservability(LocationName parent, string dataSourceType, CallSettings callSettings = null)

Gets AgentOps observability settings and status of required services.

| **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 RetrieveAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to retrieve observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.RetrieveAgentOpsObservabilityResponse` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    string dataSourceType = "";
    // Make the request
    RetrieveAgentOpsObservabilityResponse response = dataAgentServiceClient.RetrieveAgentOpsObservability(parent, dataSourceType);

### RetrieveAgentOpsObservability(RetrieveAgentOpsObservabilityRequest, CallSettings)

    public virtual RetrieveAgentOpsObservabilityResponse RetrieveAgentOpsObservability(RetrieveAgentOpsObservabilityRequest request, CallSettings callSettings = null)

Gets AgentOps observability settings and status of required services.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    RetrieveAgentOpsObservabilityRequest request = new RetrieveAgentOpsObservabilityRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        DataSourceType = "",
    };
    // Make the request
    RetrieveAgentOpsObservabilityResponse response = dataAgentServiceClient.RetrieveAgentOpsObservability(request);

### RetrieveAgentOpsObservability(string, string, CallSettings)

    public virtual RetrieveAgentOpsObservabilityResponse RetrieveAgentOpsObservability(string parent, string dataSourceType, CallSettings callSettings = null)

Gets AgentOps observability settings and status of required services.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for RetrieveAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to retrieve observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.RetrieveAgentOpsObservabilityResponse` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    string dataSourceType = "";
    // Make the request
    RetrieveAgentOpsObservabilityResponse response = dataAgentServiceClient.RetrieveAgentOpsObservability(parent, dataSourceType);

### RetrieveAgentOpsObservabilityAsync(LocationName, string, CallSettings)

    public virtual Task<RetrieveAgentOpsObservabilityResponse> RetrieveAgentOpsObservabilityAsync(LocationName parent, string dataSourceType, CallSettings callSettings = null)

Gets AgentOps observability settings and status of required services.

| **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 RetrieveAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to retrieve observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.RetrieveAgentOpsObservabilityResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    string dataSourceType = "";
    // Make the request
    RetrieveAgentOpsObservabilityResponse response = await dataAgentServiceClient.RetrieveAgentOpsObservabilityAsync(parent, dataSourceType);

### RetrieveAgentOpsObservabilityAsync(LocationName, string, CancellationToken)

    public virtual Task<RetrieveAgentOpsObservabilityResponse> RetrieveAgentOpsObservabilityAsync(LocationName parent, string dataSourceType, CancellationToken cancellationToken)

Gets AgentOps observability settings and status of required services.

| **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 RetrieveAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to retrieve observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.RetrieveAgentOpsObservabilityResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    string dataSourceType = "";
    // Make the request
    RetrieveAgentOpsObservabilityResponse response = await dataAgentServiceClient.RetrieveAgentOpsObservabilityAsync(parent, dataSourceType);

### RetrieveAgentOpsObservabilityAsync(RetrieveAgentOpsObservabilityRequest, CallSettings)

    public virtual Task<RetrieveAgentOpsObservabilityResponse> RetrieveAgentOpsObservabilityAsync(RetrieveAgentOpsObservabilityRequest request, CallSettings callSettings = null)

Gets AgentOps observability settings and status of required services.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    RetrieveAgentOpsObservabilityRequest request = new RetrieveAgentOpsObservabilityRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        DataSourceType = "",
    };
    // Make the request
    RetrieveAgentOpsObservabilityResponse response = await dataAgentServiceClient.RetrieveAgentOpsObservabilityAsync(request);

### RetrieveAgentOpsObservabilityAsync(RetrieveAgentOpsObservabilityRequest, CancellationToken)

    public virtual Task<RetrieveAgentOpsObservabilityResponse> RetrieveAgentOpsObservabilityAsync(RetrieveAgentOpsObservabilityRequest request, CancellationToken cancellationToken)

Gets AgentOps observability settings and status of required services.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    RetrieveAgentOpsObservabilityRequest request = new RetrieveAgentOpsObservabilityRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        DataSourceType = "",
    };
    // Make the request
    RetrieveAgentOpsObservabilityResponse response = await dataAgentServiceClient.RetrieveAgentOpsObservabilityAsync(request);

### RetrieveAgentOpsObservabilityAsync(string, string, CallSettings)

    public virtual Task<RetrieveAgentOpsObservabilityResponse> RetrieveAgentOpsObservabilityAsync(string parent, string dataSourceType, CallSettings callSettings = null)

Gets AgentOps observability settings and status of required services.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for RetrieveAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to retrieve observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.RetrieveAgentOpsObservabilityResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    string dataSourceType = "";
    // Make the request
    RetrieveAgentOpsObservabilityResponse response = await dataAgentServiceClient.RetrieveAgentOpsObservabilityAsync(parent, dataSourceType);

### RetrieveAgentOpsObservabilityAsync(string, string, CancellationToken)

    public virtual Task<RetrieveAgentOpsObservabilityResponse> RetrieveAgentOpsObservabilityAsync(string parent, string dataSourceType, CancellationToken cancellationToken)

Gets AgentOps observability settings and status of required services.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for RetrieveAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to retrieve observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.RetrieveAgentOpsObservabilityResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    string dataSourceType = "";
    // Make the request
    RetrieveAgentOpsObservabilityResponse response = await dataAgentServiceClient.RetrieveAgentOpsObservabilityAsync(parent, dataSourceType);

### SetAgentOpsObservability(LocationName, bool, string, CallSettings)

    public virtual Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> SetAgentOpsObservability(LocationName parent, bool telemetryEnabled, string dataSourceType, CallSettings callSettings = null)

Enables/Disables required GCP services and configures AgentOps
observability settings.

| **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 SetAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `telemetryEnabled` | `https://learn.microsoft.com/dotnet/api/system.boolean` Optional. Whether to enable or disable AgentOps observability. When update_mask is provided, this field is ignored unless specified in the mask. |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to set observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityMetadata` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    bool telemetryEnabled = false;
    string dataSourceType = "";
    // Make the request
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> response = dataAgentServiceClient.SetAgentOpsObservability(parent, telemetryEnabled, dataSourceType);

    // Poll until the returned long-running operation is complete
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    SetAgentOpsObservabilityResponse 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<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> retrievedResponse = dataAgentServiceClient.PollOnceSetAgentOpsObservability(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        SetAgentOpsObservabilityResponse retrievedResult = retrievedResponse.Result;
    }

### SetAgentOpsObservability(SetAgentOpsObservabilityRequest, CallSettings)

    public virtual Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> SetAgentOpsObservability(SetAgentOpsObservabilityRequest request, CallSettings callSettings = null)

Enables/Disables required GCP services and configures AgentOps
observability settings.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    SetAgentOpsObservabilityRequest request = new SetAgentOpsObservabilityRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        TelemetryEnabled = false,
        DataSourceType = "",
        BqaaEnabled = false,
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> response = dataAgentServiceClient.SetAgentOpsObservability(request);

    // Poll until the returned long-running operation is complete
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    SetAgentOpsObservabilityResponse 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<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> retrievedResponse = dataAgentServiceClient.PollOnceSetAgentOpsObservability(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        SetAgentOpsObservabilityResponse retrievedResult = retrievedResponse.Result;
    }

### SetAgentOpsObservability(string, bool, string, CallSettings)

    public virtual Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> SetAgentOpsObservability(string parent, bool telemetryEnabled, string dataSourceType, CallSettings callSettings = null)

Enables/Disables required GCP services and configures AgentOps
observability settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for SetAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `telemetryEnabled` | `https://learn.microsoft.com/dotnet/api/system.boolean` Optional. Whether to enable or disable AgentOps observability. When update_mask is provided, this field is ignored unless specified in the mask. |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to set observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityMetadata` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    bool telemetryEnabled = false;
    string dataSourceType = "";
    // Make the request
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> response = dataAgentServiceClient.SetAgentOpsObservability(parent, telemetryEnabled, dataSourceType);

    // Poll until the returned long-running operation is complete
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    SetAgentOpsObservabilityResponse 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<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> retrievedResponse = dataAgentServiceClient.PollOnceSetAgentOpsObservability(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        SetAgentOpsObservabilityResponse retrievedResult = retrievedResponse.Result;
    }

### SetAgentOpsObservabilityAsync(LocationName, bool, string, CallSettings)

    public virtual Task<Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata>> SetAgentOpsObservabilityAsync(LocationName parent, bool telemetryEnabled, string dataSourceType, CallSettings callSettings = null)

Enables/Disables required GCP services and configures AgentOps
observability settings.

| **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 SetAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `telemetryEnabled` | `https://learn.microsoft.com/dotnet/api/system.boolean` Optional. Whether to enable or disable AgentOps observability. When update_mask is provided, this field is ignored unless specified in the mask. |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to set observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    bool telemetryEnabled = false;
    string dataSourceType = "";
    // Make the request
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> response = await dataAgentServiceClient.SetAgentOpsObservabilityAsync(parent, telemetryEnabled, dataSourceType);

    // Poll until the returned long-running operation is complete
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    SetAgentOpsObservabilityResponse 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<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceSetAgentOpsObservabilityAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        SetAgentOpsObservabilityResponse retrievedResult = retrievedResponse.Result;
    }

### SetAgentOpsObservabilityAsync(LocationName, bool, string, CancellationToken)

    public virtual Task<Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata>> SetAgentOpsObservabilityAsync(LocationName parent, bool telemetryEnabled, string dataSourceType, CancellationToken cancellationToken)

Enables/Disables required GCP services and configures AgentOps
observability settings.

| **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 SetAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `telemetryEnabled` | `https://learn.microsoft.com/dotnet/api/system.boolean` Optional. Whether to enable or disable AgentOps observability. When update_mask is provided, this field is ignored unless specified in the mask. |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to set observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    bool telemetryEnabled = false;
    string dataSourceType = "";
    // Make the request
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> response = await dataAgentServiceClient.SetAgentOpsObservabilityAsync(parent, telemetryEnabled, dataSourceType);

    // Poll until the returned long-running operation is complete
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    SetAgentOpsObservabilityResponse 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<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceSetAgentOpsObservabilityAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        SetAgentOpsObservabilityResponse retrievedResult = retrievedResponse.Result;
    }

### SetAgentOpsObservabilityAsync(SetAgentOpsObservabilityRequest, CallSettings)

    public virtual Task<Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata>> SetAgentOpsObservabilityAsync(SetAgentOpsObservabilityRequest request, CallSettings callSettings = null)

Enables/Disables required GCP services and configures AgentOps
observability settings.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    SetAgentOpsObservabilityRequest request = new SetAgentOpsObservabilityRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        TelemetryEnabled = false,
        DataSourceType = "",
        BqaaEnabled = false,
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> response = await dataAgentServiceClient.SetAgentOpsObservabilityAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    SetAgentOpsObservabilityResponse 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<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceSetAgentOpsObservabilityAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        SetAgentOpsObservabilityResponse retrievedResult = retrievedResponse.Result;
    }

### SetAgentOpsObservabilityAsync(SetAgentOpsObservabilityRequest, CancellationToken)

    public virtual Task<Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata>> SetAgentOpsObservabilityAsync(SetAgentOpsObservabilityRequest request, CancellationToken cancellationToken)

Enables/Disables required GCP services and configures AgentOps
observability settings.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    SetAgentOpsObservabilityRequest request = new SetAgentOpsObservabilityRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        TelemetryEnabled = false,
        DataSourceType = "",
        BqaaEnabled = false,
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> response = await dataAgentServiceClient.SetAgentOpsObservabilityAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    SetAgentOpsObservabilityResponse 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<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceSetAgentOpsObservabilityAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        SetAgentOpsObservabilityResponse retrievedResult = retrievedResponse.Result;
    }

### SetAgentOpsObservabilityAsync(string, bool, string, CallSettings)

    public virtual Task<Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata>> SetAgentOpsObservabilityAsync(string parent, bool telemetryEnabled, string dataSourceType, CallSettings callSettings = null)

Enables/Disables required GCP services and configures AgentOps
observability settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for SetAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `telemetryEnabled` | `https://learn.microsoft.com/dotnet/api/system.boolean` Optional. Whether to enable or disable AgentOps observability. When update_mask is provided, this field is ignored unless specified in the mask. |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to set observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    bool telemetryEnabled = false;
    string dataSourceType = "";
    // Make the request
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> response = await dataAgentServiceClient.SetAgentOpsObservabilityAsync(parent, telemetryEnabled, dataSourceType);

    // Poll until the returned long-running operation is complete
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    SetAgentOpsObservabilityResponse 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<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceSetAgentOpsObservabilityAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        SetAgentOpsObservabilityResponse retrievedResult = retrievedResponse.Result;
    }

### SetAgentOpsObservabilityAsync(string, bool, string, CancellationToken)

    public virtual Task<Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata>> SetAgentOpsObservabilityAsync(string parent, bool telemetryEnabled, string dataSourceType, CancellationToken cancellationToken)

Enables/Disables required GCP services and configures AgentOps
observability settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Parent value for SetAgentOpsObservabilityRequest. Format: projects/{project}/locations/{location} |
| `telemetryEnabled` | `https://learn.microsoft.com/dotnet/api/system.boolean` Optional. Whether to enable or disable AgentOps observability. When update_mask is provided, this field is ignored unless specified in the mask. |
| `dataSourceType` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The data source type for which to set observability settings. Examples: "bigquery", "looker" |
| `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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.SetAgentOpsObservabilityMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    bool telemetryEnabled = false;
    string dataSourceType = "";
    // Make the request
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> response = await dataAgentServiceClient.SetAgentOpsObservabilityAsync(parent, telemetryEnabled, dataSourceType);

    // Poll until the returned long-running operation is complete
    Operation<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    SetAgentOpsObservabilityResponse 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<SetAgentOpsObservabilityResponse, SetAgentOpsObservabilityMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceSetAgentOpsObservabilityAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        SetAgentOpsObservabilityResponse retrievedResult = retrievedResponse.Result;
    }

### SetIamPolicy(IResourceName, CallSettings)

    public virtual Policy SetIamPolicy(IResourceName resource, CallSettings callSettings = null)

Sets the IAM policy for a DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = dataAgentServiceClient.SetIamPolicy(resource);

### SetIamPolicy(SetIamPolicyRequest, CallSettings)

    public virtual Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the IAM policy for a DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    SetIamPolicyRequest request = new SetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Policy = new Policy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Policy response = dataAgentServiceClient.SetIamPolicy(request);

### SetIamPolicy(string, CallSettings)

    public virtual Policy SetIamPolicy(string resource, CallSettings callSettings = null)

Sets the IAM policy for a DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = dataAgentServiceClient.SetIamPolicy(resource);

### SetIamPolicyAsync(IResourceName, CallSettings)

    public virtual Task<Policy> SetIamPolicyAsync(IResourceName resource, CallSettings callSettings = null)

Sets the IAM policy for a DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = await dataAgentServiceClient.SetIamPolicyAsync(resource);

### SetIamPolicyAsync(IResourceName, CancellationToken)

    public virtual Task<Policy> SetIamPolicyAsync(IResourceName resource, CancellationToken cancellationToken)

Sets the IAM policy for a DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = await dataAgentServiceClient.SetIamPolicyAsync(resource);

### SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

    public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the IAM policy for a DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    SetIamPolicyRequest request = new SetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Policy = new Policy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Policy response = await dataAgentServiceClient.SetIamPolicyAsync(request);

### SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)

    public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CancellationToken cancellationToken)

Sets the IAM policy for a DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    SetIamPolicyRequest request = new SetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Policy = new Policy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Policy response = await dataAgentServiceClient.SetIamPolicyAsync(request);

### SetIamPolicyAsync(string, CallSettings)

    public virtual Task<Policy> SetIamPolicyAsync(string resource, CallSettings callSettings = null)

Sets the IAM policy for a DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = await dataAgentServiceClient.SetIamPolicyAsync(resource);

### SetIamPolicyAsync(string, CancellationToken)

    public virtual Task<Policy> SetIamPolicyAsync(string resource, CancellationToken cancellationToken)

Sets the IAM policy for a DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `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.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = await dataAgentServiceClient.SetIamPolicyAsync(resource);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentServiceClient#Google_Cloud_GeminiDataAnalytics_V1_DataAgentServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentServiceClient#Google_Cloud_GeminiDataAnalytics_V1_DataAgentServiceClient_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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentServiceClient#Google_Cloud_GeminiDataAnalytics_V1_DataAgentServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgentServiceClient#Google_Cloud_GeminiDataAnalytics_V1_DataAgentServiceClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdateDataAgent(DataAgent, FieldMask, CallSettings)

    public virtual Operation<DataAgent, OperationMetadata> UpdateDataAgent(DataAgent dataAgent, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being updated. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. Field mask is used to specify the fields to be overwritten in the DataAgent 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 with non-default values present in the request will be overwritten. If a wildcard mask is provided, 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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    DataAgent dataAgent = new DataAgent();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<DataAgent, OperationMetadata> response = dataAgentServiceClient.UpdateDataAgent(dataAgent, updateMask);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = dataAgentServiceClient.PollOnceUpdateDataAgent(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### UpdateDataAgent(UpdateDataAgentRequest, CallSettings)

    public virtual Operation<DataAgent, OperationMetadata> UpdateDataAgent(UpdateDataAgentRequest request, CallSettings callSettings = null)

Updates the parameters of a single DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    UpdateDataAgentRequest request = new UpdateDataAgentRequest
    {
        UpdateMask = new FieldMask(),
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    Operation<DataAgent, OperationMetadata> response = dataAgentServiceClient.UpdateDataAgent(request);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = dataAgentServiceClient.PollOnceUpdateDataAgent(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### UpdateDataAgentAsync(DataAgent, FieldMask, CallSettings)

    public virtual Task<Operation<DataAgent, OperationMetadata>> UpdateDataAgentAsync(DataAgent dataAgent, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being updated. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. Field mask is used to specify the fields to be overwritten in the DataAgent 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 with non-default values present in the request will be overwritten. If a wildcard mask is provided, 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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DataAgent dataAgent = new DataAgent();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<DataAgent, OperationMetadata> response = await dataAgentServiceClient.UpdateDataAgentAsync(dataAgent, updateMask);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceUpdateDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### UpdateDataAgentAsync(DataAgent, FieldMask, CancellationToken)

    public virtual Task<Operation<DataAgent, OperationMetadata>> UpdateDataAgentAsync(DataAgent dataAgent, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single DataAgent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being updated. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. Field mask is used to specify the fields to be overwritten in the DataAgent 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 with non-default values present in the request will be overwritten. If a wildcard mask is provided, 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.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgenthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.OperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DataAgent dataAgent = new DataAgent();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<DataAgent, OperationMetadata> response = await dataAgentServiceClient.UpdateDataAgentAsync(dataAgent, updateMask);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceUpdateDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### UpdateDataAgentAsync(UpdateDataAgentRequest, CallSettings)

    public virtual Task<Operation<DataAgent, OperationMetadata>> UpdateDataAgentAsync(UpdateDataAgentRequest request, CallSettings callSettings = null)

Updates the parameters of a single DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateDataAgentRequest request = new UpdateDataAgentRequest
    {
        UpdateMask = new FieldMask(),
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    Operation<DataAgent, OperationMetadata> response = await dataAgentServiceClient.UpdateDataAgentAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceUpdateDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### UpdateDataAgentAsync(UpdateDataAgentRequest, CancellationToken)

    public virtual Task<Operation<DataAgent, OperationMetadata>> UpdateDataAgentAsync(UpdateDataAgentRequest request, CancellationToken cancellationToken)

Updates the parameters of a single DataAgent.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateDataAgentRequest request = new UpdateDataAgentRequest
    {
        UpdateMask = new FieldMask(),
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    Operation<DataAgent, OperationMetadata> response = await dataAgentServiceClient.UpdateDataAgentAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<DataAgent, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    DataAgent 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<DataAgent, OperationMetadata> retrievedResponse = await dataAgentServiceClient.PollOnceUpdateDataAgentAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        DataAgent retrievedResult = retrievedResponse.Result;
    }

### UpdateDataAgentSync(DataAgent, FieldMask, CallSettings)

    public virtual DataAgent UpdateDataAgentSync(DataAgent dataAgent, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single DataAgent synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being updated. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. Field mask is used to specify the fields to be overwritten in the DataAgent 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 with non-default values present in the request will be overwritten. If a wildcard mask is provided, 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.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | The RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    DataAgent dataAgent = new DataAgent();
    FieldMask updateMask = new FieldMask();
    // Make the request
    DataAgent response = dataAgentServiceClient.UpdateDataAgentSync(dataAgent, updateMask);

### UpdateDataAgentSync(UpdateDataAgentRequest, CallSettings)

    public virtual DataAgent UpdateDataAgentSync(UpdateDataAgentRequest request, CallSettings callSettings = null)

Updates the parameters of a single DataAgent synchronously.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = DataAgentServiceClient.Create();
    // Initialize request argument(s)
    UpdateDataAgentRequest request = new UpdateDataAgentRequest
    {
        UpdateMask = new FieldMask(),
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    DataAgent response = dataAgentServiceClient.UpdateDataAgentSync(request);

### UpdateDataAgentSyncAsync(DataAgent, FieldMask, CallSettings)

    public virtual Task<DataAgent> UpdateDataAgentSyncAsync(DataAgent dataAgent, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single DataAgent synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being updated. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. Field mask is used to specify the fields to be overwritten in the DataAgent 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 with non-default values present in the request will be overwritten. If a wildcard mask is provided, 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.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DataAgent dataAgent = new DataAgent();
    FieldMask updateMask = new FieldMask();
    // Make the request
    DataAgent response = await dataAgentServiceClient.UpdateDataAgentSyncAsync(dataAgent, updateMask);

### UpdateDataAgentSyncAsync(DataAgent, FieldMask, CancellationToken)

    public virtual Task<DataAgent> UpdateDataAgentSyncAsync(DataAgent dataAgent, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single DataAgent synchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `dataAgent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` Required. The resource being updated. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. Field mask is used to specify the fields to be overwritten in the DataAgent 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 with non-default values present in the request will be overwritten. If a wildcard mask is provided, 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.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.DataAgent` | A Task containing the RPC response. |

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    DataAgent dataAgent = new DataAgent();
    FieldMask updateMask = new FieldMask();
    // Make the request
    DataAgent response = await dataAgentServiceClient.UpdateDataAgentSyncAsync(dataAgent, updateMask);

### UpdateDataAgentSyncAsync(UpdateDataAgentRequest, CallSettings)

    public virtual Task<DataAgent> UpdateDataAgentSyncAsync(UpdateDataAgentRequest request, CallSettings callSettings = null)

Updates the parameters of a single DataAgent synchronously.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateDataAgentRequest request = new UpdateDataAgentRequest
    {
        UpdateMask = new FieldMask(),
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    DataAgent response = await dataAgentServiceClient.UpdateDataAgentSyncAsync(request);

### UpdateDataAgentSyncAsync(UpdateDataAgentRequest, CancellationToken)

    public virtual Task<DataAgent> UpdateDataAgentSyncAsync(UpdateDataAgentRequest request, CancellationToken cancellationToken)

Updates the parameters of a single DataAgent synchronously.

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

**Example**

    // Create client
    DataAgentServiceClient dataAgentServiceClient = await DataAgentServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateDataAgentRequest request = new UpdateDataAgentRequest
    {
        UpdateMask = new FieldMask(),
        DataAgent = new DataAgent(),
        RequestId = "",
    };
    // Make the request
    DataAgent response = await dataAgentServiceClient.UpdateDataAgentSyncAsync(request);