| 1 |
/* This file was generated by upbc (the upb compiler) from the input |
| 2 |
* file: |
| 3 |
* |
| 4 |
* envoy/config/tap/v3/common.proto |
| 5 |
* |
| 6 |
* Do not edit -- your changes will be discarded when the file is |
| 7 |
* regenerated. */ |
| 8 |
|
| 9 |
#ifndef ENVOY_CONFIG_TAP_V3_COMMON_PROTO_UPB_H_ |
| 10 |
#define ENVOY_CONFIG_TAP_V3_COMMON_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 |
struct envoy_config_tap_v3_TapConfig; |
| 24 |
struct envoy_config_tap_v3_MatchPredicate; |
| 25 |
struct envoy_config_tap_v3_MatchPredicate_MatchSet; |
| 26 |
struct envoy_config_tap_v3_HttpHeadersMatch; |
| 27 |
struct envoy_config_tap_v3_HttpGenericBodyMatch; |
| 28 |
struct envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch; |
| 29 |
struct envoy_config_tap_v3_OutputConfig; |
| 30 |
struct envoy_config_tap_v3_OutputSink; |
| 31 |
struct envoy_config_tap_v3_StreamingAdminSink; |
| 32 |
struct envoy_config_tap_v3_BufferedAdminSink; |
| 33 |
struct envoy_config_tap_v3_FilePerTapSink; |
| 34 |
struct envoy_config_tap_v3_StreamingGrpcSink; |
| 35 |
typedef struct envoy_config_tap_v3_TapConfig envoy_config_tap_v3_TapConfig; |
| 36 |
typedef struct envoy_config_tap_v3_MatchPredicate envoy_config_tap_v3_MatchPredicate; |
| 37 |
typedef struct envoy_config_tap_v3_MatchPredicate_MatchSet envoy_config_tap_v3_MatchPredicate_MatchSet; |
| 38 |
typedef struct envoy_config_tap_v3_HttpHeadersMatch envoy_config_tap_v3_HttpHeadersMatch; |
| 39 |
typedef struct envoy_config_tap_v3_HttpGenericBodyMatch envoy_config_tap_v3_HttpGenericBodyMatch; |
| 40 |
typedef struct envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch; |
| 41 |
typedef struct envoy_config_tap_v3_OutputConfig envoy_config_tap_v3_OutputConfig; |
| 42 |
typedef struct envoy_config_tap_v3_OutputSink envoy_config_tap_v3_OutputSink; |
| 43 |
typedef struct envoy_config_tap_v3_StreamingAdminSink envoy_config_tap_v3_StreamingAdminSink; |
| 44 |
typedef struct envoy_config_tap_v3_BufferedAdminSink envoy_config_tap_v3_BufferedAdminSink; |
| 45 |
typedef struct envoy_config_tap_v3_FilePerTapSink envoy_config_tap_v3_FilePerTapSink; |
| 46 |
typedef struct envoy_config_tap_v3_StreamingGrpcSink envoy_config_tap_v3_StreamingGrpcSink; |
| 47 |
extern const upb_MiniTable envoy_config_tap_v3_TapConfig_msginit; |
| 48 |
extern const upb_MiniTable envoy_config_tap_v3_MatchPredicate_msginit; |
| 49 |
extern const upb_MiniTable envoy_config_tap_v3_MatchPredicate_MatchSet_msginit; |
| 50 |
extern const upb_MiniTable envoy_config_tap_v3_HttpHeadersMatch_msginit; |
| 51 |
extern const upb_MiniTable envoy_config_tap_v3_HttpGenericBodyMatch_msginit; |
| 52 |
extern const upb_MiniTable envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit; |
| 53 |
extern const upb_MiniTable envoy_config_tap_v3_OutputConfig_msginit; |
| 54 |
extern const upb_MiniTable envoy_config_tap_v3_OutputSink_msginit; |
| 55 |
extern const upb_MiniTable envoy_config_tap_v3_StreamingAdminSink_msginit; |
| 56 |
extern const upb_MiniTable envoy_config_tap_v3_BufferedAdminSink_msginit; |
| 57 |
extern const upb_MiniTable envoy_config_tap_v3_FilePerTapSink_msginit; |
| 58 |
extern const upb_MiniTable envoy_config_tap_v3_StreamingGrpcSink_msginit; |
| 59 |
struct envoy_config_common_matcher_v3_MatchPredicate; |
| 60 |
struct envoy_config_core_v3_GrpcService; |
| 61 |
struct envoy_config_core_v3_RuntimeFractionalPercent; |
| 62 |
struct envoy_config_route_v3_HeaderMatcher; |
| 63 |
struct google_protobuf_Duration; |
| 64 |
struct google_protobuf_UInt32Value; |
| 65 |
extern const upb_MiniTable envoy_config_common_matcher_v3_MatchPredicate_msginit; |
| 66 |
extern const upb_MiniTable envoy_config_core_v3_GrpcService_msginit; |
| 67 |
extern const upb_MiniTable envoy_config_core_v3_RuntimeFractionalPercent_msginit; |
| 68 |
extern const upb_MiniTable envoy_config_route_v3_HeaderMatcher_msginit; |
| 69 |
extern const upb_MiniTable google_protobuf_Duration_msginit; |
| 70 |
extern const upb_MiniTable google_protobuf_UInt32Value_msginit; |
| 71 |
|
| 72 |
typedef enum { |
| 73 |
envoy_config_tap_v3_OutputSink_JSON_BODY_AS_BYTES = 0, |
| 74 |
envoy_config_tap_v3_OutputSink_JSON_BODY_AS_STRING = 1, |
| 75 |
envoy_config_tap_v3_OutputSink_PROTO_BINARY = 2, |
| 76 |
envoy_config_tap_v3_OutputSink_PROTO_BINARY_LENGTH_DELIMITED = 3, |
| 77 |
envoy_config_tap_v3_OutputSink_PROTO_TEXT = 4 |
| 78 |
} envoy_config_tap_v3_OutputSink_Format; |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
/* envoy.config.tap.v3.TapConfig */ |
| 83 |
|
| 84 |
UPB_INLINE envoy_config_tap_v3_TapConfig* envoy_config_tap_v3_TapConfig_new(upb_Arena* arena) { |
| 85 |
return (envoy_config_tap_v3_TapConfig*)_upb_Message_New(&envoy_config_tap_v3_TapConfig_msginit, arena); |
| 86 |
} |
| 87 |
UPB_INLINE envoy_config_tap_v3_TapConfig* envoy_config_tap_v3_TapConfig_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 88 |
envoy_config_tap_v3_TapConfig* ret = envoy_config_tap_v3_TapConfig_new(arena); |
| 89 |
if (!ret) return NULL; |
| 90 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_TapConfig_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 91 |
return NULL; |
| 92 |
} |
| 93 |
return ret; |
| 94 |
} |
| 95 |
UPB_INLINE envoy_config_tap_v3_TapConfig* envoy_config_tap_v3_TapConfig_parse_ex(const char* buf, size_t size, |
| 96 |
const upb_ExtensionRegistry* extreg, |
| 97 |
int options, upb_Arena* arena) { |
| 98 |
envoy_config_tap_v3_TapConfig* ret = envoy_config_tap_v3_TapConfig_new(arena); |
| 99 |
if (!ret) return NULL; |
| 100 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_TapConfig_msginit, extreg, options, arena) != |
| 101 |
kUpb_DecodeStatus_Ok) { |
| 102 |
return NULL; |
| 103 |
} |
| 104 |
return ret; |
| 105 |
} |
| 106 |
UPB_INLINE char* envoy_config_tap_v3_TapConfig_serialize(const envoy_config_tap_v3_TapConfig* msg, upb_Arena* arena, size_t* len) { |
| 107 |
char* ptr; |
| 108 |
(void)upb_Encode(msg, &envoy_config_tap_v3_TapConfig_msginit, 0, arena, &ptr, len); |
| 109 |
return ptr; |
| 110 |
} |
| 111 |
UPB_INLINE char* envoy_config_tap_v3_TapConfig_serialize_ex(const envoy_config_tap_v3_TapConfig* msg, int options, |
| 112 |
upb_Arena* arena, size_t* len) { |
| 113 |
char* ptr; |
| 114 |
(void)upb_Encode(msg, &envoy_config_tap_v3_TapConfig_msginit, options, arena, &ptr, len); |
| 115 |
return ptr; |
| 116 |
} |
| 117 |
UPB_INLINE bool envoy_config_tap_v3_TapConfig_has_match_config(const envoy_config_tap_v3_TapConfig* msg) { |
| 118 |
return _upb_hasbit(msg, 1); |
| 119 |
} |
| 120 |
UPB_INLINE void envoy_config_tap_v3_TapConfig_clear_match_config(const envoy_config_tap_v3_TapConfig* msg) { |
| 121 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), const upb_Message*) = NULL; |
| 122 |
} |
| 123 |
UPB_INLINE const envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_TapConfig_match_config(const envoy_config_tap_v3_TapConfig* msg) { |
| 124 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const envoy_config_tap_v3_MatchPredicate*); |
| 125 |
} |
| 126 |
UPB_INLINE bool envoy_config_tap_v3_TapConfig_has_output_config(const envoy_config_tap_v3_TapConfig* msg) { |
| 127 |
return _upb_hasbit(msg, 2); |
| 128 |
} |
| 129 |
UPB_INLINE void envoy_config_tap_v3_TapConfig_clear_output_config(const envoy_config_tap_v3_TapConfig* msg) { |
| 130 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
| 131 |
} |
| 132 |
UPB_INLINE const envoy_config_tap_v3_OutputConfig* envoy_config_tap_v3_TapConfig_output_config(const envoy_config_tap_v3_TapConfig* msg) { |
| 133 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const envoy_config_tap_v3_OutputConfig*); |
| 134 |
} |
| 135 |
UPB_INLINE bool envoy_config_tap_v3_TapConfig_has_tap_enabled(const envoy_config_tap_v3_TapConfig* msg) { |
| 136 |
return _upb_hasbit(msg, 3); |
| 137 |
} |
| 138 |
UPB_INLINE void envoy_config_tap_v3_TapConfig_clear_tap_enabled(const envoy_config_tap_v3_TapConfig* msg) { |
| 139 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), const upb_Message*) = NULL; |
| 140 |
} |
| 141 |
UPB_INLINE const struct envoy_config_core_v3_RuntimeFractionalPercent* envoy_config_tap_v3_TapConfig_tap_enabled(const envoy_config_tap_v3_TapConfig* msg) { |
| 142 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_RuntimeFractionalPercent*); |
| 143 |
} |
| 144 |
UPB_INLINE bool envoy_config_tap_v3_TapConfig_has_match(const envoy_config_tap_v3_TapConfig* msg) { |
| 145 |
return _upb_hasbit(msg, 4); |
| 146 |
} |
| 147 |
UPB_INLINE void envoy_config_tap_v3_TapConfig_clear_match(const envoy_config_tap_v3_TapConfig* msg) { |
| 148 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), const upb_Message*) = NULL; |
| 149 |
} |
| 150 |
UPB_INLINE const struct envoy_config_common_matcher_v3_MatchPredicate* envoy_config_tap_v3_TapConfig_match(const envoy_config_tap_v3_TapConfig* msg) { |
| 151 |
return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct envoy_config_common_matcher_v3_MatchPredicate*); |
| 152 |
} |
| 153 |
|
| 154 |
UPB_INLINE void envoy_config_tap_v3_TapConfig_set_match_config(envoy_config_tap_v3_TapConfig *msg, envoy_config_tap_v3_MatchPredicate* value) { |
| 155 |
_upb_sethas(msg, 1); |
| 156 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), envoy_config_tap_v3_MatchPredicate*) = value; |
| 157 |
} |
| 158 |
UPB_INLINE struct envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_TapConfig_mutable_match_config(envoy_config_tap_v3_TapConfig* msg, upb_Arena* arena) { |
| 159 |
struct envoy_config_tap_v3_MatchPredicate* sub = (struct envoy_config_tap_v3_MatchPredicate*)envoy_config_tap_v3_TapConfig_match_config(msg); |
| 160 |
if (sub == NULL) { |
| 161 |
sub = (struct envoy_config_tap_v3_MatchPredicate*)_upb_Message_New(&envoy_config_tap_v3_MatchPredicate_msginit, arena); |
| 162 |
if (!sub) return NULL; |
| 163 |
envoy_config_tap_v3_TapConfig_set_match_config(msg, sub); |
| 164 |
} |
| 165 |
return sub; |
| 166 |
} |
| 167 |
UPB_INLINE void envoy_config_tap_v3_TapConfig_set_output_config(envoy_config_tap_v3_TapConfig *msg, envoy_config_tap_v3_OutputConfig* value) { |
| 168 |
_upb_sethas(msg, 2); |
| 169 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), envoy_config_tap_v3_OutputConfig*) = value; |
| 170 |
} |
| 171 |
UPB_INLINE struct envoy_config_tap_v3_OutputConfig* envoy_config_tap_v3_TapConfig_mutable_output_config(envoy_config_tap_v3_TapConfig* msg, upb_Arena* arena) { |
| 172 |
struct envoy_config_tap_v3_OutputConfig* sub = (struct envoy_config_tap_v3_OutputConfig*)envoy_config_tap_v3_TapConfig_output_config(msg); |
| 173 |
if (sub == NULL) { |
| 174 |
sub = (struct envoy_config_tap_v3_OutputConfig*)_upb_Message_New(&envoy_config_tap_v3_OutputConfig_msginit, arena); |
| 175 |
if (!sub) return NULL; |
| 176 |
envoy_config_tap_v3_TapConfig_set_output_config(msg, sub); |
| 177 |
} |
| 178 |
return sub; |
| 179 |
} |
| 180 |
UPB_INLINE void envoy_config_tap_v3_TapConfig_set_tap_enabled(envoy_config_tap_v3_TapConfig *msg, struct envoy_config_core_v3_RuntimeFractionalPercent* value) { |
| 181 |
_upb_sethas(msg, 3); |
| 182 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_RuntimeFractionalPercent*) = value; |
| 183 |
} |
| 184 |
UPB_INLINE struct envoy_config_core_v3_RuntimeFractionalPercent* envoy_config_tap_v3_TapConfig_mutable_tap_enabled(envoy_config_tap_v3_TapConfig* msg, upb_Arena* arena) { |
| 185 |
struct envoy_config_core_v3_RuntimeFractionalPercent* sub = (struct envoy_config_core_v3_RuntimeFractionalPercent*)envoy_config_tap_v3_TapConfig_tap_enabled(msg); |
| 186 |
if (sub == NULL) { |
| 187 |
sub = (struct envoy_config_core_v3_RuntimeFractionalPercent*)_upb_Message_New(&envoy_config_core_v3_RuntimeFractionalPercent_msginit, arena); |
| 188 |
if (!sub) return NULL; |
| 189 |
envoy_config_tap_v3_TapConfig_set_tap_enabled(msg, sub); |
| 190 |
} |
| 191 |
return sub; |
| 192 |
} |
| 193 |
UPB_INLINE void envoy_config_tap_v3_TapConfig_set_match(envoy_config_tap_v3_TapConfig *msg, struct envoy_config_common_matcher_v3_MatchPredicate* value) { |
| 194 |
_upb_sethas(msg, 4); |
| 195 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct envoy_config_common_matcher_v3_MatchPredicate*) = value; |
| 196 |
} |
| 197 |
UPB_INLINE struct envoy_config_common_matcher_v3_MatchPredicate* envoy_config_tap_v3_TapConfig_mutable_match(envoy_config_tap_v3_TapConfig* msg, upb_Arena* arena) { |
| 198 |
struct envoy_config_common_matcher_v3_MatchPredicate* sub = (struct envoy_config_common_matcher_v3_MatchPredicate*)envoy_config_tap_v3_TapConfig_match(msg); |
| 199 |
if (sub == NULL) { |
| 200 |
sub = (struct envoy_config_common_matcher_v3_MatchPredicate*)_upb_Message_New(&envoy_config_common_matcher_v3_MatchPredicate_msginit, arena); |
| 201 |
if (!sub) return NULL; |
| 202 |
envoy_config_tap_v3_TapConfig_set_match(msg, sub); |
| 203 |
} |
| 204 |
return sub; |
| 205 |
} |
| 206 |
|
| 207 |
/* envoy.config.tap.v3.MatchPredicate */ |
| 208 |
|
| 209 |
UPB_INLINE envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_MatchPredicate_new(upb_Arena* arena) { |
| 210 |
return (envoy_config_tap_v3_MatchPredicate*)_upb_Message_New(&envoy_config_tap_v3_MatchPredicate_msginit, arena); |
| 211 |
} |
| 212 |
UPB_INLINE envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_MatchPredicate_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 213 |
envoy_config_tap_v3_MatchPredicate* ret = envoy_config_tap_v3_MatchPredicate_new(arena); |
| 214 |
if (!ret) return NULL; |
| 215 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_MatchPredicate_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 216 |
return NULL; |
| 217 |
} |
| 218 |
return ret; |
| 219 |
} |
| 220 |
UPB_INLINE envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_MatchPredicate_parse_ex(const char* buf, size_t size, |
| 221 |
const upb_ExtensionRegistry* extreg, |
| 222 |
int options, upb_Arena* arena) { |
| 223 |
envoy_config_tap_v3_MatchPredicate* ret = envoy_config_tap_v3_MatchPredicate_new(arena); |
| 224 |
if (!ret) return NULL; |
| 225 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_MatchPredicate_msginit, extreg, options, arena) != |
| 226 |
kUpb_DecodeStatus_Ok) { |
| 227 |
return NULL; |
| 228 |
} |
| 229 |
return ret; |
| 230 |
} |
| 231 |
UPB_INLINE char* envoy_config_tap_v3_MatchPredicate_serialize(const envoy_config_tap_v3_MatchPredicate* msg, upb_Arena* arena, size_t* len) { |
| 232 |
char* ptr; |
| 233 |
(void)upb_Encode(msg, &envoy_config_tap_v3_MatchPredicate_msginit, 0, arena, &ptr, len); |
| 234 |
return ptr; |
| 235 |
} |
| 236 |
UPB_INLINE char* envoy_config_tap_v3_MatchPredicate_serialize_ex(const envoy_config_tap_v3_MatchPredicate* msg, int options, |
| 237 |
upb_Arena* arena, size_t* len) { |
| 238 |
char* ptr; |
| 239 |
(void)upb_Encode(msg, &envoy_config_tap_v3_MatchPredicate_msginit, options, arena, &ptr, len); |
| 240 |
return ptr; |
| 241 |
} |
| 242 |
typedef enum { |
| 243 |
envoy_config_tap_v3_MatchPredicate_rule_or_match = 1, |
| 244 |
envoy_config_tap_v3_MatchPredicate_rule_and_match = 2, |
| 245 |
envoy_config_tap_v3_MatchPredicate_rule_not_match = 3, |
| 246 |
envoy_config_tap_v3_MatchPredicate_rule_any_match = 4, |
| 247 |
envoy_config_tap_v3_MatchPredicate_rule_http_request_headers_match = 5, |
| 248 |
envoy_config_tap_v3_MatchPredicate_rule_http_request_trailers_match = 6, |
| 249 |
envoy_config_tap_v3_MatchPredicate_rule_http_response_headers_match = 7, |
| 250 |
envoy_config_tap_v3_MatchPredicate_rule_http_response_trailers_match = 8, |
| 251 |
envoy_config_tap_v3_MatchPredicate_rule_http_request_generic_body_match = 9, |
| 252 |
envoy_config_tap_v3_MatchPredicate_rule_http_response_generic_body_match = 10, |
| 253 |
envoy_config_tap_v3_MatchPredicate_rule_NOT_SET = 0 |
| 254 |
} envoy_config_tap_v3_MatchPredicate_rule_oneofcases; |
| 255 |
UPB_INLINE envoy_config_tap_v3_MatchPredicate_rule_oneofcases envoy_config_tap_v3_MatchPredicate_rule_case(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 256 |
return (envoy_config_tap_v3_MatchPredicate_rule_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); |
| 257 |
} |
| 258 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_or_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 259 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 1; |
| 260 |
} |
| 261 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_clear_or_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 262 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_MatchPredicate_MatchSet*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), envoy_config_tap_v3_MatchPredicate_rule_NOT_SET); |
| 263 |
} |
| 264 |
UPB_INLINE const envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_or_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 265 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_MatchPredicate_MatchSet*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 1, NULL); |
| 266 |
} |
| 267 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_and_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 268 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 2; |
| 269 |
} |
| 270 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_clear_and_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 271 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_MatchPredicate_MatchSet*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), envoy_config_tap_v3_MatchPredicate_rule_NOT_SET); |
| 272 |
} |
| 273 |
UPB_INLINE const envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_and_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 274 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_MatchPredicate_MatchSet*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 2, NULL); |
| 275 |
} |
| 276 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_not_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 277 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 3; |
| 278 |
} |
| 279 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_clear_not_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 280 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_MatchPredicate*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), envoy_config_tap_v3_MatchPredicate_rule_NOT_SET); |
| 281 |
} |
| 282 |
UPB_INLINE const envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_MatchPredicate_not_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 283 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_MatchPredicate*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 3, NULL); |
| 284 |
} |
| 285 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_any_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 286 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 4; |
| 287 |
} |
| 288 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_clear_any_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 289 |
UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), envoy_config_tap_v3_MatchPredicate_rule_NOT_SET); |
| 290 |
} |
| 291 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_any_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 292 |
return UPB_READ_ONEOF(msg, bool, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 4, false); |
| 293 |
} |
| 294 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_request_headers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 295 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 5; |
| 296 |
} |
| 297 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_clear_http_request_headers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 298 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), envoy_config_tap_v3_MatchPredicate_rule_NOT_SET); |
| 299 |
} |
| 300 |
UPB_INLINE const envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_http_request_headers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 301 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 5, NULL); |
| 302 |
} |
| 303 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_request_trailers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 304 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 6; |
| 305 |
} |
| 306 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_clear_http_request_trailers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 307 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), envoy_config_tap_v3_MatchPredicate_rule_NOT_SET); |
| 308 |
} |
| 309 |
UPB_INLINE const envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_http_request_trailers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 310 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 6, NULL); |
| 311 |
} |
| 312 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_response_headers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 313 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 7; |
| 314 |
} |
| 315 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_clear_http_response_headers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 316 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), envoy_config_tap_v3_MatchPredicate_rule_NOT_SET); |
| 317 |
} |
| 318 |
UPB_INLINE const envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_http_response_headers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 319 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 7, NULL); |
| 320 |
} |
| 321 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_response_trailers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 322 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 8; |
| 323 |
} |
| 324 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_clear_http_response_trailers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 325 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), envoy_config_tap_v3_MatchPredicate_rule_NOT_SET); |
| 326 |
} |
| 327 |
UPB_INLINE const envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_http_response_trailers_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 328 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 8, NULL); |
| 329 |
} |
| 330 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_request_generic_body_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 331 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 9; |
| 332 |
} |
| 333 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_clear_http_request_generic_body_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 334 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpGenericBodyMatch*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), envoy_config_tap_v3_MatchPredicate_rule_NOT_SET); |
| 335 |
} |
| 336 |
UPB_INLINE const envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_MatchPredicate_http_request_generic_body_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 337 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpGenericBodyMatch*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 9, NULL); |
| 338 |
} |
| 339 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_has_http_response_generic_body_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 340 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 10; |
| 341 |
} |
| 342 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_clear_http_response_generic_body_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 343 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpGenericBodyMatch*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), envoy_config_tap_v3_MatchPredicate_rule_NOT_SET); |
| 344 |
} |
| 345 |
UPB_INLINE const envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_MatchPredicate_http_response_generic_body_match(const envoy_config_tap_v3_MatchPredicate* msg) { |
| 346 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_HttpGenericBodyMatch*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 10, NULL); |
| 347 |
} |
| 348 |
|
| 349 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_or_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_MatchPredicate_MatchSet* value) { |
| 350 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_MatchPredicate_MatchSet*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 1); |
| 351 |
} |
| 352 |
UPB_INLINE struct envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_mutable_or_match(envoy_config_tap_v3_MatchPredicate* msg, upb_Arena* arena) { |
| 353 |
struct envoy_config_tap_v3_MatchPredicate_MatchSet* sub = (struct envoy_config_tap_v3_MatchPredicate_MatchSet*)envoy_config_tap_v3_MatchPredicate_or_match(msg); |
| 354 |
if (sub == NULL) { |
| 355 |
sub = (struct envoy_config_tap_v3_MatchPredicate_MatchSet*)_upb_Message_New(&envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, arena); |
| 356 |
if (!sub) return NULL; |
| 357 |
envoy_config_tap_v3_MatchPredicate_set_or_match(msg, sub); |
| 358 |
} |
| 359 |
return sub; |
| 360 |
} |
| 361 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_and_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_MatchPredicate_MatchSet* value) { |
| 362 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_MatchPredicate_MatchSet*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 2); |
| 363 |
} |
| 364 |
UPB_INLINE struct envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_mutable_and_match(envoy_config_tap_v3_MatchPredicate* msg, upb_Arena* arena) { |
| 365 |
struct envoy_config_tap_v3_MatchPredicate_MatchSet* sub = (struct envoy_config_tap_v3_MatchPredicate_MatchSet*)envoy_config_tap_v3_MatchPredicate_and_match(msg); |
| 366 |
if (sub == NULL) { |
| 367 |
sub = (struct envoy_config_tap_v3_MatchPredicate_MatchSet*)_upb_Message_New(&envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, arena); |
| 368 |
if (!sub) return NULL; |
| 369 |
envoy_config_tap_v3_MatchPredicate_set_and_match(msg, sub); |
| 370 |
} |
| 371 |
return sub; |
| 372 |
} |
| 373 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_not_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_MatchPredicate* value) { |
| 374 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_MatchPredicate*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 3); |
| 375 |
} |
| 376 |
UPB_INLINE struct envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_MatchPredicate_mutable_not_match(envoy_config_tap_v3_MatchPredicate* msg, upb_Arena* arena) { |
| 377 |
struct envoy_config_tap_v3_MatchPredicate* sub = (struct envoy_config_tap_v3_MatchPredicate*)envoy_config_tap_v3_MatchPredicate_not_match(msg); |
| 378 |
if (sub == NULL) { |
| 379 |
sub = (struct envoy_config_tap_v3_MatchPredicate*)_upb_Message_New(&envoy_config_tap_v3_MatchPredicate_msginit, arena); |
| 380 |
if (!sub) return NULL; |
| 381 |
envoy_config_tap_v3_MatchPredicate_set_not_match(msg, sub); |
| 382 |
} |
| 383 |
return sub; |
| 384 |
} |
| 385 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_any_match(envoy_config_tap_v3_MatchPredicate *msg, bool value) { |
| 386 |
UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 4); |
| 387 |
} |
| 388 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_request_headers_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpHeadersMatch* value) { |
| 389 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 5); |
| 390 |
} |
| 391 |
UPB_INLINE struct envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_request_headers_match(envoy_config_tap_v3_MatchPredicate* msg, upb_Arena* arena) { |
| 392 |
struct envoy_config_tap_v3_HttpHeadersMatch* sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)envoy_config_tap_v3_MatchPredicate_http_request_headers_match(msg); |
| 393 |
if (sub == NULL) { |
| 394 |
sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)_upb_Message_New(&envoy_config_tap_v3_HttpHeadersMatch_msginit, arena); |
| 395 |
if (!sub) return NULL; |
| 396 |
envoy_config_tap_v3_MatchPredicate_set_http_request_headers_match(msg, sub); |
| 397 |
} |
| 398 |
return sub; |
| 399 |
} |
| 400 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_request_trailers_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpHeadersMatch* value) { |
| 401 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 6); |
| 402 |
} |
| 403 |
UPB_INLINE struct envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_request_trailers_match(envoy_config_tap_v3_MatchPredicate* msg, upb_Arena* arena) { |
| 404 |
struct envoy_config_tap_v3_HttpHeadersMatch* sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)envoy_config_tap_v3_MatchPredicate_http_request_trailers_match(msg); |
| 405 |
if (sub == NULL) { |
| 406 |
sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)_upb_Message_New(&envoy_config_tap_v3_HttpHeadersMatch_msginit, arena); |
| 407 |
if (!sub) return NULL; |
| 408 |
envoy_config_tap_v3_MatchPredicate_set_http_request_trailers_match(msg, sub); |
| 409 |
} |
| 410 |
return sub; |
| 411 |
} |
| 412 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_response_headers_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpHeadersMatch* value) { |
| 413 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 7); |
| 414 |
} |
| 415 |
UPB_INLINE struct envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_response_headers_match(envoy_config_tap_v3_MatchPredicate* msg, upb_Arena* arena) { |
| 416 |
struct envoy_config_tap_v3_HttpHeadersMatch* sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)envoy_config_tap_v3_MatchPredicate_http_response_headers_match(msg); |
| 417 |
if (sub == NULL) { |
| 418 |
sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)_upb_Message_New(&envoy_config_tap_v3_HttpHeadersMatch_msginit, arena); |
| 419 |
if (!sub) return NULL; |
| 420 |
envoy_config_tap_v3_MatchPredicate_set_http_response_headers_match(msg, sub); |
| 421 |
} |
| 422 |
return sub; |
| 423 |
} |
| 424 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_response_trailers_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpHeadersMatch* value) { |
| 425 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpHeadersMatch*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 8); |
| 426 |
} |
| 427 |
UPB_INLINE struct envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_response_trailers_match(envoy_config_tap_v3_MatchPredicate* msg, upb_Arena* arena) { |
| 428 |
struct envoy_config_tap_v3_HttpHeadersMatch* sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)envoy_config_tap_v3_MatchPredicate_http_response_trailers_match(msg); |
| 429 |
if (sub == NULL) { |
| 430 |
sub = (struct envoy_config_tap_v3_HttpHeadersMatch*)_upb_Message_New(&envoy_config_tap_v3_HttpHeadersMatch_msginit, arena); |
| 431 |
if (!sub) return NULL; |
| 432 |
envoy_config_tap_v3_MatchPredicate_set_http_response_trailers_match(msg, sub); |
| 433 |
} |
| 434 |
return sub; |
| 435 |
} |
| 436 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_request_generic_body_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpGenericBodyMatch* value) { |
| 437 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpGenericBodyMatch*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 9); |
| 438 |
} |
| 439 |
UPB_INLINE struct envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_request_generic_body_match(envoy_config_tap_v3_MatchPredicate* msg, upb_Arena* arena) { |
| 440 |
struct envoy_config_tap_v3_HttpGenericBodyMatch* sub = (struct envoy_config_tap_v3_HttpGenericBodyMatch*)envoy_config_tap_v3_MatchPredicate_http_request_generic_body_match(msg); |
| 441 |
if (sub == NULL) { |
| 442 |
sub = (struct envoy_config_tap_v3_HttpGenericBodyMatch*)_upb_Message_New(&envoy_config_tap_v3_HttpGenericBodyMatch_msginit, arena); |
| 443 |
if (!sub) return NULL; |
| 444 |
envoy_config_tap_v3_MatchPredicate_set_http_request_generic_body_match(msg, sub); |
| 445 |
} |
| 446 |
return sub; |
| 447 |
} |
| 448 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_set_http_response_generic_body_match(envoy_config_tap_v3_MatchPredicate *msg, envoy_config_tap_v3_HttpGenericBodyMatch* value) { |
| 449 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_HttpGenericBodyMatch*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 10); |
| 450 |
} |
| 451 |
UPB_INLINE struct envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_MatchPredicate_mutable_http_response_generic_body_match(envoy_config_tap_v3_MatchPredicate* msg, upb_Arena* arena) { |
| 452 |
struct envoy_config_tap_v3_HttpGenericBodyMatch* sub = (struct envoy_config_tap_v3_HttpGenericBodyMatch*)envoy_config_tap_v3_MatchPredicate_http_response_generic_body_match(msg); |
| 453 |
if (sub == NULL) { |
| 454 |
sub = (struct envoy_config_tap_v3_HttpGenericBodyMatch*)_upb_Message_New(&envoy_config_tap_v3_HttpGenericBodyMatch_msginit, arena); |
| 455 |
if (!sub) return NULL; |
| 456 |
envoy_config_tap_v3_MatchPredicate_set_http_response_generic_body_match(msg, sub); |
| 457 |
} |
| 458 |
return sub; |
| 459 |
} |
| 460 |
|
| 461 |
/* envoy.config.tap.v3.MatchPredicate.MatchSet */ |
| 462 |
|
| 463 |
UPB_INLINE envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_MatchSet_new(upb_Arena* arena) { |
| 464 |
return (envoy_config_tap_v3_MatchPredicate_MatchSet*)_upb_Message_New(&envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, arena); |
| 465 |
} |
| 466 |
UPB_INLINE envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_MatchSet_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 467 |
envoy_config_tap_v3_MatchPredicate_MatchSet* ret = envoy_config_tap_v3_MatchPredicate_MatchSet_new(arena); |
| 468 |
if (!ret) return NULL; |
| 469 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 470 |
return NULL; |
| 471 |
} |
| 472 |
return ret; |
| 473 |
} |
| 474 |
UPB_INLINE envoy_config_tap_v3_MatchPredicate_MatchSet* envoy_config_tap_v3_MatchPredicate_MatchSet_parse_ex(const char* buf, size_t size, |
| 475 |
const upb_ExtensionRegistry* extreg, |
| 476 |
int options, upb_Arena* arena) { |
| 477 |
envoy_config_tap_v3_MatchPredicate_MatchSet* ret = envoy_config_tap_v3_MatchPredicate_MatchSet_new(arena); |
| 478 |
if (!ret) return NULL; |
| 479 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, extreg, options, arena) != |
| 480 |
kUpb_DecodeStatus_Ok) { |
| 481 |
return NULL; |
| 482 |
} |
| 483 |
return ret; |
| 484 |
} |
| 485 |
UPB_INLINE char* envoy_config_tap_v3_MatchPredicate_MatchSet_serialize(const envoy_config_tap_v3_MatchPredicate_MatchSet* msg, upb_Arena* arena, size_t* len) { |
| 486 |
char* ptr; |
| 487 |
(void)upb_Encode(msg, &envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, 0, arena, &ptr, len); |
| 488 |
return ptr; |
| 489 |
} |
| 490 |
UPB_INLINE char* envoy_config_tap_v3_MatchPredicate_MatchSet_serialize_ex(const envoy_config_tap_v3_MatchPredicate_MatchSet* msg, int options, |
| 491 |
upb_Arena* arena, size_t* len) { |
| 492 |
char* ptr; |
| 493 |
(void)upb_Encode(msg, &envoy_config_tap_v3_MatchPredicate_MatchSet_msginit, options, arena, &ptr, len); |
| 494 |
return ptr; |
| 495 |
} |
| 496 |
UPB_INLINE bool envoy_config_tap_v3_MatchPredicate_MatchSet_has_rules(const envoy_config_tap_v3_MatchPredicate_MatchSet* msg) { |
| 497 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); |
| 498 |
} |
| 499 |
UPB_INLINE void envoy_config_tap_v3_MatchPredicate_MatchSet_clear_rules(const envoy_config_tap_v3_MatchPredicate_MatchSet* msg) { |
| 500 |
_upb_array_detach(msg, UPB_SIZE(0, 0)); |
| 501 |
} |
| 502 |
UPB_INLINE const envoy_config_tap_v3_MatchPredicate* const* envoy_config_tap_v3_MatchPredicate_MatchSet_rules(const envoy_config_tap_v3_MatchPredicate_MatchSet* msg, size_t* len) { |
| 503 |
return (const envoy_config_tap_v3_MatchPredicate* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); |
| 504 |
} |
| 505 |
|
| 506 |
UPB_INLINE envoy_config_tap_v3_MatchPredicate** envoy_config_tap_v3_MatchPredicate_MatchSet_mutable_rules(envoy_config_tap_v3_MatchPredicate_MatchSet* msg, size_t* len) { |
| 507 |
return (envoy_config_tap_v3_MatchPredicate**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
| 508 |
} |
| 509 |
UPB_INLINE envoy_config_tap_v3_MatchPredicate** envoy_config_tap_v3_MatchPredicate_MatchSet_resize_rules(envoy_config_tap_v3_MatchPredicate_MatchSet* msg, size_t len, upb_Arena* arena) { |
| 510 |
return (envoy_config_tap_v3_MatchPredicate**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
| 511 |
} |
| 512 |
UPB_INLINE struct envoy_config_tap_v3_MatchPredicate* envoy_config_tap_v3_MatchPredicate_MatchSet_add_rules(envoy_config_tap_v3_MatchPredicate_MatchSet* msg, upb_Arena* arena) { |
| 513 |
struct envoy_config_tap_v3_MatchPredicate* sub = (struct envoy_config_tap_v3_MatchPredicate*)_upb_Message_New(&envoy_config_tap_v3_MatchPredicate_msginit, arena); |
| 514 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena); |
| 515 |
if (!ok) return NULL; |
| 516 |
return sub; |
| 517 |
} |
| 518 |
|
| 519 |
/* envoy.config.tap.v3.HttpHeadersMatch */ |
| 520 |
|
| 521 |
UPB_INLINE envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_HttpHeadersMatch_new(upb_Arena* arena) { |
| 522 |
return (envoy_config_tap_v3_HttpHeadersMatch*)_upb_Message_New(&envoy_config_tap_v3_HttpHeadersMatch_msginit, arena); |
| 523 |
} |
| 524 |
UPB_INLINE envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_HttpHeadersMatch_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 525 |
envoy_config_tap_v3_HttpHeadersMatch* ret = envoy_config_tap_v3_HttpHeadersMatch_new(arena); |
| 526 |
if (!ret) return NULL; |
| 527 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_HttpHeadersMatch_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 528 |
return NULL; |
| 529 |
} |
| 530 |
return ret; |
| 531 |
} |
| 532 |
UPB_INLINE envoy_config_tap_v3_HttpHeadersMatch* envoy_config_tap_v3_HttpHeadersMatch_parse_ex(const char* buf, size_t size, |
| 533 |
const upb_ExtensionRegistry* extreg, |
| 534 |
int options, upb_Arena* arena) { |
| 535 |
envoy_config_tap_v3_HttpHeadersMatch* ret = envoy_config_tap_v3_HttpHeadersMatch_new(arena); |
| 536 |
if (!ret) return NULL; |
| 537 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_HttpHeadersMatch_msginit, extreg, options, arena) != |
| 538 |
kUpb_DecodeStatus_Ok) { |
| 539 |
return NULL; |
| 540 |
} |
| 541 |
return ret; |
| 542 |
} |
| 543 |
UPB_INLINE char* envoy_config_tap_v3_HttpHeadersMatch_serialize(const envoy_config_tap_v3_HttpHeadersMatch* msg, upb_Arena* arena, size_t* len) { |
| 544 |
char* ptr; |
| 545 |
(void)upb_Encode(msg, &envoy_config_tap_v3_HttpHeadersMatch_msginit, 0, arena, &ptr, len); |
| 546 |
return ptr; |
| 547 |
} |
| 548 |
UPB_INLINE char* envoy_config_tap_v3_HttpHeadersMatch_serialize_ex(const envoy_config_tap_v3_HttpHeadersMatch* msg, int options, |
| 549 |
upb_Arena* arena, size_t* len) { |
| 550 |
char* ptr; |
| 551 |
(void)upb_Encode(msg, &envoy_config_tap_v3_HttpHeadersMatch_msginit, options, arena, &ptr, len); |
| 552 |
return ptr; |
| 553 |
} |
| 554 |
UPB_INLINE bool envoy_config_tap_v3_HttpHeadersMatch_has_headers(const envoy_config_tap_v3_HttpHeadersMatch* msg) { |
| 555 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); |
| 556 |
} |
| 557 |
UPB_INLINE void envoy_config_tap_v3_HttpHeadersMatch_clear_headers(const envoy_config_tap_v3_HttpHeadersMatch* msg) { |
| 558 |
_upb_array_detach(msg, UPB_SIZE(0, 0)); |
| 559 |
} |
| 560 |
UPB_INLINE const struct envoy_config_route_v3_HeaderMatcher* const* envoy_config_tap_v3_HttpHeadersMatch_headers(const envoy_config_tap_v3_HttpHeadersMatch* msg, size_t* len) { |
| 561 |
return (const struct envoy_config_route_v3_HeaderMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); |
| 562 |
} |
| 563 |
|
| 564 |
UPB_INLINE struct envoy_config_route_v3_HeaderMatcher** envoy_config_tap_v3_HttpHeadersMatch_mutable_headers(envoy_config_tap_v3_HttpHeadersMatch* msg, size_t* len) { |
| 565 |
return (struct envoy_config_route_v3_HeaderMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
| 566 |
} |
| 567 |
UPB_INLINE struct envoy_config_route_v3_HeaderMatcher** envoy_config_tap_v3_HttpHeadersMatch_resize_headers(envoy_config_tap_v3_HttpHeadersMatch* msg, size_t len, upb_Arena* arena) { |
| 568 |
return (struct envoy_config_route_v3_HeaderMatcher**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
| 569 |
} |
| 570 |
UPB_INLINE struct envoy_config_route_v3_HeaderMatcher* envoy_config_tap_v3_HttpHeadersMatch_add_headers(envoy_config_tap_v3_HttpHeadersMatch* msg, upb_Arena* arena) { |
| 571 |
struct envoy_config_route_v3_HeaderMatcher* sub = (struct envoy_config_route_v3_HeaderMatcher*)_upb_Message_New(&envoy_config_route_v3_HeaderMatcher_msginit, arena); |
| 572 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena); |
| 573 |
if (!ok) return NULL; |
| 574 |
return sub; |
| 575 |
} |
| 576 |
|
| 577 |
/* envoy.config.tap.v3.HttpGenericBodyMatch */ |
| 578 |
|
| 579 |
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_HttpGenericBodyMatch_new(upb_Arena* arena) { |
| 580 |
return (envoy_config_tap_v3_HttpGenericBodyMatch*)_upb_Message_New(&envoy_config_tap_v3_HttpGenericBodyMatch_msginit, arena); |
| 581 |
} |
| 582 |
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_HttpGenericBodyMatch_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 583 |
envoy_config_tap_v3_HttpGenericBodyMatch* ret = envoy_config_tap_v3_HttpGenericBodyMatch_new(arena); |
| 584 |
if (!ret) return NULL; |
| 585 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_HttpGenericBodyMatch_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 586 |
return NULL; |
| 587 |
} |
| 588 |
return ret; |
| 589 |
} |
| 590 |
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch* envoy_config_tap_v3_HttpGenericBodyMatch_parse_ex(const char* buf, size_t size, |
| 591 |
const upb_ExtensionRegistry* extreg, |
| 592 |
int options, upb_Arena* arena) { |
| 593 |
envoy_config_tap_v3_HttpGenericBodyMatch* ret = envoy_config_tap_v3_HttpGenericBodyMatch_new(arena); |
| 594 |
if (!ret) return NULL; |
| 595 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_HttpGenericBodyMatch_msginit, extreg, options, arena) != |
| 596 |
kUpb_DecodeStatus_Ok) { |
| 597 |
return NULL; |
| 598 |
} |
| 599 |
return ret; |
| 600 |
} |
| 601 |
UPB_INLINE char* envoy_config_tap_v3_HttpGenericBodyMatch_serialize(const envoy_config_tap_v3_HttpGenericBodyMatch* msg, upb_Arena* arena, size_t* len) { |
| 602 |
char* ptr; |
| 603 |
(void)upb_Encode(msg, &envoy_config_tap_v3_HttpGenericBodyMatch_msginit, 0, arena, &ptr, len); |
| 604 |
return ptr; |
| 605 |
} |
| 606 |
UPB_INLINE char* envoy_config_tap_v3_HttpGenericBodyMatch_serialize_ex(const envoy_config_tap_v3_HttpGenericBodyMatch* msg, int options, |
| 607 |
upb_Arena* arena, size_t* len) { |
| 608 |
char* ptr; |
| 609 |
(void)upb_Encode(msg, &envoy_config_tap_v3_HttpGenericBodyMatch_msginit, options, arena, &ptr, len); |
| 610 |
return ptr; |
| 611 |
} |
| 612 |
UPB_INLINE void envoy_config_tap_v3_HttpGenericBodyMatch_clear_bytes_limit(const envoy_config_tap_v3_HttpGenericBodyMatch* msg) { |
| 613 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t) = 0; |
| 614 |
} |
| 615 |
UPB_INLINE uint32_t envoy_config_tap_v3_HttpGenericBodyMatch_bytes_limit(const envoy_config_tap_v3_HttpGenericBodyMatch* msg) { |
| 616 |
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t); |
| 617 |
} |
| 618 |
UPB_INLINE bool envoy_config_tap_v3_HttpGenericBodyMatch_has_patterns(const envoy_config_tap_v3_HttpGenericBodyMatch* msg) { |
| 619 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); |
| 620 |
} |
| 621 |
UPB_INLINE void envoy_config_tap_v3_HttpGenericBodyMatch_clear_patterns(const envoy_config_tap_v3_HttpGenericBodyMatch* msg) { |
| 622 |
_upb_array_detach(msg, UPB_SIZE(4, 8)); |
| 623 |
} |
| 624 |
UPB_INLINE const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* const* envoy_config_tap_v3_HttpGenericBodyMatch_patterns(const envoy_config_tap_v3_HttpGenericBodyMatch* msg, size_t* len) { |
| 625 |
return (const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); |
| 626 |
} |
| 627 |
|
| 628 |
UPB_INLINE void envoy_config_tap_v3_HttpGenericBodyMatch_set_bytes_limit(envoy_config_tap_v3_HttpGenericBodyMatch *msg, uint32_t value) { |
| 629 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint32_t) = value; |
| 630 |
} |
| 631 |
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch** envoy_config_tap_v3_HttpGenericBodyMatch_mutable_patterns(envoy_config_tap_v3_HttpGenericBodyMatch* msg, size_t* len) { |
| 632 |
return (envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
| 633 |
} |
| 634 |
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch** envoy_config_tap_v3_HttpGenericBodyMatch_resize_patterns(envoy_config_tap_v3_HttpGenericBodyMatch* msg, size_t len, upb_Arena* arena) { |
| 635 |
return (envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
| 636 |
} |
| 637 |
UPB_INLINE struct envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* envoy_config_tap_v3_HttpGenericBodyMatch_add_patterns(envoy_config_tap_v3_HttpGenericBodyMatch* msg, upb_Arena* arena) { |
| 638 |
struct envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* sub = (struct envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch*)_upb_Message_New(&envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, arena); |
| 639 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena); |
| 640 |
if (!ok) return NULL; |
| 641 |
return sub; |
| 642 |
} |
| 643 |
|
| 644 |
/* envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch */ |
| 645 |
|
| 646 |
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_new(upb_Arena* arena) { |
| 647 |
return (envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch*)_upb_Message_New(&envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, arena); |
| 648 |
} |
| 649 |
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 650 |
envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* ret = envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_new(arena); |
| 651 |
if (!ret) return NULL; |
| 652 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 653 |
return NULL; |
| 654 |
} |
| 655 |
return ret; |
| 656 |
} |
| 657 |
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_parse_ex(const char* buf, size_t size, |
| 658 |
const upb_ExtensionRegistry* extreg, |
| 659 |
int options, upb_Arena* arena) { |
| 660 |
envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* ret = envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_new(arena); |
| 661 |
if (!ret) return NULL; |
| 662 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, extreg, options, arena) != |
| 663 |
kUpb_DecodeStatus_Ok) { |
| 664 |
return NULL; |
| 665 |
} |
| 666 |
return ret; |
| 667 |
} |
| 668 |
UPB_INLINE char* envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_serialize(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* msg, upb_Arena* arena, size_t* len) { |
| 669 |
char* ptr; |
| 670 |
(void)upb_Encode(msg, &envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, 0, arena, &ptr, len); |
| 671 |
return ptr; |
| 672 |
} |
| 673 |
UPB_INLINE char* envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_serialize_ex(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* msg, int options, |
| 674 |
upb_Arena* arena, size_t* len) { |
| 675 |
char* ptr; |
| 676 |
(void)upb_Encode(msg, &envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_msginit, options, arena, &ptr, len); |
| 677 |
return ptr; |
| 678 |
} |
| 679 |
typedef enum { |
| 680 |
envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_string_match = 1, |
| 681 |
envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_binary_match = 2, |
| 682 |
envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_NOT_SET = 0 |
| 683 |
} envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_oneofcases; |
| 684 |
UPB_INLINE envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_oneofcases envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_case(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* msg) { |
| 685 |
return (envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); |
| 686 |
} |
| 687 |
UPB_INLINE bool envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_has_string_match(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* msg) { |
| 688 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 1; |
| 689 |
} |
| 690 |
UPB_INLINE void envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_clear_string_match(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* msg) { |
| 691 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), upb_StringView_FromDataAndSize(NULL, 0), UPB_SIZE(0, 0), envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_NOT_SET); |
| 692 |
} |
| 693 |
UPB_INLINE upb_StringView envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_string_match(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* msg) { |
| 694 |
return UPB_READ_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 1, upb_StringView_FromString("")); |
| 695 |
} |
| 696 |
UPB_INLINE bool envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_has_binary_match(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* msg) { |
| 697 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 2; |
| 698 |
} |
| 699 |
UPB_INLINE void envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_clear_binary_match(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* msg) { |
| 700 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), upb_StringView_FromDataAndSize(NULL, 0), UPB_SIZE(0, 0), envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_rule_NOT_SET); |
| 701 |
} |
| 702 |
UPB_INLINE upb_StringView envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_binary_match(const envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch* msg) { |
| 703 |
return UPB_READ_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 2, upb_StringView_FromString("")); |
| 704 |
} |
| 705 |
|
| 706 |
UPB_INLINE void envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_set_string_match(envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *msg, upb_StringView value) { |
| 707 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 1); |
| 708 |
} |
| 709 |
UPB_INLINE void envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch_set_binary_match(envoy_config_tap_v3_HttpGenericBodyMatch_GenericTextMatch *msg, upb_StringView value) { |
| 710 |
UPB_WRITE_ONEOF(msg, upb_StringView, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 2); |
| 711 |
} |
| 712 |
|
| 713 |
/* envoy.config.tap.v3.OutputConfig */ |
| 714 |
|
| 715 |
UPB_INLINE envoy_config_tap_v3_OutputConfig* envoy_config_tap_v3_OutputConfig_new(upb_Arena* arena) { |
| 716 |
return (envoy_config_tap_v3_OutputConfig*)_upb_Message_New(&envoy_config_tap_v3_OutputConfig_msginit, arena); |
| 717 |
} |
| 718 |
UPB_INLINE envoy_config_tap_v3_OutputConfig* envoy_config_tap_v3_OutputConfig_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 719 |
envoy_config_tap_v3_OutputConfig* ret = envoy_config_tap_v3_OutputConfig_new(arena); |
| 720 |
if (!ret) return NULL; |
| 721 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_OutputConfig_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 722 |
return NULL; |
| 723 |
} |
| 724 |
return ret; |
| 725 |
} |
| 726 |
UPB_INLINE envoy_config_tap_v3_OutputConfig* envoy_config_tap_v3_OutputConfig_parse_ex(const char* buf, size_t size, |
| 727 |
const upb_ExtensionRegistry* extreg, |
| 728 |
int options, upb_Arena* arena) { |
| 729 |
envoy_config_tap_v3_OutputConfig* ret = envoy_config_tap_v3_OutputConfig_new(arena); |
| 730 |
if (!ret) return NULL; |
| 731 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_OutputConfig_msginit, extreg, options, arena) != |
| 732 |
kUpb_DecodeStatus_Ok) { |
| 733 |
return NULL; |
| 734 |
} |
| 735 |
return ret; |
| 736 |
} |
| 737 |
UPB_INLINE char* envoy_config_tap_v3_OutputConfig_serialize(const envoy_config_tap_v3_OutputConfig* msg, upb_Arena* arena, size_t* len) { |
| 738 |
char* ptr; |
| 739 |
(void)upb_Encode(msg, &envoy_config_tap_v3_OutputConfig_msginit, 0, arena, &ptr, len); |
| 740 |
return ptr; |
| 741 |
} |
| 742 |
UPB_INLINE char* envoy_config_tap_v3_OutputConfig_serialize_ex(const envoy_config_tap_v3_OutputConfig* msg, int options, |
| 743 |
upb_Arena* arena, size_t* len) { |
| 744 |
char* ptr; |
| 745 |
(void)upb_Encode(msg, &envoy_config_tap_v3_OutputConfig_msginit, options, arena, &ptr, len); |
| 746 |
return ptr; |
| 747 |
} |
| 748 |
UPB_INLINE bool envoy_config_tap_v3_OutputConfig_has_sinks(const envoy_config_tap_v3_OutputConfig* msg) { |
| 749 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); |
| 750 |
} |
| 751 |
UPB_INLINE void envoy_config_tap_v3_OutputConfig_clear_sinks(const envoy_config_tap_v3_OutputConfig* msg) { |
| 752 |
_upb_array_detach(msg, UPB_SIZE(4, 8)); |
| 753 |
} |
| 754 |
UPB_INLINE const envoy_config_tap_v3_OutputSink* const* envoy_config_tap_v3_OutputConfig_sinks(const envoy_config_tap_v3_OutputConfig* msg, size_t* len) { |
| 755 |
return (const envoy_config_tap_v3_OutputSink* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); |
| 756 |
} |
| 757 |
UPB_INLINE bool envoy_config_tap_v3_OutputConfig_has_max_buffered_rx_bytes(const envoy_config_tap_v3_OutputConfig* msg) { |
| 758 |
return _upb_hasbit(msg, 1); |
| 759 |
} |
| 760 |
UPB_INLINE void envoy_config_tap_v3_OutputConfig_clear_max_buffered_rx_bytes(const envoy_config_tap_v3_OutputConfig* msg) { |
| 761 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
| 762 |
} |
| 763 |
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_tap_v3_OutputConfig_max_buffered_rx_bytes(const envoy_config_tap_v3_OutputConfig* msg) { |
| 764 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_UInt32Value*); |
| 765 |
} |
| 766 |
UPB_INLINE bool envoy_config_tap_v3_OutputConfig_has_max_buffered_tx_bytes(const envoy_config_tap_v3_OutputConfig* msg) { |
| 767 |
return _upb_hasbit(msg, 2); |
| 768 |
} |
| 769 |
UPB_INLINE void envoy_config_tap_v3_OutputConfig_clear_max_buffered_tx_bytes(const envoy_config_tap_v3_OutputConfig* msg) { |
| 770 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), const upb_Message*) = NULL; |
| 771 |
} |
| 772 |
UPB_INLINE const struct google_protobuf_UInt32Value* envoy_config_tap_v3_OutputConfig_max_buffered_tx_bytes(const envoy_config_tap_v3_OutputConfig* msg) { |
| 773 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_UInt32Value*); |
| 774 |
} |
| 775 |
UPB_INLINE void envoy_config_tap_v3_OutputConfig_clear_streaming(const envoy_config_tap_v3_OutputConfig* msg) { |
| 776 |
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = 0; |
| 777 |
} |
| 778 |
UPB_INLINE bool envoy_config_tap_v3_OutputConfig_streaming(const envoy_config_tap_v3_OutputConfig* msg) { |
| 779 |
return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); |
| 780 |
} |
| 781 |
|
| 782 |
UPB_INLINE envoy_config_tap_v3_OutputSink** envoy_config_tap_v3_OutputConfig_mutable_sinks(envoy_config_tap_v3_OutputConfig* msg, size_t* len) { |
| 783 |
return (envoy_config_tap_v3_OutputSink**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
| 784 |
} |
| 785 |
UPB_INLINE envoy_config_tap_v3_OutputSink** envoy_config_tap_v3_OutputConfig_resize_sinks(envoy_config_tap_v3_OutputConfig* msg, size_t len, upb_Arena* arena) { |
| 786 |
return (envoy_config_tap_v3_OutputSink**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
| 787 |
} |
| 788 |
UPB_INLINE struct envoy_config_tap_v3_OutputSink* envoy_config_tap_v3_OutputConfig_add_sinks(envoy_config_tap_v3_OutputConfig* msg, upb_Arena* arena) { |
| 789 |
struct envoy_config_tap_v3_OutputSink* sub = (struct envoy_config_tap_v3_OutputSink*)_upb_Message_New(&envoy_config_tap_v3_OutputSink_msginit, arena); |
| 790 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena); |
| 791 |
if (!ok) return NULL; |
| 792 |
return sub; |
| 793 |
} |
| 794 |
UPB_INLINE void envoy_config_tap_v3_OutputConfig_set_max_buffered_rx_bytes(envoy_config_tap_v3_OutputConfig *msg, struct google_protobuf_UInt32Value* value) { |
| 795 |
_upb_sethas(msg, 1); |
| 796 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_UInt32Value*) = value; |
| 797 |
} |
| 798 |
UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_tap_v3_OutputConfig_mutable_max_buffered_rx_bytes(envoy_config_tap_v3_OutputConfig* msg, upb_Arena* arena) { |
| 799 |
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_tap_v3_OutputConfig_max_buffered_rx_bytes(msg); |
| 800 |
if (sub == NULL) { |
| 801 |
sub = (struct google_protobuf_UInt32Value*)_upb_Message_New(&google_protobuf_UInt32Value_msginit, arena); |
| 802 |
if (!sub) return NULL; |
| 803 |
envoy_config_tap_v3_OutputConfig_set_max_buffered_rx_bytes(msg, sub); |
| 804 |
} |
| 805 |
return sub; |
| 806 |
} |
| 807 |
UPB_INLINE void envoy_config_tap_v3_OutputConfig_set_max_buffered_tx_bytes(envoy_config_tap_v3_OutputConfig *msg, struct google_protobuf_UInt32Value* value) { |
| 808 |
_upb_sethas(msg, 2); |
| 809 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_UInt32Value*) = value; |
| 810 |
} |
| 811 |
UPB_INLINE struct google_protobuf_UInt32Value* envoy_config_tap_v3_OutputConfig_mutable_max_buffered_tx_bytes(envoy_config_tap_v3_OutputConfig* msg, upb_Arena* arena) { |
| 812 |
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)envoy_config_tap_v3_OutputConfig_max_buffered_tx_bytes(msg); |
| 813 |
if (sub == NULL) { |
| 814 |
sub = (struct google_protobuf_UInt32Value*)_upb_Message_New(&google_protobuf_UInt32Value_msginit, arena); |
| 815 |
if (!sub) return NULL; |
| 816 |
envoy_config_tap_v3_OutputConfig_set_max_buffered_tx_bytes(msg, sub); |
| 817 |
} |
| 818 |
return sub; |
| 819 |
} |
| 820 |
UPB_INLINE void envoy_config_tap_v3_OutputConfig_set_streaming(envoy_config_tap_v3_OutputConfig *msg, bool value) { |
| 821 |
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value; |
| 822 |
} |
| 823 |
|
| 824 |
/* envoy.config.tap.v3.OutputSink */ |
| 825 |
|
| 826 |
UPB_INLINE envoy_config_tap_v3_OutputSink* envoy_config_tap_v3_OutputSink_new(upb_Arena* arena) { |
| 827 |
return (envoy_config_tap_v3_OutputSink*)_upb_Message_New(&envoy_config_tap_v3_OutputSink_msginit, arena); |
| 828 |
} |
| 829 |
UPB_INLINE envoy_config_tap_v3_OutputSink* envoy_config_tap_v3_OutputSink_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 830 |
envoy_config_tap_v3_OutputSink* ret = envoy_config_tap_v3_OutputSink_new(arena); |
| 831 |
if (!ret) return NULL; |
| 832 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_OutputSink_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 833 |
return NULL; |
| 834 |
} |
| 835 |
return ret; |
| 836 |
} |
| 837 |
UPB_INLINE envoy_config_tap_v3_OutputSink* envoy_config_tap_v3_OutputSink_parse_ex(const char* buf, size_t size, |
| 838 |
const upb_ExtensionRegistry* extreg, |
| 839 |
int options, upb_Arena* arena) { |
| 840 |
envoy_config_tap_v3_OutputSink* ret = envoy_config_tap_v3_OutputSink_new(arena); |
| 841 |
if (!ret) return NULL; |
| 842 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_OutputSink_msginit, extreg, options, arena) != |
| 843 |
kUpb_DecodeStatus_Ok) { |
| 844 |
return NULL; |
| 845 |
} |
| 846 |
return ret; |
| 847 |
} |
| 848 |
UPB_INLINE char* envoy_config_tap_v3_OutputSink_serialize(const envoy_config_tap_v3_OutputSink* msg, upb_Arena* arena, size_t* len) { |
| 849 |
char* ptr; |
| 850 |
(void)upb_Encode(msg, &envoy_config_tap_v3_OutputSink_msginit, 0, arena, &ptr, len); |
| 851 |
return ptr; |
| 852 |
} |
| 853 |
UPB_INLINE char* envoy_config_tap_v3_OutputSink_serialize_ex(const envoy_config_tap_v3_OutputSink* msg, int options, |
| 854 |
upb_Arena* arena, size_t* len) { |
| 855 |
char* ptr; |
| 856 |
(void)upb_Encode(msg, &envoy_config_tap_v3_OutputSink_msginit, options, arena, &ptr, len); |
| 857 |
return ptr; |
| 858 |
} |
| 859 |
typedef enum { |
| 860 |
envoy_config_tap_v3_OutputSink_output_sink_type_streaming_admin = 2, |
| 861 |
envoy_config_tap_v3_OutputSink_output_sink_type_file_per_tap = 3, |
| 862 |
envoy_config_tap_v3_OutputSink_output_sink_type_streaming_grpc = 4, |
| 863 |
envoy_config_tap_v3_OutputSink_output_sink_type_buffered_admin = 5, |
| 864 |
envoy_config_tap_v3_OutputSink_output_sink_type_NOT_SET = 0 |
| 865 |
} envoy_config_tap_v3_OutputSink_output_sink_type_oneofcases; |
| 866 |
UPB_INLINE envoy_config_tap_v3_OutputSink_output_sink_type_oneofcases envoy_config_tap_v3_OutputSink_output_sink_type_case(const envoy_config_tap_v3_OutputSink* msg) { |
| 867 |
return (envoy_config_tap_v3_OutputSink_output_sink_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); |
| 868 |
} |
| 869 |
UPB_INLINE void envoy_config_tap_v3_OutputSink_clear_format(const envoy_config_tap_v3_OutputSink* msg) { |
| 870 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = 0; |
| 871 |
} |
| 872 |
UPB_INLINE int32_t envoy_config_tap_v3_OutputSink_format(const envoy_config_tap_v3_OutputSink* msg) { |
| 873 |
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); |
| 874 |
} |
| 875 |
UPB_INLINE bool envoy_config_tap_v3_OutputSink_has_streaming_admin(const envoy_config_tap_v3_OutputSink* msg) { |
| 876 |
return _upb_getoneofcase(msg, UPB_SIZE(4, 4)) == 2; |
| 877 |
} |
| 878 |
UPB_INLINE void envoy_config_tap_v3_OutputSink_clear_streaming_admin(const envoy_config_tap_v3_OutputSink* msg) { |
| 879 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_StreamingAdminSink*, UPB_SIZE(8, 8), 0, UPB_SIZE(4, 4), envoy_config_tap_v3_OutputSink_output_sink_type_NOT_SET); |
| 880 |
} |
| 881 |
UPB_INLINE const envoy_config_tap_v3_StreamingAdminSink* envoy_config_tap_v3_OutputSink_streaming_admin(const envoy_config_tap_v3_OutputSink* msg) { |
| 882 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_StreamingAdminSink*, UPB_SIZE(8, 8), UPB_SIZE(4, 4), 2, NULL); |
| 883 |
} |
| 884 |
UPB_INLINE bool envoy_config_tap_v3_OutputSink_has_file_per_tap(const envoy_config_tap_v3_OutputSink* msg) { |
| 885 |
return _upb_getoneofcase(msg, UPB_SIZE(4, 4)) == 3; |
| 886 |
} |
| 887 |
UPB_INLINE void envoy_config_tap_v3_OutputSink_clear_file_per_tap(const envoy_config_tap_v3_OutputSink* msg) { |
| 888 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_FilePerTapSink*, UPB_SIZE(8, 8), 0, UPB_SIZE(4, 4), envoy_config_tap_v3_OutputSink_output_sink_type_NOT_SET); |
| 889 |
} |
| 890 |
UPB_INLINE const envoy_config_tap_v3_FilePerTapSink* envoy_config_tap_v3_OutputSink_file_per_tap(const envoy_config_tap_v3_OutputSink* msg) { |
| 891 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_FilePerTapSink*, UPB_SIZE(8, 8), UPB_SIZE(4, 4), 3, NULL); |
| 892 |
} |
| 893 |
UPB_INLINE bool envoy_config_tap_v3_OutputSink_has_streaming_grpc(const envoy_config_tap_v3_OutputSink* msg) { |
| 894 |
return _upb_getoneofcase(msg, UPB_SIZE(4, 4)) == 4; |
| 895 |
} |
| 896 |
UPB_INLINE void envoy_config_tap_v3_OutputSink_clear_streaming_grpc(const envoy_config_tap_v3_OutputSink* msg) { |
| 897 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_StreamingGrpcSink*, UPB_SIZE(8, 8), 0, UPB_SIZE(4, 4), envoy_config_tap_v3_OutputSink_output_sink_type_NOT_SET); |
| 898 |
} |
| 899 |
UPB_INLINE const envoy_config_tap_v3_StreamingGrpcSink* envoy_config_tap_v3_OutputSink_streaming_grpc(const envoy_config_tap_v3_OutputSink* msg) { |
| 900 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_StreamingGrpcSink*, UPB_SIZE(8, 8), UPB_SIZE(4, 4), 4, NULL); |
| 901 |
} |
| 902 |
UPB_INLINE bool envoy_config_tap_v3_OutputSink_has_buffered_admin(const envoy_config_tap_v3_OutputSink* msg) { |
| 903 |
return _upb_getoneofcase(msg, UPB_SIZE(4, 4)) == 5; |
| 904 |
} |
| 905 |
UPB_INLINE void envoy_config_tap_v3_OutputSink_clear_buffered_admin(const envoy_config_tap_v3_OutputSink* msg) { |
| 906 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_BufferedAdminSink*, UPB_SIZE(8, 8), 0, UPB_SIZE(4, 4), envoy_config_tap_v3_OutputSink_output_sink_type_NOT_SET); |
| 907 |
} |
| 908 |
UPB_INLINE const envoy_config_tap_v3_BufferedAdminSink* envoy_config_tap_v3_OutputSink_buffered_admin(const envoy_config_tap_v3_OutputSink* msg) { |
| 909 |
return UPB_READ_ONEOF(msg, const envoy_config_tap_v3_BufferedAdminSink*, UPB_SIZE(8, 8), UPB_SIZE(4, 4), 5, NULL); |
| 910 |
} |
| 911 |
|
| 912 |
UPB_INLINE void envoy_config_tap_v3_OutputSink_set_format(envoy_config_tap_v3_OutputSink *msg, int32_t value) { |
| 913 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value; |
| 914 |
} |
| 915 |
UPB_INLINE void envoy_config_tap_v3_OutputSink_set_streaming_admin(envoy_config_tap_v3_OutputSink *msg, envoy_config_tap_v3_StreamingAdminSink* value) { |
| 916 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_StreamingAdminSink*, UPB_SIZE(8, 8), value, UPB_SIZE(4, 4), 2); |
| 917 |
} |
| 918 |
UPB_INLINE struct envoy_config_tap_v3_StreamingAdminSink* envoy_config_tap_v3_OutputSink_mutable_streaming_admin(envoy_config_tap_v3_OutputSink* msg, upb_Arena* arena) { |
| 919 |
struct envoy_config_tap_v3_StreamingAdminSink* sub = (struct envoy_config_tap_v3_StreamingAdminSink*)envoy_config_tap_v3_OutputSink_streaming_admin(msg); |
| 920 |
if (sub == NULL) { |
| 921 |
sub = (struct envoy_config_tap_v3_StreamingAdminSink*)_upb_Message_New(&envoy_config_tap_v3_StreamingAdminSink_msginit, arena); |
| 922 |
if (!sub) return NULL; |
| 923 |
envoy_config_tap_v3_OutputSink_set_streaming_admin(msg, sub); |
| 924 |
} |
| 925 |
return sub; |
| 926 |
} |
| 927 |
UPB_INLINE void envoy_config_tap_v3_OutputSink_set_file_per_tap(envoy_config_tap_v3_OutputSink *msg, envoy_config_tap_v3_FilePerTapSink* value) { |
| 928 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_FilePerTapSink*, UPB_SIZE(8, 8), value, UPB_SIZE(4, 4), 3); |
| 929 |
} |
| 930 |
UPB_INLINE struct envoy_config_tap_v3_FilePerTapSink* envoy_config_tap_v3_OutputSink_mutable_file_per_tap(envoy_config_tap_v3_OutputSink* msg, upb_Arena* arena) { |
| 931 |
struct envoy_config_tap_v3_FilePerTapSink* sub = (struct envoy_config_tap_v3_FilePerTapSink*)envoy_config_tap_v3_OutputSink_file_per_tap(msg); |
| 932 |
if (sub == NULL) { |
| 933 |
sub = (struct envoy_config_tap_v3_FilePerTapSink*)_upb_Message_New(&envoy_config_tap_v3_FilePerTapSink_msginit, arena); |
| 934 |
if (!sub) return NULL; |
| 935 |
envoy_config_tap_v3_OutputSink_set_file_per_tap(msg, sub); |
| 936 |
} |
| 937 |
return sub; |
| 938 |
} |
| 939 |
UPB_INLINE void envoy_config_tap_v3_OutputSink_set_streaming_grpc(envoy_config_tap_v3_OutputSink *msg, envoy_config_tap_v3_StreamingGrpcSink* value) { |
| 940 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_StreamingGrpcSink*, UPB_SIZE(8, 8), value, UPB_SIZE(4, 4), 4); |
| 941 |
} |
| 942 |
UPB_INLINE struct envoy_config_tap_v3_StreamingGrpcSink* envoy_config_tap_v3_OutputSink_mutable_streaming_grpc(envoy_config_tap_v3_OutputSink* msg, upb_Arena* arena) { |
| 943 |
struct envoy_config_tap_v3_StreamingGrpcSink* sub = (struct envoy_config_tap_v3_StreamingGrpcSink*)envoy_config_tap_v3_OutputSink_streaming_grpc(msg); |
| 944 |
if (sub == NULL) { |
| 945 |
sub = (struct envoy_config_tap_v3_StreamingGrpcSink*)_upb_Message_New(&envoy_config_tap_v3_StreamingGrpcSink_msginit, arena); |
| 946 |
if (!sub) return NULL; |
| 947 |
envoy_config_tap_v3_OutputSink_set_streaming_grpc(msg, sub); |
| 948 |
} |
| 949 |
return sub; |
| 950 |
} |
| 951 |
UPB_INLINE void envoy_config_tap_v3_OutputSink_set_buffered_admin(envoy_config_tap_v3_OutputSink *msg, envoy_config_tap_v3_BufferedAdminSink* value) { |
| 952 |
UPB_WRITE_ONEOF(msg, envoy_config_tap_v3_BufferedAdminSink*, UPB_SIZE(8, 8), value, UPB_SIZE(4, 4), 5); |
| 953 |
} |
| 954 |
UPB_INLINE struct envoy_config_tap_v3_BufferedAdminSink* envoy_config_tap_v3_OutputSink_mutable_buffered_admin(envoy_config_tap_v3_OutputSink* msg, upb_Arena* arena) { |
| 955 |
struct envoy_config_tap_v3_BufferedAdminSink* sub = (struct envoy_config_tap_v3_BufferedAdminSink*)envoy_config_tap_v3_OutputSink_buffered_admin(msg); |
| 956 |
if (sub == NULL) { |
| 957 |
sub = (struct envoy_config_tap_v3_BufferedAdminSink*)_upb_Message_New(&envoy_config_tap_v3_BufferedAdminSink_msginit, arena); |
| 958 |
if (!sub) return NULL; |
| 959 |
envoy_config_tap_v3_OutputSink_set_buffered_admin(msg, sub); |
| 960 |
} |
| 961 |
return sub; |
| 962 |
} |
| 963 |
|
| 964 |
/* envoy.config.tap.v3.StreamingAdminSink */ |
| 965 |
|
| 966 |
UPB_INLINE envoy_config_tap_v3_StreamingAdminSink* envoy_config_tap_v3_StreamingAdminSink_new(upb_Arena* arena) { |
| 967 |
return (envoy_config_tap_v3_StreamingAdminSink*)_upb_Message_New(&envoy_config_tap_v3_StreamingAdminSink_msginit, arena); |
| 968 |
} |
| 969 |
UPB_INLINE envoy_config_tap_v3_StreamingAdminSink* envoy_config_tap_v3_StreamingAdminSink_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 970 |
envoy_config_tap_v3_StreamingAdminSink* ret = envoy_config_tap_v3_StreamingAdminSink_new(arena); |
| 971 |
if (!ret) return NULL; |
| 972 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_StreamingAdminSink_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 973 |
return NULL; |
| 974 |
} |
| 975 |
return ret; |
| 976 |
} |
| 977 |
UPB_INLINE envoy_config_tap_v3_StreamingAdminSink* envoy_config_tap_v3_StreamingAdminSink_parse_ex(const char* buf, size_t size, |
| 978 |
const upb_ExtensionRegistry* extreg, |
| 979 |
int options, upb_Arena* arena) { |
| 980 |
envoy_config_tap_v3_StreamingAdminSink* ret = envoy_config_tap_v3_StreamingAdminSink_new(arena); |
| 981 |
if (!ret) return NULL; |
| 982 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_StreamingAdminSink_msginit, extreg, options, arena) != |
| 983 |
kUpb_DecodeStatus_Ok) { |
| 984 |
return NULL; |
| 985 |
} |
| 986 |
return ret; |
| 987 |
} |
| 988 |
UPB_INLINE char* envoy_config_tap_v3_StreamingAdminSink_serialize(const envoy_config_tap_v3_StreamingAdminSink* msg, upb_Arena* arena, size_t* len) { |
| 989 |
char* ptr; |
| 990 |
(void)upb_Encode(msg, &envoy_config_tap_v3_StreamingAdminSink_msginit, 0, arena, &ptr, len); |
| 991 |
return ptr; |
| 992 |
} |
| 993 |
UPB_INLINE char* envoy_config_tap_v3_StreamingAdminSink_serialize_ex(const envoy_config_tap_v3_StreamingAdminSink* msg, int options, |
| 994 |
upb_Arena* arena, size_t* len) { |
| 995 |
char* ptr; |
| 996 |
(void)upb_Encode(msg, &envoy_config_tap_v3_StreamingAdminSink_msginit, options, arena, &ptr, len); |
| 997 |
return ptr; |
| 998 |
} |
| 999 |
|
| 1000 |
|
| 1001 |
/* envoy.config.tap.v3.BufferedAdminSink */ |
| 1002 |
|
| 1003 |
UPB_INLINE envoy_config_tap_v3_BufferedAdminSink* envoy_config_tap_v3_BufferedAdminSink_new(upb_Arena* arena) { |
| 1004 |
return (envoy_config_tap_v3_BufferedAdminSink*)_upb_Message_New(&envoy_config_tap_v3_BufferedAdminSink_msginit, arena); |
| 1005 |
} |
| 1006 |
UPB_INLINE envoy_config_tap_v3_BufferedAdminSink* envoy_config_tap_v3_BufferedAdminSink_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1007 |
envoy_config_tap_v3_BufferedAdminSink* ret = envoy_config_tap_v3_BufferedAdminSink_new(arena); |
| 1008 |
if (!ret) return NULL; |
| 1009 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_BufferedAdminSink_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1010 |
return NULL; |
| 1011 |
} |
| 1012 |
return ret; |
| 1013 |
} |
| 1014 |
UPB_INLINE envoy_config_tap_v3_BufferedAdminSink* envoy_config_tap_v3_BufferedAdminSink_parse_ex(const char* buf, size_t size, |
| 1015 |
const upb_ExtensionRegistry* extreg, |
| 1016 |
int options, upb_Arena* arena) { |
| 1017 |
envoy_config_tap_v3_BufferedAdminSink* ret = envoy_config_tap_v3_BufferedAdminSink_new(arena); |
| 1018 |
if (!ret) return NULL; |
| 1019 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_BufferedAdminSink_msginit, extreg, options, arena) != |
| 1020 |
kUpb_DecodeStatus_Ok) { |
| 1021 |
return NULL; |
| 1022 |
} |
| 1023 |
return ret; |
| 1024 |
} |
| 1025 |
UPB_INLINE char* envoy_config_tap_v3_BufferedAdminSink_serialize(const envoy_config_tap_v3_BufferedAdminSink* msg, upb_Arena* arena, size_t* len) { |
| 1026 |
char* ptr; |
| 1027 |
(void)upb_Encode(msg, &envoy_config_tap_v3_BufferedAdminSink_msginit, 0, arena, &ptr, len); |
| 1028 |
return ptr; |
| 1029 |
} |
| 1030 |
UPB_INLINE char* envoy_config_tap_v3_BufferedAdminSink_serialize_ex(const envoy_config_tap_v3_BufferedAdminSink* msg, int options, |
| 1031 |
upb_Arena* arena, size_t* len) { |
| 1032 |
char* ptr; |
| 1033 |
(void)upb_Encode(msg, &envoy_config_tap_v3_BufferedAdminSink_msginit, options, arena, &ptr, len); |
| 1034 |
return ptr; |
| 1035 |
} |
| 1036 |
UPB_INLINE void envoy_config_tap_v3_BufferedAdminSink_clear_max_traces(const envoy_config_tap_v3_BufferedAdminSink* msg) { |
| 1037 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), uint64_t) = 0; |
| 1038 |
} |
| 1039 |
UPB_INLINE uint64_t envoy_config_tap_v3_BufferedAdminSink_max_traces(const envoy_config_tap_v3_BufferedAdminSink* msg) { |
| 1040 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), uint64_t); |
| 1041 |
} |
| 1042 |
UPB_INLINE bool envoy_config_tap_v3_BufferedAdminSink_has_timeout(const envoy_config_tap_v3_BufferedAdminSink* msg) { |
| 1043 |
return _upb_hasbit(msg, 1); |
| 1044 |
} |
| 1045 |
UPB_INLINE void envoy_config_tap_v3_BufferedAdminSink_clear_timeout(const envoy_config_tap_v3_BufferedAdminSink* msg) { |
| 1046 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), const upb_Message*) = NULL; |
| 1047 |
} |
| 1048 |
UPB_INLINE const struct google_protobuf_Duration* envoy_config_tap_v3_BufferedAdminSink_timeout(const envoy_config_tap_v3_BufferedAdminSink* msg) { |
| 1049 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_Duration*); |
| 1050 |
} |
| 1051 |
|
| 1052 |
UPB_INLINE void envoy_config_tap_v3_BufferedAdminSink_set_max_traces(envoy_config_tap_v3_BufferedAdminSink *msg, uint64_t value) { |
| 1053 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), uint64_t) = value; |
| 1054 |
} |
| 1055 |
UPB_INLINE void envoy_config_tap_v3_BufferedAdminSink_set_timeout(envoy_config_tap_v3_BufferedAdminSink *msg, struct google_protobuf_Duration* value) { |
| 1056 |
_upb_sethas(msg, 1); |
| 1057 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_Duration*) = value; |
| 1058 |
} |
| 1059 |
UPB_INLINE struct google_protobuf_Duration* envoy_config_tap_v3_BufferedAdminSink_mutable_timeout(envoy_config_tap_v3_BufferedAdminSink* msg, upb_Arena* arena) { |
| 1060 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_config_tap_v3_BufferedAdminSink_timeout(msg); |
| 1061 |
if (sub == NULL) { |
| 1062 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 1063 |
if (!sub) return NULL; |
| 1064 |
envoy_config_tap_v3_BufferedAdminSink_set_timeout(msg, sub); |
| 1065 |
} |
| 1066 |
return sub; |
| 1067 |
} |
| 1068 |
|
| 1069 |
/* envoy.config.tap.v3.FilePerTapSink */ |
| 1070 |
|
| 1071 |
UPB_INLINE envoy_config_tap_v3_FilePerTapSink* envoy_config_tap_v3_FilePerTapSink_new(upb_Arena* arena) { |
| 1072 |
return (envoy_config_tap_v3_FilePerTapSink*)_upb_Message_New(&envoy_config_tap_v3_FilePerTapSink_msginit, arena); |
| 1073 |
} |
| 1074 |
UPB_INLINE envoy_config_tap_v3_FilePerTapSink* envoy_config_tap_v3_FilePerTapSink_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1075 |
envoy_config_tap_v3_FilePerTapSink* ret = envoy_config_tap_v3_FilePerTapSink_new(arena); |
| 1076 |
if (!ret) return NULL; |
| 1077 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_FilePerTapSink_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1078 |
return NULL; |
| 1079 |
} |
| 1080 |
return ret; |
| 1081 |
} |
| 1082 |
UPB_INLINE envoy_config_tap_v3_FilePerTapSink* envoy_config_tap_v3_FilePerTapSink_parse_ex(const char* buf, size_t size, |
| 1083 |
const upb_ExtensionRegistry* extreg, |
| 1084 |
int options, upb_Arena* arena) { |
| 1085 |
envoy_config_tap_v3_FilePerTapSink* ret = envoy_config_tap_v3_FilePerTapSink_new(arena); |
| 1086 |
if (!ret) return NULL; |
| 1087 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_FilePerTapSink_msginit, extreg, options, arena) != |
| 1088 |
kUpb_DecodeStatus_Ok) { |
| 1089 |
return NULL; |
| 1090 |
} |
| 1091 |
return ret; |
| 1092 |
} |
| 1093 |
UPB_INLINE char* envoy_config_tap_v3_FilePerTapSink_serialize(const envoy_config_tap_v3_FilePerTapSink* msg, upb_Arena* arena, size_t* len) { |
| 1094 |
char* ptr; |
| 1095 |
(void)upb_Encode(msg, &envoy_config_tap_v3_FilePerTapSink_msginit, 0, arena, &ptr, len); |
| 1096 |
return ptr; |
| 1097 |
} |
| 1098 |
UPB_INLINE char* envoy_config_tap_v3_FilePerTapSink_serialize_ex(const envoy_config_tap_v3_FilePerTapSink* msg, int options, |
| 1099 |
upb_Arena* arena, size_t* len) { |
| 1100 |
char* ptr; |
| 1101 |
(void)upb_Encode(msg, &envoy_config_tap_v3_FilePerTapSink_msginit, options, arena, &ptr, len); |
| 1102 |
return ptr; |
| 1103 |
} |
| 1104 |
UPB_INLINE void envoy_config_tap_v3_FilePerTapSink_clear_path_prefix(const envoy_config_tap_v3_FilePerTapSink* msg) { |
| 1105 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1106 |
} |
| 1107 |
UPB_INLINE upb_StringView envoy_config_tap_v3_FilePerTapSink_path_prefix(const envoy_config_tap_v3_FilePerTapSink* msg) { |
| 1108 |
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_StringView); |
| 1109 |
} |
| 1110 |
|
| 1111 |
UPB_INLINE void envoy_config_tap_v3_FilePerTapSink_set_path_prefix(envoy_config_tap_v3_FilePerTapSink *msg, upb_StringView value) { |
| 1112 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_StringView) = value; |
| 1113 |
} |
| 1114 |
|
| 1115 |
/* envoy.config.tap.v3.StreamingGrpcSink */ |
| 1116 |
|
| 1117 |
UPB_INLINE envoy_config_tap_v3_StreamingGrpcSink* envoy_config_tap_v3_StreamingGrpcSink_new(upb_Arena* arena) { |
| 1118 |
return (envoy_config_tap_v3_StreamingGrpcSink*)_upb_Message_New(&envoy_config_tap_v3_StreamingGrpcSink_msginit, arena); |
| 1119 |
} |
| 1120 |
UPB_INLINE envoy_config_tap_v3_StreamingGrpcSink* envoy_config_tap_v3_StreamingGrpcSink_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1121 |
envoy_config_tap_v3_StreamingGrpcSink* ret = envoy_config_tap_v3_StreamingGrpcSink_new(arena); |
| 1122 |
if (!ret) return NULL; |
| 1123 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_StreamingGrpcSink_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1124 |
return NULL; |
| 1125 |
} |
| 1126 |
return ret; |
| 1127 |
} |
| 1128 |
UPB_INLINE envoy_config_tap_v3_StreamingGrpcSink* envoy_config_tap_v3_StreamingGrpcSink_parse_ex(const char* buf, size_t size, |
| 1129 |
const upb_ExtensionRegistry* extreg, |
| 1130 |
int options, upb_Arena* arena) { |
| 1131 |
envoy_config_tap_v3_StreamingGrpcSink* ret = envoy_config_tap_v3_StreamingGrpcSink_new(arena); |
| 1132 |
if (!ret) return NULL; |
| 1133 |
if (upb_Decode(buf, size, ret, &envoy_config_tap_v3_StreamingGrpcSink_msginit, extreg, options, arena) != |
| 1134 |
kUpb_DecodeStatus_Ok) { |
| 1135 |
return NULL; |
| 1136 |
} |
| 1137 |
return ret; |
| 1138 |
} |
| 1139 |
UPB_INLINE char* envoy_config_tap_v3_StreamingGrpcSink_serialize(const envoy_config_tap_v3_StreamingGrpcSink* msg, upb_Arena* arena, size_t* len) { |
| 1140 |
char* ptr; |
| 1141 |
(void)upb_Encode(msg, &envoy_config_tap_v3_StreamingGrpcSink_msginit, 0, arena, &ptr, len); |
| 1142 |
return ptr; |
| 1143 |
} |
| 1144 |
UPB_INLINE char* envoy_config_tap_v3_StreamingGrpcSink_serialize_ex(const envoy_config_tap_v3_StreamingGrpcSink* msg, int options, |
| 1145 |
upb_Arena* arena, size_t* len) { |
| 1146 |
char* ptr; |
| 1147 |
(void)upb_Encode(msg, &envoy_config_tap_v3_StreamingGrpcSink_msginit, options, arena, &ptr, len); |
| 1148 |
return ptr; |
| 1149 |
} |
| 1150 |
UPB_INLINE void envoy_config_tap_v3_StreamingGrpcSink_clear_tap_id(const envoy_config_tap_v3_StreamingGrpcSink* msg) { |
| 1151 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1152 |
} |
| 1153 |
UPB_INLINE upb_StringView envoy_config_tap_v3_StreamingGrpcSink_tap_id(const envoy_config_tap_v3_StreamingGrpcSink* msg) { |
| 1154 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView); |
| 1155 |
} |
| 1156 |
UPB_INLINE bool envoy_config_tap_v3_StreamingGrpcSink_has_grpc_service(const envoy_config_tap_v3_StreamingGrpcSink* msg) { |
| 1157 |
return _upb_hasbit(msg, 1); |
| 1158 |
} |
| 1159 |
UPB_INLINE void envoy_config_tap_v3_StreamingGrpcSink_clear_grpc_service(const envoy_config_tap_v3_StreamingGrpcSink* msg) { |
| 1160 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), const upb_Message*) = NULL; |
| 1161 |
} |
| 1162 |
UPB_INLINE const struct envoy_config_core_v3_GrpcService* envoy_config_tap_v3_StreamingGrpcSink_grpc_service(const envoy_config_tap_v3_StreamingGrpcSink* msg) { |
| 1163 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_GrpcService*); |
| 1164 |
} |
| 1165 |
|
| 1166 |
UPB_INLINE void envoy_config_tap_v3_StreamingGrpcSink_set_tap_id(envoy_config_tap_v3_StreamingGrpcSink *msg, upb_StringView value) { |
| 1167 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = value; |
| 1168 |
} |
| 1169 |
UPB_INLINE void envoy_config_tap_v3_StreamingGrpcSink_set_grpc_service(envoy_config_tap_v3_StreamingGrpcSink *msg, struct envoy_config_core_v3_GrpcService* value) { |
| 1170 |
_upb_sethas(msg, 1); |
| 1171 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_GrpcService*) = value; |
| 1172 |
} |
| 1173 |
UPB_INLINE struct envoy_config_core_v3_GrpcService* envoy_config_tap_v3_StreamingGrpcSink_mutable_grpc_service(envoy_config_tap_v3_StreamingGrpcSink* msg, upb_Arena* arena) { |
| 1174 |
struct envoy_config_core_v3_GrpcService* sub = (struct envoy_config_core_v3_GrpcService*)envoy_config_tap_v3_StreamingGrpcSink_grpc_service(msg); |
| 1175 |
if (sub == NULL) { |
| 1176 |
sub = (struct envoy_config_core_v3_GrpcService*)_upb_Message_New(&envoy_config_core_v3_GrpcService_msginit, arena); |
| 1177 |
if (!sub) return NULL; |
| 1178 |
envoy_config_tap_v3_StreamingGrpcSink_set_grpc_service(msg, sub); |
| 1179 |
} |
| 1180 |
return sub; |
| 1181 |
} |
| 1182 |
|
| 1183 |
extern const upb_MiniTable_File envoy_config_tap_v3_common_proto_upb_file_layout; |
| 1184 |
|
| 1185 |
#ifdef __cplusplus |
| 1186 |
} /* extern "C" */ |
| 1187 |
#endif |
| 1188 |
|
| 1189 |
#include "upb/port_undef.inc" |
| 1190 |
|
| 1191 |
#endif /* ENVOY_CONFIG_TAP_V3_COMMON_PROTO_UPB_H_ */ |