Recognizer constructor
Recognizer({
- String? name,
- String? uid,
- String? displayName,
- @Deprecated('This field is deprecated.') String? model,
- RecognitionConfig? defaultRecognitionConfig,
- Map<
String, String> ? annotations, - Recognizer_State? state,
- Timestamp? createTime,
- Timestamp? updateTime,
- Timestamp? deleteTime,
- String? etag,
- bool? reconciling,
- Timestamp? expireTime,
- String? kmsKeyName,
- String? kmsKeyVersionName,
- @Deprecated('This field is deprecated.') Iterable<
String> ? languageCodes,
Implementation
factory Recognizer({
$core.String? name,
$core.String? uid,
$core.String? displayName,
@$core.Deprecated('This field is deprecated.') $core.String? model,
RecognitionConfig? defaultRecognitionConfig,
$core.Map<$core.String, $core.String>? annotations,
Recognizer_State? state,
$3.Timestamp? createTime,
$3.Timestamp? updateTime,
$3.Timestamp? deleteTime,
$core.String? etag,
$core.bool? reconciling,
$3.Timestamp? expireTime,
$core.String? kmsKeyName,
$core.String? kmsKeyVersionName,
@$core.Deprecated('This field is deprecated.')
$core.Iterable<$core.String>? languageCodes,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (uid != null) {
$result.uid = uid;
}
if (displayName != null) {
$result.displayName = displayName;
}
if (model != null) {
// ignore: deprecated_member_use_from_same_package
$result.model = model;
}
if (defaultRecognitionConfig != null) {
$result.defaultRecognitionConfig = defaultRecognitionConfig;
}
if (annotations != null) {
$result.annotations.addAll(annotations);
}
if (state != null) {
$result.state = state;
}
if (createTime != null) {
$result.createTime = createTime;
}
if (updateTime != null) {
$result.updateTime = updateTime;
}
if (deleteTime != null) {
$result.deleteTime = deleteTime;
}
if (etag != null) {
$result.etag = etag;
}
if (reconciling != null) {
$result.reconciling = reconciling;
}
if (expireTime != null) {
$result.expireTime = expireTime;
}
if (kmsKeyName != null) {
$result.kmsKeyName = kmsKeyName;
}
if (kmsKeyVersionName != null) {
$result.kmsKeyVersionName = kmsKeyVersionName;
}
if (languageCodes != null) {
// ignore: deprecated_member_use_from_same_package
$result.languageCodes.addAll(languageCodes);
}
return $result;
}