Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / grpc-cloned / deps / grpc / src / core / ext / upb-generated / google / protobuf / empty.upb.h
1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     google/protobuf/empty.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8
9 #ifndef GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H_
10 #define GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H_
11
12 #include "upb/generated_util.h"
13 #include "upb/msg.h"
14 #include "upb/decode.h"
15 #include "upb/encode.h"
16
17 #include "upb/port_def.inc"
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 struct google_protobuf_Empty;
24 typedef struct google_protobuf_Empty google_protobuf_Empty;
25 extern const upb_msglayout google_protobuf_Empty_msginit;
26
27
28 /* google.protobuf.Empty */
29
30 UPB_INLINE google_protobuf_Empty *google_protobuf_Empty_new(upb_arena *arena) {
31   return (google_protobuf_Empty *)upb_msg_new(&google_protobuf_Empty_msginit, arena);
32 }
33 UPB_INLINE google_protobuf_Empty *google_protobuf_Empty_parse(const char *buf, size_t size,
34                         upb_arena *arena) {
35   google_protobuf_Empty *ret = google_protobuf_Empty_new(arena);
36   return (ret && upb_decode(buf, size, ret, &google_protobuf_Empty_msginit, arena)) ? ret : NULL;
37 }
38 UPB_INLINE char *google_protobuf_Empty_serialize(const google_protobuf_Empty *msg, upb_arena *arena, size_t *len) {
39   return upb_encode(msg, &google_protobuf_Empty_msginit, arena, len);
40 }
41
42
43
44 #ifdef __cplusplus
45 }  /* extern "C" */
46 #endif
47
48 #include "upb/port_undef.inc"
49
50 #endif  /* GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H_ */