1 package com.acumenvelocity.ath.model;
2
3 import java.net.URI;
4 import java.util.Date;
5 import java.util.Objects;
6 import java.util.UUID;
7
8 import com.fasterxml.jackson.annotation.JsonProperty;
9
10 import io.swagger.annotations.ApiModel;
11 import io.swagger.annotations.ApiModelProperty;
12
13
14
15
16
17 @ApiModel(description = "Translation Memory information.")
18 @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
19 public class TranslationMemoryInfo {
20 @JsonProperty("tm_company_id")
21 private UUID tmCompanyId;
22
23 @JsonProperty("tm_id")
24 private UUID tmId;
25
26 @JsonProperty("tm_gcs_url")
27 private URI tmGcsUrl = URI.create("");
28
29 @JsonProperty("tm_file_name")
30 private String tmFileName = "";
31
32 @JsonProperty("src_lang")
33 private String srcLang = "en";
34
35 @JsonProperty("trg_lang")
36 private String trgLang = "fr";
37
38 @JsonProperty("segments_count")
39 private Long segmentsCount;
40
41 @JsonProperty("created_by")
42 private UUID createdBy;
43
44 @JsonProperty("created_at")
45 private Date createdAt;
46
47 @JsonProperty("updated_by")
48 private UUID updatedBy;
49
50 @JsonProperty("updated_at")
51 private Date updatedAt;
52
53
54
55
56 public TranslationMemoryInfo tmCompanyId(UUID tmCompanyId) {
57 this.tmCompanyId = tmCompanyId;
58 return this;
59 }
60
61 @ApiModelProperty(required = true, value = "UUID of the Company owning the Translation Memory.")
62 @JsonProperty("tm_company_id")
63 public UUID getTmCompanyId() {
64 return tmCompanyId;
65 }
66
67 public void setTmCompanyId(UUID tmCompanyId) {
68 this.tmCompanyId = tmCompanyId;
69 }
70
71
72
73
74 public TranslationMemoryInfo tmId(UUID tmId) {
75 this.tmId = tmId;
76 return this;
77 }
78
79 @ApiModelProperty(required = true, value = "UUID of the Translation Memory.")
80 @JsonProperty("tm_id")
81 public UUID getTmId() {
82 return tmId;
83 }
84
85 public void setTmId(UUID tmId) {
86 this.tmId = tmId;
87 }
88
89
90
91
92 public TranslationMemoryInfo tmGcsUrl(URI tmGcsUrl) {
93 this.tmGcsUrl = tmGcsUrl;
94 return this;
95 }
96
97 @ApiModelProperty(required = true, value = "GCS URL (gs://bucket/blob) of the translation memory file (TMX/CSV/TSV) content.")
98 @JsonProperty("tm_gcs_url")
99 public URI getTmGcsUrl() {
100 return tmGcsUrl;
101 }
102
103 public void setTmGcsUrl(URI tmGcsUrl) {
104 this.tmGcsUrl = tmGcsUrl;
105 }
106
107
108
109
110 public TranslationMemoryInfo tmFileName(String tmFileName) {
111 this.tmFileName = tmFileName;
112 return this;
113 }
114
115 @ApiModelProperty(required = true, value = "Name of the translation memory file.")
116 @JsonProperty("tm_file_name")
117 public String getTmFileName() {
118 return tmFileName;
119 }
120
121 public void setTmFileName(String tmFileName) {
122 this.tmFileName = tmFileName;
123 }
124
125
126
127
128 public TranslationMemoryInfo srcLang(String srcLang) {
129 this.srcLang = srcLang;
130 return this;
131 }
132
133 @ApiModelProperty(required = true, value = "Source language ISO code.")
134 @JsonProperty("src_lang")
135 public String getSrcLang() {
136 return srcLang;
137 }
138
139 public void setSrcLang(String srcLang) {
140 this.srcLang = srcLang;
141 }
142
143
144
145
146 public TranslationMemoryInfo trgLang(String trgLang) {
147 this.trgLang = trgLang;
148 return this;
149 }
150
151 @ApiModelProperty(required = true, value = "Target language ISO code.")
152 @JsonProperty("trg_lang")
153 public String getTrgLang() {
154 return trgLang;
155 }
156
157 public void setTrgLang(String trgLang) {
158 this.trgLang = trgLang;
159 }
160
161
162
163
164 public TranslationMemoryInfo segmentsCount(Long segmentsCount) {
165 this.segmentsCount = segmentsCount;
166 return this;
167 }
168
169 @ApiModelProperty(required = true, value = "Number of translation segments in the TM.")
170 @JsonProperty("segments_count")
171 public Long getSegmentsCount() {
172 return segmentsCount;
173 }
174
175 public void setSegmentsCount(Long segmentsCount) {
176 this.segmentsCount = segmentsCount;
177 }
178
179
180
181
182 public TranslationMemoryInfo createdBy(UUID createdBy) {
183 this.createdBy = createdBy;
184 return this;
185 }
186
187 @ApiModelProperty(required = true, value = "UUID of the user who created the TM.")
188 @JsonProperty("created_by")
189 public UUID getCreatedBy() {
190 return createdBy;
191 }
192
193 public void setCreatedBy(UUID createdBy) {
194 this.createdBy = createdBy;
195 }
196
197
198
199
200 public TranslationMemoryInfo createdAt(Date createdAt) {
201 this.createdAt = createdAt;
202 return this;
203 }
204
205 @ApiModelProperty(required = true, value = "Creation timestamp.")
206 @JsonProperty("created_at")
207 public Date getCreatedAt() {
208 return createdAt;
209 }
210
211 public void setCreatedAt(Date createdAt) {
212 this.createdAt = createdAt;
213 }
214
215
216
217
218 public TranslationMemoryInfo updatedBy(UUID updatedBy) {
219 this.updatedBy = updatedBy;
220 return this;
221 }
222
223 @ApiModelProperty(required = true, value = "UUID of the user who updated the TM.")
224 @JsonProperty("updated_by")
225 public UUID getUpdatedBy() {
226 return updatedBy;
227 }
228
229 public void setUpdatedBy(UUID updatedBy) {
230 this.updatedBy = updatedBy;
231 }
232
233
234
235
236 public TranslationMemoryInfo updatedAt(Date updatedAt) {
237 this.updatedAt = updatedAt;
238 return this;
239 }
240
241 @ApiModelProperty(required = true, value = "Last update timestamp.")
242 @JsonProperty("updated_at")
243 public Date getUpdatedAt() {
244 return updatedAt;
245 }
246
247 public void setUpdatedAt(Date updatedAt) {
248 this.updatedAt = updatedAt;
249 }
250
251 @Override
252 public boolean equals(Object o) {
253 if (this == o) {
254 return true;
255 }
256 if (o == null || getClass() != o.getClass()) {
257 return false;
258 }
259 TranslationMemoryInfo translationMemoryInfo = (TranslationMemoryInfo) o;
260 return Objects.equals(tmCompanyId, translationMemoryInfo.tmCompanyId) &&
261 Objects.equals(tmId, translationMemoryInfo.tmId) &&
262 Objects.equals(tmGcsUrl, translationMemoryInfo.tmGcsUrl) &&
263 Objects.equals(tmFileName, translationMemoryInfo.tmFileName) &&
264 Objects.equals(srcLang, translationMemoryInfo.srcLang) &&
265 Objects.equals(trgLang, translationMemoryInfo.trgLang) &&
266 Objects.equals(segmentsCount, translationMemoryInfo.segmentsCount) &&
267 Objects.equals(createdBy, translationMemoryInfo.createdBy) &&
268 Objects.equals(createdAt, translationMemoryInfo.createdAt) &&
269 Objects.equals(updatedBy, translationMemoryInfo.updatedBy) &&
270 Objects.equals(updatedAt, translationMemoryInfo.updatedAt);
271 }
272
273 @Override
274 public int hashCode() {
275 return Objects.hash(tmCompanyId, tmId, tmGcsUrl, tmFileName, srcLang, trgLang, segmentsCount,
276 createdBy, createdAt, updatedBy, updatedAt);
277 }
278
279 @Override
280 public String toString() {
281 StringBuilder sb = new StringBuilder();
282 sb.append("class TranslationMemoryInfo {\n");
283
284 sb.append(" tmCompanyId: ").append(toIndentedString(tmCompanyId)).append("\n");
285 sb.append(" tmId: ").append(toIndentedString(tmId)).append("\n");
286 sb.append(" tmGcsUrl: ").append(toIndentedString(tmGcsUrl)).append("\n");
287 sb.append(" tmFileName: ").append(toIndentedString(tmFileName)).append("\n");
288 sb.append(" srcLang: ").append(toIndentedString(srcLang)).append("\n");
289 sb.append(" trgLang: ").append(toIndentedString(trgLang)).append("\n");
290 sb.append(" segmentsCount: ").append(toIndentedString(segmentsCount)).append("\n");
291 sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n");
292 sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
293 sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n");
294 sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
295 sb.append("}");
296 return sb.toString();
297 }
298
299
300
301
302
303 private String toIndentedString(Object o) {
304 if (o == null) {
305 return "null";
306 }
307 return o.toString().replace("\n", "\n ");
308 }
309 }