All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spotify.docker.client.messages.AutoValue_BlockIoStats Maven / Gradle / Ivy

There is a newer version: 8.16.0
Show newest version

package com.spotify.docker.client.messages;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_BlockIoStats extends BlockIoStats {

  private final ImmutableList ioServiceBytesRecursive;
  private final ImmutableList ioServicedRecursive;
  private final ImmutableList ioQueueRecursive;
  private final ImmutableList ioServiceTimeRecursive;
  private final ImmutableList ioWaitTimeRecursive;
  private final ImmutableList ioMergedRecursive;
  private final ImmutableList ioTimeRecursive;
  private final ImmutableList sectorsRecursive;

  AutoValue_BlockIoStats(
      ImmutableList ioServiceBytesRecursive,
      ImmutableList ioServicedRecursive,
      ImmutableList ioQueueRecursive,
      ImmutableList ioServiceTimeRecursive,
      ImmutableList ioWaitTimeRecursive,
      ImmutableList ioMergedRecursive,
      ImmutableList ioTimeRecursive,
      ImmutableList sectorsRecursive) {
    if (ioServiceBytesRecursive == null) {
      throw new NullPointerException("Null ioServiceBytesRecursive");
    }
    this.ioServiceBytesRecursive = ioServiceBytesRecursive;
    if (ioServicedRecursive == null) {
      throw new NullPointerException("Null ioServicedRecursive");
    }
    this.ioServicedRecursive = ioServicedRecursive;
    if (ioQueueRecursive == null) {
      throw new NullPointerException("Null ioQueueRecursive");
    }
    this.ioQueueRecursive = ioQueueRecursive;
    if (ioServiceTimeRecursive == null) {
      throw new NullPointerException("Null ioServiceTimeRecursive");
    }
    this.ioServiceTimeRecursive = ioServiceTimeRecursive;
    if (ioWaitTimeRecursive == null) {
      throw new NullPointerException("Null ioWaitTimeRecursive");
    }
    this.ioWaitTimeRecursive = ioWaitTimeRecursive;
    if (ioMergedRecursive == null) {
      throw new NullPointerException("Null ioMergedRecursive");
    }
    this.ioMergedRecursive = ioMergedRecursive;
    if (ioTimeRecursive == null) {
      throw new NullPointerException("Null ioTimeRecursive");
    }
    this.ioTimeRecursive = ioTimeRecursive;
    if (sectorsRecursive == null) {
      throw new NullPointerException("Null sectorsRecursive");
    }
    this.sectorsRecursive = sectorsRecursive;
  }

  @JsonProperty(value = "io_service_bytes_recursive")
  @Override
  public ImmutableList ioServiceBytesRecursive() {
    return ioServiceBytesRecursive;
  }

  @JsonProperty(value = "io_serviced_recursive")
  @Override
  public ImmutableList ioServicedRecursive() {
    return ioServicedRecursive;
  }

  @JsonProperty(value = "io_queue_recursive")
  @Override
  public ImmutableList ioQueueRecursive() {
    return ioQueueRecursive;
  }

  @JsonProperty(value = "io_service_time_recursive")
  @Override
  public ImmutableList ioServiceTimeRecursive() {
    return ioServiceTimeRecursive;
  }

  @JsonProperty(value = "io_wait_time_recursive")
  @Override
  public ImmutableList ioWaitTimeRecursive() {
    return ioWaitTimeRecursive;
  }

  @JsonProperty(value = "io_merged_recursive")
  @Override
  public ImmutableList ioMergedRecursive() {
    return ioMergedRecursive;
  }

  @JsonProperty(value = "io_time_recursive")
  @Override
  public ImmutableList ioTimeRecursive() {
    return ioTimeRecursive;
  }

  @JsonProperty(value = "sectors_recursive")
  @Override
  public ImmutableList sectorsRecursive() {
    return sectorsRecursive;
  }

  @Override
  public String toString() {
    return "BlockIoStats{"
        + "ioServiceBytesRecursive=" + ioServiceBytesRecursive + ", "
        + "ioServicedRecursive=" + ioServicedRecursive + ", "
        + "ioQueueRecursive=" + ioQueueRecursive + ", "
        + "ioServiceTimeRecursive=" + ioServiceTimeRecursive + ", "
        + "ioWaitTimeRecursive=" + ioWaitTimeRecursive + ", "
        + "ioMergedRecursive=" + ioMergedRecursive + ", "
        + "ioTimeRecursive=" + ioTimeRecursive + ", "
        + "sectorsRecursive=" + sectorsRecursive
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof BlockIoStats) {
      BlockIoStats that = (BlockIoStats) o;
      return (this.ioServiceBytesRecursive.equals(that.ioServiceBytesRecursive()))
           && (this.ioServicedRecursive.equals(that.ioServicedRecursive()))
           && (this.ioQueueRecursive.equals(that.ioQueueRecursive()))
           && (this.ioServiceTimeRecursive.equals(that.ioServiceTimeRecursive()))
           && (this.ioWaitTimeRecursive.equals(that.ioWaitTimeRecursive()))
           && (this.ioMergedRecursive.equals(that.ioMergedRecursive()))
           && (this.ioTimeRecursive.equals(that.ioTimeRecursive()))
           && (this.sectorsRecursive.equals(that.sectorsRecursive()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.ioServiceBytesRecursive.hashCode();
    h *= 1000003;
    h ^= this.ioServicedRecursive.hashCode();
    h *= 1000003;
    h ^= this.ioQueueRecursive.hashCode();
    h *= 1000003;
    h ^= this.ioServiceTimeRecursive.hashCode();
    h *= 1000003;
    h ^= this.ioWaitTimeRecursive.hashCode();
    h *= 1000003;
    h ^= this.ioMergedRecursive.hashCode();
    h *= 1000003;
    h ^= this.ioTimeRecursive.hashCode();
    h *= 1000003;
    h ^= this.sectorsRecursive.hashCode();
    return h;
  }

}