public void MergeFrom(Build other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.RepoSource.Length != 0) { RepoSource = other.RepoSource; } if (other.RepoOwner.Length != 0) { RepoOwner = other.RepoOwner; } if (other.RepoName.Length != 0) { RepoName = other.RepoName; } if (other.RepoBranch.Length != 0) { RepoBranch = other.RepoBranch; } if (other.RepoRevision.Length != 0) { RepoRevision = other.RepoRevision; } if (other.BuildVersion.Length != 0) { BuildVersion = other.BuildVersion; } if (other.BuildStatus.Length != 0) { BuildStatus = other.BuildStatus; } labels_.Add(other.labels_); releaseTargets_.Add(other.releaseTargets_); if (other.Manifest.Length != 0) { Manifest = other.Manifest; } if (other.ManifestWithDefaults.Length != 0) { ManifestWithDefaults = other.ManifestWithDefaults; } commits_.Add(other.commits_); triggers_.Add(other.triggers_); events_.Add(other.events_); if (other.insertedAtTime_ != null) { if (insertedAtTime_ == null) { InsertedAtTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } InsertedAtTime.MergeFrom(other.InsertedAtTime); } if (other.updatedAtTime_ != null) { if (updatedAtTime_ == null) { UpdatedAtTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } UpdatedAtTime.MergeFrom(other.UpdatedAtTime); } if (other.duration_ != null) { if (duration_ == null) { Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); } Duration.MergeFrom(other.Duration); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(Release other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Action.Length != 0) { Action = other.Action; } if (other.Id.Length != 0) { Id = other.Id; } if (other.RepoSource.Length != 0) { RepoSource = other.RepoSource; } if (other.RepoOwner.Length != 0) { RepoOwner = other.RepoOwner; } if (other.ReleaseVersion.Length != 0) { ReleaseVersion = other.ReleaseVersion; } if (other.ReleaseStatus.Length != 0) { ReleaseStatus = other.ReleaseStatus; } events_.Add(other.events_); if (other.insertedAtTime_ != null) { if (insertedAtTime_ == null) { InsertedAtTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } InsertedAtTime.MergeFrom(other.InsertedAtTime); } if (other.updatedAtTime_ != null) { if (updatedAtTime_ == null) { UpdatedAtTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } UpdatedAtTime.MergeFrom(other.UpdatedAtTime); } if (other.duration_ != null) { if (duration_ == null) { Duration = new global::Google.Protobuf.WellKnownTypes.Duration(); } Duration.MergeFrom(other.Duration); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }