# Path: google/cloud/trace_v2/types/trace.py
# class Span(proto.Message):
#     class SpanKind(proto.Enum):
#     class Attributes(proto.Message):
#     class TimeEvent(proto.Message):
#         class Annotation(proto.Message):
#         class MessageEvent(proto.Message):
#             class Type(proto.Enum):
#     class TimeEvents(proto.Message):
#     class Link(proto.Message):
#         class Type(proto.Enum):
#     class Links(proto.Message):
# class AttributeValue(proto.Message):
# class StackTrace(proto.Message):
#     class StackFrame(proto.Message):
#     class StackFrames(proto.Message):
# class Module(proto.Message):
# class TruncatableString(proto.Message):
#         SPAN_KIND_UNSPECIFIED = 0
#         INTERNAL = 1
#         SERVER = 2
#         CLIENT = 3
#         PRODUCER = 4
#         CONSUMER = 5
#                 TYPE_UNSPECIFIED = 0
#                 SENT = 1
#                 RECEIVED = 2
#             TYPE_UNSPECIFIED = 0
#             CHILD_LINKED_SPAN = 1
#             PARENT_LINKED_SPAN = 2
# 
# Path: google/cloud/trace_v2/types/tracing.py
# class BatchWriteSpansRequest(proto.Message):


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.trace_v2.types import trace
from google.cloud.trace_v2.types import tracing
from google.protobuf import empty_pb2  # type: ignore
                        core_exceptions.ServiceUnavailable,
                    ),
                    deadline=120.0,
                ),
                default_timeout=120.0,
                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 batch_write_spans(
        self,
    ) -> Callable[
        [tracing.BatchWriteSpansRequest],
        Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
    ]:
        raise NotImplementedError()

    @property
    def create_span(
        self,

# Path: google/cloud/trace_v2/types/trace.py
# class Span(proto.Message):
#     class SpanKind(proto.Enum):
#     class Attributes(proto.Message):
#     class TimeEvent(proto.Message):
#         class Annotation(proto.Message):
#         class MessageEvent(proto.Message):
#             class Type(proto.Enum):
#     class TimeEvents(proto.Message):
#     class Link(proto.Message):
#         class Type(proto.Enum):
#     class Links(proto.Message):
# class AttributeValue(proto.Message):
# class StackTrace(proto.Message):
#     class StackFrame(proto.Message):
#     class StackFrames(proto.Message):
# class Module(proto.Message):
# class TruncatableString(proto.Message):
#         SPAN_KIND_UNSPECIFIED = 0
#         INTERNAL = 1
#         SERVER = 2
#         CLIENT = 3
#         PRODUCER = 4
#         CONSUMER = 5
#                 TYPE_UNSPECIFIED = 0
#                 SENT = 1
#                 RECEIVED = 2
#             TYPE_UNSPECIFIED = 0
#             CHILD_LINKED_SPAN = 1
#             PARENT_LINKED_SPAN = 2
# 
# Path: google/cloud/trace_v2/types/tracing.py
# class BatchWriteSpansRequest(proto.Message):


# Path: google/cloud/trace_v2/services/trace_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.trace_v2.types import trace
from google.cloud.trace_v2.types import tracing
from google.protobuf import empty_pb2  # type: ignore

                        core_exceptions.ServiceUnavailable,
                    ),
                    deadline=120.0,
                ),
                default_timeout=120.0,
                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 batch_write_spans(
        self,
    ) -> Callable[
        [tracing.BatchWriteSpansRequest],
        Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
    ]:
        raise NotImplementedError()

    @property
    def create_span(
        self,

    ) -> Callable[[trace.Span], Union[trace.Span, Awaitable[trace.Span]]]: