what-the-bank/sources/com/google/firebase/installations/AutoValue_InstallationToken...

112 lines
4.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.installations;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.google.firebase.installations.InstallationTokenResult;
/* loaded from: classes2.dex */
final class AutoValue_InstallationTokenResult extends InstallationTokenResult {
private final String token;
private final long tokenCreationTimestamp;
private final long tokenExpirationTimestamp;
private AutoValue_InstallationTokenResult(String str, long j, long j2) {
this.token = str;
this.tokenExpirationTimestamp = j;
this.tokenCreationTimestamp = j2;
}
public final String toString() {
StringBuilder sb = new StringBuilder("InstallationTokenResult{token=");
sb.append(this.token);
sb.append(", tokenExpirationTimestamp=");
sb.append(this.tokenExpirationTimestamp);
sb.append(", tokenCreationTimestamp=");
sb.append(this.tokenCreationTimestamp);
sb.append(UrlTreeKt.componentParamSuffix);
return sb.toString();
}
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof InstallationTokenResult)) {
return false;
}
InstallationTokenResult installationTokenResult = (InstallationTokenResult) obj;
return this.token.equals(installationTokenResult.getToken()) && this.tokenExpirationTimestamp == installationTokenResult.getTokenExpirationTimestamp() && this.tokenCreationTimestamp == installationTokenResult.getTokenCreationTimestamp();
}
public final int hashCode() {
int hashCode = this.token.hashCode();
long j = this.tokenExpirationTimestamp;
int i = (int) (j ^ (j >>> 32));
long j2 = this.tokenCreationTimestamp;
return ((((hashCode ^ 1000003) * 1000003) ^ i) * 1000003) ^ ((int) ((j2 >>> 32) ^ j2));
}
/* loaded from: classes2.dex */
static final class Builder extends InstallationTokenResult.Builder {
private String token;
private Long tokenCreationTimestamp;
private Long tokenExpirationTimestamp;
@Override // com.google.firebase.installations.InstallationTokenResult.Builder
public final InstallationTokenResult.Builder setToken(String str) {
if (str == null) {
throw new NullPointerException("Null token");
}
this.token = str;
return this;
}
@Override // com.google.firebase.installations.InstallationTokenResult.Builder
public final InstallationTokenResult.Builder setTokenExpirationTimestamp(long j) {
this.tokenExpirationTimestamp = Long.valueOf(j);
return this;
}
@Override // com.google.firebase.installations.InstallationTokenResult.Builder
public final InstallationTokenResult.Builder setTokenCreationTimestamp(long j) {
this.tokenCreationTimestamp = Long.valueOf(j);
return this;
}
@Override // com.google.firebase.installations.InstallationTokenResult.Builder
public final InstallationTokenResult build() {
String str = this.token == null ? " token" : "";
if (this.tokenExpirationTimestamp == null) {
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(" tokenExpirationTimestamp");
str = sb.toString();
}
if (this.tokenCreationTimestamp == null) {
StringBuilder sb2 = new StringBuilder();
sb2.append(str);
sb2.append(" tokenCreationTimestamp");
str = sb2.toString();
}
if (!str.isEmpty()) {
throw new IllegalStateException("Missing required properties:".concat(String.valueOf(str)));
}
return new AutoValue_InstallationTokenResult(this.token, this.tokenExpirationTimestamp.longValue(), this.tokenCreationTimestamp.longValue());
}
}
@Override // com.google.firebase.installations.InstallationTokenResult
public final long getTokenExpirationTimestamp() {
return this.tokenExpirationTimestamp;
}
@Override // com.google.firebase.installations.InstallationTokenResult
public final long getTokenCreationTimestamp() {
return this.tokenCreationTimestamp;
}
@Override // com.google.firebase.installations.InstallationTokenResult
public final String getToken() {
return this.token;
}
}