1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: google/protobuf/wrappers.proto */
4 #ifndef PROTOBUF_C_google_2fprotobuf_2fwrappers_2eproto__INCLUDED
5 #define PROTOBUF_C_google_2fprotobuf_2fwrappers_2eproto__INCLUDED
7 #include <protobuf-c/protobuf-c.h>
9 PROTOBUF_C__BEGIN_DECLS
11 #if PROTOBUF_C_VERSION_NUMBER < 1003000
12 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
13 #elif 1003002 < PROTOBUF_C_MIN_COMPILER_VERSION
14 # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
18 typedef struct _Google__Protobuf__DoubleValue Google__Protobuf__DoubleValue;
19 typedef struct _Google__Protobuf__FloatValue Google__Protobuf__FloatValue;
20 typedef struct _Google__Protobuf__Int64Value Google__Protobuf__Int64Value;
21 typedef struct _Google__Protobuf__UInt64Value Google__Protobuf__UInt64Value;
22 typedef struct _Google__Protobuf__Int32Value Google__Protobuf__Int32Value;
23 typedef struct _Google__Protobuf__UInt32Value Google__Protobuf__UInt32Value;
24 typedef struct _Google__Protobuf__BoolValue Google__Protobuf__BoolValue;
25 typedef struct _Google__Protobuf__StringValue Google__Protobuf__StringValue;
26 typedef struct _Google__Protobuf__BytesValue Google__Protobuf__BytesValue;
32 /* --- messages --- */
35 * Wrapper message for `double`.
36 * The JSON representation for `DoubleValue` is JSON number.
38 struct _Google__Protobuf__DoubleValue
40 ProtobufCMessage base;
46 #define GOOGLE__PROTOBUF__DOUBLE_VALUE__INIT \
47 { PROTOBUF_C_MESSAGE_INIT (&google__protobuf__double_value__descriptor) \
52 * Wrapper message for `float`.
53 * The JSON representation for `FloatValue` is JSON number.
55 struct _Google__Protobuf__FloatValue
57 ProtobufCMessage base;
63 #define GOOGLE__PROTOBUF__FLOAT_VALUE__INIT \
64 { PROTOBUF_C_MESSAGE_INIT (&google__protobuf__float_value__descriptor) \
69 * Wrapper message for `int64`.
70 * The JSON representation for `Int64Value` is JSON string.
72 struct _Google__Protobuf__Int64Value
74 ProtobufCMessage base;
80 #define GOOGLE__PROTOBUF__INT64_VALUE__INIT \
81 { PROTOBUF_C_MESSAGE_INIT (&google__protobuf__int64_value__descriptor) \
86 * Wrapper message for `uint64`.
87 * The JSON representation for `UInt64Value` is JSON string.
89 struct _Google__Protobuf__UInt64Value
91 ProtobufCMessage base;
97 #define GOOGLE__PROTOBUF__UINT64_VALUE__INIT \
98 { PROTOBUF_C_MESSAGE_INIT (&google__protobuf__uint64_value__descriptor) \
103 * Wrapper message for `int32`.
104 * The JSON representation for `Int32Value` is JSON number.
106 struct _Google__Protobuf__Int32Value
108 ProtobufCMessage base;
114 #define GOOGLE__PROTOBUF__INT32_VALUE__INIT \
115 { PROTOBUF_C_MESSAGE_INIT (&google__protobuf__int32_value__descriptor) \
120 * Wrapper message for `uint32`.
121 * The JSON representation for `UInt32Value` is JSON number.
123 struct _Google__Protobuf__UInt32Value
125 ProtobufCMessage base;
131 #define GOOGLE__PROTOBUF__UINT32_VALUE__INIT \
132 { PROTOBUF_C_MESSAGE_INIT (&google__protobuf__uint32_value__descriptor) \
137 * Wrapper message for `bool`.
138 * The JSON representation for `BoolValue` is JSON `true` and `false`.
140 struct _Google__Protobuf__BoolValue
142 ProtobufCMessage base;
146 protobuf_c_boolean value;
148 #define GOOGLE__PROTOBUF__BOOL_VALUE__INIT \
149 { PROTOBUF_C_MESSAGE_INIT (&google__protobuf__bool_value__descriptor) \
154 * Wrapper message for `string`.
155 * The JSON representation for `StringValue` is JSON string.
157 struct _Google__Protobuf__StringValue
159 ProtobufCMessage base;
165 #define GOOGLE__PROTOBUF__STRING_VALUE__INIT \
166 { PROTOBUF_C_MESSAGE_INIT (&google__protobuf__string_value__descriptor) \
167 , (char *)protobuf_c_empty_string }
171 * Wrapper message for `bytes`.
172 * The JSON representation for `BytesValue` is JSON string.
174 struct _Google__Protobuf__BytesValue
176 ProtobufCMessage base;
180 ProtobufCBinaryData value;
182 #define GOOGLE__PROTOBUF__BYTES_VALUE__INIT \
183 { PROTOBUF_C_MESSAGE_INIT (&google__protobuf__bytes_value__descriptor) \
187 /* Google__Protobuf__DoubleValue methods */
188 void google__protobuf__double_value__init
189 (Google__Protobuf__DoubleValue *message);
190 size_t google__protobuf__double_value__get_packed_size
191 (const Google__Protobuf__DoubleValue *message);
192 size_t google__protobuf__double_value__pack
193 (const Google__Protobuf__DoubleValue *message,
195 size_t google__protobuf__double_value__pack_to_buffer
196 (const Google__Protobuf__DoubleValue *message,
197 ProtobufCBuffer *buffer);
198 Google__Protobuf__DoubleValue *
199 google__protobuf__double_value__unpack
200 (ProtobufCAllocator *allocator,
202 const uint8_t *data);
203 void google__protobuf__double_value__free_unpacked
204 (Google__Protobuf__DoubleValue *message,
205 ProtobufCAllocator *allocator);
206 /* Google__Protobuf__FloatValue methods */
207 void google__protobuf__float_value__init
208 (Google__Protobuf__FloatValue *message);
209 size_t google__protobuf__float_value__get_packed_size
210 (const Google__Protobuf__FloatValue *message);
211 size_t google__protobuf__float_value__pack
212 (const Google__Protobuf__FloatValue *message,
214 size_t google__protobuf__float_value__pack_to_buffer
215 (const Google__Protobuf__FloatValue *message,
216 ProtobufCBuffer *buffer);
217 Google__Protobuf__FloatValue *
218 google__protobuf__float_value__unpack
219 (ProtobufCAllocator *allocator,
221 const uint8_t *data);
222 void google__protobuf__float_value__free_unpacked
223 (Google__Protobuf__FloatValue *message,
224 ProtobufCAllocator *allocator);
225 /* Google__Protobuf__Int64Value methods */
226 void google__protobuf__int64_value__init
227 (Google__Protobuf__Int64Value *message);
228 size_t google__protobuf__int64_value__get_packed_size
229 (const Google__Protobuf__Int64Value *message);
230 size_t google__protobuf__int64_value__pack
231 (const Google__Protobuf__Int64Value *message,
233 size_t google__protobuf__int64_value__pack_to_buffer
234 (const Google__Protobuf__Int64Value *message,
235 ProtobufCBuffer *buffer);
236 Google__Protobuf__Int64Value *
237 google__protobuf__int64_value__unpack
238 (ProtobufCAllocator *allocator,
240 const uint8_t *data);
241 void google__protobuf__int64_value__free_unpacked
242 (Google__Protobuf__Int64Value *message,
243 ProtobufCAllocator *allocator);
244 /* Google__Protobuf__UInt64Value methods */
245 void google__protobuf__uint64_value__init
246 (Google__Protobuf__UInt64Value *message);
247 size_t google__protobuf__uint64_value__get_packed_size
248 (const Google__Protobuf__UInt64Value *message);
249 size_t google__protobuf__uint64_value__pack
250 (const Google__Protobuf__UInt64Value *message,
252 size_t google__protobuf__uint64_value__pack_to_buffer
253 (const Google__Protobuf__UInt64Value *message,
254 ProtobufCBuffer *buffer);
255 Google__Protobuf__UInt64Value *
256 google__protobuf__uint64_value__unpack
257 (ProtobufCAllocator *allocator,
259 const uint8_t *data);
260 void google__protobuf__uint64_value__free_unpacked
261 (Google__Protobuf__UInt64Value *message,
262 ProtobufCAllocator *allocator);
263 /* Google__Protobuf__Int32Value methods */
264 void google__protobuf__int32_value__init
265 (Google__Protobuf__Int32Value *message);
266 size_t google__protobuf__int32_value__get_packed_size
267 (const Google__Protobuf__Int32Value *message);
268 size_t google__protobuf__int32_value__pack
269 (const Google__Protobuf__Int32Value *message,
271 size_t google__protobuf__int32_value__pack_to_buffer
272 (const Google__Protobuf__Int32Value *message,
273 ProtobufCBuffer *buffer);
274 Google__Protobuf__Int32Value *
275 google__protobuf__int32_value__unpack
276 (ProtobufCAllocator *allocator,
278 const uint8_t *data);
279 void google__protobuf__int32_value__free_unpacked
280 (Google__Protobuf__Int32Value *message,
281 ProtobufCAllocator *allocator);
282 /* Google__Protobuf__UInt32Value methods */
283 void google__protobuf__uint32_value__init
284 (Google__Protobuf__UInt32Value *message);
285 size_t google__protobuf__uint32_value__get_packed_size
286 (const Google__Protobuf__UInt32Value *message);
287 size_t google__protobuf__uint32_value__pack
288 (const Google__Protobuf__UInt32Value *message,
290 size_t google__protobuf__uint32_value__pack_to_buffer
291 (const Google__Protobuf__UInt32Value *message,
292 ProtobufCBuffer *buffer);
293 Google__Protobuf__UInt32Value *
294 google__protobuf__uint32_value__unpack
295 (ProtobufCAllocator *allocator,
297 const uint8_t *data);
298 void google__protobuf__uint32_value__free_unpacked
299 (Google__Protobuf__UInt32Value *message,
300 ProtobufCAllocator *allocator);
301 /* Google__Protobuf__BoolValue methods */
302 void google__protobuf__bool_value__init
303 (Google__Protobuf__BoolValue *message);
304 size_t google__protobuf__bool_value__get_packed_size
305 (const Google__Protobuf__BoolValue *message);
306 size_t google__protobuf__bool_value__pack
307 (const Google__Protobuf__BoolValue *message,
309 size_t google__protobuf__bool_value__pack_to_buffer
310 (const Google__Protobuf__BoolValue *message,
311 ProtobufCBuffer *buffer);
312 Google__Protobuf__BoolValue *
313 google__protobuf__bool_value__unpack
314 (ProtobufCAllocator *allocator,
316 const uint8_t *data);
317 void google__protobuf__bool_value__free_unpacked
318 (Google__Protobuf__BoolValue *message,
319 ProtobufCAllocator *allocator);
320 /* Google__Protobuf__StringValue methods */
321 void google__protobuf__string_value__init
322 (Google__Protobuf__StringValue *message);
323 size_t google__protobuf__string_value__get_packed_size
324 (const Google__Protobuf__StringValue *message);
325 size_t google__protobuf__string_value__pack
326 (const Google__Protobuf__StringValue *message,
328 size_t google__protobuf__string_value__pack_to_buffer
329 (const Google__Protobuf__StringValue *message,
330 ProtobufCBuffer *buffer);
331 Google__Protobuf__StringValue *
332 google__protobuf__string_value__unpack
333 (ProtobufCAllocator *allocator,
335 const uint8_t *data);
336 void google__protobuf__string_value__free_unpacked
337 (Google__Protobuf__StringValue *message,
338 ProtobufCAllocator *allocator);
339 /* Google__Protobuf__BytesValue methods */
340 void google__protobuf__bytes_value__init
341 (Google__Protobuf__BytesValue *message);
342 size_t google__protobuf__bytes_value__get_packed_size
343 (const Google__Protobuf__BytesValue *message);
344 size_t google__protobuf__bytes_value__pack
345 (const Google__Protobuf__BytesValue *message,
347 size_t google__protobuf__bytes_value__pack_to_buffer
348 (const Google__Protobuf__BytesValue *message,
349 ProtobufCBuffer *buffer);
350 Google__Protobuf__BytesValue *
351 google__protobuf__bytes_value__unpack
352 (ProtobufCAllocator *allocator,
354 const uint8_t *data);
355 void google__protobuf__bytes_value__free_unpacked
356 (Google__Protobuf__BytesValue *message,
357 ProtobufCAllocator *allocator);
358 /* --- per-message closures --- */
360 typedef void (*Google__Protobuf__DoubleValue_Closure)
361 (const Google__Protobuf__DoubleValue *message,
363 typedef void (*Google__Protobuf__FloatValue_Closure)
364 (const Google__Protobuf__FloatValue *message,
366 typedef void (*Google__Protobuf__Int64Value_Closure)
367 (const Google__Protobuf__Int64Value *message,
369 typedef void (*Google__Protobuf__UInt64Value_Closure)
370 (const Google__Protobuf__UInt64Value *message,
372 typedef void (*Google__Protobuf__Int32Value_Closure)
373 (const Google__Protobuf__Int32Value *message,
375 typedef void (*Google__Protobuf__UInt32Value_Closure)
376 (const Google__Protobuf__UInt32Value *message,
378 typedef void (*Google__Protobuf__BoolValue_Closure)
379 (const Google__Protobuf__BoolValue *message,
381 typedef void (*Google__Protobuf__StringValue_Closure)
382 (const Google__Protobuf__StringValue *message,
384 typedef void (*Google__Protobuf__BytesValue_Closure)
385 (const Google__Protobuf__BytesValue *message,
388 /* --- services --- */
391 /* --- descriptors --- */
393 extern const ProtobufCMessageDescriptor google__protobuf__double_value__descriptor;
394 extern const ProtobufCMessageDescriptor google__protobuf__float_value__descriptor;
395 extern const ProtobufCMessageDescriptor google__protobuf__int64_value__descriptor;
396 extern const ProtobufCMessageDescriptor google__protobuf__uint64_value__descriptor;
397 extern const ProtobufCMessageDescriptor google__protobuf__int32_value__descriptor;
398 extern const ProtobufCMessageDescriptor google__protobuf__uint32_value__descriptor;
399 extern const ProtobufCMessageDescriptor google__protobuf__bool_value__descriptor;
400 extern const ProtobufCMessageDescriptor google__protobuf__string_value__descriptor;
401 extern const ProtobufCMessageDescriptor google__protobuf__bytes_value__descriptor;
403 PROTOBUF_C__END_DECLS
406 #endif /* PROTOBUF_C_google_2fprotobuf_2fwrappers_2eproto__INCLUDED */