|
1 | 1 | %% -*- coding: utf-8 -*-
|
2 | 2 | %% Automatically generated, do not edit
|
3 |
| -%% Generated by gpb_compile version 4.1.8 |
| 3 | +%% Generated by gpb_compile version 4.4.0 |
4 | 4 |
|
5 | 5 | -ifndef(antidote_pb).
|
6 | 6 | -define(antidote_pb, true).
|
7 | 7 |
|
8 |
| --define(antidote_pb_gpb_version, "4.1.8"). |
| 8 | +-define(antidote_pb_gpb_version, "4.4.0"). |
9 | 9 |
|
10 | 10 | -ifndef('APBERRORRESP_PB_H').
|
11 | 11 | -define('APBERRORRESP_PB_H', true).
|
12 | 12 | -record('ApbErrorResp',
|
13 |
| - {errmsg, % = 1, bytes |
14 |
| - errcode % = 2, uint32 |
| 13 | + {errmsg :: iodata(), % = 1 |
| 14 | + errcode :: non_neg_integer() % = 2, 32 bits |
15 | 15 | }).
|
16 | 16 | -endif.
|
17 | 17 |
|
18 | 18 | -ifndef('APBCOUNTERUPDATE_PB_H').
|
19 | 19 | -define('APBCOUNTERUPDATE_PB_H', true).
|
20 | 20 | -record('ApbCounterUpdate',
|
21 |
| - {inc % = 1, sint64 (optional) |
| 21 | + {inc :: integer() | undefined % = 1, 32 bits |
22 | 22 | }).
|
23 | 23 | -endif.
|
24 | 24 |
|
25 | 25 | -ifndef('APBGETCOUNTERRESP_PB_H').
|
26 | 26 | -define('APBGETCOUNTERRESP_PB_H', true).
|
27 | 27 | -record('ApbGetCounterResp',
|
28 |
| - {value % = 1, sint32 |
| 28 | + {value :: integer() % = 1, 32 bits |
29 | 29 | }).
|
30 | 30 | -endif.
|
31 | 31 |
|
32 | 32 | -ifndef('APBSETUPDATE_PB_H').
|
33 | 33 | -define('APBSETUPDATE_PB_H', true).
|
34 | 34 | -record('ApbSetUpdate',
|
35 |
| - {optype, % = 1, {enum,'ApbSetUpdate.SetOpType'} |
36 |
| - adds = [], % = 2, [bytes] |
37 |
| - rems = [] % = 3, [bytes] |
| 35 | + {optype :: 'ADD' | 'REMOVE' | integer(), % = 1, enum ApbSetUpdate.SetOpType |
| 36 | + adds = [] :: [iodata()] | undefined, % = 2 |
| 37 | + rems = [] :: [iodata()] | undefined % = 3 |
38 | 38 | }).
|
39 | 39 | -endif.
|
40 | 40 |
|
41 | 41 | -ifndef('APBGETSETRESP_PB_H').
|
42 | 42 | -define('APBGETSETRESP_PB_H', true).
|
43 | 43 | -record('ApbGetSetResp',
|
44 |
| - {value = [] % = 1, [bytes] |
| 44 | + {value = [] :: [iodata()] | undefined % = 1 |
45 | 45 | }).
|
46 | 46 | -endif.
|
47 | 47 |
|
48 | 48 | -ifndef('APBREGUPDATE_PB_H').
|
49 | 49 | -define('APBREGUPDATE_PB_H', true).
|
50 | 50 | -record('ApbRegUpdate',
|
51 |
| - {value % = 1, bytes |
| 51 | + {value :: iodata() % = 1 |
52 | 52 | }).
|
53 | 53 | -endif.
|
54 | 54 |
|
55 | 55 | -ifndef('APBGETREGRESP_PB_H').
|
56 | 56 | -define('APBGETREGRESP_PB_H', true).
|
57 | 57 | -record('ApbGetRegResp',
|
58 |
| - {value % = 1, bytes |
| 58 | + {value :: iodata() % = 1 |
59 | 59 | }).
|
60 | 60 | -endif.
|
61 | 61 |
|
62 | 62 | -ifndef('APBGETMVREGRESP_PB_H').
|
63 | 63 | -define('APBGETMVREGRESP_PB_H', true).
|
64 | 64 | -record('ApbGetMVRegResp',
|
65 |
| - {values = [] % = 1, [bytes] |
| 65 | + {values = [] :: [iodata()] | undefined % = 1 |
66 | 66 | }).
|
67 | 67 | -endif.
|
68 | 68 |
|
69 | 69 | -ifndef('APBMAPKEY_PB_H').
|
70 | 70 | -define('APBMAPKEY_PB_H', true).
|
71 | 71 | -record('ApbMapKey',
|
72 |
| - {key, % = 1, bytes |
73 |
| - type % = 2, {enum,'CRDT_type'} |
| 72 | + {key :: iodata(), % = 1 |
| 73 | + type :: 'COUNTER' | 'ORSET' | 'LWWREG' | 'MVREG' | 'GMAP' | 'RWSET' | 'RRMAP' | 'FATCOUNTER' | 'FLAG_EW' | 'FLAG_DW' | integer() % = 2, enum CRDT_type |
74 | 74 | }).
|
75 | 75 | -endif.
|
76 | 76 |
|
77 | 77 | -ifndef('APBMAPUPDATE_PB_H').
|
78 | 78 | -define('APBMAPUPDATE_PB_H', true).
|
79 | 79 | -record('ApbMapUpdate',
|
80 |
| - {updates = [], % = 1, [{msg,'ApbMapNestedUpdate'}] |
81 |
| - removedKeys = [] % = 2, [{msg,'ApbMapKey'}] |
| 80 | + {updates = [] :: [antidote_pb:'ApbMapNestedUpdate'()] | undefined, % = 1 |
| 81 | + removedKeys = [] :: [antidote_pb:'ApbMapKey'()] | undefined % = 2 |
82 | 82 | }).
|
83 | 83 | -endif.
|
84 | 84 |
|
85 | 85 | -ifndef('APBMAPNESTEDUPDATE_PB_H').
|
86 | 86 | -define('APBMAPNESTEDUPDATE_PB_H', true).
|
87 | 87 | -record('ApbMapNestedUpdate',
|
88 |
| - {key, % = 1, {msg,'ApbMapKey'} |
89 |
| - update % = 2, {msg,'ApbUpdateOperation'} |
| 88 | + {key :: antidote_pb:'ApbMapKey'(), % = 1 |
| 89 | + update :: antidote_pb:'ApbUpdateOperation'() % = 2 |
90 | 90 | }).
|
91 | 91 | -endif.
|
92 | 92 |
|
93 | 93 | -ifndef('APBGETMAPRESP_PB_H').
|
94 | 94 | -define('APBGETMAPRESP_PB_H', true).
|
95 | 95 | -record('ApbGetMapResp',
|
96 |
| - {entries = [] % = 1, [{msg,'ApbMapEntry'}] |
| 96 | + {entries = [] :: [antidote_pb:'ApbMapEntry'()] | undefined % = 1 |
97 | 97 | }).
|
98 | 98 | -endif.
|
99 | 99 |
|
100 | 100 | -ifndef('APBMAPENTRY_PB_H').
|
101 | 101 | -define('APBMAPENTRY_PB_H', true).
|
102 | 102 | -record('ApbMapEntry',
|
103 |
| - {key, % = 1, {msg,'ApbMapKey'} |
104 |
| - value % = 2, {msg,'ApbReadObjectResp'} |
| 103 | + {key :: antidote_pb:'ApbMapKey'(), % = 1 |
| 104 | + value :: antidote_pb:'ApbReadObjectResp'() % = 2 |
105 | 105 | }).
|
106 | 106 | -endif.
|
107 | 107 |
|
108 | 108 | -ifndef('APBFLAGUPDATE_PB_H').
|
109 | 109 | -define('APBFLAGUPDATE_PB_H', true).
|
110 | 110 | -record('ApbFlagUpdate',
|
111 |
| - {value % = 1, bool |
| 111 | + {value :: boolean() | 0 | 1 % = 1 |
112 | 112 | }).
|
113 | 113 | -endif.
|
114 | 114 |
|
115 | 115 | -ifndef('APBGETFLAGRESP_PB_H').
|
116 | 116 | -define('APBGETFLAGRESP_PB_H', true).
|
117 | 117 | -record('ApbGetFlagResp',
|
118 |
| - {value % = 1, bool |
| 118 | + {value :: boolean() | 0 | 1 % = 1 |
119 | 119 | }).
|
120 | 120 | -endif.
|
121 | 121 |
|
|
129 | 129 | -ifndef('APBOPERATIONRESP_PB_H').
|
130 | 130 | -define('APBOPERATIONRESP_PB_H', true).
|
131 | 131 | -record('ApbOperationResp',
|
132 |
| - {success, % = 1, bool |
133 |
| - errorcode % = 2, uint32 (optional) |
| 132 | + {success :: boolean() | 0 | 1, % = 1 |
| 133 | + errorcode :: non_neg_integer() | undefined % = 2, 32 bits |
134 | 134 | }).
|
135 | 135 | -endif.
|
136 | 136 |
|
137 | 137 | -ifndef('APBTXNPROPERTIES_PB_H').
|
138 | 138 | -define('APBTXNPROPERTIES_PB_H', true).
|
139 | 139 | -record('ApbTxnProperties',
|
140 |
| - {read_write, % = 1, uint32 (optional) |
141 |
| - red_blue % = 2, uint32 (optional) |
| 140 | + {read_write :: non_neg_integer() | undefined, % = 1, 32 bits |
| 141 | + red_blue :: non_neg_integer() | undefined % = 2, 32 bits |
142 | 142 | }).
|
143 | 143 | -endif.
|
144 | 144 |
|
145 | 145 | -ifndef('APBBOUNDOBJECT_PB_H').
|
146 | 146 | -define('APBBOUNDOBJECT_PB_H', true).
|
147 | 147 | -record('ApbBoundObject',
|
148 |
| - {key, % = 1, bytes |
149 |
| - type, % = 2, {enum,'CRDT_type'} |
150 |
| - bucket % = 3, bytes |
| 148 | + {key :: iodata(), % = 1 |
| 149 | + type :: 'COUNTER' | 'ORSET' | 'LWWREG' | 'MVREG' | 'GMAP' | 'RWSET' | 'RRMAP' | 'FATCOUNTER' | 'FLAG_EW' | 'FLAG_DW' | integer(), % = 2, enum CRDT_type |
| 150 | + bucket :: iodata() % = 3 |
151 | 151 | }).
|
152 | 152 | -endif.
|
153 | 153 |
|
154 | 154 | -ifndef('APBREADOBJECTS_PB_H').
|
155 | 155 | -define('APBREADOBJECTS_PB_H', true).
|
156 | 156 | -record('ApbReadObjects',
|
157 |
| - {boundobjects = [], % = 1, [{msg,'ApbBoundObject'}] |
158 |
| - transaction_descriptor % = 2, bytes |
| 157 | + {boundobjects = [] :: [antidote_pb:'ApbBoundObject'()] | undefined, % = 1 |
| 158 | + transaction_descriptor :: iodata() % = 2 |
159 | 159 | }).
|
160 | 160 | -endif.
|
161 | 161 |
|
162 | 162 | -ifndef('APBUPDATEOP_PB_H').
|
163 | 163 | -define('APBUPDATEOP_PB_H', true).
|
164 | 164 | -record('ApbUpdateOp',
|
165 |
| - {boundobject, % = 1, {msg,'ApbBoundObject'} |
166 |
| - operation % = 2, {msg,'ApbUpdateOperation'} |
| 165 | + {boundobject :: antidote_pb:'ApbBoundObject'(), % = 1 |
| 166 | + operation :: antidote_pb:'ApbUpdateOperation'() % = 2 |
167 | 167 | }).
|
168 | 168 | -endif.
|
169 | 169 |
|
170 | 170 | -ifndef('APBUPDATEOPERATION_PB_H').
|
171 | 171 | -define('APBUPDATEOPERATION_PB_H', true).
|
172 | 172 | -record('ApbUpdateOperation',
|
173 |
| - {counterop, % = 1, {msg,'ApbCounterUpdate'} (optional) |
174 |
| - setop, % = 2, {msg,'ApbSetUpdate'} (optional) |
175 |
| - regop, % = 3, {msg,'ApbRegUpdate'} (optional) |
176 |
| - mapop, % = 5, {msg,'ApbMapUpdate'} (optional) |
177 |
| - resetop, % = 6, {msg,'ApbCrdtReset'} (optional) |
178 |
| - flagop % = 7, {msg,'ApbFlagUpdate'} (optional) |
| 173 | + {counterop :: antidote_pb:'ApbCounterUpdate'() | undefined, % = 1 |
| 174 | + setop :: antidote_pb:'ApbSetUpdate'() | undefined, % = 2 |
| 175 | + regop :: antidote_pb:'ApbRegUpdate'() | undefined, % = 3 |
| 176 | + mapop :: antidote_pb:'ApbMapUpdate'() | undefined, % = 5 |
| 177 | + resetop :: antidote_pb:'ApbCrdtReset'() | undefined, % = 6 |
| 178 | + flagop :: antidote_pb:'ApbFlagUpdate'() | undefined % = 7 |
179 | 179 | }).
|
180 | 180 | -endif.
|
181 | 181 |
|
182 | 182 | -ifndef('APBUPDATEOBJECTS_PB_H').
|
183 | 183 | -define('APBUPDATEOBJECTS_PB_H', true).
|
184 | 184 | -record('ApbUpdateObjects',
|
185 |
| - {updates = [], % = 1, [{msg,'ApbUpdateOp'}] |
186 |
| - transaction_descriptor % = 2, bytes |
| 185 | + {updates = [] :: [antidote_pb:'ApbUpdateOp'()] | undefined, % = 1 |
| 186 | + transaction_descriptor :: iodata() % = 2 |
187 | 187 | }).
|
188 | 188 | -endif.
|
189 | 189 |
|
190 | 190 | -ifndef('APBSTARTTRANSACTION_PB_H').
|
191 | 191 | -define('APBSTARTTRANSACTION_PB_H', true).
|
192 | 192 | -record('ApbStartTransaction',
|
193 |
| - {timestamp, % = 1, bytes (optional) |
194 |
| - properties % = 2, {msg,'ApbTxnProperties'} (optional) |
| 193 | + {timestamp :: iodata() | undefined, % = 1 |
| 194 | + properties :: antidote_pb:'ApbTxnProperties'() | undefined % = 2 |
195 | 195 | }).
|
196 | 196 | -endif.
|
197 | 197 |
|
198 | 198 | -ifndef('APBABORTTRANSACTION_PB_H').
|
199 | 199 | -define('APBABORTTRANSACTION_PB_H', true).
|
200 | 200 | -record('ApbAbortTransaction',
|
201 |
| - {transaction_descriptor % = 1, bytes |
| 201 | + {transaction_descriptor :: iodata() % = 1 |
202 | 202 | }).
|
203 | 203 | -endif.
|
204 | 204 |
|
205 | 205 | -ifndef('APBCOMMITTRANSACTION_PB_H').
|
206 | 206 | -define('APBCOMMITTRANSACTION_PB_H', true).
|
207 | 207 | -record('ApbCommitTransaction',
|
208 |
| - {transaction_descriptor % = 1, bytes |
| 208 | + {transaction_descriptor :: iodata() % = 1 |
209 | 209 | }).
|
210 | 210 | -endif.
|
211 | 211 |
|
212 | 212 | -ifndef('APBSTATICUPDATEOBJECTS_PB_H').
|
213 | 213 | -define('APBSTATICUPDATEOBJECTS_PB_H', true).
|
214 | 214 | -record('ApbStaticUpdateObjects',
|
215 |
| - {transaction, % = 1, {msg,'ApbStartTransaction'} |
216 |
| - updates = [] % = 2, [{msg,'ApbUpdateOp'}] |
| 215 | + {transaction :: antidote_pb:'ApbStartTransaction'(), % = 1 |
| 216 | + updates = [] :: [antidote_pb:'ApbUpdateOp'()] | undefined % = 2 |
217 | 217 | }).
|
218 | 218 | -endif.
|
219 | 219 |
|
220 | 220 | -ifndef('APBSTATICREADOBJECTS_PB_H').
|
221 | 221 | -define('APBSTATICREADOBJECTS_PB_H', true).
|
222 | 222 | -record('ApbStaticReadObjects',
|
223 |
| - {transaction, % = 1, {msg,'ApbStartTransaction'} |
224 |
| - objects = [] % = 2, [{msg,'ApbBoundObject'}] |
| 223 | + {transaction :: antidote_pb:'ApbStartTransaction'(), % = 1 |
| 224 | + objects = [] :: [antidote_pb:'ApbBoundObject'()] | undefined % = 2 |
225 | 225 | }).
|
226 | 226 | -endif.
|
227 | 227 |
|
228 | 228 | -ifndef('APBSTARTTRANSACTIONRESP_PB_H').
|
229 | 229 | -define('APBSTARTTRANSACTIONRESP_PB_H', true).
|
230 | 230 | -record('ApbStartTransactionResp',
|
231 |
| - {success, % = 1, bool |
232 |
| - transaction_descriptor, % = 2, bytes (optional) |
233 |
| - errorcode % = 3, uint32 (optional) |
| 231 | + {success :: boolean() | 0 | 1, % = 1 |
| 232 | + transaction_descriptor :: iodata() | undefined, % = 2 |
| 233 | + errorcode :: non_neg_integer() | undefined % = 3, 32 bits |
234 | 234 | }).
|
235 | 235 | -endif.
|
236 | 236 |
|
237 | 237 | -ifndef('APBREADOBJECTRESP_PB_H').
|
238 | 238 | -define('APBREADOBJECTRESP_PB_H', true).
|
239 | 239 | -record('ApbReadObjectResp',
|
240 |
| - {counter, % = 1, {msg,'ApbGetCounterResp'} (optional) |
241 |
| - set, % = 2, {msg,'ApbGetSetResp'} (optional) |
242 |
| - reg, % = 3, {msg,'ApbGetRegResp'} (optional) |
243 |
| - mvreg, % = 4, {msg,'ApbGetMVRegResp'} (optional) |
244 |
| - map, % = 6, {msg,'ApbGetMapResp'} (optional) |
245 |
| - flag % = 7, {msg,'ApbGetFlagResp'} (optional) |
| 240 | + {counter :: antidote_pb:'ApbGetCounterResp'() | undefined, % = 1 |
| 241 | + set :: antidote_pb:'ApbGetSetResp'() | undefined, % = 2 |
| 242 | + reg :: antidote_pb:'ApbGetRegResp'() | undefined, % = 3 |
| 243 | + mvreg :: antidote_pb:'ApbGetMVRegResp'() | undefined, % = 4 |
| 244 | + map :: antidote_pb:'ApbGetMapResp'() | undefined, % = 6 |
| 245 | + flag :: antidote_pb:'ApbGetFlagResp'() | undefined % = 7 |
246 | 246 | }).
|
247 | 247 | -endif.
|
248 | 248 |
|
249 | 249 | -ifndef('APBREADOBJECTSRESP_PB_H').
|
250 | 250 | -define('APBREADOBJECTSRESP_PB_H', true).
|
251 | 251 | -record('ApbReadObjectsResp',
|
252 |
| - {success, % = 1, bool |
253 |
| - objects = [], % = 2, [{msg,'ApbReadObjectResp'}] |
254 |
| - errorcode % = 3, uint32 (optional) |
| 252 | + {success :: boolean() | 0 | 1, % = 1 |
| 253 | + objects = [] :: [antidote_pb:'ApbReadObjectResp'()] | undefined, % = 2 |
| 254 | + errorcode :: non_neg_integer() | undefined % = 3, 32 bits |
255 | 255 | }).
|
256 | 256 | -endif.
|
257 | 257 |
|
258 | 258 | -ifndef('APBCOMMITRESP_PB_H').
|
259 | 259 | -define('APBCOMMITRESP_PB_H', true).
|
260 | 260 | -record('ApbCommitResp',
|
261 |
| - {success, % = 1, bool |
262 |
| - commit_time, % = 2, bytes (optional) |
263 |
| - errorcode % = 3, uint32 (optional) |
| 261 | + {success :: boolean() | 0 | 1, % = 1 |
| 262 | + commit_time :: iodata() | undefined, % = 2 |
| 263 | + errorcode :: non_neg_integer() | undefined % = 3, 32 bits |
264 | 264 | }).
|
265 | 265 | -endif.
|
266 | 266 |
|
267 | 267 | -ifndef('APBSTATICREADOBJECTSRESP_PB_H').
|
268 | 268 | -define('APBSTATICREADOBJECTSRESP_PB_H', true).
|
269 | 269 | -record('ApbStaticReadObjectsResp',
|
270 |
| - {objects, % = 1, {msg,'ApbReadObjectsResp'} |
271 |
| - committime % = 2, {msg,'ApbCommitResp'} |
| 270 | + {objects :: antidote_pb:'ApbReadObjectsResp'(), % = 1 |
| 271 | + committime :: antidote_pb:'ApbCommitResp'() % = 2 |
| 272 | + }). |
| 273 | +-endif. |
| 274 | + |
| 275 | +-ifndef('APBCREATEDC_PB_H'). |
| 276 | +-define('APBCREATEDC_PB_H', true). |
| 277 | +-record('ApbCreateDC', |
| 278 | + {nodes = [] :: [iodata()] | undefined % = 1 |
| 279 | + }). |
| 280 | +-endif. |
| 281 | + |
| 282 | +-ifndef('APBGETCONNECTIONDESCRIPTOR_PB_H'). |
| 283 | +-define('APBGETCONNECTIONDESCRIPTOR_PB_H', true). |
| 284 | +-record('ApbGetConnectionDescriptor', |
| 285 | + { |
| 286 | + }). |
| 287 | +-endif. |
| 288 | + |
| 289 | +-ifndef('APBGETCONNECTIONDESCRIPTORRESP_PB_H'). |
| 290 | +-define('APBGETCONNECTIONDESCRIPTORRESP_PB_H', true). |
| 291 | +-record('ApbGetConnectionDescriptorResp', |
| 292 | + {success :: boolean() | 0 | 1, % = 1 |
| 293 | + descriptor :: iodata() | undefined, % = 2 |
| 294 | + errorcode :: non_neg_integer() | undefined % = 3, 32 bits |
| 295 | + }). |
| 296 | +-endif. |
| 297 | + |
| 298 | +-ifndef('APBCONNECTTODCS_PB_H'). |
| 299 | +-define('APBCONNECTTODCS_PB_H', true). |
| 300 | +-record('ApbConnectToDCs', |
| 301 | + {descriptors = [] :: [iodata()] | undefined % = 1 |
272 | 302 | }).
|
273 | 303 | -endif.
|
274 | 304 |
|
|
0 commit comments