-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
ProtocolMessage_pb2.py
272 lines (257 loc) · 11.6 KB
/
ProtocolMessage_pb2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pyatv/mrp/protobuf/ProtocolMessage.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
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='pyatv/mrp/protobuf/ProtocolMessage.proto',
package='',
syntax='proto2',
serialized_options=None,
serialized_pb=_b('\n(pyatv/mrp/protobuf/ProtocolMessage.proto\"\xe9\x0b\n\x0fProtocolMessage\x12#\n\x04type\x18\x01 \x01(\x0e\x32\x15.ProtocolMessage.Type\x12\x12\n\nidentifier\x18\x02 \x01(\t\x12\x10\n\x08priority\x18\x04 \x01(\x05\x12\x11\n\ttimestamp\x18\x05 \x01(\x04\"\xed\n\n\x04Type\x12\x18\n\x14SEND_COMMAND_MESSAGE\x10\x01\x12\x1f\n\x1bSEND_COMMAND_RESULT_MESSAGE\x10\x02\x12\x15\n\x11GET_STATE_MESSAGE\x10\x03\x12\x15\n\x11SET_STATE_MESSAGE\x10\x04\x12\x17\n\x13SET_ARTWORK_MESSAGE\x10\x05\x12\x1f\n\x1bREGISTER_HID_DEVICE_MESSAGE\x10\x06\x12&\n\"REGISTER_HID_DEVICE_RESULT_MESSAGE\x10\x07\x12\x1a\n\x16SEND_HID_EVENT_MESSAGE\x10\x08\x12$\n SEND_VIRTUAL_TOUCH_EVENT_MESSAGE\x10\n\x12\x18\n\x14NOTIFICATION_MESSAGE\x10\x0b\x12.\n*CONTENT_ITEMS_CHANGED_NOTIFICATION_MESSAGE\x10\x0c\x12\x17\n\x13\x44\x45VICE_INFO_MESSAGE\x10\x0f\x12!\n\x1d\x43LIENT_UPDATES_CONFIG_MESSAGE\x10\x10\x12\'\n#VOLUME_CONTROL_AVAILABILITY_MESSAGE\x10\x11\x12\x1b\n\x17GAME_CONTROLLER_MESSAGE\x10\x12\x12$\n REGISTER_GAME_CONTROLLER_MESSAGE\x10\x13\x12-\n)REGISTER_GAME_CONTROLLER_RESPONSE_MESSAGE\x10\x14\x12&\n\"UNREGISTER_GAME_CONTROLLER_MESSAGE\x10\x15\x12/\n+REGISTER_FOR_GAME_CONTROLLER_EVENTS_MESSAGE\x10\x16\x12\x14\n\x10KEYBOARD_MESSAGE\x10\x17\x12 \n\x1cGET_KEYBOARD_SESSION_MESSAGE\x10\x18\x12\x16\n\x12TEXT_INPUT_MESSAGE\x10\x19\x12#\n\x1fGET_VOICE_INPUT_DEVICES_MESSAGE\x10\x1a\x12,\n(GET_VOICE_INPUT_DEVICES_RESPONSE_MESSAGE\x10\x1b\x12\'\n#REGISTER_VOICE_INPUT_DEVICE_MESSAGE\x10\x1c\x12\x30\n,REGISTER_VOICE_INPUT_DEVICE_RESPONSE_MESSAGE\x10\x1d\x12\x1f\n\x1bSET_RECORDING_STATE_MESSAGE\x10\x1e\x12\x1c\n\x18SEND_VOICE_INPUT_MESSAGE\x10\x1f\x12\"\n\x1ePLAYBACK_QUEUE_REQUEST_MESSAGE\x10 \x12\x17\n\x13TRANSACTION_MESSAGE\x10!\x12\x1a\n\x16\x43RYPTO_PAIRING_MESSAGE\x10\"\x12&\n\"GAME_CONTROLLER_PROPERTIES_MESSAGE\x10#\x12\x1b\n\x17SET_READY_STATE_MESSAGE\x10$\x12\x1e\n\x1a\x44\x45VICE_INFO_UPDATE_MESSAGE\x10%\x12 \n\x1cSET_CONNECTION_STATE_MESSAGE\x10&\x12\x1b\n\x17SET_HILITE_MODE_MESSAGE\x10(\x12\x17\n\x13WAKE_DEVICE_MESSAGE\x10)\x12+\n\'SEND_PACKED_VIRTUAL_TOUCH_EVENT_MESSAGE\x10+\x12\"\n\x1eSET_NOW_PLAYING_CLIENT_MESSAGE\x10.\x12\x19\n\x15UPDATE_CLIENT_MESSAGE\x10\x37\x12\x1f\n\x1bUPDATE_CONTENT_ITEM_MESSAGE\x10\x38*\x08\x08\x06\x10\x80\x80\x80\x80\x02')
)
_PROTOCOLMESSAGE_TYPE = _descriptor.EnumDescriptor(
name='Type',
full_name='ProtocolMessage.Type',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='SEND_COMMAND_MESSAGE', index=0, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SEND_COMMAND_RESULT_MESSAGE', index=1, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='GET_STATE_MESSAGE', index=2, number=3,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SET_STATE_MESSAGE', index=3, number=4,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SET_ARTWORK_MESSAGE', index=4, number=5,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='REGISTER_HID_DEVICE_MESSAGE', index=5, number=6,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='REGISTER_HID_DEVICE_RESULT_MESSAGE', index=6, number=7,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SEND_HID_EVENT_MESSAGE', index=7, number=8,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SEND_VIRTUAL_TOUCH_EVENT_MESSAGE', index=8, number=10,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='NOTIFICATION_MESSAGE', index=9, number=11,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='CONTENT_ITEMS_CHANGED_NOTIFICATION_MESSAGE', index=10, number=12,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='DEVICE_INFO_MESSAGE', index=11, number=15,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='CLIENT_UPDATES_CONFIG_MESSAGE', index=12, number=16,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='VOLUME_CONTROL_AVAILABILITY_MESSAGE', index=13, number=17,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='GAME_CONTROLLER_MESSAGE', index=14, number=18,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='REGISTER_GAME_CONTROLLER_MESSAGE', index=15, number=19,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='REGISTER_GAME_CONTROLLER_RESPONSE_MESSAGE', index=16, number=20,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='UNREGISTER_GAME_CONTROLLER_MESSAGE', index=17, number=21,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='REGISTER_FOR_GAME_CONTROLLER_EVENTS_MESSAGE', index=18, number=22,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='KEYBOARD_MESSAGE', index=19, number=23,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='GET_KEYBOARD_SESSION_MESSAGE', index=20, number=24,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='TEXT_INPUT_MESSAGE', index=21, number=25,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='GET_VOICE_INPUT_DEVICES_MESSAGE', index=22, number=26,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='GET_VOICE_INPUT_DEVICES_RESPONSE_MESSAGE', index=23, number=27,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='REGISTER_VOICE_INPUT_DEVICE_MESSAGE', index=24, number=28,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='REGISTER_VOICE_INPUT_DEVICE_RESPONSE_MESSAGE', index=25, number=29,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SET_RECORDING_STATE_MESSAGE', index=26, number=30,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SEND_VOICE_INPUT_MESSAGE', index=27, number=31,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='PLAYBACK_QUEUE_REQUEST_MESSAGE', index=28, number=32,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='TRANSACTION_MESSAGE', index=29, number=33,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='CRYPTO_PAIRING_MESSAGE', index=30, number=34,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='GAME_CONTROLLER_PROPERTIES_MESSAGE', index=31, number=35,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SET_READY_STATE_MESSAGE', index=32, number=36,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='DEVICE_INFO_UPDATE_MESSAGE', index=33, number=37,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SET_CONNECTION_STATE_MESSAGE', index=34, number=38,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SET_HILITE_MODE_MESSAGE', index=35, number=40,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='WAKE_DEVICE_MESSAGE', index=36, number=41,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SEND_PACKED_VIRTUAL_TOUCH_EVENT_MESSAGE', index=37, number=43,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SET_NOW_PLAYING_CLIENT_MESSAGE', index=38, number=46,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='UPDATE_CLIENT_MESSAGE', index=39, number=55,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='UPDATE_CONTENT_ITEM_MESSAGE', index=40, number=56,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=159,
serialized_end=1548,
)
_sym_db.RegisterEnumDescriptor(_PROTOCOLMESSAGE_TYPE)
_PROTOCOLMESSAGE = _descriptor.Descriptor(
name='ProtocolMessage',
full_name='ProtocolMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='ProtocolMessage.type', index=0,
number=1, 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),
_descriptor.FieldDescriptor(
name='identifier', full_name='ProtocolMessage.identifier', 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),
_descriptor.FieldDescriptor(
name='priority', full_name='ProtocolMessage.priority', index=2,
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),
_descriptor.FieldDescriptor(
name='timestamp', full_name='ProtocolMessage.timestamp', index=3,
number=5, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
_PROTOCOLMESSAGE_TYPE,
],
serialized_options=None,
is_extendable=True,
syntax='proto2',
extension_ranges=[(6, 536870912), ],
oneofs=[
],
serialized_start=45,
serialized_end=1558,
)
_PROTOCOLMESSAGE.fields_by_name['type'].enum_type = _PROTOCOLMESSAGE_TYPE
_PROTOCOLMESSAGE_TYPE.containing_type = _PROTOCOLMESSAGE
DESCRIPTOR.message_types_by_name['ProtocolMessage'] = _PROTOCOLMESSAGE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
ProtocolMessage = _reflection.GeneratedProtocolMessageType('ProtocolMessage', (_message.Message,), {
'DESCRIPTOR' : _PROTOCOLMESSAGE,
'__module__' : 'pyatv.mrp.protobuf.ProtocolMessage_pb2'
# @@protoc_insertion_point(class_scope:ProtocolMessage)
})
_sym_db.RegisterMessage(ProtocolMessage)
# @@protoc_insertion_point(module_scope)