# Path: google/cloud/servicedirectory_v1/types/endpoint.py
# class Endpoint(proto.Message):
# 
# Path: google/cloud/servicedirectory_v1/types/namespace.py
# class Namespace(proto.Message):
# 
# Path: google/cloud/servicedirectory_v1/types/registration_service.py
# class CreateNamespaceRequest(proto.Message):
# class ListNamespacesRequest(proto.Message):
# class ListNamespacesResponse(proto.Message):
# class GetNamespaceRequest(proto.Message):
# class UpdateNamespaceRequest(proto.Message):
# class DeleteNamespaceRequest(proto.Message):
# class CreateServiceRequest(proto.Message):
# class ListServicesRequest(proto.Message):
# class ListServicesResponse(proto.Message):
# class GetServiceRequest(proto.Message):
# class UpdateServiceRequest(proto.Message):
# class DeleteServiceRequest(proto.Message):
# class CreateEndpointRequest(proto.Message):
# class ListEndpointsRequest(proto.Message):
# class ListEndpointsResponse(proto.Message):
# class GetEndpointRequest(proto.Message):
# class UpdateEndpointRequest(proto.Message):
# class DeleteEndpointRequest(proto.Message):
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):
# 
# Path: google/cloud/servicedirectory_v1/types/service.py
# class Service(proto.Message):


from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.servicedirectory_v1.types import endpoint
from google.cloud.servicedirectory_v1.types import namespace
from google.cloud.servicedirectory_v1.types import registration_service
from google.cloud.servicedirectory_v1.types import service
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#



class ListNamespacesPager:
    """A pager for iterating through ``list_namespaces`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.servicedirectory_v1.types.ListNamespacesResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``namespaces`` field.

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

    All the usual :class:`google.cloud.servicedirectory_v1.types.ListNamespacesResponse`
    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,

# Path: google/cloud/servicedirectory_v1/types/endpoint.py
# class Endpoint(proto.Message):
# 
# Path: google/cloud/servicedirectory_v1/types/namespace.py
# class Namespace(proto.Message):
# 
# Path: google/cloud/servicedirectory_v1/types/registration_service.py
# class CreateNamespaceRequest(proto.Message):
# class ListNamespacesRequest(proto.Message):
# class ListNamespacesResponse(proto.Message):
# class GetNamespaceRequest(proto.Message):
# class UpdateNamespaceRequest(proto.Message):
# class DeleteNamespaceRequest(proto.Message):
# class CreateServiceRequest(proto.Message):
# class ListServicesRequest(proto.Message):
# class ListServicesResponse(proto.Message):
# class GetServiceRequest(proto.Message):
# class UpdateServiceRequest(proto.Message):
# class DeleteServiceRequest(proto.Message):
# class CreateEndpointRequest(proto.Message):
# class ListEndpointsRequest(proto.Message):
# class ListEndpointsResponse(proto.Message):
# class GetEndpointRequest(proto.Message):
# class UpdateEndpointRequest(proto.Message):
# class DeleteEndpointRequest(proto.Message):
#     def raw_page(self):
#     def raw_page(self):
#     def raw_page(self):
# 
# Path: google/cloud/servicedirectory_v1/types/service.py
# class Service(proto.Message):


# Path: google/cloud/servicedirectory_v1/services/registration_service/pagers.py
from typing import (
    Any,
    AsyncIterator,
    Awaitable,
    Callable,
    Sequence,
    Tuple,
    Optional,
    Iterator,
)
from google.cloud.servicedirectory_v1.types import endpoint
from google.cloud.servicedirectory_v1.types import namespace
from google.cloud.servicedirectory_v1.types import registration_service
from google.cloud.servicedirectory_v1.types import service

#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#



class ListNamespacesPager:
    """A pager for iterating through ``list_namespaces`` requests.

    This class thinly wraps an initial
    :class:`google.cloud.servicedirectory_v1.types.ListNamespacesResponse` object, and
    provides an ``__iter__`` method to iterate through its
    ``namespaces`` field.

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

    All the usual :class:`google.cloud.servicedirectory_v1.types.ListNamespacesResponse`
    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[..., registration_service.ListNamespacesResponse],