Intent constructor
Intent({
- String? name,
- String? displayName,
- int? priority,
- bool? isFallback,
- @Deprecated('This field is deprecated.') bool? mlEnabled,
- Intent_WebhookState? webhookState,
- Iterable<
String> ? inputContextNames, - Iterable<
String> ? events, - Iterable<
Intent_TrainingPhrase> ? trainingPhrases, - String? action,
- Iterable<
Context> ? outputContexts, - bool? resetContexts,
- Iterable<
Intent_Parameter> ? parameters, - Iterable<
Intent_Message> ? messages, - Iterable<
Intent_Message_Platform> ? defaultResponsePlatforms, - String? rootFollowupIntentName,
- String? parentFollowupIntentName,
- Iterable<
Intent_FollowupIntentInfo> ? followupIntentInfo, - bool? mlDisabled,
- bool? liveAgentHandoff,
- bool? endInteraction,
Implementation
factory Intent({
$core.String? name,
$core.String? displayName,
$core.int? priority,
$core.bool? isFallback,
@$core.Deprecated('This field is deprecated.') $core.bool? mlEnabled,
Intent_WebhookState? webhookState,
$core.Iterable<$core.String>? inputContextNames,
$core.Iterable<$core.String>? events,
$core.Iterable<Intent_TrainingPhrase>? trainingPhrases,
$core.String? action,
$core.Iterable<$5.Context>? outputContexts,
$core.bool? resetContexts,
$core.Iterable<Intent_Parameter>? parameters,
$core.Iterable<Intent_Message>? messages,
$core.Iterable<Intent_Message_Platform>? defaultResponsePlatforms,
$core.String? rootFollowupIntentName,
$core.String? parentFollowupIntentName,
$core.Iterable<Intent_FollowupIntentInfo>? followupIntentInfo,
$core.bool? mlDisabled,
$core.bool? liveAgentHandoff,
$core.bool? endInteraction,
}) {
final _result = create();
if (name != null) {
_result.name = name;
}
if (displayName != null) {
_result.displayName = displayName;
}
if (priority != null) {
_result.priority = priority;
}
if (isFallback != null) {
_result.isFallback = isFallback;
}
if (mlEnabled != null) {
// ignore: deprecated_member_use_from_same_package
_result.mlEnabled = mlEnabled;
}
if (webhookState != null) {
_result.webhookState = webhookState;
}
if (inputContextNames != null) {
_result.inputContextNames.addAll(inputContextNames);
}
if (events != null) {
_result.events.addAll(events);
}
if (trainingPhrases != null) {
_result.trainingPhrases.addAll(trainingPhrases);
}
if (action != null) {
_result.action = action;
}
if (outputContexts != null) {
_result.outputContexts.addAll(outputContexts);
}
if (resetContexts != null) {
_result.resetContexts = resetContexts;
}
if (parameters != null) {
_result.parameters.addAll(parameters);
}
if (messages != null) {
_result.messages.addAll(messages);
}
if (defaultResponsePlatforms != null) {
_result.defaultResponsePlatforms.addAll(defaultResponsePlatforms);
}
if (rootFollowupIntentName != null) {
_result.rootFollowupIntentName = rootFollowupIntentName;
}
if (parentFollowupIntentName != null) {
_result.parentFollowupIntentName = parentFollowupIntentName;
}
if (followupIntentInfo != null) {
_result.followupIntentInfo.addAll(followupIntentInfo);
}
if (mlDisabled != null) {
_result.mlDisabled = mlDisabled;
}
if (liveAgentHandoff != null) {
_result.liveAgentHandoff = liveAgentHandoff;
}
if (endInteraction != null) {
_result.endInteraction = endInteraction;
}
return _result;
}