Skip to content

Commit

Permalink
feat: [Translate] Add supported fields in document translation reques…
Browse files Browse the repository at this point in the history
…t and refresh translation v3 GA service proto documentation (#5888)

PiperOrigin-RevId: 511225850
Source-Link: googleapis/googleapis@84bbbc5
Source-Link: googleapis/googleapis-gen@431d15c
Copy-Tag: eyJwIjoiVHJhbnNsYXRlLy5Pd2xCb3QueWFtbCIsImgiOiI0MzFkMTVjZGRhZTg0OTA2ZDRhYzJlMWQ3NWUyNDMwOTk3NDdjNTJiIn0=
  • Loading branch information
gcf-owl-bot[bot] committed Feb 22, 2023
1 parent de4f655 commit 5230424
Show file tree
Hide file tree
Showing 19 changed files with 372 additions and 130 deletions.
Binary file modified Translate/metadata/V3/TranslationService.php
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
* the same location-id) can be used, otherwise an INVALID_ARGUMENT (400)
* error is returned. Please see
* {@see TranslationServiceClient::locationName()} for help formatting this field.
* @param string $sourceLanguageCode The BCP-47 language code of the input document if known, for
* @param string $sourceLanguageCode The ISO-639 language code of the input document if known, for
* example, "en-US" or "sr-Latn". Supported language codes are listed in
* Language Support (https://cloud.google.com/translate/docs/languages).
* @param string $targetLanguageCodesElement The BCP-47 language code to use for translation of the input
* [Language Support](https://cloud.google.com/translate/docs/languages).
* @param string $targetLanguageCodesElement The ISO-639 language code to use for translation of the input
* document. Specify up to 10 language codes here.
*/
function batch_translate_document_sample(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
*
* Models and glossaries must be within the same region (have the same
* location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
* @param string $targetLanguageCode The BCP-47 language code to use for translation of the input
* @param string $targetLanguageCode The ISO-639 language code to use for translation of the input
* document, set to one of the language codes listed in Language Support.
*/
function translate_document_sample(string $parent, string $targetLanguageCode): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@
* Translates input text and returns translated text.
*
* @param string $contentsElement The content of the input in string format.
* We recommend the total content be less than 30k codepoints. The max length
* of this field is 1024.
* Use BatchTranslateText for larger text.
* @param string $targetLanguageCode The BCP-47 language code to use for translation of the input
* We recommend the total content be less than 30,000 codepoints. The max
* length of this field is 1024. Use BatchTranslateText for larger text.
* @param string $targetLanguageCode The ISO-639 language code to use for translation of the input
* text, set to one of the language codes listed in Language Support.
* @param string $formattedParent Project or location to make a call. Must refer to a caller's
* project.
Expand Down
6 changes: 3 additions & 3 deletions Translate/src/V3/BatchDocumentOutputConfig.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 58 additions & 12 deletions Translate/src/V3/BatchTranslateDocumentRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Translate/src/V3/DetectedLanguage.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5230424

Please sign in to comment.