GRPC Core  9.0.0
wrappers.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  * google/protobuf/wrappers.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef GOOGLE_PROTOBUF_WRAPPERS_PROTO_UPB_H_
10 #define GOOGLE_PROTOBUF_WRAPPERS_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 
41 extern const upb_msglayout google_protobuf_DoubleValue_msginit;
42 extern const upb_msglayout google_protobuf_FloatValue_msginit;
43 extern const upb_msglayout google_protobuf_Int64Value_msginit;
44 extern const upb_msglayout google_protobuf_UInt64Value_msginit;
45 extern const upb_msglayout google_protobuf_Int32Value_msginit;
46 extern const upb_msglayout google_protobuf_UInt32Value_msginit;
47 extern const upb_msglayout google_protobuf_BoolValue_msginit;
48 extern const upb_msglayout google_protobuf_StringValue_msginit;
49 extern const upb_msglayout google_protobuf_BytesValue_msginit;
50 
51 
52 /* google.protobuf.DoubleValue */
53 
56 }
57 UPB_INLINE google_protobuf_DoubleValue *google_protobuf_DoubleValue_parse(const char *buf, size_t size,
58  upb_arena *arena) {
60  return (ret && upb_decode(buf, size, ret, &google_protobuf_DoubleValue_msginit, arena)) ? ret : NULL;
61 }
62 UPB_INLINE char *google_protobuf_DoubleValue_serialize(const google_protobuf_DoubleValue *msg, upb_arena *arena, size_t *len) {
63  return upb_encode(msg, &google_protobuf_DoubleValue_msginit, arena, len);
64 }
65 
66 UPB_INLINE double google_protobuf_DoubleValue_value(const google_protobuf_DoubleValue *msg) { return UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)); }
67 
69  UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)) = value;
70 }
71 
72 /* google.protobuf.FloatValue */
73 
76 }
77 UPB_INLINE google_protobuf_FloatValue *google_protobuf_FloatValue_parse(const char *buf, size_t size,
78  upb_arena *arena) {
80  return (ret && upb_decode(buf, size, ret, &google_protobuf_FloatValue_msginit, arena)) ? ret : NULL;
81 }
82 UPB_INLINE char *google_protobuf_FloatValue_serialize(const google_protobuf_FloatValue *msg, upb_arena *arena, size_t *len) {
83  return upb_encode(msg, &google_protobuf_FloatValue_msginit, arena, len);
84 }
85 
86 UPB_INLINE float google_protobuf_FloatValue_value(const google_protobuf_FloatValue *msg) { return UPB_FIELD_AT(msg, float, UPB_SIZE(0, 0)); }
87 
89  UPB_FIELD_AT(msg, float, UPB_SIZE(0, 0)) = value;
90 }
91 
92 /* google.protobuf.Int64Value */
93 
96 }
97 UPB_INLINE google_protobuf_Int64Value *google_protobuf_Int64Value_parse(const char *buf, size_t size,
98  upb_arena *arena) {
100  return (ret && upb_decode(buf, size, ret, &google_protobuf_Int64Value_msginit, arena)) ? ret : NULL;
101 }
102 UPB_INLINE char *google_protobuf_Int64Value_serialize(const google_protobuf_Int64Value *msg, upb_arena *arena, size_t *len) {
103  return upb_encode(msg, &google_protobuf_Int64Value_msginit, arena, len);
104 }
105 
106 UPB_INLINE int64_t google_protobuf_Int64Value_value(const google_protobuf_Int64Value *msg) { return UPB_FIELD_AT(msg, int64_t, UPB_SIZE(0, 0)); }
107 
109  UPB_FIELD_AT(msg, int64_t, UPB_SIZE(0, 0)) = value;
110 }
111 
112 /* google.protobuf.UInt64Value */
113 
116 }
117 UPB_INLINE google_protobuf_UInt64Value *google_protobuf_UInt64Value_parse(const char *buf, size_t size,
118  upb_arena *arena) {
120  return (ret && upb_decode(buf, size, ret, &google_protobuf_UInt64Value_msginit, arena)) ? ret : NULL;
121 }
122 UPB_INLINE char *google_protobuf_UInt64Value_serialize(const google_protobuf_UInt64Value *msg, upb_arena *arena, size_t *len) {
123  return upb_encode(msg, &google_protobuf_UInt64Value_msginit, arena, len);
124 }
125 
126 UPB_INLINE uint64_t google_protobuf_UInt64Value_value(const google_protobuf_UInt64Value *msg) { return UPB_FIELD_AT(msg, uint64_t, UPB_SIZE(0, 0)); }
127 
129  UPB_FIELD_AT(msg, uint64_t, UPB_SIZE(0, 0)) = value;
130 }
131 
132 /* google.protobuf.Int32Value */
133 
135  return (google_protobuf_Int32Value *)upb_msg_new(&google_protobuf_Int32Value_msginit, arena);
136 }
137 UPB_INLINE google_protobuf_Int32Value *google_protobuf_Int32Value_parse(const char *buf, size_t size,
138  upb_arena *arena) {
140  return (ret && upb_decode(buf, size, ret, &google_protobuf_Int32Value_msginit, arena)) ? ret : NULL;
141 }
142 UPB_INLINE char *google_protobuf_Int32Value_serialize(const google_protobuf_Int32Value *msg, upb_arena *arena, size_t *len) {
143  return upb_encode(msg, &google_protobuf_Int32Value_msginit, arena, len);
144 }
145 
146 UPB_INLINE int32_t google_protobuf_Int32Value_value(const google_protobuf_Int32Value *msg) { return UPB_FIELD_AT(msg, int32_t, UPB_SIZE(0, 0)); }
147 
149  UPB_FIELD_AT(msg, int32_t, UPB_SIZE(0, 0)) = value;
150 }
151 
152 /* google.protobuf.UInt32Value */
153 
156 }
157 UPB_INLINE google_protobuf_UInt32Value *google_protobuf_UInt32Value_parse(const char *buf, size_t size,
158  upb_arena *arena) {
160  return (ret && upb_decode(buf, size, ret, &google_protobuf_UInt32Value_msginit, arena)) ? ret : NULL;
161 }
162 UPB_INLINE char *google_protobuf_UInt32Value_serialize(const google_protobuf_UInt32Value *msg, upb_arena *arena, size_t *len) {
163  return upb_encode(msg, &google_protobuf_UInt32Value_msginit, arena, len);
164 }
165 
166 UPB_INLINE uint32_t google_protobuf_UInt32Value_value(const google_protobuf_UInt32Value *msg) { return UPB_FIELD_AT(msg, uint32_t, UPB_SIZE(0, 0)); }
167 
169  UPB_FIELD_AT(msg, uint32_t, UPB_SIZE(0, 0)) = value;
170 }
171 
172 /* google.protobuf.BoolValue */
173 
175  return (google_protobuf_BoolValue *)upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
176 }
177 UPB_INLINE google_protobuf_BoolValue *google_protobuf_BoolValue_parse(const char *buf, size_t size,
178  upb_arena *arena) {
180  return (ret && upb_decode(buf, size, ret, &google_protobuf_BoolValue_msginit, arena)) ? ret : NULL;
181 }
182 UPB_INLINE char *google_protobuf_BoolValue_serialize(const google_protobuf_BoolValue *msg, upb_arena *arena, size_t *len) {
183  return upb_encode(msg, &google_protobuf_BoolValue_msginit, arena, len);
184 }
185 
186 UPB_INLINE bool google_protobuf_BoolValue_value(const google_protobuf_BoolValue *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(0, 0)); }
187 
189  UPB_FIELD_AT(msg, bool, UPB_SIZE(0, 0)) = value;
190 }
191 
192 /* google.protobuf.StringValue */
193 
196 }
197 UPB_INLINE google_protobuf_StringValue *google_protobuf_StringValue_parse(const char *buf, size_t size,
198  upb_arena *arena) {
200  return (ret && upb_decode(buf, size, ret, &google_protobuf_StringValue_msginit, arena)) ? ret : NULL;
201 }
202 UPB_INLINE char *google_protobuf_StringValue_serialize(const google_protobuf_StringValue *msg, upb_arena *arena, size_t *len) {
203  return upb_encode(msg, &google_protobuf_StringValue_msginit, arena, len);
204 }
205 
206 UPB_INLINE upb_strview google_protobuf_StringValue_value(const google_protobuf_StringValue *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)); }
207 
208 UPB_INLINE void google_protobuf_StringValue_set_value(google_protobuf_StringValue *msg, upb_strview value) {
209  UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)) = value;
210 }
211 
212 /* google.protobuf.BytesValue */
213 
215  return (google_protobuf_BytesValue *)upb_msg_new(&google_protobuf_BytesValue_msginit, arena);
216 }
217 UPB_INLINE google_protobuf_BytesValue *google_protobuf_BytesValue_parse(const char *buf, size_t size,
218  upb_arena *arena) {
220  return (ret && upb_decode(buf, size, ret, &google_protobuf_BytesValue_msginit, arena)) ? ret : NULL;
221 }
222 UPB_INLINE char *google_protobuf_BytesValue_serialize(const google_protobuf_BytesValue *msg, upb_arena *arena, size_t *len) {
223  return upb_encode(msg, &google_protobuf_BytesValue_msginit, arena, len);
224 }
225 
226 UPB_INLINE upb_strview google_protobuf_BytesValue_value(const google_protobuf_BytesValue *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)); }
227 
228 UPB_INLINE void google_protobuf_BytesValue_set_value(google_protobuf_BytesValue *msg, upb_strview value) {
229  UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)) = value;
230 }
231 
232 #ifdef __cplusplus
233 } /* extern "C" */
234 #endif
235 
236 #include "upb/port_undef.inc"
237 
238 #endif /* GOOGLE_PROTOBUF_WRAPPERS_PROTO_UPB_H_ */
const upb_msglayout google_protobuf_UInt64Value_msginit
Definition: wrappers.upb.c:49
const upb_msglayout google_protobuf_Int64Value_msginit
Definition: wrappers.upb.c:39
UPB_INLINE google_protobuf_Int64Value * google_protobuf_Int64Value_new(upb_arena *arena)
Definition: wrappers.upb.h:94
UPB_INLINE upb_strview google_protobuf_BytesValue_value(const google_protobuf_BytesValue *msg)
Definition: wrappers.upb.h:226
UPB_INLINE uint64_t google_protobuf_UInt64Value_value(const google_protobuf_UInt64Value *msg)
Definition: wrappers.upb.h:126
UPB_INLINE google_protobuf_Int32Value * google_protobuf_Int32Value_parse(const char *buf, size_t size, upb_arena *arena)
Definition: wrappers.upb.h:137
UPB_INLINE char * google_protobuf_UInt64Value_serialize(const google_protobuf_UInt64Value *msg, upb_arena *arena, size_t *len)
Definition: wrappers.upb.h:122
struct google_protobuf_StringValue google_protobuf_StringValue
Definition: wrappers.upb.h:39
UPB_INLINE google_protobuf_Int64Value * google_protobuf_Int64Value_parse(const char *buf, size_t size, upb_arena *arena)
Definition: wrappers.upb.h:97
const upb_msglayout google_protobuf_BytesValue_msginit
Definition: wrappers.upb.c:99
UPB_INLINE google_protobuf_FloatValue * google_protobuf_FloatValue_new(upb_arena *arena)
Definition: wrappers.upb.h:74
const upb_msglayout google_protobuf_FloatValue_msginit
Definition: wrappers.upb.c:29
struct google_protobuf_UInt64Value google_protobuf_UInt64Value
Definition: wrappers.upb.h:35
struct google_protobuf_Int32Value google_protobuf_Int32Value
Definition: wrappers.upb.h:36
UPB_INLINE char * google_protobuf_BoolValue_serialize(const google_protobuf_BoolValue *msg, upb_arena *arena, size_t *len)
Definition: wrappers.upb.h:182
UPB_INLINE int64_t google_protobuf_Int64Value_value(const google_protobuf_Int64Value *msg)
Definition: wrappers.upb.h:106
UPB_INLINE google_protobuf_UInt32Value * google_protobuf_UInt32Value_new(upb_arena *arena)
Definition: wrappers.upb.h:154
UPB_INLINE void google_protobuf_DoubleValue_set_value(google_protobuf_DoubleValue *msg, double value)
Definition: wrappers.upb.h:68
UPB_INLINE google_protobuf_BoolValue * google_protobuf_BoolValue_new(upb_arena *arena)
Definition: wrappers.upb.h:174
UPB_INLINE google_protobuf_DoubleValue * google_protobuf_DoubleValue_new(upb_arena *arena)
Definition: wrappers.upb.h:54
UPB_INLINE uint32_t google_protobuf_UInt32Value_value(const google_protobuf_UInt32Value *msg)
Definition: wrappers.upb.h:166
struct google_protobuf_BoolValue google_protobuf_BoolValue
Definition: wrappers.upb.h:38
const upb_msglayout google_protobuf_UInt32Value_msginit
Definition: wrappers.upb.c:69
UPB_INLINE char * google_protobuf_BytesValue_serialize(const google_protobuf_BytesValue *msg, upb_arena *arena, size_t *len)
Definition: wrappers.upb.h:222
UPB_INLINE bool google_protobuf_BoolValue_value(const google_protobuf_BoolValue *msg)
Definition: wrappers.upb.h:186
UPB_INLINE google_protobuf_UInt32Value * google_protobuf_UInt32Value_parse(const char *buf, size_t size, upb_arena *arena)
Definition: wrappers.upb.h:157
UPB_INLINE google_protobuf_DoubleValue * google_protobuf_DoubleValue_parse(const char *buf, size_t size, upb_arena *arena)
Definition: wrappers.upb.h:57
UPB_INLINE upb_strview google_protobuf_StringValue_value(const google_protobuf_StringValue *msg)
Definition: wrappers.upb.h:206
UPB_INLINE google_protobuf_UInt64Value * google_protobuf_UInt64Value_new(upb_arena *arena)
Definition: wrappers.upb.h:114
UPB_INLINE char * google_protobuf_StringValue_serialize(const google_protobuf_StringValue *msg, upb_arena *arena, size_t *len)
Definition: wrappers.upb.h:202
UPB_INLINE google_protobuf_FloatValue * google_protobuf_FloatValue_parse(const char *buf, size_t size, upb_arena *arena)
Definition: wrappers.upb.h:77
UPB_INLINE void google_protobuf_Int64Value_set_value(google_protobuf_Int64Value *msg, int64_t value)
Definition: wrappers.upb.h:108
UPB_INLINE google_protobuf_BytesValue * google_protobuf_BytesValue_parse(const char *buf, size_t size, upb_arena *arena)
Definition: wrappers.upb.h:217
const upb_msglayout google_protobuf_Int32Value_msginit
Definition: wrappers.upb.c:59
const upb_msglayout google_protobuf_DoubleValue_msginit
Definition: wrappers.upb.c:19
UPB_INLINE char * google_protobuf_Int64Value_serialize(const google_protobuf_Int64Value *msg, upb_arena *arena, size_t *len)
Definition: wrappers.upb.h:102
UPB_INLINE double google_protobuf_DoubleValue_value(const google_protobuf_DoubleValue *msg)
Definition: wrappers.upb.h:66
UPB_INLINE google_protobuf_StringValue * google_protobuf_StringValue_new(upb_arena *arena)
Definition: wrappers.upb.h:194
struct google_protobuf_BytesValue google_protobuf_BytesValue
Definition: wrappers.upb.h:40
UPB_INLINE char * google_protobuf_DoubleValue_serialize(const google_protobuf_DoubleValue *msg, upb_arena *arena, size_t *len)
Definition: wrappers.upb.h:62
UPB_INLINE void google_protobuf_BoolValue_set_value(google_protobuf_BoolValue *msg, bool value)
Definition: wrappers.upb.h:188
UPB_INLINE char * google_protobuf_UInt32Value_serialize(const google_protobuf_UInt32Value *msg, upb_arena *arena, size_t *len)
Definition: wrappers.upb.h:162
UPB_INLINE google_protobuf_StringValue * google_protobuf_StringValue_parse(const char *buf, size_t size, upb_arena *arena)
Definition: wrappers.upb.h:197
UPB_INLINE google_protobuf_BytesValue * google_protobuf_BytesValue_new(upb_arena *arena)
Definition: wrappers.upb.h:214
const upb_msglayout google_protobuf_StringValue_msginit
Definition: wrappers.upb.c:89
UPB_INLINE int32_t google_protobuf_Int32Value_value(const google_protobuf_Int32Value *msg)
Definition: wrappers.upb.h:146
const upb_msglayout google_protobuf_BoolValue_msginit
Definition: wrappers.upb.c:79
struct google_protobuf_Int64Value google_protobuf_Int64Value
Definition: wrappers.upb.h:34
UPB_INLINE char * google_protobuf_Int32Value_serialize(const google_protobuf_Int32Value *msg, upb_arena *arena, size_t *len)
Definition: wrappers.upb.h:142
UPB_INLINE void google_protobuf_StringValue_set_value(google_protobuf_StringValue *msg, upb_strview value)
Definition: wrappers.upb.h:208
struct google_protobuf_FloatValue google_protobuf_FloatValue
Definition: wrappers.upb.h:33
UPB_INLINE void google_protobuf_UInt32Value_set_value(google_protobuf_UInt32Value *msg, uint32_t value)
Definition: wrappers.upb.h:168
UPB_INLINE void google_protobuf_Int32Value_set_value(google_protobuf_Int32Value *msg, int32_t value)
Definition: wrappers.upb.h:148
struct google_protobuf_UInt32Value google_protobuf_UInt32Value
Definition: wrappers.upb.h:37
UPB_INLINE char * google_protobuf_FloatValue_serialize(const google_protobuf_FloatValue *msg, upb_arena *arena, size_t *len)
Definition: wrappers.upb.h:82
UPB_INLINE float google_protobuf_FloatValue_value(const google_protobuf_FloatValue *msg)
Definition: wrappers.upb.h:86
UPB_INLINE google_protobuf_Int32Value * google_protobuf_Int32Value_new(upb_arena *arena)
Definition: wrappers.upb.h:134
UPB_INLINE google_protobuf_BoolValue * google_protobuf_BoolValue_parse(const char *buf, size_t size, upb_arena *arena)
Definition: wrappers.upb.h:177
UPB_INLINE void google_protobuf_FloatValue_set_value(google_protobuf_FloatValue *msg, float value)
Definition: wrappers.upb.h:88
UPB_INLINE void google_protobuf_UInt64Value_set_value(google_protobuf_UInt64Value *msg, uint64_t value)
Definition: wrappers.upb.h:128
UPB_INLINE google_protobuf_UInt64Value * google_protobuf_UInt64Value_parse(const char *buf, size_t size, upb_arena *arena)
Definition: wrappers.upb.h:117
struct google_protobuf_DoubleValue google_protobuf_DoubleValue
Definition: wrappers.upb.h:32
UPB_INLINE void google_protobuf_BytesValue_set_value(google_protobuf_BytesValue *msg, upb_strview value)
Definition: wrappers.upb.h:228