public class GABuildersKt
@NotNull public static ai.tock.bot.connector.ConnectorType getGaConnectorType()
The Google Assistant ConnectorType.
@NotNull public static <T extends Bus<T>> T sendToGoogleAssistant(@NotNull T $this$sendToGoogleAssistant, @NotNull kotlin.jvm.functions.Function1<? super T,ai.tock.bot.connector.ga.GAResponseConnectorMessage> messageProvider, long delay)
Sends a Google Assistant message only if the ConnectorType of the current BotBus is gaConnectorType.
gaConnectorType@NotNull public static <T extends Bus<T>> T endForGoogleAssistant(@NotNull T $this$endForGoogleAssistant, @NotNull kotlin.jvm.functions.Function1<? super T,ai.tock.bot.connector.ga.GAResponseConnectorMessage> messageProvider, long delay)
Sends a Google Assistant message as last bot answer, only if the ConnectorType of the current BotBus is gaConnectorType.
gaConnectorType@NotNull public static <T extends Bus<T>> T withGoogleAssistant(@NotNull T $this$withGoogleAssistant, @NotNull kotlin.jvm.functions.Function0<ai.tock.bot.connector.ga.GAResponseConnectorMessage> messageProvider)
Adds a Google Assistant ConnectorMessage if the current connector is Google Assistant. You need to call BotBus.send or BotBus.end later to send this message.
@NotNull public static <T extends Bus<T>> T withGoogleVoiceAssistant(@NotNull T $this$withGoogleVoiceAssistant, @NotNull kotlin.jvm.functions.Function0<ai.tock.bot.connector.ga.GAResponseConnectorMessage> messageProvider)
If the device supports audio, adds a Google Assistant ConnectorMessage if the current connector is Google Assistant. You need to call BotBus.send or BotBus.end later to send this message.
@NotNull public static GAResponseConnectorMessage gaFinalMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaFinalMessage, @NotNull GARichResponse richResponse)
Final Google Assistant message (end of conversation).
@NotNull public static GAResponseConnectorMessage gaFinalMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaFinalMessage, @Nullable java.lang.CharSequence text)
Final Google Assistant message (end of conversation).
@NotNull public static GAResponseConnectorMessage gaMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaMessage, @NotNull GAInputPrompt inputPrompt, @NotNull java.util.List<ai.tock.bot.connector.ga.model.response.GAExpectedIntent> possibleIntents, @NotNull java.util.List<java.lang.String> speechBiasingHints)
Google Assistant Message with all available parameters.
@NotNull public static GAResponseConnectorMessage gaLogout()
@NotNull public static GAResponseConnectorMessage gaMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaMessage, @NotNull java.lang.CharSequence text, @NotNull java.lang.CharSequence... suggestions)
Google Assistant Message with suggestions.
@NotNull public static GAResponseConnectorMessage gaMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaMessage, @NotNull java.lang.CharSequence text, @NotNull GABasicCard basicCard)
Google Assistant Message with class GABasicCard.
class GABasicCard@NotNull public static GAResponseConnectorMessage gaMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaMessage, @NotNull GARichResponse richResponse)
Google Assistant Message with class GARichResponse.
class GARichResponse@NotNull public static GAResponseConnectorMessage gaMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaMessage, @NotNull GAExpectedIntent possibleIntent)
Google Assistant Message with one class GAExpectedIntent.
class GAExpectedIntent@NotNull public static GAResponseConnectorMessage gaMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaMessage, @NotNull java.util.List<ai.tock.bot.connector.ga.model.response.GAExpectedIntent> possibleIntents)
Google Assistant Message with multiple class GAExpectedIntent.
class GAExpectedIntent@NotNull public static GAResponseConnectorMessage gaMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaMessage, @NotNull java.lang.CharSequence text, @NotNull java.util.List<ai.tock.bot.connector.ga.model.response.GAExpectedIntent> possibleIntents)
Google Assistant Message with text and multiple class GAExpectedIntent.
class GAExpectedIntent@NotNull public static GAExpectedIntent permissionIntent(@NotNull ai.tock.bot.engine.I18nTranslator $this$permissionIntent, @Nullable java.lang.CharSequence optionalContext, @NotNull ai.tock.bot.connector.ga.model.request.GAPermission... permissions)
Google Assistant Message asking for enum GAPermission.
enum GAPermission@NotNull public static GAExpectedIntent updatePermissionIntent(@NotNull ai.tock.bot.engine.I18nTranslator $this$updatePermissionIntent, @NotNull java.lang.String intent)
Google Assistant Message asking for update enum GAPermission.
enum GAPermission@NotNull public static GALinkOutSuggestion linkOutSuggestion(@NotNull ai.tock.bot.engine.I18nTranslator $this$linkOutSuggestion, @NotNull java.lang.CharSequence destinationName, @NotNull java.lang.String url)
Provides a class GALinkOutSuggestion.
class GALinkOutSuggestion@NotNull public static GAItem item(@NotNull ai.tock.bot.engine.I18nTranslator $this$item, @Nullable GASimpleResponse simpleResponse, @Nullable GABasicCard basicCard, @Nullable GAStructuredResponse structuredResponse)
Provides a class GAItem with all available parameters.
class GAItem@NotNull public static GAItem item(@NotNull ai.tock.bot.engine.I18nTranslator $this$item, @NotNull GABasicCard basicCard)
Provides a class GAItem with a class GABasicCard.
class GAItem,
class GABasicCard@NotNull public static GAItem item(@NotNull ai.tock.bot.engine.I18nTranslator $this$item, @NotNull GAStructuredResponse structuredResponse)
Provides a class GAItem with a class GAStructuredResponse.
class GAItem,
class GAStructuredResponse@NotNull public static GAItem item(@NotNull ai.tock.bot.engine.I18nTranslator $this$item, @NotNull GASimpleResponse simpleResponse)
Provides a class GAItem with a class GASimpleResponse.
class GAItem,
class GASimpleResponse@NotNull public static GAImage gaImage(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaImage, @NotNull java.lang.String url, @NotNull java.lang.CharSequence accessibilityText, @Nullable java.lang.Integer height, @Nullable java.lang.Integer width)
Provides a class GAImage with all available parameters.
class GAImage@NotNull public static GAOptionValueSpec optionValueSpec(@NotNull ai.tock.bot.engine.I18nTranslator $this$optionValueSpec, @Nullable GASimpleSelect simpleSelect, @Nullable GAListSelect listSelect, @Nullable GACarouselSelect carouselSelect)
Provides a class GAOptionValueSpec with all available parameters.
class GAOptionValueSpec@NotNull public static GAInputPrompt inputPrompt(@NotNull ai.tock.bot.engine.I18nTranslator $this$inputPrompt, @NotNull GARichResponse richResponse, @NotNull java.util.List<ai.tock.bot.connector.ga.model.response.GASimpleResponse> noInputPrompts)
Provides a class GAInputPrompt with all available parameters.
class GAInputPrompt@NotNull public static GAInputPrompt inputPrompt(@NotNull ai.tock.bot.engine.I18nTranslator $this$inputPrompt, @NotNull java.lang.CharSequence text, @Nullable GALinkOutSuggestion linkOutSuggestion, @NotNull java.util.List<ai.tock.bot.connector.ga.model.response.GASimpleResponse> noInputPrompts)
Provides a class GAInputPrompt with a simple class GARichResponse builder.
class GAInputPrompt,
class GARichResponse@NotNull public static GAButton gaButton(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaButton, @NotNull java.lang.CharSequence title, @NotNull java.lang.String url)
Provides a class GAButton.
class GAButton@NotNull public static <T extends Bus<T>> GAOptionInfo optionInfo(@NotNull T $this$optionInfo, @NotNull java.lang.CharSequence title, @NotNull ai.tock.bot.definition.IntentAware targetIntent, @Nullable ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step, @NotNull kotlin.Pair... parameters)
Provides a class GAOptionInfo with all available parameters.
class GAOptionInfo@NotNull public static GAExpectedIntent expectedTextIntent()
The common class GAExpectedIntent.
class GAExpectedIntent