Class DataA2AServiceGrpc.DataA2AServiceBlockingStub (0.27.0)

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

A stub to allow clients to do limited 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.DataA2AServiceBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected DataA2AServiceGrpc.DataA2AServiceBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
DataA2AServiceGrpc.DataA2AServiceBlockingStub
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

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

sendStreamingMessage(SendMessageRequest request)

public Iterator<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
Iterator<StreamResponse>