feast.common.logging.entry.AutoValue_MessageAuditLogEntry 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 com.google.protobuf.Message;
import io.grpc.Status;
import java.util.UUID;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MessageAuditLogEntry extends MessageAuditLogEntry {
private final String component;
private final String version;
private final AuditLogEntryKind kind;
private final UUID id;
private final String service;
private final String method;
private final Message request;
private final Message response;
private final String identity;
private final Status.Code statusCode;
private AutoValue_MessageAuditLogEntry(
String component,
String version,
AuditLogEntryKind kind,
UUID id,
String service,
String method,
Message request,
Message response,
String identity,
Status.Code statusCode) {
this.component = component;
this.version = version;
this.kind = kind;
this.id = id;
this.service = service;
this.method = method;
this.request = request;
this.response = response;
this.identity = identity;
this.statusCode = statusCode;
}
@Override
public String getComponent() {
return component;
}
@Override
public String getVersion() {
return version;
}
@Override
public AuditLogEntryKind getKind() {
return kind;
}
@Override
public UUID getId() {
return id;
}
@Override
public String getService() {
return service;
}
@Override
public String getMethod() {
return method;
}
@Override
public Message getRequest() {
return request;
}
@Override
public Message getResponse() {
return response;
}
@Override
public String getIdentity() {
return identity;
}
@Override
public Status.Code getStatusCode() {
return statusCode;
}
@Override
public String toString() {
return "MessageAuditLogEntry{"
+ "component=" + component + ", "
+ "version=" + version + ", "
+ "kind=" + kind + ", "
+ "id=" + id + ", "
+ "service=" + service + ", "
+ "method=" + method + ", "
+ "request=" + request + ", "
+ "response=" + response + ", "
+ "identity=" + identity + ", "
+ "statusCode=" + statusCode
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MessageAuditLogEntry) {
MessageAuditLogEntry that = (MessageAuditLogEntry) o;
return this.component.equals(that.getComponent())
&& this.version.equals(that.getVersion())
&& this.kind.equals(that.getKind())
&& this.id.equals(that.getId())
&& this.service.equals(that.getService())
&& this.method.equals(that.getMethod())
&& this.request.equals(that.getRequest())
&& this.response.equals(that.getResponse())
&& this.identity.equals(that.getIdentity())
&& this.statusCode.equals(that.getStatusCode());
}
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$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= service.hashCode();
h$ *= 1000003;
h$ ^= method.hashCode();
h$ *= 1000003;
h$ ^= request.hashCode();
h$ *= 1000003;
h$ ^= response.hashCode();
h$ *= 1000003;
h$ ^= identity.hashCode();
h$ *= 1000003;
h$ ^= statusCode.hashCode();
return h$;
}
static final class Builder extends MessageAuditLogEntry.Builder {
private String component;
private String version;
private AuditLogEntryKind kind;
private UUID id;
private String service;
private String method;
private Message request;
private Message response;
private String identity;
private Status.Code statusCode;
Builder() {
}
@Override
public MessageAuditLogEntry.Builder setComponent(String component) {
if (component == null) {
throw new NullPointerException("Null component");
}
this.component = component;
return this;
}
@Override
public MessageAuditLogEntry.Builder setVersion(String version) {
if (version == null) {
throw new NullPointerException("Null version");
}
this.version = version;
return this;
}
@Override
public MessageAuditLogEntry.Builder setKind(AuditLogEntryKind kind) {
if (kind == null) {
throw new NullPointerException("Null kind");
}
this.kind = kind;
return this;
}
@Override
public MessageAuditLogEntry.Builder setId(UUID id) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
return this;
}
@Override
public MessageAuditLogEntry.Builder setService(String service) {
if (service == null) {
throw new NullPointerException("Null service");
}
this.service = service;
return this;
}
@Override
public MessageAuditLogEntry.Builder setMethod(String method) {
if (method == null) {
throw new NullPointerException("Null method");
}
this.method = method;
return this;
}
@Override
public MessageAuditLogEntry.Builder setRequest(Message request) {
if (request == null) {
throw new NullPointerException("Null request");
}
this.request = request;
return this;
}
@Override
public MessageAuditLogEntry.Builder setResponse(Message response) {
if (response == null) {
throw new NullPointerException("Null response");
}
this.response = response;
return this;
}
@Override
public MessageAuditLogEntry.Builder setIdentity(String identity) {
if (identity == null) {
throw new NullPointerException("Null identity");
}
this.identity = identity;
return this;
}
@Override
public MessageAuditLogEntry.Builder setStatusCode(Status.Code statusCode) {
if (statusCode == null) {
throw new NullPointerException("Null statusCode");
}
this.statusCode = statusCode;
return this;
}
@Override
public MessageAuditLogEntry build() {
String missing = "";
if (this.component == null) {
missing += " component";
}
if (this.version == null) {
missing += " version";
}
if (this.kind == null) {
missing += " kind";
}
if (this.id == null) {
missing += " id";
}
if (this.service == null) {
missing += " service";
}
if (this.method == null) {
missing += " method";
}
if (this.request == null) {
missing += " request";
}
if (this.response == null) {
missing += " response";
}
if (this.identity == null) {
missing += " identity";
}
if (this.statusCode == null) {
missing += " statusCode";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_MessageAuditLogEntry(
this.component,
this.version,
this.kind,
this.id,
this.service,
this.method,
this.request,
this.response,
this.identity,
this.statusCode);
}
}
}