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

feast.common.logging.entry.AutoValue_TransitionAuditLogEntry 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_TransitionAuditLogEntry extends TransitionAuditLogEntry {

  private final String component;

  private final String version;

  private final AuditLogEntryKind kind;

  private final LogResource resource;

  private final String status;

  AutoValue_TransitionAuditLogEntry(
      String component,
      String version,
      AuditLogEntryKind kind,
      LogResource resource,
      String status) {
    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 (resource == null) {
      throw new NullPointerException("Null resource");
    }
    this.resource = resource;
    if (status == null) {
      throw new NullPointerException("Null status");
    }
    this.status = status;
  }

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

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

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

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

  @Override
  public String getStatus() {
    return status;
  }

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

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof TransitionAuditLogEntry) {
      TransitionAuditLogEntry that = (TransitionAuditLogEntry) o;
      return this.component.equals(that.getComponent())
          && this.version.equals(that.getVersion())
          && this.kind.equals(that.getKind())
          && this.resource.equals(that.getResource())
          && this.status.equals(that.getStatus());
    }
    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$ ^= resource.hashCode();
    h$ *= 1000003;
    h$ ^= status.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy