Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (subjectCase_ == SubjectOneofCase.UserAccountId)
            {
                hash ^= UserAccountId.GetHashCode();
            }
            if (subjectCase_ == SubjectOneofCase.ServiceAccountId)
            {
                hash ^= ServiceAccountId.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (KeyAlgorithm != global::Yandex.Cloud.Iam.V1.Key.Types.Algorithm.Unspecified)
            {
                hash ^= KeyAlgorithm.GetHashCode();
            }
            if (PublicKey.Length != 0)
            {
                hash ^= PublicKey.GetHashCode();
            }
            hash ^= (int)subjectCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }