feast.common.logging.entry.AutoValue_ActionAuditLogEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of feast-common Show documentation
Show all versions of feast-common Show documentation
Feast common module with functionality that can be reused
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$;
}
}