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

io.weaviate.client.v1.graphql.model.GraphQLError Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
// Generated by delombok at Thu Dec 07 10:07:46 UTC 2023
package io.weaviate.client.v1.graphql.model;

public class GraphQLError {
  private String message;
  private String[] path;
  private GraphQLErrorLocationsItems[] locations;

  @java.lang.SuppressWarnings("all")
  GraphQLError(final String message, final String[] path, final GraphQLErrorLocationsItems[] locations) {
    this.message = message;
    this.path = path;
    this.locations = locations;
  }


  @java.lang.SuppressWarnings("all")
  public static class GraphQLErrorBuilder {
    @java.lang.SuppressWarnings("all")
    private String message;
    @java.lang.SuppressWarnings("all")
    private String[] path;
    @java.lang.SuppressWarnings("all")
    private GraphQLErrorLocationsItems[] locations;

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

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public GraphQLError.GraphQLErrorBuilder message(final String message) {
      this.message = message;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public GraphQLError.GraphQLErrorBuilder path(final String[] path) {
      this.path = path;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public GraphQLError.GraphQLErrorBuilder locations(final GraphQLErrorLocationsItems[] locations) {
      this.locations = locations;
      return this;
    }

    @java.lang.SuppressWarnings("all")
    public GraphQLError build() {
      return new GraphQLError(this.message, this.path, this.locations);
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
      return "GraphQLError.GraphQLErrorBuilder(message=" + this.message + ", path=" + java.util.Arrays.deepToString(this.path) + ", locations=" + java.util.Arrays.deepToString(this.locations) + ")";
    }
  }

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

  @java.lang.SuppressWarnings("all")
  public String getMessage() {
    return this.message;
  }

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

  @java.lang.SuppressWarnings("all")
  public GraphQLErrorLocationsItems[] getLocations() {
    return this.locations;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public java.lang.String toString() {
    return "GraphQLError(message=" + this.getMessage() + ", path=" + java.util.Arrays.deepToString(this.getPath()) + ", locations=" + java.util.Arrays.deepToString(this.getLocations()) + ")";
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof GraphQLError)) return false;
    final GraphQLError other = (GraphQLError) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    final java.lang.Object this$message = this.getMessage();
    final java.lang.Object other$message = other.getMessage();
    if (this$message == null ? other$message != null : !this$message.equals(other$message)) return false;
    if (!java.util.Arrays.deepEquals(this.getPath(), other.getPath())) return false;
    if (!java.util.Arrays.deepEquals(this.getLocations(), other.getLocations())) return false;
    return true;
  }

  @java.lang.SuppressWarnings("all")
  protected boolean canEqual(final java.lang.Object other) {
    return other instanceof GraphQLError;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final java.lang.Object $message = this.getMessage();
    result = result * PRIME + ($message == null ? 43 : $message.hashCode());
    result = result * PRIME + java.util.Arrays.deepHashCode(this.getPath());
    result = result * PRIME + java.util.Arrays.deepHashCode(this.getLocations());
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy