BRIDLE: Generalized Self-supervised Learning with Quantization