-
- All Implemented Interfaces:
-
ai.tock.bot.engine.I18nTranslator,ai.tock.translator.I18nKeyProvider
public class ChatButton extends ChatCardElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatButton.ChatTextButtonpublic final classChatButton.ChatIconExternalButtonpublic final classChatButton.ChatIconEmbeddedButton
-
Field Summary
Fields Modifier and Type Field Description private ChatButtonActionbuttonActionprivate final List<ChatCardElement>childrenprivate final I18nTranslatori18nTranslatorprivate final StringcontextIdprivate final ConnectorTypetargetConnectorTypeprivate final UserInterfaceTypeuserInterfaceTypeprivate final LocaleuserLocale
-
Method Summary
Modifier and Type Method Description final ChatButtonActiongetButtonAction()final UnitsetButtonAction(ChatButtonAction buttonAction)final Unitlink(String linkUrl)final Unitaction(String action, Map<String, String> parameters)final UnitnlpAction(CharSequence text)final UnitchoiceAction(Intent intent, Parameters parameters)-
Methods inherited from class ai.tock.bot.connector.googlechat.builder.ChatCardElement
getChildren, getI18nTranslator, hasChatButtons -
Methods inherited from class ai.tock.bot.engine.I18nTranslator
getContextId, getTargetConnectorType, getUserInterfaceType, getUserLocale, translate, translate, translate, translateAndReturnBlankAsNull -
Methods inherited from class ai.tock.translator.I18nKeyProvider
i18n, i18n -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getButtonAction
final ChatButtonAction getButtonAction()
-
setButtonAction
final Unit setButtonAction(ChatButtonAction buttonAction)
-
nlpAction
final Unit nlpAction(CharSequence text)
-
choiceAction
final Unit choiceAction(Intent intent, Parameters parameters)
-
-
-
-