package com.revenuecat.purchases.common.events;

import Q4.c;
import com.revenuecat.purchases.common.events.BackendEvent;
import com.revenuecat.purchases.utils.Event;
import g5.a;
import g5.e;
import j5.b;
import java.lang.annotation.Annotation;
import k5.P;
import k5.a0;
import kotlin.jvm.internal.D;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import m1.g;
import w4.InterfaceC3141c;
import w4.h;
import w4.i;

/* JADX INFO: loaded from: classes3.dex */
public abstract class BackendStoredEvent implements Event {
    public static final Companion Companion = new Companion(null);
    private static final h $cachedSerializer$delegate = g.j(i.f25466b, Companion.AnonymousClass1.INSTANCE);

    public static final class Ad extends BackendStoredEvent {
        public static final Companion Companion = new Companion(null);
        private final BackendEvent.Ad event;

        public static final class Companion {
            public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                this();
            }

            public final a serializer() {
                return BackendStoredEvent$Ad$$serializer.INSTANCE;
            }

            private Companion() {
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        @InterfaceC3141c
        public /* synthetic */ Ad(int i6, BackendEvent.Ad ad, a0 a0Var) {
            super(i6, a0Var);
            if (1 != (i6 & 1)) {
                P.h(i6, 1, BackendStoredEvent$Ad$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.event = ad;
        }

        public static /* synthetic */ Ad copy$default(Ad ad, BackendEvent.Ad ad2, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                ad2 = ad.event;
            }
            return ad.copy(ad2);
        }

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Ad ad, b bVar, i5.g gVar) {
            BackendStoredEvent.write$Self(ad, bVar, gVar);
            bVar.z(gVar, 0, BackendEvent$Ad$$serializer.INSTANCE, ad.event);
        }

        public final BackendEvent.Ad component1() {
            return this.event;
        }

        public final Ad copy(BackendEvent.Ad event) {
            o.h(event, "event");
            return new Ad(event);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof Ad) && o.c(this.event, ((Ad) obj).event);
        }

        public final BackendEvent.Ad getEvent() {
            return this.event;
        }

        public int hashCode() {
            return this.event.hashCode();
        }

        @Override // com.revenuecat.purchases.utils.Event
        public String toString() {
            return "Ad(event=" + this.event + ')';
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public Ad(BackendEvent.Ad event) {
            super(null);
            o.h(event, "event");
            this.event = event;
        }
    }

    public static final class Companion {

        /* JADX INFO: renamed from: com.revenuecat.purchases.common.events.BackendStoredEvent$Companion$1, reason: invalid class name */
        public static final class AnonymousClass1 extends p implements J4.a {
            public static final AnonymousClass1 INSTANCE = new AnonymousClass1();

            public AnonymousClass1() {
                super(0);
            }

            @Override // J4.a
            public final a invoke() {
                return new e("com.revenuecat.purchases.common.events.BackendStoredEvent", D.a(BackendStoredEvent.class), new c[]{D.a(Ad.class), D.a(CustomPaywall.class), D.a(CustomerCenter.class), D.a(Paywalls.class)}, new a[]{BackendStoredEvent$Ad$$serializer.INSTANCE, BackendStoredEvent$CustomPaywall$$serializer.INSTANCE, BackendStoredEvent$CustomerCenter$$serializer.INSTANCE, BackendStoredEvent$Paywalls$$serializer.INSTANCE}, new Annotation[0]);
            }
        }

        public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
            this();
        }

        private final /* synthetic */ a get$cachedSerializer() {
            return (a) BackendStoredEvent.$cachedSerializer$delegate.getValue();
        }

        public final a serializer() {
            return get$cachedSerializer();
        }

        private Companion() {
        }
    }

    public static final class CustomPaywall extends BackendStoredEvent {
        public static final Companion Companion = new Companion(null);
        private final BackendEvent.CustomPaywall event;

        public static final class Companion {
            public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                this();
            }

            public final a serializer() {
                return BackendStoredEvent$CustomPaywall$$serializer.INSTANCE;
            }

