PhraseSet constructor
PhraseSet({})
Implementation
factory PhraseSet({
$core.String? name,
$core.Iterable<PhraseSet_Phrase>? phrases,
$core.double? boost,
$core.String? kmsKeyName,
$core.String? kmsKeyVersionName,
$core.String? uid,
$core.String? displayName,
PhraseSet_State? state,
$2.Timestamp? deleteTime,
$2.Timestamp? expireTime,
$core.Map<$core.String, $core.String>? annotations,
$core.String? etag,
$core.bool? reconciling,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (phrases != null) {
$result.phrases.addAll(phrases);
}
if (boost != null) {
$result.boost = boost;
}
if (kmsKeyName != null) {
$result.kmsKeyName = kmsKeyName;
}
if (kmsKeyVersionName != null) {
$result.kmsKeyVersionName = kmsKeyVersionName;
}
if (uid != null) {
$result.uid = uid;
}
if (displayName != null) {
$result.displayName = displayName;
}
if (state != null) {
$result.state = state;
}
if (deleteTime != null) {
$result.deleteTime = deleteTime;
}
if (expireTime != null) {
$result.expireTime = expireTime;
}
if (annotations != null) {
$result.annotations.addAll(annotations);
}
if (etag != null) {
$result.etag = etag;
}
if (reconciling != null) {
$result.reconciling = reconciling;
}
return $result;
}