View Javadoc
1   package com.acumenvelocity.ath.model;
2   
3   import java.util.Objects;
4   
5   import com.acumenvelocity.ath.model.x.LayeredTextX;
6   import com.fasterxml.jackson.annotation.JsonProperty;
7   
8   import io.swagger.annotations.ApiModelProperty;
9   
10  @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
11  public class MtTargetInfo {
12    @JsonProperty("mt_target")
13    private LayeredTextX mtTarget;
14  
15    @JsonProperty("mt_confidence_score")
16    private Double mtConfidenceScore = 0d;
17  
18    @JsonProperty("mt_model_id")
19    private String mtModelId = "";
20  
21    /**
22     **/
23    public MtTargetInfo mtTarget(LayeredTextX mtTarget) {
24      this.mtTarget = mtTarget;
25      return this;
26    }
27  
28    @ApiModelProperty(required = true, value = "")
29    @JsonProperty("mt_target")
30    public LayeredTextX getMtTarget() {
31      return mtTarget;
32    }
33  
34    public void setMtTarget(LayeredTextX mtTarget) {
35      this.mtTarget = mtTarget;
36    }
37  
38    /**
39     * The confidence score for the machine translation, ranging from 0 (no confidence) to 1 (full
40     * confidence).
41     * minimum: 0
42     * maximum: 1
43     **/
44    public MtTargetInfo mtConfidenceScore(Double mtConfidenceScore) {
45      this.mtConfidenceScore = mtConfidenceScore;
46      return this;
47    }
48  
49    @ApiModelProperty(example = "0.95", value = "The confidence score for the machine translation, ranging from 0 (no confidence) to 1  (full confidence).")
50    @JsonProperty("mt_confidence_score")
51    public Double getMtConfidenceScore() {
52      return mtConfidenceScore;
53    }
54  
55    public void setMtConfidenceScore(Double mtConfidenceScore) {
56      this.mtConfidenceScore = mtConfidenceScore;
57    }
58  
59    /**
60     * ID of the model that generated this translation.
61     **/
62    public MtTargetInfo mtModelId(String mtModelId) {
63      this.mtModelId = mtModelId;
64      return this;
65    }
66  
67    @ApiModelProperty(value = "ID of the model that generated this translation.")
68    @JsonProperty("mt_model_id")
69    public String getMtModelId() {
70      return mtModelId;
71    }
72  
73    public void setMtModelId(String mtModelId) {
74      this.mtModelId = mtModelId;
75    }
76  
77    @Override
78    public boolean equals(Object o) {
79      if (this == o) {
80        return true;
81      }
82      if (o == null || getClass() != o.getClass()) {
83        return false;
84      }
85      MtTargetInfo mtTargetInfo = (MtTargetInfo) o;
86      return Objects.equals(mtTarget, mtTargetInfo.mtTarget) &&
87          Objects.equals(mtConfidenceScore, mtTargetInfo.mtConfidenceScore) &&
88          Objects.equals(mtModelId, mtTargetInfo.mtModelId);
89    }
90  
91    @Override
92    public int hashCode() {
93      return Objects.hash(mtTarget, mtConfidenceScore, mtModelId);
94    }
95  
96    @Override
97    public String toString() {
98      StringBuilder sb = new StringBuilder();
99      sb.append("class MtTargetInfo {\n");
100 
101     sb.append("    mtTarget: ").append(toIndentedString(mtTarget)).append("\n");
102     sb.append("    mtConfidenceScore: ").append(toIndentedString(mtConfidenceScore)).append("\n");
103     sb.append("    mtModelId: ").append(toIndentedString(mtModelId)).append("\n");
104     sb.append("}");
105     return sb.toString();
106   }
107 
108   /**
109    * Convert the given object to string with each line indented by 4 spaces
110    * (except the first line).
111    */
112   private String toIndentedString(Object o) {
113     if (o == null) {
114       return "null";
115     }
116     return o.toString().replace("\n", "\n    ");
117   }
118 }