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

org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view.AutoValue_ElasticsearchQueryString Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view;

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

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

  private final String type;

  private final String queryString;

  AutoValue_ElasticsearchQueryString(
      String type,
      String queryString) {
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (queryString == null) {
      throw new NullPointerException("Null queryString");
    }
    this.queryString = queryString;
  }

  @JsonProperty
  @Override
  String type() {
    return type;
  }

  @JsonProperty
  @Override
  String queryString() {
    return queryString;
  }

  @Override
  public String toString() {
    return "ElasticsearchQueryString{"
        + "type=" + type + ", "
        + "queryString=" + queryString
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ElasticsearchQueryString) {
      ElasticsearchQueryString that = (ElasticsearchQueryString) o;
      return this.type.equals(that.type())
          && this.queryString.equals(that.queryString());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy