All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.watson.assistant.v2.model.MessageInputOptionsStateless Maven / Gradle / Ivy

/*
 * (C) Copyright IBM Corp. 2020.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */
package com.ibm.watson.assistant.v2.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/** Optional properties that control how the assistant responds. */
public class MessageInputOptionsStateless extends GenericModel {

  protected Boolean restart;

  @SerializedName("alternate_intents")
  protected Boolean alternateIntents;

  protected MessageInputOptionsSpelling spelling;
  protected Boolean debug;

  /** Builder. */
  public static class Builder {
    private Boolean restart;
    private Boolean alternateIntents;
    private MessageInputOptionsSpelling spelling;
    private Boolean debug;

    private Builder(MessageInputOptionsStateless messageInputOptionsStateless) {
      this.restart = messageInputOptionsStateless.restart;
      this.alternateIntents = messageInputOptionsStateless.alternateIntents;
      this.spelling = messageInputOptionsStateless.spelling;
      this.debug = messageInputOptionsStateless.debug;
    }

    /** Instantiates a new builder. */
    public Builder() {}

    /**
     * Builds a MessageInputOptionsStateless.
     *
     * @return the new MessageInputOptionsStateless instance
     */
    public MessageInputOptionsStateless build() {
      return new MessageInputOptionsStateless(this);
    }

    /**
     * Set the restart.
     *
     * @param restart the restart
     * @return the MessageInputOptionsStateless builder
     */
    public Builder restart(Boolean restart) {
      this.restart = restart;
      return this;
    }

    /**
     * Set the alternateIntents.
     *
     * @param alternateIntents the alternateIntents
     * @return the MessageInputOptionsStateless builder
     */
    public Builder alternateIntents(Boolean alternateIntents) {
      this.alternateIntents = alternateIntents;
      return this;
    }

    /**
     * Set the spelling.
     *
     * @param spelling the spelling
     * @return the MessageInputOptionsStateless builder
     */
    public Builder spelling(MessageInputOptionsSpelling spelling) {
      this.spelling = spelling;
      return this;
    }

    /**
     * Set the debug.
     *
     * @param debug the debug
     * @return the MessageInputOptionsStateless builder
     */
    public Builder debug(Boolean debug) {
      this.debug = debug;
      return this;
    }
  }

  protected MessageInputOptionsStateless(Builder builder) {
    restart = builder.restart;
    alternateIntents = builder.alternateIntents;
    spelling = builder.spelling;
    debug = builder.debug;
  }

  /**
   * New builder.
   *
   * @return a MessageInputOptionsStateless builder
   */
  public Builder newBuilder() {
    return new Builder(this);
  }

  /**
   * Gets the restart.
   *
   * 

Whether to restart dialog processing at the root of the dialog, regardless of any previously * visited nodes. **Note:** This does not affect `turn_count` or any other context variables. * * @return the restart */ public Boolean restart() { return restart; } /** * Gets the alternateIntents. * *

Whether to return more than one intent. Set to `true` to return all matching intents. * * @return the alternateIntents */ public Boolean alternateIntents() { return alternateIntents; } /** * Gets the spelling. * *

Spelling correction options for the message. Any options specified on an individual message * override the settings configured for the skill. * * @return the spelling */ public MessageInputOptionsSpelling spelling() { return spelling; } /** * Gets the debug. * *

Whether to return additional diagnostic information. Set to `true` to return additional * information in the `output.debug` property. * * @return the debug */ public Boolean debug() { return debug; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy