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

docs: [translate] Minor formatting #9712

Merged
merged 4 commits into from
Aug 2, 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
4 changes: 2 additions & 2 deletions java-translate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.19.0</version>
<version>26.20.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -272,7 +272,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-translate.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.21.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.22.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,8 @@ public final UnaryCallable<BatchTranslateTextRequest, Operation> batchTranslateT
* <p>Only AutoML Translation models or glossaries within the same region (have the same
* location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
* @param sourceLanguageCode Required. The BCP-47 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).
* for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language
* Support](https://cloud.google.com/translate/docs/languages).
* @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the
* input document. Specify up to 10 language codes here.
* @param inputConfigs Required. Input configurations. The total number of files matched should be
Expand Down Expand Up @@ -913,8 +913,8 @@ public final UnaryCallable<BatchTranslateTextRequest, Operation> batchTranslateT
* <p>Only AutoML Translation models or glossaries within the same region (have the same
* location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
* @param sourceLanguageCode Required. The BCP-47 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).
* for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language
* Support](https://cloud.google.com/translate/docs/languages).
* @param targetLanguageCodes Required. The BCP-47 language code to use for translation of the
* input document. Specify up to 10 language codes here.
* @param inputConfigs Required. Input configurations. The total number of files matched should be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ public DestinationCase getDestinationCase() {
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -205,15 +205,15 @@ public boolean hasGcsDestination() {
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -267,15 +267,15 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -722,15 +722,15 @@ public Builder clearDestination() {
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -781,15 +781,15 @@ public boolean hasGcsDestination() {
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -850,15 +850,15 @@ public com.google.cloud.translate.v3.GcsDestination getGcsDestination() {
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -916,15 +916,15 @@ public Builder setGcsDestination(com.google.cloud.translate.v3.GcsDestination va
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -980,15 +980,15 @@ public Builder setGcsDestination(
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -1056,15 +1056,15 @@ public Builder mergeGcsDestination(com.google.cloud.translate.v3.GcsDestination
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -1125,15 +1125,15 @@ public Builder clearGcsDestination() {
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -1181,15 +1181,15 @@ public com.google.cloud.translate.v3.GcsDestination.Builder getGcsDestinationBui
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -1245,15 +1245,15 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ public interface BatchDocumentOutputConfigOrBuilder
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -118,15 +118,15 @@ public interface BatchDocumentOutputConfigOrBuilder
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down Expand Up @@ -174,15 +174,15 @@ public interface BatchDocumentOutputConfigOrBuilder
*
* The naming format of translation output files follows (for target
* language code [trg]): `translation_output`:
* gs://translation_output/a_b_c_[trg]_translation.[extension]
* `gs://translation_output/a_b_c_[trg]_translation.[extension]`
* `glossary_translation_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
* `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
* output document will maintain the same file format as the input document.
*
* The naming format of error output files follows (for target language code
* [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
* [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
* `glossary_error_output`:
* gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
* `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
* output is a txt file containing error details.
* </pre>
*
Expand Down
Loading