ai.grakn.engine.controller.response.AutoValue_MetaConcept Maven / Gradle / Ivy
package ai.grakn.engine.controller.response;
import ai.grakn.concept.ConceptId;
import ai.grakn.concept.Label;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_MetaConcept extends MetaConcept {
private final String baseType;
private final ConceptId id;
private final Link selfLink;
private final Label label;
private final Boolean implicit;
private final EmbeddedSchemaConcept sup;
private final Link subs;
private final Boolean isAbstract;
private final Link plays;
private final Link attributes;
private final Link keys;
private final Link instances;
AutoValue_MetaConcept(
String baseType,
ConceptId id,
Link selfLink,
Label label,
Boolean implicit,
@Nullable EmbeddedSchemaConcept sup,
Link subs,
Boolean isAbstract,
Link plays,
Link attributes,
Link keys,
Link instances) {
if (baseType == null) {
throw new NullPointerException("Null baseType");
}
this.baseType = baseType;
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (selfLink == null) {
throw new NullPointerException("Null selfLink");
}
this.selfLink = selfLink;
if (label == null) {
throw new NullPointerException("Null label");
}
this.label = label;
if (implicit == null) {
throw new NullPointerException("Null implicit");
}
this.implicit = implicit;
this.sup = sup;
if (subs == null) {
throw new NullPointerException("Null subs");
}
this.subs = subs;
if (isAbstract == null) {
throw new NullPointerException("Null isAbstract");
}
this.isAbstract = isAbstract;
if (plays == null) {
throw new NullPointerException("Null plays");
}
this.plays = plays;
if (attributes == null) {
throw new NullPointerException("Null attributes");
}
this.attributes = attributes;
if (keys == null) {
throw new NullPointerException("Null keys");
}
this.keys = keys;
if (instances == null) {
throw new NullPointerException("Null instances");
}
this.instances = instances;
}
@JsonProperty(value = "base-type")
@Override
public String baseType() {
return baseType;
}
@JsonProperty(value = "id")
@Override
public ConceptId id() {
return id;
}
@JsonProperty(value = "@id")
@Override
public Link selfLink() {
return selfLink;
}
@JsonProperty
@Override
public Label label() {
return label;
}
@JsonProperty
@Override
public Boolean implicit() {
return implicit;
}
@Nullable
@JsonProperty(value = "super")
@Override
public EmbeddedSchemaConcept sup() {
return sup;
}
@JsonProperty
@Override
public Link subs() {
return subs;
}
@JsonProperty(value = "abstract")
@Override
public Boolean isAbstract() {
return isAbstract;
}
@JsonProperty
@Override
public Link plays() {
return plays;
}
@JsonProperty
@Override
public Link attributes() {
return attributes;
}
@JsonProperty
@Override
public Link keys() {
return keys;
}
@JsonProperty
@Override
public Link instances() {
return instances;
}
@Override
public String toString() {
return "MetaConcept{"
+ "baseType=" + baseType + ", "
+ "id=" + id + ", "
+ "selfLink=" + selfLink + ", "
+ "label=" + label + ", "
+ "implicit=" + implicit + ", "
+ "sup=" + sup + ", "
+ "subs=" + subs + ", "
+ "isAbstract=" + isAbstract + ", "
+ "plays=" + plays + ", "
+ "attributes=" + attributes + ", "
+ "keys=" + keys + ", "
+ "instances=" + instances
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof MetaConcept) {
MetaConcept that = (MetaConcept) o;
return (this.baseType.equals(that.baseType()))
&& (this.id.equals(that.id()))
&& (this.selfLink.equals(that.selfLink()))
&& (this.label.equals(that.label()))
&& (this.implicit.equals(that.implicit()))
&& ((this.sup == null) ? (that.sup() == null) : this.sup.equals(that.sup()))
&& (this.subs.equals(that.subs()))
&& (this.isAbstract.equals(that.isAbstract()))
&& (this.plays.equals(that.plays()))
&& (this.attributes.equals(that.attributes()))
&& (this.keys.equals(that.keys()))
&& (this.instances.equals(that.instances()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.baseType.hashCode();
h *= 1000003;
h ^= this.id.hashCode();
h *= 1000003;
h ^= this.selfLink.hashCode();
h *= 1000003;
h ^= this.label.hashCode();
h *= 1000003;
h ^= this.implicit.hashCode();
h *= 1000003;
h ^= (sup == null) ? 0 : this.sup.hashCode();
h *= 1000003;
h ^= this.subs.hashCode();
h *= 1000003;
h ^= this.isAbstract.hashCode();
h *= 1000003;
h ^= this.plays.hashCode();
h *= 1000003;
h ^= this.attributes.hashCode();
h *= 1000003;
h ^= this.keys.hashCode();
h *= 1000003;
h ^= this.instances.hashCode();
return h;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy