Module pagers (2.27.0)

API documentation for speech_v2.services.speech.pagers module.

Classes

ListCustomClassesAsyncPager

ListCustomClassesAsyncPager(
    method: typing.Callable[
        [...],
        typing.Awaitable[
            google.cloud.speech_v2.types.cloud_speech.ListCustomClassesResponse
        ],
    ],
    request: google.cloud.speech_v2.types.cloud_speech.ListCustomClassesRequest,
    response: google.cloud.speech_v2.types.cloud_speech.ListCustomClassesResponse,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary_async.AsyncRetry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)

A pager for iterating through list_custom_classes requests.

This class thinly wraps an initial ListCustomClassesResponse object, and provides an __aiter__ method to iterate through its custom_classes field.

If there are more pages, the __aiter__ method will make additional ListCustomClasses requests and continue to iterate through the custom_classes field on the corresponding responses.

All the usual ListCustomClassesResponse attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.

ListCustomClassesPager

ListCustomClassesPager(
    method: typing.Callable[
        [...], google.cloud.speech_v2.types.cloud_speech.ListCustomClassesResponse
    ],
    request: google.cloud.speech_v2.types.cloud_speech.ListCustomClassesRequest,
    response: google.cloud.speech_v2.types.cloud_speech.ListCustomClassesResponse,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)

A pager for iterating through list_custom_classes requests.

This class thinly wraps an initial ListCustomClassesResponse object, and provides an __iter__ method to iterate through its custom_classes field.

If there are more pages, the __iter__ method will make additional ListCustomClasses requests and continue to iterate through the custom_classes field on the corresponding responses.

All the usual ListCustomClassesResponse attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.

ListPhraseSetsAsyncPager

ListPhraseSetsAsyncPager(
    method: typing.Callable[
        [...],
        typing.Awaitable[
            google.cloud.speech_v2.types.cloud_speech.ListPhraseSetsResponse
        ],
    ],
    request: google.cloud.speech_v2.types.cloud_speech.ListPhraseSetsRequest,
    response: google.cloud.speech_v2.types.cloud_speech.ListPhraseSetsResponse,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary_async.AsyncRetry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)

A pager for iterating through list_phrase_sets requests.

This class thinly wraps an initial ListPhraseSetsResponse object, and provides an __aiter__ method to iterate through its phrase_sets field.

If there are more pages, the __aiter__ method will make additional ListPhraseSets requests and continue to iterate through the phrase_sets field on the corresponding responses.

All the usual ListPhraseSetsResponse attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.

ListPhraseSetsPager

ListPhraseSetsPager(
    method: typing.Callable[
        [...], google.cloud.speech_v2.types.cloud_speech.ListPhraseSetsResponse
    ],
    request: google.cloud.speech_v2.types.cloud_speech.ListPhraseSetsRequest,
    response: google.cloud.speech_v2.types.cloud_speech.ListPhraseSetsResponse,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)

A pager for iterating through list_phrase_sets requests.

This class thinly wraps an initial ListPhraseSetsResponse object, and provides an __iter__ method to iterate through its phrase_sets field.

If there are more pages, the __iter__ method will make additional ListPhraseSets requests and continue to iterate through the phrase_sets field on the corresponding responses.

All the usual ListPhraseSetsResponse attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.

ListRecognizersAsyncPager

ListRecognizersAsyncPager(
    method: typing.Callable[
        [...],
        typing.Awaitable[
            google.cloud.speech_v2.types.cloud_speech.ListRecognizersResponse
        ],
    ],
    request: google.cloud.speech_v2.types.cloud_speech.ListRecognizersRequest,
    response: google.cloud.speech_v2.types.cloud_speech.ListRecognizersResponse,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary_async.AsyncRetry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)

A pager for iterating through list_recognizers requests.

This class thinly wraps an initial ListRecognizersResponse object, and provides an __aiter__ method to iterate through its recognizers field.

If there are more pages, the __aiter__ method will make additional ListRecognizers requests and continue to iterate through the recognizers field on the corresponding responses.

All the usual ListRecognizersResponse attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.

ListRecognizersPager

ListRecognizersPager(
    method: typing.Callable[
        [...], google.cloud.speech_v2.types.cloud_speech.ListRecognizersResponse
    ],
    request: google.cloud.speech_v2.types.cloud_speech.ListRecognizersRequest,
    response: google.cloud.speech_v2.types.cloud_speech.ListRecognizersResponse,
    *,
    retry: typing.Optional[
        typing.Union[
            google.api_core.retry.retry_unary.Retry,
            google.api_core.gapic_v1.method._MethodDefault,
        ]
    ] = _MethodDefault._DEFAULT_VALUE,
    timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
    metadata: typing.Sequence[typing.Tuple[str, str]] = ()
)

A pager for iterating through list_recognizers requests.

This class thinly wraps an initial ListRecognizersResponse object, and provides an __iter__ method to iterate through its recognizers field.

If there are more pages, the __iter__ method will make additional ListRecognizers requests and continue to iterate through the recognizers field on the corresponding responses.

All the usual ListRecognizersResponse attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.