package com.google.firebase.crashlytics.internal.model; import com.google.android.gms.measurement.api.AppMeasurementSdk; import com.google.android.libraries.places.api.model.PlaceTypes; import com.google.firebase.crashlytics.internal.model.CrashlyticsReport; 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.huawei.hms.support.api.entity.common.CommonConstant; import java.io.IOException; /* loaded from: classes.dex */ public final class AutoCrashlyticsReportEncoder implements Configurator { public static final int CODEGEN_VERSION = 1; public static final Configurator CONFIG = new AutoCrashlyticsReportEncoder(); private AutoCrashlyticsReportEncoder() { } @Override // com.google.firebase.encoders.config.Configurator public final void configure(EncoderConfig encoderConfig) { encoderConfig.registerEncoder(CrashlyticsReport.class, CrashlyticsReportEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport.class, CrashlyticsReportEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.class, CrashlyticsReportSessionEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session.class, CrashlyticsReportSessionEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Application.class, CrashlyticsReportSessionApplicationEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Application.class, CrashlyticsReportSessionApplicationEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Application.Organization.class, CrashlyticsReportSessionApplicationOrganizationEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Application_Organization.class, CrashlyticsReportSessionApplicationOrganizationEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.User.class, CrashlyticsReportSessionUserEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_User.class, CrashlyticsReportSessionUserEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.OperatingSystem.class, CrashlyticsReportSessionOperatingSystemEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_OperatingSystem.class, CrashlyticsReportSessionOperatingSystemEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Device.class, CrashlyticsReportSessionDeviceEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Device.class, CrashlyticsReportSessionDeviceEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.class, CrashlyticsReportSessionEventEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event.class, CrashlyticsReportSessionEventEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.class, CrashlyticsReportSessionEventApplicationEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application.class, CrashlyticsReportSessionEventApplicationEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.class, CrashlyticsReportSessionEventApplicationExecutionEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution.class, CrashlyticsReportSessionEventApplicationExecutionEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.Thread.class, CrashlyticsReportSessionEventApplicationExecutionThreadEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Thread.class, CrashlyticsReportSessionEventApplicationExecutionThreadEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.Thread.Frame.class, CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Thread_Frame.class, CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.Exception.class, CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Exception.class, CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.Signal.class, CrashlyticsReportSessionEventApplicationExecutionSignalEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution_Signal.class, CrashlyticsReportSessionEventApplicationExecutionSignalEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Application.Execution.BinaryImage.class, CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Application_Execution_BinaryImage.class, CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.CustomAttribute.class, CrashlyticsReportCustomAttributeEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_CustomAttribute.class, CrashlyticsReportCustomAttributeEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Device.class, CrashlyticsReportSessionEventDeviceEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Device.class, CrashlyticsReportSessionEventDeviceEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.Session.Event.Log.class, CrashlyticsReportSessionEventLogEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_Session_Event_Log.class, CrashlyticsReportSessionEventLogEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.FilesPayload.class, CrashlyticsReportFilesPayloadEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_FilesPayload.class, CrashlyticsReportFilesPayloadEncoder.INSTANCE); encoderConfig.registerEncoder(CrashlyticsReport.FilesPayload.File.class, CrashlyticsReportFilesPayloadFileEncoder.INSTANCE); encoderConfig.registerEncoder(AutoValue_CrashlyticsReport_FilesPayload_File.class, CrashlyticsReportFilesPayloadFileEncoder.INSTANCE); } /* loaded from: classes.dex */ static final class CrashlyticsReportEncoder implements ObjectEncoder { static final CrashlyticsReportEncoder INSTANCE = new CrashlyticsReportEncoder(); private CrashlyticsReportEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport crashlyticsReport, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("sdkVersion", crashlyticsReport.getSdkVersion()); objectEncoderContext.add("gmpAppId", crashlyticsReport.getGmpAppId()); objectEncoderContext.add("platform", crashlyticsReport.getPlatform()); objectEncoderContext.add("installationUuid", crashlyticsReport.getInstallationUuid()); objectEncoderContext.add("buildVersion", crashlyticsReport.getBuildVersion()); objectEncoderContext.add("displayVersion", crashlyticsReport.getDisplayVersion()); objectEncoderContext.add("session", crashlyticsReport.getSession()); objectEncoderContext.add("ndkPayload", crashlyticsReport.getNdkPayload()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEncoder INSTANCE = new CrashlyticsReportSessionEncoder(); private CrashlyticsReportSessionEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session session, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("generator", session.getGenerator()); objectEncoderContext.add("identifier", session.getIdentifierUtf8Bytes()); objectEncoderContext.add("startedAt", session.getStartedAt()); objectEncoderContext.add("endedAt", session.getEndedAt()); objectEncoderContext.add("crashed", session.isCrashed()); objectEncoderContext.add("app", session.getApp()); objectEncoderContext.add("user", session.getUser()); objectEncoderContext.add("os", session.getOs()); objectEncoderContext.add("device", session.getDevice()); objectEncoderContext.add("events", session.getEvents()); objectEncoderContext.add("generatorType", session.getGeneratorType()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionApplicationEncoder implements ObjectEncoder { static final CrashlyticsReportSessionApplicationEncoder INSTANCE = new CrashlyticsReportSessionApplicationEncoder(); private CrashlyticsReportSessionApplicationEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Application application, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("identifier", application.getIdentifier()); objectEncoderContext.add("version", application.getVersion()); objectEncoderContext.add("displayVersion", application.getDisplayVersion()); objectEncoderContext.add("organization", application.getOrganization()); objectEncoderContext.add("installationUuid", application.getInstallationUuid()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionApplicationOrganizationEncoder implements ObjectEncoder { static final CrashlyticsReportSessionApplicationOrganizationEncoder INSTANCE = new CrashlyticsReportSessionApplicationOrganizationEncoder(); private CrashlyticsReportSessionApplicationOrganizationEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Application.Organization organization, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("clsId", organization.getClsId()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionUserEncoder implements ObjectEncoder { static final CrashlyticsReportSessionUserEncoder INSTANCE = new CrashlyticsReportSessionUserEncoder(); private CrashlyticsReportSessionUserEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.User user, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("identifier", user.getIdentifier()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionOperatingSystemEncoder implements ObjectEncoder { static final CrashlyticsReportSessionOperatingSystemEncoder INSTANCE = new CrashlyticsReportSessionOperatingSystemEncoder(); private CrashlyticsReportSessionOperatingSystemEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.OperatingSystem operatingSystem, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("platform", operatingSystem.getPlatform()); objectEncoderContext.add("version", operatingSystem.getVersion()); objectEncoderContext.add("buildVersion", operatingSystem.getBuildVersion()); objectEncoderContext.add("jailbroken", operatingSystem.isJailbroken()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionDeviceEncoder implements ObjectEncoder { static final CrashlyticsReportSessionDeviceEncoder INSTANCE = new CrashlyticsReportSessionDeviceEncoder(); private CrashlyticsReportSessionDeviceEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Device device, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("arch", device.getArch()); objectEncoderContext.add("model", device.getModel()); objectEncoderContext.add("cores", device.getCores()); objectEncoderContext.add("ram", device.getRam()); objectEncoderContext.add("diskSpace", device.getDiskSpace()); objectEncoderContext.add("simulator", device.isSimulator()); objectEncoderContext.add(CommonConstant.ReqAccessTokenParam.STATE_LABEL, device.getState()); objectEncoderContext.add("manufacturer", device.getManufacturer()); objectEncoderContext.add("modelClass", device.getModelClass()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEventEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEventEncoder INSTANCE = new CrashlyticsReportSessionEventEncoder(); private CrashlyticsReportSessionEventEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Event event, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("timestamp", event.getTimestamp()); objectEncoderContext.add("type", event.getType()); objectEncoderContext.add("app", event.getApp()); objectEncoderContext.add("device", event.getDevice()); objectEncoderContext.add("log", event.getLog()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEventApplicationEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEventApplicationEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationEncoder(); private CrashlyticsReportSessionEventApplicationEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Event.Application application, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("execution", application.getExecution()); objectEncoderContext.add("customAttributes", application.getCustomAttributes()); objectEncoderContext.add("background", application.getBackground()); objectEncoderContext.add("uiOrientation", application.getUiOrientation()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEventApplicationExecutionEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEventApplicationExecutionEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionEncoder(); private CrashlyticsReportSessionEventApplicationExecutionEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Event.Application.Execution execution, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("threads", execution.getThreads()); objectEncoderContext.add("exception", execution.getException()); objectEncoderContext.add("signal", execution.getSignal()); objectEncoderContext.add("binaries", execution.getBinaries()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEventApplicationExecutionThreadEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEventApplicationExecutionThreadEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionThreadEncoder(); private CrashlyticsReportSessionEventApplicationExecutionThreadEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Event.Application.Execution.Thread thread, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("name", thread.getName()); objectEncoderContext.add("importance", thread.getImportance()); objectEncoderContext.add("frames", thread.getFrames()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder(); private CrashlyticsReportSessionEventApplicationExecutionThreadFrameEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Event.Application.Execution.Thread.Frame frame, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("pc", frame.getPc()); objectEncoderContext.add("symbol", frame.getSymbol()); objectEncoderContext.add("file", frame.getFile()); objectEncoderContext.add("offset", frame.getOffset()); objectEncoderContext.add("importance", frame.getImportance()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder(); private CrashlyticsReportSessionEventApplicationExecutionExceptionEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Event.Application.Execution.Exception exception, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("type", exception.getType()); objectEncoderContext.add("reason", exception.getReason()); objectEncoderContext.add("frames", exception.getFrames()); objectEncoderContext.add("causedBy", exception.getCausedBy()); objectEncoderContext.add("overflowCount", exception.getOverflowCount()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEventApplicationExecutionSignalEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEventApplicationExecutionSignalEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionSignalEncoder(); private CrashlyticsReportSessionEventApplicationExecutionSignalEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Event.Application.Execution.Signal signal, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("name", signal.getName()); objectEncoderContext.add("code", signal.getCode()); objectEncoderContext.add(PlaceTypes.ADDRESS, signal.getAddress()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder INSTANCE = new CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder(); private CrashlyticsReportSessionEventApplicationExecutionBinaryImageEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Event.Application.Execution.BinaryImage binaryImage, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("baseAddress", binaryImage.getBaseAddress()); objectEncoderContext.add("size", binaryImage.getSize()); objectEncoderContext.add("name", binaryImage.getName()); objectEncoderContext.add("uuid", binaryImage.getUuidUtf8Bytes()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportCustomAttributeEncoder implements ObjectEncoder { static final CrashlyticsReportCustomAttributeEncoder INSTANCE = new CrashlyticsReportCustomAttributeEncoder(); private CrashlyticsReportCustomAttributeEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.CustomAttribute customAttribute, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("key", customAttribute.getKey()); objectEncoderContext.add(AppMeasurementSdk.ConditionalUserProperty.VALUE, customAttribute.getValue()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEventDeviceEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEventDeviceEncoder INSTANCE = new CrashlyticsReportSessionEventDeviceEncoder(); private CrashlyticsReportSessionEventDeviceEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Event.Device device, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("batteryLevel", device.getBatteryLevel()); objectEncoderContext.add("batteryVelocity", device.getBatteryVelocity()); objectEncoderContext.add("proximityOn", device.isProximityOn()); objectEncoderContext.add("orientation", device.getOrientation()); objectEncoderContext.add("ramUsed", device.getRamUsed()); objectEncoderContext.add("diskUsed", device.getDiskUsed()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportSessionEventLogEncoder implements ObjectEncoder { static final CrashlyticsReportSessionEventLogEncoder INSTANCE = new CrashlyticsReportSessionEventLogEncoder(); private CrashlyticsReportSessionEventLogEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.Session.Event.Log log, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("content", log.getContent()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportFilesPayloadEncoder implements ObjectEncoder { static final CrashlyticsReportFilesPayloadEncoder INSTANCE = new CrashlyticsReportFilesPayloadEncoder(); private CrashlyticsReportFilesPayloadEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.FilesPayload filesPayload, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("files", filesPayload.getFiles()); objectEncoderContext.add("orgId", filesPayload.getOrgId()); } } /* loaded from: classes.dex */ static final class CrashlyticsReportFilesPayloadFileEncoder implements ObjectEncoder { static final CrashlyticsReportFilesPayloadFileEncoder INSTANCE = new CrashlyticsReportFilesPayloadFileEncoder(); private CrashlyticsReportFilesPayloadFileEncoder() { } @Override // com.google.firebase.encoders.Encoder public final void encode(CrashlyticsReport.FilesPayload.File file, ObjectEncoderContext objectEncoderContext) throws IOException { objectEncoderContext.add("filename", file.getFilename()); objectEncoderContext.add("contents", file.getContents()); } } }