# Path: google/cloud/errorreporting_v1beta1/types/error_stats_service.py
# class TimedCountAlignment(proto.Enum):
# class ErrorGroupOrder(proto.Enum):
# class ListGroupStatsRequest(proto.Message):
# class ListGroupStatsResponse(proto.Message):
# class ErrorGroupStats(proto.Message):
# class TimedCount(proto.Message):
# class ListEventsRequest(proto.Message):
# class ListEventsResponse(proto.Message):
# class QueryTimeRange(proto.Message):
#     class Period(proto.Enum):
# class ServiceContextFilter(proto.Message):
# class DeleteEventsRequest(proto.Message):
# class DeleteEventsResponse(proto.Message):
#     ERROR_COUNT_ALIGNMENT_UNSPECIFIED = 0
#     ALIGNMENT_EQUAL_ROUNDED = 1
#     ALIGNMENT_EQUAL_AT_END = 2
#     GROUP_ORDER_UNSPECIFIED = 0
#     COUNT_DESC = 1
#     LAST_SEEN_DESC = 2
#     CREATED_DESC = 3
#     AFFECTED_USERS_DESC = 4
#         PERIOD_UNSPECIFIED = 0
#         PERIOD_1_HOUR = 1
#         PERIOD_6_HOURS = 2
#         PERIOD_1_DAY = 3
#         PERIOD_1_WEEK = 4
#         PERIOD_30_DAYS = 5
#     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.errorreporting_v1beta1.types import error_stats_service
        # Save the credentials.
        self._credentials = credentials

    def _prep_wrapped_messages(self, client_info):
        # Precompute the wrapped methods.
        self._wrapped_methods = {
            self.list_group_stats: gapic_v1.method.wrap_method(
                self.list_group_stats, default_timeout=None, client_info=client_info,
            ),
            self.list_events: gapic_v1.method.wrap_method(
                self.list_events, default_timeout=None, client_info=client_info,
            ),
            self.delete_events: gapic_v1.method.wrap_method(
                self.delete_events, default_timeout=None, 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_group_stats(
        self,
    ) -> Callable[

# Path: google/cloud/errorreporting_v1beta1/types/error_stats_service.py
# class TimedCountAlignment(proto.Enum):
# class ErrorGroupOrder(proto.Enum):
# class ListGroupStatsRequest(proto.Message):
# class ListGroupStatsResponse(proto.Message):
# class ErrorGroupStats(proto.Message):
# class TimedCount(proto.Message):
# class ListEventsRequest(proto.Message):
# class ListEventsResponse(proto.Message):
# class QueryTimeRange(proto.Message):
#     class Period(proto.Enum):
# class ServiceContextFilter(proto.Message):
# class DeleteEventsRequest(proto.Message):
# class DeleteEventsResponse(proto.Message):
#     ERROR_COUNT_ALIGNMENT_UNSPECIFIED = 0
#     ALIGNMENT_EQUAL_ROUNDED = 1
#     ALIGNMENT_EQUAL_AT_END = 2
#     GROUP_ORDER_UNSPECIFIED = 0
#     COUNT_DESC = 1
#     LAST_SEEN_DESC = 2
#     CREATED_DESC = 3
#     AFFECTED_USERS_DESC = 4
#         PERIOD_UNSPECIFIED = 0
#         PERIOD_1_HOUR = 1
#         PERIOD_6_HOURS = 2
#         PERIOD_1_DAY = 3
#         PERIOD_1_WEEK = 4
#         PERIOD_30_DAYS = 5
#     def raw_page(self):
#     def raw_page(self):


# Path: google/cloud/errorreporting_v1beta1/services/error_stats_service/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.errorreporting_v1beta1.types import error_stats_service

        # Save the credentials.
        self._credentials = credentials

    def _prep_wrapped_messages(self, client_info):
        # Precompute the wrapped methods.
        self._wrapped_methods = {
            self.list_group_stats: gapic_v1.method.wrap_method(
                self.list_group_stats, default_timeout=None, client_info=client_info,
            ),
            self.list_events: gapic_v1.method.wrap_method(
                self.list_events, default_timeout=None, client_info=client_info,
            ),
            self.delete_events: gapic_v1.method.wrap_method(
                self.delete_events, default_timeout=None, 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_group_stats(
        self,
    ) -> Callable[

        [error_stats_service.ListGroupStatsRequest],