package r3;

import android.util.Base64;
import java.util.Arrays;

/* JADX INFO: loaded from: classes.dex */
public final class j {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f23972a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final byte[] f23973b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final o3.c f23974c;

    public j(String str, byte[] bArr, o3.c cVar) {
        this.f23972a = str;
        this.f23973b = bArr;
        this.f23974c = cVar;
    }

    public static o4.f a() {
        o4.f fVar = new o4.f(4);
        fVar.f21851d = o3.c.f21809a;
        return fVar;
    }

    public final j b(o3.c cVar) {
        o4.f fVarA = a();
        fVarA.k(this.f23972a);
        if (cVar == null) {
            throw new NullPointerException("Null priority");
        }
        fVarA.f21851d = cVar;
        fVarA.f21850c = this.f23973b;
        return fVarA.a();
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj instanceof j) {
            j jVar = (j) obj;
            if (this.f23972a.equals(jVar.f23972a) && Arrays.equals(this.f23973b, jVar.f23973b) && this.f23974c.equals(jVar.f23974c)) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return ((((this.f23972a.hashCode() ^ 1000003) * 1000003) ^ Arrays.hashCode(this.f23973b)) * 1000003) ^ this.f23974c.hashCode();
    }

    public final String toString() {
        byte[] bArr = this.f23973b;
        return "TransportContext(" + this.f23972a + ", " + this.f23974c + ", " + (bArr == null ? "" : Base64.encodeToString(bArr, 2)) + ")";
    }
}
