Skip to content

Commit 0202731

Browse files
chore: regenerate translate client
1 parent 5ec85f7 commit 0202731

34 files changed

+1241
-144
lines changed

clients/google-api-services-translate/v3/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-translate</artifactId>
25-
<version>v3-rev20250424-2.0.0</version>
25+
<version>v3-rev20260128-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-translate:v3-rev20250424-2.0.0'
38+
implementation 'com.google.apis:google-api-services-translate:v3-rev20260128-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/Translate.java

Lines changed: 229 additions & 37 deletions
Large diffs are not rendered by default.

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/model/AdaptiveMtDataset.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public final class AdaptiveMtDataset extends com.google.api.client.json.GenericJ
5353
private java.lang.Integer exampleCount;
5454

5555
/**
56-
* Required. The resource name of the dataset, in form of `projects/{project-number-or-
56+
* Identifier. The resource name of the dataset, in form of `projects/{project-number-or-
5757
* id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
5858
* The value may be {@code null}.
5959
*/
@@ -135,7 +135,7 @@ public AdaptiveMtDataset setExampleCount(java.lang.Integer exampleCount) {
135135
}
136136

137137
/**
138-
* Required. The resource name of the dataset, in form of `projects/{project-number-or-
138+
* Identifier. The resource name of the dataset, in form of `projects/{project-number-or-
139139
* id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
140140
* @return value or {@code null} for none
141141
*/
@@ -144,7 +144,7 @@ public java.lang.String getName() {
144144
}
145145

146146
/**
147-
* Required. The resource name of the dataset, in form of `projects/{project-number-or-
147+
* Identifier. The resource name of the dataset, in form of `projects/{project-number-or-
148148
* id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
149149
* @param name name or {@code null} for none
150150
*/

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/model/AdaptiveMtFile.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public final class AdaptiveMtFile extends com.google.api.client.json.GenericJson
5252
private java.lang.Integer entryCount;
5353

5454
/**
55-
* Required. The resource name of the file, in form of `projects/{project-number-or-
55+
* Identifier. The resource name of the file, in form of `projects/{project-number-or-
5656
* id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
5757
* The value may be {@code null}.
5858
*/
@@ -118,7 +118,7 @@ public AdaptiveMtFile setEntryCount(java.lang.Integer entryCount) {
118118
}
119119

120120
/**
121-
* Required. The resource name of the file, in form of `projects/{project-number-or-
121+
* Identifier. The resource name of the file, in form of `projects/{project-number-or-
122122
* id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
123123
* @return value or {@code null} for none
124124
*/
@@ -127,7 +127,7 @@ public java.lang.String getName() {
127127
}
128128

129129
/**
130-
* Required. The resource name of the file, in form of `projects/{project-number-or-
130+
* Identifier. The resource name of the file, in form of `projects/{project-number-or-
131131
* id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
132132
* @param name name or {@code null} for none
133133
*/

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/model/AdaptiveMtSentence.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ public final class AdaptiveMtSentence extends com.google.api.client.json.Generic
3838
private String createTime;
3939

4040
/**
41-
* Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/
42-
* {location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence
43-
* }`
41+
* Identifier. The resource name of the file, in form of `projects/{project-number-or-id}/location
42+
* s/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{senten
43+
* ce}`
4444
* The value may be {@code null}.
4545
*/
4646
@com.google.api.client.util.Key
@@ -85,19 +85,19 @@ public AdaptiveMtSentence setCreateTime(String createTime) {
8585
}
8686

8787
/**
88-
* Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/
89-
* {location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence
90-
* }`
88+
* Identifier. The resource name of the file, in form of `projects/{project-number-or-id}/location
89+
* s/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{senten
90+
* ce}`
9191
* @return value or {@code null} for none
9292
*/
9393
public java.lang.String getName() {
9494
return name;
9595
}
9696

