Package org.a2aproject.sdk.compat03.grpc
Class A2AServiceGrpc
java.lang.Object
org.a2aproject.sdk.compat03.grpc.A2AServiceGrpc
A2AService defines the gRPC version of the A2A protocol. This has a slightly different shape than the JSONRPC version to better conform to AIP-127, where appropriate. The nouns are AgentCard, Message, Task and TaskPushNotificationConfig. - Messages are not a standard resource so there is no get/delete/update/list interface, only a send and stream custom methods. - Tasks have a get interface and custom cancel and subscribe methods. - TaskPushNotificationConfig are a resource whose parent is a task. They have get, list and create methods. - AgentCard is a static resource with only a get method. fields are not present as they don't comply with AIP rules, and the optional history_length on the get task method is not present as it also violates AIP-127 and AIP-131.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA stub to allow clients to do limited synchronous rpc calls to service A2AService.static final classA stub to allow clients to do synchronous rpc calls to service A2AService.static final classA stub to allow clients to do ListenableFuture-style rpc calls to service A2AService.static classBase class for the server implementation of the service A2AService.static final classA stub to allow clients to do asynchronous rpc calls to service A2AService.static interfaceA2AService defines the gRPC version of the A2A protocol. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic final io.grpc.ServerServiceDefinitionbindService(A2AServiceGrpc.AsyncService service) static io.grpc.MethodDescriptor<CancelTaskRequest,Task> static io.grpc.MethodDescriptor<CreateTaskPushNotificationConfigRequest,TaskPushNotificationConfig> static io.grpc.MethodDescriptor<DeleteTaskPushNotificationConfigRequest,com.google.protobuf.Empty> static io.grpc.MethodDescriptor<GetAgentCardRequest,AgentCard> static io.grpc.MethodDescriptor<GetTaskRequest,Task> static io.grpc.MethodDescriptor<GetTaskPushNotificationConfigRequest,TaskPushNotificationConfig> static io.grpc.MethodDescriptor<ListTaskPushNotificationConfigRequest,ListTaskPushNotificationConfigResponse> static io.grpc.MethodDescriptor<SendMessageRequest,SendMessageResponse> static io.grpc.MethodDescriptor<SendMessageRequest,StreamResponse> static io.grpc.ServiceDescriptorstatic io.grpc.MethodDescriptor<TaskSubscriptionRequest,StreamResponse> newBlockingStub(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the servicenewBlockingV2Stub(io.grpc.Channel channel) Creates a new blocking-style stub that supports all types of calls on the servicenewFutureStub(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the servicenewStub(io.grpc.Channel channel) Creates a new async stub that supports all call types for the service
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getSendMessageMethod
public static io.grpc.MethodDescriptor<SendMessageRequest,SendMessageResponse> getSendMessageMethod() -
getSendStreamingMessageMethod
public static io.grpc.MethodDescriptor<SendMessageRequest,StreamResponse> getSendStreamingMessageMethod() -
getGetTaskMethod
-
getCancelTaskMethod
-
getTaskSubscriptionMethod
public static io.grpc.MethodDescriptor<TaskSubscriptionRequest,StreamResponse> getTaskSubscriptionMethod() -
getCreateTaskPushNotificationConfigMethod
public static io.grpc.MethodDescriptor<CreateTaskPushNotificationConfigRequest,TaskPushNotificationConfig> getCreateTaskPushNotificationConfigMethod() -
getGetTaskPushNotificationConfigMethod
public static io.grpc.MethodDescriptor<GetTaskPushNotificationConfigRequest,TaskPushNotificationConfig> getGetTaskPushNotificationConfigMethod() -
getListTaskPushNotificationConfigMethod
public static io.grpc.MethodDescriptor<ListTaskPushNotificationConfigRequest,ListTaskPushNotificationConfigResponse> getListTaskPushNotificationConfigMethod() -
getGetAgentCardMethod
-
getDeleteTaskPushNotificationConfigMethod
public static io.grpc.MethodDescriptor<DeleteTaskPushNotificationConfigRequest,com.google.protobuf.Empty> getDeleteTaskPushNotificationConfigMethod() -
newStub
Creates a new async stub that supports all call types for the service -
newBlockingV2Stub
Creates a new blocking-style stub that supports all types of calls on the service -
newBlockingStub
Creates a new blocking-style stub that supports unary and streaming output calls on the service -
newFutureStub
Creates a new ListenableFuture-style stub that supports unary calls on the service -
bindService
public static final io.grpc.ServerServiceDefinition bindService(A2AServiceGrpc.AsyncService service) -
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-