com.pulumi.googlenative.dialogflow.v2beta1.kotlin.outputs.GoogleCloudDialogflowV2beta1FulfillmentResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.dialogflow.v2beta1.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* By default, your agent responds to a matched intent with a static response. As an alternative, you can provide a more dynamic response by using fulfillment. When you enable fulfillment for an intent, Dialogflow responds to that intent by calling a service that you define. For example, if an end-user wants to schedule a haircut on Friday, your service can check your database and respond to the end-user with availability information for Friday. For more information, see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
* @property displayName The human-readable name of the fulfillment, unique within the agent. This field is not used for Fulfillment in an Environment.
* @property enabled Whether fulfillment is enabled.
* @property features The field defines whether the fulfillment is enabled for certain features.
* @property genericWebService Configuration for a generic web service.
* @property name The unique identifier of the fulfillment. Supported formats: - `projects//agent/fulfillment` - `projects//locations//agent/fulfillment` This field is not used for Fulfillment in an Environment.
*/
public data class GoogleCloudDialogflowV2beta1FulfillmentResponse(
public val displayName: String,
public val enabled: Boolean,
public val features: List,
public val genericWebService: GoogleCloudDialogflowV2beta1FulfillmentGenericWebServiceResponse,
public val name: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.dialogflow.v2beta1.outputs.GoogleCloudDialogflowV2beta1FulfillmentResponse): GoogleCloudDialogflowV2beta1FulfillmentResponse =
GoogleCloudDialogflowV2beta1FulfillmentResponse(
displayName = javaType.displayName(),
enabled = javaType.enabled(),
features = javaType.features().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.dialogflow.v2beta1.kotlin.outputs.GoogleCloudDialogflowV2beta1FulfillmentFeatureResponse.Companion.toKotlin(args0)
})
}),
genericWebService = javaType.genericWebService().let({ args0 ->
com.pulumi.googlenative.dialogflow.v2beta1.kotlin.outputs.GoogleCloudDialogflowV2beta1FulfillmentGenericWebServiceResponse.Companion.toKotlin(args0)
}),
name = javaType.name(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy