Data Analytics API with Gemini v1beta API - Class DataA2AServiceClientImpl (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 > DataA2AServiceClient > DataA2AServiceClientImpl

Namespace

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 DataA2AServiceDataA2AServiceClient

The underlying gRPC client.

settings DataA2AServiceSettings

The base DataA2AServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override DataA2AService.DataA2AServiceClient GrpcClient { get; }

The underlying gRPC DataA2AService client

Property Value
Type Description
DataA2AServiceDataA2AServiceClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

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 GetAgentCardRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AgentCard

The RPC response.

Overrides

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 GetAgentCardRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAgentCard

A Task containing the RPC response.

Overrides

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 SendMessageRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SendMessageResponse

The RPC response.

Overrides

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 SendMessageRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSendMessageResponse

A Task containing the RPC response.

Overrides

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 SendMessageRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataA2AServiceClientSendStreamingMessageStream

The server stream.

Overrides