# Path: google/cloud/recommender_v1/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_v1/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 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
#         STATE_UNSPECIFIED = 0
#         ACTIVE = 1
#         CLAIMED = 6
#         SUCCEEDED = 3
#         FAILED = 4
#         DISMISSED = 5
# 
# Path: google/cloud/recommender_v1/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):
#     def raw_page(self):
#     def raw_page(self):


import abc
import pkg_resources
import google.auth  # type: ignore
import google.api_core
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials  # type: ignore
from google.oauth2 import service_account  # type: ignore
from google.cloud.recommender_v1.types import insight
from google.cloud.recommender_v1.types import recommendation
from google.cloud.recommender_v1.types import recommender_service
                default_timeout=60.0,
                client_info=client_info,
            ),
            self.mark_recommendation_succeeded: gapic_v1.method.wrap_method(
                self.mark_recommendation_succeeded,
                default_timeout=60.0,
                client_info=client_info,
            ),
            self.mark_recommendation_failed: gapic_v1.method.wrap_method(
                self.mark_recommendation_failed,
                default_timeout=60.0,
                client_info=client_info,
            ),
        }

    def close(self):
        """Closes resources associated with the transport.

       .. warning::
            Only call this method if the transport is NOT shared
            with other clients - this may cause errors in other clients!
        """
        raise NotImplementedError()

    @property
    def list_insights(
        self,
    ) -> Callable[
        [recommender_service.ListInsightsRequest],
        Union[

# Path: google/cloud/recommender_v1/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_v1/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 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
#         STATE_UNSPECIFIED = 0
#         ACTIVE = 1
#         CLAIMED = 6
#         SUCCEEDED = 3
#         FAILED = 4
#         DISMISSED = 5
# 
# Path: google/cloud/recommender_v1/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):
#     def raw_page(self):
#     def raw_page(self):


# Path: google/cloud/recommender_v1/services/recommender/transports/base.py
import abc
import pkg_resources
import google.auth  # type: ignore
import google.api_core
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials  # type: ignore
from google.oauth2 import service_account  # type: ignore
from google.cloud.recommender_v1.types import insight
from google.cloud.recommender_v1.types import recommendation
from google.cloud.recommender_v1.types import recommender_service

                default_timeout=60.0,
                client_info=client_info,
            ),
            self.mark_recommendation_succeeded: gapic_v1.method.wrap_method(
                self.mark_recommendation_succeeded,
                default_timeout=60.0,
                client_info=client_info,
            ),
            self.mark_recommendation_failed: gapic_v1.method.wrap_method(
                self.mark_recommendation_failed,
                default_timeout=60.0,
                client_info=client_info,
            ),
        }

    def close(self):
        """Closes resources associated with the transport.

       .. warning::
            Only call this method if the transport is NOT shared
            with other clients - this may cause errors in other clients!
        """
        raise NotImplementedError()

    @property
    def list_insights(
        self,
    ) -> Callable[
        [recommender_service.ListInsightsRequest],
        Union[

            recommender_service.ListInsightsResponse,