package com.google.firebase.remoteconfig; import com.google.firebase.remoteconfig.internal.ConfigFetchHandler; /* loaded from: classes3.dex */ public class FirebaseRemoteConfigSettings { public final long fetchTimeoutInSeconds; public final long minimumFetchInterval; public long getFetchTimeoutInSeconds() { return this.fetchTimeoutInSeconds; } public long getMinimumFetchIntervalInSeconds() { return this.minimumFetchInterval; } public FirebaseRemoteConfigSettings(Builder builder) { this.fetchTimeoutInSeconds = builder.fetchTimeoutInSeconds; this.minimumFetchInterval = builder.minimumFetchInterval; } public static class Builder { public long fetchTimeoutInSeconds = 60; public long minimumFetchInterval = ConfigFetchHandler.DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS; public Builder setFetchTimeoutInSeconds(long j) { if (j < 0) { throw new IllegalArgumentException(String.format("Fetch connection timeout has to be a non-negative number. %d is an invalid argument", Long.valueOf(j))); } this.fetchTimeoutInSeconds = j; return this; } public Builder setMinimumFetchIntervalInSeconds(long j) { if (j >= 0) { this.minimumFetchInterval = j; return this; } throw new IllegalArgumentException("Minimum interval between fetches has to be a non-negative number. " + j + " is an invalid argument"); } public FirebaseRemoteConfigSettings build() { return new FirebaseRemoteConfigSettings(this); } } }