Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / grpc / deps / grpc / src / core / ext / upb-generated / google / protobuf / wrappers.upb.h
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
23 struct google_protobuf_DoubleValue;
24 struct google_protobuf_FloatValue;
25 struct google_protobuf_Int64Value;
26 struct google_protobuf_UInt64Value;
27 struct google_protobuf_Int32Value;
28 struct google_protobuf_UInt32Value;
29 struct google_protobuf_BoolValue;
30 struct google_protobuf_StringValue;
31 struct google_protobuf_BytesValue;
32 typedef struct google_protobuf_DoubleValue google_protobuf_DoubleValue;
33 typedef struct google_protobuf_FloatValue google_protobuf_FloatValue;
34 typedef struct google_protobuf_Int64Value google_protobuf_Int64Value;
35 typedef struct google_protobuf_UInt64Value google_protobuf_UInt64Value;
36 typedef struct google_protobuf_Int32Value google_protobuf_Int32Value;
37 typedef struct google_protobuf_UInt32Value google_protobuf_UInt32Value;
38 typedef struct google_protobuf_BoolValue google_protobuf_BoolValue;
39 typedef struct google_protobuf_StringValue google_protobuf_StringValue;
40 typedef struct google_protobuf_BytesValue google_protobuf_BytesValue;
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
54 UPB_INLINE google_protobuf_DoubleValue *google_protobuf_DoubleValue_new(upb_arena *arena) {
55   return (google_protobuf_DoubleValue *)upb_msg_new(&google_protobuf_DoubleValue_msginit, arena);
56 }
57 UPB_INLINE google_protobuf_DoubleValue *google_protobuf_DoubleValue_parse(const char *buf, size_t size,
58                         upb_arena *arena) {
59   google_protobuf_DoubleValue *ret = google_protobuf_DoubleValue_new(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
68 UPB_INLINE void google_protobuf_DoubleValue_set_value(google_protobuf_DoubleValue *msg, double value) {
69   UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)) = value;
70 }
71
72 /* google.protobuf.FloatValue */
73
74 UPB_INLINE google_protobuf_FloatValue *google_protobuf_FloatValue_new(upb_arena *arena) {
75   return (google_protobuf_FloatValue *)upb_msg_new(&google_protobuf_FloatValue_msginit, arena);
76 }
77 UPB_INLINE google_protobuf_FloatValue *google_protobuf_FloatValue_parse(const char *buf, size_t size,
78                         upb_arena *arena) {
79   google_protobuf_FloatValue *ret = google_protobuf_FloatValue_new(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
88 UPB_INLINE void google_protobuf_FloatValue_set_value(google_protobuf_FloatValue *msg, float value) {
89   UPB_FIELD_AT(msg, float, UPB_SIZE(0, 0)) = value;
90 }
91
92 /* google.protobuf.Int64Value */
93
94 UPB_INLINE google_protobuf_Int64Value *google_protobuf_Int64Value_new(upb_arena *arena) {
95   return (google_protobuf_Int64Value *)upb_msg_new(&google_protobuf_Int64Value_msginit, arena);
96 }
97 UPB_INLINE google_protobuf_Int64Value *google_protobuf_Int64Value_parse(const char *buf, size_t size,
98                         upb_arena *arena) {
99   google_protobuf_Int64Value *ret = google_protobuf_Int64Value_new(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
108 UPB_INLINE void google_protobuf_Int64Value_set_value(google_protobuf_Int64Value *msg, int64_t value) {
109   UPB_FIELD_AT(msg, int64_t, UPB_SIZE(0, 0)) = value;
110 }
111
112 /* google.protobuf.UInt64Value */
113
114 UPB_INLINE google_protobuf_UInt64Value *google_protobuf_UInt64Value_new(upb_arena *arena) {
115   return (google_protobuf_UInt64Value *)upb_msg_new(&google_protobuf_UInt64Value_msginit, arena);
116 }
117 UPB_INLINE google_protobuf_UInt64Value *google_protobuf_UInt64Value_parse(const char *buf, size_t size,
118                         upb_arena *arena) {
119   google_protobuf_UInt64Value *ret = google_protobuf_UInt64Value_new(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
128 UPB_INLINE void google_protobuf_UInt64Value_set_value(google_protobuf_UInt64Value *msg, uint64_t value) {
129   UPB_FIELD_AT(msg, uint64_t, UPB_SIZE(0, 0)) = value;
130 }
131
132 /* google.protobuf.Int32Value */
133
134 UPB_INLINE google_protobuf_Int32Value *google_protobuf_Int32Value_new(upb_arena *arena) {
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) {
139   google_protobuf_Int32Value *ret = google_protobuf_Int32Value_new(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
148 UPB_INLINE void google_protobuf_Int32Value_set_value(google_protobuf_Int32Value *msg, int32_t value) {
149   UPB_FIELD_AT(msg, int32_t, UPB_SIZE(0, 0)) = value;
150 }
151
152 /* google.protobuf.UInt32Value */
153
154 UPB_INLINE google_protobuf_UInt32Value *google_protobuf_UInt32Value_new(upb_arena *arena) {
155   return (google_protobuf_UInt32Value *)upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
156 }
157 UPB_INLINE google_protobuf_UInt32Value *google_protobuf_UInt32Value_parse(const char *buf, size_t size,
158                         upb_arena *arena) {
159   google_protobuf_UInt32Value *ret = google_protobuf_UInt32Value_new(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
168 UPB_INLINE void google_protobuf_UInt32Value_set_value(google_protobuf_UInt32Value *msg, uint32_t value) {
169   UPB_FIELD_AT(msg, uint32_t, UPB_SIZE(0, 0)) = value;
170 }
171
172 /* google.protobuf.BoolValue */
173
174 UPB_INLINE google_protobuf_BoolValue *google_protobuf_BoolValue_new(upb_arena *arena) {
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) {
179   google_protobuf_BoolValue *ret = google_protobuf_BoolValue_new(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
188 UPB_INLINE void google_protobuf_BoolValue_set_value(google_protobuf_BoolValue *msg, bool value) {
189   UPB_FIELD_AT(msg, bool, UPB_SIZE(0, 0)) = value;
190 }
191
192 /* google.protobuf.StringValue */
193
194 UPB_INLINE google_protobuf_StringValue *google_protobuf_StringValue_new(upb_arena *arena) {
195   return (google_protobuf_StringValue *)upb_msg_new(&google_protobuf_StringValue_msginit, arena);
196 }
197 UPB_INLINE google_protobuf_StringValue *google_protobuf_StringValue_parse(const char *buf, size_t size,
198                         upb_arena *arena) {
199   google_protobuf_StringValue *ret = google_protobuf_StringValue_new(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
214 UPB_INLINE google_protobuf_BytesValue *google_protobuf_BytesValue_new(upb_arena *arena) {
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) {
219   google_protobuf_BytesValue *ret = google_protobuf_BytesValue_new(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_ */