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

org.graylog.plugins.views.search.AutoValue_SearchMetadata Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableMap;
import java.util.Map;
import javax.annotation.processing.Generated;

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

  private final Map queryMetadata;

  private final ImmutableMap declaredParameters;

  AutoValue_SearchMetadata(
      Map queryMetadata,
      ImmutableMap declaredParameters) {
    if (queryMetadata == null) {
      throw new NullPointerException("Null queryMetadata");
    }
    this.queryMetadata = queryMetadata;
    if (declaredParameters == null) {
      throw new NullPointerException("Null declaredParameters");
    }
    this.declaredParameters = declaredParameters;
  }

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

  @JsonProperty("declared_parameters")
  @Override
  public ImmutableMap declaredParameters() {
    return declaredParameters;
  }

  @Override
  public String toString() {
    return "SearchMetadata{"
        + "queryMetadata=" + queryMetadata + ", "
        + "declaredParameters=" + declaredParameters
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SearchMetadata) {
      SearchMetadata that = (SearchMetadata) o;
      return this.queryMetadata.equals(that.queryMetadata())
          && this.declaredParameters.equals(that.declaredParameters());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= queryMetadata.hashCode();
    h$ *= 1000003;
    h$ ^= declaredParameters.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy