diff --git a/librespot/core.py b/librespot/core.py index 08c30fe8..ebc53468 100644 --- a/librespot/core.py +++ b/librespot/core.py @@ -80,12 +80,12 @@ def __init__(self, session: Session): self.__base_url = "https://{}".format(ApResolver.get_random_spclient()) def build_request( - self, - method: str, - suffix: str, - headers: typing.Union[None, CaseInsensitiveDict[str, str]], - body: typing.Union[None, bytes], - url: typing.Union[None, str], + self, + method: str, + suffix: str, + headers: typing.Union[None, CaseInsensitiveDict[str, str]], + body: typing.Union[None, bytes], + url: typing.Union[None, str], ) -> requests.PreparedRequest: """ @@ -122,11 +122,11 @@ def build_request( return request.prepare() def send( - self, - method: str, - suffix: str, - headers: typing.Union[None, CaseInsensitiveDict[str, str]], - body: typing.Union[None, bytes], + self, + method: str, + suffix: str, + headers: typing.Union[None, CaseInsensitiveDict[str, str]], + body: typing.Union[None, bytes], ) -> requests.Response: """ @@ -144,12 +144,12 @@ def send( return response def sendToUrl( - self, - method: str, - url: str, - suffix: str, - headers: typing.Union[None, CaseInsensitiveDict[str, str]], - body: typing.Union[None, bytes], + self, + method: str, + url: str, + suffix: str, + headers: typing.Union[None, CaseInsensitiveDict[str, str]], + body: typing.Union[None, bytes], ) -> requests.Response: """ @@ -194,10 +194,10 @@ def put_connect_state(self, connection_id: str, def get_ext_metadata(self, extension_kind: ExtensionKind, uri: str): headers = CaseInsensitiveDict({"content-type": "application/x-protobuf"}) - req = EntityRequest(entity_uri=uri, query=[ExtensionQuery(extension_kind=extension_kind),]) + req = EntityRequest(entity_uri=uri, query=[ExtensionQuery(extension_kind=extension_kind), ]) response = self.send("POST", "/extended-metadata/v0/extended-metadata", - headers, BatchedEntityRequest(entity_request=[req,]).SerializeToString()) + headers, BatchedEntityRequest(entity_request=[req, ]).SerializeToString()) ApiClient.StatusCodeException.check_status(response) body = response.content @@ -208,7 +208,8 @@ def get_ext_metadata(self, extension_kind: ExtensionKind, uri: str): proto.ParseFromString(body) entityextd = proto.extended_metadata.pop().extension_data.pop() if entityextd.header.status_code != 200: - raise ConnectionError("Extended Metadata request failed: Status code {}".format(entityextd.header.status_code)) + raise ConnectionError( + "Extended Metadata request failed: Status code {}".format(entityextd.header.status_code)) mdb: bytes = entityextd.extension_data.value return mdb @@ -754,7 +755,7 @@ def __worker_callback(self, event_builder: EventBuilder): event_builder, ex)) def send_event(self, event_or_builder: typing.Union[GenericEvent, - EventBuilder]): + EventBuilder]): """ :param event_or_builder: typing.Union[GenericEvent: @@ -892,6 +893,7 @@ class Session(Closeable, MessageListener, SubListener): __audio_key_manager: typing.Union[AudioKeyManager, None] = None __auth_lock = threading.Condition() __auth_lock_bool = False + __is_active = False __cache_manager: typing.Union[CacheManager, None] __cdn_manager: typing.Union[CdnManager, None] __channel_manager: typing.Union[ChannelManager, None] = None @@ -975,6 +977,7 @@ def authenticate(self, self.__search = SearchManager(self) self.__event_service = EventService(self) self.__auth_lock_bool = False + self.__is_active = True self.__auth_lock.notify_all() self.dealer().connect() self.logger.info("Authenticated as {}!".format( @@ -1085,7 +1088,7 @@ def connect(self) -> None: if not pkcs1_v1_5.verify( sha1, ap_response_message_proto.challenge.login_crypto_challenge. - diffie_hellman.gs_signature, + diffie_hellman.gs_signature, ): raise RuntimeError("Failed signature check!") # Solve challenge @@ -1192,10 +1195,11 @@ def get_user_attribute(self, key: str, fallback: str = None) -> str: def is_valid(self) -> bool: """ """ - if self.__closed: + if self.__closed or not self.__is_active: return False - self.__wait_auth_lock() - return self.__ap_welcome is not None and self.connection is not None + # Do not wait for lock if we just want to check validity to avoid blocking + # self.__wait_auth_lock() + return self.__ap_welcome is not None and self.connection is not None and self.__receiver is not None and self.__receiver._Receiver__running def mercury(self) -> MercuryClient: """ """ @@ -1352,11 +1356,11 @@ def __authenticate_partial(self, self.__stored_str = base64.b64encode( json.dumps({ "username": - self.__ap_welcome.canonical_username, + self.__ap_welcome.canonical_username, "credentials": - base64.b64encode(reusable).decode(), + base64.b64encode(reusable).decode(), "type": - reusable_type, + reusable_type, }).encode()).decode() with open(self.__inner.conf.stored_credentials_file, "w") as f: json.dump( @@ -1629,7 +1633,7 @@ def stored_file(self, pass return self - def oauth(self, oauth_url_callback, success_page_content = None) -> Session.Builder: + def oauth(self, oauth_url_callback, success_page_content=None) -> Session.Builder: """ Login via OAuth @@ -1638,7 +1642,8 @@ def oauth(self, oauth_url_callback, success_page_content = None) -> Session.Buil """ if os.path.isfile(self.conf.stored_credentials_file): return self.stored_file(None) - self.login_credentials = OAuth(MercuryRequests.keymaster_client_id, "http://127.0.0.1:5588/login", oauth_url_callback).set_success_page_content(success_page_content).flow() + self.login_credentials = OAuth(MercuryRequests.keymaster_client_id, "http://127.0.0.1:5588/login", + oauth_url_callback).set_success_page_content(success_page_content).flow() return self def user_pass(self, username: str, password: str) -> Session.Builder: @@ -1704,20 +1709,20 @@ class Configuration: retry_on_chunk_error: bool def __init__( - self, - # proxy_enabled: bool, - # proxy_type: Proxy.Type, - # proxy_address: str, - # proxy_port: int, - # proxy_auth: bool, - # proxy_username: str, - # proxy_password: str, - cache_enabled: bool, - cache_dir: str, - do_cache_clean_up: bool, - store_credentials: bool, - stored_credentials_file: str, - retry_on_chunk_error: bool, + self, + # proxy_enabled: bool, + # proxy_type: Proxy.Type, + # proxy_address: str, + # proxy_port: int, + # proxy_auth: bool, + # proxy_username: str, + # proxy_password: str, + cache_enabled: bool, + cache_dir: str, + do_cache_clean_up: bool, + store_credentials: bool, + stored_credentials_file: str, + retry_on_chunk_error: bool, ): # self.proxyEnabled = proxy_enabled # self.proxyType = proxy_type @@ -2009,12 +2014,12 @@ class Inner: preferred_locale: str def __init__( - self, - device_type: Connect.DeviceType, - device_name: str, - preferred_locale: str, - conf: Session.Configuration, - device_id: str = None, + self, + device_type: Connect.DeviceType, + device_name: str, + preferred_locale: str, + conf: Session.Configuration, + device_id: str = None, ): self.preferred_locale = preferred_locale self.conf = conf @@ -2061,7 +2066,12 @@ def run(self) -> None: if self.__running: self.__session.logger.fatal( "Failed reading packet! {}".format(ex)) - self.__session.reconnect() + try: + self.__session.reconnect() + except Exception as e: + self.__session.logger.fatal(f"Reconnection failed: {e}") + self.__session._Session__is_active = False + self.__running = False break if not self.__running: break @@ -2102,16 +2112,16 @@ def anonymous(): self.__session.logger.debug("Received 0x10: {}".format( util.bytes_to_hex(packet.payload))) elif cmd in [ - Packet.Type.mercury_sub, - Packet.Type.mercury_unsub, - Packet.Type.mercury_event, - Packet.Type.mercury_req, + Packet.Type.mercury_sub, + Packet.Type.mercury_unsub, + Packet.Type.mercury_event, + Packet.Type.mercury_req, ]: self.__session.mercury().dispatch(packet) elif cmd in [Packet.Type.aes_key, Packet.Type.aes_key_error]: self.__session.audio_key().dispatch(packet) elif cmd in [ - Packet.Type.channel_error, Packet.Type.stream_chunk_res + Packet.Type.channel_error, Packet.Type.stream_chunk_res ]: self.__session.channel().dispatch(packet) elif cmd == Packet.Type.product_info: @@ -2324,7 +2334,7 @@ def get_token(self, *scopes) -> StoredToken: def login5(self, scopes: typing.List[str]) -> typing.Union[StoredToken, None]: """Submit Login5 request for a fresh access token""" - + if self.__session.ap_welcome(): login5_request = Login5.LoginRequest() login5_request.client_info.client_id = MercuryRequests.keymaster_client_id @@ -2341,20 +2351,21 @@ def login5(self, scopes: typing.List[str]) -> typing.Union[StoredToken, None]: headers=CaseInsensitiveDict({ "Content-Type": "application/x-protobuf", "Accept": "application/x-protobuf" - })) + })) if response.status_code == 200: login5_response = Login5.LoginResponse() login5_response.ParseFromString(response.content) if login5_response.HasField('ok'): - self.logger.info("Login5 authentication successful, got access token".format(login5_response.ok.access_token)) + self.logger.info( + "Login5 authentication successful, got access token".format(login5_response.ok.access_token)) token = TokenProvider.StoredToken({ - "expiresIn": login5_response.ok.access_token_expires_in, # approximately one hour + "expiresIn": login5_response.ok.access_token_expires_in, # approximately one hour "accessToken": login5_response.ok.access_token, "scope": scopes }) - return token + return token else: self.logger.warning("Login5 authentication failed: {}".format(login5_response.error)) else: @@ -2379,7 +2390,7 @@ def expired(self) -> bool: """ """ return self.timestamp + (self.expires_in - TokenProvider. token_expire_threshold) * 1000 * 1000 < int( - time.time_ns() / 1000) + time.time_ns() / 1000) def has_scope(self, scope: str) -> bool: """ diff --git a/librespot/proto/Authentication_pb2.py b/librespot/proto/Authentication_pb2.py index b38baf16..00e20123 100644 --- a/librespot/proto/Authentication_pb2.py +++ b/librespot/proto/Authentication_pb2.py @@ -1,1984 +1,79 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: authentication.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'authentication.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name='authentication.proto', - package='spotify', - syntax='proto2', - serialized_options=b'\n\013com.spotify', - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x14\x61uthentication.proto\x12\x07spotify\"\xa2\x03\n\x17\x43lientResponseEncrypted\x12\x34\n\x11login_credentials\x18\n \x02(\x0b\x32\x19.spotify.LoginCredentials\x12\x32\n\x10\x61\x63\x63ount_creation\x18\x14 \x01(\x0e\x32\x18.spotify.AccountCreation\x12?\n\x14\x66ingerprint_response\x18\x1e \x01(\x0b\x32!.spotify.FingerprintResponseUnion\x12-\n\x0bpeer_ticket\x18( \x01(\x0b\x32\x18.spotify.PeerTicketUnion\x12(\n\x0bsystem_info\x18\x32 \x02(\x0b\x32\x13.spotify.SystemInfo\x12\x16\n\x0eplatform_model\x18< \x01(\t\x12\x16\n\x0eversion_string\x18\x46 \x01(\t\x12)\n\x06\x61ppkey\x18P \x01(\x0b\x32\x19.spotify.LibspotifyAppKey\x12(\n\x0b\x63lient_info\x18Z \x01(\x0b\x32\x13.spotify.ClientInfo\"a\n\x10LoginCredentials\x12\x10\n\x08username\x18\n \x01(\t\x12(\n\x03typ\x18\x14 \x02(\x0e\x32\x1b.spotify.AuthenticationType\x12\x11\n\tauth_data\x18\x1e \x01(\x0c\"\x89\x01\n\x18\x46ingerprintResponseUnion\x12\x30\n\x05grain\x18\n \x01(\x0b\x32!.spotify.FingerprintGrainResponse\x12;\n\x0bhmac_ripemd\x18\x14 \x01(\x0b\x32&.spotify.FingerprintHmacRipemdResponse\"1\n\x18\x46ingerprintGrainResponse\x12\x15\n\rencrypted_key\x18\n \x02(\x0c\"-\n\x1d\x46ingerprintHmacRipemdResponse\x12\x0c\n\x04hmac\x18\n \x02(\x0c\"o\n\x0fPeerTicketUnion\x12\x30\n\npublic_key\x18\n \x01(\x0b\x32\x1c.spotify.PeerTicketPublicKey\x12*\n\nold_ticket\x18\x14 \x01(\x0b\x32\x16.spotify.PeerTicketOld\")\n\x13PeerTicketPublicKey\x12\x12\n\npublic_key\x18\n \x02(\x0c\"C\n\rPeerTicketOld\x12\x13\n\x0bpeer_ticket\x18\n \x02(\x0c\x12\x1d\n\x15peer_ticket_signature\x18\x14 \x02(\x0c\"\x81\x02\n\nSystemInfo\x12&\n\ncpu_family\x18\n \x02(\x0e\x32\x12.spotify.CpuFamily\x12\x13\n\x0b\x63pu_subtype\x18\x14 \x01(\r\x12\x0f\n\x07\x63pu_ext\x18\x1e \x01(\r\x12\x1d\n\x05\x62rand\x18( \x01(\x0e\x32\x0e.spotify.Brand\x12\x13\n\x0b\x62rand_flags\x18\x32 \x01(\r\x12\x17\n\x02os\x18< \x02(\x0e\x32\x0b.spotify.Os\x12\x12\n\nos_version\x18\x46 \x01(\r\x12\x0e\n\x06os_ext\x18P \x01(\r\x12!\n\x19system_information_string\x18Z \x01(\t\x12\x11\n\tdevice_id\x18\x64 \x01(\t\"p\n\x10LibspotifyAppKey\x12\x0f\n\x07version\x18\x01 \x02(\r\x12\x0e\n\x06\x64\x65vkey\x18\x02 \x02(\x0c\x12\x11\n\tsignature\x18\x03 \x02(\x0c\x12\x11\n\tuseragent\x18\x04 \x02(\t\x12\x15\n\rcallback_hash\x18\x05 \x02(\x0c\"X\n\nClientInfo\x12\x0f\n\x07limited\x18\x01 \x01(\x08\x12\'\n\x02\x66\x62\x18\x02 \x01(\x0b\x32\x1b.spotify.ClientInfoFacebook\x12\x10\n\x08language\x18\x03 \x01(\t\"(\n\x12\x43lientInfoFacebook\x12\x12\n\nmachine_id\x18\x01 \x01(\t\"\xe9\x02\n\tAPWelcome\x12\x1a\n\x12\x63\x61nonical_username\x18\n \x02(\t\x12\x34\n\x16\x61\x63\x63ount_type_logged_in\x18\x14 \x02(\x0e\x32\x14.spotify.AccountType\x12\x38\n\x1a\x63redentials_type_logged_in\x18\x19 \x02(\x0e\x32\x14.spotify.AccountType\x12\x43\n\x1ereusable_auth_credentials_type\x18\x1e \x02(\x0e\x32\x1b.spotify.AuthenticationType\x12!\n\x19reusable_auth_credentials\x18( \x02(\x0c\x12\x12\n\nlfs_secret\x18\x32 \x01(\x0c\x12*\n\x0c\x61\x63\x63ount_info\x18< \x01(\x0b\x32\x14.spotify.AccountInfo\x12(\n\x02\x66\x62\x18\x46 \x01(\x0b\x32\x1c.spotify.AccountInfoFacebook\"k\n\x0b\x41\x63\x63ountInfo\x12,\n\x07spotify\x18\x01 \x01(\x0b\x32\x1b.spotify.AccountInfoSpotify\x12.\n\x08\x66\x61\x63\x65\x62ook\x18\x02 \x01(\x0b\x32\x1c.spotify.AccountInfoFacebook\"\x14\n\x12\x41\x63\x63ountInfoSpotify\"?\n\x13\x41\x63\x63ountInfoFacebook\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\t\x12\x12\n\nmachine_id\x18\x02 \x01(\t*\xd6\x01\n\x12\x41uthenticationType\x12\x1c\n\x18\x41UTHENTICATION_USER_PASS\x10\x00\x12-\n)AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS\x10\x01\x12.\n*AUTHENTICATION_STORED_FACEBOOK_CREDENTIALS\x10\x02\x12 \n\x1c\x41UTHENTICATION_SPOTIFY_TOKEN\x10\x03\x12!\n\x1d\x41UTHENTICATION_FACEBOOK_TOKEN\x10\x04*Y\n\x0f\x41\x63\x63ountCreation\x12\"\n\x1e\x41\x43\x43OUNT_CREATION_ALWAYS_PROMPT\x10\x01\x12\"\n\x1e\x41\x43\x43OUNT_CREATION_ALWAYS_CREATE\x10\x03*\x9d\x01\n\tCpuFamily\x12\x0f\n\x0b\x43PU_UNKNOWN\x10\x00\x12\x0b\n\x07\x43PU_X86\x10\x01\x12\x0e\n\nCPU_X86_64\x10\x02\x12\x0b\n\x07\x43PU_PPC\x10\x03\x12\x0e\n\nCPU_PPC_64\x10\x04\x12\x0b\n\x07\x43PU_ARM\x10\x05\x12\x0c\n\x08\x43PU_IA64\x10\x06\x12\n\n\x06\x43PU_SH\x10\x07\x12\x0c\n\x08\x43PU_MIPS\x10\x08\x12\x10\n\x0c\x43PU_BLACKFIN\x10\t*K\n\x05\x42rand\x12\x13\n\x0f\x42RAND_UNBRANDED\x10\x00\x12\r\n\tBRAND_INQ\x10\x01\x12\r\n\tBRAND_HTC\x10\x02\x12\x0f\n\x0b\x42RAND_NOKIA\x10\x03*\xd1\x02\n\x02Os\x12\x0e\n\nOS_UNKNOWN\x10\x00\x12\x0e\n\nOS_WINDOWS\x10\x01\x12\n\n\x06OS_OSX\x10\x02\x12\r\n\tOS_IPHONE\x10\x03\x12\n\n\x06OS_S60\x10\x04\x12\x0c\n\x08OS_LINUX\x10\x05\x12\x11\n\rOS_WINDOWS_CE\x10\x06\x12\x0e\n\nOS_ANDROID\x10\x07\x12\x0b\n\x07OS_PALM\x10\x08\x12\x0e\n\nOS_FREEBSD\x10\t\x12\x11\n\rOS_BLACKBERRY\x10\n\x12\x0c\n\x08OS_SONOS\x10\x0b\x12\x0f\n\x0bOS_LOGITECH\x10\x0c\x12\n\n\x06OS_WP7\x10\r\x12\x0c\n\x08OS_ONKYO\x10\x0e\x12\x0e\n\nOS_PHILIPS\x10\x0f\x12\t\n\x05OS_WD\x10\x10\x12\x0c\n\x08OS_VOLVO\x10\x11\x12\x0b\n\x07OS_TIVO\x10\x12\x12\x0b\n\x07OS_AWOX\x10\x13\x12\x0c\n\x08OS_MEEGO\x10\x14\x12\r\n\tOS_QNXNTO\x10\x15\x12\n\n\x06OS_BCO\x10\x16*(\n\x0b\x41\x63\x63ountType\x12\x0b\n\x07Spotify\x10\x00\x12\x0c\n\x08\x46\x61\x63\x65\x62ook\x10\x01\x42\r\n\x0b\x63om.spotify' -) - -_AUTHENTICATIONTYPE = _descriptor.EnumDescriptor( - name='AuthenticationType', - full_name='spotify.AuthenticationType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='AUTHENTICATION_USER_PASS', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='AUTHENTICATION_STORED_FACEBOOK_CREDENTIALS', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='AUTHENTICATION_SPOTIFY_TOKEN', - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='AUTHENTICATION_FACEBOOK_TOKEN', - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2083, - serialized_end=2297, -) -_sym_db.RegisterEnumDescriptor(_AUTHENTICATIONTYPE) - -AuthenticationType = enum_type_wrapper.EnumTypeWrapper(_AUTHENTICATIONTYPE) -_ACCOUNTCREATION = _descriptor.EnumDescriptor( - name='AccountCreation', - full_name='spotify.AccountCreation', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='ACCOUNT_CREATION_ALWAYS_PROMPT', - index=0, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='ACCOUNT_CREATION_ALWAYS_CREATE', - index=1, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2299, - serialized_end=2388, -) -_sym_db.RegisterEnumDescriptor(_ACCOUNTCREATION) - -AccountCreation = enum_type_wrapper.EnumTypeWrapper(_ACCOUNTCREATION) -_CPUFAMILY = _descriptor.EnumDescriptor( - name='CpuFamily', - full_name='spotify.CpuFamily', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='CPU_UNKNOWN', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CPU_X86', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CPU_X86_64', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CPU_PPC', - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CPU_PPC_64', - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CPU_ARM', - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CPU_IA64', - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CPU_SH', - index=7, - number=7, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CPU_MIPS', - index=8, - number=8, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CPU_BLACKFIN', - index=9, - number=9, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2391, - serialized_end=2548, -) -_sym_db.RegisterEnumDescriptor(_CPUFAMILY) - -CpuFamily = enum_type_wrapper.EnumTypeWrapper(_CPUFAMILY) -_BRAND = _descriptor.EnumDescriptor( - name='Brand', - full_name='spotify.Brand', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='BRAND_UNBRANDED', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='BRAND_INQ', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='BRAND_HTC', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='BRAND_NOKIA', - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2550, - serialized_end=2625, -) -_sym_db.RegisterEnumDescriptor(_BRAND) - -Brand = enum_type_wrapper.EnumTypeWrapper(_BRAND) -_OS = _descriptor.EnumDescriptor( - name='Os', - full_name='spotify.Os', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='OS_UNKNOWN', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_WINDOWS', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_OSX', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_IPHONE', - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_S60', - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_LINUX', - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_WINDOWS_CE', - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_ANDROID', - index=7, - number=7, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_PALM', - index=8, - number=8, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_FREEBSD', - index=9, - number=9, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_BLACKBERRY', - index=10, - number=10, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_SONOS', - index=11, - number=11, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_LOGITECH', - index=12, - number=12, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_WP7', - index=13, - number=13, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_ONKYO', - index=14, - number=14, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_PHILIPS', - index=15, - number=15, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_WD', - index=16, - number=16, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_VOLVO', - index=17, - number=17, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_TIVO', - index=18, - number=18, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_AWOX', - index=19, - number=19, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_MEEGO', - index=20, - number=20, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_QNXNTO', - index=21, - number=21, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OS_BCO', - index=22, - number=22, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2628, - serialized_end=2965, -) -_sym_db.RegisterEnumDescriptor(_OS) - -Os = enum_type_wrapper.EnumTypeWrapper(_OS) -_ACCOUNTTYPE = _descriptor.EnumDescriptor( - name='AccountType', - full_name='spotify.AccountType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='Spotify', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='Facebook', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2967, - serialized_end=3007, -) -_sym_db.RegisterEnumDescriptor(_ACCOUNTTYPE) - -AccountType = enum_type_wrapper.EnumTypeWrapper(_ACCOUNTTYPE) -AUTHENTICATION_USER_PASS = 0 -AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS = 1 -AUTHENTICATION_STORED_FACEBOOK_CREDENTIALS = 2 -AUTHENTICATION_SPOTIFY_TOKEN = 3 -AUTHENTICATION_FACEBOOK_TOKEN = 4 -ACCOUNT_CREATION_ALWAYS_PROMPT = 1 -ACCOUNT_CREATION_ALWAYS_CREATE = 3 -CPU_UNKNOWN = 0 -CPU_X86 = 1 -CPU_X86_64 = 2 -CPU_PPC = 3 -CPU_PPC_64 = 4 -CPU_ARM = 5 -CPU_IA64 = 6 -CPU_SH = 7 -CPU_MIPS = 8 -CPU_BLACKFIN = 9 -BRAND_UNBRANDED = 0 -BRAND_INQ = 1 -BRAND_HTC = 2 -BRAND_NOKIA = 3 -OS_UNKNOWN = 0 -OS_WINDOWS = 1 -OS_OSX = 2 -OS_IPHONE = 3 -OS_S60 = 4 -OS_LINUX = 5 -OS_WINDOWS_CE = 6 -OS_ANDROID = 7 -OS_PALM = 8 -OS_FREEBSD = 9 -OS_BLACKBERRY = 10 -OS_SONOS = 11 -OS_LOGITECH = 12 -OS_WP7 = 13 -OS_ONKYO = 14 -OS_PHILIPS = 15 -OS_WD = 16 -OS_VOLVO = 17 -OS_TIVO = 18 -OS_AWOX = 19 -OS_MEEGO = 20 -OS_QNXNTO = 21 -OS_BCO = 22 -Spotify = 0 -Facebook = 1 - -_CLIENTRESPONSEENCRYPTED = _descriptor.Descriptor( - name='ClientResponseEncrypted', - full_name='spotify.ClientResponseEncrypted', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='login_credentials', - full_name='spotify.ClientResponseEncrypted.login_credentials', - index=0, - number=10, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='account_creation', - full_name='spotify.ClientResponseEncrypted.account_creation', - index=1, - number=20, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=1, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fingerprint_response', - full_name='spotify.ClientResponseEncrypted.fingerprint_response', - index=2, - number=30, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='peer_ticket', - full_name='spotify.ClientResponseEncrypted.peer_ticket', - index=3, - number=40, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='system_info', - full_name='spotify.ClientResponseEncrypted.system_info', - index=4, - number=50, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='platform_model', - full_name='spotify.ClientResponseEncrypted.platform_model', - index=5, - number=60, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='version_string', - full_name='spotify.ClientResponseEncrypted.version_string', - index=6, - number=70, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='appkey', - full_name='spotify.ClientResponseEncrypted.appkey', - index=7, - number=80, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='client_info', - full_name='spotify.ClientResponseEncrypted.client_info', - index=8, - number=90, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=34, - serialized_end=452, -) - -_LOGINCREDENTIALS = _descriptor.Descriptor( - name='LoginCredentials', - full_name='spotify.LoginCredentials', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='username', - full_name='spotify.LoginCredentials.username', - index=0, - number=10, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='typ', - full_name='spotify.LoginCredentials.typ', - index=1, - number=20, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='auth_data', - full_name='spotify.LoginCredentials.auth_data', - index=2, - number=30, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=454, - serialized_end=551, -) - -_FINGERPRINTRESPONSEUNION = _descriptor.Descriptor( - name='FingerprintResponseUnion', - full_name='spotify.FingerprintResponseUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='grain', - full_name='spotify.FingerprintResponseUnion.grain', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='hmac_ripemd', - full_name='spotify.FingerprintResponseUnion.hmac_ripemd', - index=1, - number=20, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=554, - serialized_end=691, -) - -_FINGERPRINTGRAINRESPONSE = _descriptor.Descriptor( - name='FingerprintGrainResponse', - full_name='spotify.FingerprintGrainResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='encrypted_key', - full_name='spotify.FingerprintGrainResponse.encrypted_key', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=693, - serialized_end=742, -) - -_FINGERPRINTHMACRIPEMDRESPONSE = _descriptor.Descriptor( - name='FingerprintHmacRipemdResponse', - full_name='spotify.FingerprintHmacRipemdResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='hmac', - full_name='spotify.FingerprintHmacRipemdResponse.hmac', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=744, - serialized_end=789, -) - -_PEERTICKETUNION = _descriptor.Descriptor( - name='PeerTicketUnion', - full_name='spotify.PeerTicketUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='public_key', - full_name='spotify.PeerTicketUnion.public_key', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='old_ticket', - full_name='spotify.PeerTicketUnion.old_ticket', - index=1, - number=20, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=791, - serialized_end=902, -) - -_PEERTICKETPUBLICKEY = _descriptor.Descriptor( - name='PeerTicketPublicKey', - full_name='spotify.PeerTicketPublicKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='public_key', - full_name='spotify.PeerTicketPublicKey.public_key', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=904, - serialized_end=945, -) - -_PEERTICKETOLD = _descriptor.Descriptor( - name='PeerTicketOld', - full_name='spotify.PeerTicketOld', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='peer_ticket', - full_name='spotify.PeerTicketOld.peer_ticket', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='peer_ticket_signature', - full_name='spotify.PeerTicketOld.peer_ticket_signature', - index=1, - number=20, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=947, - serialized_end=1014, -) - -_SYSTEMINFO = _descriptor.Descriptor( - name='SystemInfo', - full_name='spotify.SystemInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='cpu_family', - full_name='spotify.SystemInfo.cpu_family', - index=0, - number=10, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cpu_subtype', - full_name='spotify.SystemInfo.cpu_subtype', - index=1, - number=20, - type=13, - cpp_type=3, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cpu_ext', - full_name='spotify.SystemInfo.cpu_ext', - index=2, - number=30, - type=13, - cpp_type=3, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='brand', - full_name='spotify.SystemInfo.brand', - index=3, - number=40, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='brand_flags', - full_name='spotify.SystemInfo.brand_flags', - index=4, - number=50, - type=13, - cpp_type=3, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='os', - full_name='spotify.SystemInfo.os', - index=5, - number=60, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='os_version', - full_name='spotify.SystemInfo.os_version', - index=6, - number=70, - type=13, - cpp_type=3, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='os_ext', - full_name='spotify.SystemInfo.os_ext', - index=7, - number=80, - type=13, - cpp_type=3, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='system_information_string', - full_name='spotify.SystemInfo.system_information_string', - index=8, - number=90, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='device_id', - full_name='spotify.SystemInfo.device_id', - index=9, - number=100, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1017, - serialized_end=1274, -) - -_LIBSPOTIFYAPPKEY = _descriptor.Descriptor( - name='LibspotifyAppKey', - full_name='spotify.LibspotifyAppKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='version', - full_name='spotify.LibspotifyAppKey.version', - index=0, - number=1, - type=13, - cpp_type=3, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='devkey', - full_name='spotify.LibspotifyAppKey.devkey', - index=1, - number=2, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='signature', - full_name='spotify.LibspotifyAppKey.signature', - index=2, - number=3, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='useragent', - full_name='spotify.LibspotifyAppKey.useragent', - index=3, - number=4, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='callback_hash', - full_name='spotify.LibspotifyAppKey.callback_hash', - index=4, - number=5, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1276, - serialized_end=1388, -) - -_CLIENTINFO = _descriptor.Descriptor( - name='ClientInfo', - full_name='spotify.ClientInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='limited', - full_name='spotify.ClientInfo.limited', - index=0, - number=1, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fb', - full_name='spotify.ClientInfo.fb', - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='language', - full_name='spotify.ClientInfo.language', - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1390, - serialized_end=1478, -) - -_CLIENTINFOFACEBOOK = _descriptor.Descriptor( - name='ClientInfoFacebook', - full_name='spotify.ClientInfoFacebook', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='machine_id', - full_name='spotify.ClientInfoFacebook.machine_id', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1480, - serialized_end=1520, -) - -_APWELCOME = _descriptor.Descriptor( - name='APWelcome', - full_name='spotify.APWelcome', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='canonical_username', - full_name='spotify.APWelcome.canonical_username', - index=0, - number=10, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='account_type_logged_in', - full_name='spotify.APWelcome.account_type_logged_in', - index=1, - number=20, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='credentials_type_logged_in', - full_name='spotify.APWelcome.credentials_type_logged_in', - index=2, - number=25, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='reusable_auth_credentials_type', - full_name='spotify.APWelcome.reusable_auth_credentials_type', - index=3, - number=30, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='reusable_auth_credentials', - full_name='spotify.APWelcome.reusable_auth_credentials', - index=4, - number=40, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='lfs_secret', - full_name='spotify.APWelcome.lfs_secret', - index=5, - number=50, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='account_info', - full_name='spotify.APWelcome.account_info', - index=6, - number=60, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fb', - full_name='spotify.APWelcome.fb', - index=7, - number=70, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1523, - serialized_end=1884, -) - -_ACCOUNTINFO = _descriptor.Descriptor( - name='AccountInfo', - full_name='spotify.AccountInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='spotify', - full_name='spotify.AccountInfo.spotify', - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='facebook', - full_name='spotify.AccountInfo.facebook', - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1886, - serialized_end=1993, -) - -_ACCOUNTINFOSPOTIFY = _descriptor.Descriptor( - name='AccountInfoSpotify', - full_name='spotify.AccountInfoSpotify', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1995, - serialized_end=2015, -) - -_ACCOUNTINFOFACEBOOK = _descriptor.Descriptor( - name='AccountInfoFacebook', - full_name='spotify.AccountInfoFacebook', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='access_token', - full_name='spotify.AccountInfoFacebook.access_token', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='machine_id', - full_name='spotify.AccountInfoFacebook.machine_id', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=2017, - serialized_end=2080, -) - -_CLIENTRESPONSEENCRYPTED.fields_by_name[ - 'login_credentials'].message_type = _LOGINCREDENTIALS -_CLIENTRESPONSEENCRYPTED.fields_by_name[ - 'account_creation'].enum_type = _ACCOUNTCREATION -_CLIENTRESPONSEENCRYPTED.fields_by_name[ - 'fingerprint_response'].message_type = _FINGERPRINTRESPONSEUNION -_CLIENTRESPONSEENCRYPTED.fields_by_name[ - 'peer_ticket'].message_type = _PEERTICKETUNION -_CLIENTRESPONSEENCRYPTED.fields_by_name[ - 'system_info'].message_type = _SYSTEMINFO -_CLIENTRESPONSEENCRYPTED.fields_by_name[ - 'appkey'].message_type = _LIBSPOTIFYAPPKEY -_CLIENTRESPONSEENCRYPTED.fields_by_name[ - 'client_info'].message_type = _CLIENTINFO -_LOGINCREDENTIALS.fields_by_name['typ'].enum_type = _AUTHENTICATIONTYPE -_FINGERPRINTRESPONSEUNION.fields_by_name[ - 'grain'].message_type = _FINGERPRINTGRAINRESPONSE -_FINGERPRINTRESPONSEUNION.fields_by_name[ - 'hmac_ripemd'].message_type = _FINGERPRINTHMACRIPEMDRESPONSE -_PEERTICKETUNION.fields_by_name[ - 'public_key'].message_type = _PEERTICKETPUBLICKEY -_PEERTICKETUNION.fields_by_name['old_ticket'].message_type = _PEERTICKETOLD -_SYSTEMINFO.fields_by_name['cpu_family'].enum_type = _CPUFAMILY -_SYSTEMINFO.fields_by_name['brand'].enum_type = _BRAND -_SYSTEMINFO.fields_by_name['os'].enum_type = _OS -_CLIENTINFO.fields_by_name['fb'].message_type = _CLIENTINFOFACEBOOK -_APWELCOME.fields_by_name['account_type_logged_in'].enum_type = _ACCOUNTTYPE -_APWELCOME.fields_by_name[ - 'credentials_type_logged_in'].enum_type = _ACCOUNTTYPE -_APWELCOME.fields_by_name[ - 'reusable_auth_credentials_type'].enum_type = _AUTHENTICATIONTYPE -_APWELCOME.fields_by_name['account_info'].message_type = _ACCOUNTINFO -_APWELCOME.fields_by_name['fb'].message_type = _ACCOUNTINFOFACEBOOK -_ACCOUNTINFO.fields_by_name['spotify'].message_type = _ACCOUNTINFOSPOTIFY -_ACCOUNTINFO.fields_by_name['facebook'].message_type = _ACCOUNTINFOFACEBOOK -DESCRIPTOR.message_types_by_name[ - 'ClientResponseEncrypted'] = _CLIENTRESPONSEENCRYPTED -DESCRIPTOR.message_types_by_name['LoginCredentials'] = _LOGINCREDENTIALS -DESCRIPTOR.message_types_by_name[ - 'FingerprintResponseUnion'] = _FINGERPRINTRESPONSEUNION -DESCRIPTOR.message_types_by_name[ - 'FingerprintGrainResponse'] = _FINGERPRINTGRAINRESPONSE -DESCRIPTOR.message_types_by_name[ - 'FingerprintHmacRipemdResponse'] = _FINGERPRINTHMACRIPEMDRESPONSE -DESCRIPTOR.message_types_by_name['PeerTicketUnion'] = _PEERTICKETUNION -DESCRIPTOR.message_types_by_name['PeerTicketPublicKey'] = _PEERTICKETPUBLICKEY -DESCRIPTOR.message_types_by_name['PeerTicketOld'] = _PEERTICKETOLD -DESCRIPTOR.message_types_by_name['SystemInfo'] = _SYSTEMINFO -DESCRIPTOR.message_types_by_name['LibspotifyAppKey'] = _LIBSPOTIFYAPPKEY -DESCRIPTOR.message_types_by_name['ClientInfo'] = _CLIENTINFO -DESCRIPTOR.message_types_by_name['ClientInfoFacebook'] = _CLIENTINFOFACEBOOK -DESCRIPTOR.message_types_by_name['APWelcome'] = _APWELCOME -DESCRIPTOR.message_types_by_name['AccountInfo'] = _ACCOUNTINFO -DESCRIPTOR.message_types_by_name['AccountInfoSpotify'] = _ACCOUNTINFOSPOTIFY -DESCRIPTOR.message_types_by_name['AccountInfoFacebook'] = _ACCOUNTINFOFACEBOOK -DESCRIPTOR.enum_types_by_name['AuthenticationType'] = _AUTHENTICATIONTYPE -DESCRIPTOR.enum_types_by_name['AccountCreation'] = _ACCOUNTCREATION -DESCRIPTOR.enum_types_by_name['CpuFamily'] = _CPUFAMILY -DESCRIPTOR.enum_types_by_name['Brand'] = _BRAND -DESCRIPTOR.enum_types_by_name['Os'] = _OS -DESCRIPTOR.enum_types_by_name['AccountType'] = _ACCOUNTTYPE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ClientResponseEncrypted = _reflection.GeneratedProtocolMessageType( - 'ClientResponseEncrypted', - (_message.Message, ), - { - 'DESCRIPTOR': _CLIENTRESPONSEENCRYPTED, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.ClientResponseEncrypted) - }) -_sym_db.RegisterMessage(ClientResponseEncrypted) - -LoginCredentials = _reflection.GeneratedProtocolMessageType( - 'LoginCredentials', - (_message.Message, ), - { - 'DESCRIPTOR': _LOGINCREDENTIALS, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.LoginCredentials) - }) -_sym_db.RegisterMessage(LoginCredentials) - -FingerprintResponseUnion = _reflection.GeneratedProtocolMessageType( - 'FingerprintResponseUnion', - (_message.Message, ), - { - 'DESCRIPTOR': _FINGERPRINTRESPONSEUNION, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.FingerprintResponseUnion) - }) -_sym_db.RegisterMessage(FingerprintResponseUnion) - -FingerprintGrainResponse = _reflection.GeneratedProtocolMessageType( - 'FingerprintGrainResponse', - (_message.Message, ), - { - 'DESCRIPTOR': _FINGERPRINTGRAINRESPONSE, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.FingerprintGrainResponse) - }) -_sym_db.RegisterMessage(FingerprintGrainResponse) - -FingerprintHmacRipemdResponse = _reflection.GeneratedProtocolMessageType( - 'FingerprintHmacRipemdResponse', - (_message.Message, ), - { - 'DESCRIPTOR': _FINGERPRINTHMACRIPEMDRESPONSE, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.FingerprintHmacRipemdResponse) - }) -_sym_db.RegisterMessage(FingerprintHmacRipemdResponse) - -PeerTicketUnion = _reflection.GeneratedProtocolMessageType( - 'PeerTicketUnion', - (_message.Message, ), - { - 'DESCRIPTOR': _PEERTICKETUNION, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.PeerTicketUnion) - }) -_sym_db.RegisterMessage(PeerTicketUnion) - -PeerTicketPublicKey = _reflection.GeneratedProtocolMessageType( - 'PeerTicketPublicKey', - (_message.Message, ), - { - 'DESCRIPTOR': _PEERTICKETPUBLICKEY, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.PeerTicketPublicKey) - }) -_sym_db.RegisterMessage(PeerTicketPublicKey) - -PeerTicketOld = _reflection.GeneratedProtocolMessageType( - 'PeerTicketOld', - (_message.Message, ), - { - 'DESCRIPTOR': _PEERTICKETOLD, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.PeerTicketOld) - }) -_sym_db.RegisterMessage(PeerTicketOld) - -SystemInfo = _reflection.GeneratedProtocolMessageType( - 'SystemInfo', - (_message.Message, ), - { - 'DESCRIPTOR': _SYSTEMINFO, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.SystemInfo) - }) -_sym_db.RegisterMessage(SystemInfo) - -LibspotifyAppKey = _reflection.GeneratedProtocolMessageType( - 'LibspotifyAppKey', - (_message.Message, ), - { - 'DESCRIPTOR': _LIBSPOTIFYAPPKEY, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.LibspotifyAppKey) - }) -_sym_db.RegisterMessage(LibspotifyAppKey) - -ClientInfo = _reflection.GeneratedProtocolMessageType( - 'ClientInfo', - (_message.Message, ), - { - 'DESCRIPTOR': _CLIENTINFO, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.ClientInfo) - }) -_sym_db.RegisterMessage(ClientInfo) - -ClientInfoFacebook = _reflection.GeneratedProtocolMessageType( - 'ClientInfoFacebook', - (_message.Message, ), - { - 'DESCRIPTOR': _CLIENTINFOFACEBOOK, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.ClientInfoFacebook) - }) -_sym_db.RegisterMessage(ClientInfoFacebook) - -APWelcome = _reflection.GeneratedProtocolMessageType( - 'APWelcome', - (_message.Message, ), - { - 'DESCRIPTOR': _APWELCOME, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.APWelcome) - }) -_sym_db.RegisterMessage(APWelcome) - -AccountInfo = _reflection.GeneratedProtocolMessageType( - 'AccountInfo', - (_message.Message, ), - { - 'DESCRIPTOR': _ACCOUNTINFO, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.AccountInfo) - }) -_sym_db.RegisterMessage(AccountInfo) -AccountInfoSpotify = _reflection.GeneratedProtocolMessageType( - 'AccountInfoSpotify', - (_message.Message, ), - { - 'DESCRIPTOR': _ACCOUNTINFOSPOTIFY, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.AccountInfoSpotify) - }) -_sym_db.RegisterMessage(AccountInfoSpotify) -AccountInfoFacebook = _reflection.GeneratedProtocolMessageType( - 'AccountInfoFacebook', - (_message.Message, ), - { - 'DESCRIPTOR': _ACCOUNTINFOFACEBOOK, - '__module__': 'authentication_pb2' - # @@protoc_insertion_point(class_scope:spotify.AccountInfoFacebook) - }) -_sym_db.RegisterMessage(AccountInfoFacebook) -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x61uthentication.proto\x12\x07spotify\"\xa2\x03\n\x17\x43lientResponseEncrypted\x12\x34\n\x11login_credentials\x18\n \x02(\x0b\x32\x19.spotify.LoginCredentials\x12\x32\n\x10\x61\x63\x63ount_creation\x18\x14 \x01(\x0e\x32\x18.spotify.AccountCreation\x12?\n\x14\x66ingerprint_response\x18\x1e \x01(\x0b\x32!.spotify.FingerprintResponseUnion\x12-\n\x0bpeer_ticket\x18( \x01(\x0b\x32\x18.spotify.PeerTicketUnion\x12(\n\x0bsystem_info\x18\x32 \x02(\x0b\x32\x13.spotify.SystemInfo\x12\x16\n\x0eplatform_model\x18< \x01(\t\x12\x16\n\x0eversion_string\x18\x46 \x01(\t\x12)\n\x06\x61ppkey\x18P \x01(\x0b\x32\x19.spotify.LibspotifyAppKey\x12(\n\x0b\x63lient_info\x18Z \x01(\x0b\x32\x13.spotify.ClientInfo\"a\n\x10LoginCredentials\x12\x10\n\x08username\x18\n \x01(\t\x12(\n\x03typ\x18\x14 \x02(\x0e\x32\x1b.spotify.AuthenticationType\x12\x11\n\tauth_data\x18\x1e \x01(\x0c\"\x89\x01\n\x18\x46ingerprintResponseUnion\x12\x30\n\x05grain\x18\n \x01(\x0b\x32!.spotify.FingerprintGrainResponse\x12;\n\x0bhmac_ripemd\x18\x14 \x01(\x0b\x32&.spotify.FingerprintHmacRipemdResponse\"1\n\x18\x46ingerprintGrainResponse\x12\x15\n\rencrypted_key\x18\n \x02(\x0c\"-\n\x1d\x46ingerprintHmacRipemdResponse\x12\x0c\n\x04hmac\x18\n \x02(\x0c\"o\n\x0fPeerTicketUnion\x12\x30\n\npublic_key\x18\n \x01(\x0b\x32\x1c.spotify.PeerTicketPublicKey\x12*\n\nold_ticket\x18\x14 \x01(\x0b\x32\x16.spotify.PeerTicketOld\")\n\x13PeerTicketPublicKey\x12\x12\n\npublic_key\x18\n \x02(\x0c\"C\n\rPeerTicketOld\x12\x13\n\x0bpeer_ticket\x18\n \x02(\x0c\x12\x1d\n\x15peer_ticket_signature\x18\x14 \x02(\x0c\"\x81\x02\n\nSystemInfo\x12&\n\ncpu_family\x18\n \x02(\x0e\x32\x12.spotify.CpuFamily\x12\x13\n\x0b\x63pu_subtype\x18\x14 \x01(\r\x12\x0f\n\x07\x63pu_ext\x18\x1e \x01(\r\x12\x1d\n\x05\x62rand\x18( \x01(\x0e\x32\x0e.spotify.Brand\x12\x13\n\x0b\x62rand_flags\x18\x32 \x01(\r\x12\x17\n\x02os\x18< \x02(\x0e\x32\x0b.spotify.Os\x12\x12\n\nos_version\x18\x46 \x01(\r\x12\x0e\n\x06os_ext\x18P \x01(\r\x12!\n\x19system_information_string\x18Z \x01(\t\x12\x11\n\tdevice_id\x18\x64 \x01(\t\"p\n\x10LibspotifyAppKey\x12\x0f\n\x07version\x18\x01 \x02(\r\x12\x0e\n\x06\x64\x65vkey\x18\x02 \x02(\x0c\x12\x11\n\tsignature\x18\x03 \x02(\x0c\x12\x11\n\tuseragent\x18\x04 \x02(\t\x12\x15\n\rcallback_hash\x18\x05 \x02(\x0c\"X\n\nClientInfo\x12\x0f\n\x07limited\x18\x01 \x01(\x08\x12\'\n\x02\x66\x62\x18\x02 \x01(\x0b\x32\x1b.spotify.ClientInfoFacebook\x12\x10\n\x08language\x18\x03 \x01(\t\"(\n\x12\x43lientInfoFacebook\x12\x12\n\nmachine_id\x18\x01 \x01(\t\"\xe9\x02\n\tAPWelcome\x12\x1a\n\x12\x63\x61nonical_username\x18\n \x02(\t\x12\x34\n\x16\x61\x63\x63ount_type_logged_in\x18\x14 \x02(\x0e\x32\x14.spotify.AccountType\x12\x38\n\x1a\x63redentials_type_logged_in\x18\x19 \x02(\x0e\x32\x14.spotify.AccountType\x12\x43\n\x1ereusable_auth_credentials_type\x18\x1e \x02(\x0e\x32\x1b.spotify.AuthenticationType\x12!\n\x19reusable_auth_credentials\x18( \x02(\x0c\x12\x12\n\nlfs_secret\x18\x32 \x01(\x0c\x12*\n\x0c\x61\x63\x63ount_info\x18< \x01(\x0b\x32\x14.spotify.AccountInfo\x12(\n\x02\x66\x62\x18\x46 \x01(\x0b\x32\x1c.spotify.AccountInfoFacebook\"k\n\x0b\x41\x63\x63ountInfo\x12,\n\x07spotify\x18\x01 \x01(\x0b\x32\x1b.spotify.AccountInfoSpotify\x12.\n\x08\x66\x61\x63\x65\x62ook\x18\x02 \x01(\x0b\x32\x1c.spotify.AccountInfoFacebook\"\x14\n\x12\x41\x63\x63ountInfoSpotify\"?\n\x13\x41\x63\x63ountInfoFacebook\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\t\x12\x12\n\nmachine_id\x18\x02 \x01(\t*\xd6\x01\n\x12\x41uthenticationType\x12\x1c\n\x18\x41UTHENTICATION_USER_PASS\x10\x00\x12-\n)AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS\x10\x01\x12.\n*AUTHENTICATION_STORED_FACEBOOK_CREDENTIALS\x10\x02\x12 \n\x1c\x41UTHENTICATION_SPOTIFY_TOKEN\x10\x03\x12!\n\x1d\x41UTHENTICATION_FACEBOOK_TOKEN\x10\x04*Y\n\x0f\x41\x63\x63ountCreation\x12\"\n\x1e\x41\x43\x43OUNT_CREATION_ALWAYS_PROMPT\x10\x01\x12\"\n\x1e\x41\x43\x43OUNT_CREATION_ALWAYS_CREATE\x10\x03*\x9d\x01\n\tCpuFamily\x12\x0f\n\x0b\x43PU_UNKNOWN\x10\x00\x12\x0b\n\x07\x43PU_X86\x10\x01\x12\x0e\n\nCPU_X86_64\x10\x02\x12\x0b\n\x07\x43PU_PPC\x10\x03\x12\x0e\n\nCPU_PPC_64\x10\x04\x12\x0b\n\x07\x43PU_ARM\x10\x05\x12\x0c\n\x08\x43PU_IA64\x10\x06\x12\n\n\x06\x43PU_SH\x10\x07\x12\x0c\n\x08\x43PU_MIPS\x10\x08\x12\x10\n\x0c\x43PU_BLACKFIN\x10\t*K\n\x05\x42rand\x12\x13\n\x0f\x42RAND_UNBRANDED\x10\x00\x12\r\n\tBRAND_INQ\x10\x01\x12\r\n\tBRAND_HTC\x10\x02\x12\x0f\n\x0b\x42RAND_NOKIA\x10\x03*\xd1\x02\n\x02Os\x12\x0e\n\nOS_UNKNOWN\x10\x00\x12\x0e\n\nOS_WINDOWS\x10\x01\x12\n\n\x06OS_OSX\x10\x02\x12\r\n\tOS_IPHONE\x10\x03\x12\n\n\x06OS_S60\x10\x04\x12\x0c\n\x08OS_LINUX\x10\x05\x12\x11\n\rOS_WINDOWS_CE\x10\x06\x12\x0e\n\nOS_ANDROID\x10\x07\x12\x0b\n\x07OS_PALM\x10\x08\x12\x0e\n\nOS_FREEBSD\x10\t\x12\x11\n\rOS_BLACKBERRY\x10\n\x12\x0c\n\x08OS_SONOS\x10\x0b\x12\x0f\n\x0bOS_LOGITECH\x10\x0c\x12\n\n\x06OS_WP7\x10\r\x12\x0c\n\x08OS_ONKYO\x10\x0e\x12\x0e\n\nOS_PHILIPS\x10\x0f\x12\t\n\x05OS_WD\x10\x10\x12\x0c\n\x08OS_VOLVO\x10\x11\x12\x0b\n\x07OS_TIVO\x10\x12\x12\x0b\n\x07OS_AWOX\x10\x13\x12\x0c\n\x08OS_MEEGO\x10\x14\x12\r\n\tOS_QNXNTO\x10\x15\x12\n\n\x06OS_BCO\x10\x16*(\n\x0b\x41\x63\x63ountType\x12\x0b\n\x07Spotify\x10\x00\x12\x0c\n\x08\x46\x61\x63\x65\x62ook\x10\x01\x42\r\n\x0b\x63om.spotify') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'authentication_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\013com.spotify' + _globals['_AUTHENTICATIONTYPE']._serialized_start=2083 + _globals['_AUTHENTICATIONTYPE']._serialized_end=2297 + _globals['_ACCOUNTCREATION']._serialized_start=2299 + _globals['_ACCOUNTCREATION']._serialized_end=2388 + _globals['_CPUFAMILY']._serialized_start=2391 + _globals['_CPUFAMILY']._serialized_end=2548 + _globals['_BRAND']._serialized_start=2550 + _globals['_BRAND']._serialized_end=2625 + _globals['_OS']._serialized_start=2628 + _globals['_OS']._serialized_end=2965 + _globals['_ACCOUNTTYPE']._serialized_start=2967 + _globals['_ACCOUNTTYPE']._serialized_end=3007 + _globals['_CLIENTRESPONSEENCRYPTED']._serialized_start=34 + _globals['_CLIENTRESPONSEENCRYPTED']._serialized_end=452 + _globals['_LOGINCREDENTIALS']._serialized_start=454 + _globals['_LOGINCREDENTIALS']._serialized_end=551 + _globals['_FINGERPRINTRESPONSEUNION']._serialized_start=554 + _globals['_FINGERPRINTRESPONSEUNION']._serialized_end=691 + _globals['_FINGERPRINTGRAINRESPONSE']._serialized_start=693 + _globals['_FINGERPRINTGRAINRESPONSE']._serialized_end=742 + _globals['_FINGERPRINTHMACRIPEMDRESPONSE']._serialized_start=744 + _globals['_FINGERPRINTHMACRIPEMDRESPONSE']._serialized_end=789 + _globals['_PEERTICKETUNION']._serialized_start=791 + _globals['_PEERTICKETUNION']._serialized_end=902 + _globals['_PEERTICKETPUBLICKEY']._serialized_start=904 + _globals['_PEERTICKETPUBLICKEY']._serialized_end=945 + _globals['_PEERTICKETOLD']._serialized_start=947 + _globals['_PEERTICKETOLD']._serialized_end=1014 + _globals['_SYSTEMINFO']._serialized_start=1017 + _globals['_SYSTEMINFO']._serialized_end=1274 + _globals['_LIBSPOTIFYAPPKEY']._serialized_start=1276 + _globals['_LIBSPOTIFYAPPKEY']._serialized_end=1388 + _globals['_CLIENTINFO']._serialized_start=1390 + _globals['_CLIENTINFO']._serialized_end=1478 + _globals['_CLIENTINFOFACEBOOK']._serialized_start=1480 + _globals['_CLIENTINFOFACEBOOK']._serialized_end=1520 + _globals['_APWELCOME']._serialized_start=1523 + _globals['_APWELCOME']._serialized_end=1884 + _globals['_ACCOUNTINFO']._serialized_start=1886 + _globals['_ACCOUNTINFO']._serialized_end=1993 + _globals['_ACCOUNTINFOSPOTIFY']._serialized_start=1995 + _globals['_ACCOUNTINFOSPOTIFY']._serialized_end=2015 + _globals['_ACCOUNTINFOFACEBOOK']._serialized_start=2017 + _globals['_ACCOUNTINFOFACEBOOK']._serialized_end=2080 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/CanvazMeta_pb2.py b/librespot/proto/CanvazMeta_pb2.py index 3b769fc1..ef8e7d7a 100644 --- a/librespot/proto/CanvazMeta_pb2.py +++ b/librespot/proto/CanvazMeta_pb2.py @@ -1,91 +1,37 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: canvaz-meta.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'canvaz-meta.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="canvaz-meta.proto", - package="com.spotify.canvaz", - syntax="proto3", - serialized_options=b"\n\022com.spotify.canvazH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b"\n\x11\x63\x61nvaz-meta.proto\x12\x12\x63om.spotify.canvaz*R\n\x04Type\x12\t\n\x05IMAGE\x10\x00\x12\t\n\x05VIDEO\x10\x01\x12\x11\n\rVIDEO_LOOPING\x10\x02\x12\x18\n\x14VIDEO_LOOPING_RANDOM\x10\x03\x12\x07\n\x03GIF\x10\x04\x42\x16\n\x12\x63om.spotify.canvazH\x02\x62\x06proto3", -) -_TYPE = _descriptor.EnumDescriptor( - name="Type", - full_name="com.spotify.canvaz.Type", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="IMAGE", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="VIDEO", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="VIDEO_LOOPING", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="VIDEO_LOOPING_RANDOM", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="GIF", - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=41, - serialized_end=123, -) -_sym_db.RegisterEnumDescriptor(_TYPE) -Type = enum_type_wrapper.EnumTypeWrapper(_TYPE) -IMAGE = 0 -VIDEO = 1 -VIDEO_LOOPING = 2 -VIDEO_LOOPING_RANDOM = 3 -GIF = 4 -DESCRIPTOR.enum_types_by_name["Type"] = _TYPE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x63\x61nvaz-meta.proto\x12\x12\x63om.spotify.canvaz*R\n\x04Type\x12\t\n\x05IMAGE\x10\x00\x12\t\n\x05VIDEO\x10\x01\x12\x11\n\rVIDEO_LOOPING\x10\x02\x12\x18\n\x14VIDEO_LOOPING_RANDOM\x10\x03\x12\x07\n\x03GIF\x10\x04\x42\x16\n\x12\x63om.spotify.canvazH\x02\x62\x06proto3') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'canvaz_meta_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\022com.spotify.canvazH\002' + _globals['_TYPE']._serialized_start=41 + _globals['_TYPE']._serialized_end=123 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Canvaz_pb2.py b/librespot/proto/Canvaz_pb2.py index 07f31b4e..855db0e6 100644 --- a/librespot/proto/Canvaz_pb2.py +++ b/librespot/proto/Canvaz_pb2.py @@ -1,564 +1,46 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: canvaz.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -import CanvazMeta_pb2 as canvaz__meta__pb2 from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'canvaz.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="canvaz.proto", - package="com.spotify.canvazcache", - syntax="proto3", - serialized_options=b"\n\022com.spotify.canvazH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x0c\x63\x61nvaz.proto\x12\x17\x63om.spotify.canvazcache\x1a\x11\x63\x61nvaz-meta.proto"3\n\x06\x41rtist\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06\x61vatar\x18\x03 \x01(\t"\xe1\x02\n\x14\x45ntityCanvazResponse\x12\x46\n\x08\x63\x61nvases\x18\x01 \x03(\x0b\x32\x34.com.spotify.canvazcache.EntityCanvazResponse.Canvaz\x12\x16\n\x0ettl_in_seconds\x18\x02 \x01(\x03\x1a\xe8\x01\n\x06\x43\x61nvaz\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0f\n\x07\x66ile_id\x18\x03 \x01(\t\x12&\n\x04type\x18\x04 \x01(\x0e\x32\x18.com.spotify.canvaz.Type\x12\x12\n\nentity_uri\x18\x05 \x01(\t\x12/\n\x06\x61rtist\x18\x06 \x01(\x0b\x32\x1f.com.spotify.canvazcache.Artist\x12\x10\n\x08\x65xplicit\x18\x07 \x01(\x08\x12\x13\n\x0buploaded_by\x18\x08 \x01(\t\x12\x0c\n\x04\x65tag\x18\t \x01(\t\x12\x12\n\ncanvas_uri\x18\x0b \x01(\t"\x88\x01\n\x13\x45ntityCanvazRequest\x12\x45\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x33.com.spotify.canvazcache.EntityCanvazRequest.Entity\x1a*\n\x06\x45ntity\x12\x12\n\nentity_uri\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\tB\x16\n\x12\x63om.spotify.canvazH\x02\x62\x06proto3', - dependencies=[ - canvaz__meta__pb2.DESCRIPTOR, - ], -) -_ARTIST = _descriptor.Descriptor( - name="Artist", - full_name="com.spotify.canvazcache.Artist", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="uri", - full_name="com.spotify.canvazcache.Artist.uri", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="name", - full_name="com.spotify.canvazcache.Artist.name", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="avatar", - full_name="com.spotify.canvazcache.Artist.avatar", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=60, - serialized_end=111, -) +from librespot.proto import CanvazMeta_pb2 as canvaz__meta__pb2 -_ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor( - name="Canvaz", - full_name="com.spotify.canvazcache.EntityCanvazResponse.Canvaz", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="id", - full_name="com.spotify.canvazcache.EntityCanvazResponse.Canvaz.id", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="url", - full_name="com.spotify.canvazcache.EntityCanvazResponse.Canvaz.url", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="file_id", - full_name= - "com.spotify.canvazcache.EntityCanvazResponse.Canvaz.file_id", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="type", - full_name= - "com.spotify.canvazcache.EntityCanvazResponse.Canvaz.type", - index=3, - number=4, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="entity_uri", - full_name= - "com.spotify.canvazcache.EntityCanvazResponse.Canvaz.entity_uri", - index=4, - number=5, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="artist", - full_name= - "com.spotify.canvazcache.EntityCanvazResponse.Canvaz.artist", - index=5, - number=6, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="explicit", - full_name= - "com.spotify.canvazcache.EntityCanvazResponse.Canvaz.explicit", - index=6, - number=7, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="uploaded_by", - full_name= - "com.spotify.canvazcache.EntityCanvazResponse.Canvaz.uploaded_by", - index=7, - number=8, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="etag", - full_name= - "com.spotify.canvazcache.EntityCanvazResponse.Canvaz.etag", - index=8, - number=9, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="canvas_uri", - full_name= - "com.spotify.canvazcache.EntityCanvazResponse.Canvaz.canvas_uri", - index=9, - number=11, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=235, - serialized_end=467, -) - -_ENTITYCANVAZRESPONSE = _descriptor.Descriptor( - name="EntityCanvazResponse", - full_name="com.spotify.canvazcache.EntityCanvazResponse", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="canvases", - full_name="com.spotify.canvazcache.EntityCanvazResponse.canvases", - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="ttl_in_seconds", - full_name= - "com.spotify.canvazcache.EntityCanvazResponse.ttl_in_seconds", - index=1, - number=2, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[ - _ENTITYCANVAZRESPONSE_CANVAZ, - ], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=114, - serialized_end=467, -) - -_ENTITYCANVAZREQUEST_ENTITY = _descriptor.Descriptor( - name="Entity", - full_name="com.spotify.canvazcache.EntityCanvazRequest.Entity", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="entity_uri", - full_name= - "com.spotify.canvazcache.EntityCanvazRequest.Entity.entity_uri", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="etag", - full_name="com.spotify.canvazcache.EntityCanvazRequest.Entity.etag", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=564, - serialized_end=606, -) -_ENTITYCANVAZREQUEST = _descriptor.Descriptor( - name="EntityCanvazRequest", - full_name="com.spotify.canvazcache.EntityCanvazRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="entities", - full_name="com.spotify.canvazcache.EntityCanvazRequest.entities", - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[ - _ENTITYCANVAZREQUEST_ENTITY, - ], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=470, - serialized_end=606, -) - -_ENTITYCANVAZRESPONSE_CANVAZ.fields_by_name[ - "type"].enum_type = canvaz__meta__pb2._TYPE -_ENTITYCANVAZRESPONSE_CANVAZ.fields_by_name["artist"].message_type = _ARTIST -_ENTITYCANVAZRESPONSE_CANVAZ.containing_type = _ENTITYCANVAZRESPONSE -_ENTITYCANVAZRESPONSE.fields_by_name[ - "canvases"].message_type = _ENTITYCANVAZRESPONSE_CANVAZ -_ENTITYCANVAZREQUEST_ENTITY.containing_type = _ENTITYCANVAZREQUEST -_ENTITYCANVAZREQUEST.fields_by_name[ - "entities"].message_type = _ENTITYCANVAZREQUEST_ENTITY -DESCRIPTOR.message_types_by_name["Artist"] = _ARTIST -DESCRIPTOR.message_types_by_name[ - "EntityCanvazResponse"] = _ENTITYCANVAZRESPONSE -DESCRIPTOR.message_types_by_name["EntityCanvazRequest"] = _ENTITYCANVAZREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Artist = _reflection.GeneratedProtocolMessageType( - "Artist", - (_message.Message, ), - { - "DESCRIPTOR": _ARTIST, - "__module__": "canvaz_pb2" - # @@protoc_insertion_point(class_scope:com.spotify.canvazcache.Artist) - }, -) -_sym_db.RegisterMessage(Artist) - -EntityCanvazResponse = _reflection.GeneratedProtocolMessageType( - "EntityCanvazResponse", - (_message.Message, ), - { - "Canvaz": - _reflection.GeneratedProtocolMessageType( - "Canvaz", - (_message.Message, ), - { - "DESCRIPTOR": _ENTITYCANVAZRESPONSE_CANVAZ, - "__module__": "canvaz_pb2" - # @@protoc_insertion_point(class_scope:com.spotify.canvazcache.EntityCanvazResponse.Canvaz) - }, - ), - "DESCRIPTOR": - _ENTITYCANVAZRESPONSE, - "__module__": - "canvaz_pb2" - # @@protoc_insertion_point(class_scope:com.spotify.canvazcache.EntityCanvazResponse) - }, -) -_sym_db.RegisterMessage(EntityCanvazResponse) -_sym_db.RegisterMessage(EntityCanvazResponse.Canvaz) - -EntityCanvazRequest = _reflection.GeneratedProtocolMessageType( - "EntityCanvazRequest", - (_message.Message, ), - { - "Entity": - _reflection.GeneratedProtocolMessageType( - "Entity", - (_message.Message, ), - { - "DESCRIPTOR": _ENTITYCANVAZREQUEST_ENTITY, - "__module__": "canvaz_pb2" - # @@protoc_insertion_point(class_scope:com.spotify.canvazcache.EntityCanvazRequest.Entity) - }, - ), - "DESCRIPTOR": - _ENTITYCANVAZREQUEST, - "__module__": - "canvaz_pb2" - # @@protoc_insertion_point(class_scope:com.spotify.canvazcache.EntityCanvazRequest) - }, -) -_sym_db.RegisterMessage(EntityCanvazRequest) -_sym_db.RegisterMessage(EntityCanvazRequest.Entity) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x63\x61nvaz.proto\x12\x17\x63om.spotify.canvazcache\x1a\x11\x63\x61nvaz-meta.proto\"3\n\x06\x41rtist\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06\x61vatar\x18\x03 \x01(\t\"\xe1\x02\n\x14\x45ntityCanvazResponse\x12\x46\n\x08\x63\x61nvases\x18\x01 \x03(\x0b\x32\x34.com.spotify.canvazcache.EntityCanvazResponse.Canvaz\x12\x16\n\x0ettl_in_seconds\x18\x02 \x01(\x03\x1a\xe8\x01\n\x06\x43\x61nvaz\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0f\n\x07\x66ile_id\x18\x03 \x01(\t\x12&\n\x04type\x18\x04 \x01(\x0e\x32\x18.com.spotify.canvaz.Type\x12\x12\n\nentity_uri\x18\x05 \x01(\t\x12/\n\x06\x61rtist\x18\x06 \x01(\x0b\x32\x1f.com.spotify.canvazcache.Artist\x12\x10\n\x08\x65xplicit\x18\x07 \x01(\x08\x12\x13\n\x0buploaded_by\x18\x08 \x01(\t\x12\x0c\n\x04\x65tag\x18\t \x01(\t\x12\x12\n\ncanvas_uri\x18\x0b \x01(\t\"\x88\x01\n\x13\x45ntityCanvazRequest\x12\x45\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x33.com.spotify.canvazcache.EntityCanvazRequest.Entity\x1a*\n\x06\x45ntity\x12\x12\n\nentity_uri\x18\x01 \x01(\t\x12\x0c\n\x04\x65tag\x18\x02 \x01(\tB\x16\n\x12\x63om.spotify.canvazH\x02\x62\x06proto3') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'canvaz_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\022com.spotify.canvazH\002' + _globals['_ARTIST']._serialized_start=60 + _globals['_ARTIST']._serialized_end=111 + _globals['_ENTITYCANVAZRESPONSE']._serialized_start=114 + _globals['_ENTITYCANVAZRESPONSE']._serialized_end=467 + _globals['_ENTITYCANVAZRESPONSE_CANVAZ']._serialized_start=235 + _globals['_ENTITYCANVAZRESPONSE_CANVAZ']._serialized_end=467 + _globals['_ENTITYCANVAZREQUEST']._serialized_start=470 + _globals['_ENTITYCANVAZREQUEST']._serialized_end=606 + _globals['_ENTITYCANVAZREQUEST_ENTITY']._serialized_start=564 + _globals['_ENTITYCANVAZREQUEST_ENTITY']._serialized_end=606 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/ClientToken_pb2.py b/librespot/proto/ClientToken_pb2.py index 2b7e954d..ba0a712d 100644 --- a/librespot/proto/ClientToken_pb2.py +++ b/librespot/proto/ClientToken_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: client_token.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'client_token.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -16,48 +27,48 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x63lient_token.proto\x12\x1bspotify.clienttoken.http.v0\x1a\x12\x63onnectivity.proto\"\x84\x02\n\x12\x43lientTokenRequest\x12I\n\x0crequest_type\x18\x01 \x01(\x0e\x32\x33.spotify.clienttoken.http.v0.ClientTokenRequestType\x12\x45\n\x0b\x63lient_data\x18\x02 \x01(\x0b\x32..spotify.clienttoken.http.v0.ClientDataRequestH\x00\x12Q\n\x11\x63hallenge_answers\x18\x03 \x01(\x0b\x32\x34.spotify.clienttoken.http.v0.ChallengeAnswersRequestH\x00\x42\t\n\x07request\"\x99\x01\n\x11\x43lientDataRequest\x12\x16\n\x0e\x63lient_version\x18\x01 \x01(\t\x12\x11\n\tclient_id\x18\x02 \x01(\t\x12Q\n\x15\x63onnectivity_sdk_data\x18\x03 \x01(\x0b\x32\x30.spotify.clienttoken.data.v0.ConnectivitySdkDataH\x00\x42\x06\n\x04\x64\x61ta\"g\n\x17\x43hallengeAnswersRequest\x12\r\n\x05state\x18\x01 \x01(\t\x12=\n\x07\x61nswers\x18\x02 \x03(\x0b\x32,.spotify.clienttoken.http.v0.ChallengeAnswer\"\x81\x02\n\x13\x43lientTokenResponse\x12K\n\rresponse_type\x18\x01 \x01(\x0e\x32\x34.spotify.clienttoken.http.v0.ClientTokenResponseType\x12J\n\rgranted_token\x18\x02 \x01(\x0b\x32\x31.spotify.clienttoken.http.v0.GrantedTokenResponseH\x00\x12\x45\n\nchallenges\x18\x03 \x01(\x0b\x32/.spotify.clienttoken.http.v0.ChallengesResponseH\x00\x42\n\n\x08response\"\x1d\n\x0bTokenDomain\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\"\x9e\x01\n\x14GrantedTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x1d\n\x15\x65xpires_after_seconds\x18\x02 \x01(\x05\x12\x1d\n\x15refresh_after_seconds\x18\x03 \x01(\x05\x12\x39\n\x07\x64omains\x18\x04 \x03(\x0b\x32(.spotify.clienttoken.http.v0.TokenDomain\"_\n\x12\x43hallengesResponse\x12\r\n\x05state\x18\x01 \x01(\t\x12:\n\nchallenges\x18\x02 \x03(\x0b\x32&.spotify.clienttoken.http.v0.Challenge\"&\n\x16\x43lientSecretParameters\x12\x0c\n\x04salt\x18\x01 \x01(\t\"7\n\x14\x45valuateJSParameters\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x11\n\tlibraries\x18\x02 \x03(\t\"4\n\x12HashCashParameters\x12\x0e\n\x06length\x18\x01 \x01(\x05\x12\x0e\n\x06prefix\x18\x02 \x01(\t\"\xda\x02\n\tChallenge\x12\x38\n\x04type\x18\x01 \x01(\x0e\x32*.spotify.clienttoken.http.v0.ChallengeType\x12W\n\x18\x63lient_secret_parameters\x18\x02 \x01(\x0b\x32\x33.spotify.clienttoken.http.v0.ClientSecretParametersH\x00\x12S\n\x16\x65valuate_js_parameters\x18\x03 \x01(\x0b\x32\x31.spotify.clienttoken.http.v0.EvaluateJSParametersH\x00\x12W\n\x1c\x65valuate_hashcash_parameters\x18\x04 \x01(\x0b\x32/.spotify.clienttoken.http.v0.HashCashParametersH\x00\x42\x0c\n\nparameters\"&\n\x16\x43lientSecretHMACAnswer\x12\x0c\n\x04hmac\x18\x01 \x01(\t\"\"\n\x10\x45valuateJSAnswer\x12\x0e\n\x06result\x18\x01 \x01(\t\" \n\x0eHashCashAnswer\x12\x0e\n\x06suffix\x18\x01 \x01(\t\"\xb4\x02\n\x0f\x43hallengeAnswer\x12\x41\n\rChallengeType\x18\x01 \x01(\x0e\x32*.spotify.clienttoken.http.v0.ChallengeType\x12L\n\rclient_secret\x18\x02 \x01(\x0b\x32\x33.spotify.clienttoken.http.v0.ClientSecretHMACAnswerH\x00\x12\x44\n\x0b\x65valuate_js\x18\x03 \x01(\x0b\x32-.spotify.clienttoken.http.v0.EvaluateJSAnswerH\x00\x12@\n\thash_cash\x18\x04 \x01(\x0b\x32+.spotify.clienttoken.http.v0.HashCashAnswerH\x00\x42\x08\n\x06\x61nswer\"(\n\x15\x43lientTokenBadRequest\x12\x0f\n\x07message\x18\x01 \x01(\t*u\n\x16\x43lientTokenRequestType\x12\x13\n\x0fREQUEST_UNKNOWN\x10\x00\x12\x1f\n\x1bREQUEST_CLIENT_DATA_REQUEST\x10\x01\x12%\n!REQUEST_CHALLENGE_ANSWERS_REQUEST\x10\x02*v\n\x17\x43lientTokenResponseType\x12\x14\n\x10RESPONSE_UNKNOWN\x10\x00\x12#\n\x1fRESPONSE_GRANTED_TOKEN_RESPONSE\x10\x01\x12 \n\x1cRESPONSE_CHALLENGES_RESPONSE\x10\x02*|\n\rChallengeType\x12\x15\n\x11\x43HALLENGE_UNKNOWN\x10\x00\x12 \n\x1c\x43HALLENGE_CLIENT_SECRET_HMAC\x10\x01\x12\x19\n\x15\x43HALLENGE_EVALUATE_JS\x10\x02\x12\x17\n\x13\x43HALLENGE_HASH_CASH\x10\x03\x42#\n\x1f\x63om.spotify.clienttoken.http.v0H\x02\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'client_token_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\037com.spotify.clienttoken.http.v0H\002' - _CLIENTTOKENREQUESTTYPE._serialized_start=2107 - _CLIENTTOKENREQUESTTYPE._serialized_end=2224 - _CLIENTTOKENRESPONSETYPE._serialized_start=2226 - _CLIENTTOKENRESPONSETYPE._serialized_end=2344 - _CHALLENGETYPE._serialized_start=2346 - _CHALLENGETYPE._serialized_end=2470 - _CLIENTTOKENREQUEST._serialized_start=72 - _CLIENTTOKENREQUEST._serialized_end=332 - _CLIENTDATAREQUEST._serialized_start=335 - _CLIENTDATAREQUEST._serialized_end=488 - _CHALLENGEANSWERSREQUEST._serialized_start=490 - _CHALLENGEANSWERSREQUEST._serialized_end=593 - _CLIENTTOKENRESPONSE._serialized_start=596 - _CLIENTTOKENRESPONSE._serialized_end=853 - _TOKENDOMAIN._serialized_start=855 - _TOKENDOMAIN._serialized_end=884 - _GRANTEDTOKENRESPONSE._serialized_start=887 - _GRANTEDTOKENRESPONSE._serialized_end=1045 - _CHALLENGESRESPONSE._serialized_start=1047 - _CHALLENGESRESPONSE._serialized_end=1142 - _CLIENTSECRETPARAMETERS._serialized_start=1144 - _CLIENTSECRETPARAMETERS._serialized_end=1182 - _EVALUATEJSPARAMETERS._serialized_start=1184 - _EVALUATEJSPARAMETERS._serialized_end=1239 - _HASHCASHPARAMETERS._serialized_start=1241 - _HASHCASHPARAMETERS._serialized_end=1293 - _CHALLENGE._serialized_start=1296 - _CHALLENGE._serialized_end=1642 - _CLIENTSECRETHMACANSWER._serialized_start=1644 - _CLIENTSECRETHMACANSWER._serialized_end=1682 - _EVALUATEJSANSWER._serialized_start=1684 - _EVALUATEJSANSWER._serialized_end=1718 - _HASHCASHANSWER._serialized_start=1720 - _HASHCASHANSWER._serialized_end=1752 - _CHALLENGEANSWER._serialized_start=1755 - _CHALLENGEANSWER._serialized_end=2063 - _CLIENTTOKENBADREQUEST._serialized_start=2065 - _CLIENTTOKENBADREQUEST._serialized_end=2105 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'client_token_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\037com.spotify.clienttoken.http.v0H\002' + _globals['_CLIENTTOKENREQUESTTYPE']._serialized_start=2107 + _globals['_CLIENTTOKENREQUESTTYPE']._serialized_end=2224 + _globals['_CLIENTTOKENRESPONSETYPE']._serialized_start=2226 + _globals['_CLIENTTOKENRESPONSETYPE']._serialized_end=2344 + _globals['_CHALLENGETYPE']._serialized_start=2346 + _globals['_CHALLENGETYPE']._serialized_end=2470 + _globals['_CLIENTTOKENREQUEST']._serialized_start=72 + _globals['_CLIENTTOKENREQUEST']._serialized_end=332 + _globals['_CLIENTDATAREQUEST']._serialized_start=335 + _globals['_CLIENTDATAREQUEST']._serialized_end=488 + _globals['_CHALLENGEANSWERSREQUEST']._serialized_start=490 + _globals['_CHALLENGEANSWERSREQUEST']._serialized_end=593 + _globals['_CLIENTTOKENRESPONSE']._serialized_start=596 + _globals['_CLIENTTOKENRESPONSE']._serialized_end=853 + _globals['_TOKENDOMAIN']._serialized_start=855 + _globals['_TOKENDOMAIN']._serialized_end=884 + _globals['_GRANTEDTOKENRESPONSE']._serialized_start=887 + _globals['_GRANTEDTOKENRESPONSE']._serialized_end=1045 + _globals['_CHALLENGESRESPONSE']._serialized_start=1047 + _globals['_CHALLENGESRESPONSE']._serialized_end=1142 + _globals['_CLIENTSECRETPARAMETERS']._serialized_start=1144 + _globals['_CLIENTSECRETPARAMETERS']._serialized_end=1182 + _globals['_EVALUATEJSPARAMETERS']._serialized_start=1184 + _globals['_EVALUATEJSPARAMETERS']._serialized_end=1239 + _globals['_HASHCASHPARAMETERS']._serialized_start=1241 + _globals['_HASHCASHPARAMETERS']._serialized_end=1293 + _globals['_CHALLENGE']._serialized_start=1296 + _globals['_CHALLENGE']._serialized_end=1642 + _globals['_CLIENTSECRETHMACANSWER']._serialized_start=1644 + _globals['_CLIENTSECRETHMACANSWER']._serialized_end=1682 + _globals['_EVALUATEJSANSWER']._serialized_start=1684 + _globals['_EVALUATEJSANSWER']._serialized_end=1718 + _globals['_HASHCASHANSWER']._serialized_start=1720 + _globals['_HASHCASHANSWER']._serialized_end=1752 + _globals['_CHALLENGEANSWER']._serialized_start=1755 + _globals['_CHALLENGEANSWER']._serialized_end=2063 + _globals['_CLIENTTOKENBADREQUEST']._serialized_start=2065 + _globals['_CLIENTTOKENBADREQUEST']._serialized_end=2105 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Connect_pb2.py b/librespot/proto/Connect_pb2.py index f356a1c5..f188a820 100644 --- a/librespot/proto/Connect_pb2.py +++ b/librespot/proto/Connect_pb2.py @@ -1,2340 +1,84 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: connect.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'connect.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -import librespot.proto.Player_pb2 as player__pb2 - -DESCRIPTOR = _descriptor.FileDescriptor( - name='connect.proto', - package='connectstate', - syntax='proto3', - serialized_options=b'\n\030com.spotify.connectstateH\002', - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\rconnect.proto\x12\x0c\x63onnectstate\x1a\x0cplayer.proto\"\x9f\x01\n\rClusterUpdate\x12&\n\x07\x63luster\x18\x01 \x01(\x0b\x32\x15.connectstate.Cluster\x12\x38\n\rupdate_reason\x18\x02 \x01(\x0e\x32!.connectstate.ClusterUpdateReason\x12\x0e\n\x06\x61\x63k_id\x18\x03 \x01(\t\x12\x1c\n\x14\x64\x65vices_that_changed\x18\x04 \x03(\t\"\xa6\x01\n\x06\x44\x65vice\x12-\n\x0b\x64\x65vice_info\x18\x01 \x01(\x0b\x32\x18.connectstate.DeviceInfo\x12/\n\x0cplayer_state\x18\x02 \x01(\x0b\x32\x19.connectstate.PlayerState\x12<\n\x13private_device_info\x18\x03 \x01(\x0b\x32\x1f.connectstate.PrivateDeviceInfo\"\xfa\x01\n\x07\x43luster\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63tive_device_id\x18\x02 \x01(\t\x12/\n\x0cplayer_state\x18\x03 \x01(\x0b\x32\x19.connectstate.PlayerState\x12\x31\n\x06\x64\x65vice\x18\x04 \x03(\x0b\x32!.connectstate.Cluster.DeviceEntry\x12\x15\n\rtransfer_data\x18\x05 \x01(\x0c\x1aG\n\x0b\x44\x65viceEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.connectstate.DeviceInfo:\x02\x38\x01\"\xa1\x03\n\x0fPutStateRequest\x12\x14\n\x0c\x63\x61llback_url\x18\x01 \x01(\t\x12$\n\x06\x64\x65vice\x18\x02 \x01(\x0b\x32\x14.connectstate.Device\x12-\n\x0bmember_type\x18\x03 \x01(\x0e\x32\x18.connectstate.MemberType\x12\x11\n\tis_active\x18\x04 \x01(\x08\x12\x36\n\x10put_state_reason\x18\x05 \x01(\x0e\x32\x1c.connectstate.PutStateReason\x12\x12\n\nmessage_id\x18\x06 \x01(\r\x12&\n\x1elast_command_sent_by_device_id\x18\x07 \x01(\t\x12\x1f\n\x17last_command_message_id\x18\x08 \x01(\r\x12\x1a\n\x12started_playing_at\x18\t \x01(\x04\x12\x1f\n\x17has_been_playing_for_ms\x18\x0b \x01(\x04\x12\x1d\n\x15\x63lient_side_timestamp\x18\x0c \x01(\x04\x12\x1f\n\x17only_write_player_state\x18\r \x01(\x08\"%\n\x11PrivateDeviceInfo\x12\x10\n\x08platform\x18\x01 \x01(\t\"(\n\x10SubscribeRequest\x12\x14\n\x0c\x63\x61llback_url\x18\x01 \x01(\t\"\xc5\x03\n\nDeviceInfo\x12\x10\n\x08\x63\x61n_play\x18\x01 \x01(\x08\x12\x0e\n\x06volume\x18\x02 \x01(\r\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x30\n\x0c\x63\x61pabilities\x18\x04 \x01(\x0b\x32\x1a.connectstate.Capabilities\x12\x1f\n\x17\x64\x65vice_software_version\x18\x06 \x01(\t\x12-\n\x0b\x64\x65vice_type\x18\x07 \x01(\x0e\x32\x18.connectstate.DeviceType\x12\x15\n\rspirc_version\x18\t \x01(\t\x12\x11\n\tdevice_id\x18\n \x01(\t\x12\x1a\n\x12is_private_session\x18\x0b \x01(\x08\x12\x19\n\x11is_social_connect\x18\x0c \x01(\x08\x12\x11\n\tclient_id\x18\r \x01(\t\x12\r\n\x05\x62rand\x18\x0e \x01(\t\x12\r\n\x05model\x18\x0f \x01(\t\x12?\n\x0cmetadata_map\x18\x10 \x03(\x0b\x32).connectstate.DeviceInfo.MetadataMapEntry\x1a\x32\n\x10MetadataMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xcc\x04\n\x0c\x43\x61pabilities\x12\x15\n\rcan_be_player\x18\x02 \x01(\x08\x12\x19\n\x11restrict_to_local\x18\x03 \x01(\x08\x12\x1a\n\x12gaia_eq_connect_id\x18\x05 \x01(\x08\x12\x17\n\x0fsupports_logout\x18\x06 \x01(\x08\x12\x15\n\ris_observable\x18\x07 \x01(\x08\x12\x14\n\x0cvolume_steps\x18\x08 \x01(\x05\x12\x17\n\x0fsupported_types\x18\t \x03(\t\x12\x14\n\x0c\x63ommand_acks\x18\n \x01(\x08\x12\x17\n\x0fsupports_rename\x18\x0b \x01(\x08\x12\x0e\n\x06hidden\x18\x0c \x01(\x08\x12\x16\n\x0e\x64isable_volume\x18\r \x01(\x08\x12\x18\n\x10\x63onnect_disabled\x18\x0e \x01(\x08\x12\x1c\n\x14supports_playlist_v2\x18\x0f \x01(\x08\x12\x17\n\x0fis_controllable\x18\x10 \x01(\x08\x12\"\n\x1asupports_external_episodes\x18\x11 \x01(\x08\x12%\n\x1dsupports_set_backend_metadata\x18\x12 \x01(\x08\x12!\n\x19supports_transfer_command\x18\x13 \x01(\x08\x12 \n\x18supports_command_request\x18\x14 \x01(\x08\x12\x18\n\x10is_voice_enabled\x18\x15 \x01(\x08\x12\x1f\n\x17needs_full_player_state\x18\x16 \x01(\x08\x12\x1c\n\x14supports_gzip_pushes\x18\x17 \x01(\x08\"+\n\x15\x43onnectCommandOptions\x12\x12\n\nmessage_id\x18\x01 \x01(\x05\"M\n\rLogoutCommand\x12<\n\x0f\x63ommand_options\x18\x01 \x01(\x0b\x32#.connectstate.ConnectCommandOptions\"`\n\x10SetVolumeCommand\x12\x0e\n\x06volume\x18\x01 \x01(\x05\x12<\n\x0f\x63ommand_options\x18\x02 \x01(\x0b\x32#.connectstate.ConnectCommandOptions\"`\n\rRenameCommand\x12\x11\n\trename_to\x18\x01 \x01(\t\x12<\n\x0f\x63ommand_options\x18\x02 \x01(\x0b\x32#.connectstate.ConnectCommandOptions\"\x95\x01\n\x19SetBackendMetadataCommand\x12G\n\x08metadata\x18\x01 \x03(\x0b\x32\x35.connectstate.SetBackendMetadataCommand.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01*\xd4\x01\n\x11SendCommandResult\x12\x1f\n\x1bUNKNOWN_SEND_COMMAND_RESULT\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\x14\n\x10\x44\x45VICE_NOT_FOUND\x10\x02\x12\x18\n\x14\x43ONTEXT_PLAYER_ERROR\x10\x03\x12\x16\n\x12\x44\x45VICE_DISAPPEARED\x10\x04\x12\x12\n\x0eUPSTREAM_ERROR\x10\x05\x12#\n\x1f\x44\x45VICE_DOES_NOT_SUPPORT_COMMAND\x10\x06\x12\x10\n\x0cRATE_LIMITED\x10\x07*\xb7\x01\n\x0ePutStateReason\x12\x1c\n\x18UNKNOWN_PUT_STATE_REASON\x10\x00\x12\x0f\n\x0bSPIRC_HELLO\x10\x01\x12\x10\n\x0cSPIRC_NOTIFY\x10\x02\x12\x0e\n\nNEW_DEVICE\x10\x03\x12\x18\n\x14PLAYER_STATE_CHANGED\x10\x04\x12\x12\n\x0eVOLUME_CHANGED\x10\x05\x12\x11\n\rPICKER_OPENED\x10\x06\x12\x13\n\x0f\x42\x45\x43\x41ME_INACTIVE\x10\x07*;\n\nMemberType\x12\x0c\n\x08SPIRC_V2\x10\x00\x12\x0c\n\x08SPIRC_V3\x10\x01\x12\x11\n\rCONNECT_STATE\x10\x02*\x84\x01\n\x13\x43lusterUpdateReason\x12!\n\x1dUNKNOWN_CLUSTER_UPDATE_REASON\x10\x00\x12\x17\n\x13\x44\x45VICES_DISAPPEARED\x10\x01\x12\x18\n\x14\x44\x45VICE_STATE_CHANGED\x10\x02\x12\x17\n\x13NEW_DEVICE_APPEARED\x10\x03*\xa0\x02\n\nDeviceType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43OMPUTER\x10\x01\x12\n\n\x06TABLET\x10\x02\x12\x0e\n\nSMARTPHONE\x10\x03\x12\x0b\n\x07SPEAKER\x10\x04\x12\x06\n\x02TV\x10\x05\x12\x07\n\x03\x41VR\x10\x06\x12\x07\n\x03STB\x10\x07\x12\x10\n\x0c\x41UDIO_DONGLE\x10\x08\x12\x10\n\x0cGAME_CONSOLE\x10\t\x12\x0e\n\nCAST_VIDEO\x10\n\x12\x0e\n\nCAST_AUDIO\x10\x0b\x12\x0e\n\nAUTOMOBILE\x10\x0c\x12\x0e\n\nSMARTWATCH\x10\r\x12\x0e\n\nCHROMEBOOK\x10\x0e\x12\x13\n\x0fUNKNOWN_SPOTIFY\x10\x64\x12\r\n\tCAR_THING\x10\x65\x12\x0c\n\x08OBSERVER\x10\x66\x12\x0e\n\nHOME_THING\x10gB\x1c\n\x18\x63om.spotify.connectstateH\x02\x62\x06proto3', - dependencies=[ - player__pb2.DESCRIPTOR, - ]) - -_SENDCOMMANDRESULT = _descriptor.EnumDescriptor( - name='SendCommandResult', - full_name='connectstate.SendCommandResult', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN_SEND_COMMAND_RESULT', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='SUCCESS', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='DEVICE_NOT_FOUND', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CONTEXT_PLAYER_ERROR', - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='DEVICE_DISAPPEARED', - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='UPSTREAM_ERROR', - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='DEVICE_DOES_NOT_SUPPORT_COMMAND', - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='RATE_LIMITED', - index=7, - number=7, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2650, - serialized_end=2862, -) -_sym_db.RegisterEnumDescriptor(_SENDCOMMANDRESULT) - -SendCommandResult = enum_type_wrapper.EnumTypeWrapper(_SENDCOMMANDRESULT) -_PUTSTATEREASON = _descriptor.EnumDescriptor( - name='PutStateReason', - full_name='connectstate.PutStateReason', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN_PUT_STATE_REASON', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='SPIRC_HELLO', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='SPIRC_NOTIFY', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='NEW_DEVICE', - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLAYER_STATE_CHANGED', - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='VOLUME_CHANGED', - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PICKER_OPENED', - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='BECAME_INACTIVE', - index=7, - number=7, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2865, - serialized_end=3048, -) -_sym_db.RegisterEnumDescriptor(_PUTSTATEREASON) - -PutStateReason = enum_type_wrapper.EnumTypeWrapper(_PUTSTATEREASON) -_MEMBERTYPE = _descriptor.EnumDescriptor( - name='MemberType', - full_name='connectstate.MemberType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='SPIRC_V2', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='SPIRC_V3', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CONNECT_STATE', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=3050, - serialized_end=3109, -) -_sym_db.RegisterEnumDescriptor(_MEMBERTYPE) - -MemberType = enum_type_wrapper.EnumTypeWrapper(_MEMBERTYPE) -_CLUSTERUPDATEREASON = _descriptor.EnumDescriptor( - name='ClusterUpdateReason', - full_name='connectstate.ClusterUpdateReason', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN_CLUSTER_UPDATE_REASON', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='DEVICES_DISAPPEARED', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='DEVICE_STATE_CHANGED', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='NEW_DEVICE_APPEARED', - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=3112, - serialized_end=3244, -) -_sym_db.RegisterEnumDescriptor(_CLUSTERUPDATEREASON) - -ClusterUpdateReason = enum_type_wrapper.EnumTypeWrapper(_CLUSTERUPDATEREASON) -_DEVICETYPE = _descriptor.EnumDescriptor( - name='DeviceType', - full_name='connectstate.DeviceType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='COMPUTER', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='TABLET', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='SMARTPHONE', - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='SPEAKER', - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='TV', - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='AVR', - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='STB', - index=7, - number=7, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='AUDIO_DONGLE', - index=8, - number=8, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='GAME_CONSOLE', - index=9, - number=9, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CAST_VIDEO', - index=10, - number=10, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CAST_AUDIO', - index=11, - number=11, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='AUTOMOBILE', - index=12, - number=12, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='SMARTWATCH', - index=13, - number=13, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CHROMEBOOK', - index=14, - number=14, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='UNKNOWN_SPOTIFY', - index=15, - number=100, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CAR_THING', - index=16, - number=101, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OBSERVER', - index=17, - number=102, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='HOME_THING', - index=18, - number=103, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=3247, - serialized_end=3535, -) -_sym_db.RegisterEnumDescriptor(_DEVICETYPE) - -DeviceType = enum_type_wrapper.EnumTypeWrapper(_DEVICETYPE) -UNKNOWN_SEND_COMMAND_RESULT = 0 -SUCCESS = 1 -DEVICE_NOT_FOUND = 2 -CONTEXT_PLAYER_ERROR = 3 -DEVICE_DISAPPEARED = 4 -UPSTREAM_ERROR = 5 -DEVICE_DOES_NOT_SUPPORT_COMMAND = 6 -RATE_LIMITED = 7 -UNKNOWN_PUT_STATE_REASON = 0 -SPIRC_HELLO = 1 -SPIRC_NOTIFY = 2 -NEW_DEVICE = 3 -PLAYER_STATE_CHANGED = 4 -VOLUME_CHANGED = 5 -PICKER_OPENED = 6 -BECAME_INACTIVE = 7 -SPIRC_V2 = 0 -SPIRC_V3 = 1 -CONNECT_STATE = 2 -UNKNOWN_CLUSTER_UPDATE_REASON = 0 -DEVICES_DISAPPEARED = 1 -DEVICE_STATE_CHANGED = 2 -NEW_DEVICE_APPEARED = 3 -UNKNOWN = 0 -COMPUTER = 1 -TABLET = 2 -SMARTPHONE = 3 -SPEAKER = 4 -TV = 5 -AVR = 6 -STB = 7 -AUDIO_DONGLE = 8 -GAME_CONSOLE = 9 -CAST_VIDEO = 10 -CAST_AUDIO = 11 -AUTOMOBILE = 12 -SMARTWATCH = 13 -CHROMEBOOK = 14 -UNKNOWN_SPOTIFY = 100 -CAR_THING = 101 -OBSERVER = 102 -HOME_THING = 103 - -_CLUSTERUPDATE = _descriptor.Descriptor( - name='ClusterUpdate', - full_name='connectstate.ClusterUpdate', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='cluster', - full_name='connectstate.ClusterUpdate.cluster', - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='update_reason', - full_name='connectstate.ClusterUpdate.update_reason', - index=1, - number=2, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='ack_id', - full_name='connectstate.ClusterUpdate.ack_id', - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='devices_that_changed', - full_name='connectstate.ClusterUpdate.devices_that_changed', - index=3, - number=4, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=46, - serialized_end=205, -) - -_DEVICE = _descriptor.Descriptor( - name='Device', - full_name='connectstate.Device', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='device_info', - full_name='connectstate.Device.device_info', - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='player_state', - full_name='connectstate.Device.player_state', - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='private_device_info', - full_name='connectstate.Device.private_device_info', - index=2, - number=3, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=208, - serialized_end=374, -) - -_CLUSTER_DEVICEENTRY = _descriptor.Descriptor( - name='DeviceEntry', - full_name='connectstate.Cluster.DeviceEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', - full_name='connectstate.Cluster.DeviceEntry.key', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', - full_name='connectstate.Cluster.DeviceEntry.value', - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=556, - serialized_end=627, -) - -_CLUSTER = _descriptor.Descriptor( - name='Cluster', - full_name='connectstate.Cluster', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp', - full_name='connectstate.Cluster.timestamp', - index=0, - number=1, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='active_device_id', - full_name='connectstate.Cluster.active_device_id', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='player_state', - full_name='connectstate.Cluster.player_state', - index=2, - number=3, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='device', - full_name='connectstate.Cluster.device', - index=3, - number=4, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='transfer_data', - full_name='connectstate.Cluster.transfer_data', - index=4, - number=5, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[ - _CLUSTER_DEVICEENTRY, - ], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=377, - serialized_end=627, -) - -_PUTSTATEREQUEST = _descriptor.Descriptor( - name='PutStateRequest', - full_name='connectstate.PutStateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='callback_url', - full_name='connectstate.PutStateRequest.callback_url', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='device', - full_name='connectstate.PutStateRequest.device', - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='member_type', - full_name='connectstate.PutStateRequest.member_type', - index=2, - number=3, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_active', - full_name='connectstate.PutStateRequest.is_active', - index=3, - number=4, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='put_state_reason', - full_name='connectstate.PutStateRequest.put_state_reason', - index=4, - number=5, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='message_id', - full_name='connectstate.PutStateRequest.message_id', - index=5, - number=6, - type=13, - cpp_type=3, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='last_command_sent_by_device_id', - full_name= - 'connectstate.PutStateRequest.last_command_sent_by_device_id', - index=6, - number=7, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='last_command_message_id', - full_name='connectstate.PutStateRequest.last_command_message_id', - index=7, - number=8, - type=13, - cpp_type=3, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='started_playing_at', - full_name='connectstate.PutStateRequest.started_playing_at', - index=8, - number=9, - type=4, - cpp_type=4, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='has_been_playing_for_ms', - full_name='connectstate.PutStateRequest.has_been_playing_for_ms', - index=9, - number=11, - type=4, - cpp_type=4, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='client_side_timestamp', - full_name='connectstate.PutStateRequest.client_side_timestamp', - index=10, - number=12, - type=4, - cpp_type=4, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='only_write_player_state', - full_name='connectstate.PutStateRequest.only_write_player_state', - index=11, - number=13, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=630, - serialized_end=1047, -) - -_PRIVATEDEVICEINFO = _descriptor.Descriptor( - name='PrivateDeviceInfo', - full_name='connectstate.PrivateDeviceInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='platform', - full_name='connectstate.PrivateDeviceInfo.platform', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1049, - serialized_end=1086, -) - -_SUBSCRIBEREQUEST = _descriptor.Descriptor( - name='SubscribeRequest', - full_name='connectstate.SubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='callback_url', - full_name='connectstate.SubscribeRequest.callback_url', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1088, - serialized_end=1128, -) - -_DEVICEINFO_METADATAMAPENTRY = _descriptor.Descriptor( - name='MetadataMapEntry', - full_name='connectstate.DeviceInfo.MetadataMapEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', - full_name='connectstate.DeviceInfo.MetadataMapEntry.key', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', - full_name='connectstate.DeviceInfo.MetadataMapEntry.value', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1534, - serialized_end=1584, -) - -_DEVICEINFO = _descriptor.Descriptor( - name='DeviceInfo', - full_name='connectstate.DeviceInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='can_play', - full_name='connectstate.DeviceInfo.can_play', - index=0, - number=1, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='volume', - full_name='connectstate.DeviceInfo.volume', - index=1, - number=2, - type=13, - cpp_type=3, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='name', - full_name='connectstate.DeviceInfo.name', - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='capabilities', - full_name='connectstate.DeviceInfo.capabilities', - index=3, - number=4, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='device_software_version', - full_name='connectstate.DeviceInfo.device_software_version', - index=4, - number=6, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='device_type', - full_name='connectstate.DeviceInfo.device_type', - index=5, - number=7, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='spirc_version', - full_name='connectstate.DeviceInfo.spirc_version', - index=6, - number=9, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='device_id', - full_name='connectstate.DeviceInfo.device_id', - index=7, - number=10, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_private_session', - full_name='connectstate.DeviceInfo.is_private_session', - index=8, - number=11, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_social_connect', - full_name='connectstate.DeviceInfo.is_social_connect', - index=9, - number=12, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='client_id', - full_name='connectstate.DeviceInfo.client_id', - index=10, - number=13, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='brand', - full_name='connectstate.DeviceInfo.brand', - index=11, - number=14, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='model', - full_name='connectstate.DeviceInfo.model', - index=12, - number=15, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='metadata_map', - full_name='connectstate.DeviceInfo.metadata_map', - index=13, - number=16, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[ - _DEVICEINFO_METADATAMAPENTRY, - ], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1131, - serialized_end=1584, -) - -_CAPABILITIES = _descriptor.Descriptor( - name='Capabilities', - full_name='connectstate.Capabilities', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='can_be_player', - full_name='connectstate.Capabilities.can_be_player', - index=0, - number=2, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='restrict_to_local', - full_name='connectstate.Capabilities.restrict_to_local', - index=1, - number=3, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='gaia_eq_connect_id', - full_name='connectstate.Capabilities.gaia_eq_connect_id', - index=2, - number=5, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='supports_logout', - full_name='connectstate.Capabilities.supports_logout', - index=3, - number=6, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_observable', - full_name='connectstate.Capabilities.is_observable', - index=4, - number=7, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='volume_steps', - full_name='connectstate.Capabilities.volume_steps', - index=5, - number=8, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='supported_types', - full_name='connectstate.Capabilities.supported_types', - index=6, - number=9, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='command_acks', - full_name='connectstate.Capabilities.command_acks', - index=7, - number=10, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='supports_rename', - full_name='connectstate.Capabilities.supports_rename', - index=8, - number=11, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='hidden', - full_name='connectstate.Capabilities.hidden', - index=9, - number=12, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disable_volume', - full_name='connectstate.Capabilities.disable_volume', - index=10, - number=13, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='connect_disabled', - full_name='connectstate.Capabilities.connect_disabled', - index=11, - number=14, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='supports_playlist_v2', - full_name='connectstate.Capabilities.supports_playlist_v2', - index=12, - number=15, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_controllable', - full_name='connectstate.Capabilities.is_controllable', - index=13, - number=16, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='supports_external_episodes', - full_name='connectstate.Capabilities.supports_external_episodes', - index=14, - number=17, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='supports_set_backend_metadata', - full_name='connectstate.Capabilities.supports_set_backend_metadata', - index=15, - number=18, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='supports_transfer_command', - full_name='connectstate.Capabilities.supports_transfer_command', - index=16, - number=19, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='supports_command_request', - full_name='connectstate.Capabilities.supports_command_request', - index=17, - number=20, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_voice_enabled', - full_name='connectstate.Capabilities.is_voice_enabled', - index=18, - number=21, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='needs_full_player_state', - full_name='connectstate.Capabilities.needs_full_player_state', - index=19, - number=22, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='supports_gzip_pushes', - full_name='connectstate.Capabilities.supports_gzip_pushes', - index=20, - number=23, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1587, - serialized_end=2175, -) - -_CONNECTCOMMANDOPTIONS = _descriptor.Descriptor( - name='ConnectCommandOptions', - full_name='connectstate.ConnectCommandOptions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='message_id', - full_name='connectstate.ConnectCommandOptions.message_id', - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=2177, - serialized_end=2220, -) - -_LOGOUTCOMMAND = _descriptor.Descriptor( - name='LogoutCommand', - full_name='connectstate.LogoutCommand', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='command_options', - full_name='connectstate.LogoutCommand.command_options', - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=2222, - serialized_end=2299, -) - -_SETVOLUMECOMMAND = _descriptor.Descriptor( - name='SetVolumeCommand', - full_name='connectstate.SetVolumeCommand', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='volume', - full_name='connectstate.SetVolumeCommand.volume', - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='command_options', - full_name='connectstate.SetVolumeCommand.command_options', - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=2301, - serialized_end=2397, -) - -_RENAMECOMMAND = _descriptor.Descriptor( - name='RenameCommand', - full_name='connectstate.RenameCommand', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='rename_to', - full_name='connectstate.RenameCommand.rename_to', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='command_options', - full_name='connectstate.RenameCommand.command_options', - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=2399, - serialized_end=2495, -) - -_SETBACKENDMETADATACOMMAND_METADATAENTRY = _descriptor.Descriptor( - name='MetadataEntry', - full_name='connectstate.SetBackendMetadataCommand.MetadataEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', - full_name= - 'connectstate.SetBackendMetadataCommand.MetadataEntry.key', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', - full_name= - 'connectstate.SetBackendMetadataCommand.MetadataEntry.value', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=2600, - serialized_end=2647, -) - -_SETBACKENDMETADATACOMMAND = _descriptor.Descriptor( - name='SetBackendMetadataCommand', - full_name='connectstate.SetBackendMetadataCommand', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='metadata', - full_name='connectstate.SetBackendMetadataCommand.metadata', - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[ - _SETBACKENDMETADATACOMMAND_METADATAENTRY, - ], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=2498, - serialized_end=2647, -) - -_CLUSTERUPDATE.fields_by_name['cluster'].message_type = _CLUSTER -_CLUSTERUPDATE.fields_by_name['update_reason'].enum_type = _CLUSTERUPDATEREASON -_DEVICE.fields_by_name['device_info'].message_type = _DEVICEINFO -_DEVICE.fields_by_name['player_state'].message_type = player__pb2._PLAYERSTATE -_DEVICE.fields_by_name['private_device_info'].message_type = _PRIVATEDEVICEINFO -_CLUSTER_DEVICEENTRY.fields_by_name['value'].message_type = _DEVICEINFO -_CLUSTER_DEVICEENTRY.containing_type = _CLUSTER -_CLUSTER.fields_by_name['player_state'].message_type = player__pb2._PLAYERSTATE -_CLUSTER.fields_by_name['device'].message_type = _CLUSTER_DEVICEENTRY -_PUTSTATEREQUEST.fields_by_name['device'].message_type = _DEVICE -_PUTSTATEREQUEST.fields_by_name['member_type'].enum_type = _MEMBERTYPE -_PUTSTATEREQUEST.fields_by_name['put_state_reason'].enum_type = _PUTSTATEREASON -_DEVICEINFO_METADATAMAPENTRY.containing_type = _DEVICEINFO -_DEVICEINFO.fields_by_name['capabilities'].message_type = _CAPABILITIES -_DEVICEINFO.fields_by_name['device_type'].enum_type = _DEVICETYPE -_DEVICEINFO.fields_by_name[ - 'metadata_map'].message_type = _DEVICEINFO_METADATAMAPENTRY -_LOGOUTCOMMAND.fields_by_name[ - 'command_options'].message_type = _CONNECTCOMMANDOPTIONS -_SETVOLUMECOMMAND.fields_by_name[ - 'command_options'].message_type = _CONNECTCOMMANDOPTIONS -_RENAMECOMMAND.fields_by_name[ - 'command_options'].message_type = _CONNECTCOMMANDOPTIONS -_SETBACKENDMETADATACOMMAND_METADATAENTRY.containing_type = _SETBACKENDMETADATACOMMAND -_SETBACKENDMETADATACOMMAND.fields_by_name[ - 'metadata'].message_type = _SETBACKENDMETADATACOMMAND_METADATAENTRY -DESCRIPTOR.message_types_by_name['ClusterUpdate'] = _CLUSTERUPDATE -DESCRIPTOR.message_types_by_name['Device'] = _DEVICE -DESCRIPTOR.message_types_by_name['Cluster'] = _CLUSTER -DESCRIPTOR.message_types_by_name['PutStateRequest'] = _PUTSTATEREQUEST -DESCRIPTOR.message_types_by_name['PrivateDeviceInfo'] = _PRIVATEDEVICEINFO -DESCRIPTOR.message_types_by_name['SubscribeRequest'] = _SUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['DeviceInfo'] = _DEVICEINFO -DESCRIPTOR.message_types_by_name['Capabilities'] = _CAPABILITIES -DESCRIPTOR.message_types_by_name[ - 'ConnectCommandOptions'] = _CONNECTCOMMANDOPTIONS -DESCRIPTOR.message_types_by_name['LogoutCommand'] = _LOGOUTCOMMAND -DESCRIPTOR.message_types_by_name['SetVolumeCommand'] = _SETVOLUMECOMMAND -DESCRIPTOR.message_types_by_name['RenameCommand'] = _RENAMECOMMAND -DESCRIPTOR.message_types_by_name[ - 'SetBackendMetadataCommand'] = _SETBACKENDMETADATACOMMAND -DESCRIPTOR.enum_types_by_name['SendCommandResult'] = _SENDCOMMANDRESULT -DESCRIPTOR.enum_types_by_name['PutStateReason'] = _PUTSTATEREASON -DESCRIPTOR.enum_types_by_name['MemberType'] = _MEMBERTYPE -DESCRIPTOR.enum_types_by_name['ClusterUpdateReason'] = _CLUSTERUPDATEREASON -DESCRIPTOR.enum_types_by_name['DeviceType'] = _DEVICETYPE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ClusterUpdate = _reflection.GeneratedProtocolMessageType( - 'ClusterUpdate', - (_message.Message, ), - { - 'DESCRIPTOR': _CLUSTERUPDATE, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.ClusterUpdate) - }) -_sym_db.RegisterMessage(ClusterUpdate) - -Device = _reflection.GeneratedProtocolMessageType( - 'Device', - (_message.Message, ), - { - 'DESCRIPTOR': _DEVICE, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.Device) - }) -_sym_db.RegisterMessage(Device) - -Cluster = _reflection.GeneratedProtocolMessageType( - 'Cluster', - (_message.Message, ), - { - 'DeviceEntry': - _reflection.GeneratedProtocolMessageType( - 'DeviceEntry', - (_message.Message, ), - { - 'DESCRIPTOR': _CLUSTER_DEVICEENTRY, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.Cluster.DeviceEntry) - }), - 'DESCRIPTOR': - _CLUSTER, - '__module__': - 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.Cluster) - }) -_sym_db.RegisterMessage(Cluster) -_sym_db.RegisterMessage(Cluster.DeviceEntry) - -PutStateRequest = _reflection.GeneratedProtocolMessageType( - 'PutStateRequest', - (_message.Message, ), - { - 'DESCRIPTOR': _PUTSTATEREQUEST, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.PutStateRequest) - }) -_sym_db.RegisterMessage(PutStateRequest) - -PrivateDeviceInfo = _reflection.GeneratedProtocolMessageType( - 'PrivateDeviceInfo', - (_message.Message, ), - { - 'DESCRIPTOR': _PRIVATEDEVICEINFO, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.PrivateDeviceInfo) - }) -_sym_db.RegisterMessage(PrivateDeviceInfo) - -SubscribeRequest = _reflection.GeneratedProtocolMessageType( - 'SubscribeRequest', - (_message.Message, ), - { - 'DESCRIPTOR': _SUBSCRIBEREQUEST, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.SubscribeRequest) - }) -_sym_db.RegisterMessage(SubscribeRequest) - -DeviceInfo = _reflection.GeneratedProtocolMessageType( - 'DeviceInfo', - (_message.Message, ), - { - 'MetadataMapEntry': - _reflection.GeneratedProtocolMessageType( - 'MetadataMapEntry', - (_message.Message, ), - { - 'DESCRIPTOR': _DEVICEINFO_METADATAMAPENTRY, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.DeviceInfo.MetadataMapEntry) - }), - 'DESCRIPTOR': - _DEVICEINFO, - '__module__': - 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.DeviceInfo) - }) -_sym_db.RegisterMessage(DeviceInfo) -_sym_db.RegisterMessage(DeviceInfo.MetadataMapEntry) - -Capabilities = _reflection.GeneratedProtocolMessageType( - 'Capabilities', - (_message.Message, ), - { - 'DESCRIPTOR': _CAPABILITIES, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.Capabilities) - }) -_sym_db.RegisterMessage(Capabilities) - -ConnectCommandOptions = _reflection.GeneratedProtocolMessageType( - 'ConnectCommandOptions', - (_message.Message, ), - { - 'DESCRIPTOR': _CONNECTCOMMANDOPTIONS, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.ConnectCommandOptions) - }) -_sym_db.RegisterMessage(ConnectCommandOptions) - -LogoutCommand = _reflection.GeneratedProtocolMessageType( - 'LogoutCommand', - (_message.Message, ), - { - 'DESCRIPTOR': _LOGOUTCOMMAND, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.LogoutCommand) - }) -_sym_db.RegisterMessage(LogoutCommand) - -SetVolumeCommand = _reflection.GeneratedProtocolMessageType( - 'SetVolumeCommand', - (_message.Message, ), - { - 'DESCRIPTOR': _SETVOLUMECOMMAND, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.SetVolumeCommand) - }) -_sym_db.RegisterMessage(SetVolumeCommand) - -RenameCommand = _reflection.GeneratedProtocolMessageType( - 'RenameCommand', - (_message.Message, ), - { - 'DESCRIPTOR': _RENAMECOMMAND, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.RenameCommand) - }) -_sym_db.RegisterMessage(RenameCommand) - -SetBackendMetadataCommand = _reflection.GeneratedProtocolMessageType( - 'SetBackendMetadataCommand', - (_message.Message, ), - { - 'MetadataEntry': - _reflection.GeneratedProtocolMessageType( - 'MetadataEntry', - (_message.Message, ), - { - 'DESCRIPTOR': _SETBACKENDMETADATACOMMAND_METADATAENTRY, - '__module__': 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.SetBackendMetadataCommand.MetadataEntry) - }), - 'DESCRIPTOR': - _SETBACKENDMETADATACOMMAND, - '__module__': - 'connect_pb2' - # @@protoc_insertion_point(class_scope:connectstate.SetBackendMetadataCommand) - }) -_sym_db.RegisterMessage(SetBackendMetadataCommand) -_sym_db.RegisterMessage(SetBackendMetadataCommand.MetadataEntry) -DESCRIPTOR._options = None -_CLUSTER_DEVICEENTRY._options = None -_DEVICEINFO_METADATAMAPENTRY._options = None -_SETBACKENDMETADATACOMMAND_METADATAENTRY._options = None +from librespot.proto import Player_pb2 as player__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rconnect.proto\x12\x0c\x63onnectstate\x1a\x0cplayer.proto\"\x9f\x01\n\rClusterUpdate\x12&\n\x07\x63luster\x18\x01 \x01(\x0b\x32\x15.connectstate.Cluster\x12\x38\n\rupdate_reason\x18\x02 \x01(\x0e\x32!.connectstate.ClusterUpdateReason\x12\x0e\n\x06\x61\x63k_id\x18\x03 \x01(\t\x12\x1c\n\x14\x64\x65vices_that_changed\x18\x04 \x03(\t\"\xa6\x01\n\x06\x44\x65vice\x12-\n\x0b\x64\x65vice_info\x18\x01 \x01(\x0b\x32\x18.connectstate.DeviceInfo\x12/\n\x0cplayer_state\x18\x02 \x01(\x0b\x32\x19.connectstate.PlayerState\x12<\n\x13private_device_info\x18\x03 \x01(\x0b\x32\x1f.connectstate.PrivateDeviceInfo\"\xfa\x01\n\x07\x43luster\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63tive_device_id\x18\x02 \x01(\t\x12/\n\x0cplayer_state\x18\x03 \x01(\x0b\x32\x19.connectstate.PlayerState\x12\x31\n\x06\x64\x65vice\x18\x04 \x03(\x0b\x32!.connectstate.Cluster.DeviceEntry\x12\x15\n\rtransfer_data\x18\x05 \x01(\x0c\x1aG\n\x0b\x44\x65viceEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.connectstate.DeviceInfo:\x02\x38\x01\"\xa1\x03\n\x0fPutStateRequest\x12\x14\n\x0c\x63\x61llback_url\x18\x01 \x01(\t\x12$\n\x06\x64\x65vice\x18\x02 \x01(\x0b\x32\x14.connectstate.Device\x12-\n\x0bmember_type\x18\x03 \x01(\x0e\x32\x18.connectstate.MemberType\x12\x11\n\tis_active\x18\x04 \x01(\x08\x12\x36\n\x10put_state_reason\x18\x05 \x01(\x0e\x32\x1c.connectstate.PutStateReason\x12\x12\n\nmessage_id\x18\x06 \x01(\r\x12&\n\x1elast_command_sent_by_device_id\x18\x07 \x01(\t\x12\x1f\n\x17last_command_message_id\x18\x08 \x01(\r\x12\x1a\n\x12started_playing_at\x18\t \x01(\x04\x12\x1f\n\x17has_been_playing_for_ms\x18\x0b \x01(\x04\x12\x1d\n\x15\x63lient_side_timestamp\x18\x0c \x01(\x04\x12\x1f\n\x17only_write_player_state\x18\r \x01(\x08\"%\n\x11PrivateDeviceInfo\x12\x10\n\x08platform\x18\x01 \x01(\t\"(\n\x10SubscribeRequest\x12\x14\n\x0c\x63\x61llback_url\x18\x01 \x01(\t\"\xc5\x03\n\nDeviceInfo\x12\x10\n\x08\x63\x61n_play\x18\x01 \x01(\x08\x12\x0e\n\x06volume\x18\x02 \x01(\r\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x30\n\x0c\x63\x61pabilities\x18\x04 \x01(\x0b\x32\x1a.connectstate.Capabilities\x12\x1f\n\x17\x64\x65vice_software_version\x18\x06 \x01(\t\x12-\n\x0b\x64\x65vice_type\x18\x07 \x01(\x0e\x32\x18.connectstate.DeviceType\x12\x15\n\rspirc_version\x18\t \x01(\t\x12\x11\n\tdevice_id\x18\n \x01(\t\x12\x1a\n\x12is_private_session\x18\x0b \x01(\x08\x12\x19\n\x11is_social_connect\x18\x0c \x01(\x08\x12\x11\n\tclient_id\x18\r \x01(\t\x12\r\n\x05\x62rand\x18\x0e \x01(\t\x12\r\n\x05model\x18\x0f \x01(\t\x12?\n\x0cmetadata_map\x18\x10 \x03(\x0b\x32).connectstate.DeviceInfo.MetadataMapEntry\x1a\x32\n\x10MetadataMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xcc\x04\n\x0c\x43\x61pabilities\x12\x15\n\rcan_be_player\x18\x02 \x01(\x08\x12\x19\n\x11restrict_to_local\x18\x03 \x01(\x08\x12\x1a\n\x12gaia_eq_connect_id\x18\x05 \x01(\x08\x12\x17\n\x0fsupports_logout\x18\x06 \x01(\x08\x12\x15\n\ris_observable\x18\x07 \x01(\x08\x12\x14\n\x0cvolume_steps\x18\x08 \x01(\x05\x12\x17\n\x0fsupported_types\x18\t \x03(\t\x12\x14\n\x0c\x63ommand_acks\x18\n \x01(\x08\x12\x17\n\x0fsupports_rename\x18\x0b \x01(\x08\x12\x0e\n\x06hidden\x18\x0c \x01(\x08\x12\x16\n\x0e\x64isable_volume\x18\r \x01(\x08\x12\x18\n\x10\x63onnect_disabled\x18\x0e \x01(\x08\x12\x1c\n\x14supports_playlist_v2\x18\x0f \x01(\x08\x12\x17\n\x0fis_controllable\x18\x10 \x01(\x08\x12\"\n\x1asupports_external_episodes\x18\x11 \x01(\x08\x12%\n\x1dsupports_set_backend_metadata\x18\x12 \x01(\x08\x12!\n\x19supports_transfer_command\x18\x13 \x01(\x08\x12 \n\x18supports_command_request\x18\x14 \x01(\x08\x12\x18\n\x10is_voice_enabled\x18\x15 \x01(\x08\x12\x1f\n\x17needs_full_player_state\x18\x16 \x01(\x08\x12\x1c\n\x14supports_gzip_pushes\x18\x17 \x01(\x08\"+\n\x15\x43onnectCommandOptions\x12\x12\n\nmessage_id\x18\x01 \x01(\x05\"M\n\rLogoutCommand\x12<\n\x0f\x63ommand_options\x18\x01 \x01(\x0b\x32#.connectstate.ConnectCommandOptions\"`\n\x10SetVolumeCommand\x12\x0e\n\x06volume\x18\x01 \x01(\x05\x12<\n\x0f\x63ommand_options\x18\x02 \x01(\x0b\x32#.connectstate.ConnectCommandOptions\"`\n\rRenameCommand\x12\x11\n\trename_to\x18\x01 \x01(\t\x12<\n\x0f\x63ommand_options\x18\x02 \x01(\x0b\x32#.connectstate.ConnectCommandOptions\"\x95\x01\n\x19SetBackendMetadataCommand\x12G\n\x08metadata\x18\x01 \x03(\x0b\x32\x35.connectstate.SetBackendMetadataCommand.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01*\xd4\x01\n\x11SendCommandResult\x12\x1f\n\x1bUNKNOWN_SEND_COMMAND_RESULT\x10\x00\x12\x0b\n\x07SUCCESS\x10\x01\x12\x14\n\x10\x44\x45VICE_NOT_FOUND\x10\x02\x12\x18\n\x14\x43ONTEXT_PLAYER_ERROR\x10\x03\x12\x16\n\x12\x44\x45VICE_DISAPPEARED\x10\x04\x12\x12\n\x0eUPSTREAM_ERROR\x10\x05\x12#\n\x1f\x44\x45VICE_DOES_NOT_SUPPORT_COMMAND\x10\x06\x12\x10\n\x0cRATE_LIMITED\x10\x07*\xb7\x01\n\x0ePutStateReason\x12\x1c\n\x18UNKNOWN_PUT_STATE_REASON\x10\x00\x12\x0f\n\x0bSPIRC_HELLO\x10\x01\x12\x10\n\x0cSPIRC_NOTIFY\x10\x02\x12\x0e\n\nNEW_DEVICE\x10\x03\x12\x18\n\x14PLAYER_STATE_CHANGED\x10\x04\x12\x12\n\x0eVOLUME_CHANGED\x10\x05\x12\x11\n\rPICKER_OPENED\x10\x06\x12\x13\n\x0f\x42\x45\x43\x41ME_INACTIVE\x10\x07*;\n\nMemberType\x12\x0c\n\x08SPIRC_V2\x10\x00\x12\x0c\n\x08SPIRC_V3\x10\x01\x12\x11\n\rCONNECT_STATE\x10\x02*\x84\x01\n\x13\x43lusterUpdateReason\x12!\n\x1dUNKNOWN_CLUSTER_UPDATE_REASON\x10\x00\x12\x17\n\x13\x44\x45VICES_DISAPPEARED\x10\x01\x12\x18\n\x14\x44\x45VICE_STATE_CHANGED\x10\x02\x12\x17\n\x13NEW_DEVICE_APPEARED\x10\x03*\xa0\x02\n\nDeviceType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43OMPUTER\x10\x01\x12\n\n\x06TABLET\x10\x02\x12\x0e\n\nSMARTPHONE\x10\x03\x12\x0b\n\x07SPEAKER\x10\x04\x12\x06\n\x02TV\x10\x05\x12\x07\n\x03\x41VR\x10\x06\x12\x07\n\x03STB\x10\x07\x12\x10\n\x0c\x41UDIO_DONGLE\x10\x08\x12\x10\n\x0cGAME_CONSOLE\x10\t\x12\x0e\n\nCAST_VIDEO\x10\n\x12\x0e\n\nCAST_AUDIO\x10\x0b\x12\x0e\n\nAUTOMOBILE\x10\x0c\x12\x0e\n\nSMARTWATCH\x10\r\x12\x0e\n\nCHROMEBOOK\x10\x0e\x12\x13\n\x0fUNKNOWN_SPOTIFY\x10\x64\x12\r\n\tCAR_THING\x10\x65\x12\x0c\n\x08OBSERVER\x10\x66\x12\x0e\n\nHOME_THING\x10gB\x1c\n\x18\x63om.spotify.connectstateH\x02\x62\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'connect_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\030com.spotify.connectstateH\002' + _globals['_CLUSTER_DEVICEENTRY']._loaded_options = None + _globals['_CLUSTER_DEVICEENTRY']._serialized_options = b'8\001' + _globals['_DEVICEINFO_METADATAMAPENTRY']._loaded_options = None + _globals['_DEVICEINFO_METADATAMAPENTRY']._serialized_options = b'8\001' + _globals['_SETBACKENDMETADATACOMMAND_METADATAENTRY']._loaded_options = None + _globals['_SETBACKENDMETADATACOMMAND_METADATAENTRY']._serialized_options = b'8\001' + _globals['_SENDCOMMANDRESULT']._serialized_start=2650 + _globals['_SENDCOMMANDRESULT']._serialized_end=2862 + _globals['_PUTSTATEREASON']._serialized_start=2865 + _globals['_PUTSTATEREASON']._serialized_end=3048 + _globals['_MEMBERTYPE']._serialized_start=3050 + _globals['_MEMBERTYPE']._serialized_end=3109 + _globals['_CLUSTERUPDATEREASON']._serialized_start=3112 + _globals['_CLUSTERUPDATEREASON']._serialized_end=3244 + _globals['_DEVICETYPE']._serialized_start=3247 + _globals['_DEVICETYPE']._serialized_end=3535 + _globals['_CLUSTERUPDATE']._serialized_start=46 + _globals['_CLUSTERUPDATE']._serialized_end=205 + _globals['_DEVICE']._serialized_start=208 + _globals['_DEVICE']._serialized_end=374 + _globals['_CLUSTER']._serialized_start=377 + _globals['_CLUSTER']._serialized_end=627 + _globals['_CLUSTER_DEVICEENTRY']._serialized_start=556 + _globals['_CLUSTER_DEVICEENTRY']._serialized_end=627 + _globals['_PUTSTATEREQUEST']._serialized_start=630 + _globals['_PUTSTATEREQUEST']._serialized_end=1047 + _globals['_PRIVATEDEVICEINFO']._serialized_start=1049 + _globals['_PRIVATEDEVICEINFO']._serialized_end=1086 + _globals['_SUBSCRIBEREQUEST']._serialized_start=1088 + _globals['_SUBSCRIBEREQUEST']._serialized_end=1128 + _globals['_DEVICEINFO']._serialized_start=1131 + _globals['_DEVICEINFO']._serialized_end=1584 + _globals['_DEVICEINFO_METADATAMAPENTRY']._serialized_start=1534 + _globals['_DEVICEINFO_METADATAMAPENTRY']._serialized_end=1584 + _globals['_CAPABILITIES']._serialized_start=1587 + _globals['_CAPABILITIES']._serialized_end=2175 + _globals['_CONNECTCOMMANDOPTIONS']._serialized_start=2177 + _globals['_CONNECTCOMMANDOPTIONS']._serialized_end=2220 + _globals['_LOGOUTCOMMAND']._serialized_start=2222 + _globals['_LOGOUTCOMMAND']._serialized_end=2299 + _globals['_SETVOLUMECOMMAND']._serialized_start=2301 + _globals['_SETVOLUMECOMMAND']._serialized_end=2397 + _globals['_RENAMECOMMAND']._serialized_start=2399 + _globals['_RENAMECOMMAND']._serialized_end=2495 + _globals['_SETBACKENDMETADATACOMMAND']._serialized_start=2498 + _globals['_SETBACKENDMETADATACOMMAND']._serialized_end=2647 + _globals['_SETBACKENDMETADATACOMMAND_METADATAENTRY']._serialized_start=2600 + _globals['_SETBACKENDMETADATACOMMAND_METADATAENTRY']._serialized_end=2647 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Connectivity_pb2.py b/librespot/proto/Connectivity_pb2.py index bf17a914..d490ebe8 100644 --- a/librespot/proto/Connectivity_pb2.py +++ b/librespot/proto/Connectivity_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: connectivity.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'connectivity.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,22 +26,22 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x63onnectivity.proto\x12\x1bspotify.clienttoken.data.v0\"{\n\x13\x43onnectivitySdkData\x12Q\n\x16platform_specific_data\x18\x01 \x01(\x0b\x32\x31.spotify.clienttoken.data.v0.PlatformSpecificData\x12\x11\n\tdevice_id\x18\x02 \x01(\t\"\xdf\x01\n\x14PlatformSpecificData\x12\x41\n\x07\x61ndroid\x18\x01 \x01(\x0b\x32..spotify.clienttoken.data.v0.NativeAndroidDataH\x00\x12\x39\n\x03ios\x18\x02 \x01(\x0b\x32*.spotify.clienttoken.data.v0.NativeIOSDataH\x00\x12\x41\n\x07windows\x18\x04 \x01(\x0b\x32..spotify.clienttoken.data.v0.NativeWindowsDataH\x00\x42\x06\n\x04\x64\x61ta\"\xb9\x01\n\x11NativeAndroidData\x12\x19\n\x11major_sdk_version\x18\x01 \x01(\x05\x12\x19\n\x11minor_sdk_version\x18\x02 \x01(\x05\x12\x19\n\x11patch_sdk_version\x18\x03 \x01(\x05\x12\x13\n\x0b\x61pi_version\x18\x04 \x01(\r\x12>\n\x11screen_dimensions\x18\x05 \x01(\x0b\x32#.spotify.clienttoken.data.v0.Screen\"\x9e\x01\n\rNativeIOSData\x12\x1c\n\x14user_interface_idiom\x18\x01 \x01(\x05\x12\x1f\n\x17target_iphone_simulator\x18\x02 \x01(\x08\x12\x12\n\nhw_machine\x18\x03 \x01(\t\x12\x16\n\x0esystem_version\x18\x04 \x01(\t\x12\"\n\x1asimulator_model_identifier\x18\x05 \x01(\t\"\xa0\x01\n\x11NativeWindowsData\x12\x12\n\nsomething1\x18\x01 \x01(\x05\x12\x12\n\nsomething3\x18\x03 \x01(\x05\x12\x12\n\nsomething4\x18\x04 \x01(\x05\x12\x12\n\nsomething6\x18\x06 \x01(\x05\x12\x12\n\nsomething7\x18\x07 \x01(\x05\x12\x12\n\nsomething8\x18\x08 \x01(\x05\x12\x13\n\x0bsomething10\x18\n \x01(\x08\"8\n\x06Screen\x12\r\n\x05width\x18\x01 \x01(\x05\x12\x0e\n\x06height\x18\x02 \x01(\x05\x12\x0f\n\x07\x64\x65nsity\x18\x03 \x01(\x05\x42#\n\x1f\x63om.spotify.clienttoken.data.v0H\x02\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'connectivity_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\037com.spotify.clienttoken.data.v0H\002' - _CONNECTIVITYSDKDATA._serialized_start=51 - _CONNECTIVITYSDKDATA._serialized_end=174 - _PLATFORMSPECIFICDATA._serialized_start=177 - _PLATFORMSPECIFICDATA._serialized_end=400 - _NATIVEANDROIDDATA._serialized_start=403 - _NATIVEANDROIDDATA._serialized_end=588 - _NATIVEIOSDATA._serialized_start=591 - _NATIVEIOSDATA._serialized_end=749 - _NATIVEWINDOWSDATA._serialized_start=752 - _NATIVEWINDOWSDATA._serialized_end=912 - _SCREEN._serialized_start=914 - _SCREEN._serialized_end=970 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'connectivity_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\037com.spotify.clienttoken.data.v0H\002' + _globals['_CONNECTIVITYSDKDATA']._serialized_start=51 + _globals['_CONNECTIVITYSDKDATA']._serialized_end=174 + _globals['_PLATFORMSPECIFICDATA']._serialized_start=177 + _globals['_PLATFORMSPECIFICDATA']._serialized_end=400 + _globals['_NATIVEANDROIDDATA']._serialized_start=403 + _globals['_NATIVEANDROIDDATA']._serialized_end=588 + _globals['_NATIVEIOSDATA']._serialized_start=591 + _globals['_NATIVEIOSDATA']._serialized_end=749 + _globals['_NATIVEWINDOWSDATA']._serialized_start=752 + _globals['_NATIVEWINDOWSDATA']._serialized_end=912 + _globals['_SCREEN']._serialized_start=914 + _globals['_SCREEN']._serialized_end=970 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/ContextPage_pb2.py b/librespot/proto/ContextPage_pb2.py index 5256d5a3..2782b2bb 100644 --- a/librespot/proto/ContextPage_pb2.py +++ b/librespot/proto/ContextPage_pb2.py @@ -1,239 +1,42 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: context_page.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -import ContextTrack_pb2 as context__track__pb2 from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'context_page.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="context_page.proto", - package="spotify.player.proto", - syntax="proto2", - serialized_options=b"\n\023com.spotify.contextH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x12\x63ontext_page.proto\x12\x14spotify.player.proto\x1a\x13\x63ontext_track.proto"\xef\x01\n\x0b\x43ontextPage\x12\x10\n\x08page_url\x18\x01 \x01(\t\x12\x15\n\rnext_page_url\x18\x02 \x01(\t\x12\x41\n\x08metadata\x18\x03 \x03(\x0b\x32/.spotify.player.proto.ContextPage.MetadataEntry\x12\x32\n\x06tracks\x18\x04 \x03(\x0b\x32".spotify.player.proto.ContextTrack\x12\x0f\n\x07loading\x18\x05 \x01(\x08\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02', - dependencies=[ - context__track__pb2.DESCRIPTOR, - ], -) -_CONTEXTPAGE_METADATAENTRY = _descriptor.Descriptor( - name="MetadataEntry", - full_name="spotify.player.proto.ContextPage.MetadataEntry", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="key", - full_name="spotify.player.proto.ContextPage.MetadataEntry.key", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="value", - full_name="spotify.player.proto.ContextPage.MetadataEntry.value", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=b"8\001", - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=258, - serialized_end=305, -) +from librespot.proto import ContextTrack_pb2 as context__track__pb2 -_CONTEXTPAGE = _descriptor.Descriptor( - name="ContextPage", - full_name="spotify.player.proto.ContextPage", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="page_url", - full_name="spotify.player.proto.ContextPage.page_url", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="next_page_url", - full_name="spotify.player.proto.ContextPage.next_page_url", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="metadata", - full_name="spotify.player.proto.ContextPage.metadata", - index=2, - number=3, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="tracks", - full_name="spotify.player.proto.ContextPage.tracks", - index=3, - number=4, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="loading", - full_name="spotify.player.proto.ContextPage.loading", - index=4, - number=5, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[ - _CONTEXTPAGE_METADATAENTRY, - ], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=66, - serialized_end=305, -) - -_CONTEXTPAGE_METADATAENTRY.containing_type = _CONTEXTPAGE -_CONTEXTPAGE.fields_by_name[ - "metadata"].message_type = _CONTEXTPAGE_METADATAENTRY -_CONTEXTPAGE.fields_by_name[ - "tracks"].message_type = context__track__pb2._CONTEXTTRACK -DESCRIPTOR.message_types_by_name["ContextPage"] = _CONTEXTPAGE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -ContextPage = _reflection.GeneratedProtocolMessageType( - "ContextPage", - (_message.Message, ), - { - "MetadataEntry": - _reflection.GeneratedProtocolMessageType( - "MetadataEntry", - (_message.Message, ), - { - "DESCRIPTOR": _CONTEXTPAGE_METADATAENTRY, - "__module__": "context_page_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.ContextPage.MetadataEntry) - }, - ), - "DESCRIPTOR": - _CONTEXTPAGE, - "__module__": - "context_page_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.ContextPage) - }, -) -_sym_db.RegisterMessage(ContextPage) -_sym_db.RegisterMessage(ContextPage.MetadataEntry) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x63ontext_page.proto\x12\x14spotify.player.proto\x1a\x13\x63ontext_track.proto\"\xef\x01\n\x0b\x43ontextPage\x12\x10\n\x08page_url\x18\x01 \x01(\t\x12\x15\n\rnext_page_url\x18\x02 \x01(\t\x12\x41\n\x08metadata\x18\x03 \x03(\x0b\x32/.spotify.player.proto.ContextPage.MetadataEntry\x12\x32\n\x06tracks\x18\x04 \x03(\x0b\x32\".spotify.player.proto.ContextTrack\x12\x0f\n\x07loading\x18\x05 \x01(\x08\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02') -DESCRIPTOR._options = None -_CONTEXTPAGE_METADATAENTRY._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'context_page_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\023com.spotify.contextH\002' + _globals['_CONTEXTPAGE_METADATAENTRY']._loaded_options = None + _globals['_CONTEXTPAGE_METADATAENTRY']._serialized_options = b'8\001' + _globals['_CONTEXTPAGE']._serialized_start=66 + _globals['_CONTEXTPAGE']._serialized_end=305 + _globals['_CONTEXTPAGE_METADATAENTRY']._serialized_start=258 + _globals['_CONTEXTPAGE_METADATAENTRY']._serialized_end=305 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/ContextPlayerOptions_pb2.py b/librespot/proto/ContextPlayerOptions_pb2.py index 7b62e056..74eb7257 100644 --- a/librespot/proto/ContextPlayerOptions_pb2.py +++ b/librespot/proto/ContextPlayerOptions_pb2.py @@ -1,215 +1,39 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: context_player_options.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'context_player_options.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="context_player_options.proto", - package="spotify.player.proto", - syntax="proto2", - serialized_options=b"\n\023com.spotify.contextH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x1c\x63ontext_player_options.proto\x12\x14spotify.player.proto"e\n\x14\x43ontextPlayerOptions\x12\x19\n\x11shuffling_context\x18\x01 \x01(\x08\x12\x19\n\x11repeating_context\x18\x02 \x01(\x08\x12\x17\n\x0frepeating_track\x18\x03 \x01(\x08"m\n\x1c\x43ontextPlayerOptionOverrides\x12\x19\n\x11shuffling_context\x18\x01 \x01(\x08\x12\x19\n\x11repeating_context\x18\x02 \x01(\x08\x12\x17\n\x0frepeating_track\x18\x03 \x01(\x08\x42\x17\n\x13\x63om.spotify.contextH\x02', -) -_CONTEXTPLAYEROPTIONS = _descriptor.Descriptor( - name="ContextPlayerOptions", - full_name="spotify.player.proto.ContextPlayerOptions", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="shuffling_context", - full_name= - "spotify.player.proto.ContextPlayerOptions.shuffling_context", - index=0, - number=1, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="repeating_context", - full_name= - "spotify.player.proto.ContextPlayerOptions.repeating_context", - index=1, - number=2, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="repeating_track", - full_name= - "spotify.player.proto.ContextPlayerOptions.repeating_track", - index=2, - number=3, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=54, - serialized_end=155, -) -_CONTEXTPLAYEROPTIONOVERRIDES = _descriptor.Descriptor( - name="ContextPlayerOptionOverrides", - full_name="spotify.player.proto.ContextPlayerOptionOverrides", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="shuffling_context", - full_name= - "spotify.player.proto.ContextPlayerOptionOverrides.shuffling_context", - index=0, - number=1, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="repeating_context", - full_name= - "spotify.player.proto.ContextPlayerOptionOverrides.repeating_context", - index=1, - number=2, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="repeating_track", - full_name= - "spotify.player.proto.ContextPlayerOptionOverrides.repeating_track", - index=2, - number=3, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=157, - serialized_end=266, -) -DESCRIPTOR.message_types_by_name[ - "ContextPlayerOptions"] = _CONTEXTPLAYEROPTIONS -DESCRIPTOR.message_types_by_name[ - "ContextPlayerOptionOverrides"] = _CONTEXTPLAYEROPTIONOVERRIDES -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ContextPlayerOptions = _reflection.GeneratedProtocolMessageType( - "ContextPlayerOptions", - (_message.Message, ), - { - "DESCRIPTOR": _CONTEXTPLAYEROPTIONS, - "__module__": "context_player_options_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.ContextPlayerOptions) - }, -) -_sym_db.RegisterMessage(ContextPlayerOptions) - -ContextPlayerOptionOverrides = _reflection.GeneratedProtocolMessageType( - "ContextPlayerOptionOverrides", - (_message.Message, ), - { - "DESCRIPTOR": _CONTEXTPLAYEROPTIONOVERRIDES, - "__module__": "context_player_options_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.ContextPlayerOptionOverrides) - }, -) -_sym_db.RegisterMessage(ContextPlayerOptionOverrides) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63ontext_player_options.proto\x12\x14spotify.player.proto\"e\n\x14\x43ontextPlayerOptions\x12\x19\n\x11shuffling_context\x18\x01 \x01(\x08\x12\x19\n\x11repeating_context\x18\x02 \x01(\x08\x12\x17\n\x0frepeating_track\x18\x03 \x01(\x08\"m\n\x1c\x43ontextPlayerOptionOverrides\x12\x19\n\x11shuffling_context\x18\x01 \x01(\x08\x12\x19\n\x11repeating_context\x18\x02 \x01(\x08\x12\x17\n\x0frepeating_track\x18\x03 \x01(\x08\x42\x17\n\x13\x63om.spotify.contextH\x02') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'context_player_options_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\023com.spotify.contextH\002' + _globals['_CONTEXTPLAYEROPTIONS']._serialized_start=54 + _globals['_CONTEXTPLAYEROPTIONS']._serialized_end=155 + _globals['_CONTEXTPLAYEROPTIONOVERRIDES']._serialized_start=157 + _globals['_CONTEXTPLAYEROPTIONOVERRIDES']._serialized_end=266 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/ContextTrack_pb2.py b/librespot/proto/ContextTrack_pb2.py index 495b4ea5..97c64d01 100644 --- a/librespot/proto/ContextTrack_pb2.py +++ b/librespot/proto/ContextTrack_pb2.py @@ -1,214 +1,41 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: context_track.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'context_track.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="context_track.proto", - package="spotify.player.proto", - syntax="proto2", - serialized_options=b"\n\023com.spotify.contextH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x13\x63ontext_track.proto\x12\x14spotify.player.proto"\xaa\x01\n\x0c\x43ontextTrack\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12\x0b\n\x03gid\x18\x03 \x01(\x0c\x12\x42\n\x08metadata\x18\x04 \x03(\x0b\x32\x30.spotify.player.proto.ContextTrack.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02', -) -_CONTEXTTRACK_METADATAENTRY = _descriptor.Descriptor( - name="MetadataEntry", - full_name="spotify.player.proto.ContextTrack.MetadataEntry", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="key", - full_name="spotify.player.proto.ContextTrack.MetadataEntry.key", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="value", - full_name="spotify.player.proto.ContextTrack.MetadataEntry.value", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=b"8\001", - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=169, - serialized_end=216, -) -_CONTEXTTRACK = _descriptor.Descriptor( - name="ContextTrack", - full_name="spotify.player.proto.ContextTrack", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="uri", - full_name="spotify.player.proto.ContextTrack.uri", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="uid", - full_name="spotify.player.proto.ContextTrack.uid", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="gid", - full_name="spotify.player.proto.ContextTrack.gid", - index=2, - number=3, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="metadata", - full_name="spotify.player.proto.ContextTrack.metadata", - index=3, - number=4, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[ - _CONTEXTTRACK_METADATAENTRY, - ], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=46, - serialized_end=216, -) - -_CONTEXTTRACK_METADATAENTRY.containing_type = _CONTEXTTRACK -_CONTEXTTRACK.fields_by_name[ - "metadata"].message_type = _CONTEXTTRACK_METADATAENTRY -DESCRIPTOR.message_types_by_name["ContextTrack"] = _CONTEXTTRACK -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -ContextTrack = _reflection.GeneratedProtocolMessageType( - "ContextTrack", - (_message.Message, ), - { - "MetadataEntry": - _reflection.GeneratedProtocolMessageType( - "MetadataEntry", - (_message.Message, ), - { - "DESCRIPTOR": _CONTEXTTRACK_METADATAENTRY, - "__module__": "context_track_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.ContextTrack.MetadataEntry) - }, - ), - "DESCRIPTOR": - _CONTEXTTRACK, - "__module__": - "context_track_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.ContextTrack) - }, -) -_sym_db.RegisterMessage(ContextTrack) -_sym_db.RegisterMessage(ContextTrack.MetadataEntry) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x63ontext_track.proto\x12\x14spotify.player.proto\"\xaa\x01\n\x0c\x43ontextTrack\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12\x0b\n\x03gid\x18\x03 \x01(\x0c\x12\x42\n\x08metadata\x18\x04 \x03(\x0b\x32\x30.spotify.player.proto.ContextTrack.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02') -DESCRIPTOR._options = None -_CONTEXTTRACK_METADATAENTRY._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'context_track_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\023com.spotify.contextH\002' + _globals['_CONTEXTTRACK_METADATAENTRY']._loaded_options = None + _globals['_CONTEXTTRACK_METADATAENTRY']._serialized_options = b'8\001' + _globals['_CONTEXTTRACK']._serialized_start=46 + _globals['_CONTEXTTRACK']._serialized_end=216 + _globals['_CONTEXTTRACK_METADATAENTRY']._serialized_start=169 + _globals['_CONTEXTTRACK_METADATAENTRY']._serialized_end=216 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Context_pb2.py b/librespot/proto/Context_pb2.py index 0b2eeae7..4ad1f669 100644 --- a/librespot/proto/Context_pb2.py +++ b/librespot/proto/Context_pb2.py @@ -1,260 +1,43 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: context.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -import ContextPage_pb2 as context__page__pb2 -import Restrictions_pb2 as restrictions__pb2 from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'context.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="context.proto", - package="spotify.player.proto", - syntax="proto2", - serialized_options=b"\n\023com.spotify.contextH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\rcontext.proto\x12\x14spotify.player.proto\x1a\x12\x63ontext_page.proto\x1a\x12restrictions.proto"\x90\x02\n\x07\x43ontext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12=\n\x08metadata\x18\x03 \x03(\x0b\x32+.spotify.player.proto.Context.MetadataEntry\x12\x38\n\x0crestrictions\x18\x04 \x01(\x0b\x32".spotify.player.proto.Restrictions\x12\x30\n\x05pages\x18\x05 \x03(\x0b\x32!.spotify.player.proto.ContextPage\x12\x0f\n\x07loading\x18\x06 \x01(\x08\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02', - dependencies=[ - context__page__pb2.DESCRIPTOR, - restrictions__pb2.DESCRIPTOR, - ], -) -_CONTEXT_METADATAENTRY = _descriptor.Descriptor( - name="MetadataEntry", - full_name="spotify.player.proto.Context.MetadataEntry", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="key", - full_name="spotify.player.proto.Context.MetadataEntry.key", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="value", - full_name="spotify.player.proto.Context.MetadataEntry.value", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=b"8\001", - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=305, - serialized_end=352, -) +from librespot.proto import ContextPage_pb2 as context__page__pb2 +from librespot.proto import Restrictions_pb2 as restrictions__pb2 -_CONTEXT = _descriptor.Descriptor( - name="Context", - full_name="spotify.player.proto.Context", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="uri", - full_name="spotify.player.proto.Context.uri", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="url", - full_name="spotify.player.proto.Context.url", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="metadata", - full_name="spotify.player.proto.Context.metadata", - index=2, - number=3, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="restrictions", - full_name="spotify.player.proto.Context.restrictions", - index=3, - number=4, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="pages", - full_name="spotify.player.proto.Context.pages", - index=4, - number=5, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="loading", - full_name="spotify.player.proto.Context.loading", - index=5, - number=6, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[ - _CONTEXT_METADATAENTRY, - ], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=80, - serialized_end=352, -) - -_CONTEXT_METADATAENTRY.containing_type = _CONTEXT -_CONTEXT.fields_by_name["metadata"].message_type = _CONTEXT_METADATAENTRY -_CONTEXT.fields_by_name[ - "restrictions"].message_type = restrictions__pb2._RESTRICTIONS -_CONTEXT.fields_by_name["pages"].message_type = context__page__pb2._CONTEXTPAGE -DESCRIPTOR.message_types_by_name["Context"] = _CONTEXT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -Context = _reflection.GeneratedProtocolMessageType( - "Context", - (_message.Message, ), - { - "MetadataEntry": - _reflection.GeneratedProtocolMessageType( - "MetadataEntry", - (_message.Message, ), - { - "DESCRIPTOR": _CONTEXT_METADATAENTRY, - "__module__": "context_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.Context.MetadataEntry) - }, - ), - "DESCRIPTOR": - _CONTEXT, - "__module__": - "context_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.Context) - }, -) -_sym_db.RegisterMessage(Context) -_sym_db.RegisterMessage(Context.MetadataEntry) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rcontext.proto\x12\x14spotify.player.proto\x1a\x12\x63ontext_page.proto\x1a\x12restrictions.proto\"\x90\x02\n\x07\x43ontext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12=\n\x08metadata\x18\x03 \x03(\x0b\x32+.spotify.player.proto.Context.MetadataEntry\x12\x38\n\x0crestrictions\x18\x04 \x01(\x0b\x32\".spotify.player.proto.Restrictions\x12\x30\n\x05pages\x18\x05 \x03(\x0b\x32!.spotify.player.proto.ContextPage\x12\x0f\n\x07loading\x18\x06 \x01(\x08\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x13\x63om.spotify.contextH\x02') -DESCRIPTOR._options = None -_CONTEXT_METADATAENTRY._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'context_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\023com.spotify.contextH\002' + _globals['_CONTEXT_METADATAENTRY']._loaded_options = None + _globals['_CONTEXT_METADATAENTRY']._serialized_options = b'8\001' + _globals['_CONTEXT']._serialized_start=80 + _globals['_CONTEXT']._serialized_end=352 + _globals['_CONTEXT_METADATAENTRY']._serialized_start=305 + _globals['_CONTEXT_METADATAENTRY']._serialized_end=352 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/EntityExtensionData_pb2.py b/librespot/proto/EntityExtensionData_pb2.py index 37d72dc1..f4b75c5f 100644 --- a/librespot/proto/EntityExtensionData_pb2.py +++ b/librespot/proto/EntityExtensionData_pb2.py @@ -1,35 +1,45 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: entity_extension_data.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'entity_extension_data.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x65ntity_extension_data.proto\x12\x18spotify.extendedmetadata\x1a\x19google/protobuf/any.proto\"\x8c\x01\n\x19\x45ntityExtensionDataHeader\x12\x13\n\x0bstatus_code\x18\x01 \x01(\x05\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x0e\n\x06locale\x18\x03 \x01(\t\x12\x1c\n\x14\x63\x61\x63he_ttl_in_seconds\x18\x04 \x01(\x03\x12\x1e\n\x16offline_ttl_in_seconds\x18\x05 \x01(\x03\"\x9c\x01\n\x13\x45ntityExtensionData\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32\x33.spotify.extendedmetadata.EntityExtensionDataHeader\x12\x12\n\nentity_uri\x18\x02 \x01(\t\x12,\n\x0e\x65xtension_data\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any\"$\n\x0ePlainListAssoc\x12\x12\n\nentity_uri\x18\x01 \x03(\t\"\r\n\x0b\x41ssocHeader\"|\n\x05\x41ssoc\x12\x35\n\x06header\x18\x01 \x01(\x0b\x32%.spotify.extendedmetadata.AssocHeader\x12<\n\nplain_list\x18\x02 \x01(\x0b\x32(.spotify.extendedmetadata.PlainListAssocB+\n\"com.spotify.extendedmetadata.protoH\x02P\x01\xf8\x01\x01\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'EntityExtensionData_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\"com.spotify.extendedmetadata.protoH\002P\001\370\001\001' - _ENTITYEXTENSIONDATAHEADER._serialized_start=85 - _ENTITYEXTENSIONDATAHEADER._serialized_end=225 - _ENTITYEXTENSIONDATA._serialized_start=228 - _ENTITYEXTENSIONDATA._serialized_end=384 - _PLAINLISTASSOC._serialized_start=386 - _PLAINLISTASSOC._serialized_end=422 - _ASSOCHEADER._serialized_start=424 - _ASSOCHEADER._serialized_end=437 - _ASSOC._serialized_start=439 - _ASSOC._serialized_end=563 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'entity_extension_data_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\"com.spotify.extendedmetadata.protoH\002P\001\370\001\001' + _globals['_ENTITYEXTENSIONDATAHEADER']._serialized_start=85 + _globals['_ENTITYEXTENSIONDATAHEADER']._serialized_end=225 + _globals['_ENTITYEXTENSIONDATA']._serialized_start=228 + _globals['_ENTITYEXTENSIONDATA']._serialized_end=384 + _globals['_PLAINLISTASSOC']._serialized_start=386 + _globals['_PLAINLISTASSOC']._serialized_end=422 + _globals['_ASSOCHEADER']._serialized_start=424 + _globals['_ASSOCHEADER']._serialized_end=437 + _globals['_ASSOC']._serialized_start=439 + _globals['_ASSOC']._serialized_end=563 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/ExplicitContentPubsub_pb2.py b/librespot/proto/ExplicitContentPubsub_pb2.py index 26ed33e5..e041f76c 100644 --- a/librespot/proto/ExplicitContentPubsub_pb2.py +++ b/librespot/proto/ExplicitContentPubsub_pb2.py @@ -1,147 +1,39 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: explicit_content_pubsub.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'explicit_content_pubsub.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name='explicit_content_pubsub.proto', - package='spotify.explicit_content.proto', - syntax='proto2', - serialized_options=b'\n\024com.spotify.explicitH\002', - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x1d\x65xplicit_content_pubsub.proto\x12\x1espotify.explicit_content.proto\"*\n\x0cKeyValuePair\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x02(\t\"S\n\x14UserAttributesUpdate\x12;\n\x05pairs\x18\x01 \x03(\x0b\x32,.spotify.explicit_content.proto.KeyValuePairB\x18\n\x14\x63om.spotify.explicitH\x02' -) - -_KEYVALUEPAIR = _descriptor.Descriptor( - name='KeyValuePair', - full_name='spotify.explicit_content.proto.KeyValuePair', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', - full_name='spotify.explicit_content.proto.KeyValuePair.key', - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', - full_name='spotify.explicit_content.proto.KeyValuePair.value', - index=1, - number=2, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=65, - serialized_end=107, -) - -_USERATTRIBUTESUPDATE = _descriptor.Descriptor( - name='UserAttributesUpdate', - full_name='spotify.explicit_content.proto.UserAttributesUpdate', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='pairs', - full_name= - 'spotify.explicit_content.proto.UserAttributesUpdate.pairs', - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=109, - serialized_end=192, -) -_USERATTRIBUTESUPDATE.fields_by_name['pairs'].message_type = _KEYVALUEPAIR -DESCRIPTOR.message_types_by_name['KeyValuePair'] = _KEYVALUEPAIR -DESCRIPTOR.message_types_by_name[ - 'UserAttributesUpdate'] = _USERATTRIBUTESUPDATE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -KeyValuePair = _reflection.GeneratedProtocolMessageType( - 'KeyValuePair', - (_message.Message, ), - { - 'DESCRIPTOR': _KEYVALUEPAIR, - '__module__': 'explicit_content_pubsub_pb2' - # @@protoc_insertion_point(class_scope:spotify.explicit_content.proto.KeyValuePair) - }) -_sym_db.RegisterMessage(KeyValuePair) -UserAttributesUpdate = _reflection.GeneratedProtocolMessageType( - 'UserAttributesUpdate', - (_message.Message, ), - { - 'DESCRIPTOR': _USERATTRIBUTESUPDATE, - '__module__': 'explicit_content_pubsub_pb2' - # @@protoc_insertion_point(class_scope:spotify.explicit_content.proto.UserAttributesUpdate) - }) -_sym_db.RegisterMessage(UserAttributesUpdate) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x65xplicit_content_pubsub.proto\x12\x1espotify.explicit_content.proto\"*\n\x0cKeyValuePair\x12\x0b\n\x03key\x18\x01 \x02(\t\x12\r\n\x05value\x18\x02 \x02(\t\"S\n\x14UserAttributesUpdate\x12;\n\x05pairs\x18\x01 \x03(\x0b\x32,.spotify.explicit_content.proto.KeyValuePairB\x18\n\x14\x63om.spotify.explicitH\x02') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'explicit_content_pubsub_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.explicitH\002' + _globals['_KEYVALUEPAIR']._serialized_start=65 + _globals['_KEYVALUEPAIR']._serialized_end=107 + _globals['_USERATTRIBUTESUPDATE']._serialized_start=109 + _globals['_USERATTRIBUTESUPDATE']._serialized_end=192 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/ExtendedMetadata_pb2.py b/librespot/proto/ExtendedMetadata_pb2.py index 3116a3fb..24fad568 100644 --- a/librespot/proto/ExtendedMetadata_pb2.py +++ b/librespot/proto/ExtendedMetadata_pb2.py @@ -1,44 +1,55 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: extended_metadata.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'extended_metadata.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -import librespot.proto.ExtensionKind_pb2 as extension__kind__pb2 -import librespot.proto.EntityExtensionData_pb2 as entity__extension__data__pb2 +from librespot.proto import ExtensionKind_pb2 as extension__kind__pb2 +from librespot.proto import EntityExtensionData_pb2 as entity__extension__data__pb2 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x65xtended_metadata.proto\x12\x18spotify.extendedmetadata\x1a\x14\x65xtension_kind.proto\x1a\x1b\x65ntity_extension_data.proto\"_\n\x0e\x45xtensionQuery\x12?\n\x0e\x65xtension_kind\x18\x01 \x01(\x0e\x32\'.spotify.extendedmetadata.ExtensionKind\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\"\\\n\rEntityRequest\x12\x12\n\nentity_uri\x18\x01 \x01(\t\x12\x37\n\x05query\x18\x02 \x03(\x0b\x32(.spotify.extendedmetadata.ExtensionQuery\"Q\n\x1a\x42\x61tchedEntityRequestHeader\x12\x0f\n\x07\x63ountry\x18\x01 \x01(\t\x12\x11\n\tcatalogue\x18\x02 \x01(\t\x12\x0f\n\x07task_id\x18\x03 \x01(\x0c\"\x9d\x01\n\x14\x42\x61tchedEntityRequest\x12\x44\n\x06header\x18\x01 \x01(\x0b\x32\x34.spotify.extendedmetadata.BatchedEntityRequestHeader\x12?\n\x0e\x65ntity_request\x18\x02 \x03(\x0b\x32\'.spotify.extendedmetadata.EntityRequest\"\xbe\x01\n\x1e\x45ntityExtensionDataArrayHeader\x12\x1d\n\x15provider_error_status\x18\x01 \x01(\x05\x12\x1c\n\x14\x63\x61\x63he_ttl_in_seconds\x18\x02 \x01(\x03\x12\x1e\n\x16offline_ttl_in_seconds\x18\x03 \x01(\x03\x12?\n\x0e\x65xtension_type\x18\x04 \x01(\x0e\x32\'.spotify.extendedmetadata.ExtensionType\"\xec\x01\n\x18\x45ntityExtensionDataArray\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x38.spotify.extendedmetadata.EntityExtensionDataArrayHeader\x12?\n\x0e\x65xtension_kind\x18\x02 \x01(\x0e\x32\'.spotify.extendedmetadata.ExtensionKind\x12\x45\n\x0e\x65xtension_data\x18\x03 \x03(\x0b\x32-.spotify.extendedmetadata.EntityExtensionData\" \n\x1e\x42\x61tchedExtensionResponseHeader\"\xb3\x01\n\x18\x42\x61tchedExtensionResponse\x12H\n\x06header\x18\x01 \x01(\x0b\x32\x38.spotify.extendedmetadata.BatchedExtensionResponseHeader\x12M\n\x11\x65xtended_metadata\x18\x02 \x03(\x0b\x32\x32.spotify.extendedmetadata.EntityExtensionDataArray*4\n\rExtensionType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07GENERIC\x10\x01\x12\t\n\x05\x41SSOC\x10\x02\x42+\n\"com.spotify.extendedmetadata.protoH\x02P\x01\xf8\x01\x01\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ExtendedMetadata_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\"com.spotify.extendedmetadata.protoH\002P\001\370\001\001' - _EXTENSIONTYPE._serialized_start=1186 - _EXTENSIONTYPE._serialized_end=1238 - _EXTENSIONQUERY._serialized_start=104 - _EXTENSIONQUERY._serialized_end=199 - _ENTITYREQUEST._serialized_start=201 - _ENTITYREQUEST._serialized_end=293 - _BATCHEDENTITYREQUESTHEADER._serialized_start=295 - _BATCHEDENTITYREQUESTHEADER._serialized_end=376 - _BATCHEDENTITYREQUEST._serialized_start=379 - _BATCHEDENTITYREQUEST._serialized_end=536 - _ENTITYEXTENSIONDATAARRAYHEADER._serialized_start=539 - _ENTITYEXTENSIONDATAARRAYHEADER._serialized_end=729 - _ENTITYEXTENSIONDATAARRAY._serialized_start=732 - _ENTITYEXTENSIONDATAARRAY._serialized_end=968 - _BATCHEDEXTENSIONRESPONSEHEADER._serialized_start=970 - _BATCHEDEXTENSIONRESPONSEHEADER._serialized_end=1002 - _BATCHEDEXTENSIONRESPONSE._serialized_start=1005 - _BATCHEDEXTENSIONRESPONSE._serialized_end=1184 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'extended_metadata_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\"com.spotify.extendedmetadata.protoH\002P\001\370\001\001' + _globals['_EXTENSIONTYPE']._serialized_start=1186 + _globals['_EXTENSIONTYPE']._serialized_end=1238 + _globals['_EXTENSIONQUERY']._serialized_start=104 + _globals['_EXTENSIONQUERY']._serialized_end=199 + _globals['_ENTITYREQUEST']._serialized_start=201 + _globals['_ENTITYREQUEST']._serialized_end=293 + _globals['_BATCHEDENTITYREQUESTHEADER']._serialized_start=295 + _globals['_BATCHEDENTITYREQUESTHEADER']._serialized_end=376 + _globals['_BATCHEDENTITYREQUEST']._serialized_start=379 + _globals['_BATCHEDENTITYREQUEST']._serialized_end=536 + _globals['_ENTITYEXTENSIONDATAARRAYHEADER']._serialized_start=539 + _globals['_ENTITYEXTENSIONDATAARRAYHEADER']._serialized_end=729 + _globals['_ENTITYEXTENSIONDATAARRAY']._serialized_start=732 + _globals['_ENTITYEXTENSIONDATAARRAY']._serialized_end=968 + _globals['_BATCHEDEXTENSIONRESPONSEHEADER']._serialized_start=970 + _globals['_BATCHEDEXTENSIONRESPONSEHEADER']._serialized_end=1002 + _globals['_BATCHEDEXTENSIONRESPONSE']._serialized_start=1005 + _globals['_BATCHEDEXTENSIONRESPONSE']._serialized_end=1184 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/ExtensionKind_pb2.py b/librespot/proto/ExtensionKind_pb2.py index 44d2906e..f3e21f9c 100644 --- a/librespot/proto/ExtensionKind_pb2.py +++ b/librespot/proto/ExtensionKind_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: extension_kind.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'extension_kind.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,12 +26,12 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x65xtension_kind.proto\x12\x18spotify.extendedmetadata*\xbb#\n\rExtensionKind\x12\x15\n\x11UNKNOWN_EXTENSION\x10\x00\x12\n\n\x06\x43\x41NVAZ\x10\x01\x12\x0e\n\nSTORYLINES\x10\x02\x12\x12\n\x0ePODCAST_TOPICS\x10\x03\x12\x14\n\x10PODCAST_SEGMENTS\x10\x04\x12\x0f\n\x0b\x41UDIO_FILES\x10\x05\x12\x14\n\x10TRACK_DESCRIPTOR\x10\x06\x12\x13\n\x0fPODCAST_COUNTER\x10\x07\x12\r\n\tARTIST_V4\x10\x08\x12\x0c\n\x08\x41LBUM_V4\x10\t\x12\x0c\n\x08TRACK_V4\x10\n\x12\x0b\n\x07SHOW_V4\x10\x0b\x12\x0e\n\nEPISODE_V4\x10\x0c\x12\x1c\n\x18PODCAST_HTML_DESCRIPTION\x10\r\x12\x12\n\x0ePODCAST_QUOTES\x10\x0e\x12\x10\n\x0cUSER_PROFILE\x10\x0f\x12\r\n\tCANVAS_V1\x10\x10\x12\x10\n\x0cSHOW_V4_BASE\x10\x11\x12\x1a\n\x16SHOW_V4_EPISODES_ASSOC\x10\x12\x12\x1f\n\x1bTRACK_DESCRIPTOR_SIGNATURES\x10\x13\x12\x17\n\x13PODCAST_AD_SEGMENTS\x10\x14\x12\x17\n\x13\x45PISODE_TRANSCRIPTS\x10\x15\x12\x19\n\x15PODCAST_SUBSCRIPTIONS\x10\x16\x12\x13\n\x0f\x45XTRACTED_COLOR\x10\x17\x12\x14\n\x10PODCAST_VIRALITY\x10\x18\x12\x17\n\x13IMAGE_SPARKLES_HACK\x10\x19\x12\x1b\n\x17PODCAST_POPULARITY_HACK\x10\x1a\x12\x10\n\x0c\x41UTOMIX_MODE\x10\x1b\x12\r\n\tCUEPOINTS\x10\x1c\x12\x10\n\x0cPODCAST_POLL\x10\x1d\x12\x12\n\x0e\x45PISODE_ACCESS\x10\x1e\x12\x0f\n\x0bSHOW_ACCESS\x10\x1f\x12\x0f\n\x0bPODCAST_QNA\x10 \x12\t\n\x05\x43LIPS\x10!\x12\x0b\n\x07SHOW_V5\x10\"\x12\x0e\n\nEPISODE_V5\x10#\x12\x15\n\x11PODCAST_CTA_CARDS\x10$\x12\x12\n\x0ePODCAST_RATING\x10%\x12\x14\n\x10\x44ISPLAY_SEGMENTS\x10&\x12\r\n\tGREENROOM\x10\'\x12\x10\n\x0cUSER_CREATED\x10(\x12\x14\n\x10SHOW_DESCRIPTION\x10)\x12\x19\n\x15SHOW_HTML_DESCRIPTION\x10*\x12\x14\n\x10SHOW_PLAYABILITY\x10+\x12\x17\n\x13\x45PISODE_DESCRIPTION\x10,\x12\x1c\n\x18\x45PISODE_HTML_DESCRIPTION\x10-\x12\x17\n\x13\x45PISODE_PLAYABILITY\x10.\x12\x17\n\x13SHOW_EPISODES_ASSOC\x10/\x12\x11\n\rCLIENT_CONFIG\x10\x30\x12\x13\n\x0fPLAYLISTABILITY\x10\x31\x12\x10\n\x0c\x41UDIOBOOK_V5\x10\x32\x12\x0e\n\nCHAPTER_V5\x10\x33\x12\x17\n\x13\x41UDIOBOOK_SPECIFICS\x10\x34\x12\x13\n\x0f\x45PISODE_RANKING\x10\x35\x12\x14\n\x10HTML_DESCRIPTION\x10\x36\x12\x13\n\x0f\x43REATOR_CHANNEL\x10\x37\x12\x17\n\x13\x41UDIOBOOK_PROVIDERS\x10\x38\x12\x0e\n\nPLAY_TRAIT\x10\x39\x12\x13\n\x0f\x43ONTENT_WARNING\x10:\x12\r\n\tIMAGE_CUE\x10;\x12\x10\n\x0cSTREAM_COUNT\x10<\x12\x14\n\x10\x41UDIO_ATTRIBUTES\x10=\x12\x13\n\x0fNAVIGABLE_TRAIT\x10>\x12\x15\n\x11NEXT_BEST_EPISODE\x10?\x12\x13\n\x0f\x41UDIOBOOK_PRICE\x10@\x12\x18\n\x14\x45XPRESSIVE_PLAYLISTS\x10\x41\x12\x18\n\x14\x44YNAMIC_SHOW_EPISODE\x10\x42\x12\x08\n\x04LIVE\x10\x43\x12\x0f\n\x0bSKIP_PLAYED\x10\x44\x12\x1a\n\x16\x41\x44_BREAK_FREE_PODCASTS\x10\x45\x12\x10\n\x0c\x41SSOCIATIONS\x10\x46\x12\x17\n\x13PLAYLIST_EVALUATION\x10G\x12\x17\n\x13\x43\x41\x43HE_INVALIDATIONS\x10H\x12\x15\n\x11LIVESTREAM_ENTITY\x10I\x12\x18\n\x14SINGLE_TAP_REACTIONS\x10J\x12\x11\n\rUSER_COMMENTS\x10K\x12\x17\n\x13\x43LIENT_RESTRICTIONS\x10L\x12\x11\n\rPODCAST_GUEST\x10M\x12\x0f\n\x0bPLAYABILITY\x10N\x12\x0f\n\x0b\x43OVER_IMAGE\x10O\x12\x0f\n\x0bSHARE_TRAIT\x10P\x12\x14\n\x10INSTANCE_SHARING\x10Q\x12\x0f\n\x0b\x41RTIST_TOUR\x10R\x12\x13\n\x0f\x41UDIOBOOK_GENRE\x10S\x12\x0b\n\x07\x43ONCEPT\x10T\x12\x12\n\x0eORIGINAL_VIDEO\x10U\x12\x11\n\rSMART_SHUFFLE\x10V\x12\x0f\n\x0bLIVE_EVENTS\x10W\x12\x17\n\x13\x41UDIOBOOK_RELATIONS\x10X\x12\x15\n\x11HOME_POC_BASECARD\x10Y\x12\x19\n\x15\x41UDIOBOOK_SUPPLEMENTS\x10Z\x12\x17\n\x13PAID_PODCAST_BANNER\x10[\x12\r\n\tFEWER_ADS\x10\\\x12\x1c\n\x18WATCH_FEED_SHOW_EXPLORER\x10]\x12\x1b\n\x17TRACK_EXTRA_DESCRIPTORS\x10^\x12 \n\x1cTRACK_EXTRA_AUDIO_ATTRIBUTES\x10_\x12\x1a\n\x16TRACK_EXTENDED_CREDITS\x10`\x12\x10\n\x0cSIMPLE_TRAIT\x10\x61\x12\x16\n\x12\x41UDIO_ASSOCIATIONS\x10\x62\x12\x16\n\x12VIDEO_ASSOCIATIONS\x10\x63\x12\x12\n\x0ePLAYLIST_TUNER\x10\x64\x12\x1c\n\x18\x41RTIST_VIDEOS_ENTRYPOINT\x10\x65\x12\x14\n\x10\x41LBUM_PRERELEASE\x10\x66\x12\x18\n\x14\x43ONTENT_ALTERNATIVES\x10g\x12\x14\n\x10SNAPSHOT_SHARING\x10i\x12\x1a\n\x16\x44ISPLAY_SEGMENTS_COUNT\x10j\x12\x1c\n\x18PODCAST_FEATURED_EPISODE\x10k\x12\x1d\n\x19PODCAST_SPONSORED_CONTENT\x10l\x12\x1e\n\x1aPODCAST_EPISODE_TOPICS_LLM\x10m\x12\x1d\n\x19PODCAST_EPISODE_TOPICS_KG\x10n\x12\x1e\n\x1a\x45PISODE_RANKING_POPULARITY\x10o\x12\t\n\x05MERCH\x10p\x12\x15\n\x11\x43OMPANION_CONTENT\x10q\x12\x1e\n\x1aWATCH_FEED_ENTITY_EXPLORER\x10r\x12\x15\n\x11\x41NCHOR_CARD_TRAIT\x10s\x12 \n\x1c\x41UDIO_PREVIEW_PLAYBACK_TRAIT\x10t\x12\x1d\n\x19VIDEO_PREVIEW_STILL_TRAIT\x10u\x12\x16\n\x12PREVIEW_CARD_TRAIT\x10v\x12\x18\n\x14SHORTCUTS_CARD_TRAIT\x10w\x12 \n\x1cVIDEO_PREVIEW_PLAYBACK_TRAIT\x10x\x12\x14\n\x10\x43OURSE_SPECIFICS\x10y\x12\x0b\n\x07\x43ONCERT\x10z\x12\x14\n\x10\x43ONCERT_LOCATION\x10{\x12\x15\n\x11\x43ONCERT_MARKETING\x10|\x12\x16\n\x12\x43ONCERT_PERFORMERS\x10}\x12\x19\n\x15TRACK_PAIR_TRANSITION\x10~\x12\x16\n\x12\x43ONTENT_TYPE_TRAIT\x10\x7f\x12\x0f\n\nNAME_TRAIT\x10\x80\x01\x12\x12\n\rARTWORK_TRAIT\x10\x81\x01\x12\x17\n\x12RELEASE_DATE_TRAIT\x10\x82\x01\x12\x12\n\rCREDITS_TRAIT\x10\x83\x01\x12\x16\n\x11RELEASE_URI_TRAIT\x10\x84\x01\x12\x13\n\x0e\x45NTITY_CAPPING\x10\x85\x01\x12\x15\n\x10LESSON_SPECIFICS\x10\x86\x01\x12\x13\n\x0e\x43ONCERT_OFFERS\x10\x87\x01\x12\x14\n\x0fTRANSITION_MAPS\x10\x88\x01\x12\x18\n\x13\x41RTIST_HAS_CONCERTS\x10\x89\x01\x12\x0f\n\nPRERELEASE\x10\x8a\x01\x12\x1b\n\x16PLAYLIST_ATTRIBUTES_V2\x10\x8b\x01\x12\x17\n\x12LIST_ATTRIBUTES_V2\x10\x8c\x01\x12\x12\n\rLIST_METADATA\x10\x8d\x01\x12\x1e\n\x19LIST_TUNER_AUDIO_ANALYSIS\x10\x8e\x01\x12\x19\n\x14LIST_TUNER_CUEPOINTS\x10\x8f\x01\x12\x19\n\x14\x43ONTENT_RATING_TRAIT\x10\x90\x01\x12\x14\n\x0f\x43OPYRIGHT_TRAIT\x10\x91\x01\x12\x15\n\x10SUPPORTED_BADGES\x10\x92\x01\x12\x0b\n\x06\x42\x41\x44GES\x10\x93\x01\x12\x12\n\rPREVIEW_TRAIT\x10\x94\x01\x12\x1a\n\x15ROOTLISTABILITY_TRAIT\x10\x95\x01\x12\x13\n\x0eLOCAL_CONCERTS\x10\x96\x01\x12\x1a\n\x15RECOMMENDED_PLAYLISTS\x10\x97\x01\x12\x15\n\x10POPULAR_RELEASES\x10\x98\x01\x12\x15\n\x10RELATED_RELEASES\x10\x99\x01\x12\x17\n\x12SHARE_RESTRICTIONS\x10\x9a\x01\x12\x12\n\rCONCERT_OFFER\x10\x9b\x01\x12\x1b\n\x16\x43ONCERT_OFFER_PROVIDER\x10\x9c\x01\x12\x15\n\x10\x45NTITY_BOOKMARKS\x10\x9d\x01\x12\x12\n\rPRIVACY_TRAIT\x10\x9e\x01\x12\x1a\n\x15\x44UPLICATE_ITEMS_TRAIT\x10\x9f\x01\x12\x15\n\x10REORDERING_TRAIT\x10\xa0\x01\x12 \n\x1bPODCAST_RESUMPTION_SEGMENTS\x10\xa1\x01\x12\x1c\n\x17\x41RTIST_EXPRESSION_VIDEO\x10\xa2\x01\x12\x15\n\x10PRERELEASE_VIDEO\x10\xa3\x01\x12\x1b\n\x16GATED_ENTITY_RELATIONS\x10\xa4\x01\x12\x1d\n\x18RELATED_CREATORS_SECTION\x10\xa5\x01\x12 \n\x1b\x43REATORS_APPEARS_ON_SECTION\x10\xa6\x01\x12\x13\n\x0ePROMO_V1_TRAIT\x10\xa7\x01\x12\x1a\n\x15SPEECHLESS_SHARE_CARD\x10\xa8\x01\x12\x1a\n\x15TOP_PLAYABLES_SECTION\x10\xa9\x01\x12\x0e\n\tAUTO_LENS\x10\xaa\x01\x12\x13\n\x0ePROMO_V3_TRAIT\x10\xab\x01\x12\x19\n\x14TRACK_CONTENT_FILTER\x10\xac\x01\x12\x15\n\x10HIGHLIGHTABILITY\x10\xad\x01\x12\x1f\n\x1aLINK_CARD_WITH_IMAGE_TRAIT\x10\xae\x01\x12\x18\n\x13TRACK_CLOUD_SECTION\x10\xaf\x01\x12\x13\n\x0e\x45PISODE_TOPICS\x10\xb0\x01\x12\x14\n\x0fVIDEO_THUMBNAIL\x10\xb1\x01\x12\x13\n\x0eIDENTITY_TRAIT\x10\xb2\x01\x12\x1a\n\x15VISUAL_IDENTITY_TRAIT\x10\xb3\x01\x12\x1a\n\x15\x43ONTENT_TYPE_V2_TRAIT\x10\xb4\x01\x12\x1b\n\x16PREVIEW_PLAYBACK_TRAIT\x10\xb5\x01\x12!\n\x1c\x43ONSUMPTION_EXPERIENCE_TRAIT\x10\xb6\x01\x12\x1e\n\x19PUBLISHING_METADATA_TRAIT\x10\xb7\x01\x12\x1e\n\x19\x44\x45TAILED_EVALUATION_TRAIT\x10\xb8\x01\x12!\n\x1cON_PLATFORM_REPUTATION_TRAIT\x10\xb9\x01\x12\x15\n\x10\x43REDITS_V2_TRAIT\x10\xba\x01\x12 \n\x1bHIGHLIGHT_PLAYABILITY_TRAIT\x10\xbb\x01\x12\x16\n\x11SHOW_EPISODE_LIST\x10\xbc\x01\x12\x17\n\x12\x41VAILABLE_RELEASES\x10\xbd\x01\x12\x19\n\x14PLAYLIST_DESCRIPTORS\x10\xbe\x01\x12$\n\x1fLINK_CARD_WITH_ANIMATIONS_TRAIT\x10\xbf\x01\x12\n\n\x05RECAP\x10\xc0\x01\x12 \n\x1b\x41UDIOBOOK_COMPANION_CONTENT\x10\xc1\x01\x12\x1e\n\x19THREE_OH_THREE_PLAY_TRAIT\x10\xc2\x01\x12\x1e\n\x19\x41RTIST_WRAPPED_2024_VIDEO\x10\xc3\x01\x42\x41\n\"com.spotify.extendedmetadata.protoH\x02P\x01\xf8\x01\x01\xa2\x02\x13SPTExtendedMetadatab\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ExtensionKind_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\"com.spotify.extendedmetadata.protoH\002P\001\370\001\001\242\002\023SPTExtendedMetadata' - _EXTENSIONKIND._serialized_start=51 - _EXTENSIONKIND._serialized_end=4590 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'extension_kind_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\"com.spotify.extendedmetadata.protoH\002P\001\370\001\001\242\002\023SPTExtendedMetadata' + _globals['_EXTENSIONKIND']._serialized_start=51 + _globals['_EXTENSIONKIND']._serialized_end=4590 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Keyexchange_pb2.py b/librespot/proto/Keyexchange_pb2.py index 663ee3bd..099b722c 100644 --- a/librespot/proto/Keyexchange_pb2.py +++ b/librespot/proto/Keyexchange_pb2.py @@ -1,2497 +1,103 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: keyexchange.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'keyexchange.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name='keyexchange.proto', - package='spotify', - syntax='proto2', - serialized_options=b'\n\013com.spotify', - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x11keyexchange.proto\x12\x07spotify\"\xe0\x02\n\x0b\x43lientHello\x12&\n\nbuild_info\x18\n \x02(\x0b\x32\x12.spotify.BuildInfo\x12\x34\n\x16\x66ingerprints_supported\x18\x14 \x03(\x0e\x32\x14.spotify.Fingerprint\x12\x34\n\x16\x63ryptosuites_supported\x18\x1e \x03(\x0e\x32\x14.spotify.Cryptosuite\x12\x30\n\x14powschemes_supported\x18( \x03(\x0e\x32\x12.spotify.Powscheme\x12:\n\x12login_crypto_hello\x18\x32 \x02(\x0b\x32\x1e.spotify.LoginCryptoHelloUnion\x12\x14\n\x0c\x63lient_nonce\x18< \x02(\x0c\x12\x0f\n\x07padding\x18\x46 \x01(\x0c\x12(\n\x0b\x66\x65\x61ture_set\x18P \x01(\x0b\x32\x13.spotify.FeatureSet\"\x92\x01\n\tBuildInfo\x12!\n\x07product\x18\n \x02(\x0e\x32\x10.spotify.Product\x12,\n\rproduct_flags\x18\x14 \x03(\x0e\x32\x15.spotify.ProductFlags\x12#\n\x08platform\x18\x1e \x02(\x0e\x32\x11.spotify.Platform\x12\x0f\n\x07version\x18( \x02(\x04\"W\n\x15LoginCryptoHelloUnion\x12>\n\x0e\x64iffie_hellman\x18\n \x01(\x0b\x32&.spotify.LoginCryptoDiffieHellmanHello\"F\n\x1dLoginCryptoDiffieHellmanHello\x12\n\n\x02gc\x18\n \x02(\x0c\x12\x19\n\x11server_keys_known\x18\x14 \x02(\r\";\n\nFeatureSet\x12\x13\n\x0b\x61utoupdate2\x18\x01 \x01(\x08\x12\x18\n\x10\x63urrent_location\x18\x02 \x01(\x08\"\x9c\x01\n\x11\x41PResponseMessage\x12\'\n\tchallenge\x18\n \x01(\x0b\x32\x14.spotify.APChallenge\x12\x30\n\x07upgrade\x18\x14 \x01(\x0b\x32\x1f.spotify.UpgradeRequiredMessage\x12,\n\x0clogin_failed\x18\x1e \x01(\x0b\x32\x16.spotify.APLoginFailed\"\xa7\x02\n\x0b\x41PChallenge\x12\x42\n\x16login_crypto_challenge\x18\n \x02(\x0b\x32\".spotify.LoginCryptoChallengeUnion\x12\x41\n\x15\x66ingerprint_challenge\x18\x14 \x02(\x0b\x32\".spotify.FingerprintChallengeUnion\x12\x31\n\rpow_challenge\x18\x1e \x02(\x0b\x32\x1a.spotify.PoWChallengeUnion\x12\x37\n\x10\x63rypto_challenge\x18( \x02(\x0b\x32\x1d.spotify.CryptoChallengeUnion\x12\x14\n\x0cserver_nonce\x18\x32 \x02(\x0c\x12\x0f\n\x07padding\x18< \x01(\x0c\"_\n\x19LoginCryptoChallengeUnion\x12\x42\n\x0e\x64iffie_hellman\x18\n \x01(\x0b\x32*.spotify.LoginCryptoDiffieHellmanChallenge\"c\n!LoginCryptoDiffieHellmanChallenge\x12\n\n\x02gs\x18\n \x02(\x0c\x12\x1c\n\x14server_signature_key\x18\x14 \x02(\x05\x12\x14\n\x0cgs_signature\x18\x1e \x02(\x0c\"\x8c\x01\n\x19\x46ingerprintChallengeUnion\x12\x31\n\x05grain\x18\n \x01(\x0b\x32\".spotify.FingerprintGrainChallenge\x12<\n\x0bhmac_ripemd\x18\x14 \x01(\x0b\x32\'.spotify.FingerprintHmacRipemdChallenge\"(\n\x19\x46ingerprintGrainChallenge\x12\x0b\n\x03kek\x18\n \x02(\x0c\"3\n\x1e\x46ingerprintHmacRipemdChallenge\x12\x11\n\tchallenge\x18\n \x02(\x0c\"E\n\x11PoWChallengeUnion\x12\x30\n\thash_cash\x18\n \x01(\x0b\x32\x1d.spotify.PoWHashCashChallenge\"F\n\x14PoWHashCashChallenge\x12\x0e\n\x06prefix\x18\n \x01(\x0c\x12\x0e\n\x06length\x18\x14 \x01(\x05\x12\x0e\n\x06target\x18\x1e \x01(\x05\"\x84\x01\n\x14\x43ryptoChallengeUnion\x12\x30\n\x07shannon\x18\n \x01(\x0b\x32\x1f.spotify.CryptoShannonChallenge\x12:\n\rrc4_sha1_hmac\x18\x14 \x01(\x0b\x32#.spotify.CryptoRc4Sha1HmacChallenge\"\x18\n\x16\x43ryptoShannonChallenge\"\x1c\n\x1a\x43ryptoRc4Sha1HmacChallenge\"]\n\x16UpgradeRequiredMessage\x12\x1b\n\x13upgrade_signed_part\x18\n \x02(\x0c\x12\x11\n\tsignature\x18\x14 \x02(\x0c\x12\x13\n\x0bhttp_suffix\x18\x1e \x01(\t\"w\n\rAPLoginFailed\x12&\n\nerror_code\x18\n \x02(\x0e\x32\x12.spotify.ErrorCode\x12\x13\n\x0bretry_delay\x18\x14 \x01(\x05\x12\x0e\n\x06\x65xpiry\x18\x1e \x01(\x05\x12\x19\n\x11\x65rror_description\x18( \x01(\t\"\xc3\x01\n\x17\x43lientResponsePlaintext\x12@\n\x15login_crypto_response\x18\n \x02(\x0b\x32!.spotify.LoginCryptoResponseUnion\x12/\n\x0cpow_response\x18\x14 \x02(\x0b\x32\x19.spotify.PoWResponseUnion\x12\x35\n\x0f\x63rypto_response\x18\x1e \x02(\x0b\x32\x1c.spotify.CryptoResponseUnion\"]\n\x18LoginCryptoResponseUnion\x12\x41\n\x0e\x64iffie_hellman\x18\n \x01(\x0b\x32).spotify.LoginCryptoDiffieHellmanResponse\"0\n LoginCryptoDiffieHellmanResponse\x12\x0c\n\x04hmac\x18\n \x02(\x0c\"C\n\x10PoWResponseUnion\x12/\n\thash_cash\x18\n \x01(\x0b\x32\x1c.spotify.PoWHashCashResponse\"*\n\x13PoWHashCashResponse\x12\x13\n\x0bhash_suffix\x18\n \x02(\x0c\"\x81\x01\n\x13\x43ryptoResponseUnion\x12/\n\x07shannon\x18\n \x01(\x0b\x32\x1e.spotify.CryptoShannonResponse\x12\x39\n\rrc4_sha1_hmac\x18\x14 \x01(\x0b\x32\".spotify.CryptoRc4Sha1HmacResponse\"&\n\x15\x43ryptoShannonResponse\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\"*\n\x19\x43ryptoRc4Sha1HmacResponse\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05*\x7f\n\x07Product\x12\x12\n\x0ePRODUCT_CLIENT\x10\x00\x12\x16\n\x12PRODUCT_LIBSPOTIFY\x10\x01\x12\x12\n\x0ePRODUCT_MOBILE\x10\x02\x12\x13\n\x0fPRODUCT_PARTNER\x10\x03\x12\x1f\n\x1bPRODUCT_LIBSPOTIFY_EMBEDDED\x10\x05*A\n\x0cProductFlags\x12\x15\n\x11PRODUCT_FLAG_NONE\x10\x00\x12\x1a\n\x16PRODUCT_FLAG_DEV_BUILD\x10\x01*\xdc\x04\n\x08Platform\x12\x16\n\x12PLATFORM_WIN32_X86\x10\x00\x12\x14\n\x10PLATFORM_OSX_X86\x10\x01\x12\x16\n\x12PLATFORM_LINUX_X86\x10\x02\x12\x17\n\x13PLATFORM_IPHONE_ARM\x10\x03\x12\x14\n\x10PLATFORM_S60_ARM\x10\x04\x12\x14\n\x10PLATFORM_OSX_PPC\x10\x05\x12\x18\n\x14PLATFORM_ANDROID_ARM\x10\x06\x12\x1b\n\x17PLATFORM_WINDOWS_CE_ARM\x10\x07\x12\x19\n\x15PLATFORM_LINUX_X86_64\x10\x08\x12\x17\n\x13PLATFORM_OSX_X86_64\x10\t\x12\x15\n\x11PLATFORM_PALM_ARM\x10\n\x12\x15\n\x11PLATFORM_LINUX_SH\x10\x0b\x12\x18\n\x14PLATFORM_FREEBSD_X86\x10\x0c\x12\x1b\n\x17PLATFORM_FREEBSD_X86_64\x10\r\x12\x1b\n\x17PLATFORM_BLACKBERRY_ARM\x10\x0e\x12\x12\n\x0ePLATFORM_SONOS\x10\x0f\x12\x17\n\x13PLATFORM_LINUX_MIPS\x10\x10\x12\x16\n\x12PLATFORM_LINUX_ARM\x10\x11\x12\x19\n\x15PLATFORM_LOGITECH_ARM\x10\x12\x12\x1b\n\x17PLATFORM_LINUX_BLACKFIN\x10\x13\x12\x14\n\x10PLATFORM_WP7_ARM\x10\x14\x12\x16\n\x12PLATFORM_ONKYO_ARM\x10\x15\x12\x17\n\x13PLATFORM_QNXNTO_ARM\x10\x16\x12\x14\n\x10PLATFORM_BCO_ARM\x10\x17*A\n\x0b\x46ingerprint\x12\x15\n\x11\x46INGERPRINT_GRAIN\x10\x00\x12\x1b\n\x17\x46INGERPRINT_HMAC_RIPEMD\x10\x01*G\n\x0b\x43ryptosuite\x12\x18\n\x14\x43RYPTO_SUITE_SHANNON\x10\x00\x12\x1e\n\x1a\x43RYPTO_SUITE_RC4_SHA1_HMAC\x10\x01*\x1e\n\tPowscheme\x12\x11\n\rPOW_HASH_CASH\x10\x00*\x89\x02\n\tErrorCode\x12\x11\n\rProtocolError\x10\x00\x12\x10\n\x0cTryAnotherAP\x10\x02\x12\x13\n\x0f\x42\x61\x64\x43onnectionId\x10\x05\x12\x15\n\x11TravelRestriction\x10\t\x12\x1a\n\x16PremiumAccountRequired\x10\x0b\x12\x12\n\x0e\x42\x61\x64\x43redentials\x10\x0c\x12\x1f\n\x1b\x43ouldNotValidateCredentials\x10\r\x12\x11\n\rAccountExists\x10\x0e\x12\x1d\n\x19\x45xtraVerificationRequired\x10\x0f\x12\x11\n\rInvalidAppKey\x10\x10\x12\x15\n\x11\x41pplicationBanned\x10\x11\x42\r\n\x0b\x63om.spotify' -) - -_PRODUCT = _descriptor.EnumDescriptor( - name='Product', - full_name='spotify.Product', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='PRODUCT_CLIENT', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PRODUCT_LIBSPOTIFY', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PRODUCT_MOBILE', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PRODUCT_PARTNER', - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PRODUCT_LIBSPOTIFY_EMBEDDED', - index=4, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2871, - serialized_end=2998, -) -_sym_db.RegisterEnumDescriptor(_PRODUCT) - -Product = enum_type_wrapper.EnumTypeWrapper(_PRODUCT) -_PRODUCTFLAGS = _descriptor.EnumDescriptor( - name='ProductFlags', - full_name='spotify.ProductFlags', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='PRODUCT_FLAG_NONE', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PRODUCT_FLAG_DEV_BUILD', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=3000, - serialized_end=3065, -) -_sym_db.RegisterEnumDescriptor(_PRODUCTFLAGS) - -ProductFlags = enum_type_wrapper.EnumTypeWrapper(_PRODUCTFLAGS) -_PLATFORM = _descriptor.EnumDescriptor( - name='Platform', - full_name='spotify.Platform', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='PLATFORM_WIN32_X86', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_OSX_X86', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_LINUX_X86', - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_IPHONE_ARM', - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_S60_ARM', - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_OSX_PPC', - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_ANDROID_ARM', - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_WINDOWS_CE_ARM', - index=7, - number=7, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_LINUX_X86_64', - index=8, - number=8, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_OSX_X86_64', - index=9, - number=9, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_PALM_ARM', - index=10, - number=10, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_LINUX_SH', - index=11, - number=11, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_FREEBSD_X86', - index=12, - number=12, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_FREEBSD_X86_64', - index=13, - number=13, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_BLACKBERRY_ARM', - index=14, - number=14, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_SONOS', - index=15, - number=15, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_LINUX_MIPS', - index=16, - number=16, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_LINUX_ARM', - index=17, - number=17, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_LOGITECH_ARM', - index=18, - number=18, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_LINUX_BLACKFIN', - index=19, - number=19, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_WP7_ARM', - index=20, - number=20, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_ONKYO_ARM', - index=21, - number=21, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_QNXNTO_ARM', - index=22, - number=22, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PLATFORM_BCO_ARM', - index=23, - number=23, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=3068, - serialized_end=3672, -) -_sym_db.RegisterEnumDescriptor(_PLATFORM) - -Platform = enum_type_wrapper.EnumTypeWrapper(_PLATFORM) -_FINGERPRINT = _descriptor.EnumDescriptor( - name='Fingerprint', - full_name='spotify.Fingerprint', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='FINGERPRINT_GRAIN', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='FINGERPRINT_HMAC_RIPEMD', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=3674, - serialized_end=3739, -) -_sym_db.RegisterEnumDescriptor(_FINGERPRINT) - -Fingerprint = enum_type_wrapper.EnumTypeWrapper(_FINGERPRINT) -_CRYPTOSUITE = _descriptor.EnumDescriptor( - name='Cryptosuite', - full_name='spotify.Cryptosuite', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='CRYPTO_SUITE_SHANNON', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CRYPTO_SUITE_RC4_SHA1_HMAC', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=3741, - serialized_end=3812, -) -_sym_db.RegisterEnumDescriptor(_CRYPTOSUITE) - -Cryptosuite = enum_type_wrapper.EnumTypeWrapper(_CRYPTOSUITE) -_POWSCHEME = _descriptor.EnumDescriptor( - name='Powscheme', - full_name='spotify.Powscheme', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='POW_HASH_CASH', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=3814, - serialized_end=3844, -) -_sym_db.RegisterEnumDescriptor(_POWSCHEME) - -Powscheme = enum_type_wrapper.EnumTypeWrapper(_POWSCHEME) -_ERRORCODE = _descriptor.EnumDescriptor( - name='ErrorCode', - full_name='spotify.ErrorCode', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='ProtocolError', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='TryAnotherAP', - index=1, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='BadConnectionId', - index=2, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='TravelRestriction', - index=3, - number=9, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PremiumAccountRequired', - index=4, - number=11, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='BadCredentials', - index=5, - number=12, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CouldNotValidateCredentials', - index=6, - number=13, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='AccountExists', - index=7, - number=14, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='ExtraVerificationRequired', - index=8, - number=15, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='InvalidAppKey', - index=9, - number=16, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='ApplicationBanned', - index=10, - number=17, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=3847, - serialized_end=4112, -) -_sym_db.RegisterEnumDescriptor(_ERRORCODE) - -ErrorCode = enum_type_wrapper.EnumTypeWrapper(_ERRORCODE) -PRODUCT_CLIENT = 0 -PRODUCT_LIBSPOTIFY = 1 -PRODUCT_MOBILE = 2 -PRODUCT_PARTNER = 3 -PRODUCT_LIBSPOTIFY_EMBEDDED = 5 -PRODUCT_FLAG_NONE = 0 -PRODUCT_FLAG_DEV_BUILD = 1 -PLATFORM_WIN32_X86 = 0 -PLATFORM_OSX_X86 = 1 -PLATFORM_LINUX_X86 = 2 -PLATFORM_IPHONE_ARM = 3 -PLATFORM_S60_ARM = 4 -PLATFORM_OSX_PPC = 5 -PLATFORM_ANDROID_ARM = 6 -PLATFORM_WINDOWS_CE_ARM = 7 -PLATFORM_LINUX_X86_64 = 8 -PLATFORM_OSX_X86_64 = 9 -PLATFORM_PALM_ARM = 10 -PLATFORM_LINUX_SH = 11 -PLATFORM_FREEBSD_X86 = 12 -PLATFORM_FREEBSD_X86_64 = 13 -PLATFORM_BLACKBERRY_ARM = 14 -PLATFORM_SONOS = 15 -PLATFORM_LINUX_MIPS = 16 -PLATFORM_LINUX_ARM = 17 -PLATFORM_LOGITECH_ARM = 18 -PLATFORM_LINUX_BLACKFIN = 19 -PLATFORM_WP7_ARM = 20 -PLATFORM_ONKYO_ARM = 21 -PLATFORM_QNXNTO_ARM = 22 -PLATFORM_BCO_ARM = 23 -FINGERPRINT_GRAIN = 0 -FINGERPRINT_HMAC_RIPEMD = 1 -CRYPTO_SUITE_SHANNON = 0 -CRYPTO_SUITE_RC4_SHA1_HMAC = 1 -POW_HASH_CASH = 0 -ProtocolError = 0 -TryAnotherAP = 2 -BadConnectionId = 5 -TravelRestriction = 9 -PremiumAccountRequired = 11 -BadCredentials = 12 -CouldNotValidateCredentials = 13 -AccountExists = 14 -ExtraVerificationRequired = 15 -InvalidAppKey = 16 -ApplicationBanned = 17 - -_CLIENTHELLO = _descriptor.Descriptor( - name='ClientHello', - full_name='spotify.ClientHello', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='build_info', - full_name='spotify.ClientHello.build_info', - index=0, - number=10, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fingerprints_supported', - full_name='spotify.ClientHello.fingerprints_supported', - index=1, - number=20, - type=14, - cpp_type=8, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cryptosuites_supported', - full_name='spotify.ClientHello.cryptosuites_supported', - index=2, - number=30, - type=14, - cpp_type=8, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='powschemes_supported', - full_name='spotify.ClientHello.powschemes_supported', - index=3, - number=40, - type=14, - cpp_type=8, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='login_crypto_hello', - full_name='spotify.ClientHello.login_crypto_hello', - index=4, - number=50, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='client_nonce', - full_name='spotify.ClientHello.client_nonce', - index=5, - number=60, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='padding', - full_name='spotify.ClientHello.padding', - index=6, - number=70, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='feature_set', - full_name='spotify.ClientHello.feature_set', - index=7, - number=80, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=31, - serialized_end=383, -) - -_BUILDINFO = _descriptor.Descriptor( - name='BuildInfo', - full_name='spotify.BuildInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='product', - full_name='spotify.BuildInfo.product', - index=0, - number=10, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='product_flags', - full_name='spotify.BuildInfo.product_flags', - index=1, - number=20, - type=14, - cpp_type=8, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='platform', - full_name='spotify.BuildInfo.platform', - index=2, - number=30, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='version', - full_name='spotify.BuildInfo.version', - index=3, - number=40, - type=4, - cpp_type=4, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=386, - serialized_end=532, -) - -_LOGINCRYPTOHELLOUNION = _descriptor.Descriptor( - name='LoginCryptoHelloUnion', - full_name='spotify.LoginCryptoHelloUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='diffie_hellman', - full_name='spotify.LoginCryptoHelloUnion.diffie_hellman', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=534, - serialized_end=621, -) - -_LOGINCRYPTODIFFIEHELLMANHELLO = _descriptor.Descriptor( - name='LoginCryptoDiffieHellmanHello', - full_name='spotify.LoginCryptoDiffieHellmanHello', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='gc', - full_name='spotify.LoginCryptoDiffieHellmanHello.gc', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='server_keys_known', - full_name='spotify.LoginCryptoDiffieHellmanHello.server_keys_known', - index=1, - number=20, - type=13, - cpp_type=3, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=623, - serialized_end=693, -) - -_FEATURESET = _descriptor.Descriptor( - name='FeatureSet', - full_name='spotify.FeatureSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='autoupdate2', - full_name='spotify.FeatureSet.autoupdate2', - index=0, - number=1, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='current_location', - full_name='spotify.FeatureSet.current_location', - index=1, - number=2, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=695, - serialized_end=754, -) - -_APRESPONSEMESSAGE = _descriptor.Descriptor( - name='APResponseMessage', - full_name='spotify.APResponseMessage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='challenge', - full_name='spotify.APResponseMessage.challenge', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='upgrade', - full_name='spotify.APResponseMessage.upgrade', - index=1, - number=20, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='login_failed', - full_name='spotify.APResponseMessage.login_failed', - index=2, - number=30, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=757, - serialized_end=913, -) - -_APCHALLENGE = _descriptor.Descriptor( - name='APChallenge', - full_name='spotify.APChallenge', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='login_crypto_challenge', - full_name='spotify.APChallenge.login_crypto_challenge', - index=0, - number=10, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fingerprint_challenge', - full_name='spotify.APChallenge.fingerprint_challenge', - index=1, - number=20, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pow_challenge', - full_name='spotify.APChallenge.pow_challenge', - index=2, - number=30, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='crypto_challenge', - full_name='spotify.APChallenge.crypto_challenge', - index=3, - number=40, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='server_nonce', - full_name='spotify.APChallenge.server_nonce', - index=4, - number=50, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='padding', - full_name='spotify.APChallenge.padding', - index=5, - number=60, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=916, - serialized_end=1211, -) - -_LOGINCRYPTOCHALLENGEUNION = _descriptor.Descriptor( - name='LoginCryptoChallengeUnion', - full_name='spotify.LoginCryptoChallengeUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='diffie_hellman', - full_name='spotify.LoginCryptoChallengeUnion.diffie_hellman', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1213, - serialized_end=1308, -) - -_LOGINCRYPTODIFFIEHELLMANCHALLENGE = _descriptor.Descriptor( - name='LoginCryptoDiffieHellmanChallenge', - full_name='spotify.LoginCryptoDiffieHellmanChallenge', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='gs', - full_name='spotify.LoginCryptoDiffieHellmanChallenge.gs', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='server_signature_key', - full_name= - 'spotify.LoginCryptoDiffieHellmanChallenge.server_signature_key', - index=1, - number=20, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='gs_signature', - full_name='spotify.LoginCryptoDiffieHellmanChallenge.gs_signature', - index=2, - number=30, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1310, - serialized_end=1409, -) - -_FINGERPRINTCHALLENGEUNION = _descriptor.Descriptor( - name='FingerprintChallengeUnion', - full_name='spotify.FingerprintChallengeUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='grain', - full_name='spotify.FingerprintChallengeUnion.grain', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='hmac_ripemd', - full_name='spotify.FingerprintChallengeUnion.hmac_ripemd', - index=1, - number=20, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1412, - serialized_end=1552, -) - -_FINGERPRINTGRAINCHALLENGE = _descriptor.Descriptor( - name='FingerprintGrainChallenge', - full_name='spotify.FingerprintGrainChallenge', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='kek', - full_name='spotify.FingerprintGrainChallenge.kek', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1554, - serialized_end=1594, -) - -_FINGERPRINTHMACRIPEMDCHALLENGE = _descriptor.Descriptor( - name='FingerprintHmacRipemdChallenge', - full_name='spotify.FingerprintHmacRipemdChallenge', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='challenge', - full_name='spotify.FingerprintHmacRipemdChallenge.challenge', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1596, - serialized_end=1647, -) - -_POWCHALLENGEUNION = _descriptor.Descriptor( - name='PoWChallengeUnion', - full_name='spotify.PoWChallengeUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='hash_cash', - full_name='spotify.PoWChallengeUnion.hash_cash', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1649, - serialized_end=1718, -) - -_POWHASHCASHCHALLENGE = _descriptor.Descriptor( - name='PoWHashCashChallenge', - full_name='spotify.PoWHashCashChallenge', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='prefix', - full_name='spotify.PoWHashCashChallenge.prefix', - index=0, - number=10, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='length', - full_name='spotify.PoWHashCashChallenge.length', - index=1, - number=20, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='target', - full_name='spotify.PoWHashCashChallenge.target', - index=2, - number=30, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1720, - serialized_end=1790, -) - -_CRYPTOCHALLENGEUNION = _descriptor.Descriptor( - name='CryptoChallengeUnion', - full_name='spotify.CryptoChallengeUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='shannon', - full_name='spotify.CryptoChallengeUnion.shannon', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='rc4_sha1_hmac', - full_name='spotify.CryptoChallengeUnion.rc4_sha1_hmac', - index=1, - number=20, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1793, - serialized_end=1925, -) - -_CRYPTOSHANNONCHALLENGE = _descriptor.Descriptor( - name='CryptoShannonChallenge', - full_name='spotify.CryptoShannonChallenge', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1927, - serialized_end=1951, -) - -_CRYPTORC4SHA1HMACCHALLENGE = _descriptor.Descriptor( - name='CryptoRc4Sha1HmacChallenge', - full_name='spotify.CryptoRc4Sha1HmacChallenge', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1953, - serialized_end=1981, -) - -_UPGRADEREQUIREDMESSAGE = _descriptor.Descriptor( - name='UpgradeRequiredMessage', - full_name='spotify.UpgradeRequiredMessage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='upgrade_signed_part', - full_name='spotify.UpgradeRequiredMessage.upgrade_signed_part', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='signature', - full_name='spotify.UpgradeRequiredMessage.signature', - index=1, - number=20, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='http_suffix', - full_name='spotify.UpgradeRequiredMessage.http_suffix', - index=2, - number=30, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=1983, - serialized_end=2076, -) - -_APLOGINFAILED = _descriptor.Descriptor( - name='APLoginFailed', - full_name='spotify.APLoginFailed', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='error_code', - full_name='spotify.APLoginFailed.error_code', - index=0, - number=10, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='retry_delay', - full_name='spotify.APLoginFailed.retry_delay', - index=1, - number=20, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='expiry', - full_name='spotify.APLoginFailed.expiry', - index=2, - number=30, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='error_description', - full_name='spotify.APLoginFailed.error_description', - index=3, - number=40, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=2078, - serialized_end=2197, -) - -_CLIENTRESPONSEPLAINTEXT = _descriptor.Descriptor( - name='ClientResponsePlaintext', - full_name='spotify.ClientResponsePlaintext', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='login_crypto_response', - full_name='spotify.ClientResponsePlaintext.login_crypto_response', - index=0, - number=10, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pow_response', - full_name='spotify.ClientResponsePlaintext.pow_response', - index=1, - number=20, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='crypto_response', - full_name='spotify.ClientResponsePlaintext.crypto_response', - index=2, - number=30, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=2200, - serialized_end=2395, -) - -_LOGINCRYPTORESPONSEUNION = _descriptor.Descriptor( - name='LoginCryptoResponseUnion', - full_name='spotify.LoginCryptoResponseUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='diffie_hellman', - full_name='spotify.LoginCryptoResponseUnion.diffie_hellman', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=2397, - serialized_end=2490, -) - -_LOGINCRYPTODIFFIEHELLMANRESPONSE = _descriptor.Descriptor( - name='LoginCryptoDiffieHellmanResponse', - full_name='spotify.LoginCryptoDiffieHellmanResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='hmac', - full_name='spotify.LoginCryptoDiffieHellmanResponse.hmac', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=2492, - serialized_end=2540, -) - -_POWRESPONSEUNION = _descriptor.Descriptor( - name='PoWResponseUnion', - full_name='spotify.PoWResponseUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='hash_cash', - full_name='spotify.PoWResponseUnion.hash_cash', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=2542, - serialized_end=2609, -) - -_POWHASHCASHRESPONSE = _descriptor.Descriptor( - name='PoWHashCashResponse', - full_name='spotify.PoWHashCashResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='hash_suffix', - full_name='spotify.PoWHashCashResponse.hash_suffix', - index=0, - number=10, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=2611, - serialized_end=2653, -) - -_CRYPTORESPONSEUNION = _descriptor.Descriptor( - name='CryptoResponseUnion', - full_name='spotify.CryptoResponseUnion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='shannon', - full_name='spotify.CryptoResponseUnion.shannon', - index=0, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='rc4_sha1_hmac', - full_name='spotify.CryptoResponseUnion.rc4_sha1_hmac', - index=1, - number=20, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=2656, - serialized_end=2785, -) - -_CRYPTOSHANNONRESPONSE = _descriptor.Descriptor( - name='CryptoShannonResponse', - full_name='spotify.CryptoShannonResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='dummy', - full_name='spotify.CryptoShannonResponse.dummy', - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=2787, - serialized_end=2825, -) - -_CRYPTORC4SHA1HMACRESPONSE = _descriptor.Descriptor( - name='CryptoRc4Sha1HmacResponse', - full_name='spotify.CryptoRc4Sha1HmacResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='dummy', - full_name='spotify.CryptoRc4Sha1HmacResponse.dummy', - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=2827, - serialized_end=2869, -) - -_CLIENTHELLO.fields_by_name['build_info'].message_type = _BUILDINFO -_CLIENTHELLO.fields_by_name['fingerprints_supported'].enum_type = _FINGERPRINT -_CLIENTHELLO.fields_by_name['cryptosuites_supported'].enum_type = _CRYPTOSUITE -_CLIENTHELLO.fields_by_name['powschemes_supported'].enum_type = _POWSCHEME -_CLIENTHELLO.fields_by_name[ - 'login_crypto_hello'].message_type = _LOGINCRYPTOHELLOUNION -_CLIENTHELLO.fields_by_name['feature_set'].message_type = _FEATURESET -_BUILDINFO.fields_by_name['product'].enum_type = _PRODUCT -_BUILDINFO.fields_by_name['product_flags'].enum_type = _PRODUCTFLAGS -_BUILDINFO.fields_by_name['platform'].enum_type = _PLATFORM -_LOGINCRYPTOHELLOUNION.fields_by_name[ - 'diffie_hellman'].message_type = _LOGINCRYPTODIFFIEHELLMANHELLO -_APRESPONSEMESSAGE.fields_by_name['challenge'].message_type = _APCHALLENGE -_APRESPONSEMESSAGE.fields_by_name[ - 'upgrade'].message_type = _UPGRADEREQUIREDMESSAGE -_APRESPONSEMESSAGE.fields_by_name['login_failed'].message_type = _APLOGINFAILED -_APCHALLENGE.fields_by_name[ - 'login_crypto_challenge'].message_type = _LOGINCRYPTOCHALLENGEUNION -_APCHALLENGE.fields_by_name[ - 'fingerprint_challenge'].message_type = _FINGERPRINTCHALLENGEUNION -_APCHALLENGE.fields_by_name['pow_challenge'].message_type = _POWCHALLENGEUNION -_APCHALLENGE.fields_by_name[ - 'crypto_challenge'].message_type = _CRYPTOCHALLENGEUNION -_LOGINCRYPTOCHALLENGEUNION.fields_by_name[ - 'diffie_hellman'].message_type = _LOGINCRYPTODIFFIEHELLMANCHALLENGE -_FINGERPRINTCHALLENGEUNION.fields_by_name[ - 'grain'].message_type = _FINGERPRINTGRAINCHALLENGE -_FINGERPRINTCHALLENGEUNION.fields_by_name[ - 'hmac_ripemd'].message_type = _FINGERPRINTHMACRIPEMDCHALLENGE -_POWCHALLENGEUNION.fields_by_name[ - 'hash_cash'].message_type = _POWHASHCASHCHALLENGE -_CRYPTOCHALLENGEUNION.fields_by_name[ - 'shannon'].message_type = _CRYPTOSHANNONCHALLENGE -_CRYPTOCHALLENGEUNION.fields_by_name[ - 'rc4_sha1_hmac'].message_type = _CRYPTORC4SHA1HMACCHALLENGE -_APLOGINFAILED.fields_by_name['error_code'].enum_type = _ERRORCODE -_CLIENTRESPONSEPLAINTEXT.fields_by_name[ - 'login_crypto_response'].message_type = _LOGINCRYPTORESPONSEUNION -_CLIENTRESPONSEPLAINTEXT.fields_by_name[ - 'pow_response'].message_type = _POWRESPONSEUNION -_CLIENTRESPONSEPLAINTEXT.fields_by_name[ - 'crypto_response'].message_type = _CRYPTORESPONSEUNION -_LOGINCRYPTORESPONSEUNION.fields_by_name[ - 'diffie_hellman'].message_type = _LOGINCRYPTODIFFIEHELLMANRESPONSE -_POWRESPONSEUNION.fields_by_name[ - 'hash_cash'].message_type = _POWHASHCASHRESPONSE -_CRYPTORESPONSEUNION.fields_by_name[ - 'shannon'].message_type = _CRYPTOSHANNONRESPONSE -_CRYPTORESPONSEUNION.fields_by_name[ - 'rc4_sha1_hmac'].message_type = _CRYPTORC4SHA1HMACRESPONSE -DESCRIPTOR.message_types_by_name['ClientHello'] = _CLIENTHELLO -DESCRIPTOR.message_types_by_name['BuildInfo'] = _BUILDINFO -DESCRIPTOR.message_types_by_name[ - 'LoginCryptoHelloUnion'] = _LOGINCRYPTOHELLOUNION -DESCRIPTOR.message_types_by_name[ - 'LoginCryptoDiffieHellmanHello'] = _LOGINCRYPTODIFFIEHELLMANHELLO -DESCRIPTOR.message_types_by_name['FeatureSet'] = _FEATURESET -DESCRIPTOR.message_types_by_name['APResponseMessage'] = _APRESPONSEMESSAGE -DESCRIPTOR.message_types_by_name['APChallenge'] = _APCHALLENGE -DESCRIPTOR.message_types_by_name[ - 'LoginCryptoChallengeUnion'] = _LOGINCRYPTOCHALLENGEUNION -DESCRIPTOR.message_types_by_name[ - 'LoginCryptoDiffieHellmanChallenge'] = _LOGINCRYPTODIFFIEHELLMANCHALLENGE -DESCRIPTOR.message_types_by_name[ - 'FingerprintChallengeUnion'] = _FINGERPRINTCHALLENGEUNION -DESCRIPTOR.message_types_by_name[ - 'FingerprintGrainChallenge'] = _FINGERPRINTGRAINCHALLENGE -DESCRIPTOR.message_types_by_name[ - 'FingerprintHmacRipemdChallenge'] = _FINGERPRINTHMACRIPEMDCHALLENGE -DESCRIPTOR.message_types_by_name['PoWChallengeUnion'] = _POWCHALLENGEUNION -DESCRIPTOR.message_types_by_name[ - 'PoWHashCashChallenge'] = _POWHASHCASHCHALLENGE -DESCRIPTOR.message_types_by_name[ - 'CryptoChallengeUnion'] = _CRYPTOCHALLENGEUNION -DESCRIPTOR.message_types_by_name[ - 'CryptoShannonChallenge'] = _CRYPTOSHANNONCHALLENGE -DESCRIPTOR.message_types_by_name[ - 'CryptoRc4Sha1HmacChallenge'] = _CRYPTORC4SHA1HMACCHALLENGE -DESCRIPTOR.message_types_by_name[ - 'UpgradeRequiredMessage'] = _UPGRADEREQUIREDMESSAGE -DESCRIPTOR.message_types_by_name['APLoginFailed'] = _APLOGINFAILED -DESCRIPTOR.message_types_by_name[ - 'ClientResponsePlaintext'] = _CLIENTRESPONSEPLAINTEXT -DESCRIPTOR.message_types_by_name[ - 'LoginCryptoResponseUnion'] = _LOGINCRYPTORESPONSEUNION -DESCRIPTOR.message_types_by_name[ - 'LoginCryptoDiffieHellmanResponse'] = _LOGINCRYPTODIFFIEHELLMANRESPONSE -DESCRIPTOR.message_types_by_name['PoWResponseUnion'] = _POWRESPONSEUNION -DESCRIPTOR.message_types_by_name['PoWHashCashResponse'] = _POWHASHCASHRESPONSE -DESCRIPTOR.message_types_by_name['CryptoResponseUnion'] = _CRYPTORESPONSEUNION -DESCRIPTOR.message_types_by_name[ - 'CryptoShannonResponse'] = _CRYPTOSHANNONRESPONSE -DESCRIPTOR.message_types_by_name[ - 'CryptoRc4Sha1HmacResponse'] = _CRYPTORC4SHA1HMACRESPONSE -DESCRIPTOR.enum_types_by_name['Product'] = _PRODUCT -DESCRIPTOR.enum_types_by_name['ProductFlags'] = _PRODUCTFLAGS -DESCRIPTOR.enum_types_by_name['Platform'] = _PLATFORM -DESCRIPTOR.enum_types_by_name['Fingerprint'] = _FINGERPRINT -DESCRIPTOR.enum_types_by_name['Cryptosuite'] = _CRYPTOSUITE -DESCRIPTOR.enum_types_by_name['Powscheme'] = _POWSCHEME -DESCRIPTOR.enum_types_by_name['ErrorCode'] = _ERRORCODE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ClientHello = _reflection.GeneratedProtocolMessageType( - 'ClientHello', - (_message.Message, ), - { - 'DESCRIPTOR': _CLIENTHELLO, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.ClientHello) - }) -_sym_db.RegisterMessage(ClientHello) - -BuildInfo = _reflection.GeneratedProtocolMessageType( - 'BuildInfo', - (_message.Message, ), - { - 'DESCRIPTOR': _BUILDINFO, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.BuildInfo) - }) -_sym_db.RegisterMessage(BuildInfo) - -LoginCryptoHelloUnion = _reflection.GeneratedProtocolMessageType( - 'LoginCryptoHelloUnion', - (_message.Message, ), - { - 'DESCRIPTOR': _LOGINCRYPTOHELLOUNION, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.LoginCryptoHelloUnion) - }) -_sym_db.RegisterMessage(LoginCryptoHelloUnion) - -LoginCryptoDiffieHellmanHello = _reflection.GeneratedProtocolMessageType( - 'LoginCryptoDiffieHellmanHello', - (_message.Message, ), - { - 'DESCRIPTOR': _LOGINCRYPTODIFFIEHELLMANHELLO, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.LoginCryptoDiffieHellmanHello) - }) -_sym_db.RegisterMessage(LoginCryptoDiffieHellmanHello) - -FeatureSet = _reflection.GeneratedProtocolMessageType( - 'FeatureSet', - (_message.Message, ), - { - 'DESCRIPTOR': _FEATURESET, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.FeatureSet) - }) -_sym_db.RegisterMessage(FeatureSet) - -APResponseMessage = _reflection.GeneratedProtocolMessageType( - 'APResponseMessage', - (_message.Message, ), - { - 'DESCRIPTOR': _APRESPONSEMESSAGE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.APResponseMessage) - }) -_sym_db.RegisterMessage(APResponseMessage) - -APChallenge = _reflection.GeneratedProtocolMessageType( - 'APChallenge', - (_message.Message, ), - { - 'DESCRIPTOR': _APCHALLENGE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.APChallenge) - }) -_sym_db.RegisterMessage(APChallenge) - -LoginCryptoChallengeUnion = _reflection.GeneratedProtocolMessageType( - 'LoginCryptoChallengeUnion', - (_message.Message, ), - { - 'DESCRIPTOR': _LOGINCRYPTOCHALLENGEUNION, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.LoginCryptoChallengeUnion) - }) -_sym_db.RegisterMessage(LoginCryptoChallengeUnion) - -LoginCryptoDiffieHellmanChallenge = _reflection.GeneratedProtocolMessageType( - 'LoginCryptoDiffieHellmanChallenge', - (_message.Message, ), - { - 'DESCRIPTOR': _LOGINCRYPTODIFFIEHELLMANCHALLENGE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.LoginCryptoDiffieHellmanChallenge) - }) -_sym_db.RegisterMessage(LoginCryptoDiffieHellmanChallenge) - -FingerprintChallengeUnion = _reflection.GeneratedProtocolMessageType( - 'FingerprintChallengeUnion', - (_message.Message, ), - { - 'DESCRIPTOR': _FINGERPRINTCHALLENGEUNION, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.FingerprintChallengeUnion) - }) -_sym_db.RegisterMessage(FingerprintChallengeUnion) - -FingerprintGrainChallenge = _reflection.GeneratedProtocolMessageType( - 'FingerprintGrainChallenge', - (_message.Message, ), - { - 'DESCRIPTOR': _FINGERPRINTGRAINCHALLENGE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.FingerprintGrainChallenge) - }) -_sym_db.RegisterMessage(FingerprintGrainChallenge) - -FingerprintHmacRipemdChallenge = _reflection.GeneratedProtocolMessageType( - 'FingerprintHmacRipemdChallenge', - (_message.Message, ), - { - 'DESCRIPTOR': _FINGERPRINTHMACRIPEMDCHALLENGE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.FingerprintHmacRipemdChallenge) - }) -_sym_db.RegisterMessage(FingerprintHmacRipemdChallenge) - -PoWChallengeUnion = _reflection.GeneratedProtocolMessageType( - 'PoWChallengeUnion', - (_message.Message, ), - { - 'DESCRIPTOR': _POWCHALLENGEUNION, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.PoWChallengeUnion) - }) -_sym_db.RegisterMessage(PoWChallengeUnion) - -PoWHashCashChallenge = _reflection.GeneratedProtocolMessageType( - 'PoWHashCashChallenge', - (_message.Message, ), - { - 'DESCRIPTOR': _POWHASHCASHCHALLENGE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.PoWHashCashChallenge) - }) -_sym_db.RegisterMessage(PoWHashCashChallenge) - -CryptoChallengeUnion = _reflection.GeneratedProtocolMessageType( - 'CryptoChallengeUnion', - (_message.Message, ), - { - 'DESCRIPTOR': _CRYPTOCHALLENGEUNION, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.CryptoChallengeUnion) - }) -_sym_db.RegisterMessage(CryptoChallengeUnion) - -CryptoShannonChallenge = _reflection.GeneratedProtocolMessageType( - 'CryptoShannonChallenge', - (_message.Message, ), - { - 'DESCRIPTOR': _CRYPTOSHANNONCHALLENGE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.CryptoShannonChallenge) - }) -_sym_db.RegisterMessage(CryptoShannonChallenge) - -CryptoRc4Sha1HmacChallenge = _reflection.GeneratedProtocolMessageType( - 'CryptoRc4Sha1HmacChallenge', - (_message.Message, ), - { - 'DESCRIPTOR': _CRYPTORC4SHA1HMACCHALLENGE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.CryptoRc4Sha1HmacChallenge) - }) -_sym_db.RegisterMessage(CryptoRc4Sha1HmacChallenge) - -UpgradeRequiredMessage = _reflection.GeneratedProtocolMessageType( - 'UpgradeRequiredMessage', - (_message.Message, ), - { - 'DESCRIPTOR': _UPGRADEREQUIREDMESSAGE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.UpgradeRequiredMessage) - }) -_sym_db.RegisterMessage(UpgradeRequiredMessage) - -APLoginFailed = _reflection.GeneratedProtocolMessageType( - 'APLoginFailed', - (_message.Message, ), - { - 'DESCRIPTOR': _APLOGINFAILED, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.APLoginFailed) - }) -_sym_db.RegisterMessage(APLoginFailed) - -ClientResponsePlaintext = _reflection.GeneratedProtocolMessageType( - 'ClientResponsePlaintext', - (_message.Message, ), - { - 'DESCRIPTOR': _CLIENTRESPONSEPLAINTEXT, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.ClientResponsePlaintext) - }) -_sym_db.RegisterMessage(ClientResponsePlaintext) - -LoginCryptoResponseUnion = _reflection.GeneratedProtocolMessageType( - 'LoginCryptoResponseUnion', - (_message.Message, ), - { - 'DESCRIPTOR': _LOGINCRYPTORESPONSEUNION, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.LoginCryptoResponseUnion) - }) -_sym_db.RegisterMessage(LoginCryptoResponseUnion) - -LoginCryptoDiffieHellmanResponse = _reflection.GeneratedProtocolMessageType( - 'LoginCryptoDiffieHellmanResponse', - (_message.Message, ), - { - 'DESCRIPTOR': _LOGINCRYPTODIFFIEHELLMANRESPONSE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.LoginCryptoDiffieHellmanResponse) - }) -_sym_db.RegisterMessage(LoginCryptoDiffieHellmanResponse) - -PoWResponseUnion = _reflection.GeneratedProtocolMessageType( - 'PoWResponseUnion', - (_message.Message, ), - { - 'DESCRIPTOR': _POWRESPONSEUNION, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.PoWResponseUnion) - }) -_sym_db.RegisterMessage(PoWResponseUnion) - -PoWHashCashResponse = _reflection.GeneratedProtocolMessageType( - 'PoWHashCashResponse', - (_message.Message, ), - { - 'DESCRIPTOR': _POWHASHCASHRESPONSE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.PoWHashCashResponse) - }) -_sym_db.RegisterMessage(PoWHashCashResponse) - -CryptoResponseUnion = _reflection.GeneratedProtocolMessageType( - 'CryptoResponseUnion', - (_message.Message, ), - { - 'DESCRIPTOR': _CRYPTORESPONSEUNION, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.CryptoResponseUnion) - }) -_sym_db.RegisterMessage(CryptoResponseUnion) -CryptoShannonResponse = _reflection.GeneratedProtocolMessageType( - 'CryptoShannonResponse', - (_message.Message, ), - { - 'DESCRIPTOR': _CRYPTOSHANNONRESPONSE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.CryptoShannonResponse) - }) -_sym_db.RegisterMessage(CryptoShannonResponse) -CryptoRc4Sha1HmacResponse = _reflection.GeneratedProtocolMessageType( - 'CryptoRc4Sha1HmacResponse', - (_message.Message, ), - { - 'DESCRIPTOR': _CRYPTORC4SHA1HMACRESPONSE, - '__module__': 'keyexchange_pb2' - # @@protoc_insertion_point(class_scope:spotify.CryptoRc4Sha1HmacResponse) - }) -_sym_db.RegisterMessage(CryptoRc4Sha1HmacResponse) -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11keyexchange.proto\x12\x07spotify\"\xe0\x02\n\x0b\x43lientHello\x12&\n\nbuild_info\x18\n \x02(\x0b\x32\x12.spotify.BuildInfo\x12\x34\n\x16\x66ingerprints_supported\x18\x14 \x03(\x0e\x32\x14.spotify.Fingerprint\x12\x34\n\x16\x63ryptosuites_supported\x18\x1e \x03(\x0e\x32\x14.spotify.Cryptosuite\x12\x30\n\x14powschemes_supported\x18( \x03(\x0e\x32\x12.spotify.Powscheme\x12:\n\x12login_crypto_hello\x18\x32 \x02(\x0b\x32\x1e.spotify.LoginCryptoHelloUnion\x12\x14\n\x0c\x63lient_nonce\x18< \x02(\x0c\x12\x0f\n\x07padding\x18\x46 \x01(\x0c\x12(\n\x0b\x66\x65\x61ture_set\x18P \x01(\x0b\x32\x13.spotify.FeatureSet\"\x92\x01\n\tBuildInfo\x12!\n\x07product\x18\n \x02(\x0e\x32\x10.spotify.Product\x12,\n\rproduct_flags\x18\x14 \x03(\x0e\x32\x15.spotify.ProductFlags\x12#\n\x08platform\x18\x1e \x02(\x0e\x32\x11.spotify.Platform\x12\x0f\n\x07version\x18( \x02(\x04\"W\n\x15LoginCryptoHelloUnion\x12>\n\x0e\x64iffie_hellman\x18\n \x01(\x0b\x32&.spotify.LoginCryptoDiffieHellmanHello\"F\n\x1dLoginCryptoDiffieHellmanHello\x12\n\n\x02gc\x18\n \x02(\x0c\x12\x19\n\x11server_keys_known\x18\x14 \x02(\r\";\n\nFeatureSet\x12\x13\n\x0b\x61utoupdate2\x18\x01 \x01(\x08\x12\x18\n\x10\x63urrent_location\x18\x02 \x01(\x08\"\x9c\x01\n\x11\x41PResponseMessage\x12\'\n\tchallenge\x18\n \x01(\x0b\x32\x14.spotify.APChallenge\x12\x30\n\x07upgrade\x18\x14 \x01(\x0b\x32\x1f.spotify.UpgradeRequiredMessage\x12,\n\x0clogin_failed\x18\x1e \x01(\x0b\x32\x16.spotify.APLoginFailed\"\xa7\x02\n\x0b\x41PChallenge\x12\x42\n\x16login_crypto_challenge\x18\n \x02(\x0b\x32\".spotify.LoginCryptoChallengeUnion\x12\x41\n\x15\x66ingerprint_challenge\x18\x14 \x02(\x0b\x32\".spotify.FingerprintChallengeUnion\x12\x31\n\rpow_challenge\x18\x1e \x02(\x0b\x32\x1a.spotify.PoWChallengeUnion\x12\x37\n\x10\x63rypto_challenge\x18( \x02(\x0b\x32\x1d.spotify.CryptoChallengeUnion\x12\x14\n\x0cserver_nonce\x18\x32 \x02(\x0c\x12\x0f\n\x07padding\x18< \x01(\x0c\"_\n\x19LoginCryptoChallengeUnion\x12\x42\n\x0e\x64iffie_hellman\x18\n \x01(\x0b\x32*.spotify.LoginCryptoDiffieHellmanChallenge\"c\n!LoginCryptoDiffieHellmanChallenge\x12\n\n\x02gs\x18\n \x02(\x0c\x12\x1c\n\x14server_signature_key\x18\x14 \x02(\x05\x12\x14\n\x0cgs_signature\x18\x1e \x02(\x0c\"\x8c\x01\n\x19\x46ingerprintChallengeUnion\x12\x31\n\x05grain\x18\n \x01(\x0b\x32\".spotify.FingerprintGrainChallenge\x12<\n\x0bhmac_ripemd\x18\x14 \x01(\x0b\x32\'.spotify.FingerprintHmacRipemdChallenge\"(\n\x19\x46ingerprintGrainChallenge\x12\x0b\n\x03kek\x18\n \x02(\x0c\"3\n\x1e\x46ingerprintHmacRipemdChallenge\x12\x11\n\tchallenge\x18\n \x02(\x0c\"E\n\x11PoWChallengeUnion\x12\x30\n\thash_cash\x18\n \x01(\x0b\x32\x1d.spotify.PoWHashCashChallenge\"F\n\x14PoWHashCashChallenge\x12\x0e\n\x06prefix\x18\n \x01(\x0c\x12\x0e\n\x06length\x18\x14 \x01(\x05\x12\x0e\n\x06target\x18\x1e \x01(\x05\"\x84\x01\n\x14\x43ryptoChallengeUnion\x12\x30\n\x07shannon\x18\n \x01(\x0b\x32\x1f.spotify.CryptoShannonChallenge\x12:\n\rrc4_sha1_hmac\x18\x14 \x01(\x0b\x32#.spotify.CryptoRc4Sha1HmacChallenge\"\x18\n\x16\x43ryptoShannonChallenge\"\x1c\n\x1a\x43ryptoRc4Sha1HmacChallenge\"]\n\x16UpgradeRequiredMessage\x12\x1b\n\x13upgrade_signed_part\x18\n \x02(\x0c\x12\x11\n\tsignature\x18\x14 \x02(\x0c\x12\x13\n\x0bhttp_suffix\x18\x1e \x01(\t\"w\n\rAPLoginFailed\x12&\n\nerror_code\x18\n \x02(\x0e\x32\x12.spotify.ErrorCode\x12\x13\n\x0bretry_delay\x18\x14 \x01(\x05\x12\x0e\n\x06\x65xpiry\x18\x1e \x01(\x05\x12\x19\n\x11\x65rror_description\x18( \x01(\t\"\xc3\x01\n\x17\x43lientResponsePlaintext\x12@\n\x15login_crypto_response\x18\n \x02(\x0b\x32!.spotify.LoginCryptoResponseUnion\x12/\n\x0cpow_response\x18\x14 \x02(\x0b\x32\x19.spotify.PoWResponseUnion\x12\x35\n\x0f\x63rypto_response\x18\x1e \x02(\x0b\x32\x1c.spotify.CryptoResponseUnion\"]\n\x18LoginCryptoResponseUnion\x12\x41\n\x0e\x64iffie_hellman\x18\n \x01(\x0b\x32).spotify.LoginCryptoDiffieHellmanResponse\"0\n LoginCryptoDiffieHellmanResponse\x12\x0c\n\x04hmac\x18\n \x02(\x0c\"C\n\x10PoWResponseUnion\x12/\n\thash_cash\x18\n \x01(\x0b\x32\x1c.spotify.PoWHashCashResponse\"*\n\x13PoWHashCashResponse\x12\x13\n\x0bhash_suffix\x18\n \x02(\x0c\"\x81\x01\n\x13\x43ryptoResponseUnion\x12/\n\x07shannon\x18\n \x01(\x0b\x32\x1e.spotify.CryptoShannonResponse\x12\x39\n\rrc4_sha1_hmac\x18\x14 \x01(\x0b\x32\".spotify.CryptoRc4Sha1HmacResponse\"&\n\x15\x43ryptoShannonResponse\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05\"*\n\x19\x43ryptoRc4Sha1HmacResponse\x12\r\n\x05\x64ummy\x18\x01 \x01(\x05*\x7f\n\x07Product\x12\x12\n\x0ePRODUCT_CLIENT\x10\x00\x12\x16\n\x12PRODUCT_LIBSPOTIFY\x10\x01\x12\x12\n\x0ePRODUCT_MOBILE\x10\x02\x12\x13\n\x0fPRODUCT_PARTNER\x10\x03\x12\x1f\n\x1bPRODUCT_LIBSPOTIFY_EMBEDDED\x10\x05*A\n\x0cProductFlags\x12\x15\n\x11PRODUCT_FLAG_NONE\x10\x00\x12\x1a\n\x16PRODUCT_FLAG_DEV_BUILD\x10\x01*\xdc\x04\n\x08Platform\x12\x16\n\x12PLATFORM_WIN32_X86\x10\x00\x12\x14\n\x10PLATFORM_OSX_X86\x10\x01\x12\x16\n\x12PLATFORM_LINUX_X86\x10\x02\x12\x17\n\x13PLATFORM_IPHONE_ARM\x10\x03\x12\x14\n\x10PLATFORM_S60_ARM\x10\x04\x12\x14\n\x10PLATFORM_OSX_PPC\x10\x05\x12\x18\n\x14PLATFORM_ANDROID_ARM\x10\x06\x12\x1b\n\x17PLATFORM_WINDOWS_CE_ARM\x10\x07\x12\x19\n\x15PLATFORM_LINUX_X86_64\x10\x08\x12\x17\n\x13PLATFORM_OSX_X86_64\x10\t\x12\x15\n\x11PLATFORM_PALM_ARM\x10\n\x12\x15\n\x11PLATFORM_LINUX_SH\x10\x0b\x12\x18\n\x14PLATFORM_FREEBSD_X86\x10\x0c\x12\x1b\n\x17PLATFORM_FREEBSD_X86_64\x10\r\x12\x1b\n\x17PLATFORM_BLACKBERRY_ARM\x10\x0e\x12\x12\n\x0ePLATFORM_SONOS\x10\x0f\x12\x17\n\x13PLATFORM_LINUX_MIPS\x10\x10\x12\x16\n\x12PLATFORM_LINUX_ARM\x10\x11\x12\x19\n\x15PLATFORM_LOGITECH_ARM\x10\x12\x12\x1b\n\x17PLATFORM_LINUX_BLACKFIN\x10\x13\x12\x14\n\x10PLATFORM_WP7_ARM\x10\x14\x12\x16\n\x12PLATFORM_ONKYO_ARM\x10\x15\x12\x17\n\x13PLATFORM_QNXNTO_ARM\x10\x16\x12\x14\n\x10PLATFORM_BCO_ARM\x10\x17*A\n\x0b\x46ingerprint\x12\x15\n\x11\x46INGERPRINT_GRAIN\x10\x00\x12\x1b\n\x17\x46INGERPRINT_HMAC_RIPEMD\x10\x01*G\n\x0b\x43ryptosuite\x12\x18\n\x14\x43RYPTO_SUITE_SHANNON\x10\x00\x12\x1e\n\x1a\x43RYPTO_SUITE_RC4_SHA1_HMAC\x10\x01*\x1e\n\tPowscheme\x12\x11\n\rPOW_HASH_CASH\x10\x00*\x89\x02\n\tErrorCode\x12\x11\n\rProtocolError\x10\x00\x12\x10\n\x0cTryAnotherAP\x10\x02\x12\x13\n\x0f\x42\x61\x64\x43onnectionId\x10\x05\x12\x15\n\x11TravelRestriction\x10\t\x12\x1a\n\x16PremiumAccountRequired\x10\x0b\x12\x12\n\x0e\x42\x61\x64\x43redentials\x10\x0c\x12\x1f\n\x1b\x43ouldNotValidateCredentials\x10\r\x12\x11\n\rAccountExists\x10\x0e\x12\x1d\n\x19\x45xtraVerificationRequired\x10\x0f\x12\x11\n\rInvalidAppKey\x10\x10\x12\x15\n\x11\x41pplicationBanned\x10\x11\x42\r\n\x0b\x63om.spotify') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'keyexchange_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\013com.spotify' + _globals['_PRODUCT']._serialized_start=2871 + _globals['_PRODUCT']._serialized_end=2998 + _globals['_PRODUCTFLAGS']._serialized_start=3000 + _globals['_PRODUCTFLAGS']._serialized_end=3065 + _globals['_PLATFORM']._serialized_start=3068 + _globals['_PLATFORM']._serialized_end=3672 + _globals['_FINGERPRINT']._serialized_start=3674 + _globals['_FINGERPRINT']._serialized_end=3739 + _globals['_CRYPTOSUITE']._serialized_start=3741 + _globals['_CRYPTOSUITE']._serialized_end=3812 + _globals['_POWSCHEME']._serialized_start=3814 + _globals['_POWSCHEME']._serialized_end=3844 + _globals['_ERRORCODE']._serialized_start=3847 + _globals['_ERRORCODE']._serialized_end=4112 + _globals['_CLIENTHELLO']._serialized_start=31 + _globals['_CLIENTHELLO']._serialized_end=383 + _globals['_BUILDINFO']._serialized_start=386 + _globals['_BUILDINFO']._serialized_end=532 + _globals['_LOGINCRYPTOHELLOUNION']._serialized_start=534 + _globals['_LOGINCRYPTOHELLOUNION']._serialized_end=621 + _globals['_LOGINCRYPTODIFFIEHELLMANHELLO']._serialized_start=623 + _globals['_LOGINCRYPTODIFFIEHELLMANHELLO']._serialized_end=693 + _globals['_FEATURESET']._serialized_start=695 + _globals['_FEATURESET']._serialized_end=754 + _globals['_APRESPONSEMESSAGE']._serialized_start=757 + _globals['_APRESPONSEMESSAGE']._serialized_end=913 + _globals['_APCHALLENGE']._serialized_start=916 + _globals['_APCHALLENGE']._serialized_end=1211 + _globals['_LOGINCRYPTOCHALLENGEUNION']._serialized_start=1213 + _globals['_LOGINCRYPTOCHALLENGEUNION']._serialized_end=1308 + _globals['_LOGINCRYPTODIFFIEHELLMANCHALLENGE']._serialized_start=1310 + _globals['_LOGINCRYPTODIFFIEHELLMANCHALLENGE']._serialized_end=1409 + _globals['_FINGERPRINTCHALLENGEUNION']._serialized_start=1412 + _globals['_FINGERPRINTCHALLENGEUNION']._serialized_end=1552 + _globals['_FINGERPRINTGRAINCHALLENGE']._serialized_start=1554 + _globals['_FINGERPRINTGRAINCHALLENGE']._serialized_end=1594 + _globals['_FINGERPRINTHMACRIPEMDCHALLENGE']._serialized_start=1596 + _globals['_FINGERPRINTHMACRIPEMDCHALLENGE']._serialized_end=1647 + _globals['_POWCHALLENGEUNION']._serialized_start=1649 + _globals['_POWCHALLENGEUNION']._serialized_end=1718 + _globals['_POWHASHCASHCHALLENGE']._serialized_start=1720 + _globals['_POWHASHCASHCHALLENGE']._serialized_end=1790 + _globals['_CRYPTOCHALLENGEUNION']._serialized_start=1793 + _globals['_CRYPTOCHALLENGEUNION']._serialized_end=1925 + _globals['_CRYPTOSHANNONCHALLENGE']._serialized_start=1927 + _globals['_CRYPTOSHANNONCHALLENGE']._serialized_end=1951 + _globals['_CRYPTORC4SHA1HMACCHALLENGE']._serialized_start=1953 + _globals['_CRYPTORC4SHA1HMACCHALLENGE']._serialized_end=1981 + _globals['_UPGRADEREQUIREDMESSAGE']._serialized_start=1983 + _globals['_UPGRADEREQUIREDMESSAGE']._serialized_end=2076 + _globals['_APLOGINFAILED']._serialized_start=2078 + _globals['_APLOGINFAILED']._serialized_end=2197 + _globals['_CLIENTRESPONSEPLAINTEXT']._serialized_start=2200 + _globals['_CLIENTRESPONSEPLAINTEXT']._serialized_end=2395 + _globals['_LOGINCRYPTORESPONSEUNION']._serialized_start=2397 + _globals['_LOGINCRYPTORESPONSEUNION']._serialized_end=2490 + _globals['_LOGINCRYPTODIFFIEHELLMANRESPONSE']._serialized_start=2492 + _globals['_LOGINCRYPTODIFFIEHELLMANRESPONSE']._serialized_end=2540 + _globals['_POWRESPONSEUNION']._serialized_start=2542 + _globals['_POWRESPONSEUNION']._serialized_end=2609 + _globals['_POWHASHCASHRESPONSE']._serialized_start=2611 + _globals['_POWHASHCASHRESPONSE']._serialized_end=2653 + _globals['_CRYPTORESPONSEUNION']._serialized_start=2656 + _globals['_CRYPTORESPONSEUNION']._serialized_end=2785 + _globals['_CRYPTOSHANNONRESPONSE']._serialized_start=2787 + _globals['_CRYPTOSHANNONRESPONSE']._serialized_end=2825 + _globals['_CRYPTORC4SHA1HMACRESPONSE']._serialized_start=2827 + _globals['_CRYPTORC4SHA1HMACRESPONSE']._serialized_end=2869 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Mercury_pb2.py b/librespot/proto/Mercury_pb2.py index 8109c9fb..a0fb6e64 100644 --- a/librespot/proto/Mercury_pb2.py +++ b/librespot/proto/Mercury_pb2.py @@ -1,625 +1,49 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: mercury.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'mercury.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name='mercury.proto', - package='spotify', - syntax='proto2', - serialized_options=b'\n\013com.spotify', - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\rmercury.proto\x12\x07spotify\"B\n\x16MercuryMultiGetRequest\x12(\n\x07request\x18\x01 \x03(\x0b\x32\x17.spotify.MercuryRequest\"<\n\x14MercuryMultiGetReply\x12$\n\x05reply\x18\x01 \x03(\x0b\x32\x15.spotify.MercuryReply\"O\n\x0eMercuryRequest\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x14\n\x0c\x63ontent_type\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x04 \x01(\x0c\"\xf5\x01\n\x0cMercuryReply\x12\x13\n\x0bstatus_code\x18\x01 \x01(\x11\x12\x16\n\x0estatus_message\x18\x02 \x01(\t\x12\x37\n\x0c\x63\x61\x63he_policy\x18\x03 \x01(\x0e\x32!.spotify.MercuryReply.CachePolicy\x12\x0b\n\x03ttl\x18\x04 \x01(\x11\x12\x0c\n\x04\x65tag\x18\x05 \x01(\x0c\x12\x14\n\x0c\x63ontent_type\x18\x06 \x01(\t\x12\x0c\n\x04\x62ody\x18\x07 \x01(\x0c\"@\n\x0b\x43\x61\x63hePolicy\x12\x0c\n\x08\x43\x41\x43HE_NO\x10\x01\x12\x11\n\rCACHE_PRIVATE\x10\x02\x12\x10\n\x0c\x43\x41\x43HE_PUBLIC\x10\x03\"y\n\x06Header\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x14\n\x0c\x63ontent_type\x18\x02 \x01(\t\x12\x0e\n\x06method\x18\x03 \x01(\t\x12\x13\n\x0bstatus_code\x18\x04 \x01(\x11\x12\'\n\x0buser_fields\x18\x06 \x03(\x0b\x32\x12.spotify.UserField\"\'\n\tUserField\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\x42\r\n\x0b\x63om.spotify' -) - -_MERCURYREPLY_CACHEPOLICY = _descriptor.EnumDescriptor( - name='CachePolicy', - full_name='spotify.MercuryReply.CachePolicy', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='CACHE_NO', - index=0, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CACHE_PRIVATE', - index=1, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CACHE_PUBLIC', - index=2, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=419, - serialized_end=483, -) -_sym_db.RegisterEnumDescriptor(_MERCURYREPLY_CACHEPOLICY) - -_MERCURYMULTIGETREQUEST = _descriptor.Descriptor( - name='MercuryMultiGetRequest', - full_name='spotify.MercuryMultiGetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='request', - full_name='spotify.MercuryMultiGetRequest.request', - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=26, - serialized_end=92, -) - -_MERCURYMULTIGETREPLY = _descriptor.Descriptor( - name='MercuryMultiGetReply', - full_name='spotify.MercuryMultiGetReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='reply', - full_name='spotify.MercuryMultiGetReply.reply', - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=94, - serialized_end=154, -) - -_MERCURYREQUEST = _descriptor.Descriptor( - name='MercuryRequest', - full_name='spotify.MercuryRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='uri', - full_name='spotify.MercuryRequest.uri', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='content_type', - full_name='spotify.MercuryRequest.content_type', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='body', - full_name='spotify.MercuryRequest.body', - index=2, - number=3, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='etag', - full_name='spotify.MercuryRequest.etag', - index=3, - number=4, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=156, - serialized_end=235, -) - -_MERCURYREPLY = _descriptor.Descriptor( - name='MercuryReply', - full_name='spotify.MercuryReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='status_code', - full_name='spotify.MercuryReply.status_code', - index=0, - number=1, - type=17, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='status_message', - full_name='spotify.MercuryReply.status_message', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cache_policy', - full_name='spotify.MercuryReply.cache_policy', - index=2, - number=3, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=1, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='ttl', - full_name='spotify.MercuryReply.ttl', - index=3, - number=4, - type=17, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='etag', - full_name='spotify.MercuryReply.etag', - index=4, - number=5, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='content_type', - full_name='spotify.MercuryReply.content_type', - index=5, - number=6, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='body', - full_name='spotify.MercuryReply.body', - index=6, - number=7, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[ - _MERCURYREPLY_CACHEPOLICY, - ], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=238, - serialized_end=483, -) - -_HEADER = _descriptor.Descriptor( - name='Header', - full_name='spotify.Header', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='uri', - full_name='spotify.Header.uri', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='content_type', - full_name='spotify.Header.content_type', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='method', - full_name='spotify.Header.method', - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='status_code', - full_name='spotify.Header.status_code', - index=3, - number=4, - type=17, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='user_fields', - full_name='spotify.Header.user_fields', - index=4, - number=6, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=485, - serialized_end=606, -) - -_USERFIELD = _descriptor.Descriptor( - name='UserField', - full_name='spotify.UserField', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', - full_name='spotify.UserField.key', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', - full_name='spotify.UserField.value', - index=1, - number=2, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=608, - serialized_end=647, -) - -_MERCURYMULTIGETREQUEST.fields_by_name[ - 'request'].message_type = _MERCURYREQUEST -_MERCURYMULTIGETREPLY.fields_by_name['reply'].message_type = _MERCURYREPLY -_MERCURYREPLY.fields_by_name[ - 'cache_policy'].enum_type = _MERCURYREPLY_CACHEPOLICY -_MERCURYREPLY_CACHEPOLICY.containing_type = _MERCURYREPLY -_HEADER.fields_by_name['user_fields'].message_type = _USERFIELD -DESCRIPTOR.message_types_by_name[ - 'MercuryMultiGetRequest'] = _MERCURYMULTIGETREQUEST -DESCRIPTOR.message_types_by_name[ - 'MercuryMultiGetReply'] = _MERCURYMULTIGETREPLY -DESCRIPTOR.message_types_by_name['MercuryRequest'] = _MERCURYREQUEST -DESCRIPTOR.message_types_by_name['MercuryReply'] = _MERCURYREPLY -DESCRIPTOR.message_types_by_name['Header'] = _HEADER -DESCRIPTOR.message_types_by_name['UserField'] = _USERFIELD -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MercuryMultiGetRequest = _reflection.GeneratedProtocolMessageType( - 'MercuryMultiGetRequest', - (_message.Message, ), - { - 'DESCRIPTOR': _MERCURYMULTIGETREQUEST, - '__module__': 'mercury_pb2' - # @@protoc_insertion_point(class_scope:spotify.MercuryMultiGetRequest) - }) -_sym_db.RegisterMessage(MercuryMultiGetRequest) - -MercuryMultiGetReply = _reflection.GeneratedProtocolMessageType( - 'MercuryMultiGetReply', - (_message.Message, ), - { - 'DESCRIPTOR': _MERCURYMULTIGETREPLY, - '__module__': 'mercury_pb2' - # @@protoc_insertion_point(class_scope:spotify.MercuryMultiGetReply) - }) -_sym_db.RegisterMessage(MercuryMultiGetReply) - -MercuryRequest = _reflection.GeneratedProtocolMessageType( - 'MercuryRequest', - (_message.Message, ), - { - 'DESCRIPTOR': _MERCURYREQUEST, - '__module__': 'mercury_pb2' - # @@protoc_insertion_point(class_scope:spotify.MercuryRequest) - }) -_sym_db.RegisterMessage(MercuryRequest) - -MercuryReply = _reflection.GeneratedProtocolMessageType( - 'MercuryReply', - (_message.Message, ), - { - 'DESCRIPTOR': _MERCURYREPLY, - '__module__': 'mercury_pb2' - # @@protoc_insertion_point(class_scope:spotify.MercuryReply) - }) -_sym_db.RegisterMessage(MercuryReply) -Header = _reflection.GeneratedProtocolMessageType( - 'Header', - (_message.Message, ), - { - 'DESCRIPTOR': _HEADER, - '__module__': 'mercury_pb2' - # @@protoc_insertion_point(class_scope:spotify.Header) - }) -_sym_db.RegisterMessage(Header) -UserField = _reflection.GeneratedProtocolMessageType( - 'UserField', - (_message.Message, ), - { - 'DESCRIPTOR': _USERFIELD, - '__module__': 'mercury_pb2' - # @@protoc_insertion_point(class_scope:spotify.UserField) - }) -_sym_db.RegisterMessage(UserField) -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rmercury.proto\x12\x07spotify\"B\n\x16MercuryMultiGetRequest\x12(\n\x07request\x18\x01 \x03(\x0b\x32\x17.spotify.MercuryRequest\"<\n\x14MercuryMultiGetReply\x12$\n\x05reply\x18\x01 \x03(\x0b\x32\x15.spotify.MercuryReply\"O\n\x0eMercuryRequest\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x14\n\x0c\x63ontent_type\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x04 \x01(\x0c\"\xf5\x01\n\x0cMercuryReply\x12\x13\n\x0bstatus_code\x18\x01 \x01(\x11\x12\x16\n\x0estatus_message\x18\x02 \x01(\t\x12\x37\n\x0c\x63\x61\x63he_policy\x18\x03 \x01(\x0e\x32!.spotify.MercuryReply.CachePolicy\x12\x0b\n\x03ttl\x18\x04 \x01(\x11\x12\x0c\n\x04\x65tag\x18\x05 \x01(\x0c\x12\x14\n\x0c\x63ontent_type\x18\x06 \x01(\t\x12\x0c\n\x04\x62ody\x18\x07 \x01(\x0c\"@\n\x0b\x43\x61\x63hePolicy\x12\x0c\n\x08\x43\x41\x43HE_NO\x10\x01\x12\x11\n\rCACHE_PRIVATE\x10\x02\x12\x10\n\x0c\x43\x41\x43HE_PUBLIC\x10\x03\"y\n\x06Header\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x14\n\x0c\x63ontent_type\x18\x02 \x01(\t\x12\x0e\n\x06method\x18\x03 \x01(\t\x12\x13\n\x0bstatus_code\x18\x04 \x01(\x11\x12\'\n\x0buser_fields\x18\x06 \x03(\x0b\x32\x12.spotify.UserField\"\'\n\tUserField\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\x42\r\n\x0b\x63om.spotify') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mercury_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\013com.spotify' + _globals['_MERCURYMULTIGETREQUEST']._serialized_start=26 + _globals['_MERCURYMULTIGETREQUEST']._serialized_end=92 + _globals['_MERCURYMULTIGETREPLY']._serialized_start=94 + _globals['_MERCURYMULTIGETREPLY']._serialized_end=154 + _globals['_MERCURYREQUEST']._serialized_start=156 + _globals['_MERCURYREQUEST']._serialized_end=235 + _globals['_MERCURYREPLY']._serialized_start=238 + _globals['_MERCURYREPLY']._serialized_end=483 + _globals['_MERCURYREPLY_CACHEPOLICY']._serialized_start=419 + _globals['_MERCURYREPLY_CACHEPOLICY']._serialized_end=483 + _globals['_HEADER']._serialized_start=485 + _globals['_HEADER']._serialized_end=606 + _globals['_USERFIELD']._serialized_start=608 + _globals['_USERFIELD']._serialized_end=647 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Metadata_pb2.py b/librespot/proto/Metadata_pb2.py index 05a45739..d1ecb6f0 100644 --- a/librespot/proto/Metadata_pb2.py +++ b/librespot/proto/Metadata_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: metadata.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'metadata.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,74 +26,74 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0emetadata.proto\x12\x16spotify.metadata.proto\"\x8a\x07\n\x06\x41rtist\x12\x0b\n\x03gid\x18\x01 \x01(\x0c\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\npopularity\x18\x03 \x01(\x11\x12\x34\n\ttop_track\x18\x04 \x03(\x0b\x32!.spotify.metadata.proto.TopTracks\x12\x37\n\x0b\x61lbum_group\x18\x05 \x03(\x0b\x32\".spotify.metadata.proto.AlbumGroup\x12\x38\n\x0csingle_group\x18\x06 \x03(\x0b\x32\".spotify.metadata.proto.AlbumGroup\x12=\n\x11\x63ompilation_group\x18\x07 \x03(\x0b\x32\".spotify.metadata.proto.AlbumGroup\x12<\n\x10\x61ppears_on_group\x18\x08 \x03(\x0b\x32\".spotify.metadata.proto.AlbumGroup\x12\r\n\x05genre\x18\t \x03(\t\x12\x37\n\x0b\x65xternal_id\x18\n \x03(\x0b\x32\".spotify.metadata.proto.ExternalId\x12/\n\x08portrait\x18\x0b \x03(\x0b\x32\x1d.spotify.metadata.proto.Image\x12\x34\n\tbiography\x18\x0c \x03(\x0b\x32!.spotify.metadata.proto.Biography\x12?\n\x0f\x61\x63tivity_period\x18\r \x03(\x0b\x32&.spotify.metadata.proto.ActivityPeriod\x12\x38\n\x0brestriction\x18\x0e \x03(\x0b\x32#.spotify.metadata.proto.Restriction\x12/\n\x07related\x18\x0f \x03(\x0b\x32\x1e.spotify.metadata.proto.Artist\x12\x1f\n\x17is_portrait_album_cover\x18\x10 \x01(\x08\x12:\n\x0eportrait_group\x18\x11 \x01(\x0b\x32\".spotify.metadata.proto.ImageGroup\x12\x37\n\x0bsale_period\x18\x12 \x03(\x0b\x32\".spotify.metadata.proto.SalePeriod\x12:\n\x0c\x61vailability\x18\x14 \x03(\x0b\x32$.spotify.metadata.proto.Availability\"\xe8\x06\n\x05\x41lbum\x12\x0b\n\x03gid\x18\x01 \x01(\x0c\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\x06\x61rtist\x18\x03 \x03(\x0b\x32\x1e.spotify.metadata.proto.Artist\x12\x30\n\x04type\x18\x04 \x01(\x0e\x32\".spotify.metadata.proto.Album.Type\x12\r\n\x05label\x18\x05 \x01(\t\x12*\n\x04\x64\x61te\x18\x06 \x01(\x0b\x32\x1c.spotify.metadata.proto.Date\x12\x12\n\npopularity\x18\x07 \x01(\x11\x12\r\n\x05genre\x18\x08 \x03(\t\x12,\n\x05\x63over\x18\t \x03(\x0b\x32\x1d.spotify.metadata.proto.Image\x12\x37\n\x0b\x65xternal_id\x18\n \x03(\x0b\x32\".spotify.metadata.proto.ExternalId\x12*\n\x04\x64isc\x18\x0b \x03(\x0b\x32\x1c.spotify.metadata.proto.Disc\x12\x0e\n\x06review\x18\x0c \x03(\t\x12\x34\n\tcopyright\x18\r \x03(\x0b\x32!.spotify.metadata.proto.Copyright\x12\x38\n\x0brestriction\x18\x0e \x03(\x0b\x32#.spotify.metadata.proto.Restriction\x12.\n\x07related\x18\x0f \x03(\x0b\x32\x1d.spotify.metadata.proto.Album\x12\x37\n\x0bsale_period\x18\x10 \x03(\x0b\x32\".spotify.metadata.proto.SalePeriod\x12\x37\n\x0b\x63over_group\x18\x11 \x01(\x0b\x32\".spotify.metadata.proto.ImageGroup\x12\x16\n\x0eoriginal_title\x18\x12 \x01(\t\x12\x15\n\rversion_title\x18\x13 \x01(\t\x12\x10\n\x08type_str\x18\x14 \x01(\t\x12:\n\x0c\x61vailability\x18\x17 \x03(\x0b\x32$.spotify.metadata.proto.Availability\"R\n\x04Type\x12\t\n\x05\x41LBUM\x10\x01\x12\n\n\x06SINGLE\x10\x02\x12\x0f\n\x0b\x43OMPILATION\x10\x03\x12\x06\n\x02\x45P\x10\x04\x12\r\n\tAUDIOBOOK\x10\x05\x12\x0b\n\x07PODCAST\x10\x06\"\xd5\x05\n\x05Track\x12\x0b\n\x03gid\x18\x01 \x01(\x0c\x12\x0c\n\x04name\x18\x02 \x01(\t\x12,\n\x05\x61lbum\x18\x03 \x01(\x0b\x32\x1d.spotify.metadata.proto.Album\x12.\n\x06\x61rtist\x18\x04 \x03(\x0b\x32\x1e.spotify.metadata.proto.Artist\x12\x0e\n\x06number\x18\x05 \x01(\x11\x12\x13\n\x0b\x64isc_number\x18\x06 \x01(\x11\x12\x10\n\x08\x64uration\x18\x07 \x01(\x11\x12\x12\n\npopularity\x18\x08 \x01(\x11\x12\x10\n\x08\x65xplicit\x18\t \x01(\x08\x12\x37\n\x0b\x65xternal_id\x18\n \x03(\x0b\x32\".spotify.metadata.proto.ExternalId\x12\x38\n\x0brestriction\x18\x0b \x03(\x0b\x32#.spotify.metadata.proto.Restriction\x12/\n\x04\x66ile\x18\x0c \x03(\x0b\x32!.spotify.metadata.proto.AudioFile\x12\x32\n\x0b\x61lternative\x18\r \x03(\x0b\x32\x1d.spotify.metadata.proto.Track\x12\x37\n\x0bsale_period\x18\x0e \x03(\x0b\x32\".spotify.metadata.proto.SalePeriod\x12\x32\n\x07preview\x18\x0f \x03(\x0b\x32!.spotify.metadata.proto.AudioFile\x12\x0c\n\x04tags\x18\x10 \x03(\t\x12\x1f\n\x17\x65\x61rliest_live_timestamp\x18\x11 \x01(\x03\x12\x12\n\nhas_lyrics\x18\x12 \x01(\x08\x12:\n\x0c\x61vailability\x18\x13 \x03(\x0b\x32$.spotify.metadata.proto.Availability\x12\x32\n\x08licensor\x18\x15 \x01(\x0b\x32 .spotify.metadata.proto.Licensor\"\xbf\x05\n\x04Show\x12\x0b\n\x03gid\x18\x01 \x01(\x0c\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18@ \x01(\t\x12!\n\x15\x64\x65precated_popularity\x18\x41 \x01(\x11\x42\x02\x18\x01\x12\x11\n\tpublisher\x18\x42 \x01(\t\x12\x10\n\x08language\x18\x43 \x01(\t\x12\x10\n\x08\x65xplicit\x18\x44 \x01(\x08\x12\x37\n\x0b\x63over_image\x18\x45 \x01(\x0b\x32\".spotify.metadata.proto.ImageGroup\x12\x30\n\x07\x65pisode\x18\x46 \x03(\x0b\x32\x1f.spotify.metadata.proto.Episode\x12\x34\n\tcopyright\x18G \x03(\x0b\x32!.spotify.metadata.proto.Copyright\x12\x38\n\x0brestriction\x18H \x03(\x0b\x32#.spotify.metadata.proto.Restriction\x12\x0f\n\x07keyword\x18I \x03(\t\x12:\n\nmedia_type\x18J \x01(\x0e\x32&.spotify.metadata.proto.Show.MediaType\x12H\n\x11\x63onsumption_order\x18K \x01(\x0e\x32-.spotify.metadata.proto.Show.ConsumptionOrder\x12:\n\x0c\x61vailability\x18N \x03(\x0b\x32$.spotify.metadata.proto.Availability\x12\x13\n\x0btrailer_uri\x18S \x01(\t\",\n\tMediaType\x12\t\n\x05MIXED\x10\x00\x12\t\n\x05\x41UDIO\x10\x01\x12\t\n\x05VIDEO\x10\x02\"<\n\x10\x43onsumptionOrder\x12\x0e\n\nSEQUENTIAL\x10\x01\x12\x0c\n\x08\x45PISODIC\x10\x02\x12\n\n\x06RECENT\x10\x03\"\xf9\x06\n\x07\x45pisode\x12\x0b\n\x03gid\x18\x01 \x01(\x0c\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x64uration\x18\x07 \x01(\x11\x12\x30\n\x05\x61udio\x18\x0c \x03(\x0b\x32!.spotify.metadata.proto.AudioFile\x12\x13\n\x0b\x64\x65scription\x18@ \x01(\t\x12\x0e\n\x06number\x18\x41 \x01(\x11\x12\x32\n\x0cpublish_time\x18\x42 \x01(\x0b\x32\x1c.spotify.metadata.proto.Date\x12!\n\x15\x64\x65precated_popularity\x18\x43 \x01(\x11\x42\x02\x18\x01\x12\x37\n\x0b\x63over_image\x18\x44 \x01(\x0b\x32\".spotify.metadata.proto.ImageGroup\x12\x10\n\x08language\x18\x45 \x01(\t\x12\x10\n\x08\x65xplicit\x18\x46 \x01(\x08\x12*\n\x04show\x18G \x01(\x0b\x32\x1c.spotify.metadata.proto.Show\x12\x30\n\x05video\x18H \x03(\x0b\x32!.spotify.metadata.proto.VideoFile\x12\x38\n\rvideo_preview\x18I \x03(\x0b\x32!.spotify.metadata.proto.VideoFile\x12\x38\n\raudio_preview\x18J \x03(\x0b\x32!.spotify.metadata.proto.AudioFile\x12\x38\n\x0brestriction\x18K \x03(\x0b\x32#.spotify.metadata.proto.Restriction\x12\x38\n\x0c\x66reeze_frame\x18L \x01(\x0b\x32\".spotify.metadata.proto.ImageGroup\x12\x0f\n\x07keyword\x18M \x03(\t\x12!\n\x19\x61llow_background_playback\x18Q \x01(\x08\x12:\n\x0c\x61vailability\x18R \x03(\x0b\x32$.spotify.metadata.proto.Availability\x12\x14\n\x0c\x65xternal_url\x18S \x01(\t\x12\x39\n\x04type\x18W \x01(\x0e\x32+.spotify.metadata.proto.Episode.EpisodeType\"/\n\x0b\x45pisodeType\x12\x08\n\x04\x46ULL\x10\x00\x12\x0b\n\x07TRAILER\x10\x01\x12\t\n\x05\x42ONUS\x10\x02\"\x18\n\x08Licensor\x12\x0c\n\x04uuid\x18\x01 \x01(\x0c\"J\n\tTopTracks\x12\x0f\n\x07\x63ountry\x18\x01 \x01(\t\x12,\n\x05track\x18\x02 \x03(\x0b\x32\x1d.spotify.metadata.proto.Track\"F\n\x0e\x41\x63tivityPeriod\x12\x12\n\nstart_year\x18\x01 \x01(\x11\x12\x10\n\x08\x65nd_year\x18\x02 \x01(\x11\x12\x0e\n\x06\x64\x65\x63\x61\x64\x65\x18\x03 \x01(\x11\":\n\nAlbumGroup\x12,\n\x05\x61lbum\x18\x01 \x03(\x0b\x32\x1d.spotify.metadata.proto.Album\"N\n\x04\x44\x61te\x12\x0c\n\x04year\x18\x01 \x01(\x11\x12\r\n\x05month\x18\x02 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x11\x12\x0c\n\x04hour\x18\x04 \x01(\x11\x12\x0e\n\x06minute\x18\x05 \x01(\x11\"\xa0\x01\n\x05Image\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\x0c\x12\x30\n\x04size\x18\x02 \x01(\x0e\x32\".spotify.metadata.proto.Image.Size\x12\r\n\x05width\x18\x03 \x01(\x11\x12\x0e\n\x06height\x18\x04 \x01(\x11\"5\n\x04Size\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\t\n\x05SMALL\x10\x01\x12\t\n\x05LARGE\x10\x02\x12\n\n\x06XLARGE\x10\x03\":\n\nImageGroup\x12,\n\x05image\x18\x01 \x03(\x0b\x32\x1d.spotify.metadata.proto.Image\"\x86\x01\n\tBiography\x12\x0c\n\x04text\x18\x01 \x01(\t\x12/\n\x08portrait\x18\x02 \x03(\x0b\x32\x1d.spotify.metadata.proto.Image\x12:\n\x0eportrait_group\x18\x03 \x03(\x0b\x32\".spotify.metadata.proto.ImageGroup\"R\n\x04\x44isc\x12\x0e\n\x06number\x18\x01 \x01(\x11\x12\x0c\n\x04name\x18\x02 \x01(\t\x12,\n\x05track\x18\x03 \x03(\x0b\x32\x1d.spotify.metadata.proto.Track\"e\n\tCopyright\x12\x34\n\x04type\x18\x01 \x01(\x0e\x32&.spotify.metadata.proto.Copyright.Type\x12\x0c\n\x04text\x18\x02 \x01(\t\"\x14\n\x04Type\x12\x05\n\x01P\x10\x00\x12\x05\n\x01\x43\x10\x01\"\xdf\x02\n\x0bRestriction\x12@\n\tcatalogue\x18\x01 \x03(\x0e\x32-.spotify.metadata.proto.Restriction.Catalogue\x12\x36\n\x04type\x18\x04 \x01(\x0e\x32(.spotify.metadata.proto.Restriction.Type\x12\x15\n\rcatalogue_str\x18\x05 \x03(\t\x12\x1b\n\x11\x63ountries_allowed\x18\x02 \x01(\tH\x00\x12\x1d\n\x13\x63ountries_forbidden\x18\x03 \x01(\tH\x00\"U\n\tCatalogue\x12\x06\n\x02\x41\x44\x10\x00\x12\x10\n\x0cSUBSCRIPTION\x10\x01\x12\x11\n\rCATALOGUE_ALL\x10\x02\x12\x0b\n\x07SHUFFLE\x10\x03\x12\x0e\n\nCOMMERCIAL\x10\x04\"\x15\n\x04Type\x12\r\n\tSTREAMING\x10\x00\x42\x15\n\x13\x63ountry_restriction\"R\n\x0c\x41vailability\x12\x15\n\rcatalogue_str\x18\x01 \x03(\t\x12+\n\x05start\x18\x02 \x01(\x0b\x32\x1c.spotify.metadata.proto.Date\"\x9e\x01\n\nSalePeriod\x12\x38\n\x0brestriction\x18\x01 \x03(\x0b\x32#.spotify.metadata.proto.Restriction\x12+\n\x05start\x18\x02 \x01(\x0b\x32\x1c.spotify.metadata.proto.Date\x12)\n\x03\x65nd\x18\x03 \x01(\x0b\x32\x1c.spotify.metadata.proto.Date\"&\n\nExternalId\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\"\x9c\x02\n\tAudioFile\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\x0c\x12\x38\n\x06\x66ormat\x18\x02 \x01(\x0e\x32(.spotify.metadata.proto.AudioFile.Format\"\xc3\x01\n\x06\x46ormat\x12\x11\n\rOGG_VORBIS_96\x10\x00\x12\x12\n\x0eOGG_VORBIS_160\x10\x01\x12\x12\n\x0eOGG_VORBIS_320\x10\x02\x12\x0b\n\x07MP3_256\x10\x03\x12\x0b\n\x07MP3_320\x10\x04\x12\x0b\n\x07MP3_160\x10\x05\x12\n\n\x06MP3_96\x10\x06\x12\x0f\n\x0bMP3_160_ENC\x10\x07\x12\n\n\x06\x41\x41\x43_24\x10\x08\x12\n\n\x06\x41\x41\x43_48\x10\t\x12\r\n\tFLAC_FLAC\x10\x10\x12\x13\n\x0f\x46LAC_FLAC_24BIT\x10\x16\"\x1c\n\tVideoFile\x12\x0f\n\x07\x66ile_id\x18\x01 \x01(\x0c\x42\"\n\x14\x63om.spotify.metadataB\x08MetadataH\x02') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metadata_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.spotify.metadataB\010MetadataH\002' - _SHOW.fields_by_name['deprecated_popularity']._options = None - _SHOW.fields_by_name['deprecated_popularity']._serialized_options = b'\030\001' - _EPISODE.fields_by_name['deprecated_popularity']._options = None - _EPISODE.fields_by_name['deprecated_popularity']._serialized_options = b'\030\001' - _ARTIST._serialized_start=43 - _ARTIST._serialized_end=949 - _ALBUM._serialized_start=952 - _ALBUM._serialized_end=1824 - _ALBUM_TYPE._serialized_start=1742 - _ALBUM_TYPE._serialized_end=1824 - _TRACK._serialized_start=1827 - _TRACK._serialized_end=2552 - _SHOW._serialized_start=2555 - _SHOW._serialized_end=3258 - _SHOW_MEDIATYPE._serialized_start=3152 - _SHOW_MEDIATYPE._serialized_end=3196 - _SHOW_CONSUMPTIONORDER._serialized_start=3198 - _SHOW_CONSUMPTIONORDER._serialized_end=3258 - _EPISODE._serialized_start=3261 - _EPISODE._serialized_end=4150 - _EPISODE_EPISODETYPE._serialized_start=4103 - _EPISODE_EPISODETYPE._serialized_end=4150 - _LICENSOR._serialized_start=4152 - _LICENSOR._serialized_end=4176 - _TOPTRACKS._serialized_start=4178 - _TOPTRACKS._serialized_end=4252 - _ACTIVITYPERIOD._serialized_start=4254 - _ACTIVITYPERIOD._serialized_end=4324 - _ALBUMGROUP._serialized_start=4326 - _ALBUMGROUP._serialized_end=4384 - _DATE._serialized_start=4386 - _DATE._serialized_end=4464 - _IMAGE._serialized_start=4467 - _IMAGE._serialized_end=4627 - _IMAGE_SIZE._serialized_start=4574 - _IMAGE_SIZE._serialized_end=4627 - _IMAGEGROUP._serialized_start=4629 - _IMAGEGROUP._serialized_end=4687 - _BIOGRAPHY._serialized_start=4690 - _BIOGRAPHY._serialized_end=4824 - _DISC._serialized_start=4826 - _DISC._serialized_end=4908 - _COPYRIGHT._serialized_start=4910 - _COPYRIGHT._serialized_end=5011 - _COPYRIGHT_TYPE._serialized_start=4991 - _COPYRIGHT_TYPE._serialized_end=5011 - _RESTRICTION._serialized_start=5014 - _RESTRICTION._serialized_end=5365 - _RESTRICTION_CATALOGUE._serialized_start=5234 - _RESTRICTION_CATALOGUE._serialized_end=5319 - _RESTRICTION_TYPE._serialized_start=5321 - _RESTRICTION_TYPE._serialized_end=5342 - _AVAILABILITY._serialized_start=5367 - _AVAILABILITY._serialized_end=5449 - _SALEPERIOD._serialized_start=5452 - _SALEPERIOD._serialized_end=5610 - _EXTERNALID._serialized_start=5612 - _EXTERNALID._serialized_end=5650 - _AUDIOFILE._serialized_start=5653 - _AUDIOFILE._serialized_end=5937 - _AUDIOFILE_FORMAT._serialized_start=5742 - _AUDIOFILE_FORMAT._serialized_end=5937 - _VIDEOFILE._serialized_start=5939 - _VIDEOFILE._serialized_end=5967 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metadata_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.metadataB\010MetadataH\002' + _globals['_SHOW'].fields_by_name['deprecated_popularity']._loaded_options = None + _globals['_SHOW'].fields_by_name['deprecated_popularity']._serialized_options = b'\030\001' + _globals['_EPISODE'].fields_by_name['deprecated_popularity']._loaded_options = None + _globals['_EPISODE'].fields_by_name['deprecated_popularity']._serialized_options = b'\030\001' + _globals['_ARTIST']._serialized_start=43 + _globals['_ARTIST']._serialized_end=949 + _globals['_ALBUM']._serialized_start=952 + _globals['_ALBUM']._serialized_end=1824 + _globals['_ALBUM_TYPE']._serialized_start=1742 + _globals['_ALBUM_TYPE']._serialized_end=1824 + _globals['_TRACK']._serialized_start=1827 + _globals['_TRACK']._serialized_end=2552 + _globals['_SHOW']._serialized_start=2555 + _globals['_SHOW']._serialized_end=3258 + _globals['_SHOW_MEDIATYPE']._serialized_start=3152 + _globals['_SHOW_MEDIATYPE']._serialized_end=3196 + _globals['_SHOW_CONSUMPTIONORDER']._serialized_start=3198 + _globals['_SHOW_CONSUMPTIONORDER']._serialized_end=3258 + _globals['_EPISODE']._serialized_start=3261 + _globals['_EPISODE']._serialized_end=4150 + _globals['_EPISODE_EPISODETYPE']._serialized_start=4103 + _globals['_EPISODE_EPISODETYPE']._serialized_end=4150 + _globals['_LICENSOR']._serialized_start=4152 + _globals['_LICENSOR']._serialized_end=4176 + _globals['_TOPTRACKS']._serialized_start=4178 + _globals['_TOPTRACKS']._serialized_end=4252 + _globals['_ACTIVITYPERIOD']._serialized_start=4254 + _globals['_ACTIVITYPERIOD']._serialized_end=4324 + _globals['_ALBUMGROUP']._serialized_start=4326 + _globals['_ALBUMGROUP']._serialized_end=4384 + _globals['_DATE']._serialized_start=4386 + _globals['_DATE']._serialized_end=4464 + _globals['_IMAGE']._serialized_start=4467 + _globals['_IMAGE']._serialized_end=4627 + _globals['_IMAGE_SIZE']._serialized_start=4574 + _globals['_IMAGE_SIZE']._serialized_end=4627 + _globals['_IMAGEGROUP']._serialized_start=4629 + _globals['_IMAGEGROUP']._serialized_end=4687 + _globals['_BIOGRAPHY']._serialized_start=4690 + _globals['_BIOGRAPHY']._serialized_end=4824 + _globals['_DISC']._serialized_start=4826 + _globals['_DISC']._serialized_end=4908 + _globals['_COPYRIGHT']._serialized_start=4910 + _globals['_COPYRIGHT']._serialized_end=5011 + _globals['_COPYRIGHT_TYPE']._serialized_start=4991 + _globals['_COPYRIGHT_TYPE']._serialized_end=5011 + _globals['_RESTRICTION']._serialized_start=5014 + _globals['_RESTRICTION']._serialized_end=5365 + _globals['_RESTRICTION_CATALOGUE']._serialized_start=5234 + _globals['_RESTRICTION_CATALOGUE']._serialized_end=5319 + _globals['_RESTRICTION_TYPE']._serialized_start=5321 + _globals['_RESTRICTION_TYPE']._serialized_end=5342 + _globals['_AVAILABILITY']._serialized_start=5367 + _globals['_AVAILABILITY']._serialized_end=5449 + _globals['_SALEPERIOD']._serialized_start=5452 + _globals['_SALEPERIOD']._serialized_end=5610 + _globals['_EXTERNALID']._serialized_start=5612 + _globals['_EXTERNALID']._serialized_end=5650 + _globals['_AUDIOFILE']._serialized_start=5653 + _globals['_AUDIOFILE']._serialized_end=5937 + _globals['_AUDIOFILE_FORMAT']._serialized_start=5742 + _globals['_AUDIOFILE_FORMAT']._serialized_end=5937 + _globals['_VIDEOFILE']._serialized_start=5939 + _globals['_VIDEOFILE']._serialized_end=5967 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/PlayOrigin_pb2.py b/librespot/proto/PlayOrigin_pb2.py index 64b3efe1..502acbde 100644 --- a/librespot/proto/PlayOrigin_pb2.py +++ b/librespot/proto/PlayOrigin_pb2.py @@ -1,193 +1,37 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: play_origin.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'play_origin.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="play_origin.proto", - package="spotify.player.proto", - syntax="proto2", - serialized_options=b"\n\023com.spotify.contextH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x11play_origin.proto\x12\x14spotify.player.proto"\xbf\x01\n\nPlayOrigin\x12\x1a\n\x12\x66\x65\x61ture_identifier\x18\x01 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_version\x18\x02 \x01(\t\x12\x10\n\x08view_uri\x18\x03 \x01(\t\x12\x19\n\x11\x65xternal_referrer\x18\x04 \x01(\t\x12\x1b\n\x13referrer_identifier\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65vice_identifier\x18\x06 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_classes\x18\x07 \x03(\tB\x17\n\x13\x63om.spotify.contextH\x02', -) -_PLAYORIGIN = _descriptor.Descriptor( - name="PlayOrigin", - full_name="spotify.player.proto.PlayOrigin", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="feature_identifier", - full_name="spotify.player.proto.PlayOrigin.feature_identifier", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="feature_version", - full_name="spotify.player.proto.PlayOrigin.feature_version", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="view_uri", - full_name="spotify.player.proto.PlayOrigin.view_uri", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="external_referrer", - full_name="spotify.player.proto.PlayOrigin.external_referrer", - index=3, - number=4, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="referrer_identifier", - full_name="spotify.player.proto.PlayOrigin.referrer_identifier", - index=4, - number=5, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="device_identifier", - full_name="spotify.player.proto.PlayOrigin.device_identifier", - index=5, - number=6, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="feature_classes", - full_name="spotify.player.proto.PlayOrigin.feature_classes", - index=6, - number=7, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=44, - serialized_end=235, -) -DESCRIPTOR.message_types_by_name["PlayOrigin"] = _PLAYORIGIN -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -PlayOrigin = _reflection.GeneratedProtocolMessageType( - "PlayOrigin", - (_message.Message, ), - { - "DESCRIPTOR": _PLAYORIGIN, - "__module__": "play_origin_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.PlayOrigin) - }, -) -_sym_db.RegisterMessage(PlayOrigin) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11play_origin.proto\x12\x14spotify.player.proto\"\xbf\x01\n\nPlayOrigin\x12\x1a\n\x12\x66\x65\x61ture_identifier\x18\x01 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_version\x18\x02 \x01(\t\x12\x10\n\x08view_uri\x18\x03 \x01(\t\x12\x19\n\x11\x65xternal_referrer\x18\x04 \x01(\t\x12\x1b\n\x13referrer_identifier\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65vice_identifier\x18\x06 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_classes\x18\x07 \x03(\tB\x17\n\x13\x63om.spotify.contextH\x02') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'play_origin_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\023com.spotify.contextH\002' + _globals['_PLAYORIGIN']._serialized_start=44 + _globals['_PLAYORIGIN']._serialized_end=235 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Playback_pb2.py b/librespot/proto/Playback_pb2.py index 881cfebb..1603cae8 100644 --- a/librespot/proto/Playback_pb2.py +++ b/librespot/proto/Playback_pb2.py @@ -1,162 +1,38 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: playback.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -import ContextTrack_pb2 as context__track__pb2 from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'playback.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="playback.proto", - package="spotify.player.proto.transfer", - syntax="proto2", - serialized_options=b"\n\024com.spotify.transferH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x0eplayback.proto\x12\x1dspotify.player.proto.transfer\x1a\x13\x63ontext_track.proto"\xa5\x01\n\x08Playback\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12 \n\x18position_as_of_timestamp\x18\x02 \x01(\x05\x12\x16\n\x0eplayback_speed\x18\x03 \x01(\x01\x12\x11\n\tis_paused\x18\x04 \x01(\x08\x12\x39\n\rcurrent_track\x18\x05 \x01(\x0b\x32".spotify.player.proto.ContextTrackB\x18\n\x14\x63om.spotify.transferH\x02', - dependencies=[ - context__track__pb2.DESCRIPTOR, - ], -) -_PLAYBACK = _descriptor.Descriptor( - name="Playback", - full_name="spotify.player.proto.transfer.Playback", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="timestamp", - full_name="spotify.player.proto.transfer.Playback.timestamp", - index=0, - number=1, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="position_as_of_timestamp", - full_name= - "spotify.player.proto.transfer.Playback.position_as_of_timestamp", - index=1, - number=2, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="playback_speed", - full_name="spotify.player.proto.transfer.Playback.playback_speed", - index=2, - number=3, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="is_paused", - full_name="spotify.player.proto.transfer.Playback.is_paused", - index=3, - number=4, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="current_track", - full_name="spotify.player.proto.transfer.Playback.current_track", - index=4, - number=5, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=71, - serialized_end=236, -) +from librespot.proto import ContextTrack_pb2 as context__track__pb2 -_PLAYBACK.fields_by_name[ - "current_track"].message_type = context__track__pb2._CONTEXTTRACK -DESCRIPTOR.message_types_by_name["Playback"] = _PLAYBACK -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -Playback = _reflection.GeneratedProtocolMessageType( - "Playback", - (_message.Message, ), - { - "DESCRIPTOR": _PLAYBACK, - "__module__": "playback_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.transfer.Playback) - }, -) -_sym_db.RegisterMessage(Playback) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eplayback.proto\x12\x1dspotify.player.proto.transfer\x1a\x13\x63ontext_track.proto\"\xa5\x01\n\x08Playback\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12 \n\x18position_as_of_timestamp\x18\x02 \x01(\x05\x12\x16\n\x0eplayback_speed\x18\x03 \x01(\x01\x12\x11\n\tis_paused\x18\x04 \x01(\x08\x12\x39\n\rcurrent_track\x18\x05 \x01(\x0b\x32\".spotify.player.proto.ContextTrackB\x18\n\x14\x63om.spotify.transferH\x02') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'playback_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.transferH\002' + _globals['_PLAYBACK']._serialized_start=71 + _globals['_PLAYBACK']._serialized_end=236 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Player_pb2.py b/librespot/proto/Player_pb2.py index cd267de8..27769292 100644 --- a/librespot/proto/Player_pb2.py +++ b/librespot/proto/Player_pb2.py @@ -1,1851 +1,61 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: player.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'player.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name='player.proto', - package='connectstate', - syntax='proto3', - serialized_options=b'\n\030com.spotify.connectstateH\002', - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x0cplayer.proto\x12\x0c\x63onnectstate\"\xea\x08\n\x0bPlayerState\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x13\n\x0b\x63ontext_uri\x18\x02 \x01(\t\x12\x13\n\x0b\x63ontext_url\x18\x03 \x01(\t\x12\x38\n\x14\x63ontext_restrictions\x18\x04 \x01(\x0b\x32\x1a.connectstate.Restrictions\x12-\n\x0bplay_origin\x18\x05 \x01(\x0b\x32\x18.connectstate.PlayOrigin\x12)\n\x05index\x18\x06 \x01(\x0b\x32\x1a.connectstate.ContextIndex\x12*\n\x05track\x18\x07 \x01(\x0b\x32\x1b.connectstate.ProvidedTrack\x12\x13\n\x0bplayback_id\x18\x08 \x01(\t\x12\x16\n\x0eplayback_speed\x18\t \x01(\x01\x12 \n\x18position_as_of_timestamp\x18\n \x01(\x03\x12\x10\n\x08\x64uration\x18\x0b \x01(\x03\x12\x12\n\nis_playing\x18\x0c \x01(\x08\x12\x11\n\tis_paused\x18\r \x01(\x08\x12\x14\n\x0cis_buffering\x18\x0e \x01(\x08\x12\x1b\n\x13is_system_initiated\x18\x0f \x01(\x08\x12\x33\n\x07options\x18\x10 \x01(\x0b\x32\".connectstate.ContextPlayerOptions\x12\x30\n\x0crestrictions\x18\x11 \x01(\x0b\x32\x1a.connectstate.Restrictions\x12\x30\n\x0csuppressions\x18\x12 \x01(\x0b\x32\x1a.connectstate.Suppressions\x12\x30\n\x0bprev_tracks\x18\x13 \x03(\x0b\x32\x1b.connectstate.ProvidedTrack\x12\x30\n\x0bnext_tracks\x18\x14 \x03(\x0b\x32\x1b.connectstate.ProvidedTrack\x12H\n\x10\x63ontext_metadata\x18\x15 \x03(\x0b\x32..connectstate.PlayerState.ContextMetadataEntry\x12\x42\n\rpage_metadata\x18\x16 \x03(\x0b\x32+.connectstate.PlayerState.PageMetadataEntry\x12\x12\n\nsession_id\x18\x17 \x01(\t\x12\x16\n\x0equeue_revision\x18\x18 \x01(\t\x12\x10\n\x08position\x18\x19 \x01(\x03\x12\x12\n\nentity_uri\x18\x1a \x01(\t\x12,\n\x07reverse\x18\x1b \x03(\x0b\x32\x1b.connectstate.ProvidedTrack\x12+\n\x06\x66uture\x18\x1c \x03(\x0b\x32\x1b.connectstate.ProvidedTrack\x1a\x36\n\x14\x43ontextMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11PageMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xda\x02\n\rProvidedTrack\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12;\n\x08metadata\x18\x03 \x03(\x0b\x32).connectstate.ProvidedTrack.MetadataEntry\x12\x0f\n\x07removed\x18\x04 \x03(\t\x12\x0f\n\x07\x62locked\x18\x05 \x03(\t\x12\x10\n\x08provider\x18\x06 \x01(\t\x12\x30\n\x0crestrictions\x18\x07 \x01(\x0b\x32\x1a.connectstate.Restrictions\x12\x11\n\talbum_uri\x18\x08 \x01(\t\x12\x18\n\x10\x64isallow_reasons\x18\t \x03(\t\x12\x12\n\nartist_uri\x18\n \x01(\t\x12\x1a\n\x12\x64isallow_undecided\x18\x0b \x03(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"+\n\x0c\x43ontextIndex\x12\x0c\n\x04page\x18\x01 \x01(\r\x12\r\n\x05track\x18\x02 \x01(\r\"\x80\x08\n\x0cRestrictions\x12 \n\x18\x64isallow_pausing_reasons\x18\x01 \x03(\t\x12!\n\x19\x64isallow_resuming_reasons\x18\x02 \x03(\t\x12 \n\x18\x64isallow_seeking_reasons\x18\x03 \x03(\t\x12%\n\x1d\x64isallow_peeking_prev_reasons\x18\x04 \x03(\t\x12%\n\x1d\x64isallow_peeking_next_reasons\x18\x05 \x03(\t\x12&\n\x1e\x64isallow_skipping_prev_reasons\x18\x06 \x03(\t\x12&\n\x1e\x64isallow_skipping_next_reasons\x18\x07 \x03(\t\x12\x30\n(disallow_toggling_repeat_context_reasons\x18\x08 \x03(\t\x12.\n&disallow_toggling_repeat_track_reasons\x18\t \x03(\t\x12)\n!disallow_toggling_shuffle_reasons\x18\n \x03(\t\x12\"\n\x1a\x64isallow_set_queue_reasons\x18\x0b \x03(\t\x12.\n&disallow_interrupting_playback_reasons\x18\x0c \x03(\t\x12.\n&disallow_transferring_playback_reasons\x18\r \x03(\t\x12\'\n\x1f\x64isallow_remote_control_reasons\x18\x0e \x03(\t\x12\x33\n+disallow_inserting_into_next_tracks_reasons\x18\x0f \x03(\t\x12\x36\n.disallow_inserting_into_context_tracks_reasons\x18\x10 \x03(\t\x12\x32\n*disallow_reordering_in_next_tracks_reasons\x18\x11 \x03(\t\x12\x35\n-disallow_reordering_in_context_tracks_reasons\x18\x12 \x03(\t\x12\x32\n*disallow_removing_from_next_tracks_reasons\x18\x13 \x03(\t\x12\x35\n-disallow_removing_from_context_tracks_reasons\x18\x14 \x03(\t\x12)\n!disallow_updating_context_reasons\x18\x15 \x03(\t\x12 \n\x18\x64isallow_playing_reasons\x18\x16 \x03(\t\x12!\n\x19\x64isallow_stopping_reasons\x18\x17 \x03(\t\"\xbf\x01\n\nPlayOrigin\x12\x1a\n\x12\x66\x65\x61ture_identifier\x18\x01 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_version\x18\x02 \x01(\t\x12\x10\n\x08view_uri\x18\x03 \x01(\t\x12\x19\n\x11\x65xternal_referrer\x18\x04 \x01(\t\x12\x1b\n\x13referrer_identifier\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65vice_identifier\x18\x06 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_classes\x18\x07 \x03(\t\"e\n\x14\x43ontextPlayerOptions\x12\x19\n\x11shuffling_context\x18\x01 \x01(\x08\x12\x19\n\x11repeating_context\x18\x02 \x01(\x08\x12\x17\n\x0frepeating_track\x18\x03 \x01(\x08\"!\n\x0cSuppressions\x12\x11\n\tproviders\x18\x01 \x03(\tB\x1c\n\x18\x63om.spotify.connectstateH\x02\x62\x06proto3' -) - -_PLAYERSTATE_CONTEXTMETADATAENTRY = _descriptor.Descriptor( - name='ContextMetadataEntry', - full_name='connectstate.PlayerState.ContextMetadataEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', - full_name='connectstate.PlayerState.ContextMetadataEntry.key', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', - full_name='connectstate.PlayerState.ContextMetadataEntry.value', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1054, - serialized_end=1108, -) - -_PLAYERSTATE_PAGEMETADATAENTRY = _descriptor.Descriptor( - name='PageMetadataEntry', - full_name='connectstate.PlayerState.PageMetadataEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', - full_name='connectstate.PlayerState.PageMetadataEntry.key', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', - full_name='connectstate.PlayerState.PageMetadataEntry.value', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1110, - serialized_end=1161, -) - -_PLAYERSTATE = _descriptor.Descriptor( - name='PlayerState', - full_name='connectstate.PlayerState', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp', - full_name='connectstate.PlayerState.timestamp', - index=0, - number=1, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='context_uri', - full_name='connectstate.PlayerState.context_uri', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='context_url', - full_name='connectstate.PlayerState.context_url', - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='context_restrictions', - full_name='connectstate.PlayerState.context_restrictions', - index=3, - number=4, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='play_origin', - full_name='connectstate.PlayerState.play_origin', - index=4, - number=5, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='index', - full_name='connectstate.PlayerState.index', - index=5, - number=6, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='track', - full_name='connectstate.PlayerState.track', - index=6, - number=7, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='playback_id', - full_name='connectstate.PlayerState.playback_id', - index=7, - number=8, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='playback_speed', - full_name='connectstate.PlayerState.playback_speed', - index=8, - number=9, - type=1, - cpp_type=5, - label=1, - has_default_value=False, - default_value=float(0), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='position_as_of_timestamp', - full_name='connectstate.PlayerState.position_as_of_timestamp', - index=9, - number=10, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='duration', - full_name='connectstate.PlayerState.duration', - index=10, - number=11, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_playing', - full_name='connectstate.PlayerState.is_playing', - index=11, - number=12, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_paused', - full_name='connectstate.PlayerState.is_paused', - index=12, - number=13, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_buffering', - full_name='connectstate.PlayerState.is_buffering', - index=13, - number=14, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='is_system_initiated', - full_name='connectstate.PlayerState.is_system_initiated', - index=14, - number=15, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='options', - full_name='connectstate.PlayerState.options', - index=15, - number=16, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='restrictions', - full_name='connectstate.PlayerState.restrictions', - index=16, - number=17, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='suppressions', - full_name='connectstate.PlayerState.suppressions', - index=17, - number=18, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='prev_tracks', - full_name='connectstate.PlayerState.prev_tracks', - index=18, - number=19, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='next_tracks', - full_name='connectstate.PlayerState.next_tracks', - index=19, - number=20, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='context_metadata', - full_name='connectstate.PlayerState.context_metadata', - index=20, - number=21, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='page_metadata', - full_name='connectstate.PlayerState.page_metadata', - index=21, - number=22, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='session_id', - full_name='connectstate.PlayerState.session_id', - index=22, - number=23, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='queue_revision', - full_name='connectstate.PlayerState.queue_revision', - index=23, - number=24, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='position', - full_name='connectstate.PlayerState.position', - index=24, - number=25, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='entity_uri', - full_name='connectstate.PlayerState.entity_uri', - index=25, - number=26, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='reverse', - full_name='connectstate.PlayerState.reverse', - index=26, - number=27, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='future', - full_name='connectstate.PlayerState.future', - index=27, - number=28, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[ - _PLAYERSTATE_CONTEXTMETADATAENTRY, - _PLAYERSTATE_PAGEMETADATAENTRY, - ], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=31, - serialized_end=1161, -) - -_PROVIDEDTRACK_METADATAENTRY = _descriptor.Descriptor( - name='MetadataEntry', - full_name='connectstate.ProvidedTrack.MetadataEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', - full_name='connectstate.ProvidedTrack.MetadataEntry.key', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='value', - full_name='connectstate.ProvidedTrack.MetadataEntry.value', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1463, - serialized_end=1510, -) - -_PROVIDEDTRACK = _descriptor.Descriptor( - name='ProvidedTrack', - full_name='connectstate.ProvidedTrack', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='uri', - full_name='connectstate.ProvidedTrack.uri', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='uid', - full_name='connectstate.ProvidedTrack.uid', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='metadata', - full_name='connectstate.ProvidedTrack.metadata', - index=2, - number=3, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='removed', - full_name='connectstate.ProvidedTrack.removed', - index=3, - number=4, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='blocked', - full_name='connectstate.ProvidedTrack.blocked', - index=4, - number=5, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='provider', - full_name='connectstate.ProvidedTrack.provider', - index=5, - number=6, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='restrictions', - full_name='connectstate.ProvidedTrack.restrictions', - index=6, - number=7, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='album_uri', - full_name='connectstate.ProvidedTrack.album_uri', - index=7, - number=8, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_reasons', - full_name='connectstate.ProvidedTrack.disallow_reasons', - index=8, - number=9, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='artist_uri', - full_name='connectstate.ProvidedTrack.artist_uri', - index=9, - number=10, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_undecided', - full_name='connectstate.ProvidedTrack.disallow_undecided', - index=10, - number=11, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[ - _PROVIDEDTRACK_METADATAENTRY, - ], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1164, - serialized_end=1510, -) - -_CONTEXTINDEX = _descriptor.Descriptor( - name='ContextIndex', - full_name='connectstate.ContextIndex', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='page', - full_name='connectstate.ContextIndex.page', - index=0, - number=1, - type=13, - cpp_type=3, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='track', - full_name='connectstate.ContextIndex.track', - index=1, - number=2, - type=13, - cpp_type=3, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1512, - serialized_end=1555, -) - -_RESTRICTIONS = _descriptor.Descriptor( - name='Restrictions', - full_name='connectstate.Restrictions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='disallow_pausing_reasons', - full_name='connectstate.Restrictions.disallow_pausing_reasons', - index=0, - number=1, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_resuming_reasons', - full_name='connectstate.Restrictions.disallow_resuming_reasons', - index=1, - number=2, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_seeking_reasons', - full_name='connectstate.Restrictions.disallow_seeking_reasons', - index=2, - number=3, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_peeking_prev_reasons', - full_name='connectstate.Restrictions.disallow_peeking_prev_reasons', - index=3, - number=4, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_peeking_next_reasons', - full_name='connectstate.Restrictions.disallow_peeking_next_reasons', - index=4, - number=5, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_skipping_prev_reasons', - full_name= - 'connectstate.Restrictions.disallow_skipping_prev_reasons', - index=5, - number=6, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_skipping_next_reasons', - full_name= - 'connectstate.Restrictions.disallow_skipping_next_reasons', - index=6, - number=7, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_toggling_repeat_context_reasons', - full_name= - 'connectstate.Restrictions.disallow_toggling_repeat_context_reasons', - index=7, - number=8, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_toggling_repeat_track_reasons', - full_name= - 'connectstate.Restrictions.disallow_toggling_repeat_track_reasons', - index=8, - number=9, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_toggling_shuffle_reasons', - full_name= - 'connectstate.Restrictions.disallow_toggling_shuffle_reasons', - index=9, - number=10, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_set_queue_reasons', - full_name='connectstate.Restrictions.disallow_set_queue_reasons', - index=10, - number=11, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_interrupting_playback_reasons', - full_name= - 'connectstate.Restrictions.disallow_interrupting_playback_reasons', - index=11, - number=12, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_transferring_playback_reasons', - full_name= - 'connectstate.Restrictions.disallow_transferring_playback_reasons', - index=12, - number=13, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_remote_control_reasons', - full_name= - 'connectstate.Restrictions.disallow_remote_control_reasons', - index=13, - number=14, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_inserting_into_next_tracks_reasons', - full_name= - 'connectstate.Restrictions.disallow_inserting_into_next_tracks_reasons', - index=14, - number=15, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_inserting_into_context_tracks_reasons', - full_name= - 'connectstate.Restrictions.disallow_inserting_into_context_tracks_reasons', - index=15, - number=16, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_reordering_in_next_tracks_reasons', - full_name= - 'connectstate.Restrictions.disallow_reordering_in_next_tracks_reasons', - index=16, - number=17, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_reordering_in_context_tracks_reasons', - full_name= - 'connectstate.Restrictions.disallow_reordering_in_context_tracks_reasons', - index=17, - number=18, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_removing_from_next_tracks_reasons', - full_name= - 'connectstate.Restrictions.disallow_removing_from_next_tracks_reasons', - index=18, - number=19, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_removing_from_context_tracks_reasons', - full_name= - 'connectstate.Restrictions.disallow_removing_from_context_tracks_reasons', - index=19, - number=20, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_updating_context_reasons', - full_name= - 'connectstate.Restrictions.disallow_updating_context_reasons', - index=20, - number=21, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_playing_reasons', - full_name='connectstate.Restrictions.disallow_playing_reasons', - index=21, - number=22, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='disallow_stopping_reasons', - full_name='connectstate.Restrictions.disallow_stopping_reasons', - index=22, - number=23, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=1558, - serialized_end=2582, -) - -_PLAYORIGIN = _descriptor.Descriptor( - name='PlayOrigin', - full_name='connectstate.PlayOrigin', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='feature_identifier', - full_name='connectstate.PlayOrigin.feature_identifier', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='feature_version', - full_name='connectstate.PlayOrigin.feature_version', - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='view_uri', - full_name='connectstate.PlayOrigin.view_uri', - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='external_referrer', - full_name='connectstate.PlayOrigin.external_referrer', - index=3, - number=4, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='referrer_identifier', - full_name='connectstate.PlayOrigin.referrer_identifier', - index=4, - number=5, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='device_identifier', - full_name='connectstate.PlayOrigin.device_identifier', - index=5, - number=6, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='feature_classes', - full_name='connectstate.PlayOrigin.feature_classes', - index=6, - number=7, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=2585, - serialized_end=2776, -) - -_CONTEXTPLAYEROPTIONS = _descriptor.Descriptor( - name='ContextPlayerOptions', - full_name='connectstate.ContextPlayerOptions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='shuffling_context', - full_name='connectstate.ContextPlayerOptions.shuffling_context', - index=0, - number=1, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='repeating_context', - full_name='connectstate.ContextPlayerOptions.repeating_context', - index=1, - number=2, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='repeating_track', - full_name='connectstate.ContextPlayerOptions.repeating_track', - index=2, - number=3, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=2778, - serialized_end=2879, -) - -_SUPPRESSIONS = _descriptor.Descriptor( - name='Suppressions', - full_name='connectstate.Suppressions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='providers', - full_name='connectstate.Suppressions.providers', - index=0, - number=1, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=2881, - serialized_end=2914, -) - -_PLAYERSTATE_CONTEXTMETADATAENTRY.containing_type = _PLAYERSTATE -_PLAYERSTATE_PAGEMETADATAENTRY.containing_type = _PLAYERSTATE -_PLAYERSTATE.fields_by_name[ - 'context_restrictions'].message_type = _RESTRICTIONS -_PLAYERSTATE.fields_by_name['play_origin'].message_type = _PLAYORIGIN -_PLAYERSTATE.fields_by_name['index'].message_type = _CONTEXTINDEX -_PLAYERSTATE.fields_by_name['track'].message_type = _PROVIDEDTRACK -_PLAYERSTATE.fields_by_name['options'].message_type = _CONTEXTPLAYEROPTIONS -_PLAYERSTATE.fields_by_name['restrictions'].message_type = _RESTRICTIONS -_PLAYERSTATE.fields_by_name['suppressions'].message_type = _SUPPRESSIONS -_PLAYERSTATE.fields_by_name['prev_tracks'].message_type = _PROVIDEDTRACK -_PLAYERSTATE.fields_by_name['next_tracks'].message_type = _PROVIDEDTRACK -_PLAYERSTATE.fields_by_name[ - 'context_metadata'].message_type = _PLAYERSTATE_CONTEXTMETADATAENTRY -_PLAYERSTATE.fields_by_name[ - 'page_metadata'].message_type = _PLAYERSTATE_PAGEMETADATAENTRY -_PLAYERSTATE.fields_by_name['reverse'].message_type = _PROVIDEDTRACK -_PLAYERSTATE.fields_by_name['future'].message_type = _PROVIDEDTRACK -_PROVIDEDTRACK_METADATAENTRY.containing_type = _PROVIDEDTRACK -_PROVIDEDTRACK.fields_by_name[ - 'metadata'].message_type = _PROVIDEDTRACK_METADATAENTRY -_PROVIDEDTRACK.fields_by_name['restrictions'].message_type = _RESTRICTIONS -DESCRIPTOR.message_types_by_name['PlayerState'] = _PLAYERSTATE -DESCRIPTOR.message_types_by_name['ProvidedTrack'] = _PROVIDEDTRACK -DESCRIPTOR.message_types_by_name['ContextIndex'] = _CONTEXTINDEX -DESCRIPTOR.message_types_by_name['Restrictions'] = _RESTRICTIONS -DESCRIPTOR.message_types_by_name['PlayOrigin'] = _PLAYORIGIN -DESCRIPTOR.message_types_by_name[ - 'ContextPlayerOptions'] = _CONTEXTPLAYEROPTIONS -DESCRIPTOR.message_types_by_name['Suppressions'] = _SUPPRESSIONS -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PlayerState = _reflection.GeneratedProtocolMessageType( - 'PlayerState', - (_message.Message, ), - { - 'ContextMetadataEntry': - _reflection.GeneratedProtocolMessageType( - 'ContextMetadataEntry', - (_message.Message, ), - { - 'DESCRIPTOR': _PLAYERSTATE_CONTEXTMETADATAENTRY, - '__module__': 'player_pb2' - # @@protoc_insertion_point(class_scope:connectstate.PlayerState.ContextMetadataEntry) - }), - 'PageMetadataEntry': - _reflection.GeneratedProtocolMessageType( - 'PageMetadataEntry', - (_message.Message, ), - { - 'DESCRIPTOR': _PLAYERSTATE_PAGEMETADATAENTRY, - '__module__': 'player_pb2' - # @@protoc_insertion_point(class_scope:connectstate.PlayerState.PageMetadataEntry) - }), - 'DESCRIPTOR': - _PLAYERSTATE, - '__module__': - 'player_pb2' - # @@protoc_insertion_point(class_scope:connectstate.PlayerState) - }) -_sym_db.RegisterMessage(PlayerState) -_sym_db.RegisterMessage(PlayerState.ContextMetadataEntry) -_sym_db.RegisterMessage(PlayerState.PageMetadataEntry) - -ProvidedTrack = _reflection.GeneratedProtocolMessageType( - 'ProvidedTrack', - (_message.Message, ), - { - 'MetadataEntry': - _reflection.GeneratedProtocolMessageType( - 'MetadataEntry', - (_message.Message, ), - { - 'DESCRIPTOR': _PROVIDEDTRACK_METADATAENTRY, - '__module__': 'player_pb2' - # @@protoc_insertion_point(class_scope:connectstate.ProvidedTrack.MetadataEntry) - }), - 'DESCRIPTOR': - _PROVIDEDTRACK, - '__module__': - 'player_pb2' - # @@protoc_insertion_point(class_scope:connectstate.ProvidedTrack) - }) -_sym_db.RegisterMessage(ProvidedTrack) -_sym_db.RegisterMessage(ProvidedTrack.MetadataEntry) - -ContextIndex = _reflection.GeneratedProtocolMessageType( - 'ContextIndex', - (_message.Message, ), - { - 'DESCRIPTOR': _CONTEXTINDEX, - '__module__': 'player_pb2' - # @@protoc_insertion_point(class_scope:connectstate.ContextIndex) - }) -_sym_db.RegisterMessage(ContextIndex) - -Restrictions = _reflection.GeneratedProtocolMessageType( - 'Restrictions', - (_message.Message, ), - { - 'DESCRIPTOR': _RESTRICTIONS, - '__module__': 'player_pb2' - # @@protoc_insertion_point(class_scope:connectstate.Restrictions) - }) -_sym_db.RegisterMessage(Restrictions) - -PlayOrigin = _reflection.GeneratedProtocolMessageType( - 'PlayOrigin', - (_message.Message, ), - { - 'DESCRIPTOR': _PLAYORIGIN, - '__module__': 'player_pb2' - # @@protoc_insertion_point(class_scope:connectstate.PlayOrigin) - }) -_sym_db.RegisterMessage(PlayOrigin) -ContextPlayerOptions = _reflection.GeneratedProtocolMessageType( - 'ContextPlayerOptions', - (_message.Message, ), - { - 'DESCRIPTOR': _CONTEXTPLAYEROPTIONS, - '__module__': 'player_pb2' - # @@protoc_insertion_point(class_scope:connectstate.ContextPlayerOptions) - }) -_sym_db.RegisterMessage(ContextPlayerOptions) -Suppressions = _reflection.GeneratedProtocolMessageType( - 'Suppressions', - (_message.Message, ), - { - 'DESCRIPTOR': _SUPPRESSIONS, - '__module__': 'player_pb2' - # @@protoc_insertion_point(class_scope:connectstate.Suppressions) - }) -_sym_db.RegisterMessage(Suppressions) -DESCRIPTOR._options = None -_PLAYERSTATE_CONTEXTMETADATAENTRY._options = None -_PLAYERSTATE_PAGEMETADATAENTRY._options = None -_PROVIDEDTRACK_METADATAENTRY._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cplayer.proto\x12\x0c\x63onnectstate\"\xea\x08\n\x0bPlayerState\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x13\n\x0b\x63ontext_uri\x18\x02 \x01(\t\x12\x13\n\x0b\x63ontext_url\x18\x03 \x01(\t\x12\x38\n\x14\x63ontext_restrictions\x18\x04 \x01(\x0b\x32\x1a.connectstate.Restrictions\x12-\n\x0bplay_origin\x18\x05 \x01(\x0b\x32\x18.connectstate.PlayOrigin\x12)\n\x05index\x18\x06 \x01(\x0b\x32\x1a.connectstate.ContextIndex\x12*\n\x05track\x18\x07 \x01(\x0b\x32\x1b.connectstate.ProvidedTrack\x12\x13\n\x0bplayback_id\x18\x08 \x01(\t\x12\x16\n\x0eplayback_speed\x18\t \x01(\x01\x12 \n\x18position_as_of_timestamp\x18\n \x01(\x03\x12\x10\n\x08\x64uration\x18\x0b \x01(\x03\x12\x12\n\nis_playing\x18\x0c \x01(\x08\x12\x11\n\tis_paused\x18\r \x01(\x08\x12\x14\n\x0cis_buffering\x18\x0e \x01(\x08\x12\x1b\n\x13is_system_initiated\x18\x0f \x01(\x08\x12\x33\n\x07options\x18\x10 \x01(\x0b\x32\".connectstate.ContextPlayerOptions\x12\x30\n\x0crestrictions\x18\x11 \x01(\x0b\x32\x1a.connectstate.Restrictions\x12\x30\n\x0csuppressions\x18\x12 \x01(\x0b\x32\x1a.connectstate.Suppressions\x12\x30\n\x0bprev_tracks\x18\x13 \x03(\x0b\x32\x1b.connectstate.ProvidedTrack\x12\x30\n\x0bnext_tracks\x18\x14 \x03(\x0b\x32\x1b.connectstate.ProvidedTrack\x12H\n\x10\x63ontext_metadata\x18\x15 \x03(\x0b\x32..connectstate.PlayerState.ContextMetadataEntry\x12\x42\n\rpage_metadata\x18\x16 \x03(\x0b\x32+.connectstate.PlayerState.PageMetadataEntry\x12\x12\n\nsession_id\x18\x17 \x01(\t\x12\x16\n\x0equeue_revision\x18\x18 \x01(\t\x12\x10\n\x08position\x18\x19 \x01(\x03\x12\x12\n\nentity_uri\x18\x1a \x01(\t\x12,\n\x07reverse\x18\x1b \x03(\x0b\x32\x1b.connectstate.ProvidedTrack\x12+\n\x06\x66uture\x18\x1c \x03(\x0b\x32\x1b.connectstate.ProvidedTrack\x1a\x36\n\x14\x43ontextMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11PageMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xda\x02\n\rProvidedTrack\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12;\n\x08metadata\x18\x03 \x03(\x0b\x32).connectstate.ProvidedTrack.MetadataEntry\x12\x0f\n\x07removed\x18\x04 \x03(\t\x12\x0f\n\x07\x62locked\x18\x05 \x03(\t\x12\x10\n\x08provider\x18\x06 \x01(\t\x12\x30\n\x0crestrictions\x18\x07 \x01(\x0b\x32\x1a.connectstate.Restrictions\x12\x11\n\talbum_uri\x18\x08 \x01(\t\x12\x18\n\x10\x64isallow_reasons\x18\t \x03(\t\x12\x12\n\nartist_uri\x18\n \x01(\t\x12\x1a\n\x12\x64isallow_undecided\x18\x0b \x03(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"+\n\x0c\x43ontextIndex\x12\x0c\n\x04page\x18\x01 \x01(\r\x12\r\n\x05track\x18\x02 \x01(\r\"\x80\x08\n\x0cRestrictions\x12 \n\x18\x64isallow_pausing_reasons\x18\x01 \x03(\t\x12!\n\x19\x64isallow_resuming_reasons\x18\x02 \x03(\t\x12 \n\x18\x64isallow_seeking_reasons\x18\x03 \x03(\t\x12%\n\x1d\x64isallow_peeking_prev_reasons\x18\x04 \x03(\t\x12%\n\x1d\x64isallow_peeking_next_reasons\x18\x05 \x03(\t\x12&\n\x1e\x64isallow_skipping_prev_reasons\x18\x06 \x03(\t\x12&\n\x1e\x64isallow_skipping_next_reasons\x18\x07 \x03(\t\x12\x30\n(disallow_toggling_repeat_context_reasons\x18\x08 \x03(\t\x12.\n&disallow_toggling_repeat_track_reasons\x18\t \x03(\t\x12)\n!disallow_toggling_shuffle_reasons\x18\n \x03(\t\x12\"\n\x1a\x64isallow_set_queue_reasons\x18\x0b \x03(\t\x12.\n&disallow_interrupting_playback_reasons\x18\x0c \x03(\t\x12.\n&disallow_transferring_playback_reasons\x18\r \x03(\t\x12\'\n\x1f\x64isallow_remote_control_reasons\x18\x0e \x03(\t\x12\x33\n+disallow_inserting_into_next_tracks_reasons\x18\x0f \x03(\t\x12\x36\n.disallow_inserting_into_context_tracks_reasons\x18\x10 \x03(\t\x12\x32\n*disallow_reordering_in_next_tracks_reasons\x18\x11 \x03(\t\x12\x35\n-disallow_reordering_in_context_tracks_reasons\x18\x12 \x03(\t\x12\x32\n*disallow_removing_from_next_tracks_reasons\x18\x13 \x03(\t\x12\x35\n-disallow_removing_from_context_tracks_reasons\x18\x14 \x03(\t\x12)\n!disallow_updating_context_reasons\x18\x15 \x03(\t\x12 \n\x18\x64isallow_playing_reasons\x18\x16 \x03(\t\x12!\n\x19\x64isallow_stopping_reasons\x18\x17 \x03(\t\"\xbf\x01\n\nPlayOrigin\x12\x1a\n\x12\x66\x65\x61ture_identifier\x18\x01 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_version\x18\x02 \x01(\t\x12\x10\n\x08view_uri\x18\x03 \x01(\t\x12\x19\n\x11\x65xternal_referrer\x18\x04 \x01(\t\x12\x1b\n\x13referrer_identifier\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65vice_identifier\x18\x06 \x01(\t\x12\x17\n\x0f\x66\x65\x61ture_classes\x18\x07 \x03(\t\"e\n\x14\x43ontextPlayerOptions\x12\x19\n\x11shuffling_context\x18\x01 \x01(\x08\x12\x19\n\x11repeating_context\x18\x02 \x01(\x08\x12\x17\n\x0frepeating_track\x18\x03 \x01(\x08\"!\n\x0cSuppressions\x12\x11\n\tproviders\x18\x01 \x03(\tB\x1c\n\x18\x63om.spotify.connectstateH\x02\x62\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'player_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\030com.spotify.connectstateH\002' + _globals['_PLAYERSTATE_CONTEXTMETADATAENTRY']._loaded_options = None + _globals['_PLAYERSTATE_CONTEXTMETADATAENTRY']._serialized_options = b'8\001' + _globals['_PLAYERSTATE_PAGEMETADATAENTRY']._loaded_options = None + _globals['_PLAYERSTATE_PAGEMETADATAENTRY']._serialized_options = b'8\001' + _globals['_PROVIDEDTRACK_METADATAENTRY']._loaded_options = None + _globals['_PROVIDEDTRACK_METADATAENTRY']._serialized_options = b'8\001' + _globals['_PLAYERSTATE']._serialized_start=31 + _globals['_PLAYERSTATE']._serialized_end=1161 + _globals['_PLAYERSTATE_CONTEXTMETADATAENTRY']._serialized_start=1054 + _globals['_PLAYERSTATE_CONTEXTMETADATAENTRY']._serialized_end=1108 + _globals['_PLAYERSTATE_PAGEMETADATAENTRY']._serialized_start=1110 + _globals['_PLAYERSTATE_PAGEMETADATAENTRY']._serialized_end=1161 + _globals['_PROVIDEDTRACK']._serialized_start=1164 + _globals['_PROVIDEDTRACK']._serialized_end=1510 + _globals['_PROVIDEDTRACK_METADATAENTRY']._serialized_start=1463 + _globals['_PROVIDEDTRACK_METADATAENTRY']._serialized_end=1510 + _globals['_CONTEXTINDEX']._serialized_start=1512 + _globals['_CONTEXTINDEX']._serialized_end=1555 + _globals['_RESTRICTIONS']._serialized_start=1558 + _globals['_RESTRICTIONS']._serialized_end=2582 + _globals['_PLAYORIGIN']._serialized_start=2585 + _globals['_PLAYORIGIN']._serialized_end=2776 + _globals['_CONTEXTPLAYEROPTIONS']._serialized_start=2778 + _globals['_CONTEXTPLAYEROPTIONS']._serialized_end=2879 + _globals['_SUPPRESSIONS']._serialized_start=2881 + _globals['_SUPPRESSIONS']._serialized_end=2914 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Playlist4External_pb2.py b/librespot/proto/Playlist4External_pb2.py index f49f4ff3..7c65bda8 100644 --- a/librespot/proto/Playlist4External_pb2.py +++ b/librespot/proto/Playlist4External_pb2.py @@ -1,3221 +1,95 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: playlist4_external.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'playlist4_external.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="playlist4_external.proto", - package="spotify.playlist4.proto", - syntax="proto2", - serialized_options= - b"\n\025com.spotify.playlist4B\021Playlist4ApiProtoH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x18playlist4_external.proto\x12\x17spotify.playlist4.proto"P\n\x04Item\x12\x0b\n\x03uri\x18\x01 \x02(\t\x12;\n\nattributes\x18\x02 \x01(\x0b\x32\'.spotify.playlist4.proto.ItemAttributes"\x94\x01\n\x08MetaItem\x12\x10\n\x08revision\x18\x01 \x01(\x0c\x12;\n\nattributes\x18\x02 \x01(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12\x16\n\x0eowner_username\x18\x05 \x01(\t"\x90\x01\n\tListItems\x12\x0b\n\x03pos\x18\x01 \x02(\x05\x12\x11\n\ttruncated\x18\x02 \x02(\x08\x12,\n\x05items\x18\x03 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x35\n\nmeta_items\x18\x04 \x03(\x0b\x32!.spotify.playlist4.proto.MetaItem"1\n\x13\x46ormatListAttribute\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t"\xf6\x01\n\x0eListAttributes\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07picture\x18\x03 \x01(\x0c\x12\x15\n\rcollaborative\x18\x04 \x01(\x08\x12\x13\n\x0bpl3_version\x18\x05 \x01(\t\x12\x18\n\x10\x64\x65leted_by_owner\x18\x06 \x01(\x08\x12\x11\n\tclient_id\x18\n \x01(\t\x12\x0e\n\x06\x66ormat\x18\x0b \x01(\t\x12G\n\x11\x66ormat_attributes\x18\x0c \x03(\x0b\x32,.spotify.playlist4.proto.FormatListAttribute"\xb0\x01\n\x0eItemAttributes\x12\x10\n\x08\x61\x64\x64\x65\x64_by\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x12\x0f\n\x07seen_at\x18\t \x01(\x03\x12\x0e\n\x06public\x18\n \x01(\x08\x12G\n\x11\x66ormat_attributes\x18\x0b \x03(\x0b\x32,.spotify.playlist4.proto.FormatListAttribute\x12\x0f\n\x07item_id\x18\x0c \x01(\x0c"l\n\x03\x41\x64\x64\x12\x12\n\nfrom_index\x18\x01 \x01(\x05\x12,\n\x05items\x18\x02 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x10\n\x08\x61\x64\x64_last\x18\x04 \x01(\x08\x12\x11\n\tadd_first\x18\x05 \x01(\x08"m\n\x03Rem\x12\x12\n\nfrom_index\x18\x01 \x01(\x05\x12\x0e\n\x06length\x18\x02 \x01(\x05\x12,\n\x05items\x18\x03 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x14\n\x0citems_as_key\x18\x07 \x01(\x08";\n\x03Mov\x12\x12\n\nfrom_index\x18\x01 \x02(\x05\x12\x0e\n\x06length\x18\x02 \x02(\x05\x12\x10\n\x08to_index\x18\x03 \x02(\x05"\x93\x01\n\x1aItemAttributesPartialState\x12\x37\n\x06values\x18\x01 \x02(\x0b\x32\'.spotify.playlist4.proto.ItemAttributes\x12<\n\x08no_value\x18\x02 \x03(\x0e\x32*.spotify.playlist4.proto.ItemAttributeKind"\x93\x01\n\x1aListAttributesPartialState\x12\x37\n\x06values\x18\x01 \x02(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12<\n\x08no_value\x18\x02 \x03(\x0e\x32*.spotify.playlist4.proto.ListAttributeKind"\xbf\x01\n\x14UpdateItemAttributes\x12\r\n\x05index\x18\x01 \x02(\x05\x12K\n\x0enew_attributes\x18\x02 \x02(\x0b\x32\x33.spotify.playlist4.proto.ItemAttributesPartialState\x12K\n\x0eold_attributes\x18\x03 \x01(\x0b\x32\x33.spotify.playlist4.proto.ItemAttributesPartialState"\xb0\x01\n\x14UpdateListAttributes\x12K\n\x0enew_attributes\x18\x01 \x02(\x0b\x32\x33.spotify.playlist4.proto.ListAttributesPartialState\x12K\n\x0eold_attributes\x18\x02 \x01(\x0b\x32\x33.spotify.playlist4.proto.ListAttributesPartialState"\xc0\x03\n\x02Op\x12.\n\x04kind\x18\x01 \x02(\x0e\x32 .spotify.playlist4.proto.Op.Kind\x12)\n\x03\x61\x64\x64\x18\x02 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Add\x12)\n\x03rem\x18\x03 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Rem\x12)\n\x03mov\x18\x04 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Mov\x12M\n\x16update_item_attributes\x18\x05 \x01(\x0b\x32-.spotify.playlist4.proto.UpdateItemAttributes\x12M\n\x16update_list_attributes\x18\x06 \x01(\x0b\x32-.spotify.playlist4.proto.UpdateListAttributes"k\n\x04Kind\x12\x10\n\x0cKIND_UNKNOWN\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x02\x12\x07\n\x03REM\x10\x03\x12\x07\n\x03MOV\x10\x04\x12\x1a\n\x16UPDATE_ITEM_ATTRIBUTES\x10\x05\x12\x1a\n\x16UPDATE_LIST_ATTRIBUTES\x10\x06"2\n\x06OpList\x12(\n\x03ops\x18\x01 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op"\xd5\x01\n\nChangeInfo\x12\x0c\n\x04user\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x12\r\n\x05\x61\x64min\x18\x03 \x01(\x08\x12\x0c\n\x04undo\x18\x04 \x01(\x08\x12\x0c\n\x04redo\x18\x05 \x01(\x08\x12\r\n\x05merge\x18\x06 \x01(\x08\x12\x12\n\ncompressed\x18\x07 \x01(\x08\x12\x11\n\tmigration\x18\x08 \x01(\x08\x12\x10\n\x08split_id\x18\t \x01(\x05\x12\x33\n\x06source\x18\n \x01(\x0b\x32#.spotify.playlist4.proto.SourceInfo"\xe8\x01\n\nSourceInfo\x12:\n\x06\x63lient\x18\x01 \x01(\x0e\x32*.spotify.playlist4.proto.SourceInfo.Client\x12\x0b\n\x03\x61pp\x18\x03 \x01(\t\x12\x0e\n\x06source\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t"p\n\x06\x43lient\x12\x12\n\x0e\x43LIENT_UNKNOWN\x10\x00\x12\x11\n\rNATIVE_HERMES\x10\x01\x12\n\n\x06\x43LIENT\x10\x02\x12\n\n\x06PYTHON\x10\x03\x12\x08\n\x04JAVA\x10\x04\x12\r\n\tWEBPLAYER\x10\x05\x12\x0e\n\nLIBSPOTIFY\x10\x06"z\n\x05\x44\x65lta\x12\x14\n\x0c\x62\x61se_version\x18\x01 \x01(\x0c\x12(\n\x03ops\x18\x02 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\x12\x31\n\x04info\x18\x04 \x01(\x0b\x32#.spotify.playlist4.proto.ChangeInfo"\\\n\x04\x44iff\x12\x15\n\rfrom_revision\x18\x01 \x02(\x0c\x12(\n\x03ops\x18\x02 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\x12\x13\n\x0bto_revision\x18\x03 \x02(\x0c"\xa0\x01\n\x0bListChanges\x12\x15\n\rbase_revision\x18\x01 \x01(\x0c\x12.\n\x06\x64\x65ltas\x18\x02 \x03(\x0b\x32\x1e.spotify.playlist4.proto.Delta\x12 \n\x18want_resulting_revisions\x18\x03 \x01(\x08\x12\x18\n\x10want_sync_result\x18\x04 \x01(\x08\x12\x0e\n\x06nonces\x18\x06 \x03(\x03"\x8f\x03\n\x13SelectedListContent\x12\x10\n\x08revision\x18\x01 \x01(\x0c\x12\x0e\n\x06length\x18\x02 \x01(\x05\x12;\n\nattributes\x18\x03 \x01(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12\x34\n\x08\x63ontents\x18\x05 \x01(\x0b\x32".spotify.playlist4.proto.ListItems\x12+\n\x04\x64iff\x18\x06 \x01(\x0b\x32\x1d.spotify.playlist4.proto.Diff\x12\x32\n\x0bsync_result\x18\x07 \x01(\x0b\x32\x1d.spotify.playlist4.proto.Diff\x12\x1b\n\x13resulting_revisions\x18\x08 \x03(\x0c\x12\x16\n\x0emultiple_heads\x18\t \x01(\x08\x12\x12\n\nup_to_date\x18\n \x01(\x08\x12\x0e\n\x06nonces\x18\x0e \x03(\x03\x12\x11\n\ttimestamp\x18\x0f \x01(\x03\x12\x16\n\x0eowner_username\x18\x10 \x01(\t"0\n\x0f\x43reateListReply\x12\x0b\n\x03uri\x18\x01 \x02(\x0c\x12\x10\n\x08revision\x18\x02 \x01(\x0c",\n\x0bModifyReply\x12\x0b\n\x03uri\x18\x01 \x02(\x0c\x12\x10\n\x08revision\x18\x02 \x01(\x0c" \n\x10SubscribeRequest\x12\x0c\n\x04uris\x18\x01 \x03(\x0c""\n\x12UnsubscribeRequest\x12\x0c\n\x04uris\x18\x01 \x03(\x0c"\x80\x01\n\x18PlaylistModificationInfo\x12\x0b\n\x03uri\x18\x01 \x01(\x0c\x12\x14\n\x0cnew_revision\x18\x02 \x01(\x0c\x12\x17\n\x0fparent_revision\x18\x03 \x01(\x0c\x12(\n\x03ops\x18\x04 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op*\xe6\x01\n\x11ListAttributeKind\x12\x10\n\x0cLIST_UNKNOWN\x10\x00\x12\r\n\tLIST_NAME\x10\x01\x12\x14\n\x10LIST_DESCRIPTION\x10\x02\x12\x10\n\x0cLIST_PICTURE\x10\x03\x12\x16\n\x12LIST_COLLABORATIVE\x10\x04\x12\x14\n\x10LIST_PL3_VERSION\x10\x05\x12\x19\n\x15LIST_DELETED_BY_OWNER\x10\x06\x12\x12\n\x0eLIST_CLIENT_ID\x10\n\x12\x0f\n\x0bLIST_FORMAT\x10\x0b\x12\x1a\n\x16LIST_FORMAT_ATTRIBUTES\x10\x0c*\x98\x01\n\x11ItemAttributeKind\x12\x10\n\x0cITEM_UNKNOWN\x10\x00\x12\x11\n\rITEM_ADDED_BY\x10\x01\x12\x12\n\x0eITEM_TIMESTAMP\x10\x02\x12\x10\n\x0cITEM_SEEN_AT\x10\t\x12\x0f\n\x0bITEM_PUBLIC\x10\n\x12\x1a\n\x16ITEM_FORMAT_ATTRIBUTES\x10\x0b\x12\x0b\n\x07ITEM_ID\x10\x0c\x42,\n\x15\x63om.spotify.playlist4B\x11Playlist4ApiProtoH\x02', -) - -_LISTATTRIBUTEKIND = _descriptor.EnumDescriptor( - name="ListAttributeKind", - full_name="spotify.playlist4.proto.ListAttributeKind", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="LIST_UNKNOWN", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LIST_NAME", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LIST_DESCRIPTION", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LIST_PICTURE", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LIST_COLLABORATIVE", - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LIST_PL3_VERSION", - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LIST_DELETED_BY_OWNER", - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LIST_CLIENT_ID", - index=7, - number=10, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LIST_FORMAT", - index=8, - number=11, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LIST_FORMAT_ATTRIBUTES", - index=9, - number=12, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=3902, - serialized_end=4132, -) -_sym_db.RegisterEnumDescriptor(_LISTATTRIBUTEKIND) - -ListAttributeKind = enum_type_wrapper.EnumTypeWrapper(_LISTATTRIBUTEKIND) -_ITEMATTRIBUTEKIND = _descriptor.EnumDescriptor( - name="ItemAttributeKind", - full_name="spotify.playlist4.proto.ItemAttributeKind", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="ITEM_UNKNOWN", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="ITEM_ADDED_BY", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="ITEM_TIMESTAMP", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="ITEM_SEEN_AT", - index=3, - number=9, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="ITEM_PUBLIC", - index=4, - number=10, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="ITEM_FORMAT_ATTRIBUTES", - index=5, - number=11, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="ITEM_ID", - index=6, - number=12, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=4135, - serialized_end=4287, -) -_sym_db.RegisterEnumDescriptor(_ITEMATTRIBUTEKIND) - -ItemAttributeKind = enum_type_wrapper.EnumTypeWrapper(_ITEMATTRIBUTEKIND) -LIST_UNKNOWN = 0 -LIST_NAME = 1 -LIST_DESCRIPTION = 2 -LIST_PICTURE = 3 -LIST_COLLABORATIVE = 4 -LIST_PL3_VERSION = 5 -LIST_DELETED_BY_OWNER = 6 -LIST_CLIENT_ID = 10 -LIST_FORMAT = 11 -LIST_FORMAT_ATTRIBUTES = 12 -ITEM_UNKNOWN = 0 -ITEM_ADDED_BY = 1 -ITEM_TIMESTAMP = 2 -ITEM_SEEN_AT = 9 -ITEM_PUBLIC = 10 -ITEM_FORMAT_ATTRIBUTES = 11 -ITEM_ID = 12 - -_OP_KIND = _descriptor.EnumDescriptor( - name="Kind", - full_name="spotify.playlist4.proto.Op.Kind", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="KIND_UNKNOWN", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="ADD", - index=1, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="REM", - index=2, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="MOV", - index=3, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="UPDATE_ITEM_ATTRIBUTES", - index=4, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="UPDATE_LIST_ATTRIBUTES", - index=5, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=2209, - serialized_end=2316, -) -_sym_db.RegisterEnumDescriptor(_OP_KIND) - -_SOURCEINFO_CLIENT = _descriptor.EnumDescriptor( - name="Client", - full_name="spotify.playlist4.proto.SourceInfo.Client", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="CLIENT_UNKNOWN", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="NATIVE_HERMES", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="CLIENT", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="PYTHON", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="JAVA", - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="WEBPLAYER", - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="LIBSPOTIFY", - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=2707, - serialized_end=2819, -) -_sym_db.RegisterEnumDescriptor(_SOURCEINFO_CLIENT) - -_ITEM = _descriptor.Descriptor( - name="Item", - full_name="spotify.playlist4.proto.Item", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="uri", - full_name="spotify.playlist4.proto.Item.uri", - index=0, - number=1, - type=9, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="attributes", - full_name="spotify.playlist4.proto.Item.attributes", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=53, - serialized_end=133, -) - -_METAITEM = _descriptor.Descriptor( - name="MetaItem", - full_name="spotify.playlist4.proto.MetaItem", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="revision", - full_name="spotify.playlist4.proto.MetaItem.revision", - index=0, - number=1, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="attributes", - full_name="spotify.playlist4.proto.MetaItem.attributes", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="length", - full_name="spotify.playlist4.proto.MetaItem.length", - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="timestamp", - full_name="spotify.playlist4.proto.MetaItem.timestamp", - index=3, - number=4, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="owner_username", - full_name="spotify.playlist4.proto.MetaItem.owner_username", - index=4, - number=5, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=136, - serialized_end=284, -) - -_LISTITEMS = _descriptor.Descriptor( - name="ListItems", - full_name="spotify.playlist4.proto.ListItems", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="pos", - full_name="spotify.playlist4.proto.ListItems.pos", - index=0, - number=1, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="truncated", - full_name="spotify.playlist4.proto.ListItems.truncated", - index=1, - number=2, - type=8, - cpp_type=7, - label=2, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="items", - full_name="spotify.playlist4.proto.ListItems.items", - index=2, - number=3, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="meta_items", - full_name="spotify.playlist4.proto.ListItems.meta_items", - index=3, - number=4, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=287, - serialized_end=431, -) - -_FORMATLISTATTRIBUTE = _descriptor.Descriptor( - name="FormatListAttribute", - full_name="spotify.playlist4.proto.FormatListAttribute", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="key", - full_name="spotify.playlist4.proto.FormatListAttribute.key", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="value", - full_name="spotify.playlist4.proto.FormatListAttribute.value", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=433, - serialized_end=482, -) - -_LISTATTRIBUTES = _descriptor.Descriptor( - name="ListAttributes", - full_name="spotify.playlist4.proto.ListAttributes", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="spotify.playlist4.proto.ListAttributes.name", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="description", - full_name="spotify.playlist4.proto.ListAttributes.description", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="picture", - full_name="spotify.playlist4.proto.ListAttributes.picture", - index=2, - number=3, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="collaborative", - full_name="spotify.playlist4.proto.ListAttributes.collaborative", - index=3, - number=4, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="pl3_version", - full_name="spotify.playlist4.proto.ListAttributes.pl3_version", - index=4, - number=5, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="deleted_by_owner", - full_name="spotify.playlist4.proto.ListAttributes.deleted_by_owner", - index=5, - number=6, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="client_id", - full_name="spotify.playlist4.proto.ListAttributes.client_id", - index=6, - number=10, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="format", - full_name="spotify.playlist4.proto.ListAttributes.format", - index=7, - number=11, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="format_attributes", - full_name= - "spotify.playlist4.proto.ListAttributes.format_attributes", - index=8, - number=12, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=485, - serialized_end=731, -) - -_ITEMATTRIBUTES = _descriptor.Descriptor( - name="ItemAttributes", - full_name="spotify.playlist4.proto.ItemAttributes", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="added_by", - full_name="spotify.playlist4.proto.ItemAttributes.added_by", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="timestamp", - full_name="spotify.playlist4.proto.ItemAttributes.timestamp", - index=1, - number=2, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="seen_at", - full_name="spotify.playlist4.proto.ItemAttributes.seen_at", - index=2, - number=9, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="public", - full_name="spotify.playlist4.proto.ItemAttributes.public", - index=3, - number=10, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="format_attributes", - full_name= - "spotify.playlist4.proto.ItemAttributes.format_attributes", - index=4, - number=11, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="item_id", - full_name="spotify.playlist4.proto.ItemAttributes.item_id", - index=5, - number=12, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=734, - serialized_end=910, -) - -_ADD = _descriptor.Descriptor( - name="Add", - full_name="spotify.playlist4.proto.Add", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="from_index", - full_name="spotify.playlist4.proto.Add.from_index", - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="items", - full_name="spotify.playlist4.proto.Add.items", - index=1, - number=2, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="add_last", - full_name="spotify.playlist4.proto.Add.add_last", - index=2, - number=4, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="add_first", - full_name="spotify.playlist4.proto.Add.add_first", - index=3, - number=5, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=912, - serialized_end=1020, -) - -_REM = _descriptor.Descriptor( - name="Rem", - full_name="spotify.playlist4.proto.Rem", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="from_index", - full_name="spotify.playlist4.proto.Rem.from_index", - index=0, - number=1, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="length", - full_name="spotify.playlist4.proto.Rem.length", - index=1, - number=2, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="items", - full_name="spotify.playlist4.proto.Rem.items", - index=2, - number=3, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="items_as_key", - full_name="spotify.playlist4.proto.Rem.items_as_key", - index=3, - number=7, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1022, - serialized_end=1131, -) - -_MOV = _descriptor.Descriptor( - name="Mov", - full_name="spotify.playlist4.proto.Mov", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="from_index", - full_name="spotify.playlist4.proto.Mov.from_index", - index=0, - number=1, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="length", - full_name="spotify.playlist4.proto.Mov.length", - index=1, - number=2, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="to_index", - full_name="spotify.playlist4.proto.Mov.to_index", - index=2, - number=3, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1133, - serialized_end=1192, -) - -_ITEMATTRIBUTESPARTIALSTATE = _descriptor.Descriptor( - name="ItemAttributesPartialState", - full_name="spotify.playlist4.proto.ItemAttributesPartialState", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="values", - full_name= - "spotify.playlist4.proto.ItemAttributesPartialState.values", - index=0, - number=1, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="no_value", - full_name= - "spotify.playlist4.proto.ItemAttributesPartialState.no_value", - index=1, - number=2, - type=14, - cpp_type=8, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1195, - serialized_end=1342, -) - -_LISTATTRIBUTESPARTIALSTATE = _descriptor.Descriptor( - name="ListAttributesPartialState", - full_name="spotify.playlist4.proto.ListAttributesPartialState", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="values", - full_name= - "spotify.playlist4.proto.ListAttributesPartialState.values", - index=0, - number=1, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="no_value", - full_name= - "spotify.playlist4.proto.ListAttributesPartialState.no_value", - index=1, - number=2, - type=14, - cpp_type=8, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1345, - serialized_end=1492, -) - -_UPDATEITEMATTRIBUTES = _descriptor.Descriptor( - name="UpdateItemAttributes", - full_name="spotify.playlist4.proto.UpdateItemAttributes", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="index", - full_name="spotify.playlist4.proto.UpdateItemAttributes.index", - index=0, - number=1, - type=5, - cpp_type=1, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="new_attributes", - full_name= - "spotify.playlist4.proto.UpdateItemAttributes.new_attributes", - index=1, - number=2, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="old_attributes", - full_name= - "spotify.playlist4.proto.UpdateItemAttributes.old_attributes", - index=2, - number=3, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1495, - serialized_end=1686, -) -_UPDATELISTATTRIBUTES = _descriptor.Descriptor( - name="UpdateListAttributes", - full_name="spotify.playlist4.proto.UpdateListAttributes", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="new_attributes", - full_name= - "spotify.playlist4.proto.UpdateListAttributes.new_attributes", - index=0, - number=1, - type=11, - cpp_type=10, - label=2, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="old_attributes", - full_name= - "spotify.playlist4.proto.UpdateListAttributes.old_attributes", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1689, - serialized_end=1865, -) -_OP = _descriptor.Descriptor( - name="Op", - full_name="spotify.playlist4.proto.Op", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="kind", - full_name="spotify.playlist4.proto.Op.kind", - index=0, - number=1, - type=14, - cpp_type=8, - label=2, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="add", - full_name="spotify.playlist4.proto.Op.add", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="rem", - full_name="spotify.playlist4.proto.Op.rem", - index=2, - number=3, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="mov", - full_name="spotify.playlist4.proto.Op.mov", - index=3, - number=4, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="update_item_attributes", - full_name="spotify.playlist4.proto.Op.update_item_attributes", - index=4, - number=5, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="update_list_attributes", - full_name="spotify.playlist4.proto.Op.update_list_attributes", - index=5, - number=6, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _OP_KIND, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=1868, - serialized_end=2316, -) - -_OPLIST = _descriptor.Descriptor( - name="OpList", - full_name="spotify.playlist4.proto.OpList", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="ops", - full_name="spotify.playlist4.proto.OpList.ops", - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=2318, - serialized_end=2368, -) - -_CHANGEINFO = _descriptor.Descriptor( - name="ChangeInfo", - full_name="spotify.playlist4.proto.ChangeInfo", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="user", - full_name="spotify.playlist4.proto.ChangeInfo.user", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="timestamp", - full_name="spotify.playlist4.proto.ChangeInfo.timestamp", - index=1, - number=2, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="admin", - full_name="spotify.playlist4.proto.ChangeInfo.admin", - index=2, - number=3, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="undo", - full_name="spotify.playlist4.proto.ChangeInfo.undo", - index=3, - number=4, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="redo", - full_name="spotify.playlist4.proto.ChangeInfo.redo", - index=4, - number=5, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="merge", - full_name="spotify.playlist4.proto.ChangeInfo.merge", - index=5, - number=6, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="compressed", - full_name="spotify.playlist4.proto.ChangeInfo.compressed", - index=6, - number=7, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="migration", - full_name="spotify.playlist4.proto.ChangeInfo.migration", - index=7, - number=8, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="split_id", - full_name="spotify.playlist4.proto.ChangeInfo.split_id", - index=8, - number=9, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="source", - full_name="spotify.playlist4.proto.ChangeInfo.source", - index=9, - number=10, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=2371, - serialized_end=2584, -) - -_SOURCEINFO = _descriptor.Descriptor( - name="SourceInfo", - full_name="spotify.playlist4.proto.SourceInfo", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="client", - full_name="spotify.playlist4.proto.SourceInfo.client", - index=0, - number=1, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="app", - full_name="spotify.playlist4.proto.SourceInfo.app", - index=1, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="source", - full_name="spotify.playlist4.proto.SourceInfo.source", - index=2, - number=4, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="version", - full_name="spotify.playlist4.proto.SourceInfo.version", - index=3, - number=5, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _SOURCEINFO_CLIENT, - ], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=2587, - serialized_end=2819, -) - -_DELTA = _descriptor.Descriptor( - name="Delta", - full_name="spotify.playlist4.proto.Delta", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="base_version", - full_name="spotify.playlist4.proto.Delta.base_version", - index=0, - number=1, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="ops", - full_name="spotify.playlist4.proto.Delta.ops", - index=1, - number=2, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="info", - full_name="spotify.playlist4.proto.Delta.info", - index=2, - number=4, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=2821, - serialized_end=2943, -) - -_DIFF = _descriptor.Descriptor( - name="Diff", - full_name="spotify.playlist4.proto.Diff", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="from_revision", - full_name="spotify.playlist4.proto.Diff.from_revision", - index=0, - number=1, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="ops", - full_name="spotify.playlist4.proto.Diff.ops", - index=1, - number=2, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="to_revision", - full_name="spotify.playlist4.proto.Diff.to_revision", - index=2, - number=3, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=2945, - serialized_end=3037, -) - -_LISTCHANGES = _descriptor.Descriptor( - name="ListChanges", - full_name="spotify.playlist4.proto.ListChanges", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="base_revision", - full_name="spotify.playlist4.proto.ListChanges.base_revision", - index=0, - number=1, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="deltas", - full_name="spotify.playlist4.proto.ListChanges.deltas", - index=1, - number=2, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="want_resulting_revisions", - full_name= - "spotify.playlist4.proto.ListChanges.want_resulting_revisions", - index=2, - number=3, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="want_sync_result", - full_name="spotify.playlist4.proto.ListChanges.want_sync_result", - index=3, - number=4, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="nonces", - full_name="spotify.playlist4.proto.ListChanges.nonces", - index=4, - number=6, - type=3, - cpp_type=2, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=3040, - serialized_end=3200, -) - -_SELECTEDLISTCONTENT = _descriptor.Descriptor( - name="SelectedListContent", - full_name="spotify.playlist4.proto.SelectedListContent", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="revision", - full_name="spotify.playlist4.proto.SelectedListContent.revision", - index=0, - number=1, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="length", - full_name="spotify.playlist4.proto.SelectedListContent.length", - index=1, - number=2, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="attributes", - full_name="spotify.playlist4.proto.SelectedListContent.attributes", - index=2, - number=3, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="contents", - full_name="spotify.playlist4.proto.SelectedListContent.contents", - index=3, - number=5, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="diff", - full_name="spotify.playlist4.proto.SelectedListContent.diff", - index=4, - number=6, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="sync_result", - full_name="spotify.playlist4.proto.SelectedListContent.sync_result", - index=5, - number=7, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="resulting_revisions", - full_name= - "spotify.playlist4.proto.SelectedListContent.resulting_revisions", - index=6, - number=8, - type=12, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="multiple_heads", - full_name= - "spotify.playlist4.proto.SelectedListContent.multiple_heads", - index=7, - number=9, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="up_to_date", - full_name="spotify.playlist4.proto.SelectedListContent.up_to_date", - index=8, - number=10, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="nonces", - full_name="spotify.playlist4.proto.SelectedListContent.nonces", - index=9, - number=14, - type=3, - cpp_type=2, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="timestamp", - full_name="spotify.playlist4.proto.SelectedListContent.timestamp", - index=10, - number=15, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="owner_username", - full_name= - "spotify.playlist4.proto.SelectedListContent.owner_username", - index=11, - number=16, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=3203, - serialized_end=3602, -) - -_CREATELISTREPLY = _descriptor.Descriptor( - name="CreateListReply", - full_name="spotify.playlist4.proto.CreateListReply", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="uri", - full_name="spotify.playlist4.proto.CreateListReply.uri", - index=0, - number=1, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="revision", - full_name="spotify.playlist4.proto.CreateListReply.revision", - index=1, - number=2, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=3604, - serialized_end=3652, -) - -_MODIFYREPLY = _descriptor.Descriptor( - name="ModifyReply", - full_name="spotify.playlist4.proto.ModifyReply", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="uri", - full_name="spotify.playlist4.proto.ModifyReply.uri", - index=0, - number=1, - type=12, - cpp_type=9, - label=2, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="revision", - full_name="spotify.playlist4.proto.ModifyReply.revision", - index=1, - number=2, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=3654, - serialized_end=3698, -) - -_SUBSCRIBEREQUEST = _descriptor.Descriptor( - name="SubscribeRequest", - full_name="spotify.playlist4.proto.SubscribeRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="uris", - full_name="spotify.playlist4.proto.SubscribeRequest.uris", - index=0, - number=1, - type=12, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=3700, - serialized_end=3732, -) - -_UNSUBSCRIBEREQUEST = _descriptor.Descriptor( - name="UnsubscribeRequest", - full_name="spotify.playlist4.proto.UnsubscribeRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="uris", - full_name="spotify.playlist4.proto.UnsubscribeRequest.uris", - index=0, - number=1, - type=12, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=3734, - serialized_end=3768, -) - -_PLAYLISTMODIFICATIONINFO = _descriptor.Descriptor( - name="PlaylistModificationInfo", - full_name="spotify.playlist4.proto.PlaylistModificationInfo", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="uri", - full_name="spotify.playlist4.proto.PlaylistModificationInfo.uri", - index=0, - number=1, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="new_revision", - full_name= - "spotify.playlist4.proto.PlaylistModificationInfo.new_revision", - index=1, - number=2, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="parent_revision", - full_name= - "spotify.playlist4.proto.PlaylistModificationInfo.parent_revision", - index=2, - number=3, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="ops", - full_name="spotify.playlist4.proto.PlaylistModificationInfo.ops", - index=3, - number=4, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=3771, - serialized_end=3899, -) - -_ITEM.fields_by_name["attributes"].message_type = _ITEMATTRIBUTES -_METAITEM.fields_by_name["attributes"].message_type = _LISTATTRIBUTES -_LISTITEMS.fields_by_name["items"].message_type = _ITEM -_LISTITEMS.fields_by_name["meta_items"].message_type = _METAITEM -_LISTATTRIBUTES.fields_by_name[ - "format_attributes"].message_type = _FORMATLISTATTRIBUTE -_ITEMATTRIBUTES.fields_by_name[ - "format_attributes"].message_type = _FORMATLISTATTRIBUTE -_ADD.fields_by_name["items"].message_type = _ITEM -_REM.fields_by_name["items"].message_type = _ITEM -_ITEMATTRIBUTESPARTIALSTATE.fields_by_name[ - "values"].message_type = _ITEMATTRIBUTES -_ITEMATTRIBUTESPARTIALSTATE.fields_by_name[ - "no_value"].enum_type = _ITEMATTRIBUTEKIND -_LISTATTRIBUTESPARTIALSTATE.fields_by_name[ - "values"].message_type = _LISTATTRIBUTES -_LISTATTRIBUTESPARTIALSTATE.fields_by_name[ - "no_value"].enum_type = _LISTATTRIBUTEKIND -_UPDATEITEMATTRIBUTES.fields_by_name[ - "new_attributes"].message_type = _ITEMATTRIBUTESPARTIALSTATE -_UPDATEITEMATTRIBUTES.fields_by_name[ - "old_attributes"].message_type = _ITEMATTRIBUTESPARTIALSTATE -_UPDATELISTATTRIBUTES.fields_by_name[ - "new_attributes"].message_type = _LISTATTRIBUTESPARTIALSTATE -_UPDATELISTATTRIBUTES.fields_by_name[ - "old_attributes"].message_type = _LISTATTRIBUTESPARTIALSTATE -_OP.fields_by_name["kind"].enum_type = _OP_KIND -_OP.fields_by_name["add"].message_type = _ADD -_OP.fields_by_name["rem"].message_type = _REM -_OP.fields_by_name["mov"].message_type = _MOV -_OP.fields_by_name[ - "update_item_attributes"].message_type = _UPDATEITEMATTRIBUTES -_OP.fields_by_name[ - "update_list_attributes"].message_type = _UPDATELISTATTRIBUTES -_OP_KIND.containing_type = _OP -_OPLIST.fields_by_name["ops"].message_type = _OP -_CHANGEINFO.fields_by_name["source"].message_type = _SOURCEINFO -_SOURCEINFO.fields_by_name["client"].enum_type = _SOURCEINFO_CLIENT -_SOURCEINFO_CLIENT.containing_type = _SOURCEINFO -_DELTA.fields_by_name["ops"].message_type = _OP -_DELTA.fields_by_name["info"].message_type = _CHANGEINFO -_DIFF.fields_by_name["ops"].message_type = _OP -_LISTCHANGES.fields_by_name["deltas"].message_type = _DELTA -_SELECTEDLISTCONTENT.fields_by_name[ - "attributes"].message_type = _LISTATTRIBUTES -_SELECTEDLISTCONTENT.fields_by_name["contents"].message_type = _LISTITEMS -_SELECTEDLISTCONTENT.fields_by_name["diff"].message_type = _DIFF -_SELECTEDLISTCONTENT.fields_by_name["sync_result"].message_type = _DIFF -_PLAYLISTMODIFICATIONINFO.fields_by_name["ops"].message_type = _OP -DESCRIPTOR.message_types_by_name["Item"] = _ITEM -DESCRIPTOR.message_types_by_name["MetaItem"] = _METAITEM -DESCRIPTOR.message_types_by_name["ListItems"] = _LISTITEMS -DESCRIPTOR.message_types_by_name["FormatListAttribute"] = _FORMATLISTATTRIBUTE -DESCRIPTOR.message_types_by_name["ListAttributes"] = _LISTATTRIBUTES -DESCRIPTOR.message_types_by_name["ItemAttributes"] = _ITEMATTRIBUTES -DESCRIPTOR.message_types_by_name["Add"] = _ADD -DESCRIPTOR.message_types_by_name["Rem"] = _REM -DESCRIPTOR.message_types_by_name["Mov"] = _MOV -DESCRIPTOR.message_types_by_name[ - "ItemAttributesPartialState"] = _ITEMATTRIBUTESPARTIALSTATE -DESCRIPTOR.message_types_by_name[ - "ListAttributesPartialState"] = _LISTATTRIBUTESPARTIALSTATE -DESCRIPTOR.message_types_by_name[ - "UpdateItemAttributes"] = _UPDATEITEMATTRIBUTES -DESCRIPTOR.message_types_by_name[ - "UpdateListAttributes"] = _UPDATELISTATTRIBUTES -DESCRIPTOR.message_types_by_name["Op"] = _OP -DESCRIPTOR.message_types_by_name["OpList"] = _OPLIST -DESCRIPTOR.message_types_by_name["ChangeInfo"] = _CHANGEINFO -DESCRIPTOR.message_types_by_name["SourceInfo"] = _SOURCEINFO -DESCRIPTOR.message_types_by_name["Delta"] = _DELTA -DESCRIPTOR.message_types_by_name["Diff"] = _DIFF -DESCRIPTOR.message_types_by_name["ListChanges"] = _LISTCHANGES -DESCRIPTOR.message_types_by_name["SelectedListContent"] = _SELECTEDLISTCONTENT -DESCRIPTOR.message_types_by_name["CreateListReply"] = _CREATELISTREPLY -DESCRIPTOR.message_types_by_name["ModifyReply"] = _MODIFYREPLY -DESCRIPTOR.message_types_by_name["SubscribeRequest"] = _SUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name["UnsubscribeRequest"] = _UNSUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name[ - "PlaylistModificationInfo"] = _PLAYLISTMODIFICATIONINFO -DESCRIPTOR.enum_types_by_name["ListAttributeKind"] = _LISTATTRIBUTEKIND -DESCRIPTOR.enum_types_by_name["ItemAttributeKind"] = _ITEMATTRIBUTEKIND -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Item = _reflection.GeneratedProtocolMessageType( - "Item", - (_message.Message, ), - { - "DESCRIPTOR": _ITEM, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.Item) - }, -) -_sym_db.RegisterMessage(Item) - -MetaItem = _reflection.GeneratedProtocolMessageType( - "MetaItem", - (_message.Message, ), - { - "DESCRIPTOR": _METAITEM, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.MetaItem) - }, -) -_sym_db.RegisterMessage(MetaItem) - -ListItems = _reflection.GeneratedProtocolMessageType( - "ListItems", - (_message.Message, ), - { - "DESCRIPTOR": _LISTITEMS, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.ListItems) - }, -) -_sym_db.RegisterMessage(ListItems) - -FormatListAttribute = _reflection.GeneratedProtocolMessageType( - "FormatListAttribute", - (_message.Message, ), - { - "DESCRIPTOR": _FORMATLISTATTRIBUTE, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.FormatListAttribute) - }, -) -_sym_db.RegisterMessage(FormatListAttribute) - -ListAttributes = _reflection.GeneratedProtocolMessageType( - "ListAttributes", - (_message.Message, ), - { - "DESCRIPTOR": _LISTATTRIBUTES, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.ListAttributes) - }, -) -_sym_db.RegisterMessage(ListAttributes) - -ItemAttributes = _reflection.GeneratedProtocolMessageType( - "ItemAttributes", - (_message.Message, ), - { - "DESCRIPTOR": _ITEMATTRIBUTES, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.ItemAttributes) - }, -) -_sym_db.RegisterMessage(ItemAttributes) - -Add = _reflection.GeneratedProtocolMessageType( - "Add", - (_message.Message, ), - { - "DESCRIPTOR": _ADD, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.Add) - }, -) -_sym_db.RegisterMessage(Add) - -Rem = _reflection.GeneratedProtocolMessageType( - "Rem", - (_message.Message, ), - { - "DESCRIPTOR": _REM, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.Rem) - }, -) -_sym_db.RegisterMessage(Rem) - -Mov = _reflection.GeneratedProtocolMessageType( - "Mov", - (_message.Message, ), - { - "DESCRIPTOR": _MOV, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.Mov) - }, -) -_sym_db.RegisterMessage(Mov) - -ItemAttributesPartialState = _reflection.GeneratedProtocolMessageType( - "ItemAttributesPartialState", - (_message.Message, ), - { - "DESCRIPTOR": _ITEMATTRIBUTESPARTIALSTATE, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.ItemAttributesPartialState) - }, -) -_sym_db.RegisterMessage(ItemAttributesPartialState) - -ListAttributesPartialState = _reflection.GeneratedProtocolMessageType( - "ListAttributesPartialState", - (_message.Message, ), - { - "DESCRIPTOR": _LISTATTRIBUTESPARTIALSTATE, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.ListAttributesPartialState) - }, -) -_sym_db.RegisterMessage(ListAttributesPartialState) - -UpdateItemAttributes = _reflection.GeneratedProtocolMessageType( - "UpdateItemAttributes", - (_message.Message, ), - { - "DESCRIPTOR": _UPDATEITEMATTRIBUTES, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.UpdateItemAttributes) - }, -) -_sym_db.RegisterMessage(UpdateItemAttributes) - -UpdateListAttributes = _reflection.GeneratedProtocolMessageType( - "UpdateListAttributes", - (_message.Message, ), - { - "DESCRIPTOR": _UPDATELISTATTRIBUTES, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.UpdateListAttributes) - }, -) -_sym_db.RegisterMessage(UpdateListAttributes) - -Op = _reflection.GeneratedProtocolMessageType( - "Op", - (_message.Message, ), - { - "DESCRIPTOR": _OP, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.Op) - }, -) -_sym_db.RegisterMessage(Op) - -OpList = _reflection.GeneratedProtocolMessageType( - "OpList", - (_message.Message, ), - { - "DESCRIPTOR": _OPLIST, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.OpList) - }, -) -_sym_db.RegisterMessage(OpList) - -ChangeInfo = _reflection.GeneratedProtocolMessageType( - "ChangeInfo", - (_message.Message, ), - { - "DESCRIPTOR": _CHANGEINFO, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.ChangeInfo) - }, -) -_sym_db.RegisterMessage(ChangeInfo) - -SourceInfo = _reflection.GeneratedProtocolMessageType( - "SourceInfo", - (_message.Message, ), - { - "DESCRIPTOR": _SOURCEINFO, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.SourceInfo) - }, -) -_sym_db.RegisterMessage(SourceInfo) - -Delta = _reflection.GeneratedProtocolMessageType( - "Delta", - (_message.Message, ), - { - "DESCRIPTOR": _DELTA, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.Delta) - }, -) -_sym_db.RegisterMessage(Delta) - -Diff = _reflection.GeneratedProtocolMessageType( - "Diff", - (_message.Message, ), - { - "DESCRIPTOR": _DIFF, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.Diff) - }, -) -_sym_db.RegisterMessage(Diff) - -ListChanges = _reflection.GeneratedProtocolMessageType( - "ListChanges", - (_message.Message, ), - { - "DESCRIPTOR": _LISTCHANGES, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.ListChanges) - }, -) -_sym_db.RegisterMessage(ListChanges) - -SelectedListContent = _reflection.GeneratedProtocolMessageType( - "SelectedListContent", - (_message.Message, ), - { - "DESCRIPTOR": _SELECTEDLISTCONTENT, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.SelectedListContent) - }, -) -_sym_db.RegisterMessage(SelectedListContent) - -CreateListReply = _reflection.GeneratedProtocolMessageType( - "CreateListReply", - (_message.Message, ), - { - "DESCRIPTOR": _CREATELISTREPLY, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.CreateListReply) - }, -) -_sym_db.RegisterMessage(CreateListReply) - -ModifyReply = _reflection.GeneratedProtocolMessageType( - "ModifyReply", - (_message.Message, ), - { - "DESCRIPTOR": _MODIFYREPLY, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.ModifyReply) - }, -) -_sym_db.RegisterMessage(ModifyReply) - -SubscribeRequest = _reflection.GeneratedProtocolMessageType( - "SubscribeRequest", - (_message.Message, ), - { - "DESCRIPTOR": _SUBSCRIBEREQUEST, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.SubscribeRequest) - }, -) -_sym_db.RegisterMessage(SubscribeRequest) - -UnsubscribeRequest = _reflection.GeneratedProtocolMessageType( - "UnsubscribeRequest", - (_message.Message, ), - { - "DESCRIPTOR": _UNSUBSCRIBEREQUEST, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.UnsubscribeRequest) - }, -) -_sym_db.RegisterMessage(UnsubscribeRequest) - -PlaylistModificationInfo = _reflection.GeneratedProtocolMessageType( - "PlaylistModificationInfo", - (_message.Message, ), - { - "DESCRIPTOR": _PLAYLISTMODIFICATIONINFO, - "__module__": "playlist4_external_pb2" - # @@protoc_insertion_point(class_scope:spotify.playlist4.proto.PlaylistModificationInfo) - }, -) -_sym_db.RegisterMessage(PlaylistModificationInfo) -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18playlist4_external.proto\x12\x17spotify.playlist4.proto\"P\n\x04Item\x12\x0b\n\x03uri\x18\x01 \x02(\t\x12;\n\nattributes\x18\x02 \x01(\x0b\x32\'.spotify.playlist4.proto.ItemAttributes\"\x94\x01\n\x08MetaItem\x12\x10\n\x08revision\x18\x01 \x01(\x0c\x12;\n\nattributes\x18\x02 \x01(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12\x0e\n\x06length\x18\x03 \x01(\x05\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12\x16\n\x0eowner_username\x18\x05 \x01(\t\"\x90\x01\n\tListItems\x12\x0b\n\x03pos\x18\x01 \x02(\x05\x12\x11\n\ttruncated\x18\x02 \x02(\x08\x12,\n\x05items\x18\x03 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x35\n\nmeta_items\x18\x04 \x03(\x0b\x32!.spotify.playlist4.proto.MetaItem\"1\n\x13\x46ormatListAttribute\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\xf6\x01\n\x0eListAttributes\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07picture\x18\x03 \x01(\x0c\x12\x15\n\rcollaborative\x18\x04 \x01(\x08\x12\x13\n\x0bpl3_version\x18\x05 \x01(\t\x12\x18\n\x10\x64\x65leted_by_owner\x18\x06 \x01(\x08\x12\x11\n\tclient_id\x18\n \x01(\t\x12\x0e\n\x06\x66ormat\x18\x0b \x01(\t\x12G\n\x11\x66ormat_attributes\x18\x0c \x03(\x0b\x32,.spotify.playlist4.proto.FormatListAttribute\"\xb0\x01\n\x0eItemAttributes\x12\x10\n\x08\x61\x64\x64\x65\x64_by\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x12\x0f\n\x07seen_at\x18\t \x01(\x03\x12\x0e\n\x06public\x18\n \x01(\x08\x12G\n\x11\x66ormat_attributes\x18\x0b \x03(\x0b\x32,.spotify.playlist4.proto.FormatListAttribute\x12\x0f\n\x07item_id\x18\x0c \x01(\x0c\"l\n\x03\x41\x64\x64\x12\x12\n\nfrom_index\x18\x01 \x01(\x05\x12,\n\x05items\x18\x02 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x10\n\x08\x61\x64\x64_last\x18\x04 \x01(\x08\x12\x11\n\tadd_first\x18\x05 \x01(\x08\"m\n\x03Rem\x12\x12\n\nfrom_index\x18\x01 \x01(\x05\x12\x0e\n\x06length\x18\x02 \x01(\x05\x12,\n\x05items\x18\x03 \x03(\x0b\x32\x1d.spotify.playlist4.proto.Item\x12\x14\n\x0citems_as_key\x18\x07 \x01(\x08\";\n\x03Mov\x12\x12\n\nfrom_index\x18\x01 \x02(\x05\x12\x0e\n\x06length\x18\x02 \x02(\x05\x12\x10\n\x08to_index\x18\x03 \x02(\x05\"\x93\x01\n\x1aItemAttributesPartialState\x12\x37\n\x06values\x18\x01 \x02(\x0b\x32\'.spotify.playlist4.proto.ItemAttributes\x12<\n\x08no_value\x18\x02 \x03(\x0e\x32*.spotify.playlist4.proto.ItemAttributeKind\"\x93\x01\n\x1aListAttributesPartialState\x12\x37\n\x06values\x18\x01 \x02(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12<\n\x08no_value\x18\x02 \x03(\x0e\x32*.spotify.playlist4.proto.ListAttributeKind\"\xbf\x01\n\x14UpdateItemAttributes\x12\r\n\x05index\x18\x01 \x02(\x05\x12K\n\x0enew_attributes\x18\x02 \x02(\x0b\x32\x33.spotify.playlist4.proto.ItemAttributesPartialState\x12K\n\x0eold_attributes\x18\x03 \x01(\x0b\x32\x33.spotify.playlist4.proto.ItemAttributesPartialState\"\xb0\x01\n\x14UpdateListAttributes\x12K\n\x0enew_attributes\x18\x01 \x02(\x0b\x32\x33.spotify.playlist4.proto.ListAttributesPartialState\x12K\n\x0eold_attributes\x18\x02 \x01(\x0b\x32\x33.spotify.playlist4.proto.ListAttributesPartialState\"\xc0\x03\n\x02Op\x12.\n\x04kind\x18\x01 \x02(\x0e\x32 .spotify.playlist4.proto.Op.Kind\x12)\n\x03\x61\x64\x64\x18\x02 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Add\x12)\n\x03rem\x18\x03 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Rem\x12)\n\x03mov\x18\x04 \x01(\x0b\x32\x1c.spotify.playlist4.proto.Mov\x12M\n\x16update_item_attributes\x18\x05 \x01(\x0b\x32-.spotify.playlist4.proto.UpdateItemAttributes\x12M\n\x16update_list_attributes\x18\x06 \x01(\x0b\x32-.spotify.playlist4.proto.UpdateListAttributes\"k\n\x04Kind\x12\x10\n\x0cKIND_UNKNOWN\x10\x00\x12\x07\n\x03\x41\x44\x44\x10\x02\x12\x07\n\x03REM\x10\x03\x12\x07\n\x03MOV\x10\x04\x12\x1a\n\x16UPDATE_ITEM_ATTRIBUTES\x10\x05\x12\x1a\n\x16UPDATE_LIST_ATTRIBUTES\x10\x06\"2\n\x06OpList\x12(\n\x03ops\x18\x01 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\"\xd5\x01\n\nChangeInfo\x12\x0c\n\x04user\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\x12\r\n\x05\x61\x64min\x18\x03 \x01(\x08\x12\x0c\n\x04undo\x18\x04 \x01(\x08\x12\x0c\n\x04redo\x18\x05 \x01(\x08\x12\r\n\x05merge\x18\x06 \x01(\x08\x12\x12\n\ncompressed\x18\x07 \x01(\x08\x12\x11\n\tmigration\x18\x08 \x01(\x08\x12\x10\n\x08split_id\x18\t \x01(\x05\x12\x33\n\x06source\x18\n \x01(\x0b\x32#.spotify.playlist4.proto.SourceInfo\"\xe8\x01\n\nSourceInfo\x12:\n\x06\x63lient\x18\x01 \x01(\x0e\x32*.spotify.playlist4.proto.SourceInfo.Client\x12\x0b\n\x03\x61pp\x18\x03 \x01(\t\x12\x0e\n\x06source\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\"p\n\x06\x43lient\x12\x12\n\x0e\x43LIENT_UNKNOWN\x10\x00\x12\x11\n\rNATIVE_HERMES\x10\x01\x12\n\n\x06\x43LIENT\x10\x02\x12\n\n\x06PYTHON\x10\x03\x12\x08\n\x04JAVA\x10\x04\x12\r\n\tWEBPLAYER\x10\x05\x12\x0e\n\nLIBSPOTIFY\x10\x06\"z\n\x05\x44\x65lta\x12\x14\n\x0c\x62\x61se_version\x18\x01 \x01(\x0c\x12(\n\x03ops\x18\x02 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\x12\x31\n\x04info\x18\x04 \x01(\x0b\x32#.spotify.playlist4.proto.ChangeInfo\"\\\n\x04\x44iff\x12\x15\n\rfrom_revision\x18\x01 \x02(\x0c\x12(\n\x03ops\x18\x02 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op\x12\x13\n\x0bto_revision\x18\x03 \x02(\x0c\"\xa0\x01\n\x0bListChanges\x12\x15\n\rbase_revision\x18\x01 \x01(\x0c\x12.\n\x06\x64\x65ltas\x18\x02 \x03(\x0b\x32\x1e.spotify.playlist4.proto.Delta\x12 \n\x18want_resulting_revisions\x18\x03 \x01(\x08\x12\x18\n\x10want_sync_result\x18\x04 \x01(\x08\x12\x0e\n\x06nonces\x18\x06 \x03(\x03\"\x8f\x03\n\x13SelectedListContent\x12\x10\n\x08revision\x18\x01 \x01(\x0c\x12\x0e\n\x06length\x18\x02 \x01(\x05\x12;\n\nattributes\x18\x03 \x01(\x0b\x32\'.spotify.playlist4.proto.ListAttributes\x12\x34\n\x08\x63ontents\x18\x05 \x01(\x0b\x32\".spotify.playlist4.proto.ListItems\x12+\n\x04\x64iff\x18\x06 \x01(\x0b\x32\x1d.spotify.playlist4.proto.Diff\x12\x32\n\x0bsync_result\x18\x07 \x01(\x0b\x32\x1d.spotify.playlist4.proto.Diff\x12\x1b\n\x13resulting_revisions\x18\x08 \x03(\x0c\x12\x16\n\x0emultiple_heads\x18\t \x01(\x08\x12\x12\n\nup_to_date\x18\n \x01(\x08\x12\x0e\n\x06nonces\x18\x0e \x03(\x03\x12\x11\n\ttimestamp\x18\x0f \x01(\x03\x12\x16\n\x0eowner_username\x18\x10 \x01(\t\"0\n\x0f\x43reateListReply\x12\x0b\n\x03uri\x18\x01 \x02(\x0c\x12\x10\n\x08revision\x18\x02 \x01(\x0c\",\n\x0bModifyReply\x12\x0b\n\x03uri\x18\x01 \x02(\x0c\x12\x10\n\x08revision\x18\x02 \x01(\x0c\" \n\x10SubscribeRequest\x12\x0c\n\x04uris\x18\x01 \x03(\x0c\"\"\n\x12UnsubscribeRequest\x12\x0c\n\x04uris\x18\x01 \x03(\x0c\"\x80\x01\n\x18PlaylistModificationInfo\x12\x0b\n\x03uri\x18\x01 \x01(\x0c\x12\x14\n\x0cnew_revision\x18\x02 \x01(\x0c\x12\x17\n\x0fparent_revision\x18\x03 \x01(\x0c\x12(\n\x03ops\x18\x04 \x03(\x0b\x32\x1b.spotify.playlist4.proto.Op*\xe6\x01\n\x11ListAttributeKind\x12\x10\n\x0cLIST_UNKNOWN\x10\x00\x12\r\n\tLIST_NAME\x10\x01\x12\x14\n\x10LIST_DESCRIPTION\x10\x02\x12\x10\n\x0cLIST_PICTURE\x10\x03\x12\x16\n\x12LIST_COLLABORATIVE\x10\x04\x12\x14\n\x10LIST_PL3_VERSION\x10\x05\x12\x19\n\x15LIST_DELETED_BY_OWNER\x10\x06\x12\x12\n\x0eLIST_CLIENT_ID\x10\n\x12\x0f\n\x0bLIST_FORMAT\x10\x0b\x12\x1a\n\x16LIST_FORMAT_ATTRIBUTES\x10\x0c*\x98\x01\n\x11ItemAttributeKind\x12\x10\n\x0cITEM_UNKNOWN\x10\x00\x12\x11\n\rITEM_ADDED_BY\x10\x01\x12\x12\n\x0eITEM_TIMESTAMP\x10\x02\x12\x10\n\x0cITEM_SEEN_AT\x10\t\x12\x0f\n\x0bITEM_PUBLIC\x10\n\x12\x1a\n\x16ITEM_FORMAT_ATTRIBUTES\x10\x0b\x12\x0b\n\x07ITEM_ID\x10\x0c\x42,\n\x15\x63om.spotify.playlist4B\x11Playlist4ApiProtoH\x02') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'playlist4_external_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\025com.spotify.playlist4B\021Playlist4ApiProtoH\002' + _globals['_LISTATTRIBUTEKIND']._serialized_start=3902 + _globals['_LISTATTRIBUTEKIND']._serialized_end=4132 + _globals['_ITEMATTRIBUTEKIND']._serialized_start=4135 + _globals['_ITEMATTRIBUTEKIND']._serialized_end=4287 + _globals['_ITEM']._serialized_start=53 + _globals['_ITEM']._serialized_end=133 + _globals['_METAITEM']._serialized_start=136 + _globals['_METAITEM']._serialized_end=284 + _globals['_LISTITEMS']._serialized_start=287 + _globals['_LISTITEMS']._serialized_end=431 + _globals['_FORMATLISTATTRIBUTE']._serialized_start=433 + _globals['_FORMATLISTATTRIBUTE']._serialized_end=482 + _globals['_LISTATTRIBUTES']._serialized_start=485 + _globals['_LISTATTRIBUTES']._serialized_end=731 + _globals['_ITEMATTRIBUTES']._serialized_start=734 + _globals['_ITEMATTRIBUTES']._serialized_end=910 + _globals['_ADD']._serialized_start=912 + _globals['_ADD']._serialized_end=1020 + _globals['_REM']._serialized_start=1022 + _globals['_REM']._serialized_end=1131 + _globals['_MOV']._serialized_start=1133 + _globals['_MOV']._serialized_end=1192 + _globals['_ITEMATTRIBUTESPARTIALSTATE']._serialized_start=1195 + _globals['_ITEMATTRIBUTESPARTIALSTATE']._serialized_end=1342 + _globals['_LISTATTRIBUTESPARTIALSTATE']._serialized_start=1345 + _globals['_LISTATTRIBUTESPARTIALSTATE']._serialized_end=1492 + _globals['_UPDATEITEMATTRIBUTES']._serialized_start=1495 + _globals['_UPDATEITEMATTRIBUTES']._serialized_end=1686 + _globals['_UPDATELISTATTRIBUTES']._serialized_start=1689 + _globals['_UPDATELISTATTRIBUTES']._serialized_end=1865 + _globals['_OP']._serialized_start=1868 + _globals['_OP']._serialized_end=2316 + _globals['_OP_KIND']._serialized_start=2209 + _globals['_OP_KIND']._serialized_end=2316 + _globals['_OPLIST']._serialized_start=2318 + _globals['_OPLIST']._serialized_end=2368 + _globals['_CHANGEINFO']._serialized_start=2371 + _globals['_CHANGEINFO']._serialized_end=2584 + _globals['_SOURCEINFO']._serialized_start=2587 + _globals['_SOURCEINFO']._serialized_end=2819 + _globals['_SOURCEINFO_CLIENT']._serialized_start=2707 + _globals['_SOURCEINFO_CLIENT']._serialized_end=2819 + _globals['_DELTA']._serialized_start=2821 + _globals['_DELTA']._serialized_end=2943 + _globals['_DIFF']._serialized_start=2945 + _globals['_DIFF']._serialized_end=3037 + _globals['_LISTCHANGES']._serialized_start=3040 + _globals['_LISTCHANGES']._serialized_end=3200 + _globals['_SELECTEDLISTCONTENT']._serialized_start=3203 + _globals['_SELECTEDLISTCONTENT']._serialized_end=3602 + _globals['_CREATELISTREPLY']._serialized_start=3604 + _globals['_CREATELISTREPLY']._serialized_end=3652 + _globals['_MODIFYREPLY']._serialized_start=3654 + _globals['_MODIFYREPLY']._serialized_end=3698 + _globals['_SUBSCRIBEREQUEST']._serialized_start=3700 + _globals['_SUBSCRIBEREQUEST']._serialized_end=3732 + _globals['_UNSUBSCRIBEREQUEST']._serialized_start=3734 + _globals['_UNSUBSCRIBEREQUEST']._serialized_end=3768 + _globals['_PLAYLISTMODIFICATIONINFO']._serialized_start=3771 + _globals['_PLAYLISTMODIFICATIONINFO']._serialized_end=3899 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/PlaylistAnnotate3_pb2.py b/librespot/proto/PlaylistAnnotate3_pb2.py index 265b99b8..19a47633 100644 --- a/librespot/proto/PlaylistAnnotate3_pb2.py +++ b/librespot/proto/PlaylistAnnotate3_pb2.py @@ -1,460 +1,49 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: playlist_annotate3.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'playlist_annotate3.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="playlist_annotate3.proto", - package="spotify_playlist_annotate3.proto", - syntax="proto2", - serialized_options=b"\n\036com.spotify.playlist_annotate3H\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x18playlist_annotate3.proto\x12 spotify_playlist_annotate3.proto"a\n\x0fTakedownRequest\x12N\n\x12\x61\x62use_report_state\x18\x01 \x01(\x0e\x32\x32.spotify_playlist_annotate3.proto.AbuseReportState"9\n\x0f\x41nnotateRequest\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t"5\n\x11TranscodedPicture\x12\x13\n\x0btarget_name\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t"\xf4\x02\n\x12PlaylistAnnotation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0f\n\x07picture\x18\x02 \x01(\t\x12i\n\x1a\x64\x65precated_render_features\x18\x03 \x01(\x0e\x32\x30.spotify_playlist_annotate3.proto.RenderFeatures:\x0fNORMAL_FEATURESB\x02\x18\x01\x12O\n\x12transcoded_picture\x18\x04 \x03(\x0b\x32\x33.spotify_playlist_annotate3.proto.TranscodedPicture\x12(\n\x1ais_abuse_reporting_enabled\x18\x06 \x01(\x08:\x04true\x12R\n\x12\x61\x62use_report_state\x18\x07 \x01(\x0e\x32\x32.spotify_playlist_annotate3.proto.AbuseReportState:\x02OK*<\n\x0eRenderFeatures\x12\x13\n\x0fNORMAL_FEATURES\x10\x01\x12\x15\n\x11\x45XTENDED_FEATURES\x10\x02**\n\x10\x41\x62useReportState\x12\x06\n\x02OK\x10\x00\x12\x0e\n\nTAKEN_DOWN\x10\x01\x42"\n\x1e\x63om.spotify.playlist_annotate3H\x02', -) - -_RENDERFEATURES = _descriptor.EnumDescriptor( - name="RenderFeatures", - full_name="spotify_playlist_annotate3.proto.RenderFeatures", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="NORMAL_FEATURES", - index=0, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="EXTENDED_FEATURES", - index=1, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=650, - serialized_end=710, -) -_sym_db.RegisterEnumDescriptor(_RENDERFEATURES) - -RenderFeatures = enum_type_wrapper.EnumTypeWrapper(_RENDERFEATURES) -_ABUSEREPORTSTATE = _descriptor.EnumDescriptor( - name="AbuseReportState", - full_name="spotify_playlist_annotate3.proto.AbuseReportState", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="OK", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="TAKEN_DOWN", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=712, - serialized_end=754, -) -_sym_db.RegisterEnumDescriptor(_ABUSEREPORTSTATE) - -AbuseReportState = enum_type_wrapper.EnumTypeWrapper(_ABUSEREPORTSTATE) -NORMAL_FEATURES = 1 -EXTENDED_FEATURES = 2 -OK = 0 -TAKEN_DOWN = 1 - -_TAKEDOWNREQUEST = _descriptor.Descriptor( - name="TakedownRequest", - full_name="spotify_playlist_annotate3.proto.TakedownRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="abuse_report_state", - full_name= - "spotify_playlist_annotate3.proto.TakedownRequest.abuse_report_state", - index=0, - number=1, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=62, - serialized_end=159, -) -_ANNOTATEREQUEST = _descriptor.Descriptor( - name="AnnotateRequest", - full_name="spotify_playlist_annotate3.proto.AnnotateRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="description", - full_name= - "spotify_playlist_annotate3.proto.AnnotateRequest.description", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="image_uri", - full_name= - "spotify_playlist_annotate3.proto.AnnotateRequest.image_uri", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=161, - serialized_end=218, -) -_TRANSCODEDPICTURE = _descriptor.Descriptor( - name="TranscodedPicture", - full_name="spotify_playlist_annotate3.proto.TranscodedPicture", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="target_name", - full_name= - "spotify_playlist_annotate3.proto.TranscodedPicture.target_name", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="uri", - full_name="spotify_playlist_annotate3.proto.TranscodedPicture.uri", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=220, - serialized_end=273, -) - -_PLAYLISTANNOTATION = _descriptor.Descriptor( - name="PlaylistAnnotation", - full_name="spotify_playlist_annotate3.proto.PlaylistAnnotation", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="description", - full_name= - "spotify_playlist_annotate3.proto.PlaylistAnnotation.description", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="picture", - full_name= - "spotify_playlist_annotate3.proto.PlaylistAnnotation.picture", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="deprecated_render_features", - full_name= - "spotify_playlist_annotate3.proto.PlaylistAnnotation.deprecated_render_features", - index=2, - number=3, - type=14, - cpp_type=8, - label=1, - has_default_value=True, - default_value=1, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=b"\030\001", - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="transcoded_picture", - full_name= - "spotify_playlist_annotate3.proto.PlaylistAnnotation.transcoded_picture", - index=3, - number=4, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="is_abuse_reporting_enabled", - full_name= - "spotify_playlist_annotate3.proto.PlaylistAnnotation.is_abuse_reporting_enabled", - index=4, - number=6, - type=8, - cpp_type=7, - label=1, - has_default_value=True, - default_value=True, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="abuse_report_state", - full_name= - "spotify_playlist_annotate3.proto.PlaylistAnnotation.abuse_report_state", - index=5, - number=7, - type=14, - cpp_type=8, - label=1, - has_default_value=True, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=276, - serialized_end=648, -) - -_TAKEDOWNREQUEST.fields_by_name[ - "abuse_report_state"].enum_type = _ABUSEREPORTSTATE -_PLAYLISTANNOTATION.fields_by_name[ - "deprecated_render_features"].enum_type = _RENDERFEATURES -_PLAYLISTANNOTATION.fields_by_name[ - "transcoded_picture"].message_type = _TRANSCODEDPICTURE -_PLAYLISTANNOTATION.fields_by_name[ - "abuse_report_state"].enum_type = _ABUSEREPORTSTATE -DESCRIPTOR.message_types_by_name["TakedownRequest"] = _TAKEDOWNREQUEST -DESCRIPTOR.message_types_by_name["AnnotateRequest"] = _ANNOTATEREQUEST -DESCRIPTOR.message_types_by_name["TranscodedPicture"] = _TRANSCODEDPICTURE -DESCRIPTOR.message_types_by_name["PlaylistAnnotation"] = _PLAYLISTANNOTATION -DESCRIPTOR.enum_types_by_name["RenderFeatures"] = _RENDERFEATURES -DESCRIPTOR.enum_types_by_name["AbuseReportState"] = _ABUSEREPORTSTATE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -TakedownRequest = _reflection.GeneratedProtocolMessageType( - "TakedownRequest", - (_message.Message, ), - { - "DESCRIPTOR": _TAKEDOWNREQUEST, - "__module__": "playlist_annotate3_pb2" - # @@protoc_insertion_point(class_scope:spotify_playlist_annotate3.proto.TakedownRequest) - }, -) -_sym_db.RegisterMessage(TakedownRequest) - -AnnotateRequest = _reflection.GeneratedProtocolMessageType( - "AnnotateRequest", - (_message.Message, ), - { - "DESCRIPTOR": _ANNOTATEREQUEST, - "__module__": "playlist_annotate3_pb2" - # @@protoc_insertion_point(class_scope:spotify_playlist_annotate3.proto.AnnotateRequest) - }, -) -_sym_db.RegisterMessage(AnnotateRequest) - -TranscodedPicture = _reflection.GeneratedProtocolMessageType( - "TranscodedPicture", - (_message.Message, ), - { - "DESCRIPTOR": _TRANSCODEDPICTURE, - "__module__": "playlist_annotate3_pb2" - # @@protoc_insertion_point(class_scope:spotify_playlist_annotate3.proto.TranscodedPicture) - }, -) -_sym_db.RegisterMessage(TranscodedPicture) - -PlaylistAnnotation = _reflection.GeneratedProtocolMessageType( - "PlaylistAnnotation", - (_message.Message, ), - { - "DESCRIPTOR": _PLAYLISTANNOTATION, - "__module__": "playlist_annotate3_pb2" - # @@protoc_insertion_point(class_scope:spotify_playlist_annotate3.proto.PlaylistAnnotation) - }, -) -_sym_db.RegisterMessage(PlaylistAnnotation) -DESCRIPTOR._options = None -_PLAYLISTANNOTATION.fields_by_name[ - "deprecated_render_features"]._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18playlist_annotate3.proto\x12 spotify_playlist_annotate3.proto\"a\n\x0fTakedownRequest\x12N\n\x12\x61\x62use_report_state\x18\x01 \x01(\x0e\x32\x32.spotify_playlist_annotate3.proto.AbuseReportState\"9\n\x0f\x41nnotateRequest\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\"5\n\x11TranscodedPicture\x12\x13\n\x0btarget_name\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\"\xf4\x02\n\x12PlaylistAnnotation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0f\n\x07picture\x18\x02 \x01(\t\x12i\n\x1a\x64\x65precated_render_features\x18\x03 \x01(\x0e\x32\x30.spotify_playlist_annotate3.proto.RenderFeatures:\x0fNORMAL_FEATURESB\x02\x18\x01\x12O\n\x12transcoded_picture\x18\x04 \x03(\x0b\x32\x33.spotify_playlist_annotate3.proto.TranscodedPicture\x12(\n\x1ais_abuse_reporting_enabled\x18\x06 \x01(\x08:\x04true\x12R\n\x12\x61\x62use_report_state\x18\x07 \x01(\x0e\x32\x32.spotify_playlist_annotate3.proto.AbuseReportState:\x02OK*<\n\x0eRenderFeatures\x12\x13\n\x0fNORMAL_FEATURES\x10\x01\x12\x15\n\x11\x45XTENDED_FEATURES\x10\x02**\n\x10\x41\x62useReportState\x12\x06\n\x02OK\x10\x00\x12\x0e\n\nTAKEN_DOWN\x10\x01\x42\"\n\x1e\x63om.spotify.playlist_annotate3H\x02') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'playlist_annotate3_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\036com.spotify.playlist_annotate3H\002' + _globals['_PLAYLISTANNOTATION'].fields_by_name['deprecated_render_features']._loaded_options = None + _globals['_PLAYLISTANNOTATION'].fields_by_name['deprecated_render_features']._serialized_options = b'\030\001' + _globals['_RENDERFEATURES']._serialized_start=650 + _globals['_RENDERFEATURES']._serialized_end=710 + _globals['_ABUSEREPORTSTATE']._serialized_start=712 + _globals['_ABUSEREPORTSTATE']._serialized_end=754 + _globals['_TAKEDOWNREQUEST']._serialized_start=62 + _globals['_TAKEDOWNREQUEST']._serialized_end=159 + _globals['_ANNOTATEREQUEST']._serialized_start=161 + _globals['_ANNOTATEREQUEST']._serialized_end=218 + _globals['_TRANSCODEDPICTURE']._serialized_start=220 + _globals['_TRANSCODEDPICTURE']._serialized_end=273 + _globals['_PLAYLISTANNOTATION']._serialized_start=276 + _globals['_PLAYLISTANNOTATION']._serialized_end=648 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Pubsub_pb2.py b/librespot/proto/Pubsub_pb2.py index abe1b3ee..77d1a61a 100644 --- a/librespot/proto/Pubsub_pb2.py +++ b/librespot/proto/Pubsub_pb2.py @@ -1,112 +1,37 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: pubsub.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'pubsub.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name='pubsub.proto', - package='spotify', - syntax='proto2', - serialized_options=b'\n\013com.spotify', - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x0cpubsub.proto\x12\x07spotify\"@\n\x0cSubscription\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0e\n\x06\x65xpiry\x18\x02 \x01(\x05\x12\x13\n\x0bstatus_code\x18\x03 \x01(\x05\x42\r\n\x0b\x63om.spotify' -) -_SUBSCRIPTION = _descriptor.Descriptor( - name='Subscription', - full_name='spotify.Subscription', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='uri', - full_name='spotify.Subscription.uri', - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode('utf-8'), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='expiry', - full_name='spotify.Subscription.expiry', - index=1, - number=2, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='status_code', - full_name='spotify.Subscription.status_code', - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax='proto2', - extension_ranges=[], - oneofs=[], - serialized_start=25, - serialized_end=89, -) -DESCRIPTOR.message_types_by_name['Subscription'] = _SUBSCRIPTION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -Subscription = _reflection.GeneratedProtocolMessageType( - 'Subscription', - (_message.Message, ), - { - 'DESCRIPTOR': _SUBSCRIPTION, - '__module__': 'pubsub_pb2' - # @@protoc_insertion_point(class_scope:spotify.Subscription) - }) -_sym_db.RegisterMessage(Subscription) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cpubsub.proto\x12\x07spotify\"@\n\x0cSubscription\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0e\n\x06\x65xpiry\x18\x02 \x01(\x05\x12\x13\n\x0bstatus_code\x18\x03 \x01(\x05\x42\r\n\x0b\x63om.spotify') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'pubsub_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\013com.spotify' + _globals['_SUBSCRIPTION']._serialized_start=25 + _globals['_SUBSCRIPTION']._serialized_end=89 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Queue_pb2.py b/librespot/proto/Queue_pb2.py index 0abb7622..487ba1e6 100644 --- a/librespot/proto/Queue_pb2.py +++ b/librespot/proto/Queue_pb2.py @@ -1,104 +1,38 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: queue.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -import ContextTrack_pb2 as context__track__pb2 from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'queue.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="queue.proto", - package="spotify.player.proto.transfer", - syntax="proto2", - serialized_options=b"\n\024com.spotify.transferH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x0bqueue.proto\x12\x1dspotify.player.proto.transfer\x1a\x13\x63ontext_track.proto"U\n\x05Queue\x12\x32\n\x06tracks\x18\x01 \x03(\x0b\x32".spotify.player.proto.ContextTrack\x12\x18\n\x10is_playing_queue\x18\x02 \x01(\x08\x42\x18\n\x14\x63om.spotify.transferH\x02', - dependencies=[ - context__track__pb2.DESCRIPTOR, - ], -) -_QUEUE = _descriptor.Descriptor( - name="Queue", - full_name="spotify.player.proto.transfer.Queue", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="tracks", - full_name="spotify.player.proto.transfer.Queue.tracks", - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="is_playing_queue", - full_name="spotify.player.proto.transfer.Queue.is_playing_queue", - index=1, - number=2, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=67, - serialized_end=152, -) +from librespot.proto import ContextTrack_pb2 as context__track__pb2 -_QUEUE.fields_by_name[ - "tracks"].message_type = context__track__pb2._CONTEXTTRACK -DESCRIPTOR.message_types_by_name["Queue"] = _QUEUE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -Queue = _reflection.GeneratedProtocolMessageType( - "Queue", - (_message.Message, ), - { - "DESCRIPTOR": _QUEUE, - "__module__": "queue_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.transfer.Queue) - }, -) -_sym_db.RegisterMessage(Queue) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bqueue.proto\x12\x1dspotify.player.proto.transfer\x1a\x13\x63ontext_track.proto\"U\n\x05Queue\x12\x32\n\x06tracks\x18\x01 \x03(\x0b\x32\".spotify.player.proto.ContextTrack\x12\x18\n\x10is_playing_queue\x18\x02 \x01(\x08\x42\x18\n\x14\x63om.spotify.transferH\x02') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'queue_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.transferH\002' + _globals['_QUEUE']._serialized_start=67 + _globals['_QUEUE']._serialized_end=152 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Restrictions_pb2.py b/librespot/proto/Restrictions_pb2.py index 489e9340..15af2a18 100644 --- a/librespot/proto/Restrictions_pb2.py +++ b/librespot/proto/Restrictions_pb2.py @@ -1,480 +1,37 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: restrictions.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'restrictions.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="restrictions.proto", - package="spotify.player.proto", - syntax="proto2", - serialized_options=b"\n\023com.spotify.contextH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x12restrictions.proto\x12\x14spotify.player.proto"\xbb\x07\n\x0cRestrictions\x12 \n\x18\x64isallow_pausing_reasons\x18\x01 \x03(\t\x12!\n\x19\x64isallow_resuming_reasons\x18\x02 \x03(\t\x12 \n\x18\x64isallow_seeking_reasons\x18\x03 \x03(\t\x12%\n\x1d\x64isallow_peeking_prev_reasons\x18\x04 \x03(\t\x12%\n\x1d\x64isallow_peeking_next_reasons\x18\x05 \x03(\t\x12&\n\x1e\x64isallow_skipping_prev_reasons\x18\x06 \x03(\t\x12&\n\x1e\x64isallow_skipping_next_reasons\x18\x07 \x03(\t\x12\x30\n(disallow_toggling_repeat_context_reasons\x18\x08 \x03(\t\x12.\n&disallow_toggling_repeat_track_reasons\x18\t \x03(\t\x12)\n!disallow_toggling_shuffle_reasons\x18\n \x03(\t\x12"\n\x1a\x64isallow_set_queue_reasons\x18\x0b \x03(\t\x12.\n&disallow_interrupting_playback_reasons\x18\x0c \x03(\t\x12.\n&disallow_transferring_playback_reasons\x18\r \x03(\t\x12\'\n\x1f\x64isallow_remote_control_reasons\x18\x0e \x03(\t\x12\x33\n+disallow_inserting_into_next_tracks_reasons\x18\x0f \x03(\t\x12\x36\n.disallow_inserting_into_context_tracks_reasons\x18\x10 \x03(\t\x12\x32\n*disallow_reordering_in_next_tracks_reasons\x18\x11 \x03(\t\x12\x35\n-disallow_reordering_in_context_tracks_reasons\x18\x12 \x03(\t\x12\x32\n*disallow_removing_from_next_tracks_reasons\x18\x13 \x03(\t\x12\x35\n-disallow_removing_from_context_tracks_reasons\x18\x14 \x03(\t\x12)\n!disallow_updating_context_reasons\x18\x15 \x03(\tB\x17\n\x13\x63om.spotify.contextH\x02', -) -_RESTRICTIONS = _descriptor.Descriptor( - name="Restrictions", - full_name="spotify.player.proto.Restrictions", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="disallow_pausing_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_pausing_reasons", - index=0, - number=1, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_resuming_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_resuming_reasons", - index=1, - number=2, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_seeking_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_seeking_reasons", - index=2, - number=3, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_peeking_prev_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_peeking_prev_reasons", - index=3, - number=4, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_peeking_next_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_peeking_next_reasons", - index=4, - number=5, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_skipping_prev_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_skipping_prev_reasons", - index=5, - number=6, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_skipping_next_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_skipping_next_reasons", - index=6, - number=7, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_toggling_repeat_context_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_toggling_repeat_context_reasons", - index=7, - number=8, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_toggling_repeat_track_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_toggling_repeat_track_reasons", - index=8, - number=9, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_toggling_shuffle_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_toggling_shuffle_reasons", - index=9, - number=10, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_set_queue_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_set_queue_reasons", - index=10, - number=11, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_interrupting_playback_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_interrupting_playback_reasons", - index=11, - number=12, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_transferring_playback_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_transferring_playback_reasons", - index=12, - number=13, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_remote_control_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_remote_control_reasons", - index=13, - number=14, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_inserting_into_next_tracks_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_inserting_into_next_tracks_reasons", - index=14, - number=15, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_inserting_into_context_tracks_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_inserting_into_context_tracks_reasons", - index=15, - number=16, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_reordering_in_next_tracks_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_reordering_in_next_tracks_reasons", - index=16, - number=17, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_reordering_in_context_tracks_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_reordering_in_context_tracks_reasons", - index=17, - number=18, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_removing_from_next_tracks_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_removing_from_next_tracks_reasons", - index=18, - number=19, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_removing_from_context_tracks_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_removing_from_context_tracks_reasons", - index=19, - number=20, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="disallow_updating_context_reasons", - full_name= - "spotify.player.proto.Restrictions.disallow_updating_context_reasons", - index=20, - number=21, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=45, - serialized_end=1000, -) -DESCRIPTOR.message_types_by_name["Restrictions"] = _RESTRICTIONS -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -Restrictions = _reflection.GeneratedProtocolMessageType( - "Restrictions", - (_message.Message, ), - { - "DESCRIPTOR": _RESTRICTIONS, - "__module__": "restrictions_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.Restrictions) - }, -) -_sym_db.RegisterMessage(Restrictions) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12restrictions.proto\x12\x14spotify.player.proto\"\xbb\x07\n\x0cRestrictions\x12 \n\x18\x64isallow_pausing_reasons\x18\x01 \x03(\t\x12!\n\x19\x64isallow_resuming_reasons\x18\x02 \x03(\t\x12 \n\x18\x64isallow_seeking_reasons\x18\x03 \x03(\t\x12%\n\x1d\x64isallow_peeking_prev_reasons\x18\x04 \x03(\t\x12%\n\x1d\x64isallow_peeking_next_reasons\x18\x05 \x03(\t\x12&\n\x1e\x64isallow_skipping_prev_reasons\x18\x06 \x03(\t\x12&\n\x1e\x64isallow_skipping_next_reasons\x18\x07 \x03(\t\x12\x30\n(disallow_toggling_repeat_context_reasons\x18\x08 \x03(\t\x12.\n&disallow_toggling_repeat_track_reasons\x18\t \x03(\t\x12)\n!disallow_toggling_shuffle_reasons\x18\n \x03(\t\x12\"\n\x1a\x64isallow_set_queue_reasons\x18\x0b \x03(\t\x12.\n&disallow_interrupting_playback_reasons\x18\x0c \x03(\t\x12.\n&disallow_transferring_playback_reasons\x18\r \x03(\t\x12\'\n\x1f\x64isallow_remote_control_reasons\x18\x0e \x03(\t\x12\x33\n+disallow_inserting_into_next_tracks_reasons\x18\x0f \x03(\t\x12\x36\n.disallow_inserting_into_context_tracks_reasons\x18\x10 \x03(\t\x12\x32\n*disallow_reordering_in_next_tracks_reasons\x18\x11 \x03(\t\x12\x35\n-disallow_reordering_in_context_tracks_reasons\x18\x12 \x03(\t\x12\x32\n*disallow_removing_from_next_tracks_reasons\x18\x13 \x03(\t\x12\x35\n-disallow_removing_from_context_tracks_reasons\x18\x14 \x03(\t\x12)\n!disallow_updating_context_reasons\x18\x15 \x03(\tB\x17\n\x13\x63om.spotify.contextH\x02') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'restrictions_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\023com.spotify.contextH\002' + _globals['_RESTRICTIONS']._serialized_start=45 + _globals['_RESTRICTIONS']._serialized_end=1000 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/Session_pb2.py b/librespot/proto/Session_pb2.py index 9214092b..99f1b2d0 100644 --- a/librespot/proto/Session_pb2.py +++ b/librespot/proto/Session_pb2.py @@ -1,149 +1,40 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: session.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -import Context_pb2 as context__pb2 -import ContextPlayerOptions_pb2 as context__player__options__pb2 -import PlayOrigin_pb2 as play__origin__pb2 from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'session.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="session.proto", - package="spotify.player.proto.transfer", - syntax="proto2", - serialized_options=b"\n\024com.spotify.transferH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\rsession.proto\x12\x1dspotify.player.proto.transfer\x1a\rcontext.proto\x1a\x1c\x63ontext_player_options.proto\x1a\x11play_origin.proto"\xd3\x01\n\x07Session\x12\x35\n\x0bplay_origin\x18\x01 \x01(\x0b\x32 .spotify.player.proto.PlayOrigin\x12.\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x1d.spotify.player.proto.Context\x12\x13\n\x0b\x63urrent_uid\x18\x03 \x01(\t\x12L\n\x10option_overrides\x18\x04 \x01(\x0b\x32\x32.spotify.player.proto.ContextPlayerOptionOverridesB\x18\n\x14\x63om.spotify.transferH\x02', - dependencies=[ - context__pb2.DESCRIPTOR, - context__player__options__pb2.DESCRIPTOR, - play__origin__pb2.DESCRIPTOR, - ], -) -_SESSION = _descriptor.Descriptor( - name="Session", - full_name="spotify.player.proto.transfer.Session", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="play_origin", - full_name="spotify.player.proto.transfer.Session.play_origin", - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="context", - full_name="spotify.player.proto.transfer.Session.context", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="current_uid", - full_name="spotify.player.proto.transfer.Session.current_uid", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="option_overrides", - full_name="spotify.player.proto.transfer.Session.option_overrides", - index=3, - number=4, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=113, - serialized_end=324, -) +from librespot.proto import Context_pb2 as context__pb2 +from librespot.proto import ContextPlayerOptions_pb2 as context__player__options__pb2 +from librespot.proto import PlayOrigin_pb2 as play__origin__pb2 -_SESSION.fields_by_name[ - "play_origin"].message_type = play__origin__pb2._PLAYORIGIN -_SESSION.fields_by_name["context"].message_type = context__pb2._CONTEXT -_SESSION.fields_by_name[ - "option_overrides"].message_type = context__player__options__pb2._CONTEXTPLAYEROPTIONOVERRIDES -DESCRIPTOR.message_types_by_name["Session"] = _SESSION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -Session = _reflection.GeneratedProtocolMessageType( - "Session", - (_message.Message, ), - { - "DESCRIPTOR": _SESSION, - "__module__": "session_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.transfer.Session) - }, -) -_sym_db.RegisterMessage(Session) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rsession.proto\x12\x1dspotify.player.proto.transfer\x1a\rcontext.proto\x1a\x1c\x63ontext_player_options.proto\x1a\x11play_origin.proto\"\xd3\x01\n\x07Session\x12\x35\n\x0bplay_origin\x18\x01 \x01(\x0b\x32 .spotify.player.proto.PlayOrigin\x12.\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x1d.spotify.player.proto.Context\x12\x13\n\x0b\x63urrent_uid\x18\x03 \x01(\t\x12L\n\x10option_overrides\x18\x04 \x01(\x0b\x32\x32.spotify.player.proto.ContextPlayerOptionOverridesB\x18\n\x14\x63om.spotify.transferH\x02') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'session_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.transferH\002' + _globals['_SESSION']._serialized_start=113 + _globals['_SESSION']._serialized_end=324 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/StorageResolve_pb2.py b/librespot/proto/StorageResolve_pb2.py index 3319832c..95b6e7d7 100644 --- a/librespot/proto/StorageResolve_pb2.py +++ b/librespot/proto/StorageResolve_pb2.py @@ -1,154 +1,39 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: storage-resolve.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'storage-resolve.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name='storage-resolve.proto', - package='spotify.download.proto', - syntax='proto3', - serialized_options=b'\n\023com.spotify.storageH\002', - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x15storage-resolve.proto\x12\x16spotify.download.proto\"\xaf\x01\n\x16StorageResolveResponse\x12\x45\n\x06result\x18\x01 \x01(\x0e\x32\x35.spotify.download.proto.StorageResolveResponse.Result\x12\x0e\n\x06\x63\x64nurl\x18\x02 \x03(\t\x12\x0e\n\x06\x66ileid\x18\x04 \x01(\x0c\".\n\x06Result\x12\x07\n\x03\x43\x44N\x10\x00\x12\x0b\n\x07STORAGE\x10\x01\x12\x0e\n\nRESTRICTED\x10\x03\x42\x17\n\x13\x63om.spotify.storageH\x02\x62\x06proto3' -) -_STORAGERESOLVERESPONSE_RESULT = _descriptor.EnumDescriptor( - name='Result', - full_name='spotify.download.proto.StorageResolveResponse.Result', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='CDN', - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='STORAGE', - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='RESTRICTED', - index=2, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=179, - serialized_end=225, -) -_sym_db.RegisterEnumDescriptor(_STORAGERESOLVERESPONSE_RESULT) - -_STORAGERESOLVERESPONSE = _descriptor.Descriptor( - name='StorageResolveResponse', - full_name='spotify.download.proto.StorageResolveResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='result', - full_name='spotify.download.proto.StorageResolveResponse.result', - index=0, - number=1, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='cdnurl', - full_name='spotify.download.proto.StorageResolveResponse.cdnurl', - index=1, - number=2, - type=9, - cpp_type=9, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fileid', - full_name='spotify.download.proto.StorageResolveResponse.fileid', - index=2, - number=4, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key), - ], - extensions=[], - nested_types=[], - enum_types=[ - _STORAGERESOLVERESPONSE_RESULT, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[], - serialized_start=50, - serialized_end=225, -) -_STORAGERESOLVERESPONSE.fields_by_name[ - 'result'].enum_type = _STORAGERESOLVERESPONSE_RESULT -_STORAGERESOLVERESPONSE_RESULT.containing_type = _STORAGERESOLVERESPONSE -DESCRIPTOR.message_types_by_name[ - 'StorageResolveResponse'] = _STORAGERESOLVERESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -StorageResolveResponse = _reflection.GeneratedProtocolMessageType( - 'StorageResolveResponse', - (_message.Message, ), - { - 'DESCRIPTOR': _STORAGERESOLVERESPONSE, - '__module__': 'storage_resolve_pb2' - # @@protoc_insertion_point(class_scope:spotify.download.proto.StorageResolveResponse) - }) -_sym_db.RegisterMessage(StorageResolveResponse) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15storage-resolve.proto\x12\x16spotify.download.proto\"\xaf\x01\n\x16StorageResolveResponse\x12\x45\n\x06result\x18\x01 \x01(\x0e\x32\x35.spotify.download.proto.StorageResolveResponse.Result\x12\x0e\n\x06\x63\x64nurl\x18\x02 \x03(\t\x12\x0e\n\x06\x66ileid\x18\x04 \x01(\x0c\".\n\x06Result\x12\x07\n\x03\x43\x44N\x10\x00\x12\x0b\n\x07STORAGE\x10\x01\x12\x0e\n\nRESTRICTED\x10\x03\x42\x17\n\x13\x63om.spotify.storageH\x02\x62\x06proto3') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'storage_resolve_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\023com.spotify.storageH\002' + _globals['_STORAGERESOLVERESPONSE']._serialized_start=50 + _globals['_STORAGERESOLVERESPONSE']._serialized_end=225 + _globals['_STORAGERESOLVERESPONSE_RESULT']._serialized_start=179 + _globals['_STORAGERESOLVERESPONSE_RESULT']._serialized_end=225 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/TransferState_pb2.py b/librespot/proto/TransferState_pb2.py index 1db7786a..d83aa829 100644 --- a/librespot/proto/TransferState_pb2.py +++ b/librespot/proto/TransferState_pb2.py @@ -1,174 +1,41 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: transfer_state.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" -import ContextPlayerOptions_pb2 as context__player__options__pb2 -import Playback_pb2 as playback__pb2 -import Queue_pb2 as queue__pb2 -import Session_pb2 as session__pb2 from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'transfer_state.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="transfer_state.proto", - package="spotify.player.proto.transfer", - syntax="proto2", - serialized_options=b"\n\024com.spotify.transferH\002", - create_key=_descriptor._internal_create_key, - serialized_pb= - b"\n\x14transfer_state.proto\x12\x1dspotify.player.proto.transfer\x1a\x1c\x63ontext_player_options.proto\x1a\x0eplayback.proto\x1a\rsession.proto\x1a\x0bqueue.proto\"\x99\x02\n\rTransferState\x12;\n\x07options\x18\x01 \x01(\x0b\x32*.spotify.player.proto.ContextPlayerOptions\x12\x39\n\x08playback\x18\x02 \x01(\x0b\x32'.spotify.player.proto.transfer.Playback\x12?\n\x0f\x63urrent_session\x18\x03 \x01(\x0b\x32&.spotify.player.proto.transfer.Session\x12\x33\n\x05queue\x18\x04 \x01(\x0b\x32$.spotify.player.proto.transfer.Queue\x12\x1a\n\x12\x63reation_timestamp\x18\x05 \x01(\x03\x42\x18\n\x14\x63om.spotify.transferH\x02", - dependencies=[ - context__player__options__pb2.DESCRIPTOR, - playback__pb2.DESCRIPTOR, - session__pb2.DESCRIPTOR, - queue__pb2.DESCRIPTOR, - ], -) -_TRANSFERSTATE = _descriptor.Descriptor( - name="TransferState", - full_name="spotify.player.proto.transfer.TransferState", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="options", - full_name="spotify.player.proto.transfer.TransferState.options", - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="playback", - full_name="spotify.player.proto.transfer.TransferState.playback", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="current_session", - full_name= - "spotify.player.proto.transfer.TransferState.current_session", - index=2, - number=3, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="queue", - full_name="spotify.player.proto.transfer.TransferState.queue", - index=3, - number=4, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="creation_timestamp", - full_name= - "spotify.player.proto.transfer.TransferState.creation_timestamp", - index=4, - number=5, - type=3, - cpp_type=2, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto2", - extension_ranges=[], - oneofs=[], - serialized_start=130, - serialized_end=411, -) +from librespot.proto import ContextPlayerOptions_pb2 as context__player__options__pb2 +from librespot.proto import Playback_pb2 as playback__pb2 +from librespot.proto import Session_pb2 as session__pb2 +from librespot.proto import Queue_pb2 as queue__pb2 -_TRANSFERSTATE.fields_by_name[ - "options"].message_type = context__player__options__pb2._CONTEXTPLAYEROPTIONS -_TRANSFERSTATE.fields_by_name[ - "playback"].message_type = playback__pb2._PLAYBACK -_TRANSFERSTATE.fields_by_name[ - "current_session"].message_type = session__pb2._SESSION -_TRANSFERSTATE.fields_by_name["queue"].message_type = queue__pb2._QUEUE -DESCRIPTOR.message_types_by_name["TransferState"] = _TRANSFERSTATE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -TransferState = _reflection.GeneratedProtocolMessageType( - "TransferState", - (_message.Message, ), - { - "DESCRIPTOR": _TRANSFERSTATE, - "__module__": "transfer_state_pb2" - # @@protoc_insertion_point(class_scope:spotify.player.proto.transfer.TransferState) - }, -) -_sym_db.RegisterMessage(TransferState) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14transfer_state.proto\x12\x1dspotify.player.proto.transfer\x1a\x1c\x63ontext_player_options.proto\x1a\x0eplayback.proto\x1a\rsession.proto\x1a\x0bqueue.proto\"\x99\x02\n\rTransferState\x12;\n\x07options\x18\x01 \x01(\x0b\x32*.spotify.player.proto.ContextPlayerOptions\x12\x39\n\x08playback\x18\x02 \x01(\x0b\x32\'.spotify.player.proto.transfer.Playback\x12?\n\x0f\x63urrent_session\x18\x03 \x01(\x0b\x32&.spotify.player.proto.transfer.Session\x12\x33\n\x05queue\x18\x04 \x01(\x0b\x32$.spotify.player.proto.transfer.Queue\x12\x1a\n\x12\x63reation_timestamp\x18\x05 \x01(\x03\x42\x18\n\x14\x63om.spotify.transferH\x02') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transfer_state_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.transferH\002' + _globals['_TRANSFERSTATE']._serialized_start=130 + _globals['_TRANSFERSTATE']._serialized_end=411 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/spotify/login5/v3/ClientInfo_pb2.py b/librespot/proto/spotify/login5/v3/ClientInfo_pb2.py index 81fc0835..304f0a2e 100644 --- a/librespot/proto/spotify/login5/v3/ClientInfo_pb2.py +++ b/librespot/proto/spotify/login5/v3/ClientInfo_pb2.py @@ -1,98 +1,37 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: spotify/login5/v3/client_info.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'spotify/login5/v3/client_info.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="spotify/login5/v3/client_info.proto", - package="spotify.login5.v3", - syntax="proto3", - serialized_options=b"\n\024com.spotify.login5v3", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n#spotify/login5/v3/client_info.proto\x12\x11spotify.login5.v3"2\n\nClientInfo\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x11\n\tdevice_id\x18\x02 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3', -) -_CLIENTINFO = _descriptor.Descriptor( - name="ClientInfo", - full_name="spotify.login5.v3.ClientInfo", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="client_id", - full_name="spotify.login5.v3.ClientInfo.client_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="device_id", - full_name="spotify.login5.v3.ClientInfo.device_id", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=58, - serialized_end=108, -) -DESCRIPTOR.message_types_by_name["ClientInfo"] = _CLIENTINFO -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -ClientInfo = _reflection.GeneratedProtocolMessageType( - "ClientInfo", - (_message.Message, ), - { - "DESCRIPTOR": _CLIENTINFO, - "__module__": "spotify.login5.v3.client_info_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.ClientInfo) - }, -) -_sym_db.RegisterMessage(ClientInfo) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#spotify/login5/v3/client_info.proto\x12\x11spotify.login5.v3\"2\n\nClientInfo\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x11\n\tdevice_id\x18\x02 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spotify.login5.v3.client_info_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.login5v3' + _globals['_CLIENTINFO']._serialized_start=58 + _globals['_CLIENTINFO']._serialized_end=108 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/spotify/login5/v3/Login5_pb2.py b/librespot/proto/spotify/login5/v3/Login5_pb2.py index 810c71bf..3d0fc7d0 100644 --- a/librespot/proto/spotify/login5/v3/Login5_pb2.py +++ b/librespot/proto/spotify/login5/v3/Login5_pb2.py @@ -1,964 +1,57 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: spotify/login5/v3/login5.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper -from . import ClientInfo_pb2 as spotify_dot_login5_dot_v3_dot_client__info__pb2 -from . import UserInfo_pb2 as spotify_dot_login5_dot_v3_dot_user__info__pb2 -from ..v3.challenges import Code_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_code__pb2 -from ..v3.challenges import Hashcash_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_hashcash__pb2 -from ..v3.credentials import Credentials_pb2 as spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2 -from ..v3.identifiers import Identifiers_pb2 as spotify_dot_login5_dot_v3_dot_identifiers_dot_identifiers__pb2 - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'spotify/login5/v3/login5.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="spotify/login5/v3/login5.proto", - package="spotify.login5.v3", - syntax="proto3", - serialized_options=b"\n\024com.spotify.login5v3", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\x1espotify/login5/v3/login5.proto\x12\x11spotify.login5.v3\x1a#spotify/login5/v3/client_info.proto\x1a!spotify/login5/v3/user_info.proto\x1a\'spotify/login5/v3/challenges/code.proto\x1a+spotify/login5/v3/challenges/hashcash.proto\x1a/spotify/login5/v3/credentials/credentials.proto\x1a/spotify/login5/v3/identifiers/identifiers.proto">\n\nChallenges\x12\x30\n\nchallenges\x18\x01 \x03(\x0b\x32\x1c.spotify.login5.v3.Challenge"\x89\x01\n\tChallenge\x12\x41\n\x08hashcash\x18\x01 \x01(\x0b\x32/.spotify.login5.v3.challenges.HashcashChallenge\x12\x39\n\x04\x63ode\x18\x02 \x01(\x0b\x32+.spotify.login5.v3.challenges.CodeChallenge"M\n\x12\x43hallengeSolutions\x12\x37\n\tsolutions\x18\x01 \x03(\x0b\x32$.spotify.login5.v3.ChallengeSolution"\x8f\x01\n\x11\x43hallengeSolution\x12@\n\x08hashcash\x18\x01 \x01(\x0b\x32..spotify.login5.v3.challenges.HashcashSolution\x12\x38\n\x04\x63ode\x18\x02 \x01(\x0b\x32*.spotify.login5.v3.challenges.CodeSolution"\xad\x05\n\x0cLoginRequest\x12\x32\n\x0b\x63lient_info\x18\x01 \x01(\x0b\x32\x1d.spotify.login5.v3.ClientInfo\x12\x15\n\rlogin_context\x18\x02 \x01(\x0c\x12\x42\n\x13\x63hallenge_solutions\x18\x03 \x01(\x0b\x32%.spotify.login5.v3.ChallengeSolutions\x12J\n\x11stored_credential\x18\x64 \x01(\x0b\x32/.spotify.login5.v3.credentials.StoredCredential\x12\x39\n\x08password\x18\x65 \x01(\x0b\x32\'.spotify.login5.v3.credentials.Password\x12Q\n\x15\x66\x61\x63\x65\x62ook_access_token\x18\x66 \x01(\x0b\x32\x32.spotify.login5.v3.credentials.FacebookAccessToken\x12@\n\x0cphone_number\x18g \x01(\x0b\x32*.spotify.login5.v3.identifiers.PhoneNumber\x12\x43\n\x0eone_time_token\x18h \x01(\x0b\x32+.spotify.login5.v3.credentials.OneTimeToken\x12U\n\x17parent_child_credential\x18i \x01(\x0b\x32\x34.spotify.login5.v3.credentials.ParentChildCredential\x12V\n\x18\x61pple_sign_in_credential\x18j \x01(\x0b\x32\x34.spotify.login5.v3.credentials.AppleSignInCredential"m\n\x07LoginOk\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x02 \x01(\t\x12\x19\n\x11stored_credential\x18\x03 \x01(\x0c\x12\x1f\n\x17\x61\x63\x63\x65ss_token_expires_in\x18\x04 \x01(\x05"\xf8\x02\n\rLoginResponse\x12&\n\x02ok\x18\x01 \x01(\x0b\x32\x1a.spotify.login5.v3.LoginOk\x12,\n\x05\x65rror\x18\x02 \x01(\x0e\x32\x1d.spotify.login5.v3.LoginError\x12\x31\n\nchallenges\x18\x03 \x01(\x0b\x32\x1d.spotify.login5.v3.Challenges\x12;\n\x08warnings\x18\x04 \x03(\x0e\x32).spotify.login5.v3.LoginResponse.Warnings\x12\x15\n\rlogin_context\x18\x05 \x01(\x0c\x12\x18\n\x10identifier_token\x18\x06 \x01(\t\x12.\n\tuser_info\x18\x07 \x01(\x0b\x32\x1b.spotify.login5.v3.UserInfo"@\n\x08Warnings\x12\x13\n\x0fUNKNOWN_WARNING\x10\x00\x12\x1f\n\x1b\x44\x45PRECATED_PROTOCOL_VERSION\x10\x01*\xd3\x01\n\nLoginError\x12\x11\n\rUNKNOWN_ERROR\x10\x00\x12\x17\n\x13INVALID_CREDENTIALS\x10\x01\x12\x0f\n\x0b\x42\x41\x44_REQUEST\x10\x02\x12\x1e\n\x1aUNSUPPORTED_LOGIN_PROTOCOL\x10\x03\x12\x0b\n\x07TIMEOUT\x10\x04\x12\x16\n\x12UNKNOWN_IDENTIFIER\x10\x05\x12\x15\n\x11TOO_MANY_ATTEMPTS\x10\x06\x12\x17\n\x13INVALID_PHONENUMBER\x10\x07\x12\x13\n\x0fTRY_AGAIN_LATER\x10\x08\x42\x16\n\x14\x63om.spotify.login5v3b\x06proto3', - dependencies=[ - spotify_dot_login5_dot_v3_dot_client__info__pb2.DESCRIPTOR, - spotify_dot_login5_dot_v3_dot_user__info__pb2.DESCRIPTOR, - spotify_dot_login5_dot_v3_dot_challenges_dot_code__pb2.DESCRIPTOR, - spotify_dot_login5_dot_v3_dot_challenges_dot_hashcash__pb2.DESCRIPTOR, - spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2. - DESCRIPTOR, - spotify_dot_login5_dot_v3_dot_identifiers_dot_identifiers__pb2. - DESCRIPTOR, - ], -) - -_LOGINERROR = _descriptor.EnumDescriptor( - name="LoginError", - full_name="spotify.login5.v3.LoginError", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="UNKNOWN_ERROR", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="INVALID_CREDENTIALS", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="BAD_REQUEST", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="UNSUPPORTED_LOGIN_PROTOCOL", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="TIMEOUT", - index=4, - number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="UNKNOWN_IDENTIFIER", - index=5, - number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="TOO_MANY_ATTEMPTS", - index=6, - number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="INVALID_PHONENUMBER", - index=7, - number=7, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="TRY_AGAIN_LATER", - index=8, - number=8, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=1917, - serialized_end=2128, -) -_sym_db.RegisterEnumDescriptor(_LOGINERROR) - -LoginError = enum_type_wrapper.EnumTypeWrapper(_LOGINERROR) -UNKNOWN_ERROR = 0 -INVALID_CREDENTIALS = 1 -BAD_REQUEST = 2 -UNSUPPORTED_LOGIN_PROTOCOL = 3 -TIMEOUT = 4 -UNKNOWN_IDENTIFIER = 5 -TOO_MANY_ATTEMPTS = 6 -INVALID_PHONENUMBER = 7 -TRY_AGAIN_LATER = 8 - -_LOGINRESPONSE_WARNINGS = _descriptor.EnumDescriptor( - name="Warnings", - full_name="spotify.login5.v3.LoginResponse.Warnings", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="UNKNOWN_WARNING", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="DEPRECATED_PROTOCOL_VERSION", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=1850, - serialized_end=1914, -) -_sym_db.RegisterEnumDescriptor(_LOGINRESPONSE_WARNINGS) - -_CHALLENGES = _descriptor.Descriptor( - name="Challenges", - full_name="spotify.login5.v3.Challenges", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="challenges", - full_name="spotify.login5.v3.Challenges.challenges", - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=309, - serialized_end=371, -) - -_CHALLENGE = _descriptor.Descriptor( - name="Challenge", - full_name="spotify.login5.v3.Challenge", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="hashcash", - full_name="spotify.login5.v3.Challenge.hashcash", - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="code", - full_name="spotify.login5.v3.Challenge.code", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=374, - serialized_end=511, -) - -_CHALLENGESOLUTIONS = _descriptor.Descriptor( - name="ChallengeSolutions", - full_name="spotify.login5.v3.ChallengeSolutions", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="solutions", - full_name="spotify.login5.v3.ChallengeSolutions.solutions", - index=0, - number=1, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=513, - serialized_end=590, -) - -_CHALLENGESOLUTION = _descriptor.Descriptor( - name="ChallengeSolution", - full_name="spotify.login5.v3.ChallengeSolution", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="hashcash", - full_name="spotify.login5.v3.ChallengeSolution.hashcash", - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="code", - full_name="spotify.login5.v3.ChallengeSolution.code", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=593, - serialized_end=736, -) - -_LOGINREQUEST = _descriptor.Descriptor( - name="LoginRequest", - full_name="spotify.login5.v3.LoginRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="client_info", - full_name="spotify.login5.v3.LoginRequest.client_info", - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="login_context", - full_name="spotify.login5.v3.LoginRequest.login_context", - index=1, - number=2, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="challenge_solutions", - full_name="spotify.login5.v3.LoginRequest.challenge_solutions", - index=2, - number=3, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="stored_credential", - full_name="spotify.login5.v3.LoginRequest.stored_credential", - index=3, - number=100, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="password", - full_name="spotify.login5.v3.LoginRequest.password", - index=4, - number=101, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="facebook_access_token", - full_name="spotify.login5.v3.LoginRequest.facebook_access_token", - index=5, - number=102, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="phone_number", - full_name="spotify.login5.v3.LoginRequest.phone_number", - index=6, - number=103, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="one_time_token", - full_name="spotify.login5.v3.LoginRequest.one_time_token", - index=7, - number=104, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="parent_child_credential", - full_name="spotify.login5.v3.LoginRequest.parent_child_credential", - index=8, - number=105, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="apple_sign_in_credential", - full_name="spotify.login5.v3.LoginRequest.apple_sign_in_credential", - index=9, - number=106, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=739, - serialized_end=1424, -) - -_LOGINOK = _descriptor.Descriptor( - name="LoginOk", - full_name="spotify.login5.v3.LoginOk", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="username", - full_name="spotify.login5.v3.LoginOk.username", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="access_token", - full_name="spotify.login5.v3.LoginOk.access_token", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="stored_credential", - full_name="spotify.login5.v3.LoginOk.stored_credential", - index=2, - number=3, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="access_token_expires_in", - full_name="spotify.login5.v3.LoginOk.access_token_expires_in", - index=3, - number=4, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1426, - serialized_end=1535, -) - -_LOGINRESPONSE = _descriptor.Descriptor( - name="LoginResponse", - full_name="spotify.login5.v3.LoginResponse", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="ok", - full_name="spotify.login5.v3.LoginResponse.ok", - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="error", - full_name="spotify.login5.v3.LoginResponse.error", - index=1, - number=2, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="challenges", - full_name="spotify.login5.v3.LoginResponse.challenges", - index=2, - number=3, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="warnings", - full_name="spotify.login5.v3.LoginResponse.warnings", - index=3, - number=4, - type=14, - cpp_type=8, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="login_context", - full_name="spotify.login5.v3.LoginResponse.login_context", - index=4, - number=5, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="identifier_token", - full_name="spotify.login5.v3.LoginResponse.identifier_token", - index=5, - number=6, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="user_info", - full_name="spotify.login5.v3.LoginResponse.user_info", - index=6, - number=7, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _LOGINRESPONSE_WARNINGS, - ], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1538, - serialized_end=1914, -) - -_CHALLENGES.fields_by_name["challenges"].message_type = _CHALLENGE -_CHALLENGE.fields_by_name["hashcash"].message_type = ( - spotify_dot_login5_dot_v3_dot_challenges_dot_hashcash__pb2. - _HASHCASHCHALLENGE) -_CHALLENGE.fields_by_name[ - "code"].message_type = spotify_dot_login5_dot_v3_dot_challenges_dot_code__pb2._CODECHALLENGE -_CHALLENGESOLUTIONS.fields_by_name[ - "solutions"].message_type = _CHALLENGESOLUTION -_CHALLENGESOLUTION.fields_by_name["hashcash"].message_type = ( - spotify_dot_login5_dot_v3_dot_challenges_dot_hashcash__pb2. - _HASHCASHSOLUTION) -_CHALLENGESOLUTION.fields_by_name[ - "code"].message_type = spotify_dot_login5_dot_v3_dot_challenges_dot_code__pb2._CODESOLUTION -_LOGINREQUEST.fields_by_name[ - "client_info"].message_type = spotify_dot_login5_dot_v3_dot_client__info__pb2._CLIENTINFO -_LOGINREQUEST.fields_by_name[ - "challenge_solutions"].message_type = _CHALLENGESOLUTIONS -_LOGINREQUEST.fields_by_name["stored_credential"].message_type = ( - spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2. - _STOREDCREDENTIAL) -_LOGINREQUEST.fields_by_name["password"].message_type = ( - spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2._PASSWORD) -_LOGINREQUEST.fields_by_name["facebook_access_token"].message_type = ( - spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2. - _FACEBOOKACCESSTOKEN) -_LOGINREQUEST.fields_by_name["phone_number"].message_type = ( - spotify_dot_login5_dot_v3_dot_identifiers_dot_identifiers__pb2._PHONENUMBER -) -_LOGINREQUEST.fields_by_name["one_time_token"].message_type = ( - spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2. - _ONETIMETOKEN) -_LOGINREQUEST.fields_by_name["parent_child_credential"].message_type = ( - spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2. - _PARENTCHILDCREDENTIAL) -_LOGINREQUEST.fields_by_name["apple_sign_in_credential"].message_type = ( - spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2. - _APPLESIGNINCREDENTIAL) -_LOGINRESPONSE.fields_by_name["ok"].message_type = _LOGINOK -_LOGINRESPONSE.fields_by_name["error"].enum_type = _LOGINERROR -_LOGINRESPONSE.fields_by_name["challenges"].message_type = _CHALLENGES -_LOGINRESPONSE.fields_by_name["warnings"].enum_type = _LOGINRESPONSE_WARNINGS -_LOGINRESPONSE.fields_by_name[ - "user_info"].message_type = spotify_dot_login5_dot_v3_dot_user__info__pb2._USERINFO -_LOGINRESPONSE_WARNINGS.containing_type = _LOGINRESPONSE -DESCRIPTOR.message_types_by_name["Challenges"] = _CHALLENGES -DESCRIPTOR.message_types_by_name["Challenge"] = _CHALLENGE -DESCRIPTOR.message_types_by_name["ChallengeSolutions"] = _CHALLENGESOLUTIONS -DESCRIPTOR.message_types_by_name["ChallengeSolution"] = _CHALLENGESOLUTION -DESCRIPTOR.message_types_by_name["LoginRequest"] = _LOGINREQUEST -DESCRIPTOR.message_types_by_name["LoginOk"] = _LOGINOK -DESCRIPTOR.message_types_by_name["LoginResponse"] = _LOGINRESPONSE -DESCRIPTOR.enum_types_by_name["LoginError"] = _LOGINERROR -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Challenges = _reflection.GeneratedProtocolMessageType( - "Challenges", - (_message.Message, ), - { - "DESCRIPTOR": _CHALLENGES, - "__module__": "spotify.login5.v3.login5_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.Challenges) - }, -) -_sym_db.RegisterMessage(Challenges) - -Challenge = _reflection.GeneratedProtocolMessageType( - "Challenge", - (_message.Message, ), - { - "DESCRIPTOR": _CHALLENGE, - "__module__": "spotify.login5.v3.login5_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.Challenge) - }, -) -_sym_db.RegisterMessage(Challenge) - -ChallengeSolutions = _reflection.GeneratedProtocolMessageType( - "ChallengeSolutions", - (_message.Message, ), - { - "DESCRIPTOR": _CHALLENGESOLUTIONS, - "__module__": "spotify.login5.v3.login5_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.ChallengeSolutions) - }, -) -_sym_db.RegisterMessage(ChallengeSolutions) - -ChallengeSolution = _reflection.GeneratedProtocolMessageType( - "ChallengeSolution", - (_message.Message, ), - { - "DESCRIPTOR": _CHALLENGESOLUTION, - "__module__": "spotify.login5.v3.login5_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.ChallengeSolution) - }, -) -_sym_db.RegisterMessage(ChallengeSolution) - -LoginRequest = _reflection.GeneratedProtocolMessageType( - "LoginRequest", - (_message.Message, ), - { - "DESCRIPTOR": _LOGINREQUEST, - "__module__": "spotify.login5.v3.login5_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.LoginRequest) - }, -) -_sym_db.RegisterMessage(LoginRequest) - -LoginOk = _reflection.GeneratedProtocolMessageType( - "LoginOk", - (_message.Message, ), - { - "DESCRIPTOR": _LOGINOK, - "__module__": "spotify.login5.v3.login5_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.LoginOk) - }, -) -_sym_db.RegisterMessage(LoginOk) - -LoginResponse = _reflection.GeneratedProtocolMessageType( - "LoginResponse", - (_message.Message, ), - { - "DESCRIPTOR": _LOGINRESPONSE, - "__module__": "spotify.login5.v3.login5_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.LoginResponse) - }, -) -_sym_db.RegisterMessage(LoginResponse) - -DESCRIPTOR._options = None +from librespot.proto.spotify.login5.v3 import ClientInfo_pb2 as spotify_dot_login5_dot_v3_dot_client__info__pb2 +from librespot.proto.spotify.login5.v3 import UserInfo_pb2 as spotify_dot_login5_dot_v3_dot_user__info__pb2 +from librespot.proto.spotify.login5.v3.challenges import Code_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_code__pb2 +from librespot.proto.spotify.login5.v3.challenges import Hashcash_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_hashcash__pb2 +from librespot.proto.spotify.login5.v3.credentials import Credentials_pb2 as spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2 +from librespot.proto.spotify.login5.v3.identifiers import Identifiers_pb2 as spotify_dot_login5_dot_v3_dot_identifiers_dot_identifiers__pb2 + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1espotify/login5/v3/login5.proto\x12\x11spotify.login5.v3\x1a#spotify/login5/v3/client_info.proto\x1a!spotify/login5/v3/user_info.proto\x1a\'spotify/login5/v3/challenges/code.proto\x1a+spotify/login5/v3/challenges/hashcash.proto\x1a/spotify/login5/v3/credentials/credentials.proto\x1a/spotify/login5/v3/identifiers/identifiers.proto\">\n\nChallenges\x12\x30\n\nchallenges\x18\x01 \x03(\x0b\x32\x1c.spotify.login5.v3.Challenge\"\x89\x01\n\tChallenge\x12\x41\n\x08hashcash\x18\x01 \x01(\x0b\x32/.spotify.login5.v3.challenges.HashcashChallenge\x12\x39\n\x04\x63ode\x18\x02 \x01(\x0b\x32+.spotify.login5.v3.challenges.CodeChallenge\"M\n\x12\x43hallengeSolutions\x12\x37\n\tsolutions\x18\x01 \x03(\x0b\x32$.spotify.login5.v3.ChallengeSolution\"\x8f\x01\n\x11\x43hallengeSolution\x12@\n\x08hashcash\x18\x01 \x01(\x0b\x32..spotify.login5.v3.challenges.HashcashSolution\x12\x38\n\x04\x63ode\x18\x02 \x01(\x0b\x32*.spotify.login5.v3.challenges.CodeSolution\"\xad\x05\n\x0cLoginRequest\x12\x32\n\x0b\x63lient_info\x18\x01 \x01(\x0b\x32\x1d.spotify.login5.v3.ClientInfo\x12\x15\n\rlogin_context\x18\x02 \x01(\x0c\x12\x42\n\x13\x63hallenge_solutions\x18\x03 \x01(\x0b\x32%.spotify.login5.v3.ChallengeSolutions\x12J\n\x11stored_credential\x18\x64 \x01(\x0b\x32/.spotify.login5.v3.credentials.StoredCredential\x12\x39\n\x08password\x18\x65 \x01(\x0b\x32\'.spotify.login5.v3.credentials.Password\x12Q\n\x15\x66\x61\x63\x65\x62ook_access_token\x18\x66 \x01(\x0b\x32\x32.spotify.login5.v3.credentials.FacebookAccessToken\x12@\n\x0cphone_number\x18g \x01(\x0b\x32*.spotify.login5.v3.identifiers.PhoneNumber\x12\x43\n\x0eone_time_token\x18h \x01(\x0b\x32+.spotify.login5.v3.credentials.OneTimeToken\x12U\n\x17parent_child_credential\x18i \x01(\x0b\x32\x34.spotify.login5.v3.credentials.ParentChildCredential\x12V\n\x18\x61pple_sign_in_credential\x18j \x01(\x0b\x32\x34.spotify.login5.v3.credentials.AppleSignInCredential\"m\n\x07LoginOk\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x02 \x01(\t\x12\x19\n\x11stored_credential\x18\x03 \x01(\x0c\x12\x1f\n\x17\x61\x63\x63\x65ss_token_expires_in\x18\x04 \x01(\x05\"\xf8\x02\n\rLoginResponse\x12&\n\x02ok\x18\x01 \x01(\x0b\x32\x1a.spotify.login5.v3.LoginOk\x12,\n\x05\x65rror\x18\x02 \x01(\x0e\x32\x1d.spotify.login5.v3.LoginError\x12\x31\n\nchallenges\x18\x03 \x01(\x0b\x32\x1d.spotify.login5.v3.Challenges\x12;\n\x08warnings\x18\x04 \x03(\x0e\x32).spotify.login5.v3.LoginResponse.Warnings\x12\x15\n\rlogin_context\x18\x05 \x01(\x0c\x12\x18\n\x10identifier_token\x18\x06 \x01(\t\x12.\n\tuser_info\x18\x07 \x01(\x0b\x32\x1b.spotify.login5.v3.UserInfo\"@\n\x08Warnings\x12\x13\n\x0fUNKNOWN_WARNING\x10\x00\x12\x1f\n\x1b\x44\x45PRECATED_PROTOCOL_VERSION\x10\x01*\xd3\x01\n\nLoginError\x12\x11\n\rUNKNOWN_ERROR\x10\x00\x12\x17\n\x13INVALID_CREDENTIALS\x10\x01\x12\x0f\n\x0b\x42\x41\x44_REQUEST\x10\x02\x12\x1e\n\x1aUNSUPPORTED_LOGIN_PROTOCOL\x10\x03\x12\x0b\n\x07TIMEOUT\x10\x04\x12\x16\n\x12UNKNOWN_IDENTIFIER\x10\x05\x12\x15\n\x11TOO_MANY_ATTEMPTS\x10\x06\x12\x17\n\x13INVALID_PHONENUMBER\x10\x07\x12\x13\n\x0fTRY_AGAIN_LATER\x10\x08\x42\x16\n\x14\x63om.spotify.login5v3b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spotify.login5.v3.login5_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.login5v3' + _globals['_LOGINERROR']._serialized_start=1917 + _globals['_LOGINERROR']._serialized_end=2128 + _globals['_CHALLENGES']._serialized_start=309 + _globals['_CHALLENGES']._serialized_end=371 + _globals['_CHALLENGE']._serialized_start=374 + _globals['_CHALLENGE']._serialized_end=511 + _globals['_CHALLENGESOLUTIONS']._serialized_start=513 + _globals['_CHALLENGESOLUTIONS']._serialized_end=590 + _globals['_CHALLENGESOLUTION']._serialized_start=593 + _globals['_CHALLENGESOLUTION']._serialized_end=736 + _globals['_LOGINREQUEST']._serialized_start=739 + _globals['_LOGINREQUEST']._serialized_end=1424 + _globals['_LOGINOK']._serialized_start=1426 + _globals['_LOGINOK']._serialized_end=1535 + _globals['_LOGINRESPONSE']._serialized_start=1538 + _globals['_LOGINRESPONSE']._serialized_end=1914 + _globals['_LOGINRESPONSE_WARNINGS']._serialized_start=1850 + _globals['_LOGINRESPONSE_WARNINGS']._serialized_end=1914 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/spotify/login5/v3/UserInfo_pb2.py b/librespot/proto/spotify/login5/v3/UserInfo_pb2.py index 99f9235b..144c35bc 100644 --- a/librespot/proto/spotify/login5/v3/UserInfo_pb2.py +++ b/librespot/proto/spotify/login5/v3/UserInfo_pb2.py @@ -1,263 +1,39 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: spotify/login5/v3/user_info.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'spotify/login5/v3/user_info.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="spotify/login5/v3/user_info.proto", - package="spotify.login5.v3", - syntax="proto3", - serialized_options=b"\n\024com.spotify.login5v3", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n!spotify/login5/v3/user_info.proto\x12\x11spotify.login5.v3"\x97\x02\n\x08UserInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x16\n\x0e\x65mail_verified\x18\x03 \x01(\x08\x12\x11\n\tbirthdate\x18\x04 \x01(\t\x12\x32\n\x06gender\x18\x05 \x01(\x0e\x32".spotify.login5.v3.UserInfo.Gender\x12\x14\n\x0cphone_number\x18\x06 \x01(\t\x12\x1d\n\x15phone_number_verified\x18\x07 \x01(\x08\x12 \n\x18\x65mail_already_registered\x18\x08 \x01(\x08"8\n\x06Gender\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03\x42\x16\n\x14\x63om.spotify.login5v3b\x06proto3', -) -_USERINFO_GENDER = _descriptor.EnumDescriptor( - name="Gender", - full_name="spotify.login5.v3.UserInfo.Gender", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="UNKNOWN", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="MALE", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="FEMALE", - index=2, - number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="NEUTRAL", - index=3, - number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=280, - serialized_end=336, -) -_sym_db.RegisterEnumDescriptor(_USERINFO_GENDER) -_USERINFO = _descriptor.Descriptor( - name="UserInfo", - full_name="spotify.login5.v3.UserInfo", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="spotify.login5.v3.UserInfo.name", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="email", - full_name="spotify.login5.v3.UserInfo.email", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="email_verified", - full_name="spotify.login5.v3.UserInfo.email_verified", - index=2, - number=3, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="birthdate", - full_name="spotify.login5.v3.UserInfo.birthdate", - index=3, - number=4, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="gender", - full_name="spotify.login5.v3.UserInfo.gender", - index=4, - number=5, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="phone_number", - full_name="spotify.login5.v3.UserInfo.phone_number", - index=5, - number=6, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="phone_number_verified", - full_name="spotify.login5.v3.UserInfo.phone_number_verified", - index=6, - number=7, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="email_already_registered", - full_name="spotify.login5.v3.UserInfo.email_already_registered", - index=7, - number=8, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _USERINFO_GENDER, - ], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=57, - serialized_end=336, -) - -_USERINFO.fields_by_name["gender"].enum_type = _USERINFO_GENDER -_USERINFO_GENDER.containing_type = _USERINFO -DESCRIPTOR.message_types_by_name["UserInfo"] = _USERINFO -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -UserInfo = _reflection.GeneratedProtocolMessageType( - "UserInfo", - (_message.Message, ), - { - "DESCRIPTOR": _USERINFO, - "__module__": "spotify.login5.v3.user_info_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.UserInfo) - }, -) -_sym_db.RegisterMessage(UserInfo) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!spotify/login5/v3/user_info.proto\x12\x11spotify.login5.v3\"\x97\x02\n\x08UserInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x16\n\x0e\x65mail_verified\x18\x03 \x01(\x08\x12\x11\n\tbirthdate\x18\x04 \x01(\t\x12\x32\n\x06gender\x18\x05 \x01(\x0e\x32\".spotify.login5.v3.UserInfo.Gender\x12\x14\n\x0cphone_number\x18\x06 \x01(\t\x12\x1d\n\x15phone_number_verified\x18\x07 \x01(\x08\x12 \n\x18\x65mail_already_registered\x18\x08 \x01(\x08\"8\n\x06Gender\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03\x42\x16\n\x14\x63om.spotify.login5v3b\x06proto3') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spotify.login5.v3.user_info_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.login5v3' + _globals['_USERINFO']._serialized_start=57 + _globals['_USERINFO']._serialized_end=336 + _globals['_USERINFO_GENDER']._serialized_start=280 + _globals['_USERINFO_GENDER']._serialized_end=336 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/spotify/login5/v3/challenges/Code_pb2.py b/librespot/proto/spotify/login5/v3/challenges/Code_pb2.py index 03dca14a..66245e65 100644 --- a/librespot/proto/spotify/login5/v3/challenges/Code_pb2.py +++ b/librespot/proto/spotify/login5/v3/challenges/Code_pb2.py @@ -1,224 +1,41 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: spotify/login5/v3/challenges/code.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'spotify/login5/v3/challenges/code.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="spotify/login5/v3/challenges/code.proto", - package="spotify.login5.v3.challenges", - syntax="proto3", - serialized_options=b"\n\024com.spotify.login5v3", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n\'spotify/login5/v3/challenges/code.proto\x12\x1cspotify.login5.v3.challenges"\xbc\x01\n\rCodeChallenge\x12\x42\n\x06method\x18\x01 \x01(\x0e\x32\x32.spotify.login5.v3.challenges.CodeChallenge.Method\x12\x13\n\x0b\x63ode_length\x18\x02 \x01(\x05\x12\x12\n\nexpires_in\x18\x03 \x01(\x05\x12\x1e\n\x16\x63\x61nonical_phone_number\x18\x04 \x01(\t"\x1e\n\x06Method\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03SMS\x10\x01"\x1c\n\x0c\x43odeSolution\x12\x0c\n\x04\x63ode\x18\x01 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3', -) -_CODECHALLENGE_METHOD = _descriptor.EnumDescriptor( - name="Method", - full_name="spotify.login5.v3.challenges.CodeChallenge.Method", - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name="UNKNOWN", - index=0, - number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.EnumValueDescriptor( - name="SMS", - index=1, - number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key, - ), - ], - containing_type=None, - serialized_options=None, - serialized_start=232, - serialized_end=262, -) -_sym_db.RegisterEnumDescriptor(_CODECHALLENGE_METHOD) -_CODECHALLENGE = _descriptor.Descriptor( - name="CodeChallenge", - full_name="spotify.login5.v3.challenges.CodeChallenge", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="method", - full_name="spotify.login5.v3.challenges.CodeChallenge.method", - index=0, - number=1, - type=14, - cpp_type=8, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="code_length", - full_name="spotify.login5.v3.challenges.CodeChallenge.code_length", - index=1, - number=2, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="expires_in", - full_name="spotify.login5.v3.challenges.CodeChallenge.expires_in", - index=2, - number=3, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="canonical_phone_number", - full_name= - "spotify.login5.v3.challenges.CodeChallenge.canonical_phone_number", - index=3, - number=4, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[ - _CODECHALLENGE_METHOD, - ], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=74, - serialized_end=262, -) -_CODESOLUTION = _descriptor.Descriptor( - name="CodeSolution", - full_name="spotify.login5.v3.challenges.CodeSolution", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="code", - full_name="spotify.login5.v3.challenges.CodeSolution.code", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=264, - serialized_end=292, -) - -_CODECHALLENGE.fields_by_name["method"].enum_type = _CODECHALLENGE_METHOD -_CODECHALLENGE_METHOD.containing_type = _CODECHALLENGE -DESCRIPTOR.message_types_by_name["CodeChallenge"] = _CODECHALLENGE -DESCRIPTOR.message_types_by_name["CodeSolution"] = _CODESOLUTION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CodeChallenge = _reflection.GeneratedProtocolMessageType( - "CodeChallenge", - (_message.Message, ), - { - "DESCRIPTOR": _CODECHALLENGE, - "__module__": "spotify.login5.v3.challenges.code_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.challenges.CodeChallenge) - }, -) -_sym_db.RegisterMessage(CodeChallenge) - -CodeSolution = _reflection.GeneratedProtocolMessageType( - "CodeSolution", - (_message.Message, ), - { - "DESCRIPTOR": _CODESOLUTION, - "__module__": "spotify.login5.v3.challenges.code_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.challenges.CodeSolution) - }, -) -_sym_db.RegisterMessage(CodeSolution) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'spotify/login5/v3/challenges/code.proto\x12\x1cspotify.login5.v3.challenges\"\xbc\x01\n\rCodeChallenge\x12\x42\n\x06method\x18\x01 \x01(\x0e\x32\x32.spotify.login5.v3.challenges.CodeChallenge.Method\x12\x13\n\x0b\x63ode_length\x18\x02 \x01(\x05\x12\x12\n\nexpires_in\x18\x03 \x01(\x05\x12\x1e\n\x16\x63\x61nonical_phone_number\x18\x04 \x01(\t\"\x1e\n\x06Method\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03SMS\x10\x01\"\x1c\n\x0c\x43odeSolution\x12\x0c\n\x04\x63ode\x18\x01 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spotify.login5.v3.challenges.code_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.login5v3' + _globals['_CODECHALLENGE']._serialized_start=74 + _globals['_CODECHALLENGE']._serialized_end=262 + _globals['_CODECHALLENGE_METHOD']._serialized_start=232 + _globals['_CODECHALLENGE_METHOD']._serialized_end=262 + _globals['_CODESOLUTION']._serialized_start=264 + _globals['_CODESOLUTION']._serialized_end=292 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/spotify/login5/v3/challenges/Hashcash_pb2.py b/librespot/proto/spotify/login5/v3/challenges/Hashcash_pb2.py index d12b2a55..e845148d 100644 --- a/librespot/proto/spotify/login5/v3/challenges/Hashcash_pb2.py +++ b/librespot/proto/spotify/login5/v3/challenges/Hashcash_pb2.py @@ -1,176 +1,40 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: spotify/login5/v3/challenges/hashcash.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import \ - duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'spotify/login5/v3/challenges/hashcash.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="spotify/login5/v3/challenges/hashcash.proto", - package="spotify.login5.v3.challenges", - syntax="proto3", - serialized_options=b"\n\024com.spotify.login5v3", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n+spotify/login5/v3/challenges/hashcash.proto\x12\x1cspotify.login5.v3.challenges\x1a\x1egoogle/protobuf/duration.proto"3\n\x11HashcashChallenge\x12\x0e\n\x06prefix\x18\x01 \x01(\x0c\x12\x0e\n\x06length\x18\x02 \x01(\x05"O\n\x10HashcashSolution\x12\x0e\n\x06suffix\x18\x01 \x01(\x0c\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x16\n\x14\x63om.spotify.login5v3b\x06proto3', - dependencies=[ - google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, - ], -) -_HASHCASHCHALLENGE = _descriptor.Descriptor( - name="HashcashChallenge", - full_name="spotify.login5.v3.challenges.HashcashChallenge", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="prefix", - full_name="spotify.login5.v3.challenges.HashcashChallenge.prefix", - index=0, - number=1, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="length", - full_name="spotify.login5.v3.challenges.HashcashChallenge.length", - index=1, - number=2, - type=5, - cpp_type=1, - label=1, - has_default_value=False, - default_value=0, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=109, - serialized_end=160, -) +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -_HASHCASHSOLUTION = _descriptor.Descriptor( - name="HashcashSolution", - full_name="spotify.login5.v3.challenges.HashcashSolution", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="suffix", - full_name="spotify.login5.v3.challenges.HashcashSolution.suffix", - index=0, - number=1, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="duration", - full_name="spotify.login5.v3.challenges.HashcashSolution.duration", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=162, - serialized_end=241, -) -_HASHCASHSOLUTION.fields_by_name[ - "duration"].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -DESCRIPTOR.message_types_by_name["HashcashChallenge"] = _HASHCASHCHALLENGE -DESCRIPTOR.message_types_by_name["HashcashSolution"] = _HASHCASHSOLUTION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -HashcashChallenge = _reflection.GeneratedProtocolMessageType( - "HashcashChallenge", - (_message.Message, ), - { - "DESCRIPTOR": _HASHCASHCHALLENGE, - "__module__": "spotify.login5.v3.challenges.hashcash_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.challenges.HashcashChallenge) - }, -) -_sym_db.RegisterMessage(HashcashChallenge) - -HashcashSolution = _reflection.GeneratedProtocolMessageType( - "HashcashSolution", - (_message.Message, ), - { - "DESCRIPTOR": _HASHCASHSOLUTION, - "__module__": "spotify.login5.v3.challenges.hashcash_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.challenges.HashcashSolution) - }, -) -_sym_db.RegisterMessage(HashcashSolution) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+spotify/login5/v3/challenges/hashcash.proto\x12\x1cspotify.login5.v3.challenges\x1a\x1egoogle/protobuf/duration.proto\"3\n\x11HashcashChallenge\x12\x0e\n\x06prefix\x18\x01 \x01(\x0c\x12\x0e\n\x06length\x18\x02 \x01(\x05\"O\n\x10HashcashSolution\x12\x0e\n\x06suffix\x18\x01 \x01(\x0c\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x16\n\x14\x63om.spotify.login5v3b\x06proto3') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spotify.login5.v3.challenges.hashcash_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.login5v3' + _globals['_HASHCASHCHALLENGE']._serialized_start=109 + _globals['_HASHCASHCHALLENGE']._serialized_end=160 + _globals['_HASHCASHSOLUTION']._serialized_start=162 + _globals['_HASHCASHSOLUTION']._serialized_end=241 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/spotify/login5/v3/credentials/Credentials_pb2.py b/librespot/proto/spotify/login5/v3/credentials/Credentials_pb2.py index f141f66d..c4bd8db1 100644 --- a/librespot/proto/spotify/login5/v3/credentials/Credentials_pb2.py +++ b/librespot/proto/spotify/login5/v3/credentials/Credentials_pb2.py @@ -1,483 +1,47 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: spotify/login5/v3/credentials/credentials.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'spotify/login5/v3/credentials/credentials.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="spotify/login5/v3/credentials/credentials.proto", - package="spotify.login5.v3.credentials", - syntax="proto3", - serialized_options=b"\n\024com.spotify.login5v3", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n/spotify/login5/v3/credentials/credentials.proto\x12\x1dspotify.login5.v3.credentials"2\n\x10StoredCredential\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c"9\n\x08Password\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x0f\n\x07padding\x18\x03 \x01(\x0c";\n\x13\x46\x61\x63\x65\x62ookAccessToken\x12\x0e\n\x06\x66\x62_uid\x18\x01 \x01(\t\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x02 \x01(\t"\x1d\n\x0cOneTimeToken\x12\r\n\x05token\x18\x01 \x01(\t"|\n\x15ParentChildCredential\x12\x10\n\x08\x63hild_id\x18\x01 \x01(\t\x12Q\n\x18parent_stored_credential\x18\x02 \x01(\x0b\x32/.spotify.login5.v3.credentials.StoredCredential"S\n\x15\x41ppleSignInCredential\x12\x11\n\tauth_code\x18\x01 \x01(\t\x12\x14\n\x0credirect_uri\x18\x02 \x01(\t\x12\x11\n\tbundle_id\x18\x03 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3', -) - -_STOREDCREDENTIAL = _descriptor.Descriptor( - name="StoredCredential", - full_name="spotify.login5.v3.credentials.StoredCredential", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="username", - full_name="spotify.login5.v3.credentials.StoredCredential.username", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="data", - full_name="spotify.login5.v3.credentials.StoredCredential.data", - index=1, - number=2, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=82, - serialized_end=132, -) - -_PASSWORD = _descriptor.Descriptor( - name="Password", - full_name="spotify.login5.v3.credentials.Password", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="id", - full_name="spotify.login5.v3.credentials.Password.id", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="password", - full_name="spotify.login5.v3.credentials.Password.password", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="padding", - full_name="spotify.login5.v3.credentials.Password.padding", - index=2, - number=3, - type=12, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"", - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=134, - serialized_end=191, -) - -_FACEBOOKACCESSTOKEN = _descriptor.Descriptor( - name="FacebookAccessToken", - full_name="spotify.login5.v3.credentials.FacebookAccessToken", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="fb_uid", - full_name= - "spotify.login5.v3.credentials.FacebookAccessToken.fb_uid", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="access_token", - full_name= - "spotify.login5.v3.credentials.FacebookAccessToken.access_token", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=193, - serialized_end=252, -) - -_ONETIMETOKEN = _descriptor.Descriptor( - name="OneTimeToken", - full_name="spotify.login5.v3.credentials.OneTimeToken", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="token", - full_name="spotify.login5.v3.credentials.OneTimeToken.token", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=254, - serialized_end=283, -) - -_PARENTCHILDCREDENTIAL = _descriptor.Descriptor( - name="ParentChildCredential", - full_name="spotify.login5.v3.credentials.ParentChildCredential", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="child_id", - full_name= - "spotify.login5.v3.credentials.ParentChildCredential.child_id", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="parent_stored_credential", - full_name= - "spotify.login5.v3.credentials.ParentChildCredential.parent_stored_credential", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=285, - serialized_end=409, -) - -_APPLESIGNINCREDENTIAL = _descriptor.Descriptor( - name="AppleSignInCredential", - full_name="spotify.login5.v3.credentials.AppleSignInCredential", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="auth_code", - full_name= - "spotify.login5.v3.credentials.AppleSignInCredential.auth_code", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="redirect_uri", - full_name= - "spotify.login5.v3.credentials.AppleSignInCredential.redirect_uri", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="bundle_id", - full_name= - "spotify.login5.v3.credentials.AppleSignInCredential.bundle_id", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=411, - serialized_end=494, -) - -_PARENTCHILDCREDENTIAL.fields_by_name[ - "parent_stored_credential"].message_type = _STOREDCREDENTIAL -DESCRIPTOR.message_types_by_name["StoredCredential"] = _STOREDCREDENTIAL -DESCRIPTOR.message_types_by_name["Password"] = _PASSWORD -DESCRIPTOR.message_types_by_name["FacebookAccessToken"] = _FACEBOOKACCESSTOKEN -DESCRIPTOR.message_types_by_name["OneTimeToken"] = _ONETIMETOKEN -DESCRIPTOR.message_types_by_name[ - "ParentChildCredential"] = _PARENTCHILDCREDENTIAL -DESCRIPTOR.message_types_by_name[ - "AppleSignInCredential"] = _APPLESIGNINCREDENTIAL -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -StoredCredential = _reflection.GeneratedProtocolMessageType( - "StoredCredential", - (_message.Message, ), - { - "DESCRIPTOR": _STOREDCREDENTIAL, - "__module__": "spotify.login5.v3.credentials.credentials_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.credentials.StoredCredential) - }, -) -_sym_db.RegisterMessage(StoredCredential) -Password = _reflection.GeneratedProtocolMessageType( - "Password", - (_message.Message, ), - { - "DESCRIPTOR": _PASSWORD, - "__module__": "spotify.login5.v3.credentials.credentials_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.credentials.Password) - }, -) -_sym_db.RegisterMessage(Password) - -FacebookAccessToken = _reflection.GeneratedProtocolMessageType( - "FacebookAccessToken", - (_message.Message, ), - { - "DESCRIPTOR": _FACEBOOKACCESSTOKEN, - "__module__": "spotify.login5.v3.credentials.credentials_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.credentials.FacebookAccessToken) - }, -) -_sym_db.RegisterMessage(FacebookAccessToken) - -OneTimeToken = _reflection.GeneratedProtocolMessageType( - "OneTimeToken", - (_message.Message, ), - { - "DESCRIPTOR": _ONETIMETOKEN, - "__module__": "spotify.login5.v3.credentials.credentials_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.credentials.OneTimeToken) - }, -) -_sym_db.RegisterMessage(OneTimeToken) - -ParentChildCredential = _reflection.GeneratedProtocolMessageType( - "ParentChildCredential", - (_message.Message, ), - { - "DESCRIPTOR": _PARENTCHILDCREDENTIAL, - "__module__": "spotify.login5.v3.credentials.credentials_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.credentials.ParentChildCredential) - }, -) -_sym_db.RegisterMessage(ParentChildCredential) - -AppleSignInCredential = _reflection.GeneratedProtocolMessageType( - "AppleSignInCredential", - (_message.Message, ), - { - "DESCRIPTOR": _APPLESIGNINCREDENTIAL, - "__module__": "spotify.login5.v3.credentials.credentials_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.credentials.AppleSignInCredential) - }, -) -_sym_db.RegisterMessage(AppleSignInCredential) -DESCRIPTOR._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/spotify/login5/v3/credentials/credentials.proto\x12\x1dspotify.login5.v3.credentials\"2\n\x10StoredCredential\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\"9\n\x08Password\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x0f\n\x07padding\x18\x03 \x01(\x0c\";\n\x13\x46\x61\x63\x65\x62ookAccessToken\x12\x0e\n\x06\x66\x62_uid\x18\x01 \x01(\t\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x02 \x01(\t\"\x1d\n\x0cOneTimeToken\x12\r\n\x05token\x18\x01 \x01(\t\"|\n\x15ParentChildCredential\x12\x10\n\x08\x63hild_id\x18\x01 \x01(\t\x12Q\n\x18parent_stored_credential\x18\x02 \x01(\x0b\x32/.spotify.login5.v3.credentials.StoredCredential\"S\n\x15\x41ppleSignInCredential\x12\x11\n\tauth_code\x18\x01 \x01(\t\x12\x14\n\x0credirect_uri\x18\x02 \x01(\t\x12\x11\n\tbundle_id\x18\x03 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spotify.login5.v3.credentials.credentials_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.login5v3' + _globals['_STOREDCREDENTIAL']._serialized_start=82 + _globals['_STOREDCREDENTIAL']._serialized_end=132 + _globals['_PASSWORD']._serialized_start=134 + _globals['_PASSWORD']._serialized_end=191 + _globals['_FACEBOOKACCESSTOKEN']._serialized_start=193 + _globals['_FACEBOOKACCESSTOKEN']._serialized_end=252 + _globals['_ONETIMETOKEN']._serialized_start=254 + _globals['_ONETIMETOKEN']._serialized_end=283 + _globals['_PARENTCHILDCREDENTIAL']._serialized_start=285 + _globals['_PARENTCHILDCREDENTIAL']._serialized_end=409 + _globals['_APPLESIGNINCREDENTIAL']._serialized_start=411 + _globals['_APPLESIGNINCREDENTIAL']._serialized_end=494 # @@protoc_insertion_point(module_scope) diff --git a/librespot/proto/spotify/login5/v3/identifiers/Identifiers_pb2.py b/librespot/proto/spotify/login5/v3/identifiers/Identifiers_pb2.py index 42457c54..32f2ffc5 100644 --- a/librespot/proto/spotify/login5/v3/identifiers/Identifiers_pb2.py +++ b/librespot/proto/spotify/login5/v3/identifiers/Identifiers_pb2.py @@ -1,119 +1,37 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: spotify/login5/v3/identifiers/identifiers.proto +# Protobuf Python Version: 6.33.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database - +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 1, + '', + 'spotify/login5/v3/identifiers/identifiers.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor.FileDescriptor( - name="spotify/login5/v3/identifiers/identifiers.proto", - package="spotify.login5.v3.identifiers", - syntax="proto3", - serialized_options=b"\n\024com.spotify.login5v3", - create_key=_descriptor._internal_create_key, - serialized_pb= - b'\n/spotify/login5/v3/identifiers/identifiers.proto\x12\x1dspotify.login5.v3.identifiers"U\n\x0bPhoneNumber\x12\x0e\n\x06number\x18\x01 \x01(\t\x12\x18\n\x10iso_country_code\x18\x02 \x01(\t\x12\x1c\n\x14\x63ountry_calling_code\x18\x03 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3', -) -_PHONENUMBER = _descriptor.Descriptor( - name="PhoneNumber", - full_name="spotify.login5.v3.identifiers.PhoneNumber", - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name="number", - full_name="spotify.login5.v3.identifiers.PhoneNumber.number", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="iso_country_code", - full_name= - "spotify.login5.v3.identifiers.PhoneNumber.iso_country_code", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - _descriptor.FieldDescriptor( - name="country_calling_code", - full_name= - "spotify.login5.v3.identifiers.PhoneNumber.country_calling_code", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=82, - serialized_end=167, -) -DESCRIPTOR.message_types_by_name["PhoneNumber"] = _PHONENUMBER -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -PhoneNumber = _reflection.GeneratedProtocolMessageType( - "PhoneNumber", - (_message.Message, ), - { - "DESCRIPTOR": _PHONENUMBER, - "__module__": "spotify.login5.v3.identifiers.identifiers_pb2" - # @@protoc_insertion_point(class_scope:spotify.login5.v3.identifiers.PhoneNumber) - }, -) -_sym_db.RegisterMessage(PhoneNumber) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/spotify/login5/v3/identifiers/identifiers.proto\x12\x1dspotify.login5.v3.identifiers\"U\n\x0bPhoneNumber\x12\x0e\n\x06number\x18\x01 \x01(\t\x12\x18\n\x10iso_country_code\x18\x02 \x01(\t\x12\x1c\n\x14\x63ountry_calling_code\x18\x03 \x01(\tB\x16\n\x14\x63om.spotify.login5v3b\x06proto3') -DESCRIPTOR._options = None +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spotify.login5.v3.identifiers.identifiers_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.spotify.login5v3' + _globals['_PHONENUMBER']._serialized_start=82 + _globals['_PHONENUMBER']._serialized_end=167 # @@protoc_insertion_point(module_scope) diff --git a/requirements.txt b/requirements.txt index d34886ec..6c3c9480 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ defusedxml>=0.7.1 -protobuf==3.20.1 -pycryptodomex>=3.22.0 +protobuf==6.33.4 +pycryptodomex>=3.23.0 pyogg>=0.6.14a.1 -requests>=2.32.3 -websocket-client>=1.8.0 +requests +websocket-client>=1.9.0 zeroconf>=0.146.4