mirror of
https://github.com/kokarare1212/librespot-python.git
synced 2024-08-22 15:33:22 +02:00
626 lines
20 KiB
Python
626 lines
20 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: mercury.proto
|
|
"""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 symbol_database as _symbol_database
|
|
# @@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
|
|
# @@protoc_insertion_point(module_scope)
|