GRPC Core  18.0.0
context_params.upb.h
Go to the documentation of this file.
1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  * xds/core/v3/context_params.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef XDS_CORE_V3_CONTEXT_PARAMS_PROTO_UPB_H_
10 #define XDS_CORE_V3_CONTEXT_PARAMS_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 
27 extern const upb_msglayout xds_core_v3_ContextParams_msginit;
28 extern const upb_msglayout xds_core_v3_ContextParams_ParamsEntry_msginit;
29 
30 
31 /* xds.core.v3.ContextParams */
32 
35 }
36 UPB_INLINE xds_core_v3_ContextParams *xds_core_v3_ContextParams_parse(const char *buf, size_t size,
37  upb_arena *arena) {
39  return (ret && upb_decode(buf, size, ret, &xds_core_v3_ContextParams_msginit, arena)) ? ret : NULL;
40 }
41 UPB_INLINE xds_core_v3_ContextParams *xds_core_v3_ContextParams_parse_ex(const char *buf, size_t size,
42  upb_arena *arena, int options) {
44  return (ret && _upb_decode(buf, size, ret, &xds_core_v3_ContextParams_msginit, arena, options))
45  ? ret : NULL;
46 }
47 UPB_INLINE char *xds_core_v3_ContextParams_serialize(const xds_core_v3_ContextParams *msg, upb_arena *arena, size_t *len) {
48  return upb_encode(msg, &xds_core_v3_ContextParams_msginit, arena, len);
49 }
50 
51 UPB_INLINE bool xds_core_v3_ContextParams_has_params(const xds_core_v3_ContextParams *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); }
52 UPB_INLINE size_t xds_core_v3_ContextParams_params_size(const xds_core_v3_ContextParams *msg) {return _upb_msg_map_size(msg, UPB_SIZE(0, 0)); }
53 UPB_INLINE bool xds_core_v3_ContextParams_params_get(const xds_core_v3_ContextParams *msg, upb_strview key, upb_strview *val) { return _upb_msg_map_get(msg, UPB_SIZE(0, 0), &key, 0, val, 0); }
54 UPB_INLINE const xds_core_v3_ContextParams_ParamsEntry* xds_core_v3_ContextParams_params_next(const xds_core_v3_ContextParams *msg, size_t* iter) { return (const xds_core_v3_ContextParams_ParamsEntry*)_upb_msg_map_next(msg, UPB_SIZE(0, 0), iter); }
55 
56 UPB_INLINE void xds_core_v3_ContextParams_params_clear(xds_core_v3_ContextParams *msg) { _upb_msg_map_clear(msg, UPB_SIZE(0, 0)); }
57 UPB_INLINE bool xds_core_v3_ContextParams_params_set(xds_core_v3_ContextParams *msg, upb_strview key, upb_strview val, upb_arena *a) { return _upb_msg_map_set(msg, UPB_SIZE(0, 0), &key, 0, &val, 0, a); }
58 UPB_INLINE bool xds_core_v3_ContextParams_params_delete(xds_core_v3_ContextParams *msg, upb_strview key) { return _upb_msg_map_delete(msg, UPB_SIZE(0, 0), &key, 0); }
60 
61 /* xds.core.v3.ContextParams.ParamsEntry */
62 
64  upb_strview ret;
65  _upb_msg_map_key(msg, &ret, 0);
66  return ret;
67 }
69  upb_strview ret;
70  _upb_msg_map_value(msg, &ret, 0);
71  return ret;
72 }
73 
75  _upb_msg_map_set_value(msg, &value, 0);
76 }
77 
78 #ifdef __cplusplus
79 } /* extern "C" */
80 #endif
81 
82 #include "upb/port_undef.inc"
83 
84 #endif /* XDS_CORE_V3_CONTEXT_PARAMS_PROTO_UPB_H_ */
UPB_INLINE bool xds_core_v3_ContextParams_params_get(const xds_core_v3_ContextParams *msg, upb_strview key, upb_strview *val)
Definition: context_params.upb.h:53
UPB_INLINE xds_core_v3_ContextParams * xds_core_v3_ContextParams_parse(const char *buf, size_t size, upb_arena *arena)
Definition: context_params.upb.h:36
UPB_INLINE xds_core_v3_ContextParams * xds_core_v3_ContextParams_new(upb_arena *arena)
Definition: context_params.upb.h:33
UPB_INLINE upb_strview xds_core_v3_ContextParams_ParamsEntry_value(const xds_core_v3_ContextParams_ParamsEntry *msg)
Definition: context_params.upb.h:68
UPB_INLINE void xds_core_v3_ContextParams_ParamsEntry_set_value(xds_core_v3_ContextParams_ParamsEntry *msg, upb_strview value)
Definition: context_params.upb.h:74
struct xds_core_v3_ContextParams_ParamsEntry xds_core_v3_ContextParams_ParamsEntry
Definition: context_params.upb.h:26
UPB_INLINE bool xds_core_v3_ContextParams_params_set(xds_core_v3_ContextParams *msg, upb_strview key, upb_strview val, upb_arena *a)
Definition: context_params.upb.h:57
UPB_INLINE xds_core_v3_ContextParams * xds_core_v3_ContextParams_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: context_params.upb.h:41
UPB_INLINE upb_strview xds_core_v3_ContextParams_ParamsEntry_key(const xds_core_v3_ContextParams_ParamsEntry *msg)
Definition: context_params.upb.h:63
UPB_INLINE bool xds_core_v3_ContextParams_params_delete(xds_core_v3_ContextParams *msg, upb_strview key)
Definition: context_params.upb.h:58
UPB_INLINE void xds_core_v3_ContextParams_params_clear(xds_core_v3_ContextParams *msg)
Definition: context_params.upb.h:56
struct xds_core_v3_ContextParams xds_core_v3_ContextParams
Definition: context_params.upb.h:25
UPB_INLINE bool xds_core_v3_ContextParams_has_params(const xds_core_v3_ContextParams *msg)
Definition: context_params.upb.h:51
UPB_INLINE xds_core_v3_ContextParams_ParamsEntry * xds_core_v3_ContextParams_params_nextmutable(xds_core_v3_ContextParams *msg, size_t *iter)
Definition: context_params.upb.h:59
UPB_INLINE size_t xds_core_v3_ContextParams_params_size(const xds_core_v3_ContextParams *msg)
Definition: context_params.upb.h:52
const upb_msglayout xds_core_v3_ContextParams_msginit
Definition: context_params.upb.c:24
UPB_INLINE char * xds_core_v3_ContextParams_serialize(const xds_core_v3_ContextParams *msg, upb_arena *arena, size_t *len)
Definition: context_params.upb.h:47
const upb_msglayout xds_core_v3_ContextParams_ParamsEntry_msginit
Definition: context_params.upb.c:35
UPB_INLINE const xds_core_v3_ContextParams_ParamsEntry * xds_core_v3_ContextParams_params_next(const xds_core_v3_ContextParams *msg, size_t *iter)
Definition: context_params.upb.h:54
upb_arena * arena
Definition: xds_api.cc:909