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

io.weaviate.client.v1.misc.model.ShardingConfig Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
// Generated by delombok at Fri Nov 24 13:20:07 UTC 2023
package io.weaviate.client.v1.misc.model;

public class ShardingConfig {
  private final Integer actualCount;
  private final Integer actualVirtualCount;
  private final Integer desiredCount;
  private final Integer desiredVirtualCount;
  private final String function;
  private final String key;
  private final String strategy;
  private final Integer virtualPerPhysical;

  @java.lang.SuppressWarnings("all")
  ShardingConfig(final Integer actualCount, final Integer actualVirtualCount, final Integer desiredCount, final Integer desiredVirtualCount, final String function, final String key, final String strategy, final Integer virtualPerPhysical) {
    this.actualCount = actualCount;
    this.actualVirtualCount = actualVirtualCount;
    this.desiredCount = desiredCount;
    this.desiredVirtualCount = desiredVirtualCount;
    this.function = function;
    this.key = key;
    this.strategy = strategy;
    this.virtualPerPhysical = virtualPerPhysical;
  }


  @java.lang.SuppressWarnings("all")
  public static class ShardingConfigBuilder {
    @java.lang.SuppressWarnings("all")
    private Integer actualCount;
    @java.lang.SuppressWarnings("all")
    private Integer actualVirtualCount;
    @java.lang.SuppressWarnings("all")
    private Integer desiredCount;
    @java.lang.SuppressWarnings("all")
    private Integer desiredVirtualCount;
    @java.lang.SuppressWarnings("all")
    private String function;
    @java.lang.SuppressWarnings("all")
    private String key;
    @java.lang.SuppressWarnings("all")
    private String strategy;
    @java.lang.SuppressWarnings("all")
    private Integer virtualPerPhysical;

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

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ShardingConfig.ShardingConfigBuilder actualCount(final Integer actualCount) {
      this.actualCount = actualCount;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ShardingConfig.ShardingConfigBuilder actualVirtualCount(final Integer actualVirtualCount) {
      this.actualVirtualCount = actualVirtualCount;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ShardingConfig.ShardingConfigBuilder desiredCount(final Integer desiredCount) {
      this.desiredCount = desiredCount;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ShardingConfig.ShardingConfigBuilder desiredVirtualCount(final Integer desiredVirtualCount) {
      this.desiredVirtualCount = desiredVirtualCount;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ShardingConfig.ShardingConfigBuilder function(final String function) {
      this.function = function;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ShardingConfig.ShardingConfigBuilder key(final String key) {
      this.key = key;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ShardingConfig.ShardingConfigBuilder strategy(final String strategy) {
      this.strategy = strategy;
      return this;
    }

    /**
     * @return {@code this}.
     */
    @java.lang.SuppressWarnings("all")
    public ShardingConfig.ShardingConfigBuilder virtualPerPhysical(final Integer virtualPerPhysical) {
      this.virtualPerPhysical = virtualPerPhysical;
      return this;
    }

    @java.lang.SuppressWarnings("all")
    public ShardingConfig build() {
      return new ShardingConfig(this.actualCount, this.actualVirtualCount, this.desiredCount, this.desiredVirtualCount, this.function, this.key, this.strategy, this.virtualPerPhysical);
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    public java.lang.String toString() {
      return "ShardingConfig.ShardingConfigBuilder(actualCount=" + this.actualCount + ", actualVirtualCount=" + this.actualVirtualCount + ", desiredCount=" + this.desiredCount + ", desiredVirtualCount=" + this.desiredVirtualCount + ", function=" + this.function + ", key=" + this.key + ", strategy=" + this.strategy + ", virtualPerPhysical=" + this.virtualPerPhysical + ")";
    }
  }

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

  @java.lang.SuppressWarnings("all")
  public Integer getActualCount() {
    return this.actualCount;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getActualVirtualCount() {
    return this.actualVirtualCount;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getDesiredCount() {
    return this.desiredCount;
  }

  @java.lang.SuppressWarnings("all")
  public Integer getDesiredVirtualCount() {
    return this.desiredVirtualCount;
  }

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

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

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

  @java.lang.SuppressWarnings("all")
  public Integer getVirtualPerPhysical() {
    return this.virtualPerPhysical;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public java.lang.String toString() {
    return "ShardingConfig(actualCount=" + this.getActualCount() + ", actualVirtualCount=" + this.getActualVirtualCount() + ", desiredCount=" + this.getDesiredCount() + ", desiredVirtualCount=" + this.getDesiredVirtualCount() + ", function=" + this.getFunction() + ", key=" + this.getKey() + ", strategy=" + this.getStrategy() + ", virtualPerPhysical=" + this.getVirtualPerPhysical() + ")";
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof ShardingConfig)) return false;
    final ShardingConfig other = (ShardingConfig) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    final java.lang.Object this$actualCount = this.getActualCount();
    final java.lang.Object other$actualCount = other.getActualCount();
    if (this$actualCount == null ? other$actualCount != null : !this$actualCount.equals(other$actualCount)) return false;
    final java.lang.Object this$actualVirtualCount = this.getActualVirtualCount();
    final java.lang.Object other$actualVirtualCount = other.getActualVirtualCount();
    if (this$actualVirtualCount == null ? other$actualVirtualCount != null : !this$actualVirtualCount.equals(other$actualVirtualCount)) return false;
    final java.lang.Object this$desiredCount = this.getDesiredCount();
    final java.lang.Object other$desiredCount = other.getDesiredCount();
    if (this$desiredCount == null ? other$desiredCount != null : !this$desiredCount.equals(other$desiredCount)) return false;
    final java.lang.Object this$desiredVirtualCount = this.getDesiredVirtualCount();
    final java.lang.Object other$desiredVirtualCount = other.getDesiredVirtualCount();
    if (this$desiredVirtualCount == null ? other$desiredVirtualCount != null : !this$desiredVirtualCount.equals(other$desiredVirtualCount)) return false;
    final java.lang.Object this$virtualPerPhysical = this.getVirtualPerPhysical();
    final java.lang.Object other$virtualPerPhysical = other.getVirtualPerPhysical();
    if (this$virtualPerPhysical == null ? other$virtualPerPhysical != null : !this$virtualPerPhysical.equals(other$virtualPerPhysical)) return false;
    final java.lang.Object this$function = this.getFunction();
    final java.lang.Object other$function = other.getFunction();
    if (this$function == null ? other$function != null : !this$function.equals(other$function)) return false;
    final java.lang.Object this$key = this.getKey();
    final java.lang.Object other$key = other.getKey();
    if (this$key == null ? other$key != null : !this$key.equals(other$key)) return false;
    final java.lang.Object this$strategy = this.getStrategy();
    final java.lang.Object other$strategy = other.getStrategy();
    if (this$strategy == null ? other$strategy != null : !this$strategy.equals(other$strategy)) return false;
    return true;
  }

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

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final java.lang.Object $actualCount = this.getActualCount();
    result = result * PRIME + ($actualCount == null ? 43 : $actualCount.hashCode());
    final java.lang.Object $actualVirtualCount = this.getActualVirtualCount();
    result = result * PRIME + ($actualVirtualCount == null ? 43 : $actualVirtualCount.hashCode());
    final java.lang.Object $desiredCount = this.getDesiredCount();
    result = result * PRIME + ($desiredCount == null ? 43 : $desiredCount.hashCode());
    final java.lang.Object $desiredVirtualCount = this.getDesiredVirtualCount();
    result = result * PRIME + ($desiredVirtualCount == null ? 43 : $desiredVirtualCount.hashCode());
    final java.lang.Object $virtualPerPhysical = this.getVirtualPerPhysical();
    result = result * PRIME + ($virtualPerPhysical == null ? 43 : $virtualPerPhysical.hashCode());
    final java.lang.Object $function = this.getFunction();
    result = result * PRIME + ($function == null ? 43 : $function.hashCode());
    final java.lang.Object $key = this.getKey();
    result = result * PRIME + ($key == null ? 43 : $key.hashCode());
    final java.lang.Object $strategy = this.getStrategy();
    result = result * PRIME + ($strategy == null ? 43 : $strategy.hashCode());
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy