public sealed class DataA2AServiceClientImpl : DataA2AServiceClientReference documentation and code samples for the Data Analytics API with Gemini v1beta API class DataA2AServiceClientImpl.
DataA2AService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.GeminiDataAnalytics.V1BetaAssembly
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 |
DataA2AServiceDataA2AServiceClientThe underlying gRPC client. |
settings |
DataA2AServiceSettingsThe base DataA2AServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override DataA2AService.DataA2AServiceClient GrpcClient { get; }The underlying gRPC DataA2AService client
| Property Value | |
|---|---|
| Type | Description |
DataA2AServiceDataA2AServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
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 |
GetAgentCardRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
AgentCard |
The RPC response. |
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 |
GetAgentCardRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskAgentCard |
A Task containing the RPC response. |
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 |
SendMessageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SendMessageResponse |
The RPC response. |
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 |
SendMessageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSendMessageResponse |
A Task containing the RPC response. |
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 |
SendMessageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DataA2AServiceClientSendStreamingMessageStream |
The server stream. |