9797
/**
98-
* Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/
99-
* {location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence
100-
* }`
98+
* Identifier. The resource name of the file, in form of `projects/{project-number-or-id}/location
99+
* s/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{senten
100+
* ce}`
101101
* @param name name or {@code null} for none
102102
*/
103103
public AdaptiveMtSentence setName(java.lang.String name) {

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/model/AdaptiveMtTranslateRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class AdaptiveMtTranslateRequest extends com.google.api.client.json
3838
private java.util.List<java.lang.String> content;
3939

4040
/**
41-
* Required. The resource name for the dataset to use for adaptive MT.
41+
* Required. The resource name for the dataset to use for adaptive MT translation.
4242
* `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`
4343
* The value may be {@code null}.
4444
*/
@@ -78,7 +78,7 @@ public AdaptiveMtTranslateRequest setContent(java.util.List<java.lang.String> co
7878
}
7979

8080
/**
81-
* Required. The resource name for the dataset to use for adaptive MT.
81+
* Required. The resource name for the dataset to use for adaptive MT translation.
8282
* `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`
8383
* @return value or {@code null} for none
8484
*/
@@ -87,7 +87,7 @@ public java.lang.String getDataset() {
8787
}
8888

8989
/**
90-
* Required. The resource name for the dataset to use for adaptive MT.
90+
* Required. The resource name for the dataset to use for adaptive MT translation.
9191
* `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`
9292
* @param dataset dataset or {@code null} for none
9393
*/

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/model/BatchTranslateDocumentRequest.java

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ public final class BatchTranslateDocumentRequest extends com.google.api.client.j
108108
@com.google.api.client.util.Key
109109
private BatchDocumentOutputConfig outputConfig;
110110

111+
/**
112+
* Optional. If true, only native pdf pages will be translated.
113+
* The value may be {@code null}.
114+
*/
115+
@com.google.api.client.util.Key
116+
private java.lang.Boolean pdfNativeOnly;
117+
111118
/**
112119
* Required. The ISO-639 language code of the input document if known, for example, "en-US" or
113120
* "sr-Latn". Supported language codes are listed in [Language
@@ -119,7 +126,8 @@ public final class BatchTranslateDocumentRequest extends com.google.api.client.j
119126

120127
/**
121128
* Required. The ISO-639 language code to use for translation of the input document. Specify up to
122-
* 10 language codes here.
129+
* 10 language codes here. Supported language codes are listed in [Language
130+
* Support](https://cloud.google.com/translate/docs/languages).
123131
* The value may be {@code null}.
124132
*/
125133
@com.google.api.client.util.Key
@@ -293,6 +301,23 @@ public BatchTranslateDocumentRequest setOutputConfig(BatchDocumentOutputConfig o
293301
return this;
294302
}
295303

304+
/**
305+
* Optional. If true, only native pdf pages will be translated.
306+
* @return value or {@code null} for none
307+
*/
308+
public java.lang.Boolean getPdfNativeOnly() {
309+
return pdfNativeOnly;
310+
}
311+
312+
/**
313+
* Optional. If true, only native pdf pages will be translated.
314+
* @param pdfNativeOnly pdfNativeOnly or {@code null} for none
315+
*/
316+
public BatchTranslateDocumentRequest setPdfNativeOnly(java.lang.Boolean pdfNativeOnly) {
317+
this.pdfNativeOnly = pdfNativeOnly;
318+
return this;
319+
}
320+
296321
/**
297322
* Required. The ISO-639 language code of the input document if known, for example, "en-US" or
298323
* "sr-Latn". Supported language codes are listed in [Language
@@ -316,7 +341,8 @@ public BatchTranslateDocumentRequest setSourceLanguageCode(java.lang.String sour
316341

317342
/**
318343
* Required. The ISO-639 language code to use for translation of the input document. Specify up to
319-
* 10 language codes here.
344+
* 10 language codes here. Supported language codes are listed in [Language
345+
* Support](https://cloud.google.com/translate/docs/languages).
320346
* @return value or {@code null} for none
321347
*/
322348
public java.util.List<java.lang.String> getTargetLanguageCodes() {
@@ -325,7 +351,8 @@ public java.util.List<java.lang.String> getTargetLanguageCodes() {
325351

326352
/**
327353
* Required. The ISO-639 language code to use for translation of the input document. Specify up to
328-
* 10 language codes here.
354+
* 10 language codes here. Supported language codes are listed in [Language
355+
* Support](https://cloud.google.com/translate/docs/languages).
329356
* @param targetLanguageCodes targetLanguageCodes or {@code null} for none
330357
*/
331358
public BatchTranslateDocumentRequest setTargetLanguageCodes(java.util.List<java.lang.String> targetLanguageCodes) {

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/model/BatchTranslateTextRequest.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,16 @@ public final class BatchTranslateTextRequest extends com.google.api.client.json.
7777
private OutputConfig outputConfig;
7878

7979
/**
80-
* Required. Source language code.
80+
* Required. Source language code. Supported language codes are listed in [Language
81+
* Support](https://cloud.google.com/translate/docs/languages).
8182
* The value may be {@code null}.
8283
*/
8384
@com.google.api.client.util.Key
8485
private java.lang.String sourceLanguageCode;
8586

8687
/**
87-
* Required. Specify up to 10 language codes here.
88+
* Required. Specify up to 10 language codes here. Supported language codes are listed in
89+
* [Language Support](https://cloud.google.com/translate/docs/languages).
8890
* The value may be {@code null}.
8991
*/
9092
@com.google.api.client.util.Key
@@ -198,15 +200,17 @@ public BatchTranslateTextRequest setOutputConfig(OutputConfig outputConfig) {
198200
}
199201

200202
/**
201-
* Required. Source language code.
203+
* Required. Source language code. Supported language codes are listed in [Language
204+
* Support](https://cloud.google.com/translate/docs/languages).
202205
* @return value or {@code null} for none
203206
*/
204207
public java.lang.String getSourceLanguageCode() {
205208
return sourceLanguageCode;
206209
}
207210

208211
/**
209-
* Required. Source language code.
212+
* Required. Source language code. Supported language codes are listed in [Language
213+
* Support](https://cloud.google.com/translate/docs/languages).
210214
* @param sourceLanguageCode sourceLanguageCode or {@code null} for none
211215
*/
212216
public BatchTranslateTextRequest setSourceLanguageCode(java.lang.String sourceLanguageCode) {
@@ -215,15 +219,17 @@ public BatchTranslateTextRequest setSourceLanguageCode(java.lang.String sourceLa
215219
}
216220

217221
/**
218-
* Required. Specify up to 10 language codes here.
222+
* Required. Specify up to 10 language codes here. Supported language codes are listed in
223+
* [Language Support](https://cloud.google.com/translate/docs/languages).
219224
* @return value or {@code null} for none
220225
*/
221226
public java.util.List<java.lang.String> getTargetLanguageCodes() {
222227
return targetLanguageCodes;
223228
}
224229

225230
/**
226-
* Required. Specify up to 10 language codes here.
231+
* Required. Specify up to 10 language codes here. Supported language codes are listed in
232+
* [Language Support](https://cloud.google.com/translate/docs/languages).
227233
* @param targetLanguageCodes targetLanguageCodes or {@code null} for none
228234
*/
229235
public BatchTranslateTextRequest setTargetLanguageCodes(java.util.List<java.lang.String> targetLanguageCodes) {

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/model/DetectLanguageRequest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ public final class DetectLanguageRequest extends com.google.api.client.json.Gene
3737
@com.google.api.client.util.Key
3838
private java.lang.String content;
3939

40+
/**
41+
* Optional. The document configuration of the input.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private DocumentInputConfig documentInputConfig;
46+
4047
/**
4148
* Optional. The labels with user-defined metadata for the request. Label keys and values can be
4249
* no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric
@@ -83,6 +90,23 @@ public DetectLanguageRequest setContent(java.lang.String content) {
8390
return this;
8491
}
8592

93+
/**
94+
* Optional. The document configuration of the input.
95+
* @return value or {@code null} for none
96+
*/
97+
public DocumentInputConfig getDocumentInputConfig() {
98+
return documentInputConfig;
99+
}
100+
101+
/**
102+
* Optional. The document configuration of the input.
103+
* @param documentInputConfig documentInputConfig or {@code null} for none
104+
*/
105+
public DetectLanguageRequest setDocumentInputConfig(DocumentInputConfig documentInputConfig) {
106+
this.documentInputConfig = documentInputConfig;
107+
return this;
108+
}
109+
86110
/**
87111
* Optional. The labels with user-defined metadata for the request. Label keys and values can be
88112
* no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric

clients/google-api-services-translate/v3/2.0.0/com/google/api/services/translate/v3/model/Glossary.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public final class Glossary extends com.google.api.client.json.GenericJson {
7474
private LanguageCodePair languagePair;
7575

7676
/**
77-
* Required. The resource name of the glossary. Glossary names have the form `projects/{project-
77+
* Identifier. The resource name of the glossary. Glossary names have the form `projects/{project-
7878
* number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
7979
* The value may be {@code null}.
8080
*/
@@ -193,7 +193,7 @@ public Glossary setLanguagePair(LanguageCodePair languagePair) {
193193
}
194194

195195
/**
196-
* Required. The resource name of the glossary. Glossary names have the form `projects/{project-
196+
* Identifier. The resource name of the glossary. Glossary names have the form `projects/{project-
197197
* number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
198198
* @return value or {@code null} for none
199199
*/
@@ -202,7 +202,7 @@ public java.lang.String getName() {
202202
}
203203

204204
/**
205-
* Required. The resource name of the glossary. Glossary names have the form `projects/{project-
205+
* Identifier. The resource name of the glossary. Glossary names have the form `projects/{project-
206206
* number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
207207
* @param name name or {@code null} for none
208208
*/

0 commit comments

Comments
 (0)