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

org.graylog2.rest.models.system.indexer.responses.$AutoValue_IndexStats Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

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

  private final IndexStats.TimeAndTotalStats flush;

  private final IndexStats.TimeAndTotalStats get;

  private final IndexStats.TimeAndTotalStats index;

  private final IndexStats.TimeAndTotalStats merge;

  private final IndexStats.TimeAndTotalStats refresh;

  private final IndexStats.TimeAndTotalStats searchQuery;

  private final IndexStats.TimeAndTotalStats searchFetch;

  private final long openSearchContexts;

  private final long storeSizeBytes;

  private final long segments;

  private final IndexStats.DocsStats documents;

  $AutoValue_IndexStats(
      IndexStats.TimeAndTotalStats flush,
      IndexStats.TimeAndTotalStats get,
      IndexStats.TimeAndTotalStats index,
      IndexStats.TimeAndTotalStats merge,
      IndexStats.TimeAndTotalStats refresh,
      IndexStats.TimeAndTotalStats searchQuery,
      IndexStats.TimeAndTotalStats searchFetch,
      long openSearchContexts,
      long storeSizeBytes,
      long segments,
      IndexStats.DocsStats documents) {
    if (flush == null) {
      throw new NullPointerException("Null flush");
    }
    this.flush = flush;
    if (get == null) {
      throw new NullPointerException("Null get");
    }
    this.get = get;
    if (index == null) {
      throw new NullPointerException("Null index");
    }
    this.index = index;
    if (merge == null) {
      throw new NullPointerException("Null merge");
    }
    this.merge = merge;
    if (refresh == null) {
      throw new NullPointerException("Null refresh");
    }
    this.refresh = refresh;
    if (searchQuery == null) {
      throw new NullPointerException("Null searchQuery");
    }
    this.searchQuery = searchQuery;
    if (searchFetch == null) {
      throw new NullPointerException("Null searchFetch");
    }
    this.searchFetch = searchFetch;
    this.openSearchContexts = openSearchContexts;
    this.storeSizeBytes = storeSizeBytes;
    this.segments = segments;
    if (documents == null) {
      throw new NullPointerException("Null documents");
    }
    this.documents = documents;
  }

  @JsonProperty("flush")
  @Override
  public IndexStats.TimeAndTotalStats flush() {
    return flush;
  }

  @JsonProperty("get")
  @Override
  public IndexStats.TimeAndTotalStats get() {
    return get;
  }

  @JsonProperty("index")
  @Override
  public IndexStats.TimeAndTotalStats index() {
    return index;
  }

  @JsonProperty("merge")
  @Override
  public IndexStats.TimeAndTotalStats merge() {
    return merge;
  }

  @JsonProperty("refresh")
  @Override
  public IndexStats.TimeAndTotalStats refresh() {
    return refresh;
  }

  @JsonProperty("search_query")
  @Override
  public IndexStats.TimeAndTotalStats searchQuery() {
    return searchQuery;
  }

  @JsonProperty("search_fetch")
  @Override
  public IndexStats.TimeAndTotalStats searchFetch() {
    return searchFetch;
  }

  @JsonProperty("open_search_contexts")
  @Override
  public long openSearchContexts() {
    return openSearchContexts;
  }

  @JsonProperty("store_size_bytes")
  @Override
  public long storeSizeBytes() {
    return storeSizeBytes;
  }

  @JsonProperty("segments")
  @Override
  public long segments() {
    return segments;
  }

  @JsonProperty("documents")
  @Override
  public IndexStats.DocsStats documents() {
    return documents;
  }

  @Override
  public String toString() {
    return "IndexStats{"
        + "flush=" + flush + ", "
        + "get=" + get + ", "
        + "index=" + index + ", "
        + "merge=" + merge + ", "
        + "refresh=" + refresh + ", "
        + "searchQuery=" + searchQuery + ", "
        + "searchFetch=" + searchFetch + ", "
        + "openSearchContexts=" + openSearchContexts + ", "
        + "storeSizeBytes=" + storeSizeBytes + ", "
        + "segments=" + segments + ", "
        + "documents=" + documents
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof IndexStats) {
      IndexStats that = (IndexStats) o;
      return this.flush.equals(that.flush())
          && this.get.equals(that.get())
          && this.index.equals(that.index())
          && this.merge.equals(that.merge())
          && this.refresh.equals(that.refresh())
          && this.searchQuery.equals(that.searchQuery())
          && this.searchFetch.equals(that.searchFetch())
          && this.openSearchContexts == that.openSearchContexts()
          && this.storeSizeBytes == that.storeSizeBytes()
          && this.segments == that.segments()
          && this.documents.equals(that.documents());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= flush.hashCode();
    h$ *= 1000003;
    h$ ^= get.hashCode();
    h$ *= 1000003;
    h$ ^= index.hashCode();
    h$ *= 1000003;
    h$ ^= merge.hashCode();
    h$ *= 1000003;
    h$ ^= refresh.hashCode();
    h$ *= 1000003;
    h$ ^= searchQuery.hashCode();
    h$ *= 1000003;
    h$ ^= searchFetch.hashCode();
    h$ *= 1000003;
    h$ ^= (int) ((openSearchContexts >>> 32) ^ openSearchContexts);
    h$ *= 1000003;
    h$ ^= (int) ((storeSizeBytes >>> 32) ^ storeSizeBytes);
    h$ *= 1000003;
    h$ ^= (int) ((segments >>> 32) ^ segments);
    h$ *= 1000003;
    h$ ^= documents.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy