code: public Observable<ServiceResponse<LanguageBatchResult>> detectLanguageWithServiceResponseAsync(DetectLanguageOptionalParameter detectLanguageOptionalParameter) {
          if (this.client.azureRegion() == null) {
              throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null.");
          }
          final List<Input> documents = detectLanguageOptionalParameter != null ? detectLanguageOptionalParameter.documents() : null;
  
          return detectLanguageWithServiceResponseAsync(documents);
      }
docs: The API returns the detected language and a numeric score between 0 and 1.
  Scores close to 1 indicate 100% certainty that the identified language is true. A total of 120 languages are supported.
  
  @param detectLanguageOptionalParameter 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 LanguageBatchResult object