tmap/smali_classes3/com/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder.smali
2022-06-10 21:38:30 +09:00

179 lines
4.8 KiB
Smali

.class public Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;
.super Ljava/lang/Object;
.source "FirebaseRemoteConfigSettings.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Builder"
.end annotation
# instance fields
.field private fetchTimeoutInSeconds:J
.field private minimumFetchInterval:J
# direct methods
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x3c
.line 2
iput-wide v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;->fetchTimeoutInSeconds:J
.line 3
sget-wide v0, Lcom/google/firebase/remoteconfig/internal/ConfigFetchHandler;->DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS:J
iput-wide v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;->minimumFetchInterval:J
return-void
.end method
.method public static synthetic access$000(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;)J
.locals 2
.line 1
iget-wide v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;->fetchTimeoutInSeconds:J
return-wide v0
.end method
.method public static synthetic access$100(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;)J
.locals 2
.line 1
iget-wide v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;->minimumFetchInterval:J
return-wide v0
.end method
# virtual methods
.method public build()Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings;-><init>(Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$1;)V
return-object v0
.end method
.method public getFetchTimeoutInSeconds()J
.locals 2
.line 1
iget-wide v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;->fetchTimeoutInSeconds:J
return-wide v0
.end method
.method public getMinimumFetchIntervalInSeconds()J
.locals 2
.line 1
iget-wide v0, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;->minimumFetchInterval:J
return-wide v0
.end method
.method public setFetchTimeoutInSeconds(J)Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalArgumentException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
if-ltz v0, :cond_0
.line 1
iput-wide p1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;->fetchTimeoutInSeconds:J
return-object p0
.line 2
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
.line 3
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
aput-object p1, v1, v2
const-string p1, "Fetch connection timeout has to be a non-negative number. %d is an invalid argument"
.line 4
invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public setMinimumFetchIntervalInSeconds(J)Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
const-wide/16 v0, 0x0
cmp-long v0, p1, v0
if-ltz v0, :cond_0
.line 1
iput-wide p1, p0, Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigSettings$Builder;->minimumFetchInterval:J
return-object p0
.line 2
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Minimum interval between fetches has to be a non-negative number. "
const-string v2, " is an invalid argument"
invoke-static {v1, p1, p2, v2}, Landroidx/concurrent/futures/a;->a(Ljava/lang/String;JLjava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method