com.google.apphosting.base.AutoValue_VersionId Maven / Gradle / Ivy
package com.google.apphosting.base;
import javax.annotation.Generated;
import org.checkerframework.checker.nullness.qual.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_VersionId extends VersionId {
private final @Nullable String versionId;
private final String majorVersion;
private final String engineId;
private final String engineVersionId;
private final @Nullable String minorVersion;
AutoValue_VersionId(
@Nullable String versionId,
String majorVersion,
String engineId,
String engineVersionId,
@Nullable String minorVersion) {
this.versionId = versionId;
if (majorVersion == null) {
throw new NullPointerException("Null majorVersion");
}
this.majorVersion = majorVersion;
if (engineId == null) {
throw new NullPointerException("Null engineId");
}
this.engineId = engineId;
if (engineVersionId == null) {
throw new NullPointerException("Null engineVersionId");
}
this.engineVersionId = engineVersionId;
this.minorVersion = minorVersion;
}
@Override
public @Nullable String getVersionId() {
return versionId;
}
@Override
public String getMajorVersion() {
return majorVersion;
}
@Override
public String getEngineId() {
return engineId;
}
@Override
public String getEngineVersionId() {
return engineVersionId;
}
@Override
public @Nullable String getMinorVersion() {
return minorVersion;
}
@Override
public String toString() {
return "VersionId{"
+ "versionId=" + versionId + ", "
+ "majorVersion=" + majorVersion + ", "
+ "engineId=" + engineId + ", "
+ "engineVersionId=" + engineVersionId + ", "
+ "minorVersion=" + minorVersion
+ "}";
}
@Override
public boolean equals(@Nullable Object o) {
if (o == this) {
return true;
}
if (o instanceof VersionId) {
VersionId that = (VersionId) o;
return (this.versionId == null ? that.getVersionId() == null : this.versionId.equals(that.getVersionId()))
&& this.majorVersion.equals(that.getMajorVersion())
&& this.engineId.equals(that.getEngineId())
&& this.engineVersionId.equals(that.getEngineVersionId())
&& (this.minorVersion == null ? that.getMinorVersion() == null : this.minorVersion.equals(that.getMinorVersion()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (versionId == null) ? 0 : versionId.hashCode();
h$ *= 1000003;
h$ ^= majorVersion.hashCode();
h$ *= 1000003;
h$ ^= engineId.hashCode();
h$ *= 1000003;
h$ ^= engineVersionId.hashCode();
h$ *= 1000003;
h$ ^= (minorVersion == null) ? 0 : minorVersion.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy