Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-google-cloud-translate for openSUSE:Factory checked in at 2023-08-31 13:46:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-cloud-translate (Old)
and /work/SRC/openSUSE:Factory/.python-google-cloud-translate.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-cloud-translate"
Thu Aug 31 13:46:18 2023 rev:10 rq:1108218 version:3.12.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-google-cloud-translate/python-google-cloud-translate.changes 2023-07-18 22:09:26.099428618 +0200
+++ /work/SRC/openSUSE:Factory/.python-google-cloud-translate.new.1766/python-google-cloud-translate.changes 2023-08-31 13:52:25.590609991 +0200
@@ -1,0 +2,10 @@
+Wed Aug 30 13:33:49 UTC 2023 - John Paul Adrian Glaubitz
+
+- Update to version 3.12.0
+ * Added shadow removal and rotation correction options to Document
+ Translation and Batch Document Translation API (#511)
+- from version 3.11.3
+ * Minor formatting (#505)
+ * Minor formatting (#507)
+
+-------------------------------------------------------------------
Old:
----
google-cloud-translate-3.11.2.tar.gz
New:
----
google-cloud-translate-3.12.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-google-cloud-translate.spec ++++++
--- /var/tmp/diff_new_pack.WvdKL1/_old 2023-08-31 13:52:26.662648309 +0200
+++ /var/tmp/diff_new_pack.WvdKL1/_new 2023-08-31 13:52:26.666648452 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-google-cloud-translate
-Version: 3.11.2
+Version: 3.12.0
Release: 0
Summary: Google Cloud Translation API client library
License: Apache-2.0
++++++ google-cloud-translate-3.11.2.tar.gz -> google-cloud-translate-3.12.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/MANIFEST.in new/google-cloud-translate-3.12.0/MANIFEST.in
--- old/google-cloud-translate-3.11.2/MANIFEST.in 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/MANIFEST.in 2023-08-08 16:59:37.000000000 +0200
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# Copyright 2020 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/PKG-INFO new/google-cloud-translate-3.12.0/PKG-INFO
--- old/google-cloud-translate-3.11.2/PKG-INFO 2023-07-05 17:21:21.332389600 +0200
+++ new/google-cloud-translate-3.12.0/PKG-INFO 2023-08-08 17:02:18.020073700 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: google-cloud-translate
-Version: 3.11.2
+Version: 3.12.0
Summary: Google Cloud Translate API client library
Home-page: https://github.com/googleapis/python-translate
Author: Google LLC
@@ -60,21 +60,24 @@
Installation
~~~~~~~~~~~~
-Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to
-create isolated Python environments. The basic problem it addresses is one of
-dependencies and versions, and indirectly permissions.
+Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
+creates isolated Python environments. These isolated environments can have separate
+versions of Python packages, which allows you to isolate one project's dependencies
+from the dependencies of other projects.
-With `virtualenv`_, it's possible to install this library without needing system
+With `venv`_, it's possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.
-.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
+.. _`venv`: https://docs.python.org/3/library/venv.html
Code samples and snippets
~~~~~~~~~~~~~~~~~~~~~~~~~
-Code samples and snippets live in the `samples/` folder.
+Code samples and snippets live in the `samples/`_ folder.
+
+.. _samples/: https://github.com/googleapis/python-translate/tree/main/samples
Supported Python Versions
@@ -101,10 +104,9 @@
.. code-block:: console
- pip install virtualenv
- virtualenv <your-env>
+ python3 -m venv <your-env>
source <your-env>/bin/activate
- <your-env>/bin/pip install google-cloud-translate
+ pip install google-cloud-translate
Windows
@@ -112,10 +114,9 @@
.. code-block:: console
- pip install virtualenv
- virtualenv <your-env>
- <your-env>\Scripts\activate
- <your-env>\Scripts\pip.exe install google-cloud-translate
+ py -m venv <your-env>
+ .\<your-env>\Scripts\activate
+ pip install google-cloud-translate
Next Steps
~~~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/README.rst new/google-cloud-translate-3.12.0/README.rst
--- old/google-cloud-translate-3.11.2/README.rst 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/README.rst 2023-08-08 16:59:37.000000000 +0200
@@ -36,21 +36,24 @@
Installation
~~~~~~~~~~~~
-Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to
-create isolated Python environments. The basic problem it addresses is one of
-dependencies and versions, and indirectly permissions.
+Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
+creates isolated Python environments. These isolated environments can have separate
+versions of Python packages, which allows you to isolate one project's dependencies
+from the dependencies of other projects.
-With `virtualenv`_, it's possible to install this library without needing system
+With `venv`_, it's possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.
-.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
+.. _`venv`: https://docs.python.org/3/library/venv.html
Code samples and snippets
~~~~~~~~~~~~~~~~~~~~~~~~~
-Code samples and snippets live in the `samples/` folder.
+Code samples and snippets live in the `samples/`_ folder.
+
+.. _samples/: https://github.com/googleapis/python-translate/tree/main/samples
Supported Python Versions
@@ -77,10 +80,9 @@
.. code-block:: console
- pip install virtualenv
- virtualenv <your-env>
+ python3 -m venv <your-env>
source <your-env>/bin/activate
- <your-env>/bin/pip install google-cloud-translate
+ pip install google-cloud-translate
Windows
@@ -88,10 +90,9 @@
.. code-block:: console
- pip install virtualenv
- virtualenv <your-env>
- <your-env>\Scripts\activate
- <your-env>\Scripts\pip.exe install google-cloud-translate
+ py -m venv <your-env>
+ .\<your-env>\Scripts\activate
+ pip install google-cloud-translate
Next Steps
~~~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate/gapic_version.py new/google-cloud-translate-3.12.0/google/cloud/translate/gapic_version.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate/gapic_version.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate/gapic_version.py 2023-08-08 16:59:37.000000000 +0200
@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-__version__ = "3.11.2" # {x-release-please-version}
+__version__ = "3.12.0" # {x-release-please-version}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v2/client.py new/google-cloud-translate-3.12.0/google/cloud/translate_v2/client.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v2/client.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v2/client.py 2023-08-08 16:59:37.000000000 +0200
@@ -81,7 +81,7 @@
kw_args = {"client_info": client_info}
if client_options:
- if type(client_options) == dict:
+ if isinstance(client_options, dict):
client_options = google.api_core.client_options.from_dict(
client_options
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/gapic_version.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/gapic_version.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/gapic_version.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/gapic_version.py 2023-08-08 16:59:37.000000000 +0200
@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-__version__ = "3.11.2" # {x-release-please-version}
+__version__ = "3.12.0" # {x-release-please-version}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/async_client.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/async_client.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/async_client.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/async_client.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -322,7 +322,7 @@
``projects/{project-number-or-id}/locations/global/models/general/nmt``.
If not provided, the default Google model (NMT) will be
- used.
+ used
This corresponds to the ``model`` field
on the ``request`` instance; if ``request`` is provided, this
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/client.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/client.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/client.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/client.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -550,7 +550,7 @@
``projects/{project-number-or-id}/locations/global/models/general/nmt``.
If not provided, the default Google model (NMT) will be
- used.
+ used
This corresponds to the ``model`` field
on the ``request`` instance; if ``request`` is provided, this
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/pagers.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/pagers.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/pagers.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/pagers.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/transports/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/transports/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/transports/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/transports/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/transports/base.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/transports/base.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/transports/base.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/transports/base.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/transports/grpc.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/transports/grpc.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/transports/grpc.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/transports/grpc.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/transports/grpc_asyncio.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/transports/grpc_asyncio.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/transports/grpc_asyncio.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/transports/grpc_asyncio.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/transports/rest.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/transports/rest.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/services/translation_service/transports/rest.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/services/translation_service/transports/rest.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/types/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/types/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/types/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/types/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3/types/translation_service.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3/types/translation_service.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3/types/translation_service.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3/types/translation_service.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -67,8 +67,8 @@
class TranslateTextGlossaryConfig(proto.Message):
- r"""Configures which glossary should be used for a specific
- target language, and defines options for applying that glossary.
+ r"""Configures which glossary is used for a specific target
+ language and defines options for applying that glossary.
Attributes:
glossary (str):
@@ -152,8 +152,7 @@
``global``. For example,
``projects/{project-number-or-id}/locations/global/models/general/nmt``.
- If not provided, the default Google model (NMT) will be
- used.
+ If not provided, the default Google model (NMT) will be used
glossary_config (google.cloud.translate_v3.types.TranslateTextGlossaryConfig):
Optional. Glossary to be applied. The glossary must be
within the same region (have the same location-id) as the
@@ -642,7 +641,7 @@
The format of translations_file (for target language code
'trg') is:
- ``gs://translation_test/a_b_c\_'trg'_translations.[extension]``
+ ``gs://translation_test/a_b_c_'trg'_translations.[extension]``
If the input file extension is tsv, the output has the
following columns: Column 1: ID of the request provided in
@@ -659,10 +658,10 @@
directly written to the output file. If glossary is
requested, a separate glossary_translations_file has format
of
- gs://translation_test/a_b_c\_'trg'_glossary_translations.[extension]
+ ``gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]``
The format of errors file (for target language code 'trg')
- is: gs://translation_test/a_b_c\_'trg'_errors.[extension]
+ is: ``gs://translation_test/a_b_c_'trg'_errors.[extension]``
If the input file extension is tsv, errors_file contains the
following: Column 1: ID of the request provided in the
@@ -675,7 +674,7 @@
If the input file extension is txt or html,
glossary_error_file will be generated that contains error
details. glossary_error_file has format of
- gs://translation_test/a_b_c\_'trg'_glossary_errors.[extension]
+ ``gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]``
This field is a member of `oneof`_ ``destination``.
"""
@@ -765,10 +764,10 @@
For a DocumentInputConfig.gcs_uri provided document, the
output file will have a name according to its URI. For
- example: an input file with URI: "gs://a/b/c.[extension]"
+ example: an input file with URI: ``gs://a/b/c.[extension]``
stored in a gcs_destination bucket with name "my_bucket"
will have an output URI:
- "gs://my_bucket/a_b_c\_[trg]_translations.[ext]", where
+ ``gs://my_bucket/a_b_c_[trg]_translations.[ext]``, where
- [trg] corresponds to the translated file's language code,
- [ext] corresponds to the translated file's extension
@@ -776,7 +775,7 @@
If the document was directly provided through the request,
then the output document will have the format:
- "gs://my_bucket/translated_document_[trg]_translations.[ext],
+ ``gs://my_bucket/translated_document_[trg]_translations.[ext]``,
where
- [trg] corresponds to the translated file's language code,
@@ -788,7 +787,7 @@
but have ``glossary_translations`` instead of
``translations``. For the previous example, its glossary URI
would be:
- "gs://my_bucket/a_b_c\_[trg]_glossary_translations.[ext]".
+ ``gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]``.
Thus the max number of output files will be 2 (Translated
document, Glossary translated document).
@@ -904,14 +903,19 @@
should follow rules in
https://cloud.google.com/translate/attribution#attribution_and_logos
is_translate_native_pdf_only (bool):
- Optional. If true, the page limit of online
- native pdf translation is 300 and only native
- pdf pages will be translated.
+ Optional. is_translate_native_pdf_only field for external
+ customers. If true, the page limit of online native pdf
+ translation is 300 and only native pdf pages will be
+ translated.
enable_shadow_removal_native_pdf (bool):
- Optional. If true, use the text removal to remove the shadow
- text on background image for native pdf translation. Shadow
- removal feature can only be enabled when
- is_translate_native_pdf_only is false
+ Optional. If true, use the text removal server to remove the
+ shadow text on background image for native pdf translation.
+ Shadow removal feature can only be enabled when
+ is_translate_native_pdf_only: false && pdf_native_only:
+ false
+ enable_rotation_correction (bool):
+ Optional. If true, enable auto rotation
+ correction in DVS.
"""
parent: str = proto.Field(
@@ -962,6 +966,10 @@
proto.BOOL,
number=12,
)
+ enable_rotation_correction: bool = proto.Field(
+ proto.BOOL,
+ number=13,
+ )
class DocumentTranslation(proto.Message):
@@ -1807,6 +1815,15 @@
``Machine Translated by Google``. Customized attribution
should follow rules in
https://cloud.google.com/translate/attribution#attribution_and_logos
+ enable_shadow_removal_native_pdf (bool):
+ Optional. If true, use the text removal server to remove the
+ shadow text on background image for native pdf translation.
+ Shadow removal feature can only be enabled when
+ is_translate_native_pdf_only: false && pdf_native_only:
+ false
+ enable_rotation_correction (bool):
+ Optional. If true, enable auto rotation
+ correction in DVS.
"""
parent: str = proto.Field(
@@ -1851,6 +1868,14 @@
proto.STRING,
number=10,
)
+ enable_shadow_removal_native_pdf: bool = proto.Field(
+ proto.BOOL,
+ number=11,
+ )
+ enable_rotation_correction: bool = proto.Field(
+ proto.BOOL,
+ number=12,
+ )
class BatchDocumentInputConfig(proto.Message):
@@ -1939,17 +1964,17 @@
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]
+ ``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
+ ``gs://translation_test/a_b_c_[trg]_errors.txt``
``glossary_error_output``:
- gs://translation_test/a_b_c*\ [trg]_glossary_translation.txt
+ ``gs://translation_test/a_b_c_[trg]_glossary_translation.txt``.
The error output is a txt file containing error details.
This field is a member of `oneof`_ ``destination``.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/gapic_version.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/gapic_version.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/gapic_version.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/gapic_version.py 2023-08-08 16:59:37.000000000 +0200
@@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-__version__ = "3.11.2" # {x-release-please-version}
+__version__ = "3.12.0" # {x-release-please-version}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/async_client.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/async_client.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/async_client.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/async_client.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -824,12 +824,12 @@
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation_async.AsyncOperation:
- r"""Translates a large volume of documents in
- asynchronous batch mode. This function provides
- real-time output as the inputs are being processed. If
- caller cancels a request, the partial results (for an
- input file, it's all or nothing) may still be available
- on the specified output location.
+ r"""Translates a large volume of document in asynchronous
+ batch mode. This function provides real-time output as
+ the inputs are being processed. If caller cancels a
+ request, the partial results (for an input file, it's
+ all or nothing) may still be available on the specified
+ output location.
This call returns immediately and you can use
google.longrunning.Operation.name to poll the status of
the call.
@@ -894,12 +894,10 @@
on the ``request`` instance; if ``request`` is provided, this
should not be set.
source_language_code (:class:`str`):
- 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).
+ 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`__.
This corresponds to the ``source_language_code`` field
on the ``request`` instance; if ``request`` is provided, this
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/client.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/client.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/client.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/client.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -1045,12 +1045,12 @@
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> operation.Operation:
- r"""Translates a large volume of documents in
- asynchronous batch mode. This function provides
- real-time output as the inputs are being processed. If
- caller cancels a request, the partial results (for an
- input file, it's all or nothing) may still be available
- on the specified output location.
+ r"""Translates a large volume of document in asynchronous
+ batch mode. This function provides real-time output as
+ the inputs are being processed. If caller cancels a
+ request, the partial results (for an input file, it's
+ all or nothing) may still be available on the specified
+ output location.
This call returns immediately and you can use
google.longrunning.Operation.name to poll the status of
the call.
@@ -1115,12 +1115,10 @@
on the ``request`` instance; if ``request`` is provided, this
should not be set.
source_language_code (str):
- 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).
+ 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`__.
This corresponds to the ``source_language_code`` field
on the ``request`` instance; if ``request`` is provided, this
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/pagers.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/pagers.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/pagers.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/pagers.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/transports/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/transports/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/transports/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/transports/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/transports/base.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/transports/base.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/transports/base.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/transports/base.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/transports/grpc.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/transports/grpc.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/transports/grpc.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/transports/grpc.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -407,12 +407,12 @@
]:
r"""Return a callable for the batch translate document method over gRPC.
- Translates a large volume of documents in
- asynchronous batch mode. This function provides
- real-time output as the inputs are being processed. If
- caller cancels a request, the partial results (for an
- input file, it's all or nothing) may still be available
- on the specified output location.
+ Translates a large volume of document in asynchronous
+ batch mode. This function provides real-time output as
+ the inputs are being processed. If caller cancels a
+ request, the partial results (for an input file, it's
+ all or nothing) may still be available on the specified
+ output location.
This call returns immediately and you can use
google.longrunning.Operation.name to poll the status of
the call.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/transports/grpc_asyncio.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/transports/grpc_asyncio.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/transports/grpc_asyncio.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/transports/grpc_asyncio.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -414,12 +414,12 @@
]:
r"""Return a callable for the batch translate document method over gRPC.
- Translates a large volume of documents in
- asynchronous batch mode. This function provides
- real-time output as the inputs are being processed. If
- caller cancels a request, the partial results (for an
- input file, it's all or nothing) may still be available
- on the specified output location.
+ Translates a large volume of document in asynchronous
+ batch mode. This function provides real-time output as
+ the inputs are being processed. If caller cancels a
+ request, the partial results (for an input file, it's
+ all or nothing) may still be available on the specified
+ output location.
This call returns immediately and you can use
google.longrunning.Operation.name to poll the status of
the call.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/transports/rest.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/transports/rest.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/services/translation_service/transports/rest.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/services/translation_service/transports/rest.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/types/__init__.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/types/__init__.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/types/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/types/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/types/translation_service.py new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/types/translation_service.py
--- old/google-cloud-translate-3.11.2/google/cloud/translate_v3beta1/types/translation_service.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google/cloud/translate_v3beta1/types/translation_service.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -630,11 +630,11 @@
Since index.csv will be keeping updated during the process,
please make sure there is no custom retention policy applied
on the output bucket that may avoid file updating.
- (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
The format of translations_file (for target language code
'trg') is:
- ``gs://translation_test/a_b_c\_'trg'_translations.[extension]``
+ ``gs://translation_test/a_b_c_'trg'_translations.[extension]``
If the input file extension is tsv, the output has the
following columns: Column 1: ID of the request provided in
@@ -651,10 +651,10 @@
directly written to the output file. If glossary is
requested, a separate glossary_translations_file has format
of
- gs://translation_test/a_b_c\_'trg'_glossary_translations.[extension]
+ ``gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]``
The format of errors file (for target language code 'trg')
- is: gs://translation_test/a_b_c\_'trg'_errors.[extension]
+ is: ``gs://translation_test/a_b_c_'trg'_errors.[extension]``
If the input file extension is tsv, errors_file contains the
following: Column 1: ID of the request provided in the
@@ -667,7 +667,7 @@
If the input file extension is txt or html,
glossary_error_file will be generated that contains error
details. glossary_error_file has format of
- gs://translation_test/a_b_c\_'trg'_glossary_errors.[extension]
+ ``gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]``
This field is a member of `oneof`_ ``destination``.
"""
@@ -757,10 +757,10 @@
For a DocumentInputConfig.gcs_uri provided document, the
output file will have a name according to its URI. For
- example: an input file with URI: "gs://a/b/c.[extension]"
+ example: an input file with URI: ``gs://a/b/c.[extension]``
stored in a gcs_destination bucket with name "my_bucket"
will have an output URI:
- "gs://my_bucket/a_b_c\_[trg]_translations.[ext]", where
+ ``gs://my_bucket/a_b_c_[trg]_translations.[ext]``, where
- [trg] corresponds to the translated file's language code,
- [ext] corresponds to the translated file's extension
@@ -768,7 +768,7 @@
If the document was directly provided through the request,
then the output document will have the format:
- "gs://my_bucket/translated_document_[trg]_translations.[ext],
+ ``gs://my_bucket/translated_document_[trg]_translations.[ext]``,
where
- [trg] corresponds to the translated file's language code,
@@ -780,7 +780,7 @@
but have ``glossary_translations`` instead of
``translations``. For the previous example, its glossary URI
would be:
- "gs://my_bucket/a_b_c\_[trg]_glossary_translations.[ext]".
+ ``gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]``.
Thus the max number of output files will be 2 (Translated
document, Glossary translated document).
@@ -887,6 +887,26 @@
See
https://cloud.google.com/translate/docs/advanced/labels
for more information.
+ customized_attribution (str):
+ Optional. This flag is to support user customized
+ attribution. If not provided, the default is
+ ``Machine Translated by Google``. Customized attribution
+ should follow rules in
+ https://cloud.google.com/translate/attribution#attribution_and_logos
+ is_translate_native_pdf_only (bool):
+ Optional. is_translate_native_pdf_only field for external
+ customers. If true, the page limit of online native pdf
+ translation is 300 and only native pdf pages will be
+ translated.
+ enable_shadow_removal_native_pdf (bool):
+ Optional. If true, use the text removal server to remove the
+ shadow text on background image for native pdf translation.
+ Shadow removal feature can only be enabled when
+ is_translate_native_pdf_only: false && pdf_native_only:
+ false
+ enable_rotation_correction (bool):
+ Optional. If true, enable auto rotation
+ correction in DVS.
"""
parent: str = proto.Field(
@@ -925,6 +945,22 @@
proto.STRING,
number=8,
)
+ customized_attribution: str = proto.Field(
+ proto.STRING,
+ number=10,
+ )
+ is_translate_native_pdf_only: bool = proto.Field(
+ proto.BOOL,
+ number=11,
+ )
+ enable_shadow_removal_native_pdf: bool = proto.Field(
+ proto.BOOL,
+ number=12,
+ )
+ enable_rotation_correction: bool = proto.Field(
+ proto.BOOL,
+ number=13,
+ )
class DocumentTranslation(proto.Message):
@@ -1266,10 +1302,9 @@
For equivalent term sets glossaries:
- CSV (``.csv``): Multi-column CSV file defining equivalent
- glossary terms in multiple languages. The format is
- defined for Google Translation Toolkit and documented in
- `Use a
- glossary https://support.google.com/translatortoolkit/answer/6306379?hl=en`__.
+ glossary terms in multiple languages. See documentation
+ for more information -
+ `glossaries https://cloud.google.com/translate/docs/advanced/glossary`__.
This field is a member of `oneof`_ ``source``.
"""
@@ -1710,11 +1745,10 @@
region (have the same location-id) can be used, otherwise an
INVALID_ARGUMENT (400) error is returned.
source_language_code (str):
- 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).
+ 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`__.
target_language_codes (MutableSequence[str]):
Required. The BCP-47 language code to use for
translation of the input document. Specify up to
@@ -1761,6 +1795,21 @@
If nothing specified, output files will be in the same
format as the original file.
+ customized_attribution (str):
+ Optional. This flag is to support user customized
+ attribution. If not provided, the default is
+ ``Machine Translated by Google``. Customized attribution
+ should follow rules in
+ https://cloud.google.com/translate/attribution#attribution_and_logos
+ enable_shadow_removal_native_pdf (bool):
+ Optional. If true, use the text removal server to remove the
+ shadow text on background image for native pdf translation.
+ Shadow removal feature can only be enabled when
+ is_translate_native_pdf_only: false && pdf_native_only:
+ false
+ enable_rotation_correction (bool):
+ Optional. If true, enable auto rotation
+ correction in DVS.
"""
parent: str = proto.Field(
@@ -1801,6 +1850,18 @@
proto.STRING,
number=8,
)
+ customized_attribution: str = proto.Field(
+ proto.STRING,
+ number=10,
+ )
+ enable_shadow_removal_native_pdf: bool = proto.Field(
+ proto.BOOL,
+ number=11,
+ )
+ enable_rotation_correction: bool = proto.Field(
+ proto.BOOL,
+ number=12,
+ )
class BatchDocumentInputConfig(proto.Message):
@@ -1885,21 +1946,21 @@
Since index.csv will be keeping updated during the process,
please make sure there is no custom retention policy applied
on the output bucket that may avoid file updating.
- (https://cloud.google.com/storage/docs/bucket-lock?hl=en#retention-policy)
+ (https://cloud.google.com/storage/docs/bucket-lock#retention-policy)
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]
+ ``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
+ ``gs://translation_test/a_b_c_[trg]_errors.txt``
``glossary_error_output``:
- gs://translation_test/a_b_c*\ [trg]_glossary_translation.txt
+ ``gs://translation_test/a_b_c_[trg]_glossary_translation.txt``
The error output is a txt file containing error details.
This field is a member of `oneof`_ ``destination``.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/google_cloud_translate.egg-info/PKG-INFO new/google-cloud-translate-3.12.0/google_cloud_translate.egg-info/PKG-INFO
--- old/google-cloud-translate-3.11.2/google_cloud_translate.egg-info/PKG-INFO 2023-07-05 17:21:21.000000000 +0200
+++ new/google-cloud-translate-3.12.0/google_cloud_translate.egg-info/PKG-INFO 2023-08-08 17:02:17.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: google-cloud-translate
-Version: 3.11.2
+Version: 3.12.0
Summary: Google Cloud Translate API client library
Home-page: https://github.com/googleapis/python-translate
Author: Google LLC
@@ -60,21 +60,24 @@
Installation
~~~~~~~~~~~~
-Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to
-create isolated Python environments. The basic problem it addresses is one of
-dependencies and versions, and indirectly permissions.
+Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
+creates isolated Python environments. These isolated environments can have separate
+versions of Python packages, which allows you to isolate one project's dependencies
+from the dependencies of other projects.
-With `virtualenv`_, it's possible to install this library without needing system
+With `venv`_, it's possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.
-.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
+.. _`venv`: https://docs.python.org/3/library/venv.html
Code samples and snippets
~~~~~~~~~~~~~~~~~~~~~~~~~
-Code samples and snippets live in the `samples/` folder.
+Code samples and snippets live in the `samples/`_ folder.
+
+.. _samples/: https://github.com/googleapis/python-translate/tree/main/samples
Supported Python Versions
@@ -101,10 +104,9 @@
.. code-block:: console
- pip install virtualenv
- virtualenv <your-env>
+ python3 -m venv <your-env>
source <your-env>/bin/activate
- <your-env>/bin/pip install google-cloud-translate
+ pip install google-cloud-translate
Windows
@@ -112,10 +114,9 @@
.. code-block:: console
- pip install virtualenv
- virtualenv <your-env>
- <your-env>\Scripts\activate
- <your-env>\Scripts\pip.exe install google-cloud-translate
+ py -m venv <your-env>
+ .\<your-env>\Scripts\activate
+ pip install google-cloud-translate
Next Steps
~~~~~~~~~~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/tests/__init__.py new/google-cloud-translate-3.12.0/tests/__init__.py
--- old/google-cloud-translate-3.11.2/tests/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/tests/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/tests/unit/__init__.py new/google-cloud-translate-3.12.0/tests/unit/__init__.py
--- old/google-cloud-translate-3.11.2/tests/unit/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/tests/unit/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/tests/unit/gapic/__init__.py new/google-cloud-translate-3.12.0/tests/unit/gapic/__init__.py
--- old/google-cloud-translate-3.11.2/tests/unit/gapic/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/tests/unit/gapic/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/tests/unit/gapic/translate_v3/__init__.py new/google-cloud-translate-3.12.0/tests/unit/gapic/translate_v3/__init__.py
--- old/google-cloud-translate-3.11.2/tests/unit/gapic/translate_v3/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/tests/unit/gapic/translate_v3/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/tests/unit/gapic/translate_v3/test_translation_service.py new/google-cloud-translate-3.12.0/tests/unit/gapic/translate_v3/test_translation_service.py
--- old/google-cloud-translate-3.11.2/tests/unit/gapic/translate_v3/test_translation_service.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/tests/unit/gapic/translate_v3/test_translation_service.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/tests/unit/gapic/translate_v3beta1/__init__.py new/google-cloud-translate-3.12.0/tests/unit/gapic/translate_v3beta1/__init__.py
--- old/google-cloud-translate-3.11.2/tests/unit/gapic/translate_v3beta1/__init__.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/tests/unit/gapic/translate_v3beta1/__init__.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-translate-3.11.2/tests/unit/gapic/translate_v3beta1/test_translation_service.py new/google-cloud-translate-3.12.0/tests/unit/gapic/translate_v3beta1/test_translation_service.py
--- old/google-cloud-translate-3.11.2/tests/unit/gapic/translate_v3beta1/test_translation_service.py 2023-07-05 17:18:49.000000000 +0200
+++ new/google-cloud-translate-3.12.0/tests/unit/gapic/translate_v3beta1/test_translation_service.py 2023-08-08 16:59:37.000000000 +0200
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Copyright 2022 Google LLC
+# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.