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

org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.savedsearch.AutoValue_KeywordTimeRangeQuery Maven / Gradle / Ivy

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

import java.util.Optional;
import javax.annotation.processing.Generated;

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

  private final String rangeType;

  private final Optional fields;

  private final String query;

  private final Optional streamId;

  private final String keyword;

  AutoValue_KeywordTimeRangeQuery(
      String rangeType,
      Optional fields,
      String query,
      Optional streamId,
      String keyword) {
    if (rangeType == null) {
      throw new NullPointerException("Null rangeType");
    }
    this.rangeType = rangeType;
    if (fields == null) {
      throw new NullPointerException("Null fields");
    }
    this.fields = fields;
    if (query == null) {
      throw new NullPointerException("Null query");
    }
    this.query = query;
    if (streamId == null) {
      throw new NullPointerException("Null streamId");
    }
    this.streamId = streamId;
    if (keyword == null) {
      throw new NullPointerException("Null keyword");
    }
    this.keyword = keyword;
  }

  @Override
  String rangeType() {
    return rangeType;
  }

  @Override
  Optional fields() {
    return fields;
  }

  @Override
  public String query() {
    return query;
  }

  @Override
  public Optional streamId() {
    return streamId;
  }

  @Override
  public String keyword() {
    return keyword;
  }

  @Override
  public String toString() {
    return "KeywordTimeRangeQuery{"
        + "rangeType=" + rangeType + ", "
        + "fields=" + fields + ", "
        + "query=" + query + ", "
        + "streamId=" + streamId + ", "
        + "keyword=" + keyword
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof KeywordTimeRangeQuery) {
      KeywordTimeRangeQuery that = (KeywordTimeRangeQuery) o;
      return this.rangeType.equals(that.rangeType())
          && this.fields.equals(that.fields())
          && this.query.equals(that.query())
          && this.streamId.equals(that.streamId())
          && this.keyword.equals(that.keyword());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= rangeType.hashCode();
    h$ *= 1000003;
    h$ ^= fields.hashCode();
    h$ *= 1000003;
    h$ ^= query.hashCode();
    h$ *= 1000003;
    h$ ^= streamId.hashCode();
    h$ *= 1000003;
    h$ ^= keyword.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy