.class final Landroidx/datastore/preferences/protobuf/ExtensionSchemas; .super Ljava/lang/Object; .source "SourceFile" # static fields .field private static final FULL_SCHEMA:Landroidx/datastore/preferences/protobuf/ExtensionSchema; .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/datastore/preferences/protobuf/ExtensionSchema<", "*>;" } .end annotation .end field .field private static final LITE_SCHEMA:Landroidx/datastore/preferences/protobuf/ExtensionSchema; .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/datastore/preferences/protobuf/ExtensionSchema<", "*>;" } .end annotation .end field # direct methods .method static constructor ()V .locals 1 .line 34 new-instance v0, Landroidx/datastore/preferences/protobuf/ExtensionSchemaLite; invoke-direct {v0}, Landroidx/datastore/preferences/protobuf/ExtensionSchemaLite;->()V sput-object v0, Landroidx/datastore/preferences/protobuf/ExtensionSchemas;->LITE_SCHEMA:Landroidx/datastore/preferences/protobuf/ExtensionSchema; .line 35 invoke-static {}, Landroidx/datastore/preferences/protobuf/ExtensionSchemas;->loadSchemaForFullRuntime()Landroidx/datastore/preferences/protobuf/ExtensionSchema; move-result-object v0 sput-object v0, Landroidx/datastore/preferences/protobuf/ExtensionSchemas;->FULL_SCHEMA:Landroidx/datastore/preferences/protobuf/ExtensionSchema; return-void .end method .method public constructor ()V .locals 0 .line 33 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static full()Landroidx/datastore/preferences/protobuf/ExtensionSchema; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Landroidx/datastore/preferences/protobuf/ExtensionSchema<", "*>;" } .end annotation sget-object v0, Landroidx/datastore/preferences/protobuf/ExtensionSchemas;->FULL_SCHEMA:Landroidx/datastore/preferences/protobuf/ExtensionSchema; if-eqz v0, :cond_0 return-object v0 .line 52 :cond_0 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "Protobuf runtime is not correctly loaded." invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 .end method .method public static lite()Landroidx/datastore/preferences/protobuf/ExtensionSchema; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Landroidx/datastore/preferences/protobuf/ExtensionSchema<", "*>;" } .end annotation sget-object v0, Landroidx/datastore/preferences/protobuf/ExtensionSchemas;->LITE_SCHEMA:Landroidx/datastore/preferences/protobuf/ExtensionSchema; return-object v0 .end method .method private static loadSchemaForFullRuntime()Landroidx/datastore/preferences/protobuf/ExtensionSchema; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "()", "Landroidx/datastore/preferences/protobuf/ExtensionSchema<", "*>;" } .end annotation :try_start_0 const-string v0, "androidx.datastore.preferences.protobuf.ExtensionSchemaFull" .line 39 invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v0 const/4 v1, 0x0 new-array v2, v1, [Ljava/lang/Class; .line 40 invoke-virtual {v0, v2}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor; move-result-object v0 new-array v1, v1, [Ljava/lang/Object; invoke-virtual {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroidx/datastore/preferences/protobuf/ExtensionSchema; :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 return-object v0 :catch_0 const/4 v0, 0x0 return-object v0 .end method