diff --git a/google/cloud/speech_v1/services/adaptation/async_client.py b/google/cloud/speech_v1/services/adaptation/async_client.py index 9aaf0332..905c4307 100644 --- a/google/cloud/speech_v1/services/adaptation/async_client.py +++ b/google/cloud/speech_v1/services/adaptation/async_client.py @@ -45,7 +45,7 @@ from google.cloud.speech_v1.services.adaptation import pagers from google.cloud.speech_v1.types import cloud_speech_adaptation from google.cloud.speech_v1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from .transports.base import AdaptationTransport, DEFAULT_CLIENT_INFO from .transports.grpc_asyncio import AdaptationGrpcAsyncIOTransport @@ -288,6 +288,7 @@ async def sample_create_phrase_set(): phrase set, which will become the final component of the phrase set's resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or @@ -889,6 +890,7 @@ async def sample_create_custom_class(): custom class, which will become the final component of the custom class' resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or diff --git a/google/cloud/speech_v1/services/adaptation/client.py b/google/cloud/speech_v1/services/adaptation/client.py index bfcfe020..297fbf0a 100644 --- a/google/cloud/speech_v1/services/adaptation/client.py +++ b/google/cloud/speech_v1/services/adaptation/client.py @@ -49,7 +49,7 @@ from google.cloud.speech_v1.services.adaptation import pagers from google.cloud.speech_v1.types import cloud_speech_adaptation from google.cloud.speech_v1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from .transports.base import AdaptationTransport, DEFAULT_CLIENT_INFO from .transports.grpc import AdaptationGrpcTransport @@ -541,6 +541,7 @@ def sample_create_phrase_set(): phrase set, which will become the final component of the phrase set's resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or @@ -1142,6 +1143,7 @@ def sample_create_custom_class(): custom class, which will become the final component of the custom class' resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or diff --git a/google/cloud/speech_v1/services/adaptation/transports/base.py b/google/cloud/speech_v1/services/adaptation/transports/base.py index 9f43fe97..3ad6334e 100644 --- a/google/cloud/speech_v1/services/adaptation/transports/base.py +++ b/google/cloud/speech_v1/services/adaptation/transports/base.py @@ -28,7 +28,7 @@ from google.cloud.speech_v1.types import cloud_speech_adaptation from google.cloud.speech_v1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( diff --git a/google/cloud/speech_v1/services/adaptation/transports/grpc.py b/google/cloud/speech_v1/services/adaptation/transports/grpc.py index 9c440a02..6d9f2371 100644 --- a/google/cloud/speech_v1/services/adaptation/transports/grpc.py +++ b/google/cloud/speech_v1/services/adaptation/transports/grpc.py @@ -26,7 +26,7 @@ from google.cloud.speech_v1.types import cloud_speech_adaptation from google.cloud.speech_v1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from .base import AdaptationTransport, DEFAULT_CLIENT_INFO diff --git a/google/cloud/speech_v1/services/adaptation/transports/grpc_asyncio.py b/google/cloud/speech_v1/services/adaptation/transports/grpc_asyncio.py index d69ecda0..bb598cf2 100644 --- a/google/cloud/speech_v1/services/adaptation/transports/grpc_asyncio.py +++ b/google/cloud/speech_v1/services/adaptation/transports/grpc_asyncio.py @@ -26,7 +26,7 @@ from google.cloud.speech_v1.types import cloud_speech_adaptation from google.cloud.speech_v1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from .base import AdaptationTransport, DEFAULT_CLIENT_INFO from .grpc import AdaptationGrpcTransport diff --git a/google/cloud/speech_v1/services/adaptation/transports/rest.py b/google/cloud/speech_v1/services/adaptation/transports/rest.py index 4a287e7c..f69c48ff 100644 --- a/google/cloud/speech_v1/services/adaptation/transports/rest.py +++ b/google/cloud/speech_v1/services/adaptation/transports/rest.py @@ -27,7 +27,6 @@ from google.api_core import gapic_v1 from google.protobuf import json_format -from google.longrunning import operations_pb2 from requests import __version__ as requests_version import dataclasses import re @@ -43,6 +42,7 @@ from google.cloud.speech_v1.types import cloud_speech_adaptation from google.cloud.speech_v1.types import resource from google.protobuf import empty_pb2 # type: ignore +from google.longrunning import operations_pb2 # type: ignore from .base import AdaptationTransport, DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO diff --git a/google/cloud/speech_v1/services/speech/async_client.py b/google/cloud/speech_v1/services/speech/async_client.py index 59624771..4489c247 100644 --- a/google/cloud/speech_v1/services/speech/async_client.py +++ b/google/cloud/speech_v1/services/speech/async_client.py @@ -48,7 +48,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.speech_v1.types import cloud_speech -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.rpc import status_pb2 # type: ignore from .transports.base import SpeechTransport, DEFAULT_CLIENT_INFO @@ -223,8 +223,7 @@ 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 @@ -487,9 +486,8 @@ 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 8a26e951..b9c59994 100644 --- a/google/cloud/speech_v1/services/speech/client.py +++ b/google/cloud/speech_v1/services/speech/client.py @@ -51,7 +51,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.speech_v1.types import cloud_speech -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.rpc import status_pb2 # type: ignore from .transports.base import SpeechTransport, DEFAULT_CLIENT_INFO @@ -479,8 +479,7 @@ 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 @@ -731,9 +730,8 @@ 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/base.py b/google/cloud/speech_v1/services/speech/transports/base.py index 520b9b88..0be10b03 100644 --- a/google/cloud/speech_v1/services/speech/transports/base.py +++ b/google/cloud/speech_v1/services/speech/transports/base.py @@ -28,7 +28,6 @@ from google.oauth2 import service_account # type: ignore from google.cloud.speech_v1.types import cloud_speech -from google.longrunning import operations_pb2 from google.longrunning import operations_pb2 # type: ignore DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( diff --git a/google/cloud/speech_v1/services/speech/transports/grpc.py b/google/cloud/speech_v1/services/speech/transports/grpc.py index d4a1ea08..d7cd706e 100644 --- a/google/cloud/speech_v1/services/speech/transports/grpc.py +++ b/google/cloud/speech_v1/services/speech/transports/grpc.py @@ -26,7 +26,6 @@ import grpc # type: ignore from google.cloud.speech_v1.types import cloud_speech -from google.longrunning import operations_pb2 from google.longrunning import operations_pb2 # type: ignore from .base import SpeechTransport, DEFAULT_CLIENT_INFO @@ -254,8 +253,7 @@ 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], @@ -316,9 +314,8 @@ 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 36b027b7..99339b3b 100644 --- a/google/cloud/speech_v1/services/speech/transports/grpc_asyncio.py +++ b/google/cloud/speech_v1/services/speech/transports/grpc_asyncio.py @@ -26,7 +26,6 @@ from grpc.experimental import aio # type: ignore from google.cloud.speech_v1.types import cloud_speech -from google.longrunning import operations_pb2 from google.longrunning import operations_pb2 # type: ignore from .base import SpeechTransport, DEFAULT_CLIENT_INFO from .grpc import SpeechGrpcTransport @@ -261,8 +260,7 @@ 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], @@ -325,9 +323,8 @@ 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/rest.py b/google/cloud/speech_v1/services/speech/transports/rest.py index a459c60b..bfeb5c7c 100644 --- a/google/cloud/speech_v1/services/speech/transports/rest.py +++ b/google/cloud/speech_v1/services/speech/transports/rest.py @@ -28,7 +28,6 @@ from google.protobuf import json_format from google.api_core import operations_v1 -from google.longrunning import operations_pb2 from requests import __version__ as requests_version import dataclasses import re diff --git a/google/cloud/speech_v1/types/cloud_speech_adaptation.py b/google/cloud/speech_v1/types/cloud_speech_adaptation.py index 96433abc..b93f13e6 100644 --- a/google/cloud/speech_v1/types/cloud_speech_adaptation.py +++ b/google/cloud/speech_v1/types/cloud_speech_adaptation.py @@ -62,6 +62,7 @@ class CreatePhraseSetRequest(proto.Message): Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 @@ -250,6 +251,7 @@ class CreateCustomClassRequest(proto.Message): Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 diff --git a/google/cloud/speech_v1p1beta1/services/adaptation/async_client.py b/google/cloud/speech_v1p1beta1/services/adaptation/async_client.py index d3ba7b98..5fcc7d26 100644 --- a/google/cloud/speech_v1p1beta1/services/adaptation/async_client.py +++ b/google/cloud/speech_v1p1beta1/services/adaptation/async_client.py @@ -45,7 +45,7 @@ from google.cloud.speech_v1p1beta1.services.adaptation import pagers from google.cloud.speech_v1p1beta1.types import cloud_speech_adaptation from google.cloud.speech_v1p1beta1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from .transports.base import AdaptationTransport, DEFAULT_CLIENT_INFO from .transports.grpc_asyncio import AdaptationGrpcAsyncIOTransport @@ -288,6 +288,7 @@ async def sample_create_phrase_set(): phrase set, which will become the final component of the phrase set's resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or @@ -889,6 +890,7 @@ async def sample_create_custom_class(): custom class, which will become the final component of the custom class' resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or diff --git a/google/cloud/speech_v1p1beta1/services/adaptation/client.py b/google/cloud/speech_v1p1beta1/services/adaptation/client.py index f9a8bc6e..8d6e19f1 100644 --- a/google/cloud/speech_v1p1beta1/services/adaptation/client.py +++ b/google/cloud/speech_v1p1beta1/services/adaptation/client.py @@ -49,7 +49,7 @@ from google.cloud.speech_v1p1beta1.services.adaptation import pagers from google.cloud.speech_v1p1beta1.types import cloud_speech_adaptation from google.cloud.speech_v1p1beta1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from .transports.base import AdaptationTransport, DEFAULT_CLIENT_INFO from .transports.grpc import AdaptationGrpcTransport @@ -541,6 +541,7 @@ def sample_create_phrase_set(): phrase set, which will become the final component of the phrase set's resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or @@ -1142,6 +1143,7 @@ def sample_create_custom_class(): custom class, which will become the final component of the custom class' resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or diff --git a/google/cloud/speech_v1p1beta1/services/adaptation/transports/base.py b/google/cloud/speech_v1p1beta1/services/adaptation/transports/base.py index 752d5264..a848b34c 100644 --- a/google/cloud/speech_v1p1beta1/services/adaptation/transports/base.py +++ b/google/cloud/speech_v1p1beta1/services/adaptation/transports/base.py @@ -28,7 +28,7 @@ from google.cloud.speech_v1p1beta1.types import cloud_speech_adaptation from google.cloud.speech_v1p1beta1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( diff --git a/google/cloud/speech_v1p1beta1/services/adaptation/transports/grpc.py b/google/cloud/speech_v1p1beta1/services/adaptation/transports/grpc.py index 800b0d96..3c6d991a 100644 --- a/google/cloud/speech_v1p1beta1/services/adaptation/transports/grpc.py +++ b/google/cloud/speech_v1p1beta1/services/adaptation/transports/grpc.py @@ -26,7 +26,7 @@ from google.cloud.speech_v1p1beta1.types import cloud_speech_adaptation from google.cloud.speech_v1p1beta1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from .base import AdaptationTransport, DEFAULT_CLIENT_INFO diff --git a/google/cloud/speech_v1p1beta1/services/adaptation/transports/grpc_asyncio.py b/google/cloud/speech_v1p1beta1/services/adaptation/transports/grpc_asyncio.py index fafd11cf..56a6e2db 100644 --- a/google/cloud/speech_v1p1beta1/services/adaptation/transports/grpc_asyncio.py +++ b/google/cloud/speech_v1p1beta1/services/adaptation/transports/grpc_asyncio.py @@ -26,7 +26,7 @@ from google.cloud.speech_v1p1beta1.types import cloud_speech_adaptation from google.cloud.speech_v1p1beta1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from .base import AdaptationTransport, DEFAULT_CLIENT_INFO from .grpc import AdaptationGrpcTransport diff --git a/google/cloud/speech_v1p1beta1/services/adaptation/transports/rest.py b/google/cloud/speech_v1p1beta1/services/adaptation/transports/rest.py index 788fa5d9..9e506b88 100644 --- a/google/cloud/speech_v1p1beta1/services/adaptation/transports/rest.py +++ b/google/cloud/speech_v1p1beta1/services/adaptation/transports/rest.py @@ -27,7 +27,6 @@ from google.api_core import gapic_v1 from google.protobuf import json_format -from google.longrunning import operations_pb2 from requests import __version__ as requests_version import dataclasses import re @@ -43,6 +42,7 @@ from google.cloud.speech_v1p1beta1.types import cloud_speech_adaptation from google.cloud.speech_v1p1beta1.types import resource from google.protobuf import empty_pb2 # type: ignore +from google.longrunning import operations_pb2 # type: ignore from .base import AdaptationTransport, DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO diff --git a/google/cloud/speech_v1p1beta1/services/speech/async_client.py b/google/cloud/speech_v1p1beta1/services/speech/async_client.py index 005b6a0b..bef52fdb 100644 --- a/google/cloud/speech_v1p1beta1/services/speech/async_client.py +++ b/google/cloud/speech_v1p1beta1/services/speech/async_client.py @@ -48,7 +48,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.speech_v1p1beta1.types import cloud_speech -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.rpc import status_pb2 # type: ignore from .transports.base import SpeechTransport, DEFAULT_CLIENT_INFO @@ -223,8 +223,7 @@ 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 @@ -487,9 +486,8 @@ 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 9e27d044..410b314e 100644 --- a/google/cloud/speech_v1p1beta1/services/speech/client.py +++ b/google/cloud/speech_v1p1beta1/services/speech/client.py @@ -51,7 +51,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.speech_v1p1beta1.types import cloud_speech -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.rpc import status_pb2 # type: ignore from .transports.base import SpeechTransport, DEFAULT_CLIENT_INFO @@ -479,8 +479,7 @@ 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 @@ -731,9 +730,8 @@ 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/base.py b/google/cloud/speech_v1p1beta1/services/speech/transports/base.py index cd4e6538..dcc4094d 100644 --- a/google/cloud/speech_v1p1beta1/services/speech/transports/base.py +++ b/google/cloud/speech_v1p1beta1/services/speech/transports/base.py @@ -28,7 +28,6 @@ from google.oauth2 import service_account # type: ignore from google.cloud.speech_v1p1beta1.types import cloud_speech -from google.longrunning import operations_pb2 from google.longrunning import operations_pb2 # type: ignore DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( diff --git a/google/cloud/speech_v1p1beta1/services/speech/transports/grpc.py b/google/cloud/speech_v1p1beta1/services/speech/transports/grpc.py index 811f096a..eed20305 100644 --- a/google/cloud/speech_v1p1beta1/services/speech/transports/grpc.py +++ b/google/cloud/speech_v1p1beta1/services/speech/transports/grpc.py @@ -26,7 +26,6 @@ import grpc # type: ignore from google.cloud.speech_v1p1beta1.types import cloud_speech -from google.longrunning import operations_pb2 from google.longrunning import operations_pb2 # type: ignore from .base import SpeechTransport, DEFAULT_CLIENT_INFO @@ -254,8 +253,7 @@ 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], @@ -316,9 +314,8 @@ 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 40e9b47a..97dce876 100644 --- a/google/cloud/speech_v1p1beta1/services/speech/transports/grpc_asyncio.py +++ b/google/cloud/speech_v1p1beta1/services/speech/transports/grpc_asyncio.py @@ -26,7 +26,6 @@ from grpc.experimental import aio # type: ignore from google.cloud.speech_v1p1beta1.types import cloud_speech -from google.longrunning import operations_pb2 from google.longrunning import operations_pb2 # type: ignore from .base import SpeechTransport, DEFAULT_CLIENT_INFO from .grpc import SpeechGrpcTransport @@ -261,8 +260,7 @@ 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], @@ -325,9 +323,8 @@ 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/rest.py b/google/cloud/speech_v1p1beta1/services/speech/transports/rest.py index 9df5d6f6..95482fc7 100644 --- a/google/cloud/speech_v1p1beta1/services/speech/transports/rest.py +++ b/google/cloud/speech_v1p1beta1/services/speech/transports/rest.py @@ -28,7 +28,6 @@ from google.protobuf import json_format from google.api_core import operations_v1 -from google.longrunning import operations_pb2 from requests import __version__ as requests_version import dataclasses import re diff --git a/google/cloud/speech_v1p1beta1/types/cloud_speech_adaptation.py b/google/cloud/speech_v1p1beta1/types/cloud_speech_adaptation.py index 3d9e1ec7..82a626e3 100644 --- a/google/cloud/speech_v1p1beta1/types/cloud_speech_adaptation.py +++ b/google/cloud/speech_v1p1beta1/types/cloud_speech_adaptation.py @@ -62,6 +62,7 @@ class CreatePhraseSetRequest(proto.Message): Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 @@ -250,6 +251,7 @@ class CreateCustomClassRequest(proto.Message): Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. + This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 diff --git a/google/cloud/speech_v2/services/speech/async_client.py b/google/cloud/speech_v2/services/speech/async_client.py index b0342b86..a9967359 100644 --- a/google/cloud/speech_v2/services/speech/async_client.py +++ b/google/cloud/speech_v2/services/speech/async_client.py @@ -50,7 +50,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.cloud.speech_v2.services.speech import pagers from google.cloud.speech_v2.types import cloud_speech -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -978,8 +978,7 @@ 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 @@ -1160,9 +1159,8 @@ 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 @@ -1330,10 +1328,9 @@ 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 18e5d350..0697c100 100644 --- a/google/cloud/speech_v2/services/speech/client.py +++ b/google/cloud/speech_v2/services/speech/client.py @@ -53,7 +53,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.cloud.speech_v2.services.speech import pagers from google.cloud.speech_v2.types import cloud_speech -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -1317,8 +1317,7 @@ 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 @@ -1497,9 +1496,8 @@ 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 @@ -1663,10 +1661,9 @@ 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/base.py b/google/cloud/speech_v2/services/speech/transports/base.py index 6f6df964..9271a98a 100644 --- a/google/cloud/speech_v2/services/speech/transports/base.py +++ b/google/cloud/speech_v2/services/speech/transports/base.py @@ -29,7 +29,6 @@ from google.cloud.location import locations_pb2 # type: ignore from google.cloud.speech_v2.types import cloud_speech -from google.longrunning import operations_pb2 from google.longrunning import operations_pb2 # type: ignore DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( diff --git a/google/cloud/speech_v2/services/speech/transports/grpc.py b/google/cloud/speech_v2/services/speech/transports/grpc.py index 4bbd6b4b..33f0e8cf 100644 --- a/google/cloud/speech_v2/services/speech/transports/grpc.py +++ b/google/cloud/speech_v2/services/speech/transports/grpc.py @@ -27,7 +27,6 @@ from google.cloud.location import locations_pb2 # type: ignore from google.cloud.speech_v2.types import cloud_speech -from google.longrunning import operations_pb2 from google.longrunning import operations_pb2 # type: ignore from .base import SpeechTransport, DEFAULT_CLIENT_INFO @@ -416,8 +415,7 @@ 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], @@ -447,9 +445,8 @@ 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], @@ -476,10 +473,9 @@ 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 46ec6bde..1f534fe0 100644 --- a/google/cloud/speech_v2/services/speech/transports/grpc_asyncio.py +++ b/google/cloud/speech_v2/services/speech/transports/grpc_asyncio.py @@ -27,7 +27,6 @@ from google.cloud.location import locations_pb2 # type: ignore from google.cloud.speech_v2.types import cloud_speech -from google.longrunning import operations_pb2 from google.longrunning import operations_pb2 # type: ignore from .base import SpeechTransport, DEFAULT_CLIENT_INFO from .grpc import SpeechGrpcTransport @@ -434,8 +433,7 @@ 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], @@ -465,9 +463,8 @@ 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], @@ -496,10 +493,9 @@ 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/rest.py b/google/cloud/speech_v2/services/speech/transports/rest.py index 70815f6b..b93b882e 100644 --- a/google/cloud/speech_v2/services/speech/transports/rest.py +++ b/google/cloud/speech_v2/services/speech/transports/rest.py @@ -29,7 +29,6 @@ from google.protobuf import json_format from google.api_core import operations_v1 from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from requests import __version__ as requests_version import dataclasses import re diff --git a/tests/unit/gapic/speech_v1/test_adaptation.py b/tests/unit/gapic/speech_v1/test_adaptation.py index 01ea8ce0..5c218b9e 100644 --- a/tests/unit/gapic/speech_v1/test_adaptation.py +++ b/tests/unit/gapic/speech_v1/test_adaptation.py @@ -50,7 +50,7 @@ from google.cloud.speech_v1.services.adaptation import transports from google.cloud.speech_v1.types import cloud_speech_adaptation from google.cloud.speech_v1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore import google.auth diff --git a/tests/unit/gapic/speech_v1/test_speech.py b/tests/unit/gapic/speech_v1/test_speech.py index bb5a49b0..fc49ecca 100644 --- a/tests/unit/gapic/speech_v1/test_speech.py +++ b/tests/unit/gapic/speech_v1/test_speech.py @@ -53,7 +53,7 @@ from google.cloud.speech_v1.services.speech import transports from google.cloud.speech_v1.types import cloud_speech from google.cloud.speech_v1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import wrappers_pb2 # type: ignore diff --git a/tests/unit/gapic/speech_v1p1beta1/test_adaptation.py b/tests/unit/gapic/speech_v1p1beta1/test_adaptation.py index f454c179..3eabc804 100644 --- a/tests/unit/gapic/speech_v1p1beta1/test_adaptation.py +++ b/tests/unit/gapic/speech_v1p1beta1/test_adaptation.py @@ -50,7 +50,7 @@ from google.cloud.speech_v1p1beta1.services.adaptation import transports from google.cloud.speech_v1p1beta1.types import cloud_speech_adaptation from google.cloud.speech_v1p1beta1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore import google.auth diff --git a/tests/unit/gapic/speech_v1p1beta1/test_speech.py b/tests/unit/gapic/speech_v1p1beta1/test_speech.py index cb8a392c..27508054 100644 --- a/tests/unit/gapic/speech_v1p1beta1/test_speech.py +++ b/tests/unit/gapic/speech_v1p1beta1/test_speech.py @@ -53,7 +53,7 @@ from google.cloud.speech_v1p1beta1.services.speech import transports from google.cloud.speech_v1p1beta1.types import cloud_speech from google.cloud.speech_v1p1beta1.types import resource -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import wrappers_pb2 # type: ignore diff --git a/tests/unit/gapic/speech_v2/test_speech.py b/tests/unit/gapic/speech_v2/test_speech.py index fc4e374e..a538d57f 100644 --- a/tests/unit/gapic/speech_v2/test_speech.py +++ b/tests/unit/gapic/speech_v2/test_speech.py @@ -54,7 +54,7 @@ from google.cloud.speech_v2.services.speech import pagers from google.cloud.speech_v2.services.speech import transports from google.cloud.speech_v2.types import cloud_speech -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore