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

org.graylog2.rest.resources.search.responses.AutoValue_QueryParseError Maven / Gradle / Ivy

There is a newer version: 6.0.5
Show newest version

package org.graylog2.rest.resources.search.responses;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import javax.annotation.Generated;
import javax.annotation.Nullable;

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

  private final String message;
  private final Collection details;
  private final Integer line;
  private final Integer column;

  AutoValue_QueryParseError(
      @Nullable String message,
      Collection details,
      @Nullable Integer line,
      @Nullable Integer column) {
    this.message = message;
    if (details == null) {
      throw new NullPointerException("Null details");
    }
    this.details = details;
    this.line = line;
    this.column = column;
  }

  @JsonProperty
  @Nullable
  @Override
  public String message() {
    return message;
  }

  @JsonProperty
  @Override
  public Collection details() {
    return details;
  }

  @JsonProperty
  @Nullable
  @Override
  public Integer line() {
    return line;
  }

  @JsonProperty
  @Nullable
  @Override
  public Integer column() {
    return column;
  }

  @Override
  public String toString() {
    return "QueryParseError{"
        + "message=" + message + ", "
        + "details=" + details + ", "
        + "line=" + line + ", "
        + "column=" + column
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof QueryParseError) {
      QueryParseError that = (QueryParseError) o;
      return ((this.message == null) ? (that.message() == null) : this.message.equals(that.message()))
           && (this.details.equals(that.details()))
           && ((this.line == null) ? (that.line() == null) : this.line.equals(that.line()))
           && ((this.column == null) ? (that.column() == null) : this.column.equals(that.column()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy