code: public Observable<ServiceResponse<LuisResult>> resolveWithServiceResponseAsync(String appId, String query, ResolveOptionalParameter resolveOptionalParameter) {
          if (this.client.endpoint() == null) {
              throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");
          }
          if (appId == null) {
              throw new IllegalArgumentException("Parameter appId is required and cannot be null.");
          }
          if (query == null) {
              throw new IllegalArgumentException("Parameter query is required and cannot be null.");
          }
          final Double timezoneOffset = resolveOptionalParameter != null ? resolveOptionalParameter.timezoneOffset() : null;
          final Boolean verbose = resolveOptionalParameter != null ? resolveOptionalParameter.verbose() : null;
          final Boolean staging = resolveOptionalParameter != null ? resolveOptionalParameter.staging() : null;
          final Boolean spellCheck = resolveOptionalParameter != null ? resolveOptionalParameter.spellCheck() : null;
          final String bingSpellCheckSubscriptionKey = resolveOptionalParameter != null ? resolveOptionalParameter.bingSpellCheckSubscriptionKey() : null;
          final Boolean log = resolveOptionalParameter != null ? resolveOptionalParameter.log() : null;
  
          return resolveWithServiceResponseAsync(appId, query, timezoneOffset, verbose, staging, spellCheck, bingSpellCheckSubscriptionKey, log);
      }
docs: Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.
  
  @param appId The LUIS application ID (Guid).
  @param query The utterance to predict.
  @param resolveOptionalParameter 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 LuisResult object