# Path: google/cloud/asset_v1p1beta1/types/asset_service.py
# class SearchAllResourcesRequest(proto.Message):
# class SearchAllResourcesResponse(proto.Message):
# class SearchAllIamPoliciesRequest(proto.Message):
# class SearchAllIamPoliciesResponse(proto.Message):
#     def raw_page(self):
#     def raw_page(self):
# 
# Path: google/cloud/asset_v1p1beta1/types/assets.py
# class StandardResourceMetadata(proto.Message):
# class IamPolicySearchResult(proto.Message):
#     class Explanation(proto.Message):
# class Permissions(proto.Message):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.asset_v1p1beta1.types import asset_service
from google.cloud.asset_v1p1beta1.types import assets
            async for page in self.pages:
                for response in page.results:
                    yield response

        return async_generator()

    def __repr__(self) -> str:
        return "{0}<{1!r}>".format(self.__class__.__name__, self._response)


class SearchAllIamPoliciesPager:
    """A pager for iterating through ``search_all_iam_policies`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.asset_v1p1beta1.types.SearchAllIamPoliciesResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``results`` field.

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

    All the usual :class:`google.cloud.asset_v1p1beta1.types.SearchAllIamPoliciesResponse`
    attributes are available on the pager. If multiple requests are made, only
    the most recent response is retained, and thus used for attribute lookup.
    """

    def __init__(
        self,

# Path: google/cloud/asset_v1p1beta1/types/asset_service.py
# class SearchAllResourcesRequest(proto.Message):
# class SearchAllResourcesResponse(proto.Message):
# class SearchAllIamPoliciesRequest(proto.Message):
# class SearchAllIamPoliciesResponse(proto.Message):
#     def raw_page(self):
#     def raw_page(self):
# 
# Path: google/cloud/asset_v1p1beta1/types/assets.py
# class StandardResourceMetadata(proto.Message):
# class IamPolicySearchResult(proto.Message):
#     class Explanation(proto.Message):
# class Permissions(proto.Message):


# Path: google/cloud/asset_v1p1beta1/services/asset_service/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.asset_v1p1beta1.types import asset_service
from google.cloud.asset_v1p1beta1.types import assets

            async for page in self.pages:
                for response in page.results:
                    yield response

        return async_generator()

    def __repr__(self) -> str:
        return "{0}<{1!r}>".format(self.__class__.__name__, self._response)


class SearchAllIamPoliciesPager:
    """A pager for iterating through ``search_all_iam_policies`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.asset_v1p1beta1.types.SearchAllIamPoliciesResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``results`` field.

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

    All the usual :class:`google.cloud.asset_v1p1beta1.types.SearchAllIamPoliciesResponse`
    attributes are available on the pager. If multiple requests are made, only
    the most recent response is retained, and thus used for attribute lookup.
    """

    def __init__(
        self,

        method: Callable[..., asset_service.SearchAllIamPoliciesResponse],