code: public Observable<ServiceResponse<OCR>> oCRMethodWithServiceResponseAsync(String language, OCRMethodOptionalParameter oCRMethodOptionalParameter) {
          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.");
          }
          final Boolean cacheImage = oCRMethodOptionalParameter != null ? oCRMethodOptionalParameter.cacheImage() : null;
          final Boolean enhanced = oCRMethodOptionalParameter != null ? oCRMethodOptionalParameter.enhanced() : null;
  
          return oCRMethodWithServiceResponseAsync(language, cacheImage, enhanced);
      }
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 oCRMethodOptionalParameter 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