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

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

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

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.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_ExtractorEntity extends ExtractorEntity {

  private final ValueReference title;

  private final ValueReference type;

  private final ValueReference cursorStrategy;

  private final ValueReference targetField;

  private final ValueReference sourceField;

  private final ReferenceMap configuration;

  private final List converters;

  private final ValueReference conditionType;

  private final ValueReference conditionValue;

  private final ValueReference order;

  $AutoValue_ExtractorEntity(
      ValueReference title,
      ValueReference type,
      ValueReference cursorStrategy,
      ValueReference targetField,
      ValueReference sourceField,
      ReferenceMap configuration,
      List converters,
      ValueReference conditionType,
      ValueReference conditionValue,
      ValueReference order) {
    if (title == null) {
      throw new NullPointerException("Null title");
    }
    this.title = title;
    if (type == null) {
      throw new NullPointerException("Null type");
    }
    this.type = type;
    if (cursorStrategy == null) {
      throw new NullPointerException("Null cursorStrategy");
    }
    this.cursorStrategy = cursorStrategy;
    if (targetField == null) {
      throw new NullPointerException("Null targetField");
    }
    this.targetField = targetField;
    if (sourceField == null) {
      throw new NullPointerException("Null sourceField");
    }
    this.sourceField = sourceField;
    if (configuration == null) {
      throw new NullPointerException("Null configuration");
    }
    this.configuration = configuration;
    if (converters == null) {
      throw new NullPointerException("Null converters");
    }
    this.converters = converters;
    if (conditionType == null) {
      throw new NullPointerException("Null conditionType");
    }
    this.conditionType = conditionType;
    if (conditionValue == null) {
      throw new NullPointerException("Null conditionValue");
    }
    this.conditionValue = conditionValue;
    if (order == null) {
      throw new NullPointerException("Null order");
    }
    this.order = order;
  }

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

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

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

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

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

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

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

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

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

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

  @Override
  public String toString() {
    return "ExtractorEntity{"
        + "title=" + title + ", "
        + "type=" + type + ", "
        + "cursorStrategy=" + cursorStrategy + ", "
        + "targetField=" + targetField + ", "
        + "sourceField=" + sourceField + ", "
        + "configuration=" + configuration + ", "
        + "converters=" + converters + ", "
        + "conditionType=" + conditionType + ", "
        + "conditionValue=" + conditionValue + ", "
        + "order=" + order
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ExtractorEntity) {
      ExtractorEntity that = (ExtractorEntity) o;
      return this.title.equals(that.title())
          && this.type.equals(that.type())
          && this.cursorStrategy.equals(that.cursorStrategy())
          && this.targetField.equals(that.targetField())
          && this.sourceField.equals(that.sourceField())
          && this.configuration.equals(that.configuration())
          && this.converters.equals(that.converters())
          && this.conditionType.equals(that.conditionType())
          && this.conditionValue.equals(that.conditionValue())
          && this.order.equals(that.order());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= title.hashCode();
    h$ *= 1000003;
    h$ ^= type.hashCode();
    h$ *= 1000003;
    h$ ^= cursorStrategy.hashCode();
    h$ *= 1000003;
    h$ ^= targetField.hashCode();
    h$ *= 1000003;
    h$ ^= sourceField.hashCode();
    h$ *= 1000003;
    h$ ^= configuration.hashCode();
    h$ *= 1000003;
    h$ ^= converters.hashCode();
    h$ *= 1000003;
    h$ ^= conditionType.hashCode();
    h$ *= 1000003;
    h$ ^= conditionValue.hashCode();
    h$ *= 1000003;
    h$ ^= order.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy