ai.api.model.GoogleAssistantResponseMessages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libai Show documentation
Show all versions of libai Show documentation
API.AI Java SDK allows using voice commands and integration with dialog scenarios defined for a particular agent in API.AI.
package ai.api.model;
import java.util.List;
public abstract class GoogleAssistantResponseMessages extends ResponseMessage {
protected GoogleAssistantResponseMessages(MessageType type) {
super(type, Platform.GOOGLE);
}
public static class CardImage {
private String url;
/**
* @return the URL
*/
public final String getUrl() {
return url;
}
/**
* @param url the URL to set
*/
public final void setUrl(String url) {
this.url = url;
}
}
public static class OptionInfo {
private String key;
private List synonyms;
/**
* @return the key
*/
public final String getKey() {
return key;
}
/**
* @param key the key to set
*/
public final void setKey(String key) {
this.key = key;
}
/**
* @return the synonyms
*/
public final List getSynonyms() {
return synonyms;
}
/**
* @param synonyms the synonyms to set
*/
public final void setSynonyms(List synonyms) {
this.synonyms = synonyms;
}
}
public static class CardItem {
private OptionInfo optionInfo;
private String title;
private String description;
private CardImage image;
/**
* @return the optionInfo
*/
public final OptionInfo getOptionInfo() {
return optionInfo;
}
/**
* @param optionInfo the optionInfo to set
*/
public final void setOptionInfo(OptionInfo optionInfo) {
this.optionInfo = optionInfo;
}
/**
* @return the title
*/
public final String getTitle() {
return title;
}
/**
* @param title the title to set
*/
public final void setTitle(String title) {
this.title = title;
}
/**
* @return the description
*/
public final String getDescription() {
return description;
}
/**
* @param description the description to set
*/
public final void setDescription(String description) {
this.description = description;
}
/**
* @return the image
*/
public final CardImage getImage() {
return image;
}
/**
* @param image the image to set
*/
public final void setImage(CardImage image) {
this.image = image;
}
}
public static class ResponseChatBubble extends GoogleAssistantResponseMessages {
private Boolean customizeAudio;
private List- items;
public ResponseChatBubble() {
super(MessageType.CHAT_BUBBLE);
}
/**
* @return the customizeAudio
*/
public final Boolean getCustomizeAudio() {
return customizeAudio;
}
/**
* @param customizeAudio the customizeAudio to set
*/
public final void setCustomizeAudio(Boolean customizeAudio) {
this.customizeAudio = customizeAudio;
}
/**
* @return the items
*/
public final List
- getItems() {
return items;
}
/**
* @param items the items to set
*/
public final void setItems(List
- items) {
this.items = items;
}
public static class Item {
private String textToSpeech;
private String ssml;
private String displayText;
/**
* @return the textToSpeech
*/
public final String getTextToSpeech() {
return textToSpeech;
}
/**
* @param textToSpeech the textToSpeech to set
*/
public final void setTextToSpeech(String textToSpeech) {
this.textToSpeech = textToSpeech;
}
/**
* @return the SSML
*/
public final String getSsml() {
return ssml;
}
/**
* @param ssml the SSML to set
*/
public final void setSsml(String ssml) {
this.ssml = ssml;
}
/**
* @return the displayText
*/
public final String getDisplayText() {
return displayText;
}
/**
* @param displayText the displayText to set
*/
public final void setDisplayText(String displayText) {
this.displayText = displayText;
}
}
}
public static class ResponseBasicCard extends GoogleAssistantResponseMessages {
private String title;
private String subtitle;
private String formattedText;
private CardImage image;
private List