package com.google.firebase.firestore; import com.google.firebase.firestore.util.Preconditions; import com.google.firebase.firestore.util.Util; import o.QwV; /* loaded from: classes2.dex */ public class Blob implements Comparable { private final QwV bytes; private Blob(QwV qwV) { this.bytes = qwV; } public static Blob fromByteString(QwV qwV) { Preconditions.checkNotNull(qwV, "Provided ByteString must not be null."); return new Blob(qwV); } public String toString() { StringBuilder sb = new StringBuilder("Blob { bytes="); sb.append(Util.toDebugString(this.bytes)); sb.append(" }"); return sb.toString(); } public boolean equals(Object obj) { return (obj instanceof Blob) && this.bytes.equals(((Blob) obj).bytes); } public int hashCode() { return this.bytes.hashCode(); } @Override // java.lang.Comparable public int compareTo(Blob blob) { return Util.compareByteStrings(this.bytes, blob.bytes); } public QwV toByteString() { return this.bytes; } }