PhraseSet constructor

PhraseSet({
  1. String? name,
  2. Iterable<PhraseSet_Phrase>? phrases,
  3. double? boost,
  4. String? kmsKeyName,
  5. String? kmsKeyVersionName,
  6. String? uid,
  7. String? displayName,
  8. PhraseSet_State? state,
  9. Timestamp? deleteTime,
  10. Timestamp? expireTime,
  11. Map<String, String>? annotations,
  12. String? etag,
  13. bool? reconciling,
})

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;
}