Data Analytics API with Gemini v1beta API - Class DataA2AService.DataA2AServiceBase (1.0.0-beta12)

[BindServiceMethod(typeof(DataA2AService), "BindService")]
public abstract class DataA2AService.DataA2AServiceBase

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

Base class for server-side implementations of DataA2AService

Inheritance

object > DataA2AService.DataA2AServiceBase

Namespace

Google.Cloud.GeminiDataAnalytics.V1Beta

Assembly

Google.Cloud.GeminiDataAnalytics.V1Beta.dll

Methods

GetAgentCard(GetAgentCardRequest, ServerCallContext)

public virtual Task<AgentCard> GetAgentCard(GetAgentCardRequest request, ServerCallContext context)

GetAgentCard returns the agent card for the agent.

Parameters
Name Description
request GetAgentCardRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskAgentCard

The response to send back to the client (wrapped by a task).

SendMessage(SendMessageRequest, ServerCallContext)

public virtual Task<SendMessageResponse> SendMessage(SendMessageRequest request, ServerCallContext context)

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 received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskSendMessageResponse

The response to send back to the client (wrapped by a task).

SendStreamingMessage(SendMessageRequest, IServerStreamWriter<StreamResponse>, ServerCallContext)

public virtual Task SendStreamingMessage(SendMessageRequest request, IServerStreamWriter<StreamResponse> responseStream, ServerCallContext context)

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 received from the client.

responseStream IServerStreamWriterStreamResponse

Used for sending responses back to the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
Task

A task indicating completion of the handler.