com.pulumi.gcp.diagflow.kotlin.outputs.CxPageTransitionRouteTriggerFulfillmentMessage.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.diagflow.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property channel The channel which the response is associated with. Clients can specify the channel via QueryParameters.channel, and only associated channel response will be returned.
* @property conversationSuccess Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about.
* Dialogflow only uses this to determine which conversations should be counted as successful and doesn't process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don't return ConversationSuccess.
* You may set this, for example:
* * In the entryFulfillment of a Page if entering the page indicates that the conversation succeeded.
* * In a webhook response when you determine that you handled the customer issue.
* Structure is documented below.
* @property liveAgentHandoff Indicates that the conversation should be handed off to a live agent.
* Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures.
* You may set this, for example:
* * In the entryFulfillment of a Page if entering the page indicates something went extremely wrong in the conversation.
* * In a webhook response when you determine that the customer issue can only be handled by a human.
* Structure is documented below.
* @property outputAudioText A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
* Structure is documented below.
* @property payload A custom, platform-specific payload.
* @property playAudio Specifies an audio clip to be played by the client as part of the response.
* Structure is documented below.
* @property telephonyTransferCall Represents the signal that telles the client to transfer the phone call connected to the agent to a third-party endpoint.
* Structure is documented below.
* @property text The text response message.
* Structure is documented below.
*/
public data class CxPageTransitionRouteTriggerFulfillmentMessage(
public val channel: String? = null,
public val conversationSuccess: CxPageTransitionRouteTriggerFulfillmentMessageConversationSuccess? =
null,
public val liveAgentHandoff: CxPageTransitionRouteTriggerFulfillmentMessageLiveAgentHandoff? =
null,
public val outputAudioText: CxPageTransitionRouteTriggerFulfillmentMessageOutputAudioText? = null,
public val payload: String? = null,
public val playAudio: CxPageTransitionRouteTriggerFulfillmentMessagePlayAudio? = null,
public val telephonyTransferCall: CxPageTransitionRouteTriggerFulfillmentMessageTelephonyTransferCall? = null,
public val text: CxPageTransitionRouteTriggerFulfillmentMessageText? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.diagflow.outputs.CxPageTransitionRouteTriggerFulfillmentMessage): CxPageTransitionRouteTriggerFulfillmentMessage =
CxPageTransitionRouteTriggerFulfillmentMessage(
channel = javaType.channel().map({ args0 -> args0 }).orElse(null),
conversationSuccess = javaType.conversationSuccess().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.diagflow.kotlin.outputs.CxPageTransitionRouteTriggerFulfillmentMessageConversationSuccess.Companion.toKotlin(args0)
})
}).orElse(null),
liveAgentHandoff = javaType.liveAgentHandoff().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.diagflow.kotlin.outputs.CxPageTransitionRouteTriggerFulfillmentMessageLiveAgentHandoff.Companion.toKotlin(args0)
})
}).orElse(null),
outputAudioText = javaType.outputAudioText().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.diagflow.kotlin.outputs.CxPageTransitionRouteTriggerFulfillmentMessageOutputAudioText.Companion.toKotlin(args0)
})
}).orElse(null),
payload = javaType.payload().map({ args0 -> args0 }).orElse(null),
playAudio = javaType.playAudio().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.diagflow.kotlin.outputs.CxPageTransitionRouteTriggerFulfillmentMessagePlayAudio.Companion.toKotlin(args0)
})
}).orElse(null),
telephonyTransferCall = javaType.telephonyTransferCall().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.diagflow.kotlin.outputs.CxPageTransitionRouteTriggerFulfillmentMessageTelephonyTransferCall.Companion.toKotlin(args0)
})
}).orElse(null),
text = javaType.text().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.diagflow.kotlin.outputs.CxPageTransitionRouteTriggerFulfillmentMessageText.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy