| 1 |
/* This file was generated by upbc (the upb compiler) from the input |
| 2 |
* file: |
| 3 |
* |
| 4 |
* google/api/http.proto |
| 5 |
* |
| 6 |
* Do not edit -- your changes will be discarded when the file is |
| 7 |
* regenerated. */ |
| 8 |
|
| 9 |
#ifndef GOOGLE_API_HTTP_PROTO_UPB_H_ |
| 10 |
#define GOOGLE_API_HTTP_PROTO_UPB_H_ |
| 11 |
|
| 12 |
#include "upb/msg_internal.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 google_api_Http; |
| 24 |
struct google_api_HttpRule; |
| 25 |
struct google_api_CustomHttpPattern; |
| 26 |
typedef struct google_api_Http google_api_Http; |
| 27 |
typedef struct google_api_HttpRule google_api_HttpRule; |
| 28 |
typedef struct google_api_CustomHttpPattern google_api_CustomHttpPattern; |
| 29 |
extern const upb_MiniTable google_api_Http_msginit; |
| 30 |
extern const upb_MiniTable google_api_HttpRule_msginit; |
| 31 |
extern const upb_MiniTable google_api_CustomHttpPattern_msginit; |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
/* google.api.Http */ |
| 36 |
|
| 37 |
UPB_INLINE google_api_Http* google_api_Http_new(upb_Arena* arena) { |
| 38 |
return (google_api_Http*)_upb_Message_New(&google_api_Http_msginit, arena); |
| 39 |
} |
| 40 |
UPB_INLINE google_api_Http* google_api_Http_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 41 |
google_api_Http* ret = google_api_Http_new(arena); |
| 42 |
if (!ret) return NULL; |
| 43 |
if (upb_Decode(buf, size, ret, &google_api_Http_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 44 |
return NULL; |
| 45 |
} |
| 46 |
return ret; |
| 47 |
} |
| 48 |
UPB_INLINE google_api_Http* google_api_Http_parse_ex(const char* buf, size_t size, |
| 49 |
const upb_ExtensionRegistry* extreg, |
| 50 |
int options, upb_Arena* arena) { |
| 51 |
google_api_Http* ret = google_api_Http_new(arena); |
| 52 |
if (!ret) return NULL; |
| 53 |
if (upb_Decode(buf, size, ret, &google_api_Http_msginit, extreg, options, arena) != |
| 54 |
kUpb_DecodeStatus_Ok) { |
| 55 |
return NULL; |
| 56 |
} |
| 57 |
return ret; |
| 58 |
} |
| 59 |
UPB_INLINE char* google_api_Http_serialize(const google_api_Http* msg, upb_Arena* arena, size_t* len) { |
| 60 |
char* ptr; |
| 61 |
(void)upb_Encode(msg, &google_api_Http_msginit, 0, arena, &ptr, len); |
| 62 |
return ptr; |
| 63 |
} |
| 64 |
UPB_INLINE char* google_api_Http_serialize_ex(const google_api_Http* msg, int options, |
| 65 |
upb_Arena* arena, size_t* len) { |
| 66 |
char* ptr; |
| 67 |
(void)upb_Encode(msg, &google_api_Http_msginit, options, arena, &ptr, len); |
| 68 |
return ptr; |
| 69 |
} |
| 70 |
UPB_INLINE bool google_api_Http_has_rules(const google_api_Http* msg) { |
| 71 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); |
| 72 |
} |
| 73 |
UPB_INLINE void google_api_Http_clear_rules(const google_api_Http* msg) { |
| 74 |
_upb_array_detach(msg, UPB_SIZE(4, 8)); |
| 75 |
} |
| 76 |
UPB_INLINE const google_api_HttpRule* const* google_api_Http_rules(const google_api_Http* msg, size_t* len) { |
| 77 |
return (const google_api_HttpRule* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); |
| 78 |
} |
| 79 |
UPB_INLINE void google_api_Http_clear_fully_decode_reserved_expansion(const google_api_Http* msg) { |
| 80 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = 0; |
| 81 |
} |
| 82 |
UPB_INLINE bool google_api_Http_fully_decode_reserved_expansion(const google_api_Http* msg) { |
| 83 |
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool); |
| 84 |
} |
| 85 |
|
| 86 |
UPB_INLINE google_api_HttpRule** google_api_Http_mutable_rules(google_api_Http* msg, size_t* len) { |
| 87 |
return (google_api_HttpRule**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
| 88 |
} |
| 89 |
UPB_INLINE google_api_HttpRule** google_api_Http_resize_rules(google_api_Http* msg, size_t len, upb_Arena* arena) { |
| 90 |
return (google_api_HttpRule**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
| 91 |
} |
| 92 |
UPB_INLINE struct google_api_HttpRule* google_api_Http_add_rules(google_api_Http* msg, upb_Arena* arena) { |
| 93 |
struct google_api_HttpRule* sub = (struct google_api_HttpRule*)_upb_Message_New(&google_api_HttpRule_msginit, arena); |
| 94 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena); |
| 95 |
if (!ok) return NULL; |
| 96 |
return sub; |
| 97 |
} |
| 98 |
UPB_INLINE void google_api_Http_set_fully_decode_reserved_expansion(google_api_Http *msg, bool value) { |
| 99 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = value; |
| 100 |
} |
| 101 |
|
| 102 |
/* google.api.HttpRule */ |
| 103 |
|
| 104 |
UPB_INLINE google_api_HttpRule* google_api_HttpRule_new(upb_Arena* arena) { |
| 105 |
return (google_api_HttpRule*)_upb_Message_New(&google_api_HttpRule_msginit, arena); |
| 106 |
} |
| 107 |
UPB_INLINE google_api_HttpRule* google_api_HttpRule_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 108 |
google_api_HttpRule* ret = google_api_HttpRule_new(arena); |
| 109 |
if (!ret) return NULL; |
| 110 |
if (upb_Decode(buf, size, ret, &google_api_HttpRule_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 111 |
return NULL; |
| 112 |
} |
| 113 |
return ret; |
| 114 |
} |
| 115 |
UPB_INLINE google_api_HttpRule* google_api_HttpRule_parse_ex(const char* buf, size_t size, |
| 116 |
const upb_ExtensionRegistry* extreg, |
| 117 |
int options, upb_Arena* arena) { |
| 118 |
google_api_HttpRule* ret = google_api_HttpRule_new(arena); |
| 119 |
if (!ret) return NULL; |
| 120 |
if (upb_Decode(buf, size, ret, &google_api_HttpRule_msginit, extreg, options, arena) != |
| 121 |
kUpb_DecodeStatus_Ok) { |
| 122 |
return NULL; |
| 123 |
} |
| 124 |
return ret; |
| 125 |
} |
| 126 |
UPB_INLINE char* google_api_HttpRule_serialize(const google_api_HttpRule* msg, upb_Arena* arena, size_t* len) { |
| 127 |
char* ptr; |
| 128 |
(void)upb_Encode(msg, &google_api_HttpRule_msginit, 0, arena, &ptr, len); |
| 129 |
return ptr; |
| 130 |
} |
| 131 |
UPB_INLINE char* google_api_HttpRule_serialize_ex(const google_api_HttpRule* msg, int options, |
| 132 |
upb_Arena* arena, size_t* len) { |
| 133 |
char* ptr; |
| 134 |
(void)upb_Encode(msg, &google_api_HttpRule_msginit, options, arena, &ptr, len); |
| 135 |
return ptr; |
| 136 |
} |
| 137 |
typedef enum { |
| 138 |
google_api_HttpRule_pattern_get = 2, |
| 139 |
google_api_HttpRule_pattern_put = 3, |
| 140 |
google_api_HttpRule_pattern_post = 4, |
| 141 |
google_api_HttpRule_pattern_delete = 5, |
| 142 |
google_api_HttpRule_pattern_patch = 6, |
| 143 |
google_api_HttpRule_pattern_custom = 8, |
| 144 |
google_api_HttpRule_pattern_NOT_SET = 0 |
| 145 |
} google_api_HttpRule_pattern_oneofcases; |
| 146 |
UPB_INLINE google_api_HttpRule_pattern_oneofcases google_api_HttpRule_pattern_case(const google_api_HttpRule* msg) { |
| 147 |
return (google_api_HttpRule_pattern_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); |
| 148 |
} |
| 149 |
UPB_INLINE void google_api_HttpRule_clear_selector(const google_api_HttpRule* msg) { |
| 150 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 151 |
} |
| 152 |
UPB_INLINE upb_StringView google_api_HttpRule_selector(const google_api_HttpRule* msg) { |
| 153 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView); |
| 154 |
} |
| 155 |
UPB_INLINE bool google_api_HttpRule_has_get(const google_api_HttpRule* msg) { |
| 156 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 2; |
| 157 |
} |
| 158 |
UPB_INLINE void google_api_HttpRule_clear_get(const google_api_HttpRule* msg) { |
| 159 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), upb_StringView_FromDataAndSize(NULL, 0), UPB_SIZE(0, 0), google_api_HttpRule_pattern_NOT_SET); |
| 160 |
} |
| 161 |
UPB_INLINE upb_StringView google_api_HttpRule_get(const google_api_HttpRule* msg) { |
| 162 |
return UPB_READ_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 2, upb_StringView_FromString("")); |
| 163 |
} |
| 164 |
UPB_INLINE bool google_api_HttpRule_has_put(const google_api_HttpRule* msg) { |
| 165 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 3; |
| 166 |
} |
| 167 |
UPB_INLINE void google_api_HttpRule_clear_put(const google_api_HttpRule* msg) { |
| 168 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), upb_StringView_FromDataAndSize(NULL, 0), UPB_SIZE(0, 0), google_api_HttpRule_pattern_NOT_SET); |
| 169 |
} |
| 170 |
UPB_INLINE upb_StringView google_api_HttpRule_put(const google_api_HttpRule* msg) { |
| 171 |
return UPB_READ_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 3, upb_StringView_FromString("")); |
| 172 |
} |
| 173 |
UPB_INLINE bool google_api_HttpRule_has_post(const google_api_HttpRule* msg) { |
| 174 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 4; |
| 175 |
} |
| 176 |
UPB_INLINE void google_api_HttpRule_clear_post(const google_api_HttpRule* msg) { |
| 177 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), upb_StringView_FromDataAndSize(NULL, 0), UPB_SIZE(0, 0), google_api_HttpRule_pattern_NOT_SET); |
| 178 |
} |
| 179 |
UPB_INLINE upb_StringView google_api_HttpRule_post(const google_api_HttpRule* msg) { |
| 180 |
return UPB_READ_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 4, upb_StringView_FromString("")); |
| 181 |
} |
| 182 |
UPB_INLINE bool google_api_HttpRule_has_delete(const google_api_HttpRule* msg) { |
| 183 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 5; |
| 184 |
} |
| 185 |
UPB_INLINE void google_api_HttpRule_clear_delete(const google_api_HttpRule* msg) { |
| 186 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), upb_StringView_FromDataAndSize(NULL, 0), UPB_SIZE(0, 0), google_api_HttpRule_pattern_NOT_SET); |
| 187 |
} |
| 188 |
UPB_INLINE upb_StringView google_api_HttpRule_delete(const google_api_HttpRule* msg) { |
| 189 |
return UPB_READ_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 5, upb_StringView_FromString("")); |
| 190 |
} |
| 191 |
UPB_INLINE bool google_api_HttpRule_has_patch(const google_api_HttpRule* msg) { |
| 192 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 6; |
| 193 |
} |
| 194 |
UPB_INLINE void google_api_HttpRule_clear_patch(const google_api_HttpRule* msg) { |
| 195 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), upb_StringView_FromDataAndSize(NULL, 0), UPB_SIZE(0, 0), google_api_HttpRule_pattern_NOT_SET); |
| 196 |
} |
| 197 |
UPB_INLINE upb_StringView google_api_HttpRule_patch(const google_api_HttpRule* msg) { |
| 198 |
return UPB_READ_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 6, upb_StringView_FromString("")); |
| 199 |
} |
| 200 |
UPB_INLINE void google_api_HttpRule_clear_body(const google_api_HttpRule* msg) { |
| 201 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 202 |
} |
| 203 |
UPB_INLINE upb_StringView google_api_HttpRule_body(const google_api_HttpRule* msg) { |
| 204 |
return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_StringView); |
| 205 |
} |
| 206 |
UPB_INLINE bool google_api_HttpRule_has_custom(const google_api_HttpRule* msg) { |
| 207 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 8; |
| 208 |
} |
| 209 |
UPB_INLINE void google_api_HttpRule_clear_custom(const google_api_HttpRule* msg) { |
| 210 |
UPB_WRITE_ONEOF(msg, google_api_CustomHttpPattern*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), google_api_HttpRule_pattern_NOT_SET); |
| 211 |
} |
| 212 |
UPB_INLINE const google_api_CustomHttpPattern* google_api_HttpRule_custom(const google_api_HttpRule* msg) { |
| 213 |
return UPB_READ_ONEOF(msg, const google_api_CustomHttpPattern*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 8, NULL); |
| 214 |
} |
| 215 |
UPB_INLINE bool google_api_HttpRule_has_additional_bindings(const google_api_HttpRule* msg) { |
| 216 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 56)); |
| 217 |
} |
| 218 |
UPB_INLINE void google_api_HttpRule_clear_additional_bindings(const google_api_HttpRule* msg) { |
| 219 |
_upb_array_detach(msg, UPB_SIZE(28, 56)); |
| 220 |
} |
| 221 |
UPB_INLINE const google_api_HttpRule* const* google_api_HttpRule_additional_bindings(const google_api_HttpRule* msg, size_t* len) { |
| 222 |
return (const google_api_HttpRule* const*)_upb_array_accessor(msg, UPB_SIZE(28, 56), len); |
| 223 |
} |
| 224 |
UPB_INLINE void google_api_HttpRule_clear_response_body(const google_api_HttpRule* msg) { |
| 225 |
*UPB_PTR_AT(msg, UPB_SIZE(32, 64), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 226 |
} |
| 227 |
UPB_INLINE upb_StringView google_api_HttpRule_response_body(const google_api_HttpRule* msg) { |
| 228 |
return *UPB_PTR_AT(msg, UPB_SIZE(32, 64), upb_StringView); |
| 229 |
} |
| 230 |
|
| 231 |
UPB_INLINE void google_api_HttpRule_set_selector(google_api_HttpRule *msg, upb_StringView value) { |
| 232 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView) = value; |
| 233 |
} |
| 234 |
UPB_INLINE void google_api_HttpRule_set_get(google_api_HttpRule *msg, upb_StringView value) { |
| 235 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 2); |
| 236 |
} |
| 237 |
UPB_INLINE void google_api_HttpRule_set_put(google_api_HttpRule *msg, upb_StringView value) { |
| 238 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 3); |
| 239 |
} |
| 240 |
UPB_INLINE void google_api_HttpRule_set_post(google_api_HttpRule *msg, upb_StringView value) { |
| 241 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 4); |
| 242 |
} |
| 243 |
UPB_INLINE void google_api_HttpRule_set_delete(google_api_HttpRule *msg, upb_StringView value) { |
| 244 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 5); |
| 245 |
} |
| 246 |
UPB_INLINE void google_api_HttpRule_set_patch(google_api_HttpRule *msg, upb_StringView value) { |
| 247 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 6); |
| 248 |
} |
| 249 |
UPB_INLINE void google_api_HttpRule_set_body(google_api_HttpRule *msg, upb_StringView value) { |
| 250 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_StringView) = value; |
| 251 |
} |
| 252 |
UPB_INLINE void google_api_HttpRule_set_custom(google_api_HttpRule *msg, google_api_CustomHttpPattern* value) { |
| 253 |
UPB_WRITE_ONEOF(msg, google_api_CustomHttpPattern*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 8); |
| 254 |
} |
| 255 |
UPB_INLINE struct google_api_CustomHttpPattern* google_api_HttpRule_mutable_custom(google_api_HttpRule* msg, upb_Arena* arena) { |
| 256 |
struct google_api_CustomHttpPattern* sub = (struct google_api_CustomHttpPattern*)google_api_HttpRule_custom(msg); |
| 257 |
if (sub == NULL) { |
| 258 |
sub = (struct google_api_CustomHttpPattern*)_upb_Message_New(&google_api_CustomHttpPattern_msginit, arena); |
| 259 |
if (!sub) return NULL; |
| 260 |
google_api_HttpRule_set_custom(msg, sub); |
| 261 |
} |
| 262 |
return sub; |
| 263 |
} |
| 264 |
UPB_INLINE google_api_HttpRule** google_api_HttpRule_mutable_additional_bindings(google_api_HttpRule* msg, size_t* len) { |
| 265 |
return (google_api_HttpRule**)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 56), len); |
| 266 |
} |
| 267 |
UPB_INLINE google_api_HttpRule** google_api_HttpRule_resize_additional_bindings(google_api_HttpRule* msg, size_t len, upb_Arena* arena) { |
| 268 |
return (google_api_HttpRule**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(28, 56), len, UPB_SIZE(2, 3), arena); |
| 269 |
} |
| 270 |
UPB_INLINE struct google_api_HttpRule* google_api_HttpRule_add_additional_bindings(google_api_HttpRule* msg, upb_Arena* arena) { |
| 271 |
struct google_api_HttpRule* sub = (struct google_api_HttpRule*)_upb_Message_New(&google_api_HttpRule_msginit, arena); |
| 272 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(28, 56), UPB_SIZE(2, 3), &sub, arena); |
| 273 |
if (!ok) return NULL; |
| 274 |
return sub; |
| 275 |
} |
| 276 |
UPB_INLINE void google_api_HttpRule_set_response_body(google_api_HttpRule *msg, upb_StringView value) { |
| 277 |
*UPB_PTR_AT(msg, UPB_SIZE(32, 64), upb_StringView) = value; |
| 278 |
} |
| 279 |
|
| 280 |
/* google.api.CustomHttpPattern */ |
| 281 |
|
| 282 |
UPB_INLINE google_api_CustomHttpPattern* google_api_CustomHttpPattern_new(upb_Arena* arena) { |
| 283 |
return (google_api_CustomHttpPattern*)_upb_Message_New(&google_api_CustomHttpPattern_msginit, arena); |
| 284 |
} |
| 285 |
UPB_INLINE google_api_CustomHttpPattern* google_api_CustomHttpPattern_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 286 |
google_api_CustomHttpPattern* ret = google_api_CustomHttpPattern_new(arena); |
| 287 |
if (!ret) return NULL; |
| 288 |
if (upb_Decode(buf, size, ret, &google_api_CustomHttpPattern_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 289 |
return NULL; |
| 290 |
} |
| 291 |
return ret; |
| 292 |
} |
| 293 |
UPB_INLINE google_api_CustomHttpPattern* google_api_CustomHttpPattern_parse_ex(const char* buf, size_t size, |
| 294 |
const upb_ExtensionRegistry* extreg, |
| 295 |
int options, upb_Arena* arena) { |
| 296 |
google_api_CustomHttpPattern* ret = google_api_CustomHttpPattern_new(arena); |
| 297 |
if (!ret) return NULL; |
| 298 |
if (upb_Decode(buf, size, ret, &google_api_CustomHttpPattern_msginit, extreg, options, arena) != |
| 299 |
kUpb_DecodeStatus_Ok) { |
| 300 |
return NULL; |
| 301 |
} |
| 302 |
return ret; |
| 303 |
} |
| 304 |
UPB_INLINE char* google_api_CustomHttpPattern_serialize(const google_api_CustomHttpPattern* msg, upb_Arena* arena, size_t* len) { |
| 305 |
char* ptr; |
| 306 |
(void)upb_Encode(msg, &google_api_CustomHttpPattern_msginit, 0, arena, &ptr, len); |
| 307 |
return ptr; |
| 308 |
} |
| 309 |
UPB_INLINE char* google_api_CustomHttpPattern_serialize_ex(const google_api_CustomHttpPattern* msg, int options, |
| 310 |
upb_Arena* arena, size_t* len) { |
| 311 |
char* ptr; |
| 312 |
(void)upb_Encode(msg, &google_api_CustomHttpPattern_msginit, options, arena, &ptr, len); |
| 313 |
return ptr; |
| 314 |
} |
| 315 |
UPB_INLINE void google_api_CustomHttpPattern_clear_kind(const google_api_CustomHttpPattern* msg) { |
| 316 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 317 |
} |
| 318 |
UPB_INLINE upb_StringView google_api_CustomHttpPattern_kind(const google_api_CustomHttpPattern* msg) { |
| 319 |
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_StringView); |
| 320 |
} |
| 321 |
UPB_INLINE void google_api_CustomHttpPattern_clear_path(const google_api_CustomHttpPattern* msg) { |
| 322 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 323 |
} |
| 324 |
UPB_INLINE upb_StringView google_api_CustomHttpPattern_path(const google_api_CustomHttpPattern* msg) { |
| 325 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_StringView); |
| 326 |
} |
| 327 |
|
| 328 |
UPB_INLINE void google_api_CustomHttpPattern_set_kind(google_api_CustomHttpPattern *msg, upb_StringView value) { |
| 329 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_StringView) = value; |
| 330 |
} |
| 331 |
UPB_INLINE void google_api_CustomHttpPattern_set_path(google_api_CustomHttpPattern *msg, upb_StringView value) { |
| 332 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_StringView) = value; |
| 333 |
} |
| 334 |
|
| 335 |
extern const upb_MiniTable_File google_api_http_proto_upb_file_layout; |
| 336 |
|
| 337 |
#ifdef __cplusplus |
| 338 |
} /* extern "C" */ |
| 339 |
#endif |
| 340 |
|
| 341 |
#include "upb/port_undef.inc" |
| 342 |
|
| 343 |
#endif /* GOOGLE_API_HTTP_PROTO_UPB_H_ */ |