/** * Lists operations that match the specified filter in the request. If the server doesn't support * this method, it returns `UNIMPLEMENTED`. * * <p>NOTE: the `name` binding below allows API services to override the binding to use different * resource name schemes, such as `users/*/operations`. * * <p>Sample code: * * <pre><code> * try (OperationsClient operationsClient = OperationsClient.create()) { * String name = ""; * String filter = ""; * for (Operation element : operationsClient.listOperations(name, filter).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param name The name of the operation collection. * @param filter The standard list filter. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOperationsPagedResponse listOperations(String name, String filter) { ListOperationsRequest request = ListOperationsRequest.newBuilder().setName(name).setFilter(filter).build(); return listOperations(request); }
/** * Lists operations that match the specified filter in the request. If the server doesn't support * this method, it returns `UNIMPLEMENTED`. * * <p>NOTE: the `name` binding below allows API services to override the binding to use different * resource name schemes, such as `users/*/operations`. * * <p>Sample code: * * <pre><code> * try (OperationsClient operationsClient = OperationsClient.create()) { * String name = ""; * String filter = ""; * for (Operation element : operationsClient.listOperations(name, filter).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param name The name of the operation collection. * @param filter The standard list filter. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOperationsPagedResponse listOperations(String name, String filter) { ListOperationsRequest request = ListOperationsRequest.newBuilder().setName(name).setFilter(filter).build(); return listOperations(request); }
@Override public ListOperationsRequest injectToken(ListOperationsRequest payload, String token) { return ListOperationsRequest.newBuilder(payload).setPageToken(token).build(); }
@Override public ListOperationsRequest injectPageSize( ListOperationsRequest payload, int pageSize) { return ListOperationsRequest.newBuilder(payload).setPageSize(pageSize).build(); }
@Override public ListOperationsRequest injectToken(ListOperationsRequest payload, String token) { return ListOperationsRequest.newBuilder(payload).setPageToken(token).build(); }
@Override public ListOperationsRequest injectPageSize( ListOperationsRequest payload, int pageSize) { return ListOperationsRequest.newBuilder(payload).setPageSize(pageSize).build(); }