# Path: google/cloud/logging_v2/types/log_entry.py
# class LogEntry(proto.Message):
# class LogEntryOperation(proto.Message):
# class LogEntrySourceLocation(proto.Message):
# class LogSplit(proto.Message):
# 
# Path: google/cloud/logging_v2/types/logging.py
# class DeleteLogRequest(proto.Message):
# class WriteLogEntriesRequest(proto.Message):
# class WriteLogEntriesResponse(proto.Message):
# class WriteLogEntriesPartialErrors(proto.Message):
# class ListLogEntriesRequest(proto.Message):
# class ListLogEntriesResponse(proto.Message):
# class ListMonitoredResourceDescriptorsRequest(proto.Message):
# class ListMonitoredResourceDescriptorsResponse(proto.Message):
# class ListLogsRequest(proto.Message):
# class ListLogsResponse(proto.Message):
# class TailLogEntriesRequest(proto.Message):
# class TailLogEntriesResponse(proto.Message):
#     class SuppressionInfo(proto.Message):
#         class Reason(proto.Enum):
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):
#             REASON_UNSPECIFIED = 0
#             RATE_LIMIT = 1
#             NOT_CONSUMED = 2


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.api import monitored_resource_pb2  # type: ignore
from google.cloud.logging_v2.types import log_entry
from google.cloud.logging_v2.types import logging
        metadata: Sequence[Tuple[str, str]] = ()
    ):
        """Instantiate the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.logging_v2.types.ListLogEntriesRequest):
                The initial request object.
            response (google.cloud.logging_v2.types.ListLogEntriesResponse):
                The initial response object.
            metadata (Sequence[Tuple[str, str]]): Strings which should be
                sent along with the request as metadata.
        """
        self._method = method
        self._request = logging.ListLogEntriesRequest(request)
        self._response = response
        self._metadata = metadata

    def __getattr__(self, name: str) -> Any:
        return getattr(self._response, name)

    @property
    def pages(self) -> Iterator[logging.ListLogEntriesResponse]:
        yield self._response
        while self._response.next_page_token:
            self._request.page_token = self._response.next_page_token
            self._response = self._method(self._request, metadata=self._metadata)
            yield self._response


# Path: google/cloud/logging_v2/types/log_entry.py
# class LogEntry(proto.Message):
# class LogEntryOperation(proto.Message):
# class LogEntrySourceLocation(proto.Message):
# class LogSplit(proto.Message):
# 
# Path: google/cloud/logging_v2/types/logging.py
# class DeleteLogRequest(proto.Message):
# class WriteLogEntriesRequest(proto.Message):
# class WriteLogEntriesResponse(proto.Message):
# class WriteLogEntriesPartialErrors(proto.Message):
# class ListLogEntriesRequest(proto.Message):
# class ListLogEntriesResponse(proto.Message):
# class ListMonitoredResourceDescriptorsRequest(proto.Message):
# class ListMonitoredResourceDescriptorsResponse(proto.Message):
# class ListLogsRequest(proto.Message):
# class ListLogsResponse(proto.Message):
# class TailLogEntriesRequest(proto.Message):
# class TailLogEntriesResponse(proto.Message):
#     class SuppressionInfo(proto.Message):
#         class Reason(proto.Enum):
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):
#             REASON_UNSPECIFIED = 0
#             RATE_LIMIT = 1
#             NOT_CONSUMED = 2


# Path: google/cloud/logging_v2/services/logging_service_v2/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.api import monitored_resource_pb2  # type: ignore
from google.cloud.logging_v2.types import log_entry
from google.cloud.logging_v2.types import logging

        metadata: Sequence[Tuple[str, str]] = ()
    ):
        """Instantiate the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.logging_v2.types.ListLogEntriesRequest):
                The initial request object.
            response (google.cloud.logging_v2.types.ListLogEntriesResponse):
                The initial response object.
            metadata (Sequence[Tuple[str, str]]): Strings which should be
                sent along with the request as metadata.
        """
        self._method = method
        self._request = logging.ListLogEntriesRequest(request)
        self._response = response
        self._metadata = metadata

    def __getattr__(self, name: str) -> Any:
        return getattr(self._response, name)

    @property
    def pages(self) -> Iterator[logging.ListLogEntriesResponse]:
        yield self._response
        while self._response.next_page_token:
            self._request.page_token = self._response.next_page_token
            self._response = self._method(self._request, metadata=self._metadata)
            yield self._response


    def __iter__(self) -> Iterator[log_entry.LogEntry]: