Restyled by autopep8

This commit is contained in:
Restyled.io 2021-05-22 01:26:14 +00:00
parent 8f920a783b
commit 58e8ba2347
22 changed files with 126 additions and 224 deletions

View File

@ -12,18 +12,18 @@ class AudioQuality(enum.Enum):
@staticmethod
def get_quality(audio_format: AudioFile.Format) -> AudioQuality:
if audio_format == AudioFile.MP3_96 or \
audio_format == AudioFile.OGG_VORBIS_96 or \
audio_format == AudioFile.AAC_24_NORM:
audio_format == AudioFile.OGG_VORBIS_96 or \
audio_format == AudioFile.AAC_24_NORM:
return AudioQuality.NORMAL
if audio_format == AudioFile.MP3_160 or \
audio_format == AudioFile.MP3_160_ENC or \
audio_format == AudioFile.OGG_VORBIS_160 or \
audio_format == AudioFile.AAC_24:
audio_format == AudioFile.MP3_160_ENC or \
audio_format == AudioFile.OGG_VORBIS_160 or \
audio_format == AudioFile.AAC_24:
return AudioQuality.HIGH
if audio_format == AudioFile.MP3_320 or \
audio_format == AudioFile.MP3_256 or \
audio_format == AudioFile.OGG_VORBIS_320 or \
audio_format == AudioFile.AAC_48:
audio_format == AudioFile.MP3_256 or \
audio_format == AudioFile.OGG_VORBIS_320 or \
audio_format == AudioFile.AAC_48:
return AudioQuality.VERY_HIGH
raise RuntimeError("Unknown format: {}".format(format))

View File

@ -2,6 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: canvaz.proto
"""Generated protocol buffer code."""
import CanvazMeta 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
@ -10,7 +11,6 @@ from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
import CanvazMeta as canvaz__meta__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='canvaz.proto',
@ -18,8 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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',
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,
])
@ -145,8 +144,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='file_id',
full_name=
'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.file_id',
full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.file_id',
index=2,
number=3,
type=9,
@ -164,8 +162,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='type',
full_name=
'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.type',
full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.type',
index=3,
number=4,
type=14,
@ -183,8 +180,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='entity_uri',
full_name=
'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.entity_uri',
full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.entity_uri',
index=4,
number=5,
type=9,
@ -202,8 +198,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='artist',
full_name=
'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.artist',
full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.artist',
index=5,
number=6,
type=11,
@ -221,8 +216,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='explicit',
full_name=
'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.explicit',
full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.explicit',
index=6,
number=7,
type=8,
@ -240,8 +234,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='uploaded_by',
full_name=
'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.uploaded_by',
full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.uploaded_by',
index=7,
number=8,
type=9,
@ -259,8 +252,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='etag',
full_name=
'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.etag',
full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.etag',
index=8,
number=9,
type=9,
@ -278,8 +270,7 @@ _ENTITYCANVAZRESPONSE_CANVAZ = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='canvas_uri',
full_name=
'com.spotify.canvazcache.EntityCanvazResponse.Canvaz.canvas_uri',
full_name='com.spotify.canvazcache.EntityCanvazResponse.Canvaz.canvas_uri',
index=9,
number=11,
type=9,
@ -336,8 +327,7 @@ _ENTITYCANVAZRESPONSE = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ttl_in_seconds',
full_name=
'com.spotify.canvazcache.EntityCanvazResponse.ttl_in_seconds',
full_name='com.spotify.canvazcache.EntityCanvazResponse.ttl_in_seconds',
index=1,
number=2,
type=3,
@ -378,8 +368,7 @@ _ENTITYCANVAZREQUEST_ENTITY = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='entity_uri',
full_name=
'com.spotify.canvazcache.EntityCanvazRequest.Entity.entity_uri',
full_name='com.spotify.canvazcache.EntityCanvazRequest.Entity.entity_uri',
index=0,
number=1,
type=9,

View File

@ -17,8 +17,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(

View File

@ -2,6 +2,8 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: context.proto
"""Generated protocol buffer code."""
import Restrictions as restrictions__pb2
import ContextPage as context__page__pb2
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
@ -10,8 +12,6 @@ from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
import ContextPage as context__page__pb2
import Restrictions as restrictions__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='context.proto',
@ -19,8 +19,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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',
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,

View File

@ -2,6 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: context_page.proto
"""Generated protocol buffer code."""
import ContextTrack 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
@ -10,7 +11,6 @@ from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
import ContextTrack as context__track__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='context_page.proto',
@ -18,8 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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',
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,
])

View File

@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(
@ -30,8 +29,7 @@ _CONTEXTPLAYEROPTIONS = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='shuffling_context',
full_name=
'spotify.player.proto.ContextPlayerOptions.shuffling_context',
full_name='spotify.player.proto.ContextPlayerOptions.shuffling_context',
index=0,
number=1,
type=8,
@ -49,8 +47,7 @@ _CONTEXTPLAYEROPTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='repeating_context',
full_name=
'spotify.player.proto.ContextPlayerOptions.repeating_context',
full_name='spotify.player.proto.ContextPlayerOptions.repeating_context',
index=1,
number=2,
type=8,
@ -68,8 +65,7 @@ _CONTEXTPLAYEROPTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='repeating_track',
full_name=
'spotify.player.proto.ContextPlayerOptions.repeating_track',
full_name='spotify.player.proto.ContextPlayerOptions.repeating_track',
index=2,
number=3,
type=8,
@ -108,8 +104,7 @@ _CONTEXTPLAYEROPTIONOVERRIDES = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='shuffling_context',
full_name=
'spotify.player.proto.ContextPlayerOptionOverrides.shuffling_context',
full_name='spotify.player.proto.ContextPlayerOptionOverrides.shuffling_context',
index=0,
number=1,
type=8,
@ -127,8 +122,7 @@ _CONTEXTPLAYEROPTIONOVERRIDES = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='repeating_context',
full_name=
'spotify.player.proto.ContextPlayerOptionOverrides.repeating_context',
full_name='spotify.player.proto.ContextPlayerOptionOverrides.repeating_context',
index=1,
number=2,
type=8,
@ -146,8 +140,7 @@ _CONTEXTPLAYEROPTIONOVERRIDES = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='repeating_track',
full_name=
'spotify.player.proto.ContextPlayerOptionOverrides.repeating_track',
full_name='spotify.player.proto.ContextPlayerOptionOverrides.repeating_track',
index=2,
number=3,
type=8,

View File

@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(

View File

@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(

View File

@ -2,6 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: playback.proto
"""Generated protocol buffer code."""
import ContextTrack 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
@ -10,7 +11,6 @@ from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
import ContextTrack as context__track__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='playback.proto',
@ -18,8 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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',
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,
])
@ -52,8 +51,7 @@ _PLAYBACK = _descriptor.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',
full_name='spotify.player.proto.transfer.Playback.position_as_of_timestamp',
index=1,
number=2,
type=5,

File diff suppressed because one or more lines are too long

View File

@ -17,8 +17,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(
@ -96,8 +95,7 @@ _TAKEDOWNREQUEST = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='abuse_report_state',
full_name=
'spotify_playlist_annotate3.proto.TakedownRequest.abuse_report_state',
full_name='spotify_playlist_annotate3.proto.TakedownRequest.abuse_report_state',
index=0,
number=1,
type=14,
@ -136,8 +134,7 @@ _ANNOTATEREQUEST = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='description',
full_name=
'spotify_playlist_annotate3.proto.AnnotateRequest.description',
full_name='spotify_playlist_annotate3.proto.AnnotateRequest.description',
index=0,
number=1,
type=9,
@ -155,8 +152,7 @@ _ANNOTATEREQUEST = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='image_uri',
full_name=
'spotify_playlist_annotate3.proto.AnnotateRequest.image_uri',
full_name='spotify_playlist_annotate3.proto.AnnotateRequest.image_uri',
index=1,
number=2,
type=9,
@ -195,8 +191,7 @@ _TRANSCODEDPICTURE = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='target_name',
full_name=
'spotify_playlist_annotate3.proto.TranscodedPicture.target_name',
full_name='spotify_playlist_annotate3.proto.TranscodedPicture.target_name',
index=0,
number=1,
type=9,
@ -253,8 +248,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='description',
full_name=
'spotify_playlist_annotate3.proto.PlaylistAnnotation.description',
full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.description',
index=0,
number=1,
type=9,
@ -272,8 +266,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='picture',
full_name=
'spotify_playlist_annotate3.proto.PlaylistAnnotation.picture',
full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.picture',
index=1,
number=2,
type=9,
@ -291,8 +284,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='deprecated_render_features',
full_name=
'spotify_playlist_annotate3.proto.PlaylistAnnotation.deprecated_render_features',
full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.deprecated_render_features',
index=2,
number=3,
type=14,
@ -310,8 +302,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='transcoded_picture',
full_name=
'spotify_playlist_annotate3.proto.PlaylistAnnotation.transcoded_picture',
full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.transcoded_picture',
index=3,
number=4,
type=11,
@ -329,8 +320,7 @@ _PLAYLISTANNOTATION = _descriptor.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',
full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.is_abuse_reporting_enabled',
index=4,
number=6,
type=8,
@ -348,8 +338,7 @@ _PLAYLISTANNOTATION = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='abuse_report_state',
full_name=
'spotify_playlist_annotate3.proto.PlaylistAnnotation.abuse_report_state',
full_name='spotify_playlist_annotate3.proto.PlaylistAnnotation.abuse_report_state',
index=5,
number=7,
type=14,

View File

@ -2,6 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: queue.proto
"""Generated protocol buffer code."""
import ContextTrack 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
@ -10,7 +11,6 @@ from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
import ContextTrack as context__track__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='queue.proto',
@ -18,8 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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',
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,
])

