com.google.gerrit.server.patch.AutoValue_DiffOptions Maven / Gradle / Ivy
package com.google.gerrit.server.patch;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DiffOptions extends DiffOptions {
private final boolean skipFilesWithAllEditsDueToRebase;
private AutoValue_DiffOptions(
boolean skipFilesWithAllEditsDueToRebase) {
this.skipFilesWithAllEditsDueToRebase = skipFilesWithAllEditsDueToRebase;
}
@Override
public boolean skipFilesWithAllEditsDueToRebase() {
return skipFilesWithAllEditsDueToRebase;
}
@Override
public String toString() {
return "DiffOptions{"
+ "skipFilesWithAllEditsDueToRebase=" + skipFilesWithAllEditsDueToRebase
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof DiffOptions) {
DiffOptions that = (DiffOptions) o;
return this.skipFilesWithAllEditsDueToRebase == that.skipFilesWithAllEditsDueToRebase();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= skipFilesWithAllEditsDueToRebase ? 1231 : 1237;
return h$;
}
static final class Builder extends DiffOptions.Builder {
private boolean skipFilesWithAllEditsDueToRebase;
private byte set$0;
Builder() {
}
@Override
public DiffOptions.Builder skipFilesWithAllEditsDueToRebase(boolean skipFilesWithAllEditsDueToRebase) {
this.skipFilesWithAllEditsDueToRebase = skipFilesWithAllEditsDueToRebase;
set$0 |= (byte) 1;
return this;
}
@Override
public DiffOptions build() {
if (set$0 != 1) {
String missing = " skipFilesWithAllEditsDueToRebase";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_DiffOptions(
this.skipFilesWithAllEditsDueToRebase);
}
}
}