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

com.google.api.services.dialogflow.v3.model.GoogleCloudDialogflowV2IntentMessageSimpleResponse Maven / Gradle / Ivy

The newest version!
/*
 * 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.v3.model;

/**
 * The simple response message containing speech or text.
 *
 * 

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: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GoogleCloudDialogflowV2IntentMessageSimpleResponse extends com.google.api.client.json.GenericJson { /** * Optional. The text to display. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String displayText; /** * One of text_to_speech or ssml must be provided. Structured spoken response to the user in the * SSML format. Mutually exclusive with text_to_speech. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String ssml; /** * One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually * exclusive with ssml. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String textToSpeech; /** * Optional. The text to display. * @return value or {@code null} for none */ public java.lang.String getDisplayText() { return displayText; } /** * Optional. The text to display. * @param displayText displayText or {@code null} for none */ public GoogleCloudDialogflowV2IntentMessageSimpleResponse setDisplayText(java.lang.String displayText) { this.displayText = displayText; return this; } /** * One of text_to_speech or ssml must be provided. Structured spoken response to the user in the * SSML format. Mutually exclusive with text_to_speech. * @return value or {@code null} for none */ public java.lang.String getSsml() { return ssml; } /** * One of text_to_speech or ssml must be provided. Structured spoken response to the user in the * SSML format. Mutually exclusive with text_to_speech. * @param ssml ssml or {@code null} for none */ public GoogleCloudDialogflowV2IntentMessageSimpleResponse setSsml(java.lang.String ssml) { this.ssml = ssml; return this; } /** * One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually * exclusive with ssml. * @return value or {@code null} for none */ public java.lang.String getTextToSpeech() { return textToSpeech; } /** * One of text_to_speech or ssml must be provided. The plain text of the speech output. Mutually * exclusive with ssml. * @param textToSpeech textToSpeech or {@code null} for none */ public GoogleCloudDialogflowV2IntentMessageSimpleResponse setTextToSpeech(java.lang.String textToSpeech) { this.textToSpeech = textToSpeech; return this; } @Override public GoogleCloudDialogflowV2IntentMessageSimpleResponse set(String fieldName, Object value) { return (GoogleCloudDialogflowV2IntentMessageSimpleResponse) super.set(fieldName, value); } @Override public GoogleCloudDialogflowV2IntentMessageSimpleResponse clone() { return (GoogleCloudDialogflowV2IntentMessageSimpleResponse) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy