package com.google.android.gms.measurement.api;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.internal.ShowFirstParty;
import com.google.android.gms.internal.measurement.zzdy;
import com.google.android.gms.measurement.internal.zzjl;
import com.google.android.gms.measurement.internal.zzjm;
import defpackage.dva;
import defpackage.rq6;
import defpackage.s18;
import defpackage.vo6;
import defpackage.vv8;
import java.util.List;
import java.util.Map;

/* JADX INFO: loaded from: classes2.dex */
@ShowFirstParty
@KeepForSdk
public class AppMeasurementSdk {
    private final zzdy zza;

    @KeepForSdk
    public static final class ConditionalUserProperty {

        @vo6
        @KeepForSdk
        public static final String ACTIVE = "active";

        @vo6
        @KeepForSdk
        public static final String CREATION_TIMESTAMP = "creation_timestamp";

        @vo6
        @KeepForSdk
        public static final String EXPIRED_EVENT_NAME = "expired_event_name";

        @vo6
        @KeepForSdk
        public static final String EXPIRED_EVENT_PARAMS = "expired_event_params";

        @vo6
        @KeepForSdk
        public static final String NAME = "name";

        @vo6
        @KeepForSdk
        public static final String ORIGIN = "origin";

        @vo6
        @KeepForSdk
        public static final String TIMED_OUT_EVENT_NAME = "timed_out_event_name";

        @vo6
        @KeepForSdk
        public static final String TIMED_OUT_EVENT_PARAMS = "timed_out_event_params";

        @vo6
        @KeepForSdk
        public static final String TIME_TO_LIVE = "time_to_live";

        @vo6
        @KeepForSdk
        public static final String TRIGGERED_EVENT_NAME = "triggered_event_name";

        @vo6
        @KeepForSdk
        public static final String TRIGGERED_EVENT_PARAMS = "triggered_event_params";

        @vo6
        @KeepForSdk
        public static final String TRIGGERED_TIMESTAMP = "triggered_timestamp";

        @vo6
        @KeepForSdk
        public static final String TRIGGER_EVENT_NAME = "trigger_event_name";

        @vo6
        @KeepForSdk
        public static final String TRIGGER_TIMEOUT = "trigger_timeout";

        @vo6
        @KeepForSdk
        public static final String VALUE = "value";

        private ConditionalUserProperty() {
        }
    }

    @ShowFirstParty
    @KeepForSdk
    public interface EventInterceptor extends zzjm {
        @Override // com.google.android.gms.measurement.internal.zzjm
        @ShowFirstParty
        @KeepForSdk
        @dva
        void interceptEvent(@vo6 String str, @vo6 String str2, @vo6 Bundle bundle, long j);
    }

    @ShowFirstParty
    @KeepForSdk
    public interface OnEventListener extends zzjl {
        @Override // com.google.android.gms.measurement.internal.zzjl
        @ShowFirstParty
        @KeepForSdk
        @dva
        void onEvent(@vo6 String str, @vo6 String str2, @vo6 Bundle bundle, long j);
    }

    public AppMeasurementSdk(zzdy zzdyVar) {
        this.zza = zzdyVar;
    }

    @vo6
    @ShowFirstParty
    @KeepForSdk
    @s18
    public static AppMeasurementSdk getInstance(@vo6 Context context) {
        return zzdy.zza(context).zzb();
    }

    @KeepForSdk
    public void beginAdUnitExposure(@vo6 @vv8 String str) {
        this.zza.zzb(str);
    }

    @KeepForSdk
    public void clearConditionalUserProperty(@vo6 @vv8 String str, @rq6 String str2, @rq6 Bundle bundle) {
        this.zza.zza(str, str2, bundle);
    }

    @KeepForSdk
    public void endAdUnitExposure(@vo6 @vv8 String str) {
        this.zza.zzc(str);
    }

    @KeepForSdk
    public long generateEventId() {
        return this.zza.zza();
    }

    @rq6
    @KeepForSdk
    public String getAppIdOrigin() {
        return this.zza.zzd();
    }

    @rq6
    @KeepForSdk
    public String getAppInstanceId() {
        return this.zza.zzf();
    }

    @vo6
    @KeepForSdk
    @dva
    public List<Bundle> getConditionalUserProperties(@rq6 String str, @rq6 @vv8 String str2) {
        return this.zza.zza(str, str2);
    }

    @rq6
    @KeepForSdk
    public String getCurrentScreenClass() {
        return this.zza.zzg();
    }

    @rq6
    @KeepForSdk
    public String getCurrentScreenName() {
        return this.zza.zzh();
    }

    @rq6
    @KeepForSdk
    public String getGmpAppId() {
        return this.zza.zzi();
    }

    @KeepForSdk
    @dva
    public int getMaxUserProperties(@vo6 @vv8 String str) {
        return this.zza.zza(str);
    }

    @vo6
    @KeepForSdk
    @dva
    public Map<String, Object> getUserProperties(@rq6 String str, @rq6 @vv8 String str2, boolean z) {
        return this.zza.zza(str, str2, z);
    }

    @KeepForSdk
    public void logEvent(@vo6 String str, @vo6 String str2, @rq6 Bundle bundle) {
        this.zza.zzb(str, str2, bundle);
    }

    @KeepForSdk
    public void logEventNoInterceptor(@vo6 String str, @vo6 String str2, @rq6 Bundle bundle, long j) {
        this.zza.zza(str, str2, bundle, j);
    }

    @KeepForSdk
    public void performAction(@vo6 Bundle bundle) {
        this.zza.zza(bundle, false);
    }

    @rq6
    @KeepForSdk
    public Bundle performActionWithResponse(@vo6 Bundle bundle) {
        return this.zza.zza(bundle, true);
    }

    @ShowFirstParty
    @KeepForSdk
    public void registerOnMeasurementEventListener(@vo6 OnEventListener onEventListener) {
        this.zza.zza(onEventListener);
    }

    @KeepForSdk
    public void setConditionalUserProperty(@vo6 Bundle bundle) {
        this.zza.zza(bundle);
    }

    @KeepForSdk
    public void setConsent(@vo6 Bundle bundle) {
        this.zza.zzb(bundle);
    }

    @KeepForSdk
    public void setCurrentScreen(@vo6 Activity activity, @rq6 @vv8 String str, @rq6 @vv8 String str2) {
        this.zza.zza(activity, str, str2);
    }

    @ShowFirstParty
    @KeepForSdk
    @dva
    public void setEventInterceptor(@vo6 EventInterceptor eventInterceptor) {
        this.zza.zza(eventInterceptor);
    }

    @KeepForSdk
    public void setMeasurementEnabled(@rq6 Boolean bool) {
        this.zza.zza(bool);
    }

    @KeepForSdk
    public void setUserProperty(@vo6 String str, @vo6 String str2, @vo6 Object obj) {
        this.zza.zza(str, str2, obj, true);
    }

    @ShowFirstParty
    @KeepForSdk
    public void unregisterOnMeasurementEventListener(@vo6 OnEventListener onEventListener) {
        this.zza.zzb(onEventListener);
    }

    public final void zza(boolean z) {
        this.zza.zza(z);
    }

    @vo6
    @KeepForSdk
    @s18
    public static AppMeasurementSdk getInstance(@vo6 Context context, @vo6 String str, @vo6 String str2, @rq6 String str3, @vo6 Bundle bundle) {
        return zzdy.zza(context, str, str2, str3, bundle).zzb();
    }

    @KeepForSdk
    public void setMeasurementEnabled(boolean z) {
        this.zza.zza(Boolean.valueOf(z));
    }
}
