9 #ifndef GOOGLE_API_HTTP_PROTO_UPB_H_
10 #define GOOGLE_API_HTTP_PROTO_UPB_H_
13 #include "upb/decode.h"
14 #include "upb/decode_fast.h"
15 #include "upb/encode.h"
17 #include "upb/port_def.inc"
45 upb_arena *
arena,
int options) {
66 bool ok = _upb_array_append_accessor2(
67 msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub,
arena);
72 *UPB_PTR_AT(msg, UPB_SIZE(0, 0),
bool) = value;
86 upb_arena *
arena,
int options) {
125 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
128 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 2);
131 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 3);
134 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 4);
137 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 5);
140 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 6);
143 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value;
152 if (!sub)
return NULL;
165 bool ok = _upb_array_append_accessor2(
166 msg, UPB_SIZE(24, 48), UPB_SIZE(2, 3), &sub,
arena);
167 if (!ok)
return NULL;
171 *UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_strview) = value;
185 upb_arena *
arena,
int options) {
198 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
201 *UPB_PTR_AT(msg, UPB_SIZE(8, 16), upb_strview) = value;
208 #include "upb/port_undef.inc"
UPB_INLINE bool google_api_Http_fully_decode_reserved_expansion(const google_api_Http *msg)
Definition: http.upb.h:56
UPB_INLINE google_api_HttpRule ** google_api_Http_mutable_rules(google_api_Http *msg, size_t *len)
Definition: http.upb.h:58
UPB_INLINE google_api_HttpRule_pattern_oneofcases google_api_HttpRule_pattern_case(const google_api_HttpRule *msg)
Definition: http.upb.h:104
UPB_INLINE bool google_api_HttpRule_has_custom(const google_api_HttpRule *msg)
Definition: http.upb.h:118
UPB_INLINE bool google_api_HttpRule_has_put(const google_api_HttpRule *msg)
Definition: http.upb.h:109
UPB_INLINE void google_api_HttpRule_set_selector(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:124
UPB_INLINE void google_api_CustomHttpPattern_set_path(google_api_CustomHttpPattern *msg, upb_strview value)
Definition: http.upb.h:200
UPB_INLINE upb_strview google_api_HttpRule_response_body(const google_api_HttpRule *msg)
Definition: http.upb.h:122
UPB_INLINE google_api_CustomHttpPattern * google_api_CustomHttpPattern_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: http.upb.h:184
UPB_INLINE void google_api_HttpRule_set_custom(google_api_HttpRule *msg, google_api_CustomHttpPattern *value)
Definition: http.upb.h:145
UPB_INLINE upb_strview google_api_HttpRule_selector(const google_api_HttpRule *msg)
Definition: http.upb.h:106
struct google_api_Http google_api_Http
Definition: http.upb.h:26
const upb_msglayout google_api_HttpRule_msginit
Definition: http.upb.c:48
UPB_INLINE void google_api_HttpRule_set_delete(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:136
UPB_INLINE struct google_api_CustomHttpPattern * google_api_HttpRule_mutable_custom(google_api_HttpRule *msg, upb_arena *arena)
Definition: http.upb.h:148
UPB_INLINE void google_api_HttpRule_set_response_body(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:170
UPB_INLINE char * google_api_CustomHttpPattern_serialize(const google_api_CustomHttpPattern *msg, upb_arena *arena, size_t *len)
Definition: http.upb.h:190
UPB_INLINE google_api_HttpRule ** google_api_HttpRule_resize_additional_bindings(google_api_HttpRule *msg, size_t len, upb_arena *arena)
Definition: http.upb.h:160
UPB_INLINE google_api_Http * google_api_Http_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: http.upb.h:44
UPB_INLINE google_api_Http * google_api_Http_parse(const char *buf, size_t size, upb_arena *arena)
Definition: http.upb.h:39
UPB_INLINE void google_api_CustomHttpPattern_set_kind(google_api_CustomHttpPattern *msg, upb_strview value)
Definition: http.upb.h:197
UPB_INLINE upb_strview google_api_HttpRule_post(const google_api_HttpRule *msg)
Definition: http.upb.h:112
UPB_INLINE void google_api_HttpRule_set_put(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:130
UPB_INLINE void google_api_HttpRule_set_get(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:127
UPB_INLINE google_api_HttpRule * google_api_HttpRule_parse(const char *buf, size_t size, upb_arena *arena)
Definition: http.upb.h:80
UPB_INLINE upb_strview google_api_CustomHttpPattern_kind(const google_api_CustomHttpPattern *msg)
Definition: http.upb.h:194
const upb_msglayout google_api_Http_msginit
Definition: http.upb.c:24
UPB_INLINE upb_strview google_api_CustomHttpPattern_path(const google_api_CustomHttpPattern *msg)
Definition: http.upb.h:195
UPB_INLINE struct google_api_HttpRule * google_api_Http_add_rules(google_api_Http *msg, upb_arena *arena)
Definition: http.upb.h:64
UPB_INLINE void google_api_HttpRule_set_patch(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:139
UPB_INLINE bool google_api_HttpRule_has_additional_bindings(const google_api_HttpRule *msg)
Definition: http.upb.h:120
UPB_INLINE const google_api_HttpRule *const * google_api_HttpRule_additional_bindings(const google_api_HttpRule *msg, size_t *len)
Definition: http.upb.h:121
UPB_INLINE const google_api_HttpRule *const * google_api_Http_rules(const google_api_Http *msg, size_t *len)
Definition: http.upb.h:55
UPB_INLINE google_api_HttpRule ** google_api_Http_resize_rules(google_api_Http *msg, size_t len, upb_arena *arena)
Definition: http.upb.h:61
UPB_INLINE void google_api_HttpRule_set_body(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:142
UPB_INLINE upb_strview google_api_HttpRule_put(const google_api_HttpRule *msg)
Definition: http.upb.h:110
struct google_api_CustomHttpPattern google_api_CustomHttpPattern
Definition: http.upb.h:28
google_api_HttpRule_pattern_oneofcases
Definition: http.upb.h:95
@ google_api_HttpRule_pattern_delete
Definition: http.upb.h:99
@ google_api_HttpRule_pattern_put
Definition: http.upb.h:97
@ google_api_HttpRule_pattern_post
Definition: http.upb.h:98
@ google_api_HttpRule_pattern_get
Definition: http.upb.h:96
@ google_api_HttpRule_pattern_patch
Definition: http.upb.h:100
@ google_api_HttpRule_pattern_custom
Definition: http.upb.h:101
@ google_api_HttpRule_pattern_NOT_SET
Definition: http.upb.h:102
UPB_INLINE google_api_HttpRule * google_api_HttpRule_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: http.upb.h:85
UPB_INLINE upb_strview google_api_HttpRule_get(const google_api_HttpRule *msg)
Definition: http.upb.h:108
UPB_INLINE google_api_CustomHttpPattern * google_api_CustomHttpPattern_new(upb_arena *arena)
Definition: http.upb.h:176
UPB_INLINE google_api_Http * google_api_Http_new(upb_arena *arena)
Definition: http.upb.h:36
UPB_INLINE google_api_HttpRule ** google_api_HttpRule_mutable_additional_bindings(google_api_HttpRule *msg, size_t *len)
Definition: http.upb.h:157
UPB_INLINE bool google_api_HttpRule_has_delete(const google_api_HttpRule *msg)
Definition: http.upb.h:113
UPB_INLINE bool google_api_HttpRule_has_get(const google_api_HttpRule *msg)
Definition: http.upb.h:107
UPB_INLINE struct google_api_HttpRule * google_api_HttpRule_add_additional_bindings(google_api_HttpRule *msg, upb_arena *arena)
Definition: http.upb.h:163
const upb_msglayout google_api_CustomHttpPattern_msginit
Definition: http.upb.c:59
UPB_INLINE const google_api_CustomHttpPattern * google_api_HttpRule_custom(const google_api_HttpRule *msg)
Definition: http.upb.h:119
UPB_INLINE bool google_api_HttpRule_has_post(const google_api_HttpRule *msg)
Definition: http.upb.h:111
UPB_INLINE upb_strview google_api_HttpRule_body(const google_api_HttpRule *msg)
Definition: http.upb.h:117
UPB_INLINE void google_api_HttpRule_set_post(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:133
UPB_INLINE google_api_CustomHttpPattern * google_api_CustomHttpPattern_parse(const char *buf, size_t size, upb_arena *arena)
Definition: http.upb.h:179
UPB_INLINE upb_strview google_api_HttpRule_patch(const google_api_HttpRule *msg)
Definition: http.upb.h:116
UPB_INLINE bool google_api_Http_has_rules(const google_api_Http *msg)
Definition: http.upb.h:54
UPB_INLINE char * google_api_HttpRule_serialize(const google_api_HttpRule *msg, upb_arena *arena, size_t *len)
Definition: http.upb.h:91
UPB_INLINE bool google_api_HttpRule_has_patch(const google_api_HttpRule *msg)
Definition: http.upb.h:115
UPB_INLINE void google_api_Http_set_fully_decode_reserved_expansion(google_api_Http *msg, bool value)
Definition: http.upb.h:71
UPB_INLINE upb_strview google_api_HttpRule_delete(const google_api_HttpRule *msg)
Definition: http.upb.h:114
UPB_INLINE google_api_HttpRule * google_api_HttpRule_new(upb_arena *arena)
Definition: http.upb.h:77
struct google_api_HttpRule google_api_HttpRule
Definition: http.upb.h:27
UPB_INLINE char * google_api_Http_serialize(const google_api_Http *msg, upb_arena *arena, size_t *len)
Definition: http.upb.h:50
upb_arena * arena
Definition: xds_api.cc:909