# Path: google/cloud/servicedirectory_v1/types/lookup_service.py
# class ResolveServiceRequest(proto.Message):
# class ResolveServiceResponse(proto.Message):
# 
# Path: google/cloud/servicedirectory_v1/types/service.py
# class Service(proto.Message):


import os
import mock
import grpc
import math
import pytest
import google.auth
from grpc.experimental import aio
from proto.marshal.rules.dates import DurationRule, TimestampRule
from google.api_core import client_options
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import grpc_helpers
from google.api_core import grpc_helpers_async
from google.api_core import path_template
from google.auth import credentials as ga_credentials
from google.auth.exceptions import MutualTLSChannelError
from google.cloud.servicedirectory_v1.services.lookup_service import (
    LookupServiceAsyncClient,
)
from google.cloud.servicedirectory_v1.services.lookup_service import LookupServiceClient
from google.cloud.servicedirectory_v1.services.lookup_service import transports
from google.cloud.servicedirectory_v1.types import lookup_service
from google.cloud.servicedirectory_v1.types import service
from google.oauth2 import service_account
            grpc_create_channel.return_value = mock_grpc_channel
            mock_cred = mock.Mock()

            with pytest.warns(DeprecationWarning):
                transport = transport_class(
                    host="squid.clam.whelk",
                    credentials=mock_cred,
                    api_mtls_endpoint="mtls.squid.clam.whelk",
                    client_cert_source=None,
                )

            grpc_create_channel.assert_called_once_with(
                "mtls.squid.clam.whelk:443",
                credentials=mock_cred,
                credentials_file=None,
                scopes=None,
                ssl_credentials=mock_ssl_cred,
                quota_project_id=None,
                options=[
                    ("grpc.max_send_message_length", -1),
                    ("grpc.max_receive_message_length", -1),
                ],
            )
            assert transport.grpc_channel == mock_grpc_channel


def test_endpoint_path():
    project = "squid"
    location = "clam"
    namespace = "whelk"

# Path: google/cloud/servicedirectory_v1/types/lookup_service.py
# class ResolveServiceRequest(proto.Message):
# class ResolveServiceResponse(proto.Message):
# 
# Path: google/cloud/servicedirectory_v1/types/service.py
# class Service(proto.Message):


# Path: tests/unit/gapic/servicedirectory_v1/test_lookup_service.py
import os
import mock
import grpc
import math
import pytest
import google.auth
from grpc.experimental import aio
from proto.marshal.rules.dates import DurationRule, TimestampRule
from google.api_core import client_options
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import grpc_helpers
from google.api_core import grpc_helpers_async
from google.api_core import path_template
from google.auth import credentials as ga_credentials
from google.auth.exceptions import MutualTLSChannelError
from google.cloud.servicedirectory_v1.services.lookup_service import (
    LookupServiceAsyncClient,
)
from google.cloud.servicedirectory_v1.services.lookup_service import LookupServiceClient
from google.cloud.servicedirectory_v1.services.lookup_service import transports
from google.cloud.servicedirectory_v1.types import lookup_service
from google.cloud.servicedirectory_v1.types import service
from google.oauth2 import service_account

            grpc_create_channel.return_value = mock_grpc_channel
            mock_cred = mock.Mock()

            with pytest.warns(DeprecationWarning):
                transport = transport_class(
                    host="squid.clam.whelk",
                    credentials=mock_cred,
                    api_mtls_endpoint="mtls.squid.clam.whelk",
                    client_cert_source=None,
                )

            grpc_create_channel.assert_called_once_with(
                "mtls.squid.clam.whelk:443",
                credentials=mock_cred,
                credentials_file=None,
                scopes=None,
                ssl_credentials=mock_ssl_cred,
                quota_project_id=None,
                options=[
                    ("grpc.max_send_message_length", -1),
                    ("grpc.max_receive_message_length", -1),
                ],
            )
            assert transport.grpc_channel == mock_grpc_channel


def test_endpoint_path():
    project = "squid"
    location = "clam"
    namespace = "whelk"

    service = "octopus"