1 /* This file was generated by upbc (the upb compiler) from the input
2 * file:
3 *
4 * xds/core/v3/authority.proto
5 *
6 * Do not edit -- your changes will be discarded when the file is
7 * regenerated. */
8
9 #ifndef XDS_CORE_V3_AUTHORITY_PROTO_UPB_H_
10 #define XDS_CORE_V3_AUTHORITY_PROTO_UPB_H_
11
12 #include "upb/msg.h"
13 #include "upb/decode.h"
14 #include "upb/decode_fast.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 xds_core_v3_Authority;
24 typedef struct xds_core_v3_Authority xds_core_v3_Authority;
25 extern const upb_msglayout xds_core_v3_Authority_msginit;
26
27
28 /* xds.core.v3.Authority */
29
xds_core_v3_Authority_new(upb_arena * arena)30 UPB_INLINE xds_core_v3_Authority *xds_core_v3_Authority_new(upb_arena *arena) {
31 return (xds_core_v3_Authority *)_upb_msg_new(&xds_core_v3_Authority_msginit, arena);
32 }
xds_core_v3_Authority_parse(const char * buf,size_t size,upb_arena * arena)33 UPB_INLINE xds_core_v3_Authority *xds_core_v3_Authority_parse(const char *buf, size_t size,
34 upb_arena *arena) {
35 xds_core_v3_Authority *ret = xds_core_v3_Authority_new(arena);
36 return (ret && upb_decode(buf, size, ret, &xds_core_v3_Authority_msginit, arena)) ? ret : NULL;
37 }
xds_core_v3_Authority_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)38 UPB_INLINE xds_core_v3_Authority *xds_core_v3_Authority_parse_ex(const char *buf, size_t size,
39 upb_arena *arena, int options) {
40 xds_core_v3_Authority *ret = xds_core_v3_Authority_new(arena);
41 return (ret && _upb_decode(buf, size, ret, &xds_core_v3_Authority_msginit, arena, options))
42 ? ret : NULL;
43 }
xds_core_v3_Authority_serialize(const xds_core_v3_Authority * msg,upb_arena * arena,size_t * len)44 UPB_INLINE char *xds_core_v3_Authority_serialize(const xds_core_v3_Authority *msg, upb_arena *arena, size_t *len) {
45 return upb_encode(msg, &xds_core_v3_Authority_msginit, arena, len);
46 }
47
xds_core_v3_Authority_name(const xds_core_v3_Authority * msg)48 UPB_INLINE upb_strview xds_core_v3_Authority_name(const xds_core_v3_Authority *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
49
xds_core_v3_Authority_set_name(xds_core_v3_Authority * msg,upb_strview value)50 UPB_INLINE void xds_core_v3_Authority_set_name(xds_core_v3_Authority *msg, upb_strview value) {
51 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
52 }
53
54 #ifdef __cplusplus
55 } /* extern "C" */
56 #endif
57
58 #include "upb/port_undef.inc"
59
60 #endif /* XDS_CORE_V3_AUTHORITY_PROTO_UPB_H_ */
61