com.google.gerrit.acceptance.testsuite.change.AutoValue_TestHumanComment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gerrit-acceptance-framework Show documentation
Show all versions of gerrit-acceptance-framework Show documentation
Framework for Gerrit's acceptance tests
package com.google.gerrit.acceptance.testsuite.change;
import com.google.gerrit.common.Nullable;
import java.util.Optional;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_TestHumanComment extends TestHumanComment {
private final String uuid;
private final Optional parentUuid;
private final Optional tag;
private final boolean unresolved;
private AutoValue_TestHumanComment(
String uuid,
Optional parentUuid,
Optional tag,
boolean unresolved) {
this.uuid = uuid;
this.parentUuid = parentUuid;
this.tag = tag;
this.unresolved = unresolved;
}
@Override
public String uuid() {
return uuid;
}
@Override
public Optional parentUuid() {
return parentUuid;
}
@Override
public Optional tag() {
return tag;
}
@Override
public boolean unresolved() {
return unresolved;
}
@Override
public String toString() {
return "TestHumanComment{"
+ "uuid=" + uuid + ", "
+ "parentUuid=" + parentUuid + ", "
+ "tag=" + tag + ", "
+ "unresolved=" + unresolved
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TestHumanComment) {
TestHumanComment that = (TestHumanComment) o;
return this.uuid.equals(that.uuid())
&& this.parentUuid.equals(that.parentUuid())
&& this.tag.equals(that.tag())
&& this.unresolved == that.unresolved();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= uuid.hashCode();
h$ *= 1000003;
h$ ^= parentUuid.hashCode();
h$ *= 1000003;
h$ ^= tag.hashCode();
h$ *= 1000003;
h$ ^= unresolved ? 1231 : 1237;
return h$;
}
static final class Builder extends TestHumanComment.Builder {
private String uuid;
private Optional parentUuid = Optional.empty();
private Optional tag = Optional.empty();
private boolean unresolved;
private byte set$0;
Builder() {
}
@Override
TestHumanComment.Builder uuid(String uuid) {
if (uuid == null) {
throw new NullPointerException("Null uuid");
}
this.uuid = uuid;
return this;
}
@Override
TestHumanComment.Builder parentUuid(@Nullable String parentUuid) {
this.parentUuid = Optional.ofNullable(parentUuid);
return this;
}
@Override
TestHumanComment.Builder tag(@Nullable String tag) {
this.tag = Optional.ofNullable(tag);
return this;
}
@Override
TestHumanComment.Builder unresolved(boolean unresolved) {
this.unresolved = unresolved;
set$0 |= (byte) 1;
return this;
}
@Override
TestHumanComment build() {
if (set$0 != 1
|| this.uuid == null) {
StringBuilder missing = new StringBuilder();
if (this.uuid == null) {
missing.append(" uuid");
}
if ((set$0 & 1) == 0) {
missing.append(" unresolved");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_TestHumanComment(
this.uuid,
this.parentUuid,
this.tag,
this.unresolved);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy