Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (provenance_ != null)
            {
                hash ^= Provenance.GetHashCode();
            }
            if (ProvenanceBytes.Length != 0)
            {
                hash ^= ProvenanceBytes.GetHashCode();
            }
            if (intotoProvenance_ != null)
            {
                hash ^= IntotoProvenance.GetHashCode();
            }
            if (intotoStatement_ != null)
            {
                hash ^= IntotoStatement.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            hash ^= subject_.GetHashCode();
            if (PredicateType.Length != 0)
            {
                hash ^= PredicateType.GetHashCode();
            }
            if (predicateCase_ == PredicateOneofCase.Provenance)
            {
                hash ^= Provenance.GetHashCode();
            }
            if (predicateCase_ == PredicateOneofCase.SlsaProvenance)
            {
                hash ^= SlsaProvenance.GetHashCode();
            }
            hash ^= (int)predicateCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Path != null ? Path.GetHashCode() : 0) * 397) ^ (Provenance != null ? Provenance.GetHashCode() : 0));
     }
 }