31 package com.google.protobuf;
33 final class NewInstanceSchemas {
34 private static final NewInstanceSchema FULL_SCHEMA = loadSchemaForFullRuntime();
35 private static final NewInstanceSchema LITE_SCHEMA =
new NewInstanceSchemaLite();
37 static NewInstanceSchema full() {
41 static NewInstanceSchema lite() {
45 private static NewInstanceSchema loadSchemaForFullRuntime() {
47 Class<?> clazz = Class.forName(
"com.google.protobuf.NewInstanceSchemaFull");
48 return (NewInstanceSchema) clazz.getDeclaredConstructor().newInstance();
49 }
catch (Exception e) {