package okhttp3; import io.sentry.SentryLockReason; import java.net.InetSocketAddress; import java.net.Proxy; import kotlin.Deprecated; import kotlin.DeprecationLevel; import kotlin.Metadata; import kotlin.ReplaceWith; import kotlin.jvm.internal.Intrinsics; /* compiled from: Route.kt */ @Metadata(bv = {1, 0, 3}, d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bJ\r\u0010\u0002\u001a\u00020\u0003H\u0007¢\u0006\u0002\b\fJ\u0013\u0010\r\u001a\u00020\u000e2\b\u0010\u000f\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\b\u0010\u0010\u001a\u00020\u0011H\u0016J\r\u0010\u0004\u001a\u00020\u0005H\u0007¢\u0006\u0002\b\u0012J\u0006\u0010\u0013\u001a\u00020\u000eJ\r\u0010\u0006\u001a\u00020\u0007H\u0007¢\u0006\u0002\b\u0014J\b\u0010\u0015\u001a\u00020\u0016H\u0016R\u0013\u0010\u0002\u001a\u00020\u00038\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\tR\u0013\u0010\u0004\u001a\u00020\u00058\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0004\u0010\nR\u0013\u0010\u0006\u001a\u00020\u00078\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u000b¨\u0006\u0017"}, d2 = {"Lokhttp3/Route;", "", SentryLockReason.JsonKeys.ADDRESS, "Lokhttp3/Address;", "proxy", "Ljava/net/Proxy;", "socketAddress", "Ljava/net/InetSocketAddress;", "(Lokhttp3/Address;Ljava/net/Proxy;Ljava/net/InetSocketAddress;)V", "()Lokhttp3/Address;", "()Ljava/net/Proxy;", "()Ljava/net/InetSocketAddress;", "-deprecated_address", "equals", "", "other", "hashCode", "", "-deprecated_proxy", "requiresTunnel", "-deprecated_socketAddress", "toString", "", "okhttp"}, k = 1, mv = {1, 4, 0}) /* loaded from: classes3.dex */ public final class Route { private final Address address; private final Proxy proxy; private final InetSocketAddress socketAddress; @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = SentryLockReason.JsonKeys.ADDRESS, imports = {})) /* renamed from: -deprecated_address, reason: not valid java name and from getter */ public final Address getAddress() { return this.address; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proxy", imports = {})) /* renamed from: -deprecated_proxy, reason: not valid java name and from getter */ public final Proxy getProxy() { return this.proxy; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "socketAddress", imports = {})) /* renamed from: -deprecated_socketAddress, reason: not valid java name and from getter */ public final InetSocketAddress getSocketAddress() { return this.socketAddress; } public final Address address() { return this.address; } public final Proxy proxy() { return this.proxy; } public final InetSocketAddress socketAddress() { return this.socketAddress; } public Route(Address address, Proxy proxy, InetSocketAddress socketAddress) { Intrinsics.checkNotNullParameter(address, "address"); Intrinsics.checkNotNullParameter(proxy, "proxy"); Intrinsics.checkNotNullParameter(socketAddress, "socketAddress"); this.address = address; this.proxy = proxy; this.socketAddress = socketAddress; } public final boolean requiresTunnel() { return this.address.sslSocketFactory() != null && this.proxy.type() == Proxy.Type.HTTP; } public boolean equals(Object other) { if (other instanceof Route) { Route route = (Route) other; if (Intrinsics.areEqual(route.address, this.address) && Intrinsics.areEqual(route.proxy, this.proxy) && Intrinsics.areEqual(route.socketAddress, this.socketAddress)) { return true; } } return false; } public int hashCode() { return ((((527 + this.address.hashCode()) * 31) + this.proxy.hashCode()) * 31) + this.socketAddress.hashCode(); } public String toString() { return "Route{" + this.socketAddress + '}'; } }