9 #ifndef GOOGLE_API_HTTP_PROTO_UPB_H_ 10 #define GOOGLE_API_HTTP_PROTO_UPB_H_ 12 #include "upb/generated_util.h" 14 #include "upb/decode.h" 15 #include "upb/encode.h" 17 #include "upb/port_def.inc" 55 return (
google_api_HttpRule**)_upb_array_resize_accessor(msg, UPB_SIZE(4, 8), len, UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, arena);
59 bool ok = _upb_array_append_accessor(
60 msg, UPB_SIZE(4, 8), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
65 UPB_FIELD_AT(msg,
bool, UPB_SIZE(0, 0)) = value;
111 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)) = value;
114 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 2);
117 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 3);
120 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 4);
123 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 5);
126 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(28, 56), value, UPB_SIZE(36, 72), 6);
129 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 16)) = value;
138 if (!sub)
return NULL;
147 return (
google_api_HttpRule**)_upb_array_resize_accessor(msg, UPB_SIZE(24, 48), len, UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, arena);
151 bool ok = _upb_array_append_accessor(
152 msg, UPB_SIZE(24, 48), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
153 if (!ok)
return NULL;
157 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(16, 32)) = value;
178 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)) = value;
181 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 16)) = value;
188 #include "upb/port_undef.inc" UPB_INLINE upb_strview google_api_HttpRule_get(const google_api_HttpRule *msg)
Definition: http.upb.h:95
UPB_INLINE upb_strview google_api_HttpRule_response_body(const google_api_HttpRule *msg)
Definition: http.upb.h:108
UPB_INLINE bool google_api_HttpRule_has_delete(const google_api_HttpRule *msg)
Definition: http.upb.h:100
UPB_INLINE void google_api_HttpRule_set_body(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:128
Definition: http.upb.h:89
Definition: http.upb.h:83
UPB_INLINE bool google_api_HttpRule_has_get(const google_api_HttpRule *msg)
Definition: http.upb.h:94
UPB_INLINE void google_api_HttpRule_set_patch(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:125
struct google_api_Http google_api_Http
Definition: http.upb.h:26
UPB_INLINE void google_api_HttpRule_set_custom(google_api_HttpRule *msg, google_api_CustomHttpPattern *value)
Definition: http.upb.h:131
UPB_INLINE char * google_api_Http_serialize(const google_api_Http *msg, upb_arena *arena, size_t *len)
Definition: http.upb.h:44
UPB_INLINE bool google_api_Http_fully_decode_reserved_expansion(const google_api_Http *msg)
Definition: http.upb.h:49
UPB_INLINE void google_api_HttpRule_set_put(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:116
UPB_INLINE void google_api_CustomHttpPattern_set_kind(google_api_CustomHttpPattern *msg, upb_strview value)
Definition: http.upb.h:177
UPB_INLINE void google_api_HttpRule_set_response_body(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:156
Definition: http.upb.h:87
struct google_api_CustomHttpPattern google_api_CustomHttpPattern
Definition: http.upb.h:28
UPB_INLINE const google_api_HttpRule *const * google_api_Http_rules(const google_api_Http *msg, size_t *len)
Definition: http.upb.h:48
google_api_HttpRule_pattern_oneofcases
Definition: http.upb.h:82
UPB_INLINE upb_strview google_api_CustomHttpPattern_kind(const google_api_CustomHttpPattern *msg)
Definition: http.upb.h:174
Definition: http.upb.h:85
UPB_INLINE char * google_api_CustomHttpPattern_serialize(const google_api_CustomHttpPattern *msg, upb_arena *arena, size_t *len)
Definition: http.upb.h:170
struct google_api_HttpRule google_api_HttpRule
Definition: http.upb.h:27
UPB_INLINE upb_strview google_api_HttpRule_patch(const google_api_HttpRule *msg)
Definition: http.upb.h:103
UPB_INLINE upb_strview google_api_HttpRule_put(const google_api_HttpRule *msg)
Definition: http.upb.h:97
UPB_INLINE void google_api_HttpRule_set_selector(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:110
UPB_INLINE char * google_api_HttpRule_serialize(const google_api_HttpRule *msg, upb_arena *arena, size_t *len)
Definition: http.upb.h:78
UPB_INLINE google_api_HttpRule_pattern_oneofcases google_api_HttpRule_pattern_case(const google_api_HttpRule *msg)
Definition: http.upb.h:91
UPB_INLINE bool google_api_HttpRule_has_post(const google_api_HttpRule *msg)
Definition: http.upb.h:98
const upb_msglayout google_api_Http_msginit
Definition: http.upb.c:24
UPB_INLINE void google_api_Http_set_fully_decode_reserved_expansion(google_api_Http *msg, bool value)
Definition: http.upb.h:64
UPB_INLINE const google_api_HttpRule *const * google_api_HttpRule_additional_bindings(const google_api_HttpRule *msg, size_t *len)
Definition: http.upb.h:107
UPB_INLINE upb_strview google_api_HttpRule_body(const google_api_HttpRule *msg)
Definition: http.upb.h:104
UPB_INLINE google_api_Http * google_api_Http_new(upb_arena *arena)
Definition: http.upb.h:36
Definition: http.upb.h:86
UPB_INLINE google_api_HttpRule ** google_api_Http_resize_rules(google_api_Http *msg, size_t len, upb_arena *arena)
Definition: http.upb.h:54
UPB_INLINE bool google_api_HttpRule_has_patch(const google_api_HttpRule *msg)
Definition: http.upb.h:102
UPB_INLINE void google_api_HttpRule_set_delete(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:122
UPB_INLINE google_api_CustomHttpPattern * google_api_CustomHttpPattern_parse(const char *buf, size_t size, upb_arena *arena)
Definition: http.upb.h:165
UPB_INLINE google_api_HttpRule ** google_api_HttpRule_mutable_additional_bindings(google_api_HttpRule *msg, size_t *len)
Definition: http.upb.h:143
UPB_INLINE google_api_HttpRule * google_api_HttpRule_parse(const char *buf, size_t size, upb_arena *arena)
Definition: http.upb.h:73
UPB_INLINE void google_api_HttpRule_set_post(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:119
UPB_INLINE upb_strview google_api_HttpRule_selector(const google_api_HttpRule *msg)
Definition: http.upb.h:93
const upb_msglayout google_api_CustomHttpPattern_msginit
Definition: http.upb.c:59
UPB_INLINE google_api_HttpRule * google_api_HttpRule_new(upb_arena *arena)
Definition: http.upb.h:70
UPB_INLINE upb_strview google_api_HttpRule_post(const google_api_HttpRule *msg)
Definition: http.upb.h:99
const upb_msglayout google_api_HttpRule_msginit
Definition: http.upb.c:48
UPB_INLINE upb_strview google_api_CustomHttpPattern_path(const google_api_CustomHttpPattern *msg)
Definition: http.upb.h:175
UPB_INLINE bool google_api_HttpRule_has_put(const google_api_HttpRule *msg)
Definition: http.upb.h:96
UPB_INLINE struct google_api_HttpRule * google_api_Http_add_rules(google_api_Http *msg, upb_arena *arena)
Definition: http.upb.h:57
UPB_INLINE struct google_api_HttpRule * google_api_HttpRule_add_additional_bindings(google_api_HttpRule *msg, upb_arena *arena)
Definition: http.upb.h:149
Definition: http.upb.h:84
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:146
UPB_INLINE void google_api_CustomHttpPattern_set_path(google_api_CustomHttpPattern *msg, upb_strview value)
Definition: http.upb.h:180
UPB_INLINE google_api_CustomHttpPattern * google_api_CustomHttpPattern_new(upb_arena *arena)
Definition: http.upb.h:162
UPB_INLINE const google_api_CustomHttpPattern * google_api_HttpRule_custom(const google_api_HttpRule *msg)
Definition: http.upb.h:106
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 bool google_api_HttpRule_has_custom(const google_api_HttpRule *msg)
Definition: http.upb.h:105
Definition: http.upb.h:88
UPB_INLINE struct google_api_CustomHttpPattern * google_api_HttpRule_mutable_custom(google_api_HttpRule *msg, upb_arena *arena)
Definition: http.upb.h:134
UPB_INLINE google_api_HttpRule ** google_api_Http_mutable_rules(google_api_Http *msg, size_t *len)
Definition: http.upb.h:51
UPB_INLINE void google_api_HttpRule_set_get(google_api_HttpRule *msg, upb_strview value)
Definition: http.upb.h:113
UPB_INLINE upb_strview google_api_HttpRule_delete(const google_api_HttpRule *msg)
Definition: http.upb.h:101