org.graylog2.system.processing.AutoValue_ProcessingStatusDto_JournalInfo Maven / Gradle / Ivy
package org.graylog2.system.processing;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ProcessingStatusDto_JournalInfo extends ProcessingStatusDto.JournalInfo {
private final long uncommittedEntries;
private final double readMessages1mRate;
private final double writtenMessages1mRate;
private final boolean journalEnabled;
private AutoValue_ProcessingStatusDto_JournalInfo(
long uncommittedEntries,
double readMessages1mRate,
double writtenMessages1mRate,
boolean journalEnabled) {
this.uncommittedEntries = uncommittedEntries;
this.readMessages1mRate = readMessages1mRate;
this.writtenMessages1mRate = writtenMessages1mRate;
this.journalEnabled = journalEnabled;
}
@JsonProperty("uncommitted_entries")
@Override
public long uncommittedEntries() {
return uncommittedEntries;
}
@JsonProperty("read_messages_1m_rate")
@Override
public double readMessages1mRate() {
return readMessages1mRate;
}
@JsonProperty("written_messages_1m_rate")
@Override
public double writtenMessages1mRate() {
return writtenMessages1mRate;
}
@JsonProperty("journal_enabled")
@Override
public boolean journalEnabled() {
return journalEnabled;
}
@Override
public String toString() {
return "JournalInfo{"
+ "uncommittedEntries=" + uncommittedEntries + ", "
+ "readMessages1mRate=" + readMessages1mRate + ", "
+ "writtenMessages1mRate=" + writtenMessages1mRate + ", "
+ "journalEnabled=" + journalEnabled
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ProcessingStatusDto.JournalInfo) {
ProcessingStatusDto.JournalInfo that = (ProcessingStatusDto.JournalInfo) o;
return this.uncommittedEntries == that.uncommittedEntries()
&& Double.doubleToLongBits(this.readMessages1mRate) == Double.doubleToLongBits(that.readMessages1mRate())
&& Double.doubleToLongBits(this.writtenMessages1mRate) == Double.doubleToLongBits(that.writtenMessages1mRate())
&& this.journalEnabled == that.journalEnabled();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (int) ((uncommittedEntries >>> 32) ^ uncommittedEntries);
h$ *= 1000003;
h$ ^= (int) ((Double.doubleToLongBits(readMessages1mRate) >>> 32) ^ Double.doubleToLongBits(readMessages1mRate));
h$ *= 1000003;
h$ ^= (int) ((Double.doubleToLongBits(writtenMessages1mRate) >>> 32) ^ Double.doubleToLongBits(writtenMessages1mRate));
h$ *= 1000003;
h$ ^= journalEnabled ? 1231 : 1237;
return h$;
}
static final class Builder extends ProcessingStatusDto.JournalInfo.Builder {
private long uncommittedEntries;
private double readMessages1mRate;
private double writtenMessages1mRate;
private boolean journalEnabled;
private byte set$0;
Builder() {
}
@Override
public ProcessingStatusDto.JournalInfo.Builder uncommittedEntries(long uncommittedEntries) {
this.uncommittedEntries = uncommittedEntries;
set$0 |= (byte) 1;
return this;
}
@Override
public ProcessingStatusDto.JournalInfo.Builder readMessages1mRate(double readMessages1mRate) {
this.readMessages1mRate = readMessages1mRate;
set$0 |= (byte) 2;
return this;
}
@Override
public ProcessingStatusDto.JournalInfo.Builder writtenMessages1mRate(double writtenMessages1mRate) {
this.writtenMessages1mRate = writtenMessages1mRate;
set$0 |= (byte) 4;
return this;
}
@Override
public ProcessingStatusDto.JournalInfo.Builder journalEnabled(boolean journalEnabled) {
this.journalEnabled = journalEnabled;
set$0 |= (byte) 8;
return this;
}
@Override
public ProcessingStatusDto.JournalInfo build() {
if (set$0 != 0xf) {
StringBuilder missing = new StringBuilder();
if ((set$0 & 1) == 0) {
missing.append(" uncommittedEntries");
}
if ((set$0 & 2) == 0) {
missing.append(" readMessages1mRate");
}
if ((set$0 & 4) == 0) {
missing.append(" writtenMessages1mRate");
}
if ((set$0 & 8) == 0) {
missing.append(" journalEnabled");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ProcessingStatusDto_JournalInfo(
this.uncommittedEntries,
this.readMessages1mRate,
this.writtenMessages1mRate,
this.journalEnabled);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy