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

org.graylog2.rest.models.messages.responses.AutoValue_ResultMessageSummary Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version

package org.graylog2.rest.models.messages.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.Multimap;
import com.google.common.collect.Range;
import java.util.Map;
import javax.annotation.Generated;
import javax.annotation.Nullable;

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

  private final Multimap> highlightRanges;
  private final Map message;
  private final String index;

  AutoValue_ResultMessageSummary(
      @Nullable Multimap> highlightRanges,
      Map message,
      String index) {
    this.highlightRanges = highlightRanges;
    if (message == null) {
      throw new NullPointerException("Null message");
    }
    this.message = message;
    if (index == null) {
      throw new NullPointerException("Null index");
    }
    this.index = index;
  }

  @JsonProperty(value = "highlight_ranges")
  @Nullable
  @Override
  public Multimap> highlightRanges() {
    return highlightRanges;
  }

  @JsonProperty
  @Override
  public Map message() {
    return message;
  }

  @JsonProperty
  @Override
  public String index() {
    return index;
  }

  @Override
  public String toString() {
    return "ResultMessageSummary{"
        + "highlightRanges=" + highlightRanges + ", "
        + "message=" + message + ", "
        + "index=" + index
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ResultMessageSummary) {
      ResultMessageSummary that = (ResultMessageSummary) o;
      return ((this.highlightRanges == null) ? (that.highlightRanges() == null) : this.highlightRanges.equals(that.highlightRanges()))
           && (this.message.equals(that.message()))
           && (this.index.equals(that.index()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= (highlightRanges == null) ? 0 : this.highlightRanges.hashCode();
    h *= 1000003;
    h ^= this.message.hashCode();
    h *= 1000003;
    h ^= this.index.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy