/*
 * 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.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.dialogflow.v2.model;

/**
 * The request message for Participants.AnalyzeContent.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Dialogflow API. For a detailed explanation see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudDialogflowV2AnalyzeContentRequest extends com.google.api.client.json.GenericJson {

  /**
   * Parameters for a human assist query.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDialogflowV2AssistQueryParameters assistQueryParams;

  /**
   * Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter
   * from the session, clients should explicitly set the parameter value to null. Note: this field
   * should only be used if you are connecting to a Dialogflow CX agent.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.Map<String, java.lang.Object> cxParameters;

  /**
   * An input event to send to Dialogflow.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDialogflowV2EventInput eventInput;

  /**
   * Parameters for a Dialogflow virtual-agent query.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDialogflowV2QueryParameters queryParams;

  /**
   * Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be
   * configured for the associated conversation profile are not used when calling AnalyzeContent. If
   * this configuration is not supplied, speech synthesis is disabled.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDialogflowV2OutputAudioConfig replyAudioConfig;

  /**
   * A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is
   * recommended. This request is only idempotent if a `request_id` is provided.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String requestId;

  /**
   * The natural language text to be processed.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDialogflowV2TextInput textInput;

  /**
   * Parameters for a human assist query.
   * @return value or {@code null} for none
   */
  public GoogleCloudDialogflowV2AssistQueryParameters getAssistQueryParams() {
    return assistQueryParams;
  }

  /**
   * Parameters for a human assist query.
   * @param assistQueryParams assistQueryParams or {@code null} for none
   */
  public GoogleCloudDialogflowV2AnalyzeContentRequest setAssistQueryParams(GoogleCloudDialogflowV2AssistQueryParameters assistQueryParams) {
    this.assistQueryParams = assistQueryParams;
    return this;
  }

  /**
   * Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter
   * from the session, clients should explicitly set the parameter value to null. Note: this field
   * should only be used if you are connecting to a Dialogflow CX agent.
   * @return value or {@code null} for none
   */
  public java.util.Map<String, java.lang.Object> getCxParameters() {
    return cxParameters;
  }

  /**
   * Additional parameters to be put into Dialogflow CX session parameters. To remove a parameter
   * from the session, clients should explicitly set the parameter value to null. Note: this field
   * should only be used if you are connecting to a Dialogflow CX agent.
   * @param cxParameters cxParameters or {@code null} for none
   */
  public GoogleCloudDialogflowV2AnalyzeContentRequest setCxParameters(java.util.Map<String, java.lang.Object> cxParameters) {
    this.cxParameters = cxParameters;
    return this;
  }

  /**
   * An input event to send to Dialogflow.
   * @return value or {@code null} for none
   */
  public GoogleCloudDialogflowV2EventInput getEventInput() {
    return eventInput;
  }

  /**
   * An input event to send to Dialogflow.
   * @param eventInput eventInput or {@code null} for none
   */
  public GoogleCloudDialogflowV2AnalyzeContentRequest setEventInput(GoogleCloudDialogflowV2EventInput eventInput) {
    this.eventInput = eventInput;
    return this;
  }

  /**
   * Parameters for a Dialogflow virtual-agent query.
   * @return value or {@code null} for none
   */
  public GoogleCloudDialogflowV2QueryParameters getQueryParams() {
    return queryParams;
  }

  /**
   * Parameters for a Dialogflow virtual-agent query.
   * @param queryParams queryParams or {@code null} for none
   */
  public GoogleCloudDialogflowV2AnalyzeContentRequest setQueryParams(GoogleCloudDialogflowV2QueryParameters queryParams) {
    this.queryParams = queryParams;
    return this;
  }

  /**
   * Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be
   * configured for the associated conversation profile are not used when calling AnalyzeContent. If
   * this configuration is not supplied, speech synthesis is disabled.
   * @return value or {@code null} for none
   */
  public GoogleCloudDialogflowV2OutputAudioConfig getReplyAudioConfig() {
    return replyAudioConfig;
  }

  /**
   * Speech synthesis configuration. The speech synthesis settings for a virtual agent that may be
   * configured for the associated conversation profile are not used when calling AnalyzeContent. If
   * this configuration is not supplied, speech synthesis is disabled.
   * @param replyAudioConfig replyAudioConfig or {@code null} for none
   */
  public GoogleCloudDialogflowV2AnalyzeContentRequest setReplyAudioConfig(GoogleCloudDialogflowV2OutputAudioConfig replyAudioConfig) {
    this.replyAudioConfig = replyAudioConfig;
    return this;
  }

  /**
   * A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is
   * recommended. This request is only idempotent if a `request_id` is provided.
   * @return value or {@code null} for none
   */
  public java.lang.String getRequestId() {
    return requestId;
  }

  /**
   * A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is
   * recommended. This request is only idempotent if a `request_id` is provided.
   * @param requestId requestId or {@code null} for none
   */
  public GoogleCloudDialogflowV2AnalyzeContentRequest setRequestId(java.lang.String requestId) {
    this.requestId = requestId;
    return this;
  }

  /**
   * The natural language text to be processed.
   * @return value or {@code null} for none
   */
  public GoogleCloudDialogflowV2TextInput getTextInput() {
    return textInput;
  }

  /**
   * The natural language text to be processed.
   * @param textInput textInput or {@code null} for none
   */
  public GoogleCloudDialogflowV2AnalyzeContentRequest setTextInput(GoogleCloudDialogflowV2TextInput textInput) {
    this.textInput = textInput;
    return this;
  }

  @Override
  public GoogleCloudDialogflowV2AnalyzeContentRequest set(String fieldName, Object value) {
    return (GoogleCloudDialogflowV2AnalyzeContentRequest) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudDialogflowV2AnalyzeContentRequest clone() {
    return (GoogleCloudDialogflowV2AnalyzeContentRequest) super.clone();
  }

}
