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

org.graylog.plugins.views.search.rest.AutoValue_ValidationMessageDTO Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.views.search.rest;

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

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

  private final ValidationTypeDTO errorType;

  private final Integer beginLine;

  private final Integer beginColumn;

  private final Integer endLine;

  private final Integer endColumn;

  private final String errorTitle;

  private final String errorMessage;

  private final String relatedProperty;

  AutoValue_ValidationMessageDTO(
      ValidationTypeDTO errorType,
      @Nullable Integer beginLine,
      @Nullable Integer beginColumn,
      @Nullable Integer endLine,
      @Nullable Integer endColumn,
      @Nullable String errorTitle,
      String errorMessage,
      @Nullable String relatedProperty) {
    if (errorType == null) {
      throw new NullPointerException("Null errorType");
    }
    this.errorType = errorType;
    this.beginLine = beginLine;
    this.beginColumn = beginColumn;
    this.endLine = endLine;
    this.endColumn = endColumn;
    this.errorTitle = errorTitle;
    if (errorMessage == null) {
      throw new NullPointerException("Null errorMessage");
    }
    this.errorMessage = errorMessage;
    this.relatedProperty = relatedProperty;
  }

  @JsonProperty
  @Override
  public ValidationTypeDTO errorType() {
    return errorType;
  }

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

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

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

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

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

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

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

  @Override
  public String toString() {
    return "ValidationMessageDTO{"
        + "errorType=" + errorType + ", "
        + "beginLine=" + beginLine + ", "
        + "beginColumn=" + beginColumn + ", "
        + "endLine=" + endLine + ", "
        + "endColumn=" + endColumn + ", "
        + "errorTitle=" + errorTitle + ", "
        + "errorMessage=" + errorMessage + ", "
        + "relatedProperty=" + relatedProperty
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ValidationMessageDTO) {
      ValidationMessageDTO that = (ValidationMessageDTO) o;
      return this.errorType.equals(that.errorType())
          && (this.beginLine == null ? that.beginLine() == null : this.beginLine.equals(that.beginLine()))
          && (this.beginColumn == null ? that.beginColumn() == null : this.beginColumn.equals(that.beginColumn()))
          && (this.endLine == null ? that.endLine() == null : this.endLine.equals(that.endLine()))
          && (this.endColumn == null ? that.endColumn() == null : this.endColumn.equals(that.endColumn()))
          && (this.errorTitle == null ? that.errorTitle() == null : this.errorTitle.equals(that.errorTitle()))
          && this.errorMessage.equals(that.errorMessage())
          && (this.relatedProperty == null ? that.relatedProperty() == null : this.relatedProperty.equals(that.relatedProperty()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= errorType.hashCode();
    h$ *= 1000003;
    h$ ^= (beginLine == null) ? 0 : beginLine.hashCode();
    h$ *= 1000003;
    h$ ^= (beginColumn == null) ? 0 : beginColumn.hashCode();
    h$ *= 1000003;
    h$ ^= (endLine == null) ? 0 : endLine.hashCode();
    h$ *= 1000003;
    h$ ^= (endColumn == null) ? 0 : endColumn.hashCode();
    h$ *= 1000003;
    h$ ^= (errorTitle == null) ? 0 : errorTitle.hashCode();
    h$ *= 1000003;
    h$ ^= errorMessage.hashCode();
    h$ *= 1000003;
    h$ ^= (relatedProperty == null) ? 0 : relatedProperty.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy