Agent constructor
Agent({
- String? parent,
- String? displayName,
- String? defaultLanguageCode,
- Iterable<
String> ? supportedLanguageCodes, - String? timeZone,
- String? description,
- String? avatarUri,
- bool? enableLogging,
- @Deprecated('This field is deprecated.') Agent_MatchMode? matchMode,
- double? classificationThreshold,
- Agent_ApiVersion? apiVersion,
- Agent_Tier? tier,
Implementation
factory Agent({
$core.String? parent,
$core.String? displayName,
$core.String? defaultLanguageCode,
$core.Iterable<$core.String>? supportedLanguageCodes,
$core.String? timeZone,
$core.String? description,
$core.String? avatarUri,
$core.bool? enableLogging,
@$core.Deprecated('This field is deprecated.') Agent_MatchMode? matchMode,
$core.double? classificationThreshold,
Agent_ApiVersion? apiVersion,
Agent_Tier? tier,
}) {
final _result = create();
if (parent != null) {
_result.parent = parent;
}
if (displayName != null) {
_result.displayName = displayName;
}
if (defaultLanguageCode != null) {
_result.defaultLanguageCode = defaultLanguageCode;
}
if (supportedLanguageCodes != null) {
_result.supportedLanguageCodes.addAll(supportedLanguageCodes);
}
if (timeZone != null) {
_result.timeZone = timeZone;
}
if (description != null) {
_result.description = description;
}
if (avatarUri != null) {
_result.avatarUri = avatarUri;
}
if (enableLogging != null) {
_result.enableLogging = enableLogging;
}
if (matchMode != null) {
// ignore: deprecated_member_use_from_same_package
_result.matchMode = matchMode;
}
if (classificationThreshold != null) {
_result.classificationThreshold = classificationThreshold;
}
if (apiVersion != null) {
_result.apiVersion = apiVersion;
}
if (tier != null) {
_result.tier = tier;
}
return _result;
}