You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java
+27-18
Original file line number
Diff line number
Diff line change
@@ -237,10 +237,10 @@ public final OperationsClient getHttpJsonOperationsClient() {
237
237
* <p>Non-global location is required for requests using AutoML models or custom glossaries.
238
238
* <p>Models and glossaries must be within the same region (have same location-id), otherwise
239
239
* an INVALID_ARGUMENT (400) error is returned.
240
-
* @param targetLanguageCode Required. The BCP-47 language code to use for translation of the
240
+
* @param targetLanguageCode Required. The ISO-639 language code to use for translation of the
241
241
* input text, set to one of the language codes listed in Language Support.
242
242
* @param contents Required. The content of the input in string format. We recommend the total
243
-
* content be less than 30k codepoints. The max length of this field is 1024. Use
243
+
* content be less than 30,000 codepoints. The max length of this field is 1024. Use
244
244
* BatchTranslateText for larger text.
245
245
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
246
246
*/
@@ -284,10 +284,10 @@ public final TranslateTextResponse translateText(
284
284
* <p>Non-global location is required for requests using AutoML models or custom glossaries.
285
285
* <p>Models and glossaries must be within the same region (have same location-id), otherwise
286
286
* an INVALID_ARGUMENT (400) error is returned.
287
-
* @param targetLanguageCode Required. The BCP-47 language code to use for translation of the
287
+
* @param targetLanguageCode Required. The ISO-639 language code to use for translation of the
288
288
* input text, set to one of the language codes listed in Language Support.
289
289
* @param contents Required. The content of the input in string format. We recommend the total
290
-
* content be less than 30k codepoints. The max length of this field is 1024. Use
290
+
* content be less than 30,000 codepoints. The max length of this field is 1024. Use
291
291
* BatchTranslateText for larger text.
292
292
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
293
293
*/
@@ -346,14 +346,14 @@ public final TranslateTextResponse translateText(
346
346
* <p>If not provided, the default Google model (NMT) will be used.
347
347
* @param mimeType Optional. The format of the source text, for example, "text/html",
348
348
* "text/plain". If left blank, the MIME type defaults to "text/html".
349
-
* @param sourceLanguageCode Optional. The BCP-47 language code of the input text if known, for
349
+
* @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for
350
350
* example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If
351
351
* the source language isn't specified, the API attempts to identify the source language
352
352
* automatically and returns the source language within the response.
353
-
* @param targetLanguageCode Required. The BCP-47 language code to use for translation of the
353
+
* @param targetLanguageCode Required. The ISO-639 language code to use for translation of the
354
354
* input text, set to one of the language codes listed in Language Support.
355
355
* @param contents Required. The content of the input in string format. We recommend the total
356
-
* content be less than 30k codepoints. The max length of this field is 1024. Use
356
+
* content be less than 30,000 codepoints. The max length of this field is 1024. Use
357
357
* BatchTranslateText for larger text.
358
358
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
359
359
*/
@@ -420,14 +420,14 @@ public final TranslateTextResponse translateText(
420
420
* <p>If not provided, the default Google model (NMT) will be used.
421
421
* @param mimeType Optional. The format of the source text, for example, "text/html",
422
422
* "text/plain". If left blank, the MIME type defaults to "text/html".
423
-
* @param sourceLanguageCode Optional. The BCP-47 language code of the input text if known, for
423
+
* @param sourceLanguageCode Optional. The ISO-639 language code of the input text if known, for
424
424
* example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If
425
425
* the source language isn't specified, the API attempts to identify the source language
426
426
* automatically and returns the source language within the response.
427
-
* @param targetLanguageCode Required. The BCP-47 language code to use for translation of the
427
+
* @param targetLanguageCode Required. The ISO-639 language code to use for translation of the
428
428
* input text, set to one of the language codes listed in Language Support.
429
429
* @param contents Required. The content of the input in string format. We recommend the total
430
-
* content be less than 30k codepoints. The max length of this field is 1024. Use
430
+
* content be less than 30,000 codepoints. The max length of this field is 1024. Use
431
431
* BatchTranslateText for larger text.
432
432
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
433
433
*/
@@ -877,6 +877,9 @@ public final SupportedLanguages getSupportedLanguages(GetSupportedLanguagesReque
Copy file name to clipboardExpand all lines: java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientHttpJsonTest.java
+10
Original file line number
Diff line number
Diff line change
@@ -512,6 +512,9 @@ public void translateDocumentTest() throws Exception {
Copy file name to clipboardExpand all lines: java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java
+16
Original file line number
Diff line number
Diff line change
@@ -494,6 +494,9 @@ public void translateDocumentTest() throws Exception {
0 commit comments