package com.google.firebase.firestore; import com.airbnb.deeplinkdispatch.UrlTreeKt; /* loaded from: classes2.dex */ public class SnapshotMetadata { private final boolean hasPendingWrites; private final boolean isFromCache; /* JADX INFO: Access modifiers changed from: package-private */ public SnapshotMetadata(boolean z, boolean z2) { this.hasPendingWrites = z; this.isFromCache = z2; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof SnapshotMetadata)) { return false; } SnapshotMetadata snapshotMetadata = (SnapshotMetadata) obj; return this.hasPendingWrites == snapshotMetadata.hasPendingWrites && this.isFromCache == snapshotMetadata.isFromCache; } public String toString() { StringBuilder sb = new StringBuilder("SnapshotMetadata{hasPendingWrites="); sb.append(this.hasPendingWrites); sb.append(", isFromCache="); sb.append(this.isFromCache); sb.append(UrlTreeKt.componentParamSuffixChar); return sb.toString(); } public boolean isFromCache() { return this.isFromCache; } public int hashCode() { return ((this.hasPendingWrites ? 1 : 0) * 31) + (this.isFromCache ? 1 : 0); } }