Debian Codegraph @

src/core/ext/upb-generated/google/api/annotations.upb.h

raw
1 /* This file was generated by upbc (the upb compiler) from the input
2 * file:
3 *
4 * google/api/annotations.proto
5 *
6 * Do not edit -- your changes will be discarded when the file is
7 * regenerated. */
8
9 #ifndef GOOGLE_API_ANNOTATIONS_PROTO_UPB_H_
10 #define GOOGLE_API_ANNOTATIONS_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 extern const upb_MiniTable_Extension google_api_http_ext;
24 struct google_protobuf_MethodOptions;
25 extern const upb_MiniTable google_protobuf_MethodOptions_msginit;
26
27
28 UPB_INLINE bool google_api_has_http(const struct google_protobuf_MethodOptions* msg) {
29 return _upb_Message_Getext(msg, &google_api_http_ext) != NULL;
30 }
31 UPB_INLINE void google_api_clear_http(struct google_protobuf_MethodOptions* msg) {
32 _upb_Message_Clearext(msg, &google_api_http_ext);
33 }
34 UPB_INLINE const struct google_api_HttpRule* google_api_http(const struct google_protobuf_MethodOptions* msg) {
35 const upb_Message_Extension* ext = _upb_Message_Getext(msg, &google_api_http_ext);
36 UPB_ASSERT(ext);
37 return *UPB_PTR_AT(&ext->data, 0, const struct google_api_HttpRule*);
38 }
39 UPB_INLINE void google_api_set_http(struct google_protobuf_MethodOptions* msg, const struct google_api_HttpRule* ext, upb_Arena* arena) {
40 const upb_Message_Extension* msg_ext =
41 _upb_Message_GetOrCreateExtension(msg, &google_api_http_ext, arena);
42 UPB_ASSERT(msg_ext);
43 *UPB_PTR_AT(&msg_ext->data, 0, const struct google_api_HttpRule*) = ext;
44 }
45 extern const upb_MiniTable_File google_api_annotations_proto_upb_file_layout;
46
47 #ifdef __cplusplus
48 } /* extern "C" */
49 #endif
50
51 #include "upb/port_undef.inc"
52
53 #endif /* GOOGLE_API_ANNOTATIONS_PROTO_UPB_H_ */