# @generated by generate_proto_mypy_stubs.py.  Do not edit!
import sys
from google.protobuf.descriptor import (
    Descriptor as google___protobuf___descriptor___Descriptor,
    FieldDescriptor as google___protobuf___descriptor___FieldDescriptor,
)

from google.protobuf.internal.containers import (
    RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer,
)

from google.protobuf.message import (
    Message as google___protobuf___message___Message,
)

from pyatv.mrp.protobuf.AudioFormatSettingsMessage_pb2 import (
    AudioFormatSettings as pyatv___mrp___protobuf___AudioFormatSettingsMessage_pb2___AudioFormatSettings,
)

from typing import (
    Iterable as typing___Iterable,
    Optional as typing___Optional,
    Union as typing___Union,
)

from typing_extensions import (
    Literal as typing_extensions___Literal,
)


builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
if sys.version_info < (3,):
    builtin___buffer = buffer
    builtin___unicode = unicode


class AudioStreamPacketDescription(google___protobuf___message___Message):
    DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
    startOffset = ... # type: builtin___int
    variableFramesInPacket = ... # type: builtin___int
    dataByteSize = ... # type: builtin___int

    def __init__(self,
        *,
        startOffset : typing___Optional[builtin___int] = None,
        variableFramesInPacket : typing___Optional[builtin___int] = None,
        dataByteSize : typing___Optional[builtin___int] = None,
        ) -> None: ...
    if sys.version_info >= (3,):
        @classmethod
        def FromString(cls, s: builtin___bytes) -> AudioStreamPacketDescription: ...
    else:
        @classmethod
        def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> AudioStreamPacketDescription: ...
    def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def HasField(self, field_name: typing_extensions___Literal[u"dataByteSize",b"dataByteSize",u"startOffset",b"startOffset",u"variableFramesInPacket",b"variableFramesInPacket"]) -> builtin___bool: ...
    def ClearField(self, field_name: typing_extensions___Literal[u"dataByteSize",b"dataByteSize",u"startOffset",b"startOffset",u"variableFramesInPacket",b"variableFramesInPacket"]) -> None: ...

class AudioBuffer(google___protobuf___message___Message):
    DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
    packetCapacity = ... # type: builtin___int
    maximumPacketSize = ... # type: builtin___int
    packetCount = ... # type: builtin___int
    contents = ... # type: builtin___bytes

    @property
    def formatSettings(self) -> pyatv___mrp___protobuf___AudioFormatSettingsMessage_pb2___AudioFormatSettings: ...

    @property
    def packetDescriptions(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[AudioStreamPacketDescription]: ...

    def __init__(self,
        *,
        formatSettings : typing___Optional[pyatv___mrp___protobuf___AudioFormatSettingsMessage_pb2___AudioFormatSettings] = None,
        packetCapacity : typing___Optional[builtin___int] = None,
        maximumPacketSize : typing___Optional[builtin___int] = None,
        packetCount : typing___Optional[builtin___int] = None,
        contents : typing___Optional[builtin___bytes] = None,
        packetDescriptions : typing___Optional[typing___Iterable[AudioStreamPacketDescription]] = None,
        ) -> None: ...
    if sys.version_info >= (3,):
        @classmethod
        def FromString(cls, s: builtin___bytes) -> AudioBuffer: ...
    else:
        @classmethod
        def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> AudioBuffer: ...
    def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def HasField(self, field_name: typing_extensions___Literal[u"contents",b"contents",u"formatSettings",b"formatSettings",u"maximumPacketSize",b"maximumPacketSize",u"packetCapacity",b"packetCapacity",u"packetCount",b"packetCount"]) -> builtin___bool: ...
    def ClearField(self, field_name: typing_extensions___Literal[u"contents",b"contents",u"formatSettings",b"formatSettings",u"maximumPacketSize",b"maximumPacketSize",u"packetCapacity",b"packetCapacity",u"packetCount",b"packetCount",u"packetDescriptions",b"packetDescriptions"]) -> None: ...

class AudioTime(google___protobuf___message___Message):
    DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
    timestamp = ... # type: builtin___float
    sampleRate = ... # type: builtin___float

    def __init__(self,
        *,
        timestamp : typing___Optional[builtin___float] = None,
        sampleRate : typing___Optional[builtin___float] = None,
        ) -> None: ...
    if sys.version_info >= (3,):
        @classmethod
        def FromString(cls, s: builtin___bytes) -> AudioTime: ...
    else:
        @classmethod
        def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> AudioTime: ...
    def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def HasField(self, field_name: typing_extensions___Literal[u"sampleRate",b"sampleRate",u"timestamp",b"timestamp"]) -> builtin___bool: ...
    def ClearField(self, field_name: typing_extensions___Literal[u"sampleRate",b"sampleRate",u"timestamp",b"timestamp"]) -> None: ...

class AudioDataBlock(google___protobuf___message___Message):
    DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
    gain = ... # type: builtin___float

    @property
    def buffer(self) -> AudioBuffer: ...

    @property
    def time(self) -> AudioTime: ...

    def __init__(self,
        *,
        buffer : typing___Optional[AudioBuffer] = None,
        time : typing___Optional[AudioTime] = None,
        gain : typing___Optional[builtin___float] = None,
        ) -> None: ...
    if sys.version_info >= (3,):
        @classmethod
        def FromString(cls, s: builtin___bytes) -> AudioDataBlock: ...
    else:
        @classmethod
        def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> AudioDataBlock: ...
    def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def HasField(self, field_name: typing_extensions___Literal[u"buffer",b"buffer",u"gain",b"gain",u"time",b"time"]) -> builtin___bool: ...
    def ClearField(self, field_name: typing_extensions___Literal[u"buffer",b"buffer",u"gain",b"gain",u"time",b"time"]) -> None: ...

class SendVoiceInputMessage(google___protobuf___message___Message):
    DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

    @property
    def dataBlock(self) -> AudioDataBlock: ...

    def __init__(self,
        *,
        dataBlock : typing___Optional[AudioDataBlock] = None,
        ) -> None: ...
    if sys.version_info >= (3,):
        @classmethod
        def FromString(cls, s: builtin___bytes) -> SendVoiceInputMessage: ...
    else:
        @classmethod
        def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> SendVoiceInputMessage: ...
    def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def HasField(self, field_name: typing_extensions___Literal[u"dataBlock",b"dataBlock"]) -> builtin___bool: ...
    def ClearField(self, field_name: typing_extensions___Literal[u"dataBlock",b"dataBlock"]) -> None: ...

sendVoiceInputMessage = ... # type: google___protobuf___descriptor___FieldDescriptor
