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

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

from pyatv.mrp.protobuf.TransactionKey_pb2 import (
    TransactionKey as pyatv___mrp___protobuf___TransactionKey_pb2___TransactionKey,
)

from typing import (
    Optional as typing___Optional,
    Text as typing___Text,
)

from typing_extensions import (
    Literal as typing_extensions___Literal,
)


class TransactionPacket(google___protobuf___message___Message):
    DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
    packetData = ... # type: bytes
    identifier = ... # type: typing___Text
    totalLength = ... # type: int
    totalWritePosition = ... # type: int

    @property
    def key(self) -> pyatv___mrp___protobuf___TransactionKey_pb2___TransactionKey: ...

    def __init__(self,
        *,
        key : typing___Optional[pyatv___mrp___protobuf___TransactionKey_pb2___TransactionKey] = None,
        packetData : typing___Optional[bytes] = None,
        identifier : typing___Optional[typing___Text] = None,
        totalLength : typing___Optional[int] = None,
        totalWritePosition : typing___Optional[int] = None,
        ) -> None: ...
    @classmethod
    def FromString(cls, s: bytes) -> TransactionPacket: ...
    def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
    if sys.version_info >= (3,):
        def HasField(self, field_name: typing_extensions___Literal[u"identifier",u"key",u"packetData",u"totalLength",u"totalWritePosition"]) -> bool: ...
        def ClearField(self, field_name: typing_extensions___Literal[u"identifier",u"key",u"packetData",u"totalLength",u"totalWritePosition"]) -> None: ...
    else:
        def HasField(self, field_name: typing_extensions___Literal[u"identifier",b"identifier",u"key",b"key",u"packetData",b"packetData",u"totalLength",b"totalLength",u"totalWritePosition",b"totalWritePosition"]) -> bool: ...
        def ClearField(self, field_name: typing_extensions___Literal[u"identifier",b"identifier",u"key",b"key",u"packetData",b"packetData",u"totalLength",b"totalLength",u"totalWritePosition",b"totalWritePosition"]) -> None: ...
