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

org.graylog.events.search.AutoValue_EventsSearchResult_Event Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog.events.search;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
import org.graylog.events.event.EventDto;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EventsSearchResult_Event extends EventsSearchResult.Event {

  private final EventDto event;

  private final String indexName;

  private final String indexType;

  AutoValue_EventsSearchResult_Event(
      EventDto event,
      String indexName,
      String indexType) {
    if (event == null) {
      throw new NullPointerException("Null event");
    }
    this.event = event;
    if (indexName == null) {
      throw new NullPointerException("Null indexName");
    }
    this.indexName = indexName;
    if (indexType == null) {
      throw new NullPointerException("Null indexType");
    }
    this.indexType = indexType;
  }

  @JsonProperty("event")
  @Override
  public EventDto event() {
    return event;
  }

  @JsonProperty("index_name")
  @Override
  public String indexName() {
    return indexName;
  }

  @JsonProperty("index_type")
  @Override
  public String indexType() {
    return indexType;
  }

  @Override
  public String toString() {
    return "Event{"
        + "event=" + event + ", "
        + "indexName=" + indexName + ", "
        + "indexType=" + indexType
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EventsSearchResult.Event) {
      EventsSearchResult.Event that = (EventsSearchResult.Event) o;
      return this.event.equals(that.event())
          && this.indexName.equals(that.indexName())
          && this.indexType.equals(that.indexType());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= event.hashCode();
    h$ *= 1000003;
    h$ ^= indexName.hashCode();
    h$ *= 1000003;
    h$ ^= indexType.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy