1.0.0-beta13 (latest) 1.0.0-beta12

    public sealed class DataA2AServiceClientImpl : DataA2AServiceClient

Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class DataA2AServiceClientImpl.

DataA2AService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [DataA2AServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient) \> DataA2AServiceClientImpl

## Inherited Members

[DataA2AServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_DefaultEndpoint) [DataA2AServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_DefaultScopes) [DataA2AServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_ServiceMetadata) [DataA2AServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_CreateAsync_System_Threading_CancellationToken_) [DataA2AServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_Create) [DataA2AServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_ShutdownDefaultChannelsAsync) [DataA2AServiceClient.SendMessageAsync(SendMessageRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_SendMessageAsync_Google_Cloud_GeminiDataAnalytics_V1Beta_SendMessageRequest_System_Threading_CancellationToken_) [DataA2AServiceClient.SendMessage(string, A2AMessage, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_SendMessage_System_String_Google_Cloud_GeminiDataAnalytics_V1Beta_A2AMessage_Google_Api_Gax_Grpc_CallSettings_) [DataA2AServiceClient.SendMessageAsync(string, A2AMessage, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_SendMessageAsync_System_String_Google_Cloud_GeminiDataAnalytics_V1Beta_A2AMessage_Google_Api_Gax_Grpc_CallSettings_) [DataA2AServiceClient.SendMessageAsync(string, A2AMessage, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_SendMessageAsync_System_String_Google_Cloud_GeminiDataAnalytics_V1Beta_A2AMessage_System_Threading_CancellationToken_) [DataA2AServiceClient.SendStreamingMessage(string, A2AMessage, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_SendStreamingMessage_System_String_Google_Cloud_GeminiDataAnalytics_V1Beta_A2AMessage_Google_Api_Gax_Grpc_CallSettings_) [DataA2AServiceClient.GetAgentCardAsync(GetAgentCardRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_GetAgentCardAsync_Google_Cloud_GeminiDataAnalytics_V1Beta_GetAgentCardRequest_System_Threading_CancellationToken_) [DataA2AServiceClient.GetAgentCard(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_GetAgentCard_System_String_Google_Api_Gax_Grpc_CallSettings_) [DataA2AServiceClient.GetAgentCardAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_GetAgentCardAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DataA2AServiceClient.GetAgentCardAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_GetAgentCardAsync_System_String_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.GeminiDataAnalytics.V1Beta.dll

## Remarks

DataA2AService defines the Agent-to-Agent (A2A) protocol service for Gemini
Data Analytics.

## Constructors

### DataA2AServiceClientImpl(DataA2AServiceClient, DataA2AServiceSettings, ILogger)

    public DataA2AServiceClientImpl(DataA2AService.DataA2AServiceClient grpcClient, DataA2AServiceSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AService.DataA2AServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceSettings` The base [DataA2AServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override DataA2AService.DataA2AServiceClient GrpcClient { get; }

The underlying gRPC DataA2AService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AService.DataA2AServiceClient` |   |

**Overrides** [DataA2AServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_GrpcClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

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

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

**Overrides** [DataA2AServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_LocationsClient)

## Methods

### GetAgentCard(GetAgentCardRequest, CallSettings)

    public override AgentCard GetAgentCard(GetAgentCardRequest request, CallSettings callSettings = null)

GetAgentCard returns the agent card for the agent.

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

**Overrides** [DataA2AServiceClient.GetAgentCard(GetAgentCardRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_GetAgentCard_Google_Cloud_GeminiDataAnalytics_V1Beta_GetAgentCardRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAgentCardAsync(GetAgentCardRequest, CallSettings)

    public override Task<AgentCard> GetAgentCardAsync(GetAgentCardRequest request, CallSettings callSettings = null)

GetAgentCard returns the agent card for the agent.

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

**Overrides** [DataA2AServiceClient.GetAgentCardAsync(GetAgentCardRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_GetAgentCardAsync_Google_Cloud_GeminiDataAnalytics_V1Beta_GetAgentCardRequest_Google_Api_Gax_Grpc_CallSettings_)

### SendMessage(SendMessageRequest, CallSettings)

    public override SendMessageResponse SendMessage(SendMessageRequest request, CallSettings callSettings = null)

Send a message to the agent. This is a blocking call that will return the
task once it is completed.

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

**Overrides** [DataA2AServiceClient.SendMessage(SendMessageRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_SendMessage_Google_Cloud_GeminiDataAnalytics_V1Beta_SendMessageRequest_Google_Api_Gax_Grpc_CallSettings_)

### SendMessageAsync(SendMessageRequest, CallSettings)

    public override Task<SendMessageResponse> SendMessageAsync(SendMessageRequest request, CallSettings callSettings = null)

Send a message to the agent. This is a blocking call that will return the
task once it is completed.

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

**Overrides** [DataA2AServiceClient.SendMessageAsync(SendMessageRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_SendMessageAsync_Google_Cloud_GeminiDataAnalytics_V1Beta_SendMessageRequest_Google_Api_Gax_Grpc_CallSettings_)

### SendStreamingMessage(SendMessageRequest, CallSettings)

    public override DataA2AServiceClient.SendStreamingMessageStream SendStreamingMessage(SendMessageRequest request, CallSettings callSettings = null)

SendStreamingMessage is a streaming call that will return a stream of
task update events until the Task is in an interrupted or terminal state.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.SendMessageRequest` 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.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClienthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient.SendStreamingMessageStream` | The server stream. |

**Overrides** [DataA2AServiceClient.SendStreamingMessage(SendMessageRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataA2AServiceClient#Google_Cloud_GeminiDataAnalytics_V1Beta_DataA2AServiceClient_SendStreamingMessage_Google_Cloud_GeminiDataAnalytics_V1Beta_SendMessageRequest_Google_Api_Gax_Grpc_CallSettings_)