public override int GetHashCode()
        {
            int hash = 1;

            if (keyDataCase_ == KeyDataOneofCase.AesKey)
            {
                hash ^= AesKey.GetHashCode();
            }
            hash ^= (int)keyDataCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public void MergeFrom(SymmetricKey other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.KeyDataCase)
            {
            case KeyDataOneofCase.AesKey:
                if (AesKey == null)
                {
                    AesKey = new global::Google.Cloud.AspNetCore.DataProtection.Kms.AesKey();
                }
                AesKey.MergeFrom(other.AesKey);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }