-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
ProtocolMessage_pb2.pyi
143 lines (136 loc) · 8.64 KB
/
ProtocolMessage_pb2.pyi
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
# @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,
)
from google.protobuf.message import (
Message as google___protobuf___message___Message,
)
from typing import (
List as typing___List,
Optional as typing___Optional,
Text as typing___Text,
Tuple as typing___Tuple,
cast as typing___cast,
)
from typing_extensions import (
Literal as typing_extensions___Literal,
)
class ProtocolMessage(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
class Type(int):
DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...
@classmethod
def Name(cls, number: int) -> str: ...
@classmethod
def Value(cls, name: str) -> ProtocolMessage.Type: ...
@classmethod
def keys(cls) -> typing___List[str]: ...
@classmethod
def values(cls) -> typing___List[ProtocolMessage.Type]: ...
@classmethod
def items(cls) -> typing___List[typing___Tuple[str, ProtocolMessage.Type]]: ...
SEND_COMMAND_MESSAGE = typing___cast(ProtocolMessage.Type, 1)
SEND_COMMAND_RESULT_MESSAGE = typing___cast(ProtocolMessage.Type, 2)
GET_STATE_MESSAGE = typing___cast(ProtocolMessage.Type, 3)
SET_STATE_MESSAGE = typing___cast(ProtocolMessage.Type, 4)
SET_ARTWORK_MESSAGE = typing___cast(ProtocolMessage.Type, 5)
REGISTER_HID_DEVICE_MESSAGE = typing___cast(ProtocolMessage.Type, 6)
REGISTER_HID_DEVICE_RESULT_MESSAGE = typing___cast(ProtocolMessage.Type, 7)
SEND_HID_EVENT_MESSAGE = typing___cast(ProtocolMessage.Type, 8)
SEND_VIRTUAL_TOUCH_EVENT_MESSAGE = typing___cast(ProtocolMessage.Type, 10)
NOTIFICATION_MESSAGE = typing___cast(ProtocolMessage.Type, 11)
CONTENT_ITEMS_CHANGED_NOTIFICATION_MESSAGE = typing___cast(ProtocolMessage.Type, 12)
DEVICE_INFO_MESSAGE = typing___cast(ProtocolMessage.Type, 15)
CLIENT_UPDATES_CONFIG_MESSAGE = typing___cast(ProtocolMessage.Type, 16)
VOLUME_CONTROL_AVAILABILITY_MESSAGE = typing___cast(ProtocolMessage.Type, 17)
GAME_CONTROLLER_MESSAGE = typing___cast(ProtocolMessage.Type, 18)
REGISTER_GAME_CONTROLLER_MESSAGE = typing___cast(ProtocolMessage.Type, 19)
REGISTER_GAME_CONTROLLER_RESPONSE_MESSAGE = typing___cast(ProtocolMessage.Type, 20)
UNREGISTER_GAME_CONTROLLER_MESSAGE = typing___cast(ProtocolMessage.Type, 21)
REGISTER_FOR_GAME_CONTROLLER_EVENTS_MESSAGE = typing___cast(ProtocolMessage.Type, 22)
KEYBOARD_MESSAGE = typing___cast(ProtocolMessage.Type, 23)
GET_KEYBOARD_SESSION_MESSAGE = typing___cast(ProtocolMessage.Type, 24)
TEXT_INPUT_MESSAGE = typing___cast(ProtocolMessage.Type, 25)
GET_VOICE_INPUT_DEVICES_MESSAGE = typing___cast(ProtocolMessage.Type, 26)
GET_VOICE_INPUT_DEVICES_RESPONSE_MESSAGE = typing___cast(ProtocolMessage.Type, 27)
REGISTER_VOICE_INPUT_DEVICE_MESSAGE = typing___cast(ProtocolMessage.Type, 28)
REGISTER_VOICE_INPUT_DEVICE_RESPONSE_MESSAGE = typing___cast(ProtocolMessage.Type, 29)
SET_RECORDING_STATE_MESSAGE = typing___cast(ProtocolMessage.Type, 30)
SEND_VOICE_INPUT_MESSAGE = typing___cast(ProtocolMessage.Type, 31)
PLAYBACK_QUEUE_REQUEST_MESSAGE = typing___cast(ProtocolMessage.Type, 32)
TRANSACTION_MESSAGE = typing___cast(ProtocolMessage.Type, 33)
CRYPTO_PAIRING_MESSAGE = typing___cast(ProtocolMessage.Type, 34)
GAME_CONTROLLER_PROPERTIES_MESSAGE = typing___cast(ProtocolMessage.Type, 35)
SET_READY_STATE_MESSAGE = typing___cast(ProtocolMessage.Type, 36)
DEVICE_INFO_UPDATE_MESSAGE = typing___cast(ProtocolMessage.Type, 37)
SET_CONNECTION_STATE_MESSAGE = typing___cast(ProtocolMessage.Type, 38)
SET_HILITE_MODE_MESSAGE = typing___cast(ProtocolMessage.Type, 40)
WAKE_DEVICE_MESSAGE = typing___cast(ProtocolMessage.Type, 41)
SEND_PACKED_VIRTUAL_TOUCH_EVENT_MESSAGE = typing___cast(ProtocolMessage.Type, 43)
SET_NOW_PLAYING_CLIENT_MESSAGE = typing___cast(ProtocolMessage.Type, 46)
UPDATE_CLIENT_MESSAGE = typing___cast(ProtocolMessage.Type, 55)
UPDATE_CONTENT_ITEM_MESSAGE = typing___cast(ProtocolMessage.Type, 56)
SEND_COMMAND_MESSAGE = typing___cast(ProtocolMessage.Type, 1)
SEND_COMMAND_RESULT_MESSAGE = typing___cast(ProtocolMessage.Type, 2)
GET_STATE_MESSAGE = typing___cast(ProtocolMessage.Type, 3)
SET_STATE_MESSAGE = typing___cast(ProtocolMessage.Type, 4)
SET_ARTWORK_MESSAGE = typing___cast(ProtocolMessage.Type, 5)
REGISTER_HID_DEVICE_MESSAGE = typing___cast(ProtocolMessage.Type, 6)
REGISTER_HID_DEVICE_RESULT_MESSAGE = typing___cast(ProtocolMessage.Type, 7)
SEND_HID_EVENT_MESSAGE = typing___cast(ProtocolMessage.Type, 8)
SEND_VIRTUAL_TOUCH_EVENT_MESSAGE = typing___cast(ProtocolMessage.Type, 10)
NOTIFICATION_MESSAGE = typing___cast(ProtocolMessage.Type, 11)
CONTENT_ITEMS_CHANGED_NOTIFICATION_MESSAGE = typing___cast(ProtocolMessage.Type, 12)
DEVICE_INFO_MESSAGE = typing___cast(ProtocolMessage.Type, 15)
CLIENT_UPDATES_CONFIG_MESSAGE = typing___cast(ProtocolMessage.Type, 16)
VOLUME_CONTROL_AVAILABILITY_MESSAGE = typing___cast(ProtocolMessage.Type, 17)
GAME_CONTROLLER_MESSAGE = typing___cast(ProtocolMessage.Type, 18)
REGISTER_GAME_CONTROLLER_MESSAGE = typing___cast(ProtocolMessage.Type, 19)
REGISTER_GAME_CONTROLLER_RESPONSE_MESSAGE = typing___cast(ProtocolMessage.Type, 20)
UNREGISTER_GAME_CONTROLLER_MESSAGE = typing___cast(ProtocolMessage.Type, 21)
REGISTER_FOR_GAME_CONTROLLER_EVENTS_MESSAGE = typing___cast(ProtocolMessage.Type, 22)
KEYBOARD_MESSAGE = typing___cast(ProtocolMessage.Type, 23)
GET_KEYBOARD_SESSION_MESSAGE = typing___cast(ProtocolMessage.Type, 24)
TEXT_INPUT_MESSAGE = typing___cast(ProtocolMessage.Type, 25)
GET_VOICE_INPUT_DEVICES_MESSAGE = typing___cast(ProtocolMessage.Type, 26)
GET_VOICE_INPUT_DEVICES_RESPONSE_MESSAGE = typing___cast(ProtocolMessage.Type, 27)
REGISTER_VOICE_INPUT_DEVICE_MESSAGE = typing___cast(ProtocolMessage.Type, 28)
REGISTER_VOICE_INPUT_DEVICE_RESPONSE_MESSAGE = typing___cast(ProtocolMessage.Type, 29)
SET_RECORDING_STATE_MESSAGE = typing___cast(ProtocolMessage.Type, 30)
SEND_VOICE_INPUT_MESSAGE = typing___cast(ProtocolMessage.Type, 31)
PLAYBACK_QUEUE_REQUEST_MESSAGE = typing___cast(ProtocolMessage.Type, 32)
TRANSACTION_MESSAGE = typing___cast(ProtocolMessage.Type, 33)
CRYPTO_PAIRING_MESSAGE = typing___cast(ProtocolMessage.Type, 34)
GAME_CONTROLLER_PROPERTIES_MESSAGE = typing___cast(ProtocolMessage.Type, 35)
SET_READY_STATE_MESSAGE = typing___cast(ProtocolMessage.Type, 36)
DEVICE_INFO_UPDATE_MESSAGE = typing___cast(ProtocolMessage.Type, 37)
SET_CONNECTION_STATE_MESSAGE = typing___cast(ProtocolMessage.Type, 38)
SET_HILITE_MODE_MESSAGE = typing___cast(ProtocolMessage.Type, 40)
WAKE_DEVICE_MESSAGE = typing___cast(ProtocolMessage.Type, 41)
SEND_PACKED_VIRTUAL_TOUCH_EVENT_MESSAGE = typing___cast(ProtocolMessage.Type, 43)
SET_NOW_PLAYING_CLIENT_MESSAGE = typing___cast(ProtocolMessage.Type, 46)
UPDATE_CLIENT_MESSAGE = typing___cast(ProtocolMessage.Type, 55)
UPDATE_CONTENT_ITEM_MESSAGE = typing___cast(ProtocolMessage.Type, 56)
type = ... # type: ProtocolMessage.Type
identifier = ... # type: typing___Text
priority = ... # type: int
timestamp = ... # type: int
def __init__(self,
*,
type : typing___Optional[ProtocolMessage.Type] = None,
identifier : typing___Optional[typing___Text] = None,
priority : typing___Optional[int] = None,
timestamp : typing___Optional[int] = None,
) -> None: ...
@classmethod
def FromString(cls, s: bytes) -> ProtocolMessage: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def HasField(self, field_name: typing_extensions___Literal[u"identifier",u"priority",u"timestamp",u"type"]) -> bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"identifier",u"priority",u"timestamp",u"type"]) -> None: ...
else:
def HasField(self, field_name: typing_extensions___Literal[u"identifier",b"identifier",u"priority",b"priority",u"timestamp",b"timestamp",u"type",b"type"]) -> bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"identifier",b"identifier",u"priority",b"priority",u"timestamp",b"timestamp",u"type",b"type"]) -> None: ...