io.weaviate.client.v1.data.model.ObjectsListResponse 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 Tue Aug 22 16:14:12 UTC 2023
package io.weaviate.client.v1.data.model;
public class ObjectsListResponse {
private final Deprecation[] deprecations;
private final WeaviateObject[] objects;
private final int totalResults;
@java.lang.SuppressWarnings("all")
ObjectsListResponse(final Deprecation[] deprecations, final WeaviateObject[] objects, final int totalResults) {
this.deprecations = deprecations;
this.objects = objects;
this.totalResults = totalResults;
}
@java.lang.SuppressWarnings("all")
public static class ObjectsListResponseBuilder {
@java.lang.SuppressWarnings("all")
private Deprecation[] deprecations;
@java.lang.SuppressWarnings("all")
private WeaviateObject[] objects;
@java.lang.SuppressWarnings("all")
private int totalResults;
@java.lang.SuppressWarnings("all")
ObjectsListResponseBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ObjectsListResponse.ObjectsListResponseBuilder deprecations(final Deprecation[] deprecations) {
this.deprecations = deprecations;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ObjectsListResponse.ObjectsListResponseBuilder objects(final WeaviateObject[] objects) {
this.objects = objects;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public ObjectsListResponse.ObjectsListResponseBuilder totalResults(final int totalResults) {
this.totalResults = totalResults;
return this;
}
@java.lang.SuppressWarnings("all")
public ObjectsListResponse build() {
return new ObjectsListResponse(this.deprecations, this.objects, this.totalResults);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "ObjectsListResponse.ObjectsListResponseBuilder(deprecations=" + java.util.Arrays.deepToString(this.deprecations) + ", objects=" + java.util.Arrays.deepToString(this.objects) + ", totalResults=" + this.totalResults + ")";
}
}
@java.lang.SuppressWarnings("all")
public static ObjectsListResponse.ObjectsListResponseBuilder builder() {
return new ObjectsListResponse.ObjectsListResponseBuilder();
}
@java.lang.SuppressWarnings("all")
public Deprecation[] getDeprecations() {
return this.deprecations;
}
@java.lang.SuppressWarnings("all")
public WeaviateObject[] getObjects() {
return this.objects;
}
@java.lang.SuppressWarnings("all")
public int getTotalResults() {
return this.totalResults;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "ObjectsListResponse(deprecations=" + java.util.Arrays.deepToString(this.getDeprecations()) + ", objects=" + java.util.Arrays.deepToString(this.getObjects()) + ", totalResults=" + this.getTotalResults() + ")";
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof ObjectsListResponse)) return false;
final ObjectsListResponse other = (ObjectsListResponse) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (this.getTotalResults() != other.getTotalResults()) return false;
if (!java.util.Arrays.deepEquals(this.getDeprecations(), other.getDeprecations())) return false;
if (!java.util.Arrays.deepEquals(this.getObjects(), other.getObjects())) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof ObjectsListResponse;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = result * PRIME + this.getTotalResults();
result = result * PRIME + java.util.Arrays.deepHashCode(this.getDeprecations());
result = result * PRIME + java.util.Arrays.deepHashCode(this.getObjects());
return result;
}
}