|
1 | 1 | package io.a2a.grpc.utils; |
2 | 2 |
|
3 | 3 | import io.a2a.grpc.GetExtendedAgentCardRequest; |
| 4 | +import io.a2a.grpc.StreamResponse; |
4 | 5 | import java.util.ArrayList; |
5 | 6 | import java.util.List; |
6 | | - |
7 | | -import io.a2a.grpc.ListTasksRequest; |
8 | | -import io.a2a.grpc.StreamResponse; |
9 | 7 | import io.a2a.grpc.mapper.AgentCardMapper; |
10 | 8 | import io.a2a.grpc.mapper.DeleteTaskPushNotificationConfigParamsMapper; |
11 | 9 | import io.a2a.grpc.mapper.GetTaskPushNotificationConfigParamsMapper; |
|
31 | 29 | import io.a2a.spec.GetTaskPushNotificationConfigParams; |
32 | 30 | import io.a2a.spec.InvalidParamsError; |
33 | 31 | import io.a2a.spec.ListTaskPushNotificationConfigParams; |
| 32 | +import io.a2a.spec.ListTasksParams; |
| 33 | +import io.a2a.spec.ListTasksResult; |
34 | 34 | import io.a2a.spec.Message; |
35 | 35 | import io.a2a.spec.MessageSendConfiguration; |
36 | 36 | import io.a2a.spec.MessageSendParams; |
@@ -90,11 +90,11 @@ public static io.a2a.grpc.Task task(Task task) { |
90 | 90 | return TaskMapper.INSTANCE.toProto(task); |
91 | 91 | } |
92 | 92 |
|
93 | | - public static io.a2a.grpc.ListTasksResponse listTasksResult(io.a2a.spec.ListTasksResult result) { |
| 93 | + public static io.a2a.grpc.ListTasksResponse listTasksResult(ListTasksResult result) { |
94 | 94 | return ListTasksResultMapper.INSTANCE.toProto(result); |
95 | 95 | } |
96 | 96 |
|
97 | | - public static io.a2a.grpc.ListTasksRequest listTasksParams(io.a2a.spec.ListTasksParams params) { |
| 97 | + public static io.a2a.grpc.ListTasksRequest listTasksParams(ListTasksParams params) { |
98 | 98 | return ListTasksParamsMapper.INSTANCE.toProto(params); |
99 | 99 | } |
100 | 100 |
|
@@ -203,10 +203,10 @@ public static TaskQueryParams taskQueryParams(io.a2a.grpc.GetTaskRequestOrBuilde |
203 | 203 | return TaskQueryParamsMapper.INSTANCE.fromProto(reqProto); |
204 | 204 | } |
205 | 205 |
|
206 | | - public static io.a2a.spec.ListTasksParams listTasksParams(io.a2a.grpc.ListTasksRequestOrBuilder request) { |
207 | | - ListTasksRequest reqProto = request instanceof ListTasksRequest |
208 | | - ? (ListTasksRequest) request |
209 | | - : ((ListTasksRequest.Builder) request).build(); |
| 206 | + public static ListTasksParams listTasksParams(io.a2a.grpc.ListTasksRequestOrBuilder request) { |
| 207 | + io.a2a.grpc.ListTasksRequest reqProto = request instanceof io.a2a.grpc.ListTasksRequest |
| 208 | + ? (io.a2a.grpc.ListTasksRequest) request |
| 209 | + : ((io.a2a.grpc.ListTasksRequest.Builder) request).build(); |
210 | 210 | return ListTasksParamsMapper.INSTANCE.fromProto(reqProto); |
211 | 211 | } |
212 | 212 |
|
@@ -306,7 +306,7 @@ public static TaskArtifactUpdateEvent taskArtifactUpdateEvent(io.a2a.grpc.TaskAr |
306 | 306 | return TaskArtifactUpdateEventMapper.INSTANCE.fromProto(eventProto); |
307 | 307 | } |
308 | 308 |
|
309 | | - public static io.a2a.spec.ListTasksResult listTasksResult(io.a2a.grpc.ListTasksResponseOrBuilder listTasksResponse) { |
| 309 | + public static ListTasksResult listTasksResult(io.a2a.grpc.ListTasksResponseOrBuilder listTasksResponse) { |
310 | 310 | io.a2a.grpc.ListTasksResponse eventProto = listTasksResponse instanceof io.a2a.grpc.ListTasksResponse |
311 | 311 | ? (io.a2a.grpc.ListTasksResponse) listTasksResponse |
312 | 312 | : ((io.a2a.grpc.ListTasksResponse.Builder) listTasksResponse).build(); |
|
0 commit comments