1414 * - TaskPushNotificationConfig are a resource whose parent is a task.
1515 * They have get, list and create methods.
1616 * - AgentCard is a static resource with only a get method.
17- * fields are not present as they don't comply with AIP rules, and the
18- * optional history_length on the get task method is not present as it also
19- * violates AIP-127 and AIP-131.
2017 * </pre>
2118 */
2219@ javax .annotation .Generated (
@@ -123,6 +120,37 @@ io.a2a.grpc.Task> getGetTaskMethod() {
123120 return getGetTaskMethod ;
124121 }
125122
123+ private static volatile io .grpc .MethodDescriptor <io .a2a .grpc .ListTasksRequest ,
124+ io .a2a .grpc .ListTasksResponse > getListTasksMethod ;
125+
126+ @ io .grpc .stub .annotations .RpcMethod (
127+ fullMethodName = SERVICE_NAME + '/' + "ListTasks" ,
128+ requestType = io .a2a .grpc .ListTasksRequest .class ,
129+ responseType = io .a2a .grpc .ListTasksResponse .class ,
130+ methodType = io .grpc .MethodDescriptor .MethodType .UNARY )
131+ public static io .grpc .MethodDescriptor <io .a2a .grpc .ListTasksRequest ,
132+ io .a2a .grpc .ListTasksResponse > getListTasksMethod () {
133+ io .grpc .MethodDescriptor <io .a2a .grpc .ListTasksRequest , io .a2a .grpc .ListTasksResponse > getListTasksMethod ;
134+ if ((getListTasksMethod = A2AServiceGrpc .getListTasksMethod ) == null ) {
135+ synchronized (A2AServiceGrpc .class ) {
136+ if ((getListTasksMethod = A2AServiceGrpc .getListTasksMethod ) == null ) {
137+ A2AServiceGrpc .getListTasksMethod = getListTasksMethod =
138+ io .grpc .MethodDescriptor .<io .a2a .grpc .ListTasksRequest , io .a2a .grpc .ListTasksResponse >newBuilder ()
139+ .setType (io .grpc .MethodDescriptor .MethodType .UNARY )
140+ .setFullMethodName (generateFullMethodName (SERVICE_NAME , "ListTasks" ))
141+ .setSampledToLocalTracing (true )
142+ .setRequestMarshaller (io .grpc .protobuf .ProtoUtils .marshaller (
143+ io .a2a .grpc .ListTasksRequest .getDefaultInstance ()))
144+ .setResponseMarshaller (io .grpc .protobuf .ProtoUtils .marshaller (
145+ io .a2a .grpc .ListTasksResponse .getDefaultInstance ()))
146+ .setSchemaDescriptor (new A2AServiceMethodDescriptorSupplier ("ListTasks" ))
147+ .build ();
148+ }
149+ }
150+ }
151+ return getListTasksMethod ;
152+ }
153+
126154 private static volatile io .grpc .MethodDescriptor <io .a2a .grpc .CancelTaskRequest ,
127155 io .a2a .grpc .Task > getCancelTaskMethod ;
128156
@@ -411,9 +439,6 @@ public A2AServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
411439 * - TaskPushNotificationConfig are a resource whose parent is a task.
412440 * They have get, list and create methods.
413441 * - AgentCard is a static resource with only a get method.
414- * fields are not present as they don't comply with AIP rules, and the
415- * optional history_length on the get task method is not present as it also
416- * violates AIP-127 and AIP-131.
417442 * </pre>
418443 */
419444 public interface AsyncService {
@@ -450,6 +475,16 @@ default void getTask(io.a2a.grpc.GetTaskRequest request,
450475 io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (getGetTaskMethod (), responseObserver );
451476 }
452477
478+ /**
479+ * <pre>
480+ * List tasks with optional filtering and pagination.
481+ * </pre>
482+ */
483+ default void listTasks (io .a2a .grpc .ListTasksRequest request ,
484+ io .grpc .stub .StreamObserver <io .a2a .grpc .ListTasksResponse > responseObserver ) {
485+ io .grpc .stub .ServerCalls .asyncUnimplementedUnaryCall (getListTasksMethod (), responseObserver );
486+ }
487+
453488 /**
454489 * <pre>
455490 * Cancel a task from the agent. If supported one should expect no
@@ -538,9 +573,6 @@ default void deleteTaskPushNotificationConfig(io.a2a.grpc.DeleteTaskPushNotifica
538573 * - TaskPushNotificationConfig are a resource whose parent is a task.
539574 * They have get, list and create methods.
540575 * - AgentCard is a static resource with only a get method.
541- * fields are not present as they don't comply with AIP rules, and the
542- * optional history_length on the get task method is not present as it also
543- * violates AIP-127 and AIP-131.
544576 * </pre>
545577 */
546578 public static abstract class A2AServiceImplBase
@@ -564,9 +596,6 @@ public static abstract class A2AServiceImplBase
564596 * - TaskPushNotificationConfig are a resource whose parent is a task.
565597 * They have get, list and create methods.
566598 * - AgentCard is a static resource with only a get method.
567- * fields are not present as they don't comply with AIP rules, and the
568- * optional history_length on the get task method is not present as it also
569- * violates AIP-127 and AIP-131.
570599 * </pre>
571600 */
572601 public static final class A2AServiceStub
@@ -617,6 +646,17 @@ public void getTask(io.a2a.grpc.GetTaskRequest request,
617646 getChannel ().newCall (getGetTaskMethod (), getCallOptions ()), request , responseObserver );
618647 }
619648
649+ /**
650+ * <pre>
651+ * List tasks with optional filtering and pagination.
652+ * </pre>
653+ */
654+ public void listTasks (io .a2a .grpc .ListTasksRequest request ,
655+ io .grpc .stub .StreamObserver <io .a2a .grpc .ListTasksResponse > responseObserver ) {
656+ io .grpc .stub .ClientCalls .asyncUnaryCall (
657+ getChannel ().newCall (getListTasksMethod (), getCallOptions ()), request , responseObserver );
658+ }
659+
620660 /**
621661 * <pre>
622662 * Cancel a task from the agent. If supported one should expect no
@@ -712,9 +752,6 @@ public void deleteTaskPushNotificationConfig(io.a2a.grpc.DeleteTaskPushNotificat
712752 * - TaskPushNotificationConfig are a resource whose parent is a task.
713753 * They have get, list and create methods.
714754 * - AgentCard is a static resource with only a get method.
715- * fields are not present as they don't comply with AIP rules, and the
716- * optional history_length on the get task method is not present as it also
717- * violates AIP-127 and AIP-131.
718755 * </pre>
719756 */
720757 public static final class A2AServiceBlockingV2Stub
@@ -764,6 +801,16 @@ public io.a2a.grpc.Task getTask(io.a2a.grpc.GetTaskRequest request) {
764801 getChannel (), getGetTaskMethod (), getCallOptions (), request );
765802 }
766803
804+ /**
805+ * <pre>
806+ * List tasks with optional filtering and pagination.
807+ * </pre>
808+ */
809+ public io .a2a .grpc .ListTasksResponse listTasks (io .a2a .grpc .ListTasksRequest request ) {
810+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
811+ getChannel (), getListTasksMethod (), getCallOptions (), request );
812+ }
813+
767814 /**
768815 * <pre>
769816 * Cancel a task from the agent. If supported one should expect no
@@ -854,9 +901,6 @@ public com.google.protobuf.Empty deleteTaskPushNotificationConfig(io.a2a.grpc.De
854901 * - TaskPushNotificationConfig are a resource whose parent is a task.
855902 * They have get, list and create methods.
856903 * - AgentCard is a static resource with only a get method.
857- * fields are not present as they don't comply with AIP rules, and the
858- * optional history_length on the get task method is not present as it also
859- * violates AIP-127 and AIP-131.
860904 * </pre>
861905 */
862906 public static final class A2AServiceBlockingStub
@@ -905,6 +949,16 @@ public io.a2a.grpc.Task getTask(io.a2a.grpc.GetTaskRequest request) {
905949 getChannel (), getGetTaskMethod (), getCallOptions (), request );
906950 }
907951
952+ /**
953+ * <pre>
954+ * List tasks with optional filtering and pagination.
955+ * </pre>
956+ */
957+ public io .a2a .grpc .ListTasksResponse listTasks (io .a2a .grpc .ListTasksRequest request ) {
958+ return io .grpc .stub .ClientCalls .blockingUnaryCall (
959+ getChannel (), getListTasksMethod (), getCallOptions (), request );
960+ }
961+
908962 /**
909963 * <pre>
910964 * Cancel a task from the agent. If supported one should expect no
@@ -994,9 +1048,6 @@ public com.google.protobuf.Empty deleteTaskPushNotificationConfig(io.a2a.grpc.De
9941048 * - TaskPushNotificationConfig are a resource whose parent is a task.
9951049 * They have get, list and create methods.
9961050 * - AgentCard is a static resource with only a get method.
997- * fields are not present as they don't comply with AIP rules, and the
998- * optional history_length on the get task method is not present as it also
999- * violates AIP-127 and AIP-131.
10001051 * </pre>
10011052 */
10021053 public static final class A2AServiceFutureStub
@@ -1035,6 +1086,17 @@ public com.google.common.util.concurrent.ListenableFuture<io.a2a.grpc.Task> getT
10351086 getChannel ().newCall (getGetTaskMethod (), getCallOptions ()), request );
10361087 }
10371088
1089+ /**
1090+ * <pre>
1091+ * List tasks with optional filtering and pagination.
1092+ * </pre>
1093+ */
1094+ public com .google .common .util .concurrent .ListenableFuture <io .a2a .grpc .ListTasksResponse > listTasks (
1095+ io .a2a .grpc .ListTasksRequest request ) {
1096+ return io .grpc .stub .ClientCalls .futureUnaryCall (
1097+ getChannel ().newCall (getListTasksMethod (), getCallOptions ()), request );
1098+ }
1099+
10381100 /**
10391101 * <pre>
10401102 * Cancel a task from the agent. If supported one should expect no
@@ -1106,13 +1168,14 @@ public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Em
11061168 private static final int METHODID_SEND_MESSAGE = 0 ;
11071169 private static final int METHODID_SEND_STREAMING_MESSAGE = 1 ;
11081170 private static final int METHODID_GET_TASK = 2 ;
1109- private static final int METHODID_CANCEL_TASK = 3 ;
1110- private static final int METHODID_TASK_SUBSCRIPTION = 4 ;
1111- private static final int METHODID_CREATE_TASK_PUSH_NOTIFICATION_CONFIG = 5 ;
1112- private static final int METHODID_GET_TASK_PUSH_NOTIFICATION_CONFIG = 6 ;
1113- private static final int METHODID_LIST_TASK_PUSH_NOTIFICATION_CONFIG = 7 ;
1114- private static final int METHODID_GET_AGENT_CARD = 8 ;
1115- private static final int METHODID_DELETE_TASK_PUSH_NOTIFICATION_CONFIG = 9 ;
1171+ private static final int METHODID_LIST_TASKS = 3 ;
1172+ private static final int METHODID_CANCEL_TASK = 4 ;
1173+ private static final int METHODID_TASK_SUBSCRIPTION = 5 ;
1174+ private static final int METHODID_CREATE_TASK_PUSH_NOTIFICATION_CONFIG = 6 ;
1175+ private static final int METHODID_GET_TASK_PUSH_NOTIFICATION_CONFIG = 7 ;
1176+ private static final int METHODID_LIST_TASK_PUSH_NOTIFICATION_CONFIG = 8 ;
1177+ private static final int METHODID_GET_AGENT_CARD = 9 ;
1178+ private static final int METHODID_DELETE_TASK_PUSH_NOTIFICATION_CONFIG = 10 ;
11161179
11171180 private static final class MethodHandlers <Req , Resp > implements
11181181 io .grpc .stub .ServerCalls .UnaryMethod <Req , Resp >,
@@ -1143,6 +1206,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
11431206 serviceImpl .getTask ((io .a2a .grpc .GetTaskRequest ) request ,
11441207 (io .grpc .stub .StreamObserver <io .a2a .grpc .Task >) responseObserver );
11451208 break ;
1209+ case METHODID_LIST_TASKS :
1210+ serviceImpl .listTasks ((io .a2a .grpc .ListTasksRequest ) request ,
1211+ (io .grpc .stub .StreamObserver <io .a2a .grpc .ListTasksResponse >) responseObserver );
1212+ break ;
11461213 case METHODID_CANCEL_TASK :
11471214 serviceImpl .cancelTask ((io .a2a .grpc .CancelTaskRequest ) request ,
11481215 (io .grpc .stub .StreamObserver <io .a2a .grpc .Task >) responseObserver );
@@ -1210,6 +1277,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
12101277 io .a2a .grpc .GetTaskRequest ,
12111278 io .a2a .grpc .Task >(
12121279 service , METHODID_GET_TASK )))
1280+ .addMethod (
1281+ getListTasksMethod (),
1282+ io .grpc .stub .ServerCalls .asyncUnaryCall (
1283+ new MethodHandlers <
1284+ io .a2a .grpc .ListTasksRequest ,
1285+ io .a2a .grpc .ListTasksResponse >(
1286+ service , METHODID_LIST_TASKS )))
12131287 .addMethod (
12141288 getCancelTaskMethod (),
12151289 io .grpc .stub .ServerCalls .asyncUnaryCall (
@@ -1310,6 +1384,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
13101384 .addMethod (getSendMessageMethod ())
13111385 .addMethod (getSendStreamingMessageMethod ())
13121386 .addMethod (getGetTaskMethod ())
1387+ .addMethod (getListTasksMethod ())
13131388 .addMethod (getCancelTaskMethod ())
13141389 .addMethod (getTaskSubscriptionMethod ())
13151390 .addMethod (getCreateTaskPushNotificationConfigMethod ())
0 commit comments