empty.upb.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #ifndef GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H_
  9. #define GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H_
  10. #include "upb/generated_util.h"
  11. #include "upb/msg.h"
  12. #include "upb/decode.h"
  13. #include "upb/encode.h"
  14. #include "upb/port_def.inc"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. struct google_protobuf_Empty;
  19. typedef struct google_protobuf_Empty google_protobuf_Empty;
  20. extern const upb_msglayout google_protobuf_Empty_msginit;
  21. /* google.protobuf.Empty */
  22. UPB_INLINE google_protobuf_Empty *google_protobuf_Empty_new(upb_arena *arena) {
  23. return (google_protobuf_Empty *)upb_msg_new(&google_protobuf_Empty_msginit, arena);
  24. }
  25. UPB_INLINE google_protobuf_Empty *google_protobuf_Empty_parse(const char *buf, size_t size,
  26. upb_arena *arena) {
  27. google_protobuf_Empty *ret = google_protobuf_Empty_new(arena);
  28. return (ret && upb_decode(buf, size, ret, &google_protobuf_Empty_msginit, arena)) ? ret : NULL;
  29. }
  30. UPB_INLINE char *google_protobuf_Empty_serialize(const google_protobuf_Empty *msg, upb_arena *arena, size_t *len) {
  31. return upb_encode(msg, &google_protobuf_Empty_msginit, arena, len);
  32. }
  33. #ifdef __cplusplus
  34. } /* extern "C" */
  35. #endif
  36. #include "upb/port_undef.inc"
  37. #endif /* GOOGLE_PROTOBUF_EMPTY_PROTO_UPB_H_ */