io.weaviate.client.v1.schema.model.Schema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
A java client for Weaviate Vector Search Engine
// Generated by delombok at Fri Nov 24 13:20:07 UTC 2023
package io.weaviate.client.v1.schema.model;
import java.util.List;
public class Schema {
private final String name;
private final String maintainer;
private final List classes;
@java.lang.SuppressWarnings("all")
Schema(final String name, final String maintainer, final List classes) {
this.name = name;
this.maintainer = maintainer;
this.classes = classes;
}
@java.lang.SuppressWarnings("all")
public static class SchemaBuilder {
@java.lang.SuppressWarnings("all")
private String name;
@java.lang.SuppressWarnings("all")
private String maintainer;
@java.lang.SuppressWarnings("all")
private List classes;
@java.lang.SuppressWarnings("all")
SchemaBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public Schema.SchemaBuilder name(final String name) {
this.name = name;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public Schema.SchemaBuilder maintainer(final String maintainer) {
this.maintainer = maintainer;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public Schema.SchemaBuilder classes(final List classes) {
this.classes = classes;
return this;
}
@java.lang.SuppressWarnings("all")
public Schema build() {
return new Schema(this.name, this.maintainer, this.classes);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "Schema.SchemaBuilder(name=" + this.name + ", maintainer=" + this.maintainer + ", classes=" + this.classes + ")";
}
}
@java.lang.SuppressWarnings("all")
public static Schema.SchemaBuilder builder() {
return new Schema.SchemaBuilder();
}
@java.lang.SuppressWarnings("all")
public String getName() {
return this.name;
}
@java.lang.SuppressWarnings("all")
public String getMaintainer() {
return this.maintainer;
}
@java.lang.SuppressWarnings("all")
public List getClasses() {
return this.classes;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "Schema(name=" + this.getName() + ", maintainer=" + this.getMaintainer() + ", classes=" + this.getClasses() + ")";
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Schema)) return false;
final Schema other = (Schema) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$name = this.getName();
final java.lang.Object other$name = other.getName();
if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
final java.lang.Object this$maintainer = this.getMaintainer();
final java.lang.Object other$maintainer = other.getMaintainer();
if (this$maintainer == null ? other$maintainer != null : !this$maintainer.equals(other$maintainer)) return false;
final java.lang.Object this$classes = this.getClasses();
final java.lang.Object other$classes = other.getClasses();
if (this$classes == null ? other$classes != null : !this$classes.equals(other$classes)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Schema;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $name = this.getName();
result = result * PRIME + ($name == null ? 43 : $name.hashCode());
final java.lang.Object $maintainer = this.getMaintainer();
result = result * PRIME + ($maintainer == null ? 43 : $maintainer.hashCode());
final java.lang.Object $classes = this.getClasses();
result = result * PRIME + ($classes == null ? 43 : $classes.hashCode());
return result;
}
}