public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Action.Length != 0) { hash ^= Action.GetHashCode(); } if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (RepoSource.Length != 0) { hash ^= RepoSource.GetHashCode(); } if (RepoOwner.Length != 0) { hash ^= RepoOwner.GetHashCode(); } if (ReleaseVersion.Length != 0) { hash ^= ReleaseVersion.GetHashCode(); } if (ReleaseStatus.Length != 0) { hash ^= ReleaseStatus.GetHashCode(); } hash ^= events_.GetHashCode(); if (insertedAtTime_ != null) { hash ^= InsertedAtTime.GetHashCode(); } if (updatedAtTime_ != null) { hash ^= UpdatedAtTime.GetHashCode(); } if (duration_ != null) { hash ^= Duration.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
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 override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (RepoSource.Length != 0) { hash ^= RepoSource.GetHashCode(); } if (RepoOwner.Length != 0) { hash ^= RepoOwner.GetHashCode(); } if (RepoName.Length != 0) { hash ^= RepoName.GetHashCode(); } if (RepoBranch.Length != 0) { hash ^= RepoBranch.GetHashCode(); } if (RepoRevision.Length != 0) { hash ^= RepoRevision.GetHashCode(); } if (BuildVersion.Length != 0) { hash ^= BuildVersion.GetHashCode(); } if (BuildStatus.Length != 0) { hash ^= BuildStatus.GetHashCode(); } hash ^= labels_.GetHashCode(); hash ^= releaseTargets_.GetHashCode(); if (Manifest.Length != 0) { hash ^= Manifest.GetHashCode(); } if (ManifestWithDefaults.Length != 0) { hash ^= ManifestWithDefaults.GetHashCode(); } hash ^= commits_.GetHashCode(); hash ^= triggers_.GetHashCode(); hash ^= events_.GetHashCode(); if (insertedAtTime_ != null) { hash ^= InsertedAtTime.GetHashCode(); } if (updatedAtTime_ != null) { hash ^= UpdatedAtTime.GetHashCode(); } if (duration_ != null) { hash ^= Duration.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int CompareTo(UpdatedUniqueItem other) { return(UpdatedAtTime.CompareTo(other.UpdatedAtTime)); }
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); }