.class public Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/firebase/remoteconfig/internal/ConfigContainer; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "Builder" .end annotation # instance fields .field public builderAbtExperiments:Lorg/json/JSONArray; .field public builderConfigsJson:Lorg/json/JSONObject; .field public builderFetchTime:Ljava/util/Date; .field public builderPersonalizationMetadata:Lorg/json/JSONObject; .field public builderRolloutMetadata:Lorg/json/JSONArray; .field public builderTemplateVersionNumber:J # direct methods .method public constructor ()V .locals 2 .line 312 invoke-direct {p0}, Ljava/lang/Object;->()V .line 313 new-instance v0, Lorg/json/JSONObject; invoke-direct {v0}, Lorg/json/JSONObject;->()V iput-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderConfigsJson:Lorg/json/JSONObject; .line 314 invoke-static {}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;->access$000()Ljava/util/Date; move-result-object v0 iput-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderFetchTime:Ljava/util/Date; .line 315 new-instance v0, Lorg/json/JSONArray; invoke-direct {v0}, Lorg/json/JSONArray;->()V iput-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderAbtExperiments:Lorg/json/JSONArray; .line 316 new-instance v0, Lorg/json/JSONObject; invoke-direct {v0}, Lorg/json/JSONObject;->()V iput-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderPersonalizationMetadata:Lorg/json/JSONObject; const-wide/16 v0, 0x0 iput-wide v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderTemplateVersionNumber:J .line 318 new-instance v0, Lorg/json/JSONArray; invoke-direct {v0}, Lorg/json/JSONArray;->()V iput-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderRolloutMetadata:Lorg/json/JSONArray; return-void .end method .method public synthetic constructor (Lcom/google/firebase/remoteconfig/internal/ConfigContainer$1;)V .locals 0 .line 304 invoke-direct {p0}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->()V return-void .end method # virtual methods .method public build()Lcom/google/firebase/remoteconfig/internal/ConfigContainer; .locals 10 .line 395 new-instance v9, Lcom/google/firebase/remoteconfig/internal/ConfigContainer; iget-object v1, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderConfigsJson:Lorg/json/JSONObject; iget-object v2, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderFetchTime:Ljava/util/Date; iget-object v3, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderAbtExperiments:Lorg/json/JSONArray; iget-object v4, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderPersonalizationMetadata:Lorg/json/JSONObject; iget-wide v5, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderTemplateVersionNumber:J iget-object v7, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderRolloutMetadata:Lorg/json/JSONArray; const/4 v8, 0x0 move-object v0, v9 invoke-direct/range {v0 .. v8}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;->(Lorg/json/JSONObject;Ljava/util/Date;Lorg/json/JSONArray;Lorg/json/JSONObject;JLorg/json/JSONArray;Lcom/google/firebase/remoteconfig/internal/ConfigContainer$1;)V return-object v9 .end method .method public replaceConfigsWith(Lorg/json/JSONObject;)Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder; .locals 1 .line 337 :try_start_0 new-instance v0, Lorg/json/JSONObject; invoke-virtual {p1}, Lorg/json/JSONObject;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v0, p1}, Lorg/json/JSONObject;->(Ljava/lang/String;)V iput-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderConfigsJson:Lorg/json/JSONObject; :try_end_0 .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 return-object p0 .end method .method public withAbtExperiments(Lorg/json/JSONArray;)Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder; .locals 1 .line 354 :try_start_0 new-instance v0, Lorg/json/JSONArray; invoke-virtual {p1}, Lorg/json/JSONArray;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v0, p1}, Lorg/json/JSONArray;->(Ljava/lang/String;)V iput-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderAbtExperiments:Lorg/json/JSONArray; :try_end_0 .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 return-object p0 .end method .method public withFetchTime(Ljava/util/Date;)Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder; .locals 0 iput-object p1, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderFetchTime:Ljava/util/Date; return-object p0 .end method .method public withPersonalizationMetadata(Lorg/json/JSONObject;)Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder; .locals 1 .line 366 :try_start_0 new-instance v0, Lorg/json/JSONObject; invoke-virtual {p1}, Lorg/json/JSONObject;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v0, p1}, Lorg/json/JSONObject;->(Ljava/lang/String;)V iput-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderPersonalizationMetadata:Lorg/json/JSONObject; :try_end_0 .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 return-object p0 .end method .method public withRolloutMetadata(Lorg/json/JSONArray;)Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder; .locals 1 .line 383 :try_start_0 new-instance v0, Lorg/json/JSONArray; invoke-virtual {p1}, Lorg/json/JSONArray;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v0, p1}, Lorg/json/JSONArray;->(Ljava/lang/String;)V iput-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderRolloutMetadata:Lorg/json/JSONArray; :try_end_0 .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 return-object p0 .end method .method public withTemplateVersionNumber(J)Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder; .locals 0 iput-wide p1, p0, Lcom/google/firebase/remoteconfig/internal/ConfigContainer$Builder;->builderTemplateVersionNumber:J return-object p0 .end method