            private Companion() {
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        @InterfaceC3141c
        public /* synthetic */ CustomPaywall(int i6, BackendEvent.CustomPaywall customPaywall, a0 a0Var) {
            super(i6, a0Var);
            if (1 != (i6 & 1)) {
                P.h(i6, 1, BackendStoredEvent$CustomPaywall$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.event = customPaywall;
        }

        public static /* synthetic */ CustomPaywall copy$default(CustomPaywall customPaywall, BackendEvent.CustomPaywall customPaywall2, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                customPaywall2 = customPaywall.event;
            }
            return customPaywall.copy(customPaywall2);
        }

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(CustomPaywall customPaywall, b bVar, i5.g gVar) {
            BackendStoredEvent.write$Self(customPaywall, bVar, gVar);
            bVar.z(gVar, 0, BackendEvent$CustomPaywall$$serializer.INSTANCE, customPaywall.event);
        }

        public final BackendEvent.CustomPaywall component1() {
            return this.event;
        }

        public final CustomPaywall copy(BackendEvent.CustomPaywall event) {
            o.h(event, "event");
            return new CustomPaywall(event);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof CustomPaywall) && o.c(this.event, ((CustomPaywall) obj).event);
        }

        public final BackendEvent.CustomPaywall getEvent() {
            return this.event;
        }

        public int hashCode() {
            return this.event.hashCode();
        }

        @Override // com.revenuecat.purchases.utils.Event
        public String toString() {
            return "CustomPaywall(event=" + this.event + ')';
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public CustomPaywall(BackendEvent.CustomPaywall event) {
            super(null);
            o.h(event, "event");
            this.event = event;
        }
    }

    public static final class CustomerCenter extends BackendStoredEvent {
        public static final Companion Companion = new Companion(null);
        private final BackendEvent.CustomerCenter event;

        public static final class Companion {
            public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                this();
            }

            public final a serializer() {
                return BackendStoredEvent$CustomerCenter$$serializer.INSTANCE;
            }

            private Companion() {
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        @InterfaceC3141c
        public /* synthetic */ CustomerCenter(int i6, BackendEvent.CustomerCenter customerCenter, a0 a0Var) {
            super(i6, a0Var);
            if (1 != (i6 & 1)) {
                P.h(i6, 1, BackendStoredEvent$CustomerCenter$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.event = customerCenter;
        }

        public static /* synthetic */ CustomerCenter copy$default(CustomerCenter customerCenter, BackendEvent.CustomerCenter customerCenter2, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                customerCenter2 = customerCenter.event;
            }
            return customerCenter.copy(customerCenter2);
        }

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(CustomerCenter customerCenter, b bVar, i5.g gVar) {
            BackendStoredEvent.write$Self(customerCenter, bVar, gVar);
            bVar.z(gVar, 0, BackendEvent$CustomerCenter$$serializer.INSTANCE, customerCenter.event);
        }

        public final BackendEvent.CustomerCenter component1() {
            return this.event;
        }

        public final CustomerCenter copy(BackendEvent.CustomerCenter event) {
            o.h(event, "event");
            return new CustomerCenter(event);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof CustomerCenter) && o.c(this.event, ((CustomerCenter) obj).event);
        }

        public final BackendEvent.CustomerCenter getEvent() {
            return this.event;
        }

        public int hashCode() {
            return this.event.hashCode();
        }

        @Override // com.revenuecat.purchases.utils.Event
        public String toString() {
            return "CustomerCenter(event=" + this.event + ')';
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public CustomerCenter(BackendEvent.CustomerCenter event) {
            super(null);
            o.h(event, "event");
            this.event = event;
        }
    }

    public static final class Paywalls extends BackendStoredEvent {
        public static final Companion Companion = new Companion(null);
        private final BackendEvent.Paywalls event;

        public static final class Companion {
            public /* synthetic */ Companion(kotlin.jvm.internal.h hVar) {
                this();
            }

            public final a serializer() {
                return BackendStoredEvent$Paywalls$$serializer.INSTANCE;
            }

            private Companion() {
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        @InterfaceC3141c
        public /* synthetic */ Paywalls(int i6, BackendEvent.Paywalls paywalls, a0 a0Var) {
            super(i6, a0Var);
            if (1 != (i6 & 1)) {
                P.h(i6, 1, BackendStoredEvent$Paywalls$$serializer.INSTANCE.getDescriptor());
                throw null;
            }
            this.event = paywalls;
        }

        public static /* synthetic */ Paywalls copy$default(Paywalls paywalls, BackendEvent.Paywalls paywalls2, int i6, Object obj) {
            if ((i6 & 1) != 0) {
                paywalls2 = paywalls.event;
            }
            return paywalls.copy(paywalls2);
        }

        public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(Paywalls paywalls, b bVar, i5.g gVar) {
            BackendStoredEvent.write$Self(paywalls, bVar, gVar);
            bVar.z(gVar, 0, BackendEvent$Paywalls$$serializer.INSTANCE, paywalls.event);
        }

        public final BackendEvent.Paywalls component1() {
            return this.event;
        }

        public final Paywalls copy(BackendEvent.Paywalls event) {
            o.h(event, "event");
            return new Paywalls(event);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof Paywalls) && o.c(this.event, ((Paywalls) obj).event);
        }

        public final BackendEvent.Paywalls getEvent() {
            return this.event;
        }

        public int hashCode() {
            return this.event.hashCode();
        }

        @Override // com.revenuecat.purchases.utils.Event
        public String toString() {
            return "Paywalls(event=" + this.event + ')';
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public Paywalls(BackendEvent.Paywalls event) {
            super(null);
            o.h(event, "event");
            this.event = event;
        }
    }

    public /* synthetic */ BackendStoredEvent(kotlin.jvm.internal.h hVar) {
        this();
    }

    private BackendStoredEvent() {
    }

    @InterfaceC3141c
    public /* synthetic */ BackendStoredEvent(int i6, a0 a0Var) {
    }

    public static final /* synthetic */ void write$Self(BackendStoredEvent backendStoredEvent, b bVar, i5.g gVar) {
    }
}
