package h6;

import d5.AbstractC0844a;
import java.util.HashMap;
import z2.h;
import z2.k;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public Object f13432a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Object f13433b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public Object f13434c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public Object f13435d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public Object f13436e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public Object f13437f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public Object f13438g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public Object f13439h;
    public Object i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public Object f13440j;

    public void a(String str, String str2) {
        HashMap map = (HashMap) this.f13437f;
        if (map == null) {
            throw new IllegalStateException("Property \"autoMetadata\" has not been set");
        }
        map.put(str, str2);
    }

    public h b() {
        String strL = ((String) this.f13432a) == null ? " transportName" : "";
        if (((k) this.f13434c) == null) {
            strL = strL.concat(" encodedPayload");
        }
        if (((Long) this.f13435d) == null) {
            strL = AbstractC0844a.l(strL, " eventMillis");
        }
        if (((Long) this.f13436e) == null) {
            strL = AbstractC0844a.l(strL, " uptimeMillis");
        }
        if (((HashMap) this.f13437f) == null) {
            strL = AbstractC0844a.l(strL, " autoMetadata");
        }
        if (strL.isEmpty()) {
            return new h((String) this.f13432a, (Integer) this.f13433b, (k) this.f13434c, ((Long) this.f13435d).longValue(), ((Long) this.f13436e).longValue(), (HashMap) this.f13437f, (Integer) this.f13438g, (String) this.f13439h, (byte[]) this.i, (byte[]) this.f13440j);
        }
        throw new IllegalStateException("Missing required properties:".concat(strL));
    }
}
