code: public Observable<ServiceResponse<OCR>> oCRFileInputWithServiceResponseAsync(String language, byte[] imageStream, Boolean cacheImage, Boolean enhanced) {
          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 (imageStream == null) {
              throw new IllegalArgumentException("Parameter imageStream is required and cannot be null.");
          }
          String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl());
          RequestBody imageStreamConverted = RequestBody.create(MediaType.parse("image/gif"), imageStream);
          return service.oCRFileInput(language, cacheImage, enhanced, imageStreamConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OCR>>>() {
                  @Override
                  public Observable<ServiceResponse<OCR>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<OCR> clientResponse = oCRFileInputDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: 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 imageStream The image file.
  @param cacheImage Whether to retain the submitted image for future use; defaults to false if omitted.
  @param enhanced When set to True, the image goes through additional processing to come with additional candidates.
  image/tiff is not supported when enhanced is set to true
  Note: This impacts the response time.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the OCR object