public Observable<ServiceResponse<OCR>> oCRUrlInputWithServiceResponseAsync(String language, String contentType, BodyModelModel imageUrl, OCRUrlInputOptionalParameter oCRUrlInputOptionalParameter) {
        if (this.client.baseUrl() == null) {
            throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null.");
        }
        if (language == null) {
            throw new IllegalArgumentException("Parameter language is required and cannot be null.");
        }
        if (contentType == null) {
            throw new IllegalArgumentException("Parameter contentType is required and cannot be null.");
        }
        if (imageUrl == null) {
            throw new IllegalArgumentException("Parameter imageUrl is required and cannot be null.");
        }
        Validator.validate(imageUrl);
        final Boolean cacheImage = oCRUrlInputOptionalParameter != null ? oCRUrlInputOptionalParameter.cacheImage() : null;
        final Boolean enhanced = oCRUrlInputOptionalParameter != null ? oCRUrlInputOptionalParameter.enhanced() : null;

        return oCRUrlInputWithServiceResponseAsync(language, contentType, imageUrl, cacheImage, enhanced);
    }
public Observable < ServiceResponse < OCR > > oCRUrlInputWithServiceResponseAsync ( String language , String contentType , BodyModelModel imageUrl , OCRUrlInputOptionalParameter oCRUrlInputOptionalParameter ) { if ( this . client . baseUrl ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.baseUrl() is required and cannot be null." ) ; } if ( language == null ) { throw new IllegalArgumentException ( "Parameter language is required and cannot be null." ) ; } if ( contentType == null ) { throw new IllegalArgumentException ( "Parameter contentType is required and cannot be null." ) ; } if ( imageUrl == null ) { throw new IllegalArgumentException ( "Parameter imageUrl is required and cannot be null." ) ; } Validator . validate ( imageUrl ) ; final Boolean cacheImage = oCRUrlInputOptionalParameter != null ? oCRUrlInputOptionalParameter . cacheImage ( ) : null ; final Boolean enhanced = oCRUrlInputOptionalParameter != null ? oCRUrlInputOptionalParameter . enhanced ( ) : null ; return oCRUrlInputWithServiceResponseAsync ( language , contentType , imageUrl , cacheImage , enhanced ) ; }
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.

@param language Language of the terms.
@param contentType The content type.
@param imageUrl The image url.
@param oCRUrlInputOptionalParameter the object representing the optional parameters to be set before calling this API
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the OCR object