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

com.algolia.model.recommend.Personalization Maven / Gradle / Ivy

The newest version!
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

package com.algolia.model.recommend;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;

/** Personalization */
public class Personalization {

  @JsonProperty("filtersScore")
  private Integer filtersScore;

  @JsonProperty("rankingScore")
  private Integer rankingScore;

  @JsonProperty("score")
  private Integer score;

  public Personalization setFiltersScore(Integer filtersScore) {
    this.filtersScore = filtersScore;
    return this;
  }

  /** The score of the filters. */
  @javax.annotation.Nullable
  public Integer getFiltersScore() {
    return filtersScore;
  }

  public Personalization setRankingScore(Integer rankingScore) {
    this.rankingScore = rankingScore;
    return this;
  }

  /** The score of the ranking. */
  @javax.annotation.Nullable
  public Integer getRankingScore() {
    return rankingScore;
  }

  public Personalization setScore(Integer score) {
    this.score = score;
    return this;
  }

  /** The score of the event. */
  @javax.annotation.Nullable
  public Integer getScore() {
    return score;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Personalization personalization = (Personalization) o;
    return (
      Objects.equals(this.filtersScore, personalization.filtersScore) &&
      Objects.equals(this.rankingScore, personalization.rankingScore) &&
      Objects.equals(this.score, personalization.score)
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(filtersScore, rankingScore, score);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Personalization {\n");
    sb.append("    filtersScore: ").append(toIndentedString(filtersScore)).append("\n");
    sb.append("    rankingScore: ").append(toIndentedString(rankingScore)).append("\n");
    sb.append("    score: ").append(toIndentedString(score)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy