1 /* This file was generated by upbc (the upb compiler) from the input
2 * file:
3 *
4 * envoy/annotations/resource.proto
5 *
6 * Do not edit -- your changes will be discarded when the file is
7 * regenerated. */
8
9 #ifndef ENVOY_ANNOTATIONS_RESOURCE_PROTO_UPB_H_
10 #define ENVOY_ANNOTATIONS_RESOURCE_PROTO_UPB_H_
11
12 #include "upb/msg.h"
13 #include "upb/decode.h"
14 #include "upb/encode.h"
15
16 #include "upb/port_def.inc"
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 struct envoy_annotations_ResourceAnnotation;
23 typedef struct envoy_annotations_ResourceAnnotation envoy_annotations_ResourceAnnotation;
24 extern const upb_msglayout envoy_annotations_ResourceAnnotation_msginit;
25
26
27 /* envoy.annotations.ResourceAnnotation */
28
envoy_annotations_ResourceAnnotation_new(upb_arena * arena)29 UPB_INLINE envoy_annotations_ResourceAnnotation *envoy_annotations_ResourceAnnotation_new(upb_arena *arena) {
30 return (envoy_annotations_ResourceAnnotation *)_upb_msg_new(&envoy_annotations_ResourceAnnotation_msginit, arena);
31 }
envoy_annotations_ResourceAnnotation_parse(const char * buf,size_t size,upb_arena * arena)32 UPB_INLINE envoy_annotations_ResourceAnnotation *envoy_annotations_ResourceAnnotation_parse(const char *buf, size_t size,
33 upb_arena *arena) {
34 envoy_annotations_ResourceAnnotation *ret = envoy_annotations_ResourceAnnotation_new(arena);
35 return (ret && upb_decode(buf, size, ret, &envoy_annotations_ResourceAnnotation_msginit, arena)) ? ret : NULL;
36 }
envoy_annotations_ResourceAnnotation_serialize(const envoy_annotations_ResourceAnnotation * msg,upb_arena * arena,size_t * len)37 UPB_INLINE char *envoy_annotations_ResourceAnnotation_serialize(const envoy_annotations_ResourceAnnotation *msg, upb_arena *arena, size_t *len) {
38 return upb_encode(msg, &envoy_annotations_ResourceAnnotation_msginit, arena, len);
39 }
40
envoy_annotations_ResourceAnnotation_type(const envoy_annotations_ResourceAnnotation * msg)41 UPB_INLINE upb_strview envoy_annotations_ResourceAnnotation_type(const envoy_annotations_ResourceAnnotation *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
42
envoy_annotations_ResourceAnnotation_set_type(envoy_annotations_ResourceAnnotation * msg,upb_strview value)43 UPB_INLINE void envoy_annotations_ResourceAnnotation_set_type(envoy_annotations_ResourceAnnotation *msg, upb_strview value) {
44 *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
45 }
46
47 #ifdef __cplusplus
48 } /* extern "C" */
49 #endif
50
51 #include "upb/port_undef.inc"
52
53 #endif /* ENVOY_ANNOTATIONS_RESOURCE_PROTO_UPB_H_ */
54