View File

@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(
@ -30,8 +29,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='disallow_pausing_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_pausing_reasons',
full_name='spotify.player.proto.Restrictions.disallow_pausing_reasons',
index=0,
number=1,
type=9,
@ -49,8 +47,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_resuming_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_resuming_reasons',
full_name='spotify.player.proto.Restrictions.disallow_resuming_reasons',
index=1,
number=2,
type=9,
@ -68,8 +65,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_seeking_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_seeking_reasons',
full_name='spotify.player.proto.Restrictions.disallow_seeking_reasons',
index=2,
number=3,
type=9,
@ -87,8 +83,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_peeking_prev_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_peeking_prev_reasons',
full_name='spotify.player.proto.Restrictions.disallow_peeking_prev_reasons',
index=3,
number=4,
type=9,
@ -106,8 +101,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_peeking_next_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_peeking_next_reasons',
full_name='spotify.player.proto.Restrictions.disallow_peeking_next_reasons',
index=4,
number=5,
type=9,
@ -125,8 +119,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_skipping_prev_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_skipping_prev_reasons',
full_name='spotify.player.proto.Restrictions.disallow_skipping_prev_reasons',
index=5,
number=6,
type=9,
@ -144,8 +137,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_skipping_next_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_skipping_next_reasons',
full_name='spotify.player.proto.Restrictions.disallow_skipping_next_reasons',
index=6,
number=7,
type=9,
@ -163,8 +155,7 @@ _RESTRICTIONS = _descriptor.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',
full_name='spotify.player.proto.Restrictions.disallow_toggling_repeat_context_reasons',
index=7,
number=8,
type=9,
@ -182,8 +173,7 @@ _RESTRICTIONS = _descriptor.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',
full_name='spotify.player.proto.Restrictions.disallow_toggling_repeat_track_reasons',
index=8,
number=9,
type=9,
@ -201,8 +191,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_toggling_shuffle_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_toggling_shuffle_reasons',
full_name='spotify.player.proto.Restrictions.disallow_toggling_shuffle_reasons',
index=9,
number=10,
type=9,
@ -220,8 +209,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_set_queue_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_set_queue_reasons',
full_name='spotify.player.proto.Restrictions.disallow_set_queue_reasons',
index=10,
number=11,
type=9,
@ -239,8 +227,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_interrupting_playback_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_interrupting_playback_reasons',
full_name='spotify.player.proto.Restrictions.disallow_interrupting_playback_reasons',
index=11,
number=12,
type=9,
@ -258,8 +245,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_transferring_playback_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_transferring_playback_reasons',
full_name='spotify.player.proto.Restrictions.disallow_transferring_playback_reasons',
index=12,
number=13,
type=9,
@ -277,8 +263,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_remote_control_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_remote_control_reasons',
full_name='spotify.player.proto.Restrictions.disallow_remote_control_reasons',
index=13,
number=14,
type=9,
@ -296,8 +281,7 @@ _RESTRICTIONS = _descriptor.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',
full_name='spotify.player.proto.Restrictions.disallow_inserting_into_next_tracks_reasons',
index=14,
number=15,
type=9,
@ -315,8 +299,7 @@ _RESTRICTIONS = _descriptor.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',
full_name='spotify.player.proto.Restrictions.disallow_inserting_into_context_tracks_reasons',
index=15,
number=16,
type=9,
@ -334,8 +317,7 @@ _RESTRICTIONS = _descriptor.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',
full_name='spotify.player.proto.Restrictions.disallow_reordering_in_next_tracks_reasons',
index=16,
number=17,
type=9,
@ -353,8 +335,7 @@ _RESTRICTIONS = _descriptor.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',
full_name='spotify.player.proto.Restrictions.disallow_reordering_in_context_tracks_reasons',
index=17,
number=18,
type=9,
@ -372,8 +353,7 @@ _RESTRICTIONS = _descriptor.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',
full_name='spotify.player.proto.Restrictions.disallow_removing_from_next_tracks_reasons',
index=18,
number=19,
type=9,
@ -391,8 +371,7 @@ _RESTRICTIONS = _descriptor.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',
full_name='spotify.player.proto.Restrictions.disallow_removing_from_context_tracks_reasons',
index=19,
number=20,
type=9,
@ -410,8 +389,7 @@ _RESTRICTIONS = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disallow_updating_context_reasons',
full_name=
'spotify.player.proto.Restrictions.disallow_updating_context_reasons',
full_name='spotify.player.proto.Restrictions.disallow_updating_context_reasons',
index=20,
number=21,
type=9,

View File

@ -2,6 +2,9 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: session.proto
"""Generated protocol buffer code."""
import PlayOrigin as play__origin__pb2
import ContextPlayerOptions as context__player__options__pb2
import Context as context__pb2
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
@ -10,9 +13,6 @@ from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
import Context as context__pb2
import ContextPlayerOptions as context__player__options__pb2
import PlayOrigin as play__origin__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='session.proto',
@ -20,8 +20,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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',
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,

View File

@ -2,6 +2,10 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: transfer_state.proto
"""Generated protocol buffer code."""
import Queue as queue__pb2
import Session as session__pb2
import Playback as playback__pb2
import ContextPlayerOptions as context__player__options__pb2
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
@ -10,10 +14,6 @@ from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
import ContextPlayerOptions as context__player__options__pb2
import Playback as playback__pb2
import Session as session__pb2
import Queue as queue__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='transfer_state.proto',
@ -21,8 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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',
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,
@ -76,8 +75,7 @@ _TRANSFERSTATE = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='current_session',
full_name=
'spotify.player.proto.transfer.TransferState.current_session',
full_name='spotify.player.proto.transfer.TransferState.current_session',
index=2,
number=3,
type=11,
@ -113,8 +111,7 @@ _TRANSFERSTATE = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='creation_timestamp',
full_name=
'spotify.player.proto.transfer.TransferState.creation_timestamp',
full_name='spotify.player.proto.transfer.TransferState.creation_timestamp',
index=4,
number=5,
type=3,

View File

@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(

View File

@ -2,6 +2,12 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: spotify/login5/v3/login5.proto
"""Generated protocol buffer code."""
from spotify.login5.v3.identifiers import identifiers_pb2 as spotify_dot_login5_dot_v3_dot_identifiers_dot_identifiers__pb2
from spotify.login5.v3.credentials import credentials_pb2 as spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2
from spotify.login5.v3.challenges import hashcash_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_hashcash__pb2
from spotify.login5.v3.challenges import code_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_code__pb2
from spotify.login5.v3 import user_info_pb2 as spotify_dot_login5_dot_v3_dot_user__info__pb2
from spotify.login5.v3 import client_info_pb2 as spotify_dot_login5_dot_v3_dot_client__info__pb2
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
@ -11,12 +17,6 @@ from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
from spotify.login5.v3 import client_info_pb2 as spotify_dot_login5_dot_v3_dot_client__info__pb2
from spotify.login5.v3 import user_info_pb2 as spotify_dot_login5_dot_v3_dot_user__info__pb2
from spotify.login5.v3.challenges import code_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_code__pb2
from spotify.login5.v3.challenges import hashcash_pb2 as spotify_dot_login5_dot_v3_dot_challenges_dot_hashcash__pb2
from spotify.login5.v3.credentials import credentials_pb2 as spotify_dot_login5_dot_v3_dot_credentials_dot_credentials__pb2
from spotify.login5.v3.identifiers import identifiers_pb2 as spotify_dot_login5_dot_v3_dot_identifiers_dot_identifiers__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='spotify/login5/v3/login5.proto',
@ -24,8 +24,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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',
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,

View File

@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(

View File

@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(
@ -113,8 +112,7 @@ _CODECHALLENGE = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='canonical_phone_number',
full_name=
'spotify.login5.v3.challenges.CodeChallenge.canonical_phone_number',
full_name='spotify.login5.v3.challenges.CodeChallenge.canonical_phone_number',
index=3,
number=4,
type=9,

View File

@ -2,6 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: spotify/login5/v3/challenges/hashcash.proto
"""Generated protocol buffer code."""
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
@ -10,7 +11,6 @@ from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='spotify/login5/v3/challenges/hashcash.proto',
@ -18,8 +18,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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',
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,
])

View File

@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(
@ -162,8 +161,7 @@ _FACEBOOKACCESSTOKEN = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='fb_uid',
full_name=
'spotify.login5.v3.credentials.FacebookAccessToken.fb_uid',
full_name='spotify.login5.v3.credentials.FacebookAccessToken.fb_uid',
index=0,
number=1,
type=9,
@ -181,8 +179,7 @@ _FACEBOOKACCESSTOKEN = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='access_token',
full_name=
'spotify.login5.v3.credentials.FacebookAccessToken.access_token',
full_name='spotify.login5.v3.credentials.FacebookAccessToken.access_token',
index=1,
number=2,
type=9,
@ -260,8 +257,7 @@ _PARENTCHILDCREDENTIAL = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='child_id',
full_name=
'spotify.login5.v3.credentials.ParentChildCredential.child_id',
full_name='spotify.login5.v3.credentials.ParentChildCredential.child_id',
index=0,
number=1,
type=9,
@ -279,8 +275,7 @@ _PARENTCHILDCREDENTIAL = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='parent_stored_credential',
full_name=
'spotify.login5.v3.credentials.ParentChildCredential.parent_stored_credential',
full_name='spotify.login5.v3.credentials.ParentChildCredential.parent_stored_credential',
index=1,
number=2,
type=11,
@ -319,8 +314,7 @@ _APPLESIGNINCREDENTIAL = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='auth_code',
full_name=
'spotify.login5.v3.credentials.AppleSignInCredential.auth_code',
full_name='spotify.login5.v3.credentials.AppleSignInCredential.auth_code',
index=0,
number=1,
type=9,
@ -338,8 +332,7 @@ _APPLESIGNINCREDENTIAL = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='redirect_uri',
full_name=
'spotify.login5.v3.credentials.AppleSignInCredential.redirect_uri',
full_name='spotify.login5.v3.credentials.AppleSignInCredential.redirect_uri',
index=1,
number=2,
type=9,
@ -357,8 +350,7 @@ _APPLESIGNINCREDENTIAL = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='bundle_id',
full_name=
'spotify.login5.v3.credentials.AppleSignInCredential.bundle_id',
full_name='spotify.login5.v3.credentials.AppleSignInCredential.bundle_id',
index=2,
number=3,
type=9,

View File

@ -16,8 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
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'
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(
@ -48,8 +47,7 @@ _PHONENUMBER = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='iso_country_code',
full_name=
'spotify.login5.v3.identifiers.PhoneNumber.iso_country_code',
full_name='spotify.login5.v3.identifiers.PhoneNumber.iso_country_code',
index=1,
number=2,
type=9,
@ -67,8 +65,7 @@ _PHONENUMBER = _descriptor.Descriptor(
create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='country_calling_code',
full_name=
'spotify.login5.v3.identifiers.PhoneNumber.country_calling_code',
full_name='spotify.login5.v3.identifiers.PhoneNumber.country_calling_code',
index=2,
number=3,
type=9,