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

org.graylog.events.rest.AutoValue_AvailableEntityTypesResource_AvailableEntityTypesSummary Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.graylog.events.rest;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_AvailableEntityTypesResource_AvailableEntityTypesSummary extends AvailableEntityTypesResource.AvailableEntityTypesSummary {

  private final Set processorTypes;

  private final Set fieldProviderTypes;

  private final Set storageHandlerTypes;

  private final Set aggregationFunctions;

  AutoValue_AvailableEntityTypesResource_AvailableEntityTypesSummary(
      Set processorTypes,
      Set fieldProviderTypes,
      Set storageHandlerTypes,
      Set aggregationFunctions) {
    if (processorTypes == null) {
      throw new NullPointerException("Null processorTypes");
    }
    this.processorTypes = processorTypes;
    if (fieldProviderTypes == null) {
      throw new NullPointerException("Null fieldProviderTypes");
    }
    this.fieldProviderTypes = fieldProviderTypes;
    if (storageHandlerTypes == null) {
      throw new NullPointerException("Null storageHandlerTypes");
    }
    this.storageHandlerTypes = storageHandlerTypes;
    if (aggregationFunctions == null) {
      throw new NullPointerException("Null aggregationFunctions");
    }
    this.aggregationFunctions = aggregationFunctions;
  }

  @JsonProperty("processor_types")
  @Override
  public Set processorTypes() {
    return processorTypes;
  }

  @JsonProperty("field_provider_types")
  @Override
  public Set fieldProviderTypes() {
    return fieldProviderTypes;
  }

  @JsonProperty("storage_handler_types")
  @Override
  public Set storageHandlerTypes() {
    return storageHandlerTypes;
  }

  @JsonProperty("aggregation_functions")
  @Override
  public Set aggregationFunctions() {
    return aggregationFunctions;
  }

  @Override
  public String toString() {
    return "AvailableEntityTypesSummary{"
        + "processorTypes=" + processorTypes + ", "
        + "fieldProviderTypes=" + fieldProviderTypes + ", "
        + "storageHandlerTypes=" + storageHandlerTypes + ", "
        + "aggregationFunctions=" + aggregationFunctions
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AvailableEntityTypesResource.AvailableEntityTypesSummary) {
      AvailableEntityTypesResource.AvailableEntityTypesSummary that = (AvailableEntityTypesResource.AvailableEntityTypesSummary) o;
      return this.processorTypes.equals(that.processorTypes())
          && this.fieldProviderTypes.equals(that.fieldProviderTypes())
          && this.storageHandlerTypes.equals(that.storageHandlerTypes())
          && this.aggregationFunctions.equals(that.aggregationFunctions());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= processorTypes.hashCode();
    h$ *= 1000003;
    h$ ^= fieldProviderTypes.hashCode();
    h$ *= 1000003;
    h$ ^= storageHandlerTypes.hashCode();
    h$ *= 1000003;
    h$ ^= aggregationFunctions.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy