PhraseSet constructor

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

Implementation

factory PhraseSet({
  $core.String? name,
  $core.String? uid,
  $core.Iterable<PhraseSet_Phrase>? phrases,
  $core.double? boost,
  $core.String? displayName,
  $3.Timestamp? createTime,
  $3.Timestamp? updateTime,
  $3.Timestamp? deleteTime,
  $3.Timestamp? expireTime,
  $core.Map<$core.String, $core.String>? annotations,
  $core.String? etag,
  $core.bool? reconciling,
  $core.String? kmsKeyName,
  $core.String? kmsKeyVersionName,
  PhraseSet_State? state,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (phrases != null) {
    $result.phrases.addAll(phrases);
  }
  if (boost != null) {
    $result.boost = boost;
  }
  if (displayName != null) {
    $result.displayName = displayName;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  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;
  }
  if (kmsKeyName != null) {
    $result.kmsKeyName = kmsKeyName;
  }
  if (kmsKeyVersionName != null) {
    $result.kmsKeyVersionName = kmsKeyVersionName;
  }
  if (state != null) {
    $result.state = state;
  }
  return $result;
}