public class GABuildersKt
| Modifier and Type | Method and Description |
|---|---|
static <T extends Bus<T>> |
endForGoogleAssistant(T $receiver,
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. |
static GAExpectedIntent |
expectedTextIntent()
The common
class GAExpectedIntent. |
static GAButton |
gaButton(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.CharSequence title,
java.lang.String url)
Provides a
class GAButton. |
static GAResponseConnectorMessage |
gaFinalMessage(ai.tock.bot.engine.I18nTranslator $receiver,
GARichResponse richResponse)
Final Google Assistant message (end of conversation).
|
static GAResponseConnectorMessage |
gaFinalMessage(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.CharSequence text)
Final Google Assistant message (end of conversation).
|
static GAImage |
gaImage(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.String url,
java.lang.CharSequence accessibilityText,
java.lang.Integer height,
java.lang.Integer width)
Provides a
class GAImage with all available parameters. |
static GAResponseConnectorMessage |
gaLogout() |
static GAResponseConnectorMessage |
gaMessage(ai.tock.bot.engine.I18nTranslator $receiver,
GAInputPrompt inputPrompt,
java.util.List<ai.tock.bot.connector.ga.model.response.GAExpectedIntent> possibleIntents,
java.util.List<java.lang.String> speechBiasingHints)
Google Assistant Message with all available parameters.
|
static GAResponseConnectorMessage |
gaMessage(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.CharSequence text,
java.lang.CharSequence... suggestions)
Google Assistant Message with suggestions.
|
static GAResponseConnectorMessage |
gaMessage(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.CharSequence text,
GABasicCard basicCard)
Google Assistant Message with
class GABasicCard. |
static GAResponseConnectorMessage |
gaMessage(ai.tock.bot.engine.I18nTranslator $receiver,
GARichResponse richResponse)
Google Assistant Message with
class GARichResponse. |
static GAResponseConnectorMessage |
gaMessage(ai.tock.bot.engine.I18nTranslator $receiver,
GAExpectedIntent possibleIntent)
Google Assistant Message with one
class GAExpectedIntent. |
static GAResponseConnectorMessage |
gaMessage(ai.tock.bot.engine.I18nTranslator $receiver,
java.util.List<ai.tock.bot.connector.ga.model.response.GAExpectedIntent> possibleIntents)
Google Assistant Message with multiple
class GAExpectedIntent. |
static GAResponseConnectorMessage |
gaMessage(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.CharSequence text,
java.util.List<ai.tock.bot.connector.ga.model.response.GAExpectedIntent> possibleIntents)
Google Assistant Message with text and multiple
class GAExpectedIntent. |
static ai.tock.bot.connector.ConnectorType |
getGaConnectorType()
The Google Assistant ConnectorType.
|
static GAInputPrompt |
inputPrompt(ai.tock.bot.engine.I18nTranslator $receiver,
GARichResponse richResponse,
java.util.List<ai.tock.bot.connector.ga.model.response.GASimpleResponse> noInputPrompts)
Provides a
class GAInputPrompt with all available parameters. |
static GAInputPrompt |
inputPrompt(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.CharSequence text,
GALinkOutSuggestion linkOutSuggestion,
java.util.List<ai.tock.bot.connector.ga.model.response.GASimpleResponse> noInputPrompts)
Provides a
class GAInputPrompt with a simple class GARichResponse builder. |
static GAItem |
item(ai.tock.bot.engine.I18nTranslator $receiver,
GASimpleResponse simpleResponse,
GABasicCard basicCard,
GAStructuredResponse structuredResponse)
Provides a
class GAItem with all available parameters. |
static GAItem |
item(ai.tock.bot.engine.I18nTranslator $receiver,
GABasicCard basicCard)
Provides a
class GAItem with a class GABasicCard. |
static GAItem |
item(ai.tock.bot.engine.I18nTranslator $receiver,
GAStructuredResponse structuredResponse)
Provides a
class GAItem with a class GAStructuredResponse. |
static GAItem |
item(ai.tock.bot.engine.I18nTranslator $receiver,
GASimpleResponse simpleResponse)
Provides a
class GAItem with a class GASimpleResponse. |
static GALinkOutSuggestion |
linkOutSuggestion(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.CharSequence destinationName,
java.lang.String url)
Provides a
class GALinkOutSuggestion. |
static <T extends Bus<T>> |
optionInfo(T $receiver,
java.lang.CharSequence title,
ai.tock.bot.definition.IntentAware targetIntent,
ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step,
kotlin.Pair... parameters)
Provides a
class GAOptionInfo with all available parameters. |
static GAOptionValueSpec |
optionValueSpec(ai.tock.bot.engine.I18nTranslator $receiver,
GASimpleSelect simpleSelect,
GAListSelect listSelect,
GACarouselSelect carouselSelect)
Provides a
class GAOptionValueSpec with all available parameters. |
static GAExpectedIntent |
permissionIntent(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.CharSequence optionalContext,
ai.tock.bot.connector.ga.model.request.GAPermission... permissions)
Google Assistant Message asking for
enum GAPermission. |
static <T extends Bus<T>> |
sendToGoogleAssistant(T $receiver,
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. |
static GAExpectedIntent |
updatePermissionIntent(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.String intent)
Google Assistant Message asking for update
enum GAPermission. |
static <T extends Bus<T>> |
withGoogleAssistant(T $receiver,
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.
|
static <T extends Bus<T>> |
withGoogleVoiceAssistant(T $receiver,
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 ai.tock.bot.connector.ConnectorType getGaConnectorType()
The Google Assistant ConnectorType.
@NotNull public static <T extends Bus<T>> T sendToGoogleAssistant(@NotNull T $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @NotNull GARichResponse richResponse)
Final Google Assistant message (end of conversation).
@NotNull public static GAResponseConnectorMessage gaFinalMessage(@NotNull ai.tock.bot.engine.I18nTranslator $receiver, @Nullable java.lang.CharSequence text)
Final Google Assistant message (end of conversation).
@NotNull public static GAResponseConnectorMessage gaMessage(@NotNull ai.tock.bot.engine.I18nTranslator $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @NotNull GARichResponse richResponse)
Google Assistant Message with class GARichResponse.
class GARichResponse@NotNull public static GAResponseConnectorMessage gaMessage(@NotNull ai.tock.bot.engine.I18nTranslator $receiver, @NotNull GAExpectedIntent possibleIntent)
Google Assistant Message with one class GAExpectedIntent.
class GAExpectedIntent@NotNull public static GAResponseConnectorMessage gaMessage(@NotNull ai.tock.bot.engine.I18nTranslator $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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