com.spotify.docker.client.messages.AutoValue_CpuStats Maven / Gradle / Ivy
package com.spotify.docker.client.messages;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CpuStats extends CpuStats {
private final CpuStats.CpuUsage cpuUsage;
private final Long systemCpuUsage;
private final CpuStats.ThrottlingData throttlingData;
AutoValue_CpuStats(
CpuStats.CpuUsage cpuUsage,
Long systemCpuUsage,
CpuStats.ThrottlingData throttlingData) {
if (cpuUsage == null) {
throw new NullPointerException("Null cpuUsage");
}
this.cpuUsage = cpuUsage;
if (systemCpuUsage == null) {
throw new NullPointerException("Null systemCpuUsage");
}
this.systemCpuUsage = systemCpuUsage;
if (throttlingData == null) {
throw new NullPointerException("Null throttlingData");
}
this.throttlingData = throttlingData;
}
@JsonProperty(value = "cpu_usage")
@Override
public CpuStats.CpuUsage cpuUsage() {
return cpuUsage;
}
@JsonProperty(value = "system_cpu_usage")
@Override
public Long systemCpuUsage() {
return systemCpuUsage;
}
@JsonProperty(value = "throttling_data")
@Override
public CpuStats.ThrottlingData throttlingData() {
return throttlingData;
}
@Override
public String toString() {
return "CpuStats{"
+ "cpuUsage=" + cpuUsage + ", "
+ "systemCpuUsage=" + systemCpuUsage + ", "
+ "throttlingData=" + throttlingData
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CpuStats) {
CpuStats that = (CpuStats) o;
return (this.cpuUsage.equals(that.cpuUsage()))
&& (this.systemCpuUsage.equals(that.systemCpuUsage()))
&& (this.throttlingData.equals(that.throttlingData()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.cpuUsage.hashCode();
h *= 1000003;
h ^= this.systemCpuUsage.hashCode();
h *= 1000003;
h ^= this.throttlingData.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy