All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.weaviate.client.v1.batch.model.ObjectsBatchRequestBody Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
// Generated by delombok at Tue Aug 22 16:14:12 UTC 2023
package io.weaviate.client.v1.batch.model;

import io.weaviate.client.v1.data.model.WeaviateObject;

public class ObjectsBatchRequestBody {
  private String[] fields;
  private WeaviateObject[] objects;

  @java.lang.SuppressWarnings("all")
  ObjectsBatchRequestBody(final String[] fields, final WeaviateObject[] objects) {
    this.fields = fields;
    this.objects = objects;
  }


  @java.lang.SuppressWarnings("all")
  public static class ObjectsBatchRequestBodyBuilder {
    @java.lang.SuppressWarnings("all")
    private String[] fields;
    @java.lang.SuppressWarnings("all")
    private WeaviateObject[] objects;

    @java.lang.SuppressWarnings("all")
    ObjectsBatchRequestBodyBuilder() {
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ObjectsBatchRequestBody.ObjectsBatchRequestBodyBuilder fields(final String[] fields) {
      this.fields = fields;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ObjectsBatchRequestBody.ObjectsBatchRequestBodyBuilder objects(final WeaviateObject[] objects) {
      this.objects = objects;
      return this;
    }

    @java.lang.SuppressWarnings("all")
    public ObjectsBatchRequestBody build() {
      return new ObjectsBatchRequestBody(this.fields, this.objects);
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
      return "ObjectsBatchRequestBody.ObjectsBatchRequestBodyBuilder(fields=" + java.util.Arrays.deepToString(this.fields) + ", objects=" + java.util.Arrays.deepToString(this.objects) + ")";
    }
  }

  @java.lang.SuppressWarnings("all")
  public static ObjectsBatchRequestBody.ObjectsBatchRequestBodyBuilder builder() {
    return new ObjectsBatchRequestBody.ObjectsBatchRequestBodyBuilder();
  }

  @java.lang.SuppressWarnings("all")
  public String[] getFields() {
    return this.fields;
  }

  @java.lang.SuppressWarnings("all")
  public WeaviateObject[] getObjects() {
    return this.objects;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public java.lang.String toString() {
    return "ObjectsBatchRequestBody(fields=" + java.util.Arrays.deepToString(this.getFields()) + ", objects=" + java.util.Arrays.deepToString(this.getObjects()) + ")";
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof ObjectsBatchRequestBody)) return false;
    final ObjectsBatchRequestBody other = (ObjectsBatchRequestBody) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    if (!java.util.Arrays.deepEquals(this.getFields(), other.getFields())) 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 ObjectsBatchRequestBody;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    result = result * PRIME + java.util.Arrays.deepHashCode(this.getFields());
    result = result * PRIME + java.util.Arrays.deepHashCode(this.getObjects());
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy