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

org.graylog2.contentpacks.model.entities.$AutoValue_LookupCacheEntity Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
package org.graylog2.contentpacks.model.entities;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
import org.graylog2.contentpacks.model.entities.references.ReferenceMap;
import org.graylog2.contentpacks.model.entities.references.ValueReference;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_LookupCacheEntity extends LookupCacheEntity {

  @Nullable
  private final ValueReference scope;

  private final ValueReference name;

  private final ValueReference title;

  private final ValueReference description;

  private final ReferenceMap configuration;

  $AutoValue_LookupCacheEntity(
      @Nullable ValueReference scope,
      ValueReference name,
      ValueReference title,
      ValueReference description,
      ReferenceMap configuration) {
    this.scope = scope;
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (description == null) {
      throw new NullPointerException("Null description");
    }
    this.description = description;
    if (configuration == null) {
      throw new NullPointerException("Null configuration");
    }
    this.configuration = configuration;
  }

  @JsonProperty("_scope")
  @Nullable
  @Override
  public ValueReference scope() {
    return scope;
  }

  @JsonProperty("name")
  @Override
  public ValueReference name() {
    return name;
  }

  @JsonProperty("title")
  @Override
  public ValueReference title() {
    return title;
  }

  @JsonProperty("description")
  @Override
  public ValueReference description() {
    return description;
  }

  @JsonProperty("configuration")
  @Override
  public ReferenceMap configuration() {
    return configuration;
  }

  @Override
  public String toString() {
    return "LookupCacheEntity{"
        + "scope=" + scope + ", "
        + "name=" + name + ", "
        + "title=" + title + ", "
        + "description=" + description + ", "
        + "configuration=" + configuration
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof LookupCacheEntity) {
      LookupCacheEntity that = (LookupCacheEntity) o;
      return (this.scope == null ? that.scope() == null : this.scope.equals(that.scope()))
          && this.name.equals(that.name())
          && this.title.equals(that.title())
          && this.description.equals(that.description())
          && this.configuration.equals(that.configuration());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (scope == null) ? 0 : scope.hashCode();
    h$ *= 1000003;
    h$ ^= name.hashCode();
    h$ *= 1000003;
    h$ ^= title.hashCode();
    h$ *= 1000003;
    h$ ^= description.hashCode();
    h$ *= 1000003;
    h$ ^= configuration.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy