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

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (FolderId.Length != 0)
            {
                hash ^= FolderId.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            if (Status != global::Yandex.Cloud.Kms.V1.SymmetricKey.Types.Status.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (primaryVersion_ != null)
            {
                hash ^= PrimaryVersion.GetHashCode();
            }
            if (DefaultAlgorithm != global::Yandex.Cloud.Kms.V1.SymmetricAlgorithm.Unspecified)
            {
                hash ^= DefaultAlgorithm.GetHashCode();
            }
            if (rotatedAt_ != null)
            {
                hash ^= RotatedAt.GetHashCode();
            }
            if (rotationPeriod_ != null)
            {
                hash ^= RotationPeriod.GetHashCode();
            }
            if (DeletionProtection != false)
            {
                hash ^= DeletionProtection.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }