# Path: grafeas/grafeas_v1/types/grafeas.py
# class Occurrence(proto.Message):
# class Note(proto.Message):
# class GetOccurrenceRequest(proto.Message):
# class ListOccurrencesRequest(proto.Message):
# class ListOccurrencesResponse(proto.Message):
# class DeleteOccurrenceRequest(proto.Message):
# class CreateOccurrenceRequest(proto.Message):
# class UpdateOccurrenceRequest(proto.Message):
# class GetNoteRequest(proto.Message):
# class GetOccurrenceNoteRequest(proto.Message):
# class ListNotesRequest(proto.Message):
# class ListNotesResponse(proto.Message):
# class DeleteNoteRequest(proto.Message):
# class CreateNoteRequest(proto.Message):
# class UpdateNoteRequest(proto.Message):
# class ListNoteOccurrencesRequest(proto.Message):
# class ListNoteOccurrencesResponse(proto.Message):
# class BatchCreateNotesRequest(proto.Message):
# class BatchCreateNotesResponse(proto.Message):
# class BatchCreateOccurrencesRequest(proto.Message):
# class BatchCreateOccurrencesResponse(proto.Message):
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from grafeas.grafeas_v1.types import grafeas
                for response in page.notes:
                    yield response

        return async_generator()

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


class ListNoteOccurrencesPager:
    """A pager for iterating through ``list_note_occurrences`` requests.

    This class thinly wraps an initial
    :class:`grafeas.grafeas_v1.types.ListNoteOccurrencesResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``occurrences`` field.

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

    All the usual :class:`grafeas.grafeas_v1.types.ListNoteOccurrencesResponse`
    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[..., grafeas.ListNoteOccurrencesResponse],

# Path: grafeas/grafeas_v1/types/grafeas.py
# class Occurrence(proto.Message):
# class Note(proto.Message):
# class GetOccurrenceRequest(proto.Message):
# class ListOccurrencesRequest(proto.Message):
# class ListOccurrencesResponse(proto.Message):
# class DeleteOccurrenceRequest(proto.Message):
# class CreateOccurrenceRequest(proto.Message):
# class UpdateOccurrenceRequest(proto.Message):
# class GetNoteRequest(proto.Message):
# class GetOccurrenceNoteRequest(proto.Message):
# class ListNotesRequest(proto.Message):
# class ListNotesResponse(proto.Message):
# class DeleteNoteRequest(proto.Message):
# class CreateNoteRequest(proto.Message):
# class UpdateNoteRequest(proto.Message):
# class ListNoteOccurrencesRequest(proto.Message):
# class ListNoteOccurrencesResponse(proto.Message):
# class BatchCreateNotesRequest(proto.Message):
# class BatchCreateNotesResponse(proto.Message):
# class BatchCreateOccurrencesRequest(proto.Message):
# class BatchCreateOccurrencesResponse(proto.Message):
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):


# Path: grafeas/grafeas_v1/services/grafeas/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from grafeas.grafeas_v1.types import grafeas

                for response in page.notes:
                    yield response

        return async_generator()

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


class ListNoteOccurrencesPager:
    """A pager for iterating through ``list_note_occurrences`` requests.

    This class thinly wraps an initial
    :class:`grafeas.grafeas_v1.types.ListNoteOccurrencesResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``occurrences`` field.

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

    All the usual :class:`grafeas.grafeas_v1.types.ListNoteOccurrencesResponse`
    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[..., grafeas.ListNoteOccurrencesResponse],

        request: grafeas.ListNoteOccurrencesRequest,