From e330162a99d920b44c53ed6ec839dc0c71d9aa61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20St=C3=A5hl?= Date: Sat, 2 Nov 2024 07:49:21 +0100 Subject: [PATCH] cq: Re-generate protobuf messages Relates to #2529 --- .../mrp/protobuf/AudioFadeMessage_pb2.py | 4 +- .../mrp/protobuf/AudioFadeMessage_pb2.pyi | 20 +- .../protobuf/AudioFadeResponseMessage_pb2.py | 4 +- .../protobuf/AudioFadeResponseMessage_pb2.pyi | 16 +- .../AudioFormatSettingsMessage_pb2.py | 4 +- .../AudioFormatSettingsMessage_pb2.pyi | 16 +- .../ClientUpdatesConfigMessage_pb2.py | 4 +- .../ClientUpdatesConfigMessage_pb2.pyi | 24 +- .../protocols/mrp/protobuf/CommandInfo_pb2.py | 4 +- .../mrp/protobuf/CommandInfo_pb2.pyi | 167 ++++--- .../mrp/protobuf/CommandOptions_pb2.py | 4 +- .../mrp/protobuf/CommandOptions_pb2.pyi | 92 ++-- pyatv/protocols/mrp/protobuf/Common_pb2.py | 4 +- pyatv/protocols/mrp/protobuf/Common_pb2.pyi | 92 ++-- .../ConfigureConnectionMessage_pb2.py | 4 +- .../ConfigureConnectionMessage_pb2.pyi | 18 +- .../mrp/protobuf/ContentItemMetadata_pb2.py | 4 +- .../mrp/protobuf/ContentItemMetadata_pb2.pyi | 429 ++++++++++-------- .../protocols/mrp/protobuf/ContentItem_pb2.py | 4 +- .../mrp/protobuf/ContentItem_pb2.pyi | 82 ++-- .../mrp/protobuf/CryptoPairingMessage_pb2.py | 4 +- .../mrp/protobuf/CryptoPairingMessage_pb2.pyi | 26 +- .../mrp/protobuf/DeviceInfoMessage_pb2.py | 4 +- .../mrp/protobuf/DeviceInfoMessage_pb2.pyi | 202 +++++---- .../mrp/protobuf/GenericMessage_pb2.py | 4 +- .../mrp/protobuf/GenericMessage_pb2.pyi | 20 +- .../protobuf/GetKeyboardSessionMessage_pb2.py | 4 +- .../GetKeyboardSessionMessage_pb2.pyi | 11 +- .../GetRemoteTextInputSessionMessage_pb2.py | 4 +- .../GetRemoteTextInputSessionMessage_pb2.pyi | 10 +- .../mrp/protobuf/GetVolumeMessage_pb2.py | 4 +- .../mrp/protobuf/GetVolumeMessage_pb2.pyi | 18 +- .../protobuf/GetVolumeResultMessage_pb2.py | 4 +- .../protobuf/GetVolumeResultMessage_pb2.pyi | 16 +- .../mrp/protobuf/KeyboardMessage_pb2.py | 4 +- .../mrp/protobuf/KeyboardMessage_pb2.pyi | 139 +++--- .../mrp/protobuf/LanguageOption_pb2.py | 4 +- .../mrp/protobuf/LanguageOption_pb2.pyi | 33 +- .../ModifyOutputContextRequestMessage_pb2.py | 4 +- .../ModifyOutputContextRequestMessage_pb2.pyi | 61 ++- .../mrp/protobuf/NotificationMessage_pb2.py | 4 +- .../mrp/protobuf/NotificationMessage_pb2.pyi | 19 +- .../mrp/protobuf/NowPlayingClient_pb2.py | 4 +- .../mrp/protobuf/NowPlayingClient_pb2.pyi | 38 +- .../mrp/protobuf/NowPlayingInfo_pb2.py | 4 +- .../mrp/protobuf/NowPlayingInfo_pb2.pyi | 60 +-- .../mrp/protobuf/NowPlayingPlayer_pb2.py | 4 +- .../mrp/protobuf/NowPlayingPlayer_pb2.pyi | 34 +- .../OriginClientPropertiesMessage_pb2.py | 4 +- .../OriginClientPropertiesMessage_pb2.pyi | 16 +- pyatv/protocols/mrp/protobuf/Origin_pb2.py | 4 +- pyatv/protocols/mrp/protobuf/Origin_pb2.pyi | 40 +- .../protobuf/PlaybackQueueCapabilities_pb2.py | 4 +- .../PlaybackQueueCapabilities_pb2.pyi | 20 +- .../mrp/protobuf/PlaybackQueueContext_pb2.py | 4 +- .../mrp/protobuf/PlaybackQueueContext_pb2.pyi | 18 +- .../PlaybackQueueRequestMessage_pb2.py | 4 +- .../PlaybackQueueRequestMessage_pb2.pyi | 61 +-- .../mrp/protobuf/PlaybackQueue_pb2.py | 4 +- .../mrp/protobuf/PlaybackQueue_pb2.pyi | 35 +- .../PlayerClientPropertiesMessage_pb2.py | 4 +- .../PlayerClientPropertiesMessage_pb2.pyi | 20 +- .../protocols/mrp/protobuf/PlayerPath_pb2.py | 4 +- .../protocols/mrp/protobuf/PlayerPath_pb2.pyi | 20 +- .../mrp/protobuf/ProtocolMessage_pb2.py | 4 +- .../mrp/protobuf/ProtocolMessage_pb2.pyi | 69 +-- ...isterForGameControllerEventsMessage_pb2.py | 4 +- ...sterForGameControllerEventsMessage_pb2.pyi | 28 +- .../protobuf/RegisterHIDDeviceMessage_pb2.py | 4 +- .../protobuf/RegisterHIDDeviceMessage_pb2.pyi | 16 +- .../RegisterHIDDeviceResultMessage_pb2.py | 4 +- .../RegisterHIDDeviceResultMessage_pb2.pyi | 18 +- .../RegisterVoiceInputDeviceMessage_pb2.py | 4 +- .../RegisterVoiceInputDeviceMessage_pb2.pyi | 16 +- ...sterVoiceInputDeviceResponseMessage_pb2.py | 4 +- ...terVoiceInputDeviceResponseMessage_pb2.pyi | 18 +- .../protobuf/RemoteTextInputMessage_pb2.py | 4 +- .../protobuf/RemoteTextInputMessage_pb2.pyi | 20 +- .../mrp/protobuf/RemoveClientMessage_pb2.py | 4 +- .../mrp/protobuf/RemoveClientMessage_pb2.pyi | 16 +- .../protobuf/RemoveEndpointsMessage_pb2.py | 4 +- .../protobuf/RemoveEndpointsMessage_pb2.pyi | 17 +- .../RemoveOutputDevicesMessage_pb2.py | 4 +- .../RemoveOutputDevicesMessage_pb2.pyi | 23 +- .../mrp/protobuf/RemovePlayerMessage_pb2.py | 4 +- .../mrp/protobuf/RemovePlayerMessage_pb2.pyi | 16 +- .../protobuf/SendButtonEventMessage_pb2.py | 4 +- .../protobuf/SendButtonEventMessage_pb2.pyi | 20 +- .../mrp/protobuf/SendCommandMessage_pb2.py | 4 +- .../mrp/protobuf/SendCommandMessage_pb2.pyi | 20 +- .../protobuf/SendCommandResultMessage_pb2.py | 4 +- .../protobuf/SendCommandResultMessage_pb2.pyi | 136 +++--- .../mrp/protobuf/SendHIDEventMessage_pb2.py | 4 +- .../mrp/protobuf/SendHIDEventMessage_pb2.pyi | 17 +- .../SendPackedVirtualTouchEventMessage_pb2.py | 4 +- ...SendPackedVirtualTouchEventMessage_pb2.pyi | 28 +- .../mrp/protobuf/SendVoiceInputMessage_pb2.py | 4 +- .../protobuf/SendVoiceInputMessage_pb2.pyi | 99 ++-- .../mrp/protobuf/SetArtworkMessage_pb2.py | 4 +- .../mrp/protobuf/SetArtworkMessage_pb2.pyi | 16 +- .../protobuf/SetConnectionStateMessage_pb2.py | 4 +- .../SetConnectionStateMessage_pb2.pyi | 28 +- .../SetDefaultSupportedCommandsMessage_pb2.py | 4 +- ...SetDefaultSupportedCommandsMessage_pb2.pyi | 43 +- .../protobuf/SetDiscoveryModeMessage_pb2.py | 4 +- .../protobuf/SetDiscoveryModeMessage_pb2.pyi | 18 +- .../mrp/protobuf/SetHiliteModeMessage_pb2.py | 4 +- .../mrp/protobuf/SetHiliteModeMessage_pb2.pyi | 16 +- .../SetNowPlayingClientMessage_pb2.py | 4 +- .../SetNowPlayingClientMessage_pb2.pyi | 16 +- .../SetNowPlayingPlayerMessage_pb2.py | 4 +- .../SetNowPlayingPlayerMessage_pb2.pyi | 16 +- .../protobuf/SetRecordingStateMessage_pb2.py | 4 +- .../protobuf/SetRecordingStateMessage_pb2.pyi | 28 +- .../mrp/protobuf/SetStateMessage_pb2.py | 4 +- .../mrp/protobuf/SetStateMessage_pb2.pyi | 42 +- .../mrp/protobuf/SetVolumeMessage_pb2.py | 4 +- .../mrp/protobuf/SetVolumeMessage_pb2.pyi | 20 +- .../mrp/protobuf/SupportedCommands_pb2.py | 4 +- .../mrp/protobuf/SupportedCommands_pb2.pyi | 15 +- .../mrp/protobuf/TextInputMessage_pb2.py | 4 +- .../mrp/protobuf/TextInputMessage_pb2.pyi | 42 +- .../mrp/protobuf/TransactionKey_pb2.py | 4 +- .../mrp/protobuf/TransactionKey_pb2.pyi | 20 +- .../mrp/protobuf/TransactionMessage_pb2.py | 4 +- .../mrp/protobuf/TransactionMessage_pb2.pyi | 20 +- .../mrp/protobuf/TransactionPacket_pb2.py | 4 +- .../mrp/protobuf/TransactionPacket_pb2.pyi | 30 +- .../mrp/protobuf/TransactionPackets_pb2.py | 4 +- .../mrp/protobuf/TransactionPackets_pb2.pyi | 15 +- .../mrp/protobuf/UpdateClientMessage_pb2.py | 4 +- .../mrp/protobuf/UpdateClientMessage_pb2.pyi | 16 +- .../UpdateContentItemArtworkMessage_pb2.py | 4 +- .../UpdateContentItemArtworkMessage_pb2.pyi | 19 +- .../protobuf/UpdateContentItemMessage_pb2.py | 4 +- .../protobuf/UpdateContentItemMessage_pb2.pyi | 19 +- .../protobuf/UpdateEndPointsMessage_pb2.py | 4 +- .../protobuf/UpdateEndPointsMessage_pb2.pyi | 54 ++- .../protobuf/UpdateOutputDeviceMessage_pb2.py | 4 +- .../UpdateOutputDeviceMessage_pb2.pyi | 237 +++++----- .../mrp/protobuf/UpdatePlayerPath_pb2.py | 4 +- .../mrp/protobuf/UpdatePlayerPath_pb2.pyi | 16 +- ...VirtualTouchDeviceDescriptorMessage_pb2.py | 4 +- ...irtualTouchDeviceDescriptorMessage_pb2.pyi | 22 +- .../VoiceInputDeviceDescriptorMessage_pb2.py | 4 +- .../VoiceInputDeviceDescriptorMessage_pb2.pyi | 19 +- .../VolumeControlAvailabilityMessage_pb2.py | 4 +- .../VolumeControlAvailabilityMessage_pb2.pyi | 37 +- ...ControlCapabilitiesDidChangeMessage_pb2.py | 4 +- ...ontrolCapabilitiesDidChangeMessage_pb2.pyi | 24 +- .../protobuf/VolumeDidChangeMessage_pb2.py | 4 +- .../protobuf/VolumeDidChangeMessage_pb2.pyi | 24 +- .../mrp/protobuf/WakeDeviceMessage_pb2.py | 4 +- .../mrp/protobuf/WakeDeviceMessage_pb2.pyi | 10 +- scripts/protobuf.py | 2 +- 155 files changed, 2103 insertions(+), 1539 deletions(-) diff --git a/pyatv/protocols/mrp/protobuf/AudioFadeMessage_pb2.py b/pyatv/protocols/mrp/protobuf/AudioFadeMessage_pb2.py index 817b79732..eb1472f36 100644 --- a/pyatv/protocols/mrp/protobuf/AudioFadeMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/AudioFadeMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/AudioFadeMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/AudioFadeMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/AudioFadeMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/AudioFadeMessage_pb2.pyi index 951ee54b3..0a7a3cb38 100644 --- a/pyatv/protocols/mrp/protobuf/AudioFadeMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/AudioFadeMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,24 +10,27 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class AudioFadeMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PLAYERPATH_FIELD_NUMBER: builtins.int FADETYPE_FIELD_NUMBER: builtins.int + fadeType: builtins.int @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - fadeType: builtins.int - def __init__(self, + def __init__( + self, *, - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - fadeType: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["fadeType",b"fadeType","playerPath",b"playerPath"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["fadeType",b"fadeType","playerPath",b"playerPath"]) -> None: ... + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + fadeType: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["fadeType", b"fadeType", "playerPath", b"playerPath"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["fadeType", b"fadeType", "playerPath", b"playerPath"]) -> None: ... + global___AudioFadeMessage = AudioFadeMessage AUDIOFADEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.py b/pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.py index a465bfd27..1cd97e158 100644 --- a/pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.pyi index de23b65c2..3dad932fe 100644 --- a/pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/AudioFadeResponseMessage_pb2.pyi @@ -2,26 +2,30 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class AudioFadeResponseMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + FADEDURATION_FIELD_NUMBER: builtins.int fadeDuration: builtins.int - def __init__(self, + def __init__( + self, *, - fadeDuration: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["fadeDuration",b"fadeDuration"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["fadeDuration",b"fadeDuration"]) -> None: ... + fadeDuration: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["fadeDuration", b"fadeDuration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["fadeDuration", b"fadeDuration"]) -> None: ... + global___AudioFadeResponseMessage = AudioFadeResponseMessage AUDIOFADERESPONSEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/AudioFormatSettingsMessage_pb2.py b/pyatv/protocols/mrp/protobuf/AudioFormatSettingsMessage_pb2.py index 43edd231f..8dcfda9ae 100644 --- a/pyatv/protocols/mrp/protobuf/AudioFormatSettingsMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/AudioFormatSettingsMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/AudioFormatSettingsMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/AudioFormatSettingsMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/AudioFormatSettingsMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/AudioFormatSettingsMessage_pb2.pyi index 570c518e0..07ec8cef6 100644 --- a/pyatv/protocols/mrp/protobuf/AudioFormatSettingsMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/AudioFormatSettingsMessage_pb2.pyi @@ -2,22 +2,26 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class AudioFormatSettings(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + FORMATSETTINGSPLISTDATA_FIELD_NUMBER: builtins.int formatSettingsPlistData: builtins.bytes - def __init__(self, + def __init__( + self, *, - formatSettingsPlistData: typing.Optional[builtins.bytes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["formatSettingsPlistData",b"formatSettingsPlistData"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["formatSettingsPlistData",b"formatSettingsPlistData"]) -> None: ... + formatSettingsPlistData: builtins.bytes | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["formatSettingsPlistData", b"formatSettingsPlistData"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["formatSettingsPlistData", b"formatSettingsPlistData"]) -> None: ... + global___AudioFormatSettings = AudioFormatSettings diff --git a/pyatv/protocols/mrp/protobuf/ClientUpdatesConfigMessage_pb2.py b/pyatv/protocols/mrp/protobuf/ClientUpdatesConfigMessage_pb2.py index 505778eaf..52104d931 100644 --- a/pyatv/protocols/mrp/protobuf/ClientUpdatesConfigMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/ClientUpdatesConfigMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/ClientUpdatesConfigMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/ClientUpdatesConfigMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/ClientUpdatesConfigMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/ClientUpdatesConfigMessage_pb2.pyi index 18894654b..ff8634c55 100644 --- a/pyatv/protocols/mrp/protobuf/ClientUpdatesConfigMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/ClientUpdatesConfigMessage_pb2.pyi @@ -2,18 +2,20 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ClientUpdatesConfigMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ARTWORKUPDATES_FIELD_NUMBER: builtins.int NOWPLAYINGUPDATES_FIELD_NUMBER: builtins.int VOLUMEUPDATES_FIELD_NUMBER: builtins.int @@ -24,16 +26,18 @@ class ClientUpdatesConfigMessage(google.protobuf.message.Message): volumeUpdates: builtins.bool keyboardUpdates: builtins.bool outputDeviceUpdates: builtins.bool - def __init__(self, + def __init__( + self, *, - artworkUpdates: typing.Optional[builtins.bool] = ..., - nowPlayingUpdates: typing.Optional[builtins.bool] = ..., - volumeUpdates: typing.Optional[builtins.bool] = ..., - keyboardUpdates: typing.Optional[builtins.bool] = ..., - outputDeviceUpdates: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["artworkUpdates",b"artworkUpdates","keyboardUpdates",b"keyboardUpdates","nowPlayingUpdates",b"nowPlayingUpdates","outputDeviceUpdates",b"outputDeviceUpdates","volumeUpdates",b"volumeUpdates"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["artworkUpdates",b"artworkUpdates","keyboardUpdates",b"keyboardUpdates","nowPlayingUpdates",b"nowPlayingUpdates","outputDeviceUpdates",b"outputDeviceUpdates","volumeUpdates",b"volumeUpdates"]) -> None: ... + artworkUpdates: builtins.bool | None = ..., + nowPlayingUpdates: builtins.bool | None = ..., + volumeUpdates: builtins.bool | None = ..., + keyboardUpdates: builtins.bool | None = ..., + outputDeviceUpdates: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["artworkUpdates", b"artworkUpdates", "keyboardUpdates", b"keyboardUpdates", "nowPlayingUpdates", b"nowPlayingUpdates", "outputDeviceUpdates", b"outputDeviceUpdates", "volumeUpdates", b"volumeUpdates"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["artworkUpdates", b"artworkUpdates", "keyboardUpdates", b"keyboardUpdates", "nowPlayingUpdates", b"nowPlayingUpdates", "outputDeviceUpdates", b"outputDeviceUpdates", "volumeUpdates", b"volumeUpdates"]) -> None: ... + global___ClientUpdatesConfigMessage = ClientUpdatesConfigMessage CLIENTUPDATESCONFIGMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/CommandInfo_pb2.py b/pyatv/protocols/mrp/protobuf/CommandInfo_pb2.py index 0b18dbef9..9b90ff7f8 100644 --- a/pyatv/protocols/mrp/protobuf/CommandInfo_pb2.py +++ b/pyatv/protocols/mrp/protobuf/CommandInfo_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/CommandInfo.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/CommandInfo.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/CommandInfo_pb2.pyi b/pyatv/protocols/mrp/protobuf/CommandInfo_pb2.pyi index 9782506cc..59ff3d24a 100644 --- a/pyatv/protocols/mrp/protobuf/CommandInfo_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/CommandInfo_pb2.pyi @@ -2,20 +2,28 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import pyatv.protocols.mrp.protobuf.Common_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _Command: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _CommandEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Command.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: _Command.ValueType # 0 @@ -74,8 +82,8 @@ class _CommandEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTy DiscardPlaybackSession: _Command.ValueType # 62 Reshuffle: _Command.ValueType # 63 ChangeQueueEndAction: _Command.ValueType # 135 -class Command(_Command, metaclass=_CommandEnumTypeWrapper): - pass + +class Command(_Command, metaclass=_CommandEnumTypeWrapper): ... Unknown: Command.ValueType # 0 Play: Command.ValueType # 1 @@ -135,69 +143,82 @@ Reshuffle: Command.ValueType # 63 ChangeQueueEndAction: Command.ValueType # 135 global___Command = Command - +@typing.final class QueueEndAction(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[QueueEndAction._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ClearAction: QueueEndAction._Enum.ValueType # 0 Reset: QueueEndAction._Enum.ValueType # 2 AutoPlay: QueueEndAction._Enum.ValueType # 3 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... ClearAction: QueueEndAction.Enum.ValueType # 0 Reset: QueueEndAction.Enum.ValueType # 2 AutoPlay: QueueEndAction.Enum.ValueType # 3 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___QueueEndAction = QueueEndAction +@typing.final class DisableReason(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DisableReason._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: DisableReason._Enum.ValueType # 0 AdPlayback: DisableReason._Enum.ValueType # 1 SkipLimitReached: DisableReason._Enum.ValueType # 2 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Unknown: DisableReason.Enum.ValueType # 0 AdPlayback: DisableReason.Enum.ValueType # 1 SkipLimitReached: DisableReason.Enum.ValueType # 2 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___DisableReason = DisableReason +@typing.final class PreloadedPlaybackSessionInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PLAYBACKSESSIONIDENTIFIER_FIELD_NUMBER: builtins.int PLAYBACKSESSIONREVISION_FIELD_NUMBER: builtins.int PLAYBACKSESSIONPRIORITY_FIELD_NUMBER: builtins.int - playbackSessionIdentifier: typing.Text - playbackSessionRevision: typing.Text + playbackSessionIdentifier: builtins.str + playbackSessionRevision: builtins.str playbackSessionPriority: builtins.int - def __init__(self, + def __init__( + self, *, - playbackSessionIdentifier: typing.Optional[typing.Text] = ..., - playbackSessionRevision: typing.Optional[typing.Text] = ..., - playbackSessionPriority: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["playbackSessionIdentifier",b"playbackSessionIdentifier","playbackSessionPriority",b"playbackSessionPriority","playbackSessionRevision",b"playbackSessionRevision"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["playbackSessionIdentifier",b"playbackSessionIdentifier","playbackSessionPriority",b"playbackSessionPriority","playbackSessionRevision",b"playbackSessionRevision"]) -> None: ... + playbackSessionIdentifier: builtins.str | None = ..., + playbackSessionRevision: builtins.str | None = ..., + playbackSessionPriority: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["playbackSessionIdentifier", b"playbackSessionIdentifier", "playbackSessionPriority", b"playbackSessionPriority", "playbackSessionRevision", b"playbackSessionRevision"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["playbackSessionIdentifier", b"playbackSessionIdentifier", "playbackSessionPriority", b"playbackSessionPriority", "playbackSessionRevision", b"playbackSessionRevision"]) -> None: ... + global___PreloadedPlaybackSessionInfo = PreloadedPlaybackSessionInfo +@typing.final class CommandInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMAND_FIELD_NUMBER: builtins.int ENABLED_FIELD_NUMBER: builtins.int ACTIVE_FIELD_NUMBER: builtins.int @@ -230,14 +251,10 @@ class CommandInfo(google.protobuf.message.Message): command: global___Command.ValueType enabled: builtins.bool active: builtins.bool - @property - def preferredIntervals(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... - localizedTitle: typing.Text + localizedTitle: builtins.str minimumRating: builtins.float maximumRating: builtins.float - @property - def supportedRates(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... - localizedShortTitle: typing.Text + localizedShortTitle: builtins.str repeatMode: pyatv.protocols.mrp.protobuf.Common_pb2.RepeatMode.Enum.ValueType shuffleMode: pyatv.protocols.mrp.protobuf.Common_pb2.ShuffleMode.Enum.ValueType presentationStyle: builtins.int @@ -245,58 +262,64 @@ class CommandInfo(google.protobuf.message.Message): numAvailableSkips: builtins.int skipFrequency: builtins.int canScrub: builtins.int + supportsSharedQueue: builtins.bool + upNextItemCount: builtins.int + preferredPlaybackRate: builtins.float + playbackSessionIdentifier: builtins.str + currentQueueEndAction: global___QueueEndAction.Enum.ValueType + disableReason: global___DisableReason.Enum.ValueType + @property + def preferredIntervals(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... + @property + def supportedRates(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... @property def supportedPlaybackQueueTypes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... @property - def supportedCustomQueueIdentifiers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def supportedCustomQueueIdentifiers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property def supportedInsertionPositions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - supportsSharedQueue: builtins.bool - upNextItemCount: builtins.int - preferredPlaybackRate: builtins.float @property - def supportedPlaybackSessionTypes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def supportedPlaybackSessionTypes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def currentPlaybackSessionTypes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - playbackSessionIdentifier: typing.Text - currentQueueEndAction: global___QueueEndAction.Enum.ValueType + def currentPlaybackSessionTypes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property def supportedEndQueueActions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___QueueEndAction.Enum.ValueType]: ... - disableReason: global___DisableReason.Enum.ValueType @property def supportedPlaybackSessionIdentifiers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PreloadedPlaybackSessionInfo]: ... - def __init__(self, + def __init__( + self, *, - command: typing.Optional[global___Command.ValueType] = ..., - enabled: typing.Optional[builtins.bool] = ..., - active: typing.Optional[builtins.bool] = ..., - preferredIntervals: typing.Optional[typing.Iterable[builtins.float]] = ..., - localizedTitle: typing.Optional[typing.Text] = ..., - minimumRating: typing.Optional[builtins.float] = ..., - maximumRating: typing.Optional[builtins.float] = ..., - supportedRates: typing.Optional[typing.Iterable[builtins.float]] = ..., - localizedShortTitle: typing.Optional[typing.Text] = ..., - repeatMode: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.RepeatMode.Enum.ValueType] = ..., - shuffleMode: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.ShuffleMode.Enum.ValueType] = ..., - presentationStyle: typing.Optional[builtins.int] = ..., - skipInterval: typing.Optional[builtins.int] = ..., - numAvailableSkips: typing.Optional[builtins.int] = ..., - skipFrequency: typing.Optional[builtins.int] = ..., - canScrub: typing.Optional[builtins.int] = ..., - supportedPlaybackQueueTypes: typing.Optional[typing.Iterable[builtins.int]] = ..., - supportedCustomQueueIdentifiers: typing.Optional[typing.Iterable[typing.Text]] = ..., - supportedInsertionPositions: typing.Optional[typing.Iterable[builtins.int]] = ..., - supportsSharedQueue: typing.Optional[builtins.bool] = ..., - upNextItemCount: typing.Optional[builtins.int] = ..., - preferredPlaybackRate: typing.Optional[builtins.float] = ..., - supportedPlaybackSessionTypes: typing.Optional[typing.Iterable[typing.Text]] = ..., - currentPlaybackSessionTypes: typing.Optional[typing.Iterable[typing.Text]] = ..., - playbackSessionIdentifier: typing.Optional[typing.Text] = ..., - currentQueueEndAction: typing.Optional[global___QueueEndAction.Enum.ValueType] = ..., - supportedEndQueueActions: typing.Optional[typing.Iterable[global___QueueEndAction.Enum.ValueType]] = ..., - disableReason: typing.Optional[global___DisableReason.Enum.ValueType] = ..., - supportedPlaybackSessionIdentifiers: typing.Optional[typing.Iterable[global___PreloadedPlaybackSessionInfo]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["active",b"active","canScrub",b"canScrub","command",b"command","currentQueueEndAction",b"currentQueueEndAction","disableReason",b"disableReason","enabled",b"enabled","localizedShortTitle",b"localizedShortTitle","localizedTitle",b"localizedTitle","maximumRating",b"maximumRating","minimumRating",b"minimumRating","numAvailableSkips",b"numAvailableSkips","playbackSessionIdentifier",b"playbackSessionIdentifier","preferredPlaybackRate",b"preferredPlaybackRate","presentationStyle",b"presentationStyle","repeatMode",b"repeatMode","shuffleMode",b"shuffleMode","skipFrequency",b"skipFrequency","skipInterval",b"skipInterval","supportsSharedQueue",b"supportsSharedQueue","upNextItemCount",b"upNextItemCount"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["active",b"active","canScrub",b"canScrub","command",b"command","currentPlaybackSessionTypes",b"currentPlaybackSessionTypes","currentQueueEndAction",b"currentQueueEndAction","disableReason",b"disableReason","enabled",b"enabled","localizedShortTitle",b"localizedShortTitle","localizedTitle",b"localizedTitle","maximumRating",b"maximumRating","minimumRating",b"minimumRating","numAvailableSkips",b"numAvailableSkips","playbackSessionIdentifier",b"playbackSessionIdentifier","preferredIntervals",b"preferredIntervals","preferredPlaybackRate",b"preferredPlaybackRate","presentationStyle",b"presentationStyle","repeatMode",b"repeatMode","shuffleMode",b"shuffleMode","skipFrequency",b"skipFrequency","skipInterval",b"skipInterval","supportedCustomQueueIdentifiers",b"supportedCustomQueueIdentifiers","supportedEndQueueActions",b"supportedEndQueueActions","supportedInsertionPositions",b"supportedInsertionPositions","supportedPlaybackQueueTypes",b"supportedPlaybackQueueTypes","supportedPlaybackSessionIdentifiers",b"supportedPlaybackSessionIdentifiers","supportedPlaybackSessionTypes",b"supportedPlaybackSessionTypes","supportedRates",b"supportedRates","supportsSharedQueue",b"supportsSharedQueue","upNextItemCount",b"upNextItemCount"]) -> None: ... + command: global___Command.ValueType | None = ..., + enabled: builtins.bool | None = ..., + active: builtins.bool | None = ..., + preferredIntervals: collections.abc.Iterable[builtins.float] | None = ..., + localizedTitle: builtins.str | None = ..., + minimumRating: builtins.float | None = ..., + maximumRating: builtins.float | None = ..., + supportedRates: collections.abc.Iterable[builtins.float] | None = ..., + localizedShortTitle: builtins.str | None = ..., + repeatMode: pyatv.protocols.mrp.protobuf.Common_pb2.RepeatMode.Enum.ValueType | None = ..., + shuffleMode: pyatv.protocols.mrp.protobuf.Common_pb2.ShuffleMode.Enum.ValueType | None = ..., + presentationStyle: builtins.int | None = ..., + skipInterval: builtins.int | None = ..., + numAvailableSkips: builtins.int | None = ..., + skipFrequency: builtins.int | None = ..., + canScrub: builtins.int | None = ..., + supportedPlaybackQueueTypes: collections.abc.Iterable[builtins.int] | None = ..., + supportedCustomQueueIdentifiers: collections.abc.Iterable[builtins.str] | None = ..., + supportedInsertionPositions: collections.abc.Iterable[builtins.int] | None = ..., + supportsSharedQueue: builtins.bool | None = ..., + upNextItemCount: builtins.int | None = ..., + preferredPlaybackRate: builtins.float | None = ..., + supportedPlaybackSessionTypes: collections.abc.Iterable[builtins.str] | None = ..., + currentPlaybackSessionTypes: collections.abc.Iterable[builtins.str] | None = ..., + playbackSessionIdentifier: builtins.str | None = ..., + currentQueueEndAction: global___QueueEndAction.Enum.ValueType | None = ..., + supportedEndQueueActions: collections.abc.Iterable[global___QueueEndAction.Enum.ValueType] | None = ..., + disableReason: global___DisableReason.Enum.ValueType | None = ..., + supportedPlaybackSessionIdentifiers: collections.abc.Iterable[global___PreloadedPlaybackSessionInfo] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["active", b"active", "canScrub", b"canScrub", "command", b"command", "currentQueueEndAction", b"currentQueueEndAction", "disableReason", b"disableReason", "enabled", b"enabled", "localizedShortTitle", b"localizedShortTitle", "localizedTitle", b"localizedTitle", "maximumRating", b"maximumRating", "minimumRating", b"minimumRating", "numAvailableSkips", b"numAvailableSkips", "playbackSessionIdentifier", b"playbackSessionIdentifier", "preferredPlaybackRate", b"preferredPlaybackRate", "presentationStyle", b"presentationStyle", "repeatMode", b"repeatMode", "shuffleMode", b"shuffleMode", "skipFrequency", b"skipFrequency", "skipInterval", b"skipInterval", "supportsSharedQueue", b"supportsSharedQueue", "upNextItemCount", b"upNextItemCount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["active", b"active", "canScrub", b"canScrub", "command", b"command", "currentPlaybackSessionTypes", b"currentPlaybackSessionTypes", "currentQueueEndAction", b"currentQueueEndAction", "disableReason", b"disableReason", "enabled", b"enabled", "localizedShortTitle", b"localizedShortTitle", "localizedTitle", b"localizedTitle", "maximumRating", b"maximumRating", "minimumRating", b"minimumRating", "numAvailableSkips", b"numAvailableSkips", "playbackSessionIdentifier", b"playbackSessionIdentifier", "preferredIntervals", b"preferredIntervals", "preferredPlaybackRate", b"preferredPlaybackRate", "presentationStyle", b"presentationStyle", "repeatMode", b"repeatMode", "shuffleMode", b"shuffleMode", "skipFrequency", b"skipFrequency", "skipInterval", b"skipInterval", "supportedCustomQueueIdentifiers", b"supportedCustomQueueIdentifiers", "supportedEndQueueActions", b"supportedEndQueueActions", "supportedInsertionPositions", b"supportedInsertionPositions", "supportedPlaybackQueueTypes", b"supportedPlaybackQueueTypes", "supportedPlaybackSessionIdentifiers", b"supportedPlaybackSessionIdentifiers", "supportedPlaybackSessionTypes", b"supportedPlaybackSessionTypes", "supportedRates", b"supportedRates", "supportsSharedQueue", b"supportsSharedQueue", "upNextItemCount", b"upNextItemCount"]) -> None: ... + global___CommandInfo = CommandInfo diff --git a/pyatv/protocols/mrp/protobuf/CommandOptions_pb2.py b/pyatv/protocols/mrp/protobuf/CommandOptions_pb2.py index 54e4e72df..af8c43279 100644 --- a/pyatv/protocols/mrp/protobuf/CommandOptions_pb2.py +++ b/pyatv/protocols/mrp/protobuf/CommandOptions_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/CommandOptions.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/CommandOptions.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/CommandOptions_pb2.pyi b/pyatv/protocols/mrp/protobuf/CommandOptions_pb2.pyi index eaf530705..fe86894b0 100644 --- a/pyatv/protocols/mrp/protobuf/CommandOptions_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/CommandOptions_pb2.pyi @@ -2,17 +2,19 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message import pyatv.protocols.mrp.protobuf.Common_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class CommandOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + SOURCEID_FIELD_NUMBER: builtins.int MEDIATYPE_FIELD_NUMBER: builtins.int EXTERNALPLAYERCOMMAND_FIELD_NUMBER: builtins.int @@ -43,8 +45,8 @@ class CommandOptions(google.protobuf.message.Message): INSERTAFTERCONTENTITEMID_FIELD_NUMBER: builtins.int NOWPLAYINGCONTENTITEMID_FIELD_NUMBER: builtins.int REPLACEINTENT_FIELD_NUMBER: builtins.int - sourceId: typing.Text - mediaType: typing.Text + sourceId: builtins.str + mediaType: builtins.str externalPlayerCommand: builtins.bool skipInterval: builtins.float playbackRate: builtins.float @@ -55,57 +57,59 @@ class CommandOptions(google.protobuf.message.Message): shuffleMode: pyatv.protocols.mrp.protobuf.Common_pb2.ShuffleMode.Enum.ValueType trackID: builtins.int radioStationID: builtins.int - radioStationHash: typing.Text + radioStationHash: builtins.str systemAppPlaybackQueueData: builtins.bytes - destinationAppDisplayID: typing.Text + destinationAppDisplayID: builtins.str sendOptions: builtins.int requestDefermentToPlaybackQueuePosition: builtins.bool - contextID: typing.Text + contextID: builtins.str shouldOverrideManuallyCuratedQueue: builtins.bool - stationURL: typing.Text + stationURL: builtins.str shouldBeginRadioPlayback: builtins.bool playbackQueueInsertionPosition: builtins.int - contentItemID: typing.Text + contentItemID: builtins.str playbackQueueOffset: builtins.int playbackQueueDestinationOffset: builtins.int languageOption: builtins.bytes playbackQueueContext: builtins.bytes - insertAfterContentItemID: typing.Text - nowPlayingContentItemID: typing.Text + insertAfterContentItemID: builtins.str + nowPlayingContentItemID: builtins.str replaceIntent: builtins.int - def __init__(self, + def __init__( + self, *, - sourceId: typing.Optional[typing.Text] = ..., - mediaType: typing.Optional[typing.Text] = ..., - externalPlayerCommand: typing.Optional[builtins.bool] = ..., - skipInterval: typing.Optional[builtins.float] = ..., - playbackRate: typing.Optional[builtins.float] = ..., - rating: typing.Optional[builtins.float] = ..., - negative: typing.Optional[builtins.bool] = ..., - playbackPosition: typing.Optional[builtins.float] = ..., - repeatMode: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.RepeatMode.Enum.ValueType] = ..., - shuffleMode: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.ShuffleMode.Enum.ValueType] = ..., - trackID: typing.Optional[builtins.int] = ..., - radioStationID: typing.Optional[builtins.int] = ..., - radioStationHash: typing.Optional[typing.Text] = ..., - systemAppPlaybackQueueData: typing.Optional[builtins.bytes] = ..., - destinationAppDisplayID: typing.Optional[typing.Text] = ..., - sendOptions: typing.Optional[builtins.int] = ..., - requestDefermentToPlaybackQueuePosition: typing.Optional[builtins.bool] = ..., - contextID: typing.Optional[typing.Text] = ..., - shouldOverrideManuallyCuratedQueue: typing.Optional[builtins.bool] = ..., - stationURL: typing.Optional[typing.Text] = ..., - shouldBeginRadioPlayback: typing.Optional[builtins.bool] = ..., - playbackQueueInsertionPosition: typing.Optional[builtins.int] = ..., - contentItemID: typing.Optional[typing.Text] = ..., - playbackQueueOffset: typing.Optional[builtins.int] = ..., - playbackQueueDestinationOffset: typing.Optional[builtins.int] = ..., - languageOption: typing.Optional[builtins.bytes] = ..., - playbackQueueContext: typing.Optional[builtins.bytes] = ..., - insertAfterContentItemID: typing.Optional[typing.Text] = ..., - nowPlayingContentItemID: typing.Optional[typing.Text] = ..., - replaceIntent: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["contentItemID",b"contentItemID","contextID",b"contextID","destinationAppDisplayID",b"destinationAppDisplayID","externalPlayerCommand",b"externalPlayerCommand","insertAfterContentItemID",b"insertAfterContentItemID","languageOption",b"languageOption","mediaType",b"mediaType","negative",b"negative","nowPlayingContentItemID",b"nowPlayingContentItemID","playbackPosition",b"playbackPosition","playbackQueueContext",b"playbackQueueContext","playbackQueueDestinationOffset",b"playbackQueueDestinationOffset","playbackQueueInsertionPosition",b"playbackQueueInsertionPosition","playbackQueueOffset",b"playbackQueueOffset","playbackRate",b"playbackRate","radioStationHash",b"radioStationHash","radioStationID",b"radioStationID","rating",b"rating","repeatMode",b"repeatMode","replaceIntent",b"replaceIntent","requestDefermentToPlaybackQueuePosition",b"requestDefermentToPlaybackQueuePosition","sendOptions",b"sendOptions","shouldBeginRadioPlayback",b"shouldBeginRadioPlayback","shouldOverrideManuallyCuratedQueue",b"shouldOverrideManuallyCuratedQueue","shuffleMode",b"shuffleMode","skipInterval",b"skipInterval","sourceId",b"sourceId","stationURL",b"stationURL","systemAppPlaybackQueueData",b"systemAppPlaybackQueueData","trackID",b"trackID"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["contentItemID",b"contentItemID","contextID",b"contextID","destinationAppDisplayID",b"destinationAppDisplayID","externalPlayerCommand",b"externalPlayerCommand","insertAfterContentItemID",b"insertAfterContentItemID","languageOption",b"languageOption","mediaType",b"mediaType","negative",b"negative","nowPlayingContentItemID",b"nowPlayingContentItemID","playbackPosition",b"playbackPosition","playbackQueueContext",b"playbackQueueContext","playbackQueueDestinationOffset",b"playbackQueueDestinationOffset","playbackQueueInsertionPosition",b"playbackQueueInsertionPosition","playbackQueueOffset",b"playbackQueueOffset","playbackRate",b"playbackRate","radioStationHash",b"radioStationHash","radioStationID",b"radioStationID","rating",b"rating","repeatMode",b"repeatMode","replaceIntent",b"replaceIntent","requestDefermentToPlaybackQueuePosition",b"requestDefermentToPlaybackQueuePosition","sendOptions",b"sendOptions","shouldBeginRadioPlayback",b"shouldBeginRadioPlayback","shouldOverrideManuallyCuratedQueue",b"shouldOverrideManuallyCuratedQueue","shuffleMode",b"shuffleMode","skipInterval",b"skipInterval","sourceId",b"sourceId","stationURL",b"stationURL","systemAppPlaybackQueueData",b"systemAppPlaybackQueueData","trackID",b"trackID"]) -> None: ... + sourceId: builtins.str | None = ..., + mediaType: builtins.str | None = ..., + externalPlayerCommand: builtins.bool | None = ..., + skipInterval: builtins.float | None = ..., + playbackRate: builtins.float | None = ..., + rating: builtins.float | None = ..., + negative: builtins.bool | None = ..., + playbackPosition: builtins.float | None = ..., + repeatMode: pyatv.protocols.mrp.protobuf.Common_pb2.RepeatMode.Enum.ValueType | None = ..., + shuffleMode: pyatv.protocols.mrp.protobuf.Common_pb2.ShuffleMode.Enum.ValueType | None = ..., + trackID: builtins.int | None = ..., + radioStationID: builtins.int | None = ..., + radioStationHash: builtins.str | None = ..., + systemAppPlaybackQueueData: builtins.bytes | None = ..., + destinationAppDisplayID: builtins.str | None = ..., + sendOptions: builtins.int | None = ..., + requestDefermentToPlaybackQueuePosition: builtins.bool | None = ..., + contextID: builtins.str | None = ..., + shouldOverrideManuallyCuratedQueue: builtins.bool | None = ..., + stationURL: builtins.str | None = ..., + shouldBeginRadioPlayback: builtins.bool | None = ..., + playbackQueueInsertionPosition: builtins.int | None = ..., + contentItemID: builtins.str | None = ..., + playbackQueueOffset: builtins.int | None = ..., + playbackQueueDestinationOffset: builtins.int | None = ..., + languageOption: builtins.bytes | None = ..., + playbackQueueContext: builtins.bytes | None = ..., + insertAfterContentItemID: builtins.str | None = ..., + nowPlayingContentItemID: builtins.str | None = ..., + replaceIntent: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["contentItemID", b"contentItemID", "contextID", b"contextID", "destinationAppDisplayID", b"destinationAppDisplayID", "externalPlayerCommand", b"externalPlayerCommand", "insertAfterContentItemID", b"insertAfterContentItemID", "languageOption", b"languageOption", "mediaType", b"mediaType", "negative", b"negative", "nowPlayingContentItemID", b"nowPlayingContentItemID", "playbackPosition", b"playbackPosition", "playbackQueueContext", b"playbackQueueContext", "playbackQueueDestinationOffset", b"playbackQueueDestinationOffset", "playbackQueueInsertionPosition", b"playbackQueueInsertionPosition", "playbackQueueOffset", b"playbackQueueOffset", "playbackRate", b"playbackRate", "radioStationHash", b"radioStationHash", "radioStationID", b"radioStationID", "rating", b"rating", "repeatMode", b"repeatMode", "replaceIntent", b"replaceIntent", "requestDefermentToPlaybackQueuePosition", b"requestDefermentToPlaybackQueuePosition", "sendOptions", b"sendOptions", "shouldBeginRadioPlayback", b"shouldBeginRadioPlayback", "shouldOverrideManuallyCuratedQueue", b"shouldOverrideManuallyCuratedQueue", "shuffleMode", b"shuffleMode", "skipInterval", b"skipInterval", "sourceId", b"sourceId", "stationURL", b"stationURL", "systemAppPlaybackQueueData", b"systemAppPlaybackQueueData", "trackID", b"trackID"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["contentItemID", b"contentItemID", "contextID", b"contextID", "destinationAppDisplayID", b"destinationAppDisplayID", "externalPlayerCommand", b"externalPlayerCommand", "insertAfterContentItemID", b"insertAfterContentItemID", "languageOption", b"languageOption", "mediaType", b"mediaType", "negative", b"negative", "nowPlayingContentItemID", b"nowPlayingContentItemID", "playbackPosition", b"playbackPosition", "playbackQueueContext", b"playbackQueueContext", "playbackQueueDestinationOffset", b"playbackQueueDestinationOffset", "playbackQueueInsertionPosition", b"playbackQueueInsertionPosition", "playbackQueueOffset", b"playbackQueueOffset", "playbackRate", b"playbackRate", "radioStationHash", b"radioStationHash", "radioStationID", b"radioStationID", "rating", b"rating", "repeatMode", b"repeatMode", "replaceIntent", b"replaceIntent", "requestDefermentToPlaybackQueuePosition", b"requestDefermentToPlaybackQueuePosition", "sendOptions", b"sendOptions", "shouldBeginRadioPlayback", b"shouldBeginRadioPlayback", "shouldOverrideManuallyCuratedQueue", b"shouldOverrideManuallyCuratedQueue", "shuffleMode", b"shuffleMode", "skipInterval", b"skipInterval", "sourceId", b"sourceId", "stationURL", b"stationURL", "systemAppPlaybackQueueData", b"systemAppPlaybackQueueData", "trackID", b"trackID"]) -> None: ... + global___CommandOptions = CommandOptions diff --git a/pyatv/protocols/mrp/protobuf/Common_pb2.py b/pyatv/protocols/mrp/protobuf/Common_pb2.py index 72d549973..829523714 100644 --- a/pyatv/protocols/mrp/protobuf/Common_pb2.py +++ b/pyatv/protocols/mrp/protobuf/Common_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/Common.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/Common.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/Common_pb2.pyi b/pyatv/protocols/mrp/protobuf/Common_pb2.pyi index 38173f99c..210e4315f 100644 --- a/pyatv/protocols/mrp/protobuf/Common_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/Common_pb2.pyi @@ -2,66 +2,83 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RepeatMode(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[RepeatMode._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: RepeatMode._Enum.ValueType # 0 Off: RepeatMode._Enum.ValueType # 1 One: RepeatMode._Enum.ValueType # 2 All: RepeatMode._Enum.ValueType # 3 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Unknown: RepeatMode.Enum.ValueType # 0 Off: RepeatMode.Enum.ValueType # 1 One: RepeatMode.Enum.ValueType # 2 All: RepeatMode.Enum.ValueType # 3 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___RepeatMode = RepeatMode +@typing.final class ShuffleMode(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ShuffleMode._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: ShuffleMode._Enum.ValueType # 0 Off: ShuffleMode._Enum.ValueType # 1 Albums: ShuffleMode._Enum.ValueType # 2 Songs: ShuffleMode._Enum.ValueType # 3 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Unknown: ShuffleMode.Enum.ValueType # 0 Off: ShuffleMode.Enum.ValueType # 1 Albums: ShuffleMode.Enum.ValueType # 2 Songs: ShuffleMode.Enum.ValueType # 3 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___ShuffleMode = ShuffleMode +@typing.final class DeviceClass(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DeviceClass._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Invalid: DeviceClass._Enum.ValueType # 0 @@ -74,9 +91,8 @@ class DeviceClass(google.protobuf.message.Message): Accessory: DeviceClass._Enum.ValueType # 7 Bridge: DeviceClass._Enum.ValueType # 8 Mac: DeviceClass._Enum.ValueType # 9 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Invalid: DeviceClass.Enum.ValueType # 0 iPhone: DeviceClass.Enum.ValueType # 1 iPod: DeviceClass.Enum.ValueType # 2 @@ -88,15 +104,20 @@ class DeviceClass(google.protobuf.message.Message): Bridge: DeviceClass.Enum.ValueType # 8 Mac: DeviceClass.Enum.ValueType # 9 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___DeviceClass = DeviceClass +@typing.final class DeviceType(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DeviceType._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: DeviceType._Enum.ValueType # 0 @@ -105,9 +126,8 @@ class DeviceType(google.protobuf.message.Message): CarPlay: DeviceType._Enum.ValueType # 3 BuiltIn: DeviceType._Enum.ValueType # 4 Wired: DeviceType._Enum.ValueType # 5 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Unknown: DeviceType.Enum.ValueType # 0 AirPlay: DeviceType.Enum.ValueType # 1 Bluetooth: DeviceType.Enum.ValueType # 2 @@ -115,15 +135,20 @@ class DeviceType(google.protobuf.message.Message): BuiltIn: DeviceType.Enum.ValueType # 4 Wired: DeviceType.Enum.ValueType # 5 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___DeviceType = DeviceType +@typing.final class DeviceSubType(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DeviceSubType._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Default: DeviceSubType._Enum.ValueType # 0 @@ -144,9 +169,8 @@ class DeviceSubType(google.protobuf.message.Message): Cluster: DeviceSubType._Enum.ValueType # 15 SetTopBox: DeviceSubType._Enum.ValueType # 16 TVStick: DeviceSubType._Enum.ValueType # 17 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Default: DeviceSubType.Enum.ValueType # 0 Speaker: DeviceSubType.Enum.ValueType # 1 Headphones: DeviceSubType.Enum.ValueType # 2 @@ -166,15 +190,20 @@ class DeviceSubType(google.protobuf.message.Message): SetTopBox: DeviceSubType.Enum.ValueType # 16 TVStick: DeviceSubType.Enum.ValueType # 17 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___DeviceSubType = DeviceSubType +@typing.final class PlaybackState(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PlaybackState._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: PlaybackState._Enum.ValueType # 0 @@ -183,9 +212,8 @@ class PlaybackState(google.protobuf.message.Message): Stopped: PlaybackState._Enum.ValueType # 3 Interrupted: PlaybackState._Enum.ValueType # 4 Seeking: PlaybackState._Enum.ValueType # 5 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Unknown: PlaybackState.Enum.ValueType # 0 Playing: PlaybackState.Enum.ValueType # 1 Paused: PlaybackState.Enum.ValueType # 2 @@ -193,6 +221,8 @@ class PlaybackState(google.protobuf.message.Message): Interrupted: PlaybackState.Enum.ValueType # 4 Seeking: PlaybackState.Enum.ValueType # 5 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___PlaybackState = PlaybackState diff --git a/pyatv/protocols/mrp/protobuf/ConfigureConnectionMessage_pb2.py b/pyatv/protocols/mrp/protobuf/ConfigureConnectionMessage_pb2.py index 4823e3018..cf9263087 100644 --- a/pyatv/protocols/mrp/protobuf/ConfigureConnectionMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/ConfigureConnectionMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/ConfigureConnectionMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/ConfigureConnectionMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/ConfigureConnectionMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/ConfigureConnectionMessage_pb2.pyi index bce6ff7f3..05d5a2fc5 100644 --- a/pyatv/protocols/mrp/protobuf/ConfigureConnectionMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/ConfigureConnectionMessage_pb2.pyi @@ -2,26 +2,30 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ConfigureConnectionMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + GROUPID_FIELD_NUMBER: builtins.int - groupID: typing.Text - def __init__(self, + groupID: builtins.str + def __init__( + self, *, - groupID: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["groupID",b"groupID"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["groupID",b"groupID"]) -> None: ... + groupID: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["groupID", b"groupID"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["groupID", b"groupID"]) -> None: ... + global___ConfigureConnectionMessage = ConfigureConnectionMessage CONFIGURECONNECTIONMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/ContentItemMetadata_pb2.py b/pyatv/protocols/mrp/protobuf/ContentItemMetadata_pb2.py index 163d7c3cd..c5d9d6cb0 100644 --- a/pyatv/protocols/mrp/protobuf/ContentItemMetadata_pb2.py +++ b/pyatv/protocols/mrp/protobuf/ContentItemMetadata_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/ContentItemMetadata.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/ContentItemMetadata.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/ContentItemMetadata_pb2.pyi b/pyatv/protocols/mrp/protobuf/ContentItemMetadata_pb2.pyi index 0ab42f7a8..fececd4dd 100644 --- a/pyatv/protocols/mrp/protobuf/ContentItemMetadata_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/ContentItemMetadata_pb2.pyi @@ -2,21 +2,31 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class AudioRouteType(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[AudioRouteType._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: AudioRouteType._Enum.ValueType # 0 @@ -29,9 +39,8 @@ class AudioRouteType(google.protobuf.message.Message): CarAudio: AudioRouteType._Enum.ValueType # 7 HDMI: AudioRouteType._Enum.ValueType # 8 AirPlay: AudioRouteType._Enum.ValueType # 9 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Unknown: AudioRouteType.Enum.ValueType # 0 DevicesSpeaker: AudioRouteType.Enum.ValueType # 1 LineOut: AudioRouteType.Enum.ValueType # 2 @@ -43,34 +52,43 @@ class AudioRouteType(google.protobuf.message.Message): HDMI: AudioRouteType.Enum.ValueType # 8 AirPlay: AudioRouteType.Enum.ValueType # 9 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___AudioRouteType = AudioRouteType +@typing.final class AudioRoute(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int SUPPORTSSPATIALIZATION_FIELD_NUMBER: builtins.int + name: builtins.str + supportsSpatialization: builtins.bool @property def type(self) -> global___AudioRouteType: ... - name: typing.Text - supportsSpatialization: builtins.bool - def __init__(self, + def __init__( + self, *, - type: typing.Optional[global___AudioRouteType] = ..., - name: typing.Optional[typing.Text] = ..., - supportsSpatialization: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["name",b"name","supportsSpatialization",b"supportsSpatialization","type",b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["name",b"name","supportsSpatialization",b"supportsSpatialization","type",b"type"]) -> None: ... + type: global___AudioRouteType | None = ..., + name: builtins.str | None = ..., + supportsSpatialization: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["name", b"name", "supportsSpatialization", b"supportsSpatialization", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "supportsSpatialization", b"supportsSpatialization", "type", b"type"]) -> None: ... + global___AudioRoute = AudioRoute +@typing.final class AudioTier(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[AudioTier._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor LowBandwidthStereo: AudioTier._Enum.ValueType # 1 @@ -78,24 +96,28 @@ class AudioTier(google.protobuf.message.Message): Lossless: AudioTier._Enum.ValueType # 3 HighResolutionLossless: AudioTier._Enum.ValueType # 4 Spatial: AudioTier._Enum.ValueType # 5 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... LowBandwidthStereo: AudioTier.Enum.ValueType # 1 HighQualityStereo: AudioTier.Enum.ValueType # 2 Lossless: AudioTier.Enum.ValueType # 3 HighResolutionLossless: AudioTier.Enum.ValueType # 4 Spatial: AudioTier.Enum.ValueType # 5 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___AudioTier = AudioTier +@typing.final class SongTraits(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SongTraits._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor AppleDigitialMaster: SongTraits._Enum.ValueType # 1 @@ -104,9 +126,8 @@ class SongTraits(google.protobuf.message.Message): Spatial: SongTraits._Enum.ValueType # 8 Atmos: SongTraits._Enum.ValueType # 16 Surround: SongTraits._Enum.ValueType # 32 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... AppleDigitialMaster: SongTraits.Enum.ValueType # 1 Lossless: SongTraits.Enum.ValueType # 2 HighResolutionLossless: SongTraits.Enum.ValueType # 4 @@ -114,15 +135,20 @@ class SongTraits(google.protobuf.message.Message): Atmos: SongTraits.Enum.ValueType # 16 Surround: SongTraits.Enum.ValueType # 32 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___SongTraits = SongTraits +@typing.final class AlbumTraits(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[AlbumTraits._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor AppleDigitialMaster: AlbumTraits._Enum.ValueType # 1 @@ -131,9 +157,8 @@ class AlbumTraits(google.protobuf.message.Message): Spatial: AlbumTraits._Enum.ValueType # 8 Atmos: AlbumTraits._Enum.ValueType # 16 Surround: AlbumTraits._Enum.ValueType # 32 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... AppleDigitialMaster: AlbumTraits.Enum.ValueType # 1 Lossless: AlbumTraits.Enum.ValueType # 2 HighResolutionLossless: AlbumTraits.Enum.ValueType # 4 @@ -141,36 +166,45 @@ class AlbumTraits(google.protobuf.message.Message): Atmos: AlbumTraits.Enum.ValueType # 16 Surround: AlbumTraits.Enum.ValueType # 32 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___AlbumTraits = AlbumTraits +@typing.final class PlaylistTraits(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PlaylistTraits._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Spatial: PlaylistTraits._Enum.ValueType # 8 Atmos: PlaylistTraits._Enum.ValueType # 16 Surround: PlaylistTraits._Enum.ValueType # 32 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Spatial: PlaylistTraits.Enum.ValueType # 8 Atmos: PlaylistTraits.Enum.ValueType # 16 Surround: PlaylistTraits.Enum.ValueType # 32 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___PlaylistTraits = PlaylistTraits +@typing.final class ActiveFormatJustification(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ActiveFormatJustification._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: ActiveFormatJustification._Enum.ValueType # 0 @@ -180,9 +214,8 @@ class ActiveFormatJustification(google.protobuf.message.Message): RouteIncompatible: ActiveFormatJustification._Enum.ValueType # 500 RouteUnknownCompatibility: ActiveFormatJustification._Enum.ValueType # 501 BandwidthInsufficient: ActiveFormatJustification._Enum.ValueType # 1000 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Unknown: ActiveFormatJustification.Enum.ValueType # 0 Unavailable: ActiveFormatJustification.Enum.ValueType # 1 UserPreference: ActiveFormatJustification.Enum.ValueType # 100 @@ -191,15 +224,20 @@ class ActiveFormatJustification(google.protobuf.message.Message): RouteUnknownCompatibility: ActiveFormatJustification.Enum.ValueType # 501 BandwidthInsufficient: ActiveFormatJustification.Enum.ValueType # 1000 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___ActiveFormatJustification = ActiveFormatJustification +@typing.final class FormatTier(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FormatTier._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor LowBandwidthStereo: FormatTier._Enum.ValueType # 1 @@ -207,21 +245,24 @@ class FormatTier(google.protobuf.message.Message): Lossless: FormatTier._Enum.ValueType # 4 HighResolutionLossless: FormatTier._Enum.ValueType # 8 Spatial: FormatTier._Enum.ValueType # 16 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... LowBandwidthStereo: FormatTier.Enum.ValueType # 1 HighQualityStereo: FormatTier.Enum.ValueType # 2 Lossless: FormatTier.Enum.ValueType # 4 HighResolutionLossless: FormatTier.Enum.ValueType # 8 Spatial: FormatTier.Enum.ValueType # 16 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___FormatTier = FormatTier +@typing.final class AudioFormat(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIER_FIELD_NUMBER: builtins.int BITRATE_FIELD_NUMBER: builtins.int SAMPLERATE_FIELD_NUMBER: builtins.int @@ -241,47 +282,52 @@ class AudioFormat(google.protobuf.message.Message): spatialized: builtins.bool multiChannel: builtins.bool channelLayout: builtins.int - audioChannelLayoutDescription: typing.Text - groupID: typing.Text - stableVariantID: typing.Text - def __init__(self, + audioChannelLayoutDescription: builtins.str + groupID: builtins.str + stableVariantID: builtins.str + def __init__( + self, *, - tier: typing.Optional[global___AudioTier.Enum.ValueType] = ..., - bitrate: typing.Optional[builtins.int] = ..., - sampleRate: typing.Optional[builtins.int] = ..., - bitDepth: typing.Optional[builtins.int] = ..., - codec: typing.Optional[builtins.int] = ..., - spatialized: typing.Optional[builtins.bool] = ..., - multiChannel: typing.Optional[builtins.bool] = ..., - channelLayout: typing.Optional[builtins.int] = ..., - audioChannelLayoutDescription: typing.Optional[typing.Text] = ..., - groupID: typing.Optional[typing.Text] = ..., - stableVariantID: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["audioChannelLayoutDescription",b"audioChannelLayoutDescription","bitDepth",b"bitDepth","bitrate",b"bitrate","channelLayout",b"channelLayout","codec",b"codec","groupID",b"groupID","multiChannel",b"multiChannel","sampleRate",b"sampleRate","spatialized",b"spatialized","stableVariantID",b"stableVariantID","tier",b"tier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["audioChannelLayoutDescription",b"audioChannelLayoutDescription","bitDepth",b"bitDepth","bitrate",b"bitrate","channelLayout",b"channelLayout","codec",b"codec","groupID",b"groupID","multiChannel",b"multiChannel","sampleRate",b"sampleRate","spatialized",b"spatialized","stableVariantID",b"stableVariantID","tier",b"tier"]) -> None: ... + tier: global___AudioTier.Enum.ValueType | None = ..., + bitrate: builtins.int | None = ..., + sampleRate: builtins.int | None = ..., + bitDepth: builtins.int | None = ..., + codec: builtins.int | None = ..., + spatialized: builtins.bool | None = ..., + multiChannel: builtins.bool | None = ..., + channelLayout: builtins.int | None = ..., + audioChannelLayoutDescription: builtins.str | None = ..., + groupID: builtins.str | None = ..., + stableVariantID: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["audioChannelLayoutDescription", b"audioChannelLayoutDescription", "bitDepth", b"bitDepth", "bitrate", b"bitrate", "channelLayout", b"channelLayout", "codec", b"codec", "groupID", b"groupID", "multiChannel", b"multiChannel", "sampleRate", b"sampleRate", "spatialized", b"spatialized", "stableVariantID", b"stableVariantID", "tier", b"tier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audioChannelLayoutDescription", b"audioChannelLayoutDescription", "bitDepth", b"bitDepth", "bitrate", b"bitrate", "channelLayout", b"channelLayout", "codec", b"codec", "groupID", b"groupID", "multiChannel", b"multiChannel", "sampleRate", b"sampleRate", "spatialized", b"spatialized", "stableVariantID", b"stableVariantID", "tier", b"tier"]) -> None: ... + global___AudioFormat = AudioFormat +@typing.final class ContentItemMetadata(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _MediaType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _MediaTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ContentItemMetadata._MediaType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UnknownMediaType: ContentItemMetadata._MediaType.ValueType # 0 Audio: ContentItemMetadata._MediaType.ValueType # 1 Video: ContentItemMetadata._MediaType.ValueType # 2 - class MediaType(_MediaType, metaclass=_MediaTypeEnumTypeWrapper): - pass + class MediaType(_MediaType, metaclass=_MediaTypeEnumTypeWrapper): ... UnknownMediaType: ContentItemMetadata.MediaType.ValueType # 0 Audio: ContentItemMetadata.MediaType.ValueType # 1 Video: ContentItemMetadata.MediaType.ValueType # 2 class _MediaSubType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _MediaSubTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ContentItemMetadata._MediaSubType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UnknownMediaSubType: ContentItemMetadata._MediaSubType.ValueType # 0 @@ -289,9 +335,8 @@ class ContentItemMetadata(google.protobuf.message.Message): Podcast: ContentItemMetadata._MediaSubType.ValueType # 4 AudioBook: ContentItemMetadata._MediaSubType.ValueType # 5 ITunesU: ContentItemMetadata._MediaSubType.ValueType # 6 - class MediaSubType(_MediaSubType, metaclass=_MediaSubTypeEnumTypeWrapper): - pass + class MediaSubType(_MediaSubType, metaclass=_MediaSubTypeEnumTypeWrapper): ... UnknownMediaSubType: ContentItemMetadata.MediaSubType.ValueType # 0 Music: ContentItemMetadata.MediaSubType.ValueType # 1 Podcast: ContentItemMetadata.MediaSubType.ValueType # 4 @@ -389,21 +434,21 @@ class ContentItemMetadata(google.protobuf.message.Message): FORMATTIERPREFERENCE_FIELD_NUMBER: builtins.int AUDIOROUTE_FIELD_NUMBER: builtins.int ALTERNATIVEFORMATS_FIELD_NUMBER: builtins.int - title: typing.Text - subtitle: typing.Text + title: builtins.str + subtitle: builtins.str isContainer: builtins.bool isPlayable: builtins.bool playbackProgress: builtins.float - albumName: typing.Text - trackArtistName: typing.Text - albumArtistName: typing.Text - directorName: typing.Text + albumName: builtins.str + trackArtistName: builtins.str + albumArtistName: builtins.str + directorName: builtins.str seasonNumber: builtins.int episodeNumber: builtins.int releaseDate: builtins.float playCount: builtins.int duration: builtins.float - localizedContentRating: typing.Text + localizedContentRating: builtins.str isExplicitItem: builtins.bool playlistType: builtins.int radioStationType: builtins.int @@ -415,28 +460,28 @@ class ContentItemMetadata(google.protobuf.message.Message): editingStyleFlags: builtins.int isStreamingContent: builtins.bool isCurrentlyPlaying: builtins.bool - collectionIdentifier: typing.Text - profileIdentifier: typing.Text + collectionIdentifier: builtins.str + profileIdentifier: builtins.str startTime: builtins.float - artworkMIMEType: typing.Text - assetURLString: typing.Text - composer: typing.Text + artworkMIMEType: builtins.str + assetURLString: builtins.str + composer: builtins.str discNumber: builtins.int elapsedTime: builtins.float - genre: typing.Text + genre: builtins.str isAlwaysLive: builtins.bool playbackRate: builtins.float chapterCount: builtins.int totalDiscCount: builtins.int totalTrackCount: builtins.int trackNumber: builtins.int - contentIdentifier: typing.Text + contentIdentifier: builtins.str isSharable: builtins.bool isLiked: builtins.bool isInWishList: builtins.bool radioStationIdentifier: builtins.int - radioStationName: typing.Text - radioStationString: typing.Text + radioStationName: builtins.str + radioStationString: builtins.str iTunesStoreIdentifier: builtins.int iTunesStoreSubscriptionIdentifier: builtins.int iTunesStoreArtistIdentifier: builtins.int @@ -446,138 +491,140 @@ class ContentItemMetadata(google.protobuf.message.Message): downloadState: builtins.int downloadProgress: builtins.float appMetricsData: builtins.bytes - seriesName: typing.Text + seriesName: builtins.str mediaType: global___ContentItemMetadata.MediaType.ValueType mediaSubType: global___ContentItemMetadata.MediaSubType.ValueType nowPlayingInfoData: builtins.bytes userInfoData: builtins.bytes isSteerable: builtins.bool - artworkURL: typing.Text - lyricsURL: typing.Text + artworkURL: builtins.str + lyricsURL: builtins.str deviceSpecificUserInfoData: builtins.bytes collectionInfoData: builtins.bytes elapsedTimeTimestamp: builtins.float inferredTimestamp: builtins.float - serviceIdentifier: typing.Text + serviceIdentifier: builtins.str artworkDataWidth: builtins.int artworkDataHeight: builtins.int currentPlaybackDateData: builtins.bytes - artworkIdentifier: typing.Text + artworkIdentifier: builtins.str isLoading: builtins.bool artworkURLTemplatesData: builtins.bytes legacyUniqueIdentifier: builtins.int episodeType: builtins.int - artworkFileURL: typing.Text - brandIdentifier: typing.Text - localizedDurationString: typing.Text - albumYear: typing.Text + artworkFileURL: builtins.str + brandIdentifier: builtins.str + localizedDurationString: builtins.str + albumYear: builtins.str songTraits: global___SongTraits.Enum.ValueType albumTraits: global___AlbumTraits.Enum.ValueType playlistTraits: global___PlaylistTraits.Enum.ValueType + activeFormatJustification: global___ActiveFormatJustification.Enum.ValueType + formatTierPreference: global___FormatTier.Enum.ValueType @property def preferredFormat(self) -> global___AudioFormat: ... @property def activeFormat(self) -> global___AudioFormat: ... - activeFormatJustification: global___ActiveFormatJustification.Enum.ValueType - formatTierPreference: global___FormatTier.Enum.ValueType @property def audioRoute(self) -> global___AudioRoute: ... @property def alternativeFormats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AudioFormat]: ... - def __init__(self, + def __init__( + self, *, - title: typing.Optional[typing.Text] = ..., - subtitle: typing.Optional[typing.Text] = ..., - isContainer: typing.Optional[builtins.bool] = ..., - isPlayable: typing.Optional[builtins.bool] = ..., - playbackProgress: typing.Optional[builtins.float] = ..., - albumName: typing.Optional[typing.Text] = ..., - trackArtistName: typing.Optional[typing.Text] = ..., - albumArtistName: typing.Optional[typing.Text] = ..., - directorName: typing.Optional[typing.Text] = ..., - seasonNumber: typing.Optional[builtins.int] = ..., - episodeNumber: typing.Optional[builtins.int] = ..., - releaseDate: typing.Optional[builtins.float] = ..., - playCount: typing.Optional[builtins.int] = ..., - duration: typing.Optional[builtins.float] = ..., - localizedContentRating: typing.Optional[typing.Text] = ..., - isExplicitItem: typing.Optional[builtins.bool] = ..., - playlistType: typing.Optional[builtins.int] = ..., - radioStationType: typing.Optional[builtins.int] = ..., - artworkAvailable: typing.Optional[builtins.bool] = ..., - infoAvailable: typing.Optional[builtins.bool] = ..., - languageOptionsAvailable: typing.Optional[builtins.bool] = ..., - numberOfSections: typing.Optional[builtins.int] = ..., - lyricsAvailable: typing.Optional[builtins.bool] = ..., - editingStyleFlags: typing.Optional[builtins.int] = ..., - isStreamingContent: typing.Optional[builtins.bool] = ..., - isCurrentlyPlaying: typing.Optional[builtins.bool] = ..., - collectionIdentifier: typing.Optional[typing.Text] = ..., - profileIdentifier: typing.Optional[typing.Text] = ..., - startTime: typing.Optional[builtins.float] = ..., - artworkMIMEType: typing.Optional[typing.Text] = ..., - assetURLString: typing.Optional[typing.Text] = ..., - composer: typing.Optional[typing.Text] = ..., - discNumber: typing.Optional[builtins.int] = ..., - elapsedTime: typing.Optional[builtins.float] = ..., - genre: typing.Optional[typing.Text] = ..., - isAlwaysLive: typing.Optional[builtins.bool] = ..., - playbackRate: typing.Optional[builtins.float] = ..., - chapterCount: typing.Optional[builtins.int] = ..., - totalDiscCount: typing.Optional[builtins.int] = ..., - totalTrackCount: typing.Optional[builtins.int] = ..., - trackNumber: typing.Optional[builtins.int] = ..., - contentIdentifier: typing.Optional[typing.Text] = ..., - isSharable: typing.Optional[builtins.bool] = ..., - isLiked: typing.Optional[builtins.bool] = ..., - isInWishList: typing.Optional[builtins.bool] = ..., - radioStationIdentifier: typing.Optional[builtins.int] = ..., - radioStationName: typing.Optional[typing.Text] = ..., - radioStationString: typing.Optional[typing.Text] = ..., - iTunesStoreIdentifier: typing.Optional[builtins.int] = ..., - iTunesStoreSubscriptionIdentifier: typing.Optional[builtins.int] = ..., - iTunesStoreArtistIdentifier: typing.Optional[builtins.int] = ..., - iTunesStoreAlbumIdentifier: typing.Optional[builtins.int] = ..., - purchaseInfoData: typing.Optional[builtins.bytes] = ..., - defaultPlaybackRate: typing.Optional[builtins.float] = ..., - downloadState: typing.Optional[builtins.int] = ..., - downloadProgress: typing.Optional[builtins.float] = ..., - appMetricsData: typing.Optional[builtins.bytes] = ..., - seriesName: typing.Optional[typing.Text] = ..., - mediaType: typing.Optional[global___ContentItemMetadata.MediaType.ValueType] = ..., - mediaSubType: typing.Optional[global___ContentItemMetadata.MediaSubType.ValueType] = ..., - nowPlayingInfoData: typing.Optional[builtins.bytes] = ..., - userInfoData: typing.Optional[builtins.bytes] = ..., - isSteerable: typing.Optional[builtins.bool] = ..., - artworkURL: typing.Optional[typing.Text] = ..., - lyricsURL: typing.Optional[typing.Text] = ..., - deviceSpecificUserInfoData: typing.Optional[builtins.bytes] = ..., - collectionInfoData: typing.Optional[builtins.bytes] = ..., - elapsedTimeTimestamp: typing.Optional[builtins.float] = ..., - inferredTimestamp: typing.Optional[builtins.float] = ..., - serviceIdentifier: typing.Optional[typing.Text] = ..., - artworkDataWidth: typing.Optional[builtins.int] = ..., - artworkDataHeight: typing.Optional[builtins.int] = ..., - currentPlaybackDateData: typing.Optional[builtins.bytes] = ..., - artworkIdentifier: typing.Optional[typing.Text] = ..., - isLoading: typing.Optional[builtins.bool] = ..., - artworkURLTemplatesData: typing.Optional[builtins.bytes] = ..., - legacyUniqueIdentifier: typing.Optional[builtins.int] = ..., - episodeType: typing.Optional[builtins.int] = ..., - artworkFileURL: typing.Optional[typing.Text] = ..., - brandIdentifier: typing.Optional[typing.Text] = ..., - localizedDurationString: typing.Optional[typing.Text] = ..., - albumYear: typing.Optional[typing.Text] = ..., - songTraits: typing.Optional[global___SongTraits.Enum.ValueType] = ..., - albumTraits: typing.Optional[global___AlbumTraits.Enum.ValueType] = ..., - playlistTraits: typing.Optional[global___PlaylistTraits.Enum.ValueType] = ..., - preferredFormat: typing.Optional[global___AudioFormat] = ..., - activeFormat: typing.Optional[global___AudioFormat] = ..., - activeFormatJustification: typing.Optional[global___ActiveFormatJustification.Enum.ValueType] = ..., - formatTierPreference: typing.Optional[global___FormatTier.Enum.ValueType] = ..., - audioRoute: typing.Optional[global___AudioRoute] = ..., - alternativeFormats: typing.Optional[typing.Iterable[global___AudioFormat]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["activeFormat",b"activeFormat","activeFormatJustification",b"activeFormatJustification","albumArtistName",b"albumArtistName","albumName",b"albumName","albumTraits",b"albumTraits","albumYear",b"albumYear","appMetricsData",b"appMetricsData","artworkAvailable",b"artworkAvailable","artworkDataHeight",b"artworkDataHeight","artworkDataWidth",b"artworkDataWidth","artworkFileURL",b"artworkFileURL","artworkIdentifier",b"artworkIdentifier","artworkMIMEType",b"artworkMIMEType","artworkURL",b"artworkURL","artworkURLTemplatesData",b"artworkURLTemplatesData","assetURLString",b"assetURLString","audioRoute",b"audioRoute","brandIdentifier",b"brandIdentifier","chapterCount",b"chapterCount","collectionIdentifier",b"collectionIdentifier","collectionInfoData",b"collectionInfoData","composer",b"composer","contentIdentifier",b"contentIdentifier","currentPlaybackDateData",b"currentPlaybackDateData","defaultPlaybackRate",b"defaultPlaybackRate","deviceSpecificUserInfoData",b"deviceSpecificUserInfoData","directorName",b"directorName","discNumber",b"discNumber","downloadProgress",b"downloadProgress","downloadState",b"downloadState","duration",b"duration","editingStyleFlags",b"editingStyleFlags","elapsedTime",b"elapsedTime","elapsedTimeTimestamp",b"elapsedTimeTimestamp","episodeNumber",b"episodeNumber","episodeType",b"episodeType","formatTierPreference",b"formatTierPreference","genre",b"genre","iTunesStoreAlbumIdentifier",b"iTunesStoreAlbumIdentifier","iTunesStoreArtistIdentifier",b"iTunesStoreArtistIdentifier","iTunesStoreIdentifier",b"iTunesStoreIdentifier","iTunesStoreSubscriptionIdentifier",b"iTunesStoreSubscriptionIdentifier","inferredTimestamp",b"inferredTimestamp","infoAvailable",b"infoAvailable","isAlwaysLive",b"isAlwaysLive","isContainer",b"isContainer","isCurrentlyPlaying",b"isCurrentlyPlaying","isExplicitItem",b"isExplicitItem","isInWishList",b"isInWishList","isLiked",b"isLiked","isLoading",b"isLoading","isPlayable",b"isPlayable","isSharable",b"isSharable","isSteerable",b"isSteerable","isStreamingContent",b"isStreamingContent","languageOptionsAvailable",b"languageOptionsAvailable","legacyUniqueIdentifier",b"legacyUniqueIdentifier","localizedContentRating",b"localizedContentRating","localizedDurationString",b"localizedDurationString","lyricsAvailable",b"lyricsAvailable","lyricsURL",b"lyricsURL","mediaSubType",b"mediaSubType","mediaType",b"mediaType","nowPlayingInfoData",b"nowPlayingInfoData","numberOfSections",b"numberOfSections","playCount",b"playCount","playbackProgress",b"playbackProgress","playbackRate",b"playbackRate","playlistTraits",b"playlistTraits","playlistType",b"playlistType","preferredFormat",b"preferredFormat","profileIdentifier",b"profileIdentifier","purchaseInfoData",b"purchaseInfoData","radioStationIdentifier",b"radioStationIdentifier","radioStationName",b"radioStationName","radioStationString",b"radioStationString","radioStationType",b"radioStationType","releaseDate",b"releaseDate","seasonNumber",b"seasonNumber","seriesName",b"seriesName","serviceIdentifier",b"serviceIdentifier","songTraits",b"songTraits","startTime",b"startTime","subtitle",b"subtitle","title",b"title","totalDiscCount",b"totalDiscCount","totalTrackCount",b"totalTrackCount","trackArtistName",b"trackArtistName","trackNumber",b"trackNumber","userInfoData",b"userInfoData"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["activeFormat",b"activeFormat","activeFormatJustification",b"activeFormatJustification","albumArtistName",b"albumArtistName","albumName",b"albumName","albumTraits",b"albumTraits","albumYear",b"albumYear","alternativeFormats",b"alternativeFormats","appMetricsData",b"appMetricsData","artworkAvailable",b"artworkAvailable","artworkDataHeight",b"artworkDataHeight","artworkDataWidth",b"artworkDataWidth","artworkFileURL",b"artworkFileURL","artworkIdentifier",b"artworkIdentifier","artworkMIMEType",b"artworkMIMEType","artworkURL",b"artworkURL","artworkURLTemplatesData",b"artworkURLTemplatesData","assetURLString",b"assetURLString","audioRoute",b"audioRoute","brandIdentifier",b"brandIdentifier","chapterCount",b"chapterCount","collectionIdentifier",b"collectionIdentifier","collectionInfoData",b"collectionInfoData","composer",b"composer","contentIdentifier",b"contentIdentifier","currentPlaybackDateData",b"currentPlaybackDateData","defaultPlaybackRate",b"defaultPlaybackRate","deviceSpecificUserInfoData",b"deviceSpecificUserInfoData","directorName",b"directorName","discNumber",b"discNumber","downloadProgress",b"downloadProgress","downloadState",b"downloadState","duration",b"duration","editingStyleFlags",b"editingStyleFlags","elapsedTime",b"elapsedTime","elapsedTimeTimestamp",b"elapsedTimeTimestamp","episodeNumber",b"episodeNumber","episodeType",b"episodeType","formatTierPreference",b"formatTierPreference","genre",b"genre","iTunesStoreAlbumIdentifier",b"iTunesStoreAlbumIdentifier","iTunesStoreArtistIdentifier",b"iTunesStoreArtistIdentifier","iTunesStoreIdentifier",b"iTunesStoreIdentifier","iTunesStoreSubscriptionIdentifier",b"iTunesStoreSubscriptionIdentifier","inferredTimestamp",b"inferredTimestamp","infoAvailable",b"infoAvailable","isAlwaysLive",b"isAlwaysLive","isContainer",b"isContainer","isCurrentlyPlaying",b"isCurrentlyPlaying","isExplicitItem",b"isExplicitItem","isInWishList",b"isInWishList","isLiked",b"isLiked","isLoading",b"isLoading","isPlayable",b"isPlayable","isSharable",b"isSharable","isSteerable",b"isSteerable","isStreamingContent",b"isStreamingContent","languageOptionsAvailable",b"languageOptionsAvailable","legacyUniqueIdentifier",b"legacyUniqueIdentifier","localizedContentRating",b"localizedContentRating","localizedDurationString",b"localizedDurationString","lyricsAvailable",b"lyricsAvailable","lyricsURL",b"lyricsURL","mediaSubType",b"mediaSubType","mediaType",b"mediaType","nowPlayingInfoData",b"nowPlayingInfoData","numberOfSections",b"numberOfSections","playCount",b"playCount","playbackProgress",b"playbackProgress","playbackRate",b"playbackRate","playlistTraits",b"playlistTraits","playlistType",b"playlistType","preferredFormat",b"preferredFormat","profileIdentifier",b"profileIdentifier","purchaseInfoData",b"purchaseInfoData","radioStationIdentifier",b"radioStationIdentifier","radioStationName",b"radioStationName","radioStationString",b"radioStationString","radioStationType",b"radioStationType","releaseDate",b"releaseDate","seasonNumber",b"seasonNumber","seriesName",b"seriesName","serviceIdentifier",b"serviceIdentifier","songTraits",b"songTraits","startTime",b"startTime","subtitle",b"subtitle","title",b"title","totalDiscCount",b"totalDiscCount","totalTrackCount",b"totalTrackCount","trackArtistName",b"trackArtistName","trackNumber",b"trackNumber","userInfoData",b"userInfoData"]) -> None: ... + title: builtins.str | None = ..., + subtitle: builtins.str | None = ..., + isContainer: builtins.bool | None = ..., + isPlayable: builtins.bool | None = ..., + playbackProgress: builtins.float | None = ..., + albumName: builtins.str | None = ..., + trackArtistName: builtins.str | None = ..., + albumArtistName: builtins.str | None = ..., + directorName: builtins.str | None = ..., + seasonNumber: builtins.int | None = ..., + episodeNumber: builtins.int | None = ..., + releaseDate: builtins.float | None = ..., + playCount: builtins.int | None = ..., + duration: builtins.float | None = ..., + localizedContentRating: builtins.str | None = ..., + isExplicitItem: builtins.bool | None = ..., + playlistType: builtins.int | None = ..., + radioStationType: builtins.int | None = ..., + artworkAvailable: builtins.bool | None = ..., + infoAvailable: builtins.bool | None = ..., + languageOptionsAvailable: builtins.bool | None = ..., + numberOfSections: builtins.int | None = ..., + lyricsAvailable: builtins.bool | None = ..., + editingStyleFlags: builtins.int | None = ..., + isStreamingContent: builtins.bool | None = ..., + isCurrentlyPlaying: builtins.bool | None = ..., + collectionIdentifier: builtins.str | None = ..., + profileIdentifier: builtins.str | None = ..., + startTime: builtins.float | None = ..., + artworkMIMEType: builtins.str | None = ..., + assetURLString: builtins.str | None = ..., + composer: builtins.str | None = ..., + discNumber: builtins.int | None = ..., + elapsedTime: builtins.float | None = ..., + genre: builtins.str | None = ..., + isAlwaysLive: builtins.bool | None = ..., + playbackRate: builtins.float | None = ..., + chapterCount: builtins.int | None = ..., + totalDiscCount: builtins.int | None = ..., + totalTrackCount: builtins.int | None = ..., + trackNumber: builtins.int | None = ..., + contentIdentifier: builtins.str | None = ..., + isSharable: builtins.bool | None = ..., + isLiked: builtins.bool | None = ..., + isInWishList: builtins.bool | None = ..., + radioStationIdentifier: builtins.int | None = ..., + radioStationName: builtins.str | None = ..., + radioStationString: builtins.str | None = ..., + iTunesStoreIdentifier: builtins.int | None = ..., + iTunesStoreSubscriptionIdentifier: builtins.int | None = ..., + iTunesStoreArtistIdentifier: builtins.int | None = ..., + iTunesStoreAlbumIdentifier: builtins.int | None = ..., + purchaseInfoData: builtins.bytes | None = ..., + defaultPlaybackRate: builtins.float | None = ..., + downloadState: builtins.int | None = ..., + downloadProgress: builtins.float | None = ..., + appMetricsData: builtins.bytes | None = ..., + seriesName: builtins.str | None = ..., + mediaType: global___ContentItemMetadata.MediaType.ValueType | None = ..., + mediaSubType: global___ContentItemMetadata.MediaSubType.ValueType | None = ..., + nowPlayingInfoData: builtins.bytes | None = ..., + userInfoData: builtins.bytes | None = ..., + isSteerable: builtins.bool | None = ..., + artworkURL: builtins.str | None = ..., + lyricsURL: builtins.str | None = ..., + deviceSpecificUserInfoData: builtins.bytes | None = ..., + collectionInfoData: builtins.bytes | None = ..., + elapsedTimeTimestamp: builtins.float | None = ..., + inferredTimestamp: builtins.float | None = ..., + serviceIdentifier: builtins.str | None = ..., + artworkDataWidth: builtins.int | None = ..., + artworkDataHeight: builtins.int | None = ..., + currentPlaybackDateData: builtins.bytes | None = ..., + artworkIdentifier: builtins.str | None = ..., + isLoading: builtins.bool | None = ..., + artworkURLTemplatesData: builtins.bytes | None = ..., + legacyUniqueIdentifier: builtins.int | None = ..., + episodeType: builtins.int | None = ..., + artworkFileURL: builtins.str | None = ..., + brandIdentifier: builtins.str | None = ..., + localizedDurationString: builtins.str | None = ..., + albumYear: builtins.str | None = ..., + songTraits: global___SongTraits.Enum.ValueType | None = ..., + albumTraits: global___AlbumTraits.Enum.ValueType | None = ..., + playlistTraits: global___PlaylistTraits.Enum.ValueType | None = ..., + preferredFormat: global___AudioFormat | None = ..., + activeFormat: global___AudioFormat | None = ..., + activeFormatJustification: global___ActiveFormatJustification.Enum.ValueType | None = ..., + formatTierPreference: global___FormatTier.Enum.ValueType | None = ..., + audioRoute: global___AudioRoute | None = ..., + alternativeFormats: collections.abc.Iterable[global___AudioFormat] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["activeFormat", b"activeFormat", "activeFormatJustification", b"activeFormatJustification", "albumArtistName", b"albumArtistName", "albumName", b"albumName", "albumTraits", b"albumTraits", "albumYear", b"albumYear", "appMetricsData", b"appMetricsData", "artworkAvailable", b"artworkAvailable", "artworkDataHeight", b"artworkDataHeight", "artworkDataWidth", b"artworkDataWidth", "artworkFileURL", b"artworkFileURL", "artworkIdentifier", b"artworkIdentifier", "artworkMIMEType", b"artworkMIMEType", "artworkURL", b"artworkURL", "artworkURLTemplatesData", b"artworkURLTemplatesData", "assetURLString", b"assetURLString", "audioRoute", b"audioRoute", "brandIdentifier", b"brandIdentifier", "chapterCount", b"chapterCount", "collectionIdentifier", b"collectionIdentifier", "collectionInfoData", b"collectionInfoData", "composer", b"composer", "contentIdentifier", b"contentIdentifier", "currentPlaybackDateData", b"currentPlaybackDateData", "defaultPlaybackRate", b"defaultPlaybackRate", "deviceSpecificUserInfoData", b"deviceSpecificUserInfoData", "directorName", b"directorName", "discNumber", b"discNumber", "downloadProgress", b"downloadProgress", "downloadState", b"downloadState", "duration", b"duration", "editingStyleFlags", b"editingStyleFlags", "elapsedTime", b"elapsedTime", "elapsedTimeTimestamp", b"elapsedTimeTimestamp", "episodeNumber", b"episodeNumber", "episodeType", b"episodeType", "formatTierPreference", b"formatTierPreference", "genre", b"genre", "iTunesStoreAlbumIdentifier", b"iTunesStoreAlbumIdentifier", "iTunesStoreArtistIdentifier", b"iTunesStoreArtistIdentifier", "iTunesStoreIdentifier", b"iTunesStoreIdentifier", "iTunesStoreSubscriptionIdentifier", b"iTunesStoreSubscriptionIdentifier", "inferredTimestamp", b"inferredTimestamp", "infoAvailable", b"infoAvailable", "isAlwaysLive", b"isAlwaysLive", "isContainer", b"isContainer", "isCurrentlyPlaying", b"isCurrentlyPlaying", "isExplicitItem", b"isExplicitItem", "isInWishList", b"isInWishList", "isLiked", b"isLiked", "isLoading", b"isLoading", "isPlayable", b"isPlayable", "isSharable", b"isSharable", "isSteerable", b"isSteerable", "isStreamingContent", b"isStreamingContent", "languageOptionsAvailable", b"languageOptionsAvailable", "legacyUniqueIdentifier", b"legacyUniqueIdentifier", "localizedContentRating", b"localizedContentRating", "localizedDurationString", b"localizedDurationString", "lyricsAvailable", b"lyricsAvailable", "lyricsURL", b"lyricsURL", "mediaSubType", b"mediaSubType", "mediaType", b"mediaType", "nowPlayingInfoData", b"nowPlayingInfoData", "numberOfSections", b"numberOfSections", "playCount", b"playCount", "playbackProgress", b"playbackProgress", "playbackRate", b"playbackRate", "playlistTraits", b"playlistTraits", "playlistType", b"playlistType", "preferredFormat", b"preferredFormat", "profileIdentifier", b"profileIdentifier", "purchaseInfoData", b"purchaseInfoData", "radioStationIdentifier", b"radioStationIdentifier", "radioStationName", b"radioStationName", "radioStationString", b"radioStationString", "radioStationType", b"radioStationType", "releaseDate", b"releaseDate", "seasonNumber", b"seasonNumber", "seriesName", b"seriesName", "serviceIdentifier", b"serviceIdentifier", "songTraits", b"songTraits", "startTime", b"startTime", "subtitle", b"subtitle", "title", b"title", "totalDiscCount", b"totalDiscCount", "totalTrackCount", b"totalTrackCount", "trackArtistName", b"trackArtistName", "trackNumber", b"trackNumber", "userInfoData", b"userInfoData"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["activeFormat", b"activeFormat", "activeFormatJustification", b"activeFormatJustification", "albumArtistName", b"albumArtistName", "albumName", b"albumName", "albumTraits", b"albumTraits", "albumYear", b"albumYear", "alternativeFormats", b"alternativeFormats", "appMetricsData", b"appMetricsData", "artworkAvailable", b"artworkAvailable", "artworkDataHeight", b"artworkDataHeight", "artworkDataWidth", b"artworkDataWidth", "artworkFileURL", b"artworkFileURL", "artworkIdentifier", b"artworkIdentifier", "artworkMIMEType", b"artworkMIMEType", "artworkURL", b"artworkURL", "artworkURLTemplatesData", b"artworkURLTemplatesData", "assetURLString", b"assetURLString", "audioRoute", b"audioRoute", "brandIdentifier", b"brandIdentifier", "chapterCount", b"chapterCount", "collectionIdentifier", b"collectionIdentifier", "collectionInfoData", b"collectionInfoData", "composer", b"composer", "contentIdentifier", b"contentIdentifier", "currentPlaybackDateData", b"currentPlaybackDateData", "defaultPlaybackRate", b"defaultPlaybackRate", "deviceSpecificUserInfoData", b"deviceSpecificUserInfoData", "directorName", b"directorName", "discNumber", b"discNumber", "downloadProgress", b"downloadProgress", "downloadState", b"downloadState", "duration", b"duration", "editingStyleFlags", b"editingStyleFlags", "elapsedTime", b"elapsedTime", "elapsedTimeTimestamp", b"elapsedTimeTimestamp", "episodeNumber", b"episodeNumber", "episodeType", b"episodeType", "formatTierPreference", b"formatTierPreference", "genre", b"genre", "iTunesStoreAlbumIdentifier", b"iTunesStoreAlbumIdentifier", "iTunesStoreArtistIdentifier", b"iTunesStoreArtistIdentifier", "iTunesStoreIdentifier", b"iTunesStoreIdentifier", "iTunesStoreSubscriptionIdentifier", b"iTunesStoreSubscriptionIdentifier", "inferredTimestamp", b"inferredTimestamp", "infoAvailable", b"infoAvailable", "isAlwaysLive", b"isAlwaysLive", "isContainer", b"isContainer", "isCurrentlyPlaying", b"isCurrentlyPlaying", "isExplicitItem", b"isExplicitItem", "isInWishList", b"isInWishList", "isLiked", b"isLiked", "isLoading", b"isLoading", "isPlayable", b"isPlayable", "isSharable", b"isSharable", "isSteerable", b"isSteerable", "isStreamingContent", b"isStreamingContent", "languageOptionsAvailable", b"languageOptionsAvailable", "legacyUniqueIdentifier", b"legacyUniqueIdentifier", "localizedContentRating", b"localizedContentRating", "localizedDurationString", b"localizedDurationString", "lyricsAvailable", b"lyricsAvailable", "lyricsURL", b"lyricsURL", "mediaSubType", b"mediaSubType", "mediaType", b"mediaType", "nowPlayingInfoData", b"nowPlayingInfoData", "numberOfSections", b"numberOfSections", "playCount", b"playCount", "playbackProgress", b"playbackProgress", "playbackRate", b"playbackRate", "playlistTraits", b"playlistTraits", "playlistType", b"playlistType", "preferredFormat", b"preferredFormat", "profileIdentifier", b"profileIdentifier", "purchaseInfoData", b"purchaseInfoData", "radioStationIdentifier", b"radioStationIdentifier", "radioStationName", b"radioStationName", "radioStationString", b"radioStationString", "radioStationType", b"radioStationType", "releaseDate", b"releaseDate", "seasonNumber", b"seasonNumber", "seriesName", b"seriesName", "serviceIdentifier", b"serviceIdentifier", "songTraits", b"songTraits", "startTime", b"startTime", "subtitle", b"subtitle", "title", b"title", "totalDiscCount", b"totalDiscCount", "totalTrackCount", b"totalTrackCount", "trackArtistName", b"trackArtistName", "trackNumber", b"trackNumber", "userInfoData", b"userInfoData"]) -> None: ... + global___ContentItemMetadata = ContentItemMetadata diff --git a/pyatv/protocols/mrp/protobuf/ContentItem_pb2.py b/pyatv/protocols/mrp/protobuf/ContentItem_pb2.py index e7a68c04e..ab7f218b9 100644 --- a/pyatv/protocols/mrp/protobuf/ContentItem_pb2.py +++ b/pyatv/protocols/mrp/protobuf/ContentItem_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/ContentItem.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/ContentItem.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/ContentItem_pb2.pyi b/pyatv/protocols/mrp/protobuf/ContentItem_pb2.pyi index b0a1b99eb..98cc36323 100644 --- a/pyatv/protocols/mrp/protobuf/ContentItem_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/ContentItem_pb2.pyi @@ -2,19 +2,22 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import pyatv.protocols.mrp.protobuf.ContentItemMetadata_pb2 import pyatv.protocols.mrp.protobuf.LanguageOption_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class LanguageOptionGroup(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ALLOWEMPTYSELECTION_FIELD_NUMBER: builtins.int DEFAULTLANGUAGEOPTION_FIELD_NUMBER: builtins.int LANGUAGEOPTIONS_FIELD_NUMBER: builtins.int @@ -23,18 +26,22 @@ class LanguageOptionGroup(google.protobuf.message.Message): def defaultLanguageOption(self) -> pyatv.protocols.mrp.protobuf.LanguageOption_pb2.LanguageOption: ... @property def languageOptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[pyatv.protocols.mrp.protobuf.LanguageOption_pb2.LanguageOption]: ... - def __init__(self, + def __init__( + self, *, - allowEmptySelection: typing.Optional[builtins.bool] = ..., - defaultLanguageOption: typing.Optional[pyatv.protocols.mrp.protobuf.LanguageOption_pb2.LanguageOption] = ..., - languageOptions: typing.Optional[typing.Iterable[pyatv.protocols.mrp.protobuf.LanguageOption_pb2.LanguageOption]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["allowEmptySelection",b"allowEmptySelection","defaultLanguageOption",b"defaultLanguageOption"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allowEmptySelection",b"allowEmptySelection","defaultLanguageOption",b"defaultLanguageOption","languageOptions",b"languageOptions"]) -> None: ... + allowEmptySelection: builtins.bool | None = ..., + defaultLanguageOption: pyatv.protocols.mrp.protobuf.LanguageOption_pb2.LanguageOption | None = ..., + languageOptions: collections.abc.Iterable[pyatv.protocols.mrp.protobuf.LanguageOption_pb2.LanguageOption] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["allowEmptySelection", b"allowEmptySelection", "defaultLanguageOption", b"defaultLanguageOption"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["allowEmptySelection", b"allowEmptySelection", "defaultLanguageOption", b"defaultLanguageOption", "languageOptions", b"languageOptions"]) -> None: ... + global___LanguageOptionGroup = LanguageOptionGroup +@typing.final class ContentItem(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + IDENTIFIER_FIELD_NUMBER: builtins.int METADATA_FIELD_NUMBER: builtins.int ARTWORKDATA_FIELD_NUMBER: builtins.int @@ -47,40 +54,41 @@ class ContentItem(google.protobuf.message.Message): REQUESTIDENTIFIER_FIELD_NUMBER: builtins.int ARTWORKDATAWIDTH_FIELD_NUMBER: builtins.int ARTWORKDATAHEIGHT_FIELD_NUMBER: builtins.int - identifier: typing.Text - @property - def metadata(self) -> pyatv.protocols.mrp.protobuf.ContentItemMetadata_pb2.ContentItemMetadata: ... + identifier: builtins.str artworkData: builtins.bytes - info: typing.Text - @property - def availableLanguageOptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LanguageOptionGroup]: ... - @property - def currentLanguageOptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[pyatv.protocols.mrp.protobuf.LanguageOption_pb2.LanguageOption]: ... - parentIdentifier: typing.Text + info: builtins.str + parentIdentifier: builtins.str """ optional Lyrics lyrics = 7; repeated Sections sections = 8; """ - - ancestorIdentifier: typing.Text - queueIdentifier: typing.Text - requestIdentifier: typing.Text + ancestorIdentifier: builtins.str + queueIdentifier: builtins.str + requestIdentifier: builtins.str artworkDataWidth: builtins.int artworkDataHeight: builtins.int - def __init__(self, + @property + def metadata(self) -> pyatv.protocols.mrp.protobuf.ContentItemMetadata_pb2.ContentItemMetadata: ... + @property + def availableLanguageOptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LanguageOptionGroup]: ... + @property + def currentLanguageOptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[pyatv.protocols.mrp.protobuf.LanguageOption_pb2.LanguageOption]: ... + def __init__( + self, *, - identifier: typing.Optional[typing.Text] = ..., - metadata: typing.Optional[pyatv.protocols.mrp.protobuf.ContentItemMetadata_pb2.ContentItemMetadata] = ..., - artworkData: typing.Optional[builtins.bytes] = ..., - info: typing.Optional[typing.Text] = ..., - availableLanguageOptions: typing.Optional[typing.Iterable[global___LanguageOptionGroup]] = ..., - currentLanguageOptions: typing.Optional[typing.Iterable[pyatv.protocols.mrp.protobuf.LanguageOption_pb2.LanguageOption]] = ..., - parentIdentifier: typing.Optional[typing.Text] = ..., - ancestorIdentifier: typing.Optional[typing.Text] = ..., - queueIdentifier: typing.Optional[typing.Text] = ..., - requestIdentifier: typing.Optional[typing.Text] = ..., - artworkDataWidth: typing.Optional[builtins.int] = ..., - artworkDataHeight: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["ancestorIdentifier",b"ancestorIdentifier","artworkData",b"artworkData","artworkDataHeight",b"artworkDataHeight","artworkDataWidth",b"artworkDataWidth","identifier",b"identifier","info",b"info","metadata",b"metadata","parentIdentifier",b"parentIdentifier","queueIdentifier",b"queueIdentifier","requestIdentifier",b"requestIdentifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["ancestorIdentifier",b"ancestorIdentifier","artworkData",b"artworkData","artworkDataHeight",b"artworkDataHeight","artworkDataWidth",b"artworkDataWidth","availableLanguageOptions",b"availableLanguageOptions","currentLanguageOptions",b"currentLanguageOptions","identifier",b"identifier","info",b"info","metadata",b"metadata","parentIdentifier",b"parentIdentifier","queueIdentifier",b"queueIdentifier","requestIdentifier",b"requestIdentifier"]) -> None: ... + identifier: builtins.str | None = ..., + metadata: pyatv.protocols.mrp.protobuf.ContentItemMetadata_pb2.ContentItemMetadata | None = ..., + artworkData: builtins.bytes | None = ..., + info: builtins.str | None = ..., + availableLanguageOptions: collections.abc.Iterable[global___LanguageOptionGroup] | None = ..., + currentLanguageOptions: collections.abc.Iterable[pyatv.protocols.mrp.protobuf.LanguageOption_pb2.LanguageOption] | None = ..., + parentIdentifier: builtins.str | None = ..., + ancestorIdentifier: builtins.str | None = ..., + queueIdentifier: builtins.str | None = ..., + requestIdentifier: builtins.str | None = ..., + artworkDataWidth: builtins.int | None = ..., + artworkDataHeight: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["ancestorIdentifier", b"ancestorIdentifier", "artworkData", b"artworkData", "artworkDataHeight", b"artworkDataHeight", "artworkDataWidth", b"artworkDataWidth", "identifier", b"identifier", "info", b"info", "metadata", b"metadata", "parentIdentifier", b"parentIdentifier", "queueIdentifier", b"queueIdentifier", "requestIdentifier", b"requestIdentifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["ancestorIdentifier", b"ancestorIdentifier", "artworkData", b"artworkData", "artworkDataHeight", b"artworkDataHeight", "artworkDataWidth", b"artworkDataWidth", "availableLanguageOptions", b"availableLanguageOptions", "currentLanguageOptions", b"currentLanguageOptions", "identifier", b"identifier", "info", b"info", "metadata", b"metadata", "parentIdentifier", b"parentIdentifier", "queueIdentifier", b"queueIdentifier", "requestIdentifier", b"requestIdentifier"]) -> None: ... + global___ContentItem = ContentItem diff --git a/pyatv/protocols/mrp/protobuf/CryptoPairingMessage_pb2.py b/pyatv/protocols/mrp/protobuf/CryptoPairingMessage_pb2.py index d6cb9f02f..5e01af94e 100644 --- a/pyatv/protocols/mrp/protobuf/CryptoPairingMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/CryptoPairingMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/CryptoPairingMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/CryptoPairingMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/CryptoPairingMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/CryptoPairingMessage_pb2.pyi index 70fe4e119..1475e8774 100644 --- a/pyatv/protocols/mrp/protobuf/CryptoPairingMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/CryptoPairingMessage_pb2.pyi @@ -2,18 +2,20 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class CryptoPairingMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PAIRINGDATA_FIELD_NUMBER: builtins.int STATUS_FIELD_NUMBER: builtins.int ISRETRYING_FIELD_NUMBER: builtins.int @@ -21,23 +23,23 @@ class CryptoPairingMessage(google.protobuf.message.Message): STATE_FIELD_NUMBER: builtins.int pairingData: builtins.bytes """Example: <00010006 0101>""" - status: builtins.int """Example: 0""" - isRetrying: builtins.bool isUsingSystemPairing: builtins.bool state: builtins.int - def __init__(self, + def __init__( + self, *, - pairingData: typing.Optional[builtins.bytes] = ..., - status: typing.Optional[builtins.int] = ..., - isRetrying: typing.Optional[builtins.bool] = ..., - isUsingSystemPairing: typing.Optional[builtins.bool] = ..., - state: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["isRetrying",b"isRetrying","isUsingSystemPairing",b"isUsingSystemPairing","pairingData",b"pairingData","state",b"state","status",b"status"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["isRetrying",b"isRetrying","isUsingSystemPairing",b"isUsingSystemPairing","pairingData",b"pairingData","state",b"state","status",b"status"]) -> None: ... + pairingData: builtins.bytes | None = ..., + status: builtins.int | None = ..., + isRetrying: builtins.bool | None = ..., + isUsingSystemPairing: builtins.bool | None = ..., + state: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["isRetrying", b"isRetrying", "isUsingSystemPairing", b"isUsingSystemPairing", "pairingData", b"pairingData", "state", b"state", "status", b"status"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["isRetrying", b"isRetrying", "isUsingSystemPairing", b"isUsingSystemPairing", "pairingData", b"pairingData", "state", b"state", "status", b"status"]) -> None: ... + global___CryptoPairingMessage = CryptoPairingMessage CRYPTOPAIRINGMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/DeviceInfoMessage_pb2.py b/pyatv/protocols/mrp/protobuf/DeviceInfoMessage_pb2.py index c0188da60..3a22b9c80 100644 --- a/pyatv/protocols/mrp/protobuf/DeviceInfoMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/DeviceInfoMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/DeviceInfoMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/DeviceInfoMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/DeviceInfoMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/DeviceInfoMessage_pb2.pyi index 72920473a..ff87152ee 100644 --- a/pyatv/protocols/mrp/protobuf/DeviceInfoMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/DeviceInfoMessage_pb2.pyi @@ -2,7 +2,9 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper @@ -10,32 +12,43 @@ import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.Common_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class PreferredEncoding(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PreferredEncoding._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Default: PreferredEncoding._Enum.ValueType # 0 JSON: PreferredEncoding._Enum.ValueType # 1 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Default: PreferredEncoding.Enum.ValueType # 0 JSON: PreferredEncoding.Enum.ValueType # 1 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___PreferredEncoding = PreferredEncoding +@typing.final class DeviceInfoMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + UNIQUEIDENTIFIER_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int LOCALIZEDMODELNAME_FIELD_NUMBER: builtins.int @@ -86,136 +99,127 @@ class DeviceInfoMessage(google.protobuf.message.Message): COMPUTERNAME_FIELD_NUMBER: builtins.int CONFIGUREDCLUSTERSIZE_FIELD_NUMBER: builtins.int PREFERREDENCODING_FIELD_NUMBER: builtins.int - uniqueIdentifier: typing.Text + uniqueIdentifier: builtins.str """Example: B8D8678C-9DA9-4D29-9338-5D6B827B8063""" - - name: typing.Text + name: builtins.str """Example: Jean's iPhone""" - - localizedModelName: typing.Text + localizedModelName: builtins.str """Example: iPhone""" - - systemBuildVersion: typing.Text + systemBuildVersion: builtins.str """Example: 13F69""" - - applicationBundleIdentifier: typing.Text + applicationBundleIdentifier: builtins.str """Example: com.example.myremote""" - - applicationBundleVersion: typing.Text + applicationBundleVersion: builtins.str """Example: 107""" - protocolVersion: builtins.int """Example: 1""" - lastSupportedMessageType: builtins.int supportsSystemPairing: builtins.bool allowsPairing: builtins.bool connected: builtins.bool - systemMediaApplication: typing.Text + systemMediaApplication: builtins.str supportsACL: builtins.bool supportsSharedQueue: builtins.bool supportsExtendedMotion: builtins.bool bluetoothAddress: builtins.bytes sharedQueueVersion: builtins.int - deviceUID: typing.Text - managedConfigDeviceID: typing.Text + deviceUID: builtins.str + managedConfigDeviceID: builtins.str deviceClass: pyatv.protocols.mrp.protobuf.Common_pb2.DeviceClass.Enum.ValueType logicalDeviceCount: builtins.int tightlySyncedGroup: builtins.bool isProxyGroupPlayer: builtins.bool - tightSyncUID: typing.Text - groupUID: typing.Text - groupName: typing.Text - @property - def groupedDevices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DeviceInfoMessage]: ... + tightSyncUID: builtins.str + groupUID: builtins.str + groupName: builtins.str isGroupLeader: builtins.bool isAirplayActive: builtins.bool - systemPodcastApplication: typing.Text - senderDefaultGroupUID: typing.Text - @property - def airplayReceivers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - linkAgent: typing.Text - clusterID: typing.Text - clusterLeaderID: typing.Text + systemPodcastApplication: builtins.str + senderDefaultGroupUID: builtins.str + linkAgent: builtins.str + clusterID: builtins.str + clusterLeaderID: builtins.str clusterType: builtins.int isClusterAware: builtins.bool - modelID: typing.Text + modelID: builtins.str supportsMultiplayer: builtins.bool - routingContextID: typing.Text + routingContextID: builtins.str """Example: 577E1BCA-2D9B-41C2-A8F8-C515CE8072D4""" - - airPlayGroupID: typing.Text + airPlayGroupID: builtins.str """Example: 6E0ED14E-0BA4-4A84-AF30-9EB080E7AA73""" - - systemBooksApplication: typing.Text + systemBooksApplication: builtins.str """Example: com.apple.iBooks""" - - @property - def clusteredDevices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DeviceInfoMessage]: ... parentGroupContainsDiscoverableGroupLeader: builtins.int groupContainsDiscoverableGroupLeader: builtins.int lastKnownClusterType: builtins.int supportsOutputContextSync: builtins.bool """repeated ... allClusteredDevices = 48;""" - - computerName: typing.Text + computerName: builtins.str configuredClusterSize: builtins.int preferredEncoding: global___PreferredEncoding.Enum.ValueType - def __init__(self, + @property + def groupedDevices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DeviceInfoMessage]: ... + @property + def airplayReceivers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + @property + def clusteredDevices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DeviceInfoMessage]: ... + def __init__( + self, *, - uniqueIdentifier: typing.Optional[typing.Text] = ..., - name: typing.Optional[typing.Text] = ..., - localizedModelName: typing.Optional[typing.Text] = ..., - systemBuildVersion: typing.Optional[typing.Text] = ..., - applicationBundleIdentifier: typing.Optional[typing.Text] = ..., - applicationBundleVersion: typing.Optional[typing.Text] = ..., - protocolVersion: typing.Optional[builtins.int] = ..., - lastSupportedMessageType: typing.Optional[builtins.int] = ..., - supportsSystemPairing: typing.Optional[builtins.bool] = ..., - allowsPairing: typing.Optional[builtins.bool] = ..., - connected: typing.Optional[builtins.bool] = ..., - systemMediaApplication: typing.Optional[typing.Text] = ..., - supportsACL: typing.Optional[builtins.bool] = ..., - supportsSharedQueue: typing.Optional[builtins.bool] = ..., - supportsExtendedMotion: typing.Optional[builtins.bool] = ..., - bluetoothAddress: typing.Optional[builtins.bytes] = ..., - sharedQueueVersion: typing.Optional[builtins.int] = ..., - deviceUID: typing.Optional[typing.Text] = ..., - managedConfigDeviceID: typing.Optional[typing.Text] = ..., - deviceClass: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.DeviceClass.Enum.ValueType] = ..., - logicalDeviceCount: typing.Optional[builtins.int] = ..., - tightlySyncedGroup: typing.Optional[builtins.bool] = ..., - isProxyGroupPlayer: typing.Optional[builtins.bool] = ..., - tightSyncUID: typing.Optional[typing.Text] = ..., - groupUID: typing.Optional[typing.Text] = ..., - groupName: typing.Optional[typing.Text] = ..., - groupedDevices: typing.Optional[typing.Iterable[global___DeviceInfoMessage]] = ..., - isGroupLeader: typing.Optional[builtins.bool] = ..., - isAirplayActive: typing.Optional[builtins.bool] = ..., - systemPodcastApplication: typing.Optional[typing.Text] = ..., - senderDefaultGroupUID: typing.Optional[typing.Text] = ..., - airplayReceivers: typing.Optional[typing.Iterable[typing.Text]] = ..., - linkAgent: typing.Optional[typing.Text] = ..., - clusterID: typing.Optional[typing.Text] = ..., - clusterLeaderID: typing.Optional[typing.Text] = ..., - clusterType: typing.Optional[builtins.int] = ..., - isClusterAware: typing.Optional[builtins.bool] = ..., - modelID: typing.Optional[typing.Text] = ..., - supportsMultiplayer: typing.Optional[builtins.bool] = ..., - routingContextID: typing.Optional[typing.Text] = ..., - airPlayGroupID: typing.Optional[typing.Text] = ..., - systemBooksApplication: typing.Optional[typing.Text] = ..., - clusteredDevices: typing.Optional[typing.Iterable[global___DeviceInfoMessage]] = ..., - parentGroupContainsDiscoverableGroupLeader: typing.Optional[builtins.int] = ..., - groupContainsDiscoverableGroupLeader: typing.Optional[builtins.int] = ..., - lastKnownClusterType: typing.Optional[builtins.int] = ..., - supportsOutputContextSync: typing.Optional[builtins.bool] = ..., - computerName: typing.Optional[typing.Text] = ..., - configuredClusterSize: typing.Optional[builtins.int] = ..., - preferredEncoding: typing.Optional[global___PreferredEncoding.Enum.ValueType] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["airPlayGroupID",b"airPlayGroupID","allowsPairing",b"allowsPairing","applicationBundleIdentifier",b"applicationBundleIdentifier","applicationBundleVersion",b"applicationBundleVersion","bluetoothAddress",b"bluetoothAddress","clusterID",b"clusterID","clusterLeaderID",b"clusterLeaderID","clusterType",b"clusterType","computerName",b"computerName","configuredClusterSize",b"configuredClusterSize","connected",b"connected","deviceClass",b"deviceClass","deviceUID",b"deviceUID","groupContainsDiscoverableGroupLeader",b"groupContainsDiscoverableGroupLeader","groupName",b"groupName","groupUID",b"groupUID","isAirplayActive",b"isAirplayActive","isClusterAware",b"isClusterAware","isGroupLeader",b"isGroupLeader","isProxyGroupPlayer",b"isProxyGroupPlayer","lastKnownClusterType",b"lastKnownClusterType","lastSupportedMessageType",b"lastSupportedMessageType","linkAgent",b"linkAgent","localizedModelName",b"localizedModelName","logicalDeviceCount",b"logicalDeviceCount","managedConfigDeviceID",b"managedConfigDeviceID","modelID",b"modelID","name",b"name","parentGroupContainsDiscoverableGroupLeader",b"parentGroupContainsDiscoverableGroupLeader","preferredEncoding",b"preferredEncoding","protocolVersion",b"protocolVersion","routingContextID",b"routingContextID","senderDefaultGroupUID",b"senderDefaultGroupUID","sharedQueueVersion",b"sharedQueueVersion","supportsACL",b"supportsACL","supportsExtendedMotion",b"supportsExtendedMotion","supportsMultiplayer",b"supportsMultiplayer","supportsOutputContextSync",b"supportsOutputContextSync","supportsSharedQueue",b"supportsSharedQueue","supportsSystemPairing",b"supportsSystemPairing","systemBooksApplication",b"systemBooksApplication","systemBuildVersion",b"systemBuildVersion","systemMediaApplication",b"systemMediaApplication","systemPodcastApplication",b"systemPodcastApplication","tightSyncUID",b"tightSyncUID","tightlySyncedGroup",b"tightlySyncedGroup","uniqueIdentifier",b"uniqueIdentifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["airPlayGroupID",b"airPlayGroupID","airplayReceivers",b"airplayReceivers","allowsPairing",b"allowsPairing","applicationBundleIdentifier",b"applicationBundleIdentifier","applicationBundleVersion",b"applicationBundleVersion","bluetoothAddress",b"bluetoothAddress","clusterID",b"clusterID","clusterLeaderID",b"clusterLeaderID","clusterType",b"clusterType","clusteredDevices",b"clusteredDevices","computerName",b"computerName","configuredClusterSize",b"configuredClusterSize","connected",b"connected","deviceClass",b"deviceClass","deviceUID",b"deviceUID","groupContainsDiscoverableGroupLeader",b"groupContainsDiscoverableGroupLeader","groupName",b"groupName","groupUID",b"groupUID","groupedDevices",b"groupedDevices","isAirplayActive",b"isAirplayActive","isClusterAware",b"isClusterAware","isGroupLeader",b"isGroupLeader","isProxyGroupPlayer",b"isProxyGroupPlayer","lastKnownClusterType",b"lastKnownClusterType","lastSupportedMessageType",b"lastSupportedMessageType","linkAgent",b"linkAgent","localizedModelName",b"localizedModelName","logicalDeviceCount",b"logicalDeviceCount","managedConfigDeviceID",b"managedConfigDeviceID","modelID",b"modelID","name",b"name","parentGroupContainsDiscoverableGroupLeader",b"parentGroupContainsDiscoverableGroupLeader","preferredEncoding",b"preferredEncoding","protocolVersion",b"protocolVersion","routingContextID",b"routingContextID","senderDefaultGroupUID",b"senderDefaultGroupUID","sharedQueueVersion",b"sharedQueueVersion","supportsACL",b"supportsACL","supportsExtendedMotion",b"supportsExtendedMotion","supportsMultiplayer",b"supportsMultiplayer","supportsOutputContextSync",b"supportsOutputContextSync","supportsSharedQueue",b"supportsSharedQueue","supportsSystemPairing",b"supportsSystemPairing","systemBooksApplication",b"systemBooksApplication","systemBuildVersion",b"systemBuildVersion","systemMediaApplication",b"systemMediaApplication","systemPodcastApplication",b"systemPodcastApplication","tightSyncUID",b"tightSyncUID","tightlySyncedGroup",b"tightlySyncedGroup","uniqueIdentifier",b"uniqueIdentifier"]) -> None: ... + uniqueIdentifier: builtins.str | None = ..., + name: builtins.str | None = ..., + localizedModelName: builtins.str | None = ..., + systemBuildVersion: builtins.str | None = ..., + applicationBundleIdentifier: builtins.str | None = ..., + applicationBundleVersion: builtins.str | None = ..., + protocolVersion: builtins.int | None = ..., + lastSupportedMessageType: builtins.int | None = ..., + supportsSystemPairing: builtins.bool | None = ..., + allowsPairing: builtins.bool | None = ..., + connected: builtins.bool | None = ..., + systemMediaApplication: builtins.str | None = ..., + supportsACL: builtins.bool | None = ..., + supportsSharedQueue: builtins.bool | None = ..., + supportsExtendedMotion: builtins.bool | None = ..., + bluetoothAddress: builtins.bytes | None = ..., + sharedQueueVersion: builtins.int | None = ..., + deviceUID: builtins.str | None = ..., + managedConfigDeviceID: builtins.str | None = ..., + deviceClass: pyatv.protocols.mrp.protobuf.Common_pb2.DeviceClass.Enum.ValueType | None = ..., + logicalDeviceCount: builtins.int | None = ..., + tightlySyncedGroup: builtins.bool | None = ..., + isProxyGroupPlayer: builtins.bool | None = ..., + tightSyncUID: builtins.str | None = ..., + groupUID: builtins.str | None = ..., + groupName: builtins.str | None = ..., + groupedDevices: collections.abc.Iterable[global___DeviceInfoMessage] | None = ..., + isGroupLeader: builtins.bool | None = ..., + isAirplayActive: builtins.bool | None = ..., + systemPodcastApplication: builtins.str | None = ..., + senderDefaultGroupUID: builtins.str | None = ..., + airplayReceivers: collections.abc.Iterable[builtins.str] | None = ..., + linkAgent: builtins.str | None = ..., + clusterID: builtins.str | None = ..., + clusterLeaderID: builtins.str | None = ..., + clusterType: builtins.int | None = ..., + isClusterAware: builtins.bool | None = ..., + modelID: builtins.str | None = ..., + supportsMultiplayer: builtins.bool | None = ..., + routingContextID: builtins.str | None = ..., + airPlayGroupID: builtins.str | None = ..., + systemBooksApplication: builtins.str | None = ..., + clusteredDevices: collections.abc.Iterable[global___DeviceInfoMessage] | None = ..., + parentGroupContainsDiscoverableGroupLeader: builtins.int | None = ..., + groupContainsDiscoverableGroupLeader: builtins.int | None = ..., + lastKnownClusterType: builtins.int | None = ..., + supportsOutputContextSync: builtins.bool | None = ..., + computerName: builtins.str | None = ..., + configuredClusterSize: builtins.int | None = ..., + preferredEncoding: global___PreferredEncoding.Enum.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["airPlayGroupID", b"airPlayGroupID", "allowsPairing", b"allowsPairing", "applicationBundleIdentifier", b"applicationBundleIdentifier", "applicationBundleVersion", b"applicationBundleVersion", "bluetoothAddress", b"bluetoothAddress", "clusterID", b"clusterID", "clusterLeaderID", b"clusterLeaderID", "clusterType", b"clusterType", "computerName", b"computerName", "configuredClusterSize", b"configuredClusterSize", "connected", b"connected", "deviceClass", b"deviceClass", "deviceUID", b"deviceUID", "groupContainsDiscoverableGroupLeader", b"groupContainsDiscoverableGroupLeader", "groupName", b"groupName", "groupUID", b"groupUID", "isAirplayActive", b"isAirplayActive", "isClusterAware", b"isClusterAware", "isGroupLeader", b"isGroupLeader", "isProxyGroupPlayer", b"isProxyGroupPlayer", "lastKnownClusterType", b"lastKnownClusterType", "lastSupportedMessageType", b"lastSupportedMessageType", "linkAgent", b"linkAgent", "localizedModelName", b"localizedModelName", "logicalDeviceCount", b"logicalDeviceCount", "managedConfigDeviceID", b"managedConfigDeviceID", "modelID", b"modelID", "name", b"name", "parentGroupContainsDiscoverableGroupLeader", b"parentGroupContainsDiscoverableGroupLeader", "preferredEncoding", b"preferredEncoding", "protocolVersion", b"protocolVersion", "routingContextID", b"routingContextID", "senderDefaultGroupUID", b"senderDefaultGroupUID", "sharedQueueVersion", b"sharedQueueVersion", "supportsACL", b"supportsACL", "supportsExtendedMotion", b"supportsExtendedMotion", "supportsMultiplayer", b"supportsMultiplayer", "supportsOutputContextSync", b"supportsOutputContextSync", "supportsSharedQueue", b"supportsSharedQueue", "supportsSystemPairing", b"supportsSystemPairing", "systemBooksApplication", b"systemBooksApplication", "systemBuildVersion", b"systemBuildVersion", "systemMediaApplication", b"systemMediaApplication", "systemPodcastApplication", b"systemPodcastApplication", "tightSyncUID", b"tightSyncUID", "tightlySyncedGroup", b"tightlySyncedGroup", "uniqueIdentifier", b"uniqueIdentifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["airPlayGroupID", b"airPlayGroupID", "airplayReceivers", b"airplayReceivers", "allowsPairing", b"allowsPairing", "applicationBundleIdentifier", b"applicationBundleIdentifier", "applicationBundleVersion", b"applicationBundleVersion", "bluetoothAddress", b"bluetoothAddress", "clusterID", b"clusterID", "clusterLeaderID", b"clusterLeaderID", "clusterType", b"clusterType", "clusteredDevices", b"clusteredDevices", "computerName", b"computerName", "configuredClusterSize", b"configuredClusterSize", "connected", b"connected", "deviceClass", b"deviceClass", "deviceUID", b"deviceUID", "groupContainsDiscoverableGroupLeader", b"groupContainsDiscoverableGroupLeader", "groupName", b"groupName", "groupUID", b"groupUID", "groupedDevices", b"groupedDevices", "isAirplayActive", b"isAirplayActive", "isClusterAware", b"isClusterAware", "isGroupLeader", b"isGroupLeader", "isProxyGroupPlayer", b"isProxyGroupPlayer", "lastKnownClusterType", b"lastKnownClusterType", "lastSupportedMessageType", b"lastSupportedMessageType", "linkAgent", b"linkAgent", "localizedModelName", b"localizedModelName", "logicalDeviceCount", b"logicalDeviceCount", "managedConfigDeviceID", b"managedConfigDeviceID", "modelID", b"modelID", "name", b"name", "parentGroupContainsDiscoverableGroupLeader", b"parentGroupContainsDiscoverableGroupLeader", "preferredEncoding", b"preferredEncoding", "protocolVersion", b"protocolVersion", "routingContextID", b"routingContextID", "senderDefaultGroupUID", b"senderDefaultGroupUID", "sharedQueueVersion", b"sharedQueueVersion", "supportsACL", b"supportsACL", "supportsExtendedMotion", b"supportsExtendedMotion", "supportsMultiplayer", b"supportsMultiplayer", "supportsOutputContextSync", b"supportsOutputContextSync", "supportsSharedQueue", b"supportsSharedQueue", "supportsSystemPairing", b"supportsSystemPairing", "systemBooksApplication", b"systemBooksApplication", "systemBuildVersion", b"systemBuildVersion", "systemMediaApplication", b"systemMediaApplication", "systemPodcastApplication", b"systemPodcastApplication", "tightSyncUID", b"tightSyncUID", "tightlySyncedGroup", b"tightlySyncedGroup", "uniqueIdentifier", b"uniqueIdentifier"]) -> None: ... + global___DeviceInfoMessage = DeviceInfoMessage DEVICEINFOMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/GenericMessage_pb2.py b/pyatv/protocols/mrp/protobuf/GenericMessage_pb2.py index 7bf270380..8d12e8660 100644 --- a/pyatv/protocols/mrp/protobuf/GenericMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/GenericMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/GenericMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/GenericMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/GenericMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/GenericMessage_pb2.pyi index 2d646f545..f412a621d 100644 --- a/pyatv/protocols/mrp/protobuf/GenericMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/GenericMessage_pb2.pyi @@ -2,29 +2,33 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class GenericMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: builtins.bytes - def __init__(self, + def __init__( + self, *, - key: typing.Optional[typing.Text] = ..., - value: typing.Optional[builtins.bytes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str | None = ..., + value: builtins.bytes | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... + global___GenericMessage = GenericMessage GENERICMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.py b/pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.py index a4bb10143..046ec32e7 100644 --- a/pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.pyi index 1e536ef0a..3a50a2e53 100644 --- a/pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/GetKeyboardSessionMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -11,11 +12,15 @@ import typing DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class GetKeyboardSessionMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self, - ) -> None: ... + + def __init__( + self, + ) -> None: ... + global___GetKeyboardSessionMessage = GetKeyboardSessionMessage GETKEYBOARDSESSIONMESSAGE_FIELD_NUMBER: builtins.int -getKeyboardSessionMessage: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2.ProtocolMessage, typing.Text] +getKeyboardSessionMessage: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2.ProtocolMessage, builtins.str] diff --git a/pyatv/protocols/mrp/protobuf/GetRemoteTextInputSessionMessage_pb2.py b/pyatv/protocols/mrp/protobuf/GetRemoteTextInputSessionMessage_pb2.py index 1d2567d43..8970ac0ec 100644 --- a/pyatv/protocols/mrp/protobuf/GetRemoteTextInputSessionMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/GetRemoteTextInputSessionMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/GetRemoteTextInputSessionMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/GetRemoteTextInputSessionMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/GetRemoteTextInputSessionMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/GetRemoteTextInputSessionMessage_pb2.pyi index 31e4a4a36..43082f63c 100644 --- a/pyatv/protocols/mrp/protobuf/GetRemoteTextInputSessionMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/GetRemoteTextInputSessionMessage_pb2.pyi @@ -2,18 +2,24 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import typing DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class GetRemoteTextInputSessionMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self, - ) -> None: ... + + def __init__( + self, + ) -> None: ... + global___GetRemoteTextInputSessionMessage = GetRemoteTextInputSessionMessage GETREMOTETEXTINPUTSESSIONMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/GetVolumeMessage_pb2.py b/pyatv/protocols/mrp/protobuf/GetVolumeMessage_pb2.py index 4ae8bc1e1..4d8eb4d8d 100644 --- a/pyatv/protocols/mrp/protobuf/GetVolumeMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/GetVolumeMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/GetVolumeMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/GetVolumeMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/GetVolumeMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/GetVolumeMessage_pb2.pyi index 389234a16..afd409402 100644 --- a/pyatv/protocols/mrp/protobuf/GetVolumeMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/GetVolumeMessage_pb2.pyi @@ -2,26 +2,30 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class GetVolumeMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + OUTPUTDEVICEUID_FIELD_NUMBER: builtins.int - outputDeviceUID: typing.Text - def __init__(self, + outputDeviceUID: builtins.str + def __init__( + self, *, - outputDeviceUID: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["outputDeviceUID",b"outputDeviceUID"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["outputDeviceUID",b"outputDeviceUID"]) -> None: ... + outputDeviceUID: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["outputDeviceUID", b"outputDeviceUID"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["outputDeviceUID", b"outputDeviceUID"]) -> None: ... + global___GetVolumeMessage = GetVolumeMessage GETVOLUMEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/GetVolumeResultMessage_pb2.py b/pyatv/protocols/mrp/protobuf/GetVolumeResultMessage_pb2.py index 9bd7a837e..1560b7046 100644 --- a/pyatv/protocols/mrp/protobuf/GetVolumeResultMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/GetVolumeResultMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/GetVolumeResultMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/GetVolumeResultMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/GetVolumeResultMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/GetVolumeResultMessage_pb2.pyi index d186bc990..1be9a4191 100644 --- a/pyatv/protocols/mrp/protobuf/GetVolumeResultMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/GetVolumeResultMessage_pb2.pyi @@ -2,26 +2,30 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class GetVolumeResultMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VOLUME_FIELD_NUMBER: builtins.int volume: builtins.float - def __init__(self, + def __init__( + self, *, - volume: typing.Optional[builtins.float] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["volume",b"volume"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["volume",b"volume"]) -> None: ... + volume: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["volume", b"volume"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["volume", b"volume"]) -> None: ... + global___GetVolumeResultMessage = GetVolumeResultMessage GETVOLUMERESULTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/KeyboardMessage_pb2.py b/pyatv/protocols/mrp/protobuf/KeyboardMessage_pb2.py index aad3c415a..5ce7c6bc5 100644 --- a/pyatv/protocols/mrp/protobuf/KeyboardMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/KeyboardMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/KeyboardMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/KeyboardMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/KeyboardMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/KeyboardMessage_pb2.pyi index 0f1205905..33b8f4c72 100644 --- a/pyatv/protocols/mrp/protobuf/KeyboardMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/KeyboardMessage_pb2.pyi @@ -2,23 +2,33 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class KeyboardState(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[KeyboardState._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: KeyboardState._Enum.ValueType # 0 @@ -28,9 +38,8 @@ class KeyboardState(google.protobuf.message.Message): TextDidChange: KeyboardState._Enum.ValueType # 4 DidEndEditing: KeyboardState._Enum.ValueType # 5 Response: KeyboardState._Enum.ValueType # 6 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Unknown: KeyboardState.Enum.ValueType # 0 NotEditing: KeyboardState.Enum.ValueType # 1 DidBeginEditing: KeyboardState.Enum.ValueType # 2 @@ -39,36 +48,45 @@ class KeyboardState(google.protobuf.message.Message): DidEndEditing: KeyboardState.Enum.ValueType # 5 Response: KeyboardState.Enum.ValueType # 6 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___KeyboardState = KeyboardState +@typing.final class AutocapitalizationType(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[AutocapitalizationType._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Words: AutocapitalizationType._Enum.ValueType # 1 Sentences: AutocapitalizationType._Enum.ValueType # 2 AllCharacters: AutocapitalizationType._Enum.ValueType # 3 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Words: AutocapitalizationType.Enum.ValueType # 1 Sentences: AutocapitalizationType.Enum.ValueType # 2 AllCharacters: AutocapitalizationType.Enum.ValueType # 3 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___AutocapitalizationType = AutocapitalizationType +@typing.final class KeyboardType(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[KeyboardType._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Default: KeyboardType._Enum.ValueType # 0 @@ -84,9 +102,8 @@ class KeyboardType(google.protobuf.message.Message): WebSearch: KeyboardType._Enum.ValueType # 10 Alphanet: KeyboardType._Enum.ValueType # 11 PasscodePad: KeyboardType._Enum.ValueType # 12 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Default: KeyboardType.Enum.ValueType # 0 ASCII_Capable: KeyboardType.Enum.ValueType # 1 NumbersAndPunctuation: KeyboardType.Enum.ValueType # 2 @@ -101,15 +118,20 @@ class KeyboardType(google.protobuf.message.Message): Alphanet: KeyboardType.Enum.ValueType # 11 PasscodePad: KeyboardType.Enum.ValueType # 12 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___KeyboardType = KeyboardType +@typing.final class ReturnKeyType(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ReturnKeyType._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Default: ReturnKeyType._Enum.ValueType # 0 @@ -124,9 +146,8 @@ class ReturnKeyType(google.protobuf.message.Message): Done: ReturnKeyType._Enum.ValueType # 9 EmergencyCall: ReturnKeyType._Enum.ValueType # 10 Continue: ReturnKeyType._Enum.ValueType # 11 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Default: ReturnKeyType.Enum.ValueType # 0 Go: ReturnKeyType.Enum.ValueType # 1 Google: ReturnKeyType.Enum.ValueType # 2 @@ -140,12 +161,16 @@ class ReturnKeyType(google.protobuf.message.Message): EmergencyCall: ReturnKeyType.Enum.ValueType # 10 Continue: ReturnKeyType.Enum.ValueType # 11 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___ReturnKeyType = ReturnKeyType +@typing.final class TextInputTraits(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + AUTOCAPITALIZATIONTYPE_FIELD_NUMBER: builtins.int KEYBOARDTYPE_FIELD_NUMBER: builtins.int RETURNKEYTYPE_FIELD_NUMBER: builtins.int @@ -167,59 +192,69 @@ class TextInputTraits(google.protobuf.message.Message): validTextRangeLength: builtins.int @property def pINEntrySeparatorIndexes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... - def __init__(self, + def __init__( + self, *, - autocapitalizationType: typing.Optional[global___AutocapitalizationType.Enum.ValueType] = ..., - keyboardType: typing.Optional[global___KeyboardType.Enum.ValueType] = ..., - returnKeyType: typing.Optional[global___ReturnKeyType.Enum.ValueType] = ..., - autocorrection: typing.Optional[builtins.bool] = ..., - spellchecking: typing.Optional[builtins.bool] = ..., - enablesReturnKeyAutomatically: typing.Optional[builtins.bool] = ..., - secureTextEntry: typing.Optional[builtins.bool] = ..., - validTextRangeLocation: typing.Optional[builtins.int] = ..., - validTextRangeLength: typing.Optional[builtins.int] = ..., - pINEntrySeparatorIndexes: typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["autocapitalizationType",b"autocapitalizationType","autocorrection",b"autocorrection","enablesReturnKeyAutomatically",b"enablesReturnKeyAutomatically","keyboardType",b"keyboardType","returnKeyType",b"returnKeyType","secureTextEntry",b"secureTextEntry","spellchecking",b"spellchecking","validTextRangeLength",b"validTextRangeLength","validTextRangeLocation",b"validTextRangeLocation"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["autocapitalizationType",b"autocapitalizationType","autocorrection",b"autocorrection","enablesReturnKeyAutomatically",b"enablesReturnKeyAutomatically","keyboardType",b"keyboardType","pINEntrySeparatorIndexes",b"pINEntrySeparatorIndexes","returnKeyType",b"returnKeyType","secureTextEntry",b"secureTextEntry","spellchecking",b"spellchecking","validTextRangeLength",b"validTextRangeLength","validTextRangeLocation",b"validTextRangeLocation"]) -> None: ... + autocapitalizationType: global___AutocapitalizationType.Enum.ValueType | None = ..., + keyboardType: global___KeyboardType.Enum.ValueType | None = ..., + returnKeyType: global___ReturnKeyType.Enum.ValueType | None = ..., + autocorrection: builtins.bool | None = ..., + spellchecking: builtins.bool | None = ..., + enablesReturnKeyAutomatically: builtins.bool | None = ..., + secureTextEntry: builtins.bool | None = ..., + validTextRangeLocation: builtins.int | None = ..., + validTextRangeLength: builtins.int | None = ..., + pINEntrySeparatorIndexes: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["autocapitalizationType", b"autocapitalizationType", "autocorrection", b"autocorrection", "enablesReturnKeyAutomatically", b"enablesReturnKeyAutomatically", "keyboardType", b"keyboardType", "returnKeyType", b"returnKeyType", "secureTextEntry", b"secureTextEntry", "spellchecking", b"spellchecking", "validTextRangeLength", b"validTextRangeLength", "validTextRangeLocation", b"validTextRangeLocation"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["autocapitalizationType", b"autocapitalizationType", "autocorrection", b"autocorrection", "enablesReturnKeyAutomatically", b"enablesReturnKeyAutomatically", "keyboardType", b"keyboardType", "pINEntrySeparatorIndexes", b"pINEntrySeparatorIndexes", "returnKeyType", b"returnKeyType", "secureTextEntry", b"secureTextEntry", "spellchecking", b"spellchecking", "validTextRangeLength", b"validTextRangeLength", "validTextRangeLocation", b"validTextRangeLocation"]) -> None: ... + global___TextInputTraits = TextInputTraits +@typing.final class TextEditingAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TITLE_FIELD_NUMBER: builtins.int PROMPT_FIELD_NUMBER: builtins.int INPUTTRAITS_FIELD_NUMBER: builtins.int - title: typing.Text - prompt: typing.Text + title: builtins.str + prompt: builtins.str @property def inputTraits(self) -> global___TextInputTraits: ... - def __init__(self, + def __init__( + self, *, - title: typing.Optional[typing.Text] = ..., - prompt: typing.Optional[typing.Text] = ..., - inputTraits: typing.Optional[global___TextInputTraits] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["inputTraits",b"inputTraits","prompt",b"prompt","title",b"title"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["inputTraits",b"inputTraits","prompt",b"prompt","title",b"title"]) -> None: ... + title: builtins.str | None = ..., + prompt: builtins.str | None = ..., + inputTraits: global___TextInputTraits | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["inputTraits", b"inputTraits", "prompt", b"prompt", "title", b"title"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["inputTraits", b"inputTraits", "prompt", b"prompt", "title", b"title"]) -> None: ... + global___TextEditingAttributes = TextEditingAttributes +@typing.final class KeyboardMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + STATE_FIELD_NUMBER: builtins.int ATTRIBUTES_FIELD_NUMBER: builtins.int ENCRYPTEDTEXTCYPHERTEXT_FIELD_NUMBER: builtins.int state: global___KeyboardState.Enum.ValueType + encryptedTextCyphertext: builtins.bytes @property def attributes(self) -> global___TextEditingAttributes: ... - encryptedTextCyphertext: builtins.bytes - def __init__(self, + def __init__( + self, *, - state: typing.Optional[global___KeyboardState.Enum.ValueType] = ..., - attributes: typing.Optional[global___TextEditingAttributes] = ..., - encryptedTextCyphertext: typing.Optional[builtins.bytes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["attributes",b"attributes","encryptedTextCyphertext",b"encryptedTextCyphertext","state",b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["attributes",b"attributes","encryptedTextCyphertext",b"encryptedTextCyphertext","state",b"state"]) -> None: ... + state: global___KeyboardState.Enum.ValueType | None = ..., + attributes: global___TextEditingAttributes | None = ..., + encryptedTextCyphertext: builtins.bytes | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["attributes", b"attributes", "encryptedTextCyphertext", b"encryptedTextCyphertext", "state", b"state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["attributes", b"attributes", "encryptedTextCyphertext", b"encryptedTextCyphertext", "state", b"state"]) -> None: ... + global___KeyboardMessage = KeyboardMessage KEYBOARDMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/LanguageOption_pb2.py b/pyatv/protocols/mrp/protobuf/LanguageOption_pb2.py index ef7d4748c..f9730b2e8 100644 --- a/pyatv/protocols/mrp/protobuf/LanguageOption_pb2.py +++ b/pyatv/protocols/mrp/protobuf/LanguageOption_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/LanguageOption.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/LanguageOption.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/LanguageOption_pb2.pyi b/pyatv/protocols/mrp/protobuf/LanguageOption_pb2.pyi index a83dcda81..794d91592 100644 --- a/pyatv/protocols/mrp/protobuf/LanguageOption_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/LanguageOption_pb2.pyi @@ -2,36 +2,41 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class LanguageOption(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int LANGUAGETAG_FIELD_NUMBER: builtins.int CHARACTERISTICS_FIELD_NUMBER: builtins.int DISPLAYNAME_FIELD_NUMBER: builtins.int IDENTIFIER_FIELD_NUMBER: builtins.int type: builtins.int - languageTag: typing.Text + languageTag: builtins.str + displayName: builtins.str + identifier: builtins.str @property - def characteristics(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - displayName: typing.Text - identifier: typing.Text - def __init__(self, + def characteristics(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, *, - type: typing.Optional[builtins.int] = ..., - languageTag: typing.Optional[typing.Text] = ..., - characteristics: typing.Optional[typing.Iterable[typing.Text]] = ..., - displayName: typing.Optional[typing.Text] = ..., - identifier: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["displayName",b"displayName","identifier",b"identifier","languageTag",b"languageTag","type",b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["characteristics",b"characteristics","displayName",b"displayName","identifier",b"identifier","languageTag",b"languageTag","type",b"type"]) -> None: ... + type: builtins.int | None = ..., + languageTag: builtins.str | None = ..., + characteristics: collections.abc.Iterable[builtins.str] | None = ..., + displayName: builtins.str | None = ..., + identifier: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["displayName", b"displayName", "identifier", b"identifier", "languageTag", b"languageTag", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["characteristics", b"characteristics", "displayName", b"displayName", "identifier", b"identifier", "languageTag", b"languageTag", "type", b"type"]) -> None: ... + global___LanguageOption = LanguageOption diff --git a/pyatv/protocols/mrp/protobuf/ModifyOutputContextRequestMessage_pb2.py b/pyatv/protocols/mrp/protobuf/ModifyOutputContextRequestMessage_pb2.py index 96433383c..82ea3898a 100644 --- a/pyatv/protocols/mrp/protobuf/ModifyOutputContextRequestMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/ModifyOutputContextRequestMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/ModifyOutputContextRequestMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/ModifyOutputContextRequestMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/ModifyOutputContextRequestMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/ModifyOutputContextRequestMessage_pb2.pyi index 9f1a0e3c0..39bf4d71c 100644 --- a/pyatv/protocols/mrp/protobuf/ModifyOutputContextRequestMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/ModifyOutputContextRequestMessage_pb2.pyi @@ -2,37 +2,50 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ModifyOutputContextRequestType(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ModifyOutputContextRequestType._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SharedAudioPresentation: ModifyOutputContextRequestType._Enum.ValueType # 1 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... SharedAudioPresentation: ModifyOutputContextRequestType.Enum.ValueType # 1 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___ModifyOutputContextRequestType = ModifyOutputContextRequestType +@typing.final class ModifyOutputContextRequestMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ADDINGDEVICES_FIELD_NUMBER: builtins.int REMOVINGDEVICES_FIELD_NUMBER: builtins.int @@ -42,29 +55,31 @@ class ModifyOutputContextRequestMessage(google.protobuf.message.Message): CLUSTERAWARESETTINGDEVICES_FIELD_NUMBER: builtins.int type: global___ModifyOutputContextRequestType.Enum.ValueType @property - def addingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def addingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def removingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def removingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def settingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def settingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def clusterAwareAddingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def clusterAwareAddingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def clusterAwareRemovingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def clusterAwareRemovingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def clusterAwareSettingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - def __init__(self, + def clusterAwareSettingDevices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, *, - type: typing.Optional[global___ModifyOutputContextRequestType.Enum.ValueType] = ..., - addingDevices: typing.Optional[typing.Iterable[typing.Text]] = ..., - removingDevices: typing.Optional[typing.Iterable[typing.Text]] = ..., - settingDevices: typing.Optional[typing.Iterable[typing.Text]] = ..., - clusterAwareAddingDevices: typing.Optional[typing.Iterable[typing.Text]] = ..., - clusterAwareRemovingDevices: typing.Optional[typing.Iterable[typing.Text]] = ..., - clusterAwareSettingDevices: typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["type",b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["addingDevices",b"addingDevices","clusterAwareAddingDevices",b"clusterAwareAddingDevices","clusterAwareRemovingDevices",b"clusterAwareRemovingDevices","clusterAwareSettingDevices",b"clusterAwareSettingDevices","removingDevices",b"removingDevices","settingDevices",b"settingDevices","type",b"type"]) -> None: ... + type: global___ModifyOutputContextRequestType.Enum.ValueType | None = ..., + addingDevices: collections.abc.Iterable[builtins.str] | None = ..., + removingDevices: collections.abc.Iterable[builtins.str] | None = ..., + settingDevices: collections.abc.Iterable[builtins.str] | None = ..., + clusterAwareAddingDevices: collections.abc.Iterable[builtins.str] | None = ..., + clusterAwareRemovingDevices: collections.abc.Iterable[builtins.str] | None = ..., + clusterAwareSettingDevices: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["addingDevices", b"addingDevices", "clusterAwareAddingDevices", b"clusterAwareAddingDevices", "clusterAwareRemovingDevices", b"clusterAwareRemovingDevices", "clusterAwareSettingDevices", b"clusterAwareSettingDevices", "removingDevices", b"removingDevices", "settingDevices", b"settingDevices", "type", b"type"]) -> None: ... + global___ModifyOutputContextRequestMessage = ModifyOutputContextRequestMessage MODIFYOUTPUTCONTEXTREQUESTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/NotificationMessage_pb2.py b/pyatv/protocols/mrp/protobuf/NotificationMessage_pb2.py index 07dcc35a8..bc830e2db 100644 --- a/pyatv/protocols/mrp/protobuf/NotificationMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/NotificationMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/NotificationMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/NotificationMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/NotificationMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/NotificationMessage_pb2.pyi index dff15944a..f3cc1ea66 100644 --- a/pyatv/protocols/mrp/protobuf/NotificationMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/NotificationMessage_pb2.pyi @@ -2,31 +2,36 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class NotificationMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NOTIFICATION_FIELD_NUMBER: builtins.int USERINFO_FIELD_NUMBER: builtins.int @property - def notification(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def notification(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property def userInfo(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - def __init__(self, + def __init__( + self, *, - notification: typing.Optional[typing.Iterable[typing.Text]] = ..., - userInfo: typing.Optional[typing.Iterable[builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["notification",b"notification","userInfo",b"userInfo"]) -> None: ... + notification: collections.abc.Iterable[builtins.str] | None = ..., + userInfo: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["notification", b"notification", "userInfo", b"userInfo"]) -> None: ... + global___NotificationMessage = NotificationMessage NOTIFICATIONMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.py b/pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.py index 876365f05..389196ed9 100644 --- a/pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.py +++ b/pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/NowPlayingClient.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/NowPlayingClient.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.pyi b/pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.pyi index 756e2210f..1484070c4 100644 --- a/pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/NowPlayingClient_pb2.pyi @@ -2,17 +2,20 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class NowPlayingClient(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PROCESSIDENTIFIER_FIELD_NUMBER: builtins.int BUNDLEIDENTIFIER_FIELD_NUMBER: builtins.int PARENTAPPLICATIONBUNDLEIDENTIFIER_FIELD_NUMBER: builtins.int @@ -21,25 +24,26 @@ class NowPlayingClient(google.protobuf.message.Message): DISPLAYNAME_FIELD_NUMBER: builtins.int BUNDLEIDENTIFIERHIERARCHYS_FIELD_NUMBER: builtins.int processIdentifier: builtins.int - bundleIdentifier: typing.Text - parentApplicationBundleIdentifier: typing.Text + bundleIdentifier: builtins.str + parentApplicationBundleIdentifier: builtins.str processUserIdentifier: builtins.int nowPlayingVisibility: builtins.int - displayName: typing.Text + displayName: builtins.str """ optional TintColor tintColor = 6;""" - @property - def bundleIdentifierHierarchys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - def __init__(self, + def bundleIdentifierHierarchys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, *, - processIdentifier: typing.Optional[builtins.int] = ..., - bundleIdentifier: typing.Optional[typing.Text] = ..., - parentApplicationBundleIdentifier: typing.Optional[typing.Text] = ..., - processUserIdentifier: typing.Optional[builtins.int] = ..., - nowPlayingVisibility: typing.Optional[builtins.int] = ..., - displayName: typing.Optional[typing.Text] = ..., - bundleIdentifierHierarchys: typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["bundleIdentifier",b"bundleIdentifier","displayName",b"displayName","nowPlayingVisibility",b"nowPlayingVisibility","parentApplicationBundleIdentifier",b"parentApplicationBundleIdentifier","processIdentifier",b"processIdentifier","processUserIdentifier",b"processUserIdentifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["bundleIdentifier",b"bundleIdentifier","bundleIdentifierHierarchys",b"bundleIdentifierHierarchys","displayName",b"displayName","nowPlayingVisibility",b"nowPlayingVisibility","parentApplicationBundleIdentifier",b"parentApplicationBundleIdentifier","processIdentifier",b"processIdentifier","processUserIdentifier",b"processUserIdentifier"]) -> None: ... + processIdentifier: builtins.int | None = ..., + bundleIdentifier: builtins.str | None = ..., + parentApplicationBundleIdentifier: builtins.str | None = ..., + processUserIdentifier: builtins.int | None = ..., + nowPlayingVisibility: builtins.int | None = ..., + displayName: builtins.str | None = ..., + bundleIdentifierHierarchys: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["bundleIdentifier", b"bundleIdentifier", "displayName", b"displayName", "nowPlayingVisibility", b"nowPlayingVisibility", "parentApplicationBundleIdentifier", b"parentApplicationBundleIdentifier", "processIdentifier", b"processIdentifier", "processUserIdentifier", b"processUserIdentifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["bundleIdentifier", b"bundleIdentifier", "bundleIdentifierHierarchys", b"bundleIdentifierHierarchys", "displayName", b"displayName", "nowPlayingVisibility", b"nowPlayingVisibility", "parentApplicationBundleIdentifier", b"parentApplicationBundleIdentifier", "processIdentifier", b"processIdentifier", "processUserIdentifier", b"processUserIdentifier"]) -> None: ... + global___NowPlayingClient = NowPlayingClient diff --git a/pyatv/protocols/mrp/protobuf/NowPlayingInfo_pb2.py b/pyatv/protocols/mrp/protobuf/NowPlayingInfo_pb2.py index a6cf57069..4177a618f 100644 --- a/pyatv/protocols/mrp/protobuf/NowPlayingInfo_pb2.py +++ b/pyatv/protocols/mrp/protobuf/NowPlayingInfo_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/NowPlayingInfo.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/NowPlayingInfo.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/NowPlayingInfo_pb2.pyi b/pyatv/protocols/mrp/protobuf/NowPlayingInfo_pb2.pyi index 7f84b054d..281f90909 100644 --- a/pyatv/protocols/mrp/protobuf/NowPlayingInfo_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/NowPlayingInfo_pb2.pyi @@ -2,17 +2,19 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message import pyatv.protocols.mrp.protobuf.Common_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class NowPlayingInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ALBUM_FIELD_NUMBER: builtins.int ARTIST_FIELD_NUMBER: builtins.int DURATION_FIELD_NUMBER: builtins.int @@ -31,45 +33,47 @@ class NowPlayingInfo(google.protobuf.message.Message): ARTWORKDATADIGEST_FIELD_NUMBER: builtins.int ISALWAYSLIVE_FIELD_NUMBER: builtins.int ISADVERTISEMENT_FIELD_NUMBER: builtins.int - album: typing.Text - artist: typing.Text + album: builtins.str + artist: builtins.str duration: builtins.float elapsedTime: builtins.float playbackRate: builtins.float repeatMode: pyatv.protocols.mrp.protobuf.Common_pb2.RepeatMode.Enum.ValueType shuffleMode: pyatv.protocols.mrp.protobuf.Common_pb2.ShuffleMode.Enum.ValueType timestamp: builtins.float - title: typing.Text + title: builtins.str uniqueIdentifier: builtins.int isExplicitTrack: builtins.bool isMusicApp: builtins.bool radioStationIdentifier: builtins.int - radioStationHash: typing.Text - radioStationName: typing.Text + radioStationHash: builtins.str + radioStationName: builtins.str artworkDataDigest: builtins.bytes isAlwaysLive: builtins.bool isAdvertisement: builtins.bool - def __init__(self, + def __init__( + self, *, - album: typing.Optional[typing.Text] = ..., - artist: typing.Optional[typing.Text] = ..., - duration: typing.Optional[builtins.float] = ..., - elapsedTime: typing.Optional[builtins.float] = ..., - playbackRate: typing.Optional[builtins.float] = ..., - repeatMode: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.RepeatMode.Enum.ValueType] = ..., - shuffleMode: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.ShuffleMode.Enum.ValueType] = ..., - timestamp: typing.Optional[builtins.float] = ..., - title: typing.Optional[typing.Text] = ..., - uniqueIdentifier: typing.Optional[builtins.int] = ..., - isExplicitTrack: typing.Optional[builtins.bool] = ..., - isMusicApp: typing.Optional[builtins.bool] = ..., - radioStationIdentifier: typing.Optional[builtins.int] = ..., - radioStationHash: typing.Optional[typing.Text] = ..., - radioStationName: typing.Optional[typing.Text] = ..., - artworkDataDigest: typing.Optional[builtins.bytes] = ..., - isAlwaysLive: typing.Optional[builtins.bool] = ..., - isAdvertisement: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["album",b"album","artist",b"artist","artworkDataDigest",b"artworkDataDigest","duration",b"duration","elapsedTime",b"elapsedTime","isAdvertisement",b"isAdvertisement","isAlwaysLive",b"isAlwaysLive","isExplicitTrack",b"isExplicitTrack","isMusicApp",b"isMusicApp","playbackRate",b"playbackRate","radioStationHash",b"radioStationHash","radioStationIdentifier",b"radioStationIdentifier","radioStationName",b"radioStationName","repeatMode",b"repeatMode","shuffleMode",b"shuffleMode","timestamp",b"timestamp","title",b"title","uniqueIdentifier",b"uniqueIdentifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["album",b"album","artist",b"artist","artworkDataDigest",b"artworkDataDigest","duration",b"duration","elapsedTime",b"elapsedTime","isAdvertisement",b"isAdvertisement","isAlwaysLive",b"isAlwaysLive","isExplicitTrack",b"isExplicitTrack","isMusicApp",b"isMusicApp","playbackRate",b"playbackRate","radioStationHash",b"radioStationHash","radioStationIdentifier",b"radioStationIdentifier","radioStationName",b"radioStationName","repeatMode",b"repeatMode","shuffleMode",b"shuffleMode","timestamp",b"timestamp","title",b"title","uniqueIdentifier",b"uniqueIdentifier"]) -> None: ... + album: builtins.str | None = ..., + artist: builtins.str | None = ..., + duration: builtins.float | None = ..., + elapsedTime: builtins.float | None = ..., + playbackRate: builtins.float | None = ..., + repeatMode: pyatv.protocols.mrp.protobuf.Common_pb2.RepeatMode.Enum.ValueType | None = ..., + shuffleMode: pyatv.protocols.mrp.protobuf.Common_pb2.ShuffleMode.Enum.ValueType | None = ..., + timestamp: builtins.float | None = ..., + title: builtins.str | None = ..., + uniqueIdentifier: builtins.int | None = ..., + isExplicitTrack: builtins.bool | None = ..., + isMusicApp: builtins.bool | None = ..., + radioStationIdentifier: builtins.int | None = ..., + radioStationHash: builtins.str | None = ..., + radioStationName: builtins.str | None = ..., + artworkDataDigest: builtins.bytes | None = ..., + isAlwaysLive: builtins.bool | None = ..., + isAdvertisement: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["album", b"album", "artist", b"artist", "artworkDataDigest", b"artworkDataDigest", "duration", b"duration", "elapsedTime", b"elapsedTime", "isAdvertisement", b"isAdvertisement", "isAlwaysLive", b"isAlwaysLive", "isExplicitTrack", b"isExplicitTrack", "isMusicApp", b"isMusicApp", "playbackRate", b"playbackRate", "radioStationHash", b"radioStationHash", "radioStationIdentifier", b"radioStationIdentifier", "radioStationName", b"radioStationName", "repeatMode", b"repeatMode", "shuffleMode", b"shuffleMode", "timestamp", b"timestamp", "title", b"title", "uniqueIdentifier", b"uniqueIdentifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["album", b"album", "artist", b"artist", "artworkDataDigest", b"artworkDataDigest", "duration", b"duration", "elapsedTime", b"elapsedTime", "isAdvertisement", b"isAdvertisement", "isAlwaysLive", b"isAlwaysLive", "isExplicitTrack", b"isExplicitTrack", "isMusicApp", b"isMusicApp", "playbackRate", b"playbackRate", "radioStationHash", b"radioStationHash", "radioStationIdentifier", b"radioStationIdentifier", "radioStationName", b"radioStationName", "repeatMode", b"repeatMode", "shuffleMode", b"shuffleMode", "timestamp", b"timestamp", "title", b"title", "uniqueIdentifier", b"uniqueIdentifier"]) -> None: ... + global___NowPlayingInfo = NowPlayingInfo diff --git a/pyatv/protocols/mrp/protobuf/NowPlayingPlayer_pb2.py b/pyatv/protocols/mrp/protobuf/NowPlayingPlayer_pb2.py index 77f2b5500..284e0595c 100644 --- a/pyatv/protocols/mrp/protobuf/NowPlayingPlayer_pb2.py +++ b/pyatv/protocols/mrp/protobuf/NowPlayingPlayer_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/NowPlayingPlayer.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/NowPlayingPlayer.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/NowPlayingPlayer_pb2.pyi b/pyatv/protocols/mrp/protobuf/NowPlayingPlayer_pb2.pyi index bf1f0f243..e411234d4 100644 --- a/pyatv/protocols/mrp/protobuf/NowPlayingPlayer_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/NowPlayingPlayer_pb2.pyi @@ -2,16 +2,18 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class NowPlayingPlayer(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + IDENTIFIER_FIELD_NUMBER: builtins.int DISPLAYNAME_FIELD_NUMBER: builtins.int ISDEFAULTPLAYER_FIELD_NUMBER: builtins.int @@ -19,23 +21,25 @@ class NowPlayingPlayer(google.protobuf.message.Message): MXSESSIONIDS_FIELD_NUMBER: builtins.int AUDIOSESSIONID_FIELD_NUMBER: builtins.int ICONURL_FIELD_NUMBER: builtins.int - identifier: typing.Text - displayName: typing.Text + identifier: builtins.str + displayName: builtins.str isDefaultPlayer: builtins.bool audioSessionType: builtins.int mxSessionIDs: builtins.int audioSessionID: builtins.int - iconURL: typing.Text - def __init__(self, + iconURL: builtins.str + def __init__( + self, *, - identifier: typing.Optional[typing.Text] = ..., - displayName: typing.Optional[typing.Text] = ..., - isDefaultPlayer: typing.Optional[builtins.bool] = ..., - audioSessionType: typing.Optional[builtins.int] = ..., - mxSessionIDs: typing.Optional[builtins.int] = ..., - audioSessionID: typing.Optional[builtins.int] = ..., - iconURL: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["audioSessionID",b"audioSessionID","audioSessionType",b"audioSessionType","displayName",b"displayName","iconURL",b"iconURL","identifier",b"identifier","isDefaultPlayer",b"isDefaultPlayer","mxSessionIDs",b"mxSessionIDs"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["audioSessionID",b"audioSessionID","audioSessionType",b"audioSessionType","displayName",b"displayName","iconURL",b"iconURL","identifier",b"identifier","isDefaultPlayer",b"isDefaultPlayer","mxSessionIDs",b"mxSessionIDs"]) -> None: ... + identifier: builtins.str | None = ..., + displayName: builtins.str | None = ..., + isDefaultPlayer: builtins.bool | None = ..., + audioSessionType: builtins.int | None = ..., + mxSessionIDs: builtins.int | None = ..., + audioSessionID: builtins.int | None = ..., + iconURL: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["audioSessionID", b"audioSessionID", "audioSessionType", b"audioSessionType", "displayName", b"displayName", "iconURL", b"iconURL", "identifier", b"identifier", "isDefaultPlayer", b"isDefaultPlayer", "mxSessionIDs", b"mxSessionIDs"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["audioSessionID", b"audioSessionID", "audioSessionType", b"audioSessionType", "displayName", b"displayName", "iconURL", b"iconURL", "identifier", b"identifier", "isDefaultPlayer", b"isDefaultPlayer", "mxSessionIDs", b"mxSessionIDs"]) -> None: ... + global___NowPlayingPlayer = NowPlayingPlayer diff --git a/pyatv/protocols/mrp/protobuf/OriginClientPropertiesMessage_pb2.py b/pyatv/protocols/mrp/protobuf/OriginClientPropertiesMessage_pb2.py index 5ed121aac..45cb8d98e 100644 --- a/pyatv/protocols/mrp/protobuf/OriginClientPropertiesMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/OriginClientPropertiesMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/OriginClientPropertiesMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/OriginClientPropertiesMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/OriginClientPropertiesMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/OriginClientPropertiesMessage_pb2.pyi index 0fbf7d578..f3f3d844c 100644 --- a/pyatv/protocols/mrp/protobuf/OriginClientPropertiesMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/OriginClientPropertiesMessage_pb2.pyi @@ -2,26 +2,30 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class OriginClientPropertiesMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LASTPLAYINGTIMESTAMP_FIELD_NUMBER: builtins.int lastPlayingTimestamp: builtins.float - def __init__(self, + def __init__( + self, *, - lastPlayingTimestamp: typing.Optional[builtins.float] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["lastPlayingTimestamp",b"lastPlayingTimestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["lastPlayingTimestamp",b"lastPlayingTimestamp"]) -> None: ... + lastPlayingTimestamp: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["lastPlayingTimestamp", b"lastPlayingTimestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["lastPlayingTimestamp", b"lastPlayingTimestamp"]) -> None: ... + global___OriginClientPropertiesMessage = OriginClientPropertiesMessage ORIGINCLIENTPROPERTIESMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/Origin_pb2.py b/pyatv/protocols/mrp/protobuf/Origin_pb2.py index 161d313eb..75dd05282 100644 --- a/pyatv/protocols/mrp/protobuf/Origin_pb2.py +++ b/pyatv/protocols/mrp/protobuf/Origin_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/Origin.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/Origin.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/Origin_pb2.pyi b/pyatv/protocols/mrp/protobuf/Origin_pb2.pyi index 0ddcfb592..b427426fb 100644 --- a/pyatv/protocols/mrp/protobuf/Origin_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/Origin_pb2.pyi @@ -2,29 +2,37 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import pyatv.protocols.mrp.protobuf.DeviceInfoMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class Origin(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Type: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Origin._Type.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: Origin._Type.ValueType # 0 Local: Origin._Type.ValueType # 1 Custom: Origin._Type.ValueType # 2 - class Type(_Type, metaclass=_TypeEnumTypeWrapper): - pass + class Type(_Type, metaclass=_TypeEnumTypeWrapper): ... Unknown: Origin.Type.ValueType # 0 Local: Origin.Type.ValueType # 1 Custom: Origin.Type.ValueType # 2 @@ -35,19 +43,21 @@ class Origin(google.protobuf.message.Message): DEVICEINFO_FIELD_NUMBER: builtins.int ISLOCALLYHOSTED_FIELD_NUMBER: builtins.int type: global___Origin.Type.ValueType - displayName: typing.Text + displayName: builtins.str identifier: builtins.int + isLocallyHosted: builtins.bool @property def deviceInfo(self) -> pyatv.protocols.mrp.protobuf.DeviceInfoMessage_pb2.DeviceInfoMessage: ... - isLocallyHosted: builtins.bool - def __init__(self, + def __init__( + self, *, - type: typing.Optional[global___Origin.Type.ValueType] = ..., - displayName: typing.Optional[typing.Text] = ..., - identifier: typing.Optional[builtins.int] = ..., - deviceInfo: typing.Optional[pyatv.protocols.mrp.protobuf.DeviceInfoMessage_pb2.DeviceInfoMessage] = ..., - isLocallyHosted: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["deviceInfo",b"deviceInfo","displayName",b"displayName","identifier",b"identifier","isLocallyHosted",b"isLocallyHosted","type",b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["deviceInfo",b"deviceInfo","displayName",b"displayName","identifier",b"identifier","isLocallyHosted",b"isLocallyHosted","type",b"type"]) -> None: ... + type: global___Origin.Type.ValueType | None = ..., + displayName: builtins.str | None = ..., + identifier: builtins.int | None = ..., + deviceInfo: pyatv.protocols.mrp.protobuf.DeviceInfoMessage_pb2.DeviceInfoMessage | None = ..., + isLocallyHosted: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["deviceInfo", b"deviceInfo", "displayName", b"displayName", "identifier", b"identifier", "isLocallyHosted", b"isLocallyHosted", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["deviceInfo", b"deviceInfo", "displayName", b"displayName", "identifier", b"identifier", "isLocallyHosted", b"isLocallyHosted", "type", b"type"]) -> None: ... + global___Origin = Origin diff --git a/pyatv/protocols/mrp/protobuf/PlaybackQueueCapabilities_pb2.py b/pyatv/protocols/mrp/protobuf/PlaybackQueueCapabilities_pb2.py index c8e836209..e97b5da77 100644 --- a/pyatv/protocols/mrp/protobuf/PlaybackQueueCapabilities_pb2.py +++ b/pyatv/protocols/mrp/protobuf/PlaybackQueueCapabilities_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/PlaybackQueueCapabilities.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/PlaybackQueueCapabilities.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/PlaybackQueueCapabilities_pb2.pyi b/pyatv/protocols/mrp/protobuf/PlaybackQueueCapabilities_pb2.pyi index 0fc7dd531..bf1a06164 100644 --- a/pyatv/protocols/mrp/protobuf/PlaybackQueueCapabilities_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/PlaybackQueueCapabilities_pb2.pyi @@ -2,28 +2,32 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class PlaybackQueueCapabilities(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + REQUESTBYRANGE_FIELD_NUMBER: builtins.int REQUESTBYIDENTIFIERS_FIELD_NUMBER: builtins.int REQUESTBYREQUEST_FIELD_NUMBER: builtins.int requestByRange: builtins.bool requestByIdentifiers: builtins.bool requestByRequest: builtins.bool - def __init__(self, + def __init__( + self, *, - requestByRange: typing.Optional[builtins.bool] = ..., - requestByIdentifiers: typing.Optional[builtins.bool] = ..., - requestByRequest: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["requestByIdentifiers",b"requestByIdentifiers","requestByRange",b"requestByRange","requestByRequest",b"requestByRequest"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["requestByIdentifiers",b"requestByIdentifiers","requestByRange",b"requestByRange","requestByRequest",b"requestByRequest"]) -> None: ... + requestByRange: builtins.bool | None = ..., + requestByIdentifiers: builtins.bool | None = ..., + requestByRequest: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["requestByIdentifiers", b"requestByIdentifiers", "requestByRange", b"requestByRange", "requestByRequest", b"requestByRequest"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["requestByIdentifiers", b"requestByIdentifiers", "requestByRange", b"requestByRange", "requestByRequest", b"requestByRequest"]) -> None: ... + global___PlaybackQueueCapabilities = PlaybackQueueCapabilities diff --git a/pyatv/protocols/mrp/protobuf/PlaybackQueueContext_pb2.py b/pyatv/protocols/mrp/protobuf/PlaybackQueueContext_pb2.py index 5505b91c0..d4d97e6a7 100644 --- a/pyatv/protocols/mrp/protobuf/PlaybackQueueContext_pb2.py +++ b/pyatv/protocols/mrp/protobuf/PlaybackQueueContext_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/PlaybackQueueContext.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/PlaybackQueueContext.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/PlaybackQueueContext_pb2.pyi b/pyatv/protocols/mrp/protobuf/PlaybackQueueContext_pb2.pyi index c2548483c..743e9aa7b 100644 --- a/pyatv/protocols/mrp/protobuf/PlaybackQueueContext_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/PlaybackQueueContext_pb2.pyi @@ -2,22 +2,26 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class PlaybackQueueContext(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + REVISION_FIELD_NUMBER: builtins.int - revision: typing.Text - def __init__(self, + revision: builtins.str + def __init__( + self, *, - revision: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["revision",b"revision"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["revision",b"revision"]) -> None: ... + revision: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["revision", b"revision"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["revision", b"revision"]) -> None: ... + global___PlaybackQueueContext = PlaybackQueueContext diff --git a/pyatv/protocols/mrp/protobuf/PlaybackQueueRequestMessage_pb2.py b/pyatv/protocols/mrp/protobuf/PlaybackQueueRequestMessage_pb2.py index e923cb325..6c0e2a15f 100644 --- a/pyatv/protocols/mrp/protobuf/PlaybackQueueRequestMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/PlaybackQueueRequestMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/PlaybackQueueRequestMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/PlaybackQueueRequestMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/PlaybackQueueRequestMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/PlaybackQueueRequestMessage_pb2.pyi index 3de06a666..b0f34e071 100644 --- a/pyatv/protocols/mrp/protobuf/PlaybackQueueRequestMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/PlaybackQueueRequestMessage_pb2.pyi @@ -2,7 +2,9 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.extension_dict @@ -11,12 +13,13 @@ import pyatv.protocols.mrp.protobuf.PlaybackQueueContext_pb2 import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class PlaybackQueueRequestMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LOCATION_FIELD_NUMBER: builtins.int LENGTH_FIELD_NUMBER: builtins.int INCLUDEMETADATA_FIELD_NUMBER: builtins.int @@ -43,39 +46,41 @@ class PlaybackQueueRequestMessage(google.protobuf.message.Message): includeSections: builtins.bool includeInfo: builtins.bool includeLanguageOptions: builtins.bool + requestID: builtins.str + returnContentItemAssetsInUserCompletion: builtins.bool + cachingPolicy: builtins.int + label: builtins.str + isLegacyNowPlayingInfoRequest: builtins.bool @property def context(self) -> pyatv.protocols.mrp.protobuf.PlaybackQueueContext_pb2.PlaybackQueueContext: ... - requestID: typing.Text @property - def contentItemIdentifiers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - returnContentItemAssetsInUserCompletion: builtins.bool + def contentItemIdentifiers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - cachingPolicy: builtins.int - label: typing.Text - isLegacyNowPlayingInfoRequest: builtins.bool - def __init__(self, + def __init__( + self, *, - location: typing.Optional[builtins.int] = ..., - length: typing.Optional[builtins.int] = ..., - includeMetadata: typing.Optional[builtins.bool] = ..., - artworkWidth: typing.Optional[builtins.float] = ..., - artworkHeight: typing.Optional[builtins.float] = ..., - includeLyrics: typing.Optional[builtins.bool] = ..., - includeSections: typing.Optional[builtins.bool] = ..., - includeInfo: typing.Optional[builtins.bool] = ..., - includeLanguageOptions: typing.Optional[builtins.bool] = ..., - context: typing.Optional[pyatv.protocols.mrp.protobuf.PlaybackQueueContext_pb2.PlaybackQueueContext] = ..., - requestID: typing.Optional[typing.Text] = ..., - contentItemIdentifiers: typing.Optional[typing.Iterable[typing.Text]] = ..., - returnContentItemAssetsInUserCompletion: typing.Optional[builtins.bool] = ..., - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - cachingPolicy: typing.Optional[builtins.int] = ..., - label: typing.Optional[typing.Text] = ..., - isLegacyNowPlayingInfoRequest: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["artworkHeight",b"artworkHeight","artworkWidth",b"artworkWidth","cachingPolicy",b"cachingPolicy","context",b"context","includeInfo",b"includeInfo","includeLanguageOptions",b"includeLanguageOptions","includeLyrics",b"includeLyrics","includeMetadata",b"includeMetadata","includeSections",b"includeSections","isLegacyNowPlayingInfoRequest",b"isLegacyNowPlayingInfoRequest","label",b"label","length",b"length","location",b"location","playerPath",b"playerPath","requestID",b"requestID","returnContentItemAssetsInUserCompletion",b"returnContentItemAssetsInUserCompletion"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["artworkHeight",b"artworkHeight","artworkWidth",b"artworkWidth","cachingPolicy",b"cachingPolicy","contentItemIdentifiers",b"contentItemIdentifiers","context",b"context","includeInfo",b"includeInfo","includeLanguageOptions",b"includeLanguageOptions","includeLyrics",b"includeLyrics","includeMetadata",b"includeMetadata","includeSections",b"includeSections","isLegacyNowPlayingInfoRequest",b"isLegacyNowPlayingInfoRequest","label",b"label","length",b"length","location",b"location","playerPath",b"playerPath","requestID",b"requestID","returnContentItemAssetsInUserCompletion",b"returnContentItemAssetsInUserCompletion"]) -> None: ... + location: builtins.int | None = ..., + length: builtins.int | None = ..., + includeMetadata: builtins.bool | None = ..., + artworkWidth: builtins.float | None = ..., + artworkHeight: builtins.float | None = ..., + includeLyrics: builtins.bool | None = ..., + includeSections: builtins.bool | None = ..., + includeInfo: builtins.bool | None = ..., + includeLanguageOptions: builtins.bool | None = ..., + context: pyatv.protocols.mrp.protobuf.PlaybackQueueContext_pb2.PlaybackQueueContext | None = ..., + requestID: builtins.str | None = ..., + contentItemIdentifiers: collections.abc.Iterable[builtins.str] | None = ..., + returnContentItemAssetsInUserCompletion: builtins.bool | None = ..., + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + cachingPolicy: builtins.int | None = ..., + label: builtins.str | None = ..., + isLegacyNowPlayingInfoRequest: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["artworkHeight", b"artworkHeight", "artworkWidth", b"artworkWidth", "cachingPolicy", b"cachingPolicy", "context", b"context", "includeInfo", b"includeInfo", "includeLanguageOptions", b"includeLanguageOptions", "includeLyrics", b"includeLyrics", "includeMetadata", b"includeMetadata", "includeSections", b"includeSections", "isLegacyNowPlayingInfoRequest", b"isLegacyNowPlayingInfoRequest", "label", b"label", "length", b"length", "location", b"location", "playerPath", b"playerPath", "requestID", b"requestID", "returnContentItemAssetsInUserCompletion", b"returnContentItemAssetsInUserCompletion"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["artworkHeight", b"artworkHeight", "artworkWidth", b"artworkWidth", "cachingPolicy", b"cachingPolicy", "contentItemIdentifiers", b"contentItemIdentifiers", "context", b"context", "includeInfo", b"includeInfo", "includeLanguageOptions", b"includeLanguageOptions", "includeLyrics", b"includeLyrics", "includeMetadata", b"includeMetadata", "includeSections", b"includeSections", "isLegacyNowPlayingInfoRequest", b"isLegacyNowPlayingInfoRequest", "label", b"label", "length", b"length", "location", b"location", "playerPath", b"playerPath", "requestID", b"requestID", "returnContentItemAssetsInUserCompletion", b"returnContentItemAssetsInUserCompletion"]) -> None: ... + global___PlaybackQueueRequestMessage = PlaybackQueueRequestMessage PLAYBACKQUEUEREQUESTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/PlaybackQueue_pb2.py b/pyatv/protocols/mrp/protobuf/PlaybackQueue_pb2.py index 20d1c79bf..3543b4983 100644 --- a/pyatv/protocols/mrp/protobuf/PlaybackQueue_pb2.py +++ b/pyatv/protocols/mrp/protobuf/PlaybackQueue_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/PlaybackQueue.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/PlaybackQueue.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/PlaybackQueue_pb2.pyi b/pyatv/protocols/mrp/protobuf/PlaybackQueue_pb2.pyi index 6ef13d04c..801830f5a 100644 --- a/pyatv/protocols/mrp/protobuf/PlaybackQueue_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/PlaybackQueue_pb2.pyi @@ -2,7 +2,9 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message @@ -10,12 +12,13 @@ import pyatv.protocols.mrp.protobuf.ContentItem_pb2 import pyatv.protocols.mrp.protobuf.PlaybackQueueContext_pb2 import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class PlaybackQueue(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LOCATION_FIELD_NUMBER: builtins.int CONTENTITEMS_FIELD_NUMBER: builtins.int CONTEXT_FIELD_NUMBER: builtins.int @@ -24,25 +27,27 @@ class PlaybackQueue(google.protobuf.message.Message): SENDINGPLAYBACKQUEUETRANSACTION_FIELD_NUMBER: builtins.int QUEUEIDENTIFIER_FIELD_NUMBER: builtins.int location: builtins.int + requestId: builtins.str + sendingPlaybackQueueTransaction: builtins.bool + queueIdentifier: builtins.str @property def contentItems(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[pyatv.protocols.mrp.protobuf.ContentItem_pb2.ContentItem]: ... @property def context(self) -> pyatv.protocols.mrp.protobuf.PlaybackQueueContext_pb2.PlaybackQueueContext: ... - requestId: typing.Text @property def resolvedPlayerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - sendingPlaybackQueueTransaction: builtins.bool - queueIdentifier: typing.Text - def __init__(self, + def __init__( + self, *, - location: typing.Optional[builtins.int] = ..., - contentItems: typing.Optional[typing.Iterable[pyatv.protocols.mrp.protobuf.ContentItem_pb2.ContentItem]] = ..., - context: typing.Optional[pyatv.protocols.mrp.protobuf.PlaybackQueueContext_pb2.PlaybackQueueContext] = ..., - requestId: typing.Optional[typing.Text] = ..., - resolvedPlayerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - sendingPlaybackQueueTransaction: typing.Optional[builtins.bool] = ..., - queueIdentifier: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["context",b"context","location",b"location","queueIdentifier",b"queueIdentifier","requestId",b"requestId","resolvedPlayerPath",b"resolvedPlayerPath","sendingPlaybackQueueTransaction",b"sendingPlaybackQueueTransaction"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["contentItems",b"contentItems","context",b"context","location",b"location","queueIdentifier",b"queueIdentifier","requestId",b"requestId","resolvedPlayerPath",b"resolvedPlayerPath","sendingPlaybackQueueTransaction",b"sendingPlaybackQueueTransaction"]) -> None: ... + location: builtins.int | None = ..., + contentItems: collections.abc.Iterable[pyatv.protocols.mrp.protobuf.ContentItem_pb2.ContentItem] | None = ..., + context: pyatv.protocols.mrp.protobuf.PlaybackQueueContext_pb2.PlaybackQueueContext | None = ..., + requestId: builtins.str | None = ..., + resolvedPlayerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + sendingPlaybackQueueTransaction: builtins.bool | None = ..., + queueIdentifier: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["context", b"context", "location", b"location", "queueIdentifier", b"queueIdentifier", "requestId", b"requestId", "resolvedPlayerPath", b"resolvedPlayerPath", "sendingPlaybackQueueTransaction", b"sendingPlaybackQueueTransaction"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["contentItems", b"contentItems", "context", b"context", "location", b"location", "queueIdentifier", b"queueIdentifier", "requestId", b"requestId", "resolvedPlayerPath", b"resolvedPlayerPath", "sendingPlaybackQueueTransaction", b"sendingPlaybackQueueTransaction"]) -> None: ... + global___PlaybackQueue = PlaybackQueue diff --git a/pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py b/pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py index bd429e532..3628afb8d 100644 --- a/pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.pyi index acc9fe9a7..05c1fa388 100644 --- a/pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/PlayerClientPropertiesMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,24 +10,27 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class PlayerClientPropertiesMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PLAYERPATH_FIELD_NUMBER: builtins.int LASTPLAYINGTIMESTAMP_FIELD_NUMBER: builtins.int + lastPlayingTimestamp: builtins.float @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - lastPlayingTimestamp: builtins.float - def __init__(self, + def __init__( + self, *, - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - lastPlayingTimestamp: typing.Optional[builtins.float] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["lastPlayingTimestamp",b"lastPlayingTimestamp","playerPath",b"playerPath"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["lastPlayingTimestamp",b"lastPlayingTimestamp","playerPath",b"playerPath"]) -> None: ... + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + lastPlayingTimestamp: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["lastPlayingTimestamp", b"lastPlayingTimestamp", "playerPath", b"playerPath"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["lastPlayingTimestamp", b"lastPlayingTimestamp", "playerPath", b"playerPath"]) -> None: ... + global___PlayerClientPropertiesMessage = PlayerClientPropertiesMessage PLAYERCLIENTPROPERTIESMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/PlayerPath_pb2.py b/pyatv/protocols/mrp/protobuf/PlayerPath_pb2.py index 93ae08454..a5c9c9b8f 100644 --- a/pyatv/protocols/mrp/protobuf/PlayerPath_pb2.py +++ b/pyatv/protocols/mrp/protobuf/PlayerPath_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/PlayerPath.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/PlayerPath.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/PlayerPath_pb2.pyi b/pyatv/protocols/mrp/protobuf/PlayerPath_pb2.pyi index bc083ef61..4c26fa4e8 100644 --- a/pyatv/protocols/mrp/protobuf/PlayerPath_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/PlayerPath_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message @@ -9,12 +10,13 @@ import pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2 import pyatv.protocols.mrp.protobuf.NowPlayingPlayer_pb2 import pyatv.protocols.mrp.protobuf.Origin_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class PlayerPath(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ORIGIN_FIELD_NUMBER: builtins.int CLIENT_FIELD_NUMBER: builtins.int PLAYER_FIELD_NUMBER: builtins.int @@ -24,12 +26,14 @@ class PlayerPath(google.protobuf.message.Message): def client(self) -> pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient: ... @property def player(self) -> pyatv.protocols.mrp.protobuf.NowPlayingPlayer_pb2.NowPlayingPlayer: ... - def __init__(self, + def __init__( + self, *, - origin: typing.Optional[pyatv.protocols.mrp.protobuf.Origin_pb2.Origin] = ..., - client: typing.Optional[pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient] = ..., - player: typing.Optional[pyatv.protocols.mrp.protobuf.NowPlayingPlayer_pb2.NowPlayingPlayer] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["client",b"client","origin",b"origin","player",b"player"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["client",b"client","origin",b"origin","player",b"player"]) -> None: ... + origin: pyatv.protocols.mrp.protobuf.Origin_pb2.Origin | None = ..., + client: pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient | None = ..., + player: pyatv.protocols.mrp.protobuf.NowPlayingPlayer_pb2.NowPlayingPlayer | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["client", b"client", "origin", b"origin", "player", b"player"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["client", b"client", "origin", b"origin", "player", b"player"]) -> None: ... + global___PlayerPath = PlayerPath diff --git a/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.py b/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.py index 5f8b96242..7fe008cb5 100644 --- a/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/ProtocolMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/ProtocolMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.pyi index 7bc75d3fb..39dc9be9e 100644 --- a/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/ProtocolMessage_pb2.pyi @@ -2,20 +2,29 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ErrorCode(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ErrorCode._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor NoError: ErrorCode._Enum.ValueType # 0 @@ -37,10 +46,8 @@ class ErrorCode(google.protobuf.message.Message): RequestedDataIsOutOfDateAndShouldBeRequestedAgain: ErrorCode._Enum.ValueType # 16 TheDevicesEnforcedVolumeLimitHasBeenExceeded: ErrorCode._Enum.ValueType # 17 """The system will ignore the volume adjustment until overridden.""" - VolumeValueIsOutOfRange: ErrorCode._Enum.ValueType # 18 """between 0.0 and 1.0, where 1.0 is the loudest""" - VolumeIsAlreadyAtTheMaximumValue: ErrorCode._Enum.ValueType # 19 VolumeIsAlreadyMuted: ErrorCode._Enum.ValueType # 20 VoiceInputEndpointDoesNotExist: ErrorCode._Enum.ValueType # 21 @@ -84,9 +91,8 @@ class ErrorCode(google.protobuf.message.Message): OutputContextModificationCausedADeviceToBecomeAProxyGroupPlayer: ErrorCode._Enum.ValueType # 201 OutputContextModificationRequestedNoTopologyChange: ErrorCode._Enum.ValueType # 202 OtherUnknownError: ErrorCode._Enum.ValueType # 299 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... NoError: ErrorCode.Enum.ValueType # 0 UnknownError: ErrorCode.Enum.ValueType # 1 InvalidOperation: ErrorCode.Enum.ValueType # 2 @@ -106,10 +112,8 @@ class ErrorCode(google.protobuf.message.Message): RequestedDataIsOutOfDateAndShouldBeRequestedAgain: ErrorCode.Enum.ValueType # 16 TheDevicesEnforcedVolumeLimitHasBeenExceeded: ErrorCode.Enum.ValueType # 17 """The system will ignore the volume adjustment until overridden.""" - VolumeValueIsOutOfRange: ErrorCode.Enum.ValueType # 18 """between 0.0 and 1.0, where 1.0 is the loudest""" - VolumeIsAlreadyAtTheMaximumValue: ErrorCode.Enum.ValueType # 19 VolumeIsAlreadyMuted: ErrorCode.Enum.ValueType # 20 VoiceInputEndpointDoesNotExist: ErrorCode.Enum.ValueType # 21 @@ -154,15 +158,20 @@ class ErrorCode(google.protobuf.message.Message): OutputContextModificationRequestedNoTopologyChange: ErrorCode.Enum.ValueType # 202 OtherUnknownError: ErrorCode.Enum.ValueType # 299 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___ErrorCode = ErrorCode +@typing.final class ProtocolMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Type: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ProtocolMessage._Type.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UNKNOWN_MESSAGE: ProtocolMessage._Type.ValueType # 0 @@ -233,7 +242,6 @@ class ProtocolMessage(google.protobuf.message.Message): GET_REMOTE_TEXT_INPUT_SESSION_MESSAGE: ProtocolMessage._Type.ValueType # 68 REMOVE_OUTPUT_DEVICES_MESSAGE2: ProtocolMessage._Type.ValueType # 69 """Same as 66?""" - PLAYBACK_SESSION_REQUEST_MESSAGE: ProtocolMessage._Type.ValueType # 70 PLAYBACK_SESSION_RESPONSE_MESSAGE: ProtocolMessage._Type.ValueType # 71 SET_DEFAULT_SUPPORTED_COMMANDS_MESSAGE: ProtocolMessage._Type.ValueType # 72 @@ -250,9 +258,8 @@ class ProtocolMessage(google.protobuf.message.Message): AUDIO_FADE_MESSAGE: ProtocolMessage._Type.ValueType # 106 AUDIO_FADE_RESPONSE_MESSAGE: ProtocolMessage._Type.ValueType # 107 CONFIGURE_CONNECTION_MESSAGE: ProtocolMessage._Type.ValueType # 120 - class Type(_Type, metaclass=_TypeEnumTypeWrapper): - pass + class Type(_Type, metaclass=_TypeEnumTypeWrapper): ... UNKNOWN_MESSAGE: ProtocolMessage.Type.ValueType # 0 SEND_COMMAND_MESSAGE: ProtocolMessage.Type.ValueType # 1 SEND_COMMAND_RESULT_MESSAGE: ProtocolMessage.Type.ValueType # 2 @@ -321,7 +328,6 @@ class ProtocolMessage(google.protobuf.message.Message): GET_REMOTE_TEXT_INPUT_SESSION_MESSAGE: ProtocolMessage.Type.ValueType # 68 REMOVE_OUTPUT_DEVICES_MESSAGE2: ProtocolMessage.Type.ValueType # 69 """Same as 66?""" - PLAYBACK_SESSION_REQUEST_MESSAGE: ProtocolMessage.Type.ValueType # 70 PLAYBACK_SESSION_RESPONSE_MESSAGE: ProtocolMessage.Type.ValueType # 71 SET_DEFAULT_SUPPORTED_COMMANDS_MESSAGE: ProtocolMessage.Type.ValueType # 72 @@ -348,23 +354,24 @@ class ProtocolMessage(google.protobuf.message.Message): UNIQUEIDENTIFIER_FIELD_NUMBER: builtins.int type: global___ProtocolMessage.Type.ValueType """Identifies which underlying message is filled in.""" - - identifier: typing.Text - authenticationToken: typing.Text + identifier: builtins.str + authenticationToken: builtins.str errorCode: global___ErrorCode.Enum.ValueType timestamp: builtins.int - errorDescription: typing.Text - uniqueIdentifier: typing.Text - def __init__(self, + errorDescription: builtins.str + uniqueIdentifier: builtins.str + def __init__( + self, *, - type: typing.Optional[global___ProtocolMessage.Type.ValueType] = ..., - identifier: typing.Optional[typing.Text] = ..., - authenticationToken: typing.Optional[typing.Text] = ..., - errorCode: typing.Optional[global___ErrorCode.Enum.ValueType] = ..., - timestamp: typing.Optional[builtins.int] = ..., - errorDescription: typing.Optional[typing.Text] = ..., - uniqueIdentifier: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["authenticationToken",b"authenticationToken","errorCode",b"errorCode","errorDescription",b"errorDescription","identifier",b"identifier","timestamp",b"timestamp","type",b"type","uniqueIdentifier",b"uniqueIdentifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["authenticationToken",b"authenticationToken","errorCode",b"errorCode","errorDescription",b"errorDescription","identifier",b"identifier","timestamp",b"timestamp","type",b"type","uniqueIdentifier",b"uniqueIdentifier"]) -> None: ... + type: global___ProtocolMessage.Type.ValueType | None = ..., + identifier: builtins.str | None = ..., + authenticationToken: builtins.str | None = ..., + errorCode: global___ErrorCode.Enum.ValueType | None = ..., + timestamp: builtins.int | None = ..., + errorDescription: builtins.str | None = ..., + uniqueIdentifier: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["authenticationToken", b"authenticationToken", "errorCode", b"errorCode", "errorDescription", b"errorDescription", "identifier", b"identifier", "timestamp", b"timestamp", "type", b"type", "uniqueIdentifier", b"uniqueIdentifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["authenticationToken", b"authenticationToken", "errorCode", b"errorCode", "errorDescription", b"errorDescription", "identifier", b"identifier", "timestamp", b"timestamp", "type", b"type", "uniqueIdentifier", b"uniqueIdentifier"]) -> None: ... + global___ProtocolMessage = ProtocolMessage diff --git a/pyatv/protocols/mrp/protobuf/RegisterForGameControllerEventsMessage_pb2.py b/pyatv/protocols/mrp/protobuf/RegisterForGameControllerEventsMessage_pb2.py index 297ae86cf..bda86cd25 100644 --- a/pyatv/protocols/mrp/protobuf/RegisterForGameControllerEventsMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/RegisterForGameControllerEventsMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/RegisterForGameControllerEventsMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/RegisterForGameControllerEventsMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/RegisterForGameControllerEventsMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/RegisterForGameControllerEventsMessage_pb2.pyi index 7f5d26b3f..27de822f2 100644 --- a/pyatv/protocols/mrp/protobuf/RegisterForGameControllerEventsMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/RegisterForGameControllerEventsMessage_pb2.pyi @@ -2,42 +2,52 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RegisterForGameControllerEventsMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _InputModeFlags: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _InputModeFlagsEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[RegisterForGameControllerEventsMessage._InputModeFlags.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Motion: RegisterForGameControllerEventsMessage._InputModeFlags.ValueType # 1 Buttons: RegisterForGameControllerEventsMessage._InputModeFlags.ValueType # 2 Digitizer: RegisterForGameControllerEventsMessage._InputModeFlags.ValueType # 3 - class InputModeFlags(_InputModeFlags, metaclass=_InputModeFlagsEnumTypeWrapper): - pass + class InputModeFlags(_InputModeFlags, metaclass=_InputModeFlagsEnumTypeWrapper): ... Motion: RegisterForGameControllerEventsMessage.InputModeFlags.ValueType # 1 Buttons: RegisterForGameControllerEventsMessage.InputModeFlags.ValueType # 2 Digitizer: RegisterForGameControllerEventsMessage.InputModeFlags.ValueType # 3 INPUTMODEFLAGS_FIELD_NUMBER: builtins.int inputModeFlags: global___RegisterForGameControllerEventsMessage.InputModeFlags.ValueType - def __init__(self, + def __init__( + self, *, - inputModeFlags: typing.Optional[global___RegisterForGameControllerEventsMessage.InputModeFlags.ValueType] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["inputModeFlags",b"inputModeFlags"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["inputModeFlags",b"inputModeFlags"]) -> None: ... + inputModeFlags: global___RegisterForGameControllerEventsMessage.InputModeFlags.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["inputModeFlags", b"inputModeFlags"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["inputModeFlags", b"inputModeFlags"]) -> None: ... + global___RegisterForGameControllerEventsMessage = RegisterForGameControllerEventsMessage REGISTERFORGAMECONTROLLEREVENTSMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceMessage_pb2.py b/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceMessage_pb2.py index 20105f57a..1f2518fe1 100644 --- a/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/RegisterHIDDeviceMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/RegisterHIDDeviceMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceMessage_pb2.pyi index b37f29d49..4a1673720 100644 --- a/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,21 +10,24 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import pyatv.protocols.mrp.protobuf.VirtualTouchDeviceDescriptorMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RegisterHIDDeviceMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICEDESCRIPTOR_FIELD_NUMBER: builtins.int @property def deviceDescriptor(self) -> pyatv.protocols.mrp.protobuf.VirtualTouchDeviceDescriptorMessage_pb2.VirtualTouchDeviceDescriptor: ... - def __init__(self, + def __init__( + self, *, - deviceDescriptor: typing.Optional[pyatv.protocols.mrp.protobuf.VirtualTouchDeviceDescriptorMessage_pb2.VirtualTouchDeviceDescriptor] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["deviceDescriptor",b"deviceDescriptor"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["deviceDescriptor",b"deviceDescriptor"]) -> None: ... + deviceDescriptor: pyatv.protocols.mrp.protobuf.VirtualTouchDeviceDescriptorMessage_pb2.VirtualTouchDeviceDescriptor | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["deviceDescriptor", b"deviceDescriptor"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["deviceDescriptor", b"deviceDescriptor"]) -> None: ... + global___RegisterHIDDeviceMessage = RegisterHIDDeviceMessage REGISTERHIDDEVICEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceResultMessage_pb2.py b/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceResultMessage_pb2.py index c4499d375..2af3a99e1 100644 --- a/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceResultMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceResultMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/RegisterHIDDeviceResultMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/RegisterHIDDeviceResultMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceResultMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceResultMessage_pb2.pyi index b17786234..78f393df5 100644 --- a/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceResultMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/RegisterHIDDeviceResultMessage_pb2.pyi @@ -2,29 +2,33 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RegisterHIDDeviceResultMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ERRORCODE_FIELD_NUMBER: builtins.int DEVICEIDENTIFIER_FIELD_NUMBER: builtins.int errorCode: builtins.int deviceIdentifier: builtins.int - def __init__(self, + def __init__( + self, *, - errorCode: typing.Optional[builtins.int] = ..., - deviceIdentifier: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["deviceIdentifier",b"deviceIdentifier","errorCode",b"errorCode"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["deviceIdentifier",b"deviceIdentifier","errorCode",b"errorCode"]) -> None: ... + errorCode: builtins.int | None = ..., + deviceIdentifier: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["deviceIdentifier", b"deviceIdentifier", "errorCode", b"errorCode"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["deviceIdentifier", b"deviceIdentifier", "errorCode", b"errorCode"]) -> None: ... + global___RegisterHIDDeviceResultMessage = RegisterHIDDeviceResultMessage REGISTERHIDDEVICERESULTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceMessage_pb2.py b/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceMessage_pb2.py index 40a1a3412..5cb547e5f 100644 --- a/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceMessage_pb2.pyi index 7efde5371..8818c243e 100644 --- a/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,21 +10,24 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import pyatv.protocols.mrp.protobuf.VoiceInputDeviceDescriptorMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RegisterVoiceInputDeviceMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICEDESCRIPTOR_FIELD_NUMBER: builtins.int @property def deviceDescriptor(self) -> pyatv.protocols.mrp.protobuf.VoiceInputDeviceDescriptorMessage_pb2.VoiceInputDeviceDescriptor: ... - def __init__(self, + def __init__( + self, *, - deviceDescriptor: typing.Optional[pyatv.protocols.mrp.protobuf.VoiceInputDeviceDescriptorMessage_pb2.VoiceInputDeviceDescriptor] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["deviceDescriptor",b"deviceDescriptor"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["deviceDescriptor",b"deviceDescriptor"]) -> None: ... + deviceDescriptor: pyatv.protocols.mrp.protobuf.VoiceInputDeviceDescriptorMessage_pb2.VoiceInputDeviceDescriptor | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["deviceDescriptor", b"deviceDescriptor"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["deviceDescriptor", b"deviceDescriptor"]) -> None: ... + global___RegisterVoiceInputDeviceMessage = RegisterVoiceInputDeviceMessage REGISTERVOICEINPUTDEVICEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceResponseMessage_pb2.py b/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceResponseMessage_pb2.py index a9d08bff8..e1e6a0ed7 100644 --- a/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceResponseMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceResponseMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceResponseMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceResponseMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceResponseMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceResponseMessage_pb2.pyi index e4ca5cec4..4dde89bd4 100644 --- a/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceResponseMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/RegisterVoiceInputDeviceResponseMessage_pb2.pyi @@ -2,29 +2,33 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RegisterVoiceInputDeviceResponseMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICEID_FIELD_NUMBER: builtins.int ERRORCODE_FIELD_NUMBER: builtins.int deviceID: builtins.int errorCode: builtins.int - def __init__(self, + def __init__( + self, *, - deviceID: typing.Optional[builtins.int] = ..., - errorCode: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["deviceID",b"deviceID","errorCode",b"errorCode"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["deviceID",b"deviceID","errorCode",b"errorCode"]) -> None: ... + deviceID: builtins.int | None = ..., + errorCode: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["deviceID", b"deviceID", "errorCode", b"errorCode"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["deviceID", b"deviceID", "errorCode", b"errorCode"]) -> None: ... + global___RegisterVoiceInputDeviceResponseMessage = RegisterVoiceInputDeviceResponseMessage REGISTERVOICEINPUTDEVICERESPONSEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.py b/pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.py index ce48d0003..a429ec121 100644 --- a/pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/RemoteTextInputMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/RemoteTextInputMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.pyi index 3048e7c07..9f27af765 100644 --- a/pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.pyi @@ -2,32 +2,36 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RemoteTextInputMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIMESTAMP_FIELD_NUMBER: builtins.int VERSION_FIELD_NUMBER: builtins.int DATA_FIELD_NUMBER: builtins.int timestamp: builtins.float version: builtins.int data: builtins.bytes - def __init__(self, + def __init__( + self, *, - timestamp: typing.Optional[builtins.float] = ..., - version: typing.Optional[builtins.int] = ..., - data: typing.Optional[builtins.bytes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["data",b"data","timestamp",b"timestamp","version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["data",b"data","timestamp",b"timestamp","version",b"version"]) -> None: ... + timestamp: builtins.float | None = ..., + version: builtins.int | None = ..., + data: builtins.bytes | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["data", b"data", "timestamp", b"timestamp", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["data", b"data", "timestamp", b"timestamp", "version", b"version"]) -> None: ... + global___RemoteTextInputMessage = RemoteTextInputMessage REMOTETEXTINPUTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/RemoveClientMessage_pb2.py b/pyatv/protocols/mrp/protobuf/RemoveClientMessage_pb2.py index a93199b08..480109c8d 100644 --- a/pyatv/protocols/mrp/protobuf/RemoveClientMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/RemoveClientMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/RemoveClientMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/RemoveClientMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/RemoveClientMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/RemoveClientMessage_pb2.pyi index 3fb3cbe0f..7341d507b 100644 --- a/pyatv/protocols/mrp/protobuf/RemoveClientMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/RemoveClientMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,21 +10,24 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RemoveClientMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + CLIENT_FIELD_NUMBER: builtins.int @property def client(self) -> pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient: ... - def __init__(self, + def __init__( + self, *, - client: typing.Optional[pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["client",b"client"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["client",b"client"]) -> None: ... + client: pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["client", b"client"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["client", b"client"]) -> None: ... + global___RemoveClientMessage = RemoveClientMessage REMOVECLIENTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/RemoveEndpointsMessage_pb2.py b/pyatv/protocols/mrp/protobuf/RemoveEndpointsMessage_pb2.py index d567ce3ad..0c1cb2765 100644 --- a/pyatv/protocols/mrp/protobuf/RemoveEndpointsMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/RemoveEndpointsMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/RemoveEndpointsMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/RemoveEndpointsMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/RemoveEndpointsMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/RemoveEndpointsMessage_pb2.pyi index a301289a6..aa9b0ab4b 100644 --- a/pyatv/protocols/mrp/protobuf/RemoveEndpointsMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/RemoveEndpointsMessage_pb2.pyi @@ -2,27 +2,32 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RemoveEndpointsMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ENDPOINTUIDS_FIELD_NUMBER: builtins.int @property - def endpointUIDs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - def __init__(self, + def endpointUIDs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, *, - endpointUIDs: typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["endpointUIDs",b"endpointUIDs"]) -> None: ... + endpointUIDs: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["endpointUIDs", b"endpointUIDs"]) -> None: ... + global___RemoveEndpointsMessage = RemoveEndpointsMessage REMOVEENDPOINTSMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/RemoveOutputDevicesMessage_pb2.py b/pyatv/protocols/mrp/protobuf/RemoveOutputDevicesMessage_pb2.py index 09be6631c..012ad212a 100644 --- a/pyatv/protocols/mrp/protobuf/RemoveOutputDevicesMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/RemoveOutputDevicesMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/RemoveOutputDevicesMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/RemoveOutputDevicesMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/RemoveOutputDevicesMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/RemoveOutputDevicesMessage_pb2.pyi index 334337850..acd66d104 100644 --- a/pyatv/protocols/mrp/protobuf/RemoveOutputDevicesMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/RemoveOutputDevicesMessage_pb2.pyi @@ -2,31 +2,36 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RemoveOutputDevicesMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + OUTPUTDEVICEUIDS_FIELD_NUMBER: builtins.int ENDPOINTUID_FIELD_NUMBER: builtins.int + endpointUID: builtins.str @property - def outputDeviceUIDs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - endpointUID: typing.Text - def __init__(self, + def outputDeviceUIDs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, *, - outputDeviceUIDs: typing.Optional[typing.Iterable[typing.Text]] = ..., - endpointUID: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["endpointUID",b"endpointUID"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["endpointUID",b"endpointUID","outputDeviceUIDs",b"outputDeviceUIDs"]) -> None: ... + outputDeviceUIDs: collections.abc.Iterable[builtins.str] | None = ..., + endpointUID: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["endpointUID", b"endpointUID"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["endpointUID", b"endpointUID", "outputDeviceUIDs", b"outputDeviceUIDs"]) -> None: ... + global___RemoveOutputDevicesMessage = RemoveOutputDevicesMessage REMOVEOUTPUTDEVICESMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/RemovePlayerMessage_pb2.py b/pyatv/protocols/mrp/protobuf/RemovePlayerMessage_pb2.py index a86c47a47..ca919ad01 100644 --- a/pyatv/protocols/mrp/protobuf/RemovePlayerMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/RemovePlayerMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/RemovePlayerMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/RemovePlayerMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/RemovePlayerMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/RemovePlayerMessage_pb2.pyi index 80258baf5..d7e9c5143 100644 --- a/pyatv/protocols/mrp/protobuf/RemovePlayerMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/RemovePlayerMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,21 +10,24 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RemovePlayerMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PLAYERPATH_FIELD_NUMBER: builtins.int @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - def __init__(self, + def __init__( + self, *, - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["playerPath",b"playerPath"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["playerPath",b"playerPath"]) -> None: ... + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["playerPath", b"playerPath"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["playerPath", b"playerPath"]) -> None: ... + global___RemovePlayerMessage = RemovePlayerMessage REMOVEPLAYERMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SendButtonEventMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SendButtonEventMessage_pb2.py index f974853de..57ad466a4 100644 --- a/pyatv/protocols/mrp/protobuf/SendButtonEventMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SendButtonEventMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SendButtonEventMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SendButtonEventMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SendButtonEventMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SendButtonEventMessage_pb2.pyi index b16687f51..f11648509 100644 --- a/pyatv/protocols/mrp/protobuf/SendButtonEventMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SendButtonEventMessage_pb2.pyi @@ -2,32 +2,36 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SendButtonEventMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + USAGEPAGE_FIELD_NUMBER: builtins.int USAGE_FIELD_NUMBER: builtins.int BUTTONDOWN_FIELD_NUMBER: builtins.int usagePage: builtins.int usage: builtins.int buttonDown: builtins.bool - def __init__(self, + def __init__( + self, *, - usagePage: typing.Optional[builtins.int] = ..., - usage: typing.Optional[builtins.int] = ..., - buttonDown: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buttonDown",b"buttonDown","usage",b"usage","usagePage",b"usagePage"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buttonDown",b"buttonDown","usage",b"usage","usagePage",b"usagePage"]) -> None: ... + usagePage: builtins.int | None = ..., + usage: builtins.int | None = ..., + buttonDown: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["buttonDown", b"buttonDown", "usage", b"usage", "usagePage", b"usagePage"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["buttonDown", b"buttonDown", "usage", b"usage", "usagePage", b"usagePage"]) -> None: ... + global___SendButtonEventMessage = SendButtonEventMessage SENDBUTTONEVENTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SendCommandMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SendCommandMessage_pb2.py index 7a1b92c2c..9efac4eac 100644 --- a/pyatv/protocols/mrp/protobuf/SendCommandMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SendCommandMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SendCommandMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SendCommandMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SendCommandMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SendCommandMessage_pb2.pyi index 31883412f..caa9a3810 100644 --- a/pyatv/protocols/mrp/protobuf/SendCommandMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SendCommandMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -11,12 +12,13 @@ import pyatv.protocols.mrp.protobuf.CommandOptions_pb2 import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SendCommandMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMAND_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int PLAYERPATH_FIELD_NUMBER: builtins.int @@ -25,14 +27,16 @@ class SendCommandMessage(google.protobuf.message.Message): def options(self) -> pyatv.protocols.mrp.protobuf.CommandOptions_pb2.CommandOptions: ... @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - def __init__(self, + def __init__( + self, *, - command: typing.Optional[pyatv.protocols.mrp.protobuf.CommandInfo_pb2.Command.ValueType] = ..., - options: typing.Optional[pyatv.protocols.mrp.protobuf.CommandOptions_pb2.CommandOptions] = ..., - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["command",b"command","options",b"options","playerPath",b"playerPath"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["command",b"command","options",b"options","playerPath",b"playerPath"]) -> None: ... + command: pyatv.protocols.mrp.protobuf.CommandInfo_pb2.Command.ValueType | None = ..., + options: pyatv.protocols.mrp.protobuf.CommandOptions_pb2.CommandOptions | None = ..., + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["command", b"command", "options", b"options", "playerPath", b"playerPath"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["command", b"command", "options", b"options", "playerPath", b"playerPath"]) -> None: ... + global___SendCommandMessage = SendCommandMessage SENDCOMMANDMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.py index 2b071348e..e0fa2563a 100644 --- a/pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SendCommandResultMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SendCommandResultMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.pyi index 68f4855b3..38dd8cf0f 100644 --- a/pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SendCommandResultMessage_pb2.pyi @@ -2,7 +2,9 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper @@ -10,21 +12,28 @@ import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SendError(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SendError._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor NoError: SendError._Enum.ValueType # 0 """This is None in original message definitions (no-go with python)""" - ApplicationNotFound: SendError._Enum.ValueType # 1 ConnectionFailed: SendError._Enum.ValueType # 2 Ignored: SendError._Enum.ValueType # 3 @@ -35,12 +44,10 @@ class SendError(google.protobuf.message.Message): NoCommandHandlers: SendError._Enum.ValueType # 8 ApplicationNotInstalled: SendError._Enum.ValueType # 9 NotSupported: SendError._Enum.ValueType # 10 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... NoError: SendError.Enum.ValueType # 0 """This is None in original message definitions (no-go with python)""" - ApplicationNotFound: SendError.Enum.ValueType # 1 ConnectionFailed: SendError.Enum.ValueType # 2 Ignored: SendError.Enum.ValueType # 3 @@ -52,15 +59,20 @@ class SendError(google.protobuf.message.Message): ApplicationNotInstalled: SendError.Enum.ValueType # 9 NotSupported: SendError.Enum.ValueType # 10 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___SendError = SendError +@typing.final class HandlerReturnStatus(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[HandlerReturnStatus._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Success: HandlerReturnStatus._Enum.ValueType # 0 @@ -80,9 +92,8 @@ class HandlerReturnStatus(google.protobuf.message.Message): SkipLimitReached: HandlerReturnStatus._Enum.ValueType # 108 AuthenticationFailure: HandlerReturnStatus._Enum.ValueType # 401 MediaServiceUnavailable: HandlerReturnStatus._Enum.ValueType # 501 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Success: HandlerReturnStatus.Enum.ValueType # 0 NoSuchContent: HandlerReturnStatus.Enum.ValueType # 1 CommandFailed: HandlerReturnStatus.Enum.ValueType # 2 @@ -101,15 +112,20 @@ class HandlerReturnStatus(google.protobuf.message.Message): AuthenticationFailure: HandlerReturnStatus.Enum.ValueType # 401 MediaServiceUnavailable: HandlerReturnStatus.Enum.ValueType # 501 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___HandlerReturnStatus = HandlerReturnStatus +@typing.final class SendCommandStatusCode(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SendCommandStatusCode._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Success: SendCommandStatusCode._Enum.ValueType # 0 @@ -129,9 +145,8 @@ class SendCommandStatusCode(google.protobuf.message.Message): SkipLimitReached: SendCommandStatusCode._Enum.ValueType # 108 AuthenticationFailure: SendCommandStatusCode._Enum.ValueType # 401 MediaServiceUnavailable: SendCommandStatusCode._Enum.ValueType # 501 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Success: SendCommandStatusCode.Enum.ValueType # 0 NoSuchContent: SendCommandStatusCode.Enum.ValueType # 1 CommandFailed: SendCommandStatusCode.Enum.ValueType # 2 @@ -150,33 +165,41 @@ class SendCommandStatusCode(google.protobuf.message.Message): AuthenticationFailure: SendCommandStatusCode.Enum.ValueType # 401 MediaServiceUnavailable: SendCommandStatusCode.Enum.ValueType # 501 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___SendCommandStatusCode = SendCommandStatusCode +@typing.final class SendCommandResultType(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SendCommandResultType._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Dialog: SendCommandResultType._Enum.ValueType # 1 Error: SendCommandResultType._Enum.ValueType # 2 Custom: SendCommandResultType._Enum.ValueType # 999 - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Dialog: SendCommandResultType.Enum.ValueType # 1 Error: SendCommandResultType.Enum.ValueType # 2 Custom: SendCommandResultType.Enum.ValueType # 999 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___SendCommandResultType = SendCommandResultType +@typing.final class SendCommandResultStatus(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + STATUSCODE_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int CUSTOMDATA_FIELD_NUMBER: builtins.int @@ -187,41 +210,48 @@ class SendCommandResultStatus(google.protobuf.message.Message): """optional ... dialog = 3; optional ... error = 4; """ - - customDataType: typing.Text - def __init__(self, + customDataType: builtins.str + def __init__( + self, *, - statusCode: typing.Optional[global___SendCommandStatusCode.Enum.ValueType] = ..., - type: typing.Optional[global___SendCommandResultType.Enum.ValueType] = ..., - customData: typing.Optional[builtins.bytes] = ..., - customDataType: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["customData",b"customData","customDataType",b"customDataType","statusCode",b"statusCode","type",b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["customData",b"customData","customDataType",b"customDataType","statusCode",b"statusCode","type",b"type"]) -> None: ... + statusCode: global___SendCommandStatusCode.Enum.ValueType | None = ..., + type: global___SendCommandResultType.Enum.ValueType | None = ..., + customData: builtins.bytes | None = ..., + customDataType: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["customData", b"customData", "customDataType", b"customDataType", "statusCode", b"statusCode", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["customData", b"customData", "customDataType", b"customDataType", "statusCode", b"statusCode", "type", b"type"]) -> None: ... + global___SendCommandResultStatus = SendCommandResultStatus +@typing.final class SendCommandResult(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PLAYERPATH_FIELD_NUMBER: builtins.int SENDERROR_FIELD_NUMBER: builtins.int STATUSES_FIELD_NUMBER: builtins.int + sendError: global___SendError.Enum.ValueType @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - sendError: global___SendError.Enum.ValueType @property def statuses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SendCommandResultStatus]: ... - def __init__(self, + def __init__( + self, *, - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - sendError: typing.Optional[global___SendError.Enum.ValueType] = ..., - statuses: typing.Optional[typing.Iterable[global___SendCommandResultStatus]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["playerPath",b"playerPath","sendError",b"sendError"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["playerPath",b"playerPath","sendError",b"sendError","statuses",b"statuses"]) -> None: ... + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + sendError: global___SendError.Enum.ValueType | None = ..., + statuses: collections.abc.Iterable[global___SendCommandResultStatus] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["playerPath", b"playerPath", "sendError", b"sendError"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["playerPath", b"playerPath", "sendError", b"sendError", "statuses", b"statuses"]) -> None: ... + global___SendCommandResult = SendCommandResult +@typing.final class SendCommandResultMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + SENDERROR_FIELD_NUMBER: builtins.int HANDLERRETURNSTATUS_FIELD_NUMBER: builtins.int HANDLERRETURNSTATUSDATAS_FIELD_NUMBER: builtins.int @@ -230,24 +260,26 @@ class SendCommandResultMessage(google.protobuf.message.Message): COMMANDRESULT_FIELD_NUMBER: builtins.int sendError: global___SendError.Enum.ValueType handlerReturnStatus: global___HandlerReturnStatus.Enum.ValueType + commandID: builtins.str @property def handlerReturnStatusDatas(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... - commandID: typing.Text @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... @property def commandResult(self) -> global___SendCommandResult: ... - def __init__(self, + def __init__( + self, *, - sendError: typing.Optional[global___SendError.Enum.ValueType] = ..., - handlerReturnStatus: typing.Optional[global___HandlerReturnStatus.Enum.ValueType] = ..., - handlerReturnStatusDatas: typing.Optional[typing.Iterable[builtins.bytes]] = ..., - commandID: typing.Optional[typing.Text] = ..., - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - commandResult: typing.Optional[global___SendCommandResult] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["commandID",b"commandID","commandResult",b"commandResult","handlerReturnStatus",b"handlerReturnStatus","playerPath",b"playerPath","sendError",b"sendError"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commandID",b"commandID","commandResult",b"commandResult","handlerReturnStatus",b"handlerReturnStatus","handlerReturnStatusDatas",b"handlerReturnStatusDatas","playerPath",b"playerPath","sendError",b"sendError"]) -> None: ... + sendError: global___SendError.Enum.ValueType | None = ..., + handlerReturnStatus: global___HandlerReturnStatus.Enum.ValueType | None = ..., + handlerReturnStatusDatas: collections.abc.Iterable[builtins.bytes] | None = ..., + commandID: builtins.str | None = ..., + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + commandResult: global___SendCommandResult | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["commandID", b"commandID", "commandResult", b"commandResult", "handlerReturnStatus", b"handlerReturnStatus", "playerPath", b"playerPath", "sendError", b"sendError"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["commandID", b"commandID", "commandResult", b"commandResult", "handlerReturnStatus", b"handlerReturnStatus", "handlerReturnStatusDatas", b"handlerReturnStatusDatas", "playerPath", b"playerPath", "sendError", b"sendError"]) -> None: ... + global___SendCommandResultMessage = SendCommandResultMessage SENDCOMMANDRESULTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SendHIDEventMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SendHIDEventMessage_pb2.py index 06257d290..6fb366b75 100644 --- a/pyatv/protocols/mrp/protobuf/SendHIDEventMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SendHIDEventMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SendHIDEventMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SendHIDEventMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SendHIDEventMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SendHIDEventMessage_pb2.pyi index 342a0ce47..5e5a573c2 100644 --- a/pyatv/protocols/mrp/protobuf/SendHIDEventMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SendHIDEventMessage_pb2.pyi @@ -2,18 +2,20 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SendHIDEventMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + HIDEVENTDATA_FIELD_NUMBER: builtins.int hidEventData: builtins.bytes """This data corresponds to a "keyboardEvent" in IOHIDEvent.h encoded as raw @@ -47,13 +49,14 @@ class SendHIDEventMessage(google.protobuf.message.Message): tvOS seems to accept old timestamps here. So it's probably fine to send anything. """ - - def __init__(self, + def __init__( + self, *, - hidEventData: typing.Optional[builtins.bytes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["hidEventData",b"hidEventData"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["hidEventData",b"hidEventData"]) -> None: ... + hidEventData: builtins.bytes | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["hidEventData", b"hidEventData"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["hidEventData", b"hidEventData"]) -> None: ... + global___SendHIDEventMessage = SendHIDEventMessage SENDHIDEVENTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SendPackedVirtualTouchEventMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SendPackedVirtualTouchEventMessage_pb2.py index f55b65ea7..728a2f811 100644 --- a/pyatv/protocols/mrp/protobuf/SendPackedVirtualTouchEventMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SendPackedVirtualTouchEventMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SendPackedVirtualTouchEventMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SendPackedVirtualTouchEventMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SendPackedVirtualTouchEventMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SendPackedVirtualTouchEventMessage_pb2.pyi index a03f7f047..ecac3186c 100644 --- a/pyatv/protocols/mrp/protobuf/SendPackedVirtualTouchEventMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SendPackedVirtualTouchEventMessage_pb2.pyi @@ -2,22 +2,31 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SendPackedVirtualTouchEventMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Phase: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _PhaseEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SendPackedVirtualTouchEventMessage._Phase.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Began: SendPackedVirtualTouchEventMessage._Phase.ValueType # 1 @@ -25,9 +34,9 @@ class SendPackedVirtualTouchEventMessage(google.protobuf.message.Message): Stationary: SendPackedVirtualTouchEventMessage._Phase.ValueType # 3 Ended: SendPackedVirtualTouchEventMessage._Phase.ValueType # 4 Cancelled: SendPackedVirtualTouchEventMessage._Phase.ValueType # 5 + class Phase(_Phase, metaclass=_PhaseEnumTypeWrapper): """Corresponds to "phase" in data""" - pass Began: SendPackedVirtualTouchEventMessage.Phase.ValueType # 1 Moved: SendPackedVirtualTouchEventMessage.Phase.ValueType # 2 @@ -41,13 +50,14 @@ class SendPackedVirtualTouchEventMessage(google.protobuf.message.Message): and finger stored as a byte array. Each value is written as 16bit little endian integers. """ - - def __init__(self, + def __init__( + self, *, - data: typing.Optional[builtins.bytes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["data",b"data"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["data",b"data"]) -> None: ... + data: builtins.bytes | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ... + global___SendPackedVirtualTouchEventMessage = SendPackedVirtualTouchEventMessage SENDPACKEDVIRTUALTOUCHEVENTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SendVoiceInputMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SendVoiceInputMessage_pb2.py index b02e14a36..2316a9814 100644 --- a/pyatv/protocols/mrp/protobuf/SendVoiceInputMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SendVoiceInputMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SendVoiceInputMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SendVoiceInputMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SendVoiceInputMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SendVoiceInputMessage_pb2.pyi index 413a72b50..c09952f62 100644 --- a/pyatv/protocols/mrp/protobuf/SendVoiceInputMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SendVoiceInputMessage_pb2.pyi @@ -2,7 +2,9 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.extension_dict @@ -10,103 +12,122 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class AudioStreamPacketDescription(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + STARTOFFSET_FIELD_NUMBER: builtins.int VARIABLEFRAMESINPACKET_FIELD_NUMBER: builtins.int DATABYTESIZE_FIELD_NUMBER: builtins.int startOffset: builtins.int variableFramesInPacket: builtins.int dataByteSize: builtins.int - def __init__(self, + def __init__( + self, *, - startOffset: typing.Optional[builtins.int] = ..., - variableFramesInPacket: typing.Optional[builtins.int] = ..., - dataByteSize: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["dataByteSize",b"dataByteSize","startOffset",b"startOffset","variableFramesInPacket",b"variableFramesInPacket"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["dataByteSize",b"dataByteSize","startOffset",b"startOffset","variableFramesInPacket",b"variableFramesInPacket"]) -> None: ... + startOffset: builtins.int | None = ..., + variableFramesInPacket: builtins.int | None = ..., + dataByteSize: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["dataByteSize", b"dataByteSize", "startOffset", b"startOffset", "variableFramesInPacket", b"variableFramesInPacket"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["dataByteSize", b"dataByteSize", "startOffset", b"startOffset", "variableFramesInPacket", b"variableFramesInPacket"]) -> None: ... + global___AudioStreamPacketDescription = AudioStreamPacketDescription +@typing.final class AudioBuffer(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + FORMATSETTINGS_FIELD_NUMBER: builtins.int PACKETCAPACITY_FIELD_NUMBER: builtins.int MAXIMUMPACKETSIZE_FIELD_NUMBER: builtins.int PACKETCOUNT_FIELD_NUMBER: builtins.int CONTENTS_FIELD_NUMBER: builtins.int PACKETDESCRIPTIONS_FIELD_NUMBER: builtins.int - @property - def formatSettings(self) -> pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2.AudioFormatSettings: ... packetCapacity: builtins.int maximumPacketSize: builtins.int packetCount: builtins.int contents: builtins.bytes @property + def formatSettings(self) -> pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2.AudioFormatSettings: ... + @property def packetDescriptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AudioStreamPacketDescription]: ... - def __init__(self, + def __init__( + self, *, - formatSettings: typing.Optional[pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2.AudioFormatSettings] = ..., - packetCapacity: typing.Optional[builtins.int] = ..., - maximumPacketSize: typing.Optional[builtins.int] = ..., - packetCount: typing.Optional[builtins.int] = ..., - contents: typing.Optional[builtins.bytes] = ..., - packetDescriptions: typing.Optional[typing.Iterable[global___AudioStreamPacketDescription]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["contents",b"contents","formatSettings",b"formatSettings","maximumPacketSize",b"maximumPacketSize","packetCapacity",b"packetCapacity","packetCount",b"packetCount"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["contents",b"contents","formatSettings",b"formatSettings","maximumPacketSize",b"maximumPacketSize","packetCapacity",b"packetCapacity","packetCount",b"packetCount","packetDescriptions",b"packetDescriptions"]) -> None: ... + formatSettings: pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2.AudioFormatSettings | None = ..., + packetCapacity: builtins.int | None = ..., + maximumPacketSize: builtins.int | None = ..., + packetCount: builtins.int | None = ..., + contents: builtins.bytes | None = ..., + packetDescriptions: collections.abc.Iterable[global___AudioStreamPacketDescription] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["contents", b"contents", "formatSettings", b"formatSettings", "maximumPacketSize", b"maximumPacketSize", "packetCapacity", b"packetCapacity", "packetCount", b"packetCount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["contents", b"contents", "formatSettings", b"formatSettings", "maximumPacketSize", b"maximumPacketSize", "packetCapacity", b"packetCapacity", "packetCount", b"packetCount", "packetDescriptions", b"packetDescriptions"]) -> None: ... + global___AudioBuffer = AudioBuffer +@typing.final class AudioTime(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIMESTAMP_FIELD_NUMBER: builtins.int SAMPLERATE_FIELD_NUMBER: builtins.int timestamp: builtins.float sampleRate: builtins.float - def __init__(self, + def __init__( + self, *, - timestamp: typing.Optional[builtins.float] = ..., - sampleRate: typing.Optional[builtins.float] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["sampleRate",b"sampleRate","timestamp",b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["sampleRate",b"sampleRate","timestamp",b"timestamp"]) -> None: ... + timestamp: builtins.float | None = ..., + sampleRate: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["sampleRate", b"sampleRate", "timestamp", b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["sampleRate", b"sampleRate", "timestamp", b"timestamp"]) -> None: ... + global___AudioTime = AudioTime +@typing.final class AudioDataBlock(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + BUFFER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int GAIN_FIELD_NUMBER: builtins.int + gain: builtins.float @property def buffer(self) -> global___AudioBuffer: ... @property def time(self) -> global___AudioTime: ... - gain: builtins.float - def __init__(self, + def __init__( + self, *, - buffer: typing.Optional[global___AudioBuffer] = ..., - time: typing.Optional[global___AudioTime] = ..., - gain: typing.Optional[builtins.float] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer",b"buffer","gain",b"gain","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer",b"buffer","gain",b"gain","time",b"time"]) -> None: ... + buffer: global___AudioBuffer | None = ..., + time: global___AudioTime | None = ..., + gain: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["buffer", b"buffer", "gain", b"gain", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["buffer", b"buffer", "gain", b"gain", "time", b"time"]) -> None: ... + global___AudioDataBlock = AudioDataBlock +@typing.final class SendVoiceInputMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + DATABLOCK_FIELD_NUMBER: builtins.int @property def dataBlock(self) -> global___AudioDataBlock: ... - def __init__(self, + def __init__( + self, *, - dataBlock: typing.Optional[global___AudioDataBlock] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["dataBlock",b"dataBlock"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["dataBlock",b"dataBlock"]) -> None: ... + dataBlock: global___AudioDataBlock | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["dataBlock", b"dataBlock"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["dataBlock", b"dataBlock"]) -> None: ... + global___SendVoiceInputMessage = SendVoiceInputMessage SENDVOICEINPUTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SetArtworkMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SetArtworkMessage_pb2.py index 4f54a8956..19be02b49 100644 --- a/pyatv/protocols/mrp/protobuf/SetArtworkMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SetArtworkMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SetArtworkMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SetArtworkMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SetArtworkMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SetArtworkMessage_pb2.pyi index d2cefbc9a..769e49ad3 100644 --- a/pyatv/protocols/mrp/protobuf/SetArtworkMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SetArtworkMessage_pb2.pyi @@ -2,26 +2,30 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SetArtworkMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + JPEGDATA_FIELD_NUMBER: builtins.int jpegData: builtins.bytes - def __init__(self, + def __init__( + self, *, - jpegData: typing.Optional[builtins.bytes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["jpegData",b"jpegData"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["jpegData",b"jpegData"]) -> None: ... + jpegData: builtins.bytes | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["jpegData", b"jpegData"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["jpegData", b"jpegData"]) -> None: ... + global___SetArtworkMessage = SetArtworkMessage SETARTWORKMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SetConnectionStateMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SetConnectionStateMessage_pb2.py index b03695575..58a92de00 100644 --- a/pyatv/protocols/mrp/protobuf/SetConnectionStateMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SetConnectionStateMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SetConnectionStateMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SetConnectionStateMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SetConnectionStateMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SetConnectionStateMessage_pb2.pyi index 9503676b1..921836cda 100644 --- a/pyatv/protocols/mrp/protobuf/SetConnectionStateMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SetConnectionStateMessage_pb2.pyi @@ -2,42 +2,52 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SetConnectionStateMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _ConnectionState: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ConnectionStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SetConnectionStateMessage._ConnectionState.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Connecting: SetConnectionStateMessage._ConnectionState.ValueType # 1 Connected: SetConnectionStateMessage._ConnectionState.ValueType # 2 Disconnected: SetConnectionStateMessage._ConnectionState.ValueType # 3 - class ConnectionState(_ConnectionState, metaclass=_ConnectionStateEnumTypeWrapper): - pass + class ConnectionState(_ConnectionState, metaclass=_ConnectionStateEnumTypeWrapper): ... Connecting: SetConnectionStateMessage.ConnectionState.ValueType # 1 Connected: SetConnectionStateMessage.ConnectionState.ValueType # 2 Disconnected: SetConnectionStateMessage.ConnectionState.ValueType # 3 STATE_FIELD_NUMBER: builtins.int state: global___SetConnectionStateMessage.ConnectionState.ValueType - def __init__(self, + def __init__( + self, *, - state: typing.Optional[global___SetConnectionStateMessage.ConnectionState.ValueType] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["state",b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["state",b"state"]) -> None: ... + state: global___SetConnectionStateMessage.ConnectionState.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["state", b"state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["state", b"state"]) -> None: ... + global___SetConnectionStateMessage = SetConnectionStateMessage SETCONNECTIONSTATEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SetDefaultSupportedCommandsMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SetDefaultSupportedCommandsMessage_pb2.py index 13e849e0a..46fc8aacb 100644 --- a/pyatv/protocols/mrp/protobuf/SetDefaultSupportedCommandsMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SetDefaultSupportedCommandsMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SetDefaultSupportedCommandsMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SetDefaultSupportedCommandsMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SetDefaultSupportedCommandsMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SetDefaultSupportedCommandsMessage_pb2.pyi index 346088c4f..9e51b46aa 100644 --- a/pyatv/protocols/mrp/protobuf/SetDefaultSupportedCommandsMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SetDefaultSupportedCommandsMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -15,13 +16,15 @@ import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import pyatv.protocols.mrp.protobuf.SupportedCommands_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SetDefaultSupportedCommandsMessage(google.protobuf.message.Message): """Seems to be the same as SetStateMessage""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NOWPLAYINGINFO_FIELD_NUMBER: builtins.int SUPPORTEDCOMMANDS_FIELD_NUMBER: builtins.int PLAYBACKQUEUE_FIELD_NUMBER: builtins.int @@ -32,37 +35,39 @@ class SetDefaultSupportedCommandsMessage(google.protobuf.message.Message): PLAYERPATH_FIELD_NUMBER: builtins.int REQUEST_FIELD_NUMBER: builtins.int PLAYBACKSTATETIMESTAMP_FIELD_NUMBER: builtins.int + displayID: builtins.str + displayName: builtins.str + playbackState: pyatv.protocols.mrp.protobuf.Common_pb2.PlaybackState.Enum.ValueType + playbackStateTimestamp: builtins.float @property def nowPlayingInfo(self) -> pyatv.protocols.mrp.protobuf.NowPlayingInfo_pb2.NowPlayingInfo: ... @property def supportedCommands(self) -> pyatv.protocols.mrp.protobuf.SupportedCommands_pb2.SupportedCommands: ... @property def playbackQueue(self) -> pyatv.protocols.mrp.protobuf.PlaybackQueue_pb2.PlaybackQueue: ... - displayID: typing.Text - displayName: typing.Text - playbackState: pyatv.protocols.mrp.protobuf.Common_pb2.PlaybackState.Enum.ValueType @property def playbackQueueCapabilities(self) -> pyatv.protocols.mrp.protobuf.PlaybackQueueCapabilities_pb2.PlaybackQueueCapabilities: ... @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... @property def request(self) -> pyatv.protocols.mrp.protobuf.PlaybackQueueRequestMessage_pb2.PlaybackQueueRequestMessage: ... - playbackStateTimestamp: builtins.float - def __init__(self, + def __init__( + self, *, - nowPlayingInfo: typing.Optional[pyatv.protocols.mrp.protobuf.NowPlayingInfo_pb2.NowPlayingInfo] = ..., - supportedCommands: typing.Optional[pyatv.protocols.mrp.protobuf.SupportedCommands_pb2.SupportedCommands] = ..., - playbackQueue: typing.Optional[pyatv.protocols.mrp.protobuf.PlaybackQueue_pb2.PlaybackQueue] = ..., - displayID: typing.Optional[typing.Text] = ..., - displayName: typing.Optional[typing.Text] = ..., - playbackState: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.PlaybackState.Enum.ValueType] = ..., - playbackQueueCapabilities: typing.Optional[pyatv.protocols.mrp.protobuf.PlaybackQueueCapabilities_pb2.PlaybackQueueCapabilities] = ..., - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - request: typing.Optional[pyatv.protocols.mrp.protobuf.PlaybackQueueRequestMessage_pb2.PlaybackQueueRequestMessage] = ..., - playbackStateTimestamp: typing.Optional[builtins.float] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["displayID",b"displayID","displayName",b"displayName","nowPlayingInfo",b"nowPlayingInfo","playbackQueue",b"playbackQueue","playbackQueueCapabilities",b"playbackQueueCapabilities","playbackState",b"playbackState","playbackStateTimestamp",b"playbackStateTimestamp","playerPath",b"playerPath","request",b"request","supportedCommands",b"supportedCommands"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["displayID",b"displayID","displayName",b"displayName","nowPlayingInfo",b"nowPlayingInfo","playbackQueue",b"playbackQueue","playbackQueueCapabilities",b"playbackQueueCapabilities","playbackState",b"playbackState","playbackStateTimestamp",b"playbackStateTimestamp","playerPath",b"playerPath","request",b"request","supportedCommands",b"supportedCommands"]) -> None: ... + nowPlayingInfo: pyatv.protocols.mrp.protobuf.NowPlayingInfo_pb2.NowPlayingInfo | None = ..., + supportedCommands: pyatv.protocols.mrp.protobuf.SupportedCommands_pb2.SupportedCommands | None = ..., + playbackQueue: pyatv.protocols.mrp.protobuf.PlaybackQueue_pb2.PlaybackQueue | None = ..., + displayID: builtins.str | None = ..., + displayName: builtins.str | None = ..., + playbackState: pyatv.protocols.mrp.protobuf.Common_pb2.PlaybackState.Enum.ValueType | None = ..., + playbackQueueCapabilities: pyatv.protocols.mrp.protobuf.PlaybackQueueCapabilities_pb2.PlaybackQueueCapabilities | None = ..., + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + request: pyatv.protocols.mrp.protobuf.PlaybackQueueRequestMessage_pb2.PlaybackQueueRequestMessage | None = ..., + playbackStateTimestamp: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["displayID", b"displayID", "displayName", b"displayName", "nowPlayingInfo", b"nowPlayingInfo", "playbackQueue", b"playbackQueue", "playbackQueueCapabilities", b"playbackQueueCapabilities", "playbackState", b"playbackState", "playbackStateTimestamp", b"playbackStateTimestamp", "playerPath", b"playerPath", "request", b"request", "supportedCommands", b"supportedCommands"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["displayID", b"displayID", "displayName", b"displayName", "nowPlayingInfo", b"nowPlayingInfo", "playbackQueue", b"playbackQueue", "playbackQueueCapabilities", b"playbackQueueCapabilities", "playbackState", b"playbackState", "playbackStateTimestamp", b"playbackStateTimestamp", "playerPath", b"playerPath", "request", b"request", "supportedCommands", b"supportedCommands"]) -> None: ... + global___SetDefaultSupportedCommandsMessage = SetDefaultSupportedCommandsMessage SETDEFAULTSUPPORTEDCOMMANDSMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SetDiscoveryModeMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SetDiscoveryModeMessage_pb2.py index 614d65377..62b48a409 100644 --- a/pyatv/protocols/mrp/protobuf/SetDiscoveryModeMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SetDiscoveryModeMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SetDiscoveryModeMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SetDiscoveryModeMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SetDiscoveryModeMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SetDiscoveryModeMessage_pb2.pyi index ba4ec0988..dc8de43bf 100644 --- a/pyatv/protocols/mrp/protobuf/SetDiscoveryModeMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SetDiscoveryModeMessage_pb2.pyi @@ -2,29 +2,33 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SetDiscoveryModeMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + MODE_FIELD_NUMBER: builtins.int FEATURES_FIELD_NUMBER: builtins.int mode: builtins.int features: builtins.int - def __init__(self, + def __init__( + self, *, - mode: typing.Optional[builtins.int] = ..., - features: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["features",b"features","mode",b"mode"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["features",b"features","mode",b"mode"]) -> None: ... + mode: builtins.int | None = ..., + features: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["features", b"features", "mode", b"mode"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["features", b"features", "mode", b"mode"]) -> None: ... + global___SetDiscoveryModeMessage = SetDiscoveryModeMessage SETDISCOVERYMODEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SetHiliteModeMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SetHiliteModeMessage_pb2.py index 0d52efe7f..996cec0a1 100644 --- a/pyatv/protocols/mrp/protobuf/SetHiliteModeMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SetHiliteModeMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SetHiliteModeMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SetHiliteModeMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SetHiliteModeMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SetHiliteModeMessage_pb2.pyi index b1cbcf583..df90bc7fe 100644 --- a/pyatv/protocols/mrp/protobuf/SetHiliteModeMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SetHiliteModeMessage_pb2.pyi @@ -2,26 +2,30 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SetHiliteModeMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + HILITEMODE_FIELD_NUMBER: builtins.int hiliteMode: builtins.int - def __init__(self, + def __init__( + self, *, - hiliteMode: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["hiliteMode",b"hiliteMode"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["hiliteMode",b"hiliteMode"]) -> None: ... + hiliteMode: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["hiliteMode", b"hiliteMode"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["hiliteMode", b"hiliteMode"]) -> None: ... + global___SetHiliteModeMessage = SetHiliteModeMessage SETHILITEMODEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SetNowPlayingClientMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SetNowPlayingClientMessage_pb2.py index 8d7bb3ede..80e2d4783 100644 --- a/pyatv/protocols/mrp/protobuf/SetNowPlayingClientMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SetNowPlayingClientMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SetNowPlayingClientMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SetNowPlayingClientMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SetNowPlayingClientMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SetNowPlayingClientMessage_pb2.pyi index 92a31ae08..62acbb633 100644 --- a/pyatv/protocols/mrp/protobuf/SetNowPlayingClientMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SetNowPlayingClientMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,21 +10,24 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SetNowPlayingClientMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + CLIENT_FIELD_NUMBER: builtins.int @property def client(self) -> pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient: ... - def __init__(self, + def __init__( + self, *, - client: typing.Optional[pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["client",b"client"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["client",b"client"]) -> None: ... + client: pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["client", b"client"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["client", b"client"]) -> None: ... + global___SetNowPlayingClientMessage = SetNowPlayingClientMessage SETNOWPLAYINGCLIENTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SetNowPlayingPlayerMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SetNowPlayingPlayerMessage_pb2.py index 86b42cb20..fc2ff3b53 100644 --- a/pyatv/protocols/mrp/protobuf/SetNowPlayingPlayerMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SetNowPlayingPlayerMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SetNowPlayingPlayerMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SetNowPlayingPlayerMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SetNowPlayingPlayerMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SetNowPlayingPlayerMessage_pb2.pyi index 7de701739..97b5e9de8 100644 --- a/pyatv/protocols/mrp/protobuf/SetNowPlayingPlayerMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SetNowPlayingPlayerMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,21 +10,24 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SetNowPlayingPlayerMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PLAYERPATH_FIELD_NUMBER: builtins.int @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - def __init__(self, + def __init__( + self, *, - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["playerPath",b"playerPath"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["playerPath",b"playerPath"]) -> None: ... + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["playerPath", b"playerPath"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["playerPath", b"playerPath"]) -> None: ... + global___SetNowPlayingPlayerMessage = SetNowPlayingPlayerMessage SETNOWPLAYINGPLAYERMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SetRecordingStateMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SetRecordingStateMessage_pb2.py index 2796c7150..9e69540fe 100644 --- a/pyatv/protocols/mrp/protobuf/SetRecordingStateMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SetRecordingStateMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SetRecordingStateMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SetRecordingStateMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SetRecordingStateMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SetRecordingStateMessage_pb2.pyi index ff35dfe8c..b0e9f3e28 100644 --- a/pyatv/protocols/mrp/protobuf/SetRecordingStateMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SetRecordingStateMessage_pb2.pyi @@ -2,42 +2,52 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SetRecordingStateMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _RecordingState: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _RecordingStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SetRecordingStateMessage._RecordingState.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: SetRecordingStateMessage._RecordingState.ValueType # 0 Recording: SetRecordingStateMessage._RecordingState.ValueType # 1 NotRecording: SetRecordingStateMessage._RecordingState.ValueType # 2 - class RecordingState(_RecordingState, metaclass=_RecordingStateEnumTypeWrapper): - pass + class RecordingState(_RecordingState, metaclass=_RecordingStateEnumTypeWrapper): ... Unknown: SetRecordingStateMessage.RecordingState.ValueType # 0 Recording: SetRecordingStateMessage.RecordingState.ValueType # 1 NotRecording: SetRecordingStateMessage.RecordingState.ValueType # 2 STATE_FIELD_NUMBER: builtins.int state: global___SetRecordingStateMessage.RecordingState.ValueType - def __init__(self, + def __init__( + self, *, - state: typing.Optional[global___SetRecordingStateMessage.RecordingState.ValueType] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["state",b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["state",b"state"]) -> None: ... + state: global___SetRecordingStateMessage.RecordingState.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["state", b"state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["state", b"state"]) -> None: ... + global___SetRecordingStateMessage = SetRecordingStateMessage SETRECORDINGSTATEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SetStateMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SetStateMessage_pb2.py index 84c12de27..06fd64ad0 100644 --- a/pyatv/protocols/mrp/protobuf/SetStateMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SetStateMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SetStateMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SetStateMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SetStateMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SetStateMessage_pb2.pyi index 6a2485e23..e628a3ad9 100644 --- a/pyatv/protocols/mrp/protobuf/SetStateMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SetStateMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -15,12 +16,13 @@ import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import pyatv.protocols.mrp.protobuf.SupportedCommands_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SetStateMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NOWPLAYINGINFO_FIELD_NUMBER: builtins.int SUPPORTEDCOMMANDS_FIELD_NUMBER: builtins.int PLAYBACKQUEUE_FIELD_NUMBER: builtins.int @@ -31,37 +33,39 @@ class SetStateMessage(google.protobuf.message.Message): PLAYERPATH_FIELD_NUMBER: builtins.int REQUEST_FIELD_NUMBER: builtins.int PLAYBACKSTATETIMESTAMP_FIELD_NUMBER: builtins.int + displayID: builtins.str + displayName: builtins.str + playbackState: pyatv.protocols.mrp.protobuf.Common_pb2.PlaybackState.Enum.ValueType + playbackStateTimestamp: builtins.float @property def nowPlayingInfo(self) -> pyatv.protocols.mrp.protobuf.NowPlayingInfo_pb2.NowPlayingInfo: ... @property def supportedCommands(self) -> pyatv.protocols.mrp.protobuf.SupportedCommands_pb2.SupportedCommands: ... @property def playbackQueue(self) -> pyatv.protocols.mrp.protobuf.PlaybackQueue_pb2.PlaybackQueue: ... - displayID: typing.Text - displayName: typing.Text - playbackState: pyatv.protocols.mrp.protobuf.Common_pb2.PlaybackState.Enum.ValueType @property def playbackQueueCapabilities(self) -> pyatv.protocols.mrp.protobuf.PlaybackQueueCapabilities_pb2.PlaybackQueueCapabilities: ... @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... @property def request(self) -> pyatv.protocols.mrp.protobuf.PlaybackQueueRequestMessage_pb2.PlaybackQueueRequestMessage: ... - playbackStateTimestamp: builtins.float - def __init__(self, + def __init__( + self, *, - nowPlayingInfo: typing.Optional[pyatv.protocols.mrp.protobuf.NowPlayingInfo_pb2.NowPlayingInfo] = ..., - supportedCommands: typing.Optional[pyatv.protocols.mrp.protobuf.SupportedCommands_pb2.SupportedCommands] = ..., - playbackQueue: typing.Optional[pyatv.protocols.mrp.protobuf.PlaybackQueue_pb2.PlaybackQueue] = ..., - displayID: typing.Optional[typing.Text] = ..., - displayName: typing.Optional[typing.Text] = ..., - playbackState: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.PlaybackState.Enum.ValueType] = ..., - playbackQueueCapabilities: typing.Optional[pyatv.protocols.mrp.protobuf.PlaybackQueueCapabilities_pb2.PlaybackQueueCapabilities] = ..., - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - request: typing.Optional[pyatv.protocols.mrp.protobuf.PlaybackQueueRequestMessage_pb2.PlaybackQueueRequestMessage] = ..., - playbackStateTimestamp: typing.Optional[builtins.float] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["displayID",b"displayID","displayName",b"displayName","nowPlayingInfo",b"nowPlayingInfo","playbackQueue",b"playbackQueue","playbackQueueCapabilities",b"playbackQueueCapabilities","playbackState",b"playbackState","playbackStateTimestamp",b"playbackStateTimestamp","playerPath",b"playerPath","request",b"request","supportedCommands",b"supportedCommands"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["displayID",b"displayID","displayName",b"displayName","nowPlayingInfo",b"nowPlayingInfo","playbackQueue",b"playbackQueue","playbackQueueCapabilities",b"playbackQueueCapabilities","playbackState",b"playbackState","playbackStateTimestamp",b"playbackStateTimestamp","playerPath",b"playerPath","request",b"request","supportedCommands",b"supportedCommands"]) -> None: ... + nowPlayingInfo: pyatv.protocols.mrp.protobuf.NowPlayingInfo_pb2.NowPlayingInfo | None = ..., + supportedCommands: pyatv.protocols.mrp.protobuf.SupportedCommands_pb2.SupportedCommands | None = ..., + playbackQueue: pyatv.protocols.mrp.protobuf.PlaybackQueue_pb2.PlaybackQueue | None = ..., + displayID: builtins.str | None = ..., + displayName: builtins.str | None = ..., + playbackState: pyatv.protocols.mrp.protobuf.Common_pb2.PlaybackState.Enum.ValueType | None = ..., + playbackQueueCapabilities: pyatv.protocols.mrp.protobuf.PlaybackQueueCapabilities_pb2.PlaybackQueueCapabilities | None = ..., + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + request: pyatv.protocols.mrp.protobuf.PlaybackQueueRequestMessage_pb2.PlaybackQueueRequestMessage | None = ..., + playbackStateTimestamp: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["displayID", b"displayID", "displayName", b"displayName", "nowPlayingInfo", b"nowPlayingInfo", "playbackQueue", b"playbackQueue", "playbackQueueCapabilities", b"playbackQueueCapabilities", "playbackState", b"playbackState", "playbackStateTimestamp", b"playbackStateTimestamp", "playerPath", b"playerPath", "request", b"request", "supportedCommands", b"supportedCommands"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["displayID", b"displayID", "displayName", b"displayName", "nowPlayingInfo", b"nowPlayingInfo", "playbackQueue", b"playbackQueue", "playbackQueueCapabilities", b"playbackQueueCapabilities", "playbackState", b"playbackState", "playbackStateTimestamp", b"playbackStateTimestamp", "playerPath", b"playerPath", "request", b"request", "supportedCommands", b"supportedCommands"]) -> None: ... + global___SetStateMessage = SetStateMessage SETSTATEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SetVolumeMessage_pb2.py b/pyatv/protocols/mrp/protobuf/SetVolumeMessage_pb2.py index 355df26d6..2a11ab099 100644 --- a/pyatv/protocols/mrp/protobuf/SetVolumeMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SetVolumeMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SetVolumeMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SetVolumeMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SetVolumeMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/SetVolumeMessage_pb2.pyi index f20168bf5..860b0aaeb 100644 --- a/pyatv/protocols/mrp/protobuf/SetVolumeMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SetVolumeMessage_pb2.pyi @@ -2,29 +2,33 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SetVolumeMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VOLUME_FIELD_NUMBER: builtins.int OUTPUTDEVICEUID_FIELD_NUMBER: builtins.int volume: builtins.float - outputDeviceUID: typing.Text - def __init__(self, + outputDeviceUID: builtins.str + def __init__( + self, *, - volume: typing.Optional[builtins.float] = ..., - outputDeviceUID: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["outputDeviceUID",b"outputDeviceUID","volume",b"volume"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["outputDeviceUID",b"outputDeviceUID","volume",b"volume"]) -> None: ... + volume: builtins.float | None = ..., + outputDeviceUID: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["outputDeviceUID", b"outputDeviceUID", "volume", b"volume"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["outputDeviceUID", b"outputDeviceUID", "volume", b"volume"]) -> None: ... + global___SetVolumeMessage = SetVolumeMessage SETVOLUMEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/SupportedCommands_pb2.py b/pyatv/protocols/mrp/protobuf/SupportedCommands_pb2.py index 77f4bccf7..745141687 100644 --- a/pyatv/protocols/mrp/protobuf/SupportedCommands_pb2.py +++ b/pyatv/protocols/mrp/protobuf/SupportedCommands_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/SupportedCommands.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/SupportedCommands.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/SupportedCommands_pb2.pyi b/pyatv/protocols/mrp/protobuf/SupportedCommands_pb2.pyi index e87a46fd1..930e4753f 100644 --- a/pyatv/protocols/mrp/protobuf/SupportedCommands_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/SupportedCommands_pb2.pyi @@ -2,24 +2,29 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import pyatv.protocols.mrp.protobuf.CommandInfo_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SupportedCommands(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUPPORTEDCOMMANDS_FIELD_NUMBER: builtins.int @property def supportedCommands(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[pyatv.protocols.mrp.protobuf.CommandInfo_pb2.CommandInfo]: ... - def __init__(self, + def __init__( + self, *, - supportedCommands: typing.Optional[typing.Iterable[pyatv.protocols.mrp.protobuf.CommandInfo_pb2.CommandInfo]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["supportedCommands",b"supportedCommands"]) -> None: ... + supportedCommands: collections.abc.Iterable[pyatv.protocols.mrp.protobuf.CommandInfo_pb2.CommandInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["supportedCommands", b"supportedCommands"]) -> None: ... + global___SupportedCommands = SupportedCommands diff --git a/pyatv/protocols/mrp/protobuf/TextInputMessage_pb2.py b/pyatv/protocols/mrp/protobuf/TextInputMessage_pb2.py index ff3796036..9a02e3700 100644 --- a/pyatv/protocols/mrp/protobuf/TextInputMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/TextInputMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/TextInputMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/TextInputMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/TextInputMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/TextInputMessage_pb2.pyi index d34b65c06..6985ad68d 100644 --- a/pyatv/protocols/mrp/protobuf/TextInputMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/TextInputMessage_pb2.pyi @@ -2,22 +2,31 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ActionType(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ActionType._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Unknown: ActionType._Enum.ValueType # 0 @@ -27,9 +36,7 @@ class ActionType(google.protobuf.message.Message): ClearAction: ActionType._Enum.ValueType # 4 """"Clear" clashes with something, making mypy unhappy""" - class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): - pass - + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... Unknown: ActionType.Enum.ValueType # 0 Insert: ActionType.Enum.ValueType # 1 Set: ActionType.Enum.ValueType # 2 @@ -37,27 +44,32 @@ class ActionType(google.protobuf.message.Message): ClearAction: ActionType.Enum.ValueType # 4 """"Clear" clashes with something, making mypy unhappy""" + def __init__( + self, + ) -> None: ... - def __init__(self, - ) -> None: ... global___ActionType = ActionType +@typing.final class TextInputMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIMESTAMP_FIELD_NUMBER: builtins.int TEXT_FIELD_NUMBER: builtins.int ACTIONTYPE_FIELD_NUMBER: builtins.int timestamp: builtins.float - text: typing.Text + text: builtins.str actionType: global___ActionType.Enum.ValueType - def __init__(self, + def __init__( + self, *, - timestamp: typing.Optional[builtins.float] = ..., - text: typing.Optional[typing.Text] = ..., - actionType: typing.Optional[global___ActionType.Enum.ValueType] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["actionType",b"actionType","text",b"text","timestamp",b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["actionType",b"actionType","text",b"text","timestamp",b"timestamp"]) -> None: ... + timestamp: builtins.float | None = ..., + text: builtins.str | None = ..., + actionType: global___ActionType.Enum.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["actionType", b"actionType", "text", b"text", "timestamp", b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["actionType", b"actionType", "text", b"text", "timestamp", b"timestamp"]) -> None: ... + global___TextInputMessage = TextInputMessage TEXTINPUTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/TransactionKey_pb2.py b/pyatv/protocols/mrp/protobuf/TransactionKey_pb2.py index d179366ed..33d224c85 100644 --- a/pyatv/protocols/mrp/protobuf/TransactionKey_pb2.py +++ b/pyatv/protocols/mrp/protobuf/TransactionKey_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/TransactionKey.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/TransactionKey.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/TransactionKey_pb2.pyi b/pyatv/protocols/mrp/protobuf/TransactionKey_pb2.pyi index 6d15c68d4..048fbda73 100644 --- a/pyatv/protocols/mrp/protobuf/TransactionKey_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/TransactionKey_pb2.pyi @@ -2,25 +2,29 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class TransactionKey(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + IDENTIFIER_FIELD_NUMBER: builtins.int USERDATA_FIELD_NUMBER: builtins.int - identifier: typing.Text + identifier: builtins.str userData: builtins.bytes - def __init__(self, + def __init__( + self, *, - identifier: typing.Optional[typing.Text] = ..., - userData: typing.Optional[builtins.bytes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["identifier",b"identifier","userData",b"userData"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["identifier",b"identifier","userData",b"userData"]) -> None: ... + identifier: builtins.str | None = ..., + userData: builtins.bytes | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["identifier", b"identifier", "userData", b"userData"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["identifier", b"identifier", "userData", b"userData"]) -> None: ... + global___TransactionKey = TransactionKey diff --git a/pyatv/protocols/mrp/protobuf/TransactionMessage_pb2.py b/pyatv/protocols/mrp/protobuf/TransactionMessage_pb2.py index 182468ab0..30afce38f 100644 --- a/pyatv/protocols/mrp/protobuf/TransactionMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/TransactionMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/TransactionMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/TransactionMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/TransactionMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/TransactionMessage_pb2.pyi index 8489356c6..97c1b6086 100644 --- a/pyatv/protocols/mrp/protobuf/TransactionMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/TransactionMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -10,12 +11,13 @@ import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import pyatv.protocols.mrp.protobuf.TransactionPackets_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class TransactionMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int PACKETS_FIELD_NUMBER: builtins.int PLAYERPATH_FIELD_NUMBER: builtins.int @@ -24,14 +26,16 @@ class TransactionMessage(google.protobuf.message.Message): def packets(self) -> pyatv.protocols.mrp.protobuf.TransactionPackets_pb2.TransactionPackets: ... @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - def __init__(self, + def __init__( + self, *, - name: typing.Optional[builtins.int] = ..., - packets: typing.Optional[pyatv.protocols.mrp.protobuf.TransactionPackets_pb2.TransactionPackets] = ..., - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["name",b"name","packets",b"packets","playerPath",b"playerPath"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["name",b"name","packets",b"packets","playerPath",b"playerPath"]) -> None: ... + name: builtins.int | None = ..., + packets: pyatv.protocols.mrp.protobuf.TransactionPackets_pb2.TransactionPackets | None = ..., + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["name", b"name", "packets", b"packets", "playerPath", b"playerPath"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "packets", b"packets", "playerPath", b"playerPath"]) -> None: ... + global___TransactionMessage = TransactionMessage TRANSACTIONMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/TransactionPacket_pb2.py b/pyatv/protocols/mrp/protobuf/TransactionPacket_pb2.py index 35c500a81..01813c457 100644 --- a/pyatv/protocols/mrp/protobuf/TransactionPacket_pb2.py +++ b/pyatv/protocols/mrp/protobuf/TransactionPacket_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/TransactionPacket.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/TransactionPacket.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/TransactionPacket_pb2.pyi b/pyatv/protocols/mrp/protobuf/TransactionPacket_pb2.pyi index b57184227..f9510dca7 100644 --- a/pyatv/protocols/mrp/protobuf/TransactionPacket_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/TransactionPacket_pb2.pyi @@ -2,36 +2,40 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message import pyatv.protocols.mrp.protobuf.TransactionKey_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class TransactionPacket(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int PACKETDATA_FIELD_NUMBER: builtins.int IDENTIFIER_FIELD_NUMBER: builtins.int TOTALLENGTH_FIELD_NUMBER: builtins.int TOTALWRITEPOSITION_FIELD_NUMBER: builtins.int - @property - def key(self) -> pyatv.protocols.mrp.protobuf.TransactionKey_pb2.TransactionKey: ... packetData: builtins.bytes - identifier: typing.Text + identifier: builtins.str totalLength: builtins.int totalWritePosition: builtins.int - def __init__(self, + @property + def key(self) -> pyatv.protocols.mrp.protobuf.TransactionKey_pb2.TransactionKey: ... + def __init__( + self, *, - key: typing.Optional[pyatv.protocols.mrp.protobuf.TransactionKey_pb2.TransactionKey] = ..., - packetData: typing.Optional[builtins.bytes] = ..., - identifier: typing.Optional[typing.Text] = ..., - totalLength: typing.Optional[builtins.int] = ..., - totalWritePosition: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["identifier",b"identifier","key",b"key","packetData",b"packetData","totalLength",b"totalLength","totalWritePosition",b"totalWritePosition"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["identifier",b"identifier","key",b"key","packetData",b"packetData","totalLength",b"totalLength","totalWritePosition",b"totalWritePosition"]) -> None: ... + key: pyatv.protocols.mrp.protobuf.TransactionKey_pb2.TransactionKey | None = ..., + packetData: builtins.bytes | None = ..., + identifier: builtins.str | None = ..., + totalLength: builtins.int | None = ..., + totalWritePosition: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["identifier", b"identifier", "key", b"key", "packetData", b"packetData", "totalLength", b"totalLength", "totalWritePosition", b"totalWritePosition"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["identifier", b"identifier", "key", b"key", "packetData", b"packetData", "totalLength", b"totalLength", "totalWritePosition", b"totalWritePosition"]) -> None: ... + global___TransactionPacket = TransactionPacket diff --git a/pyatv/protocols/mrp/protobuf/TransactionPackets_pb2.py b/pyatv/protocols/mrp/protobuf/TransactionPackets_pb2.py index 4d95d4b6e..0591365be 100644 --- a/pyatv/protocols/mrp/protobuf/TransactionPackets_pb2.py +++ b/pyatv/protocols/mrp/protobuf/TransactionPackets_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/TransactionPackets.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/TransactionPackets.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/TransactionPackets_pb2.pyi b/pyatv/protocols/mrp/protobuf/TransactionPackets_pb2.pyi index 7e1652db8..6b517deb1 100644 --- a/pyatv/protocols/mrp/protobuf/TransactionPackets_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/TransactionPackets_pb2.pyi @@ -2,24 +2,29 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import pyatv.protocols.mrp.protobuf.TransactionPacket_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class TransactionPackets(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PACKETS_FIELD_NUMBER: builtins.int @property def packets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[pyatv.protocols.mrp.protobuf.TransactionPacket_pb2.TransactionPacket]: ... - def __init__(self, + def __init__( + self, *, - packets: typing.Optional[typing.Iterable[pyatv.protocols.mrp.protobuf.TransactionPacket_pb2.TransactionPacket]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["packets",b"packets"]) -> None: ... + packets: collections.abc.Iterable[pyatv.protocols.mrp.protobuf.TransactionPacket_pb2.TransactionPacket] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["packets", b"packets"]) -> None: ... + global___TransactionPackets = TransactionPackets diff --git a/pyatv/protocols/mrp/protobuf/UpdateClientMessage_pb2.py b/pyatv/protocols/mrp/protobuf/UpdateClientMessage_pb2.py index 4afe7f6f3..c9cf14f58 100644 --- a/pyatv/protocols/mrp/protobuf/UpdateClientMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/UpdateClientMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/UpdateClientMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/UpdateClientMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/UpdateClientMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/UpdateClientMessage_pb2.pyi index 4823b8812..b9060e606 100644 --- a/pyatv/protocols/mrp/protobuf/UpdateClientMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/UpdateClientMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,21 +10,24 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class UpdateClientMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + CLIENT_FIELD_NUMBER: builtins.int @property def client(self) -> pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient: ... - def __init__(self, + def __init__( + self, *, - client: typing.Optional[pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["client",b"client"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["client",b"client"]) -> None: ... + client: pyatv.protocols.mrp.protobuf.NowPlayingClient_pb2.NowPlayingClient | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["client", b"client"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["client", b"client"]) -> None: ... + global___UpdateClientMessage = UpdateClientMessage UPDATECLIENTMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/UpdateContentItemArtworkMessage_pb2.py b/pyatv/protocols/mrp/protobuf/UpdateContentItemArtworkMessage_pb2.py index 995ccfd61..583909d2e 100644 --- a/pyatv/protocols/mrp/protobuf/UpdateContentItemArtworkMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/UpdateContentItemArtworkMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/UpdateContentItemArtworkMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/UpdateContentItemArtworkMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/UpdateContentItemArtworkMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/UpdateContentItemArtworkMessage_pb2.pyi index f517e63bd..15c053ec5 100644 --- a/pyatv/protocols/mrp/protobuf/UpdateContentItemArtworkMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/UpdateContentItemArtworkMessage_pb2.pyi @@ -2,7 +2,9 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.extension_dict @@ -11,25 +13,28 @@ import pyatv.protocols.mrp.protobuf.ContentItem_pb2 import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class UpdateContentItemArtworkMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + CONTENTITEMS_FIELD_NUMBER: builtins.int PLAYERPATH_FIELD_NUMBER: builtins.int @property def contentItems(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[pyatv.protocols.mrp.protobuf.ContentItem_pb2.ContentItem]: ... @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - def __init__(self, + def __init__( + self, *, - contentItems: typing.Optional[typing.Iterable[pyatv.protocols.mrp.protobuf.ContentItem_pb2.ContentItem]] = ..., - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["playerPath",b"playerPath"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["contentItems",b"contentItems","playerPath",b"playerPath"]) -> None: ... + contentItems: collections.abc.Iterable[pyatv.protocols.mrp.protobuf.ContentItem_pb2.ContentItem] | None = ..., + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["playerPath", b"playerPath"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["contentItems", b"contentItems", "playerPath", b"playerPath"]) -> None: ... + global___UpdateContentItemArtworkMessage = UpdateContentItemArtworkMessage UPDATECONTENTITEMARTWORKMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/UpdateContentItemMessage_pb2.py b/pyatv/protocols/mrp/protobuf/UpdateContentItemMessage_pb2.py index 03128bf96..76daf89a2 100644 --- a/pyatv/protocols/mrp/protobuf/UpdateContentItemMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/UpdateContentItemMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/UpdateContentItemMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/UpdateContentItemMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/UpdateContentItemMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/UpdateContentItemMessage_pb2.pyi index db08c7580..06bf1b078 100644 --- a/pyatv/protocols/mrp/protobuf/UpdateContentItemMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/UpdateContentItemMessage_pb2.pyi @@ -2,7 +2,9 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.extension_dict @@ -11,25 +13,28 @@ import pyatv.protocols.mrp.protobuf.ContentItem_pb2 import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class UpdateContentItemMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + CONTENTITEMS_FIELD_NUMBER: builtins.int PLAYERPATH_FIELD_NUMBER: builtins.int @property def contentItems(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[pyatv.protocols.mrp.protobuf.ContentItem_pb2.ContentItem]: ... @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - def __init__(self, + def __init__( + self, *, - contentItems: typing.Optional[typing.Iterable[pyatv.protocols.mrp.protobuf.ContentItem_pb2.ContentItem]] = ..., - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["playerPath",b"playerPath"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["contentItems",b"contentItems","playerPath",b"playerPath"]) -> None: ... + contentItems: collections.abc.Iterable[pyatv.protocols.mrp.protobuf.ContentItem_pb2.ContentItem] | None = ..., + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["playerPath", b"playerPath"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["contentItems", b"contentItems", "playerPath", b"playerPath"]) -> None: ... + global___UpdateContentItemMessage = UpdateContentItemMessage UPDATECONTENTITEMMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/UpdateEndPointsMessage_pb2.py b/pyatv/protocols/mrp/protobuf/UpdateEndPointsMessage_pb2.py index 011083e5f..a63aa5226 100644 --- a/pyatv/protocols/mrp/protobuf/UpdateEndPointsMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/UpdateEndPointsMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/UpdateEndPointsMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/UpdateEndPointsMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/UpdateEndPointsMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/UpdateEndPointsMessage_pb2.pyi index 7438c1823..4c86b2a3d 100644 --- a/pyatv/protocols/mrp/protobuf/UpdateEndPointsMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/UpdateEndPointsMessage_pb2.pyi @@ -2,18 +2,20 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class AVEndpointDescriptor(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int UNIQUEIDENTIFIER_FIELD_NUMBER: builtins.int ISLOCALENDPOINT_FIELD_NUMBER: builtins.int @@ -21,47 +23,51 @@ class AVEndpointDescriptor(google.protobuf.message.Message): ISPROXYGROUPPLAYER_FIELD_NUMBER: builtins.int CONNECTIONTYPE_FIELD_NUMBER: builtins.int CANMODIFYGROUPMEMBERSHIP_FIELD_NUMBER: builtins.int - name: typing.Text - uniqueIdentifier: typing.Text + name: builtins.str + uniqueIdentifier: builtins.str isLocalEndpoint: builtins.bool """repeated ... outputDevices = 3; optional ... designatedGroupLeader = 4; """ - - instanceIdentifier: typing.Text + instanceIdentifier: builtins.str isProxyGroupPlayer: builtins.bool connectionType: builtins.int canModifyGroupMembership: builtins.bool """repeated ... _personalOutputDevices = 10;""" - - def __init__(self, + def __init__( + self, *, - name: typing.Optional[typing.Text] = ..., - uniqueIdentifier: typing.Optional[typing.Text] = ..., - isLocalEndpoint: typing.Optional[builtins.bool] = ..., - instanceIdentifier: typing.Optional[typing.Text] = ..., - isProxyGroupPlayer: typing.Optional[builtins.bool] = ..., - connectionType: typing.Optional[builtins.int] = ..., - canModifyGroupMembership: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["canModifyGroupMembership",b"canModifyGroupMembership","connectionType",b"connectionType","instanceIdentifier",b"instanceIdentifier","isLocalEndpoint",b"isLocalEndpoint","isProxyGroupPlayer",b"isProxyGroupPlayer","name",b"name","uniqueIdentifier",b"uniqueIdentifier"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["canModifyGroupMembership",b"canModifyGroupMembership","connectionType",b"connectionType","instanceIdentifier",b"instanceIdentifier","isLocalEndpoint",b"isLocalEndpoint","isProxyGroupPlayer",b"isProxyGroupPlayer","name",b"name","uniqueIdentifier",b"uniqueIdentifier"]) -> None: ... + name: builtins.str | None = ..., + uniqueIdentifier: builtins.str | None = ..., + isLocalEndpoint: builtins.bool | None = ..., + instanceIdentifier: builtins.str | None = ..., + isProxyGroupPlayer: builtins.bool | None = ..., + connectionType: builtins.int | None = ..., + canModifyGroupMembership: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["canModifyGroupMembership", b"canModifyGroupMembership", "connectionType", b"connectionType", "instanceIdentifier", b"instanceIdentifier", "isLocalEndpoint", b"isLocalEndpoint", "isProxyGroupPlayer", b"isProxyGroupPlayer", "name", b"name", "uniqueIdentifier", b"uniqueIdentifier"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["canModifyGroupMembership", b"canModifyGroupMembership", "connectionType", b"connectionType", "instanceIdentifier", b"instanceIdentifier", "isLocalEndpoint", b"isLocalEndpoint", "isProxyGroupPlayer", b"isProxyGroupPlayer", "name", b"name", "uniqueIdentifier", b"uniqueIdentifier"]) -> None: ... + global___AVEndpointDescriptor = AVEndpointDescriptor +@typing.final class UpdateEndPointsMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ENDPOINTS_FIELD_NUMBER: builtins.int ENDPOINTFEATURES_FIELD_NUMBER: builtins.int + endpointFeatures: builtins.int @property def endpoints(self) -> global___AVEndpointDescriptor: ... - endpointFeatures: builtins.int - def __init__(self, + def __init__( + self, *, - endpoints: typing.Optional[global___AVEndpointDescriptor] = ..., - endpointFeatures: typing.Optional[builtins.int] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["endpointFeatures",b"endpointFeatures","endpoints",b"endpoints"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["endpointFeatures",b"endpointFeatures","endpoints",b"endpoints"]) -> None: ... + endpoints: global___AVEndpointDescriptor | None = ..., + endpointFeatures: builtins.int | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["endpointFeatures", b"endpointFeatures", "endpoints", b"endpoints"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["endpointFeatures", b"endpointFeatures", "endpoints", b"endpoints"]) -> None: ... + global___UpdateEndPointsMessage = UpdateEndPointsMessage UPDATEENDPOINTSMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/UpdateOutputDeviceMessage_pb2.py b/pyatv/protocols/mrp/protobuf/UpdateOutputDeviceMessage_pb2.py index e8170502b..e72dd8139 100644 --- a/pyatv/protocols/mrp/protobuf/UpdateOutputDeviceMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/UpdateOutputDeviceMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/UpdateOutputDeviceMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/UpdateOutputDeviceMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/UpdateOutputDeviceMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/UpdateOutputDeviceMessage_pb2.pyi index 6cedd77c1..e13ea634c 100644 --- a/pyatv/protocols/mrp/protobuf/UpdateOutputDeviceMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/UpdateOutputDeviceMessage_pb2.pyi @@ -2,7 +2,9 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.extension_dict @@ -10,27 +12,32 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.Common_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class AVOutputDeviceSourceInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ROUTINGCONTEXTUID_FIELD_NUMBER: builtins.int MULTIPLEBUILTINDEVICES_FIELD_NUMBER: builtins.int - routingContextUID: typing.Text + routingContextUID: builtins.str multipleBuiltInDevices: builtins.bool - def __init__(self, + def __init__( + self, *, - routingContextUID: typing.Optional[typing.Text] = ..., - multipleBuiltInDevices: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["multipleBuiltInDevices",b"multipleBuiltInDevices","routingContextUID",b"routingContextUID"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["multipleBuiltInDevices",b"multipleBuiltInDevices","routingContextUID",b"routingContextUID"]) -> None: ... + routingContextUID: builtins.str | None = ..., + multipleBuiltInDevices: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["multipleBuiltInDevices", b"multipleBuiltInDevices", "routingContextUID", b"routingContextUID"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["multipleBuiltInDevices", b"multipleBuiltInDevices", "routingContextUID", b"routingContextUID"]) -> None: ... + global___AVOutputDeviceSourceInfo = AVOutputDeviceSourceInfo +@typing.final class AVOutputDeviceDescriptor(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int UNIQUEIDENTIFIER_FIELD_NUMBER: builtins.int GROUPID_FIELD_NUMBER: builtins.int @@ -96,10 +103,10 @@ class AVOutputDeviceDescriptor(google.protobuf.message.Message): ROOMNAME_FIELD_NUMBER: builtins.int ALLCLUSTERMEMBERS_FIELD_NUMBER: builtins.int ENGAGEONCLUSTERACTIVATE_FIELD_NUMBER: builtins.int - name: typing.Text - uniqueIdentifier: typing.Text - groupID: typing.Text - modelID: typing.Text + name: builtins.str + uniqueIdentifier: builtins.str + groupID: builtins.str + modelID: builtins.str macAddress: builtins.bytes canAccessRemoteAssets: builtins.bool isRemoteControllable: builtins.bool @@ -113,13 +120,11 @@ class AVOutputDeviceDescriptor(google.protobuf.message.Message): supportsExternalScreen: builtins.bool requiresAuthorization: builtins.bool shouldForceRemoteControlabillity: builtins.bool - @property - def sourceInfo(self) -> global___AVOutputDeviceSourceInfo: ... isDeviceGroupable: builtins.bool canRelayCommunicationChannel: builtins.bool - logicalDeviceID: typing.Text + logicalDeviceID: builtins.str isProxyGroupPlayer: builtins.bool - firmwareVersion: typing.Text + firmwareVersion: builtins.str volume: builtins.float isVolumeControlAvailable: builtins.bool canAccessAppleMusic: builtins.bool @@ -130,134 +135,142 @@ class AVOutputDeviceDescriptor(google.protobuf.message.Message): canFetchMediaDataFromSender: builtins.bool resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets: builtins.bool isAirPlayReceiverSessionActive: builtins.bool - parentGroupIdentifier: typing.Text + parentGroupIdentifier: builtins.str parentGroupContainsDiscoverableLeader: builtins.bool isAddedToHomeKit: builtins.bool volumeCapabilities: builtins.int - bluetoothID: typing.Text + bluetoothID: builtins.str supportsHAP: builtins.bool usingJSONProtocol: builtins.bool - @property - def clusterCompositions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AVOutputDeviceDescriptor]: ... clusterType: builtins.int - primaryUID: typing.Text + primaryUID: builtins.str configuredClusterSize: builtins.int supportsRapportRemoteControlTransport: builtins.bool - currentBluetoothListeningMode: typing.Text - @property - def availableBluetoothListeningModes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... - @property - def supportsMultiplayer(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ... + currentBluetoothListeningMode: builtins.str producesLowFidelityAudio: builtins.bool hostDeviceClass: builtins.int - airPlayGroupID: typing.Text + airPlayGroupID: builtins.str supportsSharePlayHandoff: builtins.bool distance: builtins.float discoveredOnSameInfra: builtins.bool + transportType: builtins.int + clusterID: builtins.str + isClusterLeader: builtins.bool + isAppleAccessory: builtins.bool + parentUniqueIdentifier: builtins.str + roomID: builtins.str + roomName: builtins.str + engageOnClusterActivate: builtins.bool + @property + def sourceInfo(self) -> global___AVOutputDeviceSourceInfo: ... + @property + def clusterCompositions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AVOutputDeviceDescriptor]: ... + @property + def availableBluetoothListeningModes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + @property + def supportsMultiplayer(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ... @property def activatedClusterMembers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AVOutputDeviceDescriptor]: ... @property def pickable(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ... - transportType: builtins.int - clusterID: typing.Text - isClusterLeader: builtins.bool - isAppleAccessory: builtins.bool - parentUniqueIdentifier: typing.Text - roomID: typing.Text - roomName: typing.Text @property def allClusterMembers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AVOutputDeviceDescriptor]: ... - engageOnClusterActivate: builtins.bool - def __init__(self, + def __init__( + self, *, - name: typing.Optional[typing.Text] = ..., - uniqueIdentifier: typing.Optional[typing.Text] = ..., - groupID: typing.Optional[typing.Text] = ..., - modelID: typing.Optional[typing.Text] = ..., - macAddress: typing.Optional[builtins.bytes] = ..., - canAccessRemoteAssets: typing.Optional[builtins.bool] = ..., - isRemoteControllable: typing.Optional[builtins.bool] = ..., - isGroupLeader: typing.Optional[builtins.bool] = ..., - isGroupable: typing.Optional[builtins.bool] = ..., - deviceType: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.DeviceType.Enum.ValueType] = ..., - deviceSubType: typing.Optional[pyatv.protocols.mrp.protobuf.Common_pb2.DeviceSubType.Enum.ValueType] = ..., - modelSpecificInfoData: typing.Optional[builtins.bytes] = ..., - batteryLevel: typing.Optional[builtins.float] = ..., - isLocalDevice: typing.Optional[builtins.bool] = ..., - supportsExternalScreen: typing.Optional[builtins.bool] = ..., - requiresAuthorization: typing.Optional[builtins.bool] = ..., - shouldForceRemoteControlabillity: typing.Optional[builtins.bool] = ..., - sourceInfo: typing.Optional[global___AVOutputDeviceSourceInfo] = ..., - isDeviceGroupable: typing.Optional[builtins.bool] = ..., - canRelayCommunicationChannel: typing.Optional[builtins.bool] = ..., - logicalDeviceID: typing.Optional[typing.Text] = ..., - isProxyGroupPlayer: typing.Optional[builtins.bool] = ..., - firmwareVersion: typing.Optional[typing.Text] = ..., - volume: typing.Optional[builtins.float] = ..., - isVolumeControlAvailable: typing.Optional[builtins.bool] = ..., - canAccessAppleMusic: typing.Optional[builtins.bool] = ..., - canAccessiCloudMusicLibrary: typing.Optional[builtins.bool] = ..., - groupContainsGroupLeader: typing.Optional[builtins.bool] = ..., - supportsBufferedAirPlay: typing.Optional[builtins.bool] = ..., - canPlayEncryptedProgressiveDownloadAssets: typing.Optional[builtins.bool] = ..., - canFetchMediaDataFromSender: typing.Optional[builtins.bool] = ..., - resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets: typing.Optional[builtins.bool] = ..., - isAirPlayReceiverSessionActive: typing.Optional[builtins.bool] = ..., - parentGroupIdentifier: typing.Optional[typing.Text] = ..., - parentGroupContainsDiscoverableLeader: typing.Optional[builtins.bool] = ..., - isAddedToHomeKit: typing.Optional[builtins.bool] = ..., - volumeCapabilities: typing.Optional[builtins.int] = ..., - bluetoothID: typing.Optional[typing.Text] = ..., - supportsHAP: typing.Optional[builtins.bool] = ..., - usingJSONProtocol: typing.Optional[builtins.bool] = ..., - clusterCompositions: typing.Optional[typing.Iterable[global___AVOutputDeviceDescriptor]] = ..., - clusterType: typing.Optional[builtins.int] = ..., - primaryUID: typing.Optional[typing.Text] = ..., - configuredClusterSize: typing.Optional[builtins.int] = ..., - supportsRapportRemoteControlTransport: typing.Optional[builtins.bool] = ..., - currentBluetoothListeningMode: typing.Optional[typing.Text] = ..., - availableBluetoothListeningModes: typing.Optional[typing.Iterable[typing.Text]] = ..., - supportsMultiplayer: typing.Optional[typing.Iterable[builtins.bool]] = ..., - producesLowFidelityAudio: typing.Optional[builtins.bool] = ..., - hostDeviceClass: typing.Optional[builtins.int] = ..., - airPlayGroupID: typing.Optional[typing.Text] = ..., - supportsSharePlayHandoff: typing.Optional[builtins.bool] = ..., - distance: typing.Optional[builtins.float] = ..., - discoveredOnSameInfra: typing.Optional[builtins.bool] = ..., - activatedClusterMembers: typing.Optional[typing.Iterable[global___AVOutputDeviceDescriptor]] = ..., - pickable: typing.Optional[typing.Iterable[builtins.bool]] = ..., - transportType: typing.Optional[builtins.int] = ..., - clusterID: typing.Optional[typing.Text] = ..., - isClusterLeader: typing.Optional[builtins.bool] = ..., - isAppleAccessory: typing.Optional[builtins.bool] = ..., - parentUniqueIdentifier: typing.Optional[typing.Text] = ..., - roomID: typing.Optional[typing.Text] = ..., - roomName: typing.Optional[typing.Text] = ..., - allClusterMembers: typing.Optional[typing.Iterable[global___AVOutputDeviceDescriptor]] = ..., - engageOnClusterActivate: typing.Optional[builtins.bool] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["airPlayGroupID",b"airPlayGroupID","batteryLevel",b"batteryLevel","bluetoothID",b"bluetoothID","canAccessAppleMusic",b"canAccessAppleMusic","canAccessRemoteAssets",b"canAccessRemoteAssets","canAccessiCloudMusicLibrary",b"canAccessiCloudMusicLibrary","canFetchMediaDataFromSender",b"canFetchMediaDataFromSender","canPlayEncryptedProgressiveDownloadAssets",b"canPlayEncryptedProgressiveDownloadAssets","canRelayCommunicationChannel",b"canRelayCommunicationChannel","clusterID",b"clusterID","clusterType",b"clusterType","configuredClusterSize",b"configuredClusterSize","currentBluetoothListeningMode",b"currentBluetoothListeningMode","deviceSubType",b"deviceSubType","deviceType",b"deviceType","discoveredOnSameInfra",b"discoveredOnSameInfra","distance",b"distance","engageOnClusterActivate",b"engageOnClusterActivate","firmwareVersion",b"firmwareVersion","groupContainsGroupLeader",b"groupContainsGroupLeader","groupID",b"groupID","hostDeviceClass",b"hostDeviceClass","isAddedToHomeKit",b"isAddedToHomeKit","isAirPlayReceiverSessionActive",b"isAirPlayReceiverSessionActive","isAppleAccessory",b"isAppleAccessory","isClusterLeader",b"isClusterLeader","isDeviceGroupable",b"isDeviceGroupable","isGroupLeader",b"isGroupLeader","isGroupable",b"isGroupable","isLocalDevice",b"isLocalDevice","isProxyGroupPlayer",b"isProxyGroupPlayer","isRemoteControllable",b"isRemoteControllable","isVolumeControlAvailable",b"isVolumeControlAvailable","logicalDeviceID",b"logicalDeviceID","macAddress",b"macAddress","modelID",b"modelID","modelSpecificInfoData",b"modelSpecificInfoData","name",b"name","parentGroupContainsDiscoverableLeader",b"parentGroupContainsDiscoverableLeader","parentGroupIdentifier",b"parentGroupIdentifier","parentUniqueIdentifier",b"parentUniqueIdentifier","primaryUID",b"primaryUID","producesLowFidelityAudio",b"producesLowFidelityAudio","requiresAuthorization",b"requiresAuthorization","resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets",b"resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets","roomID",b"roomID","roomName",b"roomName","shouldForceRemoteControlabillity",b"shouldForceRemoteControlabillity","sourceInfo",b"sourceInfo","supportsBufferedAirPlay",b"supportsBufferedAirPlay","supportsExternalScreen",b"supportsExternalScreen","supportsHAP",b"supportsHAP","supportsRapportRemoteControlTransport",b"supportsRapportRemoteControlTransport","supportsSharePlayHandoff",b"supportsSharePlayHandoff","transportType",b"transportType","uniqueIdentifier",b"uniqueIdentifier","usingJSONProtocol",b"usingJSONProtocol","volume",b"volume","volumeCapabilities",b"volumeCapabilities"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["activatedClusterMembers",b"activatedClusterMembers","airPlayGroupID",b"airPlayGroupID","allClusterMembers",b"allClusterMembers","availableBluetoothListeningModes",b"availableBluetoothListeningModes","batteryLevel",b"batteryLevel","bluetoothID",b"bluetoothID","canAccessAppleMusic",b"canAccessAppleMusic","canAccessRemoteAssets",b"canAccessRemoteAssets","canAccessiCloudMusicLibrary",b"canAccessiCloudMusicLibrary","canFetchMediaDataFromSender",b"canFetchMediaDataFromSender","canPlayEncryptedProgressiveDownloadAssets",b"canPlayEncryptedProgressiveDownloadAssets","canRelayCommunicationChannel",b"canRelayCommunicationChannel","clusterCompositions",b"clusterCompositions","clusterID",b"clusterID","clusterType",b"clusterType","configuredClusterSize",b"configuredClusterSize","currentBluetoothListeningMode",b"currentBluetoothListeningMode","deviceSubType",b"deviceSubType","deviceType",b"deviceType","discoveredOnSameInfra",b"discoveredOnSameInfra","distance",b"distance","engageOnClusterActivate",b"engageOnClusterActivate","firmwareVersion",b"firmwareVersion","groupContainsGroupLeader",b"groupContainsGroupLeader","groupID",b"groupID","hostDeviceClass",b"hostDeviceClass","isAddedToHomeKit",b"isAddedToHomeKit","isAirPlayReceiverSessionActive",b"isAirPlayReceiverSessionActive","isAppleAccessory",b"isAppleAccessory","isClusterLeader",b"isClusterLeader","isDeviceGroupable",b"isDeviceGroupable","isGroupLeader",b"isGroupLeader","isGroupable",b"isGroupable","isLocalDevice",b"isLocalDevice","isProxyGroupPlayer",b"isProxyGroupPlayer","isRemoteControllable",b"isRemoteControllable","isVolumeControlAvailable",b"isVolumeControlAvailable","logicalDeviceID",b"logicalDeviceID","macAddress",b"macAddress","modelID",b"modelID","modelSpecificInfoData",b"modelSpecificInfoData","name",b"name","parentGroupContainsDiscoverableLeader",b"parentGroupContainsDiscoverableLeader","parentGroupIdentifier",b"parentGroupIdentifier","parentUniqueIdentifier",b"parentUniqueIdentifier","pickable",b"pickable","primaryUID",b"primaryUID","producesLowFidelityAudio",b"producesLowFidelityAudio","requiresAuthorization",b"requiresAuthorization","resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets",b"resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets","roomID",b"roomID","roomName",b"roomName","shouldForceRemoteControlabillity",b"shouldForceRemoteControlabillity","sourceInfo",b"sourceInfo","supportsBufferedAirPlay",b"supportsBufferedAirPlay","supportsExternalScreen",b"supportsExternalScreen","supportsHAP",b"supportsHAP","supportsMultiplayer",b"supportsMultiplayer","supportsRapportRemoteControlTransport",b"supportsRapportRemoteControlTransport","supportsSharePlayHandoff",b"supportsSharePlayHandoff","transportType",b"transportType","uniqueIdentifier",b"uniqueIdentifier","usingJSONProtocol",b"usingJSONProtocol","volume",b"volume","volumeCapabilities",b"volumeCapabilities"]) -> None: ... + name: builtins.str | None = ..., + uniqueIdentifier: builtins.str | None = ..., + groupID: builtins.str | None = ..., + modelID: builtins.str | None = ..., + macAddress: builtins.bytes | None = ..., + canAccessRemoteAssets: builtins.bool | None = ..., + isRemoteControllable: builtins.bool | None = ..., + isGroupLeader: builtins.bool | None = ..., + isGroupable: builtins.bool | None = ..., + deviceType: pyatv.protocols.mrp.protobuf.Common_pb2.DeviceType.Enum.ValueType | None = ..., + deviceSubType: pyatv.protocols.mrp.protobuf.Common_pb2.DeviceSubType.Enum.ValueType | None = ..., + modelSpecificInfoData: builtins.bytes | None = ..., + batteryLevel: builtins.float | None = ..., + isLocalDevice: builtins.bool | None = ..., + supportsExternalScreen: builtins.bool | None = ..., + requiresAuthorization: builtins.bool | None = ..., + shouldForceRemoteControlabillity: builtins.bool | None = ..., + sourceInfo: global___AVOutputDeviceSourceInfo | None = ..., + isDeviceGroupable: builtins.bool | None = ..., + canRelayCommunicationChannel: builtins.bool | None = ..., + logicalDeviceID: builtins.str | None = ..., + isProxyGroupPlayer: builtins.bool | None = ..., + firmwareVersion: builtins.str | None = ..., + volume: builtins.float | None = ..., + isVolumeControlAvailable: builtins.bool | None = ..., + canAccessAppleMusic: builtins.bool | None = ..., + canAccessiCloudMusicLibrary: builtins.bool | None = ..., + groupContainsGroupLeader: builtins.bool | None = ..., + supportsBufferedAirPlay: builtins.bool | None = ..., + canPlayEncryptedProgressiveDownloadAssets: builtins.bool | None = ..., + canFetchMediaDataFromSender: builtins.bool | None = ..., + resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets: builtins.bool | None = ..., + isAirPlayReceiverSessionActive: builtins.bool | None = ..., + parentGroupIdentifier: builtins.str | None = ..., + parentGroupContainsDiscoverableLeader: builtins.bool | None = ..., + isAddedToHomeKit: builtins.bool | None = ..., + volumeCapabilities: builtins.int | None = ..., + bluetoothID: builtins.str | None = ..., + supportsHAP: builtins.bool | None = ..., + usingJSONProtocol: builtins.bool | None = ..., + clusterCompositions: collections.abc.Iterable[global___AVOutputDeviceDescriptor] | None = ..., + clusterType: builtins.int | None = ..., + primaryUID: builtins.str | None = ..., + configuredClusterSize: builtins.int | None = ..., + supportsRapportRemoteControlTransport: builtins.bool | None = ..., + currentBluetoothListeningMode: builtins.str | None = ..., + availableBluetoothListeningModes: collections.abc.Iterable[builtins.str] | None = ..., + supportsMultiplayer: collections.abc.Iterable[builtins.bool] | None = ..., + producesLowFidelityAudio: builtins.bool | None = ..., + hostDeviceClass: builtins.int | None = ..., + airPlayGroupID: builtins.str | None = ..., + supportsSharePlayHandoff: builtins.bool | None = ..., + distance: builtins.float | None = ..., + discoveredOnSameInfra: builtins.bool | None = ..., + activatedClusterMembers: collections.abc.Iterable[global___AVOutputDeviceDescriptor] | None = ..., + pickable: collections.abc.Iterable[builtins.bool] | None = ..., + transportType: builtins.int | None = ..., + clusterID: builtins.str | None = ..., + isClusterLeader: builtins.bool | None = ..., + isAppleAccessory: builtins.bool | None = ..., + parentUniqueIdentifier: builtins.str | None = ..., + roomID: builtins.str | None = ..., + roomName: builtins.str | None = ..., + allClusterMembers: collections.abc.Iterable[global___AVOutputDeviceDescriptor] | None = ..., + engageOnClusterActivate: builtins.bool | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["airPlayGroupID", b"airPlayGroupID", "batteryLevel", b"batteryLevel", "bluetoothID", b"bluetoothID", "canAccessAppleMusic", b"canAccessAppleMusic", "canAccessRemoteAssets", b"canAccessRemoteAssets", "canAccessiCloudMusicLibrary", b"canAccessiCloudMusicLibrary", "canFetchMediaDataFromSender", b"canFetchMediaDataFromSender", "canPlayEncryptedProgressiveDownloadAssets", b"canPlayEncryptedProgressiveDownloadAssets", "canRelayCommunicationChannel", b"canRelayCommunicationChannel", "clusterID", b"clusterID", "clusterType", b"clusterType", "configuredClusterSize", b"configuredClusterSize", "currentBluetoothListeningMode", b"currentBluetoothListeningMode", "deviceSubType", b"deviceSubType", "deviceType", b"deviceType", "discoveredOnSameInfra", b"discoveredOnSameInfra", "distance", b"distance", "engageOnClusterActivate", b"engageOnClusterActivate", "firmwareVersion", b"firmwareVersion", "groupContainsGroupLeader", b"groupContainsGroupLeader", "groupID", b"groupID", "hostDeviceClass", b"hostDeviceClass", "isAddedToHomeKit", b"isAddedToHomeKit", "isAirPlayReceiverSessionActive", b"isAirPlayReceiverSessionActive", "isAppleAccessory", b"isAppleAccessory", "isClusterLeader", b"isClusterLeader", "isDeviceGroupable", b"isDeviceGroupable", "isGroupLeader", b"isGroupLeader", "isGroupable", b"isGroupable", "isLocalDevice", b"isLocalDevice", "isProxyGroupPlayer", b"isProxyGroupPlayer", "isRemoteControllable", b"isRemoteControllable", "isVolumeControlAvailable", b"isVolumeControlAvailable", "logicalDeviceID", b"logicalDeviceID", "macAddress", b"macAddress", "modelID", b"modelID", "modelSpecificInfoData", b"modelSpecificInfoData", "name", b"name", "parentGroupContainsDiscoverableLeader", b"parentGroupContainsDiscoverableLeader", "parentGroupIdentifier", b"parentGroupIdentifier", "parentUniqueIdentifier", b"parentUniqueIdentifier", "primaryUID", b"primaryUID", "producesLowFidelityAudio", b"producesLowFidelityAudio", "requiresAuthorization", b"requiresAuthorization", "resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets", b"resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets", "roomID", b"roomID", "roomName", b"roomName", "shouldForceRemoteControlabillity", b"shouldForceRemoteControlabillity", "sourceInfo", b"sourceInfo", "supportsBufferedAirPlay", b"supportsBufferedAirPlay", "supportsExternalScreen", b"supportsExternalScreen", "supportsHAP", b"supportsHAP", "supportsRapportRemoteControlTransport", b"supportsRapportRemoteControlTransport", "supportsSharePlayHandoff", b"supportsSharePlayHandoff", "transportType", b"transportType", "uniqueIdentifier", b"uniqueIdentifier", "usingJSONProtocol", b"usingJSONProtocol", "volume", b"volume", "volumeCapabilities", b"volumeCapabilities"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["activatedClusterMembers", b"activatedClusterMembers", "airPlayGroupID", b"airPlayGroupID", "allClusterMembers", b"allClusterMembers", "availableBluetoothListeningModes", b"availableBluetoothListeningModes", "batteryLevel", b"batteryLevel", "bluetoothID", b"bluetoothID", "canAccessAppleMusic", b"canAccessAppleMusic", "canAccessRemoteAssets", b"canAccessRemoteAssets", "canAccessiCloudMusicLibrary", b"canAccessiCloudMusicLibrary", "canFetchMediaDataFromSender", b"canFetchMediaDataFromSender", "canPlayEncryptedProgressiveDownloadAssets", b"canPlayEncryptedProgressiveDownloadAssets", "canRelayCommunicationChannel", b"canRelayCommunicationChannel", "clusterCompositions", b"clusterCompositions", "clusterID", b"clusterID", "clusterType", b"clusterType", "configuredClusterSize", b"configuredClusterSize", "currentBluetoothListeningMode", b"currentBluetoothListeningMode", "deviceSubType", b"deviceSubType", "deviceType", b"deviceType", "discoveredOnSameInfra", b"discoveredOnSameInfra", "distance", b"distance", "engageOnClusterActivate", b"engageOnClusterActivate", "firmwareVersion", b"firmwareVersion", "groupContainsGroupLeader", b"groupContainsGroupLeader", "groupID", b"groupID", "hostDeviceClass", b"hostDeviceClass", "isAddedToHomeKit", b"isAddedToHomeKit", "isAirPlayReceiverSessionActive", b"isAirPlayReceiverSessionActive", "isAppleAccessory", b"isAppleAccessory", "isClusterLeader", b"isClusterLeader", "isDeviceGroupable", b"isDeviceGroupable", "isGroupLeader", b"isGroupLeader", "isGroupable", b"isGroupable", "isLocalDevice", b"isLocalDevice", "isProxyGroupPlayer", b"isProxyGroupPlayer", "isRemoteControllable", b"isRemoteControllable", "isVolumeControlAvailable", b"isVolumeControlAvailable", "logicalDeviceID", b"logicalDeviceID", "macAddress", b"macAddress", "modelID", b"modelID", "modelSpecificInfoData", b"modelSpecificInfoData", "name", b"name", "parentGroupContainsDiscoverableLeader", b"parentGroupContainsDiscoverableLeader", "parentGroupIdentifier", b"parentGroupIdentifier", "parentUniqueIdentifier", b"parentUniqueIdentifier", "pickable", b"pickable", "primaryUID", b"primaryUID", "producesLowFidelityAudio", b"producesLowFidelityAudio", "requiresAuthorization", b"requiresAuthorization", "resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets", b"resentsOptimizedUserInterfaceWhenPlayingFetchedAudioOnlyAssets", "roomID", b"roomID", "roomName", b"roomName", "shouldForceRemoteControlabillity", b"shouldForceRemoteControlabillity", "sourceInfo", b"sourceInfo", "supportsBufferedAirPlay", b"supportsBufferedAirPlay", "supportsExternalScreen", b"supportsExternalScreen", "supportsHAP", b"supportsHAP", "supportsMultiplayer", b"supportsMultiplayer", "supportsRapportRemoteControlTransport", b"supportsRapportRemoteControlTransport", "supportsSharePlayHandoff", b"supportsSharePlayHandoff", "transportType", b"transportType", "uniqueIdentifier", b"uniqueIdentifier", "usingJSONProtocol", b"usingJSONProtocol", "volume", b"volume", "volumeCapabilities", b"volumeCapabilities"]) -> None: ... + global___AVOutputDeviceDescriptor = AVOutputDeviceDescriptor +@typing.final class UpdateOutputDeviceMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + OUTPUTDEVICES_FIELD_NUMBER: builtins.int ENDPOINTUID_FIELD_NUMBER: builtins.int CLUSTERAWAREOUTPUTDEVICES_FIELD_NUMBER: builtins.int + endpointUID: builtins.str @property def outputDevices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AVOutputDeviceDescriptor]: ... - endpointUID: typing.Text @property def clusterAwareOutputDevices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AVOutputDeviceDescriptor]: ... - def __init__(self, + def __init__( + self, *, - outputDevices: typing.Optional[typing.Iterable[global___AVOutputDeviceDescriptor]] = ..., - endpointUID: typing.Optional[typing.Text] = ..., - clusterAwareOutputDevices: typing.Optional[typing.Iterable[global___AVOutputDeviceDescriptor]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["endpointUID",b"endpointUID"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["clusterAwareOutputDevices",b"clusterAwareOutputDevices","endpointUID",b"endpointUID","outputDevices",b"outputDevices"]) -> None: ... + outputDevices: collections.abc.Iterable[global___AVOutputDeviceDescriptor] | None = ..., + endpointUID: builtins.str | None = ..., + clusterAwareOutputDevices: collections.abc.Iterable[global___AVOutputDeviceDescriptor] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["endpointUID", b"endpointUID"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["clusterAwareOutputDevices", b"clusterAwareOutputDevices", "endpointUID", b"endpointUID", "outputDevices", b"outputDevices"]) -> None: ... + global___UpdateOutputDeviceMessage = UpdateOutputDeviceMessage UPDATEOUTPUTDEVICEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/UpdatePlayerPath_pb2.py b/pyatv/protocols/mrp/protobuf/UpdatePlayerPath_pb2.py index a2ab40306..3b7f3ff54 100644 --- a/pyatv/protocols/mrp/protobuf/UpdatePlayerPath_pb2.py +++ b/pyatv/protocols/mrp/protobuf/UpdatePlayerPath_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/UpdatePlayerPath.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/UpdatePlayerPath.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/UpdatePlayerPath_pb2.pyi b/pyatv/protocols/mrp/protobuf/UpdatePlayerPath_pb2.pyi index 8a71e1c4f..f762ad3e5 100644 --- a/pyatv/protocols/mrp/protobuf/UpdatePlayerPath_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/UpdatePlayerPath_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,21 +10,24 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.PlayerPath_pb2 import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class UpdatePlayerMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PLAYERPATH_FIELD_NUMBER: builtins.int @property def playerPath(self) -> pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath: ... - def __init__(self, + def __init__( + self, *, - playerPath: typing.Optional[pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["playerPath",b"playerPath"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["playerPath",b"playerPath"]) -> None: ... + playerPath: pyatv.protocols.mrp.protobuf.PlayerPath_pb2.PlayerPath | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["playerPath", b"playerPath"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["playerPath", b"playerPath"]) -> None: ... + global___UpdatePlayerMessage = UpdatePlayerMessage UPDATEPLAYERMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/VirtualTouchDeviceDescriptorMessage_pb2.py b/pyatv/protocols/mrp/protobuf/VirtualTouchDeviceDescriptorMessage_pb2.py index 7740f0bf1..337a8badf 100644 --- a/pyatv/protocols/mrp/protobuf/VirtualTouchDeviceDescriptorMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/VirtualTouchDeviceDescriptorMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/VirtualTouchDeviceDescriptorMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/VirtualTouchDeviceDescriptorMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/VirtualTouchDeviceDescriptorMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/VirtualTouchDeviceDescriptorMessage_pb2.pyi index bfa586fbe..354b7939c 100644 --- a/pyatv/protocols/mrp/protobuf/VirtualTouchDeviceDescriptorMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/VirtualTouchDeviceDescriptorMessage_pb2.pyi @@ -2,16 +2,18 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class VirtualTouchDeviceDescriptor(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ABSOLUTE_FIELD_NUMBER: builtins.int INTEGRATEDDISPLAY_FIELD_NUMBER: builtins.int SCREENSIZEWIDTH_FIELD_NUMBER: builtins.int @@ -20,13 +22,15 @@ class VirtualTouchDeviceDescriptor(google.protobuf.message.Message): integratedDisplay: builtins.bool screenSizeWidth: builtins.float screenSizeHeight: builtins.float - def __init__(self, + def __init__( + self, *, - absolute: typing.Optional[builtins.bool] = ..., - integratedDisplay: typing.Optional[builtins.bool] = ..., - screenSizeWidth: typing.Optional[builtins.float] = ..., - screenSizeHeight: typing.Optional[builtins.float] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["absolute",b"absolute","integratedDisplay",b"integratedDisplay","screenSizeHeight",b"screenSizeHeight","screenSizeWidth",b"screenSizeWidth"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["absolute",b"absolute","integratedDisplay",b"integratedDisplay","screenSizeHeight",b"screenSizeHeight","screenSizeWidth",b"screenSizeWidth"]) -> None: ... + absolute: builtins.bool | None = ..., + integratedDisplay: builtins.bool | None = ..., + screenSizeWidth: builtins.float | None = ..., + screenSizeHeight: builtins.float | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["absolute", b"absolute", "integratedDisplay", b"integratedDisplay", "screenSizeHeight", b"screenSizeHeight", "screenSizeWidth", b"screenSizeWidth"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["absolute", b"absolute", "integratedDisplay", b"integratedDisplay", "screenSizeHeight", b"screenSizeHeight", "screenSizeWidth", b"screenSizeWidth"]) -> None: ... + global___VirtualTouchDeviceDescriptor = VirtualTouchDeviceDescriptor diff --git a/pyatv/protocols/mrp/protobuf/VoiceInputDeviceDescriptorMessage_pb2.py b/pyatv/protocols/mrp/protobuf/VoiceInputDeviceDescriptorMessage_pb2.py index d663fe9f7..62a0a6299 100644 --- a/pyatv/protocols/mrp/protobuf/VoiceInputDeviceDescriptorMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/VoiceInputDeviceDescriptorMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/VoiceInputDeviceDescriptorMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/VoiceInputDeviceDescriptorMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/VoiceInputDeviceDescriptorMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/VoiceInputDeviceDescriptorMessage_pb2.pyi index 9e75cf704..bb610c74b 100644 --- a/pyatv/protocols/mrp/protobuf/VoiceInputDeviceDescriptorMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/VoiceInputDeviceDescriptorMessage_pb2.pyi @@ -2,29 +2,34 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class VoiceInputDeviceDescriptor(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEFAULTFORMAT_FIELD_NUMBER: builtins.int SUPPORTEDFORMATS_FIELD_NUMBER: builtins.int @property def defaultFormat(self) -> pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2.AudioFormatSettings: ... @property def supportedFormats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2.AudioFormatSettings]: ... - def __init__(self, + def __init__( + self, *, - defaultFormat: typing.Optional[pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2.AudioFormatSettings] = ..., - supportedFormats: typing.Optional[typing.Iterable[pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2.AudioFormatSettings]] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["defaultFormat",b"defaultFormat"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["defaultFormat",b"defaultFormat","supportedFormats",b"supportedFormats"]) -> None: ... + defaultFormat: pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2.AudioFormatSettings | None = ..., + supportedFormats: collections.abc.Iterable[pyatv.protocols.mrp.protobuf.AudioFormatSettingsMessage_pb2.AudioFormatSettings] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["defaultFormat", b"defaultFormat"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["defaultFormat", b"defaultFormat", "supportedFormats", b"supportedFormats"]) -> None: ... + global___VoiceInputDeviceDescriptor = VoiceInputDeviceDescriptor diff --git a/pyatv/protocols/mrp/protobuf/VolumeControlAvailabilityMessage_pb2.py b/pyatv/protocols/mrp/protobuf/VolumeControlAvailabilityMessage_pb2.py index e752afadd..29f8e3b40 100644 --- a/pyatv/protocols/mrp/protobuf/VolumeControlAvailabilityMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/VolumeControlAvailabilityMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/VolumeControlAvailabilityMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/VolumeControlAvailabilityMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/VolumeControlAvailabilityMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/VolumeControlAvailabilityMessage_pb2.pyi index 7c8298d3e..5042fa243 100644 --- a/pyatv/protocols/mrp/protobuf/VolumeControlAvailabilityMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/VolumeControlAvailabilityMessage_pb2.pyi @@ -2,54 +2,69 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class VolumeCapabilities(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + class _Enum: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[VolumeCapabilities._Enum.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor Relative: VolumeCapabilities._Enum.ValueType # 1 Absolute: VolumeCapabilities._Enum.ValueType # 2 Both: VolumeCapabilities._Enum.ValueType # 3 + class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): """This is really a bitmap but protobuf has no type for that, so lets just add a "Both" option since only two values exist anyway """ - pass Relative: VolumeCapabilities.Enum.ValueType # 1 Absolute: VolumeCapabilities.Enum.ValueType # 2 Both: VolumeCapabilities.Enum.ValueType # 3 - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___VolumeCapabilities = VolumeCapabilities +@typing.final class VolumeControlAvailabilityMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VOLUMECONTROLAVAILABLE_FIELD_NUMBER: builtins.int VOLUMECAPABILITIES_FIELD_NUMBER: builtins.int volumeControlAvailable: builtins.bool volumeCapabilities: global___VolumeCapabilities.Enum.ValueType - def __init__(self, + def __init__( + self, *, - volumeControlAvailable: typing.Optional[builtins.bool] = ..., - volumeCapabilities: typing.Optional[global___VolumeCapabilities.Enum.ValueType] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["volumeCapabilities",b"volumeCapabilities","volumeControlAvailable",b"volumeControlAvailable"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["volumeCapabilities",b"volumeCapabilities","volumeControlAvailable",b"volumeControlAvailable"]) -> None: ... + volumeControlAvailable: builtins.bool | None = ..., + volumeCapabilities: global___VolumeCapabilities.Enum.ValueType | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["volumeCapabilities", b"volumeCapabilities", "volumeControlAvailable", b"volumeControlAvailable"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["volumeCapabilities", b"volumeCapabilities", "volumeControlAvailable", b"volumeControlAvailable"]) -> None: ... + global___VolumeControlAvailabilityMessage = VolumeControlAvailabilityMessage VOLUMECONTROLAVAILABILITYMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/VolumeControlCapabilitiesDidChangeMessage_pb2.py b/pyatv/protocols/mrp/protobuf/VolumeControlCapabilitiesDidChangeMessage_pb2.py index c415df0b2..232187de5 100644 --- a/pyatv/protocols/mrp/protobuf/VolumeControlCapabilitiesDidChangeMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/VolumeControlCapabilitiesDidChangeMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/VolumeControlCapabilitiesDidChangeMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/VolumeControlCapabilitiesDidChangeMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/VolumeControlCapabilitiesDidChangeMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/VolumeControlCapabilitiesDidChangeMessage_pb2.pyi index 1370e4c8e..ec0115424 100644 --- a/pyatv/protocols/mrp/protobuf/VolumeControlCapabilitiesDidChangeMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/VolumeControlCapabilitiesDidChangeMessage_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict @@ -9,27 +10,30 @@ import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import pyatv.protocols.mrp.protobuf.VolumeControlAvailabilityMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class VolumeControlCapabilitiesDidChangeMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + CAPABILITIES_FIELD_NUMBER: builtins.int ENDPOINTUID_FIELD_NUMBER: builtins.int OUTPUTDEVICEUID_FIELD_NUMBER: builtins.int + endpointUID: builtins.str + outputDeviceUID: builtins.str @property def capabilities(self) -> pyatv.protocols.mrp.protobuf.VolumeControlAvailabilityMessage_pb2.VolumeControlAvailabilityMessage: ... - endpointUID: typing.Text - outputDeviceUID: typing.Text - def __init__(self, + def __init__( + self, *, - capabilities: typing.Optional[pyatv.protocols.mrp.protobuf.VolumeControlAvailabilityMessage_pb2.VolumeControlAvailabilityMessage] = ..., - endpointUID: typing.Optional[typing.Text] = ..., - outputDeviceUID: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["capabilities",b"capabilities","endpointUID",b"endpointUID","outputDeviceUID",b"outputDeviceUID"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["capabilities",b"capabilities","endpointUID",b"endpointUID","outputDeviceUID",b"outputDeviceUID"]) -> None: ... + capabilities: pyatv.protocols.mrp.protobuf.VolumeControlAvailabilityMessage_pb2.VolumeControlAvailabilityMessage | None = ..., + endpointUID: builtins.str | None = ..., + outputDeviceUID: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["capabilities", b"capabilities", "endpointUID", b"endpointUID", "outputDeviceUID", b"outputDeviceUID"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["capabilities", b"capabilities", "endpointUID", b"endpointUID", "outputDeviceUID", b"outputDeviceUID"]) -> None: ... + global___VolumeControlCapabilitiesDidChangeMessage = VolumeControlCapabilitiesDidChangeMessage VOLUMECONTROLCAPABILITIESDIDCHANGEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/VolumeDidChangeMessage_pb2.py b/pyatv/protocols/mrp/protobuf/VolumeDidChangeMessage_pb2.py index 18060db47..3154017fc 100644 --- a/pyatv/protocols/mrp/protobuf/VolumeDidChangeMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/VolumeDidChangeMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/VolumeDidChangeMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/VolumeDidChangeMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/VolumeDidChangeMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/VolumeDidChangeMessage_pb2.pyi index 16c0c4c40..7f721f74a 100644 --- a/pyatv/protocols/mrp/protobuf/VolumeDidChangeMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/VolumeDidChangeMessage_pb2.pyi @@ -2,32 +2,36 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class VolumeDidChangeMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VOLUME_FIELD_NUMBER: builtins.int ENDPOINTUID_FIELD_NUMBER: builtins.int OUTPUTDEVICEUID_FIELD_NUMBER: builtins.int volume: builtins.float - endpointUID: typing.Text - outputDeviceUID: typing.Text - def __init__(self, + endpointUID: builtins.str + outputDeviceUID: builtins.str + def __init__( + self, *, - volume: typing.Optional[builtins.float] = ..., - endpointUID: typing.Optional[typing.Text] = ..., - outputDeviceUID: typing.Optional[typing.Text] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["endpointUID",b"endpointUID","outputDeviceUID",b"outputDeviceUID","volume",b"volume"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["endpointUID",b"endpointUID","outputDeviceUID",b"outputDeviceUID","volume",b"volume"]) -> None: ... + volume: builtins.float | None = ..., + endpointUID: builtins.str | None = ..., + outputDeviceUID: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["endpointUID", b"endpointUID", "outputDeviceUID", b"outputDeviceUID", "volume", b"volume"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["endpointUID", b"endpointUID", "outputDeviceUID", b"outputDeviceUID", "volume", b"volume"]) -> None: ... + global___VolumeDidChangeMessage = VolumeDidChangeMessage VOLUMEDIDCHANGEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/pyatv/protocols/mrp/protobuf/WakeDeviceMessage_pb2.py b/pyatv/protocols/mrp/protobuf/WakeDeviceMessage_pb2.py index b51d67381..da54ffa24 100644 --- a/pyatv/protocols/mrp/protobuf/WakeDeviceMessage_pb2.py +++ b/pyatv/protocols/mrp/protobuf/WakeDeviceMessage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: pyatv/protocols/mrp/protobuf/WakeDeviceMessage.proto -# Protobuf Python Version: 5.28.0 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -13,7 +13,7 @@ _runtime_version.Domain.PUBLIC, 5, 28, - 0, + 1, '', 'pyatv/protocols/mrp/protobuf/WakeDeviceMessage.proto' ) diff --git a/pyatv/protocols/mrp/protobuf/WakeDeviceMessage_pb2.pyi b/pyatv/protocols/mrp/protobuf/WakeDeviceMessage_pb2.pyi index 33f9adfb8..53f4b11d6 100644 --- a/pyatv/protocols/mrp/protobuf/WakeDeviceMessage_pb2.pyi +++ b/pyatv/protocols/mrp/protobuf/WakeDeviceMessage_pb2.pyi @@ -2,18 +2,24 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.extension_dict import google.protobuf.message import pyatv.protocols.mrp.protobuf.ProtocolMessage_pb2 +import typing DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WakeDeviceMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self, - ) -> None: ... + + def __init__( + self, + ) -> None: ... + global___WakeDeviceMessage = WakeDeviceMessage WAKEDEVICEMESSAGE_FIELD_NUMBER: builtins.int diff --git a/scripts/protobuf.py b/scripts/protobuf.py index 5c31118f2..eaae3f456 100755 --- a/scripts/protobuf.py +++ b/scripts/protobuf.py @@ -78,7 +78,7 @@ def _protobuf_url(version): def _get_protobuf_version(): - return "28.0" + return "28.1" def _download_protoc(force=False):