code: public Observable<ServiceResponse<SentimentBatchResult>> sentimentWithServiceResponseAsync(SentimentOptionalParameter sentimentOptionalParameter) {
          if (this.client.azureRegion() == null) {
              throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null.");
          }
          final List<MultiLanguageInput> documents = sentimentOptionalParameter != null ? sentimentOptionalParameter.documents() : null;
  
          return sentimentWithServiceResponseAsync(documents);
      }
docs: The API returns a numeric score between 0 and 1.
  Scores close to 1 indicate positive sentiment, while scores close to 0 indicate negative sentiment. A score of 0.5 indicates the lack of sentiment (e.g. a factoid statement). See the &lt;a href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview#supported-languages"&gt;Text Analytics Documentation&lt;/a&gt; for details about the languages that are supported by sentiment analysis.
  
  @param sentimentOptionalParameter 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 SentimentBatchResult object