public Observable<ServiceResponse<PredictionQueryResult>> queryPredictionsWithServiceResponseAsync(UUID projectId, PredictionQueryToken query) {
        if (projectId == null) {
            throw new IllegalArgumentException("Parameter projectId is required and cannot be null.");
        }
        if (query == null) {
            throw new IllegalArgumentException("Parameter query is required and cannot be null.");
        }
        if (this.client.apiKey() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null.");
        }
        Validator.validate(query);
        return service.queryPredictions(projectId, query, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<PredictionQueryResult>>>() {
                @Override
                public Observable<ServiceResponse<PredictionQueryResult>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<PredictionQueryResult> clientResponse = queryPredictionsDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < PredictionQueryResult > > queryPredictionsWithServiceResponseAsync ( UUID projectId , PredictionQueryToken query ) { if ( projectId == null ) { throw new IllegalArgumentException ( "Parameter projectId is required and cannot be null." ) ; } if ( query == null ) { throw new IllegalArgumentException ( "Parameter query is required and cannot be null." ) ; } if ( this . client . apiKey ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiKey() is required and cannot be null." ) ; } Validator . validate ( query ) ; return service . queryPredictions ( projectId , query , this . client . apiKey ( ) , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < PredictionQueryResult > > > ( ) { @ Override public Observable < ServiceResponse < PredictionQueryResult > > call ( Response < ResponseBody > response ) { try { ServiceResponse < PredictionQueryResult > clientResponse = queryPredictionsDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Get images that were sent to your prediction endpoint.

@param projectId The project id
@param query Parameters used to query the predictions. Limited to combining 2 tags
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the PredictionQueryResult object