# Path: google/cloud/recommender_v1beta1/types/insight.py
# class Insight(proto.Message):
#     class Category(proto.Enum):
#     class Severity(proto.Enum):
#     class RecommendationReference(proto.Message):
# class InsightStateInfo(proto.Message):
#     class State(proto.Enum):
#         CATEGORY_UNSPECIFIED = 0
#         COST = 1
#         SECURITY = 2
#         PERFORMANCE = 3
#         MANAGEABILITY = 4
#         SEVERITY_UNSPECIFIED = 0
#         LOW = 1
#         MEDIUM = 2
#         HIGH = 3
#         CRITICAL = 4
#         STATE_UNSPECIFIED = 0
#         ACTIVE = 1
#         ACCEPTED = 2
#         DISMISSED = 3
# 
# Path: google/cloud/recommender_v1beta1/types/recommendation.py
# class Recommendation(proto.Message):
#     class Priority(proto.Enum):
#     class InsightReference(proto.Message):
# class RecommendationContent(proto.Message):
# class OperationGroup(proto.Message):
# class Operation(proto.Message):
# class ValueMatcher(proto.Message):
# class CostProjection(proto.Message):
# class SecurityProjection(proto.Message):
# class SustainabilityProjection(proto.Message):
# class Impact(proto.Message):
#     class Category(proto.Enum):
# class RecommendationStateInfo(proto.Message):
#     class State(proto.Enum):
#         PRIORITY_UNSPECIFIED = 0
#         P4 = 1
#         P3 = 2
#         P2 = 3
#         P1 = 4
#         CATEGORY_UNSPECIFIED = 0
#         COST = 1
#         SECURITY = 2
#         PERFORMANCE = 3
#         MANAGEABILITY = 4
#         SUSTAINABILITY = 5
#         STATE_UNSPECIFIED = 0
#         ACTIVE = 1
#         CLAIMED = 6
#         SUCCEEDED = 3
#         FAILED = 4
#         DISMISSED = 5
# 
# Path: google/cloud/recommender_v1beta1/types/recommender_service.py
# class ListInsightsRequest(proto.Message):
# class ListInsightsResponse(proto.Message):
# class GetInsightRequest(proto.Message):
# class MarkInsightAcceptedRequest(proto.Message):
# class ListRecommendationsRequest(proto.Message):
# class ListRecommendationsResponse(proto.Message):
# class GetRecommendationRequest(proto.Message):
# class MarkRecommendationClaimedRequest(proto.Message):
# class MarkRecommendationSucceededRequest(proto.Message):
# class MarkRecommendationFailedRequest(proto.Message):
# class GetRecommenderConfigRequest(proto.Message):
# class UpdateRecommenderConfigRequest(proto.Message):
# class GetInsightTypeConfigRequest(proto.Message):
# class UpdateInsightTypeConfigRequest(proto.Message):
#     def raw_page(self):
#     def raw_page(self):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.recommender_v1beta1.types import insight
from google.cloud.recommender_v1beta1.types import recommendation
from google.cloud.recommender_v1beta1.types import recommender_service
        for page in self.pages:
            yield from page.recommendations

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


class ListRecommendationsAsyncPager:
    """A pager for iterating through ``list_recommendations`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.recommender_v1beta1.types.ListRecommendationsResponse` object, and
    provides an ``__aiter__`` method to iterate through its
    ``recommendations`` field.

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

    All the usual :class:`google.cloud.recommender_v1beta1.types.ListRecommendationsResponse`
    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[
            ..., Awaitable[recommender_service.ListRecommendationsResponse]
        ],

# Path: google/cloud/recommender_v1beta1/types/insight.py
# class Insight(proto.Message):
#     class Category(proto.Enum):
#     class Severity(proto.Enum):
#     class RecommendationReference(proto.Message):
# class InsightStateInfo(proto.Message):
#     class State(proto.Enum):
#         CATEGORY_UNSPECIFIED = 0
#         COST = 1
#         SECURITY = 2
#         PERFORMANCE = 3
#         MANAGEABILITY = 4
#         SEVERITY_UNSPECIFIED = 0
#         LOW = 1
#         MEDIUM = 2
#         HIGH = 3
#         CRITICAL = 4
#         STATE_UNSPECIFIED = 0
#         ACTIVE = 1
#         ACCEPTED = 2
#         DISMISSED = 3
# 
# Path: google/cloud/recommender_v1beta1/types/recommendation.py
# class Recommendation(proto.Message):
#     class Priority(proto.Enum):
#     class InsightReference(proto.Message):
# class RecommendationContent(proto.Message):
# class OperationGroup(proto.Message):
# class Operation(proto.Message):
# class ValueMatcher(proto.Message):
# class CostProjection(proto.Message):
# class SecurityProjection(proto.Message):
# class SustainabilityProjection(proto.Message):
# class Impact(proto.Message):
#     class Category(proto.Enum):
# class RecommendationStateInfo(proto.Message):
#     class State(proto.Enum):
#         PRIORITY_UNSPECIFIED = 0
#         P4 = 1
#         P3 = 2
#         P2 = 3
#         P1 = 4
#         CATEGORY_UNSPECIFIED = 0
#         COST = 1
#         SECURITY = 2
#         PERFORMANCE = 3
#         MANAGEABILITY = 4
#         SUSTAINABILITY = 5
#         STATE_UNSPECIFIED = 0
#         ACTIVE = 1
#         CLAIMED = 6
#         SUCCEEDED = 3
#         FAILED = 4
#         DISMISSED = 5
# 
# Path: google/cloud/recommender_v1beta1/types/recommender_service.py
# class ListInsightsRequest(proto.Message):
# class ListInsightsResponse(proto.Message):
# class GetInsightRequest(proto.Message):
# class MarkInsightAcceptedRequest(proto.Message):
# class ListRecommendationsRequest(proto.Message):
# class ListRecommendationsResponse(proto.Message):
# class GetRecommendationRequest(proto.Message):
# class MarkRecommendationClaimedRequest(proto.Message):
# class MarkRecommendationSucceededRequest(proto.Message):
# class MarkRecommendationFailedRequest(proto.Message):
# class GetRecommenderConfigRequest(proto.Message):
# class UpdateRecommenderConfigRequest(proto.Message):
# class GetInsightTypeConfigRequest(proto.Message):
# class UpdateInsightTypeConfigRequest(proto.Message):
#     def raw_page(self):
#     def raw_page(self):


# Path: google/cloud/recommender_v1beta1/services/recommender/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.recommender_v1beta1.types import insight
from google.cloud.recommender_v1beta1.types import recommendation
from google.cloud.recommender_v1beta1.types import recommender_service

        for page in self.pages:
            yield from page.recommendations

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


class ListRecommendationsAsyncPager:
    """A pager for iterating through ``list_recommendations`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.recommender_v1beta1.types.ListRecommendationsResponse` object, and
    provides an ``__aiter__`` method to iterate through its
    ``recommendations`` field.

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

    All the usual :class:`google.cloud.recommender_v1beta1.types.ListRecommendationsResponse`
    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[
            ..., Awaitable[recommender_service.ListRecommendationsResponse]
        ],

        request: recommender_service.ListRecommendationsRequest,