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);
        }
Ejemplo n.º 2
0
        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);
        }