Skip to content

Commit b1831f5

Browse files
docs: [google-cloud-translate] minor formatting (#14023)
BEGIN_COMMIT_OVERRIDE docs: Update hyperlink to the supported languages documentation page docs: minor formatting feat: add google.iam.v1.IAMPolicy API feat: add google.cloud.location.Locations API feat: add google.longrunning.Operations API END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. feat: add google.iam.v1.IAMPolicy API feat: add google.cloud.location.Locations API feat: add google.longrunning.Operations API PiperOrigin-RevId: 774751840 Source-Link: googleapis/googleapis@728080d Source-Link: googleapis/googleapis-gen@6f9521c Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRyYW5zbGF0ZS8uT3dsQm90LnlhbWwiLCJoIjoiNmY5NTIxYzZkYjlmYTdmNGM1NzU1OWY5ZjlmMjk4MjdlOWVmNWI5MSJ9 BEGIN_NESTED_COMMIT docs: [google-cloud-translate] Update hyperlink to the supported languages documentation page PiperOrigin-RevId: 773858816 Source-Link: googleapis/googleapis@d5b7894 Source-Link: googleapis/googleapis-gen@ceca9ea Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRyYW5zbGF0ZS8uT3dsQm90LnlhbWwiLCJoIjoiY2VjYTllYTdlYzMxMDFlMGM2NDE4ODI3YjMyYjZlMzQ3ZjNmZjEzMiJ9 END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: [google-cloud-translate] Update hyperlink to the supported languages documentation page PiperOrigin-RevId: 773858401 Source-Link: googleapis/googleapis@8b26dd3 Source-Link: googleapis/googleapis-gen@145fb3f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRyYW5zbGF0ZS8uT3dsQm90LnlhbWwiLCJoIjoiMTQ1ZmIzZjQxYTVkNzQzZTgxYzU4OTJmMDZkMmYxOTJkOTgzNGQ3NSJ9 END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 9cdc1ae commit b1831f5

File tree

17 files changed

+4763
-798
lines changed

17 files changed

+4763
-798
lines changed

packages/google-cloud-translate/google/cloud/translate/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.20.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-translate/google/cloud/translate_v3/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.20.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-translate/google/cloud/translate_v3/services/translation_service/async_client.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,10 @@ async def sample_translate_text():
402402
on the ``request`` instance; if ``request`` is provided, this
403403
should not be set.
404404
target_language_code (:class:`str`):
405-
Required. The ISO-639 language code
406-
to use for translation of the input
407-
text, set to one of the language codes
408-
listed in Language Support.
405+
Required. The ISO-639 language code to use for
406+
translation of the input text, set to one of the
407+
language codes listed in `Language
408+
Support <https://cloud.google.com/translate/docs/languages>`__.
409409
410410
This corresponds to the ``target_language_code`` field
411411
on the ``request`` instance; if ``request`` is provided, this
@@ -455,14 +455,13 @@ async def sample_translate_text():
455455
on the ``request`` instance; if ``request`` is provided, this
456456
should not be set.
457457
source_language_code (:class:`str`):
458-
Optional. The ISO-639 language code
459-
of the input text if known, for example,
460-
"en-US" or "sr-Latn". Supported language
461-
codes are listed in Language Support. If
462-
the source language isn't specified, the
463-
API attempts to identify the source
464-
language automatically and returns the
465-
source language within the response.
458+
Optional. The ISO-639 language code of the input text if
459+
known, for example, "en-US" or "sr-Latn". Supported
460+
language codes are listed in `Language
461+
Support <https://cloud.google.com/translate/docs/languages>`__.
462+
If the source language isn't specified, the API attempts
463+
to identify the source language automatically and
464+
returns the source language within the response.
466465
467466
This corresponds to the ``source_language_code`` field
468467
on the ``request`` instance; if ``request`` is provided, this
@@ -1314,10 +1313,11 @@ async def sample_batch_translate_document():
13141313
on the ``request`` instance; if ``request`` is provided, this
13151314
should not be set.
13161315
target_language_codes (:class:`MutableSequence[str]`):
1317-
Required. The ISO-639 language code
1318-
to use for translation of the input
1319-
document. Specify up to 10 language
1320-
codes here.
1316+
Required. The ISO-639 language code to use for
1317+
translation of the input document. Specify up to 10
1318+
language codes here. Supported language codes are listed
1319+
in `Language
1320+
Support <https://cloud.google.com/translate/docs/languages>`__.
13211321
13221322
This corresponds to the ``target_language_codes`` field
13231323
on the ``request`` instance; if ``request`` is provided, this

packages/google-cloud-translate/google/cloud/translate_v3/services/translation_service/client.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -964,10 +964,10 @@ def sample_translate_text():
964964
on the ``request`` instance; if ``request`` is provided, this
965965
should not be set.
966966
target_language_code (str):
967-
Required. The ISO-639 language code
968-
to use for translation of the input
969-
text, set to one of the language codes
970-
listed in Language Support.
967+
Required. The ISO-639 language code to use for
968+
translation of the input text, set to one of the
969+
language codes listed in `Language
970+
Support <https://cloud.google.com/translate/docs/languages>`__.
971971
972972
This corresponds to the ``target_language_code`` field
973973
on the ``request`` instance; if ``request`` is provided, this
@@ -1017,14 +1017,13 @@ def sample_translate_text():
10171017
on the ``request`` instance; if ``request`` is provided, this
10181018
should not be set.
10191019
source_language_code (str):
1020-
Optional. The ISO-639 language code
1021-
of the input text if known, for example,
1022-
"en-US" or "sr-Latn". Supported language
1023-
codes are listed in Language Support. If
1024-
the source language isn't specified, the
1025-
API attempts to identify the source
1026-
language automatically and returns the
1027-
source language within the response.
1020+
Optional. The ISO-639 language code of the input text if
1021+
known, for example, "en-US" or "sr-Latn". Supported
1022+
language codes are listed in `Language
1023+
Support <https://cloud.google.com/translate/docs/languages>`__.
1024+
If the source language isn't specified, the API attempts
1025+
to identify the source language automatically and
1026+
returns the source language within the response.
10281027
10291028
This corresponds to the ``source_language_code`` field
10301029
on the ``request`` instance; if ``request`` is provided, this
@@ -1860,10 +1859,11 @@ def sample_batch_translate_document():
18601859
on the ``request`` instance; if ``request`` is provided, this
18611860
should not be set.
18621861
target_language_codes (MutableSequence[str]):
1863-
Required. The ISO-639 language code
1864-
to use for translation of the input
1865-
document. Specify up to 10 language
1866-
codes here.
1862+
Required. The ISO-639 language code to use for
1863+
translation of the input document. Specify up to 10
1864+
language codes here. Supported language codes are listed
1865+
in `Language
1866+
Support <https://cloud.google.com/translate/docs/languages>`__.
18671867
18681868
This corresponds to the ``target_language_codes`` field
18691869
on the ``request`` instance; if ``request`` is provided, this

packages/google-cloud-translate/google/cloud/translate_v3/types/translation_service.py

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -109,17 +109,18 @@ class TranslateTextRequest(proto.Message):
109109
example, "text/html", "text/plain". If left
110110
blank, the MIME type defaults to "text/html".
111111
source_language_code (str):
112-
Optional. The ISO-639 language code of the
113-
input text if known, for example, "en-US" or
114-
"sr-Latn". Supported language codes are listed
115-
in Language Support. If the source language
116-
isn't specified, the API attempts to identify
117-
the source language automatically and returns
118-
the source language within the response.
112+
Optional. The ISO-639 language code of the input text if
113+
known, for example, "en-US" or "sr-Latn". Supported language
114+
codes are listed in `Language
115+
Support <https://cloud.google.com/translate/docs/languages>`__.
116+
If the source language isn't specified, the API attempts to
117+
identify the source language automatically and returns the
118+
source language within the response.
119119
target_language_code (str):
120-
Required. The ISO-639 language code to use
121-
for translation of the input text, set to one of
122-
the language codes listed in Language Support.
120+
Required. The ISO-639 language code to use for translation
121+
of the input text, set to one of the language codes listed
122+
in `Language
123+
Support <https://cloud.google.com/translate/docs/languages>`__.
123124
parent (str):
124125
Required. Project or location to make a call. Must refer to
125126
a caller's project.
@@ -313,12 +314,13 @@ class RomanizeTextRequest(proto.Message):
313314
Required. The content of the input in string
314315
format.
315316
source_language_code (str):
316-
Optional. The ISO-639 language code of the
317-
input text if known, for example, "hi" or "zh".
318-
If the source language isn't specified, the API
319-
attempts to identify the source language
320-
automatically and returns the source language
321-
for each content in the response.
317+
Optional. The ISO-639 language code of the input text if
318+
known, for example, "hi" or "zh". Supported language codes
319+
are listed in `Language
320+
Support <https://cloud.google.com/translate/docs/languages#roman>`__.
321+
If the source language isn't specified, the API attempts to
322+
identify the source language automatically and returns the
323+
source language for each content in the response.
322324
"""
323325

324326
parent: str = proto.Field(
@@ -939,20 +941,20 @@ class TranslateDocumentRequest(proto.Message):
939941
the same location-id), otherwise an INVALID_ARGUMENT (400)
940942
error is returned.
941943
source_language_code (str):
942-
Optional. The ISO-639 language code of the
943-
input document if known, for example, "en-US" or
944-
"sr-Latn". Supported language codes are listed
945-
in Language Support. If the source language
946-
isn't specified, the API attempts to identify
947-
the source language automatically and returns
948-
the source language within the response. Source
949-
language must be specified if the request
950-
contains a glossary or a custom model.
944+
Optional. The ISO-639 language code of the input document if
945+
known, for example, "en-US" or "sr-Latn". Supported language
946+
codes are listed in [Language Support]
947+
(https://cloud.google.com/translate/docs/languages). If the
948+
source language isn't specified, the API attempts to
949+
identify the source language automatically and returns the
950+
source language within the response. Source language must be
951+
specified if the request contains a glossary or a custom
952+
model.
951953
target_language_code (str):
952-
Required. The ISO-639 language code to use
953-
for translation of the input document, set to
954-
one of the language codes listed in Language
955-
Support.
954+
Required. The ISO-639 language code to use for translation
955+
of the input document, set to one of the language codes
956+
listed in [Language Support]
957+
(https://cloud.google.com/translate/docs/languages).
956958
document_input_config (google.cloud.translate_v3.types.DocumentInputConfig):
957959
Required. Input configurations.
958960
document_output_config (google.cloud.translate_v3.types.DocumentOutputConfig):
@@ -1168,10 +1170,13 @@ class BatchTranslateTextRequest(proto.Message):
11681170
region (have the same location-id) can be used, otherwise an
11691171
INVALID_ARGUMENT (400) error is returned.
11701172
source_language_code (str):
1171-
Required. Source language code.
1173+
Required. Source language code. Supported language codes are
1174+
listed in `Language
1175+
Support <https://cloud.google.com/translate/docs/languages>`__.
11721176
target_language_codes (MutableSequence[str]):
1173-
Required. Specify up to 10 language codes
1174-
here.
1177+
Required. Specify up to 10 language codes here. Supported
1178+
language codes are listed in `Language
1179+
Support <https://cloud.google.com/translate/docs/languages>`__.
11751180
models (MutableMapping[str, str]):
11761181
Optional. The models to use for translation. Map's key is
11771182
target language code. Map's value is model name. Value can
@@ -2077,9 +2082,10 @@ class BatchTranslateDocumentRequest(proto.Message):
20772082
codes are listed in `Language
20782083
Support <https://cloud.google.com/translate/docs/languages>`__.
20792084
target_language_codes (MutableSequence[str]):
2080-
Required. The ISO-639 language code to use
2081-
for translation of the input document. Specify
2082-
up to 10 language codes here.
2085+
Required. The ISO-639 language code to use for translation
2086+
of the input document. Specify up to 10 language codes here.
2087+
Supported language codes are listed in `Language
2088+
Support <https://cloud.google.com/translate/docs/languages>`__.
20832089
input_configs (MutableSequence[google.cloud.translate_v3.types.BatchDocumentInputConfig]):
20842090
Required. Input configurations.
20852091
The total number of files matched should be <=

packages/google-cloud-translate/google/cloud/translate_v3beta1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.20.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

0 commit comments

Comments
 (0)