GRPC C++  1.39.1
resource.upb.h
Go to the documentation of this file.
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/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 
25 extern const upb_msglayout envoy_annotations_ResourceAnnotation_msginit;
26 
27 
28 /* envoy.annotations.ResourceAnnotation */
29 
32 }
34  upb_arena *arena) {
36  return (ret && upb_decode(buf, size, ret, &envoy_annotations_ResourceAnnotation_msginit, arena)) ? ret : NULL;
37 }
39  upb_arena *arena, int options) {
41  return (ret && _upb_decode(buf, size, ret, &envoy_annotations_ResourceAnnotation_msginit, arena, options))
42  ? ret : NULL;
43 }
44 UPB_INLINE char *envoy_annotations_ResourceAnnotation_serialize(const envoy_annotations_ResourceAnnotation *msg, upb_arena *arena, size_t *len) {
45  return upb_encode(msg, &envoy_annotations_ResourceAnnotation_msginit, arena, len);
46 }
47 
48 UPB_INLINE upb_strview envoy_annotations_ResourceAnnotation_type(const envoy_annotations_ResourceAnnotation *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview); }
49 
51  *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_strview) = value;
52 }
53 
54 #ifdef __cplusplus
55 } /* extern "C" */
56 #endif
57 
58 #include "upb/port_undef.inc"
59 
60 #endif /* ENVOY_ANNOTATIONS_RESOURCE_PROTO_UPB_H_ */
const upb_msglayout envoy_annotations_ResourceAnnotation_msginit
Definition: resource.upb.c:20
UPB_INLINE envoy_annotations_ResourceAnnotation * envoy_annotations_ResourceAnnotation_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: resource.upb.h:38
UPB_INLINE char * envoy_annotations_ResourceAnnotation_serialize(const envoy_annotations_ResourceAnnotation *msg, upb_arena *arena, size_t *len)
Definition: resource.upb.h:44
UPB_INLINE void envoy_annotations_ResourceAnnotation_set_type(envoy_annotations_ResourceAnnotation *msg, upb_strview value)
Definition: resource.upb.h:50
UPB_INLINE envoy_annotations_ResourceAnnotation * envoy_annotations_ResourceAnnotation_new(upb_arena *arena)
Definition: resource.upb.h:30
UPB_INLINE envoy_annotations_ResourceAnnotation * envoy_annotations_ResourceAnnotation_parse(const char *buf, size_t size, upb_arena *arena)
Definition: resource.upb.h:33
struct envoy_annotations_ResourceAnnotation envoy_annotations_ResourceAnnotation
Definition: resource.upb.h:24
UPB_INLINE upb_strview envoy_annotations_ResourceAnnotation_type(const envoy_annotations_ResourceAnnotation *msg)
Definition: resource.upb.h:48
upb_arena * arena
Definition: xds_api.cc:909