9 #ifndef ENVOY_TYPE_MATCHER_V3_STRUCT_PROTO_UPB_H_
10 #define ENVOY_TYPE_MATCHER_V3_STRUCT_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"
44 upb_arena *
arena,
int options) {
66 bool ok = _upb_array_append_accessor2(
67 msg, UPB_SIZE(8, 16), UPB_SIZE(2, 3), &sub,
arena);
79 if (!sub)
return NULL;
96 upb_arena *
arena,
int options) {
115 UPB_WRITE_ONEOF(msg, upb_strview, UPB_SIZE(0, 0), value, UPB_SIZE(8, 16), 1);
122 #include "upb/port_undef.inc"
UPB_INLINE upb_strview envoy_type_matcher_v3_StructMatcher_PathSegment_key(const envoy_type_matcher_v3_StructMatcher_PathSegment *msg)
Definition: struct.upb.h:112
UPB_INLINE envoy_type_matcher_v3_StructMatcher_PathSegment * envoy_type_matcher_v3_StructMatcher_PathSegment_new(upb_arena *arena)
Definition: struct.upb.h:87
UPB_INLINE envoy_type_matcher_v3_StructMatcher * envoy_type_matcher_v3_StructMatcher_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: struct.upb.h:43
UPB_INLINE envoy_type_matcher_v3_StructMatcher_PathSegment ** envoy_type_matcher_v3_StructMatcher_resize_path(envoy_type_matcher_v3_StructMatcher *msg, size_t len, upb_arena *arena)
Definition: struct.upb.h:61
const upb_msglayout envoy_type_matcher_v3_ValueMatcher_msginit
Definition: value.upb.c:36
UPB_INLINE struct envoy_type_matcher_v3_ValueMatcher * envoy_type_matcher_v3_StructMatcher_mutable_value(envoy_type_matcher_v3_StructMatcher *msg, upb_arena *arena)
Definition: struct.upb.h:75
UPB_INLINE bool envoy_type_matcher_v3_StructMatcher_has_value(const envoy_type_matcher_v3_StructMatcher *msg)
Definition: struct.upb.h:55
UPB_INLINE bool envoy_type_matcher_v3_StructMatcher_has_path(const envoy_type_matcher_v3_StructMatcher *msg)
Definition: struct.upb.h:53
UPB_INLINE envoy_type_matcher_v3_StructMatcher * envoy_type_matcher_v3_StructMatcher_parse(const char *buf, size_t size, upb_arena *arena)
Definition: struct.upb.h:38
UPB_INLINE const envoy_type_matcher_v3_StructMatcher_PathSegment *const * envoy_type_matcher_v3_StructMatcher_path(const envoy_type_matcher_v3_StructMatcher *msg, size_t *len)
Definition: struct.upb.h:54
UPB_INLINE envoy_type_matcher_v3_StructMatcher * envoy_type_matcher_v3_StructMatcher_new(upb_arena *arena)
Definition: struct.upb.h:35
struct envoy_type_matcher_v3_StructMatcher_PathSegment envoy_type_matcher_v3_StructMatcher_PathSegment
Definition: struct.upb.h:26
UPB_INLINE envoy_type_matcher_v3_StructMatcher_PathSegment * envoy_type_matcher_v3_StructMatcher_PathSegment_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: struct.upb.h:95
UPB_INLINE char * envoy_type_matcher_v3_StructMatcher_PathSegment_serialize(const envoy_type_matcher_v3_StructMatcher_PathSegment *msg, upb_arena *arena, size_t *len)
Definition: struct.upb.h:101
UPB_INLINE envoy_type_matcher_v3_StructMatcher_PathSegment ** envoy_type_matcher_v3_StructMatcher_mutable_path(envoy_type_matcher_v3_StructMatcher *msg, size_t *len)
Definition: struct.upb.h:58
UPB_INLINE const struct envoy_type_matcher_v3_ValueMatcher * envoy_type_matcher_v3_StructMatcher_value(const envoy_type_matcher_v3_StructMatcher *msg)
Definition: struct.upb.h:56
UPB_INLINE bool envoy_type_matcher_v3_StructMatcher_PathSegment_has_key(const envoy_type_matcher_v3_StructMatcher_PathSegment *msg)
Definition: struct.upb.h:111
const upb_msglayout envoy_type_matcher_v3_StructMatcher_PathSegment_msginit
Definition: struct.upb.c:39
UPB_INLINE envoy_type_matcher_v3_StructMatcher_PathSegment * envoy_type_matcher_v3_StructMatcher_PathSegment_parse(const char *buf, size_t size, upb_arena *arena)
Definition: struct.upb.h:90
const upb_msglayout envoy_type_matcher_v3_StructMatcher_msginit
Definition: struct.upb.c:29
UPB_INLINE void envoy_type_matcher_v3_StructMatcher_PathSegment_set_key(envoy_type_matcher_v3_StructMatcher_PathSegment *msg, upb_strview value)
Definition: struct.upb.h:114
UPB_INLINE void envoy_type_matcher_v3_StructMatcher_set_value(envoy_type_matcher_v3_StructMatcher *msg, struct envoy_type_matcher_v3_ValueMatcher *value)
Definition: struct.upb.h:71
UPB_INLINE char * envoy_type_matcher_v3_StructMatcher_serialize(const envoy_type_matcher_v3_StructMatcher *msg, upb_arena *arena, size_t *len)
Definition: struct.upb.h:49
UPB_INLINE envoy_type_matcher_v3_StructMatcher_PathSegment_segment_oneofcases envoy_type_matcher_v3_StructMatcher_PathSegment_segment_case(const envoy_type_matcher_v3_StructMatcher_PathSegment *msg)
Definition: struct.upb.h:109
envoy_type_matcher_v3_StructMatcher_PathSegment_segment_oneofcases
Definition: struct.upb.h:105
@ envoy_type_matcher_v3_StructMatcher_PathSegment_segment_NOT_SET
Definition: struct.upb.h:107
@ envoy_type_matcher_v3_StructMatcher_PathSegment_segment_key
Definition: struct.upb.h:106
UPB_INLINE struct envoy_type_matcher_v3_StructMatcher_PathSegment * envoy_type_matcher_v3_StructMatcher_add_path(envoy_type_matcher_v3_StructMatcher *msg, upb_arena *arena)
Definition: struct.upb.h:64
struct envoy_type_matcher_v3_StructMatcher envoy_type_matcher_v3_StructMatcher
Definition: struct.upb.h:25
struct envoy_type_matcher_v3_ValueMatcher envoy_type_matcher_v3_ValueMatcher
Definition: value.upb.h:26
upb_arena * arena
Definition: xds_api.cc:909