com.google.javascript.jscomp.colors.AutoValue_DebugInfo Maven / Gradle / Ivy
package com.google.javascript.jscomp.colors;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DebugInfo extends DebugInfo {
private final String className;
private final String filename;
private AutoValue_DebugInfo(
String className,
String filename) {
this.className = className;
this.filename = filename;
}
@Override
public String getClassName() {
return className;
}
@Override
public String getFilename() {
return filename;
}
@Override
public String toString() {
return "DebugInfo{"
+ "className=" + className + ", "
+ "filename=" + filename
+ "}";
}
static final class Builder extends DebugInfo.Builder {
private String className;
private String filename;
Builder() {
}
@Override
public DebugInfo.Builder setClassName(String className) {
if (className == null) {
throw new NullPointerException("Null className");
}
this.className = className;
return this;
}
@Override
public DebugInfo.Builder setFilename(String filename) {
if (filename == null) {
throw new NullPointerException("Null filename");
}
this.filename = filename;
return this;
}
@Override
public DebugInfo build() {
String missing = "";
if (this.className == null) {
missing += " className";
}
if (this.filename == null) {
missing += " filename";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_DebugInfo(
this.className,
this.filename);
}
}
}