| /* This file was generated by upbc (the upb compiler) from the input |
| * file: |
| * |
| * xds/type/matcher/v3/http_inputs.proto |
| * |
| * Do not edit -- your changes will be discarded when the file is |
| * regenerated. */ |
| |
| #ifndef XDS_TYPE_MATCHER_V3_HTTP_INPUTS_PROTO_UPB_H_ |
| #define XDS_TYPE_MATCHER_V3_HTTP_INPUTS_PROTO_UPB_H_ |
| |
| #include "upb/collections/array_internal.h" |
| #include "upb/collections/map_gencode_util.h" |
| #include "upb/message/accessors.h" |
| #include "upb/message/internal.h" |
| #include "upb/mini_table/enum_internal.h" |
| #include "upb/wire/decode.h" |
| #include "upb/wire/decode_fast.h" |
| #include "upb/wire/encode.h" |
| |
| // Must be last. |
| #include "upb/port/def.inc" |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| typedef struct xds_type_matcher_v3_HttpAttributesCelMatchInput xds_type_matcher_v3_HttpAttributesCelMatchInput; |
| extern const upb_MiniTable xds_type_matcher_v3_HttpAttributesCelMatchInput_msg_init; |
| |
| |
| |
| /* xds.type.matcher.v3.HttpAttributesCelMatchInput */ |
| |
| UPB_INLINE xds_type_matcher_v3_HttpAttributesCelMatchInput* xds_type_matcher_v3_HttpAttributesCelMatchInput_new(upb_Arena* arena) { |
| return (xds_type_matcher_v3_HttpAttributesCelMatchInput*)_upb_Message_New(&xds_type_matcher_v3_HttpAttributesCelMatchInput_msg_init, arena); |
| } |
| UPB_INLINE xds_type_matcher_v3_HttpAttributesCelMatchInput* xds_type_matcher_v3_HttpAttributesCelMatchInput_parse(const char* buf, size_t size, upb_Arena* arena) { |
| xds_type_matcher_v3_HttpAttributesCelMatchInput* ret = xds_type_matcher_v3_HttpAttributesCelMatchInput_new(arena); |
| if (!ret) return NULL; |
| if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_HttpAttributesCelMatchInput_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| return NULL; |
| } |
| return ret; |
| } |
| UPB_INLINE xds_type_matcher_v3_HttpAttributesCelMatchInput* xds_type_matcher_v3_HttpAttributesCelMatchInput_parse_ex(const char* buf, size_t size, |
| const upb_ExtensionRegistry* extreg, |
| int options, upb_Arena* arena) { |
| xds_type_matcher_v3_HttpAttributesCelMatchInput* ret = xds_type_matcher_v3_HttpAttributesCelMatchInput_new(arena); |
| if (!ret) return NULL; |
| if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_HttpAttributesCelMatchInput_msg_init, extreg, options, arena) != |
| kUpb_DecodeStatus_Ok) { |
| return NULL; |
| } |
| return ret; |
| } |
| UPB_INLINE char* xds_type_matcher_v3_HttpAttributesCelMatchInput_serialize(const xds_type_matcher_v3_HttpAttributesCelMatchInput* msg, upb_Arena* arena, size_t* len) { |
| char* ptr; |
| (void)upb_Encode(msg, &xds_type_matcher_v3_HttpAttributesCelMatchInput_msg_init, 0, arena, &ptr, len); |
| return ptr; |
| } |
| UPB_INLINE char* xds_type_matcher_v3_HttpAttributesCelMatchInput_serialize_ex(const xds_type_matcher_v3_HttpAttributesCelMatchInput* msg, int options, |
| upb_Arena* arena, size_t* len) { |
| char* ptr; |
| (void)upb_Encode(msg, &xds_type_matcher_v3_HttpAttributesCelMatchInput_msg_init, options, arena, &ptr, len); |
| return ptr; |
| } |
| |
| |
| extern const upb_MiniTableFile xds_type_matcher_v3_http_inputs_proto_upb_file_layout; |
| |
| #ifdef __cplusplus |
| } /* extern "C" */ |
| #endif |
| |
| #include "upb/port/undef.inc" |
| |
| #endif /* XDS_TYPE_MATCHER_V3_HTTP_INPUTS_PROTO_UPB_H_ */ |