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

org.graylog2.rest.resources.system.indexer.responses.$AutoValue_IndexSetResponse Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog2.rest.resources.system.indexer.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_IndexSetResponse extends IndexSetResponse {

  private final int total;

  private final List indexSets;

  private final Map stats;

  $AutoValue_IndexSetResponse(
      int total,
      List indexSets,
      Map stats) {
    this.total = total;
    if (indexSets == null) {
      throw new NullPointerException("Null indexSets");
    }
    this.indexSets = indexSets;
    if (stats == null) {
      throw new NullPointerException("Null stats");
    }
    this.stats = stats;
  }

  @JsonProperty("total")
  @Override
  public int total() {
    return total;
  }

  @JsonProperty("index_sets")
  @Override
  public List indexSets() {
    return indexSets;
  }

  @JsonProperty("stats")
  @Override
  public Map stats() {
    return stats;
  }

  @Override
  public String toString() {
    return "IndexSetResponse{"
        + "total=" + total + ", "
        + "indexSets=" + indexSets + ", "
        + "stats=" + stats
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IndexSetResponse) {
      IndexSetResponse that = (IndexSetResponse) o;
      return this.total == that.total()
          && this.indexSets.equals(that.indexSets())
          && this.stats.equals(that.stats());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= total;
    h$ *= 1000003;
    h$ ^= indexSets.hashCode();
    h$ *= 1000003;
    h$ ^= stats.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy