package e.a.o;

import d.j0.p;
import d.n;
import d.n0.c.s;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/* JADX INFO: compiled from: SerialDescriptors.kt */
/* JADX INFO: loaded from: classes.dex */
@n
public final class a {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private List<? extends Annotation> f2754b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private final List<String> f2755c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private final Set<String> f2756d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private final List<f> f2757e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private final List<List<Annotation>> f2758f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private final List<Boolean> f2759g;

    public a(String str) {
        s.e(str, "serialName");
        this.f2753a = str;
        this.f2754b = p.d();
        this.f2755c = new ArrayList();
        this.f2756d = new HashSet();
        this.f2757e = new ArrayList();
        this.f2758f = new ArrayList();
        this.f2759g = new ArrayList();
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ void b(a aVar, String str, f fVar, List list, boolean z, int i, Object obj) {
        if ((i & 4) != 0) {
            list = p.d();
        }
        if ((i & 8) != 0) {
            z = false;
        }
        aVar.a(str, fVar, list, z);
    }

    public final void a(String str, f fVar, List<? extends Annotation> list, boolean z) {
        s.e(str, "elementName");
        s.e(fVar, "descriptor");
        s.e(list, "annotations");
        if (!this.f2756d.add(str)) {
            throw new IllegalArgumentException(("Element with name '" + str + "' is already registered").toString());
        }
        this.f2755c.add(str);
        this.f2757e.add(fVar);
        this.f2758f.add(list);
        this.f2759g.add(Boolean.valueOf(z));
    }

    public final List<Annotation> c() {
        return this.f2754b;
    }

    public final List<List<Annotation>> d() {
        return this.f2758f;
    }

    public final List<f> e() {
        return this.f2757e;
    }

    public final List<String> f() {
        return this.f2755c;
    }

    public final List<Boolean> g() {
        return this.f2759g;
    }

    public final void h(List<? extends Annotation> list) {
        s.e(list, "<set-?>");
        this.f2754b = list;
    }
}
