Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [Translate] Add supported fields in document translation request and refresh translation v3 GA service proto documentation #5888

Merged
merged 2 commits into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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