-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquery.proto
149 lines (106 loc) · 2.49 KB
/
query.proto
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
syntax = "proto3";
import "common.proto";
import "update.proto";
package PlanProto;
message ReqNode {
string node_id = 1;
}
message ResNode {
string node_id = 4;
string parent_id = 5;
string name = 6;
NodeType type = 8;
repeated NodeConfigUpdate configs = 2;
repeated NodeStatusUpdate statuses = 3;
repeated string child_ids = 7;
// sheet specific returns
repeated CellUpdate cells = 11;
repeated BarrierUpdate barriers = 12;
repeated PropertyDefUpdate property_defs = 13;
repeated TwitUpdate twits = 14;
string redirect = 15; // in PAGE view, works like an HTTP redirect
Error redirect_error = 16; // to report e.g. redirect loops
}
message ReqVersion {
// protobufjs doesn't like empty structure
int32 unused = 1;
}
message ResVersion {
string git_hash = 1;
}
message ReqTree {
// protobufjs doesn't like empty structure
int32 unused = 1;
}
// This content is independent of the channel overlay
message ResTreeNode
{
string node_id = 4;
string parent_id = 5;
string name = 6;
repeated string child_ids = 7;
NodeType type = 8;
}
message ReqDocwide {
// protobufjs doesn't like empty structure
int32 unused = 1;
}
message ResDocwide {
repeated DocOptionUpdate options = 1;
}
message ResTree {
repeated ResTreeNode nodes = 1;
}
message ReqDocStr {
int32 unused = 1;
bool xml_with_ids = 2;
}
message ResDocStr {
string content = 2; // json format - axiom dump
}
message ReqHtmlRender {
string path = 1;
string subscription_user = 4;
map<string, string> params = 2;
bool debug = 3;
bool suppress_onclick_run = 20;
}
message ResHtmlRender {
int32 status_code = 2;
string html = 1;
}
message ReqValidateCode {
string code = 1;
}
enum FullTextSearchMode {
SEARCH_MODE_EXACT = 0;
SEARCH_MODE_FUZZY = 1;
SEARCH_MODE_REGULAR_EXPRESSION = 2;
}
message ReqFullTextSearch {
bool whole_doc = 6;
// if !whole_doc and sheet_id is '', search the currently subscribed sheet
string sheet_id = 1;
string needle = 2;
FullTextSearchMode mode = 3;
bool ignore_case = 4;
bool whole_cell = 5;
}
message SearchResult {
string sheet_id = 1;
int32 rv = 2;
int32 cv = 3;
string cell_value = 4;
}
message ResFullTextSearch {
// ranked from worst match to best, up to 20 returns
repeated SearchResult result = 1;
}
// the complete list of IKU keys and values and their dependencies,
// in human readable text format. For debugging.
message ReqStateDump {
int32 dummy = 1;
}
message ResStateDump {
string state = 1;
}