Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into update-grpc
  • Loading branch information
anFatum committed Dec 5, 2025
commit 0577dd5dd38915049592d9a40b7a4aff2545bf38
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ public TaskPushNotificationConfig setTaskPushNotificationConfiguration(TaskPushN

try {
A2AServiceBlockingV2Stub stubWithMetadata = createBlockingStubWithMetadata(context, payloadAndHeaders);
return FromProto.taskPushNotificationConfig(stubWithMetadata.createTaskPushNotificationConfig(grpcRequest));
} catch (StatusRuntimeException | StatusException e) {
return FromProto.taskPushNotificationConfig(stubWithMetadata.setTaskPushNotificationConfig(grpcRequest));
} catch (StatusRuntimeException e) {
throw GrpcErrorMapper.mapGrpcError(e, "Failed to create task push notification config: ");
}
}
Expand Down
12 changes: 6 additions & 6 deletions spec-grpc/src/main/java/io/a2a/grpc/A2AServiceGrpc.java
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,9 @@ public io.a2a.grpc.Task cancelTask(io.a2a.grpc.CancelTaskRequest request) throws
* Set a push notification config for a task.
* </pre>
*/
public io.a2a.grpc.TaskPushNotificationConfig createTaskPushNotificationConfig(io.a2a.grpc.CreateTaskPushNotificationConfigRequest request) throws io.grpc.StatusException {
return io.grpc.stub.ClientCalls.blockingV2UnaryCall(
getChannel(), getCreateTaskPushNotificationConfigMethod(), getCallOptions(), request);
public io.a2a.grpc.TaskPushNotificationConfig setTaskPushNotificationConfig(io.a2a.grpc.SetTaskPushNotificationConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetTaskPushNotificationConfigMethod(), getCallOptions(), request);
}

/**
Expand Down Expand Up @@ -809,9 +809,9 @@ public io.a2a.grpc.ListTaskPushNotificationConfigResponse listTaskPushNotificati
* GetExtendedAgentCard returns the extended agent card for authenticated agents.
* </pre>
*/
public io.a2a.grpc.AgentCard getAgentCard(io.a2a.grpc.GetAgentCardRequest request) throws io.grpc.StatusException {
return io.grpc.stub.ClientCalls.blockingV2UnaryCall(
getChannel(), getGetAgentCardMethod(), getCallOptions(), request);
public io.a2a.grpc.AgentCard getExtendedAgentCard(io.a2a.grpc.GetExtendedAgentCardRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetExtendedAgentCardMethod(), getCallOptions(), request);
}

/**
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.