mirror of https://github.com/grpc/grpc.git
WRR: plumb qps in backend metric data (#31903)
* plumb qps in backend metric data * pull in updated orca proto * gen_upb_api * Automated change: Fix sanity tests Co-authored-by: markdroth <markdroth@users.noreply.github.com>pull/32049/head
parent
0ff115e49c
commit
b0d7131ab3
60 changed files with 3239 additions and 38 deletions
@ -0,0 +1,47 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/core/v3/cidr.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "xds/core/v3/cidr.upb.h" |
||||
#include "xds/annotations/v3/status.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_MiniTable_Sub xds_core_v3_CidrRange_submsgs[1] = { |
||||
{.submsg = &google_protobuf_UInt32Value_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_core_v3_CidrRange__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(0, 0), kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(12, 24), UPB_SIZE(1, 1), 0, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_core_v3_CidrRange_msginit = { |
||||
&xds_core_v3_CidrRange_submsgs[0], |
||||
&xds_core_v3_CidrRange__fields[0], |
||||
UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable *messages_layout[1] = { |
||||
&xds_core_v3_CidrRange_msginit, |
||||
}; |
||||
|
||||
const upb_MiniTable_File xds_core_v3_cidr_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
NULL, |
||||
1, |
||||
0, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,107 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/core/v3/cidr.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_CORE_V3_CIDR_PROTO_UPB_H_ |
||||
#define XDS_CORE_V3_CIDR_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct xds_core_v3_CidrRange; |
||||
typedef struct xds_core_v3_CidrRange xds_core_v3_CidrRange; |
||||
extern const upb_MiniTable xds_core_v3_CidrRange_msginit; |
||||
struct google_protobuf_UInt32Value; |
||||
extern const upb_MiniTable google_protobuf_UInt32Value_msginit; |
||||
|
||||
|
||||
|
||||
/* xds.core.v3.CidrRange */ |
||||
|
||||
UPB_INLINE xds_core_v3_CidrRange* xds_core_v3_CidrRange_new(upb_Arena* arena) { |
||||
return (xds_core_v3_CidrRange*)_upb_Message_New(&xds_core_v3_CidrRange_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_core_v3_CidrRange* xds_core_v3_CidrRange_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_core_v3_CidrRange* ret = xds_core_v3_CidrRange_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_core_v3_CidrRange_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_core_v3_CidrRange* xds_core_v3_CidrRange_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_core_v3_CidrRange* ret = xds_core_v3_CidrRange_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_core_v3_CidrRange_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_core_v3_CidrRange_serialize(const xds_core_v3_CidrRange* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_core_v3_CidrRange_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_core_v3_CidrRange_serialize_ex(const xds_core_v3_CidrRange* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_core_v3_CidrRange_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE void xds_core_v3_CidrRange_clear_address_prefix(const xds_core_v3_CidrRange* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
||||
} |
||||
UPB_INLINE upb_StringView xds_core_v3_CidrRange_address_prefix(const xds_core_v3_CidrRange* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView); |
||||
} |
||||
UPB_INLINE bool xds_core_v3_CidrRange_has_prefix_len(const xds_core_v3_CidrRange* msg) { |
||||
return _upb_hasbit(msg, 1); |
||||
} |
||||
UPB_INLINE void xds_core_v3_CidrRange_clear_prefix_len(const xds_core_v3_CidrRange* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), const upb_Message*) = NULL; |
||||
} |
||||
UPB_INLINE const struct google_protobuf_UInt32Value* xds_core_v3_CidrRange_prefix_len(const xds_core_v3_CidrRange* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_UInt32Value*); |
||||
} |
||||
|
||||
UPB_INLINE void xds_core_v3_CidrRange_set_address_prefix(xds_core_v3_CidrRange *msg, upb_StringView value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = value; |
||||
} |
||||
UPB_INLINE void xds_core_v3_CidrRange_set_prefix_len(xds_core_v3_CidrRange *msg, struct google_protobuf_UInt32Value* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_UInt32Value*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_UInt32Value* xds_core_v3_CidrRange_mutable_prefix_len(xds_core_v3_CidrRange* msg, upb_Arena* arena) { |
||||
struct google_protobuf_UInt32Value* sub = (struct google_protobuf_UInt32Value*)xds_core_v3_CidrRange_prefix_len(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_UInt32Value*)_upb_Message_New(&google_protobuf_UInt32Value_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_core_v3_CidrRange_set_prefix_len(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_MiniTable_File xds_core_v3_cidr_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_CORE_V3_CIDR_PROTO_UPB_H_ */ |
@ -0,0 +1,46 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/cel.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "xds/type/matcher/v3/cel.upb.h" |
||||
#include "xds/annotations/v3/status.upb.h" |
||||
#include "xds/type/v3/cel.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_CelMatcher_submsgs[1] = { |
||||
{.submsg = &xds_type_v3_CelExpression_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_CelMatcher__fields[1] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(1, 1), 0, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_CelMatcher_msginit = { |
||||
&xds_type_matcher_v3_CelMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_CelMatcher__fields[0], |
||||
UPB_SIZE(8, 16), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable *messages_layout[1] = { |
||||
&xds_type_matcher_v3_CelMatcher_msginit, |
||||
}; |
||||
|
||||
const upb_MiniTable_File xds_type_matcher_v3_cel_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
NULL, |
||||
1, |
||||
0, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,98 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/cel.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_MATCHER_V3_CEL_PROTO_UPB_H_ |
||||
#define XDS_TYPE_MATCHER_V3_CEL_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct xds_type_matcher_v3_CelMatcher; |
||||
typedef struct xds_type_matcher_v3_CelMatcher xds_type_matcher_v3_CelMatcher; |
||||
extern const upb_MiniTable xds_type_matcher_v3_CelMatcher_msginit; |
||||
struct xds_type_v3_CelExpression; |
||||
extern const upb_MiniTable xds_type_v3_CelExpression_msginit; |
||||
|
||||
|
||||
|
||||
/* xds.type.matcher.v3.CelMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_CelMatcher* xds_type_matcher_v3_CelMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_CelMatcher*)_upb_Message_New(&xds_type_matcher_v3_CelMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_CelMatcher* xds_type_matcher_v3_CelMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_CelMatcher* ret = xds_type_matcher_v3_CelMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_CelMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_CelMatcher* xds_type_matcher_v3_CelMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_CelMatcher* ret = xds_type_matcher_v3_CelMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_CelMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_CelMatcher_serialize(const xds_type_matcher_v3_CelMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_CelMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_CelMatcher_serialize_ex(const xds_type_matcher_v3_CelMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_CelMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_CelMatcher_has_expr_match(const xds_type_matcher_v3_CelMatcher* msg) { |
||||
return _upb_hasbit(msg, 1); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_CelMatcher_clear_expr_match(const xds_type_matcher_v3_CelMatcher* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), const upb_Message*) = NULL; |
||||
} |
||||
UPB_INLINE const struct xds_type_v3_CelExpression* xds_type_matcher_v3_CelMatcher_expr_match(const xds_type_matcher_v3_CelMatcher* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct xds_type_v3_CelExpression*); |
||||
} |
||||
|
||||
UPB_INLINE void xds_type_matcher_v3_CelMatcher_set_expr_match(xds_type_matcher_v3_CelMatcher *msg, struct xds_type_v3_CelExpression* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct xds_type_v3_CelExpression*) = value; |
||||
} |
||||
UPB_INLINE struct xds_type_v3_CelExpression* xds_type_matcher_v3_CelMatcher_mutable_expr_match(xds_type_matcher_v3_CelMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_v3_CelExpression* sub = (struct xds_type_v3_CelExpression*)xds_type_matcher_v3_CelMatcher_expr_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct xds_type_v3_CelExpression*)_upb_Message_New(&xds_type_v3_CelExpression_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_matcher_v3_CelMatcher_set_expr_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_MiniTable_File xds_type_matcher_v3_cel_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_MATCHER_V3_CEL_PROTO_UPB_H_ */ |
@ -0,0 +1,62 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/domain.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "xds/type/matcher/v3/domain.upb.h" |
||||
#include "xds/annotations/v3/status.upb.h" |
||||
#include "xds/type/matcher/v3/matcher.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_ServerNameMatcher_submsgs[1] = { |
||||
{.submsg = &xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_ServerNameMatcher__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_ServerNameMatcher_msginit = { |
||||
&xds_type_matcher_v3_ServerNameMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_ServerNameMatcher__fields[0], |
||||
UPB_SIZE(8, 8), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_submsgs[1] = { |
||||
{.submsg = &xds_type_matcher_v3_Matcher_OnMatch_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_ServerNameMatcher_DomainMatcher__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(0, 0), kUpb_NoSub, 9, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(1, 1), 0, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_msginit = { |
||||
&xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_ServerNameMatcher_DomainMatcher__fields[0], |
||||
UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable *messages_layout[2] = { |
||||
&xds_type_matcher_v3_ServerNameMatcher_msginit, |
||||
&xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_msginit, |
||||
}; |
||||
|
||||
const upb_MiniTable_File xds_type_matcher_v3_domain_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
NULL, |
||||
2, |
||||
0, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,174 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/domain.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_MATCHER_V3_DOMAIN_PROTO_UPB_H_ |
||||
#define XDS_TYPE_MATCHER_V3_DOMAIN_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct xds_type_matcher_v3_ServerNameMatcher; |
||||
struct xds_type_matcher_v3_ServerNameMatcher_DomainMatcher; |
||||
typedef struct xds_type_matcher_v3_ServerNameMatcher xds_type_matcher_v3_ServerNameMatcher; |
||||
typedef struct xds_type_matcher_v3_ServerNameMatcher_DomainMatcher xds_type_matcher_v3_ServerNameMatcher_DomainMatcher; |
||||
extern const upb_MiniTable xds_type_matcher_v3_ServerNameMatcher_msginit; |
||||
extern const upb_MiniTable xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_msginit; |
||||
struct xds_type_matcher_v3_Matcher_OnMatch; |
||||
extern const upb_MiniTable xds_type_matcher_v3_Matcher_OnMatch_msginit; |
||||
|
||||
|
||||
|
||||
/* xds.type.matcher.v3.ServerNameMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_ServerNameMatcher* xds_type_matcher_v3_ServerNameMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_ServerNameMatcher*)_upb_Message_New(&xds_type_matcher_v3_ServerNameMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_ServerNameMatcher* xds_type_matcher_v3_ServerNameMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_ServerNameMatcher* ret = xds_type_matcher_v3_ServerNameMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_ServerNameMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_ServerNameMatcher* xds_type_matcher_v3_ServerNameMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_ServerNameMatcher* ret = xds_type_matcher_v3_ServerNameMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_ServerNameMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_ServerNameMatcher_serialize(const xds_type_matcher_v3_ServerNameMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_ServerNameMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_ServerNameMatcher_serialize_ex(const xds_type_matcher_v3_ServerNameMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_ServerNameMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_ServerNameMatcher_has_domain_matchers(const xds_type_matcher_v3_ServerNameMatcher* msg) { |
||||
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_ServerNameMatcher_clear_domain_matchers(const xds_type_matcher_v3_ServerNameMatcher* msg) { |
||||
_upb_array_detach(msg, UPB_SIZE(0, 0)); |
||||
} |
||||
UPB_INLINE const xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* const* xds_type_matcher_v3_ServerNameMatcher_domain_matchers(const xds_type_matcher_v3_ServerNameMatcher* msg, size_t* len) { |
||||
return (const xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_ServerNameMatcher_DomainMatcher** xds_type_matcher_v3_ServerNameMatcher_mutable_domain_matchers(xds_type_matcher_v3_ServerNameMatcher* msg, size_t* len) { |
||||
return (xds_type_matcher_v3_ServerNameMatcher_DomainMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_ServerNameMatcher_DomainMatcher** xds_type_matcher_v3_ServerNameMatcher_resize_domain_matchers(xds_type_matcher_v3_ServerNameMatcher* msg, size_t len, upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_ServerNameMatcher_DomainMatcher**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* xds_type_matcher_v3_ServerNameMatcher_add_domain_matchers(xds_type_matcher_v3_ServerNameMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* sub = (struct xds_type_matcher_v3_ServerNameMatcher_DomainMatcher*)_upb_Message_New(&xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_msginit, arena); |
||||
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
|
||||
/* xds.type.matcher.v3.ServerNameMatcher.DomainMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_ServerNameMatcher_DomainMatcher*)_upb_Message_New(&xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* ret = xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* ret = xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_serialize(const xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_serialize_ex(const xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_clear_domains(const xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg) { |
||||
_upb_array_detach(msg, UPB_SIZE(4, 8)); |
||||
} |
||||
UPB_INLINE upb_StringView const* xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_domains(const xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg, size_t* len) { |
||||
return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_has_on_match(const xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg) { |
||||
return _upb_hasbit(msg, 1); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_clear_on_match(const xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
||||
} |
||||
UPB_INLINE const struct xds_type_matcher_v3_Matcher_OnMatch* xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_on_match(const xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct xds_type_matcher_v3_Matcher_OnMatch*); |
||||
} |
||||
|
||||
UPB_INLINE upb_StringView* xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_mutable_domains(xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg, size_t* len) { |
||||
return (upb_StringView*)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE upb_StringView* xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_resize_domains(xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg, size_t len, upb_Arena* arena) { |
||||
return (upb_StringView*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(3, 4), arena); |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_add_domains(xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg, upb_StringView val, upb_Arena* arena) { |
||||
return _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(3, 4), &val, arena); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_set_on_match(xds_type_matcher_v3_ServerNameMatcher_DomainMatcher *msg, struct xds_type_matcher_v3_Matcher_OnMatch* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct xds_type_matcher_v3_Matcher_OnMatch*) = value; |
||||
} |
||||
UPB_INLINE struct xds_type_matcher_v3_Matcher_OnMatch* xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_mutable_on_match(xds_type_matcher_v3_ServerNameMatcher_DomainMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_matcher_v3_Matcher_OnMatch* sub = (struct xds_type_matcher_v3_Matcher_OnMatch*)xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_on_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct xds_type_matcher_v3_Matcher_OnMatch*)_upb_Message_New(&xds_type_matcher_v3_Matcher_OnMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_set_on_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_MiniTable_File xds_type_matcher_v3_domain_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_MATCHER_V3_DOMAIN_PROTO_UPB_H_ */ |
@ -0,0 +1,36 @@ |
||||
/* 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. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "xds/type/matcher/v3/http_inputs.upb.h" |
||||
#include "xds/annotations/v3/status.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_HttpAttributesCelMatchInput_msginit = { |
||||
NULL, |
||||
NULL, |
||||
UPB_SIZE(0, 0), 0, kUpb_ExtMode_NonExtendable, 0, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable *messages_layout[1] = { |
||||
&xds_type_matcher_v3_HttpAttributesCelMatchInput_msginit, |
||||
}; |
||||
|
||||
const upb_MiniTable_File xds_type_matcher_v3_http_inputs_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
NULL, |
||||
1, |
||||
0, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,74 @@ |
||||
/* 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/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct xds_type_matcher_v3_HttpAttributesCelMatchInput; |
||||
typedef struct xds_type_matcher_v3_HttpAttributesCelMatchInput xds_type_matcher_v3_HttpAttributesCelMatchInput; |
||||
extern const upb_MiniTable xds_type_matcher_v3_HttpAttributesCelMatchInput_msginit; |
||||
|
||||
|
||||
|
||||
/* 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_msginit, 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_msginit, 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_msginit, 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_msginit, 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_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
|
||||
|
||||
extern const upb_MiniTable_File 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_ */ |
@ -0,0 +1,65 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/ip.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "xds/type/matcher/v3/ip.upb.h" |
||||
#include "xds/annotations/v3/status.upb.h" |
||||
#include "xds/core/v3/cidr.upb.h" |
||||
#include "xds/type/matcher/v3/matcher.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_IPMatcher_submsgs[1] = { |
||||
{.submsg = &xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_IPMatcher__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_IPMatcher_msginit = { |
||||
&xds_type_matcher_v3_IPMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_IPMatcher__fields[0], |
||||
UPB_SIZE(8, 8), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_IPMatcher_IPRangeMatcher_submsgs[2] = { |
||||
{.submsg = &xds_core_v3_CidrRange_msginit}, |
||||
{.submsg = &xds_type_matcher_v3_Matcher_OnMatch_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_IPMatcher_IPRangeMatcher__fields[3] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(1, 1), 1, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
{3, UPB_SIZE(1, 1), UPB_SIZE(0, 0), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msginit = { |
||||
&xds_type_matcher_v3_IPMatcher_IPRangeMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_IPMatcher_IPRangeMatcher__fields[0], |
||||
UPB_SIZE(16, 24), 3, kUpb_ExtMode_NonExtendable, 3, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable *messages_layout[2] = { |
||||
&xds_type_matcher_v3_IPMatcher_msginit, |
||||
&xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msginit, |
||||
}; |
||||
|
||||
const upb_MiniTable_File xds_type_matcher_v3_ip_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
NULL, |
||||
2, |
||||
0, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,191 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/ip.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_MATCHER_V3_IP_PROTO_UPB_H_ |
||||
#define XDS_TYPE_MATCHER_V3_IP_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct xds_type_matcher_v3_IPMatcher; |
||||
struct xds_type_matcher_v3_IPMatcher_IPRangeMatcher; |
||||
typedef struct xds_type_matcher_v3_IPMatcher xds_type_matcher_v3_IPMatcher; |
||||
typedef struct xds_type_matcher_v3_IPMatcher_IPRangeMatcher xds_type_matcher_v3_IPMatcher_IPRangeMatcher; |
||||
extern const upb_MiniTable xds_type_matcher_v3_IPMatcher_msginit; |
||||
extern const upb_MiniTable xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msginit; |
||||
struct xds_core_v3_CidrRange; |
||||
struct xds_type_matcher_v3_Matcher_OnMatch; |
||||
extern const upb_MiniTable xds_core_v3_CidrRange_msginit; |
||||
extern const upb_MiniTable xds_type_matcher_v3_Matcher_OnMatch_msginit; |
||||
|
||||
|
||||
|
||||
/* xds.type.matcher.v3.IPMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_IPMatcher* xds_type_matcher_v3_IPMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_IPMatcher*)_upb_Message_New(&xds_type_matcher_v3_IPMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_IPMatcher* xds_type_matcher_v3_IPMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_IPMatcher* ret = xds_type_matcher_v3_IPMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_IPMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_IPMatcher* xds_type_matcher_v3_IPMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_IPMatcher* ret = xds_type_matcher_v3_IPMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_IPMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_IPMatcher_serialize(const xds_type_matcher_v3_IPMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_IPMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_IPMatcher_serialize_ex(const xds_type_matcher_v3_IPMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_IPMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_IPMatcher_has_range_matchers(const xds_type_matcher_v3_IPMatcher* msg) { |
||||
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_IPMatcher_clear_range_matchers(const xds_type_matcher_v3_IPMatcher* msg) { |
||||
_upb_array_detach(msg, UPB_SIZE(0, 0)); |
||||
} |
||||
UPB_INLINE const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* const* xds_type_matcher_v3_IPMatcher_range_matchers(const xds_type_matcher_v3_IPMatcher* msg, size_t* len) { |
||||
return (const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_IPMatcher_IPRangeMatcher** xds_type_matcher_v3_IPMatcher_mutable_range_matchers(xds_type_matcher_v3_IPMatcher* msg, size_t* len) { |
||||
return (xds_type_matcher_v3_IPMatcher_IPRangeMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_IPMatcher_IPRangeMatcher** xds_type_matcher_v3_IPMatcher_resize_range_matchers(xds_type_matcher_v3_IPMatcher* msg, size_t len, upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_IPMatcher_IPRangeMatcher**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct xds_type_matcher_v3_IPMatcher_IPRangeMatcher* xds_type_matcher_v3_IPMatcher_add_range_matchers(xds_type_matcher_v3_IPMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_matcher_v3_IPMatcher_IPRangeMatcher* sub = (struct xds_type_matcher_v3_IPMatcher_IPRangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msginit, arena); |
||||
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
|
||||
/* xds.type.matcher.v3.IPMatcher.IPRangeMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_IPMatcher_IPRangeMatcher* xds_type_matcher_v3_IPMatcher_IPRangeMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_IPMatcher_IPRangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_IPMatcher_IPRangeMatcher* xds_type_matcher_v3_IPMatcher_IPRangeMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_IPMatcher_IPRangeMatcher* ret = xds_type_matcher_v3_IPMatcher_IPRangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_IPMatcher_IPRangeMatcher* xds_type_matcher_v3_IPMatcher_IPRangeMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_IPMatcher_IPRangeMatcher* ret = xds_type_matcher_v3_IPMatcher_IPRangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_IPMatcher_IPRangeMatcher_serialize(const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_IPMatcher_IPRangeMatcher_serialize_ex(const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_IPMatcher_IPRangeMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_IPMatcher_IPRangeMatcher_has_ranges(const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg) { |
||||
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_IPMatcher_IPRangeMatcher_clear_ranges(const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg) { |
||||
_upb_array_detach(msg, UPB_SIZE(4, 8)); |
||||
} |
||||
UPB_INLINE const struct xds_core_v3_CidrRange* const* xds_type_matcher_v3_IPMatcher_IPRangeMatcher_ranges(const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg, size_t* len) { |
||||
return (const struct xds_core_v3_CidrRange* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_IPMatcher_IPRangeMatcher_has_on_match(const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg) { |
||||
return _upb_hasbit(msg, 1); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_IPMatcher_IPRangeMatcher_clear_on_match(const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
||||
} |
||||
UPB_INLINE const struct xds_type_matcher_v3_Matcher_OnMatch* xds_type_matcher_v3_IPMatcher_IPRangeMatcher_on_match(const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct xds_type_matcher_v3_Matcher_OnMatch*); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_IPMatcher_IPRangeMatcher_clear_exclusive(const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = 0; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_IPMatcher_IPRangeMatcher_exclusive(const xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); |
||||
} |
||||
|
||||
UPB_INLINE struct xds_core_v3_CidrRange** xds_type_matcher_v3_IPMatcher_IPRangeMatcher_mutable_ranges(xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg, size_t* len) { |
||||
return (struct xds_core_v3_CidrRange**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE struct xds_core_v3_CidrRange** xds_type_matcher_v3_IPMatcher_IPRangeMatcher_resize_ranges(xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg, size_t len, upb_Arena* arena) { |
||||
return (struct xds_core_v3_CidrRange**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct xds_core_v3_CidrRange* xds_type_matcher_v3_IPMatcher_IPRangeMatcher_add_ranges(xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_core_v3_CidrRange* sub = (struct xds_core_v3_CidrRange*)_upb_Message_New(&xds_core_v3_CidrRange_msginit, arena); |
||||
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_IPMatcher_IPRangeMatcher_set_on_match(xds_type_matcher_v3_IPMatcher_IPRangeMatcher *msg, struct xds_type_matcher_v3_Matcher_OnMatch* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct xds_type_matcher_v3_Matcher_OnMatch*) = value; |
||||
} |
||||
UPB_INLINE struct xds_type_matcher_v3_Matcher_OnMatch* xds_type_matcher_v3_IPMatcher_IPRangeMatcher_mutable_on_match(xds_type_matcher_v3_IPMatcher_IPRangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_matcher_v3_Matcher_OnMatch* sub = (struct xds_type_matcher_v3_Matcher_OnMatch*)xds_type_matcher_v3_IPMatcher_IPRangeMatcher_on_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct xds_type_matcher_v3_Matcher_OnMatch*)_upb_Message_New(&xds_type_matcher_v3_Matcher_OnMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_matcher_v3_IPMatcher_IPRangeMatcher_set_on_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_IPMatcher_IPRangeMatcher_set_exclusive(xds_type_matcher_v3_IPMatcher_IPRangeMatcher *msg, bool value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value; |
||||
} |
||||
|
||||
extern const upb_MiniTable_File xds_type_matcher_v3_ip_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_MATCHER_V3_IP_PROTO_UPB_H_ */ |
@ -0,0 +1,127 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/range.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "xds/type/matcher/v3/range.upb.h" |
||||
#include "xds/type/v3/range.upb.h" |
||||
#include "xds/type/matcher/v3/matcher.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_Int64RangeMatcher_submsgs[1] = { |
||||
{.submsg = &xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_Int64RangeMatcher__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_Int64RangeMatcher_msginit = { |
||||
&xds_type_matcher_v3_Int64RangeMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_Int64RangeMatcher__fields[0], |
||||
UPB_SIZE(8, 8), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_submsgs[2] = { |
||||
{.submsg = &xds_type_v3_Int64Range_msginit}, |
||||
{.submsg = &xds_type_matcher_v3_Matcher_OnMatch_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(1, 1), 1, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_msginit = { |
||||
&xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher__fields[0], |
||||
UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_Int32RangeMatcher_submsgs[1] = { |
||||
{.submsg = &xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_Int32RangeMatcher__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_Int32RangeMatcher_msginit = { |
||||
&xds_type_matcher_v3_Int32RangeMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_Int32RangeMatcher__fields[0], |
||||
UPB_SIZE(8, 8), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_submsgs[2] = { |
||||
{.submsg = &xds_type_v3_Int32Range_msginit}, |
||||
{.submsg = &xds_type_matcher_v3_Matcher_OnMatch_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(1, 1), 1, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_msginit = { |
||||
&xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher__fields[0], |
||||
UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_DoubleRangeMatcher_submsgs[1] = { |
||||
{.submsg = &xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_DoubleRangeMatcher__fields[1] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_DoubleRangeMatcher_msginit = { |
||||
&xds_type_matcher_v3_DoubleRangeMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_DoubleRangeMatcher__fields[0], |
||||
UPB_SIZE(8, 8), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_submsgs[2] = { |
||||
{.submsg = &xds_type_v3_DoubleRange_msginit}, |
||||
{.submsg = &xds_type_matcher_v3_Matcher_OnMatch_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(1, 1), 1, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_msginit = { |
||||
&xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_submsgs[0], |
||||
&xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher__fields[0], |
||||
UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable *messages_layout[6] = { |
||||
&xds_type_matcher_v3_Int64RangeMatcher_msginit, |
||||
&xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_msginit, |
||||
&xds_type_matcher_v3_Int32RangeMatcher_msginit, |
||||
&xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_msginit, |
||||
&xds_type_matcher_v3_DoubleRangeMatcher_msginit, |
||||
&xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_msginit, |
||||
}; |
||||
|
||||
const upb_MiniTable_File xds_type_matcher_v3_range_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
NULL, |
||||
6, |
||||
0, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,474 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/range.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_MATCHER_V3_RANGE_PROTO_UPB_H_ |
||||
#define XDS_TYPE_MATCHER_V3_RANGE_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct xds_type_matcher_v3_Int64RangeMatcher; |
||||
struct xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher; |
||||
struct xds_type_matcher_v3_Int32RangeMatcher; |
||||
struct xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher; |
||||
struct xds_type_matcher_v3_DoubleRangeMatcher; |
||||
struct xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher; |
||||
typedef struct xds_type_matcher_v3_Int64RangeMatcher xds_type_matcher_v3_Int64RangeMatcher; |
||||
typedef struct xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher; |
||||
typedef struct xds_type_matcher_v3_Int32RangeMatcher xds_type_matcher_v3_Int32RangeMatcher; |
||||
typedef struct xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher; |
||||
typedef struct xds_type_matcher_v3_DoubleRangeMatcher xds_type_matcher_v3_DoubleRangeMatcher; |
||||
typedef struct xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher; |
||||
extern const upb_MiniTable xds_type_matcher_v3_Int64RangeMatcher_msginit; |
||||
extern const upb_MiniTable xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_msginit; |
||||
extern const upb_MiniTable xds_type_matcher_v3_Int32RangeMatcher_msginit; |
||||
extern const upb_MiniTable xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_msginit; |
||||
extern const upb_MiniTable xds_type_matcher_v3_DoubleRangeMatcher_msginit; |
||||
extern const upb_MiniTable xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_msginit; |
||||
struct xds_type_matcher_v3_Matcher_OnMatch; |
||||
struct xds_type_v3_DoubleRange; |
||||
struct xds_type_v3_Int32Range; |
||||
struct xds_type_v3_Int64Range; |
||||
extern const upb_MiniTable xds_type_matcher_v3_Matcher_OnMatch_msginit; |
||||
extern const upb_MiniTable xds_type_v3_DoubleRange_msginit; |
||||
extern const upb_MiniTable xds_type_v3_Int32Range_msginit; |
||||
extern const upb_MiniTable xds_type_v3_Int64Range_msginit; |
||||
|
||||
|
||||
|
||||
/* xds.type.matcher.v3.Int64RangeMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_Int64RangeMatcher* xds_type_matcher_v3_Int64RangeMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_Int64RangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_Int64RangeMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_Int64RangeMatcher* xds_type_matcher_v3_Int64RangeMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_Int64RangeMatcher* ret = xds_type_matcher_v3_Int64RangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_Int64RangeMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_Int64RangeMatcher* xds_type_matcher_v3_Int64RangeMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_Int64RangeMatcher* ret = xds_type_matcher_v3_Int64RangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_Int64RangeMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_Int64RangeMatcher_serialize(const xds_type_matcher_v3_Int64RangeMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_Int64RangeMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_Int64RangeMatcher_serialize_ex(const xds_type_matcher_v3_Int64RangeMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_Int64RangeMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_Int64RangeMatcher_has_range_matchers(const xds_type_matcher_v3_Int64RangeMatcher* msg) { |
||||
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_Int64RangeMatcher_clear_range_matchers(const xds_type_matcher_v3_Int64RangeMatcher* msg) { |
||||
_upb_array_detach(msg, UPB_SIZE(0, 0)); |
||||
} |
||||
UPB_INLINE const xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* const* xds_type_matcher_v3_Int64RangeMatcher_range_matchers(const xds_type_matcher_v3_Int64RangeMatcher* msg, size_t* len) { |
||||
return (const xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher** xds_type_matcher_v3_Int64RangeMatcher_mutable_range_matchers(xds_type_matcher_v3_Int64RangeMatcher* msg, size_t* len) { |
||||
return (xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher** xds_type_matcher_v3_Int64RangeMatcher_resize_range_matchers(xds_type_matcher_v3_Int64RangeMatcher* msg, size_t len, upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* xds_type_matcher_v3_Int64RangeMatcher_add_range_matchers(xds_type_matcher_v3_Int64RangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* sub = (struct xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_msginit, arena); |
||||
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
|
||||
/* xds.type.matcher.v3.Int64RangeMatcher.RangeMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* ret = xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* ret = xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_serialize(const xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_serialize_ex(const xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_has_ranges(const xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg) { |
||||
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_clear_ranges(const xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg) { |
||||
_upb_array_detach(msg, UPB_SIZE(4, 8)); |
||||
} |
||||
UPB_INLINE const struct xds_type_v3_Int64Range* const* xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_ranges(const xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg, size_t* len) { |
||||
return (const struct xds_type_v3_Int64Range* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_has_on_match(const xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg) { |
||||
return _upb_hasbit(msg, 1); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_clear_on_match(const xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
||||
} |
||||
UPB_INLINE const struct xds_type_matcher_v3_Matcher_OnMatch* xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_on_match(const xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct xds_type_matcher_v3_Matcher_OnMatch*); |
||||
} |
||||
|
||||
UPB_INLINE struct xds_type_v3_Int64Range** xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_mutable_ranges(xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg, size_t* len) { |
||||
return (struct xds_type_v3_Int64Range**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE struct xds_type_v3_Int64Range** xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_resize_ranges(xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg, size_t len, upb_Arena* arena) { |
||||
return (struct xds_type_v3_Int64Range**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct xds_type_v3_Int64Range* xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_add_ranges(xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_v3_Int64Range* sub = (struct xds_type_v3_Int64Range*)_upb_Message_New(&xds_type_v3_Int64Range_msginit, arena); |
||||
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_set_on_match(xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher *msg, struct xds_type_matcher_v3_Matcher_OnMatch* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct xds_type_matcher_v3_Matcher_OnMatch*) = value; |
||||
} |
||||
UPB_INLINE struct xds_type_matcher_v3_Matcher_OnMatch* xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_mutable_on_match(xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_matcher_v3_Matcher_OnMatch* sub = (struct xds_type_matcher_v3_Matcher_OnMatch*)xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_on_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct xds_type_matcher_v3_Matcher_OnMatch*)_upb_Message_New(&xds_type_matcher_v3_Matcher_OnMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_set_on_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* xds.type.matcher.v3.Int32RangeMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_Int32RangeMatcher* xds_type_matcher_v3_Int32RangeMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_Int32RangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_Int32RangeMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_Int32RangeMatcher* xds_type_matcher_v3_Int32RangeMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_Int32RangeMatcher* ret = xds_type_matcher_v3_Int32RangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_Int32RangeMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_Int32RangeMatcher* xds_type_matcher_v3_Int32RangeMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_Int32RangeMatcher* ret = xds_type_matcher_v3_Int32RangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_Int32RangeMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_Int32RangeMatcher_serialize(const xds_type_matcher_v3_Int32RangeMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_Int32RangeMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_Int32RangeMatcher_serialize_ex(const xds_type_matcher_v3_Int32RangeMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_Int32RangeMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_Int32RangeMatcher_has_range_matchers(const xds_type_matcher_v3_Int32RangeMatcher* msg) { |
||||
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_Int32RangeMatcher_clear_range_matchers(const xds_type_matcher_v3_Int32RangeMatcher* msg) { |
||||
_upb_array_detach(msg, UPB_SIZE(0, 0)); |
||||
} |
||||
UPB_INLINE const xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* const* xds_type_matcher_v3_Int32RangeMatcher_range_matchers(const xds_type_matcher_v3_Int32RangeMatcher* msg, size_t* len) { |
||||
return (const xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher** xds_type_matcher_v3_Int32RangeMatcher_mutable_range_matchers(xds_type_matcher_v3_Int32RangeMatcher* msg, size_t* len) { |
||||
return (xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher** xds_type_matcher_v3_Int32RangeMatcher_resize_range_matchers(xds_type_matcher_v3_Int32RangeMatcher* msg, size_t len, upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* xds_type_matcher_v3_Int32RangeMatcher_add_range_matchers(xds_type_matcher_v3_Int32RangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* sub = (struct xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_msginit, arena); |
||||
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
|
||||
/* xds.type.matcher.v3.Int32RangeMatcher.RangeMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* ret = xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* ret = xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_serialize(const xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_serialize_ex(const xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_has_ranges(const xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg) { |
||||
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_clear_ranges(const xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg) { |
||||
_upb_array_detach(msg, UPB_SIZE(4, 8)); |
||||
} |
||||
UPB_INLINE const struct xds_type_v3_Int32Range* const* xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_ranges(const xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg, size_t* len) { |
||||
return (const struct xds_type_v3_Int32Range* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_has_on_match(const xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg) { |
||||
return _upb_hasbit(msg, 1); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_clear_on_match(const xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
||||
} |
||||
UPB_INLINE const struct xds_type_matcher_v3_Matcher_OnMatch* xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_on_match(const xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct xds_type_matcher_v3_Matcher_OnMatch*); |
||||
} |
||||
|
||||
UPB_INLINE struct xds_type_v3_Int32Range** xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_mutable_ranges(xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg, size_t* len) { |
||||
return (struct xds_type_v3_Int32Range**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE struct xds_type_v3_Int32Range** xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_resize_ranges(xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg, size_t len, upb_Arena* arena) { |
||||
return (struct xds_type_v3_Int32Range**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct xds_type_v3_Int32Range* xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_add_ranges(xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_v3_Int32Range* sub = (struct xds_type_v3_Int32Range*)_upb_Message_New(&xds_type_v3_Int32Range_msginit, arena); |
||||
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_set_on_match(xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher *msg, struct xds_type_matcher_v3_Matcher_OnMatch* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct xds_type_matcher_v3_Matcher_OnMatch*) = value; |
||||
} |
||||
UPB_INLINE struct xds_type_matcher_v3_Matcher_OnMatch* xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_mutable_on_match(xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_matcher_v3_Matcher_OnMatch* sub = (struct xds_type_matcher_v3_Matcher_OnMatch*)xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_on_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct xds_type_matcher_v3_Matcher_OnMatch*)_upb_Message_New(&xds_type_matcher_v3_Matcher_OnMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_set_on_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* xds.type.matcher.v3.DoubleRangeMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_DoubleRangeMatcher* xds_type_matcher_v3_DoubleRangeMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_DoubleRangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_DoubleRangeMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_DoubleRangeMatcher* xds_type_matcher_v3_DoubleRangeMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_DoubleRangeMatcher* ret = xds_type_matcher_v3_DoubleRangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_DoubleRangeMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_DoubleRangeMatcher* xds_type_matcher_v3_DoubleRangeMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_DoubleRangeMatcher* ret = xds_type_matcher_v3_DoubleRangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_DoubleRangeMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_DoubleRangeMatcher_serialize(const xds_type_matcher_v3_DoubleRangeMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_DoubleRangeMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_DoubleRangeMatcher_serialize_ex(const xds_type_matcher_v3_DoubleRangeMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_DoubleRangeMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_DoubleRangeMatcher_has_range_matchers(const xds_type_matcher_v3_DoubleRangeMatcher* msg) { |
||||
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_DoubleRangeMatcher_clear_range_matchers(const xds_type_matcher_v3_DoubleRangeMatcher* msg) { |
||||
_upb_array_detach(msg, UPB_SIZE(0, 0)); |
||||
} |
||||
UPB_INLINE const xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* const* xds_type_matcher_v3_DoubleRangeMatcher_range_matchers(const xds_type_matcher_v3_DoubleRangeMatcher* msg, size_t* len) { |
||||
return (const xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher** xds_type_matcher_v3_DoubleRangeMatcher_mutable_range_matchers(xds_type_matcher_v3_DoubleRangeMatcher* msg, size_t* len) { |
||||
return (xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher** xds_type_matcher_v3_DoubleRangeMatcher_resize_range_matchers(xds_type_matcher_v3_DoubleRangeMatcher* msg, size_t len, upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* xds_type_matcher_v3_DoubleRangeMatcher_add_range_matchers(xds_type_matcher_v3_DoubleRangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* sub = (struct xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_msginit, arena); |
||||
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
|
||||
/* xds.type.matcher.v3.DoubleRangeMatcher.RangeMatcher */ |
||||
|
||||
UPB_INLINE xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_new(upb_Arena* arena) { |
||||
return (xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher*)_upb_Message_New(&xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* ret = xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* ret = xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_serialize(const xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_serialize_ex(const xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_has_ranges(const xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg) { |
||||
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_clear_ranges(const xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg) { |
||||
_upb_array_detach(msg, UPB_SIZE(4, 8)); |
||||
} |
||||
UPB_INLINE const struct xds_type_v3_DoubleRange* const* xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_ranges(const xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg, size_t* len) { |
||||
return (const struct xds_type_v3_DoubleRange* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE bool xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_has_on_match(const xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg) { |
||||
return _upb_hasbit(msg, 1); |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_clear_on_match(const xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
||||
} |
||||
UPB_INLINE const struct xds_type_matcher_v3_Matcher_OnMatch* xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_on_match(const xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct xds_type_matcher_v3_Matcher_OnMatch*); |
||||
} |
||||
|
||||
UPB_INLINE struct xds_type_v3_DoubleRange** xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_mutable_ranges(xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg, size_t* len) { |
||||
return (struct xds_type_v3_DoubleRange**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
||||
} |
||||
UPB_INLINE struct xds_type_v3_DoubleRange** xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_resize_ranges(xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg, size_t len, upb_Arena* arena) { |
||||
return (struct xds_type_v3_DoubleRange**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
||||
} |
||||
UPB_INLINE struct xds_type_v3_DoubleRange* xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_add_ranges(xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_v3_DoubleRange* sub = (struct xds_type_v3_DoubleRange*)_upb_Message_New(&xds_type_v3_DoubleRange_msginit, arena); |
||||
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena); |
||||
if (!ok) return NULL; |
||||
return sub; |
||||
} |
||||
UPB_INLINE void xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_set_on_match(xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher *msg, struct xds_type_matcher_v3_Matcher_OnMatch* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct xds_type_matcher_v3_Matcher_OnMatch*) = value; |
||||
} |
||||
UPB_INLINE struct xds_type_matcher_v3_Matcher_OnMatch* xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_mutable_on_match(xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher* msg, upb_Arena* arena) { |
||||
struct xds_type_matcher_v3_Matcher_OnMatch* sub = (struct xds_type_matcher_v3_Matcher_OnMatch*)xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_on_match(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct xds_type_matcher_v3_Matcher_OnMatch*)_upb_Message_New(&xds_type_matcher_v3_Matcher_OnMatch_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_set_on_match(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_MiniTable_File xds_type_matcher_v3_range_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_MATCHER_V3_RANGE_PROTO_UPB_H_ */ |
@ -0,0 +1,67 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/cel.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "xds/type/v3/cel.upb.h" |
||||
#include "google/api/expr/v1alpha1/checked.upb.h" |
||||
#include "google/api/expr/v1alpha1/syntax.upb.h" |
||||
#include "google/protobuf/wrappers.upb.h" |
||||
#include "xds/annotations/v3/status.upb.h" |
||||
#include "validate/validate.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_MiniTable_Sub xds_type_v3_CelExpression_submsgs[2] = { |
||||
{.submsg = &google_api_expr_v1alpha1_ParsedExpr_msginit}, |
||||
{.submsg = &google_api_expr_v1alpha1_CheckedExpr_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_v3_CelExpression__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(-1, -1), 0, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(4, 8), UPB_SIZE(-1, -1), 1, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_v3_CelExpression_msginit = { |
||||
&xds_type_v3_CelExpression_submsgs[0], |
||||
&xds_type_v3_CelExpression__fields[0], |
||||
UPB_SIZE(8, 16), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Sub xds_type_v3_CelExtractString_submsgs[2] = { |
||||
{.submsg = &xds_type_v3_CelExpression_msginit}, |
||||
{.submsg = &google_protobuf_StringValue_msginit}, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_v3_CelExtractString__fields[2] = { |
||||
{1, UPB_SIZE(4, 8), UPB_SIZE(1, 1), 0, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 16), UPB_SIZE(2, 2), 1, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_v3_CelExtractString_msginit = { |
||||
&xds_type_v3_CelExtractString_submsgs[0], |
||||
&xds_type_v3_CelExtractString__fields[0], |
||||
UPB_SIZE(16, 24), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable *messages_layout[2] = { |
||||
&xds_type_v3_CelExpression_msginit, |
||||
&xds_type_v3_CelExtractString_msginit, |
||||
}; |
||||
|
||||
const upb_MiniTable_File xds_type_v3_cel_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
NULL, |
||||
2, |
||||
0, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,214 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/cel.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_V3_CEL_PROTO_UPB_H_ |
||||
#define XDS_TYPE_V3_CEL_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct xds_type_v3_CelExpression; |
||||
struct xds_type_v3_CelExtractString; |
||||
typedef struct xds_type_v3_CelExpression xds_type_v3_CelExpression; |
||||
typedef struct xds_type_v3_CelExtractString xds_type_v3_CelExtractString; |
||||
extern const upb_MiniTable xds_type_v3_CelExpression_msginit; |
||||
extern const upb_MiniTable xds_type_v3_CelExtractString_msginit; |
||||
struct google_api_expr_v1alpha1_CheckedExpr; |
||||
struct google_api_expr_v1alpha1_ParsedExpr; |
||||
struct google_protobuf_StringValue; |
||||
extern const upb_MiniTable google_api_expr_v1alpha1_CheckedExpr_msginit; |
||||
extern const upb_MiniTable google_api_expr_v1alpha1_ParsedExpr_msginit; |
||||
extern const upb_MiniTable google_protobuf_StringValue_msginit; |
||||
|
||||
|
||||
|
||||
/* xds.type.v3.CelExpression */ |
||||
|
||||
UPB_INLINE xds_type_v3_CelExpression* xds_type_v3_CelExpression_new(upb_Arena* arena) { |
||||
return (xds_type_v3_CelExpression*)_upb_Message_New(&xds_type_v3_CelExpression_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_v3_CelExpression* xds_type_v3_CelExpression_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_v3_CelExpression* ret = xds_type_v3_CelExpression_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_v3_CelExpression_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_v3_CelExpression* xds_type_v3_CelExpression_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_v3_CelExpression* ret = xds_type_v3_CelExpression_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_v3_CelExpression_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_v3_CelExpression_serialize(const xds_type_v3_CelExpression* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_v3_CelExpression_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_v3_CelExpression_serialize_ex(const xds_type_v3_CelExpression* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_v3_CelExpression_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
typedef enum { |
||||
xds_type_v3_CelExpression_expr_specifier_parsed_expr = 1, |
||||
xds_type_v3_CelExpression_expr_specifier_checked_expr = 2, |
||||
xds_type_v3_CelExpression_expr_specifier_NOT_SET = 0 |
||||
} xds_type_v3_CelExpression_expr_specifier_oneofcases; |
||||
UPB_INLINE xds_type_v3_CelExpression_expr_specifier_oneofcases xds_type_v3_CelExpression_expr_specifier_case(const xds_type_v3_CelExpression* msg) { |
||||
return (xds_type_v3_CelExpression_expr_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); |
||||
} |
||||
UPB_INLINE bool xds_type_v3_CelExpression_has_parsed_expr(const xds_type_v3_CelExpression* msg) { |
||||
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 1; |
||||
} |
||||
UPB_INLINE void xds_type_v3_CelExpression_clear_parsed_expr(const xds_type_v3_CelExpression* msg) { |
||||
UPB_WRITE_ONEOF(msg, struct google_api_expr_v1alpha1_ParsedExpr*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), xds_type_v3_CelExpression_expr_specifier_NOT_SET); |
||||
} |
||||
UPB_INLINE const struct google_api_expr_v1alpha1_ParsedExpr* xds_type_v3_CelExpression_parsed_expr(const xds_type_v3_CelExpression* msg) { |
||||
return UPB_READ_ONEOF(msg, const struct google_api_expr_v1alpha1_ParsedExpr*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 1, NULL); |
||||
} |
||||
UPB_INLINE bool xds_type_v3_CelExpression_has_checked_expr(const xds_type_v3_CelExpression* msg) { |
||||
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 2; |
||||
} |
||||
UPB_INLINE void xds_type_v3_CelExpression_clear_checked_expr(const xds_type_v3_CelExpression* msg) { |
||||
UPB_WRITE_ONEOF(msg, struct google_api_expr_v1alpha1_CheckedExpr*, UPB_SIZE(4, 8), 0, UPB_SIZE(0, 0), xds_type_v3_CelExpression_expr_specifier_NOT_SET); |
||||
} |
||||
UPB_INLINE const struct google_api_expr_v1alpha1_CheckedExpr* xds_type_v3_CelExpression_checked_expr(const xds_type_v3_CelExpression* msg) { |
||||
return UPB_READ_ONEOF(msg, const struct google_api_expr_v1alpha1_CheckedExpr*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 2, NULL); |
||||
} |
||||
|
||||
UPB_INLINE void xds_type_v3_CelExpression_set_parsed_expr(xds_type_v3_CelExpression *msg, struct google_api_expr_v1alpha1_ParsedExpr* value) { |
||||
UPB_WRITE_ONEOF(msg, struct google_api_expr_v1alpha1_ParsedExpr*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 1); |
||||
} |
||||
UPB_INLINE struct google_api_expr_v1alpha1_ParsedExpr* xds_type_v3_CelExpression_mutable_parsed_expr(xds_type_v3_CelExpression* msg, upb_Arena* arena) { |
||||
struct google_api_expr_v1alpha1_ParsedExpr* sub = (struct google_api_expr_v1alpha1_ParsedExpr*)xds_type_v3_CelExpression_parsed_expr(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_api_expr_v1alpha1_ParsedExpr*)_upb_Message_New(&google_api_expr_v1alpha1_ParsedExpr_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_v3_CelExpression_set_parsed_expr(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void xds_type_v3_CelExpression_set_checked_expr(xds_type_v3_CelExpression *msg, struct google_api_expr_v1alpha1_CheckedExpr* value) { |
||||
UPB_WRITE_ONEOF(msg, struct google_api_expr_v1alpha1_CheckedExpr*, UPB_SIZE(4, 8), value, UPB_SIZE(0, 0), 2); |
||||
} |
||||
UPB_INLINE struct google_api_expr_v1alpha1_CheckedExpr* xds_type_v3_CelExpression_mutable_checked_expr(xds_type_v3_CelExpression* msg, upb_Arena* arena) { |
||||
struct google_api_expr_v1alpha1_CheckedExpr* sub = (struct google_api_expr_v1alpha1_CheckedExpr*)xds_type_v3_CelExpression_checked_expr(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_api_expr_v1alpha1_CheckedExpr*)_upb_Message_New(&google_api_expr_v1alpha1_CheckedExpr_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_v3_CelExpression_set_checked_expr(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
/* xds.type.v3.CelExtractString */ |
||||
|
||||
UPB_INLINE xds_type_v3_CelExtractString* xds_type_v3_CelExtractString_new(upb_Arena* arena) { |
||||
return (xds_type_v3_CelExtractString*)_upb_Message_New(&xds_type_v3_CelExtractString_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_v3_CelExtractString* xds_type_v3_CelExtractString_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_v3_CelExtractString* ret = xds_type_v3_CelExtractString_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_v3_CelExtractString_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_v3_CelExtractString* xds_type_v3_CelExtractString_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_v3_CelExtractString* ret = xds_type_v3_CelExtractString_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_v3_CelExtractString_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_v3_CelExtractString_serialize(const xds_type_v3_CelExtractString* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_v3_CelExtractString_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_v3_CelExtractString_serialize_ex(const xds_type_v3_CelExtractString* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_v3_CelExtractString_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE bool xds_type_v3_CelExtractString_has_expr_extract(const xds_type_v3_CelExtractString* msg) { |
||||
return _upb_hasbit(msg, 1); |
||||
} |
||||
UPB_INLINE void xds_type_v3_CelExtractString_clear_expr_extract(const xds_type_v3_CelExtractString* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), const upb_Message*) = NULL; |
||||
} |
||||
UPB_INLINE const xds_type_v3_CelExpression* xds_type_v3_CelExtractString_expr_extract(const xds_type_v3_CelExtractString* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const xds_type_v3_CelExpression*); |
||||
} |
||||
UPB_INLINE bool xds_type_v3_CelExtractString_has_default_value(const xds_type_v3_CelExtractString* msg) { |
||||
return _upb_hasbit(msg, 2); |
||||
} |
||||
UPB_INLINE void xds_type_v3_CelExtractString_clear_default_value(const xds_type_v3_CelExtractString* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
||||
} |
||||
UPB_INLINE const struct google_protobuf_StringValue* xds_type_v3_CelExtractString_default_value(const xds_type_v3_CelExtractString* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_StringValue*); |
||||
} |
||||
|
||||
UPB_INLINE void xds_type_v3_CelExtractString_set_expr_extract(xds_type_v3_CelExtractString *msg, xds_type_v3_CelExpression* value) { |
||||
_upb_sethas(msg, 1); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), xds_type_v3_CelExpression*) = value; |
||||
} |
||||
UPB_INLINE struct xds_type_v3_CelExpression* xds_type_v3_CelExtractString_mutable_expr_extract(xds_type_v3_CelExtractString* msg, upb_Arena* arena) { |
||||
struct xds_type_v3_CelExpression* sub = (struct xds_type_v3_CelExpression*)xds_type_v3_CelExtractString_expr_extract(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct xds_type_v3_CelExpression*)_upb_Message_New(&xds_type_v3_CelExpression_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_v3_CelExtractString_set_expr_extract(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
UPB_INLINE void xds_type_v3_CelExtractString_set_default_value(xds_type_v3_CelExtractString *msg, struct google_protobuf_StringValue* value) { |
||||
_upb_sethas(msg, 2); |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_StringValue*) = value; |
||||
} |
||||
UPB_INLINE struct google_protobuf_StringValue* xds_type_v3_CelExtractString_mutable_default_value(xds_type_v3_CelExtractString* msg, upb_Arena* arena) { |
||||
struct google_protobuf_StringValue* sub = (struct google_protobuf_StringValue*)xds_type_v3_CelExtractString_default_value(msg); |
||||
if (sub == NULL) { |
||||
sub = (struct google_protobuf_StringValue*)_upb_Message_New(&google_protobuf_StringValue_msginit, arena); |
||||
if (!sub) return NULL; |
||||
xds_type_v3_CelExtractString_set_default_value(msg, sub); |
||||
} |
||||
return sub; |
||||
} |
||||
|
||||
extern const upb_MiniTable_File xds_type_v3_cel_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_V3_CEL_PROTO_UPB_H_ */ |
@ -0,0 +1,64 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/range.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include <stddef.h> |
||||
#include "upb/msg_internal.h" |
||||
#include "xds/type/v3/range.upb.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
static const upb_MiniTable_Field xds_type_v3_Int64Range__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), kUpb_NoSub, 3, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 8), UPB_SIZE(0, 0), kUpb_NoSub, 3, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_v3_Int64Range_msginit = { |
||||
NULL, |
||||
&xds_type_v3_Int64Range__fields[0], |
||||
UPB_SIZE(16, 16), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_v3_Int32Range__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(4, 4), UPB_SIZE(0, 0), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_v3_Int32Range_msginit = { |
||||
NULL, |
||||
&xds_type_v3_Int32Range__fields[0], |
||||
UPB_SIZE(8, 8), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable_Field xds_type_v3_DoubleRange__fields[2] = { |
||||
{1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, |
||||
{2, UPB_SIZE(8, 8), UPB_SIZE(0, 0), kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, |
||||
}; |
||||
|
||||
const upb_MiniTable xds_type_v3_DoubleRange_msginit = { |
||||
NULL, |
||||
&xds_type_v3_DoubleRange__fields[0], |
||||
UPB_SIZE(16, 16), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0, |
||||
}; |
||||
|
||||
static const upb_MiniTable *messages_layout[3] = { |
||||
&xds_type_v3_Int64Range_msginit, |
||||
&xds_type_v3_Int32Range_msginit, |
||||
&xds_type_v3_DoubleRange_msginit, |
||||
}; |
||||
|
||||
const upb_MiniTable_File xds_type_v3_range_proto_upb_file_layout = { |
||||
messages_layout, |
||||
NULL, |
||||
NULL, |
||||
3, |
||||
0, |
||||
0, |
||||
}; |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
@ -0,0 +1,208 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/range.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_V3_RANGE_PROTO_UPB_H_ |
||||
#define XDS_TYPE_V3_RANGE_PROTO_UPB_H_ |
||||
|
||||
#include "upb/msg_internal.h" |
||||
#include "upb/decode.h" |
||||
#include "upb/decode_fast.h" |
||||
#include "upb/encode.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
struct xds_type_v3_Int64Range; |
||||
struct xds_type_v3_Int32Range; |
||||
struct xds_type_v3_DoubleRange; |
||||
typedef struct xds_type_v3_Int64Range xds_type_v3_Int64Range; |
||||
typedef struct xds_type_v3_Int32Range xds_type_v3_Int32Range; |
||||
typedef struct xds_type_v3_DoubleRange xds_type_v3_DoubleRange; |
||||
extern const upb_MiniTable xds_type_v3_Int64Range_msginit; |
||||
extern const upb_MiniTable xds_type_v3_Int32Range_msginit; |
||||
extern const upb_MiniTable xds_type_v3_DoubleRange_msginit; |
||||
|
||||
|
||||
|
||||
/* xds.type.v3.Int64Range */ |
||||
|
||||
UPB_INLINE xds_type_v3_Int64Range* xds_type_v3_Int64Range_new(upb_Arena* arena) { |
||||
return (xds_type_v3_Int64Range*)_upb_Message_New(&xds_type_v3_Int64Range_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_v3_Int64Range* xds_type_v3_Int64Range_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_v3_Int64Range* ret = xds_type_v3_Int64Range_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_v3_Int64Range_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_v3_Int64Range* xds_type_v3_Int64Range_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_v3_Int64Range* ret = xds_type_v3_Int64Range_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_v3_Int64Range_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_v3_Int64Range_serialize(const xds_type_v3_Int64Range* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_v3_Int64Range_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_v3_Int64Range_serialize_ex(const xds_type_v3_Int64Range* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_v3_Int64Range_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE void xds_type_v3_Int64Range_clear_start(const xds_type_v3_Int64Range* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t) = 0; |
||||
} |
||||
UPB_INLINE int64_t xds_type_v3_Int64Range_start(const xds_type_v3_Int64Range* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t); |
||||
} |
||||
UPB_INLINE void xds_type_v3_Int64Range_clear_end(const xds_type_v3_Int64Range* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = 0; |
||||
} |
||||
UPB_INLINE int64_t xds_type_v3_Int64Range_end(const xds_type_v3_Int64Range* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); |
||||
} |
||||
|
||||
UPB_INLINE void xds_type_v3_Int64Range_set_start(xds_type_v3_Int64Range *msg, int64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t) = value; |
||||
} |
||||
UPB_INLINE void xds_type_v3_Int64Range_set_end(xds_type_v3_Int64Range *msg, int64_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value; |
||||
} |
||||
|
||||
/* xds.type.v3.Int32Range */ |
||||
|
||||
UPB_INLINE xds_type_v3_Int32Range* xds_type_v3_Int32Range_new(upb_Arena* arena) { |
||||
return (xds_type_v3_Int32Range*)_upb_Message_New(&xds_type_v3_Int32Range_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_v3_Int32Range* xds_type_v3_Int32Range_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_v3_Int32Range* ret = xds_type_v3_Int32Range_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_v3_Int32Range_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_v3_Int32Range* xds_type_v3_Int32Range_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_v3_Int32Range* ret = xds_type_v3_Int32Range_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_v3_Int32Range_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_v3_Int32Range_serialize(const xds_type_v3_Int32Range* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_v3_Int32Range_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_v3_Int32Range_serialize_ex(const xds_type_v3_Int32Range* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_v3_Int32Range_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE void xds_type_v3_Int32Range_clear_start(const xds_type_v3_Int32Range* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = 0; |
||||
} |
||||
UPB_INLINE int32_t xds_type_v3_Int32Range_start(const xds_type_v3_Int32Range* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); |
||||
} |
||||
UPB_INLINE void xds_type_v3_Int32Range_clear_end(const xds_type_v3_Int32Range* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = 0; |
||||
} |
||||
UPB_INLINE int32_t xds_type_v3_Int32Range_end(const xds_type_v3_Int32Range* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); |
||||
} |
||||
|
||||
UPB_INLINE void xds_type_v3_Int32Range_set_start(xds_type_v3_Int32Range *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value; |
||||
} |
||||
UPB_INLINE void xds_type_v3_Int32Range_set_end(xds_type_v3_Int32Range *msg, int32_t value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value; |
||||
} |
||||
|
||||
/* xds.type.v3.DoubleRange */ |
||||
|
||||
UPB_INLINE xds_type_v3_DoubleRange* xds_type_v3_DoubleRange_new(upb_Arena* arena) { |
||||
return (xds_type_v3_DoubleRange*)_upb_Message_New(&xds_type_v3_DoubleRange_msginit, arena); |
||||
} |
||||
UPB_INLINE xds_type_v3_DoubleRange* xds_type_v3_DoubleRange_parse(const char* buf, size_t size, upb_Arena* arena) { |
||||
xds_type_v3_DoubleRange* ret = xds_type_v3_DoubleRange_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_v3_DoubleRange_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE xds_type_v3_DoubleRange* xds_type_v3_DoubleRange_parse_ex(const char* buf, size_t size, |
||||
const upb_ExtensionRegistry* extreg, |
||||
int options, upb_Arena* arena) { |
||||
xds_type_v3_DoubleRange* ret = xds_type_v3_DoubleRange_new(arena); |
||||
if (!ret) return NULL; |
||||
if (upb_Decode(buf, size, ret, &xds_type_v3_DoubleRange_msginit, extreg, options, arena) != |
||||
kUpb_DecodeStatus_Ok) { |
||||
return NULL; |
||||
} |
||||
return ret; |
||||
} |
||||
UPB_INLINE char* xds_type_v3_DoubleRange_serialize(const xds_type_v3_DoubleRange* msg, upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_v3_DoubleRange_msginit, 0, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE char* xds_type_v3_DoubleRange_serialize_ex(const xds_type_v3_DoubleRange* msg, int options, |
||||
upb_Arena* arena, size_t* len) { |
||||
char* ptr; |
||||
(void)upb_Encode(msg, &xds_type_v3_DoubleRange_msginit, options, arena, &ptr, len); |
||||
return ptr; |
||||
} |
||||
UPB_INLINE void xds_type_v3_DoubleRange_clear_start(const xds_type_v3_DoubleRange* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), double) = 0; |
||||
} |
||||
UPB_INLINE double xds_type_v3_DoubleRange_start(const xds_type_v3_DoubleRange* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), double); |
||||
} |
||||
UPB_INLINE void xds_type_v3_DoubleRange_clear_end(const xds_type_v3_DoubleRange* msg) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), double) = 0; |
||||
} |
||||
UPB_INLINE double xds_type_v3_DoubleRange_end(const xds_type_v3_DoubleRange* msg) { |
||||
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), double); |
||||
} |
||||
|
||||
UPB_INLINE void xds_type_v3_DoubleRange_set_start(xds_type_v3_DoubleRange *msg, double value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), double) = value; |
||||
} |
||||
UPB_INLINE void xds_type_v3_DoubleRange_set_end(xds_type_v3_DoubleRange *msg, double value) { |
||||
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), double) = value; |
||||
} |
||||
|
||||
extern const upb_MiniTable_File xds_type_v3_range_proto_upb_file_layout; |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_V3_RANGE_PROTO_UPB_H_ */ |
@ -0,0 +1,45 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/core/v3/cidr.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "xds/core/v3/cidr.upbdefs.h" |
||||
#include "xds/core/v3/cidr.upb.h" |
||||
|
||||
extern _upb_DefPool_Init xds_annotations_v3_status_proto_upbdefinit; |
||||
extern _upb_DefPool_Init google_protobuf_wrappers_proto_upbdefinit; |
||||
extern _upb_DefPool_Init validate_validate_proto_upbdefinit; |
||||
static const char descriptor[356] = {'\n', '\026', 'x', 'd', 's', '/', 'c', 'o', 'r', 'e', '/', 'v', '3', '/', 'c', 'i', 'd', 'r', '.', 'p', 'r', 'o', 't', 'o', '\022',
|
||||
'\013', 'x', 'd', 's', '.', 'c', 'o', 'r', 'e', '.', 'v', '3', '\032', '\037', 'x', 'd', 's', '/', 'a', 'n', 'n', 'o', 't', 'a', 't',
|
||||
'i', 'o', 'n', 's', '/', 'v', '3', '/', 's', 't', 'a', 't', 'u', 's', '.', 'p', 'r', 'o', 't', 'o', '\032', '\036', 'g', 'o', 'o',
|
||||
'g', 'l', 'e', '/', 'p', 'r', 'o', 't', 'o', 'b', 'u', 'f', '/', 'w', 'r', 'a', 'p', 'p', 'e', 'r', 's', '.', 'p', 'r', 'o',
|
||||
't', 'o', '\032', '\027', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '/', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '.', 'p', 'r', 'o',
|
||||
't', 'o', '\"', '\202', '\001', '\n', '\t', 'C', 'i', 'd', 'r', 'R', 'a', 'n', 'g', 'e', '\022', '.', '\n', '\016', 'a', 'd', 'd', 'r', 'e',
|
||||
's', 's', '_', 'p', 'r', 'e', 'f', 'i', 'x', '\030', '\001', ' ', '\001', '(', '\t', 'B', '\007', '\372', 'B', '\004', 'r', '\002', '\020', '\001', 'R',
|
||||
'\r', 'a', 'd', 'd', 'r', 'e', 's', 's', 'P', 'r', 'e', 'f', 'i', 'x', '\022', 'E', '\n', '\n', 'p', 'r', 'e', 'f', 'i', 'x', '_',
|
||||
'l', 'e', 'n', '\030', '\002', ' ', '\001', '(', '\013', '2', '\034', '.', 'g', 'o', 'o', 'g', 'l', 'e', '.', 'p', 'r', 'o', 't', 'o', 'b',
|
||||
'u', 'f', '.', 'U', 'I', 'n', 't', '3', '2', 'V', 'a', 'l', 'u', 'e', 'B', '\010', '\372', 'B', '\005', '*', '\003', '\030', '\200', '\001', 'R',
|
||||
'\t', 'p', 'r', 'e', 'f', 'i', 'x', 'L', 'e', 'n', 'B', 'V', '\n', '\026', 'c', 'o', 'm', '.', 'g', 'i', 't', 'h', 'u', 'b', '.',
|
||||
'x', 'd', 's', '.', 'c', 'o', 'r', 'e', '.', 'v', '3', 'B', '\016', 'C', 'i', 'd', 'r', 'R', 'a', 'n', 'g', 'e', 'P', 'r', 'o',
|
||||
't', 'o', 'P', '\001', 'Z', '\"', 'g', 'i', 't', 'h', 'u', 'b', '.', 'c', 'o', 'm', '/', 'c', 'n', 'c', 'f', '/', 'x', 'd', 's',
|
||||
'/', 'g', 'o', '/', 'x', 'd', 's', '/', 'c', 'o', 'r', 'e', '/', 'v', '3', '\322', '\306', '\244', '\341', '\006', '\002', '\010', '\001', 'b', '\006',
|
||||
'p', 'r', 'o', 't', 'o', '3',
|
||||
}; |
||||
|
||||
static _upb_DefPool_Init *deps[4] = { |
||||
&xds_annotations_v3_status_proto_upbdefinit, |
||||
&google_protobuf_wrappers_proto_upbdefinit, |
||||
&validate_validate_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
_upb_DefPool_Init xds_core_v3_cidr_proto_upbdefinit = { |
||||
deps, |
||||
&xds_core_v3_cidr_proto_upb_file_layout, |
||||
"xds/core/v3/cidr.proto", |
||||
UPB_STRINGVIEW_INIT(descriptor, 356) |
||||
}; |
@ -0,0 +1,35 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/core/v3/cidr.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_CORE_V3_CIDR_PROTO_UPBDEFS_H_ |
||||
#define XDS_CORE_V3_CIDR_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern _upb_DefPool_Init xds_core_v3_cidr_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_core_v3_CidrRange_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_core_v3_cidr_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.core.v3.CidrRange"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_CORE_V3_CIDR_PROTO_UPBDEFS_H_ */ |
@ -0,0 +1,43 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/cel.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "xds/type/matcher/v3/cel.upbdefs.h" |
||||
#include "xds/type/matcher/v3/cel.upb.h" |
||||
|
||||
extern _upb_DefPool_Init xds_annotations_v3_status_proto_upbdefinit; |
||||
extern _upb_DefPool_Init xds_type_v3_cel_proto_upbdefinit; |
||||
extern _upb_DefPool_Init validate_validate_proto_upbdefinit; |
||||
static const char descriptor[322] = {'\n', '\035', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3', '/', 'c', 'e', 'l',
|
||||
'.', 'p', 'r', 'o', 't', 'o', '\022', '\023', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.',
|
||||
'v', '3', '\032', '\037', 'x', 'd', 's', '/', 'a', 'n', 'n', 'o', 't', 'a', 't', 'i', 'o', 'n', 's', '/', 'v', '3', '/', 's', 't',
|
||||
'a', 't', 'u', 's', '.', 'p', 'r', 'o', 't', 'o', '\032', '\025', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'v', '3', '/', 'c',
|
||||
'e', 'l', '.', 'p', 'r', 'o', 't', 'o', '\032', '\027', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '/', 'v', 'a', 'l', 'i', 'd', 'a',
|
||||
't', 'e', '.', 'p', 'r', 'o', 't', 'o', '\"', 'Q', '\n', '\n', 'C', 'e', 'l', 'M', 'a', 't', 'c', 'h', 'e', 'r', '\022', 'C', '\n',
|
||||
'\n', 'e', 'x', 'p', 'r', '_', 'm', 'a', 't', 'c', 'h', '\030', '\001', ' ', '\001', '(', '\013', '2', '\032', '.', 'x', 'd', 's', '.', 't',
|
||||
'y', 'p', 'e', '.', 'v', '3', '.', 'C', 'e', 'l', 'E', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 'B', '\010', '\372', 'B', '\005',
|
||||
'\212', '\001', '\002', '\020', '\001', 'R', '\t', 'e', 'x', 'p', 'r', 'M', 'a', 't', 'c', 'h', 'B', '`', '\n', '\036', 'c', 'o', 'm', '.', 'g',
|
||||
'i', 't', 'h', 'u', 'b', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3',
|
||||
'B', '\010', 'C', 'e', 'l', 'P', 'r', 'o', 't', 'o', 'P', '\001', 'Z', '*', 'g', 'i', 't', 'h', 'u', 'b', '.', 'c', 'o', 'm', '/',
|
||||
'c', 'n', 'c', 'f', '/', 'x', 'd', 's', '/', 'g', 'o', '/', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm', 'a', 't', 'c',
|
||||
'h', 'e', 'r', '/', 'v', '3', '\322', '\306', '\244', '\341', '\006', '\002', '\010', '\001', 'b', '\006', 'p', 'r', 'o', 't', 'o', '3',
|
||||
}; |
||||
|
||||
static _upb_DefPool_Init *deps[4] = { |
||||
&xds_annotations_v3_status_proto_upbdefinit, |
||||
&xds_type_v3_cel_proto_upbdefinit, |
||||
&validate_validate_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
_upb_DefPool_Init xds_type_matcher_v3_cel_proto_upbdefinit = { |
||||
deps, |
||||
&xds_type_matcher_v3_cel_proto_upb_file_layout, |
||||
"xds/type/matcher/v3/cel.proto", |
||||
UPB_STRINGVIEW_INIT(descriptor, 322) |
||||
}; |
@ -0,0 +1,35 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/cel.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_MATCHER_V3_CEL_PROTO_UPBDEFS_H_ |
||||
#define XDS_TYPE_MATCHER_V3_CEL_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern _upb_DefPool_Init xds_type_matcher_v3_cel_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_CelMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_cel_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.CelMatcher"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_MATCHER_V3_CEL_PROTO_UPBDEFS_H_ */ |
@ -0,0 +1,51 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/domain.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "xds/type/matcher/v3/domain.upbdefs.h" |
||||
#include "xds/type/matcher/v3/domain.upb.h" |
||||
|
||||
extern _upb_DefPool_Init xds_annotations_v3_status_proto_upbdefinit; |
||||
extern _upb_DefPool_Init xds_type_matcher_v3_matcher_proto_upbdefinit; |
||||
extern _upb_DefPool_Init validate_validate_proto_upbdefinit; |
||||
static const char descriptor[503] = {'\n', ' ', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3', '/', 'd', 'o', 'm',
|
||||
'a', 'i', 'n', '.', 'p', 'r', 'o', 't', 'o', '\022', '\023', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h',
|
||||
'e', 'r', '.', 'v', '3', '\032', '\037', 'x', 'd', 's', '/', 'a', 'n', 'n', 'o', 't', 'a', 't', 'i', 'o', 'n', 's', '/', 'v', '3',
|
||||
'/', 's', 't', 'a', 't', 'u', 's', '.', 'p', 'r', 'o', 't', 'o', '\032', '!', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm',
|
||||
'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'p', 'r', 'o', 't', 'o', '\032', '\027',
|
||||
'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '/', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '.', 'p', 'r', 'o', 't', 'o', '\"', '\350',
|
||||
'\001', '\n', '\021', 'S', 'e', 'r', 'v', 'e', 'r', 'N', 'a', 'm', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', '\022', ']', '\n', '\017', 'd',
|
||||
'o', 'm', 'a', 'i', 'n', '_', 'm', 'a', 't', 'c', 'h', 'e', 'r', 's', '\030', '\001', ' ', '\003', '(', '\013', '2', '4', '.', 'x', 'd',
|
||||
's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3', '.', 'S', 'e', 'r', 'v', 'e', 'r', 'N',
|
||||
'a', 'm', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', '.', 'D', 'o', 'm', 'a', 'i', 'n', 'M', 'a', 't', 'c', 'h', 'e', 'r', 'R',
|
||||
'\016', 'd', 'o', 'm', 'a', 'i', 'n', 'M', 'a', 't', 'c', 'h', 'e', 'r', 's', '\032', 't', '\n', '\r', 'D', 'o', 'm', 'a', 'i', 'n',
|
||||
'M', 'a', 't', 'c', 'h', 'e', 'r', '\022', '\"', '\n', '\007', 'd', 'o', 'm', 'a', 'i', 'n', 's', '\030', '\001', ' ', '\003', '(', '\t', 'B',
|
||||
'\010', '\372', 'B', '\005', '\222', '\001', '\002', '\010', '\001', 'R', '\007', 'd', 'o', 'm', 'a', 'i', 'n', 's', '\022', '?', '\n', '\010', 'o', 'n', '_',
|
||||
'm', 'a', 't', 'c', 'h', '\030', '\002', ' ', '\001', '(', '\013', '2', '$', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a',
|
||||
't', 'c', 'h', 'e', 'r', '.', 'v', '3', '.', 'M', 'a', 't', 'c', 'h', 'e', 'r', '.', 'O', 'n', 'M', 'a', 't', 'c', 'h', 'R',
|
||||
'\007', 'o', 'n', 'M', 'a', 't', 'c', 'h', 'B', 'n', '\n', '\036', 'c', 'o', 'm', '.', 'g', 'i', 't', 'h', 'u', 'b', '.', 'x', 'd',
|
||||
's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3', 'B', '\026', 'S', 'e', 'r', 'v', 'e', 'r',
|
||||
'N', 'a', 'm', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', 'P', 'r', 'o', 't', 'o', 'P', '\001', 'Z', '*', 'g', 'i', 't', 'h', 'u',
|
||||
'b', '.', 'c', 'o', 'm', '/', 'c', 'n', 'c', 'f', '/', 'x', 'd', 's', '/', 'g', 'o', '/', 'x', 'd', 's', '/', 't', 'y', 'p',
|
||||
'e', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3', '\322', '\306', '\244', '\341', '\006', '\002', '\010', '\001', 'b', '\006', 'p', 'r', 'o',
|
||||
't', 'o', '3',
|
||||
}; |
||||
|
||||
static _upb_DefPool_Init *deps[4] = { |
||||
&xds_annotations_v3_status_proto_upbdefinit, |
||||
&xds_type_matcher_v3_matcher_proto_upbdefinit, |
||||
&validate_validate_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
_upb_DefPool_Init xds_type_matcher_v3_domain_proto_upbdefinit = { |
||||
deps, |
||||
&xds_type_matcher_v3_domain_proto_upb_file_layout, |
||||
"xds/type/matcher/v3/domain.proto", |
||||
UPB_STRINGVIEW_INIT(descriptor, 503) |
||||
}; |
@ -0,0 +1,40 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/domain.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_MATCHER_V3_DOMAIN_PROTO_UPBDEFS_H_ |
||||
#define XDS_TYPE_MATCHER_V3_DOMAIN_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern _upb_DefPool_Init xds_type_matcher_v3_domain_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_ServerNameMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_domain_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.ServerNameMatcher"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_ServerNameMatcher_DomainMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_domain_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.ServerNameMatcher.DomainMatcher"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_MATCHER_V3_DOMAIN_PROTO_UPBDEFS_H_ */ |
@ -0,0 +1,36 @@ |
||||
/* 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. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "xds/type/matcher/v3/http_inputs.upbdefs.h" |
||||
#include "xds/type/matcher/v3/http_inputs.upb.h" |
||||
|
||||
extern _upb_DefPool_Init xds_annotations_v3_status_proto_upbdefinit; |
||||
static const char descriptor[237] = {'\n', '%', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3', '/', 'h', 't', 't',
|
||||
'p', '_', 'i', 'n', 'p', 'u', 't', 's', '.', 'p', 'r', 'o', 't', 'o', '\022', '\023', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.',
|
||||
'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3', '\032', '\037', 'x', 'd', 's', '/', 'a', 'n', 'n', 'o', 't', 'a', 't', 'i', 'o',
|
||||
'n', 's', '/', 'v', '3', '/', 's', 't', 'a', 't', 'u', 's', '.', 'p', 'r', 'o', 't', 'o', '\"', '\035', '\n', '\033', 'H', 't', 't',
|
||||
'p', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 's', 'C', 'e', 'l', 'M', 'a', 't', 'c', 'h', 'I', 'n', 'p', 'u', 't', 'B',
|
||||
'g', '\n', '\036', 'c', 'o', 'm', '.', 'g', 'i', 't', 'h', 'u', 'b', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a',
|
||||
't', 'c', 'h', 'e', 'r', '.', 'v', '3', 'B', '\017', 'H', 't', 't', 'p', 'I', 'n', 'p', 'u', 't', 's', 'P', 'r', 'o', 't', 'o',
|
||||
'P', '\001', 'Z', '*', 'g', 'i', 't', 'h', 'u', 'b', '.', 'c', 'o', 'm', '/', 'c', 'n', 'c', 'f', '/', 'x', 'd', 's', '/', 'g',
|
||||
'o', '/', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3', '\322', '\306', '\244', '\341',
|
||||
'\006', '\002', '\010', '\001', 'b', '\006', 'p', 'r', 'o', 't', 'o', '3',
|
||||
}; |
||||
|
||||
static _upb_DefPool_Init *deps[2] = { |
||||
&xds_annotations_v3_status_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
_upb_DefPool_Init xds_type_matcher_v3_http_inputs_proto_upbdefinit = { |
||||
deps, |
||||
&xds_type_matcher_v3_http_inputs_proto_upb_file_layout, |
||||
"xds/type/matcher/v3/http_inputs.proto", |
||||
UPB_STRINGVIEW_INIT(descriptor, 237) |
||||
}; |
@ -0,0 +1,35 @@ |
||||
/* 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_UPBDEFS_H_ |
||||
#define XDS_TYPE_MATCHER_V3_HTTP_INPUTS_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern _upb_DefPool_Init xds_type_matcher_v3_http_inputs_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_HttpAttributesCelMatchInput_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_http_inputs_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.HttpAttributesCelMatchInput"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_MATCHER_V3_HTTP_INPUTS_PROTO_UPBDEFS_H_ */ |
@ -0,0 +1,55 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/ip.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "xds/type/matcher/v3/ip.upbdefs.h" |
||||
#include "xds/type/matcher/v3/ip.upb.h" |
||||
|
||||
extern _upb_DefPool_Init xds_annotations_v3_status_proto_upbdefinit; |
||||
extern _upb_DefPool_Init xds_core_v3_cidr_proto_upbdefinit; |
||||
extern _upb_DefPool_Init xds_type_matcher_v3_matcher_proto_upbdefinit; |
||||
extern _upb_DefPool_Init validate_validate_proto_upbdefinit; |
||||
static const char descriptor[552] = {'\n', '\034', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3', '/', 'i', 'p', '.',
|
||||
'p', 'r', 'o', 't', 'o', '\022', '\023', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v',
|
||||
'3', '\032', '\037', 'x', 'd', 's', '/', 'a', 'n', 'n', 'o', 't', 'a', 't', 'i', 'o', 'n', 's', '/', 'v', '3', '/', 's', 't', 'a',
|
||||
't', 'u', 's', '.', 'p', 'r', 'o', 't', 'o', '\032', '\026', 'x', 'd', 's', '/', 'c', 'o', 'r', 'e', '/', 'v', '3', '/', 'c', 'i',
|
||||
'd', 'r', '.', 'p', 'r', 'o', 't', 'o', '\032', '!', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm', 'a', 't', 'c', 'h', 'e',
|
||||
'r', '/', 'v', '3', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'p', 'r', 'o', 't', 'o', '\032', '\027', 'v', 'a', 'l', 'i', 'd',
|
||||
'a', 't', 'e', '/', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '.', 'p', 'r', 'o', 't', 'o', '\"', '\215', '\002', '\n', '\t', 'I', 'P',
|
||||
'M', 'a', 't', 'c', 'h', 'e', 'r', '\022', 'T', '\n', '\016', 'r', 'a', 'n', 'g', 'e', '_', 'm', 'a', 't', 'c', 'h', 'e', 'r', 's',
|
||||
'\030', '\001', ' ', '\003', '(', '\013', '2', '-', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r',
|
||||
'.', 'v', '3', '.', 'I', 'P', 'M', 'a', 't', 'c', 'h', 'e', 'r', '.', 'I', 'P', 'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c',
|
||||
'h', 'e', 'r', 'R', '\r', 'r', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', 's', '\032', '\251', '\001', '\n', '\016', 'I', 'P',
|
||||
'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', '\022', '8', '\n', '\006', 'r', 'a', 'n', 'g', 'e', 's', '\030', '\001', ' ',
|
||||
'\003', '(', '\013', '2', '\026', '.', 'x', 'd', 's', '.', 'c', 'o', 'r', 'e', '.', 'v', '3', '.', 'C', 'i', 'd', 'r', 'R', 'a', 'n',
|
||||
'g', 'e', 'B', '\010', '\372', 'B', '\005', '\222', '\001', '\002', '\010', '\001', 'R', '\006', 'r', 'a', 'n', 'g', 'e', 's', '\022', '?', '\n', '\010', 'o',
|
||||
'n', '_', 'm', 'a', 't', 'c', 'h', '\030', '\002', ' ', '\001', '(', '\013', '2', '$', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.',
|
||||
'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3', '.', 'M', 'a', 't', 'c', 'h', 'e', 'r', '.', 'O', 'n', 'M', 'a', 't', 'c',
|
||||
'h', 'R', '\007', 'o', 'n', 'M', 'a', 't', 'c', 'h', '\022', '\034', '\n', '\t', 'e', 'x', 'c', 'l', 'u', 's', 'i', 'v', 'e', '\030', '\003',
|
||||
' ', '\001', '(', '\010', 'R', '\t', 'e', 'x', 'c', 'l', 'u', 's', 'i', 'v', 'e', 'B', 'f', '\n', '\036', 'c', 'o', 'm', '.', 'g', 'i',
|
||||
't', 'h', 'u', 'b', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3', 'B',
|
||||
'\016', 'I', 'P', 'M', 'a', 't', 'c', 'h', 'e', 'r', 'P', 'r', 'o', 't', 'o', 'P', '\001', 'Z', '*', 'g', 'i', 't', 'h', 'u', 'b',
|
||||
'.', 'c', 'o', 'm', '/', 'c', 'n', 'c', 'f', '/', 'x', 'd', 's', '/', 'g', 'o', '/', 'x', 'd', 's', '/', 't', 'y', 'p', 'e',
|
||||
'/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3', '\322', '\306', '\244', '\341', '\006', '\002', '\010', '\001', 'b', '\006', 'p', 'r', 'o', 't',
|
||||
'o', '3',
|
||||
}; |
||||
|
||||
static _upb_DefPool_Init *deps[5] = { |
||||
&xds_annotations_v3_status_proto_upbdefinit, |
||||
&xds_core_v3_cidr_proto_upbdefinit, |
||||
&xds_type_matcher_v3_matcher_proto_upbdefinit, |
||||
&validate_validate_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
_upb_DefPool_Init xds_type_matcher_v3_ip_proto_upbdefinit = { |
||||
deps, |
||||
&xds_type_matcher_v3_ip_proto_upb_file_layout, |
||||
"xds/type/matcher/v3/ip.proto", |
||||
UPB_STRINGVIEW_INIT(descriptor, 552) |
||||
}; |
@ -0,0 +1,40 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/ip.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_MATCHER_V3_IP_PROTO_UPBDEFS_H_ |
||||
#define XDS_TYPE_MATCHER_V3_IP_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern _upb_DefPool_Init xds_type_matcher_v3_ip_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_IPMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_ip_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.IPMatcher"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_IPMatcher_IPRangeMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_ip_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.IPMatcher.IPRangeMatcher"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_MATCHER_V3_IP_PROTO_UPBDEFS_H_ */ |
@ -0,0 +1,71 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/range.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "xds/type/matcher/v3/range.upbdefs.h" |
||||
#include "xds/type/matcher/v3/range.upb.h" |
||||
|
||||
extern _upb_DefPool_Init xds_type_v3_range_proto_upbdefinit; |
||||
extern _upb_DefPool_Init xds_type_matcher_v3_matcher_proto_upbdefinit; |
||||
extern _upb_DefPool_Init validate_validate_proto_upbdefinit; |
||||
static const char descriptor[1007] = {'\n', '\037', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3', '/', 'r', 'a', 'n',
|
||||
'g', 'e', '.', 'p', 'r', 'o', 't', 'o', '\022', '\023', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e',
|
||||
'r', '.', 'v', '3', '\032', '\027', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'v', '3', '/', 'r', 'a', 'n', 'g', 'e', '.', 'p',
|
||||
'r', 'o', 't', 'o', '\032', '!', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3',
|
||||
'/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'p', 'r', 'o', 't', 'o', '\032', '\027', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '/',
|
||||
'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '.', 'p', 'r', 'o', 't', 'o', '\"', '\374', '\001', '\n', '\021', 'I', 'n', 't', '6', '4', 'R',
|
||||
'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', '\022', 'Z', '\n', '\016', 'r', 'a', 'n', 'g', 'e', '_', 'm', 'a', 't', 'c',
|
||||
'h', 'e', 'r', 's', '\030', '\001', ' ', '\003', '(', '\013', '2', '3', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't',
|
||||
'c', 'h', 'e', 'r', '.', 'v', '3', '.', 'I', 'n', 't', '6', '4', 'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r',
|
||||
'.', 'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', 'R', '\r', 'r', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h',
|
||||
'e', 'r', 's', '\032', '\212', '\001', '\n', '\014', 'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', '\022', '9', '\n', '\006', 'r',
|
||||
'a', 'n', 'g', 'e', 's', '\030', '\001', ' ', '\003', '(', '\013', '2', '\027', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'v', '3',
|
||||
'.', 'I', 'n', 't', '6', '4', 'R', 'a', 'n', 'g', 'e', 'B', '\010', '\372', 'B', '\005', '\222', '\001', '\002', '\010', '\001', 'R', '\006', 'r', 'a',
|
||||
'n', 'g', 'e', 's', '\022', '?', '\n', '\010', 'o', 'n', '_', 'm', 'a', 't', 'c', 'h', '\030', '\002', ' ', '\001', '(', '\013', '2', '$', '.',
|
||||
'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3', '.', 'M', 'a', 't', 'c', 'h',
|
||||
'e', 'r', '.', 'O', 'n', 'M', 'a', 't', 'c', 'h', 'R', '\007', 'o', 'n', 'M', 'a', 't', 'c', 'h', '\"', '\374', '\001', '\n', '\021', 'I',
|
||||
'n', 't', '3', '2', 'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', '\022', 'Z', '\n', '\016', 'r', 'a', 'n', 'g', 'e',
|
||||
'_', 'm', 'a', 't', 'c', 'h', 'e', 'r', 's', '\030', '\001', ' ', '\003', '(', '\013', '2', '3', '.', 'x', 'd', 's', '.', 't', 'y', 'p',
|
||||
'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3', '.', 'I', 'n', 't', '3', '2', 'R', 'a', 'n', 'g', 'e', 'M', 'a',
|
||||
't', 'c', 'h', 'e', 'r', '.', 'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', 'R', '\r', 'r', 'a', 'n', 'g', 'e',
|
||||
'M', 'a', 't', 'c', 'h', 'e', 'r', 's', '\032', '\212', '\001', '\n', '\014', 'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r',
|
||||
'\022', '9', '\n', '\006', 'r', 'a', 'n', 'g', 'e', 's', '\030', '\001', ' ', '\003', '(', '\013', '2', '\027', '.', 'x', 'd', 's', '.', 't', 'y',
|
||||
'p', 'e', '.', 'v', '3', '.', 'I', 'n', 't', '3', '2', 'R', 'a', 'n', 'g', 'e', 'B', '\010', '\372', 'B', '\005', '\222', '\001', '\002', '\010',
|
||||
'\001', 'R', '\006', 'r', 'a', 'n', 'g', 'e', 's', '\022', '?', '\n', '\010', 'o', 'n', '_', 'm', 'a', 't', 'c', 'h', '\030', '\002', ' ', '\001',
|
||||
'(', '\013', '2', '$', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3', '.',
|
||||
'M', 'a', 't', 'c', 'h', 'e', 'r', '.', 'O', 'n', 'M', 'a', 't', 'c', 'h', 'R', '\007', 'o', 'n', 'M', 'a', 't', 'c', 'h', '\"',
|
||||
'\377', '\001', '\n', '\022', 'D', 'o', 'u', 'b', 'l', 'e', 'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', '\022', '[', '\n',
|
||||
'\016', 'r', 'a', 'n', 'g', 'e', '_', 'm', 'a', 't', 'c', 'h', 'e', 'r', 's', '\030', '\001', ' ', '\003', '(', '\013', '2', '4', '.', 'x',
|
||||
'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3', '.', 'D', 'o', 'u', 'b', 'l', 'e',
|
||||
'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', '.', 'R', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r',
|
||||
'R', '\r', 'r', 'a', 'n', 'g', 'e', 'M', 'a', 't', 'c', 'h', 'e', 'r', 's', '\032', '\213', '\001', '\n', '\014', 'R', 'a', 'n', 'g', 'e',
|
||||
'M', 'a', 't', 'c', 'h', 'e', 'r', '\022', ':', '\n', '\006', 'r', 'a', 'n', 'g', 'e', 's', '\030', '\001', ' ', '\003', '(', '\013', '2', '\030',
|
||||
'.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'v', '3', '.', 'D', 'o', 'u', 'b', 'l', 'e', 'R', 'a', 'n', 'g', 'e', 'B',
|
||||
'\010', '\372', 'B', '\005', '\222', '\001', '\002', '\010', '\001', 'R', '\006', 'r', 'a', 'n', 'g', 'e', 's', '\022', '?', '\n', '\010', 'o', 'n', '_', 'm',
|
||||
'a', 't', 'c', 'h', '\030', '\002', ' ', '\001', '(', '\013', '2', '$', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't',
|
||||
'c', 'h', 'e', 'r', '.', 'v', '3', '.', 'M', 'a', 't', 'c', 'h', 'e', 'r', '.', 'O', 'n', 'M', 'a', 't', 'c', 'h', 'R', '\007',
|
||||
'o', 'n', 'M', 'a', 't', 'c', 'h', 'B', 'Z', '\n', '\036', 'c', 'o', 'm', '.', 'g', 'i', 't', 'h', 'u', 'b', '.', 'x', 'd', 's',
|
||||
'.', 't', 'y', 'p', 'e', '.', 'm', 'a', 't', 'c', 'h', 'e', 'r', '.', 'v', '3', 'B', '\n', 'R', 'a', 'n', 'g', 'e', 'P', 'r',
|
||||
'o', 't', 'o', 'P', '\001', 'Z', '*', 'g', 'i', 't', 'h', 'u', 'b', '.', 'c', 'o', 'm', '/', 'c', 'n', 'c', 'f', '/', 'x', 'd',
|
||||
's', '/', 'g', 'o', '/', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'm', 'a', 't', 'c', 'h', 'e', 'r', '/', 'v', '3', 'b',
|
||||
'\006', 'p', 'r', 'o', 't', 'o', '3',
|
||||
}; |
||||
|
||||
static _upb_DefPool_Init *deps[4] = { |
||||
&xds_type_v3_range_proto_upbdefinit, |
||||
&xds_type_matcher_v3_matcher_proto_upbdefinit, |
||||
&validate_validate_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
_upb_DefPool_Init xds_type_matcher_v3_range_proto_upbdefinit = { |
||||
deps, |
||||
&xds_type_matcher_v3_range_proto_upb_file_layout, |
||||
"xds/type/matcher/v3/range.proto", |
||||
UPB_STRINGVIEW_INIT(descriptor, 1007) |
||||
}; |
@ -0,0 +1,60 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/matcher/v3/range.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_MATCHER_V3_RANGE_PROTO_UPBDEFS_H_ |
||||
#define XDS_TYPE_MATCHER_V3_RANGE_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern _upb_DefPool_Init xds_type_matcher_v3_range_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_Int64RangeMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_range_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.Int64RangeMatcher"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_Int64RangeMatcher_RangeMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_range_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.Int64RangeMatcher.RangeMatcher"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_Int32RangeMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_range_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.Int32RangeMatcher"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_Int32RangeMatcher_RangeMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_range_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.Int32RangeMatcher.RangeMatcher"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_DoubleRangeMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_range_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.DoubleRangeMatcher"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_matcher_v3_DoubleRangeMatcher_RangeMatcher_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_matcher_v3_range_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.matcher.v3.DoubleRangeMatcher.RangeMatcher"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_MATCHER_V3_RANGE_PROTO_UPBDEFS_H_ */ |
@ -0,0 +1,60 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/cel.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "xds/type/v3/cel.upbdefs.h" |
||||
#include "xds/type/v3/cel.upb.h" |
||||
|
||||
extern _upb_DefPool_Init google_api_expr_v1alpha1_checked_proto_upbdefinit; |
||||
extern _upb_DefPool_Init google_api_expr_v1alpha1_syntax_proto_upbdefinit; |
||||
extern _upb_DefPool_Init google_protobuf_wrappers_proto_upbdefinit; |
||||
extern _upb_DefPool_Init xds_annotations_v3_status_proto_upbdefinit; |
||||
extern _upb_DefPool_Init validate_validate_proto_upbdefinit; |
||||
static const char descriptor[646] = {'\n', '\025', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'v', '3', '/', 'c', 'e', 'l', '.', 'p', 'r', 'o', 't', 'o', '\022', '\013',
|
||||
'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'v', '3', '\032', '&', 'g', 'o', 'o', 'g', 'l', 'e', '/', 'a', 'p', 'i', '/', 'e',
|
||||
'x', 'p', 'r', '/', 'v', '1', 'a', 'l', 'p', 'h', 'a', '1', '/', 'c', 'h', 'e', 'c', 'k', 'e', 'd', '.', 'p', 'r', 'o', 't',
|
||||
'o', '\032', '%', 'g', 'o', 'o', 'g', 'l', 'e', '/', 'a', 'p', 'i', '/', 'e', 'x', 'p', 'r', '/', 'v', '1', 'a', 'l', 'p', 'h',
|
||||
'a', '1', '/', 's', 'y', 'n', 't', 'a', 'x', '.', 'p', 'r', 'o', 't', 'o', '\032', '\036', 'g', 'o', 'o', 'g', 'l', 'e', '/', 'p',
|
||||
'r', 'o', 't', 'o', 'b', 'u', 'f', '/', 'w', 'r', 'a', 'p', 'p', 'e', 'r', 's', '.', 'p', 'r', 'o', 't', 'o', '\032', '\037', 'x',
|
||||
'd', 's', '/', 'a', 'n', 'n', 'o', 't', 'a', 't', 'i', 'o', 'n', 's', '/', 'v', '3', '/', 's', 't', 'a', 't', 'u', 's', '.',
|
||||
'p', 'r', 'o', 't', 'o', '\032', '\027', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '/', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', '.',
|
||||
'p', 'r', 'o', 't', 'o', '\"', '\273', '\001', '\n', '\r', 'C', 'e', 'l', 'E', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', '\022', 'G',
|
||||
'\n', '\013', 'p', 'a', 'r', 's', 'e', 'd', '_', 'e', 'x', 'p', 'r', '\030', '\001', ' ', '\001', '(', '\013', '2', '$', '.', 'g', 'o', 'o',
|
||||
'g', 'l', 'e', '.', 'a', 'p', 'i', '.', 'e', 'x', 'p', 'r', '.', 'v', '1', 'a', 'l', 'p', 'h', 'a', '1', '.', 'P', 'a', 'r',
|
||||
's', 'e', 'd', 'E', 'x', 'p', 'r', 'H', '\000', 'R', '\n', 'p', 'a', 'r', 's', 'e', 'd', 'E', 'x', 'p', 'r', '\022', 'J', '\n', '\014',
|
||||
'c', 'h', 'e', 'c', 'k', 'e', 'd', '_', 'e', 'x', 'p', 'r', '\030', '\002', ' ', '\001', '(', '\013', '2', '%', '.', 'g', 'o', 'o', 'g',
|
||||
'l', 'e', '.', 'a', 'p', 'i', '.', 'e', 'x', 'p', 'r', '.', 'v', '1', 'a', 'l', 'p', 'h', 'a', '1', '.', 'C', 'h', 'e', 'c',
|
||||
'k', 'e', 'd', 'E', 'x', 'p', 'r', 'H', '\000', 'R', '\013', 'c', 'h', 'e', 'c', 'k', 'e', 'd', 'E', 'x', 'p', 'r', 'B', '\025', '\n',
|
||||
'\016', 'e', 'x', 'p', 'r', '_', 's', 'p', 'e', 'c', 'i', 'f', 'i', 'e', 'r', '\022', '\003', '\370', 'B', '\001', '\"', '\236', '\001', '\n', '\020',
|
||||
'C', 'e', 'l', 'E', 'x', 't', 'r', 'a', 'c', 't', 'S', 't', 'r', 'i', 'n', 'g', '\022', 'G', '\n', '\014', 'e', 'x', 'p', 'r', '_',
|
||||
'e', 'x', 't', 'r', 'a', 'c', 't', '\030', '\001', ' ', '\001', '(', '\013', '2', '\032', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.',
|
||||
'v', '3', '.', 'C', 'e', 'l', 'E', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 'B', '\010', '\372', 'B', '\005', '\212', '\001', '\002', '\020',
|
||||
'\001', 'R', '\013', 'e', 'x', 'p', 'r', 'E', 'x', 't', 'r', 'a', 'c', 't', '\022', 'A', '\n', '\r', 'd', 'e', 'f', 'a', 'u', 'l', 't',
|
||||
'_', 'v', 'a', 'l', 'u', 'e', '\030', '\002', ' ', '\001', '(', '\013', '2', '\034', '.', 'g', 'o', 'o', 'g', 'l', 'e', '.', 'p', 'r', 'o',
|
||||
't', 'o', 'b', 'u', 'f', '.', 'S', 't', 'r', 'i', 'n', 'g', 'V', 'a', 'l', 'u', 'e', 'R', '\014', 'd', 'e', 'f', 'a', 'u', 'l',
|
||||
't', 'V', 'a', 'l', 'u', 'e', 'B', 'P', '\n', '\026', 'c', 'o', 'm', '.', 'g', 'i', 't', 'h', 'u', 'b', '.', 'x', 'd', 's', '.',
|
||||
't', 'y', 'p', 'e', '.', 'v', '3', 'B', '\010', 'C', 'e', 'l', 'P', 'r', 'o', 't', 'o', 'P', '\001', 'Z', '\"', 'g', 'i', 't', 'h',
|
||||
'u', 'b', '.', 'c', 'o', 'm', '/', 'c', 'n', 'c', 'f', '/', 'x', 'd', 's', '/', 'g', 'o', '/', 'x', 'd', 's', '/', 't', 'y',
|
||||
'p', 'e', '/', 'v', '3', '\322', '\306', '\244', '\341', '\006', '\002', '\010', '\001', 'b', '\006', 'p', 'r', 'o', 't', 'o', '3',
|
||||
}; |
||||
|
||||
static _upb_DefPool_Init *deps[6] = { |
||||
&google_api_expr_v1alpha1_checked_proto_upbdefinit, |
||||
&google_api_expr_v1alpha1_syntax_proto_upbdefinit, |
||||
&google_protobuf_wrappers_proto_upbdefinit, |
||||
&xds_annotations_v3_status_proto_upbdefinit, |
||||
&validate_validate_proto_upbdefinit, |
||||
NULL |
||||
}; |
||||
|
||||
_upb_DefPool_Init xds_type_v3_cel_proto_upbdefinit = { |
||||
deps, |
||||
&xds_type_v3_cel_proto_upb_file_layout, |
||||
"xds/type/v3/cel.proto", |
||||
UPB_STRINGVIEW_INIT(descriptor, 646) |
||||
}; |
@ -0,0 +1,40 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/cel.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_V3_CEL_PROTO_UPBDEFS_H_ |
||||
#define XDS_TYPE_V3_CEL_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern _upb_DefPool_Init xds_type_v3_cel_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_v3_CelExpression_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_v3_cel_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.v3.CelExpression"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_v3_CelExtractString_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_v3_cel_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.v3.CelExtractString"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_V3_CEL_PROTO_UPBDEFS_H_ */ |
@ -0,0 +1,36 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/range.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#include "upb/def.h" |
||||
#include "xds/type/v3/range.upbdefs.h" |
||||
#include "xds/type/v3/range.upb.h" |
||||
|
||||
static const char descriptor[285] = {'\n', '\027', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/', 'v', '3', '/', 'r', 'a', 'n', 'g', 'e', '.', 'p', 'r', 'o', 't', 'o',
|
||||
'\022', '\013', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.', 'v', '3', '\"', '4', '\n', '\n', 'I', 'n', 't', '6', '4', 'R', 'a', 'n',
|
||||
'g', 'e', '\022', '\024', '\n', '\005', 's', 't', 'a', 'r', 't', '\030', '\001', ' ', '\001', '(', '\003', 'R', '\005', 's', 't', 'a', 'r', 't', '\022',
|
||||
'\020', '\n', '\003', 'e', 'n', 'd', '\030', '\002', ' ', '\001', '(', '\003', 'R', '\003', 'e', 'n', 'd', '\"', '4', '\n', '\n', 'I', 'n', 't', '3',
|
||||
'2', 'R', 'a', 'n', 'g', 'e', '\022', '\024', '\n', '\005', 's', 't', 'a', 'r', 't', '\030', '\001', ' ', '\001', '(', '\005', 'R', '\005', 's', 't',
|
||||
'a', 'r', 't', '\022', '\020', '\n', '\003', 'e', 'n', 'd', '\030', '\002', ' ', '\001', '(', '\005', 'R', '\003', 'e', 'n', 'd', '\"', '5', '\n', '\013',
|
||||
'D', 'o', 'u', 'b', 'l', 'e', 'R', 'a', 'n', 'g', 'e', '\022', '\024', '\n', '\005', 's', 't', 'a', 'r', 't', '\030', '\001', ' ', '\001', '(',
|
||||
'\001', 'R', '\005', 's', 't', 'a', 'r', 't', '\022', '\020', '\n', '\003', 'e', 'n', 'd', '\030', '\002', ' ', '\001', '(', '\001', 'R', '\003', 'e', 'n',
|
||||
'd', 'B', 'J', '\n', '\026', 'c', 'o', 'm', '.', 'g', 'i', 't', 'h', 'u', 'b', '.', 'x', 'd', 's', '.', 't', 'y', 'p', 'e', '.',
|
||||
'v', '3', 'B', '\n', 'R', 'a', 'n', 'g', 'e', 'P', 'r', 'o', 't', 'o', 'P', '\001', 'Z', '\"', 'g', 'i', 't', 'h', 'u', 'b', '.',
|
||||
'c', 'o', 'm', '/', 'c', 'n', 'c', 'f', '/', 'x', 'd', 's', '/', 'g', 'o', '/', 'x', 'd', 's', '/', 't', 'y', 'p', 'e', '/',
|
||||
'v', '3', 'b', '\006', 'p', 'r', 'o', 't', 'o', '3',
|
||||
}; |
||||
|
||||
static _upb_DefPool_Init *deps[1] = { |
||||
NULL |
||||
}; |
||||
|
||||
_upb_DefPool_Init xds_type_v3_range_proto_upbdefinit = { |
||||
deps, |
||||
&xds_type_v3_range_proto_upb_file_layout, |
||||
"xds/type/v3/range.proto", |
||||
UPB_STRINGVIEW_INIT(descriptor, 285) |
||||
}; |
@ -0,0 +1,45 @@ |
||||
/* This file was generated by upbc (the upb compiler) from the input
|
||||
* file: |
||||
* |
||||
* xds/type/v3/range.proto |
||||
* |
||||
* Do not edit -- your changes will be discarded when the file is |
||||
* regenerated. */ |
||||
|
||||
#ifndef XDS_TYPE_V3_RANGE_PROTO_UPBDEFS_H_ |
||||
#define XDS_TYPE_V3_RANGE_PROTO_UPBDEFS_H_ |
||||
|
||||
#include "upb/def.h" |
||||
#include "upb/port_def.inc" |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "upb/def.h" |
||||
|
||||
#include "upb/port_def.inc" |
||||
|
||||
extern _upb_DefPool_Init xds_type_v3_range_proto_upbdefinit; |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_v3_Int64Range_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_v3_range_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.v3.Int64Range"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_v3_Int32Range_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_v3_range_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.v3.Int32Range"); |
||||
} |
||||
|
||||
UPB_INLINE const upb_MessageDef *xds_type_v3_DoubleRange_getmsgdef(upb_DefPool *s) { |
||||
_upb_DefPool_LoadDefInit(s, &xds_type_v3_range_proto_upbdefinit); |
||||
return upb_DefPool_FindMessageByName(s, "xds.type.v3.DoubleRange"); |
||||
} |
||||
|
||||
#ifdef __cplusplus |
||||
} /* extern "C" */ |
||||
#endif |
||||
|
||||
#include "upb/port_undef.inc" |
||||
|
||||
#endif /* XDS_TYPE_V3_RANGE_PROTO_UPBDEFS_H_ */ |
@ -1 +1 @@ |
||||
Subproject commit cb28da3451f158a947dfc45090fe92b07b243bc1 |
||||
Subproject commit 06c439db220b89134a8a49bad41994560d6537c6 |
Loading…
Reference in new issue