// 
// Decompiled by Procyon v0.6.0
// 

package com.google.protobuf;

@CheckReturnValue
final class NewInstanceSchemas
{
    private static final NewInstanceSchema FULL_SCHEMA;
    private static final NewInstanceSchema LITE_SCHEMA;
    
    static NewInstanceSchema full() {
        return NewInstanceSchemas.FULL_SCHEMA;
    }
    
    static NewInstanceSchema lite() {
        return NewInstanceSchemas.LITE_SCHEMA;
    }
    
    private static NewInstanceSchema loadSchemaForFullRuntime() {
        if (Android.assumeLiteRuntime) {
            return null;
        }
        try {
            final Class<?> clazz = Class.forName("com.google.protobuf.NewInstanceSchemaFull");
            return (NewInstanceSchema)clazz.getDeclaredConstructor((Class<?>[])new Class[0]).newInstance(new Object[0]);
        }
        catch (final Exception e) {
            return null;
        }
    }
    
    private NewInstanceSchemas() {
    }
    
    static {
        FULL_SCHEMA = loadSchemaForFullRuntime();
        LITE_SCHEMA = new NewInstanceSchemaLite();
    }
}
