com.pulumi.gcp.diagflow.kotlin.outputs.CxIntentTrainingPhrase.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property id (Output)
* The unique identifier of the training phrase.
* @property parts The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase.
* Note: The API does not automatically annotate training phrases like the Dialogflow Console does.
* Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated.
* If the training phrase does not need to be annotated with parameters, you just need a single part with only the Part.text field set.
* If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways:
* Part.text is set to a part of the phrase that has no parameters.
* Part.text is set to a part of the phrase that you want to annotate, and the parameterId field is set.
* Structure is documented below.
* @property repeatCount Indicates how many times this example was added to the intent.
*/
public data class CxIntentTrainingPhrase(
public val id: String? = null,
public val parts: List,
public val repeatCount: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.diagflow.outputs.CxIntentTrainingPhrase): CxIntentTrainingPhrase = CxIntentTrainingPhrase(
id = javaType.id().map({ args0 -> args0 }).orElse(null),
parts = javaType.parts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.diagflow.kotlin.outputs.CxIntentTrainingPhrasePart.Companion.toKotlin(args0)
})
}),
repeatCount = javaType.repeatCount().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy