Package com.pulumi.gcp.diagflow.inputs
Class CxIntentState.Builder
- java.lang.Object
-
- com.pulumi.gcp.diagflow.inputs.CxIntentState.Builder
-
- Enclosing class:
- CxIntentState
public static final class CxIntentState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(CxIntentState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CxIntentState
build()
CxIntentState.Builder
description(com.pulumi.core.Output<java.lang.String> description)
CxIntentState.Builder
description(java.lang.String description)
CxIntentState.Builder
displayName(com.pulumi.core.Output<java.lang.String> displayName)
CxIntentState.Builder
displayName(java.lang.String displayName)
CxIntentState.Builder
isFallback(com.pulumi.core.Output<java.lang.Boolean> isFallback)
CxIntentState.Builder
isFallback(java.lang.Boolean isFallback)
CxIntentState.Builder
labels(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> labels)
CxIntentState.Builder
labels(java.util.Map<java.lang.String,java.lang.String> labels)
CxIntentState.Builder
languageCode(com.pulumi.core.Output<java.lang.String> languageCode)
CxIntentState.Builder
languageCode(java.lang.String languageCode)
CxIntentState.Builder
name(com.pulumi.core.Output<java.lang.String> name)
CxIntentState.Builder
name(java.lang.String name)
CxIntentState.Builder
parameters(com.pulumi.core.Output<java.util.List<CxIntentParameterArgs>> parameters)
CxIntentState.Builder
parameters(CxIntentParameterArgs... parameters)
CxIntentState.Builder
parameters(java.util.List<CxIntentParameterArgs> parameters)
CxIntentState.Builder
parent(com.pulumi.core.Output<java.lang.String> parent)
CxIntentState.Builder
parent(java.lang.String parent)
CxIntentState.Builder
priority(com.pulumi.core.Output<java.lang.Integer> priority)
CxIntentState.Builder
priority(java.lang.Integer priority)
CxIntentState.Builder
trainingPhrases(com.pulumi.core.Output<java.util.List<CxIntentTrainingPhraseArgs>> trainingPhrases)
CxIntentState.Builder
trainingPhrases(CxIntentTrainingPhraseArgs... trainingPhrases)
CxIntentState.Builder
trainingPhrases(java.util.List<CxIntentTrainingPhraseArgs> trainingPhrases)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(CxIntentState defaults)
-
-
Method Detail
-
description
public CxIntentState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.- Returns:
- builder
-
description
public CxIntentState.Builder description(java.lang.String description)
- Parameters:
description
- Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.- Returns:
- builder
-
displayName
public CxIntentState.Builder displayName(@Nullable com.pulumi.core.Output<java.lang.String> displayName)
- Parameters:
displayName
- The human-readable name of the intent, unique within the agent.- Returns:
- builder
-
displayName
public CxIntentState.Builder displayName(java.lang.String displayName)
- Parameters:
displayName
- The human-readable name of the intent, unique within the agent.- Returns:
- builder
-
isFallback
public CxIntentState.Builder isFallback(@Nullable com.pulumi.core.Output<java.lang.Boolean> isFallback)
- Parameters:
isFallback
- Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.- Returns:
- builder
-
isFallback
public CxIntentState.Builder isFallback(java.lang.Boolean isFallback)
- Parameters:
isFallback
- Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.- Returns:
- builder
-
labels
public CxIntentState.Builder labels(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> labels)
- Parameters:
labels
- The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.- Returns:
- builder
-
labels
public CxIntentState.Builder labels(java.util.Map<java.lang.String,java.lang.String> labels)
- Parameters:
labels
- The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.- Returns:
- builder
-
languageCode
public CxIntentState.Builder languageCode(@Nullable com.pulumi.core.Output<java.lang.String> languageCode)
- Parameters:
languageCode
- The language of the following fields in intent: Intent.training_phrases.parts.text If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.- Returns:
- builder
-
languageCode
public CxIntentState.Builder languageCode(java.lang.String languageCode)
- Parameters:
languageCode
- The language of the following fields in intent: Intent.training_phrases.parts.text If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.- Returns:
- builder
-
name
public CxIntentState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- The unique identifier of the intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.- Returns:
- builder
-
name
public CxIntentState.Builder name(java.lang.String name)
- Parameters:
name
- The unique identifier of the intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.- Returns:
- builder
-
parameters
public CxIntentState.Builder parameters(@Nullable com.pulumi.core.Output<java.util.List<CxIntentParameterArgs>> parameters)
- Parameters:
parameters
- The collection of parameters associated with the intent. Structure is documented below.- Returns:
- builder
-
parameters
public CxIntentState.Builder parameters(java.util.List<CxIntentParameterArgs> parameters)
- Parameters:
parameters
- The collection of parameters associated with the intent. Structure is documented below.- Returns:
- builder
-
parameters
public CxIntentState.Builder parameters(CxIntentParameterArgs... parameters)
- Parameters:
parameters
- The collection of parameters associated with the intent. Structure is documented below.- Returns:
- builder
-
parent
public CxIntentState.Builder parent(@Nullable com.pulumi.core.Output<java.lang.String> parent)
- Parameters:
parent
- The agent to create an intent for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.- Returns:
- builder
-
parent
public CxIntentState.Builder parent(java.lang.String parent)
- Parameters:
parent
- The agent to create an intent for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.- Returns:
- builder
-
priority
public CxIntentState.Builder priority(@Nullable com.pulumi.core.Output<java.lang.Integer> priority)
- Parameters:
priority
- The priority of this intent. Higher numbers represent higher priorities. If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console. If the supplied value is negative, the intent is ignored in runtime detect intent requests.- Returns:
- builder
-
priority
public CxIntentState.Builder priority(java.lang.Integer priority)
- Parameters:
priority
- The priority of this intent. Higher numbers represent higher priorities. If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the Normal priority in the console. If the supplied value is negative, the intent is ignored in runtime detect intent requests.- Returns:
- builder
-
trainingPhrases
public CxIntentState.Builder trainingPhrases(@Nullable com.pulumi.core.Output<java.util.List<CxIntentTrainingPhraseArgs>> trainingPhrases)
- Parameters:
trainingPhrases
- The collection of training phrases the agent is trained on to identify the intent. Structure is documented below.- Returns:
- builder
-
trainingPhrases
public CxIntentState.Builder trainingPhrases(java.util.List<CxIntentTrainingPhraseArgs> trainingPhrases)
- Parameters:
trainingPhrases
- The collection of training phrases the agent is trained on to identify the intent. Structure is documented below.- Returns:
- builder
-
trainingPhrases
public CxIntentState.Builder trainingPhrases(CxIntentTrainingPhraseArgs... trainingPhrases)
- Parameters:
trainingPhrases
- The collection of training phrases the agent is trained on to identify the intent. Structure is documented below.- Returns:
- builder
-
build
public CxIntentState build()
-
-