Class DataA2AServiceGrpc.DataA2AServiceBlockingV2Stub (0.27.0)

public static final class DataA2AServiceGrpc.DataA2AServiceBlockingV2Stub extends AbstractBlockingStub<DataA2AServiceGrpc.DataA2AServiceBlockingV2Stub>

A stub to allow clients to do synchronous rpc calls to service DataA2AService.

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

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > DataA2AServiceGrpc.DataA2AServiceBlockingV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected DataA2AServiceGrpc.DataA2AServiceBlockingV2Stub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
DataA2AServiceGrpc.DataA2AServiceBlockingV2Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

getAgentCard(GetAgentCardRequest request)

public AgentCard getAgentCard(GetAgentCardRequest request)

GetAgentCard returns the agent card for the agent.

Parameter
Name Description
request GetAgentCardRequest
Returns
Type Description
AgentCard
Exceptions
Type Description
io.grpc.StatusException

sendMessage(SendMessageRequest request)

public SendMessageResponse sendMessage(SendMessageRequest request)

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

Parameter
Name Description
request SendMessageRequest
Returns
Type Description
SendMessageResponse
Exceptions
Type Description
io.grpc.StatusException

sendStreamingMessage(SendMessageRequest request)

public BlockingClientCall<?,StreamResponse> sendStreamingMessage(SendMessageRequest request)

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

Parameter
Name Description
request SendMessageRequest
Returns
Type Description
io.grpc.stub.BlockingClientCall<?,StreamResponse>