package ii;

import android.util.Base64;
import ii.d;

/* loaded from: classes.dex */
public abstract class p {

    /* loaded from: classes.dex */
    public static abstract class a {
        public abstract p a();

        public abstract a b(String str);

        public abstract a c(byte[] bArr);

        public abstract a d(gi.f fVar);
    }

    public static a a() {
        return new d.b().d(gi.f.DEFAULT);
    }

    public abstract String b();

    public abstract byte[] c();

    public abstract gi.f d();

    public boolean e() {
        return c() != null;
    }

    public p f(gi.f fVar) {
        return a().b(b()).d(fVar).c(c()).a();
    }

    public final String toString() {
        Object[] objArr = new Object[3];
        objArr[0] = b();
        objArr[1] = d();
        objArr[2] = c() == null ? "" : Base64.encodeToString(c(), 2);
        return String.format("TransportContext(%s, %s, %s)", objArr);
    }
}
