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

org.graylog.plugins.views.search.rest.AutoValue_SearchJobDTO_ExecutionInfo 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.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SearchJobDTO_ExecutionInfo extends SearchJobDTO.ExecutionInfo {

  private final boolean done;

  private final boolean cancelled;

  private final boolean hasErrors;

  AutoValue_SearchJobDTO_ExecutionInfo(
      boolean done,
      boolean cancelled,
      boolean hasErrors) {
    this.done = done;
    this.cancelled = cancelled;
    this.hasErrors = hasErrors;
  }

  @JsonProperty
  @Override
  boolean done() {
    return done;
  }

  @JsonProperty
  @Override
  boolean cancelled() {
    return cancelled;
  }

  @JsonProperty("completed_exceptionally")
  @Override
  boolean hasErrors() {
    return hasErrors;
  }

  @Override
  public String toString() {
    return "ExecutionInfo{"
        + "done=" + done + ", "
        + "cancelled=" + cancelled + ", "
        + "hasErrors=" + hasErrors
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SearchJobDTO.ExecutionInfo) {
      SearchJobDTO.ExecutionInfo that = (SearchJobDTO.ExecutionInfo) o;
      return this.done == that.done()
          && this.cancelled == that.cancelled()
          && this.hasErrors == that.hasErrors();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= done ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= cancelled ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= hasErrors ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy