1 /* This file was generated by upbc (the upb compiler) from the input
4 * google/protobuf/empty.proto
6 * Do not edit -- your changes will be discarded when the file is
9 #ifndef GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H_
10 #define GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H_
12 #include "upb/generated_util.h"
14 #include "upb/decode.h"
15 #include "upb/encode.h"
17 #include "upb/port_def.inc"
23 struct google_protobuf_Empty;
24 typedef struct google_protobuf_Empty google_protobuf_Empty;
25 extern const upb_msglayout google_protobuf_Empty_msginit;
28 /* google.protobuf.Empty */
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);
33 UPB_INLINE google_protobuf_Empty *google_protobuf_Empty_parse(const char *buf, size_t size,
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;
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);
48 #include "upb/port_undef.inc"
50 #endif /* GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H_ */