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

com.tencent.ads.model.RangeDistribution Maven / Gradle / Ivy

/*
 * Marketing API
 * Marketing API
 *
 * OpenAPI spec version: 1.3
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.tencent.ads.model;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;

/** 人群分布信息结构 */
@ApiModel(description = "人群分布信息结构")
public class RangeDistribution {
  @SerializedName("dimension_value")
  private String dimensionValue = null;

  @SerializedName("percentage")
  private Long percentage = null;

  @SerializedName("tgi")
  private Double tgi = null;

  public RangeDistribution dimensionValue(String dimensionValue) {
    this.dimensionValue = dimensionValue;
    return this;
  }

  /**
   * Get dimensionValue
   *
   * @return dimensionValue
   */
  @ApiModelProperty(value = "")
  public String getDimensionValue() {
    return dimensionValue;
  }

  public void setDimensionValue(String dimensionValue) {
    this.dimensionValue = dimensionValue;
  }

  public RangeDistribution percentage(Long percentage) {
    this.percentage = percentage;
    return this;
  }

  /**
   * Get percentage
   *
   * @return percentage
   */
  @ApiModelProperty(value = "")
  public Long getPercentage() {
    return percentage;
  }

  public void setPercentage(Long percentage) {
    this.percentage = percentage;
  }

  public RangeDistribution tgi(Double tgi) {
    this.tgi = tgi;
    return this;
  }

  /**
   * Get tgi
   *
   * @return tgi
   */
  @ApiModelProperty(value = "")
  public Double getTgi() {
    return tgi;
  }

  public void setTgi(Double tgi) {
    this.tgi = tgi;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RangeDistribution rangeDistribution = (RangeDistribution) o;
    return Objects.equals(this.dimensionValue, rangeDistribution.dimensionValue)
        && Objects.equals(this.percentage, rangeDistribution.percentage)
        && Objects.equals(this.tgi, rangeDistribution.tgi);
  }

  @Override
  public int hashCode() {
    return Objects.hash(dimensionValue, percentage, tgi);
  }

  @Override
  public String toString() {
    Gson gson = new Gson();
    return gson.toJson(this);
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy