IntentArgs class

The set of arguments for Intent. The set of arguments for Intent.

Constructors

IntentArgs({Input<String>? action, Input<List<IntentDefaultResponsePlatformsItem>>? defaultResponsePlatforms, required Input<String> displayName, Input<bool>? endInteraction, Input<List<String>>? events, Input<List<String>>? inputContextNames, Input<String>? intentView, Input<bool>? isFallback, Input<String>? languageCode, Input<bool>? liveAgentHandoff, Input<String>? location, Input<List<GoogleCloudDialogflowV2IntentMessage>>? messages, Input<bool>? mlDisabled, Input<String>? name, Input<List<GoogleCloudDialogflowV2Context>>? outputContexts, Input<List<GoogleCloudDialogflowV2IntentParameter>>? parameters, Input<String>? parentFollowupIntentName, Input<int>? priority, Input<String>? project, Input<bool>? resetContexts, Input<List<GoogleCloudDialogflowV2IntentTrainingPhrase>>? trainingPhrases, Input<IntentWebhookState>? webhookState})
Creates a new IntentArgs. action Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces. defaultResponsePlatforms Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). displayName The name of this intent. endInteraction Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false. events Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters. inputContextNames Optional. The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/. intentView Optional. The resource view to apply to the returned intent. isFallback Optional. Indicates whether this is a fallback intent. languageCode Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. liveAgentHandoff Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false. location Optional. messages Optional. The collection of rich messages corresponding to the Response field in the Dialogflow console. mlDisabled Optional. Indicates whether Machine Learning is disabled for the intent. Note: If ml_disabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off. name Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: projects//agent/intents/. outputContexts Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the lifespan_count to 0 will reset the context when the intent is matched. Format: projects//agent/sessions/-/contexts/. parameters Optional. The collection of parameters associated with the intent. parentFollowupIntentName Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: projects//agent/intents/. priority Optional. 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. project Optional. resetContexts Optional. Indicates whether to delete all contexts in the current session when this intent is matched. trainingPhrases Optional. The collection of examples that the agent is trained on. webhookState Optional. Indicates whether webhooks are enabled for the intent.
const
IntentArgs.fromMap(Map<String, dynamic> map)
factory

Properties

action → Input<String>?
Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
final
defaultResponsePlatforms → Input<List<IntentDefaultResponsePlatformsItem>>?
Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
final
displayName → Input<String>
The name of this intent.
final
endInteraction → Input<bool>?
Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
final
events → Input<List<String>>?
Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters.
final
hashCode → int
The hash code for this object.
no setterinherited
inputContextNames → Input<List<String>>?
Optional. The list of context names required for this intent to be triggered. Format: projects//agent/sessions/-/contexts/.
final
intentView → Input<String>?
Optional. The resource view to apply to the returned intent.
final
isFallback → Input<bool>?
Optional. Indicates whether this is a fallback intent.
final
languageCode → Input<String>?
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
final
liveAgentHandoff → Input<bool>?
Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
final
location → Input<String>?
final
messages → Input<List<GoogleCloudDialogflowV2IntentMessage>>?
Optional. The collection of rich messages corresponding to the Response field in the Dialogflow console.
final
mlDisabled → Input<bool>?
Optional. Indicates whether Machine Learning is disabled for the intent. Note: If ml_disabled setting is set to true, then this intent is not taken into account during inference in ML ONLY match mode. Also, auto-markup in the UI is turned off.
final
name → Input<String>?
Optional. The unique identifier of this intent. Required for Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: projects//agent/intents/.
final
outputContexts → Input<List<GoogleCloudDialogflowV2Context>>?
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the lifespan_count to 0 will reset the context when the intent is matched. Format: projects//agent/sessions/-/contexts/.
final
parameters → Input<List<GoogleCloudDialogflowV2IntentParameter>>?
Optional. The collection of parameters associated with the intent.
final
parentFollowupIntentName → Input<String>?
Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with CreateIntent or BatchUpdateIntents, in order to make this intent a followup intent. It identifies the parent followup intent. Format: projects//agent/intents/.
final
priority → Input<int>?
Optional. 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.
final
project → Input<String>?
final
resetContexts → Input<bool>?
Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trainingPhrases → Input<List<GoogleCloudDialogflowV2IntentTrainingPhrase>>?
Optional. The collection of examples that the agent is trained on.
final
webhookState → Input<IntentWebhookState>?
Optional. Indicates whether webhooks are enabled for the intent.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited