package hi;

import com.google.firebase.encoders.FieldDescriptor;
import com.google.firebase.encoders.ObjectEncoder;
import com.google.firebase.encoders.ObjectEncoderContext;
import com.google.firebase.encoders.config.Configurator;
import com.google.firebase.encoders.config.EncoderConfig;
import com.google.firebase.remoteconfig.RemoteConfigConstants;

/* loaded from: classes.dex */
public final class b implements Configurator {

    /* renamed from: a, reason: collision with root package name */
    public static final Configurator f21715a = new b();

    /* loaded from: classes.dex */
    private static final class a implements ObjectEncoder {

        /* renamed from: a, reason: collision with root package name */
        static final a f21716a = new a();

        /* renamed from: b, reason: collision with root package name */
        private static final FieldDescriptor f21717b = FieldDescriptor.of(RemoteConfigConstants.RequestFieldKey.SDK_VERSION);

        /* renamed from: c, reason: collision with root package name */
        private static final FieldDescriptor f21718c = FieldDescriptor.of("model");

        /* renamed from: d, reason: collision with root package name */
        private static final FieldDescriptor f21719d = FieldDescriptor.of("hardware");

        /* renamed from: e, reason: collision with root package name */
        private static final FieldDescriptor f21720e = FieldDescriptor.of("device");

        /* renamed from: f, reason: collision with root package name */
        private static final FieldDescriptor f21721f = FieldDescriptor.of("product");

        /* renamed from: g, reason: collision with root package name */
        private static final FieldDescriptor f21722g = FieldDescriptor.of("osBuild");

        /* renamed from: h, reason: collision with root package name */
        private static final FieldDescriptor f21723h = FieldDescriptor.of("manufacturer");

        /* renamed from: i, reason: collision with root package name */
        private static final FieldDescriptor f21724i = FieldDescriptor.of("fingerprint");

        /* renamed from: j, reason: collision with root package name */
        private static final FieldDescriptor f21725j = FieldDescriptor.of("locale");

        /* renamed from: k, reason: collision with root package name */
        private static final FieldDescriptor f21726k = FieldDescriptor.of("country");

        /* renamed from: l, reason: collision with root package name */
        private static final FieldDescriptor f21727l = FieldDescriptor.of("mccMnc");

        /* renamed from: m, reason: collision with root package name */
        private static final FieldDescriptor f21728m = FieldDescriptor.of("applicationBuild");

        private a() {
        }

        @Override // com.google.firebase.encoders.ObjectEncoder, com.google.firebase.encoders.Encoder
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void encode(hi.a aVar, ObjectEncoderContext objectEncoderContext) {
            objectEncoderContext.add(f21717b, aVar.m());
            objectEncoderContext.add(f21718c, aVar.j());
            objectEncoderContext.add(f21719d, aVar.f());
            objectEncoderContext.add(f21720e, aVar.d());
            objectEncoderContext.add(f21721f, aVar.l());
            objectEncoderContext.add(f21722g, aVar.k());
            objectEncoderContext.add(f21723h, aVar.h());
            objectEncoderContext.add(f21724i, aVar.e());
            objectEncoderContext.add(f21725j, aVar.g());
            objectEncoderContext.add(f21726k, aVar.c());
            objectEncoderContext.add(f21727l, aVar.i());
            objectEncoderContext.add(f21728m, aVar.b());
        }
    }

    /* renamed from: hi.b$b, reason: collision with other inner class name */
    /* loaded from: classes.dex */
    private static final class C0465b implements ObjectEncoder {

        /* renamed from: a, reason: collision with root package name */
        static final C0465b f21729a = new C0465b();

        /* renamed from: b, reason: collision with root package name */
        private static final FieldDescriptor f21730b = FieldDescriptor.of("logRequest");

        private C0465b() {
        }

        @Override // com.google.firebase.encoders.ObjectEncoder, com.google.firebase.encoders.Encoder
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void encode(n nVar, ObjectEncoderContext objectEncoderContext) {
            objectEncoderContext.add(f21730b, nVar.c());
        }
    }

    /* loaded from: classes.dex */
    private static final class c implements ObjectEncoder {

        /* renamed from: a, reason: collision with root package name */
        static final c f21731a = new c();

        /* renamed from: b, reason: collision with root package name */
        private static final FieldDescriptor f21732b = FieldDescriptor.of("clientType");

        /* renamed from: c, reason: collision with root package name */
        private static final FieldDescriptor f21733c = FieldDescriptor.of("androidClientInfo");

        private c() {
        }

        @Override // com.google.firebase.encoders.ObjectEncoder, com.google.firebase.encoders.Encoder
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void encode(o oVar, ObjectEncoderContext objectEncoderContext) {
            objectEncoderContext.add(f21732b, oVar.c());
            objectEncoderContext.add(f21733c, oVar.b());
        }
    }

    /* loaded from: classes.dex */
    private static final class d implements ObjectEncoder {

        /* renamed from: a, reason: collision with root package name */
        static final d f21734a = new d();

        /* renamed from: b, reason: collision with root package name */
        private static final FieldDescriptor f21735b = FieldDescriptor.of("privacyContext");

        /* renamed from: c, reason: collision with root package name */
        private static final FieldDescriptor f21736c = FieldDescriptor.of("productIdOrigin");

        private d() {
        }

        @Override // com.google.firebase.encoders.ObjectEncoder, com.google.firebase.encoders.Encoder
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void encode(p pVar, ObjectEncoderContext objectEncoderContext) {
            objectEncoderContext.add(f21735b, pVar.b());
            objectEncoderContext.add(f21736c, pVar.c());
        }
    }

    /* loaded from: classes.dex */
    private static final class e implements ObjectEncoder {

        /* renamed from: a, reason: collision with root package name */
        static final e f21737a = new e();

        /* renamed from: b, reason: collision with root package name */
        private static final FieldDescriptor f21738b = FieldDescriptor.of("clearBlob");

        /* renamed from: c, reason: collision with root package name */
        private static final FieldDescriptor f21739c = FieldDescriptor.of("encryptedBlob");

        private e() {
        }

        @Override // com.google.firebase.encoders.ObjectEncoder, com.google.firebase.encoders.Encoder
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void encode(q qVar, ObjectEncoderContext objectEncoderContext) {
            objectEncoderContext.add(f21738b, qVar.b());
            objectEncoderContext.add(f21739c, qVar.c());
        }
    }

    /* loaded from: classes.dex */
    private static final class f implements ObjectEncoder {

        /* renamed from: a, reason: collision with root package name */
        static final f f21740a = new f();

        /* renamed from: b, reason: collision with root package name */
        private static final FieldDescriptor f21741b = FieldDescriptor.of("originAssociatedProductId");

        private f() {
        }

        @Override // com.google.firebase.encoders.ObjectEncoder, com.google.firebase.encoders.Encoder
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void encode(r rVar, ObjectEncoderContext objectEncoderContext) {
            objectEncoderContext.add(f21741b, rVar.b());
        }
    }

    /* loaded from: classes.dex */
    private static final class g implements ObjectEncoder {

        /* renamed from: a, reason: collision with root package name */
        static final g f21742a = new g();

        /* renamed from: b, reason: collision with root package name */
        private static final FieldDescriptor f21743b = FieldDescriptor.of("prequest");

        private g() {
        }

        @Override // com.google.firebase.encoders.ObjectEncoder, com.google.firebase.encoders.Encoder
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void encode(s sVar, ObjectEncoderContext objectEncoderContext) {
            objectEncoderContext.add(f21743b, sVar.b());
        }
    }

    /* loaded from: classes.dex */
    private static final class h implements ObjectEncoder {

        /* renamed from: a, reason: collision with root package name */
        static final h f21744a = new h();

        /* renamed from: b, reason: collision with root package name */
        private static final FieldDescriptor f21745b = FieldDescriptor.of("eventTimeMs");

        /* renamed from: c, reason: collision with root package name */
        private static final FieldDescriptor f21746c = FieldDescriptor.of("eventCode");

        /* renamed from: d, reason: collision with root package name */
        private static final FieldDescriptor f21747d = FieldDescriptor.of("complianceData");

        /* renamed from: e, reason: collision with root package name */
        private static final FieldDescriptor f21748e = FieldDescriptor.of("eventUptimeMs");

        /* renamed from: f, reason: collision with root package name */
        private static final FieldDescriptor f21749f = FieldDescriptor.of("sourceExtension");

        /* renamed from: g, reason: collision with root package name */
        private static final FieldDescriptor f21750g = FieldDescriptor.of("sourceExtensionJsonProto3");

        /* renamed from: h, reason: collision with root package name */
        private static final FieldDescriptor f21751h = FieldDescriptor.of("timezoneOffsetSeconds");

        /* renamed from: i, reason: collision with root package name */
        private static final FieldDescriptor f21752i = FieldDescriptor.of("networkConnectionInfo");

        /* renamed from: j, reason: collision with root package name */
        private static final FieldDescriptor f21753j = FieldDescriptor.of("experimentIds");

        private h() {
        }

        @Override // com.google.firebase.encoders.ObjectEncoder, com.google.firebase.encoders.Encoder
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void encode(t tVar, ObjectEncoderContext objectEncoderContext) {
            objectEncoderContext.add(f21745b, tVar.d());
            objectEncoderContext.add(f21746c, tVar.c());
            objectEncoderContext.add(f21747d, tVar.b());
            objectEncoderContext.add(f21748e, tVar.e());
            objectEncoderContext.add(f21749f, tVar.h());
            objectEncoderContext.add(f21750g, tVar.i());
            objectEncoderContext.add(f21751h, tVar.j());
            objectEncoderContext.add(f21752i, tVar.g());
            objectEncoderContext.add(f21753j, tVar.f());
        }
    }

    /* loaded from: classes.dex */
    private static final class i implements ObjectEncoder {

        /* renamed from: a, reason: collision with root package name */
        static final i f21754a = new i();

        /* renamed from: b, reason: collision with root package name */
        private static final FieldDescriptor f21755b = FieldDescriptor.of("requestTimeMs");

        /* renamed from: c, reason: collision with root package name */
        private static final FieldDescriptor f21756c = FieldDescriptor.of("requestUptimeMs");

        /* renamed from: d, reason: collision with root package name */
        private static final FieldDescriptor f21757d = FieldDescriptor.of("clientInfo");

        /* renamed from: e, reason: collision with root package name */
        private static final FieldDescriptor f21758e = FieldDescriptor.of("logSource");

        /* renamed from: f, reason: collision with root package name */
        private static final FieldDescriptor f21759f = FieldDescriptor.of("logSourceName");

        /* renamed from: g, reason: collision with root package name */
        private static final FieldDescriptor f21760g = FieldDescriptor.of("logEvent");

        /* renamed from: h, reason: collision with root package name */
        private static final FieldDescriptor f21761h = FieldDescriptor.of("qosTier");

        private i() {
        }

        @Override // com.google.firebase.encoders.ObjectEncoder, com.google.firebase.encoders.Encoder
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void encode(u uVar, ObjectEncoderContext objectEncoderContext) {
            objectEncoderContext.add(f21755b, uVar.g());
            objectEncoderContext.add(f21756c, uVar.h());
            objectEncoderContext.add(f21757d, uVar.b());
            objectEncoderContext.add(f21758e, uVar.d());
            objectEncoderContext.add(f21759f, uVar.e());
            objectEncoderContext.add(f21760g, uVar.c());
            objectEncoderContext.add(f21761h, uVar.f());
        }
    }

    /* loaded from: classes.dex */
    private static final class j implements ObjectEncoder {

        /* renamed from: a, reason: collision with root package name */
        static final j f21762a = new j();

        /* renamed from: b, reason: collision with root package name */
        private static final FieldDescriptor f21763b = FieldDescriptor.of("networkType");

        /* renamed from: c, reason: collision with root package name */
        private static final FieldDescriptor f21764c = FieldDescriptor.of("mobileSubtype");

        private j() {
        }

        @Override // com.google.firebase.encoders.ObjectEncoder, com.google.firebase.encoders.Encoder
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void encode(w wVar, ObjectEncoderContext objectEncoderContext) {
            objectEncoderContext.add(f21763b, wVar.c());
            objectEncoderContext.add(f21764c, wVar.b());
        }
    }

    private b() {
    }

    @Override // com.google.firebase.encoders.config.Configurator
    public void configure(EncoderConfig encoderConfig) {
        C0465b c0465b = C0465b.f21729a;
        encoderConfig.registerEncoder(n.class, c0465b);
        encoderConfig.registerEncoder(hi.d.class, c0465b);
        i iVar = i.f21754a;
        encoderConfig.registerEncoder(u.class, iVar);
        encoderConfig.registerEncoder(k.class, iVar);
        c cVar = c.f21731a;
        encoderConfig.registerEncoder(o.class, cVar);
        encoderConfig.registerEncoder(hi.e.class, cVar);
        a aVar = a.f21716a;
        encoderConfig.registerEncoder(hi.a.class, aVar);
        encoderConfig.registerEncoder(hi.c.class, aVar);
        h hVar = h.f21744a;
        encoderConfig.registerEncoder(t.class, hVar);
        encoderConfig.registerEncoder(hi.j.class, hVar);
        d dVar = d.f21734a;
        encoderConfig.registerEncoder(p.class, dVar);
        encoderConfig.registerEncoder(hi.f.class, dVar);
        g gVar = g.f21742a;
        encoderConfig.registerEncoder(s.class, gVar);
        encoderConfig.registerEncoder(hi.i.class, gVar);
        f fVar = f.f21740a;
        encoderConfig.registerEncoder(r.class, fVar);
        encoderConfig.registerEncoder(hi.h.class, fVar);
        j jVar = j.f21762a;
        encoderConfig.registerEncoder(w.class, jVar);
        encoderConfig.registerEncoder(m.class, jVar);
        e eVar = e.f21737a;
        encoderConfig.registerEncoder(q.class, eVar);
        encoderConfig.registerEncoder(hi.g.class, eVar);
    }
}
