Package org.a2aproject.sdk.grpc
Class A2AServiceGrpc.A2AServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<A2AServiceGrpc.A2AServiceBlockingStub>
org.a2aproject.sdk.grpc.A2AServiceGrpc.A2AServiceBlockingStub
- Enclosing class:
- A2AServiceGrpc
public static final class A2AServiceGrpc.A2AServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<A2AServiceGrpc.A2AServiceBlockingStub>
A stub to allow clients to do limited synchronous rpc calls to service A2AService.
Provides operations for interacting with agents using the A2A protocol.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected A2AServiceGrpc.A2AServiceBlockingStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) cancelTask(CancelTaskRequest request) Cancels a task in progress.(-- api-linter: client-libraries::4232::required-fields=disabled api-linter: core::0133::method-signature=disabled api-linter: core::0133::request-message-name=disabled aip.dev/not-precedent: method_signature preserved for backwards compatibility --) Creates a push notification config for a task.com.google.protobuf.EmptyDeletes a push notification config for a task.Gets the extended agent card for the authenticated agent.getTask(GetTaskRequest request) Gets the latest state of a task.Gets a push notification config for a task.Get a list of push notifications configured for a task.listTasks(ListTasksRequest request) Lists tasks that match the specified filter.sendMessage(SendMessageRequest request) Sends a message to an agent.sendStreamingMessage(SendMessageRequest request) Sends a streaming message to an agent, allowing for real-time interaction and status updates.subscribeToTask(SubscribeToTaskRequest request) Subscribes to task updates for tasks not in a terminal state.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected A2AServiceGrpc.A2AServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<A2AServiceGrpc.A2AServiceBlockingStub>
-
sendMessage
Sends a message to an agent.
-
sendStreamingMessage
Sends a streaming message to an agent, allowing for real-time interaction and status updates. Streaming version of `SendMessage`
-
getTask
Gets the latest state of a task.
-
listTasks
Lists tasks that match the specified filter.
-
cancelTask
Cancels a task in progress.
-
subscribeToTask
Subscribes to task updates for tasks not in a terminal state. Returns `UnsupportedOperationError` if the task is already in a terminal state (completed, failed, canceled, rejected).
-
createTaskPushNotificationConfig
public TaskPushNotificationConfig createTaskPushNotificationConfig(TaskPushNotificationConfig request) (-- api-linter: client-libraries::4232::required-fields=disabled api-linter: core::0133::method-signature=disabled api-linter: core::0133::request-message-name=disabled aip.dev/not-precedent: method_signature preserved for backwards compatibility --) Creates a push notification config for a task. -
getTaskPushNotificationConfig
public TaskPushNotificationConfig getTaskPushNotificationConfig(GetTaskPushNotificationConfigRequest request) Gets a push notification config for a task.
-
listTaskPushNotificationConfigs
public ListTaskPushNotificationConfigsResponse listTaskPushNotificationConfigs(ListTaskPushNotificationConfigsRequest request) Get a list of push notifications configured for a task.
-
getExtendedAgentCard
Gets the extended agent card for the authenticated agent.
-
deleteTaskPushNotificationConfig
public com.google.protobuf.Empty deleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigRequest request) Deletes a push notification config for a task.
-