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

feast.common.logging.entry.AutoValue_ActionAuditLogEntry Maven / Gradle / Ivy

There is a newer version: 0.26.3
Show newest version
package feast.common.logging.entry;

import javax.annotation.Generated;

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

  private final String component;

  private final String version;

  private final AuditLogEntryKind kind;

  private final String action;

  private final LogResource resource;

  AutoValue_ActionAuditLogEntry(
      String component,
      String version,
      AuditLogEntryKind kind,
      String action,
      LogResource resource) {
    if (component == null) {
      throw new NullPointerException("Null component");
    }
    this.component = component;
    if (version == null) {
      throw new NullPointerException("Null version");
    }
    this.version = version;
    if (kind == null) {
      throw new NullPointerException("Null kind");
    }
    this.kind = kind;
    if (action == null) {
      throw new NullPointerException("Null action");
    }
    this.action = action;
    if (resource == null) {
      throw new NullPointerException("Null resource");
    }
    this.resource = resource;
  }

  @Override
  public String getComponent() {
    return component;
  }

  @Override
  public String getVersion() {
    return version;
  }

  @Override
  public AuditLogEntryKind getKind() {
    return kind;
  }

  @Override
  public String getAction() {
    return action;
  }

  @Override
  public LogResource getResource() {
    return resource;
  }

  @Override
  public String toString() {
    return "ActionAuditLogEntry{"
         + "component=" + component + ", "
         + "version=" + version + ", "
         + "kind=" + kind + ", "
         + "action=" + action + ", "
         + "resource=" + resource
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ActionAuditLogEntry) {
      ActionAuditLogEntry that = (ActionAuditLogEntry) o;
      return this.component.equals(that.getComponent())
          && this.version.equals(that.getVersion())
          && this.kind.equals(that.getKind())
          && this.action.equals(that.getAction())
          && this.resource.equals(that.getResource());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= component.hashCode();
    h$ *= 1000003;
    h$ ^= version.hashCode();
    h$ *= 1000003;
    h$ ^= kind.hashCode();
    h$ *= 1000003;
    h$ ^= action.hashCode();
    h$ *= 1000003;
    h$ ^= resource.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy