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

org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.view.AutoValue_MessagesWidgetConfig 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 java.util.List;
import javax.annotation.Generated;

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

  private final List fields;

  private final boolean showMessageRow;

  AutoValue_MessagesWidgetConfig(
      List fields,
      boolean showMessageRow) {
    if (fields == null) {
      throw new NullPointerException("Null fields");
    }
    this.fields = fields;
    this.showMessageRow = showMessageRow;
  }

  @JsonProperty("fields")
  @Override
  public List fields() {
    return fields;
  }

  @JsonProperty("show_message_row")
  @Override
  public boolean showMessageRow() {
    return showMessageRow;
  }

  @Override
  public String toString() {
    return "MessagesWidgetConfig{"
        + "fields=" + fields + ", "
        + "showMessageRow=" + showMessageRow
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof MessagesWidgetConfig) {
      MessagesWidgetConfig that = (MessagesWidgetConfig) o;
      return this.fields.equals(that.fields())
          && this.showMessageRow == that.showMessageRow();
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= fields.hashCode();
    h$ *= 1000003;
    h$ ^= showMessageRow ? 1231 : 1237;
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy