package com.google.android.gms.internal.ads;

import android.media.metrics.LogSessionId;
import android.os.Build;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes2.dex */
public final class mk2 {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final mk2 f14243b;

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

    @Nullable
    private final lk2 zzc;

    static {
        new mk2("");
        f14243b = new mk2("preload");
    }

    public mk2(String str) {
        lk2 lk2Var;
        this.f14244a = str;
        if (Build.VERSION.SDK_INT >= 31) {
            lk2Var = new lk2();
            lk2Var.f13744a = LogSessionId.LOG_SESSION_ID_NONE;
        } else {
            lk2Var = null;
        }
        this.zzc = lk2Var;
    }

    public final synchronized LogSessionId a() {
        lk2 lk2Var;
        lk2Var = this.zzc;
        lk2Var.getClass();
        return lk2Var.f13744a;
    }

    public final synchronized void b(LogSessionId logSessionId) {
        lk2 lk2Var = this.zzc;
        lk2Var.getClass();
        ih1.b1(lk2Var.f13744a.equals(LogSessionId.LOG_SESSION_ID_NONE));
        lk2Var.f13744a = logSessionId;
    }
}
