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

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (ConstraintDefault != global::Google.Cloud.OrgPolicy.V2.Constraint.Types.ConstraintDefault.Unspecified)
            {
                hash ^= ConstraintDefault.GetHashCode();
            }
            if (constraintTypeCase_ == ConstraintTypeOneofCase.ListConstraint)
            {
                hash ^= ListConstraint.GetHashCode();
            }
            if (constraintTypeCase_ == ConstraintTypeOneofCase.BooleanConstraint)
            {
                hash ^= BooleanConstraint.GetHashCode();
            }
            hash ^= (int)constraintTypeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }