Package org.a2aproject.sdk.grpc
Class A2AServiceGrpc.A2AServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<A2AServiceGrpc.A2AServiceFutureStub>
org.a2aproject.sdk.grpc.A2AServiceGrpc.A2AServiceFutureStub
- Enclosing class:
- A2AServiceGrpc
public static final class A2AServiceGrpc.A2AServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<A2AServiceGrpc.A2AServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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.A2AServiceFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<Task>cancelTask(CancelTaskRequest request) Cancels a task in progress.com.google.common.util.concurrent.ListenableFuture<TaskPushNotificationConfig>(-- 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.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>Deletes a push notification config for a task.com.google.common.util.concurrent.ListenableFuture<AgentCard>Gets the extended agent card for the authenticated agent.com.google.common.util.concurrent.ListenableFuture<Task>getTask(GetTaskRequest request) Gets the latest state of a task.com.google.common.util.concurrent.ListenableFuture<TaskPushNotificationConfig>Gets a push notification config for a task.com.google.common.util.concurrent.ListenableFuture<ListTaskPushNotificationConfigsResponse>Get a list of push notifications configured for a task.com.google.common.util.concurrent.ListenableFuture<ListTasksResponse>listTasks(ListTasksRequest request) Lists tasks that match the specified filter.com.google.common.util.concurrent.ListenableFuture<SendMessageResponse>sendMessage(SendMessageRequest request) Sends a message to an agent.Methods inherited from class io.grpc.stub.AbstractFutureStub
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.A2AServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<A2AServiceGrpc.A2AServiceFutureStub>
-
sendMessage
public com.google.common.util.concurrent.ListenableFuture<SendMessageResponse> sendMessage(SendMessageRequest request) Sends a message to an agent.
-
getTask
Gets the latest state of a task.
-
listTasks
public com.google.common.util.concurrent.ListenableFuture<ListTasksResponse> listTasks(ListTasksRequest request) Lists tasks that match the specified filter.
-
cancelTask
public com.google.common.util.concurrent.ListenableFuture<Task> cancelTask(CancelTaskRequest request) Cancels a task in progress.
-
createTaskPushNotificationConfig
public com.google.common.util.concurrent.ListenableFuture<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 com.google.common.util.concurrent.ListenableFuture<TaskPushNotificationConfig> getTaskPushNotificationConfig(GetTaskPushNotificationConfigRequest request) Gets a push notification config for a task.
-
listTaskPushNotificationConfigs
public com.google.common.util.concurrent.ListenableFuture<ListTaskPushNotificationConfigsResponse> listTaskPushNotificationConfigs(ListTaskPushNotificationConfigsRequest request) Get a list of push notifications configured for a task.
-
getExtendedAgentCard
public com.google.common.util.concurrent.ListenableFuture<AgentCard> getExtendedAgentCard(GetExtendedAgentCardRequest request) Gets the extended agent card for the authenticated agent.
-
deleteTaskPushNotificationConfig
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigRequest request) Deletes a push notification config for a task.
-