From 85adda555f1e1fc25aba5fc86712262237bbd050 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 Jul 2023 15:13:50 -0400 Subject: [PATCH] chore: Update gapic-generator-python to v1.11.3 (#527) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update gapic-generator-python to v1.11.3 PiperOrigin-RevId: 546899192 Source-Link: https://github.com/googleapis/googleapis/commit/e6b16918b98fe1a35f725b56537354f22b6cdc48 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0b3917c421cbda7fcb67092e16c33f3ea46f4bc7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGIzOTE3YzQyMWNiZGE3ZmNiNjcwOTJlMTZjMzNmM2VhNDZmNGJjNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../speech_v1/services/speech/async_client.py | 8 +++++--- google/cloud/speech_v1/services/speech/client.py | 8 +++++--- .../speech_v1/services/speech/transports/grpc.py | 8 +++++--- .../services/speech/transports/grpc_asyncio.py | 8 +++++--- .../services/speech/async_client.py | 8 +++++--- .../speech_v1p1beta1/services/speech/client.py | 8 +++++--- .../services/speech/transports/grpc.py | 8 +++++--- .../services/speech/transports/grpc_asyncio.py | 8 +++++--- .../speech_v2/services/speech/async_client.py | 15 +++++++++------ google/cloud/speech_v2/services/speech/client.py | 15 +++++++++------ .../speech_v2/services/speech/transports/grpc.py | 15 +++++++++------ .../services/speech/transports/grpc_asyncio.py | 15 +++++++++------ 12 files changed, 76 insertions(+), 48 deletions(-) diff --git a/google/cloud/speech_v1/services/speech/async_client.py b/google/cloud/speech_v1/services/speech/async_client.py index fd8f0155..59624771 100644 --- a/google/cloud/speech_v1/services/speech/async_client.py +++ b/google/cloud/speech_v1/services/speech/async_client.py @@ -223,7 +223,8 @@ async def recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> cloud_speech.RecognizeResponse: r"""Performs synchronous speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. .. code-block:: python @@ -486,8 +487,9 @@ def streaming_recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> Awaitable[AsyncIterable[cloud_speech.StreamingRecognizeResponse]]: r"""Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). .. code-block:: python diff --git a/google/cloud/speech_v1/services/speech/client.py b/google/cloud/speech_v1/services/speech/client.py index 25399d12..8a26e951 100644 --- a/google/cloud/speech_v1/services/speech/client.py +++ b/google/cloud/speech_v1/services/speech/client.py @@ -479,7 +479,8 @@ def recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> cloud_speech.RecognizeResponse: r"""Performs synchronous speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. .. code-block:: python @@ -730,8 +731,9 @@ def streaming_recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> Iterable[cloud_speech.StreamingRecognizeResponse]: r"""Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). .. code-block:: python diff --git a/google/cloud/speech_v1/services/speech/transports/grpc.py b/google/cloud/speech_v1/services/speech/transports/grpc.py index 4ace4eb4..d4a1ea08 100644 --- a/google/cloud/speech_v1/services/speech/transports/grpc.py +++ b/google/cloud/speech_v1/services/speech/transports/grpc.py @@ -254,7 +254,8 @@ def recognize( r"""Return a callable for the recognize method over gRPC. Performs synchronous speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. Returns: Callable[[~.RecognizeRequest], @@ -315,8 +316,9 @@ def streaming_recognize( r"""Return a callable for the streaming recognize method over gRPC. Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). Returns: Callable[[~.StreamingRecognizeRequest], diff --git a/google/cloud/speech_v1/services/speech/transports/grpc_asyncio.py b/google/cloud/speech_v1/services/speech/transports/grpc_asyncio.py index e5bbd530..36b027b7 100644 --- a/google/cloud/speech_v1/services/speech/transports/grpc_asyncio.py +++ b/google/cloud/speech_v1/services/speech/transports/grpc_asyncio.py @@ -261,7 +261,8 @@ def recognize( r"""Return a callable for the recognize method over gRPC. Performs synchronous speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. Returns: Callable[[~.RecognizeRequest], @@ -324,8 +325,9 @@ def streaming_recognize( r"""Return a callable for the streaming recognize method over gRPC. Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). Returns: Callable[[~.StreamingRecognizeRequest], diff --git a/google/cloud/speech_v1p1beta1/services/speech/async_client.py b/google/cloud/speech_v1p1beta1/services/speech/async_client.py index 25afa6d0..005b6a0b 100644 --- a/google/cloud/speech_v1p1beta1/services/speech/async_client.py +++ b/google/cloud/speech_v1p1beta1/services/speech/async_client.py @@ -223,7 +223,8 @@ async def recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> cloud_speech.RecognizeResponse: r"""Performs synchronous speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. .. code-block:: python @@ -486,8 +487,9 @@ def streaming_recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> Awaitable[AsyncIterable[cloud_speech.StreamingRecognizeResponse]]: r"""Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). .. code-block:: python diff --git a/google/cloud/speech_v1p1beta1/services/speech/client.py b/google/cloud/speech_v1p1beta1/services/speech/client.py index 551eb380..9e27d044 100644 --- a/google/cloud/speech_v1p1beta1/services/speech/client.py +++ b/google/cloud/speech_v1p1beta1/services/speech/client.py @@ -479,7 +479,8 @@ def recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> cloud_speech.RecognizeResponse: r"""Performs synchronous speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. .. code-block:: python @@ -730,8 +731,9 @@ def streaming_recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> Iterable[cloud_speech.StreamingRecognizeResponse]: r"""Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). .. code-block:: python diff --git a/google/cloud/speech_v1p1beta1/services/speech/transports/grpc.py b/google/cloud/speech_v1p1beta1/services/speech/transports/grpc.py index 560d3ae2..811f096a 100644 --- a/google/cloud/speech_v1p1beta1/services/speech/transports/grpc.py +++ b/google/cloud/speech_v1p1beta1/services/speech/transports/grpc.py @@ -254,7 +254,8 @@ def recognize( r"""Return a callable for the recognize method over gRPC. Performs synchronous speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. Returns: Callable[[~.RecognizeRequest], @@ -315,8 +316,9 @@ def streaming_recognize( r"""Return a callable for the streaming recognize method over gRPC. Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). Returns: Callable[[~.StreamingRecognizeRequest], diff --git a/google/cloud/speech_v1p1beta1/services/speech/transports/grpc_asyncio.py b/google/cloud/speech_v1p1beta1/services/speech/transports/grpc_asyncio.py index f5bdd65b..40e9b47a 100644 --- a/google/cloud/speech_v1p1beta1/services/speech/transports/grpc_asyncio.py +++ b/google/cloud/speech_v1p1beta1/services/speech/transports/grpc_asyncio.py @@ -261,7 +261,8 @@ def recognize( r"""Return a callable for the recognize method over gRPC. Performs synchronous speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. Returns: Callable[[~.RecognizeRequest], @@ -324,8 +325,9 @@ def streaming_recognize( r"""Return a callable for the streaming recognize method over gRPC. Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). Returns: Callable[[~.StreamingRecognizeRequest], diff --git a/google/cloud/speech_v2/services/speech/async_client.py b/google/cloud/speech_v2/services/speech/async_client.py index 4c515149..b0342b86 100644 --- a/google/cloud/speech_v2/services/speech/async_client.py +++ b/google/cloud/speech_v2/services/speech/async_client.py @@ -978,7 +978,8 @@ async def recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> cloud_speech.RecognizeResponse: r"""Performs synchronous Speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. .. code-block:: python @@ -1159,8 +1160,9 @@ def streaming_recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> Awaitable[AsyncIterable[cloud_speech.StreamingRecognizeResponse]]: r"""Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). .. code-block:: python @@ -1328,9 +1330,10 @@ async def batch_recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Performs batch asynchronous speech recognition: send - a request with N audio files and receive a long running - operation that can be polled to see when the - transcriptions are finished. + a request with N + audio files and receive a long running operation that + can be polled to see when the transcriptions are + finished. .. code-block:: python diff --git a/google/cloud/speech_v2/services/speech/client.py b/google/cloud/speech_v2/services/speech/client.py index dce52695..18e5d350 100644 --- a/google/cloud/speech_v2/services/speech/client.py +++ b/google/cloud/speech_v2/services/speech/client.py @@ -1317,7 +1317,8 @@ def recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> cloud_speech.RecognizeResponse: r"""Performs synchronous Speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. .. code-block:: python @@ -1496,8 +1497,9 @@ def streaming_recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> Iterable[cloud_speech.StreamingRecognizeResponse]: r"""Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). .. code-block:: python @@ -1661,9 +1663,10 @@ def batch_recognize( metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Performs batch asynchronous speech recognition: send - a request with N audio files and receive a long running - operation that can be polled to see when the - transcriptions are finished. + a request with N + audio files and receive a long running operation that + can be polled to see when the transcriptions are + finished. .. code-block:: python diff --git a/google/cloud/speech_v2/services/speech/transports/grpc.py b/google/cloud/speech_v2/services/speech/transports/grpc.py index ea1e89ef..4bbd6b4b 100644 --- a/google/cloud/speech_v2/services/speech/transports/grpc.py +++ b/google/cloud/speech_v2/services/speech/transports/grpc.py @@ -416,7 +416,8 @@ def recognize( r"""Return a callable for the recognize method over gRPC. Performs synchronous Speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. Returns: Callable[[~.RecognizeRequest], @@ -446,8 +447,9 @@ def streaming_recognize( r"""Return a callable for the streaming recognize method over gRPC. Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). Returns: Callable[[~.StreamingRecognizeRequest], @@ -474,9 +476,10 @@ def batch_recognize( r"""Return a callable for the batch recognize method over gRPC. Performs batch asynchronous speech recognition: send - a request with N audio files and receive a long running - operation that can be polled to see when the - transcriptions are finished. + a request with N + audio files and receive a long running operation that + can be polled to see when the transcriptions are + finished. Returns: Callable[[~.BatchRecognizeRequest], diff --git a/google/cloud/speech_v2/services/speech/transports/grpc_asyncio.py b/google/cloud/speech_v2/services/speech/transports/grpc_asyncio.py index 15aec239..46ec6bde 100644 --- a/google/cloud/speech_v2/services/speech/transports/grpc_asyncio.py +++ b/google/cloud/speech_v2/services/speech/transports/grpc_asyncio.py @@ -434,7 +434,8 @@ def recognize( r"""Return a callable for the recognize method over gRPC. Performs synchronous Speech recognition: receive - results after all audio has been sent and processed. + results after all audio + has been sent and processed. Returns: Callable[[~.RecognizeRequest], @@ -464,8 +465,9 @@ def streaming_recognize( r"""Return a callable for the streaming recognize method over gRPC. Performs bidirectional streaming speech recognition: - receive results while sending audio. This method is only - available via the gRPC API (not REST). + receive results while + sending audio. This method is only available via the + gRPC API (not REST). Returns: Callable[[~.StreamingRecognizeRequest], @@ -494,9 +496,10 @@ def batch_recognize( r"""Return a callable for the batch recognize method over gRPC. Performs batch asynchronous speech recognition: send - a request with N audio files and receive a long running - operation that can be polled to see when the - transcriptions are finished. + a request with N + audio files and receive a long running operation that + can be polled to see when the transcriptions are + finished. Returns: Callable[[~.BatchRecognizeRequest],