package okhttp3; import com.airbnb.deeplinkdispatch.UrlTreeKt; import java.net.Proxy; import java.net.ProxySelector; import java.util.List; import java.util.Objects; import javax.net.SocketFactory; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLSocketFactory; import o.C14957gcv; import okhttp3.HttpUrl; import okhttp3.internal.Util; /* loaded from: classes.dex */ public final class Address { private final CertificatePinner certificatePinner; private final List connectionSpecs; private final Dns dns; private final HostnameVerifier hostnameVerifier; private final List protocols; private final Proxy proxy; private final Authenticator proxyAuthenticator; private final ProxySelector proxySelector; private final SocketFactory socketFactory; private final SSLSocketFactory sslSocketFactory; private final HttpUrl url; public Address(String str, int i, Dns dns, SocketFactory socketFactory, SSLSocketFactory sSLSocketFactory, HostnameVerifier hostnameVerifier, CertificatePinner certificatePinner, Authenticator authenticator, Proxy proxy, List list, List list2, ProxySelector proxySelector) { C14957gcv.e(str, ""); C14957gcv.e(dns, ""); C14957gcv.e(socketFactory, ""); C14957gcv.e(authenticator, ""); C14957gcv.e(list, ""); C14957gcv.e(list2, ""); C14957gcv.e(proxySelector, ""); this.dns = dns; this.socketFactory = socketFactory; this.sslSocketFactory = sSLSocketFactory; this.hostnameVerifier = hostnameVerifier; this.certificatePinner = certificatePinner; this.proxyAuthenticator = authenticator; this.proxy = proxy; this.proxySelector = proxySelector; this.url = new HttpUrl.Builder().scheme(sSLSocketFactory != null ? "https" : "http").host(str).port(i).build(); this.protocols = Util.toImmutableList(list); this.connectionSpecs = Util.toImmutableList(list2); } public final boolean equals(Object obj) { if (obj instanceof Address) { Address address = (Address) obj; if (C14957gcv.b(this.url, address.url) && equalsNonHost$okhttp(address)) { return true; } } return false; } public final int hashCode() { int hashCode = this.url.hashCode(); int hashCode2 = this.dns.hashCode(); int hashCode3 = this.proxyAuthenticator.hashCode(); int hashCode4 = this.protocols.hashCode(); int hashCode5 = this.connectionSpecs.hashCode(); int hashCode6 = this.proxySelector.hashCode(); int hashCode7 = Objects.hashCode(this.proxy); int hashCode8 = Objects.hashCode(this.sslSocketFactory); return ((((((((((((((((((hashCode + 527) * 31) + hashCode2) * 31) + hashCode3) * 31) + hashCode4) * 31) + hashCode5) * 31) + hashCode6) * 31) + hashCode7) * 31) + hashCode8) * 31) + Objects.hashCode(this.hostnameVerifier)) * 31) + Objects.hashCode(this.certificatePinner); } public final boolean equalsNonHost$okhttp(Address address) { C14957gcv.e(address, ""); return C14957gcv.b(this.dns, address.dns) && C14957gcv.b(this.proxyAuthenticator, address.proxyAuthenticator) && C14957gcv.b(this.protocols, address.protocols) && C14957gcv.b(this.connectionSpecs, address.connectionSpecs) && C14957gcv.b(this.proxySelector, address.proxySelector) && C14957gcv.b(this.proxy, address.proxy) && C14957gcv.b(this.sslSocketFactory, address.sslSocketFactory) && C14957gcv.b(this.hostnameVerifier, address.hostnameVerifier) && C14957gcv.b(this.certificatePinner, address.certificatePinner) && this.url.port() == address.url.port(); } public final String toString() { StringBuilder sb = new StringBuilder("Address{"); sb.append(this.url.host()); sb.append(':'); sb.append(this.url.port()); sb.append(", "); Proxy proxy = this.proxy; sb.append(proxy != null ? C14957gcv.c("proxy=", proxy) : C14957gcv.c("proxySelector=", this.proxySelector)); sb.append(UrlTreeKt.componentParamSuffixChar); return sb.toString(); } public final HttpUrl url() { return this.url; } public final SSLSocketFactory sslSocketFactory() { return this.sslSocketFactory; } public final SocketFactory socketFactory() { return this.socketFactory; } public final ProxySelector proxySelector() { return this.proxySelector; } public final Authenticator proxyAuthenticator() { return this.proxyAuthenticator; } public final Proxy proxy() { return this.proxy; } public final List protocols() { return this.protocols; } public final HostnameVerifier hostnameVerifier() { return this.hostnameVerifier; } public final Dns dns() { return this.dns; } public final List connectionSpecs() { return this.connectionSpecs; } public final CertificatePinner certificatePinner() { return this.certificatePinner; } /* renamed from: -deprecated_url, reason: not valid java name */ public final HttpUrl m367deprecated_url() { return this.url; } /* renamed from: -deprecated_sslSocketFactory, reason: not valid java name */ public final SSLSocketFactory m366deprecated_sslSocketFactory() { return this.sslSocketFactory; } /* renamed from: -deprecated_socketFactory, reason: not valid java name */ public final SocketFactory m365deprecated_socketFactory() { return this.socketFactory; } /* renamed from: -deprecated_proxySelector, reason: not valid java name */ public final ProxySelector m364deprecated_proxySelector() { return this.proxySelector; } /* renamed from: -deprecated_proxyAuthenticator, reason: not valid java name */ public final Authenticator m363deprecated_proxyAuthenticator() { return this.proxyAuthenticator; } /* renamed from: -deprecated_proxy, reason: not valid java name */ public final Proxy m362deprecated_proxy() { return this.proxy; } /* renamed from: -deprecated_protocols, reason: not valid java name */ public final List m361deprecated_protocols() { return this.protocols; } /* renamed from: -deprecated_hostnameVerifier, reason: not valid java name */ public final HostnameVerifier m360deprecated_hostnameVerifier() { return this.hostnameVerifier; } /* renamed from: -deprecated_dns, reason: not valid java name */ public final Dns m359deprecated_dns() { return this.dns; } /* renamed from: -deprecated_connectionSpecs, reason: not valid java name */ public final List m358deprecated_connectionSpecs() { return this.connectionSpecs; } /* renamed from: -deprecated_certificatePinner, reason: not valid java name */ public final CertificatePinner m357deprecated_certificatePinner() { return this.certificatePinner; } }