-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgboard.proto3
140 lines (130 loc) · 3.58 KB
/
gboard.proto3
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
// LATIN_IME log source in https://play.googleapis.com/log/batch data
syntax = "proto3";
//import "google/protobuf/any.proto";
message LatinIME_LogEntry { // pzj
int64 currentTimeMillis = 1;
InputInfo input_info = 6; // opw
KeyboardEvent keyboardEvent = 11; // ejp, ejo
sint64 timeZoneOffset = 15;
int64 elapsedRealtime = 17;
bool handsetLocked = 25; // (i.e. requires pin to unlock)
}
enum KeyboardEvent {
DEFAULT_EVENT = 0;
IMS_CREATED_BEFORE_USER_UNLOCKED = 1;
SHARED_PREFERENCE_CHANGED = 2;
COMMIT_TEXT = 3;
IME_TEXT_CANDIDATE_SELECTED = 4;
IMS_INPUT_VIEW_CREATED = 8;
IMS_ON_START_INPUT_VIEW = 9;
IMS_INPUT_VIEW_FINISHED = 10;
TEXT_AUTOCORRECTED = 11;
PERIODIC_TASK_SERVICE_RUN = 13;
INVALID_WORD_UNDERLINED = 14;
INPUT_METHOD_ENTRY_CHANGED = 16;
SETTINGS_ACTIVITY_CREATED = 18;
// SETTINGS_ACTIVITY_FINISHED = ???
SYNC_STATS_RECORDED = 19;
NEXT_WORD_SUGGESTION = 22;
DELETED_WORD = 25;
EDIT_WORD = 26;
TEXT_CANDIDATES_APPENDED = 41;
VOICE_INPUT_START = 42;
VOICE_INPUT_STOP = 43;
SUPERPACKS_STUFF = 50;
ACCESS_POINT_FEATURE_CLICKED = 54;
OPEN_ACCESS_POINTS = 56;
PRESSED_SPACE = 103;
REMOVED_SPACE = 104;
KEYBOARD_MODE_CHANGED = 110;
IMS_INPUT_VIEW_STARTED = 111;
KEYBOARD_ACTIVATED = 130;
RATEUS_USAGE = 148;
KEYBOARD_BODY_SHOWN = 167;
KEYBOARD_SHOWN_LATENCY = 168;
RICH_CONTENT_SUGGESTION_IMPRESSION = 180;
LANGUAGE_MODEL_LOAD_INFO = 197;
RICH_CONTENT_SUGGESTION_STATE_TRANSITION = 206;
RICH_CONTENT_SUGGESTION_IMAGES_LOADED = 213;
ON_START_RECOGNITION = 215;
ON_STOP_RECOGNITION = 216;
TAB_OPEN = 223;
CATEGORY_SWITCH = 229;
IMPRESSION = 230;
ABANDON_CLIENT_DIFF_DUE_TO_STALE_CLIENT_REQUEST = 238;
SUGGESTION_DISPLAYED = 242;
SUGGESTION_CLICKED = 243;
PINNED_ACTION_DISPLAYED = 244;
PINNED_ACTION_CLICKED = 245;
EXTENSION_OPEN = 248;
RUNTIME_PARAMETERS_IME_ONACTIVATE = 264;
SUGGESTION_LONG_PRESSED = 274;
ENTER_EMOJI_GIF = 276;
}
message InputInfo {
WordInputInfo word_input_info = 2; // otg
KeyboardUsageInfo keyboard_usage_info = 5; // oqn
}
message KeyboardUsageInfo {
int32 editorInfoInputType = 1; // https://developer.android.com/reference/android/text/InputType
// enum ??? = 2;
bool bool = 3;
string applicationName = 4;
KeyboardType keyboardType = 5;
// enum ??? = 6;
// bool ??? = 7;
}
enum KeyboardType {
SOFT = 0;
HARD_QWERTY = 2;
HARD_12KEYS = 3;
}
message WordInputInfo{
int32 characterSequenceLength = 1;
bool isGestureInput = 2;
TextCompletionInfo text_completion_info = 7; // oow
// message list ??? = 8;
bool TEXT_COMPOSING_DELETED = 9;
bool isVoiceInput = 11;
// message list ??? = 14;
int32 committedTextLength = 15;
// bool gestureSomeWords = 16
// int32 ??? = 17;
// int32 ??? = 18;
// int32 ??? = 19;
bool TEXT_COMMIT_DELETED = 20;
// bool ??? = 21;
// enum ??? = 22;
bool TAPPING_CORRECTED = 23;
TypeOfInput typeOfInput = 24;
// osx OSX = 29;
// bool ??? = 30;
int32 timeToEnterWord = 31;
fixed64 randomThread = 32;
}
enum TypeOfInput{
DEFAULT_ENUM = 0;
DEFAULT_OTG = 1;
GESTURE = 2;
SELECT_CANDIDATE = 3;
PREDICTION = 4;
AUTOCORRECTION = 5;
VOICE = 14;
}
message TextCompletionInfo{
// int32 pgh_h = 1;
// float list ??? = 2;
// float ??? = 3;
int32 textCandidateIndex = 4;
int32 completionInfoPosition = 7;
// bool ??? = 8;
int32 charSequenceSplitBySpaceLength = 9;
int32 charSequenceLength = 10;
int32 completionInfoRank = 11;
// 13 int32 ??? = 13;
// 14 in32 ??? = 14;
// 15 message list ??? = 15;
// 16 int32 ??? = 16;
// 17 int32 ??? = 17;
// message ??? = 24;
}