Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

docs: Minor formatting #539

Merged
merged 2 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion google/cloud/speech_v1/services/adaptation/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion google/cloud/speech_v1/services/adaptation/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
10 changes: 4 additions & 6 deletions google/cloud/speech_v1/services/speech/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
10 changes: 4 additions & 6 deletions google/cloud/speech_v1/services/speech/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion google/cloud/speech_v1/services/speech/transports/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
9 changes: 3 additions & 6 deletions google/cloud/speech_v1/services/speech/transports/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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],
Expand Down
1 change: 0 additions & 1 deletion google/cloud/speech_v1/services/speech/transports/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/speech_v1/types/cloud_speech_adaptation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion google/cloud/speech_v1p1beta1/services/adaptation/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
10 changes: 4 additions & 6 deletions google/cloud/speech_v1p1beta1/services/speech/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
Loading